[
  {
    "path": ".gitignore",
    "content": ".idea\nPart1/node_modules\nPart2/node_modules\nPart3/node_modules\nPart2/app/bower_components\nPart3/app/bower_components\nPart1/npm-debug.log\nPart2/npm-debug.log\nPart3/npm-debug.log\n"
  },
  {
    "path": "Part1/.jshintrc",
    "content": "{\n  \"esnext\": true,\n  \"node\": true,\n  \"globals\": {\n    \"angular\": true,\n    \"console\": true\n  }\n}"
  },
  {
    "path": "Part1/README.md",
    "content": "##### Part 1\n\n<div class=\"update\">Updated Jan 16th, 2016.</div>\n\n# Getting Started\n\nThere are a lot of module loaders out there: Require.js, JSPM using System.js, to name a few.\n\nEventually the JavaScript community will come around and land on a winning module loader. My guess is Webpack, or something very similar.\n\nGo with Webpack. Webpack provides an elegant and multi-featured approach to module loading. It does everything I wanted it to do, and more. Really, a lot more.\n\nLet's try it out. We'll setup a project using Webpack, including ES6 transpiling & Sass loading. In this example, we'll setup an Angular based project using Webpack.\n\n<center>![Webpack & Angular](https://shmck.herokuapp.com/content/images/2015/04/webpackAngular.png)</center>\n\nFree free to load the [basic project from Github](https://github.com/ShMcK/WebpackAngularDemos/tree/master/Part1).\n\n## File Setup\n\nFile Structure:\n\n```\nroot\n├── app\n│   ├── core\n│   │       ├──bootstrap.js\n│   │       └──vendor.js\n│   │\n│   ├── index.html\n│   ├── index.scss\n│   └──index.js\n├── .jshintrc\n├── node_modules\n└── package.json\n```\n\nThis should be the bare minimum required to check if everything is working.\n\n/app/index.html\n\n```markup\n<!doctype html>\n<html lang=\"en\">\n<head>\n  <meta charset=\"UTF-8\">\n  <title>Webpack & Angular</title>\n</head>\n<body>\n<p>Angular is working: {{1 + 1 === 2}}</p>\n<script src=\"bundle.js\"></script>\n</body>\n</html>\n```\n\n/app/index.js\n\n```js\nalert('loaded!');\n```\n\n\n## Webpack\n\n### Setup\n\nLet's create a `package.json` file to get started.\n\n```shell\nnpm init\n```\nAgree to whatever defaults.\n\nWe're going to need a few basic dev-dependencies to get started with webpack.\n\n```shell\nnpm install -D webpack\n```\n\nWebpack will also require a [webpack configuration file](http://webpack.github.io/docs/configuration.html): `webpack.config.js`. Make the file and add the following:\n\n/webpack.config.js\n\n```js\n'use strict';\nvar webpack = require('webpack'),\npath = require('path');\n\nvar APP = __dirname + '/app';\n\nmodule.exports = {\n\t// config goes here\n};\n```\n\nWebpack is a lot easier than it looks. You just need to provide an `entry` and an `output`.\n\nNotice `bundle.js` is the only script we needed to load in our `index.html`. Everything will go into that bundle.\n\nLater you can have multiple bundles for easy lazy-loading and code-splitting.\n\n/webpack.config.js\n\n```js\nmodule.exports = {\n\tcontext: APP,\n\t entry: {\n   \t\tapp: './index.js'\n\t},\n\toutput: {\n\t\tpath: APP,\n\t\tfilename: 'bundle.js'\n\t}\n}\n```\n\nWe now have a module loader.\n\nLet's build our bundle in the terminal.\n\n```shell\nwebpack\n```\n\nThis should create the `app/bundle.js` file. Check it out. It's mostly a bunch of `webpack__require` statements.\n\n### Webpack-Dev-Server\n\n[Webpack-dev-server](http://webpack.github.io/docs/webpack-dev-server.html) is a quick and easy Node.js/Express/Socket.io app that creates your `bundle.js` file on the fly and reloads it on changes.\n\nInstall it as a dev-dependency.\n\n```shell\nnpm install -D webpack-dev-server\n```\n\nBut wait, there's more!\n\n\n### Hot Mode\n\nHot mode = live-reload of modules. No need to reload the entire project on every change, just load what changed. It makes sense and it's awesome.\n\nIt's not much work either. Update your webpack.config file.\n\n/webpack.config.js\n\n```js\nentry: {\n    app: ['webpack/hot/dev-server', './index.js']\n  }\n```\n\nYou may want to install `webpack-dev-server` globally. Otherwise you'll have to run it the long way: `node node_modules/.bin/webpack-dev-server --content-base app/ --hot`\n\nRun it.\n\n```shell\nnpm install -g webpack-dev-server\nwebpack-dev-server --content-base app/ --hot\n```\n\nOpen up `http://localhost:8080/webpack-dev-server/`.\n\nIt's hot.\n\n/app/index.js\n\n```js\nalert('hot-loaded!');\n```\n\nIt updates amazingly fast. Again, unlike Gulp or Grunt, Webpack only needs to re-compile the module that changed.\n\nTargeted reloading might not be important to you now, but as your project grows in size & complexity it becomes increasingly useful.\n\n### Quick Start\n\nIf you're used to using Gulp or Grunt, you probably like the time saving `gulp serve`, `grunt serve` shortcuts for running your app.\n\nThis can be accomplished with `package.json` [scripts](https://docs.npmjs.com/misc/scripts).\n\n/package.json\n\n```json\n\"scripts\": {\n    \"start\": \"webpack-dev-server --content-base app --hot\"\n  }\n```\n\nNow run `npm start`. Again, the app can be found at `localhost:8080/` by default, or `localhost:8080/webpack-dev-server` for the hot-module version.\n\n#### Bootstrap Angular\n\nI like to bootstrap Angular, rather than adding `ng-app=\"app\"` into the html.\n\n/app/core/bootstrap.js\n\n```js\n/*jshint browser:true */\n'use strict';\n// load Angular\nrequire('angular');\n// load the main app file\nvar appModule = require('../index');\n// replaces ng-app=\"appName\"\nangular.element(document).ready(function () {\n  angular.bootstrap(document, [appModule.name], {\n    //strictDi: true\n  });\n});\n```\n\nNotice `require('angular')`? That replaces adding `<script src=\"bower_components/angular/angular.min.js\">`. No need for that, this is a module system.\n\nAlso note that `appModule.name` will be taken from `index.js`, whatever its name might be: `angular.module('THISNAMEHERE', [])`.\n\nMake the app file: `index.js`.\n\n/app/index.js\n```js\nmodule.exports = angular.module('app', []);\n```\n\n\nFinally, let's make `bootstrap.js` our new Webpack entry point.\n\n/webpack.config.js\n\n```js\nentry: {\n    app: ['webpack/hot/dev-server', './core/bootstrap.js']\n  }\n```\n\nRun the app (`npm start`). If all went well, running the app you should see: \"Angular is working: true\" at `localhost:8080` or `localhost:8080/webpack-dev-server`.\n\n\n#### Add Dependencies\n\nInstall angular.\n\n`npm install --save angular`\n\nBootstrap will get messy if we keep loading all our dependencies in there. Let's load them in a separate file called `vendor.js`.\n\n/app/core/bootstrap.js\n\n```js\nrequire(./vendor')();   \t\t\t\t // run an empty function\nvar appModule = require('../index');\n```\n\n/app/core/vendor.js\n\n```js\nmodule.exports = function () {\n\t/* JS */\n\trequire('angular');\n};\n```\n\nThis file will get longer later.\n\n\n#### Styles\nWebpack doesn't just load JavaScript, it can load nearly anything we might need: styles, images, fonts, etc.\n\nIt handles these different file formats using [loaders](http://webpack.github.io/docs/using-loaders.html). Here's [a list of available loaders](http://webpack.github.io/docs/list-of-loaders.html).\n\nLet's start with the Style, CSS, and Sass loaders and install them as dev-dependencies.\n\n```shell\nnpm install -D style-loader css-loader sass-loader`\n```\n\nWebpack can use a Regex test to determine which loader to use. Add this to your webpack.config.js file.\n\n/webpack.config.js\n\n```js\nmodule.exports = {\n/* context, entry, output */\n module: {\n    loaders: [\n      {\n        test: /\\.scss$/,\n        loader: 'style!css!sass'\n      }\n    ]\n  }\n };\n```\n\nLoaders process from right to left. Meaning that if a `.scss` file is required as in the example, it will follow this order: sass loader => css loader => style loader\n\nRun a quick test with a style sheet.\n\n/app/index.scss\n\n```scss\nbody {\n\tbackground-color: red;\n}\n```\n\nRequire the file.\n\n/app/core/vendor.js\n\n```js\nmodule.exports = {\n\t/* Styles */\n  \trequire('../index.scss');\n  /* JS */\n  require('angular');\n }\n```\n\nTake a look, `npm start`, the background should now be red.\n\n\n#### ES6 Loaders\n\nWebpack makes it easy to use compiled languages like ES6, TypeScript, CoffeeScript, etc. Let's write our app in ES6 and compile it to ES5/ES3.\n\nFirst we need some loaders. Install the dev-dependencies:\n\n`npm install -D jshint-loader babel-loader ng-annotate-loader babel-preset-es2015`\n\nAs before, we provide a loader object with a pattern matching test case. We'll exclude compiling packages.\n\n/webpack.config.js\n\n```js\nloaders: [\n{\n\ttest: /\\.js$/,\n   loader: 'ng-annotate!babel?presets[]=es2015!jshint',\n   exclude: /node_modules|bower_components/\n}\n]\n```\n\nWebpack will take any required `.js` files, and run them right to left: jshint => babel => ng-annotate.\n\nIn Babel you must now specify the preset you are using, in this case 'es2015'. This allows Babel to be much more flexible with future js versions.\n\nLet's use an ES6 example to make sure everything is working.\n\n/app/index.js\n\n```js\nmodule.exports = angular.module('app', []);\n// default params\nfunction printMessage (status='working') {\t\t\n// let\n  let message = 'ES6';\t\t\t\t\t\n// template string       \t\n  console.log(`${message} is ${status}`);\n}\nprintMessage();\n```\n\nRun the app, `npm start`, and you should see \"ES6 is working\" in the console.\n\n#### Removing JSHint Errors\n\nYou probably saw some warnings (in yellow) when you ran the app.\n\nYou might want to remove these warnings from the console caused by jshint using a `.jshintrc` file. You can take [Jon Papa's recommended .jshintrc](https://github.com/johnpapa/angular-styleguide#js-hint) or add the following:\n\n/.jshintrc\n\n```json\n{\n  \"esnext\": true,\n  \"node\": true,\n  \"globals\": {\n    \"angular\": true,\n    \"console\": true\n  }\n}\n```\n\n## Conclusion\nWhen I made my first webpack app, I was left wondering:\n\n> What happened to the build stage?\n\n> Where's the heavy lifting we need Grunt/Gulp for?\n\nBut it's all in the few lines of code in that webpack.config file. The app is built everytime you run `webpack`, and built and updated on the fly when you run the `webpack-dev-server`.\n\nEverything goes in the bundle.js. It fits my criteria for a good module loader: it's simple and it works.\n\nGranted, this was a simple use case. We'll look at how Webpack handles more complicated cases in the [next post](http://shmck.com/webpack-angular-part-2), as we setup a project requiring [LumX](http://ui.lumapps.com/), a popular Material Design based CSS Framework for Angular.\n"
  },
  {
    "path": "Part1/app/bundle.js",
    "content": "/******/ (function(modules) { // webpackBootstrap\n/******/ \tvar parentHotUpdateCallback = this[\"webpackHotUpdate\"];\n/******/ \tthis[\"webpackHotUpdate\"] = \r\n/******/ \tfunction webpackHotUpdateCallback(chunkId, moreModules) { // eslint-disable-line no-unused-vars\r\n/******/ \t\thotAddUpdateChunk(chunkId, moreModules);\r\n/******/ \t\tif(parentHotUpdateCallback) parentHotUpdateCallback(chunkId, moreModules);\r\n/******/ \t}\r\n/******/ \t\r\n/******/ \tfunction hotDownloadUpdateChunk(chunkId) { // eslint-disable-line no-unused-vars\r\n/******/ \t\tvar head = document.getElementsByTagName(\"head\")[0];\r\n/******/ \t\tvar script = document.createElement(\"script\");\r\n/******/ \t\tscript.type = \"text/javascript\";\r\n/******/ \t\tscript.charset = \"utf-8\";\r\n/******/ \t\tscript.src = __webpack_require__.p + \"\" + chunkId + \".\" + hotCurrentHash + \".hot-update.js\";\r\n/******/ \t\thead.appendChild(script);\r\n/******/ \t}\r\n/******/ \t\r\n/******/ \tfunction hotDownloadManifest(callback) { // eslint-disable-line no-unused-vars\r\n/******/ \t\tif(typeof XMLHttpRequest === \"undefined\")\r\n/******/ \t\t\treturn callback(new Error(\"No browser support\"));\r\n/******/ \t\ttry {\r\n/******/ \t\t\tvar request = new XMLHttpRequest();\r\n/******/ \t\t\tvar requestPath = __webpack_require__.p + \"\" + hotCurrentHash + \".hot-update.json\";\r\n/******/ \t\t\trequest.open(\"GET\", requestPath, true);\r\n/******/ \t\t\trequest.timeout = 10000;\r\n/******/ \t\t\trequest.send(null);\r\n/******/ \t\t} catch(err) {\r\n/******/ \t\t\treturn callback(err);\r\n/******/ \t\t}\r\n/******/ \t\trequest.onreadystatechange = function() {\r\n/******/ \t\t\tif(request.readyState !== 4) return;\r\n/******/ \t\t\tif(request.status === 0) {\r\n/******/ \t\t\t\t// timeout\r\n/******/ \t\t\t\tcallback(new Error(\"Manifest request to \" + requestPath + \" timed out.\"));\r\n/******/ \t\t\t} else if(request.status === 404) {\r\n/******/ \t\t\t\t// no update available\r\n/******/ \t\t\t\tcallback();\r\n/******/ \t\t\t} else if(request.status !== 200 && request.status !== 304) {\r\n/******/ \t\t\t\t// other failure\r\n/******/ \t\t\t\tcallback(new Error(\"Manifest request to \" + requestPath + \" failed.\"));\r\n/******/ \t\t\t} else {\r\n/******/ \t\t\t\t// success\r\n/******/ \t\t\t\ttry {\r\n/******/ \t\t\t\t\tvar update = JSON.parse(request.responseText);\r\n/******/ \t\t\t\t} catch(e) {\r\n/******/ \t\t\t\t\tcallback(e);\r\n/******/ \t\t\t\t\treturn;\r\n/******/ \t\t\t\t}\r\n/******/ \t\t\t\tcallback(null, update);\r\n/******/ \t\t\t}\r\n/******/ \t\t};\r\n/******/ \t}\r\n\n/******/ \t\r\n/******/ \t\r\n/******/ \tvar hotApplyOnUpdate = true;\r\n/******/ \tvar hotCurrentHash = \"fdcf32c155e4d7bb1399\"; // eslint-disable-line no-unused-vars\r\n/******/ \tvar hotCurrentModuleData = {};\r\n/******/ \tvar hotCurrentParents = []; // eslint-disable-line no-unused-vars\r\n/******/ \t\r\n/******/ \tfunction hotCreateRequire(moduleId) { // eslint-disable-line no-unused-vars\r\n/******/ \t\tvar me = installedModules[moduleId];\r\n/******/ \t\tif(!me) return __webpack_require__;\r\n/******/ \t\tvar fn = function(request) {\r\n/******/ \t\t\tif(me.hot.active) {\r\n/******/ \t\t\t\tif(installedModules[request]) {\r\n/******/ \t\t\t\t\tif(installedModules[request].parents.indexOf(moduleId) < 0)\r\n/******/ \t\t\t\t\t\tinstalledModules[request].parents.push(moduleId);\r\n/******/ \t\t\t\t\tif(me.children.indexOf(request) < 0)\r\n/******/ \t\t\t\t\t\tme.children.push(request);\r\n/******/ \t\t\t\t} else hotCurrentParents = [moduleId];\r\n/******/ \t\t\t} else {\r\n/******/ \t\t\t\tconsole.warn(\"[HMR] unexpected require(\" + request + \") from disposed module \" + moduleId);\r\n/******/ \t\t\t\thotCurrentParents = [];\r\n/******/ \t\t\t}\r\n/******/ \t\t\treturn __webpack_require__(request);\r\n/******/ \t\t};\r\n/******/ \t\tfor(var name in __webpack_require__) {\r\n/******/ \t\t\tif(Object.prototype.hasOwnProperty.call(__webpack_require__, name)) {\r\n/******/ \t\t\t\tfn[name] = __webpack_require__[name];\r\n/******/ \t\t\t}\r\n/******/ \t\t}\r\n/******/ \t\tfn.e = function(chunkId, callback) {\r\n/******/ \t\t\tif(hotStatus === \"ready\")\r\n/******/ \t\t\t\thotSetStatus(\"prepare\");\r\n/******/ \t\t\thotChunksLoading++;\r\n/******/ \t\t\t__webpack_require__.e(chunkId, function() {\r\n/******/ \t\t\t\ttry {\r\n/******/ \t\t\t\t\tcallback.call(null, fn);\r\n/******/ \t\t\t\t} finally {\r\n/******/ \t\t\t\t\tfinishChunkLoading();\r\n/******/ \t\t\t\t}\r\n/******/ \t\r\n/******/ \t\t\t\tfunction finishChunkLoading() {\r\n/******/ \t\t\t\t\thotChunksLoading--;\r\n/******/ \t\t\t\t\tif(hotStatus === \"prepare\") {\r\n/******/ \t\t\t\t\t\tif(!hotWaitingFilesMap[chunkId]) {\r\n/******/ \t\t\t\t\t\t\thotEnsureUpdateChunk(chunkId);\r\n/******/ \t\t\t\t\t\t}\r\n/******/ \t\t\t\t\t\tif(hotChunksLoading === 0 && hotWaitingFiles === 0) {\r\n/******/ \t\t\t\t\t\t\thotUpdateDownloaded();\r\n/******/ \t\t\t\t\t\t}\r\n/******/ \t\t\t\t\t}\r\n/******/ \t\t\t\t}\r\n/******/ \t\t\t});\r\n/******/ \t\t};\r\n/******/ \t\treturn fn;\r\n/******/ \t}\r\n/******/ \t\r\n/******/ \tfunction hotCreateModule(moduleId) { // eslint-disable-line no-unused-vars\r\n/******/ \t\tvar hot = {\r\n/******/ \t\t\t// private stuff\r\n/******/ \t\t\t_acceptedDependencies: {},\r\n/******/ \t\t\t_declinedDependencies: {},\r\n/******/ \t\t\t_selfAccepted: false,\r\n/******/ \t\t\t_selfDeclined: false,\r\n/******/ \t\t\t_disposeHandlers: [],\r\n/******/ \t\r\n/******/ \t\t\t// Module API\r\n/******/ \t\t\tactive: true,\r\n/******/ \t\t\taccept: function(dep, callback) {\r\n/******/ \t\t\t\tif(typeof dep === \"undefined\")\r\n/******/ \t\t\t\t\thot._selfAccepted = true;\r\n/******/ \t\t\t\telse if(typeof dep === \"function\")\r\n/******/ \t\t\t\t\thot._selfAccepted = dep;\r\n/******/ \t\t\t\telse if(typeof dep === \"object\")\r\n/******/ \t\t\t\t\tfor(var i = 0; i < dep.length; i++)\r\n/******/ \t\t\t\t\t\thot._acceptedDependencies[dep[i]] = callback;\r\n/******/ \t\t\t\telse\r\n/******/ \t\t\t\t\thot._acceptedDependencies[dep] = callback;\r\n/******/ \t\t\t},\r\n/******/ \t\t\tdecline: function(dep) {\r\n/******/ \t\t\t\tif(typeof dep === \"undefined\")\r\n/******/ \t\t\t\t\thot._selfDeclined = true;\r\n/******/ \t\t\t\telse if(typeof dep === \"number\")\r\n/******/ \t\t\t\t\thot._declinedDependencies[dep] = true;\r\n/******/ \t\t\t\telse\r\n/******/ \t\t\t\t\tfor(var i = 0; i < dep.length; i++)\r\n/******/ \t\t\t\t\t\thot._declinedDependencies[dep[i]] = true;\r\n/******/ \t\t\t},\r\n/******/ \t\t\tdispose: function(callback) {\r\n/******/ \t\t\t\thot._disposeHandlers.push(callback);\r\n/******/ \t\t\t},\r\n/******/ \t\t\taddDisposeHandler: function(callback) {\r\n/******/ \t\t\t\thot._disposeHandlers.push(callback);\r\n/******/ \t\t\t},\r\n/******/ \t\t\tremoveDisposeHandler: function(callback) {\r\n/******/ \t\t\t\tvar idx = hot._disposeHandlers.indexOf(callback);\r\n/******/ \t\t\t\tif(idx >= 0) hot._disposeHandlers.splice(idx, 1);\r\n/******/ \t\t\t},\r\n/******/ \t\r\n/******/ \t\t\t// Management API\r\n/******/ \t\t\tcheck: hotCheck,\r\n/******/ \t\t\tapply: hotApply,\r\n/******/ \t\t\tstatus: function(l) {\r\n/******/ \t\t\t\tif(!l) return hotStatus;\r\n/******/ \t\t\t\thotStatusHandlers.push(l);\r\n/******/ \t\t\t},\r\n/******/ \t\t\taddStatusHandler: function(l) {\r\n/******/ \t\t\t\thotStatusHandlers.push(l);\r\n/******/ \t\t\t},\r\n/******/ \t\t\tremoveStatusHandler: function(l) {\r\n/******/ \t\t\t\tvar idx = hotStatusHandlers.indexOf(l);\r\n/******/ \t\t\t\tif(idx >= 0) hotStatusHandlers.splice(idx, 1);\r\n/******/ \t\t\t},\r\n/******/ \t\r\n/******/ \t\t\t//inherit from previous dispose call\r\n/******/ \t\t\tdata: hotCurrentModuleData[moduleId]\r\n/******/ \t\t};\r\n/******/ \t\treturn hot;\r\n/******/ \t}\r\n/******/ \t\r\n/******/ \tvar hotStatusHandlers = [];\r\n/******/ \tvar hotStatus = \"idle\";\r\n/******/ \t\r\n/******/ \tfunction hotSetStatus(newStatus) {\r\n/******/ \t\thotStatus = newStatus;\r\n/******/ \t\tfor(var i = 0; i < hotStatusHandlers.length; i++)\r\n/******/ \t\t\thotStatusHandlers[i].call(null, newStatus);\r\n/******/ \t}\r\n/******/ \t\r\n/******/ \t// while downloading\r\n/******/ \tvar hotWaitingFiles = 0;\r\n/******/ \tvar hotChunksLoading = 0;\r\n/******/ \tvar hotWaitingFilesMap = {};\r\n/******/ \tvar hotRequestedFilesMap = {};\r\n/******/ \tvar hotAvailibleFilesMap = {};\r\n/******/ \tvar hotCallback;\r\n/******/ \t\r\n/******/ \t// The update info\r\n/******/ \tvar hotUpdate, hotUpdateNewHash;\r\n/******/ \t\r\n/******/ \tfunction toModuleId(id) {\r\n/******/ \t\tvar isNumber = (+id) + \"\" === id;\r\n/******/ \t\treturn isNumber ? +id : id;\r\n/******/ \t}\r\n/******/ \t\r\n/******/ \tfunction hotCheck(apply, callback) {\r\n/******/ \t\tif(hotStatus !== \"idle\") throw new Error(\"check() is only allowed in idle status\");\r\n/******/ \t\tif(typeof apply === \"function\") {\r\n/******/ \t\t\thotApplyOnUpdate = false;\r\n/******/ \t\t\tcallback = apply;\r\n/******/ \t\t} else {\r\n/******/ \t\t\thotApplyOnUpdate = apply;\r\n/******/ \t\t\tcallback = callback || function(err) {\r\n/******/ \t\t\t\tif(err) throw err;\r\n/******/ \t\t\t};\r\n/******/ \t\t}\r\n/******/ \t\thotSetStatus(\"check\");\r\n/******/ \t\thotDownloadManifest(function(err, update) {\r\n/******/ \t\t\tif(err) return callback(err);\r\n/******/ \t\t\tif(!update) {\r\n/******/ \t\t\t\thotSetStatus(\"idle\");\r\n/******/ \t\t\t\tcallback(null, null);\r\n/******/ \t\t\t\treturn;\r\n/******/ \t\t\t}\r\n/******/ \t\r\n/******/ \t\t\thotRequestedFilesMap = {};\r\n/******/ \t\t\thotAvailibleFilesMap = {};\r\n/******/ \t\t\thotWaitingFilesMap = {};\r\n/******/ \t\t\tfor(var i = 0; i < update.c.length; i++)\r\n/******/ \t\t\t\thotAvailibleFilesMap[update.c[i]] = true;\r\n/******/ \t\t\thotUpdateNewHash = update.h;\r\n/******/ \t\r\n/******/ \t\t\thotSetStatus(\"prepare\");\r\n/******/ \t\t\thotCallback = callback;\r\n/******/ \t\t\thotUpdate = {};\r\n/******/ \t\t\tvar chunkId = 0;\r\n/******/ \t\t\t{ // eslint-disable-line no-lone-blocks\r\n/******/ \t\t\t\t/*globals chunkId */\r\n/******/ \t\t\t\thotEnsureUpdateChunk(chunkId);\r\n/******/ \t\t\t}\r\n/******/ \t\t\tif(hotStatus === \"prepare\" && hotChunksLoading === 0 && hotWaitingFiles === 0) {\r\n/******/ \t\t\t\thotUpdateDownloaded();\r\n/******/ \t\t\t}\r\n/******/ \t\t});\r\n/******/ \t}\r\n/******/ \t\r\n/******/ \tfunction hotAddUpdateChunk(chunkId, moreModules) { // eslint-disable-line no-unused-vars\r\n/******/ \t\tif(!hotAvailibleFilesMap[chunkId] || !hotRequestedFilesMap[chunkId])\r\n/******/ \t\t\treturn;\r\n/******/ \t\thotRequestedFilesMap[chunkId] = false;\r\n/******/ \t\tfor(var moduleId in moreModules) {\r\n/******/ \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\r\n/******/ \t\t\t\thotUpdate[moduleId] = moreModules[moduleId];\r\n/******/ \t\t\t}\r\n/******/ \t\t}\r\n/******/ \t\tif(--hotWaitingFiles === 0 && hotChunksLoading === 0) {\r\n/******/ \t\t\thotUpdateDownloaded();\r\n/******/ \t\t}\r\n/******/ \t}\r\n/******/ \t\r\n/******/ \tfunction hotEnsureUpdateChunk(chunkId) {\r\n/******/ \t\tif(!hotAvailibleFilesMap[chunkId]) {\r\n/******/ \t\t\thotWaitingFilesMap[chunkId] = true;\r\n/******/ \t\t} else {\r\n/******/ \t\t\thotRequestedFilesMap[chunkId] = true;\r\n/******/ \t\t\thotWaitingFiles++;\r\n/******/ \t\t\thotDownloadUpdateChunk(chunkId);\r\n/******/ \t\t}\r\n/******/ \t}\r\n/******/ \t\r\n/******/ \tfunction hotUpdateDownloaded() {\r\n/******/ \t\thotSetStatus(\"ready\");\r\n/******/ \t\tvar callback = hotCallback;\r\n/******/ \t\thotCallback = null;\r\n/******/ \t\tif(!callback) return;\r\n/******/ \t\tif(hotApplyOnUpdate) {\r\n/******/ \t\t\thotApply(hotApplyOnUpdate, callback);\r\n/******/ \t\t} else {\r\n/******/ \t\t\tvar outdatedModules = [];\r\n/******/ \t\t\tfor(var id in hotUpdate) {\r\n/******/ \t\t\t\tif(Object.prototype.hasOwnProperty.call(hotUpdate, id)) {\r\n/******/ \t\t\t\t\toutdatedModules.push(toModuleId(id));\r\n/******/ \t\t\t\t}\r\n/******/ \t\t\t}\r\n/******/ \t\t\tcallback(null, outdatedModules);\r\n/******/ \t\t}\r\n/******/ \t}\r\n/******/ \t\r\n/******/ \tfunction hotApply(options, callback) {\r\n/******/ \t\tif(hotStatus !== \"ready\") throw new Error(\"apply() is only allowed in ready status\");\r\n/******/ \t\tif(typeof options === \"function\") {\r\n/******/ \t\t\tcallback = options;\r\n/******/ \t\t\toptions = {};\r\n/******/ \t\t} else if(options && typeof options === \"object\") {\r\n/******/ \t\t\tcallback = callback || function(err) {\r\n/******/ \t\t\t\tif(err) throw err;\r\n/******/ \t\t\t};\r\n/******/ \t\t} else {\r\n/******/ \t\t\toptions = {};\r\n/******/ \t\t\tcallback = callback || function(err) {\r\n/******/ \t\t\t\tif(err) throw err;\r\n/******/ \t\t\t};\r\n/******/ \t\t}\r\n/******/ \t\r\n/******/ \t\tfunction getAffectedStuff(module) {\r\n/******/ \t\t\tvar outdatedModules = [module];\r\n/******/ \t\t\tvar outdatedDependencies = {};\r\n/******/ \t\r\n/******/ \t\t\tvar queue = outdatedModules.slice();\r\n/******/ \t\t\twhile(queue.length > 0) {\r\n/******/ \t\t\t\tvar moduleId = queue.pop();\r\n/******/ \t\t\t\tvar module = installedModules[moduleId];\r\n/******/ \t\t\t\tif(!module || module.hot._selfAccepted)\r\n/******/ \t\t\t\t\tcontinue;\r\n/******/ \t\t\t\tif(module.hot._selfDeclined) {\r\n/******/ \t\t\t\t\treturn new Error(\"Aborted because of self decline: \" + moduleId);\r\n/******/ \t\t\t\t}\r\n/******/ \t\t\t\tif(moduleId === 0) {\r\n/******/ \t\t\t\t\treturn;\r\n/******/ \t\t\t\t}\r\n/******/ \t\t\t\tfor(var i = 0; i < module.parents.length; i++) {\r\n/******/ \t\t\t\t\tvar parentId = module.parents[i];\r\n/******/ \t\t\t\t\tvar parent = installedModules[parentId];\r\n/******/ \t\t\t\t\tif(parent.hot._declinedDependencies[moduleId]) {\r\n/******/ \t\t\t\t\t\treturn new Error(\"Aborted because of declined dependency: \" + moduleId + \" in \" + parentId);\r\n/******/ \t\t\t\t\t}\r\n/******/ \t\t\t\t\tif(outdatedModules.indexOf(parentId) >= 0) continue;\r\n/******/ \t\t\t\t\tif(parent.hot._acceptedDependencies[moduleId]) {\r\n/******/ \t\t\t\t\t\tif(!outdatedDependencies[parentId])\r\n/******/ \t\t\t\t\t\t\toutdatedDependencies[parentId] = [];\r\n/******/ \t\t\t\t\t\taddAllToSet(outdatedDependencies[parentId], [moduleId]);\r\n/******/ \t\t\t\t\t\tcontinue;\r\n/******/ \t\t\t\t\t}\r\n/******/ \t\t\t\t\tdelete outdatedDependencies[parentId];\r\n/******/ \t\t\t\t\toutdatedModules.push(parentId);\r\n/******/ \t\t\t\t\tqueue.push(parentId);\r\n/******/ \t\t\t\t}\r\n/******/ \t\t\t}\r\n/******/ \t\r\n/******/ \t\t\treturn [outdatedModules, outdatedDependencies];\r\n/******/ \t\t}\r\n/******/ \t\r\n/******/ \t\tfunction addAllToSet(a, b) {\r\n/******/ \t\t\tfor(var i = 0; i < b.length; i++) {\r\n/******/ \t\t\t\tvar item = b[i];\r\n/******/ \t\t\t\tif(a.indexOf(item) < 0)\r\n/******/ \t\t\t\t\ta.push(item);\r\n/******/ \t\t\t}\r\n/******/ \t\t}\r\n/******/ \t\r\n/******/ \t\t// at begin all updates modules are outdated\r\n/******/ \t\t// the \"outdated\" status can propagate to parents if they don't accept the children\r\n/******/ \t\tvar outdatedDependencies = {};\r\n/******/ \t\tvar outdatedModules = [];\r\n/******/ \t\tvar appliedUpdate = {};\r\n/******/ \t\tfor(var id in hotUpdate) {\r\n/******/ \t\t\tif(Object.prototype.hasOwnProperty.call(hotUpdate, id)) {\r\n/******/ \t\t\t\tvar moduleId = toModuleId(id);\r\n/******/ \t\t\t\tvar result = getAffectedStuff(moduleId);\r\n/******/ \t\t\t\tif(!result) {\r\n/******/ \t\t\t\t\tif(options.ignoreUnaccepted)\r\n/******/ \t\t\t\t\t\tcontinue;\r\n/******/ \t\t\t\t\thotSetStatus(\"abort\");\r\n/******/ \t\t\t\t\treturn callback(new Error(\"Aborted because \" + moduleId + \" is not accepted\"));\r\n/******/ \t\t\t\t}\r\n/******/ \t\t\t\tif(result instanceof Error) {\r\n/******/ \t\t\t\t\thotSetStatus(\"abort\");\r\n/******/ \t\t\t\t\treturn callback(result);\r\n/******/ \t\t\t\t}\r\n/******/ \t\t\t\tappliedUpdate[moduleId] = hotUpdate[moduleId];\r\n/******/ \t\t\t\taddAllToSet(outdatedModules, result[0]);\r\n/******/ \t\t\t\tfor(var moduleId in result[1]) {\r\n/******/ \t\t\t\t\tif(Object.prototype.hasOwnProperty.call(result[1], moduleId)) {\r\n/******/ \t\t\t\t\t\tif(!outdatedDependencies[moduleId])\r\n/******/ \t\t\t\t\t\t\toutdatedDependencies[moduleId] = [];\r\n/******/ \t\t\t\t\t\taddAllToSet(outdatedDependencies[moduleId], result[1][moduleId]);\r\n/******/ \t\t\t\t\t}\r\n/******/ \t\t\t\t}\r\n/******/ \t\t\t}\r\n/******/ \t\t}\r\n/******/ \t\r\n/******/ \t\t// Store self accepted outdated modules to require them later by the module system\r\n/******/ \t\tvar outdatedSelfAcceptedModules = [];\r\n/******/ \t\tfor(var i = 0; i < outdatedModules.length; i++) {\r\n/******/ \t\t\tvar moduleId = outdatedModules[i];\r\n/******/ \t\t\tif(installedModules[moduleId] && installedModules[moduleId].hot._selfAccepted)\r\n/******/ \t\t\t\toutdatedSelfAcceptedModules.push({\r\n/******/ \t\t\t\t\tmodule: moduleId,\r\n/******/ \t\t\t\t\terrorHandler: installedModules[moduleId].hot._selfAccepted\r\n/******/ \t\t\t\t});\r\n/******/ \t\t}\r\n/******/ \t\r\n/******/ \t\t// Now in \"dispose\" phase\r\n/******/ \t\thotSetStatus(\"dispose\");\r\n/******/ \t\tvar queue = outdatedModules.slice();\r\n/******/ \t\twhile(queue.length > 0) {\r\n/******/ \t\t\tvar moduleId = queue.pop();\r\n/******/ \t\t\tvar module = installedModules[moduleId];\r\n/******/ \t\t\tif(!module) continue;\r\n/******/ \t\r\n/******/ \t\t\tvar data = {};\r\n/******/ \t\r\n/******/ \t\t\t// Call dispose handlers\r\n/******/ \t\t\tvar disposeHandlers = module.hot._disposeHandlers;\r\n/******/ \t\t\tfor(var j = 0; j < disposeHandlers.length; j++) {\r\n/******/ \t\t\t\tvar cb = disposeHandlers[j];\r\n/******/ \t\t\t\tcb(data);\r\n/******/ \t\t\t}\r\n/******/ \t\t\thotCurrentModuleData[moduleId] = data;\r\n/******/ \t\r\n/******/ \t\t\t// disable module (this disables requires from this module)\r\n/******/ \t\t\tmodule.hot.active = false;\r\n/******/ \t\r\n/******/ \t\t\t// remove module from cache\r\n/******/ \t\t\tdelete installedModules[moduleId];\r\n/******/ \t\r\n/******/ \t\t\t// remove \"parents\" references from all children\r\n/******/ \t\t\tfor(var j = 0; j < module.children.length; j++) {\r\n/******/ \t\t\t\tvar child = installedModules[module.children[j]];\r\n/******/ \t\t\t\tif(!child) continue;\r\n/******/ \t\t\t\tvar idx = child.parents.indexOf(moduleId);\r\n/******/ \t\t\t\tif(idx >= 0) {\r\n/******/ \t\t\t\t\tchild.parents.splice(idx, 1);\r\n/******/ \t\t\t\t}\r\n/******/ \t\t\t}\r\n/******/ \t\t}\r\n/******/ \t\r\n/******/ \t\t// remove outdated dependency from module children\r\n/******/ \t\tfor(var moduleId in outdatedDependencies) {\r\n/******/ \t\t\tif(Object.prototype.hasOwnProperty.call(outdatedDependencies, moduleId)) {\r\n/******/ \t\t\t\tvar module = installedModules[moduleId];\r\n/******/ \t\t\t\tvar moduleOutdatedDependencies = outdatedDependencies[moduleId];\r\n/******/ \t\t\t\tfor(var j = 0; j < moduleOutdatedDependencies.length; j++) {\r\n/******/ \t\t\t\t\tvar dependency = moduleOutdatedDependencies[j];\r\n/******/ \t\t\t\t\tvar idx = module.children.indexOf(dependency);\r\n/******/ \t\t\t\t\tif(idx >= 0) module.children.splice(idx, 1);\r\n/******/ \t\t\t\t}\r\n/******/ \t\t\t}\r\n/******/ \t\t}\r\n/******/ \t\r\n/******/ \t\t// Not in \"apply\" phase\r\n/******/ \t\thotSetStatus(\"apply\");\r\n/******/ \t\r\n/******/ \t\thotCurrentHash = hotUpdateNewHash;\r\n/******/ \t\r\n/******/ \t\t// insert new code\r\n/******/ \t\tfor(var moduleId in appliedUpdate) {\r\n/******/ \t\t\tif(Object.prototype.hasOwnProperty.call(appliedUpdate, moduleId)) {\r\n/******/ \t\t\t\tmodules[moduleId] = appliedUpdate[moduleId];\r\n/******/ \t\t\t}\r\n/******/ \t\t}\r\n/******/ \t\r\n/******/ \t\t// call accept handlers\r\n/******/ \t\tvar error = null;\r\n/******/ \t\tfor(var moduleId in outdatedDependencies) {\r\n/******/ \t\t\tif(Object.prototype.hasOwnProperty.call(outdatedDependencies, moduleId)) {\r\n/******/ \t\t\t\tvar module = installedModules[moduleId];\r\n/******/ \t\t\t\tvar moduleOutdatedDependencies = outdatedDependencies[moduleId];\r\n/******/ \t\t\t\tvar callbacks = [];\r\n/******/ \t\t\t\tfor(var i = 0; i < moduleOutdatedDependencies.length; i++) {\r\n/******/ \t\t\t\t\tvar dependency = moduleOutdatedDependencies[i];\r\n/******/ \t\t\t\t\tvar cb = module.hot._acceptedDependencies[dependency];\r\n/******/ \t\t\t\t\tif(callbacks.indexOf(cb) >= 0) continue;\r\n/******/ \t\t\t\t\tcallbacks.push(cb);\r\n/******/ \t\t\t\t}\r\n/******/ \t\t\t\tfor(var i = 0; i < callbacks.length; i++) {\r\n/******/ \t\t\t\t\tvar cb = callbacks[i];\r\n/******/ \t\t\t\t\ttry {\r\n/******/ \t\t\t\t\t\tcb(outdatedDependencies);\r\n/******/ \t\t\t\t\t} catch(err) {\r\n/******/ \t\t\t\t\t\tif(!error)\r\n/******/ \t\t\t\t\t\t\terror = err;\r\n/******/ \t\t\t\t\t}\r\n/******/ \t\t\t\t}\r\n/******/ \t\t\t}\r\n/******/ \t\t}\r\n/******/ \t\r\n/******/ \t\t// Load self accepted modules\r\n/******/ \t\tfor(var i = 0; i < outdatedSelfAcceptedModules.length; i++) {\r\n/******/ \t\t\tvar item = outdatedSelfAcceptedModules[i];\r\n/******/ \t\t\tvar moduleId = item.module;\r\n/******/ \t\t\thotCurrentParents = [moduleId];\r\n/******/ \t\t\ttry {\r\n/******/ \t\t\t\t__webpack_require__(moduleId);\r\n/******/ \t\t\t} catch(err) {\r\n/******/ \t\t\t\tif(typeof item.errorHandler === \"function\") {\r\n/******/ \t\t\t\t\ttry {\r\n/******/ \t\t\t\t\t\titem.errorHandler(err);\r\n/******/ \t\t\t\t\t} catch(err) {\r\n/******/ \t\t\t\t\t\tif(!error)\r\n/******/ \t\t\t\t\t\t\terror = err;\r\n/******/ \t\t\t\t\t}\r\n/******/ \t\t\t\t} else if(!error)\r\n/******/ \t\t\t\t\terror = err;\r\n/******/ \t\t\t}\r\n/******/ \t\t}\r\n/******/ \t\r\n/******/ \t\t// handle errors in accept handlers and self accepted module load\r\n/******/ \t\tif(error) {\r\n/******/ \t\t\thotSetStatus(\"fail\");\r\n/******/ \t\t\treturn callback(error);\r\n/******/ \t\t}\r\n/******/ \t\r\n/******/ \t\thotSetStatus(\"idle\");\r\n/******/ \t\tcallback(null, outdatedModules);\r\n/******/ \t}\r\n\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\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\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\texports: {},\n/******/ \t\t\tid: moduleId,\n/******/ \t\t\tloaded: false,\n/******/ \t\t\thot: hotCreateModule(moduleId),\n/******/ \t\t\tparents: hotCurrentParents,\n/******/ \t\t\tchildren: []\n/******/ \t\t};\n\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, hotCreateRequire(moduleId));\n\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.loaded = true;\n\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n\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// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n\n/******/ \t// __webpack_hash__\n/******/ \t__webpack_require__.h = function() { return hotCurrentHash; };\n\n/******/ \t// Load entry module and return exports\n/******/ \treturn hotCreateRequire(0)(0);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(1);\n\tmodule.exports = __webpack_require__(3);\n\n\n/***/ },\n/* 1 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/*\r\n\t\tMIT License http://www.opensource.org/licenses/mit-license.php\r\n\t\tAuthor Tobias Koppers @sokra\r\n\t*/\r\n\t/*globals window __webpack_hash__ */\r\n\tif(true) {\r\n\t\tvar lastData;\r\n\t\tvar upToDate = function upToDate() {\r\n\t\t\treturn lastData.indexOf(__webpack_require__.h()) >= 0;\r\n\t\t};\r\n\t\tvar check = function check() {\r\n\t\t\tmodule.hot.check(true, function(err, updatedModules) {\r\n\t\t\t\tif(err) {\r\n\t\t\t\t\tif(module.hot.status() in {\r\n\t\t\t\t\t\t\tabort: 1,\r\n\t\t\t\t\t\t\tfail: 1\r\n\t\t\t\t\t\t}) {\r\n\t\t\t\t\t\tconsole.warn(\"[HMR] Cannot apply update. Need to do a full reload!\");\r\n\t\t\t\t\t\tconsole.warn(\"[HMR] \" + err.stack || err.message);\r\n\t\t\t\t\t\twindow.location.reload();\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tconsole.warn(\"[HMR] Update failed: \" + err.stack || err.message);\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif(!updatedModules) {\r\n\t\t\t\t\tconsole.warn(\"[HMR] Cannot find update. Need to do a full reload!\");\r\n\t\t\t\t\tconsole.warn(\"[HMR] (Probably because of restarting the webpack-dev-server)\");\r\n\t\t\t\t\twindow.location.reload();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif(!upToDate()) {\r\n\t\t\t\t\tcheck();\r\n\t\t\t\t}\r\n\r\n\t\t\t\t__webpack_require__(2)(updatedModules, updatedModules);\r\n\r\n\t\t\t\tif(upToDate()) {\r\n\t\t\t\t\tconsole.log(\"[HMR] App is up to date.\");\r\n\t\t\t\t}\r\n\r\n\t\t\t});\r\n\t\t};\r\n\t\tvar addEventListener = window.addEventListener ? function(eventName, listener) {\r\n\t\t\twindow.addEventListener(eventName, listener, false);\r\n\t\t} : function(eventName, listener) {\r\n\t\t\twindow.attachEvent(\"on\" + eventName, listener);\r\n\t\t};\r\n\t\taddEventListener(\"message\", function(event) {\r\n\t\t\tif(typeof event.data === \"string\" && event.data.indexOf(\"webpackHotUpdate\") === 0) {\r\n\t\t\t\tlastData = event.data;\r\n\t\t\t\tif(!upToDate() && module.hot.status() === \"idle\") {\r\n\t\t\t\t\tconsole.log(\"[HMR] Checking for updates on the server...\");\r\n\t\t\t\t\tcheck();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tconsole.log(\"[HMR] Waiting for update signal from WDS...\");\r\n\t} else {\r\n\t\tthrow new Error(\"[HMR] Hot Module Replacement is disabled.\");\r\n\t}\r\n\n\n/***/ },\n/* 2 */\n/***/ function(module, exports) {\n\n\t/*\r\n\t\tMIT License http://www.opensource.org/licenses/mit-license.php\r\n\t\tAuthor Tobias Koppers @sokra\r\n\t*/\r\n\tmodule.exports = function(updatedModules, renewedModules) {\r\n\t\tvar unacceptedModules = updatedModules.filter(function(moduleId) {\r\n\t\t\treturn renewedModules && renewedModules.indexOf(moduleId) < 0;\r\n\t\t});\r\n\r\n\t\tif(unacceptedModules.length > 0) {\r\n\t\t\tconsole.warn(\"[HMR] The following modules couldn't be hot updated: (They would need a full reload!)\");\r\n\t\t\tunacceptedModules.forEach(function(moduleId) {\r\n\t\t\t\tconsole.warn(\"[HMR]  - \" + moduleId);\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tif(!renewedModules || renewedModules.length === 0) {\r\n\t\t\tconsole.log(\"[HMR] Nothing hot updated.\");\r\n\t\t} else {\r\n\t\t\tconsole.log(\"[HMR] Updated modules:\");\r\n\t\t\trenewedModules.forEach(function(moduleId) {\r\n\t\t\t\tconsole.log(\"[HMR]  - \" + moduleId);\r\n\t\t\t});\r\n\t\t}\r\n\t};\r\n\n\n/***/ },\n/* 3 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/*jshint browser:true */\n\t'use strict';\n\n\t__webpack_require__(4)();\n\tvar appModule = __webpack_require__(11);\n\n\tangular.element(document).ready(function () {\n\t  angular.bootstrap(document, [appModule.name], {\n\t    //strictDi: true\n\t  });\n\t});\n\n/***/ },\n/* 4 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\n\tmodule.exports = function () {\n\t  /* Styles */\n\t  __webpack_require__(5);\n\n\t  /* JS */\n\t  __webpack_require__(9);\n\t};\n\n/***/ },\n/* 5 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// style-loader: Adds some css to the DOM by adding a <style> tag\n\n\t// load the styles\n\tvar content = __webpack_require__(6);\n\tif(typeof content === 'string') content = [[module.id, content, '']];\n\t// add the styles to the DOM\n\tvar update = __webpack_require__(8)(content, {});\n\tif(content.locals) module.exports = content.locals;\n\t// Hot Module Replacement\n\tif(true) {\n\t\t// When the styles change, update the <style> tags\n\t\tif(!content.locals) {\n\t\t\tmodule.hot.accept(6, function() {\n\t\t\t\tvar newContent = __webpack_require__(6);\n\t\t\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\t\t\t\tupdate(newContent);\n\t\t\t});\n\t\t}\n\t\t// When the module is disposed, remove the <style> tags\n\t\tmodule.hot.dispose(function() { update(); });\n\t}\n\n/***/ },\n/* 6 */\n/***/ function(module, exports, __webpack_require__) {\n\n\texports = module.exports = __webpack_require__(7)();\n\t// imports\n\n\n\t// module\n\texports.push([module.id, \"body {\\n  background-color: red; }\\n\", \"\"]);\n\n\t// exports\n\n\n/***/ },\n/* 7 */\n/***/ function(module, exports) {\n\n\t/*\r\n\t\tMIT License http://www.opensource.org/licenses/mit-license.php\r\n\t\tAuthor Tobias Koppers @sokra\r\n\t*/\r\n\t// css base code, injected by the css-loader\r\n\tmodule.exports = function() {\r\n\t\tvar list = [];\r\n\r\n\t\t// return the list of modules as css string\r\n\t\tlist.toString = function toString() {\r\n\t\t\tvar result = [];\r\n\t\t\tfor(var i = 0; i < this.length; i++) {\r\n\t\t\t\tvar item = this[i];\r\n\t\t\t\tif(item[2]) {\r\n\t\t\t\t\tresult.push(\"@media \" + item[2] + \"{\" + item[1] + \"}\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\tresult.push(item[1]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn result.join(\"\");\r\n\t\t};\r\n\r\n\t\t// import a list of modules into the list\r\n\t\tlist.i = function(modules, mediaQuery) {\r\n\t\t\tif(typeof modules === \"string\")\r\n\t\t\t\tmodules = [[null, modules, \"\"]];\r\n\t\t\tvar alreadyImportedModules = {};\r\n\t\t\tfor(var i = 0; i < this.length; i++) {\r\n\t\t\t\tvar id = this[i][0];\r\n\t\t\t\tif(typeof id === \"number\")\r\n\t\t\t\t\talreadyImportedModules[id] = true;\r\n\t\t\t}\r\n\t\t\tfor(i = 0; i < modules.length; i++) {\r\n\t\t\t\tvar item = modules[i];\r\n\t\t\t\t// skip already imported module\r\n\t\t\t\t// this implementation is not 100% perfect for weird media query combinations\r\n\t\t\t\t//  when a module is imported multiple times with different media queries.\r\n\t\t\t\t//  I hope this will never occur (Hey this way we have smaller bundles)\r\n\t\t\t\tif(typeof item[0] !== \"number\" || !alreadyImportedModules[item[0]]) {\r\n\t\t\t\t\tif(mediaQuery && !item[2]) {\r\n\t\t\t\t\t\titem[2] = mediaQuery;\r\n\t\t\t\t\t} else if(mediaQuery) {\r\n\t\t\t\t\t\titem[2] = \"(\" + item[2] + \") and (\" + mediaQuery + \")\";\r\n\t\t\t\t\t}\r\n\t\t\t\t\tlist.push(item);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\t\treturn list;\r\n\t};\r\n\n\n/***/ },\n/* 8 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/*\r\n\t\tMIT License http://www.opensource.org/licenses/mit-license.php\r\n\t\tAuthor Tobias Koppers @sokra\r\n\t*/\r\n\tvar stylesInDom = {},\r\n\t\tmemoize = function(fn) {\r\n\t\t\tvar memo;\r\n\t\t\treturn function () {\r\n\t\t\t\tif (typeof memo === \"undefined\") memo = fn.apply(this, arguments);\r\n\t\t\t\treturn memo;\r\n\t\t\t};\r\n\t\t},\r\n\t\tisOldIE = memoize(function() {\r\n\t\t\treturn /msie [6-9]\\b/.test(window.navigator.userAgent.toLowerCase());\r\n\t\t}),\r\n\t\tgetHeadElement = memoize(function () {\r\n\t\t\treturn document.head || document.getElementsByTagName(\"head\")[0];\r\n\t\t}),\r\n\t\tsingletonElement = null,\r\n\t\tsingletonCounter = 0,\r\n\t\tstyleElementsInsertedAtTop = [];\r\n\r\n\tmodule.exports = function(list, options) {\r\n\t\tif(false) {\r\n\t\t\tif(typeof document !== \"object\") throw new Error(\"The style-loader cannot be used in a non-browser environment\");\r\n\t\t}\r\n\r\n\t\toptions = options || {};\r\n\t\t// Force single-tag solution on IE6-9, which has a hard limit on the # of <style>\r\n\t\t// tags it will allow on a page\r\n\t\tif (typeof options.singleton === \"undefined\") options.singleton = isOldIE();\r\n\r\n\t\t// By default, add <style> tags to the bottom of <head>.\r\n\t\tif (typeof options.insertAt === \"undefined\") options.insertAt = \"bottom\";\r\n\r\n\t\tvar styles = listToStyles(list);\r\n\t\taddStylesToDom(styles, options);\r\n\r\n\t\treturn function update(newList) {\r\n\t\t\tvar mayRemove = [];\r\n\t\t\tfor(var i = 0; i < styles.length; i++) {\r\n\t\t\t\tvar item = styles[i];\r\n\t\t\t\tvar domStyle = stylesInDom[item.id];\r\n\t\t\t\tdomStyle.refs--;\r\n\t\t\t\tmayRemove.push(domStyle);\r\n\t\t\t}\r\n\t\t\tif(newList) {\r\n\t\t\t\tvar newStyles = listToStyles(newList);\r\n\t\t\t\taddStylesToDom(newStyles, options);\r\n\t\t\t}\r\n\t\t\tfor(var i = 0; i < mayRemove.length; i++) {\r\n\t\t\t\tvar domStyle = mayRemove[i];\r\n\t\t\t\tif(domStyle.refs === 0) {\r\n\t\t\t\t\tfor(var j = 0; j < domStyle.parts.length; j++)\r\n\t\t\t\t\t\tdomStyle.parts[j]();\r\n\t\t\t\t\tdelete stylesInDom[domStyle.id];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\t}\r\n\r\n\tfunction addStylesToDom(styles, options) {\r\n\t\tfor(var i = 0; i < styles.length; i++) {\r\n\t\t\tvar item = styles[i];\r\n\t\t\tvar domStyle = stylesInDom[item.id];\r\n\t\t\tif(domStyle) {\r\n\t\t\t\tdomStyle.refs++;\r\n\t\t\t\tfor(var j = 0; j < domStyle.parts.length; j++) {\r\n\t\t\t\t\tdomStyle.parts[j](item.parts[j]);\r\n\t\t\t\t}\r\n\t\t\t\tfor(; j < item.parts.length; j++) {\r\n\t\t\t\t\tdomStyle.parts.push(addStyle(item.parts[j], options));\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tvar parts = [];\r\n\t\t\t\tfor(var j = 0; j < item.parts.length; j++) {\r\n\t\t\t\t\tparts.push(addStyle(item.parts[j], options));\r\n\t\t\t\t}\r\n\t\t\t\tstylesInDom[item.id] = {id: item.id, refs: 1, parts: parts};\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tfunction listToStyles(list) {\r\n\t\tvar styles = [];\r\n\t\tvar newStyles = {};\r\n\t\tfor(var i = 0; i < list.length; i++) {\r\n\t\t\tvar item = list[i];\r\n\t\t\tvar id = item[0];\r\n\t\t\tvar css = item[1];\r\n\t\t\tvar media = item[2];\r\n\t\t\tvar sourceMap = item[3];\r\n\t\t\tvar part = {css: css, media: media, sourceMap: sourceMap};\r\n\t\t\tif(!newStyles[id])\r\n\t\t\t\tstyles.push(newStyles[id] = {id: id, parts: [part]});\r\n\t\t\telse\r\n\t\t\t\tnewStyles[id].parts.push(part);\r\n\t\t}\r\n\t\treturn styles;\r\n\t}\r\n\r\n\tfunction insertStyleElement(options, styleElement) {\r\n\t\tvar head = getHeadElement();\r\n\t\tvar lastStyleElementInsertedAtTop = styleElementsInsertedAtTop[styleElementsInsertedAtTop.length - 1];\r\n\t\tif (options.insertAt === \"top\") {\r\n\t\t\tif(!lastStyleElementInsertedAtTop) {\r\n\t\t\t\thead.insertBefore(styleElement, head.firstChild);\r\n\t\t\t} else if(lastStyleElementInsertedAtTop.nextSibling) {\r\n\t\t\t\thead.insertBefore(styleElement, lastStyleElementInsertedAtTop.nextSibling);\r\n\t\t\t} else {\r\n\t\t\t\thead.appendChild(styleElement);\r\n\t\t\t}\r\n\t\t\tstyleElementsInsertedAtTop.push(styleElement);\r\n\t\t} else if (options.insertAt === \"bottom\") {\r\n\t\t\thead.appendChild(styleElement);\r\n\t\t} else {\r\n\t\t\tthrow new Error(\"Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.\");\r\n\t\t}\r\n\t}\r\n\r\n\tfunction removeStyleElement(styleElement) {\r\n\t\tstyleElement.parentNode.removeChild(styleElement);\r\n\t\tvar idx = styleElementsInsertedAtTop.indexOf(styleElement);\r\n\t\tif(idx >= 0) {\r\n\t\t\tstyleElementsInsertedAtTop.splice(idx, 1);\r\n\t\t}\r\n\t}\r\n\r\n\tfunction createStyleElement(options) {\r\n\t\tvar styleElement = document.createElement(\"style\");\r\n\t\tstyleElement.type = \"text/css\";\r\n\t\tinsertStyleElement(options, styleElement);\r\n\t\treturn styleElement;\r\n\t}\r\n\r\n\tfunction createLinkElement(options) {\r\n\t\tvar linkElement = document.createElement(\"link\");\r\n\t\tlinkElement.rel = \"stylesheet\";\r\n\t\tinsertStyleElement(options, linkElement);\r\n\t\treturn linkElement;\r\n\t}\r\n\r\n\tfunction addStyle(obj, options) {\r\n\t\tvar styleElement, update, remove;\r\n\r\n\t\tif (options.singleton) {\r\n\t\t\tvar styleIndex = singletonCounter++;\r\n\t\t\tstyleElement = singletonElement || (singletonElement = createStyleElement(options));\r\n\t\t\tupdate = applyToSingletonTag.bind(null, styleElement, styleIndex, false);\r\n\t\t\tremove = applyToSingletonTag.bind(null, styleElement, styleIndex, true);\r\n\t\t} else if(obj.sourceMap &&\r\n\t\t\ttypeof URL === \"function\" &&\r\n\t\t\ttypeof URL.createObjectURL === \"function\" &&\r\n\t\t\ttypeof URL.revokeObjectURL === \"function\" &&\r\n\t\t\ttypeof Blob === \"function\" &&\r\n\t\t\ttypeof btoa === \"function\") {\r\n\t\t\tstyleElement = createLinkElement(options);\r\n\t\t\tupdate = updateLink.bind(null, styleElement);\r\n\t\t\tremove = function() {\r\n\t\t\t\tremoveStyleElement(styleElement);\r\n\t\t\t\tif(styleElement.href)\r\n\t\t\t\t\tURL.revokeObjectURL(styleElement.href);\r\n\t\t\t};\r\n\t\t} else {\r\n\t\t\tstyleElement = createStyleElement(options);\r\n\t\t\tupdate = applyToTag.bind(null, styleElement);\r\n\t\t\tremove = function() {\r\n\t\t\t\tremoveStyleElement(styleElement);\r\n\t\t\t};\r\n\t\t}\r\n\r\n\t\tupdate(obj);\r\n\r\n\t\treturn function updateStyle(newObj) {\r\n\t\t\tif(newObj) {\r\n\t\t\t\tif(newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap)\r\n\t\t\t\t\treturn;\r\n\t\t\t\tupdate(obj = newObj);\r\n\t\t\t} else {\r\n\t\t\t\tremove();\r\n\t\t\t}\r\n\t\t};\r\n\t}\r\n\r\n\tvar replaceText = (function () {\r\n\t\tvar textStore = [];\r\n\r\n\t\treturn function (index, replacement) {\r\n\t\t\ttextStore[index] = replacement;\r\n\t\t\treturn textStore.filter(Boolean).join('\\n');\r\n\t\t};\r\n\t})();\r\n\r\n\tfunction applyToSingletonTag(styleElement, index, remove, obj) {\r\n\t\tvar css = remove ? \"\" : obj.css;\r\n\r\n\t\tif (styleElement.styleSheet) {\r\n\t\t\tstyleElement.styleSheet.cssText = replaceText(index, css);\r\n\t\t} else {\r\n\t\t\tvar cssNode = document.createTextNode(css);\r\n\t\t\tvar childNodes = styleElement.childNodes;\r\n\t\t\tif (childNodes[index]) styleElement.removeChild(childNodes[index]);\r\n\t\t\tif (childNodes.length) {\r\n\t\t\t\tstyleElement.insertBefore(cssNode, childNodes[index]);\r\n\t\t\t} else {\r\n\t\t\t\tstyleElement.appendChild(cssNode);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tfunction applyToTag(styleElement, obj) {\r\n\t\tvar css = obj.css;\r\n\t\tvar media = obj.media;\r\n\t\tvar sourceMap = obj.sourceMap;\r\n\r\n\t\tif(media) {\r\n\t\t\tstyleElement.setAttribute(\"media\", media)\r\n\t\t}\r\n\r\n\t\tif(styleElement.styleSheet) {\r\n\t\t\tstyleElement.styleSheet.cssText = css;\r\n\t\t} else {\r\n\t\t\twhile(styleElement.firstChild) {\r\n\t\t\t\tstyleElement.removeChild(styleElement.firstChild);\r\n\t\t\t}\r\n\t\t\tstyleElement.appendChild(document.createTextNode(css));\r\n\t\t}\r\n\t}\r\n\r\n\tfunction updateLink(linkElement, obj) {\r\n\t\tvar css = obj.css;\r\n\t\tvar media = obj.media;\r\n\t\tvar sourceMap = obj.sourceMap;\r\n\r\n\t\tif(sourceMap) {\r\n\t\t\t// http://stackoverflow.com/a/26603875\r\n\t\t\tcss += \"\\n/*# sourceMappingURL=data:application/json;base64,\" + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + \" */\";\r\n\t\t}\r\n\r\n\t\tvar blob = new Blob([css], { type: \"text/css\" });\r\n\r\n\t\tvar oldSrc = linkElement.href;\r\n\r\n\t\tlinkElement.href = URL.createObjectURL(blob);\r\n\r\n\t\tif(oldSrc)\r\n\t\t\tURL.revokeObjectURL(oldSrc);\r\n\t}\r\n\n\n/***/ },\n/* 9 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(10);\n\tmodule.exports = angular;\n\n\n/***/ },\n/* 10 */\n/***/ function(module, exports) {\n\n\t/**\n\t * @license AngularJS v1.4.8\n\t * (c) 2010-2015 Google, Inc. http://angularjs.org\n\t * License: MIT\n\t */\n\t(function(window, document, undefined) {'use strict';\n\n\t/**\n\t * @description\n\t *\n\t * This object provides a utility for producing rich Error messages within\n\t * Angular. It can be called as follows:\n\t *\n\t * var exampleMinErr = minErr('example');\n\t * throw exampleMinErr('one', 'This {0} is {1}', foo, bar);\n\t *\n\t * The above creates an instance of minErr in the example namespace. The\n\t * resulting error will have a namespaced error code of example.one.  The\n\t * resulting error will replace {0} with the value of foo, and {1} with the\n\t * value of bar. The object is not restricted in the number of arguments it can\n\t * take.\n\t *\n\t * If fewer arguments are specified than necessary for interpolation, the extra\n\t * interpolation markers will be preserved in the final string.\n\t *\n\t * Since data will be parsed statically during a build step, some restrictions\n\t * are applied with respect to how minErr instances are created and called.\n\t * Instances should have names of the form namespaceMinErr for a minErr created\n\t * using minErr('namespace') . Error codes, namespaces and template strings\n\t * should all be static strings, not variables or general expressions.\n\t *\n\t * @param {string} module The namespace to use for the new minErr instance.\n\t * @param {function} ErrorConstructor Custom error constructor to be instantiated when returning\n\t *   error from returned function, for cases when a particular type of error is useful.\n\t * @returns {function(code:string, template:string, ...templateArgs): Error} minErr instance\n\t */\n\n\tfunction minErr(module, ErrorConstructor) {\n\t  ErrorConstructor = ErrorConstructor || Error;\n\t  return function() {\n\t    var SKIP_INDEXES = 2;\n\n\t    var templateArgs = arguments,\n\t      code = templateArgs[0],\n\t      message = '[' + (module ? module + ':' : '') + code + '] ',\n\t      template = templateArgs[1],\n\t      paramPrefix, i;\n\n\t    message += template.replace(/\\{\\d+\\}/g, function(match) {\n\t      var index = +match.slice(1, -1),\n\t        shiftedIndex = index + SKIP_INDEXES;\n\n\t      if (shiftedIndex < templateArgs.length) {\n\t        return toDebugString(templateArgs[shiftedIndex]);\n\t      }\n\n\t      return match;\n\t    });\n\n\t    message += '\\nhttp://errors.angularjs.org/1.4.8/' +\n\t      (module ? module + '/' : '') + code;\n\n\t    for (i = SKIP_INDEXES, paramPrefix = '?'; i < templateArgs.length; i++, paramPrefix = '&') {\n\t      message += paramPrefix + 'p' + (i - SKIP_INDEXES) + '=' +\n\t        encodeURIComponent(toDebugString(templateArgs[i]));\n\t    }\n\n\t    return new ErrorConstructor(message);\n\t  };\n\t}\n\n\t/* We need to tell jshint what variables are being exported */\n\t/* global angular: true,\n\t  msie: true,\n\t  jqLite: true,\n\t  jQuery: true,\n\t  slice: true,\n\t  splice: true,\n\t  push: true,\n\t  toString: true,\n\t  ngMinErr: true,\n\t  angularModule: true,\n\t  uid: true,\n\t  REGEX_STRING_REGEXP: true,\n\t  VALIDITY_STATE_PROPERTY: true,\n\n\t  lowercase: true,\n\t  uppercase: true,\n\t  manualLowercase: true,\n\t  manualUppercase: true,\n\t  nodeName_: true,\n\t  isArrayLike: true,\n\t  forEach: true,\n\t  forEachSorted: true,\n\t  reverseParams: true,\n\t  nextUid: true,\n\t  setHashKey: true,\n\t  extend: true,\n\t  toInt: true,\n\t  inherit: true,\n\t  merge: true,\n\t  noop: true,\n\t  identity: true,\n\t  valueFn: true,\n\t  isUndefined: true,\n\t  isDefined: true,\n\t  isObject: true,\n\t  isBlankObject: true,\n\t  isString: true,\n\t  isNumber: true,\n\t  isDate: true,\n\t  isArray: true,\n\t  isFunction: true,\n\t  isRegExp: true,\n\t  isWindow: true,\n\t  isScope: true,\n\t  isFile: true,\n\t  isFormData: true,\n\t  isBlob: true,\n\t  isBoolean: true,\n\t  isPromiseLike: true,\n\t  trim: true,\n\t  escapeForRegexp: true,\n\t  isElement: true,\n\t  makeMap: true,\n\t  includes: true,\n\t  arrayRemove: true,\n\t  copy: true,\n\t  shallowCopy: true,\n\t  equals: true,\n\t  csp: true,\n\t  jq: true,\n\t  concat: true,\n\t  sliceArgs: true,\n\t  bind: true,\n\t  toJsonReplacer: true,\n\t  toJson: true,\n\t  fromJson: true,\n\t  convertTimezoneToLocal: true,\n\t  timezoneToOffset: true,\n\t  startingTag: true,\n\t  tryDecodeURIComponent: true,\n\t  parseKeyValue: true,\n\t  toKeyValue: true,\n\t  encodeUriSegment: true,\n\t  encodeUriQuery: true,\n\t  angularInit: true,\n\t  bootstrap: true,\n\t  getTestability: true,\n\t  snake_case: true,\n\t  bindJQuery: true,\n\t  assertArg: true,\n\t  assertArgFn: true,\n\t  assertNotHasOwnProperty: true,\n\t  getter: true,\n\t  getBlockNodes: true,\n\t  hasOwnProperty: true,\n\t  createMap: true,\n\n\t  NODE_TYPE_ELEMENT: true,\n\t  NODE_TYPE_ATTRIBUTE: true,\n\t  NODE_TYPE_TEXT: true,\n\t  NODE_TYPE_COMMENT: true,\n\t  NODE_TYPE_DOCUMENT: true,\n\t  NODE_TYPE_DOCUMENT_FRAGMENT: true,\n\t*/\n\n\t////////////////////////////////////\n\n\t/**\n\t * @ngdoc module\n\t * @name ng\n\t * @module ng\n\t * @description\n\t *\n\t * # ng (core module)\n\t * The ng module is loaded by default when an AngularJS application is started. The module itself\n\t * contains the essential components for an AngularJS application to function. The table below\n\t * lists a high level breakdown of each of the services/factories, filters, directives and testing\n\t * components available within this core module.\n\t *\n\t * <div doc-module-components=\"ng\"></div>\n\t */\n\n\tvar REGEX_STRING_REGEXP = /^\\/(.+)\\/([a-z]*)$/;\n\n\t// The name of a form control's ValidityState property.\n\t// This is used so that it's possible for internal tests to create mock ValidityStates.\n\tvar VALIDITY_STATE_PROPERTY = 'validity';\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.lowercase\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description Converts the specified string to lowercase.\n\t * @param {string} string String to be converted to lowercase.\n\t * @returns {string} Lowercased string.\n\t */\n\tvar lowercase = function(string) {return isString(string) ? string.toLowerCase() : string;};\n\tvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.uppercase\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description Converts the specified string to uppercase.\n\t * @param {string} string String to be converted to uppercase.\n\t * @returns {string} Uppercased string.\n\t */\n\tvar uppercase = function(string) {return isString(string) ? string.toUpperCase() : string;};\n\n\n\tvar manualLowercase = function(s) {\n\t  /* jshint bitwise: false */\n\t  return isString(s)\n\t      ? s.replace(/[A-Z]/g, function(ch) {return String.fromCharCode(ch.charCodeAt(0) | 32);})\n\t      : s;\n\t};\n\tvar manualUppercase = function(s) {\n\t  /* jshint bitwise: false */\n\t  return isString(s)\n\t      ? s.replace(/[a-z]/g, function(ch) {return String.fromCharCode(ch.charCodeAt(0) & ~32);})\n\t      : s;\n\t};\n\n\n\t// String#toLowerCase and String#toUpperCase don't produce correct results in browsers with Turkish\n\t// locale, for this reason we need to detect this case and redefine lowercase/uppercase methods\n\t// with correct but slower alternatives.\n\tif ('i' !== 'I'.toLowerCase()) {\n\t  lowercase = manualLowercase;\n\t  uppercase = manualUppercase;\n\t}\n\n\n\tvar\n\t    msie,             // holds major version number for IE, or NaN if UA is not IE.\n\t    jqLite,           // delay binding since jQuery could be loaded after us.\n\t    jQuery,           // delay binding\n\t    slice             = [].slice,\n\t    splice            = [].splice,\n\t    push              = [].push,\n\t    toString          = Object.prototype.toString,\n\t    getPrototypeOf    = Object.getPrototypeOf,\n\t    ngMinErr          = minErr('ng'),\n\n\t    /** @name angular */\n\t    angular           = window.angular || (window.angular = {}),\n\t    angularModule,\n\t    uid               = 0;\n\n\t/**\n\t * documentMode is an IE-only property\n\t * http://msdn.microsoft.com/en-us/library/ie/cc196988(v=vs.85).aspx\n\t */\n\tmsie = document.documentMode;\n\n\n\t/**\n\t * @private\n\t * @param {*} obj\n\t * @return {boolean} Returns true if `obj` is an array or array-like object (NodeList, Arguments,\n\t *                   String ...)\n\t */\n\tfunction isArrayLike(obj) {\n\n\t  // `null`, `undefined` and `window` are not array-like\n\t  if (obj == null || isWindow(obj)) return false;\n\n\t  // arrays, strings and jQuery/jqLite objects are array like\n\t  // * jqLite is either the jQuery or jqLite constructor function\n\t  // * we have to check the existance of jqLite first as this method is called\n\t  //   via the forEach method when constructing the jqLite object in the first place\n\t  if (isArray(obj) || isString(obj) || (jqLite && obj instanceof jqLite)) return true;\n\n\t  // Support: iOS 8.2 (not reproducible in simulator)\n\t  // \"length\" in obj used to prevent JIT error (gh-11508)\n\t  var length = \"length\" in Object(obj) && obj.length;\n\n\t  // NodeList objects (with `item` method) and\n\t  // other objects with suitable length characteristics are array-like\n\t  return isNumber(length) &&\n\t    (length >= 0 && (length - 1) in obj || typeof obj.item == 'function');\n\t}\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.forEach\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Invokes the `iterator` function once for each item in `obj` collection, which can be either an\n\t * object or an array. The `iterator` function is invoked with `iterator(value, key, obj)`, where `value`\n\t * is the value of an object property or an array element, `key` is the object property key or\n\t * array element index and obj is the `obj` itself. Specifying a `context` for the function is optional.\n\t *\n\t * It is worth noting that `.forEach` does not iterate over inherited properties because it filters\n\t * using the `hasOwnProperty` method.\n\t *\n\t * Unlike ES262's\n\t * [Array.prototype.forEach](http://www.ecma-international.org/ecma-262/5.1/#sec-15.4.4.18),\n\t * Providing 'undefined' or 'null' values for `obj` will not throw a TypeError, but rather just\n\t * return the value provided.\n\t *\n\t   ```js\n\t     var values = {name: 'misko', gender: 'male'};\n\t     var log = [];\n\t     angular.forEach(values, function(value, key) {\n\t       this.push(key + ': ' + value);\n\t     }, log);\n\t     expect(log).toEqual(['name: misko', 'gender: male']);\n\t   ```\n\t *\n\t * @param {Object|Array} obj Object to iterate over.\n\t * @param {Function} iterator Iterator function.\n\t * @param {Object=} context Object to become context (`this`) for the iterator function.\n\t * @returns {Object|Array} Reference to `obj`.\n\t */\n\n\tfunction forEach(obj, iterator, context) {\n\t  var key, length;\n\t  if (obj) {\n\t    if (isFunction(obj)) {\n\t      for (key in obj) {\n\t        // Need to check if hasOwnProperty exists,\n\t        // as on IE8 the result of querySelectorAll is an object without a hasOwnProperty function\n\t        if (key != 'prototype' && key != 'length' && key != 'name' && (!obj.hasOwnProperty || obj.hasOwnProperty(key))) {\n\t          iterator.call(context, obj[key], key, obj);\n\t        }\n\t      }\n\t    } else if (isArray(obj) || isArrayLike(obj)) {\n\t      var isPrimitive = typeof obj !== 'object';\n\t      for (key = 0, length = obj.length; key < length; key++) {\n\t        if (isPrimitive || key in obj) {\n\t          iterator.call(context, obj[key], key, obj);\n\t        }\n\t      }\n\t    } else if (obj.forEach && obj.forEach !== forEach) {\n\t        obj.forEach(iterator, context, obj);\n\t    } else if (isBlankObject(obj)) {\n\t      // createMap() fast path --- Safe to avoid hasOwnProperty check because prototype chain is empty\n\t      for (key in obj) {\n\t        iterator.call(context, obj[key], key, obj);\n\t      }\n\t    } else if (typeof obj.hasOwnProperty === 'function') {\n\t      // Slow path for objects inheriting Object.prototype, hasOwnProperty check needed\n\t      for (key in obj) {\n\t        if (obj.hasOwnProperty(key)) {\n\t          iterator.call(context, obj[key], key, obj);\n\t        }\n\t      }\n\t    } else {\n\t      // Slow path for objects which do not have a method `hasOwnProperty`\n\t      for (key in obj) {\n\t        if (hasOwnProperty.call(obj, key)) {\n\t          iterator.call(context, obj[key], key, obj);\n\t        }\n\t      }\n\t    }\n\t  }\n\t  return obj;\n\t}\n\n\tfunction forEachSorted(obj, iterator, context) {\n\t  var keys = Object.keys(obj).sort();\n\t  for (var i = 0; i < keys.length; i++) {\n\t    iterator.call(context, obj[keys[i]], keys[i]);\n\t  }\n\t  return keys;\n\t}\n\n\n\t/**\n\t * when using forEach the params are value, key, but it is often useful to have key, value.\n\t * @param {function(string, *)} iteratorFn\n\t * @returns {function(*, string)}\n\t */\n\tfunction reverseParams(iteratorFn) {\n\t  return function(value, key) { iteratorFn(key, value); };\n\t}\n\n\t/**\n\t * A consistent way of creating unique IDs in angular.\n\t *\n\t * Using simple numbers allows us to generate 28.6 million unique ids per second for 10 years before\n\t * we hit number precision issues in JavaScript.\n\t *\n\t * Math.pow(2,53) / 60 / 60 / 24 / 365 / 10 = 28.6M\n\t *\n\t * @returns {number} an unique alpha-numeric string\n\t */\n\tfunction nextUid() {\n\t  return ++uid;\n\t}\n\n\n\t/**\n\t * Set or clear the hashkey for an object.\n\t * @param obj object\n\t * @param h the hashkey (!truthy to delete the hashkey)\n\t */\n\tfunction setHashKey(obj, h) {\n\t  if (h) {\n\t    obj.$$hashKey = h;\n\t  } else {\n\t    delete obj.$$hashKey;\n\t  }\n\t}\n\n\n\tfunction baseExtend(dst, objs, deep) {\n\t  var h = dst.$$hashKey;\n\n\t  for (var i = 0, ii = objs.length; i < ii; ++i) {\n\t    var obj = objs[i];\n\t    if (!isObject(obj) && !isFunction(obj)) continue;\n\t    var keys = Object.keys(obj);\n\t    for (var j = 0, jj = keys.length; j < jj; j++) {\n\t      var key = keys[j];\n\t      var src = obj[key];\n\n\t      if (deep && isObject(src)) {\n\t        if (isDate(src)) {\n\t          dst[key] = new Date(src.valueOf());\n\t        } else if (isRegExp(src)) {\n\t          dst[key] = new RegExp(src);\n\t        } else if (src.nodeName) {\n\t          dst[key] = src.cloneNode(true);\n\t        } else if (isElement(src)) {\n\t          dst[key] = src.clone();\n\t        } else {\n\t          if (!isObject(dst[key])) dst[key] = isArray(src) ? [] : {};\n\t          baseExtend(dst[key], [src], true);\n\t        }\n\t      } else {\n\t        dst[key] = src;\n\t      }\n\t    }\n\t  }\n\n\t  setHashKey(dst, h);\n\t  return dst;\n\t}\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.extend\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Extends the destination object `dst` by copying own enumerable properties from the `src` object(s)\n\t * to `dst`. You can specify multiple `src` objects. If you want to preserve original objects, you can do so\n\t * by passing an empty object as the target: `var object = angular.extend({}, object1, object2)`.\n\t *\n\t * **Note:** Keep in mind that `angular.extend` does not support recursive merge (deep copy). Use\n\t * {@link angular.merge} for this.\n\t *\n\t * @param {Object} dst Destination object.\n\t * @param {...Object} src Source object(s).\n\t * @returns {Object} Reference to `dst`.\n\t */\n\tfunction extend(dst) {\n\t  return baseExtend(dst, slice.call(arguments, 1), false);\n\t}\n\n\n\t/**\n\t* @ngdoc function\n\t* @name angular.merge\n\t* @module ng\n\t* @kind function\n\t*\n\t* @description\n\t* Deeply extends the destination object `dst` by copying own enumerable properties from the `src` object(s)\n\t* to `dst`. You can specify multiple `src` objects. If you want to preserve original objects, you can do so\n\t* by passing an empty object as the target: `var object = angular.merge({}, object1, object2)`.\n\t*\n\t* Unlike {@link angular.extend extend()}, `merge()` recursively descends into object properties of source\n\t* objects, performing a deep copy.\n\t*\n\t* @param {Object} dst Destination object.\n\t* @param {...Object} src Source object(s).\n\t* @returns {Object} Reference to `dst`.\n\t*/\n\tfunction merge(dst) {\n\t  return baseExtend(dst, slice.call(arguments, 1), true);\n\t}\n\n\n\n\tfunction toInt(str) {\n\t  return parseInt(str, 10);\n\t}\n\n\n\tfunction inherit(parent, extra) {\n\t  return extend(Object.create(parent), extra);\n\t}\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.noop\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * A function that performs no operations. This function can be useful when writing code in the\n\t * functional style.\n\t   ```js\n\t     function foo(callback) {\n\t       var result = calculateResult();\n\t       (callback || angular.noop)(result);\n\t     }\n\t   ```\n\t */\n\tfunction noop() {}\n\tnoop.$inject = [];\n\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.identity\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * A function that returns its first argument. This function is useful when writing code in the\n\t * functional style.\n\t *\n\t   ```js\n\t     function transformer(transformationFn, value) {\n\t       return (transformationFn || angular.identity)(value);\n\t     };\n\t   ```\n\t  * @param {*} value to be returned.\n\t  * @returns {*} the value passed in.\n\t */\n\tfunction identity($) {return $;}\n\tidentity.$inject = [];\n\n\n\tfunction valueFn(value) {return function() {return value;};}\n\n\tfunction hasCustomToString(obj) {\n\t  return isFunction(obj.toString) && obj.toString !== toString;\n\t}\n\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.isUndefined\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Determines if a reference is undefined.\n\t *\n\t * @param {*} value Reference to check.\n\t * @returns {boolean} True if `value` is undefined.\n\t */\n\tfunction isUndefined(value) {return typeof value === 'undefined';}\n\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.isDefined\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Determines if a reference is defined.\n\t *\n\t * @param {*} value Reference to check.\n\t * @returns {boolean} True if `value` is defined.\n\t */\n\tfunction isDefined(value) {return typeof value !== 'undefined';}\n\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.isObject\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Determines if a reference is an `Object`. Unlike `typeof` in JavaScript, `null`s are not\n\t * considered to be objects. Note that JavaScript arrays are objects.\n\t *\n\t * @param {*} value Reference to check.\n\t * @returns {boolean} True if `value` is an `Object` but not `null`.\n\t */\n\tfunction isObject(value) {\n\t  // http://jsperf.com/isobject4\n\t  return value !== null && typeof value === 'object';\n\t}\n\n\n\t/**\n\t * Determine if a value is an object with a null prototype\n\t *\n\t * @returns {boolean} True if `value` is an `Object` with a null prototype\n\t */\n\tfunction isBlankObject(value) {\n\t  return value !== null && typeof value === 'object' && !getPrototypeOf(value);\n\t}\n\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.isString\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Determines if a reference is a `String`.\n\t *\n\t * @param {*} value Reference to check.\n\t * @returns {boolean} True if `value` is a `String`.\n\t */\n\tfunction isString(value) {return typeof value === 'string';}\n\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.isNumber\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Determines if a reference is a `Number`.\n\t *\n\t * This includes the \"special\" numbers `NaN`, `+Infinity` and `-Infinity`.\n\t *\n\t * If you wish to exclude these then you can use the native\n\t * [`isFinite'](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/isFinite)\n\t * method.\n\t *\n\t * @param {*} value Reference to check.\n\t * @returns {boolean} True if `value` is a `Number`.\n\t */\n\tfunction isNumber(value) {return typeof value === 'number';}\n\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.isDate\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Determines if a value is a date.\n\t *\n\t * @param {*} value Reference to check.\n\t * @returns {boolean} True if `value` is a `Date`.\n\t */\n\tfunction isDate(value) {\n\t  return toString.call(value) === '[object Date]';\n\t}\n\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.isArray\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Determines if a reference is an `Array`.\n\t *\n\t * @param {*} value Reference to check.\n\t * @returns {boolean} True if `value` is an `Array`.\n\t */\n\tvar isArray = Array.isArray;\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.isFunction\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Determines if a reference is a `Function`.\n\t *\n\t * @param {*} value Reference to check.\n\t * @returns {boolean} True if `value` is a `Function`.\n\t */\n\tfunction isFunction(value) {return typeof value === 'function';}\n\n\n\t/**\n\t * Determines if a value is a regular expression object.\n\t *\n\t * @private\n\t * @param {*} value Reference to check.\n\t * @returns {boolean} True if `value` is a `RegExp`.\n\t */\n\tfunction isRegExp(value) {\n\t  return toString.call(value) === '[object RegExp]';\n\t}\n\n\n\t/**\n\t * Checks if `obj` is a window object.\n\t *\n\t * @private\n\t * @param {*} obj Object to check\n\t * @returns {boolean} True if `obj` is a window obj.\n\t */\n\tfunction isWindow(obj) {\n\t  return obj && obj.window === obj;\n\t}\n\n\n\tfunction isScope(obj) {\n\t  return obj && obj.$evalAsync && obj.$watch;\n\t}\n\n\n\tfunction isFile(obj) {\n\t  return toString.call(obj) === '[object File]';\n\t}\n\n\n\tfunction isFormData(obj) {\n\t  return toString.call(obj) === '[object FormData]';\n\t}\n\n\n\tfunction isBlob(obj) {\n\t  return toString.call(obj) === '[object Blob]';\n\t}\n\n\n\tfunction isBoolean(value) {\n\t  return typeof value === 'boolean';\n\t}\n\n\n\tfunction isPromiseLike(obj) {\n\t  return obj && isFunction(obj.then);\n\t}\n\n\n\tvar TYPED_ARRAY_REGEXP = /^\\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array\\]$/;\n\tfunction isTypedArray(value) {\n\t  return value && isNumber(value.length) && TYPED_ARRAY_REGEXP.test(toString.call(value));\n\t}\n\n\n\tvar trim = function(value) {\n\t  return isString(value) ? value.trim() : value;\n\t};\n\n\t// Copied from:\n\t// http://docs.closure-library.googlecode.com/git/local_closure_goog_string_string.js.source.html#line1021\n\t// Prereq: s is a string.\n\tvar escapeForRegexp = function(s) {\n\t  return s.replace(/([-()\\[\\]{}+?*.$\\^|,:#<!\\\\])/g, '\\\\$1').\n\t           replace(/\\x08/g, '\\\\x08');\n\t};\n\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.isElement\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Determines if a reference is a DOM element (or wrapped jQuery element).\n\t *\n\t * @param {*} value Reference to check.\n\t * @returns {boolean} True if `value` is a DOM element (or wrapped jQuery element).\n\t */\n\tfunction isElement(node) {\n\t  return !!(node &&\n\t    (node.nodeName  // we are a direct element\n\t    || (node.prop && node.attr && node.find)));  // we have an on and find method part of jQuery API\n\t}\n\n\t/**\n\t * @param str 'key1,key2,...'\n\t * @returns {object} in the form of {key1:true, key2:true, ...}\n\t */\n\tfunction makeMap(str) {\n\t  var obj = {}, items = str.split(\",\"), i;\n\t  for (i = 0; i < items.length; i++) {\n\t    obj[items[i]] = true;\n\t  }\n\t  return obj;\n\t}\n\n\n\tfunction nodeName_(element) {\n\t  return lowercase(element.nodeName || (element[0] && element[0].nodeName));\n\t}\n\n\tfunction includes(array, obj) {\n\t  return Array.prototype.indexOf.call(array, obj) != -1;\n\t}\n\n\tfunction arrayRemove(array, value) {\n\t  var index = array.indexOf(value);\n\t  if (index >= 0) {\n\t    array.splice(index, 1);\n\t  }\n\t  return index;\n\t}\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.copy\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Creates a deep copy of `source`, which should be an object or an array.\n\t *\n\t * * If no destination is supplied, a copy of the object or array is created.\n\t * * If a destination is provided, all of its elements (for arrays) or properties (for objects)\n\t *   are deleted and then all elements/properties from the source are copied to it.\n\t * * If `source` is not an object or array (inc. `null` and `undefined`), `source` is returned.\n\t * * If `source` is identical to 'destination' an exception will be thrown.\n\t *\n\t * @param {*} source The source that will be used to make a copy.\n\t *                   Can be any type, including primitives, `null`, and `undefined`.\n\t * @param {(Object|Array)=} destination Destination into which the source is copied. If\n\t *     provided, must be of the same type as `source`.\n\t * @returns {*} The copy or updated `destination`, if `destination` was specified.\n\t *\n\t * @example\n\t <example module=\"copyExample\">\n\t <file name=\"index.html\">\n\t <div ng-controller=\"ExampleController\">\n\t <form novalidate class=\"simple-form\">\n\t Name: <input type=\"text\" ng-model=\"user.name\" /><br />\n\t E-mail: <input type=\"email\" ng-model=\"user.email\" /><br />\n\t Gender: <input type=\"radio\" ng-model=\"user.gender\" value=\"male\" />male\n\t <input type=\"radio\" ng-model=\"user.gender\" value=\"female\" />female<br />\n\t <button ng-click=\"reset()\">RESET</button>\n\t <button ng-click=\"update(user)\">SAVE</button>\n\t </form>\n\t <pre>form = {{user | json}}</pre>\n\t <pre>master = {{master | json}}</pre>\n\t </div>\n\n\t <script>\n\t  angular.module('copyExample', [])\n\t    .controller('ExampleController', ['$scope', function($scope) {\n\t      $scope.master= {};\n\n\t      $scope.update = function(user) {\n\t        // Example with 1 argument\n\t        $scope.master= angular.copy(user);\n\t      };\n\n\t      $scope.reset = function() {\n\t        // Example with 2 arguments\n\t        angular.copy($scope.master, $scope.user);\n\t      };\n\n\t      $scope.reset();\n\t    }]);\n\t </script>\n\t </file>\n\t </example>\n\t */\n\tfunction copy(source, destination) {\n\t  var stackSource = [];\n\t  var stackDest = [];\n\n\t  if (destination) {\n\t    if (isTypedArray(destination)) {\n\t      throw ngMinErr('cpta', \"Can't copy! TypedArray destination cannot be mutated.\");\n\t    }\n\t    if (source === destination) {\n\t      throw ngMinErr('cpi', \"Can't copy! Source and destination are identical.\");\n\t    }\n\n\t    // Empty the destination object\n\t    if (isArray(destination)) {\n\t      destination.length = 0;\n\t    } else {\n\t      forEach(destination, function(value, key) {\n\t        if (key !== '$$hashKey') {\n\t          delete destination[key];\n\t        }\n\t      });\n\t    }\n\n\t    stackSource.push(source);\n\t    stackDest.push(destination);\n\t    return copyRecurse(source, destination);\n\t  }\n\n\t  return copyElement(source);\n\n\t  function copyRecurse(source, destination) {\n\t    var h = destination.$$hashKey;\n\t    var result, key;\n\t    if (isArray(source)) {\n\t      for (var i = 0, ii = source.length; i < ii; i++) {\n\t        destination.push(copyElement(source[i]));\n\t      }\n\t    } else if (isBlankObject(source)) {\n\t      // createMap() fast path --- Safe to avoid hasOwnProperty check because prototype chain is empty\n\t      for (key in source) {\n\t        destination[key] = copyElement(source[key]);\n\t      }\n\t    } else if (source && typeof source.hasOwnProperty === 'function') {\n\t      // Slow path, which must rely on hasOwnProperty\n\t      for (key in source) {\n\t        if (source.hasOwnProperty(key)) {\n\t          destination[key] = copyElement(source[key]);\n\t        }\n\t      }\n\t    } else {\n\t      // Slowest path --- hasOwnProperty can't be called as a method\n\t      for (key in source) {\n\t        if (hasOwnProperty.call(source, key)) {\n\t          destination[key] = copyElement(source[key]);\n\t        }\n\t      }\n\t    }\n\t    setHashKey(destination, h);\n\t    return destination;\n\t  }\n\n\t  function copyElement(source) {\n\t    // Simple values\n\t    if (!isObject(source)) {\n\t      return source;\n\t    }\n\n\t    // Already copied values\n\t    var index = stackSource.indexOf(source);\n\t    if (index !== -1) {\n\t      return stackDest[index];\n\t    }\n\n\t    if (isWindow(source) || isScope(source)) {\n\t      throw ngMinErr('cpws',\n\t        \"Can't copy! Making copies of Window or Scope instances is not supported.\");\n\t    }\n\n\t    var needsRecurse = false;\n\t    var destination;\n\n\t    if (isArray(source)) {\n\t      destination = [];\n\t      needsRecurse = true;\n\t    } else if (isTypedArray(source)) {\n\t      destination = new source.constructor(source);\n\t    } else if (isDate(source)) {\n\t      destination = new Date(source.getTime());\n\t    } else if (isRegExp(source)) {\n\t      destination = new RegExp(source.source, source.toString().match(/[^\\/]*$/)[0]);\n\t      destination.lastIndex = source.lastIndex;\n\t    } else if (isFunction(source.cloneNode)) {\n\t        destination = source.cloneNode(true);\n\t    } else {\n\t      destination = Object.create(getPrototypeOf(source));\n\t      needsRecurse = true;\n\t    }\n\n\t    stackSource.push(source);\n\t    stackDest.push(destination);\n\n\t    return needsRecurse\n\t      ? copyRecurse(source, destination)\n\t      : destination;\n\t  }\n\t}\n\n\t/**\n\t * Creates a shallow copy of an object, an array or a primitive.\n\t *\n\t * Assumes that there are no proto properties for objects.\n\t */\n\tfunction shallowCopy(src, dst) {\n\t  if (isArray(src)) {\n\t    dst = dst || [];\n\n\t    for (var i = 0, ii = src.length; i < ii; i++) {\n\t      dst[i] = src[i];\n\t    }\n\t  } else if (isObject(src)) {\n\t    dst = dst || {};\n\n\t    for (var key in src) {\n\t      if (!(key.charAt(0) === '$' && key.charAt(1) === '$')) {\n\t        dst[key] = src[key];\n\t      }\n\t    }\n\t  }\n\n\t  return dst || src;\n\t}\n\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.equals\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Determines if two objects or two values are equivalent. Supports value types, regular\n\t * expressions, arrays and objects.\n\t *\n\t * Two objects or values are considered equivalent if at least one of the following is true:\n\t *\n\t * * Both objects or values pass `===` comparison.\n\t * * Both objects or values are of the same type and all of their properties are equal by\n\t *   comparing them with `angular.equals`.\n\t * * Both values are NaN. (In JavaScript, NaN == NaN => false. But we consider two NaN as equal)\n\t * * Both values represent the same regular expression (In JavaScript,\n\t *   /abc/ == /abc/ => false. But we consider two regular expressions as equal when their textual\n\t *   representation matches).\n\t *\n\t * During a property comparison, properties of `function` type and properties with names\n\t * that begin with `$` are ignored.\n\t *\n\t * Scope and DOMWindow objects are being compared only by identify (`===`).\n\t *\n\t * @param {*} o1 Object or value to compare.\n\t * @param {*} o2 Object or value to compare.\n\t * @returns {boolean} True if arguments are equal.\n\t */\n\tfunction equals(o1, o2) {\n\t  if (o1 === o2) return true;\n\t  if (o1 === null || o2 === null) return false;\n\t  if (o1 !== o1 && o2 !== o2) return true; // NaN === NaN\n\t  var t1 = typeof o1, t2 = typeof o2, length, key, keySet;\n\t  if (t1 == t2) {\n\t    if (t1 == 'object') {\n\t      if (isArray(o1)) {\n\t        if (!isArray(o2)) return false;\n\t        if ((length = o1.length) == o2.length) {\n\t          for (key = 0; key < length; key++) {\n\t            if (!equals(o1[key], o2[key])) return false;\n\t          }\n\t          return true;\n\t        }\n\t      } else if (isDate(o1)) {\n\t        if (!isDate(o2)) return false;\n\t        return equals(o1.getTime(), o2.getTime());\n\t      } else if (isRegExp(o1)) {\n\t        return isRegExp(o2) ? o1.toString() == o2.toString() : false;\n\t      } else {\n\t        if (isScope(o1) || isScope(o2) || isWindow(o1) || isWindow(o2) ||\n\t          isArray(o2) || isDate(o2) || isRegExp(o2)) return false;\n\t        keySet = createMap();\n\t        for (key in o1) {\n\t          if (key.charAt(0) === '$' || isFunction(o1[key])) continue;\n\t          if (!equals(o1[key], o2[key])) return false;\n\t          keySet[key] = true;\n\t        }\n\t        for (key in o2) {\n\t          if (!(key in keySet) &&\n\t              key.charAt(0) !== '$' &&\n\t              isDefined(o2[key]) &&\n\t              !isFunction(o2[key])) return false;\n\t        }\n\t        return true;\n\t      }\n\t    }\n\t  }\n\t  return false;\n\t}\n\n\tvar csp = function() {\n\t  if (!isDefined(csp.rules)) {\n\n\n\t    var ngCspElement = (document.querySelector('[ng-csp]') ||\n\t                    document.querySelector('[data-ng-csp]'));\n\n\t    if (ngCspElement) {\n\t      var ngCspAttribute = ngCspElement.getAttribute('ng-csp') ||\n\t                    ngCspElement.getAttribute('data-ng-csp');\n\t      csp.rules = {\n\t        noUnsafeEval: !ngCspAttribute || (ngCspAttribute.indexOf('no-unsafe-eval') !== -1),\n\t        noInlineStyle: !ngCspAttribute || (ngCspAttribute.indexOf('no-inline-style') !== -1)\n\t      };\n\t    } else {\n\t      csp.rules = {\n\t        noUnsafeEval: noUnsafeEval(),\n\t        noInlineStyle: false\n\t      };\n\t    }\n\t  }\n\n\t  return csp.rules;\n\n\t  function noUnsafeEval() {\n\t    try {\n\t      /* jshint -W031, -W054 */\n\t      new Function('');\n\t      /* jshint +W031, +W054 */\n\t      return false;\n\t    } catch (e) {\n\t      return true;\n\t    }\n\t  }\n\t};\n\n\t/**\n\t * @ngdoc directive\n\t * @module ng\n\t * @name ngJq\n\t *\n\t * @element ANY\n\t * @param {string=} ngJq the name of the library available under `window`\n\t * to be used for angular.element\n\t * @description\n\t * Use this directive to force the angular.element library.  This should be\n\t * used to force either jqLite by leaving ng-jq blank or setting the name of\n\t * the jquery variable under window (eg. jQuery).\n\t *\n\t * Since angular looks for this directive when it is loaded (doesn't wait for the\n\t * DOMContentLoaded event), it must be placed on an element that comes before the script\n\t * which loads angular. Also, only the first instance of `ng-jq` will be used and all\n\t * others ignored.\n\t *\n\t * @example\n\t * This example shows how to force jqLite using the `ngJq` directive to the `html` tag.\n\t ```html\n\t <!doctype html>\n\t <html ng-app ng-jq>\n\t ...\n\t ...\n\t </html>\n\t ```\n\t * @example\n\t * This example shows how to use a jQuery based library of a different name.\n\t * The library name must be available at the top most 'window'.\n\t ```html\n\t <!doctype html>\n\t <html ng-app ng-jq=\"jQueryLib\">\n\t ...\n\t ...\n\t </html>\n\t ```\n\t */\n\tvar jq = function() {\n\t  if (isDefined(jq.name_)) return jq.name_;\n\t  var el;\n\t  var i, ii = ngAttrPrefixes.length, prefix, name;\n\t  for (i = 0; i < ii; ++i) {\n\t    prefix = ngAttrPrefixes[i];\n\t    if (el = document.querySelector('[' + prefix.replace(':', '\\\\:') + 'jq]')) {\n\t      name = el.getAttribute(prefix + 'jq');\n\t      break;\n\t    }\n\t  }\n\n\t  return (jq.name_ = name);\n\t};\n\n\tfunction concat(array1, array2, index) {\n\t  return array1.concat(slice.call(array2, index));\n\t}\n\n\tfunction sliceArgs(args, startIndex) {\n\t  return slice.call(args, startIndex || 0);\n\t}\n\n\n\t/* jshint -W101 */\n\t/**\n\t * @ngdoc function\n\t * @name angular.bind\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Returns a function which calls function `fn` bound to `self` (`self` becomes the `this` for\n\t * `fn`). You can supply optional `args` that are prebound to the function. This feature is also\n\t * known as [partial application](http://en.wikipedia.org/wiki/Partial_application), as\n\t * distinguished from [function currying](http://en.wikipedia.org/wiki/Currying#Contrast_with_partial_function_application).\n\t *\n\t * @param {Object} self Context which `fn` should be evaluated in.\n\t * @param {function()} fn Function to be bound.\n\t * @param {...*} args Optional arguments to be prebound to the `fn` function call.\n\t * @returns {function()} Function that wraps the `fn` with all the specified bindings.\n\t */\n\t/* jshint +W101 */\n\tfunction bind(self, fn) {\n\t  var curryArgs = arguments.length > 2 ? sliceArgs(arguments, 2) : [];\n\t  if (isFunction(fn) && !(fn instanceof RegExp)) {\n\t    return curryArgs.length\n\t      ? function() {\n\t          return arguments.length\n\t            ? fn.apply(self, concat(curryArgs, arguments, 0))\n\t            : fn.apply(self, curryArgs);\n\t        }\n\t      : function() {\n\t          return arguments.length\n\t            ? fn.apply(self, arguments)\n\t            : fn.call(self);\n\t        };\n\t  } else {\n\t    // in IE, native methods are not functions so they cannot be bound (note: they don't need to be)\n\t    return fn;\n\t  }\n\t}\n\n\n\tfunction toJsonReplacer(key, value) {\n\t  var val = value;\n\n\t  if (typeof key === 'string' && key.charAt(0) === '$' && key.charAt(1) === '$') {\n\t    val = undefined;\n\t  } else if (isWindow(value)) {\n\t    val = '$WINDOW';\n\t  } else if (value &&  document === value) {\n\t    val = '$DOCUMENT';\n\t  } else if (isScope(value)) {\n\t    val = '$SCOPE';\n\t  }\n\n\t  return val;\n\t}\n\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.toJson\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Serializes input into a JSON-formatted string. Properties with leading $$ characters will be\n\t * stripped since angular uses this notation internally.\n\t *\n\t * @param {Object|Array|Date|string|number} obj Input to be serialized into JSON.\n\t * @param {boolean|number} [pretty=2] If set to true, the JSON output will contain newlines and whitespace.\n\t *    If set to an integer, the JSON output will contain that many spaces per indentation.\n\t * @returns {string|undefined} JSON-ified string representing `obj`.\n\t */\n\tfunction toJson(obj, pretty) {\n\t  if (typeof obj === 'undefined') return undefined;\n\t  if (!isNumber(pretty)) {\n\t    pretty = pretty ? 2 : null;\n\t  }\n\t  return JSON.stringify(obj, toJsonReplacer, pretty);\n\t}\n\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.fromJson\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Deserializes a JSON string.\n\t *\n\t * @param {string} json JSON string to deserialize.\n\t * @returns {Object|Array|string|number} Deserialized JSON string.\n\t */\n\tfunction fromJson(json) {\n\t  return isString(json)\n\t      ? JSON.parse(json)\n\t      : json;\n\t}\n\n\n\tfunction timezoneToOffset(timezone, fallback) {\n\t  var requestedTimezoneOffset = Date.parse('Jan 01, 1970 00:00:00 ' + timezone) / 60000;\n\t  return isNaN(requestedTimezoneOffset) ? fallback : requestedTimezoneOffset;\n\t}\n\n\n\tfunction addDateMinutes(date, minutes) {\n\t  date = new Date(date.getTime());\n\t  date.setMinutes(date.getMinutes() + minutes);\n\t  return date;\n\t}\n\n\n\tfunction convertTimezoneToLocal(date, timezone, reverse) {\n\t  reverse = reverse ? -1 : 1;\n\t  var timezoneOffset = timezoneToOffset(timezone, date.getTimezoneOffset());\n\t  return addDateMinutes(date, reverse * (timezoneOffset - date.getTimezoneOffset()));\n\t}\n\n\n\t/**\n\t * @returns {string} Returns the string representation of the element.\n\t */\n\tfunction startingTag(element) {\n\t  element = jqLite(element).clone();\n\t  try {\n\t    // turns out IE does not let you set .html() on elements which\n\t    // are not allowed to have children. So we just ignore it.\n\t    element.empty();\n\t  } catch (e) {}\n\t  var elemHtml = jqLite('<div>').append(element).html();\n\t  try {\n\t    return element[0].nodeType === NODE_TYPE_TEXT ? lowercase(elemHtml) :\n\t        elemHtml.\n\t          match(/^(<[^>]+>)/)[1].\n\t          replace(/^<([\\w\\-]+)/, function(match, nodeName) { return '<' + lowercase(nodeName); });\n\t  } catch (e) {\n\t    return lowercase(elemHtml);\n\t  }\n\n\t}\n\n\n\t/////////////////////////////////////////////////\n\n\t/**\n\t * Tries to decode the URI component without throwing an exception.\n\t *\n\t * @private\n\t * @param str value potential URI component to check.\n\t * @returns {boolean} True if `value` can be decoded\n\t * with the decodeURIComponent function.\n\t */\n\tfunction tryDecodeURIComponent(value) {\n\t  try {\n\t    return decodeURIComponent(value);\n\t  } catch (e) {\n\t    // Ignore any invalid uri component\n\t  }\n\t}\n\n\n\t/**\n\t * Parses an escaped url query string into key-value pairs.\n\t * @returns {Object.<string,boolean|Array>}\n\t */\n\tfunction parseKeyValue(/**string*/keyValue) {\n\t  var obj = {};\n\t  forEach((keyValue || \"\").split('&'), function(keyValue) {\n\t    var splitPoint, key, val;\n\t    if (keyValue) {\n\t      key = keyValue = keyValue.replace(/\\+/g,'%20');\n\t      splitPoint = keyValue.indexOf('=');\n\t      if (splitPoint !== -1) {\n\t        key = keyValue.substring(0, splitPoint);\n\t        val = keyValue.substring(splitPoint + 1);\n\t      }\n\t      key = tryDecodeURIComponent(key);\n\t      if (isDefined(key)) {\n\t        val = isDefined(val) ? tryDecodeURIComponent(val) : true;\n\t        if (!hasOwnProperty.call(obj, key)) {\n\t          obj[key] = val;\n\t        } else if (isArray(obj[key])) {\n\t          obj[key].push(val);\n\t        } else {\n\t          obj[key] = [obj[key],val];\n\t        }\n\t      }\n\t    }\n\t  });\n\t  return obj;\n\t}\n\n\tfunction toKeyValue(obj) {\n\t  var parts = [];\n\t  forEach(obj, function(value, key) {\n\t    if (isArray(value)) {\n\t      forEach(value, function(arrayValue) {\n\t        parts.push(encodeUriQuery(key, true) +\n\t                   (arrayValue === true ? '' : '=' + encodeUriQuery(arrayValue, true)));\n\t      });\n\t    } else {\n\t    parts.push(encodeUriQuery(key, true) +\n\t               (value === true ? '' : '=' + encodeUriQuery(value, true)));\n\t    }\n\t  });\n\t  return parts.length ? parts.join('&') : '';\n\t}\n\n\n\t/**\n\t * We need our custom method because encodeURIComponent is too aggressive and doesn't follow\n\t * http://www.ietf.org/rfc/rfc3986.txt with regards to the character set (pchar) allowed in path\n\t * segments:\n\t *    segment       = *pchar\n\t *    pchar         = unreserved / pct-encoded / sub-delims / \":\" / \"@\"\n\t *    pct-encoded   = \"%\" HEXDIG HEXDIG\n\t *    unreserved    = ALPHA / DIGIT / \"-\" / \".\" / \"_\" / \"~\"\n\t *    sub-delims    = \"!\" / \"$\" / \"&\" / \"'\" / \"(\" / \")\"\n\t *                     / \"*\" / \"+\" / \",\" / \";\" / \"=\"\n\t */\n\tfunction encodeUriSegment(val) {\n\t  return encodeUriQuery(val, true).\n\t             replace(/%26/gi, '&').\n\t             replace(/%3D/gi, '=').\n\t             replace(/%2B/gi, '+');\n\t}\n\n\n\t/**\n\t * This method is intended for encoding *key* or *value* parts of query component. We need a custom\n\t * method because encodeURIComponent is too aggressive and encodes stuff that doesn't have to be\n\t * encoded per http://tools.ietf.org/html/rfc3986:\n\t *    query       = *( pchar / \"/\" / \"?\" )\n\t *    pchar         = unreserved / pct-encoded / sub-delims / \":\" / \"@\"\n\t *    unreserved    = ALPHA / DIGIT / \"-\" / \".\" / \"_\" / \"~\"\n\t *    pct-encoded   = \"%\" HEXDIG HEXDIG\n\t *    sub-delims    = \"!\" / \"$\" / \"&\" / \"'\" / \"(\" / \")\"\n\t *                     / \"*\" / \"+\" / \",\" / \";\" / \"=\"\n\t */\n\tfunction encodeUriQuery(val, pctEncodeSpaces) {\n\t  return encodeURIComponent(val).\n\t             replace(/%40/gi, '@').\n\t             replace(/%3A/gi, ':').\n\t             replace(/%24/g, '$').\n\t             replace(/%2C/gi, ',').\n\t             replace(/%3B/gi, ';').\n\t             replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));\n\t}\n\n\tvar ngAttrPrefixes = ['ng-', 'data-ng-', 'ng:', 'x-ng-'];\n\n\tfunction getNgAttribute(element, ngAttr) {\n\t  var attr, i, ii = ngAttrPrefixes.length;\n\t  for (i = 0; i < ii; ++i) {\n\t    attr = ngAttrPrefixes[i] + ngAttr;\n\t    if (isString(attr = element.getAttribute(attr))) {\n\t      return attr;\n\t    }\n\t  }\n\t  return null;\n\t}\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngApp\n\t * @module ng\n\t *\n\t * @element ANY\n\t * @param {angular.Module} ngApp an optional application\n\t *   {@link angular.module module} name to load.\n\t * @param {boolean=} ngStrictDi if this attribute is present on the app element, the injector will be\n\t *   created in \"strict-di\" mode. This means that the application will fail to invoke functions which\n\t *   do not use explicit function annotation (and are thus unsuitable for minification), as described\n\t *   in {@link guide/di the Dependency Injection guide}, and useful debugging info will assist in\n\t *   tracking down the root of these bugs.\n\t *\n\t * @description\n\t *\n\t * Use this directive to **auto-bootstrap** an AngularJS application. The `ngApp` directive\n\t * designates the **root element** of the application and is typically placed near the root element\n\t * of the page - e.g. on the `<body>` or `<html>` tags.\n\t *\n\t * Only one AngularJS application can be auto-bootstrapped per HTML document. The first `ngApp`\n\t * found in the document will be used to define the root element to auto-bootstrap as an\n\t * application. To run multiple applications in an HTML document you must manually bootstrap them using\n\t * {@link angular.bootstrap} instead. AngularJS applications cannot be nested within each other.\n\t *\n\t * You can specify an **AngularJS module** to be used as the root module for the application.  This\n\t * module will be loaded into the {@link auto.$injector} when the application is bootstrapped. It\n\t * should contain the application code needed or have dependencies on other modules that will\n\t * contain the code. See {@link angular.module} for more information.\n\t *\n\t * In the example below if the `ngApp` directive were not placed on the `html` element then the\n\t * document would not be compiled, the `AppController` would not be instantiated and the `{{ a+b }}`\n\t * would not be resolved to `3`.\n\t *\n\t * `ngApp` is the easiest, and most common way to bootstrap an application.\n\t *\n\t <example module=\"ngAppDemo\">\n\t   <file name=\"index.html\">\n\t   <div ng-controller=\"ngAppDemoController\">\n\t     I can add: {{a}} + {{b}} =  {{ a+b }}\n\t   </div>\n\t   </file>\n\t   <file name=\"script.js\">\n\t   angular.module('ngAppDemo', []).controller('ngAppDemoController', function($scope) {\n\t     $scope.a = 1;\n\t     $scope.b = 2;\n\t   });\n\t   </file>\n\t </example>\n\t *\n\t * Using `ngStrictDi`, you would see something like this:\n\t *\n\t <example ng-app-included=\"true\">\n\t   <file name=\"index.html\">\n\t   <div ng-app=\"ngAppStrictDemo\" ng-strict-di>\n\t       <div ng-controller=\"GoodController1\">\n\t           I can add: {{a}} + {{b}} =  {{ a+b }}\n\n\t           <p>This renders because the controller does not fail to\n\t              instantiate, by using explicit annotation style (see\n\t              script.js for details)\n\t           </p>\n\t       </div>\n\n\t       <div ng-controller=\"GoodController2\">\n\t           Name: <input ng-model=\"name\"><br />\n\t           Hello, {{name}}!\n\n\t           <p>This renders because the controller does not fail to\n\t              instantiate, by using explicit annotation style\n\t              (see script.js for details)\n\t           </p>\n\t       </div>\n\n\t       <div ng-controller=\"BadController\">\n\t           I can add: {{a}} + {{b}} =  {{ a+b }}\n\n\t           <p>The controller could not be instantiated, due to relying\n\t              on automatic function annotations (which are disabled in\n\t              strict mode). As such, the content of this section is not\n\t              interpolated, and there should be an error in your web console.\n\t           </p>\n\t       </div>\n\t   </div>\n\t   </file>\n\t   <file name=\"script.js\">\n\t   angular.module('ngAppStrictDemo', [])\n\t     // BadController will fail to instantiate, due to relying on automatic function annotation,\n\t     // rather than an explicit annotation\n\t     .controller('BadController', function($scope) {\n\t       $scope.a = 1;\n\t       $scope.b = 2;\n\t     })\n\t     // Unlike BadController, GoodController1 and GoodController2 will not fail to be instantiated,\n\t     // due to using explicit annotations using the array style and $inject property, respectively.\n\t     .controller('GoodController1', ['$scope', function($scope) {\n\t       $scope.a = 1;\n\t       $scope.b = 2;\n\t     }])\n\t     .controller('GoodController2', GoodController2);\n\t     function GoodController2($scope) {\n\t       $scope.name = \"World\";\n\t     }\n\t     GoodController2.$inject = ['$scope'];\n\t   </file>\n\t   <file name=\"style.css\">\n\t   div[ng-controller] {\n\t       margin-bottom: 1em;\n\t       -webkit-border-radius: 4px;\n\t       border-radius: 4px;\n\t       border: 1px solid;\n\t       padding: .5em;\n\t   }\n\t   div[ng-controller^=Good] {\n\t       border-color: #d6e9c6;\n\t       background-color: #dff0d8;\n\t       color: #3c763d;\n\t   }\n\t   div[ng-controller^=Bad] {\n\t       border-color: #ebccd1;\n\t       background-color: #f2dede;\n\t       color: #a94442;\n\t       margin-bottom: 0;\n\t   }\n\t   </file>\n\t </example>\n\t */\n\tfunction angularInit(element, bootstrap) {\n\t  var appElement,\n\t      module,\n\t      config = {};\n\n\t  // The element `element` has priority over any other element\n\t  forEach(ngAttrPrefixes, function(prefix) {\n\t    var name = prefix + 'app';\n\n\t    if (!appElement && element.hasAttribute && element.hasAttribute(name)) {\n\t      appElement = element;\n\t      module = element.getAttribute(name);\n\t    }\n\t  });\n\t  forEach(ngAttrPrefixes, function(prefix) {\n\t    var name = prefix + 'app';\n\t    var candidate;\n\n\t    if (!appElement && (candidate = element.querySelector('[' + name.replace(':', '\\\\:') + ']'))) {\n\t      appElement = candidate;\n\t      module = candidate.getAttribute(name);\n\t    }\n\t  });\n\t  if (appElement) {\n\t    config.strictDi = getNgAttribute(appElement, \"strict-di\") !== null;\n\t    bootstrap(appElement, module ? [module] : [], config);\n\t  }\n\t}\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.bootstrap\n\t * @module ng\n\t * @description\n\t * Use this function to manually start up angular application.\n\t *\n\t * See: {@link guide/bootstrap Bootstrap}\n\t *\n\t * Note that Protractor based end-to-end tests cannot use this function to bootstrap manually.\n\t * They must use {@link ng.directive:ngApp ngApp}.\n\t *\n\t * Angular will detect if it has been loaded into the browser more than once and only allow the\n\t * first loaded script to be bootstrapped and will report a warning to the browser console for\n\t * each of the subsequent scripts. This prevents strange results in applications, where otherwise\n\t * multiple instances of Angular try to work on the DOM.\n\t *\n\t * ```html\n\t * <!doctype html>\n\t * <html>\n\t * <body>\n\t * <div ng-controller=\"WelcomeController\">\n\t *   {{greeting}}\n\t * </div>\n\t *\n\t * <script src=\"angular.js\"></script>\n\t * <script>\n\t *   var app = angular.module('demo', [])\n\t *   .controller('WelcomeController', function($scope) {\n\t *       $scope.greeting = 'Welcome!';\n\t *   });\n\t *   angular.bootstrap(document, ['demo']);\n\t * </script>\n\t * </body>\n\t * </html>\n\t * ```\n\t *\n\t * @param {DOMElement} element DOM element which is the root of angular application.\n\t * @param {Array<String|Function|Array>=} modules an array of modules to load into the application.\n\t *     Each item in the array should be the name of a predefined module or a (DI annotated)\n\t *     function that will be invoked by the injector as a `config` block.\n\t *     See: {@link angular.module modules}\n\t * @param {Object=} config an object for defining configuration options for the application. The\n\t *     following keys are supported:\n\t *\n\t * * `strictDi` - disable automatic function annotation for the application. This is meant to\n\t *   assist in finding bugs which break minified code. Defaults to `false`.\n\t *\n\t * @returns {auto.$injector} Returns the newly created injector for this app.\n\t */\n\tfunction bootstrap(element, modules, config) {\n\t  if (!isObject(config)) config = {};\n\t  var defaultConfig = {\n\t    strictDi: false\n\t  };\n\t  config = extend(defaultConfig, config);\n\t  var doBootstrap = function() {\n\t    element = jqLite(element);\n\n\t    if (element.injector()) {\n\t      var tag = (element[0] === document) ? 'document' : startingTag(element);\n\t      //Encode angle brackets to prevent input from being sanitized to empty string #8683\n\t      throw ngMinErr(\n\t          'btstrpd',\n\t          \"App Already Bootstrapped with this Element '{0}'\",\n\t          tag.replace(/</,'&lt;').replace(/>/,'&gt;'));\n\t    }\n\n\t    modules = modules || [];\n\t    modules.unshift(['$provide', function($provide) {\n\t      $provide.value('$rootElement', element);\n\t    }]);\n\n\t    if (config.debugInfoEnabled) {\n\t      // Pushing so that this overrides `debugInfoEnabled` setting defined in user's `modules`.\n\t      modules.push(['$compileProvider', function($compileProvider) {\n\t        $compileProvider.debugInfoEnabled(true);\n\t      }]);\n\t    }\n\n\t    modules.unshift('ng');\n\t    var injector = createInjector(modules, config.strictDi);\n\t    injector.invoke(['$rootScope', '$rootElement', '$compile', '$injector',\n\t       function bootstrapApply(scope, element, compile, injector) {\n\t        scope.$apply(function() {\n\t          element.data('$injector', injector);\n\t          compile(element)(scope);\n\t        });\n\t      }]\n\t    );\n\t    return injector;\n\t  };\n\n\t  var NG_ENABLE_DEBUG_INFO = /^NG_ENABLE_DEBUG_INFO!/;\n\t  var NG_DEFER_BOOTSTRAP = /^NG_DEFER_BOOTSTRAP!/;\n\n\t  if (window && NG_ENABLE_DEBUG_INFO.test(window.name)) {\n\t    config.debugInfoEnabled = true;\n\t    window.name = window.name.replace(NG_ENABLE_DEBUG_INFO, '');\n\t  }\n\n\t  if (window && !NG_DEFER_BOOTSTRAP.test(window.name)) {\n\t    return doBootstrap();\n\t  }\n\n\t  window.name = window.name.replace(NG_DEFER_BOOTSTRAP, '');\n\t  angular.resumeBootstrap = function(extraModules) {\n\t    forEach(extraModules, function(module) {\n\t      modules.push(module);\n\t    });\n\t    return doBootstrap();\n\t  };\n\n\t  if (isFunction(angular.resumeDeferredBootstrap)) {\n\t    angular.resumeDeferredBootstrap();\n\t  }\n\t}\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.reloadWithDebugInfo\n\t * @module ng\n\t * @description\n\t * Use this function to reload the current application with debug information turned on.\n\t * This takes precedence over a call to `$compileProvider.debugInfoEnabled(false)`.\n\t *\n\t * See {@link ng.$compileProvider#debugInfoEnabled} for more.\n\t */\n\tfunction reloadWithDebugInfo() {\n\t  window.name = 'NG_ENABLE_DEBUG_INFO!' + window.name;\n\t  window.location.reload();\n\t}\n\n\t/**\n\t * @name angular.getTestability\n\t * @module ng\n\t * @description\n\t * Get the testability service for the instance of Angular on the given\n\t * element.\n\t * @param {DOMElement} element DOM element which is the root of angular application.\n\t */\n\tfunction getTestability(rootElement) {\n\t  var injector = angular.element(rootElement).injector();\n\t  if (!injector) {\n\t    throw ngMinErr('test',\n\t      'no injector found for element argument to getTestability');\n\t  }\n\t  return injector.get('$$testability');\n\t}\n\n\tvar SNAKE_CASE_REGEXP = /[A-Z]/g;\n\tfunction snake_case(name, separator) {\n\t  separator = separator || '_';\n\t  return name.replace(SNAKE_CASE_REGEXP, function(letter, pos) {\n\t    return (pos ? separator : '') + letter.toLowerCase();\n\t  });\n\t}\n\n\tvar bindJQueryFired = false;\n\tvar skipDestroyOnNextJQueryCleanData;\n\tfunction bindJQuery() {\n\t  var originalCleanData;\n\n\t  if (bindJQueryFired) {\n\t    return;\n\t  }\n\n\t  // bind to jQuery if present;\n\t  var jqName = jq();\n\t  jQuery = isUndefined(jqName) ? window.jQuery :   // use jQuery (if present)\n\t           !jqName             ? undefined     :   // use jqLite\n\t                                 window[jqName];   // use jQuery specified by `ngJq`\n\n\t  // Use jQuery if it exists with proper functionality, otherwise default to us.\n\t  // Angular 1.2+ requires jQuery 1.7+ for on()/off() support.\n\t  // Angular 1.3+ technically requires at least jQuery 2.1+ but it may work with older\n\t  // versions. It will not work for sure with jQuery <1.7, though.\n\t  if (jQuery && jQuery.fn.on) {\n\t    jqLite = jQuery;\n\t    extend(jQuery.fn, {\n\t      scope: JQLitePrototype.scope,\n\t      isolateScope: JQLitePrototype.isolateScope,\n\t      controller: JQLitePrototype.controller,\n\t      injector: JQLitePrototype.injector,\n\t      inheritedData: JQLitePrototype.inheritedData\n\t    });\n\n\t    // All nodes removed from the DOM via various jQuery APIs like .remove()\n\t    // are passed through jQuery.cleanData. Monkey-patch this method to fire\n\t    // the $destroy event on all removed nodes.\n\t    originalCleanData = jQuery.cleanData;\n\t    jQuery.cleanData = function(elems) {\n\t      var events;\n\t      if (!skipDestroyOnNextJQueryCleanData) {\n\t        for (var i = 0, elem; (elem = elems[i]) != null; i++) {\n\t          events = jQuery._data(elem, \"events\");\n\t          if (events && events.$destroy) {\n\t            jQuery(elem).triggerHandler('$destroy');\n\t          }\n\t        }\n\t      } else {\n\t        skipDestroyOnNextJQueryCleanData = false;\n\t      }\n\t      originalCleanData(elems);\n\t    };\n\t  } else {\n\t    jqLite = JQLite;\n\t  }\n\n\t  angular.element = jqLite;\n\n\t  // Prevent double-proxying.\n\t  bindJQueryFired = true;\n\t}\n\n\t/**\n\t * throw error if the argument is falsy.\n\t */\n\tfunction assertArg(arg, name, reason) {\n\t  if (!arg) {\n\t    throw ngMinErr('areq', \"Argument '{0}' is {1}\", (name || '?'), (reason || \"required\"));\n\t  }\n\t  return arg;\n\t}\n\n\tfunction assertArgFn(arg, name, acceptArrayAnnotation) {\n\t  if (acceptArrayAnnotation && isArray(arg)) {\n\t      arg = arg[arg.length - 1];\n\t  }\n\n\t  assertArg(isFunction(arg), name, 'not a function, got ' +\n\t      (arg && typeof arg === 'object' ? arg.constructor.name || 'Object' : typeof arg));\n\t  return arg;\n\t}\n\n\t/**\n\t * throw error if the name given is hasOwnProperty\n\t * @param  {String} name    the name to test\n\t * @param  {String} context the context in which the name is used, such as module or directive\n\t */\n\tfunction assertNotHasOwnProperty(name, context) {\n\t  if (name === 'hasOwnProperty') {\n\t    throw ngMinErr('badname', \"hasOwnProperty is not a valid {0} name\", context);\n\t  }\n\t}\n\n\t/**\n\t * Return the value accessible from the object by path. Any undefined traversals are ignored\n\t * @param {Object} obj starting object\n\t * @param {String} path path to traverse\n\t * @param {boolean} [bindFnToScope=true]\n\t * @returns {Object} value as accessible by path\n\t */\n\t//TODO(misko): this function needs to be removed\n\tfunction getter(obj, path, bindFnToScope) {\n\t  if (!path) return obj;\n\t  var keys = path.split('.');\n\t  var key;\n\t  var lastInstance = obj;\n\t  var len = keys.length;\n\n\t  for (var i = 0; i < len; i++) {\n\t    key = keys[i];\n\t    if (obj) {\n\t      obj = (lastInstance = obj)[key];\n\t    }\n\t  }\n\t  if (!bindFnToScope && isFunction(obj)) {\n\t    return bind(lastInstance, obj);\n\t  }\n\t  return obj;\n\t}\n\n\t/**\n\t * Return the DOM siblings between the first and last node in the given array.\n\t * @param {Array} array like object\n\t * @returns {Array} the inputted object or a jqLite collection containing the nodes\n\t */\n\tfunction getBlockNodes(nodes) {\n\t  // TODO(perf): update `nodes` instead of creating a new object?\n\t  var node = nodes[0];\n\t  var endNode = nodes[nodes.length - 1];\n\t  var blockNodes;\n\n\t  for (var i = 1; node !== endNode && (node = node.nextSibling); i++) {\n\t    if (blockNodes || nodes[i] !== node) {\n\t      if (!blockNodes) {\n\t        blockNodes = jqLite(slice.call(nodes, 0, i));\n\t      }\n\t      blockNodes.push(node);\n\t    }\n\t  }\n\n\t  return blockNodes || nodes;\n\t}\n\n\n\t/**\n\t * Creates a new object without a prototype. This object is useful for lookup without having to\n\t * guard against prototypically inherited properties via hasOwnProperty.\n\t *\n\t * Related micro-benchmarks:\n\t * - http://jsperf.com/object-create2\n\t * - http://jsperf.com/proto-map-lookup/2\n\t * - http://jsperf.com/for-in-vs-object-keys2\n\t *\n\t * @returns {Object}\n\t */\n\tfunction createMap() {\n\t  return Object.create(null);\n\t}\n\n\tvar NODE_TYPE_ELEMENT = 1;\n\tvar NODE_TYPE_ATTRIBUTE = 2;\n\tvar NODE_TYPE_TEXT = 3;\n\tvar NODE_TYPE_COMMENT = 8;\n\tvar NODE_TYPE_DOCUMENT = 9;\n\tvar NODE_TYPE_DOCUMENT_FRAGMENT = 11;\n\n\t/**\n\t * @ngdoc type\n\t * @name angular.Module\n\t * @module ng\n\t * @description\n\t *\n\t * Interface for configuring angular {@link angular.module modules}.\n\t */\n\n\tfunction setupModuleLoader(window) {\n\n\t  var $injectorMinErr = minErr('$injector');\n\t  var ngMinErr = minErr('ng');\n\n\t  function ensure(obj, name, factory) {\n\t    return obj[name] || (obj[name] = factory());\n\t  }\n\n\t  var angular = ensure(window, 'angular', Object);\n\n\t  // We need to expose `angular.$$minErr` to modules such as `ngResource` that reference it during bootstrap\n\t  angular.$$minErr = angular.$$minErr || minErr;\n\n\t  return ensure(angular, 'module', function() {\n\t    /** @type {Object.<string, angular.Module>} */\n\t    var modules = {};\n\n\t    /**\n\t     * @ngdoc function\n\t     * @name angular.module\n\t     * @module ng\n\t     * @description\n\t     *\n\t     * The `angular.module` is a global place for creating, registering and retrieving Angular\n\t     * modules.\n\t     * All modules (angular core or 3rd party) that should be available to an application must be\n\t     * registered using this mechanism.\n\t     *\n\t     * Passing one argument retrieves an existing {@link angular.Module},\n\t     * whereas passing more than one argument creates a new {@link angular.Module}\n\t     *\n\t     *\n\t     * # Module\n\t     *\n\t     * A module is a collection of services, directives, controllers, filters, and configuration information.\n\t     * `angular.module` is used to configure the {@link auto.$injector $injector}.\n\t     *\n\t     * ```js\n\t     * // Create a new module\n\t     * var myModule = angular.module('myModule', []);\n\t     *\n\t     * // register a new service\n\t     * myModule.value('appName', 'MyCoolApp');\n\t     *\n\t     * // configure existing services inside initialization blocks.\n\t     * myModule.config(['$locationProvider', function($locationProvider) {\n\t     *   // Configure existing providers\n\t     *   $locationProvider.hashPrefix('!');\n\t     * }]);\n\t     * ```\n\t     *\n\t     * Then you can create an injector and load your modules like this:\n\t     *\n\t     * ```js\n\t     * var injector = angular.injector(['ng', 'myModule'])\n\t     * ```\n\t     *\n\t     * However it's more likely that you'll just use\n\t     * {@link ng.directive:ngApp ngApp} or\n\t     * {@link angular.bootstrap} to simplify this process for you.\n\t     *\n\t     * @param {!string} name The name of the module to create or retrieve.\n\t     * @param {!Array.<string>=} requires If specified then new module is being created. If\n\t     *        unspecified then the module is being retrieved for further configuration.\n\t     * @param {Function=} configFn Optional configuration function for the module. Same as\n\t     *        {@link angular.Module#config Module#config()}.\n\t     * @returns {module} new module with the {@link angular.Module} api.\n\t     */\n\t    return function module(name, requires, configFn) {\n\t      var assertNotHasOwnProperty = function(name, context) {\n\t        if (name === 'hasOwnProperty') {\n\t          throw ngMinErr('badname', 'hasOwnProperty is not a valid {0} name', context);\n\t        }\n\t      };\n\n\t      assertNotHasOwnProperty(name, 'module');\n\t      if (requires && modules.hasOwnProperty(name)) {\n\t        modules[name] = null;\n\t      }\n\t      return ensure(modules, name, function() {\n\t        if (!requires) {\n\t          throw $injectorMinErr('nomod', \"Module '{0}' is not available! You either misspelled \" +\n\t             \"the module name or forgot to load it. If registering a module ensure that you \" +\n\t             \"specify the dependencies as the second argument.\", name);\n\t        }\n\n\t        /** @type {!Array.<Array.<*>>} */\n\t        var invokeQueue = [];\n\n\t        /** @type {!Array.<Function>} */\n\t        var configBlocks = [];\n\n\t        /** @type {!Array.<Function>} */\n\t        var runBlocks = [];\n\n\t        var config = invokeLater('$injector', 'invoke', 'push', configBlocks);\n\n\t        /** @type {angular.Module} */\n\t        var moduleInstance = {\n\t          // Private state\n\t          _invokeQueue: invokeQueue,\n\t          _configBlocks: configBlocks,\n\t          _runBlocks: runBlocks,\n\n\t          /**\n\t           * @ngdoc property\n\t           * @name angular.Module#requires\n\t           * @module ng\n\t           *\n\t           * @description\n\t           * Holds the list of modules which the injector will load before the current module is\n\t           * loaded.\n\t           */\n\t          requires: requires,\n\n\t          /**\n\t           * @ngdoc property\n\t           * @name angular.Module#name\n\t           * @module ng\n\t           *\n\t           * @description\n\t           * Name of the module.\n\t           */\n\t          name: name,\n\n\n\t          /**\n\t           * @ngdoc method\n\t           * @name angular.Module#provider\n\t           * @module ng\n\t           * @param {string} name service name\n\t           * @param {Function} providerType Construction function for creating new instance of the\n\t           *                                service.\n\t           * @description\n\t           * See {@link auto.$provide#provider $provide.provider()}.\n\t           */\n\t          provider: invokeLaterAndSetModuleName('$provide', 'provider'),\n\n\t          /**\n\t           * @ngdoc method\n\t           * @name angular.Module#factory\n\t           * @module ng\n\t           * @param {string} name service name\n\t           * @param {Function} providerFunction Function for creating new instance of the service.\n\t           * @description\n\t           * See {@link auto.$provide#factory $provide.factory()}.\n\t           */\n\t          factory: invokeLaterAndSetModuleName('$provide', 'factory'),\n\n\t          /**\n\t           * @ngdoc method\n\t           * @name angular.Module#service\n\t           * @module ng\n\t           * @param {string} name service name\n\t           * @param {Function} constructor A constructor function that will be instantiated.\n\t           * @description\n\t           * See {@link auto.$provide#service $provide.service()}.\n\t           */\n\t          service: invokeLaterAndSetModuleName('$provide', 'service'),\n\n\t          /**\n\t           * @ngdoc method\n\t           * @name angular.Module#value\n\t           * @module ng\n\t           * @param {string} name service name\n\t           * @param {*} object Service instance object.\n\t           * @description\n\t           * See {@link auto.$provide#value $provide.value()}.\n\t           */\n\t          value: invokeLater('$provide', 'value'),\n\n\t          /**\n\t           * @ngdoc method\n\t           * @name angular.Module#constant\n\t           * @module ng\n\t           * @param {string} name constant name\n\t           * @param {*} object Constant value.\n\t           * @description\n\t           * Because the constants are fixed, they get applied before other provide methods.\n\t           * See {@link auto.$provide#constant $provide.constant()}.\n\t           */\n\t          constant: invokeLater('$provide', 'constant', 'unshift'),\n\n\t           /**\n\t           * @ngdoc method\n\t           * @name angular.Module#decorator\n\t           * @module ng\n\t           * @param {string} The name of the service to decorate.\n\t           * @param {Function} This function will be invoked when the service needs to be\n\t           *                                    instantiated and should return the decorated service instance.\n\t           * @description\n\t           * See {@link auto.$provide#decorator $provide.decorator()}.\n\t           */\n\t          decorator: invokeLaterAndSetModuleName('$provide', 'decorator'),\n\n\t          /**\n\t           * @ngdoc method\n\t           * @name angular.Module#animation\n\t           * @module ng\n\t           * @param {string} name animation name\n\t           * @param {Function} animationFactory Factory function for creating new instance of an\n\t           *                                    animation.\n\t           * @description\n\t           *\n\t           * **NOTE**: animations take effect only if the **ngAnimate** module is loaded.\n\t           *\n\t           *\n\t           * Defines an animation hook that can be later used with\n\t           * {@link $animate $animate} service and directives that use this service.\n\t           *\n\t           * ```js\n\t           * module.animation('.animation-name', function($inject1, $inject2) {\n\t           *   return {\n\t           *     eventName : function(element, done) {\n\t           *       //code to run the animation\n\t           *       //once complete, then run done()\n\t           *       return function cancellationFunction(element) {\n\t           *         //code to cancel the animation\n\t           *       }\n\t           *     }\n\t           *   }\n\t           * })\n\t           * ```\n\t           *\n\t           * See {@link ng.$animateProvider#register $animateProvider.register()} and\n\t           * {@link ngAnimate ngAnimate module} for more information.\n\t           */\n\t          animation: invokeLaterAndSetModuleName('$animateProvider', 'register'),\n\n\t          /**\n\t           * @ngdoc method\n\t           * @name angular.Module#filter\n\t           * @module ng\n\t           * @param {string} name Filter name - this must be a valid angular expression identifier\n\t           * @param {Function} filterFactory Factory function for creating new instance of filter.\n\t           * @description\n\t           * See {@link ng.$filterProvider#register $filterProvider.register()}.\n\t           *\n\t           * <div class=\"alert alert-warning\">\n\t           * **Note:** Filter names must be valid angular {@link expression} identifiers, such as `uppercase` or `orderBy`.\n\t           * Names with special characters, such as hyphens and dots, are not allowed. If you wish to namespace\n\t           * your filters, then you can use capitalization (`myappSubsectionFilterx`) or underscores\n\t           * (`myapp_subsection_filterx`).\n\t           * </div>\n\t           */\n\t          filter: invokeLaterAndSetModuleName('$filterProvider', 'register'),\n\n\t          /**\n\t           * @ngdoc method\n\t           * @name angular.Module#controller\n\t           * @module ng\n\t           * @param {string|Object} name Controller name, or an object map of controllers where the\n\t           *    keys are the names and the values are the constructors.\n\t           * @param {Function} constructor Controller constructor function.\n\t           * @description\n\t           * See {@link ng.$controllerProvider#register $controllerProvider.register()}.\n\t           */\n\t          controller: invokeLaterAndSetModuleName('$controllerProvider', 'register'),\n\n\t          /**\n\t           * @ngdoc method\n\t           * @name angular.Module#directive\n\t           * @module ng\n\t           * @param {string|Object} name Directive name, or an object map of directives where the\n\t           *    keys are the names and the values are the factories.\n\t           * @param {Function} directiveFactory Factory function for creating new instance of\n\t           * directives.\n\t           * @description\n\t           * See {@link ng.$compileProvider#directive $compileProvider.directive()}.\n\t           */\n\t          directive: invokeLaterAndSetModuleName('$compileProvider', 'directive'),\n\n\t          /**\n\t           * @ngdoc method\n\t           * @name angular.Module#config\n\t           * @module ng\n\t           * @param {Function} configFn Execute this function on module load. Useful for service\n\t           *    configuration.\n\t           * @description\n\t           * Use this method to register work which needs to be performed on module loading.\n\t           * For more about how to configure services, see\n\t           * {@link providers#provider-recipe Provider Recipe}.\n\t           */\n\t          config: config,\n\n\t          /**\n\t           * @ngdoc method\n\t           * @name angular.Module#run\n\t           * @module ng\n\t           * @param {Function} initializationFn Execute this function after injector creation.\n\t           *    Useful for application initialization.\n\t           * @description\n\t           * Use this method to register work which should be performed when the injector is done\n\t           * loading all modules.\n\t           */\n\t          run: function(block) {\n\t            runBlocks.push(block);\n\t            return this;\n\t          }\n\t        };\n\n\t        if (configFn) {\n\t          config(configFn);\n\t        }\n\n\t        return moduleInstance;\n\n\t        /**\n\t         * @param {string} provider\n\t         * @param {string} method\n\t         * @param {String=} insertMethod\n\t         * @returns {angular.Module}\n\t         */\n\t        function invokeLater(provider, method, insertMethod, queue) {\n\t          if (!queue) queue = invokeQueue;\n\t          return function() {\n\t            queue[insertMethod || 'push']([provider, method, arguments]);\n\t            return moduleInstance;\n\t          };\n\t        }\n\n\t        /**\n\t         * @param {string} provider\n\t         * @param {string} method\n\t         * @returns {angular.Module}\n\t         */\n\t        function invokeLaterAndSetModuleName(provider, method) {\n\t          return function(recipeName, factoryFunction) {\n\t            if (factoryFunction && isFunction(factoryFunction)) factoryFunction.$$moduleName = name;\n\t            invokeQueue.push([provider, method, arguments]);\n\t            return moduleInstance;\n\t          };\n\t        }\n\t      });\n\t    };\n\t  });\n\n\t}\n\n\t/* global: toDebugString: true */\n\n\tfunction serializeObject(obj) {\n\t  var seen = [];\n\n\t  return JSON.stringify(obj, function(key, val) {\n\t    val = toJsonReplacer(key, val);\n\t    if (isObject(val)) {\n\n\t      if (seen.indexOf(val) >= 0) return '...';\n\n\t      seen.push(val);\n\t    }\n\t    return val;\n\t  });\n\t}\n\n\tfunction toDebugString(obj) {\n\t  if (typeof obj === 'function') {\n\t    return obj.toString().replace(/ \\{[\\s\\S]*$/, '');\n\t  } else if (isUndefined(obj)) {\n\t    return 'undefined';\n\t  } else if (typeof obj !== 'string') {\n\t    return serializeObject(obj);\n\t  }\n\t  return obj;\n\t}\n\n\t/* global angularModule: true,\n\t  version: true,\n\n\t  $CompileProvider,\n\n\t  htmlAnchorDirective,\n\t  inputDirective,\n\t  inputDirective,\n\t  formDirective,\n\t  scriptDirective,\n\t  selectDirective,\n\t  styleDirective,\n\t  optionDirective,\n\t  ngBindDirective,\n\t  ngBindHtmlDirective,\n\t  ngBindTemplateDirective,\n\t  ngClassDirective,\n\t  ngClassEvenDirective,\n\t  ngClassOddDirective,\n\t  ngCloakDirective,\n\t  ngControllerDirective,\n\t  ngFormDirective,\n\t  ngHideDirective,\n\t  ngIfDirective,\n\t  ngIncludeDirective,\n\t  ngIncludeFillContentDirective,\n\t  ngInitDirective,\n\t  ngNonBindableDirective,\n\t  ngPluralizeDirective,\n\t  ngRepeatDirective,\n\t  ngShowDirective,\n\t  ngStyleDirective,\n\t  ngSwitchDirective,\n\t  ngSwitchWhenDirective,\n\t  ngSwitchDefaultDirective,\n\t  ngOptionsDirective,\n\t  ngTranscludeDirective,\n\t  ngModelDirective,\n\t  ngListDirective,\n\t  ngChangeDirective,\n\t  patternDirective,\n\t  patternDirective,\n\t  requiredDirective,\n\t  requiredDirective,\n\t  minlengthDirective,\n\t  minlengthDirective,\n\t  maxlengthDirective,\n\t  maxlengthDirective,\n\t  ngValueDirective,\n\t  ngModelOptionsDirective,\n\t  ngAttributeAliasDirectives,\n\t  ngEventDirectives,\n\n\t  $AnchorScrollProvider,\n\t  $AnimateProvider,\n\t  $CoreAnimateCssProvider,\n\t  $$CoreAnimateQueueProvider,\n\t  $$CoreAnimateRunnerProvider,\n\t  $BrowserProvider,\n\t  $CacheFactoryProvider,\n\t  $ControllerProvider,\n\t  $DocumentProvider,\n\t  $ExceptionHandlerProvider,\n\t  $FilterProvider,\n\t  $$ForceReflowProvider,\n\t  $InterpolateProvider,\n\t  $IntervalProvider,\n\t  $$HashMapProvider,\n\t  $HttpProvider,\n\t  $HttpParamSerializerProvider,\n\t  $HttpParamSerializerJQLikeProvider,\n\t  $HttpBackendProvider,\n\t  $xhrFactoryProvider,\n\t  $LocationProvider,\n\t  $LogProvider,\n\t  $ParseProvider,\n\t  $RootScopeProvider,\n\t  $QProvider,\n\t  $$QProvider,\n\t  $$SanitizeUriProvider,\n\t  $SceProvider,\n\t  $SceDelegateProvider,\n\t  $SnifferProvider,\n\t  $TemplateCacheProvider,\n\t  $TemplateRequestProvider,\n\t  $$TestabilityProvider,\n\t  $TimeoutProvider,\n\t  $$RAFProvider,\n\t  $WindowProvider,\n\t  $$jqLiteProvider,\n\t  $$CookieReaderProvider\n\t*/\n\n\n\t/**\n\t * @ngdoc object\n\t * @name angular.version\n\t * @module ng\n\t * @description\n\t * An object that contains information about the current AngularJS version.\n\t *\n\t * This object has the following properties:\n\t *\n\t * - `full` – `{string}` – Full version string, such as \"0.9.18\".\n\t * - `major` – `{number}` – Major version number, such as \"0\".\n\t * - `minor` – `{number}` – Minor version number, such as \"9\".\n\t * - `dot` – `{number}` – Dot version number, such as \"18\".\n\t * - `codeName` – `{string}` – Code name of the release, such as \"jiggling-armfat\".\n\t */\n\tvar version = {\n\t  full: '1.4.8',    // all of these placeholder strings will be replaced by grunt's\n\t  major: 1,    // package task\n\t  minor: 4,\n\t  dot: 8,\n\t  codeName: 'ice-manipulation'\n\t};\n\n\n\tfunction publishExternalAPI(angular) {\n\t  extend(angular, {\n\t    'bootstrap': bootstrap,\n\t    'copy': copy,\n\t    'extend': extend,\n\t    'merge': merge,\n\t    'equals': equals,\n\t    'element': jqLite,\n\t    'forEach': forEach,\n\t    'injector': createInjector,\n\t    'noop': noop,\n\t    'bind': bind,\n\t    'toJson': toJson,\n\t    'fromJson': fromJson,\n\t    'identity': identity,\n\t    'isUndefined': isUndefined,\n\t    'isDefined': isDefined,\n\t    'isString': isString,\n\t    'isFunction': isFunction,\n\t    'isObject': isObject,\n\t    'isNumber': isNumber,\n\t    'isElement': isElement,\n\t    'isArray': isArray,\n\t    'version': version,\n\t    'isDate': isDate,\n\t    'lowercase': lowercase,\n\t    'uppercase': uppercase,\n\t    'callbacks': {counter: 0},\n\t    'getTestability': getTestability,\n\t    '$$minErr': minErr,\n\t    '$$csp': csp,\n\t    'reloadWithDebugInfo': reloadWithDebugInfo\n\t  });\n\n\t  angularModule = setupModuleLoader(window);\n\n\t  angularModule('ng', ['ngLocale'], ['$provide',\n\t    function ngModule($provide) {\n\t      // $$sanitizeUriProvider needs to be before $compileProvider as it is used by it.\n\t      $provide.provider({\n\t        $$sanitizeUri: $$SanitizeUriProvider\n\t      });\n\t      $provide.provider('$compile', $CompileProvider).\n\t        directive({\n\t            a: htmlAnchorDirective,\n\t            input: inputDirective,\n\t            textarea: inputDirective,\n\t            form: formDirective,\n\t            script: scriptDirective,\n\t            select: selectDirective,\n\t            style: styleDirective,\n\t            option: optionDirective,\n\t            ngBind: ngBindDirective,\n\t            ngBindHtml: ngBindHtmlDirective,\n\t            ngBindTemplate: ngBindTemplateDirective,\n\t            ngClass: ngClassDirective,\n\t            ngClassEven: ngClassEvenDirective,\n\t            ngClassOdd: ngClassOddDirective,\n\t            ngCloak: ngCloakDirective,\n\t            ngController: ngControllerDirective,\n\t            ngForm: ngFormDirective,\n\t            ngHide: ngHideDirective,\n\t            ngIf: ngIfDirective,\n\t            ngInclude: ngIncludeDirective,\n\t            ngInit: ngInitDirective,\n\t            ngNonBindable: ngNonBindableDirective,\n\t            ngPluralize: ngPluralizeDirective,\n\t            ngRepeat: ngRepeatDirective,\n\t            ngShow: ngShowDirective,\n\t            ngStyle: ngStyleDirective,\n\t            ngSwitch: ngSwitchDirective,\n\t            ngSwitchWhen: ngSwitchWhenDirective,\n\t            ngSwitchDefault: ngSwitchDefaultDirective,\n\t            ngOptions: ngOptionsDirective,\n\t            ngTransclude: ngTranscludeDirective,\n\t            ngModel: ngModelDirective,\n\t            ngList: ngListDirective,\n\t            ngChange: ngChangeDirective,\n\t            pattern: patternDirective,\n\t            ngPattern: patternDirective,\n\t            required: requiredDirective,\n\t            ngRequired: requiredDirective,\n\t            minlength: minlengthDirective,\n\t            ngMinlength: minlengthDirective,\n\t            maxlength: maxlengthDirective,\n\t            ngMaxlength: maxlengthDirective,\n\t            ngValue: ngValueDirective,\n\t            ngModelOptions: ngModelOptionsDirective\n\t        }).\n\t        directive({\n\t          ngInclude: ngIncludeFillContentDirective\n\t        }).\n\t        directive(ngAttributeAliasDirectives).\n\t        directive(ngEventDirectives);\n\t      $provide.provider({\n\t        $anchorScroll: $AnchorScrollProvider,\n\t        $animate: $AnimateProvider,\n\t        $animateCss: $CoreAnimateCssProvider,\n\t        $$animateQueue: $$CoreAnimateQueueProvider,\n\t        $$AnimateRunner: $$CoreAnimateRunnerProvider,\n\t        $browser: $BrowserProvider,\n\t        $cacheFactory: $CacheFactoryProvider,\n\t        $controller: $ControllerProvider,\n\t        $document: $DocumentProvider,\n\t        $exceptionHandler: $ExceptionHandlerProvider,\n\t        $filter: $FilterProvider,\n\t        $$forceReflow: $$ForceReflowProvider,\n\t        $interpolate: $InterpolateProvider,\n\t        $interval: $IntervalProvider,\n\t        $http: $HttpProvider,\n\t        $httpParamSerializer: $HttpParamSerializerProvider,\n\t        $httpParamSerializerJQLike: $HttpParamSerializerJQLikeProvider,\n\t        $httpBackend: $HttpBackendProvider,\n\t        $xhrFactory: $xhrFactoryProvider,\n\t        $location: $LocationProvider,\n\t        $log: $LogProvider,\n\t        $parse: $ParseProvider,\n\t        $rootScope: $RootScopeProvider,\n\t        $q: $QProvider,\n\t        $$q: $$QProvider,\n\t        $sce: $SceProvider,\n\t        $sceDelegate: $SceDelegateProvider,\n\t        $sniffer: $SnifferProvider,\n\t        $templateCache: $TemplateCacheProvider,\n\t        $templateRequest: $TemplateRequestProvider,\n\t        $$testability: $$TestabilityProvider,\n\t        $timeout: $TimeoutProvider,\n\t        $window: $WindowProvider,\n\t        $$rAF: $$RAFProvider,\n\t        $$jqLite: $$jqLiteProvider,\n\t        $$HashMap: $$HashMapProvider,\n\t        $$cookieReader: $$CookieReaderProvider\n\t      });\n\t    }\n\t  ]);\n\t}\n\n\t/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\n\t *     Any commits to this file should be reviewed with security in mind.  *\n\t *   Changes to this file can potentially create security vulnerabilities. *\n\t *          An approval from 2 Core members with history of modifying      *\n\t *                         this file is required.                          *\n\t *                                                                         *\n\t *  Does the change somehow allow for arbitrary javascript to be executed? *\n\t *    Or allows for someone to change the prototype of built-in objects?   *\n\t *     Or gives undesired access to variables likes document or window?    *\n\t * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */\n\n\t/* global JQLitePrototype: true,\n\t  addEventListenerFn: true,\n\t  removeEventListenerFn: true,\n\t  BOOLEAN_ATTR: true,\n\t  ALIASED_ATTR: true,\n\t*/\n\n\t//////////////////////////////////\n\t//JQLite\n\t//////////////////////////////////\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.element\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Wraps a raw DOM element or HTML string as a [jQuery](http://jquery.com) element.\n\t *\n\t * If jQuery is available, `angular.element` is an alias for the\n\t * [jQuery](http://api.jquery.com/jQuery/) function. If jQuery is not available, `angular.element`\n\t * delegates to Angular's built-in subset of jQuery, called \"jQuery lite\" or \"jqLite.\"\n\t *\n\t * <div class=\"alert alert-success\">jqLite is a tiny, API-compatible subset of jQuery that allows\n\t * Angular to manipulate the DOM in a cross-browser compatible way. **jqLite** implements only the most\n\t * commonly needed functionality with the goal of having a very small footprint.</div>\n\t *\n\t * To use `jQuery`, simply ensure it is loaded before the `angular.js` file.\n\t *\n\t * <div class=\"alert\">**Note:** all element references in Angular are always wrapped with jQuery or\n\t * jqLite; they are never raw DOM references.</div>\n\t *\n\t * ## Angular's jqLite\n\t * jqLite provides only the following jQuery methods:\n\t *\n\t * - [`addClass()`](http://api.jquery.com/addClass/)\n\t * - [`after()`](http://api.jquery.com/after/)\n\t * - [`append()`](http://api.jquery.com/append/)\n\t * - [`attr()`](http://api.jquery.com/attr/) - Does not support functions as parameters\n\t * - [`bind()`](http://api.jquery.com/bind/) - Does not support namespaces, selectors or eventData\n\t * - [`children()`](http://api.jquery.com/children/) - Does not support selectors\n\t * - [`clone()`](http://api.jquery.com/clone/)\n\t * - [`contents()`](http://api.jquery.com/contents/)\n\t * - [`css()`](http://api.jquery.com/css/) - Only retrieves inline-styles, does not call `getComputedStyle()`. As a setter, does not convert numbers to strings or append 'px'.\n\t * - [`data()`](http://api.jquery.com/data/)\n\t * - [`detach()`](http://api.jquery.com/detach/)\n\t * - [`empty()`](http://api.jquery.com/empty/)\n\t * - [`eq()`](http://api.jquery.com/eq/)\n\t * - [`find()`](http://api.jquery.com/find/) - Limited to lookups by tag name\n\t * - [`hasClass()`](http://api.jquery.com/hasClass/)\n\t * - [`html()`](http://api.jquery.com/html/)\n\t * - [`next()`](http://api.jquery.com/next/) - Does not support selectors\n\t * - [`on()`](http://api.jquery.com/on/) - Does not support namespaces, selectors or eventData\n\t * - [`off()`](http://api.jquery.com/off/) - Does not support namespaces, selectors or event object as parameter\n\t * - [`one()`](http://api.jquery.com/one/) - Does not support namespaces or selectors\n\t * - [`parent()`](http://api.jquery.com/parent/) - Does not support selectors\n\t * - [`prepend()`](http://api.jquery.com/prepend/)\n\t * - [`prop()`](http://api.jquery.com/prop/)\n\t * - [`ready()`](http://api.jquery.com/ready/)\n\t * - [`remove()`](http://api.jquery.com/remove/)\n\t * - [`removeAttr()`](http://api.jquery.com/removeAttr/)\n\t * - [`removeClass()`](http://api.jquery.com/removeClass/)\n\t * - [`removeData()`](http://api.jquery.com/removeData/)\n\t * - [`replaceWith()`](http://api.jquery.com/replaceWith/)\n\t * - [`text()`](http://api.jquery.com/text/)\n\t * - [`toggleClass()`](http://api.jquery.com/toggleClass/)\n\t * - [`triggerHandler()`](http://api.jquery.com/triggerHandler/) - Passes a dummy event object to handlers.\n\t * - [`unbind()`](http://api.jquery.com/unbind/) - Does not support namespaces or event object as parameter\n\t * - [`val()`](http://api.jquery.com/val/)\n\t * - [`wrap()`](http://api.jquery.com/wrap/)\n\t *\n\t * ## jQuery/jqLite Extras\n\t * Angular also provides the following additional methods and events to both jQuery and jqLite:\n\t *\n\t * ### Events\n\t * - `$destroy` - AngularJS intercepts all jqLite/jQuery's DOM destruction apis and fires this event\n\t *    on all DOM nodes being removed.  This can be used to clean up any 3rd party bindings to the DOM\n\t *    element before it is removed.\n\t *\n\t * ### Methods\n\t * - `controller(name)` - retrieves the controller of the current element or its parent. By default\n\t *   retrieves controller associated with the `ngController` directive. If `name` is provided as\n\t *   camelCase directive name, then the controller for this directive will be retrieved (e.g.\n\t *   `'ngModel'`).\n\t * - `injector()` - retrieves the injector of the current element or its parent.\n\t * - `scope()` - retrieves the {@link ng.$rootScope.Scope scope} of the current\n\t *   element or its parent. Requires {@link guide/production#disabling-debug-data Debug Data} to\n\t *   be enabled.\n\t * - `isolateScope()` - retrieves an isolate {@link ng.$rootScope.Scope scope} if one is attached directly to the\n\t *   current element. This getter should be used only on elements that contain a directive which starts a new isolate\n\t *   scope. Calling `scope()` on this element always returns the original non-isolate scope.\n\t *   Requires {@link guide/production#disabling-debug-data Debug Data} to be enabled.\n\t * - `inheritedData()` - same as `data()`, but walks up the DOM until a value is found or the top\n\t *   parent element is reached.\n\t *\n\t * @param {string|DOMElement} element HTML string or DOMElement to be wrapped into jQuery.\n\t * @returns {Object} jQuery object.\n\t */\n\n\tJQLite.expando = 'ng339';\n\n\tvar jqCache = JQLite.cache = {},\n\t    jqId = 1,\n\t    addEventListenerFn = function(element, type, fn) {\n\t      element.addEventListener(type, fn, false);\n\t    },\n\t    removeEventListenerFn = function(element, type, fn) {\n\t      element.removeEventListener(type, fn, false);\n\t    };\n\n\t/*\n\t * !!! This is an undocumented \"private\" function !!!\n\t */\n\tJQLite._data = function(node) {\n\t  //jQuery always returns an object on cache miss\n\t  return this.cache[node[this.expando]] || {};\n\t};\n\n\tfunction jqNextId() { return ++jqId; }\n\n\n\tvar SPECIAL_CHARS_REGEXP = /([\\:\\-\\_]+(.))/g;\n\tvar MOZ_HACK_REGEXP = /^moz([A-Z])/;\n\tvar MOUSE_EVENT_MAP= { mouseleave: \"mouseout\", mouseenter: \"mouseover\"};\n\tvar jqLiteMinErr = minErr('jqLite');\n\n\t/**\n\t * Converts snake_case to camelCase.\n\t * Also there is special case for Moz prefix starting with upper case letter.\n\t * @param name Name to normalize\n\t */\n\tfunction camelCase(name) {\n\t  return name.\n\t    replace(SPECIAL_CHARS_REGEXP, function(_, separator, letter, offset) {\n\t      return offset ? letter.toUpperCase() : letter;\n\t    }).\n\t    replace(MOZ_HACK_REGEXP, 'Moz$1');\n\t}\n\n\tvar SINGLE_TAG_REGEXP = /^<([\\w-]+)\\s*\\/?>(?:<\\/\\1>|)$/;\n\tvar HTML_REGEXP = /<|&#?\\w+;/;\n\tvar TAG_NAME_REGEXP = /<([\\w:-]+)/;\n\tvar XHTML_TAG_REGEXP = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\\w:-]+)[^>]*)\\/>/gi;\n\n\tvar wrapMap = {\n\t  'option': [1, '<select multiple=\"multiple\">', '</select>'],\n\n\t  'thead': [1, '<table>', '</table>'],\n\t  'col': [2, '<table><colgroup>', '</colgroup></table>'],\n\t  'tr': [2, '<table><tbody>', '</tbody></table>'],\n\t  'td': [3, '<table><tbody><tr>', '</tr></tbody></table>'],\n\t  '_default': [0, \"\", \"\"]\n\t};\n\n\twrapMap.optgroup = wrapMap.option;\n\twrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;\n\twrapMap.th = wrapMap.td;\n\n\n\tfunction jqLiteIsTextNode(html) {\n\t  return !HTML_REGEXP.test(html);\n\t}\n\n\tfunction jqLiteAcceptsData(node) {\n\t  // The window object can accept data but has no nodeType\n\t  // Otherwise we are only interested in elements (1) and documents (9)\n\t  var nodeType = node.nodeType;\n\t  return nodeType === NODE_TYPE_ELEMENT || !nodeType || nodeType === NODE_TYPE_DOCUMENT;\n\t}\n\n\tfunction jqLiteHasData(node) {\n\t  for (var key in jqCache[node.ng339]) {\n\t    return true;\n\t  }\n\t  return false;\n\t}\n\n\tfunction jqLiteBuildFragment(html, context) {\n\t  var tmp, tag, wrap,\n\t      fragment = context.createDocumentFragment(),\n\t      nodes = [], i;\n\n\t  if (jqLiteIsTextNode(html)) {\n\t    // Convert non-html into a text node\n\t    nodes.push(context.createTextNode(html));\n\t  } else {\n\t    // Convert html into DOM nodes\n\t    tmp = tmp || fragment.appendChild(context.createElement(\"div\"));\n\t    tag = (TAG_NAME_REGEXP.exec(html) || [\"\", \"\"])[1].toLowerCase();\n\t    wrap = wrapMap[tag] || wrapMap._default;\n\t    tmp.innerHTML = wrap[1] + html.replace(XHTML_TAG_REGEXP, \"<$1></$2>\") + wrap[2];\n\n\t    // Descend through wrappers to the right content\n\t    i = wrap[0];\n\t    while (i--) {\n\t      tmp = tmp.lastChild;\n\t    }\n\n\t    nodes = concat(nodes, tmp.childNodes);\n\n\t    tmp = fragment.firstChild;\n\t    tmp.textContent = \"\";\n\t  }\n\n\t  // Remove wrapper from fragment\n\t  fragment.textContent = \"\";\n\t  fragment.innerHTML = \"\"; // Clear inner HTML\n\t  forEach(nodes, function(node) {\n\t    fragment.appendChild(node);\n\t  });\n\n\t  return fragment;\n\t}\n\n\tfunction jqLiteParseHTML(html, context) {\n\t  context = context || document;\n\t  var parsed;\n\n\t  if ((parsed = SINGLE_TAG_REGEXP.exec(html))) {\n\t    return [context.createElement(parsed[1])];\n\t  }\n\n\t  if ((parsed = jqLiteBuildFragment(html, context))) {\n\t    return parsed.childNodes;\n\t  }\n\n\t  return [];\n\t}\n\n\n\t// IE9-11 has no method \"contains\" in SVG element and in Node.prototype. Bug #10259.\n\tvar jqLiteContains = Node.prototype.contains || function(arg) {\n\t  // jshint bitwise: false\n\t  return !!(this.compareDocumentPosition(arg) & 16);\n\t  // jshint bitwise: true\n\t};\n\n\t/////////////////////////////////////////////\n\tfunction JQLite(element) {\n\t  if (element instanceof JQLite) {\n\t    return element;\n\t  }\n\n\t  var argIsString;\n\n\t  if (isString(element)) {\n\t    element = trim(element);\n\t    argIsString = true;\n\t  }\n\t  if (!(this instanceof JQLite)) {\n\t    if (argIsString && element.charAt(0) != '<') {\n\t      throw jqLiteMinErr('nosel', 'Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element');\n\t    }\n\t    return new JQLite(element);\n\t  }\n\n\t  if (argIsString) {\n\t    jqLiteAddNodes(this, jqLiteParseHTML(element));\n\t  } else {\n\t    jqLiteAddNodes(this, element);\n\t  }\n\t}\n\n\tfunction jqLiteClone(element) {\n\t  return element.cloneNode(true);\n\t}\n\n\tfunction jqLiteDealoc(element, onlyDescendants) {\n\t  if (!onlyDescendants) jqLiteRemoveData(element);\n\n\t  if (element.querySelectorAll) {\n\t    var descendants = element.querySelectorAll('*');\n\t    for (var i = 0, l = descendants.length; i < l; i++) {\n\t      jqLiteRemoveData(descendants[i]);\n\t    }\n\t  }\n\t}\n\n\tfunction jqLiteOff(element, type, fn, unsupported) {\n\t  if (isDefined(unsupported)) throw jqLiteMinErr('offargs', 'jqLite#off() does not support the `selector` argument');\n\n\t  var expandoStore = jqLiteExpandoStore(element);\n\t  var events = expandoStore && expandoStore.events;\n\t  var handle = expandoStore && expandoStore.handle;\n\n\t  if (!handle) return; //no listeners registered\n\n\t  if (!type) {\n\t    for (type in events) {\n\t      if (type !== '$destroy') {\n\t        removeEventListenerFn(element, type, handle);\n\t      }\n\t      delete events[type];\n\t    }\n\t  } else {\n\n\t    var removeHandler = function(type) {\n\t      var listenerFns = events[type];\n\t      if (isDefined(fn)) {\n\t        arrayRemove(listenerFns || [], fn);\n\t      }\n\t      if (!(isDefined(fn) && listenerFns && listenerFns.length > 0)) {\n\t        removeEventListenerFn(element, type, handle);\n\t        delete events[type];\n\t      }\n\t    };\n\n\t    forEach(type.split(' '), function(type) {\n\t      removeHandler(type);\n\t      if (MOUSE_EVENT_MAP[type]) {\n\t        removeHandler(MOUSE_EVENT_MAP[type]);\n\t      }\n\t    });\n\t  }\n\t}\n\n\tfunction jqLiteRemoveData(element, name) {\n\t  var expandoId = element.ng339;\n\t  var expandoStore = expandoId && jqCache[expandoId];\n\n\t  if (expandoStore) {\n\t    if (name) {\n\t      delete expandoStore.data[name];\n\t      return;\n\t    }\n\n\t    if (expandoStore.handle) {\n\t      if (expandoStore.events.$destroy) {\n\t        expandoStore.handle({}, '$destroy');\n\t      }\n\t      jqLiteOff(element);\n\t    }\n\t    delete jqCache[expandoId];\n\t    element.ng339 = undefined; // don't delete DOM expandos. IE and Chrome don't like it\n\t  }\n\t}\n\n\n\tfunction jqLiteExpandoStore(element, createIfNecessary) {\n\t  var expandoId = element.ng339,\n\t      expandoStore = expandoId && jqCache[expandoId];\n\n\t  if (createIfNecessary && !expandoStore) {\n\t    element.ng339 = expandoId = jqNextId();\n\t    expandoStore = jqCache[expandoId] = {events: {}, data: {}, handle: undefined};\n\t  }\n\n\t  return expandoStore;\n\t}\n\n\n\tfunction jqLiteData(element, key, value) {\n\t  if (jqLiteAcceptsData(element)) {\n\n\t    var isSimpleSetter = isDefined(value);\n\t    var isSimpleGetter = !isSimpleSetter && key && !isObject(key);\n\t    var massGetter = !key;\n\t    var expandoStore = jqLiteExpandoStore(element, !isSimpleGetter);\n\t    var data = expandoStore && expandoStore.data;\n\n\t    if (isSimpleSetter) { // data('key', value)\n\t      data[key] = value;\n\t    } else {\n\t      if (massGetter) {  // data()\n\t        return data;\n\t      } else {\n\t        if (isSimpleGetter) { // data('key')\n\t          // don't force creation of expandoStore if it doesn't exist yet\n\t          return data && data[key];\n\t        } else { // mass-setter: data({key1: val1, key2: val2})\n\t          extend(data, key);\n\t        }\n\t      }\n\t    }\n\t  }\n\t}\n\n\tfunction jqLiteHasClass(element, selector) {\n\t  if (!element.getAttribute) return false;\n\t  return ((\" \" + (element.getAttribute('class') || '') + \" \").replace(/[\\n\\t]/g, \" \").\n\t      indexOf(\" \" + selector + \" \") > -1);\n\t}\n\n\tfunction jqLiteRemoveClass(element, cssClasses) {\n\t  if (cssClasses && element.setAttribute) {\n\t    forEach(cssClasses.split(' '), function(cssClass) {\n\t      element.setAttribute('class', trim(\n\t          (\" \" + (element.getAttribute('class') || '') + \" \")\n\t          .replace(/[\\n\\t]/g, \" \")\n\t          .replace(\" \" + trim(cssClass) + \" \", \" \"))\n\t      );\n\t    });\n\t  }\n\t}\n\n\tfunction jqLiteAddClass(element, cssClasses) {\n\t  if (cssClasses && element.setAttribute) {\n\t    var existingClasses = (' ' + (element.getAttribute('class') || '') + ' ')\n\t                            .replace(/[\\n\\t]/g, \" \");\n\n\t    forEach(cssClasses.split(' '), function(cssClass) {\n\t      cssClass = trim(cssClass);\n\t      if (existingClasses.indexOf(' ' + cssClass + ' ') === -1) {\n\t        existingClasses += cssClass + ' ';\n\t      }\n\t    });\n\n\t    element.setAttribute('class', trim(existingClasses));\n\t  }\n\t}\n\n\n\tfunction jqLiteAddNodes(root, elements) {\n\t  // THIS CODE IS VERY HOT. Don't make changes without benchmarking.\n\n\t  if (elements) {\n\n\t    // if a Node (the most common case)\n\t    if (elements.nodeType) {\n\t      root[root.length++] = elements;\n\t    } else {\n\t      var length = elements.length;\n\n\t      // if an Array or NodeList and not a Window\n\t      if (typeof length === 'number' && elements.window !== elements) {\n\t        if (length) {\n\t          for (var i = 0; i < length; i++) {\n\t            root[root.length++] = elements[i];\n\t          }\n\t        }\n\t      } else {\n\t        root[root.length++] = elements;\n\t      }\n\t    }\n\t  }\n\t}\n\n\n\tfunction jqLiteController(element, name) {\n\t  return jqLiteInheritedData(element, '$' + (name || 'ngController') + 'Controller');\n\t}\n\n\tfunction jqLiteInheritedData(element, name, value) {\n\t  // if element is the document object work with the html element instead\n\t  // this makes $(document).scope() possible\n\t  if (element.nodeType == NODE_TYPE_DOCUMENT) {\n\t    element = element.documentElement;\n\t  }\n\t  var names = isArray(name) ? name : [name];\n\n\t  while (element) {\n\t    for (var i = 0, ii = names.length; i < ii; i++) {\n\t      if (isDefined(value = jqLite.data(element, names[i]))) return value;\n\t    }\n\n\t    // If dealing with a document fragment node with a host element, and no parent, use the host\n\t    // element as the parent. This enables directives within a Shadow DOM or polyfilled Shadow DOM\n\t    // to lookup parent controllers.\n\t    element = element.parentNode || (element.nodeType === NODE_TYPE_DOCUMENT_FRAGMENT && element.host);\n\t  }\n\t}\n\n\tfunction jqLiteEmpty(element) {\n\t  jqLiteDealoc(element, true);\n\t  while (element.firstChild) {\n\t    element.removeChild(element.firstChild);\n\t  }\n\t}\n\n\tfunction jqLiteRemove(element, keepData) {\n\t  if (!keepData) jqLiteDealoc(element);\n\t  var parent = element.parentNode;\n\t  if (parent) parent.removeChild(element);\n\t}\n\n\n\tfunction jqLiteDocumentLoaded(action, win) {\n\t  win = win || window;\n\t  if (win.document.readyState === 'complete') {\n\t    // Force the action to be run async for consistent behaviour\n\t    // from the action's point of view\n\t    // i.e. it will definitely not be in a $apply\n\t    win.setTimeout(action);\n\t  } else {\n\t    // No need to unbind this handler as load is only ever called once\n\t    jqLite(win).on('load', action);\n\t  }\n\t}\n\n\t//////////////////////////////////////////\n\t// Functions which are declared directly.\n\t//////////////////////////////////////////\n\tvar JQLitePrototype = JQLite.prototype = {\n\t  ready: function(fn) {\n\t    var fired = false;\n\n\t    function trigger() {\n\t      if (fired) return;\n\t      fired = true;\n\t      fn();\n\t    }\n\n\t    // check if document is already loaded\n\t    if (document.readyState === 'complete') {\n\t      setTimeout(trigger);\n\t    } else {\n\t      this.on('DOMContentLoaded', trigger); // works for modern browsers and IE9\n\t      // we can not use jqLite since we are not done loading and jQuery could be loaded later.\n\t      // jshint -W064\n\t      JQLite(window).on('load', trigger); // fallback to window.onload for others\n\t      // jshint +W064\n\t    }\n\t  },\n\t  toString: function() {\n\t    var value = [];\n\t    forEach(this, function(e) { value.push('' + e);});\n\t    return '[' + value.join(', ') + ']';\n\t  },\n\n\t  eq: function(index) {\n\t      return (index >= 0) ? jqLite(this[index]) : jqLite(this[this.length + index]);\n\t  },\n\n\t  length: 0,\n\t  push: push,\n\t  sort: [].sort,\n\t  splice: [].splice\n\t};\n\n\t//////////////////////////////////////////\n\t// Functions iterating getter/setters.\n\t// these functions return self on setter and\n\t// value on get.\n\t//////////////////////////////////////////\n\tvar BOOLEAN_ATTR = {};\n\tforEach('multiple,selected,checked,disabled,readOnly,required,open'.split(','), function(value) {\n\t  BOOLEAN_ATTR[lowercase(value)] = value;\n\t});\n\tvar BOOLEAN_ELEMENTS = {};\n\tforEach('input,select,option,textarea,button,form,details'.split(','), function(value) {\n\t  BOOLEAN_ELEMENTS[value] = true;\n\t});\n\tvar ALIASED_ATTR = {\n\t  'ngMinlength': 'minlength',\n\t  'ngMaxlength': 'maxlength',\n\t  'ngMin': 'min',\n\t  'ngMax': 'max',\n\t  'ngPattern': 'pattern'\n\t};\n\n\tfunction getBooleanAttrName(element, name) {\n\t  // check dom last since we will most likely fail on name\n\t  var booleanAttr = BOOLEAN_ATTR[name.toLowerCase()];\n\n\t  // booleanAttr is here twice to minimize DOM access\n\t  return booleanAttr && BOOLEAN_ELEMENTS[nodeName_(element)] && booleanAttr;\n\t}\n\n\tfunction getAliasedAttrName(name) {\n\t  return ALIASED_ATTR[name];\n\t}\n\n\tforEach({\n\t  data: jqLiteData,\n\t  removeData: jqLiteRemoveData,\n\t  hasData: jqLiteHasData\n\t}, function(fn, name) {\n\t  JQLite[name] = fn;\n\t});\n\n\tforEach({\n\t  data: jqLiteData,\n\t  inheritedData: jqLiteInheritedData,\n\n\t  scope: function(element) {\n\t    // Can't use jqLiteData here directly so we stay compatible with jQuery!\n\t    return jqLite.data(element, '$scope') || jqLiteInheritedData(element.parentNode || element, ['$isolateScope', '$scope']);\n\t  },\n\n\t  isolateScope: function(element) {\n\t    // Can't use jqLiteData here directly so we stay compatible with jQuery!\n\t    return jqLite.data(element, '$isolateScope') || jqLite.data(element, '$isolateScopeNoTemplate');\n\t  },\n\n\t  controller: jqLiteController,\n\n\t  injector: function(element) {\n\t    return jqLiteInheritedData(element, '$injector');\n\t  },\n\n\t  removeAttr: function(element, name) {\n\t    element.removeAttribute(name);\n\t  },\n\n\t  hasClass: jqLiteHasClass,\n\n\t  css: function(element, name, value) {\n\t    name = camelCase(name);\n\n\t    if (isDefined(value)) {\n\t      element.style[name] = value;\n\t    } else {\n\t      return element.style[name];\n\t    }\n\t  },\n\n\t  attr: function(element, name, value) {\n\t    var nodeType = element.nodeType;\n\t    if (nodeType === NODE_TYPE_TEXT || nodeType === NODE_TYPE_ATTRIBUTE || nodeType === NODE_TYPE_COMMENT) {\n\t      return;\n\t    }\n\t    var lowercasedName = lowercase(name);\n\t    if (BOOLEAN_ATTR[lowercasedName]) {\n\t      if (isDefined(value)) {\n\t        if (!!value) {\n\t          element[name] = true;\n\t          element.setAttribute(name, lowercasedName);\n\t        } else {\n\t          element[name] = false;\n\t          element.removeAttribute(lowercasedName);\n\t        }\n\t      } else {\n\t        return (element[name] ||\n\t                 (element.attributes.getNamedItem(name) || noop).specified)\n\t               ? lowercasedName\n\t               : undefined;\n\t      }\n\t    } else if (isDefined(value)) {\n\t      element.setAttribute(name, value);\n\t    } else if (element.getAttribute) {\n\t      // the extra argument \"2\" is to get the right thing for a.href in IE, see jQuery code\n\t      // some elements (e.g. Document) don't have get attribute, so return undefined\n\t      var ret = element.getAttribute(name, 2);\n\t      // normalize non-existing attributes to undefined (as jQuery)\n\t      return ret === null ? undefined : ret;\n\t    }\n\t  },\n\n\t  prop: function(element, name, value) {\n\t    if (isDefined(value)) {\n\t      element[name] = value;\n\t    } else {\n\t      return element[name];\n\t    }\n\t  },\n\n\t  text: (function() {\n\t    getText.$dv = '';\n\t    return getText;\n\n\t    function getText(element, value) {\n\t      if (isUndefined(value)) {\n\t        var nodeType = element.nodeType;\n\t        return (nodeType === NODE_TYPE_ELEMENT || nodeType === NODE_TYPE_TEXT) ? element.textContent : '';\n\t      }\n\t      element.textContent = value;\n\t    }\n\t  })(),\n\n\t  val: function(element, value) {\n\t    if (isUndefined(value)) {\n\t      if (element.multiple && nodeName_(element) === 'select') {\n\t        var result = [];\n\t        forEach(element.options, function(option) {\n\t          if (option.selected) {\n\t            result.push(option.value || option.text);\n\t          }\n\t        });\n\t        return result.length === 0 ? null : result;\n\t      }\n\t      return element.value;\n\t    }\n\t    element.value = value;\n\t  },\n\n\t  html: function(element, value) {\n\t    if (isUndefined(value)) {\n\t      return element.innerHTML;\n\t    }\n\t    jqLiteDealoc(element, true);\n\t    element.innerHTML = value;\n\t  },\n\n\t  empty: jqLiteEmpty\n\t}, function(fn, name) {\n\t  /**\n\t   * Properties: writes return selection, reads return first value\n\t   */\n\t  JQLite.prototype[name] = function(arg1, arg2) {\n\t    var i, key;\n\t    var nodeCount = this.length;\n\n\t    // jqLiteHasClass has only two arguments, but is a getter-only fn, so we need to special-case it\n\t    // in a way that survives minification.\n\t    // jqLiteEmpty takes no arguments but is a setter.\n\t    if (fn !== jqLiteEmpty &&\n\t        (isUndefined((fn.length == 2 && (fn !== jqLiteHasClass && fn !== jqLiteController)) ? arg1 : arg2))) {\n\t      if (isObject(arg1)) {\n\n\t        // we are a write, but the object properties are the key/values\n\t        for (i = 0; i < nodeCount; i++) {\n\t          if (fn === jqLiteData) {\n\t            // data() takes the whole object in jQuery\n\t            fn(this[i], arg1);\n\t          } else {\n\t            for (key in arg1) {\n\t              fn(this[i], key, arg1[key]);\n\t            }\n\t          }\n\t        }\n\t        // return self for chaining\n\t        return this;\n\t      } else {\n\t        // we are a read, so read the first child.\n\t        // TODO: do we still need this?\n\t        var value = fn.$dv;\n\t        // Only if we have $dv do we iterate over all, otherwise it is just the first element.\n\t        var jj = (isUndefined(value)) ? Math.min(nodeCount, 1) : nodeCount;\n\t        for (var j = 0; j < jj; j++) {\n\t          var nodeValue = fn(this[j], arg1, arg2);\n\t          value = value ? value + nodeValue : nodeValue;\n\t        }\n\t        return value;\n\t      }\n\t    } else {\n\t      // we are a write, so apply to all children\n\t      for (i = 0; i < nodeCount; i++) {\n\t        fn(this[i], arg1, arg2);\n\t      }\n\t      // return self for chaining\n\t      return this;\n\t    }\n\t  };\n\t});\n\n\tfunction createEventHandler(element, events) {\n\t  var eventHandler = function(event, type) {\n\t    // jQuery specific api\n\t    event.isDefaultPrevented = function() {\n\t      return event.defaultPrevented;\n\t    };\n\n\t    var eventFns = events[type || event.type];\n\t    var eventFnsLength = eventFns ? eventFns.length : 0;\n\n\t    if (!eventFnsLength) return;\n\n\t    if (isUndefined(event.immediatePropagationStopped)) {\n\t      var originalStopImmediatePropagation = event.stopImmediatePropagation;\n\t      event.stopImmediatePropagation = function() {\n\t        event.immediatePropagationStopped = true;\n\n\t        if (event.stopPropagation) {\n\t          event.stopPropagation();\n\t        }\n\n\t        if (originalStopImmediatePropagation) {\n\t          originalStopImmediatePropagation.call(event);\n\t        }\n\t      };\n\t    }\n\n\t    event.isImmediatePropagationStopped = function() {\n\t      return event.immediatePropagationStopped === true;\n\t    };\n\n\t    // Some events have special handlers that wrap the real handler\n\t    var handlerWrapper = eventFns.specialHandlerWrapper || defaultHandlerWrapper;\n\n\t    // Copy event handlers in case event handlers array is modified during execution.\n\t    if ((eventFnsLength > 1)) {\n\t      eventFns = shallowCopy(eventFns);\n\t    }\n\n\t    for (var i = 0; i < eventFnsLength; i++) {\n\t      if (!event.isImmediatePropagationStopped()) {\n\t        handlerWrapper(element, event, eventFns[i]);\n\t      }\n\t    }\n\t  };\n\n\t  // TODO: this is a hack for angularMocks/clearDataCache that makes it possible to deregister all\n\t  //       events on `element`\n\t  eventHandler.elem = element;\n\t  return eventHandler;\n\t}\n\n\tfunction defaultHandlerWrapper(element, event, handler) {\n\t  handler.call(element, event);\n\t}\n\n\tfunction specialMouseHandlerWrapper(target, event, handler) {\n\t  // Refer to jQuery's implementation of mouseenter & mouseleave\n\t  // Read about mouseenter and mouseleave:\n\t  // http://www.quirksmode.org/js/events_mouse.html#link8\n\t  var related = event.relatedTarget;\n\t  // For mousenter/leave call the handler if related is outside the target.\n\t  // NB: No relatedTarget if the mouse left/entered the browser window\n\t  if (!related || (related !== target && !jqLiteContains.call(target, related))) {\n\t    handler.call(target, event);\n\t  }\n\t}\n\n\t//////////////////////////////////////////\n\t// Functions iterating traversal.\n\t// These functions chain results into a single\n\t// selector.\n\t//////////////////////////////////////////\n\tforEach({\n\t  removeData: jqLiteRemoveData,\n\n\t  on: function jqLiteOn(element, type, fn, unsupported) {\n\t    if (isDefined(unsupported)) throw jqLiteMinErr('onargs', 'jqLite#on() does not support the `selector` or `eventData` parameters');\n\n\t    // Do not add event handlers to non-elements because they will not be cleaned up.\n\t    if (!jqLiteAcceptsData(element)) {\n\t      return;\n\t    }\n\n\t    var expandoStore = jqLiteExpandoStore(element, true);\n\t    var events = expandoStore.events;\n\t    var handle = expandoStore.handle;\n\n\t    if (!handle) {\n\t      handle = expandoStore.handle = createEventHandler(element, events);\n\t    }\n\n\t    // http://jsperf.com/string-indexof-vs-split\n\t    var types = type.indexOf(' ') >= 0 ? type.split(' ') : [type];\n\t    var i = types.length;\n\n\t    var addHandler = function(type, specialHandlerWrapper, noEventListener) {\n\t      var eventFns = events[type];\n\n\t      if (!eventFns) {\n\t        eventFns = events[type] = [];\n\t        eventFns.specialHandlerWrapper = specialHandlerWrapper;\n\t        if (type !== '$destroy' && !noEventListener) {\n\t          addEventListenerFn(element, type, handle);\n\t        }\n\t      }\n\n\t      eventFns.push(fn);\n\t    };\n\n\t    while (i--) {\n\t      type = types[i];\n\t      if (MOUSE_EVENT_MAP[type]) {\n\t        addHandler(MOUSE_EVENT_MAP[type], specialMouseHandlerWrapper);\n\t        addHandler(type, undefined, true);\n\t      } else {\n\t        addHandler(type);\n\t      }\n\t    }\n\t  },\n\n\t  off: jqLiteOff,\n\n\t  one: function(element, type, fn) {\n\t    element = jqLite(element);\n\n\t    //add the listener twice so that when it is called\n\t    //you can remove the original function and still be\n\t    //able to call element.off(ev, fn) normally\n\t    element.on(type, function onFn() {\n\t      element.off(type, fn);\n\t      element.off(type, onFn);\n\t    });\n\t    element.on(type, fn);\n\t  },\n\n\t  replaceWith: function(element, replaceNode) {\n\t    var index, parent = element.parentNode;\n\t    jqLiteDealoc(element);\n\t    forEach(new JQLite(replaceNode), function(node) {\n\t      if (index) {\n\t        parent.insertBefore(node, index.nextSibling);\n\t      } else {\n\t        parent.replaceChild(node, element);\n\t      }\n\t      index = node;\n\t    });\n\t  },\n\n\t  children: function(element) {\n\t    var children = [];\n\t    forEach(element.childNodes, function(element) {\n\t      if (element.nodeType === NODE_TYPE_ELEMENT) {\n\t        children.push(element);\n\t      }\n\t    });\n\t    return children;\n\t  },\n\n\t  contents: function(element) {\n\t    return element.contentDocument || element.childNodes || [];\n\t  },\n\n\t  append: function(element, node) {\n\t    var nodeType = element.nodeType;\n\t    if (nodeType !== NODE_TYPE_ELEMENT && nodeType !== NODE_TYPE_DOCUMENT_FRAGMENT) return;\n\n\t    node = new JQLite(node);\n\n\t    for (var i = 0, ii = node.length; i < ii; i++) {\n\t      var child = node[i];\n\t      element.appendChild(child);\n\t    }\n\t  },\n\n\t  prepend: function(element, node) {\n\t    if (element.nodeType === NODE_TYPE_ELEMENT) {\n\t      var index = element.firstChild;\n\t      forEach(new JQLite(node), function(child) {\n\t        element.insertBefore(child, index);\n\t      });\n\t    }\n\t  },\n\n\t  wrap: function(element, wrapNode) {\n\t    wrapNode = jqLite(wrapNode).eq(0).clone()[0];\n\t    var parent = element.parentNode;\n\t    if (parent) {\n\t      parent.replaceChild(wrapNode, element);\n\t    }\n\t    wrapNode.appendChild(element);\n\t  },\n\n\t  remove: jqLiteRemove,\n\n\t  detach: function(element) {\n\t    jqLiteRemove(element, true);\n\t  },\n\n\t  after: function(element, newElement) {\n\t    var index = element, parent = element.parentNode;\n\t    newElement = new JQLite(newElement);\n\n\t    for (var i = 0, ii = newElement.length; i < ii; i++) {\n\t      var node = newElement[i];\n\t      parent.insertBefore(node, index.nextSibling);\n\t      index = node;\n\t    }\n\t  },\n\n\t  addClass: jqLiteAddClass,\n\t  removeClass: jqLiteRemoveClass,\n\n\t  toggleClass: function(element, selector, condition) {\n\t    if (selector) {\n\t      forEach(selector.split(' '), function(className) {\n\t        var classCondition = condition;\n\t        if (isUndefined(classCondition)) {\n\t          classCondition = !jqLiteHasClass(element, className);\n\t        }\n\t        (classCondition ? jqLiteAddClass : jqLiteRemoveClass)(element, className);\n\t      });\n\t    }\n\t  },\n\n\t  parent: function(element) {\n\t    var parent = element.parentNode;\n\t    return parent && parent.nodeType !== NODE_TYPE_DOCUMENT_FRAGMENT ? parent : null;\n\t  },\n\n\t  next: function(element) {\n\t    return element.nextElementSibling;\n\t  },\n\n\t  find: function(element, selector) {\n\t    if (element.getElementsByTagName) {\n\t      return element.getElementsByTagName(selector);\n\t    } else {\n\t      return [];\n\t    }\n\t  },\n\n\t  clone: jqLiteClone,\n\n\t  triggerHandler: function(element, event, extraParameters) {\n\n\t    var dummyEvent, eventFnsCopy, handlerArgs;\n\t    var eventName = event.type || event;\n\t    var expandoStore = jqLiteExpandoStore(element);\n\t    var events = expandoStore && expandoStore.events;\n\t    var eventFns = events && events[eventName];\n\n\t    if (eventFns) {\n\t      // Create a dummy event to pass to the handlers\n\t      dummyEvent = {\n\t        preventDefault: function() { this.defaultPrevented = true; },\n\t        isDefaultPrevented: function() { return this.defaultPrevented === true; },\n\t        stopImmediatePropagation: function() { this.immediatePropagationStopped = true; },\n\t        isImmediatePropagationStopped: function() { return this.immediatePropagationStopped === true; },\n\t        stopPropagation: noop,\n\t        type: eventName,\n\t        target: element\n\t      };\n\n\t      // If a custom event was provided then extend our dummy event with it\n\t      if (event.type) {\n\t        dummyEvent = extend(dummyEvent, event);\n\t      }\n\n\t      // Copy event handlers in case event handlers array is modified during execution.\n\t      eventFnsCopy = shallowCopy(eventFns);\n\t      handlerArgs = extraParameters ? [dummyEvent].concat(extraParameters) : [dummyEvent];\n\n\t      forEach(eventFnsCopy, function(fn) {\n\t        if (!dummyEvent.isImmediatePropagationStopped()) {\n\t          fn.apply(element, handlerArgs);\n\t        }\n\t      });\n\t    }\n\t  }\n\t}, function(fn, name) {\n\t  /**\n\t   * chaining functions\n\t   */\n\t  JQLite.prototype[name] = function(arg1, arg2, arg3) {\n\t    var value;\n\n\t    for (var i = 0, ii = this.length; i < ii; i++) {\n\t      if (isUndefined(value)) {\n\t        value = fn(this[i], arg1, arg2, arg3);\n\t        if (isDefined(value)) {\n\t          // any function which returns a value needs to be wrapped\n\t          value = jqLite(value);\n\t        }\n\t      } else {\n\t        jqLiteAddNodes(value, fn(this[i], arg1, arg2, arg3));\n\t      }\n\t    }\n\t    return isDefined(value) ? value : this;\n\t  };\n\n\t  // bind legacy bind/unbind to on/off\n\t  JQLite.prototype.bind = JQLite.prototype.on;\n\t  JQLite.prototype.unbind = JQLite.prototype.off;\n\t});\n\n\n\t// Provider for private $$jqLite service\n\tfunction $$jqLiteProvider() {\n\t  this.$get = function $$jqLite() {\n\t    return extend(JQLite, {\n\t      hasClass: function(node, classes) {\n\t        if (node.attr) node = node[0];\n\t        return jqLiteHasClass(node, classes);\n\t      },\n\t      addClass: function(node, classes) {\n\t        if (node.attr) node = node[0];\n\t        return jqLiteAddClass(node, classes);\n\t      },\n\t      removeClass: function(node, classes) {\n\t        if (node.attr) node = node[0];\n\t        return jqLiteRemoveClass(node, classes);\n\t      }\n\t    });\n\t  };\n\t}\n\n\t/**\n\t * Computes a hash of an 'obj'.\n\t * Hash of a:\n\t *  string is string\n\t *  number is number as string\n\t *  object is either result of calling $$hashKey function on the object or uniquely generated id,\n\t *         that is also assigned to the $$hashKey property of the object.\n\t *\n\t * @param obj\n\t * @returns {string} hash string such that the same input will have the same hash string.\n\t *         The resulting string key is in 'type:hashKey' format.\n\t */\n\tfunction hashKey(obj, nextUidFn) {\n\t  var key = obj && obj.$$hashKey;\n\n\t  if (key) {\n\t    if (typeof key === 'function') {\n\t      key = obj.$$hashKey();\n\t    }\n\t    return key;\n\t  }\n\n\t  var objType = typeof obj;\n\t  if (objType == 'function' || (objType == 'object' && obj !== null)) {\n\t    key = obj.$$hashKey = objType + ':' + (nextUidFn || nextUid)();\n\t  } else {\n\t    key = objType + ':' + obj;\n\t  }\n\n\t  return key;\n\t}\n\n\t/**\n\t * HashMap which can use objects as keys\n\t */\n\tfunction HashMap(array, isolatedUid) {\n\t  if (isolatedUid) {\n\t    var uid = 0;\n\t    this.nextUid = function() {\n\t      return ++uid;\n\t    };\n\t  }\n\t  forEach(array, this.put, this);\n\t}\n\tHashMap.prototype = {\n\t  /**\n\t   * Store key value pair\n\t   * @param key key to store can be any type\n\t   * @param value value to store can be any type\n\t   */\n\t  put: function(key, value) {\n\t    this[hashKey(key, this.nextUid)] = value;\n\t  },\n\n\t  /**\n\t   * @param key\n\t   * @returns {Object} the value for the key\n\t   */\n\t  get: function(key) {\n\t    return this[hashKey(key, this.nextUid)];\n\t  },\n\n\t  /**\n\t   * Remove the key/value pair\n\t   * @param key\n\t   */\n\t  remove: function(key) {\n\t    var value = this[key = hashKey(key, this.nextUid)];\n\t    delete this[key];\n\t    return value;\n\t  }\n\t};\n\n\tvar $$HashMapProvider = [function() {\n\t  this.$get = [function() {\n\t    return HashMap;\n\t  }];\n\t}];\n\n\t/**\n\t * @ngdoc function\n\t * @module ng\n\t * @name angular.injector\n\t * @kind function\n\t *\n\t * @description\n\t * Creates an injector object that can be used for retrieving services as well as for\n\t * dependency injection (see {@link guide/di dependency injection}).\n\t *\n\t * @param {Array.<string|Function>} modules A list of module functions or their aliases. See\n\t *     {@link angular.module}. The `ng` module must be explicitly added.\n\t * @param {boolean=} [strictDi=false] Whether the injector should be in strict mode, which\n\t *     disallows argument name annotation inference.\n\t * @returns {injector} Injector object. See {@link auto.$injector $injector}.\n\t *\n\t * @example\n\t * Typical usage\n\t * ```js\n\t *   // create an injector\n\t *   var $injector = angular.injector(['ng']);\n\t *\n\t *   // use the injector to kick off your application\n\t *   // use the type inference to auto inject arguments, or use implicit injection\n\t *   $injector.invoke(function($rootScope, $compile, $document) {\n\t *     $compile($document)($rootScope);\n\t *     $rootScope.$digest();\n\t *   });\n\t * ```\n\t *\n\t * Sometimes you want to get access to the injector of a currently running Angular app\n\t * from outside Angular. Perhaps, you want to inject and compile some markup after the\n\t * application has been bootstrapped. You can do this using the extra `injector()` added\n\t * to JQuery/jqLite elements. See {@link angular.element}.\n\t *\n\t * *This is fairly rare but could be the case if a third party library is injecting the\n\t * markup.*\n\t *\n\t * In the following example a new block of HTML containing a `ng-controller`\n\t * directive is added to the end of the document body by JQuery. We then compile and link\n\t * it into the current AngularJS scope.\n\t *\n\t * ```js\n\t * var $div = $('<div ng-controller=\"MyCtrl\">{{content.label}}</div>');\n\t * $(document.body).append($div);\n\t *\n\t * angular.element(document).injector().invoke(function($compile) {\n\t *   var scope = angular.element($div).scope();\n\t *   $compile($div)(scope);\n\t * });\n\t * ```\n\t */\n\n\n\t/**\n\t * @ngdoc module\n\t * @name auto\n\t * @description\n\t *\n\t * Implicit module which gets automatically added to each {@link auto.$injector $injector}.\n\t */\n\n\tvar FN_ARGS = /^[^\\(]*\\(\\s*([^\\)]*)\\)/m;\n\tvar FN_ARG_SPLIT = /,/;\n\tvar FN_ARG = /^\\s*(_?)(\\S+?)\\1\\s*$/;\n\tvar STRIP_COMMENTS = /((\\/\\/.*$)|(\\/\\*[\\s\\S]*?\\*\\/))/mg;\n\tvar $injectorMinErr = minErr('$injector');\n\n\tfunction anonFn(fn) {\n\t  // For anonymous functions, showing at the very least the function signature can help in\n\t  // debugging.\n\t  var fnText = fn.toString().replace(STRIP_COMMENTS, ''),\n\t      args = fnText.match(FN_ARGS);\n\t  if (args) {\n\t    return 'function(' + (args[1] || '').replace(/[\\s\\r\\n]+/, ' ') + ')';\n\t  }\n\t  return 'fn';\n\t}\n\n\tfunction annotate(fn, strictDi, name) {\n\t  var $inject,\n\t      fnText,\n\t      argDecl,\n\t      last;\n\n\t  if (typeof fn === 'function') {\n\t    if (!($inject = fn.$inject)) {\n\t      $inject = [];\n\t      if (fn.length) {\n\t        if (strictDi) {\n\t          if (!isString(name) || !name) {\n\t            name = fn.name || anonFn(fn);\n\t          }\n\t          throw $injectorMinErr('strictdi',\n\t            '{0} is not using explicit annotation and cannot be invoked in strict mode', name);\n\t        }\n\t        fnText = fn.toString().replace(STRIP_COMMENTS, '');\n\t        argDecl = fnText.match(FN_ARGS);\n\t        forEach(argDecl[1].split(FN_ARG_SPLIT), function(arg) {\n\t          arg.replace(FN_ARG, function(all, underscore, name) {\n\t            $inject.push(name);\n\t          });\n\t        });\n\t      }\n\t      fn.$inject = $inject;\n\t    }\n\t  } else if (isArray(fn)) {\n\t    last = fn.length - 1;\n\t    assertArgFn(fn[last], 'fn');\n\t    $inject = fn.slice(0, last);\n\t  } else {\n\t    assertArgFn(fn, 'fn', true);\n\t  }\n\t  return $inject;\n\t}\n\n\t///////////////////////////////////////\n\n\t/**\n\t * @ngdoc service\n\t * @name $injector\n\t *\n\t * @description\n\t *\n\t * `$injector` is used to retrieve object instances as defined by\n\t * {@link auto.$provide provider}, instantiate types, invoke methods,\n\t * and load modules.\n\t *\n\t * The following always holds true:\n\t *\n\t * ```js\n\t *   var $injector = angular.injector();\n\t *   expect($injector.get('$injector')).toBe($injector);\n\t *   expect($injector.invoke(function($injector) {\n\t *     return $injector;\n\t *   })).toBe($injector);\n\t * ```\n\t *\n\t * # Injection Function Annotation\n\t *\n\t * JavaScript does not have annotations, and annotations are needed for dependency injection. The\n\t * following are all valid ways of annotating function with injection arguments and are equivalent.\n\t *\n\t * ```js\n\t *   // inferred (only works if code not minified/obfuscated)\n\t *   $injector.invoke(function(serviceA){});\n\t *\n\t *   // annotated\n\t *   function explicit(serviceA) {};\n\t *   explicit.$inject = ['serviceA'];\n\t *   $injector.invoke(explicit);\n\t *\n\t *   // inline\n\t *   $injector.invoke(['serviceA', function(serviceA){}]);\n\t * ```\n\t *\n\t * ## Inference\n\t *\n\t * In JavaScript calling `toString()` on a function returns the function definition. The definition\n\t * can then be parsed and the function arguments can be extracted. This method of discovering\n\t * annotations is disallowed when the injector is in strict mode.\n\t * *NOTE:* This does not work with minification, and obfuscation tools since these tools change the\n\t * argument names.\n\t *\n\t * ## `$inject` Annotation\n\t * By adding an `$inject` property onto a function the injection parameters can be specified.\n\t *\n\t * ## Inline\n\t * As an array of injection names, where the last item in the array is the function to call.\n\t */\n\n\t/**\n\t * @ngdoc method\n\t * @name $injector#get\n\t *\n\t * @description\n\t * Return an instance of the service.\n\t *\n\t * @param {string} name The name of the instance to retrieve.\n\t * @param {string=} caller An optional string to provide the origin of the function call for error messages.\n\t * @return {*} The instance.\n\t */\n\n\t/**\n\t * @ngdoc method\n\t * @name $injector#invoke\n\t *\n\t * @description\n\t * Invoke the method and supply the method arguments from the `$injector`.\n\t *\n\t * @param {Function|Array.<string|Function>} fn The injectable function to invoke. Function parameters are\n\t *   injected according to the {@link guide/di $inject Annotation} rules.\n\t * @param {Object=} self The `this` for the invoked method.\n\t * @param {Object=} locals Optional object. If preset then any argument names are read from this\n\t *                         object first, before the `$injector` is consulted.\n\t * @returns {*} the value returned by the invoked `fn` function.\n\t */\n\n\t/**\n\t * @ngdoc method\n\t * @name $injector#has\n\t *\n\t * @description\n\t * Allows the user to query if the particular service exists.\n\t *\n\t * @param {string} name Name of the service to query.\n\t * @returns {boolean} `true` if injector has given service.\n\t */\n\n\t/**\n\t * @ngdoc method\n\t * @name $injector#instantiate\n\t * @description\n\t * Create a new instance of JS type. The method takes a constructor function, invokes the new\n\t * operator, and supplies all of the arguments to the constructor function as specified by the\n\t * constructor annotation.\n\t *\n\t * @param {Function} Type Annotated constructor function.\n\t * @param {Object=} locals Optional object. If preset then any argument names are read from this\n\t * object first, before the `$injector` is consulted.\n\t * @returns {Object} new instance of `Type`.\n\t */\n\n\t/**\n\t * @ngdoc method\n\t * @name $injector#annotate\n\t *\n\t * @description\n\t * Returns an array of service names which the function is requesting for injection. This API is\n\t * used by the injector to determine which services need to be injected into the function when the\n\t * function is invoked. There are three ways in which the function can be annotated with the needed\n\t * dependencies.\n\t *\n\t * # Argument names\n\t *\n\t * The simplest form is to extract the dependencies from the arguments of the function. This is done\n\t * by converting the function into a string using `toString()` method and extracting the argument\n\t * names.\n\t * ```js\n\t *   // Given\n\t *   function MyController($scope, $route) {\n\t *     // ...\n\t *   }\n\t *\n\t *   // Then\n\t *   expect(injector.annotate(MyController)).toEqual(['$scope', '$route']);\n\t * ```\n\t *\n\t * You can disallow this method by using strict injection mode.\n\t *\n\t * This method does not work with code minification / obfuscation. For this reason the following\n\t * annotation strategies are supported.\n\t *\n\t * # The `$inject` property\n\t *\n\t * If a function has an `$inject` property and its value is an array of strings, then the strings\n\t * represent names of services to be injected into the function.\n\t * ```js\n\t *   // Given\n\t *   var MyController = function(obfuscatedScope, obfuscatedRoute) {\n\t *     // ...\n\t *   }\n\t *   // Define function dependencies\n\t *   MyController['$inject'] = ['$scope', '$route'];\n\t *\n\t *   // Then\n\t *   expect(injector.annotate(MyController)).toEqual(['$scope', '$route']);\n\t * ```\n\t *\n\t * # The array notation\n\t *\n\t * It is often desirable to inline Injected functions and that's when setting the `$inject` property\n\t * is very inconvenient. In these situations using the array notation to specify the dependencies in\n\t * a way that survives minification is a better choice:\n\t *\n\t * ```js\n\t *   // We wish to write this (not minification / obfuscation safe)\n\t *   injector.invoke(function($compile, $rootScope) {\n\t *     // ...\n\t *   });\n\t *\n\t *   // We are forced to write break inlining\n\t *   var tmpFn = function(obfuscatedCompile, obfuscatedRootScope) {\n\t *     // ...\n\t *   };\n\t *   tmpFn.$inject = ['$compile', '$rootScope'];\n\t *   injector.invoke(tmpFn);\n\t *\n\t *   // To better support inline function the inline annotation is supported\n\t *   injector.invoke(['$compile', '$rootScope', function(obfCompile, obfRootScope) {\n\t *     // ...\n\t *   }]);\n\t *\n\t *   // Therefore\n\t *   expect(injector.annotate(\n\t *      ['$compile', '$rootScope', function(obfus_$compile, obfus_$rootScope) {}])\n\t *    ).toEqual(['$compile', '$rootScope']);\n\t * ```\n\t *\n\t * @param {Function|Array.<string|Function>} fn Function for which dependent service names need to\n\t * be retrieved as described above.\n\t *\n\t * @param {boolean=} [strictDi=false] Disallow argument name annotation inference.\n\t *\n\t * @returns {Array.<string>} The names of the services which the function requires.\n\t */\n\n\n\n\n\t/**\n\t * @ngdoc service\n\t * @name $provide\n\t *\n\t * @description\n\t *\n\t * The {@link auto.$provide $provide} service has a number of methods for registering components\n\t * with the {@link auto.$injector $injector}. Many of these functions are also exposed on\n\t * {@link angular.Module}.\n\t *\n\t * An Angular **service** is a singleton object created by a **service factory**.  These **service\n\t * factories** are functions which, in turn, are created by a **service provider**.\n\t * The **service providers** are constructor functions. When instantiated they must contain a\n\t * property called `$get`, which holds the **service factory** function.\n\t *\n\t * When you request a service, the {@link auto.$injector $injector} is responsible for finding the\n\t * correct **service provider**, instantiating it and then calling its `$get` **service factory**\n\t * function to get the instance of the **service**.\n\t *\n\t * Often services have no configuration options and there is no need to add methods to the service\n\t * provider.  The provider will be no more than a constructor function with a `$get` property. For\n\t * these cases the {@link auto.$provide $provide} service has additional helper methods to register\n\t * services without specifying a provider.\n\t *\n\t * * {@link auto.$provide#provider provider(provider)} - registers a **service provider** with the\n\t *     {@link auto.$injector $injector}\n\t * * {@link auto.$provide#constant constant(obj)} - registers a value/object that can be accessed by\n\t *     providers and services.\n\t * * {@link auto.$provide#value value(obj)} - registers a value/object that can only be accessed by\n\t *     services, not providers.\n\t * * {@link auto.$provide#factory factory(fn)} - registers a service **factory function**, `fn`,\n\t *     that will be wrapped in a **service provider** object, whose `$get` property will contain the\n\t *     given factory function.\n\t * * {@link auto.$provide#service service(class)} - registers a **constructor function**, `class`\n\t *     that will be wrapped in a **service provider** object, whose `$get` property will instantiate\n\t *      a new object using the given constructor function.\n\t *\n\t * See the individual methods for more information and examples.\n\t */\n\n\t/**\n\t * @ngdoc method\n\t * @name $provide#provider\n\t * @description\n\t *\n\t * Register a **provider function** with the {@link auto.$injector $injector}. Provider functions\n\t * are constructor functions, whose instances are responsible for \"providing\" a factory for a\n\t * service.\n\t *\n\t * Service provider names start with the name of the service they provide followed by `Provider`.\n\t * For example, the {@link ng.$log $log} service has a provider called\n\t * {@link ng.$logProvider $logProvider}.\n\t *\n\t * Service provider objects can have additional methods which allow configuration of the provider\n\t * and its service. Importantly, you can configure what kind of service is created by the `$get`\n\t * method, or how that service will act. For example, the {@link ng.$logProvider $logProvider} has a\n\t * method {@link ng.$logProvider#debugEnabled debugEnabled}\n\t * which lets you specify whether the {@link ng.$log $log} service will log debug messages to the\n\t * console or not.\n\t *\n\t * @param {string} name The name of the instance. NOTE: the provider will be available under `name +\n\t                        'Provider'` key.\n\t * @param {(Object|function())} provider If the provider is:\n\t *\n\t *   - `Object`: then it should have a `$get` method. The `$get` method will be invoked using\n\t *     {@link auto.$injector#invoke $injector.invoke()} when an instance needs to be created.\n\t *   - `Constructor`: a new instance of the provider will be created using\n\t *     {@link auto.$injector#instantiate $injector.instantiate()}, then treated as `object`.\n\t *\n\t * @returns {Object} registered provider instance\n\n\t * @example\n\t *\n\t * The following example shows how to create a simple event tracking service and register it using\n\t * {@link auto.$provide#provider $provide.provider()}.\n\t *\n\t * ```js\n\t *  // Define the eventTracker provider\n\t *  function EventTrackerProvider() {\n\t *    var trackingUrl = '/track';\n\t *\n\t *    // A provider method for configuring where the tracked events should been saved\n\t *    this.setTrackingUrl = function(url) {\n\t *      trackingUrl = url;\n\t *    };\n\t *\n\t *    // The service factory function\n\t *    this.$get = ['$http', function($http) {\n\t *      var trackedEvents = {};\n\t *      return {\n\t *        // Call this to track an event\n\t *        event: function(event) {\n\t *          var count = trackedEvents[event] || 0;\n\t *          count += 1;\n\t *          trackedEvents[event] = count;\n\t *          return count;\n\t *        },\n\t *        // Call this to save the tracked events to the trackingUrl\n\t *        save: function() {\n\t *          $http.post(trackingUrl, trackedEvents);\n\t *        }\n\t *      };\n\t *    }];\n\t *  }\n\t *\n\t *  describe('eventTracker', function() {\n\t *    var postSpy;\n\t *\n\t *    beforeEach(module(function($provide) {\n\t *      // Register the eventTracker provider\n\t *      $provide.provider('eventTracker', EventTrackerProvider);\n\t *    }));\n\t *\n\t *    beforeEach(module(function(eventTrackerProvider) {\n\t *      // Configure eventTracker provider\n\t *      eventTrackerProvider.setTrackingUrl('/custom-track');\n\t *    }));\n\t *\n\t *    it('tracks events', inject(function(eventTracker) {\n\t *      expect(eventTracker.event('login')).toEqual(1);\n\t *      expect(eventTracker.event('login')).toEqual(2);\n\t *    }));\n\t *\n\t *    it('saves to the tracking url', inject(function(eventTracker, $http) {\n\t *      postSpy = spyOn($http, 'post');\n\t *      eventTracker.event('login');\n\t *      eventTracker.save();\n\t *      expect(postSpy).toHaveBeenCalled();\n\t *      expect(postSpy.mostRecentCall.args[0]).not.toEqual('/track');\n\t *      expect(postSpy.mostRecentCall.args[0]).toEqual('/custom-track');\n\t *      expect(postSpy.mostRecentCall.args[1]).toEqual({ 'login': 1 });\n\t *    }));\n\t *  });\n\t * ```\n\t */\n\n\t/**\n\t * @ngdoc method\n\t * @name $provide#factory\n\t * @description\n\t *\n\t * Register a **service factory**, which will be called to return the service instance.\n\t * This is short for registering a service where its provider consists of only a `$get` property,\n\t * which is the given service factory function.\n\t * You should use {@link auto.$provide#factory $provide.factory(getFn)} if you do not need to\n\t * configure your service in a provider.\n\t *\n\t * @param {string} name The name of the instance.\n\t * @param {Function|Array.<string|Function>} $getFn The injectable $getFn for the instance creation.\n\t *                      Internally this is a short hand for `$provide.provider(name, {$get: $getFn})`.\n\t * @returns {Object} registered provider instance\n\t *\n\t * @example\n\t * Here is an example of registering a service\n\t * ```js\n\t *   $provide.factory('ping', ['$http', function($http) {\n\t *     return function ping() {\n\t *       return $http.send('/ping');\n\t *     };\n\t *   }]);\n\t * ```\n\t * You would then inject and use this service like this:\n\t * ```js\n\t *   someModule.controller('Ctrl', ['ping', function(ping) {\n\t *     ping();\n\t *   }]);\n\t * ```\n\t */\n\n\n\t/**\n\t * @ngdoc method\n\t * @name $provide#service\n\t * @description\n\t *\n\t * Register a **service constructor**, which will be invoked with `new` to create the service\n\t * instance.\n\t * This is short for registering a service where its provider's `$get` property is the service\n\t * constructor function that will be used to instantiate the service instance.\n\t *\n\t * You should use {@link auto.$provide#service $provide.service(class)} if you define your service\n\t * as a type/class.\n\t *\n\t * @param {string} name The name of the instance.\n\t * @param {Function|Array.<string|Function>} constructor An injectable class (constructor function)\n\t *     that will be instantiated.\n\t * @returns {Object} registered provider instance\n\t *\n\t * @example\n\t * Here is an example of registering a service using\n\t * {@link auto.$provide#service $provide.service(class)}.\n\t * ```js\n\t *   var Ping = function($http) {\n\t *     this.$http = $http;\n\t *   };\n\t *\n\t *   Ping.$inject = ['$http'];\n\t *\n\t *   Ping.prototype.send = function() {\n\t *     return this.$http.get('/ping');\n\t *   };\n\t *   $provide.service('ping', Ping);\n\t * ```\n\t * You would then inject and use this service like this:\n\t * ```js\n\t *   someModule.controller('Ctrl', ['ping', function(ping) {\n\t *     ping.send();\n\t *   }]);\n\t * ```\n\t */\n\n\n\t/**\n\t * @ngdoc method\n\t * @name $provide#value\n\t * @description\n\t *\n\t * Register a **value service** with the {@link auto.$injector $injector}, such as a string, a\n\t * number, an array, an object or a function.  This is short for registering a service where its\n\t * provider's `$get` property is a factory function that takes no arguments and returns the **value\n\t * service**.\n\t *\n\t * Value services are similar to constant services, except that they cannot be injected into a\n\t * module configuration function (see {@link angular.Module#config}) but they can be overridden by\n\t * an Angular\n\t * {@link auto.$provide#decorator decorator}.\n\t *\n\t * @param {string} name The name of the instance.\n\t * @param {*} value The value.\n\t * @returns {Object} registered provider instance\n\t *\n\t * @example\n\t * Here are some examples of creating value services.\n\t * ```js\n\t *   $provide.value('ADMIN_USER', 'admin');\n\t *\n\t *   $provide.value('RoleLookup', { admin: 0, writer: 1, reader: 2 });\n\t *\n\t *   $provide.value('halfOf', function(value) {\n\t *     return value / 2;\n\t *   });\n\t * ```\n\t */\n\n\n\t/**\n\t * @ngdoc method\n\t * @name $provide#constant\n\t * @description\n\t *\n\t * Register a **constant service**, such as a string, a number, an array, an object or a function,\n\t * with the {@link auto.$injector $injector}. Unlike {@link auto.$provide#value value} it can be\n\t * injected into a module configuration function (see {@link angular.Module#config}) and it cannot\n\t * be overridden by an Angular {@link auto.$provide#decorator decorator}.\n\t *\n\t * @param {string} name The name of the constant.\n\t * @param {*} value The constant value.\n\t * @returns {Object} registered instance\n\t *\n\t * @example\n\t * Here a some examples of creating constants:\n\t * ```js\n\t *   $provide.constant('SHARD_HEIGHT', 306);\n\t *\n\t *   $provide.constant('MY_COLOURS', ['red', 'blue', 'grey']);\n\t *\n\t *   $provide.constant('double', function(value) {\n\t *     return value * 2;\n\t *   });\n\t * ```\n\t */\n\n\n\t/**\n\t * @ngdoc method\n\t * @name $provide#decorator\n\t * @description\n\t *\n\t * Register a **service decorator** with the {@link auto.$injector $injector}. A service decorator\n\t * intercepts the creation of a service, allowing it to override or modify the behaviour of the\n\t * service. The object returned by the decorator may be the original service, or a new service\n\t * object which replaces or wraps and delegates to the original service.\n\t *\n\t * @param {string} name The name of the service to decorate.\n\t * @param {Function|Array.<string|Function>} decorator This function will be invoked when the service needs to be\n\t *    instantiated and should return the decorated service instance. The function is called using\n\t *    the {@link auto.$injector#invoke injector.invoke} method and is therefore fully injectable.\n\t *    Local injection arguments:\n\t *\n\t *    * `$delegate` - The original service instance, which can be monkey patched, configured,\n\t *      decorated or delegated to.\n\t *\n\t * @example\n\t * Here we decorate the {@link ng.$log $log} service to convert warnings to errors by intercepting\n\t * calls to {@link ng.$log#error $log.warn()}.\n\t * ```js\n\t *   $provide.decorator('$log', ['$delegate', function($delegate) {\n\t *     $delegate.warn = $delegate.error;\n\t *     return $delegate;\n\t *   }]);\n\t * ```\n\t */\n\n\n\tfunction createInjector(modulesToLoad, strictDi) {\n\t  strictDi = (strictDi === true);\n\t  var INSTANTIATING = {},\n\t      providerSuffix = 'Provider',\n\t      path = [],\n\t      loadedModules = new HashMap([], true),\n\t      providerCache = {\n\t        $provide: {\n\t            provider: supportObject(provider),\n\t            factory: supportObject(factory),\n\t            service: supportObject(service),\n\t            value: supportObject(value),\n\t            constant: supportObject(constant),\n\t            decorator: decorator\n\t          }\n\t      },\n\t      providerInjector = (providerCache.$injector =\n\t          createInternalInjector(providerCache, function(serviceName, caller) {\n\t            if (angular.isString(caller)) {\n\t              path.push(caller);\n\t            }\n\t            throw $injectorMinErr('unpr', \"Unknown provider: {0}\", path.join(' <- '));\n\t          })),\n\t      instanceCache = {},\n\t      instanceInjector = (instanceCache.$injector =\n\t          createInternalInjector(instanceCache, function(serviceName, caller) {\n\t            var provider = providerInjector.get(serviceName + providerSuffix, caller);\n\t            return instanceInjector.invoke(provider.$get, provider, undefined, serviceName);\n\t          }));\n\n\n\t  forEach(loadModules(modulesToLoad), function(fn) { if (fn) instanceInjector.invoke(fn); });\n\n\t  return instanceInjector;\n\n\t  ////////////////////////////////////\n\t  // $provider\n\t  ////////////////////////////////////\n\n\t  function supportObject(delegate) {\n\t    return function(key, value) {\n\t      if (isObject(key)) {\n\t        forEach(key, reverseParams(delegate));\n\t      } else {\n\t        return delegate(key, value);\n\t      }\n\t    };\n\t  }\n\n\t  function provider(name, provider_) {\n\t    assertNotHasOwnProperty(name, 'service');\n\t    if (isFunction(provider_) || isArray(provider_)) {\n\t      provider_ = providerInjector.instantiate(provider_);\n\t    }\n\t    if (!provider_.$get) {\n\t      throw $injectorMinErr('pget', \"Provider '{0}' must define $get factory method.\", name);\n\t    }\n\t    return providerCache[name + providerSuffix] = provider_;\n\t  }\n\n\t  function enforceReturnValue(name, factory) {\n\t    return function enforcedReturnValue() {\n\t      var result = instanceInjector.invoke(factory, this);\n\t      if (isUndefined(result)) {\n\t        throw $injectorMinErr('undef', \"Provider '{0}' must return a value from $get factory method.\", name);\n\t      }\n\t      return result;\n\t    };\n\t  }\n\n\t  function factory(name, factoryFn, enforce) {\n\t    return provider(name, {\n\t      $get: enforce !== false ? enforceReturnValue(name, factoryFn) : factoryFn\n\t    });\n\t  }\n\n\t  function service(name, constructor) {\n\t    return factory(name, ['$injector', function($injector) {\n\t      return $injector.instantiate(constructor);\n\t    }]);\n\t  }\n\n\t  function value(name, val) { return factory(name, valueFn(val), false); }\n\n\t  function constant(name, value) {\n\t    assertNotHasOwnProperty(name, 'constant');\n\t    providerCache[name] = value;\n\t    instanceCache[name] = value;\n\t  }\n\n\t  function decorator(serviceName, decorFn) {\n\t    var origProvider = providerInjector.get(serviceName + providerSuffix),\n\t        orig$get = origProvider.$get;\n\n\t    origProvider.$get = function() {\n\t      var origInstance = instanceInjector.invoke(orig$get, origProvider);\n\t      return instanceInjector.invoke(decorFn, null, {$delegate: origInstance});\n\t    };\n\t  }\n\n\t  ////////////////////////////////////\n\t  // Module Loading\n\t  ////////////////////////////////////\n\t  function loadModules(modulesToLoad) {\n\t    assertArg(isUndefined(modulesToLoad) || isArray(modulesToLoad), 'modulesToLoad', 'not an array');\n\t    var runBlocks = [], moduleFn;\n\t    forEach(modulesToLoad, function(module) {\n\t      if (loadedModules.get(module)) return;\n\t      loadedModules.put(module, true);\n\n\t      function runInvokeQueue(queue) {\n\t        var i, ii;\n\t        for (i = 0, ii = queue.length; i < ii; i++) {\n\t          var invokeArgs = queue[i],\n\t              provider = providerInjector.get(invokeArgs[0]);\n\n\t          provider[invokeArgs[1]].apply(provider, invokeArgs[2]);\n\t        }\n\t      }\n\n\t      try {\n\t        if (isString(module)) {\n\t          moduleFn = angularModule(module);\n\t          runBlocks = runBlocks.concat(loadModules(moduleFn.requires)).concat(moduleFn._runBlocks);\n\t          runInvokeQueue(moduleFn._invokeQueue);\n\t          runInvokeQueue(moduleFn._configBlocks);\n\t        } else if (isFunction(module)) {\n\t            runBlocks.push(providerInjector.invoke(module));\n\t        } else if (isArray(module)) {\n\t            runBlocks.push(providerInjector.invoke(module));\n\t        } else {\n\t          assertArgFn(module, 'module');\n\t        }\n\t      } catch (e) {\n\t        if (isArray(module)) {\n\t          module = module[module.length - 1];\n\t        }\n\t        if (e.message && e.stack && e.stack.indexOf(e.message) == -1) {\n\t          // Safari & FF's stack traces don't contain error.message content\n\t          // unlike those of Chrome and IE\n\t          // So if stack doesn't contain message, we create a new string that contains both.\n\t          // Since error.stack is read-only in Safari, I'm overriding e and not e.stack here.\n\t          /* jshint -W022 */\n\t          e = e.message + '\\n' + e.stack;\n\t        }\n\t        throw $injectorMinErr('modulerr', \"Failed to instantiate module {0} due to:\\n{1}\",\n\t                  module, e.stack || e.message || e);\n\t      }\n\t    });\n\t    return runBlocks;\n\t  }\n\n\t  ////////////////////////////////////\n\t  // internal Injector\n\t  ////////////////////////////////////\n\n\t  function createInternalInjector(cache, factory) {\n\n\t    function getService(serviceName, caller) {\n\t      if (cache.hasOwnProperty(serviceName)) {\n\t        if (cache[serviceName] === INSTANTIATING) {\n\t          throw $injectorMinErr('cdep', 'Circular dependency found: {0}',\n\t                    serviceName + ' <- ' + path.join(' <- '));\n\t        }\n\t        return cache[serviceName];\n\t      } else {\n\t        try {\n\t          path.unshift(serviceName);\n\t          cache[serviceName] = INSTANTIATING;\n\t          return cache[serviceName] = factory(serviceName, caller);\n\t        } catch (err) {\n\t          if (cache[serviceName] === INSTANTIATING) {\n\t            delete cache[serviceName];\n\t          }\n\t          throw err;\n\t        } finally {\n\t          path.shift();\n\t        }\n\t      }\n\t    }\n\n\t    function invoke(fn, self, locals, serviceName) {\n\t      if (typeof locals === 'string') {\n\t        serviceName = locals;\n\t        locals = null;\n\t      }\n\n\t      var args = [],\n\t          $inject = createInjector.$$annotate(fn, strictDi, serviceName),\n\t          length, i,\n\t          key;\n\n\t      for (i = 0, length = $inject.length; i < length; i++) {\n\t        key = $inject[i];\n\t        if (typeof key !== 'string') {\n\t          throw $injectorMinErr('itkn',\n\t                  'Incorrect injection token! Expected service name as string, got {0}', key);\n\t        }\n\t        args.push(\n\t          locals && locals.hasOwnProperty(key)\n\t          ? locals[key]\n\t          : getService(key, serviceName)\n\t        );\n\t      }\n\t      if (isArray(fn)) {\n\t        fn = fn[length];\n\t      }\n\n\t      // http://jsperf.com/angularjs-invoke-apply-vs-switch\n\t      // #5388\n\t      return fn.apply(self, args);\n\t    }\n\n\t    function instantiate(Type, locals, serviceName) {\n\t      // Check if Type is annotated and use just the given function at n-1 as parameter\n\t      // e.g. someModule.factory('greeter', ['$window', function(renamed$window) {}]);\n\t      // Object creation: http://jsperf.com/create-constructor/2\n\t      var instance = Object.create((isArray(Type) ? Type[Type.length - 1] : Type).prototype || null);\n\t      var returnedValue = invoke(Type, instance, locals, serviceName);\n\n\t      return isObject(returnedValue) || isFunction(returnedValue) ? returnedValue : instance;\n\t    }\n\n\t    return {\n\t      invoke: invoke,\n\t      instantiate: instantiate,\n\t      get: getService,\n\t      annotate: createInjector.$$annotate,\n\t      has: function(name) {\n\t        return providerCache.hasOwnProperty(name + providerSuffix) || cache.hasOwnProperty(name);\n\t      }\n\t    };\n\t  }\n\t}\n\n\tcreateInjector.$$annotate = annotate;\n\n\t/**\n\t * @ngdoc provider\n\t * @name $anchorScrollProvider\n\t *\n\t * @description\n\t * Use `$anchorScrollProvider` to disable automatic scrolling whenever\n\t * {@link ng.$location#hash $location.hash()} changes.\n\t */\n\tfunction $AnchorScrollProvider() {\n\n\t  var autoScrollingEnabled = true;\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $anchorScrollProvider#disableAutoScrolling\n\t   *\n\t   * @description\n\t   * By default, {@link ng.$anchorScroll $anchorScroll()} will automatically detect changes to\n\t   * {@link ng.$location#hash $location.hash()} and scroll to the element matching the new hash.<br />\n\t   * Use this method to disable automatic scrolling.\n\t   *\n\t   * If automatic scrolling is disabled, one must explicitly call\n\t   * {@link ng.$anchorScroll $anchorScroll()} in order to scroll to the element related to the\n\t   * current hash.\n\t   */\n\t  this.disableAutoScrolling = function() {\n\t    autoScrollingEnabled = false;\n\t  };\n\n\t  /**\n\t   * @ngdoc service\n\t   * @name $anchorScroll\n\t   * @kind function\n\t   * @requires $window\n\t   * @requires $location\n\t   * @requires $rootScope\n\t   *\n\t   * @description\n\t   * When called, it scrolls to the element related to the specified `hash` or (if omitted) to the\n\t   * current value of {@link ng.$location#hash $location.hash()}, according to the rules specified\n\t   * in the\n\t   * [HTML5 spec](http://www.w3.org/html/wg/drafts/html/master/browsers.html#the-indicated-part-of-the-document).\n\t   *\n\t   * It also watches the {@link ng.$location#hash $location.hash()} and automatically scrolls to\n\t   * match any anchor whenever it changes. This can be disabled by calling\n\t   * {@link ng.$anchorScrollProvider#disableAutoScrolling $anchorScrollProvider.disableAutoScrolling()}.\n\t   *\n\t   * Additionally, you can use its {@link ng.$anchorScroll#yOffset yOffset} property to specify a\n\t   * vertical scroll-offset (either fixed or dynamic).\n\t   *\n\t   * @param {string=} hash The hash specifying the element to scroll to. If omitted, the value of\n\t   *                       {@link ng.$location#hash $location.hash()} will be used.\n\t   *\n\t   * @property {(number|function|jqLite)} yOffset\n\t   * If set, specifies a vertical scroll-offset. This is often useful when there are fixed\n\t   * positioned elements at the top of the page, such as navbars, headers etc.\n\t   *\n\t   * `yOffset` can be specified in various ways:\n\t   * - **number**: A fixed number of pixels to be used as offset.<br /><br />\n\t   * - **function**: A getter function called everytime `$anchorScroll()` is executed. Must return\n\t   *   a number representing the offset (in pixels).<br /><br />\n\t   * - **jqLite**: A jqLite/jQuery element to be used for specifying the offset. The distance from\n\t   *   the top of the page to the element's bottom will be used as offset.<br />\n\t   *   **Note**: The element will be taken into account only as long as its `position` is set to\n\t   *   `fixed`. This option is useful, when dealing with responsive navbars/headers that adjust\n\t   *   their height and/or positioning according to the viewport's size.\n\t   *\n\t   * <br />\n\t   * <div class=\"alert alert-warning\">\n\t   * In order for `yOffset` to work properly, scrolling should take place on the document's root and\n\t   * not some child element.\n\t   * </div>\n\t   *\n\t   * @example\n\t     <example module=\"anchorScrollExample\">\n\t       <file name=\"index.html\">\n\t         <div id=\"scrollArea\" ng-controller=\"ScrollController\">\n\t           <a ng-click=\"gotoBottom()\">Go to bottom</a>\n\t           <a id=\"bottom\"></a> You're at the bottom!\n\t         </div>\n\t       </file>\n\t       <file name=\"script.js\">\n\t         angular.module('anchorScrollExample', [])\n\t           .controller('ScrollController', ['$scope', '$location', '$anchorScroll',\n\t             function ($scope, $location, $anchorScroll) {\n\t               $scope.gotoBottom = function() {\n\t                 // set the location.hash to the id of\n\t                 // the element you wish to scroll to.\n\t                 $location.hash('bottom');\n\n\t                 // call $anchorScroll()\n\t                 $anchorScroll();\n\t               };\n\t             }]);\n\t       </file>\n\t       <file name=\"style.css\">\n\t         #scrollArea {\n\t           height: 280px;\n\t           overflow: auto;\n\t         }\n\n\t         #bottom {\n\t           display: block;\n\t           margin-top: 2000px;\n\t         }\n\t       </file>\n\t     </example>\n\t   *\n\t   * <hr />\n\t   * The example below illustrates the use of a vertical scroll-offset (specified as a fixed value).\n\t   * See {@link ng.$anchorScroll#yOffset $anchorScroll.yOffset} for more details.\n\t   *\n\t   * @example\n\t     <example module=\"anchorScrollOffsetExample\">\n\t       <file name=\"index.html\">\n\t         <div class=\"fixed-header\" ng-controller=\"headerCtrl\">\n\t           <a href=\"\" ng-click=\"gotoAnchor(x)\" ng-repeat=\"x in [1,2,3,4,5]\">\n\t             Go to anchor {{x}}\n\t           </a>\n\t         </div>\n\t         <div id=\"anchor{{x}}\" class=\"anchor\" ng-repeat=\"x in [1,2,3,4,5]\">\n\t           Anchor {{x}} of 5\n\t         </div>\n\t       </file>\n\t       <file name=\"script.js\">\n\t         angular.module('anchorScrollOffsetExample', [])\n\t           .run(['$anchorScroll', function($anchorScroll) {\n\t             $anchorScroll.yOffset = 50;   // always scroll by 50 extra pixels\n\t           }])\n\t           .controller('headerCtrl', ['$anchorScroll', '$location', '$scope',\n\t             function ($anchorScroll, $location, $scope) {\n\t               $scope.gotoAnchor = function(x) {\n\t                 var newHash = 'anchor' + x;\n\t                 if ($location.hash() !== newHash) {\n\t                   // set the $location.hash to `newHash` and\n\t                   // $anchorScroll will automatically scroll to it\n\t                   $location.hash('anchor' + x);\n\t                 } else {\n\t                   // call $anchorScroll() explicitly,\n\t                   // since $location.hash hasn't changed\n\t                   $anchorScroll();\n\t                 }\n\t               };\n\t             }\n\t           ]);\n\t       </file>\n\t       <file name=\"style.css\">\n\t         body {\n\t           padding-top: 50px;\n\t         }\n\n\t         .anchor {\n\t           border: 2px dashed DarkOrchid;\n\t           padding: 10px 10px 200px 10px;\n\t         }\n\n\t         .fixed-header {\n\t           background-color: rgba(0, 0, 0, 0.2);\n\t           height: 50px;\n\t           position: fixed;\n\t           top: 0; left: 0; right: 0;\n\t         }\n\n\t         .fixed-header > a {\n\t           display: inline-block;\n\t           margin: 5px 15px;\n\t         }\n\t       </file>\n\t     </example>\n\t   */\n\t  this.$get = ['$window', '$location', '$rootScope', function($window, $location, $rootScope) {\n\t    var document = $window.document;\n\n\t    // Helper function to get first anchor from a NodeList\n\t    // (using `Array#some()` instead of `angular#forEach()` since it's more performant\n\t    //  and working in all supported browsers.)\n\t    function getFirstAnchor(list) {\n\t      var result = null;\n\t      Array.prototype.some.call(list, function(element) {\n\t        if (nodeName_(element) === 'a') {\n\t          result = element;\n\t          return true;\n\t        }\n\t      });\n\t      return result;\n\t    }\n\n\t    function getYOffset() {\n\n\t      var offset = scroll.yOffset;\n\n\t      if (isFunction(offset)) {\n\t        offset = offset();\n\t      } else if (isElement(offset)) {\n\t        var elem = offset[0];\n\t        var style = $window.getComputedStyle(elem);\n\t        if (style.position !== 'fixed') {\n\t          offset = 0;\n\t        } else {\n\t          offset = elem.getBoundingClientRect().bottom;\n\t        }\n\t      } else if (!isNumber(offset)) {\n\t        offset = 0;\n\t      }\n\n\t      return offset;\n\t    }\n\n\t    function scrollTo(elem) {\n\t      if (elem) {\n\t        elem.scrollIntoView();\n\n\t        var offset = getYOffset();\n\n\t        if (offset) {\n\t          // `offset` is the number of pixels we should scroll UP in order to align `elem` properly.\n\t          // This is true ONLY if the call to `elem.scrollIntoView()` initially aligns `elem` at the\n\t          // top of the viewport.\n\t          //\n\t          // IF the number of pixels from the top of `elem` to the end of the page's content is less\n\t          // than the height of the viewport, then `elem.scrollIntoView()` will align the `elem` some\n\t          // way down the page.\n\t          //\n\t          // This is often the case for elements near the bottom of the page.\n\t          //\n\t          // In such cases we do not need to scroll the whole `offset` up, just the difference between\n\t          // the top of the element and the offset, which is enough to align the top of `elem` at the\n\t          // desired position.\n\t          var elemTop = elem.getBoundingClientRect().top;\n\t          $window.scrollBy(0, elemTop - offset);\n\t        }\n\t      } else {\n\t        $window.scrollTo(0, 0);\n\t      }\n\t    }\n\n\t    function scroll(hash) {\n\t      hash = isString(hash) ? hash : $location.hash();\n\t      var elm;\n\n\t      // empty hash, scroll to the top of the page\n\t      if (!hash) scrollTo(null);\n\n\t      // element with given id\n\t      else if ((elm = document.getElementById(hash))) scrollTo(elm);\n\n\t      // first anchor with given name :-D\n\t      else if ((elm = getFirstAnchor(document.getElementsByName(hash)))) scrollTo(elm);\n\n\t      // no element and hash == 'top', scroll to the top of the page\n\t      else if (hash === 'top') scrollTo(null);\n\t    }\n\n\t    // does not scroll when user clicks on anchor link that is currently on\n\t    // (no url change, no $location.hash() change), browser native does scroll\n\t    if (autoScrollingEnabled) {\n\t      $rootScope.$watch(function autoScrollWatch() {return $location.hash();},\n\t        function autoScrollWatchAction(newVal, oldVal) {\n\t          // skip the initial scroll if $location.hash is empty\n\t          if (newVal === oldVal && newVal === '') return;\n\n\t          jqLiteDocumentLoaded(function() {\n\t            $rootScope.$evalAsync(scroll);\n\t          });\n\t        });\n\t    }\n\n\t    return scroll;\n\t  }];\n\t}\n\n\tvar $animateMinErr = minErr('$animate');\n\tvar ELEMENT_NODE = 1;\n\tvar NG_ANIMATE_CLASSNAME = 'ng-animate';\n\n\tfunction mergeClasses(a,b) {\n\t  if (!a && !b) return '';\n\t  if (!a) return b;\n\t  if (!b) return a;\n\t  if (isArray(a)) a = a.join(' ');\n\t  if (isArray(b)) b = b.join(' ');\n\t  return a + ' ' + b;\n\t}\n\n\tfunction extractElementNode(element) {\n\t  for (var i = 0; i < element.length; i++) {\n\t    var elm = element[i];\n\t    if (elm.nodeType === ELEMENT_NODE) {\n\t      return elm;\n\t    }\n\t  }\n\t}\n\n\tfunction splitClasses(classes) {\n\t  if (isString(classes)) {\n\t    classes = classes.split(' ');\n\t  }\n\n\t  // Use createMap() to prevent class assumptions involving property names in\n\t  // Object.prototype\n\t  var obj = createMap();\n\t  forEach(classes, function(klass) {\n\t    // sometimes the split leaves empty string values\n\t    // incase extra spaces were applied to the options\n\t    if (klass.length) {\n\t      obj[klass] = true;\n\t    }\n\t  });\n\t  return obj;\n\t}\n\n\t// if any other type of options value besides an Object value is\n\t// passed into the $animate.method() animation then this helper code\n\t// will be run which will ignore it. While this patch is not the\n\t// greatest solution to this, a lot of existing plugins depend on\n\t// $animate to either call the callback (< 1.2) or return a promise\n\t// that can be changed. This helper function ensures that the options\n\t// are wiped clean incase a callback function is provided.\n\tfunction prepareAnimateOptions(options) {\n\t  return isObject(options)\n\t      ? options\n\t      : {};\n\t}\n\n\tvar $$CoreAnimateRunnerProvider = function() {\n\t  this.$get = ['$q', '$$rAF', function($q, $$rAF) {\n\t    function AnimateRunner() {}\n\t    AnimateRunner.all = noop;\n\t    AnimateRunner.chain = noop;\n\t    AnimateRunner.prototype = {\n\t      end: noop,\n\t      cancel: noop,\n\t      resume: noop,\n\t      pause: noop,\n\t      complete: noop,\n\t      then: function(pass, fail) {\n\t        return $q(function(resolve) {\n\t          $$rAF(function() {\n\t            resolve();\n\t          });\n\t        }).then(pass, fail);\n\t      }\n\t    };\n\t    return AnimateRunner;\n\t  }];\n\t};\n\n\t// this is prefixed with Core since it conflicts with\n\t// the animateQueueProvider defined in ngAnimate/animateQueue.js\n\tvar $$CoreAnimateQueueProvider = function() {\n\t  var postDigestQueue = new HashMap();\n\t  var postDigestElements = [];\n\n\t  this.$get = ['$$AnimateRunner', '$rootScope',\n\t       function($$AnimateRunner,   $rootScope) {\n\t    return {\n\t      enabled: noop,\n\t      on: noop,\n\t      off: noop,\n\t      pin: noop,\n\n\t      push: function(element, event, options, domOperation) {\n\t        domOperation        && domOperation();\n\n\t        options = options || {};\n\t        options.from        && element.css(options.from);\n\t        options.to          && element.css(options.to);\n\n\t        if (options.addClass || options.removeClass) {\n\t          addRemoveClassesPostDigest(element, options.addClass, options.removeClass);\n\t        }\n\n\t        return new $$AnimateRunner(); // jshint ignore:line\n\t      }\n\t    };\n\n\n\t    function updateData(data, classes, value) {\n\t      var changed = false;\n\t      if (classes) {\n\t        classes = isString(classes) ? classes.split(' ') :\n\t                  isArray(classes) ? classes : [];\n\t        forEach(classes, function(className) {\n\t          if (className) {\n\t            changed = true;\n\t            data[className] = value;\n\t          }\n\t        });\n\t      }\n\t      return changed;\n\t    }\n\n\t    function handleCSSClassChanges() {\n\t      forEach(postDigestElements, function(element) {\n\t        var data = postDigestQueue.get(element);\n\t        if (data) {\n\t          var existing = splitClasses(element.attr('class'));\n\t          var toAdd = '';\n\t          var toRemove = '';\n\t          forEach(data, function(status, className) {\n\t            var hasClass = !!existing[className];\n\t            if (status !== hasClass) {\n\t              if (status) {\n\t                toAdd += (toAdd.length ? ' ' : '') + className;\n\t              } else {\n\t                toRemove += (toRemove.length ? ' ' : '') + className;\n\t              }\n\t            }\n\t          });\n\n\t          forEach(element, function(elm) {\n\t            toAdd    && jqLiteAddClass(elm, toAdd);\n\t            toRemove && jqLiteRemoveClass(elm, toRemove);\n\t          });\n\t          postDigestQueue.remove(element);\n\t        }\n\t      });\n\t      postDigestElements.length = 0;\n\t    }\n\n\n\t    function addRemoveClassesPostDigest(element, add, remove) {\n\t      var data = postDigestQueue.get(element) || {};\n\n\t      var classesAdded = updateData(data, add, true);\n\t      var classesRemoved = updateData(data, remove, false);\n\n\t      if (classesAdded || classesRemoved) {\n\n\t        postDigestQueue.put(element, data);\n\t        postDigestElements.push(element);\n\n\t        if (postDigestElements.length === 1) {\n\t          $rootScope.$$postDigest(handleCSSClassChanges);\n\t        }\n\t      }\n\t    }\n\t  }];\n\t};\n\n\t/**\n\t * @ngdoc provider\n\t * @name $animateProvider\n\t *\n\t * @description\n\t * Default implementation of $animate that doesn't perform any animations, instead just\n\t * synchronously performs DOM updates and resolves the returned runner promise.\n\t *\n\t * In order to enable animations the `ngAnimate` module has to be loaded.\n\t *\n\t * To see the functional implementation check out `src/ngAnimate/animate.js`.\n\t */\n\tvar $AnimateProvider = ['$provide', function($provide) {\n\t  var provider = this;\n\n\t  this.$$registeredAnimations = Object.create(null);\n\n\t   /**\n\t   * @ngdoc method\n\t   * @name $animateProvider#register\n\t   *\n\t   * @description\n\t   * Registers a new injectable animation factory function. The factory function produces the\n\t   * animation object which contains callback functions for each event that is expected to be\n\t   * animated.\n\t   *\n\t   *   * `eventFn`: `function(element, ... , doneFunction, options)`\n\t   *   The element to animate, the `doneFunction` and the options fed into the animation. Depending\n\t   *   on the type of animation additional arguments will be injected into the animation function. The\n\t   *   list below explains the function signatures for the different animation methods:\n\t   *\n\t   *   - setClass: function(element, addedClasses, removedClasses, doneFunction, options)\n\t   *   - addClass: function(element, addedClasses, doneFunction, options)\n\t   *   - removeClass: function(element, removedClasses, doneFunction, options)\n\t   *   - enter, leave, move: function(element, doneFunction, options)\n\t   *   - animate: function(element, fromStyles, toStyles, doneFunction, options)\n\t   *\n\t   *   Make sure to trigger the `doneFunction` once the animation is fully complete.\n\t   *\n\t   * ```js\n\t   *   return {\n\t   *     //enter, leave, move signature\n\t   *     eventFn : function(element, done, options) {\n\t   *       //code to run the animation\n\t   *       //once complete, then run done()\n\t   *       return function endFunction(wasCancelled) {\n\t   *         //code to cancel the animation\n\t   *       }\n\t   *     }\n\t   *   }\n\t   * ```\n\t   *\n\t   * @param {string} name The name of the animation (this is what the class-based CSS value will be compared to).\n\t   * @param {Function} factory The factory function that will be executed to return the animation\n\t   *                           object.\n\t   */\n\t  this.register = function(name, factory) {\n\t    if (name && name.charAt(0) !== '.') {\n\t      throw $animateMinErr('notcsel', \"Expecting class selector starting with '.' got '{0}'.\", name);\n\t    }\n\n\t    var key = name + '-animation';\n\t    provider.$$registeredAnimations[name.substr(1)] = key;\n\t    $provide.factory(key, factory);\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $animateProvider#classNameFilter\n\t   *\n\t   * @description\n\t   * Sets and/or returns the CSS class regular expression that is checked when performing\n\t   * an animation. Upon bootstrap the classNameFilter value is not set at all and will\n\t   * therefore enable $animate to attempt to perform an animation on any element that is triggered.\n\t   * When setting the `classNameFilter` value, animations will only be performed on elements\n\t   * that successfully match the filter expression. This in turn can boost performance\n\t   * for low-powered devices as well as applications containing a lot of structural operations.\n\t   * @param {RegExp=} expression The className expression which will be checked against all animations\n\t   * @return {RegExp} The current CSS className expression value. If null then there is no expression value\n\t   */\n\t  this.classNameFilter = function(expression) {\n\t    if (arguments.length === 1) {\n\t      this.$$classNameFilter = (expression instanceof RegExp) ? expression : null;\n\t      if (this.$$classNameFilter) {\n\t        var reservedRegex = new RegExp(\"(\\\\s+|\\\\/)\" + NG_ANIMATE_CLASSNAME + \"(\\\\s+|\\\\/)\");\n\t        if (reservedRegex.test(this.$$classNameFilter.toString())) {\n\t          throw $animateMinErr('nongcls','$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the \"{0}\" CSS class.', NG_ANIMATE_CLASSNAME);\n\n\t        }\n\t      }\n\t    }\n\t    return this.$$classNameFilter;\n\t  };\n\n\t  this.$get = ['$$animateQueue', function($$animateQueue) {\n\t    function domInsert(element, parentElement, afterElement) {\n\t      // if for some reason the previous element was removed\n\t      // from the dom sometime before this code runs then let's\n\t      // just stick to using the parent element as the anchor\n\t      if (afterElement) {\n\t        var afterNode = extractElementNode(afterElement);\n\t        if (afterNode && !afterNode.parentNode && !afterNode.previousElementSibling) {\n\t          afterElement = null;\n\t        }\n\t      }\n\t      afterElement ? afterElement.after(element) : parentElement.prepend(element);\n\t    }\n\n\t    /**\n\t     * @ngdoc service\n\t     * @name $animate\n\t     * @description The $animate service exposes a series of DOM utility methods that provide support\n\t     * for animation hooks. The default behavior is the application of DOM operations, however,\n\t     * when an animation is detected (and animations are enabled), $animate will do the heavy lifting\n\t     * to ensure that animation runs with the triggered DOM operation.\n\t     *\n\t     * By default $animate doesn't trigger any animations. This is because the `ngAnimate` module isn't\n\t     * included and only when it is active then the animation hooks that `$animate` triggers will be\n\t     * functional. Once active then all structural `ng-` directives will trigger animations as they perform\n\t     * their DOM-related operations (enter, leave and move). Other directives such as `ngClass`,\n\t     * `ngShow`, `ngHide` and `ngMessages` also provide support for animations.\n\t     *\n\t     * It is recommended that the`$animate` service is always used when executing DOM-related procedures within directives.\n\t     *\n\t     * To learn more about enabling animation support, click here to visit the\n\t     * {@link ngAnimate ngAnimate module page}.\n\t     */\n\t    return {\n\t      // we don't call it directly since non-existant arguments may\n\t      // be interpreted as null within the sub enabled function\n\n\t      /**\n\t       *\n\t       * @ngdoc method\n\t       * @name $animate#on\n\t       * @kind function\n\t       * @description Sets up an event listener to fire whenever the animation event (enter, leave, move, etc...)\n\t       *    has fired on the given element or among any of its children. Once the listener is fired, the provided callback\n\t       *    is fired with the following params:\n\t       *\n\t       * ```js\n\t       * $animate.on('enter', container,\n\t       *    function callback(element, phase) {\n\t       *      // cool we detected an enter animation within the container\n\t       *    }\n\t       * );\n\t       * ```\n\t       *\n\t       * @param {string} event the animation event that will be captured (e.g. enter, leave, move, addClass, removeClass, etc...)\n\t       * @param {DOMElement} container the container element that will capture each of the animation events that are fired on itself\n\t       *     as well as among its children\n\t       * @param {Function} callback the callback function that will be fired when the listener is triggered\n\t       *\n\t       * The arguments present in the callback function are:\n\t       * * `element` - The captured DOM element that the animation was fired on.\n\t       * * `phase` - The phase of the animation. The two possible phases are **start** (when the animation starts) and **close** (when it ends).\n\t       */\n\t      on: $$animateQueue.on,\n\n\t      /**\n\t       *\n\t       * @ngdoc method\n\t       * @name $animate#off\n\t       * @kind function\n\t       * @description Deregisters an event listener based on the event which has been associated with the provided element. This method\n\t       * can be used in three different ways depending on the arguments:\n\t       *\n\t       * ```js\n\t       * // remove all the animation event listeners listening for `enter`\n\t       * $animate.off('enter');\n\t       *\n\t       * // remove all the animation event listeners listening for `enter` on the given element and its children\n\t       * $animate.off('enter', container);\n\t       *\n\t       * // remove the event listener function provided by `listenerFn` that is set\n\t       * // to listen for `enter` on the given `element` as well as its children\n\t       * $animate.off('enter', container, callback);\n\t       * ```\n\t       *\n\t       * @param {string} event the animation event (e.g. enter, leave, move, addClass, removeClass, etc...)\n\t       * @param {DOMElement=} container the container element the event listener was placed on\n\t       * @param {Function=} callback the callback function that was registered as the listener\n\t       */\n\t      off: $$animateQueue.off,\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $animate#pin\n\t       * @kind function\n\t       * @description Associates the provided element with a host parent element to allow the element to be animated even if it exists\n\t       *    outside of the DOM structure of the Angular application. By doing so, any animation triggered via `$animate` can be issued on the\n\t       *    element despite being outside the realm of the application or within another application. Say for example if the application\n\t       *    was bootstrapped on an element that is somewhere inside of the `<body>` tag, but we wanted to allow for an element to be situated\n\t       *    as a direct child of `document.body`, then this can be achieved by pinning the element via `$animate.pin(element)`. Keep in mind\n\t       *    that calling `$animate.pin(element, parentElement)` will not actually insert into the DOM anywhere; it will just create the association.\n\t       *\n\t       *    Note that this feature is only active when the `ngAnimate` module is used.\n\t       *\n\t       * @param {DOMElement} element the external element that will be pinned\n\t       * @param {DOMElement} parentElement the host parent element that will be associated with the external element\n\t       */\n\t      pin: $$animateQueue.pin,\n\n\t      /**\n\t       *\n\t       * @ngdoc method\n\t       * @name $animate#enabled\n\t       * @kind function\n\t       * @description Used to get and set whether animations are enabled or not on the entire application or on an element and its children. This\n\t       * function can be called in four ways:\n\t       *\n\t       * ```js\n\t       * // returns true or false\n\t       * $animate.enabled();\n\t       *\n\t       * // changes the enabled state for all animations\n\t       * $animate.enabled(false);\n\t       * $animate.enabled(true);\n\t       *\n\t       * // returns true or false if animations are enabled for an element\n\t       * $animate.enabled(element);\n\t       *\n\t       * // changes the enabled state for an element and its children\n\t       * $animate.enabled(element, true);\n\t       * $animate.enabled(element, false);\n\t       * ```\n\t       *\n\t       * @param {DOMElement=} element the element that will be considered for checking/setting the enabled state\n\t       * @param {boolean=} enabled whether or not the animations will be enabled for the element\n\t       *\n\t       * @return {boolean} whether or not animations are enabled\n\t       */\n\t      enabled: $$animateQueue.enabled,\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $animate#cancel\n\t       * @kind function\n\t       * @description Cancels the provided animation.\n\t       *\n\t       * @param {Promise} animationPromise The animation promise that is returned when an animation is started.\n\t       */\n\t      cancel: function(runner) {\n\t        runner.end && runner.end();\n\t      },\n\n\t      /**\n\t       *\n\t       * @ngdoc method\n\t       * @name $animate#enter\n\t       * @kind function\n\t       * @description Inserts the element into the DOM either after the `after` element (if provided) or\n\t       *   as the first child within the `parent` element and then triggers an animation.\n\t       *   A promise is returned that will be resolved during the next digest once the animation\n\t       *   has completed.\n\t       *\n\t       * @param {DOMElement} element the element which will be inserted into the DOM\n\t       * @param {DOMElement} parent the parent element which will append the element as\n\t       *   a child (so long as the after element is not present)\n\t       * @param {DOMElement=} after the sibling element after which the element will be appended\n\t       * @param {object=} options an optional collection of options/styles that will be applied to the element\n\t       *\n\t       * @return {Promise} the animation callback promise\n\t       */\n\t      enter: function(element, parent, after, options) {\n\t        parent = parent && jqLite(parent);\n\t        after = after && jqLite(after);\n\t        parent = parent || after.parent();\n\t        domInsert(element, parent, after);\n\t        return $$animateQueue.push(element, 'enter', prepareAnimateOptions(options));\n\t      },\n\n\t      /**\n\t       *\n\t       * @ngdoc method\n\t       * @name $animate#move\n\t       * @kind function\n\t       * @description Inserts (moves) the element into its new position in the DOM either after\n\t       *   the `after` element (if provided) or as the first child within the `parent` element\n\t       *   and then triggers an animation. A promise is returned that will be resolved\n\t       *   during the next digest once the animation has completed.\n\t       *\n\t       * @param {DOMElement} element the element which will be moved into the new DOM position\n\t       * @param {DOMElement} parent the parent element which will append the element as\n\t       *   a child (so long as the after element is not present)\n\t       * @param {DOMElement=} after the sibling element after which the element will be appended\n\t       * @param {object=} options an optional collection of options/styles that will be applied to the element\n\t       *\n\t       * @return {Promise} the animation callback promise\n\t       */\n\t      move: function(element, parent, after, options) {\n\t        parent = parent && jqLite(parent);\n\t        after = after && jqLite(after);\n\t        parent = parent || after.parent();\n\t        domInsert(element, parent, after);\n\t        return $$animateQueue.push(element, 'move', prepareAnimateOptions(options));\n\t      },\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $animate#leave\n\t       * @kind function\n\t       * @description Triggers an animation and then removes the element from the DOM.\n\t       * When the function is called a promise is returned that will be resolved during the next\n\t       * digest once the animation has completed.\n\t       *\n\t       * @param {DOMElement} element the element which will be removed from the DOM\n\t       * @param {object=} options an optional collection of options/styles that will be applied to the element\n\t       *\n\t       * @return {Promise} the animation callback promise\n\t       */\n\t      leave: function(element, options) {\n\t        return $$animateQueue.push(element, 'leave', prepareAnimateOptions(options), function() {\n\t          element.remove();\n\t        });\n\t      },\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $animate#addClass\n\t       * @kind function\n\t       *\n\t       * @description Triggers an addClass animation surrounding the addition of the provided CSS class(es). Upon\n\t       *   execution, the addClass operation will only be handled after the next digest and it will not trigger an\n\t       *   animation if element already contains the CSS class or if the class is removed at a later step.\n\t       *   Note that class-based animations are treated differently compared to structural animations\n\t       *   (like enter, move and leave) since the CSS classes may be added/removed at different points\n\t       *   depending if CSS or JavaScript animations are used.\n\t       *\n\t       * @param {DOMElement} element the element which the CSS classes will be applied to\n\t       * @param {string} className the CSS class(es) that will be added (multiple classes are separated via spaces)\n\t       * @param {object=} options an optional collection of options/styles that will be applied to the element\n\t       *\n\t       * @return {Promise} the animation callback promise\n\t       */\n\t      addClass: function(element, className, options) {\n\t        options = prepareAnimateOptions(options);\n\t        options.addClass = mergeClasses(options.addclass, className);\n\t        return $$animateQueue.push(element, 'addClass', options);\n\t      },\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $animate#removeClass\n\t       * @kind function\n\t       *\n\t       * @description Triggers a removeClass animation surrounding the removal of the provided CSS class(es). Upon\n\t       *   execution, the removeClass operation will only be handled after the next digest and it will not trigger an\n\t       *   animation if element does not contain the CSS class or if the class is added at a later step.\n\t       *   Note that class-based animations are treated differently compared to structural animations\n\t       *   (like enter, move and leave) since the CSS classes may be added/removed at different points\n\t       *   depending if CSS or JavaScript animations are used.\n\t       *\n\t       * @param {DOMElement} element the element which the CSS classes will be applied to\n\t       * @param {string} className the CSS class(es) that will be removed (multiple classes are separated via spaces)\n\t       * @param {object=} options an optional collection of options/styles that will be applied to the element\n\t       *\n\t       * @return {Promise} the animation callback promise\n\t       */\n\t      removeClass: function(element, className, options) {\n\t        options = prepareAnimateOptions(options);\n\t        options.removeClass = mergeClasses(options.removeClass, className);\n\t        return $$animateQueue.push(element, 'removeClass', options);\n\t      },\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $animate#setClass\n\t       * @kind function\n\t       *\n\t       * @description Performs both the addition and removal of a CSS classes on an element and (during the process)\n\t       *    triggers an animation surrounding the class addition/removal. Much like `$animate.addClass` and\n\t       *    `$animate.removeClass`, `setClass` will only evaluate the classes being added/removed once a digest has\n\t       *    passed. Note that class-based animations are treated differently compared to structural animations\n\t       *    (like enter, move and leave) since the CSS classes may be added/removed at different points\n\t       *    depending if CSS or JavaScript animations are used.\n\t       *\n\t       * @param {DOMElement} element the element which the CSS classes will be applied to\n\t       * @param {string} add the CSS class(es) that will be added (multiple classes are separated via spaces)\n\t       * @param {string} remove the CSS class(es) that will be removed (multiple classes are separated via spaces)\n\t       * @param {object=} options an optional collection of options/styles that will be applied to the element\n\t       *\n\t       * @return {Promise} the animation callback promise\n\t       */\n\t      setClass: function(element, add, remove, options) {\n\t        options = prepareAnimateOptions(options);\n\t        options.addClass = mergeClasses(options.addClass, add);\n\t        options.removeClass = mergeClasses(options.removeClass, remove);\n\t        return $$animateQueue.push(element, 'setClass', options);\n\t      },\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $animate#animate\n\t       * @kind function\n\t       *\n\t       * @description Performs an inline animation on the element which applies the provided to and from CSS styles to the element.\n\t       * If any detected CSS transition, keyframe or JavaScript matches the provided className value then the animation will take\n\t       * on the provided styles. For example, if a transition animation is set for the given className then the provided from and\n\t       * to styles will be applied alongside the given transition. If a JavaScript animation is detected then the provided styles\n\t       * will be given in as function paramters into the `animate` method (or as apart of the `options` parameter).\n\t       *\n\t       * @param {DOMElement} element the element which the CSS styles will be applied to\n\t       * @param {object} from the from (starting) CSS styles that will be applied to the element and across the animation.\n\t       * @param {object} to the to (destination) CSS styles that will be applied to the element and across the animation.\n\t       * @param {string=} className an optional CSS class that will be applied to the element for the duration of the animation. If\n\t       *    this value is left as empty then a CSS class of `ng-inline-animate` will be applied to the element.\n\t       *    (Note that if no animation is detected then this value will not be appplied to the element.)\n\t       * @param {object=} options an optional collection of options/styles that will be applied to the element\n\t       *\n\t       * @return {Promise} the animation callback promise\n\t       */\n\t      animate: function(element, from, to, className, options) {\n\t        options = prepareAnimateOptions(options);\n\t        options.from = options.from ? extend(options.from, from) : from;\n\t        options.to   = options.to   ? extend(options.to, to)     : to;\n\n\t        className = className || 'ng-inline-animate';\n\t        options.tempClasses = mergeClasses(options.tempClasses, className);\n\t        return $$animateQueue.push(element, 'animate', options);\n\t      }\n\t    };\n\t  }];\n\t}];\n\n\t/**\n\t * @ngdoc service\n\t * @name $animateCss\n\t * @kind object\n\t *\n\t * @description\n\t * This is the core version of `$animateCss`. By default, only when the `ngAnimate` is included,\n\t * then the `$animateCss` service will actually perform animations.\n\t *\n\t * Click here {@link ngAnimate.$animateCss to read the documentation for $animateCss}.\n\t */\n\tvar $CoreAnimateCssProvider = function() {\n\t  this.$get = ['$$rAF', '$q', function($$rAF, $q) {\n\n\t    var RAFPromise = function() {};\n\t    RAFPromise.prototype = {\n\t      done: function(cancel) {\n\t        this.defer && this.defer[cancel === true ? 'reject' : 'resolve']();\n\t      },\n\t      end: function() {\n\t        this.done();\n\t      },\n\t      cancel: function() {\n\t        this.done(true);\n\t      },\n\t      getPromise: function() {\n\t        if (!this.defer) {\n\t          this.defer = $q.defer();\n\t        }\n\t        return this.defer.promise;\n\t      },\n\t      then: function(f1,f2) {\n\t        return this.getPromise().then(f1,f2);\n\t      },\n\t      'catch': function(f1) {\n\t        return this.getPromise()['catch'](f1);\n\t      },\n\t      'finally': function(f1) {\n\t        return this.getPromise()['finally'](f1);\n\t      }\n\t    };\n\n\t    return function(element, options) {\n\t      // there is no point in applying the styles since\n\t      // there is no animation that goes on at all in\n\t      // this version of $animateCss.\n\t      if (options.cleanupStyles) {\n\t        options.from = options.to = null;\n\t      }\n\n\t      if (options.from) {\n\t        element.css(options.from);\n\t        options.from = null;\n\t      }\n\n\t      var closed, runner = new RAFPromise();\n\t      return {\n\t        start: run,\n\t        end: run\n\t      };\n\n\t      function run() {\n\t        $$rAF(function() {\n\t          close();\n\t          if (!closed) {\n\t            runner.done();\n\t          }\n\t          closed = true;\n\t        });\n\t        return runner;\n\t      }\n\n\t      function close() {\n\t        if (options.addClass) {\n\t          element.addClass(options.addClass);\n\t          options.addClass = null;\n\t        }\n\t        if (options.removeClass) {\n\t          element.removeClass(options.removeClass);\n\t          options.removeClass = null;\n\t        }\n\t        if (options.to) {\n\t          element.css(options.to);\n\t          options.to = null;\n\t        }\n\t      }\n\t    };\n\t  }];\n\t};\n\n\t/* global stripHash: true */\n\n\t/**\n\t * ! This is a private undocumented service !\n\t *\n\t * @name $browser\n\t * @requires $log\n\t * @description\n\t * This object has two goals:\n\t *\n\t * - hide all the global state in the browser caused by the window object\n\t * - abstract away all the browser specific features and inconsistencies\n\t *\n\t * For tests we provide {@link ngMock.$browser mock implementation} of the `$browser`\n\t * service, which can be used for convenient testing of the application without the interaction with\n\t * the real browser apis.\n\t */\n\t/**\n\t * @param {object} window The global window object.\n\t * @param {object} document jQuery wrapped document.\n\t * @param {object} $log window.console or an object with the same interface.\n\t * @param {object} $sniffer $sniffer service\n\t */\n\tfunction Browser(window, document, $log, $sniffer) {\n\t  var self = this,\n\t      rawDocument = document[0],\n\t      location = window.location,\n\t      history = window.history,\n\t      setTimeout = window.setTimeout,\n\t      clearTimeout = window.clearTimeout,\n\t      pendingDeferIds = {};\n\n\t  self.isMock = false;\n\n\t  var outstandingRequestCount = 0;\n\t  var outstandingRequestCallbacks = [];\n\n\t  // TODO(vojta): remove this temporary api\n\t  self.$$completeOutstandingRequest = completeOutstandingRequest;\n\t  self.$$incOutstandingRequestCount = function() { outstandingRequestCount++; };\n\n\t  /**\n\t   * Executes the `fn` function(supports currying) and decrements the `outstandingRequestCallbacks`\n\t   * counter. If the counter reaches 0, all the `outstandingRequestCallbacks` are executed.\n\t   */\n\t  function completeOutstandingRequest(fn) {\n\t    try {\n\t      fn.apply(null, sliceArgs(arguments, 1));\n\t    } finally {\n\t      outstandingRequestCount--;\n\t      if (outstandingRequestCount === 0) {\n\t        while (outstandingRequestCallbacks.length) {\n\t          try {\n\t            outstandingRequestCallbacks.pop()();\n\t          } catch (e) {\n\t            $log.error(e);\n\t          }\n\t        }\n\t      }\n\t    }\n\t  }\n\n\t  function getHash(url) {\n\t    var index = url.indexOf('#');\n\t    return index === -1 ? '' : url.substr(index);\n\t  }\n\n\t  /**\n\t   * @private\n\t   * Note: this method is used only by scenario runner\n\t   * TODO(vojta): prefix this method with $$ ?\n\t   * @param {function()} callback Function that will be called when no outstanding request\n\t   */\n\t  self.notifyWhenNoOutstandingRequests = function(callback) {\n\t    if (outstandingRequestCount === 0) {\n\t      callback();\n\t    } else {\n\t      outstandingRequestCallbacks.push(callback);\n\t    }\n\t  };\n\n\t  //////////////////////////////////////////////////////////////\n\t  // URL API\n\t  //////////////////////////////////////////////////////////////\n\n\t  var cachedState, lastHistoryState,\n\t      lastBrowserUrl = location.href,\n\t      baseElement = document.find('base'),\n\t      pendingLocation = null;\n\n\t  cacheState();\n\t  lastHistoryState = cachedState;\n\n\t  /**\n\t   * @name $browser#url\n\t   *\n\t   * @description\n\t   * GETTER:\n\t   * Without any argument, this method just returns current value of location.href.\n\t   *\n\t   * SETTER:\n\t   * With at least one argument, this method sets url to new value.\n\t   * If html5 history api supported, pushState/replaceState is used, otherwise\n\t   * location.href/location.replace is used.\n\t   * Returns its own instance to allow chaining\n\t   *\n\t   * NOTE: this api is intended for use only by the $location service. Please use the\n\t   * {@link ng.$location $location service} to change url.\n\t   *\n\t   * @param {string} url New url (when used as setter)\n\t   * @param {boolean=} replace Should new url replace current history record?\n\t   * @param {object=} state object to use with pushState/replaceState\n\t   */\n\t  self.url = function(url, replace, state) {\n\t    // In modern browsers `history.state` is `null` by default; treating it separately\n\t    // from `undefined` would cause `$browser.url('/foo')` to change `history.state`\n\t    // to undefined via `pushState`. Instead, let's change `undefined` to `null` here.\n\t    if (isUndefined(state)) {\n\t      state = null;\n\t    }\n\n\t    // Android Browser BFCache causes location, history reference to become stale.\n\t    if (location !== window.location) location = window.location;\n\t    if (history !== window.history) history = window.history;\n\n\t    // setter\n\t    if (url) {\n\t      var sameState = lastHistoryState === state;\n\n\t      // Don't change anything if previous and current URLs and states match. This also prevents\n\t      // IE<10 from getting into redirect loop when in LocationHashbangInHtml5Url mode.\n\t      // See https://github.com/angular/angular.js/commit/ffb2701\n\t      if (lastBrowserUrl === url && (!$sniffer.history || sameState)) {\n\t        return self;\n\t      }\n\t      var sameBase = lastBrowserUrl && stripHash(lastBrowserUrl) === stripHash(url);\n\t      lastBrowserUrl = url;\n\t      lastHistoryState = state;\n\t      // Don't use history API if only the hash changed\n\t      // due to a bug in IE10/IE11 which leads\n\t      // to not firing a `hashchange` nor `popstate` event\n\t      // in some cases (see #9143).\n\t      if ($sniffer.history && (!sameBase || !sameState)) {\n\t        history[replace ? 'replaceState' : 'pushState'](state, '', url);\n\t        cacheState();\n\t        // Do the assignment again so that those two variables are referentially identical.\n\t        lastHistoryState = cachedState;\n\t      } else {\n\t        if (!sameBase || pendingLocation) {\n\t          pendingLocation = url;\n\t        }\n\t        if (replace) {\n\t          location.replace(url);\n\t        } else if (!sameBase) {\n\t          location.href = url;\n\t        } else {\n\t          location.hash = getHash(url);\n\t        }\n\t        if (location.href !== url) {\n\t          pendingLocation = url;\n\t        }\n\t      }\n\t      return self;\n\t    // getter\n\t    } else {\n\t      // - pendingLocation is needed as browsers don't allow to read out\n\t      //   the new location.href if a reload happened or if there is a bug like in iOS 9 (see\n\t      //   https://openradar.appspot.com/22186109).\n\t      // - the replacement is a workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=407172\n\t      return pendingLocation || location.href.replace(/%27/g,\"'\");\n\t    }\n\t  };\n\n\t  /**\n\t   * @name $browser#state\n\t   *\n\t   * @description\n\t   * This method is a getter.\n\t   *\n\t   * Return history.state or null if history.state is undefined.\n\t   *\n\t   * @returns {object} state\n\t   */\n\t  self.state = function() {\n\t    return cachedState;\n\t  };\n\n\t  var urlChangeListeners = [],\n\t      urlChangeInit = false;\n\n\t  function cacheStateAndFireUrlChange() {\n\t    pendingLocation = null;\n\t    cacheState();\n\t    fireUrlChange();\n\t  }\n\n\t  function getCurrentState() {\n\t    try {\n\t      return history.state;\n\t    } catch (e) {\n\t      // MSIE can reportedly throw when there is no state (UNCONFIRMED).\n\t    }\n\t  }\n\n\t  // This variable should be used *only* inside the cacheState function.\n\t  var lastCachedState = null;\n\t  function cacheState() {\n\t    // This should be the only place in $browser where `history.state` is read.\n\t    cachedState = getCurrentState();\n\t    cachedState = isUndefined(cachedState) ? null : cachedState;\n\n\t    // Prevent callbacks fo fire twice if both hashchange & popstate were fired.\n\t    if (equals(cachedState, lastCachedState)) {\n\t      cachedState = lastCachedState;\n\t    }\n\t    lastCachedState = cachedState;\n\t  }\n\n\t  function fireUrlChange() {\n\t    if (lastBrowserUrl === self.url() && lastHistoryState === cachedState) {\n\t      return;\n\t    }\n\n\t    lastBrowserUrl = self.url();\n\t    lastHistoryState = cachedState;\n\t    forEach(urlChangeListeners, function(listener) {\n\t      listener(self.url(), cachedState);\n\t    });\n\t  }\n\n\t  /**\n\t   * @name $browser#onUrlChange\n\t   *\n\t   * @description\n\t   * Register callback function that will be called, when url changes.\n\t   *\n\t   * It's only called when the url is changed from outside of angular:\n\t   * - user types different url into address bar\n\t   * - user clicks on history (forward/back) button\n\t   * - user clicks on a link\n\t   *\n\t   * It's not called when url is changed by $browser.url() method\n\t   *\n\t   * The listener gets called with new url as parameter.\n\t   *\n\t   * NOTE: this api is intended for use only by the $location service. Please use the\n\t   * {@link ng.$location $location service} to monitor url changes in angular apps.\n\t   *\n\t   * @param {function(string)} listener Listener function to be called when url changes.\n\t   * @return {function(string)} Returns the registered listener fn - handy if the fn is anonymous.\n\t   */\n\t  self.onUrlChange = function(callback) {\n\t    // TODO(vojta): refactor to use node's syntax for events\n\t    if (!urlChangeInit) {\n\t      // We listen on both (hashchange/popstate) when available, as some browsers (e.g. Opera)\n\t      // don't fire popstate when user change the address bar and don't fire hashchange when url\n\t      // changed by push/replaceState\n\n\t      // html5 history api - popstate event\n\t      if ($sniffer.history) jqLite(window).on('popstate', cacheStateAndFireUrlChange);\n\t      // hashchange event\n\t      jqLite(window).on('hashchange', cacheStateAndFireUrlChange);\n\n\t      urlChangeInit = true;\n\t    }\n\n\t    urlChangeListeners.push(callback);\n\t    return callback;\n\t  };\n\n\t  /**\n\t   * @private\n\t   * Remove popstate and hashchange handler from window.\n\t   *\n\t   * NOTE: this api is intended for use only by $rootScope.\n\t   */\n\t  self.$$applicationDestroyed = function() {\n\t    jqLite(window).off('hashchange popstate', cacheStateAndFireUrlChange);\n\t  };\n\n\t  /**\n\t   * Checks whether the url has changed outside of Angular.\n\t   * Needs to be exported to be able to check for changes that have been done in sync,\n\t   * as hashchange/popstate events fire in async.\n\t   */\n\t  self.$$checkUrlChange = fireUrlChange;\n\n\t  //////////////////////////////////////////////////////////////\n\t  // Misc API\n\t  //////////////////////////////////////////////////////////////\n\n\t  /**\n\t   * @name $browser#baseHref\n\t   *\n\t   * @description\n\t   * Returns current <base href>\n\t   * (always relative - without domain)\n\t   *\n\t   * @returns {string} The current base href\n\t   */\n\t  self.baseHref = function() {\n\t    var href = baseElement.attr('href');\n\t    return href ? href.replace(/^(https?\\:)?\\/\\/[^\\/]*/, '') : '';\n\t  };\n\n\t  /**\n\t   * @name $browser#defer\n\t   * @param {function()} fn A function, who's execution should be deferred.\n\t   * @param {number=} [delay=0] of milliseconds to defer the function execution.\n\t   * @returns {*} DeferId that can be used to cancel the task via `$browser.defer.cancel()`.\n\t   *\n\t   * @description\n\t   * Executes a fn asynchronously via `setTimeout(fn, delay)`.\n\t   *\n\t   * Unlike when calling `setTimeout` directly, in test this function is mocked and instead of using\n\t   * `setTimeout` in tests, the fns are queued in an array, which can be programmatically flushed\n\t   * via `$browser.defer.flush()`.\n\t   *\n\t   */\n\t  self.defer = function(fn, delay) {\n\t    var timeoutId;\n\t    outstandingRequestCount++;\n\t    timeoutId = setTimeout(function() {\n\t      delete pendingDeferIds[timeoutId];\n\t      completeOutstandingRequest(fn);\n\t    }, delay || 0);\n\t    pendingDeferIds[timeoutId] = true;\n\t    return timeoutId;\n\t  };\n\n\n\t  /**\n\t   * @name $browser#defer.cancel\n\t   *\n\t   * @description\n\t   * Cancels a deferred task identified with `deferId`.\n\t   *\n\t   * @param {*} deferId Token returned by the `$browser.defer` function.\n\t   * @returns {boolean} Returns `true` if the task hasn't executed yet and was successfully\n\t   *                    canceled.\n\t   */\n\t  self.defer.cancel = function(deferId) {\n\t    if (pendingDeferIds[deferId]) {\n\t      delete pendingDeferIds[deferId];\n\t      clearTimeout(deferId);\n\t      completeOutstandingRequest(noop);\n\t      return true;\n\t    }\n\t    return false;\n\t  };\n\n\t}\n\n\tfunction $BrowserProvider() {\n\t  this.$get = ['$window', '$log', '$sniffer', '$document',\n\t      function($window, $log, $sniffer, $document) {\n\t        return new Browser($window, $document, $log, $sniffer);\n\t      }];\n\t}\n\n\t/**\n\t * @ngdoc service\n\t * @name $cacheFactory\n\t *\n\t * @description\n\t * Factory that constructs {@link $cacheFactory.Cache Cache} objects and gives access to\n\t * them.\n\t *\n\t * ```js\n\t *\n\t *  var cache = $cacheFactory('cacheId');\n\t *  expect($cacheFactory.get('cacheId')).toBe(cache);\n\t *  expect($cacheFactory.get('noSuchCacheId')).not.toBeDefined();\n\t *\n\t *  cache.put(\"key\", \"value\");\n\t *  cache.put(\"another key\", \"another value\");\n\t *\n\t *  // We've specified no options on creation\n\t *  expect(cache.info()).toEqual({id: 'cacheId', size: 2});\n\t *\n\t * ```\n\t *\n\t *\n\t * @param {string} cacheId Name or id of the newly created cache.\n\t * @param {object=} options Options object that specifies the cache behavior. Properties:\n\t *\n\t *   - `{number=}` `capacity` — turns the cache into LRU cache.\n\t *\n\t * @returns {object} Newly created cache object with the following set of methods:\n\t *\n\t * - `{object}` `info()` — Returns id, size, and options of cache.\n\t * - `{{*}}` `put({string} key, {*} value)` — Puts a new key-value pair into the cache and returns\n\t *   it.\n\t * - `{{*}}` `get({string} key)` — Returns cached value for `key` or undefined for cache miss.\n\t * - `{void}` `remove({string} key)` — Removes a key-value pair from the cache.\n\t * - `{void}` `removeAll()` — Removes all cached values.\n\t * - `{void}` `destroy()` — Removes references to this cache from $cacheFactory.\n\t *\n\t * @example\n\t   <example module=\"cacheExampleApp\">\n\t     <file name=\"index.html\">\n\t       <div ng-controller=\"CacheController\">\n\t         <input ng-model=\"newCacheKey\" placeholder=\"Key\">\n\t         <input ng-model=\"newCacheValue\" placeholder=\"Value\">\n\t         <button ng-click=\"put(newCacheKey, newCacheValue)\">Cache</button>\n\n\t         <p ng-if=\"keys.length\">Cached Values</p>\n\t         <div ng-repeat=\"key in keys\">\n\t           <span ng-bind=\"key\"></span>\n\t           <span>: </span>\n\t           <b ng-bind=\"cache.get(key)\"></b>\n\t         </div>\n\n\t         <p>Cache Info</p>\n\t         <div ng-repeat=\"(key, value) in cache.info()\">\n\t           <span ng-bind=\"key\"></span>\n\t           <span>: </span>\n\t           <b ng-bind=\"value\"></b>\n\t         </div>\n\t       </div>\n\t     </file>\n\t     <file name=\"script.js\">\n\t       angular.module('cacheExampleApp', []).\n\t         controller('CacheController', ['$scope', '$cacheFactory', function($scope, $cacheFactory) {\n\t           $scope.keys = [];\n\t           $scope.cache = $cacheFactory('cacheId');\n\t           $scope.put = function(key, value) {\n\t             if (angular.isUndefined($scope.cache.get(key))) {\n\t               $scope.keys.push(key);\n\t             }\n\t             $scope.cache.put(key, angular.isUndefined(value) ? null : value);\n\t           };\n\t         }]);\n\t     </file>\n\t     <file name=\"style.css\">\n\t       p {\n\t         margin: 10px 0 3px;\n\t       }\n\t     </file>\n\t   </example>\n\t */\n\tfunction $CacheFactoryProvider() {\n\n\t  this.$get = function() {\n\t    var caches = {};\n\n\t    function cacheFactory(cacheId, options) {\n\t      if (cacheId in caches) {\n\t        throw minErr('$cacheFactory')('iid', \"CacheId '{0}' is already taken!\", cacheId);\n\t      }\n\n\t      var size = 0,\n\t          stats = extend({}, options, {id: cacheId}),\n\t          data = createMap(),\n\t          capacity = (options && options.capacity) || Number.MAX_VALUE,\n\t          lruHash = createMap(),\n\t          freshEnd = null,\n\t          staleEnd = null;\n\n\t      /**\n\t       * @ngdoc type\n\t       * @name $cacheFactory.Cache\n\t       *\n\t       * @description\n\t       * A cache object used to store and retrieve data, primarily used by\n\t       * {@link $http $http} and the {@link ng.directive:script script} directive to cache\n\t       * templates and other data.\n\t       *\n\t       * ```js\n\t       *  angular.module('superCache')\n\t       *    .factory('superCache', ['$cacheFactory', function($cacheFactory) {\n\t       *      return $cacheFactory('super-cache');\n\t       *    }]);\n\t       * ```\n\t       *\n\t       * Example test:\n\t       *\n\t       * ```js\n\t       *  it('should behave like a cache', inject(function(superCache) {\n\t       *    superCache.put('key', 'value');\n\t       *    superCache.put('another key', 'another value');\n\t       *\n\t       *    expect(superCache.info()).toEqual({\n\t       *      id: 'super-cache',\n\t       *      size: 2\n\t       *    });\n\t       *\n\t       *    superCache.remove('another key');\n\t       *    expect(superCache.get('another key')).toBeUndefined();\n\t       *\n\t       *    superCache.removeAll();\n\t       *    expect(superCache.info()).toEqual({\n\t       *      id: 'super-cache',\n\t       *      size: 0\n\t       *    });\n\t       *  }));\n\t       * ```\n\t       */\n\t      return caches[cacheId] = {\n\n\t        /**\n\t         * @ngdoc method\n\t         * @name $cacheFactory.Cache#put\n\t         * @kind function\n\t         *\n\t         * @description\n\t         * Inserts a named entry into the {@link $cacheFactory.Cache Cache} object to be\n\t         * retrieved later, and incrementing the size of the cache if the key was not already\n\t         * present in the cache. If behaving like an LRU cache, it will also remove stale\n\t         * entries from the set.\n\t         *\n\t         * It will not insert undefined values into the cache.\n\t         *\n\t         * @param {string} key the key under which the cached data is stored.\n\t         * @param {*} value the value to store alongside the key. If it is undefined, the key\n\t         *    will not be stored.\n\t         * @returns {*} the value stored.\n\t         */\n\t        put: function(key, value) {\n\t          if (isUndefined(value)) return;\n\t          if (capacity < Number.MAX_VALUE) {\n\t            var lruEntry = lruHash[key] || (lruHash[key] = {key: key});\n\n\t            refresh(lruEntry);\n\t          }\n\n\t          if (!(key in data)) size++;\n\t          data[key] = value;\n\n\t          if (size > capacity) {\n\t            this.remove(staleEnd.key);\n\t          }\n\n\t          return value;\n\t        },\n\n\t        /**\n\t         * @ngdoc method\n\t         * @name $cacheFactory.Cache#get\n\t         * @kind function\n\t         *\n\t         * @description\n\t         * Retrieves named data stored in the {@link $cacheFactory.Cache Cache} object.\n\t         *\n\t         * @param {string} key the key of the data to be retrieved\n\t         * @returns {*} the value stored.\n\t         */\n\t        get: function(key) {\n\t          if (capacity < Number.MAX_VALUE) {\n\t            var lruEntry = lruHash[key];\n\n\t            if (!lruEntry) return;\n\n\t            refresh(lruEntry);\n\t          }\n\n\t          return data[key];\n\t        },\n\n\n\t        /**\n\t         * @ngdoc method\n\t         * @name $cacheFactory.Cache#remove\n\t         * @kind function\n\t         *\n\t         * @description\n\t         * Removes an entry from the {@link $cacheFactory.Cache Cache} object.\n\t         *\n\t         * @param {string} key the key of the entry to be removed\n\t         */\n\t        remove: function(key) {\n\t          if (capacity < Number.MAX_VALUE) {\n\t            var lruEntry = lruHash[key];\n\n\t            if (!lruEntry) return;\n\n\t            if (lruEntry == freshEnd) freshEnd = lruEntry.p;\n\t            if (lruEntry == staleEnd) staleEnd = lruEntry.n;\n\t            link(lruEntry.n,lruEntry.p);\n\n\t            delete lruHash[key];\n\t          }\n\n\t          if (!(key in data)) return;\n\n\t          delete data[key];\n\t          size--;\n\t        },\n\n\n\t        /**\n\t         * @ngdoc method\n\t         * @name $cacheFactory.Cache#removeAll\n\t         * @kind function\n\t         *\n\t         * @description\n\t         * Clears the cache object of any entries.\n\t         */\n\t        removeAll: function() {\n\t          data = createMap();\n\t          size = 0;\n\t          lruHash = createMap();\n\t          freshEnd = staleEnd = null;\n\t        },\n\n\n\t        /**\n\t         * @ngdoc method\n\t         * @name $cacheFactory.Cache#destroy\n\t         * @kind function\n\t         *\n\t         * @description\n\t         * Destroys the {@link $cacheFactory.Cache Cache} object entirely,\n\t         * removing it from the {@link $cacheFactory $cacheFactory} set.\n\t         */\n\t        destroy: function() {\n\t          data = null;\n\t          stats = null;\n\t          lruHash = null;\n\t          delete caches[cacheId];\n\t        },\n\n\n\t        /**\n\t         * @ngdoc method\n\t         * @name $cacheFactory.Cache#info\n\t         * @kind function\n\t         *\n\t         * @description\n\t         * Retrieve information regarding a particular {@link $cacheFactory.Cache Cache}.\n\t         *\n\t         * @returns {object} an object with the following properties:\n\t         *   <ul>\n\t         *     <li>**id**: the id of the cache instance</li>\n\t         *     <li>**size**: the number of entries kept in the cache instance</li>\n\t         *     <li>**...**: any additional properties from the options object when creating the\n\t         *       cache.</li>\n\t         *   </ul>\n\t         */\n\t        info: function() {\n\t          return extend({}, stats, {size: size});\n\t        }\n\t      };\n\n\n\t      /**\n\t       * makes the `entry` the freshEnd of the LRU linked list\n\t       */\n\t      function refresh(entry) {\n\t        if (entry != freshEnd) {\n\t          if (!staleEnd) {\n\t            staleEnd = entry;\n\t          } else if (staleEnd == entry) {\n\t            staleEnd = entry.n;\n\t          }\n\n\t          link(entry.n, entry.p);\n\t          link(entry, freshEnd);\n\t          freshEnd = entry;\n\t          freshEnd.n = null;\n\t        }\n\t      }\n\n\n\t      /**\n\t       * bidirectionally links two entries of the LRU linked list\n\t       */\n\t      function link(nextEntry, prevEntry) {\n\t        if (nextEntry != prevEntry) {\n\t          if (nextEntry) nextEntry.p = prevEntry; //p stands for previous, 'prev' didn't minify\n\t          if (prevEntry) prevEntry.n = nextEntry; //n stands for next, 'next' didn't minify\n\t        }\n\t      }\n\t    }\n\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $cacheFactory#info\n\t   *\n\t   * @description\n\t   * Get information about all the caches that have been created\n\t   *\n\t   * @returns {Object} - key-value map of `cacheId` to the result of calling `cache#info`\n\t   */\n\t    cacheFactory.info = function() {\n\t      var info = {};\n\t      forEach(caches, function(cache, cacheId) {\n\t        info[cacheId] = cache.info();\n\t      });\n\t      return info;\n\t    };\n\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $cacheFactory#get\n\t   *\n\t   * @description\n\t   * Get access to a cache object by the `cacheId` used when it was created.\n\t   *\n\t   * @param {string} cacheId Name or id of a cache to access.\n\t   * @returns {object} Cache object identified by the cacheId or undefined if no such cache.\n\t   */\n\t    cacheFactory.get = function(cacheId) {\n\t      return caches[cacheId];\n\t    };\n\n\n\t    return cacheFactory;\n\t  };\n\t}\n\n\t/**\n\t * @ngdoc service\n\t * @name $templateCache\n\t *\n\t * @description\n\t * The first time a template is used, it is loaded in the template cache for quick retrieval. You\n\t * can load templates directly into the cache in a `script` tag, or by consuming the\n\t * `$templateCache` service directly.\n\t *\n\t * Adding via the `script` tag:\n\t *\n\t * ```html\n\t *   <script type=\"text/ng-template\" id=\"templateId.html\">\n\t *     <p>This is the content of the template</p>\n\t *   </script>\n\t * ```\n\t *\n\t * **Note:** the `script` tag containing the template does not need to be included in the `head` of\n\t * the document, but it must be a descendent of the {@link ng.$rootElement $rootElement} (IE,\n\t * element with ng-app attribute), otherwise the template will be ignored.\n\t *\n\t * Adding via the `$templateCache` service:\n\t *\n\t * ```js\n\t * var myApp = angular.module('myApp', []);\n\t * myApp.run(function($templateCache) {\n\t *   $templateCache.put('templateId.html', 'This is the content of the template');\n\t * });\n\t * ```\n\t *\n\t * To retrieve the template later, simply use it in your HTML:\n\t * ```html\n\t * <div ng-include=\" 'templateId.html' \"></div>\n\t * ```\n\t *\n\t * or get it via Javascript:\n\t * ```js\n\t * $templateCache.get('templateId.html')\n\t * ```\n\t *\n\t * See {@link ng.$cacheFactory $cacheFactory}.\n\t *\n\t */\n\tfunction $TemplateCacheProvider() {\n\t  this.$get = ['$cacheFactory', function($cacheFactory) {\n\t    return $cacheFactory('templates');\n\t  }];\n\t}\n\n\t/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\n\t *     Any commits to this file should be reviewed with security in mind.  *\n\t *   Changes to this file can potentially create security vulnerabilities. *\n\t *          An approval from 2 Core members with history of modifying      *\n\t *                         this file is required.                          *\n\t *                                                                         *\n\t *  Does the change somehow allow for arbitrary javascript to be executed? *\n\t *    Or allows for someone to change the prototype of built-in objects?   *\n\t *     Or gives undesired access to variables likes document or window?    *\n\t * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */\n\n\t/* ! VARIABLE/FUNCTION NAMING CONVENTIONS THAT APPLY TO THIS FILE!\n\t *\n\t * DOM-related variables:\n\t *\n\t * - \"node\" - DOM Node\n\t * - \"element\" - DOM Element or Node\n\t * - \"$node\" or \"$element\" - jqLite-wrapped node or element\n\t *\n\t *\n\t * Compiler related stuff:\n\t *\n\t * - \"linkFn\" - linking fn of a single directive\n\t * - \"nodeLinkFn\" - function that aggregates all linking fns for a particular node\n\t * - \"childLinkFn\" -  function that aggregates all linking fns for child nodes of a particular node\n\t * - \"compositeLinkFn\" - function that aggregates all linking fns for a compilation root (nodeList)\n\t */\n\n\n\t/**\n\t * @ngdoc service\n\t * @name $compile\n\t * @kind function\n\t *\n\t * @description\n\t * Compiles an HTML string or DOM into a template and produces a template function, which\n\t * can then be used to link {@link ng.$rootScope.Scope `scope`} and the template together.\n\t *\n\t * The compilation is a process of walking the DOM tree and matching DOM elements to\n\t * {@link ng.$compileProvider#directive directives}.\n\t *\n\t * <div class=\"alert alert-warning\">\n\t * **Note:** This document is an in-depth reference of all directive options.\n\t * For a gentle introduction to directives with examples of common use cases,\n\t * see the {@link guide/directive directive guide}.\n\t * </div>\n\t *\n\t * ## Comprehensive Directive API\n\t *\n\t * There are many different options for a directive.\n\t *\n\t * The difference resides in the return value of the factory function.\n\t * You can either return a \"Directive Definition Object\" (see below) that defines the directive properties,\n\t * or just the `postLink` function (all other properties will have the default values).\n\t *\n\t * <div class=\"alert alert-success\">\n\t * **Best Practice:** It's recommended to use the \"directive definition object\" form.\n\t * </div>\n\t *\n\t * Here's an example directive declared with a Directive Definition Object:\n\t *\n\t * ```js\n\t *   var myModule = angular.module(...);\n\t *\n\t *   myModule.directive('directiveName', function factory(injectables) {\n\t *     var directiveDefinitionObject = {\n\t *       priority: 0,\n\t *       template: '<div></div>', // or // function(tElement, tAttrs) { ... },\n\t *       // or\n\t *       // templateUrl: 'directive.html', // or // function(tElement, tAttrs) { ... },\n\t *       transclude: false,\n\t *       restrict: 'A',\n\t *       templateNamespace: 'html',\n\t *       scope: false,\n\t *       controller: function($scope, $element, $attrs, $transclude, otherInjectables) { ... },\n\t *       controllerAs: 'stringIdentifier',\n\t *       bindToController: false,\n\t *       require: 'siblingDirectiveName', // or // ['^parentDirectiveName', '?optionalDirectiveName', '?^optionalParent'],\n\t *       compile: function compile(tElement, tAttrs, transclude) {\n\t *         return {\n\t *           pre: function preLink(scope, iElement, iAttrs, controller) { ... },\n\t *           post: function postLink(scope, iElement, iAttrs, controller) { ... }\n\t *         }\n\t *         // or\n\t *         // return function postLink( ... ) { ... }\n\t *       },\n\t *       // or\n\t *       // link: {\n\t *       //  pre: function preLink(scope, iElement, iAttrs, controller) { ... },\n\t *       //  post: function postLink(scope, iElement, iAttrs, controller) { ... }\n\t *       // }\n\t *       // or\n\t *       // link: function postLink( ... ) { ... }\n\t *     };\n\t *     return directiveDefinitionObject;\n\t *   });\n\t * ```\n\t *\n\t * <div class=\"alert alert-warning\">\n\t * **Note:** Any unspecified options will use the default value. You can see the default values below.\n\t * </div>\n\t *\n\t * Therefore the above can be simplified as:\n\t *\n\t * ```js\n\t *   var myModule = angular.module(...);\n\t *\n\t *   myModule.directive('directiveName', function factory(injectables) {\n\t *     var directiveDefinitionObject = {\n\t *       link: function postLink(scope, iElement, iAttrs) { ... }\n\t *     };\n\t *     return directiveDefinitionObject;\n\t *     // or\n\t *     // return function postLink(scope, iElement, iAttrs) { ... }\n\t *   });\n\t * ```\n\t *\n\t *\n\t *\n\t * ### Directive Definition Object\n\t *\n\t * The directive definition object provides instructions to the {@link ng.$compile\n\t * compiler}. The attributes are:\n\t *\n\t * #### `multiElement`\n\t * When this property is set to true, the HTML compiler will collect DOM nodes between\n\t * nodes with the attributes `directive-name-start` and `directive-name-end`, and group them\n\t * together as the directive elements. It is recommended that this feature be used on directives\n\t * which are not strictly behavioural (such as {@link ngClick}), and which\n\t * do not manipulate or replace child nodes (such as {@link ngInclude}).\n\t *\n\t * #### `priority`\n\t * When there are multiple directives defined on a single DOM element, sometimes it\n\t * is necessary to specify the order in which the directives are applied. The `priority` is used\n\t * to sort the directives before their `compile` functions get called. Priority is defined as a\n\t * number. Directives with greater numerical `priority` are compiled first. Pre-link functions\n\t * are also run in priority order, but post-link functions are run in reverse order. The order\n\t * of directives with the same priority is undefined. The default priority is `0`.\n\t *\n\t * #### `terminal`\n\t * If set to true then the current `priority` will be the last set of directives\n\t * which will execute (any directives at the current priority will still execute\n\t * as the order of execution on same `priority` is undefined). Note that expressions\n\t * and other directives used in the directive's template will also be excluded from execution.\n\t *\n\t * #### `scope`\n\t * The scope property can be `true`, an object or a falsy value:\n\t *\n\t * * **falsy:** No scope will be created for the directive. The directive will use its parent's scope.\n\t *\n\t * * **`true`:** A new child scope that prototypically inherits from its parent will be created for\n\t * the directive's element. If multiple directives on the same element request a new scope,\n\t * only one new scope is created. The new scope rule does not apply for the root of the template\n\t * since the root of the template always gets a new scope.\n\t *\n\t * * **`{...}` (an object hash):** A new \"isolate\" scope is created for the directive's element. The\n\t * 'isolate' scope differs from normal scope in that it does not prototypically inherit from its parent\n\t * scope. This is useful when creating reusable components, which should not accidentally read or modify\n\t * data in the parent scope.\n\t *\n\t * The 'isolate' scope object hash defines a set of local scope properties derived from attributes on the\n\t * directive's element. These local properties are useful for aliasing values for templates. The keys in\n\t * the object hash map to the name of the property on the isolate scope; the values define how the property\n\t * is bound to the parent scope, via matching attributes on the directive's element:\n\t *\n\t * * `@` or `@attr` - bind a local scope property to the value of DOM attribute. The result is\n\t *   always a string since DOM attributes are strings. If no `attr` name is specified  then the\n\t *   attribute name is assumed to be the same as the local name.\n\t *   Given `<widget my-attr=\"hello {{name}}\">` and widget definition\n\t *   of `scope: { localName:'@myAttr' }`, then widget scope property `localName` will reflect\n\t *   the interpolated value of `hello {{name}}`. As the `name` attribute changes so will the\n\t *   `localName` property on the widget scope. The `name` is read from the parent scope (not\n\t *   component scope).\n\t *\n\t * * `=` or `=attr` - set up bi-directional binding between a local scope property and the\n\t *   parent scope property of name defined via the value of the `attr` attribute. If no `attr`\n\t *   name is specified then the attribute name is assumed to be the same as the local name.\n\t *   Given `<widget my-attr=\"parentModel\">` and widget definition of\n\t *   `scope: { localModel:'=myAttr' }`, then widget scope property `localModel` will reflect the\n\t *   value of `parentModel` on the parent scope. Any changes to `parentModel` will be reflected\n\t *   in `localModel` and any changes in `localModel` will reflect in `parentModel`. If the parent\n\t *   scope property doesn't exist, it will throw a NON_ASSIGNABLE_MODEL_EXPRESSION exception. You\n\t *   can avoid this behavior using `=?` or `=?attr` in order to flag the property as optional. If\n\t *   you want to shallow watch for changes (i.e. $watchCollection instead of $watch) you can use\n\t *   `=*` or `=*attr` (`=*?` or `=*?attr` if the property is optional).\n\t *\n\t * * `&` or `&attr` - provides a way to execute an expression in the context of the parent scope.\n\t *   If no `attr` name is specified then the attribute name is assumed to be the same as the\n\t *   local name. Given `<widget my-attr=\"count = count + value\">` and widget definition of\n\t *   `scope: { localFn:'&myAttr' }`, then isolate scope property `localFn` will point to\n\t *   a function wrapper for the `count = count + value` expression. Often it's desirable to\n\t *   pass data from the isolated scope via an expression to the parent scope, this can be\n\t *   done by passing a map of local variable names and values into the expression wrapper fn.\n\t *   For example, if the expression is `increment(amount)` then we can specify the amount value\n\t *   by calling the `localFn` as `localFn({amount: 22})`.\n\t *\n\t * In general it's possible to apply more than one directive to one element, but there might be limitations\n\t * depending on the type of scope required by the directives. The following points will help explain these limitations.\n\t * For simplicity only two directives are taken into account, but it is also applicable for several directives:\n\t *\n\t * * **no scope** + **no scope** => Two directives which don't require their own scope will use their parent's scope\n\t * * **child scope** + **no scope** =>  Both directives will share one single child scope\n\t * * **child scope** + **child scope** =>  Both directives will share one single child scope\n\t * * **isolated scope** + **no scope** =>  The isolated directive will use it's own created isolated scope. The other directive will use\n\t * its parent's scope\n\t * * **isolated scope** + **child scope** =>  **Won't work!** Only one scope can be related to one element. Therefore these directives cannot\n\t * be applied to the same element.\n\t * * **isolated scope** + **isolated scope**  =>  **Won't work!** Only one scope can be related to one element. Therefore these directives\n\t * cannot be applied to the same element.\n\t *\n\t *\n\t * #### `bindToController`\n\t * When an isolate scope is used for a component (see above), and `controllerAs` is used, `bindToController: true` will\n\t * allow a component to have its properties bound to the controller, rather than to scope. When the controller\n\t * is instantiated, the initial values of the isolate scope bindings are already available.\n\t *\n\t * #### `controller`\n\t * Controller constructor function. The controller is instantiated before the\n\t * pre-linking phase and can be accessed by other directives (see\n\t * `require` attribute). This allows the directives to communicate with each other and augment\n\t * each other's behavior. The controller is injectable (and supports bracket notation) with the following locals:\n\t *\n\t * * `$scope` - Current scope associated with the element\n\t * * `$element` - Current element\n\t * * `$attrs` - Current attributes object for the element\n\t * * `$transclude` - A transclude linking function pre-bound to the correct transclusion scope:\n\t *   `function([scope], cloneLinkingFn, futureParentElement)`.\n\t *    * `scope`: optional argument to override the scope.\n\t *    * `cloneLinkingFn`: optional argument to create clones of the original transcluded content.\n\t *    * `futureParentElement`:\n\t *        * defines the parent to which the `cloneLinkingFn` will add the cloned elements.\n\t *        * default: `$element.parent()` resp. `$element` for `transclude:'element'` resp. `transclude:true`.\n\t *        * only needed for transcludes that are allowed to contain non html elements (e.g. SVG elements)\n\t *          and when the `cloneLinkinFn` is passed,\n\t *          as those elements need to created and cloned in a special way when they are defined outside their\n\t *          usual containers (e.g. like `<svg>`).\n\t *        * See also the `directive.templateNamespace` property.\n\t *\n\t *\n\t * #### `require`\n\t * Require another directive and inject its controller as the fourth argument to the linking function. The\n\t * `require` takes a string name (or array of strings) of the directive(s) to pass in. If an array is used, the\n\t * injected argument will be an array in corresponding order. If no such directive can be\n\t * found, or if the directive does not have a controller, then an error is raised (unless no link function\n\t * is specified, in which case error checking is skipped). The name can be prefixed with:\n\t *\n\t * * (no prefix) - Locate the required controller on the current element. Throw an error if not found.\n\t * * `?` - Attempt to locate the required controller or pass `null` to the `link` fn if not found.\n\t * * `^` - Locate the required controller by searching the element and its parents. Throw an error if not found.\n\t * * `^^` - Locate the required controller by searching the element's parents. Throw an error if not found.\n\t * * `?^` - Attempt to locate the required controller by searching the element and its parents or pass\n\t *   `null` to the `link` fn if not found.\n\t * * `?^^` - Attempt to locate the required controller by searching the element's parents, or pass\n\t *   `null` to the `link` fn if not found.\n\t *\n\t *\n\t * #### `controllerAs`\n\t * Identifier name for a reference to the controller in the directive's scope.\n\t * This allows the controller to be referenced from the directive template. This is especially\n\t * useful when a directive is used as component, i.e. with an `isolate` scope. It's also possible\n\t * to use it in a directive without an `isolate` / `new` scope, but you need to be aware that the\n\t * `controllerAs` reference might overwrite a property that already exists on the parent scope.\n\t *\n\t *\n\t * #### `restrict`\n\t * String of subset of `EACM` which restricts the directive to a specific directive\n\t * declaration style. If omitted, the defaults (elements and attributes) are used.\n\t *\n\t * * `E` - Element name (default): `<my-directive></my-directive>`\n\t * * `A` - Attribute (default): `<div my-directive=\"exp\"></div>`\n\t * * `C` - Class: `<div class=\"my-directive: exp;\"></div>`\n\t * * `M` - Comment: `<!-- directive: my-directive exp -->`\n\t *\n\t *\n\t * #### `templateNamespace`\n\t * String representing the document type used by the markup in the template.\n\t * AngularJS needs this information as those elements need to be created and cloned\n\t * in a special way when they are defined outside their usual containers like `<svg>` and `<math>`.\n\t *\n\t * * `html` - All root nodes in the template are HTML. Root nodes may also be\n\t *   top-level elements such as `<svg>` or `<math>`.\n\t * * `svg` - The root nodes in the template are SVG elements (excluding `<math>`).\n\t * * `math` - The root nodes in the template are MathML elements (excluding `<svg>`).\n\t *\n\t * If no `templateNamespace` is specified, then the namespace is considered to be `html`.\n\t *\n\t * #### `template`\n\t * HTML markup that may:\n\t * * Replace the contents of the directive's element (default).\n\t * * Replace the directive's element itself (if `replace` is true - DEPRECATED).\n\t * * Wrap the contents of the directive's element (if `transclude` is true).\n\t *\n\t * Value may be:\n\t *\n\t * * A string. For example `<div red-on-hover>{{delete_str}}</div>`.\n\t * * A function which takes two arguments `tElement` and `tAttrs` (described in the `compile`\n\t *   function api below) and returns a string value.\n\t *\n\t *\n\t * #### `templateUrl`\n\t * This is similar to `template` but the template is loaded from the specified URL, asynchronously.\n\t *\n\t * Because template loading is asynchronous the compiler will suspend compilation of directives on that element\n\t * for later when the template has been resolved.  In the meantime it will continue to compile and link\n\t * sibling and parent elements as though this element had not contained any directives.\n\t *\n\t * The compiler does not suspend the entire compilation to wait for templates to be loaded because this\n\t * would result in the whole app \"stalling\" until all templates are loaded asynchronously - even in the\n\t * case when only one deeply nested directive has `templateUrl`.\n\t *\n\t * Template loading is asynchronous even if the template has been preloaded into the {@link $templateCache}\n\t *\n\t * You can specify `templateUrl` as a string representing the URL or as a function which takes two\n\t * arguments `tElement` and `tAttrs` (described in the `compile` function api below) and returns\n\t * a string value representing the url.  In either case, the template URL is passed through {@link\n\t * $sce#getTrustedResourceUrl $sce.getTrustedResourceUrl}.\n\t *\n\t *\n\t * #### `replace` ([*DEPRECATED*!], will be removed in next major release - i.e. v2.0)\n\t * specify what the template should replace. Defaults to `false`.\n\t *\n\t * * `true` - the template will replace the directive's element.\n\t * * `false` - the template will replace the contents of the directive's element.\n\t *\n\t * The replacement process migrates all of the attributes / classes from the old element to the new\n\t * one. See the {@link guide/directive#template-expanding-directive\n\t * Directives Guide} for an example.\n\t *\n\t * There are very few scenarios where element replacement is required for the application function,\n\t * the main one being reusable custom components that are used within SVG contexts\n\t * (because SVG doesn't work with custom elements in the DOM tree).\n\t *\n\t * #### `transclude`\n\t * Extract the contents of the element where the directive appears and make it available to the directive.\n\t * The contents are compiled and provided to the directive as a **transclusion function**. See the\n\t * {@link $compile#transclusion Transclusion} section below.\n\t *\n\t * There are two kinds of transclusion depending upon whether you want to transclude just the contents of the\n\t * directive's element or the entire element:\n\t *\n\t * * `true` - transclude the content (i.e. the child nodes) of the directive's element.\n\t * * `'element'` - transclude the whole of the directive's element including any directives on this\n\t *   element that defined at a lower priority than this directive. When used, the `template`\n\t *   property is ignored.\n\t *\n\t *\n\t * #### `compile`\n\t *\n\t * ```js\n\t *   function compile(tElement, tAttrs, transclude) { ... }\n\t * ```\n\t *\n\t * The compile function deals with transforming the template DOM. Since most directives do not do\n\t * template transformation, it is not used often. The compile function takes the following arguments:\n\t *\n\t *   * `tElement` - template element - The element where the directive has been declared. It is\n\t *     safe to do template transformation on the element and child elements only.\n\t *\n\t *   * `tAttrs` - template attributes - Normalized list of attributes declared on this element shared\n\t *     between all directive compile functions.\n\t *\n\t *   * `transclude` -  [*DEPRECATED*!] A transclude linking function: `function(scope, cloneLinkingFn)`\n\t *\n\t * <div class=\"alert alert-warning\">\n\t * **Note:** The template instance and the link instance may be different objects if the template has\n\t * been cloned. For this reason it is **not** safe to do anything other than DOM transformations that\n\t * apply to all cloned DOM nodes within the compile function. Specifically, DOM listener registration\n\t * should be done in a linking function rather than in a compile function.\n\t * </div>\n\n\t * <div class=\"alert alert-warning\">\n\t * **Note:** The compile function cannot handle directives that recursively use themselves in their\n\t * own templates or compile functions. Compiling these directives results in an infinite loop and a\n\t * stack overflow errors.\n\t *\n\t * This can be avoided by manually using $compile in the postLink function to imperatively compile\n\t * a directive's template instead of relying on automatic template compilation via `template` or\n\t * `templateUrl` declaration or manual compilation inside the compile function.\n\t * </div>\n\t *\n\t * <div class=\"alert alert-danger\">\n\t * **Note:** The `transclude` function that is passed to the compile function is deprecated, as it\n\t *   e.g. does not know about the right outer scope. Please use the transclude function that is passed\n\t *   to the link function instead.\n\t * </div>\n\n\t * A compile function can have a return value which can be either a function or an object.\n\t *\n\t * * returning a (post-link) function - is equivalent to registering the linking function via the\n\t *   `link` property of the config object when the compile function is empty.\n\t *\n\t * * returning an object with function(s) registered via `pre` and `post` properties - allows you to\n\t *   control when a linking function should be called during the linking phase. See info about\n\t *   pre-linking and post-linking functions below.\n\t *\n\t *\n\t * #### `link`\n\t * This property is used only if the `compile` property is not defined.\n\t *\n\t * ```js\n\t *   function link(scope, iElement, iAttrs, controller, transcludeFn) { ... }\n\t * ```\n\t *\n\t * The link function is responsible for registering DOM listeners as well as updating the DOM. It is\n\t * executed after the template has been cloned. This is where most of the directive logic will be\n\t * put.\n\t *\n\t *   * `scope` - {@link ng.$rootScope.Scope Scope} - The scope to be used by the\n\t *     directive for registering {@link ng.$rootScope.Scope#$watch watches}.\n\t *\n\t *   * `iElement` - instance element - The element where the directive is to be used. It is safe to\n\t *     manipulate the children of the element only in `postLink` function since the children have\n\t *     already been linked.\n\t *\n\t *   * `iAttrs` - instance attributes - Normalized list of attributes declared on this element shared\n\t *     between all directive linking functions.\n\t *\n\t *   * `controller` - the directive's required controller instance(s) - Instances are shared\n\t *     among all directives, which allows the directives to use the controllers as a communication\n\t *     channel. The exact value depends on the directive's `require` property:\n\t *       * no controller(s) required: the directive's own controller, or `undefined` if it doesn't have one\n\t *       * `string`: the controller instance\n\t *       * `array`: array of controller instances\n\t *\n\t *     If a required controller cannot be found, and it is optional, the instance is `null`,\n\t *     otherwise the {@link error:$compile:ctreq Missing Required Controller} error is thrown.\n\t *\n\t *     Note that you can also require the directive's own controller - it will be made available like\n\t *     any other controller.\n\t *\n\t *   * `transcludeFn` - A transclude linking function pre-bound to the correct transclusion scope.\n\t *     This is the same as the `$transclude`\n\t *     parameter of directive controllers, see there for details.\n\t *     `function([scope], cloneLinkingFn, futureParentElement)`.\n\t *\n\t * #### Pre-linking function\n\t *\n\t * Executed before the child elements are linked. Not safe to do DOM transformation since the\n\t * compiler linking function will fail to locate the correct elements for linking.\n\t *\n\t * #### Post-linking function\n\t *\n\t * Executed after the child elements are linked.\n\t *\n\t * Note that child elements that contain `templateUrl` directives will not have been compiled\n\t * and linked since they are waiting for their template to load asynchronously and their own\n\t * compilation and linking has been suspended until that occurs.\n\t *\n\t * It is safe to do DOM transformation in the post-linking function on elements that are not waiting\n\t * for their async templates to be resolved.\n\t *\n\t *\n\t * ### Transclusion\n\t *\n\t * Transclusion is the process of extracting a collection of DOM elements from one part of the DOM and\n\t * copying them to another part of the DOM, while maintaining their connection to the original AngularJS\n\t * scope from where they were taken.\n\t *\n\t * Transclusion is used (often with {@link ngTransclude}) to insert the\n\t * original contents of a directive's element into a specified place in the template of the directive.\n\t * The benefit of transclusion, over simply moving the DOM elements manually, is that the transcluded\n\t * content has access to the properties on the scope from which it was taken, even if the directive\n\t * has isolated scope.\n\t * See the {@link guide/directive#creating-a-directive-that-wraps-other-elements Directives Guide}.\n\t *\n\t * This makes it possible for the widget to have private state for its template, while the transcluded\n\t * content has access to its originating scope.\n\t *\n\t * <div class=\"alert alert-warning\">\n\t * **Note:** When testing an element transclude directive you must not place the directive at the root of the\n\t * DOM fragment that is being compiled. See {@link guide/unit-testing#testing-transclusion-directives\n\t * Testing Transclusion Directives}.\n\t * </div>\n\t *\n\t * #### Transclusion Functions\n\t *\n\t * When a directive requests transclusion, the compiler extracts its contents and provides a **transclusion\n\t * function** to the directive's `link` function and `controller`. This transclusion function is a special\n\t * **linking function** that will return the compiled contents linked to a new transclusion scope.\n\t *\n\t * <div class=\"alert alert-info\">\n\t * If you are just using {@link ngTransclude} then you don't need to worry about this function, since\n\t * ngTransclude will deal with it for us.\n\t * </div>\n\t *\n\t * If you want to manually control the insertion and removal of the transcluded content in your directive\n\t * then you must use this transclude function. When you call a transclude function it returns a a jqLite/JQuery\n\t * object that contains the compiled DOM, which is linked to the correct transclusion scope.\n\t *\n\t * When you call a transclusion function you can pass in a **clone attach function**. This function accepts\n\t * two parameters, `function(clone, scope) { ... }`, where the `clone` is a fresh compiled copy of your transcluded\n\t * content and the `scope` is the newly created transclusion scope, to which the clone is bound.\n\t *\n\t * <div class=\"alert alert-info\">\n\t * **Best Practice**: Always provide a `cloneFn` (clone attach function) when you call a translude function\n\t * since you then get a fresh clone of the original DOM and also have access to the new transclusion scope.\n\t * </div>\n\t *\n\t * It is normal practice to attach your transcluded content (`clone`) to the DOM inside your **clone\n\t * attach function**:\n\t *\n\t * ```js\n\t * var transcludedContent, transclusionScope;\n\t *\n\t * $transclude(function(clone, scope) {\n\t *   element.append(clone);\n\t *   transcludedContent = clone;\n\t *   transclusionScope = scope;\n\t * });\n\t * ```\n\t *\n\t * Later, if you want to remove the transcluded content from your DOM then you should also destroy the\n\t * associated transclusion scope:\n\t *\n\t * ```js\n\t * transcludedContent.remove();\n\t * transclusionScope.$destroy();\n\t * ```\n\t *\n\t * <div class=\"alert alert-info\">\n\t * **Best Practice**: if you intend to add and remove transcluded content manually in your directive\n\t * (by calling the transclude function to get the DOM and calling `element.remove()` to remove it),\n\t * then you are also responsible for calling `$destroy` on the transclusion scope.\n\t * </div>\n\t *\n\t * The built-in DOM manipulation directives, such as {@link ngIf}, {@link ngSwitch} and {@link ngRepeat}\n\t * automatically destroy their transluded clones as necessary so you do not need to worry about this if\n\t * you are simply using {@link ngTransclude} to inject the transclusion into your directive.\n\t *\n\t *\n\t * #### Transclusion Scopes\n\t *\n\t * When you call a transclude function it returns a DOM fragment that is pre-bound to a **transclusion\n\t * scope**. This scope is special, in that it is a child of the directive's scope (and so gets destroyed\n\t * when the directive's scope gets destroyed) but it inherits the properties of the scope from which it\n\t * was taken.\n\t *\n\t * For example consider a directive that uses transclusion and isolated scope. The DOM hierarchy might look\n\t * like this:\n\t *\n\t * ```html\n\t * <div ng-app>\n\t *   <div isolate>\n\t *     <div transclusion>\n\t *     </div>\n\t *   </div>\n\t * </div>\n\t * ```\n\t *\n\t * The `$parent` scope hierarchy will look like this:\n\t *\n\t * ```\n\t * - $rootScope\n\t *   - isolate\n\t *     - transclusion\n\t * ```\n\t *\n\t * but the scopes will inherit prototypically from different scopes to their `$parent`.\n\t *\n\t * ```\n\t * - $rootScope\n\t *   - transclusion\n\t * - isolate\n\t * ```\n\t *\n\t *\n\t * ### Attributes\n\t *\n\t * The {@link ng.$compile.directive.Attributes Attributes} object - passed as a parameter in the\n\t * `link()` or `compile()` functions. It has a variety of uses.\n\t *\n\t * accessing *Normalized attribute names:*\n\t * Directives like 'ngBind' can be expressed in many ways: 'ng:bind', `data-ng-bind`, or 'x-ng-bind'.\n\t * the attributes object allows for normalized access to\n\t *   the attributes.\n\t *\n\t * * *Directive inter-communication:* All directives share the same instance of the attributes\n\t *   object which allows the directives to use the attributes object as inter directive\n\t *   communication.\n\t *\n\t * * *Supports interpolation:* Interpolation attributes are assigned to the attribute object\n\t *   allowing other directives to read the interpolated value.\n\t *\n\t * * *Observing interpolated attributes:* Use `$observe` to observe the value changes of attributes\n\t *   that contain interpolation (e.g. `src=\"{{bar}}\"`). Not only is this very efficient but it's also\n\t *   the only way to easily get the actual value because during the linking phase the interpolation\n\t *   hasn't been evaluated yet and so the value is at this time set to `undefined`.\n\t *\n\t * ```js\n\t * function linkingFn(scope, elm, attrs, ctrl) {\n\t *   // get the attribute value\n\t *   console.log(attrs.ngModel);\n\t *\n\t *   // change the attribute\n\t *   attrs.$set('ngModel', 'new value');\n\t *\n\t *   // observe changes to interpolated attribute\n\t *   attrs.$observe('ngModel', function(value) {\n\t *     console.log('ngModel has changed value to ' + value);\n\t *   });\n\t * }\n\t * ```\n\t *\n\t * ## Example\n\t *\n\t * <div class=\"alert alert-warning\">\n\t * **Note**: Typically directives are registered with `module.directive`. The example below is\n\t * to illustrate how `$compile` works.\n\t * </div>\n\t *\n\t <example module=\"compileExample\">\n\t   <file name=\"index.html\">\n\t    <script>\n\t      angular.module('compileExample', [], function($compileProvider) {\n\t        // configure new 'compile' directive by passing a directive\n\t        // factory function. The factory function injects the '$compile'\n\t        $compileProvider.directive('compile', function($compile) {\n\t          // directive factory creates a link function\n\t          return function(scope, element, attrs) {\n\t            scope.$watch(\n\t              function(scope) {\n\t                 // watch the 'compile' expression for changes\n\t                return scope.$eval(attrs.compile);\n\t              },\n\t              function(value) {\n\t                // when the 'compile' expression changes\n\t                // assign it into the current DOM\n\t                element.html(value);\n\n\t                // compile the new DOM and link it to the current\n\t                // scope.\n\t                // NOTE: we only compile .childNodes so that\n\t                // we don't get into infinite loop compiling ourselves\n\t                $compile(element.contents())(scope);\n\t              }\n\t            );\n\t          };\n\t        });\n\t      })\n\t      .controller('GreeterController', ['$scope', function($scope) {\n\t        $scope.name = 'Angular';\n\t        $scope.html = 'Hello {{name}}';\n\t      }]);\n\t    </script>\n\t    <div ng-controller=\"GreeterController\">\n\t      <input ng-model=\"name\"> <br/>\n\t      <textarea ng-model=\"html\"></textarea> <br/>\n\t      <div compile=\"html\"></div>\n\t    </div>\n\t   </file>\n\t   <file name=\"protractor.js\" type=\"protractor\">\n\t     it('should auto compile', function() {\n\t       var textarea = $('textarea');\n\t       var output = $('div[compile]');\n\t       // The initial state reads 'Hello Angular'.\n\t       expect(output.getText()).toBe('Hello Angular');\n\t       textarea.clear();\n\t       textarea.sendKeys('{{name}}!');\n\t       expect(output.getText()).toBe('Angular!');\n\t     });\n\t   </file>\n\t </example>\n\n\t *\n\t *\n\t * @param {string|DOMElement} element Element or HTML string to compile into a template function.\n\t * @param {function(angular.Scope, cloneAttachFn=)} transclude function available to directives - DEPRECATED.\n\t *\n\t * <div class=\"alert alert-danger\">\n\t * **Note:** Passing a `transclude` function to the $compile function is deprecated, as it\n\t *   e.g. will not use the right outer scope. Please pass the transclude function as a\n\t *   `parentBoundTranscludeFn` to the link function instead.\n\t * </div>\n\t *\n\t * @param {number} maxPriority only apply directives lower than given priority (Only effects the\n\t *                 root element(s), not their children)\n\t * @returns {function(scope, cloneAttachFn=, options=)} a link function which is used to bind template\n\t * (a DOM element/tree) to a scope. Where:\n\t *\n\t *  * `scope` - A {@link ng.$rootScope.Scope Scope} to bind to.\n\t *  * `cloneAttachFn` - If `cloneAttachFn` is provided, then the link function will clone the\n\t *  `template` and call the `cloneAttachFn` function allowing the caller to attach the\n\t *  cloned elements to the DOM document at the appropriate place. The `cloneAttachFn` is\n\t *  called as: <br/> `cloneAttachFn(clonedElement, scope)` where:\n\t *\n\t *      * `clonedElement` - is a clone of the original `element` passed into the compiler.\n\t *      * `scope` - is the current scope with which the linking function is working with.\n\t *\n\t *  * `options` - An optional object hash with linking options. If `options` is provided, then the following\n\t *  keys may be used to control linking behavior:\n\t *\n\t *      * `parentBoundTranscludeFn` - the transclude function made available to\n\t *        directives; if given, it will be passed through to the link functions of\n\t *        directives found in `element` during compilation.\n\t *      * `transcludeControllers` - an object hash with keys that map controller names\n\t *        to controller instances; if given, it will make the controllers\n\t *        available to directives.\n\t *      * `futureParentElement` - defines the parent to which the `cloneAttachFn` will add\n\t *        the cloned elements; only needed for transcludes that are allowed to contain non html\n\t *        elements (e.g. SVG elements). See also the directive.controller property.\n\t *\n\t * Calling the linking function returns the element of the template. It is either the original\n\t * element passed in, or the clone of the element if the `cloneAttachFn` is provided.\n\t *\n\t * After linking the view is not updated until after a call to $digest which typically is done by\n\t * Angular automatically.\n\t *\n\t * If you need access to the bound view, there are two ways to do it:\n\t *\n\t * - If you are not asking the linking function to clone the template, create the DOM element(s)\n\t *   before you send them to the compiler and keep this reference around.\n\t *   ```js\n\t *     var element = $compile('<p>{{total}}</p>')(scope);\n\t *   ```\n\t *\n\t * - if on the other hand, you need the element to be cloned, the view reference from the original\n\t *   example would not point to the clone, but rather to the original template that was cloned. In\n\t *   this case, you can access the clone via the cloneAttachFn:\n\t *   ```js\n\t *     var templateElement = angular.element('<p>{{total}}</p>'),\n\t *         scope = ....;\n\t *\n\t *     var clonedElement = $compile(templateElement)(scope, function(clonedElement, scope) {\n\t *       //attach the clone to DOM document at the right place\n\t *     });\n\t *\n\t *     //now we have reference to the cloned DOM via `clonedElement`\n\t *   ```\n\t *\n\t *\n\t * For information on how the compiler works, see the\n\t * {@link guide/compiler Angular HTML Compiler} section of the Developer Guide.\n\t */\n\n\tvar $compileMinErr = minErr('$compile');\n\n\t/**\n\t * @ngdoc provider\n\t * @name $compileProvider\n\t *\n\t * @description\n\t */\n\t$CompileProvider.$inject = ['$provide', '$$sanitizeUriProvider'];\n\tfunction $CompileProvider($provide, $$sanitizeUriProvider) {\n\t  var hasDirectives = {},\n\t      Suffix = 'Directive',\n\t      COMMENT_DIRECTIVE_REGEXP = /^\\s*directive\\:\\s*([\\w\\-]+)\\s+(.*)$/,\n\t      CLASS_DIRECTIVE_REGEXP = /(([\\w\\-]+)(?:\\:([^;]+))?;?)/,\n\t      ALL_OR_NOTHING_ATTRS = makeMap('ngSrc,ngSrcset,src,srcset'),\n\t      REQUIRE_PREFIX_REGEXP = /^(?:(\\^\\^?)?(\\?)?(\\^\\^?)?)?/;\n\n\t  // Ref: http://developers.whatwg.org/webappapis.html#event-handler-idl-attributes\n\t  // The assumption is that future DOM event attribute names will begin with\n\t  // 'on' and be composed of only English letters.\n\t  var EVENT_HANDLER_ATTR_REGEXP = /^(on[a-z]+|formaction)$/;\n\n\t  function parseIsolateBindings(scope, directiveName, isController) {\n\t    var LOCAL_REGEXP = /^\\s*([@&]|=(\\*?))(\\??)\\s*(\\w*)\\s*$/;\n\n\t    var bindings = {};\n\n\t    forEach(scope, function(definition, scopeName) {\n\t      var match = definition.match(LOCAL_REGEXP);\n\n\t      if (!match) {\n\t        throw $compileMinErr('iscp',\n\t            \"Invalid {3} for directive '{0}'.\" +\n\t            \" Definition: {... {1}: '{2}' ...}\",\n\t            directiveName, scopeName, definition,\n\t            (isController ? \"controller bindings definition\" :\n\t            \"isolate scope definition\"));\n\t      }\n\n\t      bindings[scopeName] = {\n\t        mode: match[1][0],\n\t        collection: match[2] === '*',\n\t        optional: match[3] === '?',\n\t        attrName: match[4] || scopeName\n\t      };\n\t    });\n\n\t    return bindings;\n\t  }\n\n\t  function parseDirectiveBindings(directive, directiveName) {\n\t    var bindings = {\n\t      isolateScope: null,\n\t      bindToController: null\n\t    };\n\t    if (isObject(directive.scope)) {\n\t      if (directive.bindToController === true) {\n\t        bindings.bindToController = parseIsolateBindings(directive.scope,\n\t                                                         directiveName, true);\n\t        bindings.isolateScope = {};\n\t      } else {\n\t        bindings.isolateScope = parseIsolateBindings(directive.scope,\n\t                                                     directiveName, false);\n\t      }\n\t    }\n\t    if (isObject(directive.bindToController)) {\n\t      bindings.bindToController =\n\t          parseIsolateBindings(directive.bindToController, directiveName, true);\n\t    }\n\t    if (isObject(bindings.bindToController)) {\n\t      var controller = directive.controller;\n\t      var controllerAs = directive.controllerAs;\n\t      if (!controller) {\n\t        // There is no controller, there may or may not be a controllerAs property\n\t        throw $compileMinErr('noctrl',\n\t              \"Cannot bind to controller without directive '{0}'s controller.\",\n\t              directiveName);\n\t      } else if (!identifierForController(controller, controllerAs)) {\n\t        // There is a controller, but no identifier or controllerAs property\n\t        throw $compileMinErr('noident',\n\t              \"Cannot bind to controller without identifier for directive '{0}'.\",\n\t              directiveName);\n\t      }\n\t    }\n\t    return bindings;\n\t  }\n\n\t  function assertValidDirectiveName(name) {\n\t    var letter = name.charAt(0);\n\t    if (!letter || letter !== lowercase(letter)) {\n\t      throw $compileMinErr('baddir', \"Directive name '{0}' is invalid. The first character must be a lowercase letter\", name);\n\t    }\n\t    if (name !== name.trim()) {\n\t      throw $compileMinErr('baddir',\n\t            \"Directive name '{0}' is invalid. The name should not contain leading or trailing whitespaces\",\n\t            name);\n\t    }\n\t  }\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $compileProvider#directive\n\t   * @kind function\n\t   *\n\t   * @description\n\t   * Register a new directive with the compiler.\n\t   *\n\t   * @param {string|Object} name Name of the directive in camel-case (i.e. <code>ngBind</code> which\n\t   *    will match as <code>ng-bind</code>), or an object map of directives where the keys are the\n\t   *    names and the values are the factories.\n\t   * @param {Function|Array} directiveFactory An injectable directive factory function. See\n\t   *    {@link guide/directive} for more info.\n\t   * @returns {ng.$compileProvider} Self for chaining.\n\t   */\n\t   this.directive = function registerDirective(name, directiveFactory) {\n\t    assertNotHasOwnProperty(name, 'directive');\n\t    if (isString(name)) {\n\t      assertValidDirectiveName(name);\n\t      assertArg(directiveFactory, 'directiveFactory');\n\t      if (!hasDirectives.hasOwnProperty(name)) {\n\t        hasDirectives[name] = [];\n\t        $provide.factory(name + Suffix, ['$injector', '$exceptionHandler',\n\t          function($injector, $exceptionHandler) {\n\t            var directives = [];\n\t            forEach(hasDirectives[name], function(directiveFactory, index) {\n\t              try {\n\t                var directive = $injector.invoke(directiveFactory);\n\t                if (isFunction(directive)) {\n\t                  directive = { compile: valueFn(directive) };\n\t                } else if (!directive.compile && directive.link) {\n\t                  directive.compile = valueFn(directive.link);\n\t                }\n\t                directive.priority = directive.priority || 0;\n\t                directive.index = index;\n\t                directive.name = directive.name || name;\n\t                directive.require = directive.require || (directive.controller && directive.name);\n\t                directive.restrict = directive.restrict || 'EA';\n\t                var bindings = directive.$$bindings =\n\t                    parseDirectiveBindings(directive, directive.name);\n\t                if (isObject(bindings.isolateScope)) {\n\t                  directive.$$isolateBindings = bindings.isolateScope;\n\t                }\n\t                directive.$$moduleName = directiveFactory.$$moduleName;\n\t                directives.push(directive);\n\t              } catch (e) {\n\t                $exceptionHandler(e);\n\t              }\n\t            });\n\t            return directives;\n\t          }]);\n\t      }\n\t      hasDirectives[name].push(directiveFactory);\n\t    } else {\n\t      forEach(name, reverseParams(registerDirective));\n\t    }\n\t    return this;\n\t  };\n\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $compileProvider#aHrefSanitizationWhitelist\n\t   * @kind function\n\t   *\n\t   * @description\n\t   * Retrieves or overrides the default regular expression that is used for whitelisting of safe\n\t   * urls during a[href] sanitization.\n\t   *\n\t   * The sanitization is a security measure aimed at preventing XSS attacks via html links.\n\t   *\n\t   * Any url about to be assigned to a[href] via data-binding is first normalized and turned into\n\t   * an absolute url. Afterwards, the url is matched against the `aHrefSanitizationWhitelist`\n\t   * regular expression. If a match is found, the original url is written into the dom. Otherwise,\n\t   * the absolute url is prefixed with `'unsafe:'` string and only then is it written into the DOM.\n\t   *\n\t   * @param {RegExp=} regexp New regexp to whitelist urls with.\n\t   * @returns {RegExp|ng.$compileProvider} Current RegExp if called without value or self for\n\t   *    chaining otherwise.\n\t   */\n\t  this.aHrefSanitizationWhitelist = function(regexp) {\n\t    if (isDefined(regexp)) {\n\t      $$sanitizeUriProvider.aHrefSanitizationWhitelist(regexp);\n\t      return this;\n\t    } else {\n\t      return $$sanitizeUriProvider.aHrefSanitizationWhitelist();\n\t    }\n\t  };\n\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $compileProvider#imgSrcSanitizationWhitelist\n\t   * @kind function\n\t   *\n\t   * @description\n\t   * Retrieves or overrides the default regular expression that is used for whitelisting of safe\n\t   * urls during img[src] sanitization.\n\t   *\n\t   * The sanitization is a security measure aimed at prevent XSS attacks via html links.\n\t   *\n\t   * Any url about to be assigned to img[src] via data-binding is first normalized and turned into\n\t   * an absolute url. Afterwards, the url is matched against the `imgSrcSanitizationWhitelist`\n\t   * regular expression. If a match is found, the original url is written into the dom. Otherwise,\n\t   * the absolute url is prefixed with `'unsafe:'` string and only then is it written into the DOM.\n\t   *\n\t   * @param {RegExp=} regexp New regexp to whitelist urls with.\n\t   * @returns {RegExp|ng.$compileProvider} Current RegExp if called without value or self for\n\t   *    chaining otherwise.\n\t   */\n\t  this.imgSrcSanitizationWhitelist = function(regexp) {\n\t    if (isDefined(regexp)) {\n\t      $$sanitizeUriProvider.imgSrcSanitizationWhitelist(regexp);\n\t      return this;\n\t    } else {\n\t      return $$sanitizeUriProvider.imgSrcSanitizationWhitelist();\n\t    }\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name  $compileProvider#debugInfoEnabled\n\t   *\n\t   * @param {boolean=} enabled update the debugInfoEnabled state if provided, otherwise just return the\n\t   * current debugInfoEnabled state\n\t   * @returns {*} current value if used as getter or itself (chaining) if used as setter\n\t   *\n\t   * @kind function\n\t   *\n\t   * @description\n\t   * Call this method to enable/disable various debug runtime information in the compiler such as adding\n\t   * binding information and a reference to the current scope on to DOM elements.\n\t   * If enabled, the compiler will add the following to DOM elements that have been bound to the scope\n\t   * * `ng-binding` CSS class\n\t   * * `$binding` data property containing an array of the binding expressions\n\t   *\n\t   * You may want to disable this in production for a significant performance boost. See\n\t   * {@link guide/production#disabling-debug-data Disabling Debug Data} for more.\n\t   *\n\t   * The default value is true.\n\t   */\n\t  var debugInfoEnabled = true;\n\t  this.debugInfoEnabled = function(enabled) {\n\t    if (isDefined(enabled)) {\n\t      debugInfoEnabled = enabled;\n\t      return this;\n\t    }\n\t    return debugInfoEnabled;\n\t  };\n\n\t  this.$get = [\n\t            '$injector', '$interpolate', '$exceptionHandler', '$templateRequest', '$parse',\n\t            '$controller', '$rootScope', '$document', '$sce', '$animate', '$$sanitizeUri',\n\t    function($injector,   $interpolate,   $exceptionHandler,   $templateRequest,   $parse,\n\t             $controller,   $rootScope,   $document,   $sce,   $animate,   $$sanitizeUri) {\n\n\t    var Attributes = function(element, attributesToCopy) {\n\t      if (attributesToCopy) {\n\t        var keys = Object.keys(attributesToCopy);\n\t        var i, l, key;\n\n\t        for (i = 0, l = keys.length; i < l; i++) {\n\t          key = keys[i];\n\t          this[key] = attributesToCopy[key];\n\t        }\n\t      } else {\n\t        this.$attr = {};\n\t      }\n\n\t      this.$$element = element;\n\t    };\n\n\t    Attributes.prototype = {\n\t      /**\n\t       * @ngdoc method\n\t       * @name $compile.directive.Attributes#$normalize\n\t       * @kind function\n\t       *\n\t       * @description\n\t       * Converts an attribute name (e.g. dash/colon/underscore-delimited string, optionally prefixed with `x-` or\n\t       * `data-`) to its normalized, camelCase form.\n\t       *\n\t       * Also there is special case for Moz prefix starting with upper case letter.\n\t       *\n\t       * For further information check out the guide on {@link guide/directive#matching-directives Matching Directives}\n\t       *\n\t       * @param {string} name Name to normalize\n\t       */\n\t      $normalize: directiveNormalize,\n\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $compile.directive.Attributes#$addClass\n\t       * @kind function\n\t       *\n\t       * @description\n\t       * Adds the CSS class value specified by the classVal parameter to the element. If animations\n\t       * are enabled then an animation will be triggered for the class addition.\n\t       *\n\t       * @param {string} classVal The className value that will be added to the element\n\t       */\n\t      $addClass: function(classVal) {\n\t        if (classVal && classVal.length > 0) {\n\t          $animate.addClass(this.$$element, classVal);\n\t        }\n\t      },\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $compile.directive.Attributes#$removeClass\n\t       * @kind function\n\t       *\n\t       * @description\n\t       * Removes the CSS class value specified by the classVal parameter from the element. If\n\t       * animations are enabled then an animation will be triggered for the class removal.\n\t       *\n\t       * @param {string} classVal The className value that will be removed from the element\n\t       */\n\t      $removeClass: function(classVal) {\n\t        if (classVal && classVal.length > 0) {\n\t          $animate.removeClass(this.$$element, classVal);\n\t        }\n\t      },\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $compile.directive.Attributes#$updateClass\n\t       * @kind function\n\t       *\n\t       * @description\n\t       * Adds and removes the appropriate CSS class values to the element based on the difference\n\t       * between the new and old CSS class values (specified as newClasses and oldClasses).\n\t       *\n\t       * @param {string} newClasses The current CSS className value\n\t       * @param {string} oldClasses The former CSS className value\n\t       */\n\t      $updateClass: function(newClasses, oldClasses) {\n\t        var toAdd = tokenDifference(newClasses, oldClasses);\n\t        if (toAdd && toAdd.length) {\n\t          $animate.addClass(this.$$element, toAdd);\n\t        }\n\n\t        var toRemove = tokenDifference(oldClasses, newClasses);\n\t        if (toRemove && toRemove.length) {\n\t          $animate.removeClass(this.$$element, toRemove);\n\t        }\n\t      },\n\n\t      /**\n\t       * Set a normalized attribute on the element in a way such that all directives\n\t       * can share the attribute. This function properly handles boolean attributes.\n\t       * @param {string} key Normalized key. (ie ngAttribute)\n\t       * @param {string|boolean} value The value to set. If `null` attribute will be deleted.\n\t       * @param {boolean=} writeAttr If false, does not write the value to DOM element attribute.\n\t       *     Defaults to true.\n\t       * @param {string=} attrName Optional none normalized name. Defaults to key.\n\t       */\n\t      $set: function(key, value, writeAttr, attrName) {\n\t        // TODO: decide whether or not to throw an error if \"class\"\n\t        //is set through this function since it may cause $updateClass to\n\t        //become unstable.\n\n\t        var node = this.$$element[0],\n\t            booleanKey = getBooleanAttrName(node, key),\n\t            aliasedKey = getAliasedAttrName(key),\n\t            observer = key,\n\t            nodeName;\n\n\t        if (booleanKey) {\n\t          this.$$element.prop(key, value);\n\t          attrName = booleanKey;\n\t        } else if (aliasedKey) {\n\t          this[aliasedKey] = value;\n\t          observer = aliasedKey;\n\t        }\n\n\t        this[key] = value;\n\n\t        // translate normalized key to actual key\n\t        if (attrName) {\n\t          this.$attr[key] = attrName;\n\t        } else {\n\t          attrName = this.$attr[key];\n\t          if (!attrName) {\n\t            this.$attr[key] = attrName = snake_case(key, '-');\n\t          }\n\t        }\n\n\t        nodeName = nodeName_(this.$$element);\n\n\t        if ((nodeName === 'a' && key === 'href') ||\n\t            (nodeName === 'img' && key === 'src')) {\n\t          // sanitize a[href] and img[src] values\n\t          this[key] = value = $$sanitizeUri(value, key === 'src');\n\t        } else if (nodeName === 'img' && key === 'srcset') {\n\t          // sanitize img[srcset] values\n\t          var result = \"\";\n\n\t          // first check if there are spaces because it's not the same pattern\n\t          var trimmedSrcset = trim(value);\n\t          //                (   999x   ,|   999w   ,|   ,|,   )\n\t          var srcPattern = /(\\s+\\d+x\\s*,|\\s+\\d+w\\s*,|\\s+,|,\\s+)/;\n\t          var pattern = /\\s/.test(trimmedSrcset) ? srcPattern : /(,)/;\n\n\t          // split srcset into tuple of uri and descriptor except for the last item\n\t          var rawUris = trimmedSrcset.split(pattern);\n\n\t          // for each tuples\n\t          var nbrUrisWith2parts = Math.floor(rawUris.length / 2);\n\t          for (var i = 0; i < nbrUrisWith2parts; i++) {\n\t            var innerIdx = i * 2;\n\t            // sanitize the uri\n\t            result += $$sanitizeUri(trim(rawUris[innerIdx]), true);\n\t            // add the descriptor\n\t            result += (\" \" + trim(rawUris[innerIdx + 1]));\n\t          }\n\n\t          // split the last item into uri and descriptor\n\t          var lastTuple = trim(rawUris[i * 2]).split(/\\s/);\n\n\t          // sanitize the last uri\n\t          result += $$sanitizeUri(trim(lastTuple[0]), true);\n\n\t          // and add the last descriptor if any\n\t          if (lastTuple.length === 2) {\n\t            result += (\" \" + trim(lastTuple[1]));\n\t          }\n\t          this[key] = value = result;\n\t        }\n\n\t        if (writeAttr !== false) {\n\t          if (value === null || isUndefined(value)) {\n\t            this.$$element.removeAttr(attrName);\n\t          } else {\n\t            this.$$element.attr(attrName, value);\n\t          }\n\t        }\n\n\t        // fire observers\n\t        var $$observers = this.$$observers;\n\t        $$observers && forEach($$observers[observer], function(fn) {\n\t          try {\n\t            fn(value);\n\t          } catch (e) {\n\t            $exceptionHandler(e);\n\t          }\n\t        });\n\t      },\n\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $compile.directive.Attributes#$observe\n\t       * @kind function\n\t       *\n\t       * @description\n\t       * Observes an interpolated attribute.\n\t       *\n\t       * The observer function will be invoked once during the next `$digest` following\n\t       * compilation. The observer is then invoked whenever the interpolated value\n\t       * changes.\n\t       *\n\t       * @param {string} key Normalized key. (ie ngAttribute) .\n\t       * @param {function(interpolatedValue)} fn Function that will be called whenever\n\t                the interpolated value of the attribute changes.\n\t       *        See the {@link guide/directive#text-and-attribute-bindings Directives} guide for more info.\n\t       * @returns {function()} Returns a deregistration function for this observer.\n\t       */\n\t      $observe: function(key, fn) {\n\t        var attrs = this,\n\t            $$observers = (attrs.$$observers || (attrs.$$observers = createMap())),\n\t            listeners = ($$observers[key] || ($$observers[key] = []));\n\n\t        listeners.push(fn);\n\t        $rootScope.$evalAsync(function() {\n\t          if (!listeners.$$inter && attrs.hasOwnProperty(key) && !isUndefined(attrs[key])) {\n\t            // no one registered attribute interpolation function, so lets call it manually\n\t            fn(attrs[key]);\n\t          }\n\t        });\n\n\t        return function() {\n\t          arrayRemove(listeners, fn);\n\t        };\n\t      }\n\t    };\n\n\n\t    function safeAddClass($element, className) {\n\t      try {\n\t        $element.addClass(className);\n\t      } catch (e) {\n\t        // ignore, since it means that we are trying to set class on\n\t        // SVG element, where class name is read-only.\n\t      }\n\t    }\n\n\n\t    var startSymbol = $interpolate.startSymbol(),\n\t        endSymbol = $interpolate.endSymbol(),\n\t        denormalizeTemplate = (startSymbol == '{{' || endSymbol  == '}}')\n\t            ? identity\n\t            : function denormalizeTemplate(template) {\n\t              return template.replace(/\\{\\{/g, startSymbol).replace(/}}/g, endSymbol);\n\t        },\n\t        NG_ATTR_BINDING = /^ngAttr[A-Z]/;\n\t    var MULTI_ELEMENT_DIR_RE = /^(.+)Start$/;\n\n\t    compile.$$addBindingInfo = debugInfoEnabled ? function $$addBindingInfo($element, binding) {\n\t      var bindings = $element.data('$binding') || [];\n\n\t      if (isArray(binding)) {\n\t        bindings = bindings.concat(binding);\n\t      } else {\n\t        bindings.push(binding);\n\t      }\n\n\t      $element.data('$binding', bindings);\n\t    } : noop;\n\n\t    compile.$$addBindingClass = debugInfoEnabled ? function $$addBindingClass($element) {\n\t      safeAddClass($element, 'ng-binding');\n\t    } : noop;\n\n\t    compile.$$addScopeInfo = debugInfoEnabled ? function $$addScopeInfo($element, scope, isolated, noTemplate) {\n\t      var dataName = isolated ? (noTemplate ? '$isolateScopeNoTemplate' : '$isolateScope') : '$scope';\n\t      $element.data(dataName, scope);\n\t    } : noop;\n\n\t    compile.$$addScopeClass = debugInfoEnabled ? function $$addScopeClass($element, isolated) {\n\t      safeAddClass($element, isolated ? 'ng-isolate-scope' : 'ng-scope');\n\t    } : noop;\n\n\t    return compile;\n\n\t    //================================\n\n\t    function compile($compileNodes, transcludeFn, maxPriority, ignoreDirective,\n\t                        previousCompileContext) {\n\t      if (!($compileNodes instanceof jqLite)) {\n\t        // jquery always rewraps, whereas we need to preserve the original selector so that we can\n\t        // modify it.\n\t        $compileNodes = jqLite($compileNodes);\n\t      }\n\t      // We can not compile top level text elements since text nodes can be merged and we will\n\t      // not be able to attach scope data to them, so we will wrap them in <span>\n\t      forEach($compileNodes, function(node, index) {\n\t        if (node.nodeType == NODE_TYPE_TEXT && node.nodeValue.match(/\\S+/) /* non-empty */ ) {\n\t          $compileNodes[index] = jqLite(node).wrap('<span></span>').parent()[0];\n\t        }\n\t      });\n\t      var compositeLinkFn =\n\t              compileNodes($compileNodes, transcludeFn, $compileNodes,\n\t                           maxPriority, ignoreDirective, previousCompileContext);\n\t      compile.$$addScopeClass($compileNodes);\n\t      var namespace = null;\n\t      return function publicLinkFn(scope, cloneConnectFn, options) {\n\t        assertArg(scope, 'scope');\n\n\t        if (previousCompileContext && previousCompileContext.needsNewScope) {\n\t          // A parent directive did a replace and a directive on this element asked\n\t          // for transclusion, which caused us to lose a layer of element on which\n\t          // we could hold the new transclusion scope, so we will create it manually\n\t          // here.\n\t          scope = scope.$parent.$new();\n\t        }\n\n\t        options = options || {};\n\t        var parentBoundTranscludeFn = options.parentBoundTranscludeFn,\n\t          transcludeControllers = options.transcludeControllers,\n\t          futureParentElement = options.futureParentElement;\n\n\t        // When `parentBoundTranscludeFn` is passed, it is a\n\t        // `controllersBoundTransclude` function (it was previously passed\n\t        // as `transclude` to directive.link) so we must unwrap it to get\n\t        // its `boundTranscludeFn`\n\t        if (parentBoundTranscludeFn && parentBoundTranscludeFn.$$boundTransclude) {\n\t          parentBoundTranscludeFn = parentBoundTranscludeFn.$$boundTransclude;\n\t        }\n\n\t        if (!namespace) {\n\t          namespace = detectNamespaceForChildElements(futureParentElement);\n\t        }\n\t        var $linkNode;\n\t        if (namespace !== 'html') {\n\t          // When using a directive with replace:true and templateUrl the $compileNodes\n\t          // (or a child element inside of them)\n\t          // might change, so we need to recreate the namespace adapted compileNodes\n\t          // for call to the link function.\n\t          // Note: This will already clone the nodes...\n\t          $linkNode = jqLite(\n\t            wrapTemplate(namespace, jqLite('<div>').append($compileNodes).html())\n\t          );\n\t        } else if (cloneConnectFn) {\n\t          // important!!: we must call our jqLite.clone() since the jQuery one is trying to be smart\n\t          // and sometimes changes the structure of the DOM.\n\t          $linkNode = JQLitePrototype.clone.call($compileNodes);\n\t        } else {\n\t          $linkNode = $compileNodes;\n\t        }\n\n\t        if (transcludeControllers) {\n\t          for (var controllerName in transcludeControllers) {\n\t            $linkNode.data('$' + controllerName + 'Controller', transcludeControllers[controllerName].instance);\n\t          }\n\t        }\n\n\t        compile.$$addScopeInfo($linkNode, scope);\n\n\t        if (cloneConnectFn) cloneConnectFn($linkNode, scope);\n\t        if (compositeLinkFn) compositeLinkFn(scope, $linkNode, $linkNode, parentBoundTranscludeFn);\n\t        return $linkNode;\n\t      };\n\t    }\n\n\t    function detectNamespaceForChildElements(parentElement) {\n\t      // TODO: Make this detect MathML as well...\n\t      var node = parentElement && parentElement[0];\n\t      if (!node) {\n\t        return 'html';\n\t      } else {\n\t        return nodeName_(node) !== 'foreignobject' && node.toString().match(/SVG/) ? 'svg' : 'html';\n\t      }\n\t    }\n\n\t    /**\n\t     * Compile function matches each node in nodeList against the directives. Once all directives\n\t     * for a particular node are collected their compile functions are executed. The compile\n\t     * functions return values - the linking functions - are combined into a composite linking\n\t     * function, which is the a linking function for the node.\n\t     *\n\t     * @param {NodeList} nodeList an array of nodes or NodeList to compile\n\t     * @param {function(angular.Scope, cloneAttachFn=)} transcludeFn A linking function, where the\n\t     *        scope argument is auto-generated to the new child of the transcluded parent scope.\n\t     * @param {DOMElement=} $rootElement If the nodeList is the root of the compilation tree then\n\t     *        the rootElement must be set the jqLite collection of the compile root. This is\n\t     *        needed so that the jqLite collection items can be replaced with widgets.\n\t     * @param {number=} maxPriority Max directive priority.\n\t     * @returns {Function} A composite linking function of all of the matched directives or null.\n\t     */\n\t    function compileNodes(nodeList, transcludeFn, $rootElement, maxPriority, ignoreDirective,\n\t                            previousCompileContext) {\n\t      var linkFns = [],\n\t          attrs, directives, nodeLinkFn, childNodes, childLinkFn, linkFnFound, nodeLinkFnFound;\n\n\t      for (var i = 0; i < nodeList.length; i++) {\n\t        attrs = new Attributes();\n\n\t        // we must always refer to nodeList[i] since the nodes can be replaced underneath us.\n\t        directives = collectDirectives(nodeList[i], [], attrs, i === 0 ? maxPriority : undefined,\n\t                                        ignoreDirective);\n\n\t        nodeLinkFn = (directives.length)\n\t            ? applyDirectivesToNode(directives, nodeList[i], attrs, transcludeFn, $rootElement,\n\t                                      null, [], [], previousCompileContext)\n\t            : null;\n\n\t        if (nodeLinkFn && nodeLinkFn.scope) {\n\t          compile.$$addScopeClass(attrs.$$element);\n\t        }\n\n\t        childLinkFn = (nodeLinkFn && nodeLinkFn.terminal ||\n\t                      !(childNodes = nodeList[i].childNodes) ||\n\t                      !childNodes.length)\n\t            ? null\n\t            : compileNodes(childNodes,\n\t                 nodeLinkFn ? (\n\t                  (nodeLinkFn.transcludeOnThisElement || !nodeLinkFn.templateOnThisElement)\n\t                     && nodeLinkFn.transclude) : transcludeFn);\n\n\t        if (nodeLinkFn || childLinkFn) {\n\t          linkFns.push(i, nodeLinkFn, childLinkFn);\n\t          linkFnFound = true;\n\t          nodeLinkFnFound = nodeLinkFnFound || nodeLinkFn;\n\t        }\n\n\t        //use the previous context only for the first element in the virtual group\n\t        previousCompileContext = null;\n\t      }\n\n\t      // return a linking function if we have found anything, null otherwise\n\t      return linkFnFound ? compositeLinkFn : null;\n\n\t      function compositeLinkFn(scope, nodeList, $rootElement, parentBoundTranscludeFn) {\n\t        var nodeLinkFn, childLinkFn, node, childScope, i, ii, idx, childBoundTranscludeFn;\n\t        var stableNodeList;\n\n\n\t        if (nodeLinkFnFound) {\n\t          // copy nodeList so that if a nodeLinkFn removes or adds an element at this DOM level our\n\t          // offsets don't get screwed up\n\t          var nodeListLength = nodeList.length;\n\t          stableNodeList = new Array(nodeListLength);\n\n\t          // create a sparse array by only copying the elements which have a linkFn\n\t          for (i = 0; i < linkFns.length; i+=3) {\n\t            idx = linkFns[i];\n\t            stableNodeList[idx] = nodeList[idx];\n\t          }\n\t        } else {\n\t          stableNodeList = nodeList;\n\t        }\n\n\t        for (i = 0, ii = linkFns.length; i < ii;) {\n\t          node = stableNodeList[linkFns[i++]];\n\t          nodeLinkFn = linkFns[i++];\n\t          childLinkFn = linkFns[i++];\n\n\t          if (nodeLinkFn) {\n\t            if (nodeLinkFn.scope) {\n\t              childScope = scope.$new();\n\t              compile.$$addScopeInfo(jqLite(node), childScope);\n\t            } else {\n\t              childScope = scope;\n\t            }\n\n\t            if (nodeLinkFn.transcludeOnThisElement) {\n\t              childBoundTranscludeFn = createBoundTranscludeFn(\n\t                  scope, nodeLinkFn.transclude, parentBoundTranscludeFn);\n\n\t            } else if (!nodeLinkFn.templateOnThisElement && parentBoundTranscludeFn) {\n\t              childBoundTranscludeFn = parentBoundTranscludeFn;\n\n\t            } else if (!parentBoundTranscludeFn && transcludeFn) {\n\t              childBoundTranscludeFn = createBoundTranscludeFn(scope, transcludeFn);\n\n\t            } else {\n\t              childBoundTranscludeFn = null;\n\t            }\n\n\t            nodeLinkFn(childLinkFn, childScope, node, $rootElement, childBoundTranscludeFn);\n\n\t          } else if (childLinkFn) {\n\t            childLinkFn(scope, node.childNodes, undefined, parentBoundTranscludeFn);\n\t          }\n\t        }\n\t      }\n\t    }\n\n\t    function createBoundTranscludeFn(scope, transcludeFn, previousBoundTranscludeFn) {\n\n\t      var boundTranscludeFn = function(transcludedScope, cloneFn, controllers, futureParentElement, containingScope) {\n\n\t        if (!transcludedScope) {\n\t          transcludedScope = scope.$new(false, containingScope);\n\t          transcludedScope.$$transcluded = true;\n\t        }\n\n\t        return transcludeFn(transcludedScope, cloneFn, {\n\t          parentBoundTranscludeFn: previousBoundTranscludeFn,\n\t          transcludeControllers: controllers,\n\t          futureParentElement: futureParentElement\n\t        });\n\t      };\n\n\t      return boundTranscludeFn;\n\t    }\n\n\t    /**\n\t     * Looks for directives on the given node and adds them to the directive collection which is\n\t     * sorted.\n\t     *\n\t     * @param node Node to search.\n\t     * @param directives An array to which the directives are added to. This array is sorted before\n\t     *        the function returns.\n\t     * @param attrs The shared attrs object which is used to populate the normalized attributes.\n\t     * @param {number=} maxPriority Max directive priority.\n\t     */\n\t    function collectDirectives(node, directives, attrs, maxPriority, ignoreDirective) {\n\t      var nodeType = node.nodeType,\n\t          attrsMap = attrs.$attr,\n\t          match,\n\t          className;\n\n\t      switch (nodeType) {\n\t        case NODE_TYPE_ELEMENT: /* Element */\n\t          // use the node name: <directive>\n\t          addDirective(directives,\n\t              directiveNormalize(nodeName_(node)), 'E', maxPriority, ignoreDirective);\n\n\t          // iterate over the attributes\n\t          for (var attr, name, nName, ngAttrName, value, isNgAttr, nAttrs = node.attributes,\n\t                   j = 0, jj = nAttrs && nAttrs.length; j < jj; j++) {\n\t            var attrStartName = false;\n\t            var attrEndName = false;\n\n\t            attr = nAttrs[j];\n\t            name = attr.name;\n\t            value = trim(attr.value);\n\n\t            // support ngAttr attribute binding\n\t            ngAttrName = directiveNormalize(name);\n\t            if (isNgAttr = NG_ATTR_BINDING.test(ngAttrName)) {\n\t              name = name.replace(PREFIX_REGEXP, '')\n\t                .substr(8).replace(/_(.)/g, function(match, letter) {\n\t                  return letter.toUpperCase();\n\t                });\n\t            }\n\n\t            var multiElementMatch = ngAttrName.match(MULTI_ELEMENT_DIR_RE);\n\t            if (multiElementMatch && directiveIsMultiElement(multiElementMatch[1])) {\n\t              attrStartName = name;\n\t              attrEndName = name.substr(0, name.length - 5) + 'end';\n\t              name = name.substr(0, name.length - 6);\n\t            }\n\n\t            nName = directiveNormalize(name.toLowerCase());\n\t            attrsMap[nName] = name;\n\t            if (isNgAttr || !attrs.hasOwnProperty(nName)) {\n\t                attrs[nName] = value;\n\t                if (getBooleanAttrName(node, nName)) {\n\t                  attrs[nName] = true; // presence means true\n\t                }\n\t            }\n\t            addAttrInterpolateDirective(node, directives, value, nName, isNgAttr);\n\t            addDirective(directives, nName, 'A', maxPriority, ignoreDirective, attrStartName,\n\t                          attrEndName);\n\t          }\n\n\t          // use class as directive\n\t          className = node.className;\n\t          if (isObject(className)) {\n\t              // Maybe SVGAnimatedString\n\t              className = className.animVal;\n\t          }\n\t          if (isString(className) && className !== '') {\n\t            while (match = CLASS_DIRECTIVE_REGEXP.exec(className)) {\n\t              nName = directiveNormalize(match[2]);\n\t              if (addDirective(directives, nName, 'C', maxPriority, ignoreDirective)) {\n\t                attrs[nName] = trim(match[3]);\n\t              }\n\t              className = className.substr(match.index + match[0].length);\n\t            }\n\t          }\n\t          break;\n\t        case NODE_TYPE_TEXT: /* Text Node */\n\t          if (msie === 11) {\n\t            // Workaround for #11781\n\t            while (node.parentNode && node.nextSibling && node.nextSibling.nodeType === NODE_TYPE_TEXT) {\n\t              node.nodeValue = node.nodeValue + node.nextSibling.nodeValue;\n\t              node.parentNode.removeChild(node.nextSibling);\n\t            }\n\t          }\n\t          addTextInterpolateDirective(directives, node.nodeValue);\n\t          break;\n\t        case NODE_TYPE_COMMENT: /* Comment */\n\t          try {\n\t            match = COMMENT_DIRECTIVE_REGEXP.exec(node.nodeValue);\n\t            if (match) {\n\t              nName = directiveNormalize(match[1]);\n\t              if (addDirective(directives, nName, 'M', maxPriority, ignoreDirective)) {\n\t                attrs[nName] = trim(match[2]);\n\t              }\n\t            }\n\t          } catch (e) {\n\t            // turns out that under some circumstances IE9 throws errors when one attempts to read\n\t            // comment's node value.\n\t            // Just ignore it and continue. (Can't seem to reproduce in test case.)\n\t          }\n\t          break;\n\t      }\n\n\t      directives.sort(byPriority);\n\t      return directives;\n\t    }\n\n\t    /**\n\t     * Given a node with an directive-start it collects all of the siblings until it finds\n\t     * directive-end.\n\t     * @param node\n\t     * @param attrStart\n\t     * @param attrEnd\n\t     * @returns {*}\n\t     */\n\t    function groupScan(node, attrStart, attrEnd) {\n\t      var nodes = [];\n\t      var depth = 0;\n\t      if (attrStart && node.hasAttribute && node.hasAttribute(attrStart)) {\n\t        do {\n\t          if (!node) {\n\t            throw $compileMinErr('uterdir',\n\t                      \"Unterminated attribute, found '{0}' but no matching '{1}' found.\",\n\t                      attrStart, attrEnd);\n\t          }\n\t          if (node.nodeType == NODE_TYPE_ELEMENT) {\n\t            if (node.hasAttribute(attrStart)) depth++;\n\t            if (node.hasAttribute(attrEnd)) depth--;\n\t          }\n\t          nodes.push(node);\n\t          node = node.nextSibling;\n\t        } while (depth > 0);\n\t      } else {\n\t        nodes.push(node);\n\t      }\n\n\t      return jqLite(nodes);\n\t    }\n\n\t    /**\n\t     * Wrapper for linking function which converts normal linking function into a grouped\n\t     * linking function.\n\t     * @param linkFn\n\t     * @param attrStart\n\t     * @param attrEnd\n\t     * @returns {Function}\n\t     */\n\t    function groupElementsLinkFnWrapper(linkFn, attrStart, attrEnd) {\n\t      return function(scope, element, attrs, controllers, transcludeFn) {\n\t        element = groupScan(element[0], attrStart, attrEnd);\n\t        return linkFn(scope, element, attrs, controllers, transcludeFn);\n\t      };\n\t    }\n\n\t    /**\n\t     * Once the directives have been collected, their compile functions are executed. This method\n\t     * is responsible for inlining directive templates as well as terminating the application\n\t     * of the directives if the terminal directive has been reached.\n\t     *\n\t     * @param {Array} directives Array of collected directives to execute their compile function.\n\t     *        this needs to be pre-sorted by priority order.\n\t     * @param {Node} compileNode The raw DOM node to apply the compile functions to\n\t     * @param {Object} templateAttrs The shared attribute function\n\t     * @param {function(angular.Scope, cloneAttachFn=)} transcludeFn A linking function, where the\n\t     *                                                  scope argument is auto-generated to the new\n\t     *                                                  child of the transcluded parent scope.\n\t     * @param {JQLite} jqCollection If we are working on the root of the compile tree then this\n\t     *                              argument has the root jqLite array so that we can replace nodes\n\t     *                              on it.\n\t     * @param {Object=} originalReplaceDirective An optional directive that will be ignored when\n\t     *                                           compiling the transclusion.\n\t     * @param {Array.<Function>} preLinkFns\n\t     * @param {Array.<Function>} postLinkFns\n\t     * @param {Object} previousCompileContext Context used for previous compilation of the current\n\t     *                                        node\n\t     * @returns {Function} linkFn\n\t     */\n\t    function applyDirectivesToNode(directives, compileNode, templateAttrs, transcludeFn,\n\t                                   jqCollection, originalReplaceDirective, preLinkFns, postLinkFns,\n\t                                   previousCompileContext) {\n\t      previousCompileContext = previousCompileContext || {};\n\n\t      var terminalPriority = -Number.MAX_VALUE,\n\t          newScopeDirective = previousCompileContext.newScopeDirective,\n\t          controllerDirectives = previousCompileContext.controllerDirectives,\n\t          newIsolateScopeDirective = previousCompileContext.newIsolateScopeDirective,\n\t          templateDirective = previousCompileContext.templateDirective,\n\t          nonTlbTranscludeDirective = previousCompileContext.nonTlbTranscludeDirective,\n\t          hasTranscludeDirective = false,\n\t          hasTemplate = false,\n\t          hasElementTranscludeDirective = previousCompileContext.hasElementTranscludeDirective,\n\t          $compileNode = templateAttrs.$$element = jqLite(compileNode),\n\t          directive,\n\t          directiveName,\n\t          $template,\n\t          replaceDirective = originalReplaceDirective,\n\t          childTranscludeFn = transcludeFn,\n\t          linkFn,\n\t          directiveValue;\n\n\t      // executes all directives on the current element\n\t      for (var i = 0, ii = directives.length; i < ii; i++) {\n\t        directive = directives[i];\n\t        var attrStart = directive.$$start;\n\t        var attrEnd = directive.$$end;\n\n\t        // collect multiblock sections\n\t        if (attrStart) {\n\t          $compileNode = groupScan(compileNode, attrStart, attrEnd);\n\t        }\n\t        $template = undefined;\n\n\t        if (terminalPriority > directive.priority) {\n\t          break; // prevent further processing of directives\n\t        }\n\n\t        if (directiveValue = directive.scope) {\n\n\t          // skip the check for directives with async templates, we'll check the derived sync\n\t          // directive when the template arrives\n\t          if (!directive.templateUrl) {\n\t            if (isObject(directiveValue)) {\n\t              // This directive is trying to add an isolated scope.\n\t              // Check that there is no scope of any kind already\n\t              assertNoDuplicate('new/isolated scope', newIsolateScopeDirective || newScopeDirective,\n\t                                directive, $compileNode);\n\t              newIsolateScopeDirective = directive;\n\t            } else {\n\t              // This directive is trying to add a child scope.\n\t              // Check that there is no isolated scope already\n\t              assertNoDuplicate('new/isolated scope', newIsolateScopeDirective, directive,\n\t                                $compileNode);\n\t            }\n\t          }\n\n\t          newScopeDirective = newScopeDirective || directive;\n\t        }\n\n\t        directiveName = directive.name;\n\n\t        if (!directive.templateUrl && directive.controller) {\n\t          directiveValue = directive.controller;\n\t          controllerDirectives = controllerDirectives || createMap();\n\t          assertNoDuplicate(\"'\" + directiveName + \"' controller\",\n\t              controllerDirectives[directiveName], directive, $compileNode);\n\t          controllerDirectives[directiveName] = directive;\n\t        }\n\n\t        if (directiveValue = directive.transclude) {\n\t          hasTranscludeDirective = true;\n\n\t          // Special case ngIf and ngRepeat so that we don't complain about duplicate transclusion.\n\t          // This option should only be used by directives that know how to safely handle element transclusion,\n\t          // where the transcluded nodes are added or replaced after linking.\n\t          if (!directive.$$tlb) {\n\t            assertNoDuplicate('transclusion', nonTlbTranscludeDirective, directive, $compileNode);\n\t            nonTlbTranscludeDirective = directive;\n\t          }\n\n\t          if (directiveValue == 'element') {\n\t            hasElementTranscludeDirective = true;\n\t            terminalPriority = directive.priority;\n\t            $template = $compileNode;\n\t            $compileNode = templateAttrs.$$element =\n\t                jqLite(document.createComment(' ' + directiveName + ': ' +\n\t                                              templateAttrs[directiveName] + ' '));\n\t            compileNode = $compileNode[0];\n\t            replaceWith(jqCollection, sliceArgs($template), compileNode);\n\n\t            childTranscludeFn = compile($template, transcludeFn, terminalPriority,\n\t                                        replaceDirective && replaceDirective.name, {\n\t                                          // Don't pass in:\n\t                                          // - controllerDirectives - otherwise we'll create duplicates controllers\n\t                                          // - newIsolateScopeDirective or templateDirective - combining templates with\n\t                                          //   element transclusion doesn't make sense.\n\t                                          //\n\t                                          // We need only nonTlbTranscludeDirective so that we prevent putting transclusion\n\t                                          // on the same element more than once.\n\t                                          nonTlbTranscludeDirective: nonTlbTranscludeDirective\n\t                                        });\n\t          } else {\n\t            $template = jqLite(jqLiteClone(compileNode)).contents();\n\t            $compileNode.empty(); // clear contents\n\t            childTranscludeFn = compile($template, transcludeFn, undefined,\n\t                undefined, { needsNewScope: directive.$$isolateScope || directive.$$newScope});\n\t          }\n\t        }\n\n\t        if (directive.template) {\n\t          hasTemplate = true;\n\t          assertNoDuplicate('template', templateDirective, directive, $compileNode);\n\t          templateDirective = directive;\n\n\t          directiveValue = (isFunction(directive.template))\n\t              ? directive.template($compileNode, templateAttrs)\n\t              : directive.template;\n\n\t          directiveValue = denormalizeTemplate(directiveValue);\n\n\t          if (directive.replace) {\n\t            replaceDirective = directive;\n\t            if (jqLiteIsTextNode(directiveValue)) {\n\t              $template = [];\n\t            } else {\n\t              $template = removeComments(wrapTemplate(directive.templateNamespace, trim(directiveValue)));\n\t            }\n\t            compileNode = $template[0];\n\n\t            if ($template.length != 1 || compileNode.nodeType !== NODE_TYPE_ELEMENT) {\n\t              throw $compileMinErr('tplrt',\n\t                  \"Template for directive '{0}' must have exactly one root element. {1}\",\n\t                  directiveName, '');\n\t            }\n\n\t            replaceWith(jqCollection, $compileNode, compileNode);\n\n\t            var newTemplateAttrs = {$attr: {}};\n\n\t            // combine directives from the original node and from the template:\n\t            // - take the array of directives for this element\n\t            // - split it into two parts, those that already applied (processed) and those that weren't (unprocessed)\n\t            // - collect directives from the template and sort them by priority\n\t            // - combine directives as: processed + template + unprocessed\n\t            var templateDirectives = collectDirectives(compileNode, [], newTemplateAttrs);\n\t            var unprocessedDirectives = directives.splice(i + 1, directives.length - (i + 1));\n\n\t            if (newIsolateScopeDirective || newScopeDirective) {\n\t              // The original directive caused the current element to be replaced but this element\n\t              // also needs to have a new scope, so we need to tell the template directives\n\t              // that they would need to get their scope from further up, if they require transclusion\n\t              markDirectiveScope(templateDirectives, newIsolateScopeDirective, newScopeDirective);\n\t            }\n\t            directives = directives.concat(templateDirectives).concat(unprocessedDirectives);\n\t            mergeTemplateAttributes(templateAttrs, newTemplateAttrs);\n\n\t            ii = directives.length;\n\t          } else {\n\t            $compileNode.html(directiveValue);\n\t          }\n\t        }\n\n\t        if (directive.templateUrl) {\n\t          hasTemplate = true;\n\t          assertNoDuplicate('template', templateDirective, directive, $compileNode);\n\t          templateDirective = directive;\n\n\t          if (directive.replace) {\n\t            replaceDirective = directive;\n\t          }\n\n\t          nodeLinkFn = compileTemplateUrl(directives.splice(i, directives.length - i), $compileNode,\n\t              templateAttrs, jqCollection, hasTranscludeDirective && childTranscludeFn, preLinkFns, postLinkFns, {\n\t                controllerDirectives: controllerDirectives,\n\t                newScopeDirective: (newScopeDirective !== directive) && newScopeDirective,\n\t                newIsolateScopeDirective: newIsolateScopeDirective,\n\t                templateDirective: templateDirective,\n\t                nonTlbTranscludeDirective: nonTlbTranscludeDirective\n\t              });\n\t          ii = directives.length;\n\t        } else if (directive.compile) {\n\t          try {\n\t            linkFn = directive.compile($compileNode, templateAttrs, childTranscludeFn);\n\t            if (isFunction(linkFn)) {\n\t              addLinkFns(null, linkFn, attrStart, attrEnd);\n\t            } else if (linkFn) {\n\t              addLinkFns(linkFn.pre, linkFn.post, attrStart, attrEnd);\n\t            }\n\t          } catch (e) {\n\t            $exceptionHandler(e, startingTag($compileNode));\n\t          }\n\t        }\n\n\t        if (directive.terminal) {\n\t          nodeLinkFn.terminal = true;\n\t          terminalPriority = Math.max(terminalPriority, directive.priority);\n\t        }\n\n\t      }\n\n\t      nodeLinkFn.scope = newScopeDirective && newScopeDirective.scope === true;\n\t      nodeLinkFn.transcludeOnThisElement = hasTranscludeDirective;\n\t      nodeLinkFn.templateOnThisElement = hasTemplate;\n\t      nodeLinkFn.transclude = childTranscludeFn;\n\n\t      previousCompileContext.hasElementTranscludeDirective = hasElementTranscludeDirective;\n\n\t      // might be normal or delayed nodeLinkFn depending on if templateUrl is present\n\t      return nodeLinkFn;\n\n\t      ////////////////////\n\n\t      function addLinkFns(pre, post, attrStart, attrEnd) {\n\t        if (pre) {\n\t          if (attrStart) pre = groupElementsLinkFnWrapper(pre, attrStart, attrEnd);\n\t          pre.require = directive.require;\n\t          pre.directiveName = directiveName;\n\t          if (newIsolateScopeDirective === directive || directive.$$isolateScope) {\n\t            pre = cloneAndAnnotateFn(pre, {isolateScope: true});\n\t          }\n\t          preLinkFns.push(pre);\n\t        }\n\t        if (post) {\n\t          if (attrStart) post = groupElementsLinkFnWrapper(post, attrStart, attrEnd);\n\t          post.require = directive.require;\n\t          post.directiveName = directiveName;\n\t          if (newIsolateScopeDirective === directive || directive.$$isolateScope) {\n\t            post = cloneAndAnnotateFn(post, {isolateScope: true});\n\t          }\n\t          postLinkFns.push(post);\n\t        }\n\t      }\n\n\n\t      function getControllers(directiveName, require, $element, elementControllers) {\n\t        var value;\n\n\t        if (isString(require)) {\n\t          var match = require.match(REQUIRE_PREFIX_REGEXP);\n\t          var name = require.substring(match[0].length);\n\t          var inheritType = match[1] || match[3];\n\t          var optional = match[2] === '?';\n\n\t          //If only parents then start at the parent element\n\t          if (inheritType === '^^') {\n\t            $element = $element.parent();\n\t          //Otherwise attempt getting the controller from elementControllers in case\n\t          //the element is transcluded (and has no data) and to avoid .data if possible\n\t          } else {\n\t            value = elementControllers && elementControllers[name];\n\t            value = value && value.instance;\n\t          }\n\n\t          if (!value) {\n\t            var dataName = '$' + name + 'Controller';\n\t            value = inheritType ? $element.inheritedData(dataName) : $element.data(dataName);\n\t          }\n\n\t          if (!value && !optional) {\n\t            throw $compileMinErr('ctreq',\n\t                \"Controller '{0}', required by directive '{1}', can't be found!\",\n\t                name, directiveName);\n\t          }\n\t        } else if (isArray(require)) {\n\t          value = [];\n\t          for (var i = 0, ii = require.length; i < ii; i++) {\n\t            value[i] = getControllers(directiveName, require[i], $element, elementControllers);\n\t          }\n\t        }\n\n\t        return value || null;\n\t      }\n\n\t      function setupControllers($element, attrs, transcludeFn, controllerDirectives, isolateScope, scope) {\n\t        var elementControllers = createMap();\n\t        for (var controllerKey in controllerDirectives) {\n\t          var directive = controllerDirectives[controllerKey];\n\t          var locals = {\n\t            $scope: directive === newIsolateScopeDirective || directive.$$isolateScope ? isolateScope : scope,\n\t            $element: $element,\n\t            $attrs: attrs,\n\t            $transclude: transcludeFn\n\t          };\n\n\t          var controller = directive.controller;\n\t          if (controller == '@') {\n\t            controller = attrs[directive.name];\n\t          }\n\n\t          var controllerInstance = $controller(controller, locals, true, directive.controllerAs);\n\n\t          // For directives with element transclusion the element is a comment,\n\t          // but jQuery .data doesn't support attaching data to comment nodes as it's hard to\n\t          // clean up (http://bugs.jquery.com/ticket/8335).\n\t          // Instead, we save the controllers for the element in a local hash and attach to .data\n\t          // later, once we have the actual element.\n\t          elementControllers[directive.name] = controllerInstance;\n\t          if (!hasElementTranscludeDirective) {\n\t            $element.data('$' + directive.name + 'Controller', controllerInstance.instance);\n\t          }\n\t        }\n\t        return elementControllers;\n\t      }\n\n\t      function nodeLinkFn(childLinkFn, scope, linkNode, $rootElement, boundTranscludeFn) {\n\t        var linkFn, isolateScope, controllerScope, elementControllers, transcludeFn, $element,\n\t            attrs, removeScopeBindingWatches, removeControllerBindingWatches;\n\n\t        if (compileNode === linkNode) {\n\t          attrs = templateAttrs;\n\t          $element = templateAttrs.$$element;\n\t        } else {\n\t          $element = jqLite(linkNode);\n\t          attrs = new Attributes($element, templateAttrs);\n\t        }\n\n\t        controllerScope = scope;\n\t        if (newIsolateScopeDirective) {\n\t          isolateScope = scope.$new(true);\n\t        } else if (newScopeDirective) {\n\t          controllerScope = scope.$parent;\n\t        }\n\n\t        if (boundTranscludeFn) {\n\t          // track `boundTranscludeFn` so it can be unwrapped if `transcludeFn`\n\t          // is later passed as `parentBoundTranscludeFn` to `publicLinkFn`\n\t          transcludeFn = controllersBoundTransclude;\n\t          transcludeFn.$$boundTransclude = boundTranscludeFn;\n\t        }\n\n\t        if (controllerDirectives) {\n\t          elementControllers = setupControllers($element, attrs, transcludeFn, controllerDirectives, isolateScope, scope);\n\t        }\n\n\t        if (newIsolateScopeDirective) {\n\t          // Initialize isolate scope bindings for new isolate scope directive.\n\t          compile.$$addScopeInfo($element, isolateScope, true, !(templateDirective && (templateDirective === newIsolateScopeDirective ||\n\t              templateDirective === newIsolateScopeDirective.$$originalDirective)));\n\t          compile.$$addScopeClass($element, true);\n\t          isolateScope.$$isolateBindings =\n\t              newIsolateScopeDirective.$$isolateBindings;\n\t          removeScopeBindingWatches = initializeDirectiveBindings(scope, attrs, isolateScope,\n\t                                        isolateScope.$$isolateBindings,\n\t                                        newIsolateScopeDirective);\n\t          if (removeScopeBindingWatches) {\n\t            isolateScope.$on('$destroy', removeScopeBindingWatches);\n\t          }\n\t        }\n\n\t        // Initialize bindToController bindings\n\t        for (var name in elementControllers) {\n\t          var controllerDirective = controllerDirectives[name];\n\t          var controller = elementControllers[name];\n\t          var bindings = controllerDirective.$$bindings.bindToController;\n\n\t          if (controller.identifier && bindings) {\n\t            removeControllerBindingWatches =\n\t              initializeDirectiveBindings(controllerScope, attrs, controller.instance, bindings, controllerDirective);\n\t          }\n\n\t          var controllerResult = controller();\n\t          if (controllerResult !== controller.instance) {\n\t            // If the controller constructor has a return value, overwrite the instance\n\t            // from setupControllers\n\t            controller.instance = controllerResult;\n\t            $element.data('$' + controllerDirective.name + 'Controller', controllerResult);\n\t            removeControllerBindingWatches && removeControllerBindingWatches();\n\t            removeControllerBindingWatches =\n\t              initializeDirectiveBindings(controllerScope, attrs, controller.instance, bindings, controllerDirective);\n\t          }\n\t        }\n\n\t        // PRELINKING\n\t        for (i = 0, ii = preLinkFns.length; i < ii; i++) {\n\t          linkFn = preLinkFns[i];\n\t          invokeLinkFn(linkFn,\n\t              linkFn.isolateScope ? isolateScope : scope,\n\t              $element,\n\t              attrs,\n\t              linkFn.require && getControllers(linkFn.directiveName, linkFn.require, $element, elementControllers),\n\t              transcludeFn\n\t          );\n\t        }\n\n\t        // RECURSION\n\t        // We only pass the isolate scope, if the isolate directive has a template,\n\t        // otherwise the child elements do not belong to the isolate directive.\n\t        var scopeToChild = scope;\n\t        if (newIsolateScopeDirective && (newIsolateScopeDirective.template || newIsolateScopeDirective.templateUrl === null)) {\n\t          scopeToChild = isolateScope;\n\t        }\n\t        childLinkFn && childLinkFn(scopeToChild, linkNode.childNodes, undefined, boundTranscludeFn);\n\n\t        // POSTLINKING\n\t        for (i = postLinkFns.length - 1; i >= 0; i--) {\n\t          linkFn = postLinkFns[i];\n\t          invokeLinkFn(linkFn,\n\t              linkFn.isolateScope ? isolateScope : scope,\n\t              $element,\n\t              attrs,\n\t              linkFn.require && getControllers(linkFn.directiveName, linkFn.require, $element, elementControllers),\n\t              transcludeFn\n\t          );\n\t        }\n\n\t        // This is the function that is injected as `$transclude`.\n\t        // Note: all arguments are optional!\n\t        function controllersBoundTransclude(scope, cloneAttachFn, futureParentElement) {\n\t          var transcludeControllers;\n\n\t          // No scope passed in:\n\t          if (!isScope(scope)) {\n\t            futureParentElement = cloneAttachFn;\n\t            cloneAttachFn = scope;\n\t            scope = undefined;\n\t          }\n\n\t          if (hasElementTranscludeDirective) {\n\t            transcludeControllers = elementControllers;\n\t          }\n\t          if (!futureParentElement) {\n\t            futureParentElement = hasElementTranscludeDirective ? $element.parent() : $element;\n\t          }\n\t          return boundTranscludeFn(scope, cloneAttachFn, transcludeControllers, futureParentElement, scopeToChild);\n\t        }\n\t      }\n\t    }\n\n\t    // Depending upon the context in which a directive finds itself it might need to have a new isolated\n\t    // or child scope created. For instance:\n\t    // * if the directive has been pulled into a template because another directive with a higher priority\n\t    // asked for element transclusion\n\t    // * if the directive itself asks for transclusion but it is at the root of a template and the original\n\t    // element was replaced. See https://github.com/angular/angular.js/issues/12936\n\t    function markDirectiveScope(directives, isolateScope, newScope) {\n\t      for (var j = 0, jj = directives.length; j < jj; j++) {\n\t        directives[j] = inherit(directives[j], {$$isolateScope: isolateScope, $$newScope: newScope});\n\t      }\n\t    }\n\n\t    /**\n\t     * looks up the directive and decorates it with exception handling and proper parameters. We\n\t     * call this the boundDirective.\n\t     *\n\t     * @param {string} name name of the directive to look up.\n\t     * @param {string} location The directive must be found in specific format.\n\t     *   String containing any of theses characters:\n\t     *\n\t     *   * `E`: element name\n\t     *   * `A': attribute\n\t     *   * `C`: class\n\t     *   * `M`: comment\n\t     * @returns {boolean} true if directive was added.\n\t     */\n\t    function addDirective(tDirectives, name, location, maxPriority, ignoreDirective, startAttrName,\n\t                          endAttrName) {\n\t      if (name === ignoreDirective) return null;\n\t      var match = null;\n\t      if (hasDirectives.hasOwnProperty(name)) {\n\t        for (var directive, directives = $injector.get(name + Suffix),\n\t            i = 0, ii = directives.length; i < ii; i++) {\n\t          try {\n\t            directive = directives[i];\n\t            if ((isUndefined(maxPriority) || maxPriority > directive.priority) &&\n\t                 directive.restrict.indexOf(location) != -1) {\n\t              if (startAttrName) {\n\t                directive = inherit(directive, {$$start: startAttrName, $$end: endAttrName});\n\t              }\n\t              tDirectives.push(directive);\n\t              match = directive;\n\t            }\n\t          } catch (e) { $exceptionHandler(e); }\n\t        }\n\t      }\n\t      return match;\n\t    }\n\n\n\t    /**\n\t     * looks up the directive and returns true if it is a multi-element directive,\n\t     * and therefore requires DOM nodes between -start and -end markers to be grouped\n\t     * together.\n\t     *\n\t     * @param {string} name name of the directive to look up.\n\t     * @returns true if directive was registered as multi-element.\n\t     */\n\t    function directiveIsMultiElement(name) {\n\t      if (hasDirectives.hasOwnProperty(name)) {\n\t        for (var directive, directives = $injector.get(name + Suffix),\n\t            i = 0, ii = directives.length; i < ii; i++) {\n\t          directive = directives[i];\n\t          if (directive.multiElement) {\n\t            return true;\n\t          }\n\t        }\n\t      }\n\t      return false;\n\t    }\n\n\t    /**\n\t     * When the element is replaced with HTML template then the new attributes\n\t     * on the template need to be merged with the existing attributes in the DOM.\n\t     * The desired effect is to have both of the attributes present.\n\t     *\n\t     * @param {object} dst destination attributes (original DOM)\n\t     * @param {object} src source attributes (from the directive template)\n\t     */\n\t    function mergeTemplateAttributes(dst, src) {\n\t      var srcAttr = src.$attr,\n\t          dstAttr = dst.$attr,\n\t          $element = dst.$$element;\n\n\t      // reapply the old attributes to the new element\n\t      forEach(dst, function(value, key) {\n\t        if (key.charAt(0) != '$') {\n\t          if (src[key] && src[key] !== value) {\n\t            value += (key === 'style' ? ';' : ' ') + src[key];\n\t          }\n\t          dst.$set(key, value, true, srcAttr[key]);\n\t        }\n\t      });\n\n\t      // copy the new attributes on the old attrs object\n\t      forEach(src, function(value, key) {\n\t        if (key == 'class') {\n\t          safeAddClass($element, value);\n\t          dst['class'] = (dst['class'] ? dst['class'] + ' ' : '') + value;\n\t        } else if (key == 'style') {\n\t          $element.attr('style', $element.attr('style') + ';' + value);\n\t          dst['style'] = (dst['style'] ? dst['style'] + ';' : '') + value;\n\t          // `dst` will never contain hasOwnProperty as DOM parser won't let it.\n\t          // You will get an \"InvalidCharacterError: DOM Exception 5\" error if you\n\t          // have an attribute like \"has-own-property\" or \"data-has-own-property\", etc.\n\t        } else if (key.charAt(0) != '$' && !dst.hasOwnProperty(key)) {\n\t          dst[key] = value;\n\t          dstAttr[key] = srcAttr[key];\n\t        }\n\t      });\n\t    }\n\n\n\t    function compileTemplateUrl(directives, $compileNode, tAttrs,\n\t        $rootElement, childTranscludeFn, preLinkFns, postLinkFns, previousCompileContext) {\n\t      var linkQueue = [],\n\t          afterTemplateNodeLinkFn,\n\t          afterTemplateChildLinkFn,\n\t          beforeTemplateCompileNode = $compileNode[0],\n\t          origAsyncDirective = directives.shift(),\n\t          derivedSyncDirective = inherit(origAsyncDirective, {\n\t            templateUrl: null, transclude: null, replace: null, $$originalDirective: origAsyncDirective\n\t          }),\n\t          templateUrl = (isFunction(origAsyncDirective.templateUrl))\n\t              ? origAsyncDirective.templateUrl($compileNode, tAttrs)\n\t              : origAsyncDirective.templateUrl,\n\t          templateNamespace = origAsyncDirective.templateNamespace;\n\n\t      $compileNode.empty();\n\n\t      $templateRequest(templateUrl)\n\t        .then(function(content) {\n\t          var compileNode, tempTemplateAttrs, $template, childBoundTranscludeFn;\n\n\t          content = denormalizeTemplate(content);\n\n\t          if (origAsyncDirective.replace) {\n\t            if (jqLiteIsTextNode(content)) {\n\t              $template = [];\n\t            } else {\n\t              $template = removeComments(wrapTemplate(templateNamespace, trim(content)));\n\t            }\n\t            compileNode = $template[0];\n\n\t            if ($template.length != 1 || compileNode.nodeType !== NODE_TYPE_ELEMENT) {\n\t              throw $compileMinErr('tplrt',\n\t                  \"Template for directive '{0}' must have exactly one root element. {1}\",\n\t                  origAsyncDirective.name, templateUrl);\n\t            }\n\n\t            tempTemplateAttrs = {$attr: {}};\n\t            replaceWith($rootElement, $compileNode, compileNode);\n\t            var templateDirectives = collectDirectives(compileNode, [], tempTemplateAttrs);\n\n\t            if (isObject(origAsyncDirective.scope)) {\n\t              // the original directive that caused the template to be loaded async required\n\t              // an isolate scope\n\t              markDirectiveScope(templateDirectives, true);\n\t            }\n\t            directives = templateDirectives.concat(directives);\n\t            mergeTemplateAttributes(tAttrs, tempTemplateAttrs);\n\t          } else {\n\t            compileNode = beforeTemplateCompileNode;\n\t            $compileNode.html(content);\n\t          }\n\n\t          directives.unshift(derivedSyncDirective);\n\n\t          afterTemplateNodeLinkFn = applyDirectivesToNode(directives, compileNode, tAttrs,\n\t              childTranscludeFn, $compileNode, origAsyncDirective, preLinkFns, postLinkFns,\n\t              previousCompileContext);\n\t          forEach($rootElement, function(node, i) {\n\t            if (node == compileNode) {\n\t              $rootElement[i] = $compileNode[0];\n\t            }\n\t          });\n\t          afterTemplateChildLinkFn = compileNodes($compileNode[0].childNodes, childTranscludeFn);\n\n\t          while (linkQueue.length) {\n\t            var scope = linkQueue.shift(),\n\t                beforeTemplateLinkNode = linkQueue.shift(),\n\t                linkRootElement = linkQueue.shift(),\n\t                boundTranscludeFn = linkQueue.shift(),\n\t                linkNode = $compileNode[0];\n\n\t            if (scope.$$destroyed) continue;\n\n\t            if (beforeTemplateLinkNode !== beforeTemplateCompileNode) {\n\t              var oldClasses = beforeTemplateLinkNode.className;\n\n\t              if (!(previousCompileContext.hasElementTranscludeDirective &&\n\t                  origAsyncDirective.replace)) {\n\t                // it was cloned therefore we have to clone as well.\n\t                linkNode = jqLiteClone(compileNode);\n\t              }\n\t              replaceWith(linkRootElement, jqLite(beforeTemplateLinkNode), linkNode);\n\n\t              // Copy in CSS classes from original node\n\t              safeAddClass(jqLite(linkNode), oldClasses);\n\t            }\n\t            if (afterTemplateNodeLinkFn.transcludeOnThisElement) {\n\t              childBoundTranscludeFn = createBoundTranscludeFn(scope, afterTemplateNodeLinkFn.transclude, boundTranscludeFn);\n\t            } else {\n\t              childBoundTranscludeFn = boundTranscludeFn;\n\t            }\n\t            afterTemplateNodeLinkFn(afterTemplateChildLinkFn, scope, linkNode, $rootElement,\n\t              childBoundTranscludeFn);\n\t          }\n\t          linkQueue = null;\n\t        });\n\n\t      return function delayedNodeLinkFn(ignoreChildLinkFn, scope, node, rootElement, boundTranscludeFn) {\n\t        var childBoundTranscludeFn = boundTranscludeFn;\n\t        if (scope.$$destroyed) return;\n\t        if (linkQueue) {\n\t          linkQueue.push(scope,\n\t                         node,\n\t                         rootElement,\n\t                         childBoundTranscludeFn);\n\t        } else {\n\t          if (afterTemplateNodeLinkFn.transcludeOnThisElement) {\n\t            childBoundTranscludeFn = createBoundTranscludeFn(scope, afterTemplateNodeLinkFn.transclude, boundTranscludeFn);\n\t          }\n\t          afterTemplateNodeLinkFn(afterTemplateChildLinkFn, scope, node, rootElement, childBoundTranscludeFn);\n\t        }\n\t      };\n\t    }\n\n\n\t    /**\n\t     * Sorting function for bound directives.\n\t     */\n\t    function byPriority(a, b) {\n\t      var diff = b.priority - a.priority;\n\t      if (diff !== 0) return diff;\n\t      if (a.name !== b.name) return (a.name < b.name) ? -1 : 1;\n\t      return a.index - b.index;\n\t    }\n\n\t    function assertNoDuplicate(what, previousDirective, directive, element) {\n\n\t      function wrapModuleNameIfDefined(moduleName) {\n\t        return moduleName ?\n\t          (' (module: ' + moduleName + ')') :\n\t          '';\n\t      }\n\n\t      if (previousDirective) {\n\t        throw $compileMinErr('multidir', 'Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}',\n\t            previousDirective.name, wrapModuleNameIfDefined(previousDirective.$$moduleName),\n\t            directive.name, wrapModuleNameIfDefined(directive.$$moduleName), what, startingTag(element));\n\t      }\n\t    }\n\n\n\t    function addTextInterpolateDirective(directives, text) {\n\t      var interpolateFn = $interpolate(text, true);\n\t      if (interpolateFn) {\n\t        directives.push({\n\t          priority: 0,\n\t          compile: function textInterpolateCompileFn(templateNode) {\n\t            var templateNodeParent = templateNode.parent(),\n\t                hasCompileParent = !!templateNodeParent.length;\n\n\t            // When transcluding a template that has bindings in the root\n\t            // we don't have a parent and thus need to add the class during linking fn.\n\t            if (hasCompileParent) compile.$$addBindingClass(templateNodeParent);\n\n\t            return function textInterpolateLinkFn(scope, node) {\n\t              var parent = node.parent();\n\t              if (!hasCompileParent) compile.$$addBindingClass(parent);\n\t              compile.$$addBindingInfo(parent, interpolateFn.expressions);\n\t              scope.$watch(interpolateFn, function interpolateFnWatchAction(value) {\n\t                node[0].nodeValue = value;\n\t              });\n\t            };\n\t          }\n\t        });\n\t      }\n\t    }\n\n\n\t    function wrapTemplate(type, template) {\n\t      type = lowercase(type || 'html');\n\t      switch (type) {\n\t      case 'svg':\n\t      case 'math':\n\t        var wrapper = document.createElement('div');\n\t        wrapper.innerHTML = '<' + type + '>' + template + '</' + type + '>';\n\t        return wrapper.childNodes[0].childNodes;\n\t      default:\n\t        return template;\n\t      }\n\t    }\n\n\n\t    function getTrustedContext(node, attrNormalizedName) {\n\t      if (attrNormalizedName == \"srcdoc\") {\n\t        return $sce.HTML;\n\t      }\n\t      var tag = nodeName_(node);\n\t      // maction[xlink:href] can source SVG.  It's not limited to <maction>.\n\t      if (attrNormalizedName == \"xlinkHref\" ||\n\t          (tag == \"form\" && attrNormalizedName == \"action\") ||\n\t          (tag != \"img\" && (attrNormalizedName == \"src\" ||\n\t                            attrNormalizedName == \"ngSrc\"))) {\n\t        return $sce.RESOURCE_URL;\n\t      }\n\t    }\n\n\n\t    function addAttrInterpolateDirective(node, directives, value, name, allOrNothing) {\n\t      var trustedContext = getTrustedContext(node, name);\n\t      allOrNothing = ALL_OR_NOTHING_ATTRS[name] || allOrNothing;\n\n\t      var interpolateFn = $interpolate(value, true, trustedContext, allOrNothing);\n\n\t      // no interpolation found -> ignore\n\t      if (!interpolateFn) return;\n\n\n\t      if (name === \"multiple\" && nodeName_(node) === \"select\") {\n\t        throw $compileMinErr(\"selmulti\",\n\t            \"Binding to the 'multiple' attribute is not supported. Element: {0}\",\n\t            startingTag(node));\n\t      }\n\n\t      directives.push({\n\t        priority: 100,\n\t        compile: function() {\n\t            return {\n\t              pre: function attrInterpolatePreLinkFn(scope, element, attr) {\n\t                var $$observers = (attr.$$observers || (attr.$$observers = createMap()));\n\n\t                if (EVENT_HANDLER_ATTR_REGEXP.test(name)) {\n\t                  throw $compileMinErr('nodomevents',\n\t                      \"Interpolations for HTML DOM event attributes are disallowed.  Please use the \" +\n\t                          \"ng- versions (such as ng-click instead of onclick) instead.\");\n\t                }\n\n\t                // If the attribute has changed since last $interpolate()ed\n\t                var newValue = attr[name];\n\t                if (newValue !== value) {\n\t                  // we need to interpolate again since the attribute value has been updated\n\t                  // (e.g. by another directive's compile function)\n\t                  // ensure unset/empty values make interpolateFn falsy\n\t                  interpolateFn = newValue && $interpolate(newValue, true, trustedContext, allOrNothing);\n\t                  value = newValue;\n\t                }\n\n\t                // if attribute was updated so that there is no interpolation going on we don't want to\n\t                // register any observers\n\t                if (!interpolateFn) return;\n\n\t                // initialize attr object so that it's ready in case we need the value for isolate\n\t                // scope initialization, otherwise the value would not be available from isolate\n\t                // directive's linking fn during linking phase\n\t                attr[name] = interpolateFn(scope);\n\n\t                ($$observers[name] || ($$observers[name] = [])).$$inter = true;\n\t                (attr.$$observers && attr.$$observers[name].$$scope || scope).\n\t                  $watch(interpolateFn, function interpolateFnWatchAction(newValue, oldValue) {\n\t                    //special case for class attribute addition + removal\n\t                    //so that class changes can tap into the animation\n\t                    //hooks provided by the $animate service. Be sure to\n\t                    //skip animations when the first digest occurs (when\n\t                    //both the new and the old values are the same) since\n\t                    //the CSS classes are the non-interpolated values\n\t                    if (name === 'class' && newValue != oldValue) {\n\t                      attr.$updateClass(newValue, oldValue);\n\t                    } else {\n\t                      attr.$set(name, newValue);\n\t                    }\n\t                  });\n\t              }\n\t            };\n\t          }\n\t      });\n\t    }\n\n\n\t    /**\n\t     * This is a special jqLite.replaceWith, which can replace items which\n\t     * have no parents, provided that the containing jqLite collection is provided.\n\t     *\n\t     * @param {JqLite=} $rootElement The root of the compile tree. Used so that we can replace nodes\n\t     *                               in the root of the tree.\n\t     * @param {JqLite} elementsToRemove The jqLite element which we are going to replace. We keep\n\t     *                                  the shell, but replace its DOM node reference.\n\t     * @param {Node} newNode The new DOM node.\n\t     */\n\t    function replaceWith($rootElement, elementsToRemove, newNode) {\n\t      var firstElementToRemove = elementsToRemove[0],\n\t          removeCount = elementsToRemove.length,\n\t          parent = firstElementToRemove.parentNode,\n\t          i, ii;\n\n\t      if ($rootElement) {\n\t        for (i = 0, ii = $rootElement.length; i < ii; i++) {\n\t          if ($rootElement[i] == firstElementToRemove) {\n\t            $rootElement[i++] = newNode;\n\t            for (var j = i, j2 = j + removeCount - 1,\n\t                     jj = $rootElement.length;\n\t                 j < jj; j++, j2++) {\n\t              if (j2 < jj) {\n\t                $rootElement[j] = $rootElement[j2];\n\t              } else {\n\t                delete $rootElement[j];\n\t              }\n\t            }\n\t            $rootElement.length -= removeCount - 1;\n\n\t            // If the replaced element is also the jQuery .context then replace it\n\t            // .context is a deprecated jQuery api, so we should set it only when jQuery set it\n\t            // http://api.jquery.com/context/\n\t            if ($rootElement.context === firstElementToRemove) {\n\t              $rootElement.context = newNode;\n\t            }\n\t            break;\n\t          }\n\t        }\n\t      }\n\n\t      if (parent) {\n\t        parent.replaceChild(newNode, firstElementToRemove);\n\t      }\n\n\t      // TODO(perf): what's this document fragment for? is it needed? can we at least reuse it?\n\t      var fragment = document.createDocumentFragment();\n\t      fragment.appendChild(firstElementToRemove);\n\n\t      if (jqLite.hasData(firstElementToRemove)) {\n\t        // Copy over user data (that includes Angular's $scope etc.). Don't copy private\n\t        // data here because there's no public interface in jQuery to do that and copying over\n\t        // event listeners (which is the main use of private data) wouldn't work anyway.\n\t        jqLite.data(newNode, jqLite.data(firstElementToRemove));\n\n\t        // Remove data of the replaced element. We cannot just call .remove()\n\t        // on the element it since that would deallocate scope that is needed\n\t        // for the new node. Instead, remove the data \"manually\".\n\t        if (!jQuery) {\n\t          delete jqLite.cache[firstElementToRemove[jqLite.expando]];\n\t        } else {\n\t          // jQuery 2.x doesn't expose the data storage. Use jQuery.cleanData to clean up after\n\t          // the replaced element. The cleanData version monkey-patched by Angular would cause\n\t          // the scope to be trashed and we do need the very same scope to work with the new\n\t          // element. However, we cannot just cache the non-patched version and use it here as\n\t          // that would break if another library patches the method after Angular does (one\n\t          // example is jQuery UI). Instead, set a flag indicating scope destroying should be\n\t          // skipped this one time.\n\t          skipDestroyOnNextJQueryCleanData = true;\n\t          jQuery.cleanData([firstElementToRemove]);\n\t        }\n\t      }\n\n\t      for (var k = 1, kk = elementsToRemove.length; k < kk; k++) {\n\t        var element = elementsToRemove[k];\n\t        jqLite(element).remove(); // must do this way to clean up expando\n\t        fragment.appendChild(element);\n\t        delete elementsToRemove[k];\n\t      }\n\n\t      elementsToRemove[0] = newNode;\n\t      elementsToRemove.length = 1;\n\t    }\n\n\n\t    function cloneAndAnnotateFn(fn, annotation) {\n\t      return extend(function() { return fn.apply(null, arguments); }, fn, annotation);\n\t    }\n\n\n\t    function invokeLinkFn(linkFn, scope, $element, attrs, controllers, transcludeFn) {\n\t      try {\n\t        linkFn(scope, $element, attrs, controllers, transcludeFn);\n\t      } catch (e) {\n\t        $exceptionHandler(e, startingTag($element));\n\t      }\n\t    }\n\n\n\t    // Set up $watches for isolate scope and controller bindings. This process\n\t    // only occurs for isolate scopes and new scopes with controllerAs.\n\t    function initializeDirectiveBindings(scope, attrs, destination, bindings, directive) {\n\t      var removeWatchCollection = [];\n\t      forEach(bindings, function(definition, scopeName) {\n\t        var attrName = definition.attrName,\n\t        optional = definition.optional,\n\t        mode = definition.mode, // @, =, or &\n\t        lastValue,\n\t        parentGet, parentSet, compare;\n\n\t        switch (mode) {\n\n\t          case '@':\n\t            if (!optional && !hasOwnProperty.call(attrs, attrName)) {\n\t              destination[scopeName] = attrs[attrName] = void 0;\n\t            }\n\t            attrs.$observe(attrName, function(value) {\n\t              if (isString(value)) {\n\t                destination[scopeName] = value;\n\t              }\n\t            });\n\t            attrs.$$observers[attrName].$$scope = scope;\n\t            if (isString(attrs[attrName])) {\n\t              // If the attribute has been provided then we trigger an interpolation to ensure\n\t              // the value is there for use in the link fn\n\t              destination[scopeName] = $interpolate(attrs[attrName])(scope);\n\t            }\n\t            break;\n\n\t          case '=':\n\t            if (!hasOwnProperty.call(attrs, attrName)) {\n\t              if (optional) break;\n\t              attrs[attrName] = void 0;\n\t            }\n\t            if (optional && !attrs[attrName]) break;\n\n\t            parentGet = $parse(attrs[attrName]);\n\t            if (parentGet.literal) {\n\t              compare = equals;\n\t            } else {\n\t              compare = function(a, b) { return a === b || (a !== a && b !== b); };\n\t            }\n\t            parentSet = parentGet.assign || function() {\n\t              // reset the change, or we will throw this exception on every $digest\n\t              lastValue = destination[scopeName] = parentGet(scope);\n\t              throw $compileMinErr('nonassign',\n\t                  \"Expression '{0}' used with directive '{1}' is non-assignable!\",\n\t                  attrs[attrName], directive.name);\n\t            };\n\t            lastValue = destination[scopeName] = parentGet(scope);\n\t            var parentValueWatch = function parentValueWatch(parentValue) {\n\t              if (!compare(parentValue, destination[scopeName])) {\n\t                // we are out of sync and need to copy\n\t                if (!compare(parentValue, lastValue)) {\n\t                  // parent changed and it has precedence\n\t                  destination[scopeName] = parentValue;\n\t                } else {\n\t                  // if the parent can be assigned then do so\n\t                  parentSet(scope, parentValue = destination[scopeName]);\n\t                }\n\t              }\n\t              return lastValue = parentValue;\n\t            };\n\t            parentValueWatch.$stateful = true;\n\t            var removeWatch;\n\t            if (definition.collection) {\n\t              removeWatch = scope.$watchCollection(attrs[attrName], parentValueWatch);\n\t            } else {\n\t              removeWatch = scope.$watch($parse(attrs[attrName], parentValueWatch), null, parentGet.literal);\n\t            }\n\t            removeWatchCollection.push(removeWatch);\n\t            break;\n\n\t          case '&':\n\t            // Don't assign Object.prototype method to scope\n\t            parentGet = attrs.hasOwnProperty(attrName) ? $parse(attrs[attrName]) : noop;\n\n\t            // Don't assign noop to destination if expression is not valid\n\t            if (parentGet === noop && optional) break;\n\n\t            destination[scopeName] = function(locals) {\n\t              return parentGet(scope, locals);\n\t            };\n\t            break;\n\t        }\n\t      });\n\n\t      return removeWatchCollection.length && function removeWatches() {\n\t        for (var i = 0, ii = removeWatchCollection.length; i < ii; ++i) {\n\t          removeWatchCollection[i]();\n\t        }\n\t      };\n\t    }\n\t  }];\n\t}\n\n\tvar PREFIX_REGEXP = /^((?:x|data)[\\:\\-_])/i;\n\t/**\n\t * Converts all accepted directives format into proper directive name.\n\t * @param name Name to normalize\n\t */\n\tfunction directiveNormalize(name) {\n\t  return camelCase(name.replace(PREFIX_REGEXP, ''));\n\t}\n\n\t/**\n\t * @ngdoc type\n\t * @name $compile.directive.Attributes\n\t *\n\t * @description\n\t * A shared object between directive compile / linking functions which contains normalized DOM\n\t * element attributes. The values reflect current binding state `{{ }}`. The normalization is\n\t * needed since all of these are treated as equivalent in Angular:\n\t *\n\t * ```\n\t *    <span ng:bind=\"a\" ng-bind=\"a\" data-ng-bind=\"a\" x-ng-bind=\"a\">\n\t * ```\n\t */\n\n\t/**\n\t * @ngdoc property\n\t * @name $compile.directive.Attributes#$attr\n\t *\n\t * @description\n\t * A map of DOM element attribute names to the normalized name. This is\n\t * needed to do reverse lookup from normalized name back to actual name.\n\t */\n\n\n\t/**\n\t * @ngdoc method\n\t * @name $compile.directive.Attributes#$set\n\t * @kind function\n\t *\n\t * @description\n\t * Set DOM element attribute value.\n\t *\n\t *\n\t * @param {string} name Normalized element attribute name of the property to modify. The name is\n\t *          reverse-translated using the {@link ng.$compile.directive.Attributes#$attr $attr}\n\t *          property to the original name.\n\t * @param {string} value Value to set the attribute to. The value can be an interpolated string.\n\t */\n\n\n\n\t/**\n\t * Closure compiler type information\n\t */\n\n\tfunction nodesetLinkingFn(\n\t  /* angular.Scope */ scope,\n\t  /* NodeList */ nodeList,\n\t  /* Element */ rootElement,\n\t  /* function(Function) */ boundTranscludeFn\n\t) {}\n\n\tfunction directiveLinkingFn(\n\t  /* nodesetLinkingFn */ nodesetLinkingFn,\n\t  /* angular.Scope */ scope,\n\t  /* Node */ node,\n\t  /* Element */ rootElement,\n\t  /* function(Function) */ boundTranscludeFn\n\t) {}\n\n\tfunction tokenDifference(str1, str2) {\n\t  var values = '',\n\t      tokens1 = str1.split(/\\s+/),\n\t      tokens2 = str2.split(/\\s+/);\n\n\t  outer:\n\t  for (var i = 0; i < tokens1.length; i++) {\n\t    var token = tokens1[i];\n\t    for (var j = 0; j < tokens2.length; j++) {\n\t      if (token == tokens2[j]) continue outer;\n\t    }\n\t    values += (values.length > 0 ? ' ' : '') + token;\n\t  }\n\t  return values;\n\t}\n\n\tfunction removeComments(jqNodes) {\n\t  jqNodes = jqLite(jqNodes);\n\t  var i = jqNodes.length;\n\n\t  if (i <= 1) {\n\t    return jqNodes;\n\t  }\n\n\t  while (i--) {\n\t    var node = jqNodes[i];\n\t    if (node.nodeType === NODE_TYPE_COMMENT) {\n\t      splice.call(jqNodes, i, 1);\n\t    }\n\t  }\n\t  return jqNodes;\n\t}\n\n\tvar $controllerMinErr = minErr('$controller');\n\n\n\tvar CNTRL_REG = /^(\\S+)(\\s+as\\s+(\\w+))?$/;\n\tfunction identifierForController(controller, ident) {\n\t  if (ident && isString(ident)) return ident;\n\t  if (isString(controller)) {\n\t    var match = CNTRL_REG.exec(controller);\n\t    if (match) return match[3];\n\t  }\n\t}\n\n\n\t/**\n\t * @ngdoc provider\n\t * @name $controllerProvider\n\t * @description\n\t * The {@link ng.$controller $controller service} is used by Angular to create new\n\t * controllers.\n\t *\n\t * This provider allows controller registration via the\n\t * {@link ng.$controllerProvider#register register} method.\n\t */\n\tfunction $ControllerProvider() {\n\t  var controllers = {},\n\t      globals = false;\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $controllerProvider#register\n\t   * @param {string|Object} name Controller name, or an object map of controllers where the keys are\n\t   *    the names and the values are the constructors.\n\t   * @param {Function|Array} constructor Controller constructor fn (optionally decorated with DI\n\t   *    annotations in the array notation).\n\t   */\n\t  this.register = function(name, constructor) {\n\t    assertNotHasOwnProperty(name, 'controller');\n\t    if (isObject(name)) {\n\t      extend(controllers, name);\n\t    } else {\n\t      controllers[name] = constructor;\n\t    }\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $controllerProvider#allowGlobals\n\t   * @description If called, allows `$controller` to find controller constructors on `window`\n\t   */\n\t  this.allowGlobals = function() {\n\t    globals = true;\n\t  };\n\n\n\t  this.$get = ['$injector', '$window', function($injector, $window) {\n\n\t    /**\n\t     * @ngdoc service\n\t     * @name $controller\n\t     * @requires $injector\n\t     *\n\t     * @param {Function|string} constructor If called with a function then it's considered to be the\n\t     *    controller constructor function. Otherwise it's considered to be a string which is used\n\t     *    to retrieve the controller constructor using the following steps:\n\t     *\n\t     *    * check if a controller with given name is registered via `$controllerProvider`\n\t     *    * check if evaluating the string on the current scope returns a constructor\n\t     *    * if $controllerProvider#allowGlobals, check `window[constructor]` on the global\n\t     *      `window` object (not recommended)\n\t     *\n\t     *    The string can use the `controller as property` syntax, where the controller instance is published\n\t     *    as the specified property on the `scope`; the `scope` must be injected into `locals` param for this\n\t     *    to work correctly.\n\t     *\n\t     * @param {Object} locals Injection locals for Controller.\n\t     * @return {Object} Instance of given controller.\n\t     *\n\t     * @description\n\t     * `$controller` service is responsible for instantiating controllers.\n\t     *\n\t     * It's just a simple call to {@link auto.$injector $injector}, but extracted into\n\t     * a service, so that one can override this service with [BC version](https://gist.github.com/1649788).\n\t     */\n\t    return function(expression, locals, later, ident) {\n\t      // PRIVATE API:\n\t      //   param `later` --- indicates that the controller's constructor is invoked at a later time.\n\t      //                     If true, $controller will allocate the object with the correct\n\t      //                     prototype chain, but will not invoke the controller until a returned\n\t      //                     callback is invoked.\n\t      //   param `ident` --- An optional label which overrides the label parsed from the controller\n\t      //                     expression, if any.\n\t      var instance, match, constructor, identifier;\n\t      later = later === true;\n\t      if (ident && isString(ident)) {\n\t        identifier = ident;\n\t      }\n\n\t      if (isString(expression)) {\n\t        match = expression.match(CNTRL_REG);\n\t        if (!match) {\n\t          throw $controllerMinErr('ctrlfmt',\n\t            \"Badly formed controller string '{0}'. \" +\n\t            \"Must match `__name__ as __id__` or `__name__`.\", expression);\n\t        }\n\t        constructor = match[1],\n\t        identifier = identifier || match[3];\n\t        expression = controllers.hasOwnProperty(constructor)\n\t            ? controllers[constructor]\n\t            : getter(locals.$scope, constructor, true) ||\n\t                (globals ? getter($window, constructor, true) : undefined);\n\n\t        assertArgFn(expression, constructor, true);\n\t      }\n\n\t      if (later) {\n\t        // Instantiate controller later:\n\t        // This machinery is used to create an instance of the object before calling the\n\t        // controller's constructor itself.\n\t        //\n\t        // This allows properties to be added to the controller before the constructor is\n\t        // invoked. Primarily, this is used for isolate scope bindings in $compile.\n\t        //\n\t        // This feature is not intended for use by applications, and is thus not documented\n\t        // publicly.\n\t        // Object creation: http://jsperf.com/create-constructor/2\n\t        var controllerPrototype = (isArray(expression) ?\n\t          expression[expression.length - 1] : expression).prototype;\n\t        instance = Object.create(controllerPrototype || null);\n\n\t        if (identifier) {\n\t          addIdentifier(locals, identifier, instance, constructor || expression.name);\n\t        }\n\n\t        var instantiate;\n\t        return instantiate = extend(function() {\n\t          var result = $injector.invoke(expression, instance, locals, constructor);\n\t          if (result !== instance && (isObject(result) || isFunction(result))) {\n\t            instance = result;\n\t            if (identifier) {\n\t              // If result changed, re-assign controllerAs value to scope.\n\t              addIdentifier(locals, identifier, instance, constructor || expression.name);\n\t            }\n\t          }\n\t          return instance;\n\t        }, {\n\t          instance: instance,\n\t          identifier: identifier\n\t        });\n\t      }\n\n\t      instance = $injector.instantiate(expression, locals, constructor);\n\n\t      if (identifier) {\n\t        addIdentifier(locals, identifier, instance, constructor || expression.name);\n\t      }\n\n\t      return instance;\n\t    };\n\n\t    function addIdentifier(locals, identifier, instance, name) {\n\t      if (!(locals && isObject(locals.$scope))) {\n\t        throw minErr('$controller')('noscp',\n\t          \"Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.\",\n\t          name, identifier);\n\t      }\n\n\t      locals.$scope[identifier] = instance;\n\t    }\n\t  }];\n\t}\n\n\t/**\n\t * @ngdoc service\n\t * @name $document\n\t * @requires $window\n\t *\n\t * @description\n\t * A {@link angular.element jQuery or jqLite} wrapper for the browser's `window.document` object.\n\t *\n\t * @example\n\t   <example module=\"documentExample\">\n\t     <file name=\"index.html\">\n\t       <div ng-controller=\"ExampleController\">\n\t         <p>$document title: <b ng-bind=\"title\"></b></p>\n\t         <p>window.document title: <b ng-bind=\"windowTitle\"></b></p>\n\t       </div>\n\t     </file>\n\t     <file name=\"script.js\">\n\t       angular.module('documentExample', [])\n\t         .controller('ExampleController', ['$scope', '$document', function($scope, $document) {\n\t           $scope.title = $document[0].title;\n\t           $scope.windowTitle = angular.element(window.document)[0].title;\n\t         }]);\n\t     </file>\n\t   </example>\n\t */\n\tfunction $DocumentProvider() {\n\t  this.$get = ['$window', function(window) {\n\t    return jqLite(window.document);\n\t  }];\n\t}\n\n\t/**\n\t * @ngdoc service\n\t * @name $exceptionHandler\n\t * @requires ng.$log\n\t *\n\t * @description\n\t * Any uncaught exception in angular expressions is delegated to this service.\n\t * The default implementation simply delegates to `$log.error` which logs it into\n\t * the browser console.\n\t *\n\t * In unit tests, if `angular-mocks.js` is loaded, this service is overridden by\n\t * {@link ngMock.$exceptionHandler mock $exceptionHandler} which aids in testing.\n\t *\n\t * ## Example:\n\t *\n\t * ```js\n\t *   angular.module('exceptionOverride', []).factory('$exceptionHandler', function() {\n\t *     return function(exception, cause) {\n\t *       exception.message += ' (caused by \"' + cause + '\")';\n\t *       throw exception;\n\t *     };\n\t *   });\n\t * ```\n\t *\n\t * This example will override the normal action of `$exceptionHandler`, to make angular\n\t * exceptions fail hard when they happen, instead of just logging to the console.\n\t *\n\t * <hr />\n\t * Note, that code executed in event-listeners (even those registered using jqLite's `on`/`bind`\n\t * methods) does not delegate exceptions to the {@link ng.$exceptionHandler $exceptionHandler}\n\t * (unless executed during a digest).\n\t *\n\t * If you wish, you can manually delegate exceptions, e.g.\n\t * `try { ... } catch(e) { $exceptionHandler(e); }`\n\t *\n\t * @param {Error} exception Exception associated with the error.\n\t * @param {string=} cause optional information about the context in which\n\t *       the error was thrown.\n\t *\n\t */\n\tfunction $ExceptionHandlerProvider() {\n\t  this.$get = ['$log', function($log) {\n\t    return function(exception, cause) {\n\t      $log.error.apply($log, arguments);\n\t    };\n\t  }];\n\t}\n\n\tvar $$ForceReflowProvider = function() {\n\t  this.$get = ['$document', function($document) {\n\t    return function(domNode) {\n\t      //the line below will force the browser to perform a repaint so\n\t      //that all the animated elements within the animation frame will\n\t      //be properly updated and drawn on screen. This is required to\n\t      //ensure that the preparation animation is properly flushed so that\n\t      //the active state picks up from there. DO NOT REMOVE THIS LINE.\n\t      //DO NOT OPTIMIZE THIS LINE. THE MINIFIER WILL REMOVE IT OTHERWISE WHICH\n\t      //WILL RESULT IN AN UNPREDICTABLE BUG THAT IS VERY HARD TO TRACK DOWN AND\n\t      //WILL TAKE YEARS AWAY FROM YOUR LIFE.\n\t      if (domNode) {\n\t        if (!domNode.nodeType && domNode instanceof jqLite) {\n\t          domNode = domNode[0];\n\t        }\n\t      } else {\n\t        domNode = $document[0].body;\n\t      }\n\t      return domNode.offsetWidth + 1;\n\t    };\n\t  }];\n\t};\n\n\tvar APPLICATION_JSON = 'application/json';\n\tvar CONTENT_TYPE_APPLICATION_JSON = {'Content-Type': APPLICATION_JSON + ';charset=utf-8'};\n\tvar JSON_START = /^\\[|^\\{(?!\\{)/;\n\tvar JSON_ENDS = {\n\t  '[': /]$/,\n\t  '{': /}$/\n\t};\n\tvar JSON_PROTECTION_PREFIX = /^\\)\\]\\}',?\\n/;\n\tvar $httpMinErr = minErr('$http');\n\tvar $httpMinErrLegacyFn = function(method) {\n\t  return function() {\n\t    throw $httpMinErr('legacy', 'The method `{0}` on the promise returned from `$http` has been disabled.', method);\n\t  };\n\t};\n\n\tfunction serializeValue(v) {\n\t  if (isObject(v)) {\n\t    return isDate(v) ? v.toISOString() : toJson(v);\n\t  }\n\t  return v;\n\t}\n\n\n\tfunction $HttpParamSerializerProvider() {\n\t  /**\n\t   * @ngdoc service\n\t   * @name $httpParamSerializer\n\t   * @description\n\t   *\n\t   * Default {@link $http `$http`} params serializer that converts objects to strings\n\t   * according to the following rules:\n\t   *\n\t   * * `{'foo': 'bar'}` results in `foo=bar`\n\t   * * `{'foo': Date.now()}` results in `foo=2015-04-01T09%3A50%3A49.262Z` (`toISOString()` and encoded representation of a Date object)\n\t   * * `{'foo': ['bar', 'baz']}` results in `foo=bar&foo=baz` (repeated key for each array element)\n\t   * * `{'foo': {'bar':'baz'}}` results in `foo=%7B%22bar%22%3A%22baz%22%7D\"` (stringified and encoded representation of an object)\n\t   *\n\t   * Note that serializer will sort the request parameters alphabetically.\n\t   * */\n\n\t  this.$get = function() {\n\t    return function ngParamSerializer(params) {\n\t      if (!params) return '';\n\t      var parts = [];\n\t      forEachSorted(params, function(value, key) {\n\t        if (value === null || isUndefined(value)) return;\n\t        if (isArray(value)) {\n\t          forEach(value, function(v, k) {\n\t            parts.push(encodeUriQuery(key)  + '=' + encodeUriQuery(serializeValue(v)));\n\t          });\n\t        } else {\n\t          parts.push(encodeUriQuery(key) + '=' + encodeUriQuery(serializeValue(value)));\n\t        }\n\t      });\n\n\t      return parts.join('&');\n\t    };\n\t  };\n\t}\n\n\tfunction $HttpParamSerializerJQLikeProvider() {\n\t  /**\n\t   * @ngdoc service\n\t   * @name $httpParamSerializerJQLike\n\t   * @description\n\t   *\n\t   * Alternative {@link $http `$http`} params serializer that follows\n\t   * jQuery's [`param()`](http://api.jquery.com/jquery.param/) method logic.\n\t   * The serializer will also sort the params alphabetically.\n\t   *\n\t   * To use it for serializing `$http` request parameters, set it as the `paramSerializer` property:\n\t   *\n\t   * ```js\n\t   * $http({\n\t   *   url: myUrl,\n\t   *   method: 'GET',\n\t   *   params: myParams,\n\t   *   paramSerializer: '$httpParamSerializerJQLike'\n\t   * });\n\t   * ```\n\t   *\n\t   * It is also possible to set it as the default `paramSerializer` in the\n\t   * {@link $httpProvider#defaults `$httpProvider`}.\n\t   *\n\t   * Additionally, you can inject the serializer and use it explicitly, for example to serialize\n\t   * form data for submission:\n\t   *\n\t   * ```js\n\t   * .controller(function($http, $httpParamSerializerJQLike) {\n\t   *   //...\n\t   *\n\t   *   $http({\n\t   *     url: myUrl,\n\t   *     method: 'POST',\n\t   *     data: $httpParamSerializerJQLike(myData),\n\t   *     headers: {\n\t   *       'Content-Type': 'application/x-www-form-urlencoded'\n\t   *     }\n\t   *   });\n\t   *\n\t   * });\n\t   * ```\n\t   *\n\t   * */\n\t  this.$get = function() {\n\t    return function jQueryLikeParamSerializer(params) {\n\t      if (!params) return '';\n\t      var parts = [];\n\t      serialize(params, '', true);\n\t      return parts.join('&');\n\n\t      function serialize(toSerialize, prefix, topLevel) {\n\t        if (toSerialize === null || isUndefined(toSerialize)) return;\n\t        if (isArray(toSerialize)) {\n\t          forEach(toSerialize, function(value, index) {\n\t            serialize(value, prefix + '[' + (isObject(value) ? index : '') + ']');\n\t          });\n\t        } else if (isObject(toSerialize) && !isDate(toSerialize)) {\n\t          forEachSorted(toSerialize, function(value, key) {\n\t            serialize(value, prefix +\n\t                (topLevel ? '' : '[') +\n\t                key +\n\t                (topLevel ? '' : ']'));\n\t          });\n\t        } else {\n\t          parts.push(encodeUriQuery(prefix) + '=' + encodeUriQuery(serializeValue(toSerialize)));\n\t        }\n\t      }\n\t    };\n\t  };\n\t}\n\n\tfunction defaultHttpResponseTransform(data, headers) {\n\t  if (isString(data)) {\n\t    // Strip json vulnerability protection prefix and trim whitespace\n\t    var tempData = data.replace(JSON_PROTECTION_PREFIX, '').trim();\n\n\t    if (tempData) {\n\t      var contentType = headers('Content-Type');\n\t      if ((contentType && (contentType.indexOf(APPLICATION_JSON) === 0)) || isJsonLike(tempData)) {\n\t        data = fromJson(tempData);\n\t      }\n\t    }\n\t  }\n\n\t  return data;\n\t}\n\n\tfunction isJsonLike(str) {\n\t    var jsonStart = str.match(JSON_START);\n\t    return jsonStart && JSON_ENDS[jsonStart[0]].test(str);\n\t}\n\n\t/**\n\t * Parse headers into key value object\n\t *\n\t * @param {string} headers Raw headers as a string\n\t * @returns {Object} Parsed headers as key value object\n\t */\n\tfunction parseHeaders(headers) {\n\t  var parsed = createMap(), i;\n\n\t  function fillInParsed(key, val) {\n\t    if (key) {\n\t      parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n\t    }\n\t  }\n\n\t  if (isString(headers)) {\n\t    forEach(headers.split('\\n'), function(line) {\n\t      i = line.indexOf(':');\n\t      fillInParsed(lowercase(trim(line.substr(0, i))), trim(line.substr(i + 1)));\n\t    });\n\t  } else if (isObject(headers)) {\n\t    forEach(headers, function(headerVal, headerKey) {\n\t      fillInParsed(lowercase(headerKey), trim(headerVal));\n\t    });\n\t  }\n\n\t  return parsed;\n\t}\n\n\n\t/**\n\t * Returns a function that provides access to parsed headers.\n\t *\n\t * Headers are lazy parsed when first requested.\n\t * @see parseHeaders\n\t *\n\t * @param {(string|Object)} headers Headers to provide access to.\n\t * @returns {function(string=)} Returns a getter function which if called with:\n\t *\n\t *   - if called with single an argument returns a single header value or null\n\t *   - if called with no arguments returns an object containing all headers.\n\t */\n\tfunction headersGetter(headers) {\n\t  var headersObj;\n\n\t  return function(name) {\n\t    if (!headersObj) headersObj =  parseHeaders(headers);\n\n\t    if (name) {\n\t      var value = headersObj[lowercase(name)];\n\t      if (value === void 0) {\n\t        value = null;\n\t      }\n\t      return value;\n\t    }\n\n\t    return headersObj;\n\t  };\n\t}\n\n\n\t/**\n\t * Chain all given functions\n\t *\n\t * This function is used for both request and response transforming\n\t *\n\t * @param {*} data Data to transform.\n\t * @param {function(string=)} headers HTTP headers getter fn.\n\t * @param {number} status HTTP status code of the response.\n\t * @param {(Function|Array.<Function>)} fns Function or an array of functions.\n\t * @returns {*} Transformed data.\n\t */\n\tfunction transformData(data, headers, status, fns) {\n\t  if (isFunction(fns)) {\n\t    return fns(data, headers, status);\n\t  }\n\n\t  forEach(fns, function(fn) {\n\t    data = fn(data, headers, status);\n\t  });\n\n\t  return data;\n\t}\n\n\n\tfunction isSuccess(status) {\n\t  return 200 <= status && status < 300;\n\t}\n\n\n\t/**\n\t * @ngdoc provider\n\t * @name $httpProvider\n\t * @description\n\t * Use `$httpProvider` to change the default behavior of the {@link ng.$http $http} service.\n\t * */\n\tfunction $HttpProvider() {\n\t  /**\n\t   * @ngdoc property\n\t   * @name $httpProvider#defaults\n\t   * @description\n\t   *\n\t   * Object containing default values for all {@link ng.$http $http} requests.\n\t   *\n\t   * - **`defaults.cache`** - {Object} - an object built with {@link ng.$cacheFactory `$cacheFactory`}\n\t   * that will provide the cache for all requests who set their `cache` property to `true`.\n\t   * If you set the `defaults.cache = false` then only requests that specify their own custom\n\t   * cache object will be cached. See {@link $http#caching $http Caching} for more information.\n\t   *\n\t   * - **`defaults.xsrfCookieName`** - {string} - Name of cookie containing the XSRF token.\n\t   * Defaults value is `'XSRF-TOKEN'`.\n\t   *\n\t   * - **`defaults.xsrfHeaderName`** - {string} - Name of HTTP header to populate with the\n\t   * XSRF token. Defaults value is `'X-XSRF-TOKEN'`.\n\t   *\n\t   * - **`defaults.headers`** - {Object} - Default headers for all $http requests.\n\t   * Refer to {@link ng.$http#setting-http-headers $http} for documentation on\n\t   * setting default headers.\n\t   *     - **`defaults.headers.common`**\n\t   *     - **`defaults.headers.post`**\n\t   *     - **`defaults.headers.put`**\n\t   *     - **`defaults.headers.patch`**\n\t   *\n\t   *\n\t   * - **`defaults.paramSerializer`** - `{string|function(Object<string,string>):string}` - A function\n\t   *  used to the prepare string representation of request parameters (specified as an object).\n\t   *  If specified as string, it is interpreted as a function registered with the {@link auto.$injector $injector}.\n\t   *  Defaults to {@link ng.$httpParamSerializer $httpParamSerializer}.\n\t   *\n\t   **/\n\t  var defaults = this.defaults = {\n\t    // transform incoming response data\n\t    transformResponse: [defaultHttpResponseTransform],\n\n\t    // transform outgoing request data\n\t    transformRequest: [function(d) {\n\t      return isObject(d) && !isFile(d) && !isBlob(d) && !isFormData(d) ? toJson(d) : d;\n\t    }],\n\n\t    // default headers\n\t    headers: {\n\t      common: {\n\t        'Accept': 'application/json, text/plain, */*'\n\t      },\n\t      post:   shallowCopy(CONTENT_TYPE_APPLICATION_JSON),\n\t      put:    shallowCopy(CONTENT_TYPE_APPLICATION_JSON),\n\t      patch:  shallowCopy(CONTENT_TYPE_APPLICATION_JSON)\n\t    },\n\n\t    xsrfCookieName: 'XSRF-TOKEN',\n\t    xsrfHeaderName: 'X-XSRF-TOKEN',\n\n\t    paramSerializer: '$httpParamSerializer'\n\t  };\n\n\t  var useApplyAsync = false;\n\t  /**\n\t   * @ngdoc method\n\t   * @name $httpProvider#useApplyAsync\n\t   * @description\n\t   *\n\t   * Configure $http service to combine processing of multiple http responses received at around\n\t   * the same time via {@link ng.$rootScope.Scope#$applyAsync $rootScope.$applyAsync}. This can result in\n\t   * significant performance improvement for bigger applications that make many HTTP requests\n\t   * concurrently (common during application bootstrap).\n\t   *\n\t   * Defaults to false. If no value is specified, returns the current configured value.\n\t   *\n\t   * @param {boolean=} value If true, when requests are loaded, they will schedule a deferred\n\t   *    \"apply\" on the next tick, giving time for subsequent requests in a roughly ~10ms window\n\t   *    to load and share the same digest cycle.\n\t   *\n\t   * @returns {boolean|Object} If a value is specified, returns the $httpProvider for chaining.\n\t   *    otherwise, returns the current configured value.\n\t   **/\n\t  this.useApplyAsync = function(value) {\n\t    if (isDefined(value)) {\n\t      useApplyAsync = !!value;\n\t      return this;\n\t    }\n\t    return useApplyAsync;\n\t  };\n\n\t  var useLegacyPromise = true;\n\t  /**\n\t   * @ngdoc method\n\t   * @name $httpProvider#useLegacyPromiseExtensions\n\t   * @description\n\t   *\n\t   * Configure `$http` service to return promises without the shorthand methods `success` and `error`.\n\t   * This should be used to make sure that applications work without these methods.\n\t   *\n\t   * Defaults to true. If no value is specified, returns the current configured value.\n\t   *\n\t   * @param {boolean=} value If true, `$http` will return a promise with the deprecated legacy `success` and `error` methods.\n\t   *\n\t   * @returns {boolean|Object} If a value is specified, returns the $httpProvider for chaining.\n\t   *    otherwise, returns the current configured value.\n\t   **/\n\t  this.useLegacyPromiseExtensions = function(value) {\n\t    if (isDefined(value)) {\n\t      useLegacyPromise = !!value;\n\t      return this;\n\t    }\n\t    return useLegacyPromise;\n\t  };\n\n\t  /**\n\t   * @ngdoc property\n\t   * @name $httpProvider#interceptors\n\t   * @description\n\t   *\n\t   * Array containing service factories for all synchronous or asynchronous {@link ng.$http $http}\n\t   * pre-processing of request or postprocessing of responses.\n\t   *\n\t   * These service factories are ordered by request, i.e. they are applied in the same order as the\n\t   * array, on request, but reverse order, on response.\n\t   *\n\t   * {@link ng.$http#interceptors Interceptors detailed info}\n\t   **/\n\t  var interceptorFactories = this.interceptors = [];\n\n\t  this.$get = ['$httpBackend', '$$cookieReader', '$cacheFactory', '$rootScope', '$q', '$injector',\n\t      function($httpBackend, $$cookieReader, $cacheFactory, $rootScope, $q, $injector) {\n\n\t    var defaultCache = $cacheFactory('$http');\n\n\t    /**\n\t     * Make sure that default param serializer is exposed as a function\n\t     */\n\t    defaults.paramSerializer = isString(defaults.paramSerializer) ?\n\t      $injector.get(defaults.paramSerializer) : defaults.paramSerializer;\n\n\t    /**\n\t     * Interceptors stored in reverse order. Inner interceptors before outer interceptors.\n\t     * The reversal is needed so that we can build up the interception chain around the\n\t     * server request.\n\t     */\n\t    var reversedInterceptors = [];\n\n\t    forEach(interceptorFactories, function(interceptorFactory) {\n\t      reversedInterceptors.unshift(isString(interceptorFactory)\n\t          ? $injector.get(interceptorFactory) : $injector.invoke(interceptorFactory));\n\t    });\n\n\t    /**\n\t     * @ngdoc service\n\t     * @kind function\n\t     * @name $http\n\t     * @requires ng.$httpBackend\n\t     * @requires $cacheFactory\n\t     * @requires $rootScope\n\t     * @requires $q\n\t     * @requires $injector\n\t     *\n\t     * @description\n\t     * The `$http` service is a core Angular service that facilitates communication with the remote\n\t     * HTTP servers via the browser's [XMLHttpRequest](https://developer.mozilla.org/en/xmlhttprequest)\n\t     * object or via [JSONP](http://en.wikipedia.org/wiki/JSONP).\n\t     *\n\t     * For unit testing applications that use `$http` service, see\n\t     * {@link ngMock.$httpBackend $httpBackend mock}.\n\t     *\n\t     * For a higher level of abstraction, please check out the {@link ngResource.$resource\n\t     * $resource} service.\n\t     *\n\t     * The $http API is based on the {@link ng.$q deferred/promise APIs} exposed by\n\t     * the $q service. While for simple usage patterns this doesn't matter much, for advanced usage\n\t     * it is important to familiarize yourself with these APIs and the guarantees they provide.\n\t     *\n\t     *\n\t     * ## General usage\n\t     * The `$http` service is a function which takes a single argument — a {@link $http#usage configuration object} —\n\t     * that is used to generate an HTTP request and returns  a {@link ng.$q promise}.\n\t     *\n\t     * ```js\n\t     *   // Simple GET request example:\n\t     *   $http({\n\t     *     method: 'GET',\n\t     *     url: '/someUrl'\n\t     *   }).then(function successCallback(response) {\n\t     *       // this callback will be called asynchronously\n\t     *       // when the response is available\n\t     *     }, function errorCallback(response) {\n\t     *       // called asynchronously if an error occurs\n\t     *       // or server returns response with an error status.\n\t     *     });\n\t     * ```\n\t     *\n\t     * The response object has these properties:\n\t     *\n\t     *   - **data** – `{string|Object}` – The response body transformed with the transform\n\t     *     functions.\n\t     *   - **status** – `{number}` – HTTP status code of the response.\n\t     *   - **headers** – `{function([headerName])}` – Header getter function.\n\t     *   - **config** – `{Object}` – The configuration object that was used to generate the request.\n\t     *   - **statusText** – `{string}` – HTTP status text of the response.\n\t     *\n\t     * A response status code between 200 and 299 is considered a success status and\n\t     * will result in the success callback being called. Note that if the response is a redirect,\n\t     * XMLHttpRequest will transparently follow it, meaning that the error callback will not be\n\t     * called for such responses.\n\t     *\n\t     *\n\t     * ## Shortcut methods\n\t     *\n\t     * Shortcut methods are also available. All shortcut methods require passing in the URL, and\n\t     * request data must be passed in for POST/PUT requests. An optional config can be passed as the\n\t     * last argument.\n\t     *\n\t     * ```js\n\t     *   $http.get('/someUrl', config).then(successCallback, errorCallback);\n\t     *   $http.post('/someUrl', data, config).then(successCallback, errorCallback);\n\t     * ```\n\t     *\n\t     * Complete list of shortcut methods:\n\t     *\n\t     * - {@link ng.$http#get $http.get}\n\t     * - {@link ng.$http#head $http.head}\n\t     * - {@link ng.$http#post $http.post}\n\t     * - {@link ng.$http#put $http.put}\n\t     * - {@link ng.$http#delete $http.delete}\n\t     * - {@link ng.$http#jsonp $http.jsonp}\n\t     * - {@link ng.$http#patch $http.patch}\n\t     *\n\t     *\n\t     * ## Writing Unit Tests that use $http\n\t     * When unit testing (using {@link ngMock ngMock}), it is necessary to call\n\t     * {@link ngMock.$httpBackend#flush $httpBackend.flush()} to flush each pending\n\t     * request using trained responses.\n\t     *\n\t     * ```\n\t     * $httpBackend.expectGET(...);\n\t     * $http.get(...);\n\t     * $httpBackend.flush();\n\t     * ```\n\t     *\n\t     * ## Deprecation Notice\n\t     * <div class=\"alert alert-danger\">\n\t     *   The `$http` legacy promise methods `success` and `error` have been deprecated.\n\t     *   Use the standard `then` method instead.\n\t     *   If {@link $httpProvider#useLegacyPromiseExtensions `$httpProvider.useLegacyPromiseExtensions`} is set to\n\t     *   `false` then these methods will throw {@link $http:legacy `$http/legacy`} error.\n\t     * </div>\n\t     *\n\t     * ## Setting HTTP Headers\n\t     *\n\t     * The $http service will automatically add certain HTTP headers to all requests. These defaults\n\t     * can be fully configured by accessing the `$httpProvider.defaults.headers` configuration\n\t     * object, which currently contains this default configuration:\n\t     *\n\t     * - `$httpProvider.defaults.headers.common` (headers that are common for all requests):\n\t     *   - `Accept: application/json, text/plain, * / *`\n\t     * - `$httpProvider.defaults.headers.post`: (header defaults for POST requests)\n\t     *   - `Content-Type: application/json`\n\t     * - `$httpProvider.defaults.headers.put` (header defaults for PUT requests)\n\t     *   - `Content-Type: application/json`\n\t     *\n\t     * To add or overwrite these defaults, simply add or remove a property from these configuration\n\t     * objects. To add headers for an HTTP method other than POST or PUT, simply add a new object\n\t     * with the lowercased HTTP method name as the key, e.g.\n\t     * `$httpProvider.defaults.headers.get = { 'My-Header' : 'value' }`.\n\t     *\n\t     * The defaults can also be set at runtime via the `$http.defaults` object in the same\n\t     * fashion. For example:\n\t     *\n\t     * ```\n\t     * module.run(function($http) {\n\t     *   $http.defaults.headers.common.Authorization = 'Basic YmVlcDpib29w'\n\t     * });\n\t     * ```\n\t     *\n\t     * In addition, you can supply a `headers` property in the config object passed when\n\t     * calling `$http(config)`, which overrides the defaults without changing them globally.\n\t     *\n\t     * To explicitly remove a header automatically added via $httpProvider.defaults.headers on a per request basis,\n\t     * Use the `headers` property, setting the desired header to `undefined`. For example:\n\t     *\n\t     * ```js\n\t     * var req = {\n\t     *  method: 'POST',\n\t     *  url: 'http://example.com',\n\t     *  headers: {\n\t     *    'Content-Type': undefined\n\t     *  },\n\t     *  data: { test: 'test' }\n\t     * }\n\t     *\n\t     * $http(req).then(function(){...}, function(){...});\n\t     * ```\n\t     *\n\t     * ## Transforming Requests and Responses\n\t     *\n\t     * Both requests and responses can be transformed using transformation functions: `transformRequest`\n\t     * and `transformResponse`. These properties can be a single function that returns\n\t     * the transformed value (`function(data, headersGetter, status)`) or an array of such transformation functions,\n\t     * which allows you to `push` or `unshift` a new transformation function into the transformation chain.\n\t     *\n\t     * ### Default Transformations\n\t     *\n\t     * The `$httpProvider` provider and `$http` service expose `defaults.transformRequest` and\n\t     * `defaults.transformResponse` properties. If a request does not provide its own transformations\n\t     * then these will be applied.\n\t     *\n\t     * You can augment or replace the default transformations by modifying these properties by adding to or\n\t     * replacing the array.\n\t     *\n\t     * Angular provides the following default transformations:\n\t     *\n\t     * Request transformations (`$httpProvider.defaults.transformRequest` and `$http.defaults.transformRequest`):\n\t     *\n\t     * - If the `data` property of the request configuration object contains an object, serialize it\n\t     *   into JSON format.\n\t     *\n\t     * Response transformations (`$httpProvider.defaults.transformResponse` and `$http.defaults.transformResponse`):\n\t     *\n\t     *  - If XSRF prefix is detected, strip it (see Security Considerations section below).\n\t     *  - If JSON response is detected, deserialize it using a JSON parser.\n\t     *\n\t     *\n\t     * ### Overriding the Default Transformations Per Request\n\t     *\n\t     * If you wish override the request/response transformations only for a single request then provide\n\t     * `transformRequest` and/or `transformResponse` properties on the configuration object passed\n\t     * into `$http`.\n\t     *\n\t     * Note that if you provide these properties on the config object the default transformations will be\n\t     * overwritten. If you wish to augment the default transformations then you must include them in your\n\t     * local transformation array.\n\t     *\n\t     * The following code demonstrates adding a new response transformation to be run after the default response\n\t     * transformations have been run.\n\t     *\n\t     * ```js\n\t     * function appendTransform(defaults, transform) {\n\t     *\n\t     *   // We can't guarantee that the default transformation is an array\n\t     *   defaults = angular.isArray(defaults) ? defaults : [defaults];\n\t     *\n\t     *   // Append the new transformation to the defaults\n\t     *   return defaults.concat(transform);\n\t     * }\n\t     *\n\t     * $http({\n\t     *   url: '...',\n\t     *   method: 'GET',\n\t     *   transformResponse: appendTransform($http.defaults.transformResponse, function(value) {\n\t     *     return doTransform(value);\n\t     *   })\n\t     * });\n\t     * ```\n\t     *\n\t     *\n\t     * ## Caching\n\t     *\n\t     * To enable caching, set the request configuration `cache` property to `true` (to use default\n\t     * cache) or to a custom cache object (built with {@link ng.$cacheFactory `$cacheFactory`}).\n\t     * When the cache is enabled, `$http` stores the response from the server in the specified\n\t     * cache. The next time the same request is made, the response is served from the cache without\n\t     * sending a request to the server.\n\t     *\n\t     * Note that even if the response is served from cache, delivery of the data is asynchronous in\n\t     * the same way that real requests are.\n\t     *\n\t     * If there are multiple GET requests for the same URL that should be cached using the same\n\t     * cache, but the cache is not populated yet, only one request to the server will be made and\n\t     * the remaining requests will be fulfilled using the response from the first request.\n\t     *\n\t     * You can change the default cache to a new object (built with\n\t     * {@link ng.$cacheFactory `$cacheFactory`}) by updating the\n\t     * {@link ng.$http#defaults `$http.defaults.cache`} property. All requests who set\n\t     * their `cache` property to `true` will now use this cache object.\n\t     *\n\t     * If you set the default cache to `false` then only requests that specify their own custom\n\t     * cache object will be cached.\n\t     *\n\t     * ## Interceptors\n\t     *\n\t     * Before you start creating interceptors, be sure to understand the\n\t     * {@link ng.$q $q and deferred/promise APIs}.\n\t     *\n\t     * For purposes of global error handling, authentication, or any kind of synchronous or\n\t     * asynchronous pre-processing of request or postprocessing of responses, it is desirable to be\n\t     * able to intercept requests before they are handed to the server and\n\t     * responses before they are handed over to the application code that\n\t     * initiated these requests. The interceptors leverage the {@link ng.$q\n\t     * promise APIs} to fulfill this need for both synchronous and asynchronous pre-processing.\n\t     *\n\t     * The interceptors are service factories that are registered with the `$httpProvider` by\n\t     * adding them to the `$httpProvider.interceptors` array. The factory is called and\n\t     * injected with dependencies (if specified) and returns the interceptor.\n\t     *\n\t     * There are two kinds of interceptors (and two kinds of rejection interceptors):\n\t     *\n\t     *   * `request`: interceptors get called with a http {@link $http#usage config} object. The function is free to\n\t     *     modify the `config` object or create a new one. The function needs to return the `config`\n\t     *     object directly, or a promise containing the `config` or a new `config` object.\n\t     *   * `requestError`: interceptor gets called when a previous interceptor threw an error or\n\t     *     resolved with a rejection.\n\t     *   * `response`: interceptors get called with http `response` object. The function is free to\n\t     *     modify the `response` object or create a new one. The function needs to return the `response`\n\t     *     object directly, or as a promise containing the `response` or a new `response` object.\n\t     *   * `responseError`: interceptor gets called when a previous interceptor threw an error or\n\t     *     resolved with a rejection.\n\t     *\n\t     *\n\t     * ```js\n\t     *   // register the interceptor as a service\n\t     *   $provide.factory('myHttpInterceptor', function($q, dependency1, dependency2) {\n\t     *     return {\n\t     *       // optional method\n\t     *       'request': function(config) {\n\t     *         // do something on success\n\t     *         return config;\n\t     *       },\n\t     *\n\t     *       // optional method\n\t     *      'requestError': function(rejection) {\n\t     *         // do something on error\n\t     *         if (canRecover(rejection)) {\n\t     *           return responseOrNewPromise\n\t     *         }\n\t     *         return $q.reject(rejection);\n\t     *       },\n\t     *\n\t     *\n\t     *\n\t     *       // optional method\n\t     *       'response': function(response) {\n\t     *         // do something on success\n\t     *         return response;\n\t     *       },\n\t     *\n\t     *       // optional method\n\t     *      'responseError': function(rejection) {\n\t     *         // do something on error\n\t     *         if (canRecover(rejection)) {\n\t     *           return responseOrNewPromise\n\t     *         }\n\t     *         return $q.reject(rejection);\n\t     *       }\n\t     *     };\n\t     *   });\n\t     *\n\t     *   $httpProvider.interceptors.push('myHttpInterceptor');\n\t     *\n\t     *\n\t     *   // alternatively, register the interceptor via an anonymous factory\n\t     *   $httpProvider.interceptors.push(function($q, dependency1, dependency2) {\n\t     *     return {\n\t     *      'request': function(config) {\n\t     *          // same as above\n\t     *       },\n\t     *\n\t     *       'response': function(response) {\n\t     *          // same as above\n\t     *       }\n\t     *     };\n\t     *   });\n\t     * ```\n\t     *\n\t     * ## Security Considerations\n\t     *\n\t     * When designing web applications, consider security threats from:\n\t     *\n\t     * - [JSON vulnerability](http://haacked.com/archive/2008/11/20/anatomy-of-a-subtle-json-vulnerability.aspx)\n\t     * - [XSRF](http://en.wikipedia.org/wiki/Cross-site_request_forgery)\n\t     *\n\t     * Both server and the client must cooperate in order to eliminate these threats. Angular comes\n\t     * pre-configured with strategies that address these issues, but for this to work backend server\n\t     * cooperation is required.\n\t     *\n\t     * ### JSON Vulnerability Protection\n\t     *\n\t     * A [JSON vulnerability](http://haacked.com/archive/2008/11/20/anatomy-of-a-subtle-json-vulnerability.aspx)\n\t     * allows third party website to turn your JSON resource URL into\n\t     * [JSONP](http://en.wikipedia.org/wiki/JSONP) request under some conditions. To\n\t     * counter this your server can prefix all JSON requests with following string `\")]}',\\n\"`.\n\t     * Angular will automatically strip the prefix before processing it as JSON.\n\t     *\n\t     * For example if your server needs to return:\n\t     * ```js\n\t     * ['one','two']\n\t     * ```\n\t     *\n\t     * which is vulnerable to attack, your server can return:\n\t     * ```js\n\t     * )]}',\n\t     * ['one','two']\n\t     * ```\n\t     *\n\t     * Angular will strip the prefix, before processing the JSON.\n\t     *\n\t     *\n\t     * ### Cross Site Request Forgery (XSRF) Protection\n\t     *\n\t     * [XSRF](http://en.wikipedia.org/wiki/Cross-site_request_forgery) is a technique by which\n\t     * an unauthorized site can gain your user's private data. Angular provides a mechanism\n\t     * to counter XSRF. When performing XHR requests, the $http service reads a token from a cookie\n\t     * (by default, `XSRF-TOKEN`) and sets it as an HTTP header (`X-XSRF-TOKEN`). Since only\n\t     * JavaScript that runs on your domain could read the cookie, your server can be assured that\n\t     * the XHR came from JavaScript running on your domain. The header will not be set for\n\t     * cross-domain requests.\n\t     *\n\t     * To take advantage of this, your server needs to set a token in a JavaScript readable session\n\t     * cookie called `XSRF-TOKEN` on the first HTTP GET request. On subsequent XHR requests the\n\t     * server can verify that the cookie matches `X-XSRF-TOKEN` HTTP header, and therefore be sure\n\t     * that only JavaScript running on your domain could have sent the request. The token must be\n\t     * unique for each user and must be verifiable by the server (to prevent the JavaScript from\n\t     * making up its own tokens). We recommend that the token is a digest of your site's\n\t     * authentication cookie with a [salt](https://en.wikipedia.org/wiki/Salt_(cryptography&#41;)\n\t     * for added security.\n\t     *\n\t     * The name of the headers can be specified using the xsrfHeaderName and xsrfCookieName\n\t     * properties of either $httpProvider.defaults at config-time, $http.defaults at run-time,\n\t     * or the per-request config object.\n\t     *\n\t     * In order to prevent collisions in environments where multiple Angular apps share the\n\t     * same domain or subdomain, we recommend that each application uses unique cookie name.\n\t     *\n\t     * @param {object} config Object describing the request to be made and how it should be\n\t     *    processed. The object has following properties:\n\t     *\n\t     *    - **method** – `{string}` – HTTP method (e.g. 'GET', 'POST', etc)\n\t     *    - **url** – `{string}` – Absolute or relative URL of the resource that is being requested.\n\t     *    - **params** – `{Object.<string|Object>}` – Map of strings or objects which will be serialized\n\t     *      with the `paramSerializer` and appended as GET parameters.\n\t     *    - **data** – `{string|Object}` – Data to be sent as the request message data.\n\t     *    - **headers** – `{Object}` – Map of strings or functions which return strings representing\n\t     *      HTTP headers to send to the server. If the return value of a function is null, the\n\t     *      header will not be sent. Functions accept a config object as an argument.\n\t     *    - **xsrfHeaderName** – `{string}` – Name of HTTP header to populate with the XSRF token.\n\t     *    - **xsrfCookieName** – `{string}` – Name of cookie containing the XSRF token.\n\t     *    - **transformRequest** –\n\t     *      `{function(data, headersGetter)|Array.<function(data, headersGetter)>}` –\n\t     *      transform function or an array of such functions. The transform function takes the http\n\t     *      request body and headers and returns its transformed (typically serialized) version.\n\t     *      See {@link ng.$http#overriding-the-default-transformations-per-request\n\t     *      Overriding the Default Transformations}\n\t     *    - **transformResponse** –\n\t     *      `{function(data, headersGetter, status)|Array.<function(data, headersGetter, status)>}` –\n\t     *      transform function or an array of such functions. The transform function takes the http\n\t     *      response body, headers and status and returns its transformed (typically deserialized) version.\n\t     *      See {@link ng.$http#overriding-the-default-transformations-per-request\n\t     *      Overriding the Default TransformationjqLiks}\n\t     *    - **paramSerializer** - `{string|function(Object<string,string>):string}` - A function used to\n\t     *      prepare the string representation of request parameters (specified as an object).\n\t     *      If specified as string, it is interpreted as function registered with the\n\t     *      {@link $injector $injector}, which means you can create your own serializer\n\t     *      by registering it as a {@link auto.$provide#service service}.\n\t     *      The default serializer is the {@link $httpParamSerializer $httpParamSerializer};\n\t     *      alternatively, you can use the {@link $httpParamSerializerJQLike $httpParamSerializerJQLike}\n\t     *    - **cache** – `{boolean|Cache}` – If true, a default $http cache will be used to cache the\n\t     *      GET request, otherwise if a cache instance built with\n\t     *      {@link ng.$cacheFactory $cacheFactory}, this cache will be used for\n\t     *      caching.\n\t     *    - **timeout** – `{number|Promise}` – timeout in milliseconds, or {@link ng.$q promise}\n\t     *      that should abort the request when resolved.\n\t     *    - **withCredentials** - `{boolean}` - whether to set the `withCredentials` flag on the\n\t     *      XHR object. See [requests with credentials](https://developer.mozilla.org/docs/Web/HTTP/Access_control_CORS#Requests_with_credentials)\n\t     *      for more information.\n\t     *    - **responseType** - `{string}` - see\n\t     *      [XMLHttpRequest.responseType](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest#xmlhttprequest-responsetype).\n\t     *\n\t     * @returns {HttpPromise} Returns a {@link ng.$q `Promise}` that will be resolved to a response object\n\t     *                        when the request succeeds or fails.\n\t     *\n\t     *\n\t     * @property {Array.<Object>} pendingRequests Array of config objects for currently pending\n\t     *   requests. This is primarily meant to be used for debugging purposes.\n\t     *\n\t     *\n\t     * @example\n\t<example module=\"httpExample\">\n\t<file name=\"index.html\">\n\t  <div ng-controller=\"FetchController\">\n\t    <select ng-model=\"method\" aria-label=\"Request method\">\n\t      <option>GET</option>\n\t      <option>JSONP</option>\n\t    </select>\n\t    <input type=\"text\" ng-model=\"url\" size=\"80\" aria-label=\"URL\" />\n\t    <button id=\"fetchbtn\" ng-click=\"fetch()\">fetch</button><br>\n\t    <button id=\"samplegetbtn\" ng-click=\"updateModel('GET', 'http-hello.html')\">Sample GET</button>\n\t    <button id=\"samplejsonpbtn\"\n\t      ng-click=\"updateModel('JSONP',\n\t                    'https://angularjs.org/greet.php?callback=JSON_CALLBACK&name=Super%20Hero')\">\n\t      Sample JSONP\n\t    </button>\n\t    <button id=\"invalidjsonpbtn\"\n\t      ng-click=\"updateModel('JSONP', 'https://angularjs.org/doesntexist&callback=JSON_CALLBACK')\">\n\t        Invalid JSONP\n\t      </button>\n\t    <pre>http status code: {{status}}</pre>\n\t    <pre>http response data: {{data}}</pre>\n\t  </div>\n\t</file>\n\t<file name=\"script.js\">\n\t  angular.module('httpExample', [])\n\t    .controller('FetchController', ['$scope', '$http', '$templateCache',\n\t      function($scope, $http, $templateCache) {\n\t        $scope.method = 'GET';\n\t        $scope.url = 'http-hello.html';\n\n\t        $scope.fetch = function() {\n\t          $scope.code = null;\n\t          $scope.response = null;\n\n\t          $http({method: $scope.method, url: $scope.url, cache: $templateCache}).\n\t            then(function(response) {\n\t              $scope.status = response.status;\n\t              $scope.data = response.data;\n\t            }, function(response) {\n\t              $scope.data = response.data || \"Request failed\";\n\t              $scope.status = response.status;\n\t          });\n\t        };\n\n\t        $scope.updateModel = function(method, url) {\n\t          $scope.method = method;\n\t          $scope.url = url;\n\t        };\n\t      }]);\n\t</file>\n\t<file name=\"http-hello.html\">\n\t  Hello, $http!\n\t</file>\n\t<file name=\"protractor.js\" type=\"protractor\">\n\t  var status = element(by.binding('status'));\n\t  var data = element(by.binding('data'));\n\t  var fetchBtn = element(by.id('fetchbtn'));\n\t  var sampleGetBtn = element(by.id('samplegetbtn'));\n\t  var sampleJsonpBtn = element(by.id('samplejsonpbtn'));\n\t  var invalidJsonpBtn = element(by.id('invalidjsonpbtn'));\n\n\t  it('should make an xhr GET request', function() {\n\t    sampleGetBtn.click();\n\t    fetchBtn.click();\n\t    expect(status.getText()).toMatch('200');\n\t    expect(data.getText()).toMatch(/Hello, \\$http!/);\n\t  });\n\n\t// Commented out due to flakes. See https://github.com/angular/angular.js/issues/9185\n\t// it('should make a JSONP request to angularjs.org', function() {\n\t//   sampleJsonpBtn.click();\n\t//   fetchBtn.click();\n\t//   expect(status.getText()).toMatch('200');\n\t//   expect(data.getText()).toMatch(/Super Hero!/);\n\t// });\n\n\t  it('should make JSONP request to invalid URL and invoke the error handler',\n\t      function() {\n\t    invalidJsonpBtn.click();\n\t    fetchBtn.click();\n\t    expect(status.getText()).toMatch('0');\n\t    expect(data.getText()).toMatch('Request failed');\n\t  });\n\t</file>\n\t</example>\n\t     */\n\t    function $http(requestConfig) {\n\n\t      if (!angular.isObject(requestConfig)) {\n\t        throw minErr('$http')('badreq', 'Http request configuration must be an object.  Received: {0}', requestConfig);\n\t      }\n\n\t      var config = extend({\n\t        method: 'get',\n\t        transformRequest: defaults.transformRequest,\n\t        transformResponse: defaults.transformResponse,\n\t        paramSerializer: defaults.paramSerializer\n\t      }, requestConfig);\n\n\t      config.headers = mergeHeaders(requestConfig);\n\t      config.method = uppercase(config.method);\n\t      config.paramSerializer = isString(config.paramSerializer) ?\n\t        $injector.get(config.paramSerializer) : config.paramSerializer;\n\n\t      var serverRequest = function(config) {\n\t        var headers = config.headers;\n\t        var reqData = transformData(config.data, headersGetter(headers), undefined, config.transformRequest);\n\n\t        // strip content-type if data is undefined\n\t        if (isUndefined(reqData)) {\n\t          forEach(headers, function(value, header) {\n\t            if (lowercase(header) === 'content-type') {\n\t                delete headers[header];\n\t            }\n\t          });\n\t        }\n\n\t        if (isUndefined(config.withCredentials) && !isUndefined(defaults.withCredentials)) {\n\t          config.withCredentials = defaults.withCredentials;\n\t        }\n\n\t        // send request\n\t        return sendReq(config, reqData).then(transformResponse, transformResponse);\n\t      };\n\n\t      var chain = [serverRequest, undefined];\n\t      var promise = $q.when(config);\n\n\t      // apply interceptors\n\t      forEach(reversedInterceptors, function(interceptor) {\n\t        if (interceptor.request || interceptor.requestError) {\n\t          chain.unshift(interceptor.request, interceptor.requestError);\n\t        }\n\t        if (interceptor.response || interceptor.responseError) {\n\t          chain.push(interceptor.response, interceptor.responseError);\n\t        }\n\t      });\n\n\t      while (chain.length) {\n\t        var thenFn = chain.shift();\n\t        var rejectFn = chain.shift();\n\n\t        promise = promise.then(thenFn, rejectFn);\n\t      }\n\n\t      if (useLegacyPromise) {\n\t        promise.success = function(fn) {\n\t          assertArgFn(fn, 'fn');\n\n\t          promise.then(function(response) {\n\t            fn(response.data, response.status, response.headers, config);\n\t          });\n\t          return promise;\n\t        };\n\n\t        promise.error = function(fn) {\n\t          assertArgFn(fn, 'fn');\n\n\t          promise.then(null, function(response) {\n\t            fn(response.data, response.status, response.headers, config);\n\t          });\n\t          return promise;\n\t        };\n\t      } else {\n\t        promise.success = $httpMinErrLegacyFn('success');\n\t        promise.error = $httpMinErrLegacyFn('error');\n\t      }\n\n\t      return promise;\n\n\t      function transformResponse(response) {\n\t        // make a copy since the response must be cacheable\n\t        var resp = extend({}, response);\n\t        resp.data = transformData(response.data, response.headers, response.status,\n\t                                  config.transformResponse);\n\t        return (isSuccess(response.status))\n\t          ? resp\n\t          : $q.reject(resp);\n\t      }\n\n\t      function executeHeaderFns(headers, config) {\n\t        var headerContent, processedHeaders = {};\n\n\t        forEach(headers, function(headerFn, header) {\n\t          if (isFunction(headerFn)) {\n\t            headerContent = headerFn(config);\n\t            if (headerContent != null) {\n\t              processedHeaders[header] = headerContent;\n\t            }\n\t          } else {\n\t            processedHeaders[header] = headerFn;\n\t          }\n\t        });\n\n\t        return processedHeaders;\n\t      }\n\n\t      function mergeHeaders(config) {\n\t        var defHeaders = defaults.headers,\n\t            reqHeaders = extend({}, config.headers),\n\t            defHeaderName, lowercaseDefHeaderName, reqHeaderName;\n\n\t        defHeaders = extend({}, defHeaders.common, defHeaders[lowercase(config.method)]);\n\n\t        // using for-in instead of forEach to avoid unecessary iteration after header has been found\n\t        defaultHeadersIteration:\n\t        for (defHeaderName in defHeaders) {\n\t          lowercaseDefHeaderName = lowercase(defHeaderName);\n\n\t          for (reqHeaderName in reqHeaders) {\n\t            if (lowercase(reqHeaderName) === lowercaseDefHeaderName) {\n\t              continue defaultHeadersIteration;\n\t            }\n\t          }\n\n\t          reqHeaders[defHeaderName] = defHeaders[defHeaderName];\n\t        }\n\n\t        // execute if header value is a function for merged headers\n\t        return executeHeaderFns(reqHeaders, shallowCopy(config));\n\t      }\n\t    }\n\n\t    $http.pendingRequests = [];\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $http#get\n\t     *\n\t     * @description\n\t     * Shortcut method to perform `GET` request.\n\t     *\n\t     * @param {string} url Relative or absolute URL specifying the destination of the request\n\t     * @param {Object=} config Optional configuration object\n\t     * @returns {HttpPromise} Future object\n\t     */\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $http#delete\n\t     *\n\t     * @description\n\t     * Shortcut method to perform `DELETE` request.\n\t     *\n\t     * @param {string} url Relative or absolute URL specifying the destination of the request\n\t     * @param {Object=} config Optional configuration object\n\t     * @returns {HttpPromise} Future object\n\t     */\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $http#head\n\t     *\n\t     * @description\n\t     * Shortcut method to perform `HEAD` request.\n\t     *\n\t     * @param {string} url Relative or absolute URL specifying the destination of the request\n\t     * @param {Object=} config Optional configuration object\n\t     * @returns {HttpPromise} Future object\n\t     */\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $http#jsonp\n\t     *\n\t     * @description\n\t     * Shortcut method to perform `JSONP` request.\n\t     *\n\t     * @param {string} url Relative or absolute URL specifying the destination of the request.\n\t     *                     The name of the callback should be the string `JSON_CALLBACK`.\n\t     * @param {Object=} config Optional configuration object\n\t     * @returns {HttpPromise} Future object\n\t     */\n\t    createShortMethods('get', 'delete', 'head', 'jsonp');\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $http#post\n\t     *\n\t     * @description\n\t     * Shortcut method to perform `POST` request.\n\t     *\n\t     * @param {string} url Relative or absolute URL specifying the destination of the request\n\t     * @param {*} data Request content\n\t     * @param {Object=} config Optional configuration object\n\t     * @returns {HttpPromise} Future object\n\t     */\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $http#put\n\t     *\n\t     * @description\n\t     * Shortcut method to perform `PUT` request.\n\t     *\n\t     * @param {string} url Relative or absolute URL specifying the destination of the request\n\t     * @param {*} data Request content\n\t     * @param {Object=} config Optional configuration object\n\t     * @returns {HttpPromise} Future object\n\t     */\n\n\t     /**\n\t      * @ngdoc method\n\t      * @name $http#patch\n\t      *\n\t      * @description\n\t      * Shortcut method to perform `PATCH` request.\n\t      *\n\t      * @param {string} url Relative or absolute URL specifying the destination of the request\n\t      * @param {*} data Request content\n\t      * @param {Object=} config Optional configuration object\n\t      * @returns {HttpPromise} Future object\n\t      */\n\t    createShortMethodsWithData('post', 'put', 'patch');\n\n\t        /**\n\t         * @ngdoc property\n\t         * @name $http#defaults\n\t         *\n\t         * @description\n\t         * Runtime equivalent of the `$httpProvider.defaults` property. Allows configuration of\n\t         * default headers, withCredentials as well as request and response transformations.\n\t         *\n\t         * See \"Setting HTTP Headers\" and \"Transforming Requests and Responses\" sections above.\n\t         */\n\t    $http.defaults = defaults;\n\n\n\t    return $http;\n\n\n\t    function createShortMethods(names) {\n\t      forEach(arguments, function(name) {\n\t        $http[name] = function(url, config) {\n\t          return $http(extend({}, config || {}, {\n\t            method: name,\n\t            url: url\n\t          }));\n\t        };\n\t      });\n\t    }\n\n\n\t    function createShortMethodsWithData(name) {\n\t      forEach(arguments, function(name) {\n\t        $http[name] = function(url, data, config) {\n\t          return $http(extend({}, config || {}, {\n\t            method: name,\n\t            url: url,\n\t            data: data\n\t          }));\n\t        };\n\t      });\n\t    }\n\n\n\t    /**\n\t     * Makes the request.\n\t     *\n\t     * !!! ACCESSES CLOSURE VARS:\n\t     * $httpBackend, defaults, $log, $rootScope, defaultCache, $http.pendingRequests\n\t     */\n\t    function sendReq(config, reqData) {\n\t      var deferred = $q.defer(),\n\t          promise = deferred.promise,\n\t          cache,\n\t          cachedResp,\n\t          reqHeaders = config.headers,\n\t          url = buildUrl(config.url, config.paramSerializer(config.params));\n\n\t      $http.pendingRequests.push(config);\n\t      promise.then(removePendingReq, removePendingReq);\n\n\n\t      if ((config.cache || defaults.cache) && config.cache !== false &&\n\t          (config.method === 'GET' || config.method === 'JSONP')) {\n\t        cache = isObject(config.cache) ? config.cache\n\t              : isObject(defaults.cache) ? defaults.cache\n\t              : defaultCache;\n\t      }\n\n\t      if (cache) {\n\t        cachedResp = cache.get(url);\n\t        if (isDefined(cachedResp)) {\n\t          if (isPromiseLike(cachedResp)) {\n\t            // cached request has already been sent, but there is no response yet\n\t            cachedResp.then(resolvePromiseWithResult, resolvePromiseWithResult);\n\t          } else {\n\t            // serving from cache\n\t            if (isArray(cachedResp)) {\n\t              resolvePromise(cachedResp[1], cachedResp[0], shallowCopy(cachedResp[2]), cachedResp[3]);\n\t            } else {\n\t              resolvePromise(cachedResp, 200, {}, 'OK');\n\t            }\n\t          }\n\t        } else {\n\t          // put the promise for the non-transformed response into cache as a placeholder\n\t          cache.put(url, promise);\n\t        }\n\t      }\n\n\n\t      // if we won't have the response in cache, set the xsrf headers and\n\t      // send the request to the backend\n\t      if (isUndefined(cachedResp)) {\n\t        var xsrfValue = urlIsSameOrigin(config.url)\n\t            ? $$cookieReader()[config.xsrfCookieName || defaults.xsrfCookieName]\n\t            : undefined;\n\t        if (xsrfValue) {\n\t          reqHeaders[(config.xsrfHeaderName || defaults.xsrfHeaderName)] = xsrfValue;\n\t        }\n\n\t        $httpBackend(config.method, url, reqData, done, reqHeaders, config.timeout,\n\t            config.withCredentials, config.responseType);\n\t      }\n\n\t      return promise;\n\n\n\t      /**\n\t       * Callback registered to $httpBackend():\n\t       *  - caches the response if desired\n\t       *  - resolves the raw $http promise\n\t       *  - calls $apply\n\t       */\n\t      function done(status, response, headersString, statusText) {\n\t        if (cache) {\n\t          if (isSuccess(status)) {\n\t            cache.put(url, [status, response, parseHeaders(headersString), statusText]);\n\t          } else {\n\t            // remove promise from the cache\n\t            cache.remove(url);\n\t          }\n\t        }\n\n\t        function resolveHttpPromise() {\n\t          resolvePromise(response, status, headersString, statusText);\n\t        }\n\n\t        if (useApplyAsync) {\n\t          $rootScope.$applyAsync(resolveHttpPromise);\n\t        } else {\n\t          resolveHttpPromise();\n\t          if (!$rootScope.$$phase) $rootScope.$apply();\n\t        }\n\t      }\n\n\n\t      /**\n\t       * Resolves the raw $http promise.\n\t       */\n\t      function resolvePromise(response, status, headers, statusText) {\n\t        //status: HTTP response status code, 0, -1 (aborted by timeout / promise)\n\t        status = status >= -1 ? status : 0;\n\n\t        (isSuccess(status) ? deferred.resolve : deferred.reject)({\n\t          data: response,\n\t          status: status,\n\t          headers: headersGetter(headers),\n\t          config: config,\n\t          statusText: statusText\n\t        });\n\t      }\n\n\t      function resolvePromiseWithResult(result) {\n\t        resolvePromise(result.data, result.status, shallowCopy(result.headers()), result.statusText);\n\t      }\n\n\t      function removePendingReq() {\n\t        var idx = $http.pendingRequests.indexOf(config);\n\t        if (idx !== -1) $http.pendingRequests.splice(idx, 1);\n\t      }\n\t    }\n\n\n\t    function buildUrl(url, serializedParams) {\n\t      if (serializedParams.length > 0) {\n\t        url += ((url.indexOf('?') == -1) ? '?' : '&') + serializedParams;\n\t      }\n\t      return url;\n\t    }\n\t  }];\n\t}\n\n\t/**\n\t * @ngdoc service\n\t * @name $xhrFactory\n\t *\n\t * @description\n\t * Factory function used to create XMLHttpRequest objects.\n\t *\n\t * Replace or decorate this service to create your own custom XMLHttpRequest objects.\n\t *\n\t * ```\n\t * angular.module('myApp', [])\n\t * .factory('$xhrFactory', function() {\n\t *   return function createXhr(method, url) {\n\t *     return new window.XMLHttpRequest({mozSystem: true});\n\t *   };\n\t * });\n\t * ```\n\t *\n\t * @param {string} method HTTP method of the request (GET, POST, PUT, ..)\n\t * @param {string} url URL of the request.\n\t */\n\tfunction $xhrFactoryProvider() {\n\t  this.$get = function() {\n\t    return function createXhr() {\n\t      return new window.XMLHttpRequest();\n\t    };\n\t  };\n\t}\n\n\t/**\n\t * @ngdoc service\n\t * @name $httpBackend\n\t * @requires $window\n\t * @requires $document\n\t * @requires $xhrFactory\n\t *\n\t * @description\n\t * HTTP backend used by the {@link ng.$http service} that delegates to\n\t * XMLHttpRequest object or JSONP and deals with browser incompatibilities.\n\t *\n\t * You should never need to use this service directly, instead use the higher-level abstractions:\n\t * {@link ng.$http $http} or {@link ngResource.$resource $resource}.\n\t *\n\t * During testing this implementation is swapped with {@link ngMock.$httpBackend mock\n\t * $httpBackend} which can be trained with responses.\n\t */\n\tfunction $HttpBackendProvider() {\n\t  this.$get = ['$browser', '$window', '$document', '$xhrFactory', function($browser, $window, $document, $xhrFactory) {\n\t    return createHttpBackend($browser, $xhrFactory, $browser.defer, $window.angular.callbacks, $document[0]);\n\t  }];\n\t}\n\n\tfunction createHttpBackend($browser, createXhr, $browserDefer, callbacks, rawDocument) {\n\t  // TODO(vojta): fix the signature\n\t  return function(method, url, post, callback, headers, timeout, withCredentials, responseType) {\n\t    $browser.$$incOutstandingRequestCount();\n\t    url = url || $browser.url();\n\n\t    if (lowercase(method) == 'jsonp') {\n\t      var callbackId = '_' + (callbacks.counter++).toString(36);\n\t      callbacks[callbackId] = function(data) {\n\t        callbacks[callbackId].data = data;\n\t        callbacks[callbackId].called = true;\n\t      };\n\n\t      var jsonpDone = jsonpReq(url.replace('JSON_CALLBACK', 'angular.callbacks.' + callbackId),\n\t          callbackId, function(status, text) {\n\t        completeRequest(callback, status, callbacks[callbackId].data, \"\", text);\n\t        callbacks[callbackId] = noop;\n\t      });\n\t    } else {\n\n\t      var xhr = createXhr(method, url);\n\n\t      xhr.open(method, url, true);\n\t      forEach(headers, function(value, key) {\n\t        if (isDefined(value)) {\n\t            xhr.setRequestHeader(key, value);\n\t        }\n\t      });\n\n\t      xhr.onload = function requestLoaded() {\n\t        var statusText = xhr.statusText || '';\n\n\t        // responseText is the old-school way of retrieving response (supported by IE9)\n\t        // response/responseType properties were introduced in XHR Level2 spec (supported by IE10)\n\t        var response = ('response' in xhr) ? xhr.response : xhr.responseText;\n\n\t        // normalize IE9 bug (http://bugs.jquery.com/ticket/1450)\n\t        var status = xhr.status === 1223 ? 204 : xhr.status;\n\n\t        // fix status code when it is 0 (0 status is undocumented).\n\t        // Occurs when accessing file resources or on Android 4.1 stock browser\n\t        // while retrieving files from application cache.\n\t        if (status === 0) {\n\t          status = response ? 200 : urlResolve(url).protocol == 'file' ? 404 : 0;\n\t        }\n\n\t        completeRequest(callback,\n\t            status,\n\t            response,\n\t            xhr.getAllResponseHeaders(),\n\t            statusText);\n\t      };\n\n\t      var requestError = function() {\n\t        // The response is always empty\n\t        // See https://xhr.spec.whatwg.org/#request-error-steps and https://fetch.spec.whatwg.org/#concept-network-error\n\t        completeRequest(callback, -1, null, null, '');\n\t      };\n\n\t      xhr.onerror = requestError;\n\t      xhr.onabort = requestError;\n\n\t      if (withCredentials) {\n\t        xhr.withCredentials = true;\n\t      }\n\n\t      if (responseType) {\n\t        try {\n\t          xhr.responseType = responseType;\n\t        } catch (e) {\n\t          // WebKit added support for the json responseType value on 09/03/2013\n\t          // https://bugs.webkit.org/show_bug.cgi?id=73648. Versions of Safari prior to 7 are\n\t          // known to throw when setting the value \"json\" as the response type. Other older\n\t          // browsers implementing the responseType\n\t          //\n\t          // The json response type can be ignored if not supported, because JSON payloads are\n\t          // parsed on the client-side regardless.\n\t          if (responseType !== 'json') {\n\t            throw e;\n\t          }\n\t        }\n\t      }\n\n\t      xhr.send(isUndefined(post) ? null : post);\n\t    }\n\n\t    if (timeout > 0) {\n\t      var timeoutId = $browserDefer(timeoutRequest, timeout);\n\t    } else if (isPromiseLike(timeout)) {\n\t      timeout.then(timeoutRequest);\n\t    }\n\n\n\t    function timeoutRequest() {\n\t      jsonpDone && jsonpDone();\n\t      xhr && xhr.abort();\n\t    }\n\n\t    function completeRequest(callback, status, response, headersString, statusText) {\n\t      // cancel timeout and subsequent timeout promise resolution\n\t      if (isDefined(timeoutId)) {\n\t        $browserDefer.cancel(timeoutId);\n\t      }\n\t      jsonpDone = xhr = null;\n\n\t      callback(status, response, headersString, statusText);\n\t      $browser.$$completeOutstandingRequest(noop);\n\t    }\n\t  };\n\n\t  function jsonpReq(url, callbackId, done) {\n\t    // we can't use jQuery/jqLite here because jQuery does crazy stuff with script elements, e.g.:\n\t    // - fetches local scripts via XHR and evals them\n\t    // - adds and immediately removes script elements from the document\n\t    var script = rawDocument.createElement('script'), callback = null;\n\t    script.type = \"text/javascript\";\n\t    script.src = url;\n\t    script.async = true;\n\n\t    callback = function(event) {\n\t      removeEventListenerFn(script, \"load\", callback);\n\t      removeEventListenerFn(script, \"error\", callback);\n\t      rawDocument.body.removeChild(script);\n\t      script = null;\n\t      var status = -1;\n\t      var text = \"unknown\";\n\n\t      if (event) {\n\t        if (event.type === \"load\" && !callbacks[callbackId].called) {\n\t          event = { type: \"error\" };\n\t        }\n\t        text = event.type;\n\t        status = event.type === \"error\" ? 404 : 200;\n\t      }\n\n\t      if (done) {\n\t        done(status, text);\n\t      }\n\t    };\n\n\t    addEventListenerFn(script, \"load\", callback);\n\t    addEventListenerFn(script, \"error\", callback);\n\t    rawDocument.body.appendChild(script);\n\t    return callback;\n\t  }\n\t}\n\n\tvar $interpolateMinErr = angular.$interpolateMinErr = minErr('$interpolate');\n\t$interpolateMinErr.throwNoconcat = function(text) {\n\t  throw $interpolateMinErr('noconcat',\n\t      \"Error while interpolating: {0}\\nStrict Contextual Escaping disallows \" +\n\t      \"interpolations that concatenate multiple expressions when a trusted value is \" +\n\t      \"required.  See http://docs.angularjs.org/api/ng.$sce\", text);\n\t};\n\n\t$interpolateMinErr.interr = function(text, err) {\n\t  return $interpolateMinErr('interr', \"Can't interpolate: {0}\\n{1}\", text, err.toString());\n\t};\n\n\t/**\n\t * @ngdoc provider\n\t * @name $interpolateProvider\n\t *\n\t * @description\n\t *\n\t * Used for configuring the interpolation markup. Defaults to `{{` and `}}`.\n\t *\n\t * @example\n\t<example module=\"customInterpolationApp\">\n\t<file name=\"index.html\">\n\t<script>\n\t  var customInterpolationApp = angular.module('customInterpolationApp', []);\n\n\t  customInterpolationApp.config(function($interpolateProvider) {\n\t    $interpolateProvider.startSymbol('//');\n\t    $interpolateProvider.endSymbol('//');\n\t  });\n\n\n\t  customInterpolationApp.controller('DemoController', function() {\n\t      this.label = \"This binding is brought you by // interpolation symbols.\";\n\t  });\n\t</script>\n\t<div ng-app=\"App\" ng-controller=\"DemoController as demo\">\n\t    //demo.label//\n\t</div>\n\t</file>\n\t<file name=\"protractor.js\" type=\"protractor\">\n\t  it('should interpolate binding with custom symbols', function() {\n\t    expect(element(by.binding('demo.label')).getText()).toBe('This binding is brought you by // interpolation symbols.');\n\t  });\n\t</file>\n\t</example>\n\t */\n\tfunction $InterpolateProvider() {\n\t  var startSymbol = '{{';\n\t  var endSymbol = '}}';\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $interpolateProvider#startSymbol\n\t   * @description\n\t   * Symbol to denote start of expression in the interpolated string. Defaults to `{{`.\n\t   *\n\t   * @param {string=} value new value to set the starting symbol to.\n\t   * @returns {string|self} Returns the symbol when used as getter and self if used as setter.\n\t   */\n\t  this.startSymbol = function(value) {\n\t    if (value) {\n\t      startSymbol = value;\n\t      return this;\n\t    } else {\n\t      return startSymbol;\n\t    }\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $interpolateProvider#endSymbol\n\t   * @description\n\t   * Symbol to denote the end of expression in the interpolated string. Defaults to `}}`.\n\t   *\n\t   * @param {string=} value new value to set the ending symbol to.\n\t   * @returns {string|self} Returns the symbol when used as getter and self if used as setter.\n\t   */\n\t  this.endSymbol = function(value) {\n\t    if (value) {\n\t      endSymbol = value;\n\t      return this;\n\t    } else {\n\t      return endSymbol;\n\t    }\n\t  };\n\n\n\t  this.$get = ['$parse', '$exceptionHandler', '$sce', function($parse, $exceptionHandler, $sce) {\n\t    var startSymbolLength = startSymbol.length,\n\t        endSymbolLength = endSymbol.length,\n\t        escapedStartRegexp = new RegExp(startSymbol.replace(/./g, escape), 'g'),\n\t        escapedEndRegexp = new RegExp(endSymbol.replace(/./g, escape), 'g');\n\n\t    function escape(ch) {\n\t      return '\\\\\\\\\\\\' + ch;\n\t    }\n\n\t    function unescapeText(text) {\n\t      return text.replace(escapedStartRegexp, startSymbol).\n\t        replace(escapedEndRegexp, endSymbol);\n\t    }\n\n\t    function stringify(value) {\n\t      if (value == null) { // null || undefined\n\t        return '';\n\t      }\n\t      switch (typeof value) {\n\t        case 'string':\n\t          break;\n\t        case 'number':\n\t          value = '' + value;\n\t          break;\n\t        default:\n\t          value = toJson(value);\n\t      }\n\n\t      return value;\n\t    }\n\n\t    /**\n\t     * @ngdoc service\n\t     * @name $interpolate\n\t     * @kind function\n\t     *\n\t     * @requires $parse\n\t     * @requires $sce\n\t     *\n\t     * @description\n\t     *\n\t     * Compiles a string with markup into an interpolation function. This service is used by the\n\t     * HTML {@link ng.$compile $compile} service for data binding. See\n\t     * {@link ng.$interpolateProvider $interpolateProvider} for configuring the\n\t     * interpolation markup.\n\t     *\n\t     *\n\t     * ```js\n\t     *   var $interpolate = ...; // injected\n\t     *   var exp = $interpolate('Hello {{name | uppercase}}!');\n\t     *   expect(exp({name:'Angular'})).toEqual('Hello ANGULAR!');\n\t     * ```\n\t     *\n\t     * `$interpolate` takes an optional fourth argument, `allOrNothing`. If `allOrNothing` is\n\t     * `true`, the interpolation function will return `undefined` unless all embedded expressions\n\t     * evaluate to a value other than `undefined`.\n\t     *\n\t     * ```js\n\t     *   var $interpolate = ...; // injected\n\t     *   var context = {greeting: 'Hello', name: undefined };\n\t     *\n\t     *   // default \"forgiving\" mode\n\t     *   var exp = $interpolate('{{greeting}} {{name}}!');\n\t     *   expect(exp(context)).toEqual('Hello !');\n\t     *\n\t     *   // \"allOrNothing\" mode\n\t     *   exp = $interpolate('{{greeting}} {{name}}!', false, null, true);\n\t     *   expect(exp(context)).toBeUndefined();\n\t     *   context.name = 'Angular';\n\t     *   expect(exp(context)).toEqual('Hello Angular!');\n\t     * ```\n\t     *\n\t     * `allOrNothing` is useful for interpolating URLs. `ngSrc` and `ngSrcset` use this behavior.\n\t     *\n\t     * ####Escaped Interpolation\n\t     * $interpolate provides a mechanism for escaping interpolation markers. Start and end markers\n\t     * can be escaped by preceding each of their characters with a REVERSE SOLIDUS U+005C (backslash).\n\t     * It will be rendered as a regular start/end marker, and will not be interpreted as an expression\n\t     * or binding.\n\t     *\n\t     * This enables web-servers to prevent script injection attacks and defacing attacks, to some\n\t     * degree, while also enabling code examples to work without relying on the\n\t     * {@link ng.directive:ngNonBindable ngNonBindable} directive.\n\t     *\n\t     * **For security purposes, it is strongly encouraged that web servers escape user-supplied data,\n\t     * replacing angle brackets (&lt;, &gt;) with &amp;lt; and &amp;gt; respectively, and replacing all\n\t     * interpolation start/end markers with their escaped counterparts.**\n\t     *\n\t     * Escaped interpolation markers are only replaced with the actual interpolation markers in rendered\n\t     * output when the $interpolate service processes the text. So, for HTML elements interpolated\n\t     * by {@link ng.$compile $compile}, or otherwise interpolated with the `mustHaveExpression` parameter\n\t     * set to `true`, the interpolated text must contain an unescaped interpolation expression. As such,\n\t     * this is typically useful only when user-data is used in rendering a template from the server, or\n\t     * when otherwise untrusted data is used by a directive.\n\t     *\n\t     * <example>\n\t     *  <file name=\"index.html\">\n\t     *    <div ng-init=\"username='A user'\">\n\t     *      <p ng-init=\"apptitle='Escaping demo'\">{{apptitle}}: \\{\\{ username = \"defaced value\"; \\}\\}\n\t     *        </p>\n\t     *      <p><strong>{{username}}</strong> attempts to inject code which will deface the\n\t     *        application, but fails to accomplish their task, because the server has correctly\n\t     *        escaped the interpolation start/end markers with REVERSE SOLIDUS U+005C (backslash)\n\t     *        characters.</p>\n\t     *      <p>Instead, the result of the attempted script injection is visible, and can be removed\n\t     *        from the database by an administrator.</p>\n\t     *    </div>\n\t     *  </file>\n\t     * </example>\n\t     *\n\t     * @param {string} text The text with markup to interpolate.\n\t     * @param {boolean=} mustHaveExpression if set to true then the interpolation string must have\n\t     *    embedded expression in order to return an interpolation function. Strings with no\n\t     *    embedded expression will return null for the interpolation function.\n\t     * @param {string=} trustedContext when provided, the returned function passes the interpolated\n\t     *    result through {@link ng.$sce#getTrusted $sce.getTrusted(interpolatedResult,\n\t     *    trustedContext)} before returning it.  Refer to the {@link ng.$sce $sce} service that\n\t     *    provides Strict Contextual Escaping for details.\n\t     * @param {boolean=} allOrNothing if `true`, then the returned function returns undefined\n\t     *    unless all embedded expressions evaluate to a value other than `undefined`.\n\t     * @returns {function(context)} an interpolation function which is used to compute the\n\t     *    interpolated string. The function has these parameters:\n\t     *\n\t     * - `context`: evaluation context for all expressions embedded in the interpolated text\n\t     */\n\t    function $interpolate(text, mustHaveExpression, trustedContext, allOrNothing) {\n\t      allOrNothing = !!allOrNothing;\n\t      var startIndex,\n\t          endIndex,\n\t          index = 0,\n\t          expressions = [],\n\t          parseFns = [],\n\t          textLength = text.length,\n\t          exp,\n\t          concat = [],\n\t          expressionPositions = [];\n\n\t      while (index < textLength) {\n\t        if (((startIndex = text.indexOf(startSymbol, index)) != -1) &&\n\t             ((endIndex = text.indexOf(endSymbol, startIndex + startSymbolLength)) != -1)) {\n\t          if (index !== startIndex) {\n\t            concat.push(unescapeText(text.substring(index, startIndex)));\n\t          }\n\t          exp = text.substring(startIndex + startSymbolLength, endIndex);\n\t          expressions.push(exp);\n\t          parseFns.push($parse(exp, parseStringifyInterceptor));\n\t          index = endIndex + endSymbolLength;\n\t          expressionPositions.push(concat.length);\n\t          concat.push('');\n\t        } else {\n\t          // we did not find an interpolation, so we have to add the remainder to the separators array\n\t          if (index !== textLength) {\n\t            concat.push(unescapeText(text.substring(index)));\n\t          }\n\t          break;\n\t        }\n\t      }\n\n\t      // Concatenating expressions makes it hard to reason about whether some combination of\n\t      // concatenated values are unsafe to use and could easily lead to XSS.  By requiring that a\n\t      // single expression be used for iframe[src], object[src], etc., we ensure that the value\n\t      // that's used is assigned or constructed by some JS code somewhere that is more testable or\n\t      // make it obvious that you bound the value to some user controlled value.  This helps reduce\n\t      // the load when auditing for XSS issues.\n\t      if (trustedContext && concat.length > 1) {\n\t          $interpolateMinErr.throwNoconcat(text);\n\t      }\n\n\t      if (!mustHaveExpression || expressions.length) {\n\t        var compute = function(values) {\n\t          for (var i = 0, ii = expressions.length; i < ii; i++) {\n\t            if (allOrNothing && isUndefined(values[i])) return;\n\t            concat[expressionPositions[i]] = values[i];\n\t          }\n\t          return concat.join('');\n\t        };\n\n\t        var getValue = function(value) {\n\t          return trustedContext ?\n\t            $sce.getTrusted(trustedContext, value) :\n\t            $sce.valueOf(value);\n\t        };\n\n\t        return extend(function interpolationFn(context) {\n\t            var i = 0;\n\t            var ii = expressions.length;\n\t            var values = new Array(ii);\n\n\t            try {\n\t              for (; i < ii; i++) {\n\t                values[i] = parseFns[i](context);\n\t              }\n\n\t              return compute(values);\n\t            } catch (err) {\n\t              $exceptionHandler($interpolateMinErr.interr(text, err));\n\t            }\n\n\t          }, {\n\t          // all of these properties are undocumented for now\n\t          exp: text, //just for compatibility with regular watchers created via $watch\n\t          expressions: expressions,\n\t          $$watchDelegate: function(scope, listener) {\n\t            var lastValue;\n\t            return scope.$watchGroup(parseFns, function interpolateFnWatcher(values, oldValues) {\n\t              var currValue = compute(values);\n\t              if (isFunction(listener)) {\n\t                listener.call(this, currValue, values !== oldValues ? lastValue : currValue, scope);\n\t              }\n\t              lastValue = currValue;\n\t            });\n\t          }\n\t        });\n\t      }\n\n\t      function parseStringifyInterceptor(value) {\n\t        try {\n\t          value = getValue(value);\n\t          return allOrNothing && !isDefined(value) ? value : stringify(value);\n\t        } catch (err) {\n\t          $exceptionHandler($interpolateMinErr.interr(text, err));\n\t        }\n\t      }\n\t    }\n\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $interpolate#startSymbol\n\t     * @description\n\t     * Symbol to denote the start of expression in the interpolated string. Defaults to `{{`.\n\t     *\n\t     * Use {@link ng.$interpolateProvider#startSymbol `$interpolateProvider.startSymbol`} to change\n\t     * the symbol.\n\t     *\n\t     * @returns {string} start symbol.\n\t     */\n\t    $interpolate.startSymbol = function() {\n\t      return startSymbol;\n\t    };\n\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $interpolate#endSymbol\n\t     * @description\n\t     * Symbol to denote the end of expression in the interpolated string. Defaults to `}}`.\n\t     *\n\t     * Use {@link ng.$interpolateProvider#endSymbol `$interpolateProvider.endSymbol`} to change\n\t     * the symbol.\n\t     *\n\t     * @returns {string} end symbol.\n\t     */\n\t    $interpolate.endSymbol = function() {\n\t      return endSymbol;\n\t    };\n\n\t    return $interpolate;\n\t  }];\n\t}\n\n\tfunction $IntervalProvider() {\n\t  this.$get = ['$rootScope', '$window', '$q', '$$q',\n\t       function($rootScope,   $window,   $q,   $$q) {\n\t    var intervals = {};\n\n\n\t     /**\n\t      * @ngdoc service\n\t      * @name $interval\n\t      *\n\t      * @description\n\t      * Angular's wrapper for `window.setInterval`. The `fn` function is executed every `delay`\n\t      * milliseconds.\n\t      *\n\t      * The return value of registering an interval function is a promise. This promise will be\n\t      * notified upon each tick of the interval, and will be resolved after `count` iterations, or\n\t      * run indefinitely if `count` is not defined. The value of the notification will be the\n\t      * number of iterations that have run.\n\t      * To cancel an interval, call `$interval.cancel(promise)`.\n\t      *\n\t      * In tests you can use {@link ngMock.$interval#flush `$interval.flush(millis)`} to\n\t      * move forward by `millis` milliseconds and trigger any functions scheduled to run in that\n\t      * time.\n\t      *\n\t      * <div class=\"alert alert-warning\">\n\t      * **Note**: Intervals created by this service must be explicitly destroyed when you are finished\n\t      * with them.  In particular they are not automatically destroyed when a controller's scope or a\n\t      * directive's element are destroyed.\n\t      * You should take this into consideration and make sure to always cancel the interval at the\n\t      * appropriate moment.  See the example below for more details on how and when to do this.\n\t      * </div>\n\t      *\n\t      * @param {function()} fn A function that should be called repeatedly.\n\t      * @param {number} delay Number of milliseconds between each function call.\n\t      * @param {number=} [count=0] Number of times to repeat. If not set, or 0, will repeat\n\t      *   indefinitely.\n\t      * @param {boolean=} [invokeApply=true] If set to `false` skips model dirty checking, otherwise\n\t      *   will invoke `fn` within the {@link ng.$rootScope.Scope#$apply $apply} block.\n\t      * @param {...*=} Pass additional parameters to the executed function.\n\t      * @returns {promise} A promise which will be notified on each iteration.\n\t      *\n\t      * @example\n\t      * <example module=\"intervalExample\">\n\t      * <file name=\"index.html\">\n\t      *   <script>\n\t      *     angular.module('intervalExample', [])\n\t      *       .controller('ExampleController', ['$scope', '$interval',\n\t      *         function($scope, $interval) {\n\t      *           $scope.format = 'M/d/yy h:mm:ss a';\n\t      *           $scope.blood_1 = 100;\n\t      *           $scope.blood_2 = 120;\n\t      *\n\t      *           var stop;\n\t      *           $scope.fight = function() {\n\t      *             // Don't start a new fight if we are already fighting\n\t      *             if ( angular.isDefined(stop) ) return;\n\t      *\n\t      *             stop = $interval(function() {\n\t      *               if ($scope.blood_1 > 0 && $scope.blood_2 > 0) {\n\t      *                 $scope.blood_1 = $scope.blood_1 - 3;\n\t      *                 $scope.blood_2 = $scope.blood_2 - 4;\n\t      *               } else {\n\t      *                 $scope.stopFight();\n\t      *               }\n\t      *             }, 100);\n\t      *           };\n\t      *\n\t      *           $scope.stopFight = function() {\n\t      *             if (angular.isDefined(stop)) {\n\t      *               $interval.cancel(stop);\n\t      *               stop = undefined;\n\t      *             }\n\t      *           };\n\t      *\n\t      *           $scope.resetFight = function() {\n\t      *             $scope.blood_1 = 100;\n\t      *             $scope.blood_2 = 120;\n\t      *           };\n\t      *\n\t      *           $scope.$on('$destroy', function() {\n\t      *             // Make sure that the interval is destroyed too\n\t      *             $scope.stopFight();\n\t      *           });\n\t      *         }])\n\t      *       // Register the 'myCurrentTime' directive factory method.\n\t      *       // We inject $interval and dateFilter service since the factory method is DI.\n\t      *       .directive('myCurrentTime', ['$interval', 'dateFilter',\n\t      *         function($interval, dateFilter) {\n\t      *           // return the directive link function. (compile function not needed)\n\t      *           return function(scope, element, attrs) {\n\t      *             var format,  // date format\n\t      *                 stopTime; // so that we can cancel the time updates\n\t      *\n\t      *             // used to update the UI\n\t      *             function updateTime() {\n\t      *               element.text(dateFilter(new Date(), format));\n\t      *             }\n\t      *\n\t      *             // watch the expression, and update the UI on change.\n\t      *             scope.$watch(attrs.myCurrentTime, function(value) {\n\t      *               format = value;\n\t      *               updateTime();\n\t      *             });\n\t      *\n\t      *             stopTime = $interval(updateTime, 1000);\n\t      *\n\t      *             // listen on DOM destroy (removal) event, and cancel the next UI update\n\t      *             // to prevent updating time after the DOM element was removed.\n\t      *             element.on('$destroy', function() {\n\t      *               $interval.cancel(stopTime);\n\t      *             });\n\t      *           }\n\t      *         }]);\n\t      *   </script>\n\t      *\n\t      *   <div>\n\t      *     <div ng-controller=\"ExampleController\">\n\t      *       <label>Date format: <input ng-model=\"format\"></label> <hr/>\n\t      *       Current time is: <span my-current-time=\"format\"></span>\n\t      *       <hr/>\n\t      *       Blood 1 : <font color='red'>{{blood_1}}</font>\n\t      *       Blood 2 : <font color='red'>{{blood_2}}</font>\n\t      *       <button type=\"button\" data-ng-click=\"fight()\">Fight</button>\n\t      *       <button type=\"button\" data-ng-click=\"stopFight()\">StopFight</button>\n\t      *       <button type=\"button\" data-ng-click=\"resetFight()\">resetFight</button>\n\t      *     </div>\n\t      *   </div>\n\t      *\n\t      * </file>\n\t      * </example>\n\t      */\n\t    function interval(fn, delay, count, invokeApply) {\n\t      var hasParams = arguments.length > 4,\n\t          args = hasParams ? sliceArgs(arguments, 4) : [],\n\t          setInterval = $window.setInterval,\n\t          clearInterval = $window.clearInterval,\n\t          iteration = 0,\n\t          skipApply = (isDefined(invokeApply) && !invokeApply),\n\t          deferred = (skipApply ? $$q : $q).defer(),\n\t          promise = deferred.promise;\n\n\t      count = isDefined(count) ? count : 0;\n\n\t      promise.then(null, null, (!hasParams) ? fn : function() {\n\t        fn.apply(null, args);\n\t      });\n\n\t      promise.$$intervalId = setInterval(function tick() {\n\t        deferred.notify(iteration++);\n\n\t        if (count > 0 && iteration >= count) {\n\t          deferred.resolve(iteration);\n\t          clearInterval(promise.$$intervalId);\n\t          delete intervals[promise.$$intervalId];\n\t        }\n\n\t        if (!skipApply) $rootScope.$apply();\n\n\t      }, delay);\n\n\t      intervals[promise.$$intervalId] = deferred;\n\n\t      return promise;\n\t    }\n\n\n\t     /**\n\t      * @ngdoc method\n\t      * @name $interval#cancel\n\t      *\n\t      * @description\n\t      * Cancels a task associated with the `promise`.\n\t      *\n\t      * @param {Promise=} promise returned by the `$interval` function.\n\t      * @returns {boolean} Returns `true` if the task was successfully canceled.\n\t      */\n\t    interval.cancel = function(promise) {\n\t      if (promise && promise.$$intervalId in intervals) {\n\t        intervals[promise.$$intervalId].reject('canceled');\n\t        $window.clearInterval(promise.$$intervalId);\n\t        delete intervals[promise.$$intervalId];\n\t        return true;\n\t      }\n\t      return false;\n\t    };\n\n\t    return interval;\n\t  }];\n\t}\n\n\t/**\n\t * @ngdoc service\n\t * @name $locale\n\t *\n\t * @description\n\t * $locale service provides localization rules for various Angular components. As of right now the\n\t * only public api is:\n\t *\n\t * * `id` – `{string}` – locale id formatted as `languageId-countryId` (e.g. `en-us`)\n\t */\n\n\tvar PATH_MATCH = /^([^\\?#]*)(\\?([^#]*))?(#(.*))?$/,\n\t    DEFAULT_PORTS = {'http': 80, 'https': 443, 'ftp': 21};\n\tvar $locationMinErr = minErr('$location');\n\n\n\t/**\n\t * Encode path using encodeUriSegment, ignoring forward slashes\n\t *\n\t * @param {string} path Path to encode\n\t * @returns {string}\n\t */\n\tfunction encodePath(path) {\n\t  var segments = path.split('/'),\n\t      i = segments.length;\n\n\t  while (i--) {\n\t    segments[i] = encodeUriSegment(segments[i]);\n\t  }\n\n\t  return segments.join('/');\n\t}\n\n\tfunction parseAbsoluteUrl(absoluteUrl, locationObj) {\n\t  var parsedUrl = urlResolve(absoluteUrl);\n\n\t  locationObj.$$protocol = parsedUrl.protocol;\n\t  locationObj.$$host = parsedUrl.hostname;\n\t  locationObj.$$port = toInt(parsedUrl.port) || DEFAULT_PORTS[parsedUrl.protocol] || null;\n\t}\n\n\n\tfunction parseAppUrl(relativeUrl, locationObj) {\n\t  var prefixed = (relativeUrl.charAt(0) !== '/');\n\t  if (prefixed) {\n\t    relativeUrl = '/' + relativeUrl;\n\t  }\n\t  var match = urlResolve(relativeUrl);\n\t  locationObj.$$path = decodeURIComponent(prefixed && match.pathname.charAt(0) === '/' ?\n\t      match.pathname.substring(1) : match.pathname);\n\t  locationObj.$$search = parseKeyValue(match.search);\n\t  locationObj.$$hash = decodeURIComponent(match.hash);\n\n\t  // make sure path starts with '/';\n\t  if (locationObj.$$path && locationObj.$$path.charAt(0) != '/') {\n\t    locationObj.$$path = '/' + locationObj.$$path;\n\t  }\n\t}\n\n\n\t/**\n\t *\n\t * @param {string} begin\n\t * @param {string} whole\n\t * @returns {string} returns text from whole after begin or undefined if it does not begin with\n\t *                   expected string.\n\t */\n\tfunction beginsWith(begin, whole) {\n\t  if (whole.indexOf(begin) === 0) {\n\t    return whole.substr(begin.length);\n\t  }\n\t}\n\n\n\tfunction stripHash(url) {\n\t  var index = url.indexOf('#');\n\t  return index == -1 ? url : url.substr(0, index);\n\t}\n\n\tfunction trimEmptyHash(url) {\n\t  return url.replace(/(#.+)|#$/, '$1');\n\t}\n\n\n\tfunction stripFile(url) {\n\t  return url.substr(0, stripHash(url).lastIndexOf('/') + 1);\n\t}\n\n\t/* return the server only (scheme://host:port) */\n\tfunction serverBase(url) {\n\t  return url.substring(0, url.indexOf('/', url.indexOf('//') + 2));\n\t}\n\n\n\t/**\n\t * LocationHtml5Url represents an url\n\t * This object is exposed as $location service when HTML5 mode is enabled and supported\n\t *\n\t * @constructor\n\t * @param {string} appBase application base URL\n\t * @param {string} appBaseNoFile application base URL stripped of any filename\n\t * @param {string} basePrefix url path prefix\n\t */\n\tfunction LocationHtml5Url(appBase, appBaseNoFile, basePrefix) {\n\t  this.$$html5 = true;\n\t  basePrefix = basePrefix || '';\n\t  parseAbsoluteUrl(appBase, this);\n\n\n\t  /**\n\t   * Parse given html5 (regular) url string into properties\n\t   * @param {string} url HTML5 url\n\t   * @private\n\t   */\n\t  this.$$parse = function(url) {\n\t    var pathUrl = beginsWith(appBaseNoFile, url);\n\t    if (!isString(pathUrl)) {\n\t      throw $locationMinErr('ipthprfx', 'Invalid url \"{0}\", missing path prefix \"{1}\".', url,\n\t          appBaseNoFile);\n\t    }\n\n\t    parseAppUrl(pathUrl, this);\n\n\t    if (!this.$$path) {\n\t      this.$$path = '/';\n\t    }\n\n\t    this.$$compose();\n\t  };\n\n\t  /**\n\t   * Compose url and update `absUrl` property\n\t   * @private\n\t   */\n\t  this.$$compose = function() {\n\t    var search = toKeyValue(this.$$search),\n\t        hash = this.$$hash ? '#' + encodeUriSegment(this.$$hash) : '';\n\n\t    this.$$url = encodePath(this.$$path) + (search ? '?' + search : '') + hash;\n\t    this.$$absUrl = appBaseNoFile + this.$$url.substr(1); // first char is always '/'\n\t  };\n\n\t  this.$$parseLinkUrl = function(url, relHref) {\n\t    if (relHref && relHref[0] === '#') {\n\t      // special case for links to hash fragments:\n\t      // keep the old url and only replace the hash fragment\n\t      this.hash(relHref.slice(1));\n\t      return true;\n\t    }\n\t    var appUrl, prevAppUrl;\n\t    var rewrittenUrl;\n\n\t    if (isDefined(appUrl = beginsWith(appBase, url))) {\n\t      prevAppUrl = appUrl;\n\t      if (isDefined(appUrl = beginsWith(basePrefix, appUrl))) {\n\t        rewrittenUrl = appBaseNoFile + (beginsWith('/', appUrl) || appUrl);\n\t      } else {\n\t        rewrittenUrl = appBase + prevAppUrl;\n\t      }\n\t    } else if (isDefined(appUrl = beginsWith(appBaseNoFile, url))) {\n\t      rewrittenUrl = appBaseNoFile + appUrl;\n\t    } else if (appBaseNoFile == url + '/') {\n\t      rewrittenUrl = appBaseNoFile;\n\t    }\n\t    if (rewrittenUrl) {\n\t      this.$$parse(rewrittenUrl);\n\t    }\n\t    return !!rewrittenUrl;\n\t  };\n\t}\n\n\n\t/**\n\t * LocationHashbangUrl represents url\n\t * This object is exposed as $location service when developer doesn't opt into html5 mode.\n\t * It also serves as the base class for html5 mode fallback on legacy browsers.\n\t *\n\t * @constructor\n\t * @param {string} appBase application base URL\n\t * @param {string} appBaseNoFile application base URL stripped of any filename\n\t * @param {string} hashPrefix hashbang prefix\n\t */\n\tfunction LocationHashbangUrl(appBase, appBaseNoFile, hashPrefix) {\n\n\t  parseAbsoluteUrl(appBase, this);\n\n\n\t  /**\n\t   * Parse given hashbang url into properties\n\t   * @param {string} url Hashbang url\n\t   * @private\n\t   */\n\t  this.$$parse = function(url) {\n\t    var withoutBaseUrl = beginsWith(appBase, url) || beginsWith(appBaseNoFile, url);\n\t    var withoutHashUrl;\n\n\t    if (!isUndefined(withoutBaseUrl) && withoutBaseUrl.charAt(0) === '#') {\n\n\t      // The rest of the url starts with a hash so we have\n\t      // got either a hashbang path or a plain hash fragment\n\t      withoutHashUrl = beginsWith(hashPrefix, withoutBaseUrl);\n\t      if (isUndefined(withoutHashUrl)) {\n\t        // There was no hashbang prefix so we just have a hash fragment\n\t        withoutHashUrl = withoutBaseUrl;\n\t      }\n\n\t    } else {\n\t      // There was no hashbang path nor hash fragment:\n\t      // If we are in HTML5 mode we use what is left as the path;\n\t      // Otherwise we ignore what is left\n\t      if (this.$$html5) {\n\t        withoutHashUrl = withoutBaseUrl;\n\t      } else {\n\t        withoutHashUrl = '';\n\t        if (isUndefined(withoutBaseUrl)) {\n\t          appBase = url;\n\t          this.replace();\n\t        }\n\t      }\n\t    }\n\n\t    parseAppUrl(withoutHashUrl, this);\n\n\t    this.$$path = removeWindowsDriveName(this.$$path, withoutHashUrl, appBase);\n\n\t    this.$$compose();\n\n\t    /*\n\t     * In Windows, on an anchor node on documents loaded from\n\t     * the filesystem, the browser will return a pathname\n\t     * prefixed with the drive name ('/C:/path') when a\n\t     * pathname without a drive is set:\n\t     *  * a.setAttribute('href', '/foo')\n\t     *   * a.pathname === '/C:/foo' //true\n\t     *\n\t     * Inside of Angular, we're always using pathnames that\n\t     * do not include drive names for routing.\n\t     */\n\t    function removeWindowsDriveName(path, url, base) {\n\t      /*\n\t      Matches paths for file protocol on windows,\n\t      such as /C:/foo/bar, and captures only /foo/bar.\n\t      */\n\t      var windowsFilePathExp = /^\\/[A-Z]:(\\/.*)/;\n\n\t      var firstPathSegmentMatch;\n\n\t      //Get the relative path from the input URL.\n\t      if (url.indexOf(base) === 0) {\n\t        url = url.replace(base, '');\n\t      }\n\n\t      // The input URL intentionally contains a first path segment that ends with a colon.\n\t      if (windowsFilePathExp.exec(url)) {\n\t        return path;\n\t      }\n\n\t      firstPathSegmentMatch = windowsFilePathExp.exec(path);\n\t      return firstPathSegmentMatch ? firstPathSegmentMatch[1] : path;\n\t    }\n\t  };\n\n\t  /**\n\t   * Compose hashbang url and update `absUrl` property\n\t   * @private\n\t   */\n\t  this.$$compose = function() {\n\t    var search = toKeyValue(this.$$search),\n\t        hash = this.$$hash ? '#' + encodeUriSegment(this.$$hash) : '';\n\n\t    this.$$url = encodePath(this.$$path) + (search ? '?' + search : '') + hash;\n\t    this.$$absUrl = appBase + (this.$$url ? hashPrefix + this.$$url : '');\n\t  };\n\n\t  this.$$parseLinkUrl = function(url, relHref) {\n\t    if (stripHash(appBase) == stripHash(url)) {\n\t      this.$$parse(url);\n\t      return true;\n\t    }\n\t    return false;\n\t  };\n\t}\n\n\n\t/**\n\t * LocationHashbangUrl represents url\n\t * This object is exposed as $location service when html5 history api is enabled but the browser\n\t * does not support it.\n\t *\n\t * @constructor\n\t * @param {string} appBase application base URL\n\t * @param {string} appBaseNoFile application base URL stripped of any filename\n\t * @param {string} hashPrefix hashbang prefix\n\t */\n\tfunction LocationHashbangInHtml5Url(appBase, appBaseNoFile, hashPrefix) {\n\t  this.$$html5 = true;\n\t  LocationHashbangUrl.apply(this, arguments);\n\n\t  this.$$parseLinkUrl = function(url, relHref) {\n\t    if (relHref && relHref[0] === '#') {\n\t      // special case for links to hash fragments:\n\t      // keep the old url and only replace the hash fragment\n\t      this.hash(relHref.slice(1));\n\t      return true;\n\t    }\n\n\t    var rewrittenUrl;\n\t    var appUrl;\n\n\t    if (appBase == stripHash(url)) {\n\t      rewrittenUrl = url;\n\t    } else if ((appUrl = beginsWith(appBaseNoFile, url))) {\n\t      rewrittenUrl = appBase + hashPrefix + appUrl;\n\t    } else if (appBaseNoFile === url + '/') {\n\t      rewrittenUrl = appBaseNoFile;\n\t    }\n\t    if (rewrittenUrl) {\n\t      this.$$parse(rewrittenUrl);\n\t    }\n\t    return !!rewrittenUrl;\n\t  };\n\n\t  this.$$compose = function() {\n\t    var search = toKeyValue(this.$$search),\n\t        hash = this.$$hash ? '#' + encodeUriSegment(this.$$hash) : '';\n\n\t    this.$$url = encodePath(this.$$path) + (search ? '?' + search : '') + hash;\n\t    // include hashPrefix in $$absUrl when $$url is empty so IE9 does not reload page because of removal of '#'\n\t    this.$$absUrl = appBase + hashPrefix + this.$$url;\n\t  };\n\n\t}\n\n\n\tvar locationPrototype = {\n\n\t  /**\n\t   * Are we in html5 mode?\n\t   * @private\n\t   */\n\t  $$html5: false,\n\n\t  /**\n\t   * Has any change been replacing?\n\t   * @private\n\t   */\n\t  $$replace: false,\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $location#absUrl\n\t   *\n\t   * @description\n\t   * This method is getter only.\n\t   *\n\t   * Return full url representation with all segments encoded according to rules specified in\n\t   * [RFC 3986](http://www.ietf.org/rfc/rfc3986.txt).\n\t   *\n\t   *\n\t   * ```js\n\t   * // given url http://example.com/#/some/path?foo=bar&baz=xoxo\n\t   * var absUrl = $location.absUrl();\n\t   * // => \"http://example.com/#/some/path?foo=bar&baz=xoxo\"\n\t   * ```\n\t   *\n\t   * @return {string} full url\n\t   */\n\t  absUrl: locationGetter('$$absUrl'),\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $location#url\n\t   *\n\t   * @description\n\t   * This method is getter / setter.\n\t   *\n\t   * Return url (e.g. `/path?a=b#hash`) when called without any parameter.\n\t   *\n\t   * Change path, search and hash, when called with parameter and return `$location`.\n\t   *\n\t   *\n\t   * ```js\n\t   * // given url http://example.com/#/some/path?foo=bar&baz=xoxo\n\t   * var url = $location.url();\n\t   * // => \"/some/path?foo=bar&baz=xoxo\"\n\t   * ```\n\t   *\n\t   * @param {string=} url New url without base prefix (e.g. `/path?a=b#hash`)\n\t   * @return {string} url\n\t   */\n\t  url: function(url) {\n\t    if (isUndefined(url)) {\n\t      return this.$$url;\n\t    }\n\n\t    var match = PATH_MATCH.exec(url);\n\t    if (match[1] || url === '') this.path(decodeURIComponent(match[1]));\n\t    if (match[2] || match[1] || url === '') this.search(match[3] || '');\n\t    this.hash(match[5] || '');\n\n\t    return this;\n\t  },\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $location#protocol\n\t   *\n\t   * @description\n\t   * This method is getter only.\n\t   *\n\t   * Return protocol of current url.\n\t   *\n\t   *\n\t   * ```js\n\t   * // given url http://example.com/#/some/path?foo=bar&baz=xoxo\n\t   * var protocol = $location.protocol();\n\t   * // => \"http\"\n\t   * ```\n\t   *\n\t   * @return {string} protocol of current url\n\t   */\n\t  protocol: locationGetter('$$protocol'),\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $location#host\n\t   *\n\t   * @description\n\t   * This method is getter only.\n\t   *\n\t   * Return host of current url.\n\t   *\n\t   * Note: compared to the non-angular version `location.host` which returns `hostname:port`, this returns the `hostname` portion only.\n\t   *\n\t   *\n\t   * ```js\n\t   * // given url http://example.com/#/some/path?foo=bar&baz=xoxo\n\t   * var host = $location.host();\n\t   * // => \"example.com\"\n\t   *\n\t   * // given url http://user:password@example.com:8080/#/some/path?foo=bar&baz=xoxo\n\t   * host = $location.host();\n\t   * // => \"example.com\"\n\t   * host = location.host;\n\t   * // => \"example.com:8080\"\n\t   * ```\n\t   *\n\t   * @return {string} host of current url.\n\t   */\n\t  host: locationGetter('$$host'),\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $location#port\n\t   *\n\t   * @description\n\t   * This method is getter only.\n\t   *\n\t   * Return port of current url.\n\t   *\n\t   *\n\t   * ```js\n\t   * // given url http://example.com/#/some/path?foo=bar&baz=xoxo\n\t   * var port = $location.port();\n\t   * // => 80\n\t   * ```\n\t   *\n\t   * @return {Number} port\n\t   */\n\t  port: locationGetter('$$port'),\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $location#path\n\t   *\n\t   * @description\n\t   * This method is getter / setter.\n\t   *\n\t   * Return path of current url when called without any parameter.\n\t   *\n\t   * Change path when called with parameter and return `$location`.\n\t   *\n\t   * Note: Path should always begin with forward slash (/), this method will add the forward slash\n\t   * if it is missing.\n\t   *\n\t   *\n\t   * ```js\n\t   * // given url http://example.com/#/some/path?foo=bar&baz=xoxo\n\t   * var path = $location.path();\n\t   * // => \"/some/path\"\n\t   * ```\n\t   *\n\t   * @param {(string|number)=} path New path\n\t   * @return {string} path\n\t   */\n\t  path: locationGetterSetter('$$path', function(path) {\n\t    path = path !== null ? path.toString() : '';\n\t    return path.charAt(0) == '/' ? path : '/' + path;\n\t  }),\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $location#search\n\t   *\n\t   * @description\n\t   * This method is getter / setter.\n\t   *\n\t   * Return search part (as object) of current url when called without any parameter.\n\t   *\n\t   * Change search part when called with parameter and return `$location`.\n\t   *\n\t   *\n\t   * ```js\n\t   * // given url http://example.com/#/some/path?foo=bar&baz=xoxo\n\t   * var searchObject = $location.search();\n\t   * // => {foo: 'bar', baz: 'xoxo'}\n\t   *\n\t   * // set foo to 'yipee'\n\t   * $location.search('foo', 'yipee');\n\t   * // $location.search() => {foo: 'yipee', baz: 'xoxo'}\n\t   * ```\n\t   *\n\t   * @param {string|Object.<string>|Object.<Array.<string>>} search New search params - string or\n\t   * hash object.\n\t   *\n\t   * When called with a single argument the method acts as a setter, setting the `search` component\n\t   * of `$location` to the specified value.\n\t   *\n\t   * If the argument is a hash object containing an array of values, these values will be encoded\n\t   * as duplicate search parameters in the url.\n\t   *\n\t   * @param {(string|Number|Array<string>|boolean)=} paramValue If `search` is a string or number, then `paramValue`\n\t   * will override only a single search property.\n\t   *\n\t   * If `paramValue` is an array, it will override the property of the `search` component of\n\t   * `$location` specified via the first argument.\n\t   *\n\t   * If `paramValue` is `null`, the property specified via the first argument will be deleted.\n\t   *\n\t   * If `paramValue` is `true`, the property specified via the first argument will be added with no\n\t   * value nor trailing equal sign.\n\t   *\n\t   * @return {Object} If called with no arguments returns the parsed `search` object. If called with\n\t   * one or more arguments returns `$location` object itself.\n\t   */\n\t  search: function(search, paramValue) {\n\t    switch (arguments.length) {\n\t      case 0:\n\t        return this.$$search;\n\t      case 1:\n\t        if (isString(search) || isNumber(search)) {\n\t          search = search.toString();\n\t          this.$$search = parseKeyValue(search);\n\t        } else if (isObject(search)) {\n\t          search = copy(search, {});\n\t          // remove object undefined or null properties\n\t          forEach(search, function(value, key) {\n\t            if (value == null) delete search[key];\n\t          });\n\n\t          this.$$search = search;\n\t        } else {\n\t          throw $locationMinErr('isrcharg',\n\t              'The first argument of the `$location#search()` call must be a string or an object.');\n\t        }\n\t        break;\n\t      default:\n\t        if (isUndefined(paramValue) || paramValue === null) {\n\t          delete this.$$search[search];\n\t        } else {\n\t          this.$$search[search] = paramValue;\n\t        }\n\t    }\n\n\t    this.$$compose();\n\t    return this;\n\t  },\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $location#hash\n\t   *\n\t   * @description\n\t   * This method is getter / setter.\n\t   *\n\t   * Returns the hash fragment when called without any parameters.\n\t   *\n\t   * Changes the hash fragment when called with a parameter and returns `$location`.\n\t   *\n\t   *\n\t   * ```js\n\t   * // given url http://example.com/#/some/path?foo=bar&baz=xoxo#hashValue\n\t   * var hash = $location.hash();\n\t   * // => \"hashValue\"\n\t   * ```\n\t   *\n\t   * @param {(string|number)=} hash New hash fragment\n\t   * @return {string} hash\n\t   */\n\t  hash: locationGetterSetter('$$hash', function(hash) {\n\t    return hash !== null ? hash.toString() : '';\n\t  }),\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $location#replace\n\t   *\n\t   * @description\n\t   * If called, all changes to $location during the current `$digest` will replace the current history\n\t   * record, instead of adding a new one.\n\t   */\n\t  replace: function() {\n\t    this.$$replace = true;\n\t    return this;\n\t  }\n\t};\n\n\tforEach([LocationHashbangInHtml5Url, LocationHashbangUrl, LocationHtml5Url], function(Location) {\n\t  Location.prototype = Object.create(locationPrototype);\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $location#state\n\t   *\n\t   * @description\n\t   * This method is getter / setter.\n\t   *\n\t   * Return the history state object when called without any parameter.\n\t   *\n\t   * Change the history state object when called with one parameter and return `$location`.\n\t   * The state object is later passed to `pushState` or `replaceState`.\n\t   *\n\t   * NOTE: This method is supported only in HTML5 mode and only in browsers supporting\n\t   * the HTML5 History API (i.e. methods `pushState` and `replaceState`). If you need to support\n\t   * older browsers (like IE9 or Android < 4.0), don't use this method.\n\t   *\n\t   * @param {object=} state State object for pushState or replaceState\n\t   * @return {object} state\n\t   */\n\t  Location.prototype.state = function(state) {\n\t    if (!arguments.length) {\n\t      return this.$$state;\n\t    }\n\n\t    if (Location !== LocationHtml5Url || !this.$$html5) {\n\t      throw $locationMinErr('nostate', 'History API state support is available only ' +\n\t        'in HTML5 mode and only in browsers supporting HTML5 History API');\n\t    }\n\t    // The user might modify `stateObject` after invoking `$location.state(stateObject)`\n\t    // but we're changing the $$state reference to $browser.state() during the $digest\n\t    // so the modification window is narrow.\n\t    this.$$state = isUndefined(state) ? null : state;\n\n\t    return this;\n\t  };\n\t});\n\n\n\tfunction locationGetter(property) {\n\t  return function() {\n\t    return this[property];\n\t  };\n\t}\n\n\n\tfunction locationGetterSetter(property, preprocess) {\n\t  return function(value) {\n\t    if (isUndefined(value)) {\n\t      return this[property];\n\t    }\n\n\t    this[property] = preprocess(value);\n\t    this.$$compose();\n\n\t    return this;\n\t  };\n\t}\n\n\n\t/**\n\t * @ngdoc service\n\t * @name $location\n\t *\n\t * @requires $rootElement\n\t *\n\t * @description\n\t * The $location service parses the URL in the browser address bar (based on the\n\t * [window.location](https://developer.mozilla.org/en/window.location)) and makes the URL\n\t * available to your application. Changes to the URL in the address bar are reflected into\n\t * $location service and changes to $location are reflected into the browser address bar.\n\t *\n\t * **The $location service:**\n\t *\n\t * - Exposes the current URL in the browser address bar, so you can\n\t *   - Watch and observe the URL.\n\t *   - Change the URL.\n\t * - Synchronizes the URL with the browser when the user\n\t *   - Changes the address bar.\n\t *   - Clicks the back or forward button (or clicks a History link).\n\t *   - Clicks on a link.\n\t * - Represents the URL object as a set of methods (protocol, host, port, path, search, hash).\n\t *\n\t * For more information see {@link guide/$location Developer Guide: Using $location}\n\t */\n\n\t/**\n\t * @ngdoc provider\n\t * @name $locationProvider\n\t * @description\n\t * Use the `$locationProvider` to configure how the application deep linking paths are stored.\n\t */\n\tfunction $LocationProvider() {\n\t  var hashPrefix = '',\n\t      html5Mode = {\n\t        enabled: false,\n\t        requireBase: true,\n\t        rewriteLinks: true\n\t      };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $locationProvider#hashPrefix\n\t   * @description\n\t   * @param {string=} prefix Prefix for hash part (containing path and search)\n\t   * @returns {*} current value if used as getter or itself (chaining) if used as setter\n\t   */\n\t  this.hashPrefix = function(prefix) {\n\t    if (isDefined(prefix)) {\n\t      hashPrefix = prefix;\n\t      return this;\n\t    } else {\n\t      return hashPrefix;\n\t    }\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $locationProvider#html5Mode\n\t   * @description\n\t   * @param {(boolean|Object)=} mode If boolean, sets `html5Mode.enabled` to value.\n\t   *   If object, sets `enabled`, `requireBase` and `rewriteLinks` to respective values. Supported\n\t   *   properties:\n\t   *   - **enabled** – `{boolean}` – (default: false) If true, will rely on `history.pushState` to\n\t   *     change urls where supported. Will fall back to hash-prefixed paths in browsers that do not\n\t   *     support `pushState`.\n\t   *   - **requireBase** - `{boolean}` - (default: `true`) When html5Mode is enabled, specifies\n\t   *     whether or not a <base> tag is required to be present. If `enabled` and `requireBase` are\n\t   *     true, and a base tag is not present, an error will be thrown when `$location` is injected.\n\t   *     See the {@link guide/$location $location guide for more information}\n\t   *   - **rewriteLinks** - `{boolean}` - (default: `true`) When html5Mode is enabled,\n\t   *     enables/disables url rewriting for relative links.\n\t   *\n\t   * @returns {Object} html5Mode object if used as getter or itself (chaining) if used as setter\n\t   */\n\t  this.html5Mode = function(mode) {\n\t    if (isBoolean(mode)) {\n\t      html5Mode.enabled = mode;\n\t      return this;\n\t    } else if (isObject(mode)) {\n\n\t      if (isBoolean(mode.enabled)) {\n\t        html5Mode.enabled = mode.enabled;\n\t      }\n\n\t      if (isBoolean(mode.requireBase)) {\n\t        html5Mode.requireBase = mode.requireBase;\n\t      }\n\n\t      if (isBoolean(mode.rewriteLinks)) {\n\t        html5Mode.rewriteLinks = mode.rewriteLinks;\n\t      }\n\n\t      return this;\n\t    } else {\n\t      return html5Mode;\n\t    }\n\t  };\n\n\t  /**\n\t   * @ngdoc event\n\t   * @name $location#$locationChangeStart\n\t   * @eventType broadcast on root scope\n\t   * @description\n\t   * Broadcasted before a URL will change.\n\t   *\n\t   * This change can be prevented by calling\n\t   * `preventDefault` method of the event. See {@link ng.$rootScope.Scope#$on} for more\n\t   * details about event object. Upon successful change\n\t   * {@link ng.$location#$locationChangeSuccess $locationChangeSuccess} is fired.\n\t   *\n\t   * The `newState` and `oldState` parameters may be defined only in HTML5 mode and when\n\t   * the browser supports the HTML5 History API.\n\t   *\n\t   * @param {Object} angularEvent Synthetic event object.\n\t   * @param {string} newUrl New URL\n\t   * @param {string=} oldUrl URL that was before it was changed.\n\t   * @param {string=} newState New history state object\n\t   * @param {string=} oldState History state object that was before it was changed.\n\t   */\n\n\t  /**\n\t   * @ngdoc event\n\t   * @name $location#$locationChangeSuccess\n\t   * @eventType broadcast on root scope\n\t   * @description\n\t   * Broadcasted after a URL was changed.\n\t   *\n\t   * The `newState` and `oldState` parameters may be defined only in HTML5 mode and when\n\t   * the browser supports the HTML5 History API.\n\t   *\n\t   * @param {Object} angularEvent Synthetic event object.\n\t   * @param {string} newUrl New URL\n\t   * @param {string=} oldUrl URL that was before it was changed.\n\t   * @param {string=} newState New history state object\n\t   * @param {string=} oldState History state object that was before it was changed.\n\t   */\n\n\t  this.$get = ['$rootScope', '$browser', '$sniffer', '$rootElement', '$window',\n\t      function($rootScope, $browser, $sniffer, $rootElement, $window) {\n\t    var $location,\n\t        LocationMode,\n\t        baseHref = $browser.baseHref(), // if base[href] is undefined, it defaults to ''\n\t        initialUrl = $browser.url(),\n\t        appBase;\n\n\t    if (html5Mode.enabled) {\n\t      if (!baseHref && html5Mode.requireBase) {\n\t        throw $locationMinErr('nobase',\n\t          \"$location in HTML5 mode requires a <base> tag to be present!\");\n\t      }\n\t      appBase = serverBase(initialUrl) + (baseHref || '/');\n\t      LocationMode = $sniffer.history ? LocationHtml5Url : LocationHashbangInHtml5Url;\n\t    } else {\n\t      appBase = stripHash(initialUrl);\n\t      LocationMode = LocationHashbangUrl;\n\t    }\n\t    var appBaseNoFile = stripFile(appBase);\n\n\t    $location = new LocationMode(appBase, appBaseNoFile, '#' + hashPrefix);\n\t    $location.$$parseLinkUrl(initialUrl, initialUrl);\n\n\t    $location.$$state = $browser.state();\n\n\t    var IGNORE_URI_REGEXP = /^\\s*(javascript|mailto):/i;\n\n\t    function setBrowserUrlWithFallback(url, replace, state) {\n\t      var oldUrl = $location.url();\n\t      var oldState = $location.$$state;\n\t      try {\n\t        $browser.url(url, replace, state);\n\n\t        // Make sure $location.state() returns referentially identical (not just deeply equal)\n\t        // state object; this makes possible quick checking if the state changed in the digest\n\t        // loop. Checking deep equality would be too expensive.\n\t        $location.$$state = $browser.state();\n\t      } catch (e) {\n\t        // Restore old values if pushState fails\n\t        $location.url(oldUrl);\n\t        $location.$$state = oldState;\n\n\t        throw e;\n\t      }\n\t    }\n\n\t    $rootElement.on('click', function(event) {\n\t      // TODO(vojta): rewrite link when opening in new tab/window (in legacy browser)\n\t      // currently we open nice url link and redirect then\n\n\t      if (!html5Mode.rewriteLinks || event.ctrlKey || event.metaKey || event.shiftKey || event.which == 2 || event.button == 2) return;\n\n\t      var elm = jqLite(event.target);\n\n\t      // traverse the DOM up to find first A tag\n\t      while (nodeName_(elm[0]) !== 'a') {\n\t        // ignore rewriting if no A tag (reached root element, or no parent - removed from document)\n\t        if (elm[0] === $rootElement[0] || !(elm = elm.parent())[0]) return;\n\t      }\n\n\t      var absHref = elm.prop('href');\n\t      // get the actual href attribute - see\n\t      // http://msdn.microsoft.com/en-us/library/ie/dd347148(v=vs.85).aspx\n\t      var relHref = elm.attr('href') || elm.attr('xlink:href');\n\n\t      if (isObject(absHref) && absHref.toString() === '[object SVGAnimatedString]') {\n\t        // SVGAnimatedString.animVal should be identical to SVGAnimatedString.baseVal, unless during\n\t        // an animation.\n\t        absHref = urlResolve(absHref.animVal).href;\n\t      }\n\n\t      // Ignore when url is started with javascript: or mailto:\n\t      if (IGNORE_URI_REGEXP.test(absHref)) return;\n\n\t      if (absHref && !elm.attr('target') && !event.isDefaultPrevented()) {\n\t        if ($location.$$parseLinkUrl(absHref, relHref)) {\n\t          // We do a preventDefault for all urls that are part of the angular application,\n\t          // in html5mode and also without, so that we are able to abort navigation without\n\t          // getting double entries in the location history.\n\t          event.preventDefault();\n\t          // update location manually\n\t          if ($location.absUrl() != $browser.url()) {\n\t            $rootScope.$apply();\n\t            // hack to work around FF6 bug 684208 when scenario runner clicks on links\n\t            $window.angular['ff-684208-preventDefault'] = true;\n\t          }\n\t        }\n\t      }\n\t    });\n\n\n\t    // rewrite hashbang url <> html5 url\n\t    if (trimEmptyHash($location.absUrl()) != trimEmptyHash(initialUrl)) {\n\t      $browser.url($location.absUrl(), true);\n\t    }\n\n\t    var initializing = true;\n\n\t    // update $location when $browser url changes\n\t    $browser.onUrlChange(function(newUrl, newState) {\n\n\t      if (isUndefined(beginsWith(appBaseNoFile, newUrl))) {\n\t        // If we are navigating outside of the app then force a reload\n\t        $window.location.href = newUrl;\n\t        return;\n\t      }\n\n\t      $rootScope.$evalAsync(function() {\n\t        var oldUrl = $location.absUrl();\n\t        var oldState = $location.$$state;\n\t        var defaultPrevented;\n\t        newUrl = trimEmptyHash(newUrl);\n\t        $location.$$parse(newUrl);\n\t        $location.$$state = newState;\n\n\t        defaultPrevented = $rootScope.$broadcast('$locationChangeStart', newUrl, oldUrl,\n\t            newState, oldState).defaultPrevented;\n\n\t        // if the location was changed by a `$locationChangeStart` handler then stop\n\t        // processing this location change\n\t        if ($location.absUrl() !== newUrl) return;\n\n\t        if (defaultPrevented) {\n\t          $location.$$parse(oldUrl);\n\t          $location.$$state = oldState;\n\t          setBrowserUrlWithFallback(oldUrl, false, oldState);\n\t        } else {\n\t          initializing = false;\n\t          afterLocationChange(oldUrl, oldState);\n\t        }\n\t      });\n\t      if (!$rootScope.$$phase) $rootScope.$digest();\n\t    });\n\n\t    // update browser\n\t    $rootScope.$watch(function $locationWatch() {\n\t      var oldUrl = trimEmptyHash($browser.url());\n\t      var newUrl = trimEmptyHash($location.absUrl());\n\t      var oldState = $browser.state();\n\t      var currentReplace = $location.$$replace;\n\t      var urlOrStateChanged = oldUrl !== newUrl ||\n\t        ($location.$$html5 && $sniffer.history && oldState !== $location.$$state);\n\n\t      if (initializing || urlOrStateChanged) {\n\t        initializing = false;\n\n\t        $rootScope.$evalAsync(function() {\n\t          var newUrl = $location.absUrl();\n\t          var defaultPrevented = $rootScope.$broadcast('$locationChangeStart', newUrl, oldUrl,\n\t              $location.$$state, oldState).defaultPrevented;\n\n\t          // if the location was changed by a `$locationChangeStart` handler then stop\n\t          // processing this location change\n\t          if ($location.absUrl() !== newUrl) return;\n\n\t          if (defaultPrevented) {\n\t            $location.$$parse(oldUrl);\n\t            $location.$$state = oldState;\n\t          } else {\n\t            if (urlOrStateChanged) {\n\t              setBrowserUrlWithFallback(newUrl, currentReplace,\n\t                                        oldState === $location.$$state ? null : $location.$$state);\n\t            }\n\t            afterLocationChange(oldUrl, oldState);\n\t          }\n\t        });\n\t      }\n\n\t      $location.$$replace = false;\n\n\t      // we don't need to return anything because $evalAsync will make the digest loop dirty when\n\t      // there is a change\n\t    });\n\n\t    return $location;\n\n\t    function afterLocationChange(oldUrl, oldState) {\n\t      $rootScope.$broadcast('$locationChangeSuccess', $location.absUrl(), oldUrl,\n\t        $location.$$state, oldState);\n\t    }\n\t}];\n\t}\n\n\t/**\n\t * @ngdoc service\n\t * @name $log\n\t * @requires $window\n\t *\n\t * @description\n\t * Simple service for logging. Default implementation safely writes the message\n\t * into the browser's console (if present).\n\t *\n\t * The main purpose of this service is to simplify debugging and troubleshooting.\n\t *\n\t * The default is to log `debug` messages. You can use\n\t * {@link ng.$logProvider ng.$logProvider#debugEnabled} to change this.\n\t *\n\t * @example\n\t   <example module=\"logExample\">\n\t     <file name=\"script.js\">\n\t       angular.module('logExample', [])\n\t         .controller('LogController', ['$scope', '$log', function($scope, $log) {\n\t           $scope.$log = $log;\n\t           $scope.message = 'Hello World!';\n\t         }]);\n\t     </file>\n\t     <file name=\"index.html\">\n\t       <div ng-controller=\"LogController\">\n\t         <p>Reload this page with open console, enter text and hit the log button...</p>\n\t         <label>Message:\n\t         <input type=\"text\" ng-model=\"message\" /></label>\n\t         <button ng-click=\"$log.log(message)\">log</button>\n\t         <button ng-click=\"$log.warn(message)\">warn</button>\n\t         <button ng-click=\"$log.info(message)\">info</button>\n\t         <button ng-click=\"$log.error(message)\">error</button>\n\t         <button ng-click=\"$log.debug(message)\">debug</button>\n\t       </div>\n\t     </file>\n\t   </example>\n\t */\n\n\t/**\n\t * @ngdoc provider\n\t * @name $logProvider\n\t * @description\n\t * Use the `$logProvider` to configure how the application logs messages\n\t */\n\tfunction $LogProvider() {\n\t  var debug = true,\n\t      self = this;\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $logProvider#debugEnabled\n\t   * @description\n\t   * @param {boolean=} flag enable or disable debug level messages\n\t   * @returns {*} current value if used as getter or itself (chaining) if used as setter\n\t   */\n\t  this.debugEnabled = function(flag) {\n\t    if (isDefined(flag)) {\n\t      debug = flag;\n\t    return this;\n\t    } else {\n\t      return debug;\n\t    }\n\t  };\n\n\t  this.$get = ['$window', function($window) {\n\t    return {\n\t      /**\n\t       * @ngdoc method\n\t       * @name $log#log\n\t       *\n\t       * @description\n\t       * Write a log message\n\t       */\n\t      log: consoleLog('log'),\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $log#info\n\t       *\n\t       * @description\n\t       * Write an information message\n\t       */\n\t      info: consoleLog('info'),\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $log#warn\n\t       *\n\t       * @description\n\t       * Write a warning message\n\t       */\n\t      warn: consoleLog('warn'),\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $log#error\n\t       *\n\t       * @description\n\t       * Write an error message\n\t       */\n\t      error: consoleLog('error'),\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $log#debug\n\t       *\n\t       * @description\n\t       * Write a debug message\n\t       */\n\t      debug: (function() {\n\t        var fn = consoleLog('debug');\n\n\t        return function() {\n\t          if (debug) {\n\t            fn.apply(self, arguments);\n\t          }\n\t        };\n\t      }())\n\t    };\n\n\t    function formatError(arg) {\n\t      if (arg instanceof Error) {\n\t        if (arg.stack) {\n\t          arg = (arg.message && arg.stack.indexOf(arg.message) === -1)\n\t              ? 'Error: ' + arg.message + '\\n' + arg.stack\n\t              : arg.stack;\n\t        } else if (arg.sourceURL) {\n\t          arg = arg.message + '\\n' + arg.sourceURL + ':' + arg.line;\n\t        }\n\t      }\n\t      return arg;\n\t    }\n\n\t    function consoleLog(type) {\n\t      var console = $window.console || {},\n\t          logFn = console[type] || console.log || noop,\n\t          hasApply = false;\n\n\t      // Note: reading logFn.apply throws an error in IE11 in IE8 document mode.\n\t      // The reason behind this is that console.log has type \"object\" in IE8...\n\t      try {\n\t        hasApply = !!logFn.apply;\n\t      } catch (e) {}\n\n\t      if (hasApply) {\n\t        return function() {\n\t          var args = [];\n\t          forEach(arguments, function(arg) {\n\t            args.push(formatError(arg));\n\t          });\n\t          return logFn.apply(console, args);\n\t        };\n\t      }\n\n\t      // we are IE which either doesn't have window.console => this is noop and we do nothing,\n\t      // or we are IE where console.log doesn't have apply so we log at least first 2 args\n\t      return function(arg1, arg2) {\n\t        logFn(arg1, arg2 == null ? '' : arg2);\n\t      };\n\t    }\n\t  }];\n\t}\n\n\t/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\n\t *     Any commits to this file should be reviewed with security in mind.  *\n\t *   Changes to this file can potentially create security vulnerabilities. *\n\t *          An approval from 2 Core members with history of modifying      *\n\t *                         this file is required.                          *\n\t *                                                                         *\n\t *  Does the change somehow allow for arbitrary javascript to be executed? *\n\t *    Or allows for someone to change the prototype of built-in objects?   *\n\t *     Or gives undesired access to variables likes document or window?    *\n\t * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */\n\n\tvar $parseMinErr = minErr('$parse');\n\n\t// Sandboxing Angular Expressions\n\t// ------------------------------\n\t// Angular expressions are generally considered safe because these expressions only have direct\n\t// access to `$scope` and locals. However, one can obtain the ability to execute arbitrary JS code by\n\t// obtaining a reference to native JS functions such as the Function constructor.\n\t//\n\t// As an example, consider the following Angular expression:\n\t//\n\t//   {}.toString.constructor('alert(\"evil JS code\")')\n\t//\n\t// This sandboxing technique is not perfect and doesn't aim to be. The goal is to prevent exploits\n\t// against the expression language, but not to prevent exploits that were enabled by exposing\n\t// sensitive JavaScript or browser APIs on Scope. Exposing such objects on a Scope is never a good\n\t// practice and therefore we are not even trying to protect against interaction with an object\n\t// explicitly exposed in this way.\n\t//\n\t// In general, it is not possible to access a Window object from an angular expression unless a\n\t// window or some DOM object that has a reference to window is published onto a Scope.\n\t// Similarly we prevent invocations of function known to be dangerous, as well as assignments to\n\t// native objects.\n\t//\n\t// See https://docs.angularjs.org/guide/security\n\n\n\tfunction ensureSafeMemberName(name, fullExpression) {\n\t  if (name === \"__defineGetter__\" || name === \"__defineSetter__\"\n\t      || name === \"__lookupGetter__\" || name === \"__lookupSetter__\"\n\t      || name === \"__proto__\") {\n\t    throw $parseMinErr('isecfld',\n\t        'Attempting to access a disallowed field in Angular expressions! '\n\t        + 'Expression: {0}', fullExpression);\n\t  }\n\t  return name;\n\t}\n\n\tfunction getStringValue(name, fullExpression) {\n\t  // From the JavaScript docs:\n\t  // Property names must be strings. This means that non-string objects cannot be used\n\t  // as keys in an object. Any non-string object, including a number, is typecasted\n\t  // into a string via the toString method.\n\t  //\n\t  // So, to ensure that we are checking the same `name` that JavaScript would use,\n\t  // we cast it to a string, if possible.\n\t  // Doing `name + ''` can cause a repl error if the result to `toString` is not a string,\n\t  // this is, this will handle objects that misbehave.\n\t  name = name + '';\n\t  if (!isString(name)) {\n\t    throw $parseMinErr('iseccst',\n\t        'Cannot convert object to primitive value! '\n\t        + 'Expression: {0}', fullExpression);\n\t  }\n\t  return name;\n\t}\n\n\tfunction ensureSafeObject(obj, fullExpression) {\n\t  // nifty check if obj is Function that is fast and works across iframes and other contexts\n\t  if (obj) {\n\t    if (obj.constructor === obj) {\n\t      throw $parseMinErr('isecfn',\n\t          'Referencing Function in Angular expressions is disallowed! Expression: {0}',\n\t          fullExpression);\n\t    } else if (// isWindow(obj)\n\t        obj.window === obj) {\n\t      throw $parseMinErr('isecwindow',\n\t          'Referencing the Window in Angular expressions is disallowed! Expression: {0}',\n\t          fullExpression);\n\t    } else if (// isElement(obj)\n\t        obj.children && (obj.nodeName || (obj.prop && obj.attr && obj.find))) {\n\t      throw $parseMinErr('isecdom',\n\t          'Referencing DOM nodes in Angular expressions is disallowed! Expression: {0}',\n\t          fullExpression);\n\t    } else if (// block Object so that we can't get hold of dangerous Object.* methods\n\t        obj === Object) {\n\t      throw $parseMinErr('isecobj',\n\t          'Referencing Object in Angular expressions is disallowed! Expression: {0}',\n\t          fullExpression);\n\t    }\n\t  }\n\t  return obj;\n\t}\n\n\tvar CALL = Function.prototype.call;\n\tvar APPLY = Function.prototype.apply;\n\tvar BIND = Function.prototype.bind;\n\n\tfunction ensureSafeFunction(obj, fullExpression) {\n\t  if (obj) {\n\t    if (obj.constructor === obj) {\n\t      throw $parseMinErr('isecfn',\n\t        'Referencing Function in Angular expressions is disallowed! Expression: {0}',\n\t        fullExpression);\n\t    } else if (obj === CALL || obj === APPLY || obj === BIND) {\n\t      throw $parseMinErr('isecff',\n\t        'Referencing call, apply or bind in Angular expressions is disallowed! Expression: {0}',\n\t        fullExpression);\n\t    }\n\t  }\n\t}\n\n\tfunction ensureSafeAssignContext(obj, fullExpression) {\n\t  if (obj) {\n\t    if (obj === (0).constructor || obj === (false).constructor || obj === ''.constructor ||\n\t        obj === {}.constructor || obj === [].constructor || obj === Function.constructor) {\n\t      throw $parseMinErr('isecaf',\n\t        'Assigning to a constructor is disallowed! Expression: {0}', fullExpression);\n\t    }\n\t  }\n\t}\n\n\tvar OPERATORS = createMap();\n\tforEach('+ - * / % === !== == != < > <= >= && || ! = |'.split(' '), function(operator) { OPERATORS[operator] = true; });\n\tvar ESCAPE = {\"n\":\"\\n\", \"f\":\"\\f\", \"r\":\"\\r\", \"t\":\"\\t\", \"v\":\"\\v\", \"'\":\"'\", '\"':'\"'};\n\n\n\t/////////////////////////////////////////\n\n\n\t/**\n\t * @constructor\n\t */\n\tvar Lexer = function(options) {\n\t  this.options = options;\n\t};\n\n\tLexer.prototype = {\n\t  constructor: Lexer,\n\n\t  lex: function(text) {\n\t    this.text = text;\n\t    this.index = 0;\n\t    this.tokens = [];\n\n\t    while (this.index < this.text.length) {\n\t      var ch = this.text.charAt(this.index);\n\t      if (ch === '\"' || ch === \"'\") {\n\t        this.readString(ch);\n\t      } else if (this.isNumber(ch) || ch === '.' && this.isNumber(this.peek())) {\n\t        this.readNumber();\n\t      } else if (this.isIdent(ch)) {\n\t        this.readIdent();\n\t      } else if (this.is(ch, '(){}[].,;:?')) {\n\t        this.tokens.push({index: this.index, text: ch});\n\t        this.index++;\n\t      } else if (this.isWhitespace(ch)) {\n\t        this.index++;\n\t      } else {\n\t        var ch2 = ch + this.peek();\n\t        var ch3 = ch2 + this.peek(2);\n\t        var op1 = OPERATORS[ch];\n\t        var op2 = OPERATORS[ch2];\n\t        var op3 = OPERATORS[ch3];\n\t        if (op1 || op2 || op3) {\n\t          var token = op3 ? ch3 : (op2 ? ch2 : ch);\n\t          this.tokens.push({index: this.index, text: token, operator: true});\n\t          this.index += token.length;\n\t        } else {\n\t          this.throwError('Unexpected next character ', this.index, this.index + 1);\n\t        }\n\t      }\n\t    }\n\t    return this.tokens;\n\t  },\n\n\t  is: function(ch, chars) {\n\t    return chars.indexOf(ch) !== -1;\n\t  },\n\n\t  peek: function(i) {\n\t    var num = i || 1;\n\t    return (this.index + num < this.text.length) ? this.text.charAt(this.index + num) : false;\n\t  },\n\n\t  isNumber: function(ch) {\n\t    return ('0' <= ch && ch <= '9') && typeof ch === \"string\";\n\t  },\n\n\t  isWhitespace: function(ch) {\n\t    // IE treats non-breaking space as \\u00A0\n\t    return (ch === ' ' || ch === '\\r' || ch === '\\t' ||\n\t            ch === '\\n' || ch === '\\v' || ch === '\\u00A0');\n\t  },\n\n\t  isIdent: function(ch) {\n\t    return ('a' <= ch && ch <= 'z' ||\n\t            'A' <= ch && ch <= 'Z' ||\n\t            '_' === ch || ch === '$');\n\t  },\n\n\t  isExpOperator: function(ch) {\n\t    return (ch === '-' || ch === '+' || this.isNumber(ch));\n\t  },\n\n\t  throwError: function(error, start, end) {\n\t    end = end || this.index;\n\t    var colStr = (isDefined(start)\n\t            ? 's ' + start +  '-' + this.index + ' [' + this.text.substring(start, end) + ']'\n\t            : ' ' + end);\n\t    throw $parseMinErr('lexerr', 'Lexer Error: {0} at column{1} in expression [{2}].',\n\t        error, colStr, this.text);\n\t  },\n\n\t  readNumber: function() {\n\t    var number = '';\n\t    var start = this.index;\n\t    while (this.index < this.text.length) {\n\t      var ch = lowercase(this.text.charAt(this.index));\n\t      if (ch == '.' || this.isNumber(ch)) {\n\t        number += ch;\n\t      } else {\n\t        var peekCh = this.peek();\n\t        if (ch == 'e' && this.isExpOperator(peekCh)) {\n\t          number += ch;\n\t        } else if (this.isExpOperator(ch) &&\n\t            peekCh && this.isNumber(peekCh) &&\n\t            number.charAt(number.length - 1) == 'e') {\n\t          number += ch;\n\t        } else if (this.isExpOperator(ch) &&\n\t            (!peekCh || !this.isNumber(peekCh)) &&\n\t            number.charAt(number.length - 1) == 'e') {\n\t          this.throwError('Invalid exponent');\n\t        } else {\n\t          break;\n\t        }\n\t      }\n\t      this.index++;\n\t    }\n\t    this.tokens.push({\n\t      index: start,\n\t      text: number,\n\t      constant: true,\n\t      value: Number(number)\n\t    });\n\t  },\n\n\t  readIdent: function() {\n\t    var start = this.index;\n\t    while (this.index < this.text.length) {\n\t      var ch = this.text.charAt(this.index);\n\t      if (!(this.isIdent(ch) || this.isNumber(ch))) {\n\t        break;\n\t      }\n\t      this.index++;\n\t    }\n\t    this.tokens.push({\n\t      index: start,\n\t      text: this.text.slice(start, this.index),\n\t      identifier: true\n\t    });\n\t  },\n\n\t  readString: function(quote) {\n\t    var start = this.index;\n\t    this.index++;\n\t    var string = '';\n\t    var rawString = quote;\n\t    var escape = false;\n\t    while (this.index < this.text.length) {\n\t      var ch = this.text.charAt(this.index);\n\t      rawString += ch;\n\t      if (escape) {\n\t        if (ch === 'u') {\n\t          var hex = this.text.substring(this.index + 1, this.index + 5);\n\t          if (!hex.match(/[\\da-f]{4}/i)) {\n\t            this.throwError('Invalid unicode escape [\\\\u' + hex + ']');\n\t          }\n\t          this.index += 4;\n\t          string += String.fromCharCode(parseInt(hex, 16));\n\t        } else {\n\t          var rep = ESCAPE[ch];\n\t          string = string + (rep || ch);\n\t        }\n\t        escape = false;\n\t      } else if (ch === '\\\\') {\n\t        escape = true;\n\t      } else if (ch === quote) {\n\t        this.index++;\n\t        this.tokens.push({\n\t          index: start,\n\t          text: rawString,\n\t          constant: true,\n\t          value: string\n\t        });\n\t        return;\n\t      } else {\n\t        string += ch;\n\t      }\n\t      this.index++;\n\t    }\n\t    this.throwError('Unterminated quote', start);\n\t  }\n\t};\n\n\tvar AST = function(lexer, options) {\n\t  this.lexer = lexer;\n\t  this.options = options;\n\t};\n\n\tAST.Program = 'Program';\n\tAST.ExpressionStatement = 'ExpressionStatement';\n\tAST.AssignmentExpression = 'AssignmentExpression';\n\tAST.ConditionalExpression = 'ConditionalExpression';\n\tAST.LogicalExpression = 'LogicalExpression';\n\tAST.BinaryExpression = 'BinaryExpression';\n\tAST.UnaryExpression = 'UnaryExpression';\n\tAST.CallExpression = 'CallExpression';\n\tAST.MemberExpression = 'MemberExpression';\n\tAST.Identifier = 'Identifier';\n\tAST.Literal = 'Literal';\n\tAST.ArrayExpression = 'ArrayExpression';\n\tAST.Property = 'Property';\n\tAST.ObjectExpression = 'ObjectExpression';\n\tAST.ThisExpression = 'ThisExpression';\n\n\t// Internal use only\n\tAST.NGValueParameter = 'NGValueParameter';\n\n\tAST.prototype = {\n\t  ast: function(text) {\n\t    this.text = text;\n\t    this.tokens = this.lexer.lex(text);\n\n\t    var value = this.program();\n\n\t    if (this.tokens.length !== 0) {\n\t      this.throwError('is an unexpected token', this.tokens[0]);\n\t    }\n\n\t    return value;\n\t  },\n\n\t  program: function() {\n\t    var body = [];\n\t    while (true) {\n\t      if (this.tokens.length > 0 && !this.peek('}', ')', ';', ']'))\n\t        body.push(this.expressionStatement());\n\t      if (!this.expect(';')) {\n\t        return { type: AST.Program, body: body};\n\t      }\n\t    }\n\t  },\n\n\t  expressionStatement: function() {\n\t    return { type: AST.ExpressionStatement, expression: this.filterChain() };\n\t  },\n\n\t  filterChain: function() {\n\t    var left = this.expression();\n\t    var token;\n\t    while ((token = this.expect('|'))) {\n\t      left = this.filter(left);\n\t    }\n\t    return left;\n\t  },\n\n\t  expression: function() {\n\t    return this.assignment();\n\t  },\n\n\t  assignment: function() {\n\t    var result = this.ternary();\n\t    if (this.expect('=')) {\n\t      result = { type: AST.AssignmentExpression, left: result, right: this.assignment(), operator: '='};\n\t    }\n\t    return result;\n\t  },\n\n\t  ternary: function() {\n\t    var test = this.logicalOR();\n\t    var alternate;\n\t    var consequent;\n\t    if (this.expect('?')) {\n\t      alternate = this.expression();\n\t      if (this.consume(':')) {\n\t        consequent = this.expression();\n\t        return { type: AST.ConditionalExpression, test: test, alternate: alternate, consequent: consequent};\n\t      }\n\t    }\n\t    return test;\n\t  },\n\n\t  logicalOR: function() {\n\t    var left = this.logicalAND();\n\t    while (this.expect('||')) {\n\t      left = { type: AST.LogicalExpression, operator: '||', left: left, right: this.logicalAND() };\n\t    }\n\t    return left;\n\t  },\n\n\t  logicalAND: function() {\n\t    var left = this.equality();\n\t    while (this.expect('&&')) {\n\t      left = { type: AST.LogicalExpression, operator: '&&', left: left, right: this.equality()};\n\t    }\n\t    return left;\n\t  },\n\n\t  equality: function() {\n\t    var left = this.relational();\n\t    var token;\n\t    while ((token = this.expect('==','!=','===','!=='))) {\n\t      left = { type: AST.BinaryExpression, operator: token.text, left: left, right: this.relational() };\n\t    }\n\t    return left;\n\t  },\n\n\t  relational: function() {\n\t    var left = this.additive();\n\t    var token;\n\t    while ((token = this.expect('<', '>', '<=', '>='))) {\n\t      left = { type: AST.BinaryExpression, operator: token.text, left: left, right: this.additive() };\n\t    }\n\t    return left;\n\t  },\n\n\t  additive: function() {\n\t    var left = this.multiplicative();\n\t    var token;\n\t    while ((token = this.expect('+','-'))) {\n\t      left = { type: AST.BinaryExpression, operator: token.text, left: left, right: this.multiplicative() };\n\t    }\n\t    return left;\n\t  },\n\n\t  multiplicative: function() {\n\t    var left = this.unary();\n\t    var token;\n\t    while ((token = this.expect('*','/','%'))) {\n\t      left = { type: AST.BinaryExpression, operator: token.text, left: left, right: this.unary() };\n\t    }\n\t    return left;\n\t  },\n\n\t  unary: function() {\n\t    var token;\n\t    if ((token = this.expect('+', '-', '!'))) {\n\t      return { type: AST.UnaryExpression, operator: token.text, prefix: true, argument: this.unary() };\n\t    } else {\n\t      return this.primary();\n\t    }\n\t  },\n\n\t  primary: function() {\n\t    var primary;\n\t    if (this.expect('(')) {\n\t      primary = this.filterChain();\n\t      this.consume(')');\n\t    } else if (this.expect('[')) {\n\t      primary = this.arrayDeclaration();\n\t    } else if (this.expect('{')) {\n\t      primary = this.object();\n\t    } else if (this.constants.hasOwnProperty(this.peek().text)) {\n\t      primary = copy(this.constants[this.consume().text]);\n\t    } else if (this.peek().identifier) {\n\t      primary = this.identifier();\n\t    } else if (this.peek().constant) {\n\t      primary = this.constant();\n\t    } else {\n\t      this.throwError('not a primary expression', this.peek());\n\t    }\n\n\t    var next;\n\t    while ((next = this.expect('(', '[', '.'))) {\n\t      if (next.text === '(') {\n\t        primary = {type: AST.CallExpression, callee: primary, arguments: this.parseArguments() };\n\t        this.consume(')');\n\t      } else if (next.text === '[') {\n\t        primary = { type: AST.MemberExpression, object: primary, property: this.expression(), computed: true };\n\t        this.consume(']');\n\t      } else if (next.text === '.') {\n\t        primary = { type: AST.MemberExpression, object: primary, property: this.identifier(), computed: false };\n\t      } else {\n\t        this.throwError('IMPOSSIBLE');\n\t      }\n\t    }\n\t    return primary;\n\t  },\n\n\t  filter: function(baseExpression) {\n\t    var args = [baseExpression];\n\t    var result = {type: AST.CallExpression, callee: this.identifier(), arguments: args, filter: true};\n\n\t    while (this.expect(':')) {\n\t      args.push(this.expression());\n\t    }\n\n\t    return result;\n\t  },\n\n\t  parseArguments: function() {\n\t    var args = [];\n\t    if (this.peekToken().text !== ')') {\n\t      do {\n\t        args.push(this.expression());\n\t      } while (this.expect(','));\n\t    }\n\t    return args;\n\t  },\n\n\t  identifier: function() {\n\t    var token = this.consume();\n\t    if (!token.identifier) {\n\t      this.throwError('is not a valid identifier', token);\n\t    }\n\t    return { type: AST.Identifier, name: token.text };\n\t  },\n\n\t  constant: function() {\n\t    // TODO check that it is a constant\n\t    return { type: AST.Literal, value: this.consume().value };\n\t  },\n\n\t  arrayDeclaration: function() {\n\t    var elements = [];\n\t    if (this.peekToken().text !== ']') {\n\t      do {\n\t        if (this.peek(']')) {\n\t          // Support trailing commas per ES5.1.\n\t          break;\n\t        }\n\t        elements.push(this.expression());\n\t      } while (this.expect(','));\n\t    }\n\t    this.consume(']');\n\n\t    return { type: AST.ArrayExpression, elements: elements };\n\t  },\n\n\t  object: function() {\n\t    var properties = [], property;\n\t    if (this.peekToken().text !== '}') {\n\t      do {\n\t        if (this.peek('}')) {\n\t          // Support trailing commas per ES5.1.\n\t          break;\n\t        }\n\t        property = {type: AST.Property, kind: 'init'};\n\t        if (this.peek().constant) {\n\t          property.key = this.constant();\n\t        } else if (this.peek().identifier) {\n\t          property.key = this.identifier();\n\t        } else {\n\t          this.throwError(\"invalid key\", this.peek());\n\t        }\n\t        this.consume(':');\n\t        property.value = this.expression();\n\t        properties.push(property);\n\t      } while (this.expect(','));\n\t    }\n\t    this.consume('}');\n\n\t    return {type: AST.ObjectExpression, properties: properties };\n\t  },\n\n\t  throwError: function(msg, token) {\n\t    throw $parseMinErr('syntax',\n\t        'Syntax Error: Token \\'{0}\\' {1} at column {2} of the expression [{3}] starting at [{4}].',\n\t          token.text, msg, (token.index + 1), this.text, this.text.substring(token.index));\n\t  },\n\n\t  consume: function(e1) {\n\t    if (this.tokens.length === 0) {\n\t      throw $parseMinErr('ueoe', 'Unexpected end of expression: {0}', this.text);\n\t    }\n\n\t    var token = this.expect(e1);\n\t    if (!token) {\n\t      this.throwError('is unexpected, expecting [' + e1 + ']', this.peek());\n\t    }\n\t    return token;\n\t  },\n\n\t  peekToken: function() {\n\t    if (this.tokens.length === 0) {\n\t      throw $parseMinErr('ueoe', 'Unexpected end of expression: {0}', this.text);\n\t    }\n\t    return this.tokens[0];\n\t  },\n\n\t  peek: function(e1, e2, e3, e4) {\n\t    return this.peekAhead(0, e1, e2, e3, e4);\n\t  },\n\n\t  peekAhead: function(i, e1, e2, e3, e4) {\n\t    if (this.tokens.length > i) {\n\t      var token = this.tokens[i];\n\t      var t = token.text;\n\t      if (t === e1 || t === e2 || t === e3 || t === e4 ||\n\t          (!e1 && !e2 && !e3 && !e4)) {\n\t        return token;\n\t      }\n\t    }\n\t    return false;\n\t  },\n\n\t  expect: function(e1, e2, e3, e4) {\n\t    var token = this.peek(e1, e2, e3, e4);\n\t    if (token) {\n\t      this.tokens.shift();\n\t      return token;\n\t    }\n\t    return false;\n\t  },\n\n\n\t  /* `undefined` is not a constant, it is an identifier,\n\t   * but using it as an identifier is not supported\n\t   */\n\t  constants: {\n\t    'true': { type: AST.Literal, value: true },\n\t    'false': { type: AST.Literal, value: false },\n\t    'null': { type: AST.Literal, value: null },\n\t    'undefined': {type: AST.Literal, value: undefined },\n\t    'this': {type: AST.ThisExpression }\n\t  }\n\t};\n\n\tfunction ifDefined(v, d) {\n\t  return typeof v !== 'undefined' ? v : d;\n\t}\n\n\tfunction plusFn(l, r) {\n\t  if (typeof l === 'undefined') return r;\n\t  if (typeof r === 'undefined') return l;\n\t  return l + r;\n\t}\n\n\tfunction isStateless($filter, filterName) {\n\t  var fn = $filter(filterName);\n\t  return !fn.$stateful;\n\t}\n\n\tfunction findConstantAndWatchExpressions(ast, $filter) {\n\t  var allConstants;\n\t  var argsToWatch;\n\t  switch (ast.type) {\n\t  case AST.Program:\n\t    allConstants = true;\n\t    forEach(ast.body, function(expr) {\n\t      findConstantAndWatchExpressions(expr.expression, $filter);\n\t      allConstants = allConstants && expr.expression.constant;\n\t    });\n\t    ast.constant = allConstants;\n\t    break;\n\t  case AST.Literal:\n\t    ast.constant = true;\n\t    ast.toWatch = [];\n\t    break;\n\t  case AST.UnaryExpression:\n\t    findConstantAndWatchExpressions(ast.argument, $filter);\n\t    ast.constant = ast.argument.constant;\n\t    ast.toWatch = ast.argument.toWatch;\n\t    break;\n\t  case AST.BinaryExpression:\n\t    findConstantAndWatchExpressions(ast.left, $filter);\n\t    findConstantAndWatchExpressions(ast.right, $filter);\n\t    ast.constant = ast.left.constant && ast.right.constant;\n\t    ast.toWatch = ast.left.toWatch.concat(ast.right.toWatch);\n\t    break;\n\t  case AST.LogicalExpression:\n\t    findConstantAndWatchExpressions(ast.left, $filter);\n\t    findConstantAndWatchExpressions(ast.right, $filter);\n\t    ast.constant = ast.left.constant && ast.right.constant;\n\t    ast.toWatch = ast.constant ? [] : [ast];\n\t    break;\n\t  case AST.ConditionalExpression:\n\t    findConstantAndWatchExpressions(ast.test, $filter);\n\t    findConstantAndWatchExpressions(ast.alternate, $filter);\n\t    findConstantAndWatchExpressions(ast.consequent, $filter);\n\t    ast.constant = ast.test.constant && ast.alternate.constant && ast.consequent.constant;\n\t    ast.toWatch = ast.constant ? [] : [ast];\n\t    break;\n\t  case AST.Identifier:\n\t    ast.constant = false;\n\t    ast.toWatch = [ast];\n\t    break;\n\t  case AST.MemberExpression:\n\t    findConstantAndWatchExpressions(ast.object, $filter);\n\t    if (ast.computed) {\n\t      findConstantAndWatchExpressions(ast.property, $filter);\n\t    }\n\t    ast.constant = ast.object.constant && (!ast.computed || ast.property.constant);\n\t    ast.toWatch = [ast];\n\t    break;\n\t  case AST.CallExpression:\n\t    allConstants = ast.filter ? isStateless($filter, ast.callee.name) : false;\n\t    argsToWatch = [];\n\t    forEach(ast.arguments, function(expr) {\n\t      findConstantAndWatchExpressions(expr, $filter);\n\t      allConstants = allConstants && expr.constant;\n\t      if (!expr.constant) {\n\t        argsToWatch.push.apply(argsToWatch, expr.toWatch);\n\t      }\n\t    });\n\t    ast.constant = allConstants;\n\t    ast.toWatch = ast.filter && isStateless($filter, ast.callee.name) ? argsToWatch : [ast];\n\t    break;\n\t  case AST.AssignmentExpression:\n\t    findConstantAndWatchExpressions(ast.left, $filter);\n\t    findConstantAndWatchExpressions(ast.right, $filter);\n\t    ast.constant = ast.left.constant && ast.right.constant;\n\t    ast.toWatch = [ast];\n\t    break;\n\t  case AST.ArrayExpression:\n\t    allConstants = true;\n\t    argsToWatch = [];\n\t    forEach(ast.elements, function(expr) {\n\t      findConstantAndWatchExpressions(expr, $filter);\n\t      allConstants = allConstants && expr.constant;\n\t      if (!expr.constant) {\n\t        argsToWatch.push.apply(argsToWatch, expr.toWatch);\n\t      }\n\t    });\n\t    ast.constant = allConstants;\n\t    ast.toWatch = argsToWatch;\n\t    break;\n\t  case AST.ObjectExpression:\n\t    allConstants = true;\n\t    argsToWatch = [];\n\t    forEach(ast.properties, function(property) {\n\t      findConstantAndWatchExpressions(property.value, $filter);\n\t      allConstants = allConstants && property.value.constant;\n\t      if (!property.value.constant) {\n\t        argsToWatch.push.apply(argsToWatch, property.value.toWatch);\n\t      }\n\t    });\n\t    ast.constant = allConstants;\n\t    ast.toWatch = argsToWatch;\n\t    break;\n\t  case AST.ThisExpression:\n\t    ast.constant = false;\n\t    ast.toWatch = [];\n\t    break;\n\t  }\n\t}\n\n\tfunction getInputs(body) {\n\t  if (body.length != 1) return;\n\t  var lastExpression = body[0].expression;\n\t  var candidate = lastExpression.toWatch;\n\t  if (candidate.length !== 1) return candidate;\n\t  return candidate[0] !== lastExpression ? candidate : undefined;\n\t}\n\n\tfunction isAssignable(ast) {\n\t  return ast.type === AST.Identifier || ast.type === AST.MemberExpression;\n\t}\n\n\tfunction assignableAST(ast) {\n\t  if (ast.body.length === 1 && isAssignable(ast.body[0].expression)) {\n\t    return {type: AST.AssignmentExpression, left: ast.body[0].expression, right: {type: AST.NGValueParameter}, operator: '='};\n\t  }\n\t}\n\n\tfunction isLiteral(ast) {\n\t  return ast.body.length === 0 ||\n\t      ast.body.length === 1 && (\n\t      ast.body[0].expression.type === AST.Literal ||\n\t      ast.body[0].expression.type === AST.ArrayExpression ||\n\t      ast.body[0].expression.type === AST.ObjectExpression);\n\t}\n\n\tfunction isConstant(ast) {\n\t  return ast.constant;\n\t}\n\n\tfunction ASTCompiler(astBuilder, $filter) {\n\t  this.astBuilder = astBuilder;\n\t  this.$filter = $filter;\n\t}\n\n\tASTCompiler.prototype = {\n\t  compile: function(expression, expensiveChecks) {\n\t    var self = this;\n\t    var ast = this.astBuilder.ast(expression);\n\t    this.state = {\n\t      nextId: 0,\n\t      filters: {},\n\t      expensiveChecks: expensiveChecks,\n\t      fn: {vars: [], body: [], own: {}},\n\t      assign: {vars: [], body: [], own: {}},\n\t      inputs: []\n\t    };\n\t    findConstantAndWatchExpressions(ast, self.$filter);\n\t    var extra = '';\n\t    var assignable;\n\t    this.stage = 'assign';\n\t    if ((assignable = assignableAST(ast))) {\n\t      this.state.computing = 'assign';\n\t      var result = this.nextId();\n\t      this.recurse(assignable, result);\n\t      this.return_(result);\n\t      extra = 'fn.assign=' + this.generateFunction('assign', 's,v,l');\n\t    }\n\t    var toWatch = getInputs(ast.body);\n\t    self.stage = 'inputs';\n\t    forEach(toWatch, function(watch, key) {\n\t      var fnKey = 'fn' + key;\n\t      self.state[fnKey] = {vars: [], body: [], own: {}};\n\t      self.state.computing = fnKey;\n\t      var intoId = self.nextId();\n\t      self.recurse(watch, intoId);\n\t      self.return_(intoId);\n\t      self.state.inputs.push(fnKey);\n\t      watch.watchId = key;\n\t    });\n\t    this.state.computing = 'fn';\n\t    this.stage = 'main';\n\t    this.recurse(ast);\n\t    var fnString =\n\t      // The build and minification steps remove the string \"use strict\" from the code, but this is done using a regex.\n\t      // This is a workaround for this until we do a better job at only removing the prefix only when we should.\n\t      '\"' + this.USE + ' ' + this.STRICT + '\";\\n' +\n\t      this.filterPrefix() +\n\t      'var fn=' + this.generateFunction('fn', 's,l,a,i') +\n\t      extra +\n\t      this.watchFns() +\n\t      'return fn;';\n\n\t    /* jshint -W054 */\n\t    var fn = (new Function('$filter',\n\t        'ensureSafeMemberName',\n\t        'ensureSafeObject',\n\t        'ensureSafeFunction',\n\t        'getStringValue',\n\t        'ensureSafeAssignContext',\n\t        'ifDefined',\n\t        'plus',\n\t        'text',\n\t        fnString))(\n\t          this.$filter,\n\t          ensureSafeMemberName,\n\t          ensureSafeObject,\n\t          ensureSafeFunction,\n\t          getStringValue,\n\t          ensureSafeAssignContext,\n\t          ifDefined,\n\t          plusFn,\n\t          expression);\n\t    /* jshint +W054 */\n\t    this.state = this.stage = undefined;\n\t    fn.literal = isLiteral(ast);\n\t    fn.constant = isConstant(ast);\n\t    return fn;\n\t  },\n\n\t  USE: 'use',\n\n\t  STRICT: 'strict',\n\n\t  watchFns: function() {\n\t    var result = [];\n\t    var fns = this.state.inputs;\n\t    var self = this;\n\t    forEach(fns, function(name) {\n\t      result.push('var ' + name + '=' + self.generateFunction(name, 's'));\n\t    });\n\t    if (fns.length) {\n\t      result.push('fn.inputs=[' + fns.join(',') + '];');\n\t    }\n\t    return result.join('');\n\t  },\n\n\t  generateFunction: function(name, params) {\n\t    return 'function(' + params + '){' +\n\t        this.varsPrefix(name) +\n\t        this.body(name) +\n\t        '};';\n\t  },\n\n\t  filterPrefix: function() {\n\t    var parts = [];\n\t    var self = this;\n\t    forEach(this.state.filters, function(id, filter) {\n\t      parts.push(id + '=$filter(' + self.escape(filter) + ')');\n\t    });\n\t    if (parts.length) return 'var ' + parts.join(',') + ';';\n\t    return '';\n\t  },\n\n\t  varsPrefix: function(section) {\n\t    return this.state[section].vars.length ? 'var ' + this.state[section].vars.join(',') + ';' : '';\n\t  },\n\n\t  body: function(section) {\n\t    return this.state[section].body.join('');\n\t  },\n\n\t  recurse: function(ast, intoId, nameId, recursionFn, create, skipWatchIdCheck) {\n\t    var left, right, self = this, args, expression;\n\t    recursionFn = recursionFn || noop;\n\t    if (!skipWatchIdCheck && isDefined(ast.watchId)) {\n\t      intoId = intoId || this.nextId();\n\t      this.if_('i',\n\t        this.lazyAssign(intoId, this.computedMember('i', ast.watchId)),\n\t        this.lazyRecurse(ast, intoId, nameId, recursionFn, create, true)\n\t      );\n\t      return;\n\t    }\n\t    switch (ast.type) {\n\t    case AST.Program:\n\t      forEach(ast.body, function(expression, pos) {\n\t        self.recurse(expression.expression, undefined, undefined, function(expr) { right = expr; });\n\t        if (pos !== ast.body.length - 1) {\n\t          self.current().body.push(right, ';');\n\t        } else {\n\t          self.return_(right);\n\t        }\n\t      });\n\t      break;\n\t    case AST.Literal:\n\t      expression = this.escape(ast.value);\n\t      this.assign(intoId, expression);\n\t      recursionFn(expression);\n\t      break;\n\t    case AST.UnaryExpression:\n\t      this.recurse(ast.argument, undefined, undefined, function(expr) { right = expr; });\n\t      expression = ast.operator + '(' + this.ifDefined(right, 0) + ')';\n\t      this.assign(intoId, expression);\n\t      recursionFn(expression);\n\t      break;\n\t    case AST.BinaryExpression:\n\t      this.recurse(ast.left, undefined, undefined, function(expr) { left = expr; });\n\t      this.recurse(ast.right, undefined, undefined, function(expr) { right = expr; });\n\t      if (ast.operator === '+') {\n\t        expression = this.plus(left, right);\n\t      } else if (ast.operator === '-') {\n\t        expression = this.ifDefined(left, 0) + ast.operator + this.ifDefined(right, 0);\n\t      } else {\n\t        expression = '(' + left + ')' + ast.operator + '(' + right + ')';\n\t      }\n\t      this.assign(intoId, expression);\n\t      recursionFn(expression);\n\t      break;\n\t    case AST.LogicalExpression:\n\t      intoId = intoId || this.nextId();\n\t      self.recurse(ast.left, intoId);\n\t      self.if_(ast.operator === '&&' ? intoId : self.not(intoId), self.lazyRecurse(ast.right, intoId));\n\t      recursionFn(intoId);\n\t      break;\n\t    case AST.ConditionalExpression:\n\t      intoId = intoId || this.nextId();\n\t      self.recurse(ast.test, intoId);\n\t      self.if_(intoId, self.lazyRecurse(ast.alternate, intoId), self.lazyRecurse(ast.consequent, intoId));\n\t      recursionFn(intoId);\n\t      break;\n\t    case AST.Identifier:\n\t      intoId = intoId || this.nextId();\n\t      if (nameId) {\n\t        nameId.context = self.stage === 'inputs' ? 's' : this.assign(this.nextId(), this.getHasOwnProperty('l', ast.name) + '?l:s');\n\t        nameId.computed = false;\n\t        nameId.name = ast.name;\n\t      }\n\t      ensureSafeMemberName(ast.name);\n\t      self.if_(self.stage === 'inputs' || self.not(self.getHasOwnProperty('l', ast.name)),\n\t        function() {\n\t          self.if_(self.stage === 'inputs' || 's', function() {\n\t            if (create && create !== 1) {\n\t              self.if_(\n\t                self.not(self.nonComputedMember('s', ast.name)),\n\t                self.lazyAssign(self.nonComputedMember('s', ast.name), '{}'));\n\t            }\n\t            self.assign(intoId, self.nonComputedMember('s', ast.name));\n\t          });\n\t        }, intoId && self.lazyAssign(intoId, self.nonComputedMember('l', ast.name))\n\t        );\n\t      if (self.state.expensiveChecks || isPossiblyDangerousMemberName(ast.name)) {\n\t        self.addEnsureSafeObject(intoId);\n\t      }\n\t      recursionFn(intoId);\n\t      break;\n\t    case AST.MemberExpression:\n\t      left = nameId && (nameId.context = this.nextId()) || this.nextId();\n\t      intoId = intoId || this.nextId();\n\t      self.recurse(ast.object, left, undefined, function() {\n\t        self.if_(self.notNull(left), function() {\n\t          if (ast.computed) {\n\t            right = self.nextId();\n\t            self.recurse(ast.property, right);\n\t            self.getStringValue(right);\n\t            self.addEnsureSafeMemberName(right);\n\t            if (create && create !== 1) {\n\t              self.if_(self.not(self.computedMember(left, right)), self.lazyAssign(self.computedMember(left, right), '{}'));\n\t            }\n\t            expression = self.ensureSafeObject(self.computedMember(left, right));\n\t            self.assign(intoId, expression);\n\t            if (nameId) {\n\t              nameId.computed = true;\n\t              nameId.name = right;\n\t            }\n\t          } else {\n\t            ensureSafeMemberName(ast.property.name);\n\t            if (create && create !== 1) {\n\t              self.if_(self.not(self.nonComputedMember(left, ast.property.name)), self.lazyAssign(self.nonComputedMember(left, ast.property.name), '{}'));\n\t            }\n\t            expression = self.nonComputedMember(left, ast.property.name);\n\t            if (self.state.expensiveChecks || isPossiblyDangerousMemberName(ast.property.name)) {\n\t              expression = self.ensureSafeObject(expression);\n\t            }\n\t            self.assign(intoId, expression);\n\t            if (nameId) {\n\t              nameId.computed = false;\n\t              nameId.name = ast.property.name;\n\t            }\n\t          }\n\t        }, function() {\n\t          self.assign(intoId, 'undefined');\n\t        });\n\t        recursionFn(intoId);\n\t      }, !!create);\n\t      break;\n\t    case AST.CallExpression:\n\t      intoId = intoId || this.nextId();\n\t      if (ast.filter) {\n\t        right = self.filter(ast.callee.name);\n\t        args = [];\n\t        forEach(ast.arguments, function(expr) {\n\t          var argument = self.nextId();\n\t          self.recurse(expr, argument);\n\t          args.push(argument);\n\t        });\n\t        expression = right + '(' + args.join(',') + ')';\n\t        self.assign(intoId, expression);\n\t        recursionFn(intoId);\n\t      } else {\n\t        right = self.nextId();\n\t        left = {};\n\t        args = [];\n\t        self.recurse(ast.callee, right, left, function() {\n\t          self.if_(self.notNull(right), function() {\n\t            self.addEnsureSafeFunction(right);\n\t            forEach(ast.arguments, function(expr) {\n\t              self.recurse(expr, self.nextId(), undefined, function(argument) {\n\t                args.push(self.ensureSafeObject(argument));\n\t              });\n\t            });\n\t            if (left.name) {\n\t              if (!self.state.expensiveChecks) {\n\t                self.addEnsureSafeObject(left.context);\n\t              }\n\t              expression = self.member(left.context, left.name, left.computed) + '(' + args.join(',') + ')';\n\t            } else {\n\t              expression = right + '(' + args.join(',') + ')';\n\t            }\n\t            expression = self.ensureSafeObject(expression);\n\t            self.assign(intoId, expression);\n\t          }, function() {\n\t            self.assign(intoId, 'undefined');\n\t          });\n\t          recursionFn(intoId);\n\t        });\n\t      }\n\t      break;\n\t    case AST.AssignmentExpression:\n\t      right = this.nextId();\n\t      left = {};\n\t      if (!isAssignable(ast.left)) {\n\t        throw $parseMinErr('lval', 'Trying to assing a value to a non l-value');\n\t      }\n\t      this.recurse(ast.left, undefined, left, function() {\n\t        self.if_(self.notNull(left.context), function() {\n\t          self.recurse(ast.right, right);\n\t          self.addEnsureSafeObject(self.member(left.context, left.name, left.computed));\n\t          self.addEnsureSafeAssignContext(left.context);\n\t          expression = self.member(left.context, left.name, left.computed) + ast.operator + right;\n\t          self.assign(intoId, expression);\n\t          recursionFn(intoId || expression);\n\t        });\n\t      }, 1);\n\t      break;\n\t    case AST.ArrayExpression:\n\t      args = [];\n\t      forEach(ast.elements, function(expr) {\n\t        self.recurse(expr, self.nextId(), undefined, function(argument) {\n\t          args.push(argument);\n\t        });\n\t      });\n\t      expression = '[' + args.join(',') + ']';\n\t      this.assign(intoId, expression);\n\t      recursionFn(expression);\n\t      break;\n\t    case AST.ObjectExpression:\n\t      args = [];\n\t      forEach(ast.properties, function(property) {\n\t        self.recurse(property.value, self.nextId(), undefined, function(expr) {\n\t          args.push(self.escape(\n\t              property.key.type === AST.Identifier ? property.key.name :\n\t                ('' + property.key.value)) +\n\t              ':' + expr);\n\t        });\n\t      });\n\t      expression = '{' + args.join(',') + '}';\n\t      this.assign(intoId, expression);\n\t      recursionFn(expression);\n\t      break;\n\t    case AST.ThisExpression:\n\t      this.assign(intoId, 's');\n\t      recursionFn('s');\n\t      break;\n\t    case AST.NGValueParameter:\n\t      this.assign(intoId, 'v');\n\t      recursionFn('v');\n\t      break;\n\t    }\n\t  },\n\n\t  getHasOwnProperty: function(element, property) {\n\t    var key = element + '.' + property;\n\t    var own = this.current().own;\n\t    if (!own.hasOwnProperty(key)) {\n\t      own[key] = this.nextId(false, element + '&&(' + this.escape(property) + ' in ' + element + ')');\n\t    }\n\t    return own[key];\n\t  },\n\n\t  assign: function(id, value) {\n\t    if (!id) return;\n\t    this.current().body.push(id, '=', value, ';');\n\t    return id;\n\t  },\n\n\t  filter: function(filterName) {\n\t    if (!this.state.filters.hasOwnProperty(filterName)) {\n\t      this.state.filters[filterName] = this.nextId(true);\n\t    }\n\t    return this.state.filters[filterName];\n\t  },\n\n\t  ifDefined: function(id, defaultValue) {\n\t    return 'ifDefined(' + id + ',' + this.escape(defaultValue) + ')';\n\t  },\n\n\t  plus: function(left, right) {\n\t    return 'plus(' + left + ',' + right + ')';\n\t  },\n\n\t  return_: function(id) {\n\t    this.current().body.push('return ', id, ';');\n\t  },\n\n\t  if_: function(test, alternate, consequent) {\n\t    if (test === true) {\n\t      alternate();\n\t    } else {\n\t      var body = this.current().body;\n\t      body.push('if(', test, '){');\n\t      alternate();\n\t      body.push('}');\n\t      if (consequent) {\n\t        body.push('else{');\n\t        consequent();\n\t        body.push('}');\n\t      }\n\t    }\n\t  },\n\n\t  not: function(expression) {\n\t    return '!(' + expression + ')';\n\t  },\n\n\t  notNull: function(expression) {\n\t    return expression + '!=null';\n\t  },\n\n\t  nonComputedMember: function(left, right) {\n\t    return left + '.' + right;\n\t  },\n\n\t  computedMember: function(left, right) {\n\t    return left + '[' + right + ']';\n\t  },\n\n\t  member: function(left, right, computed) {\n\t    if (computed) return this.computedMember(left, right);\n\t    return this.nonComputedMember(left, right);\n\t  },\n\n\t  addEnsureSafeObject: function(item) {\n\t    this.current().body.push(this.ensureSafeObject(item), ';');\n\t  },\n\n\t  addEnsureSafeMemberName: function(item) {\n\t    this.current().body.push(this.ensureSafeMemberName(item), ';');\n\t  },\n\n\t  addEnsureSafeFunction: function(item) {\n\t    this.current().body.push(this.ensureSafeFunction(item), ';');\n\t  },\n\n\t  addEnsureSafeAssignContext: function(item) {\n\t    this.current().body.push(this.ensureSafeAssignContext(item), ';');\n\t  },\n\n\t  ensureSafeObject: function(item) {\n\t    return 'ensureSafeObject(' + item + ',text)';\n\t  },\n\n\t  ensureSafeMemberName: function(item) {\n\t    return 'ensureSafeMemberName(' + item + ',text)';\n\t  },\n\n\t  ensureSafeFunction: function(item) {\n\t    return 'ensureSafeFunction(' + item + ',text)';\n\t  },\n\n\t  getStringValue: function(item) {\n\t    this.assign(item, 'getStringValue(' + item + ',text)');\n\t  },\n\n\t  ensureSafeAssignContext: function(item) {\n\t    return 'ensureSafeAssignContext(' + item + ',text)';\n\t  },\n\n\t  lazyRecurse: function(ast, intoId, nameId, recursionFn, create, skipWatchIdCheck) {\n\t    var self = this;\n\t    return function() {\n\t      self.recurse(ast, intoId, nameId, recursionFn, create, skipWatchIdCheck);\n\t    };\n\t  },\n\n\t  lazyAssign: function(id, value) {\n\t    var self = this;\n\t    return function() {\n\t      self.assign(id, value);\n\t    };\n\t  },\n\n\t  stringEscapeRegex: /[^ a-zA-Z0-9]/g,\n\n\t  stringEscapeFn: function(c) {\n\t    return '\\\\u' + ('0000' + c.charCodeAt(0).toString(16)).slice(-4);\n\t  },\n\n\t  escape: function(value) {\n\t    if (isString(value)) return \"'\" + value.replace(this.stringEscapeRegex, this.stringEscapeFn) + \"'\";\n\t    if (isNumber(value)) return value.toString();\n\t    if (value === true) return 'true';\n\t    if (value === false) return 'false';\n\t    if (value === null) return 'null';\n\t    if (typeof value === 'undefined') return 'undefined';\n\n\t    throw $parseMinErr('esc', 'IMPOSSIBLE');\n\t  },\n\n\t  nextId: function(skip, init) {\n\t    var id = 'v' + (this.state.nextId++);\n\t    if (!skip) {\n\t      this.current().vars.push(id + (init ? '=' + init : ''));\n\t    }\n\t    return id;\n\t  },\n\n\t  current: function() {\n\t    return this.state[this.state.computing];\n\t  }\n\t};\n\n\n\tfunction ASTInterpreter(astBuilder, $filter) {\n\t  this.astBuilder = astBuilder;\n\t  this.$filter = $filter;\n\t}\n\n\tASTInterpreter.prototype = {\n\t  compile: function(expression, expensiveChecks) {\n\t    var self = this;\n\t    var ast = this.astBuilder.ast(expression);\n\t    this.expression = expression;\n\t    this.expensiveChecks = expensiveChecks;\n\t    findConstantAndWatchExpressions(ast, self.$filter);\n\t    var assignable;\n\t    var assign;\n\t    if ((assignable = assignableAST(ast))) {\n\t      assign = this.recurse(assignable);\n\t    }\n\t    var toWatch = getInputs(ast.body);\n\t    var inputs;\n\t    if (toWatch) {\n\t      inputs = [];\n\t      forEach(toWatch, function(watch, key) {\n\t        var input = self.recurse(watch);\n\t        watch.input = input;\n\t        inputs.push(input);\n\t        watch.watchId = key;\n\t      });\n\t    }\n\t    var expressions = [];\n\t    forEach(ast.body, function(expression) {\n\t      expressions.push(self.recurse(expression.expression));\n\t    });\n\t    var fn = ast.body.length === 0 ? function() {} :\n\t             ast.body.length === 1 ? expressions[0] :\n\t             function(scope, locals) {\n\t               var lastValue;\n\t               forEach(expressions, function(exp) {\n\t                 lastValue = exp(scope, locals);\n\t               });\n\t               return lastValue;\n\t             };\n\t    if (assign) {\n\t      fn.assign = function(scope, value, locals) {\n\t        return assign(scope, locals, value);\n\t      };\n\t    }\n\t    if (inputs) {\n\t      fn.inputs = inputs;\n\t    }\n\t    fn.literal = isLiteral(ast);\n\t    fn.constant = isConstant(ast);\n\t    return fn;\n\t  },\n\n\t  recurse: function(ast, context, create) {\n\t    var left, right, self = this, args, expression;\n\t    if (ast.input) {\n\t      return this.inputs(ast.input, ast.watchId);\n\t    }\n\t    switch (ast.type) {\n\t    case AST.Literal:\n\t      return this.value(ast.value, context);\n\t    case AST.UnaryExpression:\n\t      right = this.recurse(ast.argument);\n\t      return this['unary' + ast.operator](right, context);\n\t    case AST.BinaryExpression:\n\t      left = this.recurse(ast.left);\n\t      right = this.recurse(ast.right);\n\t      return this['binary' + ast.operator](left, right, context);\n\t    case AST.LogicalExpression:\n\t      left = this.recurse(ast.left);\n\t      right = this.recurse(ast.right);\n\t      return this['binary' + ast.operator](left, right, context);\n\t    case AST.ConditionalExpression:\n\t      return this['ternary?:'](\n\t        this.recurse(ast.test),\n\t        this.recurse(ast.alternate),\n\t        this.recurse(ast.consequent),\n\t        context\n\t      );\n\t    case AST.Identifier:\n\t      ensureSafeMemberName(ast.name, self.expression);\n\t      return self.identifier(ast.name,\n\t                             self.expensiveChecks || isPossiblyDangerousMemberName(ast.name),\n\t                             context, create, self.expression);\n\t    case AST.MemberExpression:\n\t      left = this.recurse(ast.object, false, !!create);\n\t      if (!ast.computed) {\n\t        ensureSafeMemberName(ast.property.name, self.expression);\n\t        right = ast.property.name;\n\t      }\n\t      if (ast.computed) right = this.recurse(ast.property);\n\t      return ast.computed ?\n\t        this.computedMember(left, right, context, create, self.expression) :\n\t        this.nonComputedMember(left, right, self.expensiveChecks, context, create, self.expression);\n\t    case AST.CallExpression:\n\t      args = [];\n\t      forEach(ast.arguments, function(expr) {\n\t        args.push(self.recurse(expr));\n\t      });\n\t      if (ast.filter) right = this.$filter(ast.callee.name);\n\t      if (!ast.filter) right = this.recurse(ast.callee, true);\n\t      return ast.filter ?\n\t        function(scope, locals, assign, inputs) {\n\t          var values = [];\n\t          for (var i = 0; i < args.length; ++i) {\n\t            values.push(args[i](scope, locals, assign, inputs));\n\t          }\n\t          var value = right.apply(undefined, values, inputs);\n\t          return context ? {context: undefined, name: undefined, value: value} : value;\n\t        } :\n\t        function(scope, locals, assign, inputs) {\n\t          var rhs = right(scope, locals, assign, inputs);\n\t          var value;\n\t          if (rhs.value != null) {\n\t            ensureSafeObject(rhs.context, self.expression);\n\t            ensureSafeFunction(rhs.value, self.expression);\n\t            var values = [];\n\t            for (var i = 0; i < args.length; ++i) {\n\t              values.push(ensureSafeObject(args[i](scope, locals, assign, inputs), self.expression));\n\t            }\n\t            value = ensureSafeObject(rhs.value.apply(rhs.context, values), self.expression);\n\t          }\n\t          return context ? {value: value} : value;\n\t        };\n\t    case AST.AssignmentExpression:\n\t      left = this.recurse(ast.left, true, 1);\n\t      right = this.recurse(ast.right);\n\t      return function(scope, locals, assign, inputs) {\n\t        var lhs = left(scope, locals, assign, inputs);\n\t        var rhs = right(scope, locals, assign, inputs);\n\t        ensureSafeObject(lhs.value, self.expression);\n\t        ensureSafeAssignContext(lhs.context);\n\t        lhs.context[lhs.name] = rhs;\n\t        return context ? {value: rhs} : rhs;\n\t      };\n\t    case AST.ArrayExpression:\n\t      args = [];\n\t      forEach(ast.elements, function(expr) {\n\t        args.push(self.recurse(expr));\n\t      });\n\t      return function(scope, locals, assign, inputs) {\n\t        var value = [];\n\t        for (var i = 0; i < args.length; ++i) {\n\t          value.push(args[i](scope, locals, assign, inputs));\n\t        }\n\t        return context ? {value: value} : value;\n\t      };\n\t    case AST.ObjectExpression:\n\t      args = [];\n\t      forEach(ast.properties, function(property) {\n\t        args.push({key: property.key.type === AST.Identifier ?\n\t                        property.key.name :\n\t                        ('' + property.key.value),\n\t                   value: self.recurse(property.value)\n\t        });\n\t      });\n\t      return function(scope, locals, assign, inputs) {\n\t        var value = {};\n\t        for (var i = 0; i < args.length; ++i) {\n\t          value[args[i].key] = args[i].value(scope, locals, assign, inputs);\n\t        }\n\t        return context ? {value: value} : value;\n\t      };\n\t    case AST.ThisExpression:\n\t      return function(scope) {\n\t        return context ? {value: scope} : scope;\n\t      };\n\t    case AST.NGValueParameter:\n\t      return function(scope, locals, assign, inputs) {\n\t        return context ? {value: assign} : assign;\n\t      };\n\t    }\n\t  },\n\n\t  'unary+': function(argument, context) {\n\t    return function(scope, locals, assign, inputs) {\n\t      var arg = argument(scope, locals, assign, inputs);\n\t      if (isDefined(arg)) {\n\t        arg = +arg;\n\t      } else {\n\t        arg = 0;\n\t      }\n\t      return context ? {value: arg} : arg;\n\t    };\n\t  },\n\t  'unary-': function(argument, context) {\n\t    return function(scope, locals, assign, inputs) {\n\t      var arg = argument(scope, locals, assign, inputs);\n\t      if (isDefined(arg)) {\n\t        arg = -arg;\n\t      } else {\n\t        arg = 0;\n\t      }\n\t      return context ? {value: arg} : arg;\n\t    };\n\t  },\n\t  'unary!': function(argument, context) {\n\t    return function(scope, locals, assign, inputs) {\n\t      var arg = !argument(scope, locals, assign, inputs);\n\t      return context ? {value: arg} : arg;\n\t    };\n\t  },\n\t  'binary+': function(left, right, context) {\n\t    return function(scope, locals, assign, inputs) {\n\t      var lhs = left(scope, locals, assign, inputs);\n\t      var rhs = right(scope, locals, assign, inputs);\n\t      var arg = plusFn(lhs, rhs);\n\t      return context ? {value: arg} : arg;\n\t    };\n\t  },\n\t  'binary-': function(left, right, context) {\n\t    return function(scope, locals, assign, inputs) {\n\t      var lhs = left(scope, locals, assign, inputs);\n\t      var rhs = right(scope, locals, assign, inputs);\n\t      var arg = (isDefined(lhs) ? lhs : 0) - (isDefined(rhs) ? rhs : 0);\n\t      return context ? {value: arg} : arg;\n\t    };\n\t  },\n\t  'binary*': function(left, right, context) {\n\t    return function(scope, locals, assign, inputs) {\n\t      var arg = left(scope, locals, assign, inputs) * right(scope, locals, assign, inputs);\n\t      return context ? {value: arg} : arg;\n\t    };\n\t  },\n\t  'binary/': function(left, right, context) {\n\t    return function(scope, locals, assign, inputs) {\n\t      var arg = left(scope, locals, assign, inputs) / right(scope, locals, assign, inputs);\n\t      return context ? {value: arg} : arg;\n\t    };\n\t  },\n\t  'binary%': function(left, right, context) {\n\t    return function(scope, locals, assign, inputs) {\n\t      var arg = left(scope, locals, assign, inputs) % right(scope, locals, assign, inputs);\n\t      return context ? {value: arg} : arg;\n\t    };\n\t  },\n\t  'binary===': function(left, right, context) {\n\t    return function(scope, locals, assign, inputs) {\n\t      var arg = left(scope, locals, assign, inputs) === right(scope, locals, assign, inputs);\n\t      return context ? {value: arg} : arg;\n\t    };\n\t  },\n\t  'binary!==': function(left, right, context) {\n\t    return function(scope, locals, assign, inputs) {\n\t      var arg = left(scope, locals, assign, inputs) !== right(scope, locals, assign, inputs);\n\t      return context ? {value: arg} : arg;\n\t    };\n\t  },\n\t  'binary==': function(left, right, context) {\n\t    return function(scope, locals, assign, inputs) {\n\t      var arg = left(scope, locals, assign, inputs) == right(scope, locals, assign, inputs);\n\t      return context ? {value: arg} : arg;\n\t    };\n\t  },\n\t  'binary!=': function(left, right, context) {\n\t    return function(scope, locals, assign, inputs) {\n\t      var arg = left(scope, locals, assign, inputs) != right(scope, locals, assign, inputs);\n\t      return context ? {value: arg} : arg;\n\t    };\n\t  },\n\t  'binary<': function(left, right, context) {\n\t    return function(scope, locals, assign, inputs) {\n\t      var arg = left(scope, locals, assign, inputs) < right(scope, locals, assign, inputs);\n\t      return context ? {value: arg} : arg;\n\t    };\n\t  },\n\t  'binary>': function(left, right, context) {\n\t    return function(scope, locals, assign, inputs) {\n\t      var arg = left(scope, locals, assign, inputs) > right(scope, locals, assign, inputs);\n\t      return context ? {value: arg} : arg;\n\t    };\n\t  },\n\t  'binary<=': function(left, right, context) {\n\t    return function(scope, locals, assign, inputs) {\n\t      var arg = left(scope, locals, assign, inputs) <= right(scope, locals, assign, inputs);\n\t      return context ? {value: arg} : arg;\n\t    };\n\t  },\n\t  'binary>=': function(left, right, context) {\n\t    return function(scope, locals, assign, inputs) {\n\t      var arg = left(scope, locals, assign, inputs) >= right(scope, locals, assign, inputs);\n\t      return context ? {value: arg} : arg;\n\t    };\n\t  },\n\t  'binary&&': function(left, right, context) {\n\t    return function(scope, locals, assign, inputs) {\n\t      var arg = left(scope, locals, assign, inputs) && right(scope, locals, assign, inputs);\n\t      return context ? {value: arg} : arg;\n\t    };\n\t  },\n\t  'binary||': function(left, right, context) {\n\t    return function(scope, locals, assign, inputs) {\n\t      var arg = left(scope, locals, assign, inputs) || right(scope, locals, assign, inputs);\n\t      return context ? {value: arg} : arg;\n\t    };\n\t  },\n\t  'ternary?:': function(test, alternate, consequent, context) {\n\t    return function(scope, locals, assign, inputs) {\n\t      var arg = test(scope, locals, assign, inputs) ? alternate(scope, locals, assign, inputs) : consequent(scope, locals, assign, inputs);\n\t      return context ? {value: arg} : arg;\n\t    };\n\t  },\n\t  value: function(value, context) {\n\t    return function() { return context ? {context: undefined, name: undefined, value: value} : value; };\n\t  },\n\t  identifier: function(name, expensiveChecks, context, create, expression) {\n\t    return function(scope, locals, assign, inputs) {\n\t      var base = locals && (name in locals) ? locals : scope;\n\t      if (create && create !== 1 && base && !(base[name])) {\n\t        base[name] = {};\n\t      }\n\t      var value = base ? base[name] : undefined;\n\t      if (expensiveChecks) {\n\t        ensureSafeObject(value, expression);\n\t      }\n\t      if (context) {\n\t        return {context: base, name: name, value: value};\n\t      } else {\n\t        return value;\n\t      }\n\t    };\n\t  },\n\t  computedMember: function(left, right, context, create, expression) {\n\t    return function(scope, locals, assign, inputs) {\n\t      var lhs = left(scope, locals, assign, inputs);\n\t      var rhs;\n\t      var value;\n\t      if (lhs != null) {\n\t        rhs = right(scope, locals, assign, inputs);\n\t        rhs = getStringValue(rhs);\n\t        ensureSafeMemberName(rhs, expression);\n\t        if (create && create !== 1 && lhs && !(lhs[rhs])) {\n\t          lhs[rhs] = {};\n\t        }\n\t        value = lhs[rhs];\n\t        ensureSafeObject(value, expression);\n\t      }\n\t      if (context) {\n\t        return {context: lhs, name: rhs, value: value};\n\t      } else {\n\t        return value;\n\t      }\n\t    };\n\t  },\n\t  nonComputedMember: function(left, right, expensiveChecks, context, create, expression) {\n\t    return function(scope, locals, assign, inputs) {\n\t      var lhs = left(scope, locals, assign, inputs);\n\t      if (create && create !== 1 && lhs && !(lhs[right])) {\n\t        lhs[right] = {};\n\t      }\n\t      var value = lhs != null ? lhs[right] : undefined;\n\t      if (expensiveChecks || isPossiblyDangerousMemberName(right)) {\n\t        ensureSafeObject(value, expression);\n\t      }\n\t      if (context) {\n\t        return {context: lhs, name: right, value: value};\n\t      } else {\n\t        return value;\n\t      }\n\t    };\n\t  },\n\t  inputs: function(input, watchId) {\n\t    return function(scope, value, locals, inputs) {\n\t      if (inputs) return inputs[watchId];\n\t      return input(scope, value, locals);\n\t    };\n\t  }\n\t};\n\n\t/**\n\t * @constructor\n\t */\n\tvar Parser = function(lexer, $filter, options) {\n\t  this.lexer = lexer;\n\t  this.$filter = $filter;\n\t  this.options = options;\n\t  this.ast = new AST(this.lexer);\n\t  this.astCompiler = options.csp ? new ASTInterpreter(this.ast, $filter) :\n\t                                   new ASTCompiler(this.ast, $filter);\n\t};\n\n\tParser.prototype = {\n\t  constructor: Parser,\n\n\t  parse: function(text) {\n\t    return this.astCompiler.compile(text, this.options.expensiveChecks);\n\t  }\n\t};\n\n\tvar getterFnCacheDefault = createMap();\n\tvar getterFnCacheExpensive = createMap();\n\n\tfunction isPossiblyDangerousMemberName(name) {\n\t  return name == 'constructor';\n\t}\n\n\tvar objectValueOf = Object.prototype.valueOf;\n\n\tfunction getValueOf(value) {\n\t  return isFunction(value.valueOf) ? value.valueOf() : objectValueOf.call(value);\n\t}\n\n\t///////////////////////////////////\n\n\t/**\n\t * @ngdoc service\n\t * @name $parse\n\t * @kind function\n\t *\n\t * @description\n\t *\n\t * Converts Angular {@link guide/expression expression} into a function.\n\t *\n\t * ```js\n\t *   var getter = $parse('user.name');\n\t *   var setter = getter.assign;\n\t *   var context = {user:{name:'angular'}};\n\t *   var locals = {user:{name:'local'}};\n\t *\n\t *   expect(getter(context)).toEqual('angular');\n\t *   setter(context, 'newValue');\n\t *   expect(context.user.name).toEqual('newValue');\n\t *   expect(getter(context, locals)).toEqual('local');\n\t * ```\n\t *\n\t *\n\t * @param {string} expression String expression to compile.\n\t * @returns {function(context, locals)} a function which represents the compiled expression:\n\t *\n\t *    * `context` – `{object}` – an object against which any expressions embedded in the strings\n\t *      are evaluated against (typically a scope object).\n\t *    * `locals` – `{object=}` – local variables context object, useful for overriding values in\n\t *      `context`.\n\t *\n\t *    The returned function also has the following properties:\n\t *      * `literal` – `{boolean}` – whether the expression's top-level node is a JavaScript\n\t *        literal.\n\t *      * `constant` – `{boolean}` – whether the expression is made entirely of JavaScript\n\t *        constant literals.\n\t *      * `assign` – `{?function(context, value)}` – if the expression is assignable, this will be\n\t *        set to a function to change its value on the given context.\n\t *\n\t */\n\n\n\t/**\n\t * @ngdoc provider\n\t * @name $parseProvider\n\t *\n\t * @description\n\t * `$parseProvider` can be used for configuring the default behavior of the {@link ng.$parse $parse}\n\t *  service.\n\t */\n\tfunction $ParseProvider() {\n\t  var cacheDefault = createMap();\n\t  var cacheExpensive = createMap();\n\n\t  this.$get = ['$filter', function($filter) {\n\t    var noUnsafeEval = csp().noUnsafeEval;\n\t    var $parseOptions = {\n\t          csp: noUnsafeEval,\n\t          expensiveChecks: false\n\t        },\n\t        $parseOptionsExpensive = {\n\t          csp: noUnsafeEval,\n\t          expensiveChecks: true\n\t        };\n\n\t    return function $parse(exp, interceptorFn, expensiveChecks) {\n\t      var parsedExpression, oneTime, cacheKey;\n\n\t      switch (typeof exp) {\n\t        case 'string':\n\t          exp = exp.trim();\n\t          cacheKey = exp;\n\n\t          var cache = (expensiveChecks ? cacheExpensive : cacheDefault);\n\t          parsedExpression = cache[cacheKey];\n\n\t          if (!parsedExpression) {\n\t            if (exp.charAt(0) === ':' && exp.charAt(1) === ':') {\n\t              oneTime = true;\n\t              exp = exp.substring(2);\n\t            }\n\t            var parseOptions = expensiveChecks ? $parseOptionsExpensive : $parseOptions;\n\t            var lexer = new Lexer(parseOptions);\n\t            var parser = new Parser(lexer, $filter, parseOptions);\n\t            parsedExpression = parser.parse(exp);\n\t            if (parsedExpression.constant) {\n\t              parsedExpression.$$watchDelegate = constantWatchDelegate;\n\t            } else if (oneTime) {\n\t              parsedExpression.$$watchDelegate = parsedExpression.literal ?\n\t                  oneTimeLiteralWatchDelegate : oneTimeWatchDelegate;\n\t            } else if (parsedExpression.inputs) {\n\t              parsedExpression.$$watchDelegate = inputsWatchDelegate;\n\t            }\n\t            cache[cacheKey] = parsedExpression;\n\t          }\n\t          return addInterceptor(parsedExpression, interceptorFn);\n\n\t        case 'function':\n\t          return addInterceptor(exp, interceptorFn);\n\n\t        default:\n\t          return noop;\n\t      }\n\t    };\n\n\t    function expressionInputDirtyCheck(newValue, oldValueOfValue) {\n\n\t      if (newValue == null || oldValueOfValue == null) { // null/undefined\n\t        return newValue === oldValueOfValue;\n\t      }\n\n\t      if (typeof newValue === 'object') {\n\n\t        // attempt to convert the value to a primitive type\n\t        // TODO(docs): add a note to docs that by implementing valueOf even objects and arrays can\n\t        //             be cheaply dirty-checked\n\t        newValue = getValueOf(newValue);\n\n\t        if (typeof newValue === 'object') {\n\t          // objects/arrays are not supported - deep-watching them would be too expensive\n\t          return false;\n\t        }\n\n\t        // fall-through to the primitive equality check\n\t      }\n\n\t      //Primitive or NaN\n\t      return newValue === oldValueOfValue || (newValue !== newValue && oldValueOfValue !== oldValueOfValue);\n\t    }\n\n\t    function inputsWatchDelegate(scope, listener, objectEquality, parsedExpression, prettyPrintExpression) {\n\t      var inputExpressions = parsedExpression.inputs;\n\t      var lastResult;\n\n\t      if (inputExpressions.length === 1) {\n\t        var oldInputValueOf = expressionInputDirtyCheck; // init to something unique so that equals check fails\n\t        inputExpressions = inputExpressions[0];\n\t        return scope.$watch(function expressionInputWatch(scope) {\n\t          var newInputValue = inputExpressions(scope);\n\t          if (!expressionInputDirtyCheck(newInputValue, oldInputValueOf)) {\n\t            lastResult = parsedExpression(scope, undefined, undefined, [newInputValue]);\n\t            oldInputValueOf = newInputValue && getValueOf(newInputValue);\n\t          }\n\t          return lastResult;\n\t        }, listener, objectEquality, prettyPrintExpression);\n\t      }\n\n\t      var oldInputValueOfValues = [];\n\t      var oldInputValues = [];\n\t      for (var i = 0, ii = inputExpressions.length; i < ii; i++) {\n\t        oldInputValueOfValues[i] = expressionInputDirtyCheck; // init to something unique so that equals check fails\n\t        oldInputValues[i] = null;\n\t      }\n\n\t      return scope.$watch(function expressionInputsWatch(scope) {\n\t        var changed = false;\n\n\t        for (var i = 0, ii = inputExpressions.length; i < ii; i++) {\n\t          var newInputValue = inputExpressions[i](scope);\n\t          if (changed || (changed = !expressionInputDirtyCheck(newInputValue, oldInputValueOfValues[i]))) {\n\t            oldInputValues[i] = newInputValue;\n\t            oldInputValueOfValues[i] = newInputValue && getValueOf(newInputValue);\n\t          }\n\t        }\n\n\t        if (changed) {\n\t          lastResult = parsedExpression(scope, undefined, undefined, oldInputValues);\n\t        }\n\n\t        return lastResult;\n\t      }, listener, objectEquality, prettyPrintExpression);\n\t    }\n\n\t    function oneTimeWatchDelegate(scope, listener, objectEquality, parsedExpression) {\n\t      var unwatch, lastValue;\n\t      return unwatch = scope.$watch(function oneTimeWatch(scope) {\n\t        return parsedExpression(scope);\n\t      }, function oneTimeListener(value, old, scope) {\n\t        lastValue = value;\n\t        if (isFunction(listener)) {\n\t          listener.apply(this, arguments);\n\t        }\n\t        if (isDefined(value)) {\n\t          scope.$$postDigest(function() {\n\t            if (isDefined(lastValue)) {\n\t              unwatch();\n\t            }\n\t          });\n\t        }\n\t      }, objectEquality);\n\t    }\n\n\t    function oneTimeLiteralWatchDelegate(scope, listener, objectEquality, parsedExpression) {\n\t      var unwatch, lastValue;\n\t      return unwatch = scope.$watch(function oneTimeWatch(scope) {\n\t        return parsedExpression(scope);\n\t      }, function oneTimeListener(value, old, scope) {\n\t        lastValue = value;\n\t        if (isFunction(listener)) {\n\t          listener.call(this, value, old, scope);\n\t        }\n\t        if (isAllDefined(value)) {\n\t          scope.$$postDigest(function() {\n\t            if (isAllDefined(lastValue)) unwatch();\n\t          });\n\t        }\n\t      }, objectEquality);\n\n\t      function isAllDefined(value) {\n\t        var allDefined = true;\n\t        forEach(value, function(val) {\n\t          if (!isDefined(val)) allDefined = false;\n\t        });\n\t        return allDefined;\n\t      }\n\t    }\n\n\t    function constantWatchDelegate(scope, listener, objectEquality, parsedExpression) {\n\t      var unwatch;\n\t      return unwatch = scope.$watch(function constantWatch(scope) {\n\t        return parsedExpression(scope);\n\t      }, function constantListener(value, old, scope) {\n\t        if (isFunction(listener)) {\n\t          listener.apply(this, arguments);\n\t        }\n\t        unwatch();\n\t      }, objectEquality);\n\t    }\n\n\t    function addInterceptor(parsedExpression, interceptorFn) {\n\t      if (!interceptorFn) return parsedExpression;\n\t      var watchDelegate = parsedExpression.$$watchDelegate;\n\t      var useInputs = false;\n\n\t      var regularWatch =\n\t          watchDelegate !== oneTimeLiteralWatchDelegate &&\n\t          watchDelegate !== oneTimeWatchDelegate;\n\n\t      var fn = regularWatch ? function regularInterceptedExpression(scope, locals, assign, inputs) {\n\t        var value = useInputs && inputs ? inputs[0] : parsedExpression(scope, locals, assign, inputs);\n\t        return interceptorFn(value, scope, locals);\n\t      } : function oneTimeInterceptedExpression(scope, locals, assign, inputs) {\n\t        var value = parsedExpression(scope, locals, assign, inputs);\n\t        var result = interceptorFn(value, scope, locals);\n\t        // we only return the interceptor's result if the\n\t        // initial value is defined (for bind-once)\n\t        return isDefined(value) ? result : value;\n\t      };\n\n\t      // Propagate $$watchDelegates other then inputsWatchDelegate\n\t      if (parsedExpression.$$watchDelegate &&\n\t          parsedExpression.$$watchDelegate !== inputsWatchDelegate) {\n\t        fn.$$watchDelegate = parsedExpression.$$watchDelegate;\n\t      } else if (!interceptorFn.$stateful) {\n\t        // If there is an interceptor, but no watchDelegate then treat the interceptor like\n\t        // we treat filters - it is assumed to be a pure function unless flagged with $stateful\n\t        fn.$$watchDelegate = inputsWatchDelegate;\n\t        useInputs = !parsedExpression.inputs;\n\t        fn.inputs = parsedExpression.inputs ? parsedExpression.inputs : [parsedExpression];\n\t      }\n\n\t      return fn;\n\t    }\n\t  }];\n\t}\n\n\t/**\n\t * @ngdoc service\n\t * @name $q\n\t * @requires $rootScope\n\t *\n\t * @description\n\t * A service that helps you run functions asynchronously, and use their return values (or exceptions)\n\t * when they are done processing.\n\t *\n\t * This is an implementation of promises/deferred objects inspired by\n\t * [Kris Kowal's Q](https://github.com/kriskowal/q).\n\t *\n\t * $q can be used in two fashions --- one which is more similar to Kris Kowal's Q or jQuery's Deferred\n\t * implementations, and the other which resembles ES6 promises to some degree.\n\t *\n\t * # $q constructor\n\t *\n\t * The streamlined ES6 style promise is essentially just using $q as a constructor which takes a `resolver`\n\t * function as the first argument. This is similar to the native Promise implementation from ES6 Harmony,\n\t * see [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise).\n\t *\n\t * While the constructor-style use is supported, not all of the supporting methods from ES6 Harmony promises are\n\t * available yet.\n\t *\n\t * It can be used like so:\n\t *\n\t * ```js\n\t *   // for the purpose of this example let's assume that variables `$q` and `okToGreet`\n\t *   // are available in the current lexical scope (they could have been injected or passed in).\n\t *\n\t *   function asyncGreet(name) {\n\t *     // perform some asynchronous operation, resolve or reject the promise when appropriate.\n\t *     return $q(function(resolve, reject) {\n\t *       setTimeout(function() {\n\t *         if (okToGreet(name)) {\n\t *           resolve('Hello, ' + name + '!');\n\t *         } else {\n\t *           reject('Greeting ' + name + ' is not allowed.');\n\t *         }\n\t *       }, 1000);\n\t *     });\n\t *   }\n\t *\n\t *   var promise = asyncGreet('Robin Hood');\n\t *   promise.then(function(greeting) {\n\t *     alert('Success: ' + greeting);\n\t *   }, function(reason) {\n\t *     alert('Failed: ' + reason);\n\t *   });\n\t * ```\n\t *\n\t * Note: progress/notify callbacks are not currently supported via the ES6-style interface.\n\t *\n\t * Note: unlike ES6 behaviour, an exception thrown in the constructor function will NOT implicitly reject the promise.\n\t *\n\t * However, the more traditional CommonJS-style usage is still available, and documented below.\n\t *\n\t * [The CommonJS Promise proposal](http://wiki.commonjs.org/wiki/Promises) describes a promise as an\n\t * interface for interacting with an object that represents the result of an action that is\n\t * performed asynchronously, and may or may not be finished at any given point in time.\n\t *\n\t * From the perspective of dealing with error handling, deferred and promise APIs are to\n\t * asynchronous programming what `try`, `catch` and `throw` keywords are to synchronous programming.\n\t *\n\t * ```js\n\t *   // for the purpose of this example let's assume that variables `$q` and `okToGreet`\n\t *   // are available in the current lexical scope (they could have been injected or passed in).\n\t *\n\t *   function asyncGreet(name) {\n\t *     var deferred = $q.defer();\n\t *\n\t *     setTimeout(function() {\n\t *       deferred.notify('About to greet ' + name + '.');\n\t *\n\t *       if (okToGreet(name)) {\n\t *         deferred.resolve('Hello, ' + name + '!');\n\t *       } else {\n\t *         deferred.reject('Greeting ' + name + ' is not allowed.');\n\t *       }\n\t *     }, 1000);\n\t *\n\t *     return deferred.promise;\n\t *   }\n\t *\n\t *   var promise = asyncGreet('Robin Hood');\n\t *   promise.then(function(greeting) {\n\t *     alert('Success: ' + greeting);\n\t *   }, function(reason) {\n\t *     alert('Failed: ' + reason);\n\t *   }, function(update) {\n\t *     alert('Got notification: ' + update);\n\t *   });\n\t * ```\n\t *\n\t * At first it might not be obvious why this extra complexity is worth the trouble. The payoff\n\t * comes in the way of guarantees that promise and deferred APIs make, see\n\t * https://github.com/kriskowal/uncommonjs/blob/master/promises/specification.md.\n\t *\n\t * Additionally the promise api allows for composition that is very hard to do with the\n\t * traditional callback ([CPS](http://en.wikipedia.org/wiki/Continuation-passing_style)) approach.\n\t * For more on this please see the [Q documentation](https://github.com/kriskowal/q) especially the\n\t * section on serial or parallel joining of promises.\n\t *\n\t * # The Deferred API\n\t *\n\t * A new instance of deferred is constructed by calling `$q.defer()`.\n\t *\n\t * The purpose of the deferred object is to expose the associated Promise instance as well as APIs\n\t * that can be used for signaling the successful or unsuccessful completion, as well as the status\n\t * of the task.\n\t *\n\t * **Methods**\n\t *\n\t * - `resolve(value)` – resolves the derived promise with the `value`. If the value is a rejection\n\t *   constructed via `$q.reject`, the promise will be rejected instead.\n\t * - `reject(reason)` – rejects the derived promise with the `reason`. This is equivalent to\n\t *   resolving it with a rejection constructed via `$q.reject`.\n\t * - `notify(value)` - provides updates on the status of the promise's execution. This may be called\n\t *   multiple times before the promise is either resolved or rejected.\n\t *\n\t * **Properties**\n\t *\n\t * - promise – `{Promise}` – promise object associated with this deferred.\n\t *\n\t *\n\t * # The Promise API\n\t *\n\t * A new promise instance is created when a deferred instance is created and can be retrieved by\n\t * calling `deferred.promise`.\n\t *\n\t * The purpose of the promise object is to allow for interested parties to get access to the result\n\t * of the deferred task when it completes.\n\t *\n\t * **Methods**\n\t *\n\t * - `then(successCallback, errorCallback, notifyCallback)` – regardless of when the promise was or\n\t *   will be resolved or rejected, `then` calls one of the success or error callbacks asynchronously\n\t *   as soon as the result is available. The callbacks are called with a single argument: the result\n\t *   or rejection reason. Additionally, the notify callback may be called zero or more times to\n\t *   provide a progress indication, before the promise is resolved or rejected.\n\t *\n\t *   This method *returns a new promise* which is resolved or rejected via the return value of the\n\t *   `successCallback`, `errorCallback` (unless that value is a promise, in which case it is resolved\n\t *   with the value which is resolved in that promise using\n\t *   [promise chaining](http://www.html5rocks.com/en/tutorials/es6/promises/#toc-promises-queues)).\n\t *   It also notifies via the return value of the `notifyCallback` method. The promise cannot be\n\t *   resolved or rejected from the notifyCallback method.\n\t *\n\t * - `catch(errorCallback)` – shorthand for `promise.then(null, errorCallback)`\n\t *\n\t * - `finally(callback, notifyCallback)` – allows you to observe either the fulfillment or rejection of a promise,\n\t *   but to do so without modifying the final value. This is useful to release resources or do some\n\t *   clean-up that needs to be done whether the promise was rejected or resolved. See the [full\n\t *   specification](https://github.com/kriskowal/q/wiki/API-Reference#promisefinallycallback) for\n\t *   more information.\n\t *\n\t * # Chaining promises\n\t *\n\t * Because calling the `then` method of a promise returns a new derived promise, it is easily\n\t * possible to create a chain of promises:\n\t *\n\t * ```js\n\t *   promiseB = promiseA.then(function(result) {\n\t *     return result + 1;\n\t *   });\n\t *\n\t *   // promiseB will be resolved immediately after promiseA is resolved and its value\n\t *   // will be the result of promiseA incremented by 1\n\t * ```\n\t *\n\t * It is possible to create chains of any length and since a promise can be resolved with another\n\t * promise (which will defer its resolution further), it is possible to pause/defer resolution of\n\t * the promises at any point in the chain. This makes it possible to implement powerful APIs like\n\t * $http's response interceptors.\n\t *\n\t *\n\t * # Differences between Kris Kowal's Q and $q\n\t *\n\t *  There are two main differences:\n\t *\n\t * - $q is integrated with the {@link ng.$rootScope.Scope} Scope model observation\n\t *   mechanism in angular, which means faster propagation of resolution or rejection into your\n\t *   models and avoiding unnecessary browser repaints, which would result in flickering UI.\n\t * - Q has many more features than $q, but that comes at a cost of bytes. $q is tiny, but contains\n\t *   all the important functionality needed for common async tasks.\n\t *\n\t *  # Testing\n\t *\n\t *  ```js\n\t *    it('should simulate promise', inject(function($q, $rootScope) {\n\t *      var deferred = $q.defer();\n\t *      var promise = deferred.promise;\n\t *      var resolvedValue;\n\t *\n\t *      promise.then(function(value) { resolvedValue = value; });\n\t *      expect(resolvedValue).toBeUndefined();\n\t *\n\t *      // Simulate resolving of promise\n\t *      deferred.resolve(123);\n\t *      // Note that the 'then' function does not get called synchronously.\n\t *      // This is because we want the promise API to always be async, whether or not\n\t *      // it got called synchronously or asynchronously.\n\t *      expect(resolvedValue).toBeUndefined();\n\t *\n\t *      // Propagate promise resolution to 'then' functions using $apply().\n\t *      $rootScope.$apply();\n\t *      expect(resolvedValue).toEqual(123);\n\t *    }));\n\t *  ```\n\t *\n\t * @param {function(function, function)} resolver Function which is responsible for resolving or\n\t *   rejecting the newly created promise. The first parameter is a function which resolves the\n\t *   promise, the second parameter is a function which rejects the promise.\n\t *\n\t * @returns {Promise} The newly created promise.\n\t */\n\tfunction $QProvider() {\n\n\t  this.$get = ['$rootScope', '$exceptionHandler', function($rootScope, $exceptionHandler) {\n\t    return qFactory(function(callback) {\n\t      $rootScope.$evalAsync(callback);\n\t    }, $exceptionHandler);\n\t  }];\n\t}\n\n\tfunction $$QProvider() {\n\t  this.$get = ['$browser', '$exceptionHandler', function($browser, $exceptionHandler) {\n\t    return qFactory(function(callback) {\n\t      $browser.defer(callback);\n\t    }, $exceptionHandler);\n\t  }];\n\t}\n\n\t/**\n\t * Constructs a promise manager.\n\t *\n\t * @param {function(function)} nextTick Function for executing functions in the next turn.\n\t * @param {function(...*)} exceptionHandler Function into which unexpected exceptions are passed for\n\t *     debugging purposes.\n\t * @returns {object} Promise manager.\n\t */\n\tfunction qFactory(nextTick, exceptionHandler) {\n\t  var $qMinErr = minErr('$q', TypeError);\n\t  function callOnce(self, resolveFn, rejectFn) {\n\t    var called = false;\n\t    function wrap(fn) {\n\t      return function(value) {\n\t        if (called) return;\n\t        called = true;\n\t        fn.call(self, value);\n\t      };\n\t    }\n\n\t    return [wrap(resolveFn), wrap(rejectFn)];\n\t  }\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name ng.$q#defer\n\t   * @kind function\n\t   *\n\t   * @description\n\t   * Creates a `Deferred` object which represents a task which will finish in the future.\n\t   *\n\t   * @returns {Deferred} Returns a new instance of deferred.\n\t   */\n\t  var defer = function() {\n\t    return new Deferred();\n\t  };\n\n\t  function Promise() {\n\t    this.$$state = { status: 0 };\n\t  }\n\n\t  extend(Promise.prototype, {\n\t    then: function(onFulfilled, onRejected, progressBack) {\n\t      if (isUndefined(onFulfilled) && isUndefined(onRejected) && isUndefined(progressBack)) {\n\t        return this;\n\t      }\n\t      var result = new Deferred();\n\n\t      this.$$state.pending = this.$$state.pending || [];\n\t      this.$$state.pending.push([result, onFulfilled, onRejected, progressBack]);\n\t      if (this.$$state.status > 0) scheduleProcessQueue(this.$$state);\n\n\t      return result.promise;\n\t    },\n\n\t    \"catch\": function(callback) {\n\t      return this.then(null, callback);\n\t    },\n\n\t    \"finally\": function(callback, progressBack) {\n\t      return this.then(function(value) {\n\t        return handleCallback(value, true, callback);\n\t      }, function(error) {\n\t        return handleCallback(error, false, callback);\n\t      }, progressBack);\n\t    }\n\t  });\n\n\t  //Faster, more basic than angular.bind http://jsperf.com/angular-bind-vs-custom-vs-native\n\t  function simpleBind(context, fn) {\n\t    return function(value) {\n\t      fn.call(context, value);\n\t    };\n\t  }\n\n\t  function processQueue(state) {\n\t    var fn, deferred, pending;\n\n\t    pending = state.pending;\n\t    state.processScheduled = false;\n\t    state.pending = undefined;\n\t    for (var i = 0, ii = pending.length; i < ii; ++i) {\n\t      deferred = pending[i][0];\n\t      fn = pending[i][state.status];\n\t      try {\n\t        if (isFunction(fn)) {\n\t          deferred.resolve(fn(state.value));\n\t        } else if (state.status === 1) {\n\t          deferred.resolve(state.value);\n\t        } else {\n\t          deferred.reject(state.value);\n\t        }\n\t      } catch (e) {\n\t        deferred.reject(e);\n\t        exceptionHandler(e);\n\t      }\n\t    }\n\t  }\n\n\t  function scheduleProcessQueue(state) {\n\t    if (state.processScheduled || !state.pending) return;\n\t    state.processScheduled = true;\n\t    nextTick(function() { processQueue(state); });\n\t  }\n\n\t  function Deferred() {\n\t    this.promise = new Promise();\n\t    //Necessary to support unbound execution :/\n\t    this.resolve = simpleBind(this, this.resolve);\n\t    this.reject = simpleBind(this, this.reject);\n\t    this.notify = simpleBind(this, this.notify);\n\t  }\n\n\t  extend(Deferred.prototype, {\n\t    resolve: function(val) {\n\t      if (this.promise.$$state.status) return;\n\t      if (val === this.promise) {\n\t        this.$$reject($qMinErr(\n\t          'qcycle',\n\t          \"Expected promise to be resolved with value other than itself '{0}'\",\n\t          val));\n\t      } else {\n\t        this.$$resolve(val);\n\t      }\n\n\t    },\n\n\t    $$resolve: function(val) {\n\t      var then, fns;\n\n\t      fns = callOnce(this, this.$$resolve, this.$$reject);\n\t      try {\n\t        if ((isObject(val) || isFunction(val))) then = val && val.then;\n\t        if (isFunction(then)) {\n\t          this.promise.$$state.status = -1;\n\t          then.call(val, fns[0], fns[1], this.notify);\n\t        } else {\n\t          this.promise.$$state.value = val;\n\t          this.promise.$$state.status = 1;\n\t          scheduleProcessQueue(this.promise.$$state);\n\t        }\n\t      } catch (e) {\n\t        fns[1](e);\n\t        exceptionHandler(e);\n\t      }\n\t    },\n\n\t    reject: function(reason) {\n\t      if (this.promise.$$state.status) return;\n\t      this.$$reject(reason);\n\t    },\n\n\t    $$reject: function(reason) {\n\t      this.promise.$$state.value = reason;\n\t      this.promise.$$state.status = 2;\n\t      scheduleProcessQueue(this.promise.$$state);\n\t    },\n\n\t    notify: function(progress) {\n\t      var callbacks = this.promise.$$state.pending;\n\n\t      if ((this.promise.$$state.status <= 0) && callbacks && callbacks.length) {\n\t        nextTick(function() {\n\t          var callback, result;\n\t          for (var i = 0, ii = callbacks.length; i < ii; i++) {\n\t            result = callbacks[i][0];\n\t            callback = callbacks[i][3];\n\t            try {\n\t              result.notify(isFunction(callback) ? callback(progress) : progress);\n\t            } catch (e) {\n\t              exceptionHandler(e);\n\t            }\n\t          }\n\t        });\n\t      }\n\t    }\n\t  });\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $q#reject\n\t   * @kind function\n\t   *\n\t   * @description\n\t   * Creates a promise that is resolved as rejected with the specified `reason`. This api should be\n\t   * used to forward rejection in a chain of promises. If you are dealing with the last promise in\n\t   * a promise chain, you don't need to worry about it.\n\t   *\n\t   * When comparing deferreds/promises to the familiar behavior of try/catch/throw, think of\n\t   * `reject` as the `throw` keyword in JavaScript. This also means that if you \"catch\" an error via\n\t   * a promise error callback and you want to forward the error to the promise derived from the\n\t   * current promise, you have to \"rethrow\" the error by returning a rejection constructed via\n\t   * `reject`.\n\t   *\n\t   * ```js\n\t   *   promiseB = promiseA.then(function(result) {\n\t   *     // success: do something and resolve promiseB\n\t   *     //          with the old or a new result\n\t   *     return result;\n\t   *   }, function(reason) {\n\t   *     // error: handle the error if possible and\n\t   *     //        resolve promiseB with newPromiseOrValue,\n\t   *     //        otherwise forward the rejection to promiseB\n\t   *     if (canHandle(reason)) {\n\t   *      // handle the error and recover\n\t   *      return newPromiseOrValue;\n\t   *     }\n\t   *     return $q.reject(reason);\n\t   *   });\n\t   * ```\n\t   *\n\t   * @param {*} reason Constant, message, exception or an object representing the rejection reason.\n\t   * @returns {Promise} Returns a promise that was already resolved as rejected with the `reason`.\n\t   */\n\t  var reject = function(reason) {\n\t    var result = new Deferred();\n\t    result.reject(reason);\n\t    return result.promise;\n\t  };\n\n\t  var makePromise = function makePromise(value, resolved) {\n\t    var result = new Deferred();\n\t    if (resolved) {\n\t      result.resolve(value);\n\t    } else {\n\t      result.reject(value);\n\t    }\n\t    return result.promise;\n\t  };\n\n\t  var handleCallback = function handleCallback(value, isResolved, callback) {\n\t    var callbackOutput = null;\n\t    try {\n\t      if (isFunction(callback)) callbackOutput = callback();\n\t    } catch (e) {\n\t      return makePromise(e, false);\n\t    }\n\t    if (isPromiseLike(callbackOutput)) {\n\t      return callbackOutput.then(function() {\n\t        return makePromise(value, isResolved);\n\t      }, function(error) {\n\t        return makePromise(error, false);\n\t      });\n\t    } else {\n\t      return makePromise(value, isResolved);\n\t    }\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $q#when\n\t   * @kind function\n\t   *\n\t   * @description\n\t   * Wraps an object that might be a value or a (3rd party) then-able promise into a $q promise.\n\t   * This is useful when you are dealing with an object that might or might not be a promise, or if\n\t   * the promise comes from a source that can't be trusted.\n\t   *\n\t   * @param {*} value Value or a promise\n\t   * @param {Function=} successCallback\n\t   * @param {Function=} errorCallback\n\t   * @param {Function=} progressCallback\n\t   * @returns {Promise} Returns a promise of the passed value or promise\n\t   */\n\n\n\t  var when = function(value, callback, errback, progressBack) {\n\t    var result = new Deferred();\n\t    result.resolve(value);\n\t    return result.promise.then(callback, errback, progressBack);\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $q#resolve\n\t   * @kind function\n\t   *\n\t   * @description\n\t   * Alias of {@link ng.$q#when when} to maintain naming consistency with ES6.\n\t   *\n\t   * @param {*} value Value or a promise\n\t   * @param {Function=} successCallback\n\t   * @param {Function=} errorCallback\n\t   * @param {Function=} progressCallback\n\t   * @returns {Promise} Returns a promise of the passed value or promise\n\t   */\n\t  var resolve = when;\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $q#all\n\t   * @kind function\n\t   *\n\t   * @description\n\t   * Combines multiple promises into a single promise that is resolved when all of the input\n\t   * promises are resolved.\n\t   *\n\t   * @param {Array.<Promise>|Object.<Promise>} promises An array or hash of promises.\n\t   * @returns {Promise} Returns a single promise that will be resolved with an array/hash of values,\n\t   *   each value corresponding to the promise at the same index/key in the `promises` array/hash.\n\t   *   If any of the promises is resolved with a rejection, this resulting promise will be rejected\n\t   *   with the same rejection value.\n\t   */\n\n\t  function all(promises) {\n\t    var deferred = new Deferred(),\n\t        counter = 0,\n\t        results = isArray(promises) ? [] : {};\n\n\t    forEach(promises, function(promise, key) {\n\t      counter++;\n\t      when(promise).then(function(value) {\n\t        if (results.hasOwnProperty(key)) return;\n\t        results[key] = value;\n\t        if (!(--counter)) deferred.resolve(results);\n\t      }, function(reason) {\n\t        if (results.hasOwnProperty(key)) return;\n\t        deferred.reject(reason);\n\t      });\n\t    });\n\n\t    if (counter === 0) {\n\t      deferred.resolve(results);\n\t    }\n\n\t    return deferred.promise;\n\t  }\n\n\t  var $Q = function Q(resolver) {\n\t    if (!isFunction(resolver)) {\n\t      throw $qMinErr('norslvr', \"Expected resolverFn, got '{0}'\", resolver);\n\t    }\n\n\t    if (!(this instanceof Q)) {\n\t      // More useful when $Q is the Promise itself.\n\t      return new Q(resolver);\n\t    }\n\n\t    var deferred = new Deferred();\n\n\t    function resolveFn(value) {\n\t      deferred.resolve(value);\n\t    }\n\n\t    function rejectFn(reason) {\n\t      deferred.reject(reason);\n\t    }\n\n\t    resolver(resolveFn, rejectFn);\n\n\t    return deferred.promise;\n\t  };\n\n\t  $Q.defer = defer;\n\t  $Q.reject = reject;\n\t  $Q.when = when;\n\t  $Q.resolve = resolve;\n\t  $Q.all = all;\n\n\t  return $Q;\n\t}\n\n\tfunction $$RAFProvider() { //rAF\n\t  this.$get = ['$window', '$timeout', function($window, $timeout) {\n\t    var requestAnimationFrame = $window.requestAnimationFrame ||\n\t                                $window.webkitRequestAnimationFrame;\n\n\t    var cancelAnimationFrame = $window.cancelAnimationFrame ||\n\t                               $window.webkitCancelAnimationFrame ||\n\t                               $window.webkitCancelRequestAnimationFrame;\n\n\t    var rafSupported = !!requestAnimationFrame;\n\t    var raf = rafSupported\n\t      ? function(fn) {\n\t          var id = requestAnimationFrame(fn);\n\t          return function() {\n\t            cancelAnimationFrame(id);\n\t          };\n\t        }\n\t      : function(fn) {\n\t          var timer = $timeout(fn, 16.66, false); // 1000 / 60 = 16.666\n\t          return function() {\n\t            $timeout.cancel(timer);\n\t          };\n\t        };\n\n\t    raf.supported = rafSupported;\n\n\t    return raf;\n\t  }];\n\t}\n\n\t/**\n\t * DESIGN NOTES\n\t *\n\t * The design decisions behind the scope are heavily favored for speed and memory consumption.\n\t *\n\t * The typical use of scope is to watch the expressions, which most of the time return the same\n\t * value as last time so we optimize the operation.\n\t *\n\t * Closures construction is expensive in terms of speed as well as memory:\n\t *   - No closures, instead use prototypical inheritance for API\n\t *   - Internal state needs to be stored on scope directly, which means that private state is\n\t *     exposed as $$____ properties\n\t *\n\t * Loop operations are optimized by using while(count--) { ... }\n\t *   - This means that in order to keep the same order of execution as addition we have to add\n\t *     items to the array at the beginning (unshift) instead of at the end (push)\n\t *\n\t * Child scopes are created and removed often\n\t *   - Using an array would be slow since inserts in the middle are expensive; so we use linked lists\n\t *\n\t * There are fewer watches than observers. This is why you don't want the observer to be implemented\n\t * in the same way as watch. Watch requires return of the initialization function which is expensive\n\t * to construct.\n\t */\n\n\n\t/**\n\t * @ngdoc provider\n\t * @name $rootScopeProvider\n\t * @description\n\t *\n\t * Provider for the $rootScope service.\n\t */\n\n\t/**\n\t * @ngdoc method\n\t * @name $rootScopeProvider#digestTtl\n\t * @description\n\t *\n\t * Sets the number of `$digest` iterations the scope should attempt to execute before giving up and\n\t * assuming that the model is unstable.\n\t *\n\t * The current default is 10 iterations.\n\t *\n\t * In complex applications it's possible that the dependencies between `$watch`s will result in\n\t * several digest iterations. However if an application needs more than the default 10 digest\n\t * iterations for its model to stabilize then you should investigate what is causing the model to\n\t * continuously change during the digest.\n\t *\n\t * Increasing the TTL could have performance implications, so you should not change it without\n\t * proper justification.\n\t *\n\t * @param {number} limit The number of digest iterations.\n\t */\n\n\n\t/**\n\t * @ngdoc service\n\t * @name $rootScope\n\t * @description\n\t *\n\t * Every application has a single root {@link ng.$rootScope.Scope scope}.\n\t * All other scopes are descendant scopes of the root scope. Scopes provide separation\n\t * between the model and the view, via a mechanism for watching the model for changes.\n\t * They also provide event emission/broadcast and subscription facility. See the\n\t * {@link guide/scope developer guide on scopes}.\n\t */\n\tfunction $RootScopeProvider() {\n\t  var TTL = 10;\n\t  var $rootScopeMinErr = minErr('$rootScope');\n\t  var lastDirtyWatch = null;\n\t  var applyAsyncId = null;\n\n\t  this.digestTtl = function(value) {\n\t    if (arguments.length) {\n\t      TTL = value;\n\t    }\n\t    return TTL;\n\t  };\n\n\t  function createChildScopeClass(parent) {\n\t    function ChildScope() {\n\t      this.$$watchers = this.$$nextSibling =\n\t          this.$$childHead = this.$$childTail = null;\n\t      this.$$listeners = {};\n\t      this.$$listenerCount = {};\n\t      this.$$watchersCount = 0;\n\t      this.$id = nextUid();\n\t      this.$$ChildScope = null;\n\t    }\n\t    ChildScope.prototype = parent;\n\t    return ChildScope;\n\t  }\n\n\t  this.$get = ['$injector', '$exceptionHandler', '$parse', '$browser',\n\t      function($injector, $exceptionHandler, $parse, $browser) {\n\n\t    function destroyChildScope($event) {\n\t        $event.currentScope.$$destroyed = true;\n\t    }\n\n\t    function cleanUpScope($scope) {\n\n\t      if (msie === 9) {\n\t        // There is a memory leak in IE9 if all child scopes are not disconnected\n\t        // completely when a scope is destroyed. So this code will recurse up through\n\t        // all this scopes children\n\t        //\n\t        // See issue https://github.com/angular/angular.js/issues/10706\n\t        $scope.$$childHead && cleanUpScope($scope.$$childHead);\n\t        $scope.$$nextSibling && cleanUpScope($scope.$$nextSibling);\n\t      }\n\n\t      // The code below works around IE9 and V8's memory leaks\n\t      //\n\t      // See:\n\t      // - https://code.google.com/p/v8/issues/detail?id=2073#c26\n\t      // - https://github.com/angular/angular.js/issues/6794#issuecomment-38648909\n\t      // - https://github.com/angular/angular.js/issues/1313#issuecomment-10378451\n\n\t      $scope.$parent = $scope.$$nextSibling = $scope.$$prevSibling = $scope.$$childHead =\n\t          $scope.$$childTail = $scope.$root = $scope.$$watchers = null;\n\t    }\n\n\t    /**\n\t     * @ngdoc type\n\t     * @name $rootScope.Scope\n\t     *\n\t     * @description\n\t     * A root scope can be retrieved using the {@link ng.$rootScope $rootScope} key from the\n\t     * {@link auto.$injector $injector}. Child scopes are created using the\n\t     * {@link ng.$rootScope.Scope#$new $new()} method. (Most scopes are created automatically when\n\t     * compiled HTML template is executed.) See also the {@link guide/scope Scopes guide} for\n\t     * an in-depth introduction and usage examples.\n\t     *\n\t     *\n\t     * # Inheritance\n\t     * A scope can inherit from a parent scope, as in this example:\n\t     * ```js\n\t         var parent = $rootScope;\n\t         var child = parent.$new();\n\n\t         parent.salutation = \"Hello\";\n\t         expect(child.salutation).toEqual('Hello');\n\n\t         child.salutation = \"Welcome\";\n\t         expect(child.salutation).toEqual('Welcome');\n\t         expect(parent.salutation).toEqual('Hello');\n\t     * ```\n\t     *\n\t     * When interacting with `Scope` in tests, additional helper methods are available on the\n\t     * instances of `Scope` type. See {@link ngMock.$rootScope.Scope ngMock Scope} for additional\n\t     * details.\n\t     *\n\t     *\n\t     * @param {Object.<string, function()>=} providers Map of service factory which need to be\n\t     *                                       provided for the current scope. Defaults to {@link ng}.\n\t     * @param {Object.<string, *>=} instanceCache Provides pre-instantiated services which should\n\t     *                              append/override services provided by `providers`. This is handy\n\t     *                              when unit-testing and having the need to override a default\n\t     *                              service.\n\t     * @returns {Object} Newly created scope.\n\t     *\n\t     */\n\t    function Scope() {\n\t      this.$id = nextUid();\n\t      this.$$phase = this.$parent = this.$$watchers =\n\t                     this.$$nextSibling = this.$$prevSibling =\n\t                     this.$$childHead = this.$$childTail = null;\n\t      this.$root = this;\n\t      this.$$destroyed = false;\n\t      this.$$listeners = {};\n\t      this.$$listenerCount = {};\n\t      this.$$watchersCount = 0;\n\t      this.$$isolateBindings = null;\n\t    }\n\n\t    /**\n\t     * @ngdoc property\n\t     * @name $rootScope.Scope#$id\n\t     *\n\t     * @description\n\t     * Unique scope ID (monotonically increasing) useful for debugging.\n\t     */\n\n\t     /**\n\t      * @ngdoc property\n\t      * @name $rootScope.Scope#$parent\n\t      *\n\t      * @description\n\t      * Reference to the parent scope.\n\t      */\n\n\t      /**\n\t       * @ngdoc property\n\t       * @name $rootScope.Scope#$root\n\t       *\n\t       * @description\n\t       * Reference to the root scope.\n\t       */\n\n\t    Scope.prototype = {\n\t      constructor: Scope,\n\t      /**\n\t       * @ngdoc method\n\t       * @name $rootScope.Scope#$new\n\t       * @kind function\n\t       *\n\t       * @description\n\t       * Creates a new child {@link ng.$rootScope.Scope scope}.\n\t       *\n\t       * The parent scope will propagate the {@link ng.$rootScope.Scope#$digest $digest()} event.\n\t       * The scope can be removed from the scope hierarchy using {@link ng.$rootScope.Scope#$destroy $destroy()}.\n\t       *\n\t       * {@link ng.$rootScope.Scope#$destroy $destroy()} must be called on a scope when it is\n\t       * desired for the scope and its child scopes to be permanently detached from the parent and\n\t       * thus stop participating in model change detection and listener notification by invoking.\n\t       *\n\t       * @param {boolean} isolate If true, then the scope does not prototypically inherit from the\n\t       *         parent scope. The scope is isolated, as it can not see parent scope properties.\n\t       *         When creating widgets, it is useful for the widget to not accidentally read parent\n\t       *         state.\n\t       *\n\t       * @param {Scope} [parent=this] The {@link ng.$rootScope.Scope `Scope`} that will be the `$parent`\n\t       *                              of the newly created scope. Defaults to `this` scope if not provided.\n\t       *                              This is used when creating a transclude scope to correctly place it\n\t       *                              in the scope hierarchy while maintaining the correct prototypical\n\t       *                              inheritance.\n\t       *\n\t       * @returns {Object} The newly created child scope.\n\t       *\n\t       */\n\t      $new: function(isolate, parent) {\n\t        var child;\n\n\t        parent = parent || this;\n\n\t        if (isolate) {\n\t          child = new Scope();\n\t          child.$root = this.$root;\n\t        } else {\n\t          // Only create a child scope class if somebody asks for one,\n\t          // but cache it to allow the VM to optimize lookups.\n\t          if (!this.$$ChildScope) {\n\t            this.$$ChildScope = createChildScopeClass(this);\n\t          }\n\t          child = new this.$$ChildScope();\n\t        }\n\t        child.$parent = parent;\n\t        child.$$prevSibling = parent.$$childTail;\n\t        if (parent.$$childHead) {\n\t          parent.$$childTail.$$nextSibling = child;\n\t          parent.$$childTail = child;\n\t        } else {\n\t          parent.$$childHead = parent.$$childTail = child;\n\t        }\n\n\t        // When the new scope is not isolated or we inherit from `this`, and\n\t        // the parent scope is destroyed, the property `$$destroyed` is inherited\n\t        // prototypically. In all other cases, this property needs to be set\n\t        // when the parent scope is destroyed.\n\t        // The listener needs to be added after the parent is set\n\t        if (isolate || parent != this) child.$on('$destroy', destroyChildScope);\n\n\t        return child;\n\t      },\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $rootScope.Scope#$watch\n\t       * @kind function\n\t       *\n\t       * @description\n\t       * Registers a `listener` callback to be executed whenever the `watchExpression` changes.\n\t       *\n\t       * - The `watchExpression` is called on every call to {@link ng.$rootScope.Scope#$digest\n\t       *   $digest()} and should return the value that will be watched. (`watchExpression` should not change\n\t       *   its value when executed multiple times with the same input because it may be executed multiple\n\t       *   times by {@link ng.$rootScope.Scope#$digest $digest()}. That is, `watchExpression` should be\n\t       *   [idempotent](http://en.wikipedia.org/wiki/Idempotence).\n\t       * - The `listener` is called only when the value from the current `watchExpression` and the\n\t       *   previous call to `watchExpression` are not equal (with the exception of the initial run,\n\t       *   see below). Inequality is determined according to reference inequality,\n\t       *   [strict comparison](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Comparison_Operators)\n\t       *    via the `!==` Javascript operator, unless `objectEquality == true`\n\t       *   (see next point)\n\t       * - When `objectEquality == true`, inequality of the `watchExpression` is determined\n\t       *   according to the {@link angular.equals} function. To save the value of the object for\n\t       *   later comparison, the {@link angular.copy} function is used. This therefore means that\n\t       *   watching complex objects will have adverse memory and performance implications.\n\t       * - The watch `listener` may change the model, which may trigger other `listener`s to fire.\n\t       *   This is achieved by rerunning the watchers until no changes are detected. The rerun\n\t       *   iteration limit is 10 to prevent an infinite loop deadlock.\n\t       *\n\t       *\n\t       * If you want to be notified whenever {@link ng.$rootScope.Scope#$digest $digest} is called,\n\t       * you can register a `watchExpression` function with no `listener`. (Be prepared for\n\t       * multiple calls to your `watchExpression` because it will execute multiple times in a\n\t       * single {@link ng.$rootScope.Scope#$digest $digest} cycle if a change is detected.)\n\t       *\n\t       * After a watcher is registered with the scope, the `listener` fn is called asynchronously\n\t       * (via {@link ng.$rootScope.Scope#$evalAsync $evalAsync}) to initialize the\n\t       * watcher. In rare cases, this is undesirable because the listener is called when the result\n\t       * of `watchExpression` didn't change. To detect this scenario within the `listener` fn, you\n\t       * can compare the `newVal` and `oldVal`. If these two values are identical (`===`) then the\n\t       * listener was called due to initialization.\n\t       *\n\t       *\n\t       *\n\t       * # Example\n\t       * ```js\n\t           // let's assume that scope was dependency injected as the $rootScope\n\t           var scope = $rootScope;\n\t           scope.name = 'misko';\n\t           scope.counter = 0;\n\n\t           expect(scope.counter).toEqual(0);\n\t           scope.$watch('name', function(newValue, oldValue) {\n\t             scope.counter = scope.counter + 1;\n\t           });\n\t           expect(scope.counter).toEqual(0);\n\n\t           scope.$digest();\n\t           // the listener is always called during the first $digest loop after it was registered\n\t           expect(scope.counter).toEqual(1);\n\n\t           scope.$digest();\n\t           // but now it will not be called unless the value changes\n\t           expect(scope.counter).toEqual(1);\n\n\t           scope.name = 'adam';\n\t           scope.$digest();\n\t           expect(scope.counter).toEqual(2);\n\n\n\n\t           // Using a function as a watchExpression\n\t           var food;\n\t           scope.foodCounter = 0;\n\t           expect(scope.foodCounter).toEqual(0);\n\t           scope.$watch(\n\t             // This function returns the value being watched. It is called for each turn of the $digest loop\n\t             function() { return food; },\n\t             // This is the change listener, called when the value returned from the above function changes\n\t             function(newValue, oldValue) {\n\t               if ( newValue !== oldValue ) {\n\t                 // Only increment the counter if the value changed\n\t                 scope.foodCounter = scope.foodCounter + 1;\n\t               }\n\t             }\n\t           );\n\t           // No digest has been run so the counter will be zero\n\t           expect(scope.foodCounter).toEqual(0);\n\n\t           // Run the digest but since food has not changed count will still be zero\n\t           scope.$digest();\n\t           expect(scope.foodCounter).toEqual(0);\n\n\t           // Update food and run digest.  Now the counter will increment\n\t           food = 'cheeseburger';\n\t           scope.$digest();\n\t           expect(scope.foodCounter).toEqual(1);\n\n\t       * ```\n\t       *\n\t       *\n\t       *\n\t       * @param {(function()|string)} watchExpression Expression that is evaluated on each\n\t       *    {@link ng.$rootScope.Scope#$digest $digest} cycle. A change in the return value triggers\n\t       *    a call to the `listener`.\n\t       *\n\t       *    - `string`: Evaluated as {@link guide/expression expression}\n\t       *    - `function(scope)`: called with current `scope` as a parameter.\n\t       * @param {function(newVal, oldVal, scope)} listener Callback called whenever the value\n\t       *    of `watchExpression` changes.\n\t       *\n\t       *    - `newVal` contains the current value of the `watchExpression`\n\t       *    - `oldVal` contains the previous value of the `watchExpression`\n\t       *    - `scope` refers to the current scope\n\t       * @param {boolean=} objectEquality Compare for object equality using {@link angular.equals} instead of\n\t       *     comparing for reference equality.\n\t       * @returns {function()} Returns a deregistration function for this listener.\n\t       */\n\t      $watch: function(watchExp, listener, objectEquality, prettyPrintExpression) {\n\t        var get = $parse(watchExp);\n\n\t        if (get.$$watchDelegate) {\n\t          return get.$$watchDelegate(this, listener, objectEquality, get, watchExp);\n\t        }\n\t        var scope = this,\n\t            array = scope.$$watchers,\n\t            watcher = {\n\t              fn: listener,\n\t              last: initWatchVal,\n\t              get: get,\n\t              exp: prettyPrintExpression || watchExp,\n\t              eq: !!objectEquality\n\t            };\n\n\t        lastDirtyWatch = null;\n\n\t        if (!isFunction(listener)) {\n\t          watcher.fn = noop;\n\t        }\n\n\t        if (!array) {\n\t          array = scope.$$watchers = [];\n\t        }\n\t        // we use unshift since we use a while loop in $digest for speed.\n\t        // the while loop reads in reverse order.\n\t        array.unshift(watcher);\n\t        incrementWatchersCount(this, 1);\n\n\t        return function deregisterWatch() {\n\t          if (arrayRemove(array, watcher) >= 0) {\n\t            incrementWatchersCount(scope, -1);\n\t          }\n\t          lastDirtyWatch = null;\n\t        };\n\t      },\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $rootScope.Scope#$watchGroup\n\t       * @kind function\n\t       *\n\t       * @description\n\t       * A variant of {@link ng.$rootScope.Scope#$watch $watch()} where it watches an array of `watchExpressions`.\n\t       * If any one expression in the collection changes the `listener` is executed.\n\t       *\n\t       * - The items in the `watchExpressions` array are observed via standard $watch operation and are examined on every\n\t       *   call to $digest() to see if any items changes.\n\t       * - The `listener` is called whenever any expression in the `watchExpressions` array changes.\n\t       *\n\t       * @param {Array.<string|Function(scope)>} watchExpressions Array of expressions that will be individually\n\t       * watched using {@link ng.$rootScope.Scope#$watch $watch()}\n\t       *\n\t       * @param {function(newValues, oldValues, scope)} listener Callback called whenever the return value of any\n\t       *    expression in `watchExpressions` changes\n\t       *    The `newValues` array contains the current values of the `watchExpressions`, with the indexes matching\n\t       *    those of `watchExpression`\n\t       *    and the `oldValues` array contains the previous values of the `watchExpressions`, with the indexes matching\n\t       *    those of `watchExpression`\n\t       *    The `scope` refers to the current scope.\n\t       * @returns {function()} Returns a de-registration function for all listeners.\n\t       */\n\t      $watchGroup: function(watchExpressions, listener) {\n\t        var oldValues = new Array(watchExpressions.length);\n\t        var newValues = new Array(watchExpressions.length);\n\t        var deregisterFns = [];\n\t        var self = this;\n\t        var changeReactionScheduled = false;\n\t        var firstRun = true;\n\n\t        if (!watchExpressions.length) {\n\t          // No expressions means we call the listener ASAP\n\t          var shouldCall = true;\n\t          self.$evalAsync(function() {\n\t            if (shouldCall) listener(newValues, newValues, self);\n\t          });\n\t          return function deregisterWatchGroup() {\n\t            shouldCall = false;\n\t          };\n\t        }\n\n\t        if (watchExpressions.length === 1) {\n\t          // Special case size of one\n\t          return this.$watch(watchExpressions[0], function watchGroupAction(value, oldValue, scope) {\n\t            newValues[0] = value;\n\t            oldValues[0] = oldValue;\n\t            listener(newValues, (value === oldValue) ? newValues : oldValues, scope);\n\t          });\n\t        }\n\n\t        forEach(watchExpressions, function(expr, i) {\n\t          var unwatchFn = self.$watch(expr, function watchGroupSubAction(value, oldValue) {\n\t            newValues[i] = value;\n\t            oldValues[i] = oldValue;\n\t            if (!changeReactionScheduled) {\n\t              changeReactionScheduled = true;\n\t              self.$evalAsync(watchGroupAction);\n\t            }\n\t          });\n\t          deregisterFns.push(unwatchFn);\n\t        });\n\n\t        function watchGroupAction() {\n\t          changeReactionScheduled = false;\n\n\t          if (firstRun) {\n\t            firstRun = false;\n\t            listener(newValues, newValues, self);\n\t          } else {\n\t            listener(newValues, oldValues, self);\n\t          }\n\t        }\n\n\t        return function deregisterWatchGroup() {\n\t          while (deregisterFns.length) {\n\t            deregisterFns.shift()();\n\t          }\n\t        };\n\t      },\n\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $rootScope.Scope#$watchCollection\n\t       * @kind function\n\t       *\n\t       * @description\n\t       * Shallow watches the properties of an object and fires whenever any of the properties change\n\t       * (for arrays, this implies watching the array items; for object maps, this implies watching\n\t       * the properties). If a change is detected, the `listener` callback is fired.\n\t       *\n\t       * - The `obj` collection is observed via standard $watch operation and is examined on every\n\t       *   call to $digest() to see if any items have been added, removed, or moved.\n\t       * - The `listener` is called whenever anything within the `obj` has changed. Examples include\n\t       *   adding, removing, and moving items belonging to an object or array.\n\t       *\n\t       *\n\t       * # Example\n\t       * ```js\n\t          $scope.names = ['igor', 'matias', 'misko', 'james'];\n\t          $scope.dataCount = 4;\n\n\t          $scope.$watchCollection('names', function(newNames, oldNames) {\n\t            $scope.dataCount = newNames.length;\n\t          });\n\n\t          expect($scope.dataCount).toEqual(4);\n\t          $scope.$digest();\n\n\t          //still at 4 ... no changes\n\t          expect($scope.dataCount).toEqual(4);\n\n\t          $scope.names.pop();\n\t          $scope.$digest();\n\n\t          //now there's been a change\n\t          expect($scope.dataCount).toEqual(3);\n\t       * ```\n\t       *\n\t       *\n\t       * @param {string|function(scope)} obj Evaluated as {@link guide/expression expression}. The\n\t       *    expression value should evaluate to an object or an array which is observed on each\n\t       *    {@link ng.$rootScope.Scope#$digest $digest} cycle. Any shallow change within the\n\t       *    collection will trigger a call to the `listener`.\n\t       *\n\t       * @param {function(newCollection, oldCollection, scope)} listener a callback function called\n\t       *    when a change is detected.\n\t       *    - The `newCollection` object is the newly modified data obtained from the `obj` expression\n\t       *    - The `oldCollection` object is a copy of the former collection data.\n\t       *      Due to performance considerations, the`oldCollection` value is computed only if the\n\t       *      `listener` function declares two or more arguments.\n\t       *    - The `scope` argument refers to the current scope.\n\t       *\n\t       * @returns {function()} Returns a de-registration function for this listener. When the\n\t       *    de-registration function is executed, the internal watch operation is terminated.\n\t       */\n\t      $watchCollection: function(obj, listener) {\n\t        $watchCollectionInterceptor.$stateful = true;\n\n\t        var self = this;\n\t        // the current value, updated on each dirty-check run\n\t        var newValue;\n\t        // a shallow copy of the newValue from the last dirty-check run,\n\t        // updated to match newValue during dirty-check run\n\t        var oldValue;\n\t        // a shallow copy of the newValue from when the last change happened\n\t        var veryOldValue;\n\t        // only track veryOldValue if the listener is asking for it\n\t        var trackVeryOldValue = (listener.length > 1);\n\t        var changeDetected = 0;\n\t        var changeDetector = $parse(obj, $watchCollectionInterceptor);\n\t        var internalArray = [];\n\t        var internalObject = {};\n\t        var initRun = true;\n\t        var oldLength = 0;\n\n\t        function $watchCollectionInterceptor(_value) {\n\t          newValue = _value;\n\t          var newLength, key, bothNaN, newItem, oldItem;\n\n\t          // If the new value is undefined, then return undefined as the watch may be a one-time watch\n\t          if (isUndefined(newValue)) return;\n\n\t          if (!isObject(newValue)) { // if primitive\n\t            if (oldValue !== newValue) {\n\t              oldValue = newValue;\n\t              changeDetected++;\n\t            }\n\t          } else if (isArrayLike(newValue)) {\n\t            if (oldValue !== internalArray) {\n\t              // we are transitioning from something which was not an array into array.\n\t              oldValue = internalArray;\n\t              oldLength = oldValue.length = 0;\n\t              changeDetected++;\n\t            }\n\n\t            newLength = newValue.length;\n\n\t            if (oldLength !== newLength) {\n\t              // if lengths do not match we need to trigger change notification\n\t              changeDetected++;\n\t              oldValue.length = oldLength = newLength;\n\t            }\n\t            // copy the items to oldValue and look for changes.\n\t            for (var i = 0; i < newLength; i++) {\n\t              oldItem = oldValue[i];\n\t              newItem = newValue[i];\n\n\t              bothNaN = (oldItem !== oldItem) && (newItem !== newItem);\n\t              if (!bothNaN && (oldItem !== newItem)) {\n\t                changeDetected++;\n\t                oldValue[i] = newItem;\n\t              }\n\t            }\n\t          } else {\n\t            if (oldValue !== internalObject) {\n\t              // we are transitioning from something which was not an object into object.\n\t              oldValue = internalObject = {};\n\t              oldLength = 0;\n\t              changeDetected++;\n\t            }\n\t            // copy the items to oldValue and look for changes.\n\t            newLength = 0;\n\t            for (key in newValue) {\n\t              if (hasOwnProperty.call(newValue, key)) {\n\t                newLength++;\n\t                newItem = newValue[key];\n\t                oldItem = oldValue[key];\n\n\t                if (key in oldValue) {\n\t                  bothNaN = (oldItem !== oldItem) && (newItem !== newItem);\n\t                  if (!bothNaN && (oldItem !== newItem)) {\n\t                    changeDetected++;\n\t                    oldValue[key] = newItem;\n\t                  }\n\t                } else {\n\t                  oldLength++;\n\t                  oldValue[key] = newItem;\n\t                  changeDetected++;\n\t                }\n\t              }\n\t            }\n\t            if (oldLength > newLength) {\n\t              // we used to have more keys, need to find them and destroy them.\n\t              changeDetected++;\n\t              for (key in oldValue) {\n\t                if (!hasOwnProperty.call(newValue, key)) {\n\t                  oldLength--;\n\t                  delete oldValue[key];\n\t                }\n\t              }\n\t            }\n\t          }\n\t          return changeDetected;\n\t        }\n\n\t        function $watchCollectionAction() {\n\t          if (initRun) {\n\t            initRun = false;\n\t            listener(newValue, newValue, self);\n\t          } else {\n\t            listener(newValue, veryOldValue, self);\n\t          }\n\n\t          // make a copy for the next time a collection is changed\n\t          if (trackVeryOldValue) {\n\t            if (!isObject(newValue)) {\n\t              //primitive\n\t              veryOldValue = newValue;\n\t            } else if (isArrayLike(newValue)) {\n\t              veryOldValue = new Array(newValue.length);\n\t              for (var i = 0; i < newValue.length; i++) {\n\t                veryOldValue[i] = newValue[i];\n\t              }\n\t            } else { // if object\n\t              veryOldValue = {};\n\t              for (var key in newValue) {\n\t                if (hasOwnProperty.call(newValue, key)) {\n\t                  veryOldValue[key] = newValue[key];\n\t                }\n\t              }\n\t            }\n\t          }\n\t        }\n\n\t        return this.$watch(changeDetector, $watchCollectionAction);\n\t      },\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $rootScope.Scope#$digest\n\t       * @kind function\n\t       *\n\t       * @description\n\t       * Processes all of the {@link ng.$rootScope.Scope#$watch watchers} of the current scope and\n\t       * its children. Because a {@link ng.$rootScope.Scope#$watch watcher}'s listener can change\n\t       * the model, the `$digest()` keeps calling the {@link ng.$rootScope.Scope#$watch watchers}\n\t       * until no more listeners are firing. This means that it is possible to get into an infinite\n\t       * loop. This function will throw `'Maximum iteration limit exceeded.'` if the number of\n\t       * iterations exceeds 10.\n\t       *\n\t       * Usually, you don't call `$digest()` directly in\n\t       * {@link ng.directive:ngController controllers} or in\n\t       * {@link ng.$compileProvider#directive directives}.\n\t       * Instead, you should call {@link ng.$rootScope.Scope#$apply $apply()} (typically from within\n\t       * a {@link ng.$compileProvider#directive directive}), which will force a `$digest()`.\n\t       *\n\t       * If you want to be notified whenever `$digest()` is called,\n\t       * you can register a `watchExpression` function with\n\t       * {@link ng.$rootScope.Scope#$watch $watch()} with no `listener`.\n\t       *\n\t       * In unit tests, you may need to call `$digest()` to simulate the scope life cycle.\n\t       *\n\t       * # Example\n\t       * ```js\n\t           var scope = ...;\n\t           scope.name = 'misko';\n\t           scope.counter = 0;\n\n\t           expect(scope.counter).toEqual(0);\n\t           scope.$watch('name', function(newValue, oldValue) {\n\t             scope.counter = scope.counter + 1;\n\t           });\n\t           expect(scope.counter).toEqual(0);\n\n\t           scope.$digest();\n\t           // the listener is always called during the first $digest loop after it was registered\n\t           expect(scope.counter).toEqual(1);\n\n\t           scope.$digest();\n\t           // but now it will not be called unless the value changes\n\t           expect(scope.counter).toEqual(1);\n\n\t           scope.name = 'adam';\n\t           scope.$digest();\n\t           expect(scope.counter).toEqual(2);\n\t       * ```\n\t       *\n\t       */\n\t      $digest: function() {\n\t        var watch, value, last,\n\t            watchers,\n\t            length,\n\t            dirty, ttl = TTL,\n\t            next, current, target = this,\n\t            watchLog = [],\n\t            logIdx, logMsg, asyncTask;\n\n\t        beginPhase('$digest');\n\t        // Check for changes to browser url that happened in sync before the call to $digest\n\t        $browser.$$checkUrlChange();\n\n\t        if (this === $rootScope && applyAsyncId !== null) {\n\t          // If this is the root scope, and $applyAsync has scheduled a deferred $apply(), then\n\t          // cancel the scheduled $apply and flush the queue of expressions to be evaluated.\n\t          $browser.defer.cancel(applyAsyncId);\n\t          flushApplyAsync();\n\t        }\n\n\t        lastDirtyWatch = null;\n\n\t        do { // \"while dirty\" loop\n\t          dirty = false;\n\t          current = target;\n\n\t          while (asyncQueue.length) {\n\t            try {\n\t              asyncTask = asyncQueue.shift();\n\t              asyncTask.scope.$eval(asyncTask.expression, asyncTask.locals);\n\t            } catch (e) {\n\t              $exceptionHandler(e);\n\t            }\n\t            lastDirtyWatch = null;\n\t          }\n\n\t          traverseScopesLoop:\n\t          do { // \"traverse the scopes\" loop\n\t            if ((watchers = current.$$watchers)) {\n\t              // process our watches\n\t              length = watchers.length;\n\t              while (length--) {\n\t                try {\n\t                  watch = watchers[length];\n\t                  // Most common watches are on primitives, in which case we can short\n\t                  // circuit it with === operator, only when === fails do we use .equals\n\t                  if (watch) {\n\t                    if ((value = watch.get(current)) !== (last = watch.last) &&\n\t                        !(watch.eq\n\t                            ? equals(value, last)\n\t                            : (typeof value === 'number' && typeof last === 'number'\n\t                               && isNaN(value) && isNaN(last)))) {\n\t                      dirty = true;\n\t                      lastDirtyWatch = watch;\n\t                      watch.last = watch.eq ? copy(value, null) : value;\n\t                      watch.fn(value, ((last === initWatchVal) ? value : last), current);\n\t                      if (ttl < 5) {\n\t                        logIdx = 4 - ttl;\n\t                        if (!watchLog[logIdx]) watchLog[logIdx] = [];\n\t                        watchLog[logIdx].push({\n\t                          msg: isFunction(watch.exp) ? 'fn: ' + (watch.exp.name || watch.exp.toString()) : watch.exp,\n\t                          newVal: value,\n\t                          oldVal: last\n\t                        });\n\t                      }\n\t                    } else if (watch === lastDirtyWatch) {\n\t                      // If the most recently dirty watcher is now clean, short circuit since the remaining watchers\n\t                      // have already been tested.\n\t                      dirty = false;\n\t                      break traverseScopesLoop;\n\t                    }\n\t                  }\n\t                } catch (e) {\n\t                  $exceptionHandler(e);\n\t                }\n\t              }\n\t            }\n\n\t            // Insanity Warning: scope depth-first traversal\n\t            // yes, this code is a bit crazy, but it works and we have tests to prove it!\n\t            // this piece should be kept in sync with the traversal in $broadcast\n\t            if (!(next = ((current.$$watchersCount && current.$$childHead) ||\n\t                (current !== target && current.$$nextSibling)))) {\n\t              while (current !== target && !(next = current.$$nextSibling)) {\n\t                current = current.$parent;\n\t              }\n\t            }\n\t          } while ((current = next));\n\n\t          // `break traverseScopesLoop;` takes us to here\n\n\t          if ((dirty || asyncQueue.length) && !(ttl--)) {\n\t            clearPhase();\n\t            throw $rootScopeMinErr('infdig',\n\t                '{0} $digest() iterations reached. Aborting!\\n' +\n\t                'Watchers fired in the last 5 iterations: {1}',\n\t                TTL, watchLog);\n\t          }\n\n\t        } while (dirty || asyncQueue.length);\n\n\t        clearPhase();\n\n\t        while (postDigestQueue.length) {\n\t          try {\n\t            postDigestQueue.shift()();\n\t          } catch (e) {\n\t            $exceptionHandler(e);\n\t          }\n\t        }\n\t      },\n\n\n\t      /**\n\t       * @ngdoc event\n\t       * @name $rootScope.Scope#$destroy\n\t       * @eventType broadcast on scope being destroyed\n\t       *\n\t       * @description\n\t       * Broadcasted when a scope and its children are being destroyed.\n\t       *\n\t       * Note that, in AngularJS, there is also a `$destroy` jQuery event, which can be used to\n\t       * clean up DOM bindings before an element is removed from the DOM.\n\t       */\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $rootScope.Scope#$destroy\n\t       * @kind function\n\t       *\n\t       * @description\n\t       * Removes the current scope (and all of its children) from the parent scope. Removal implies\n\t       * that calls to {@link ng.$rootScope.Scope#$digest $digest()} will no longer\n\t       * propagate to the current scope and its children. Removal also implies that the current\n\t       * scope is eligible for garbage collection.\n\t       *\n\t       * The `$destroy()` is usually used by directives such as\n\t       * {@link ng.directive:ngRepeat ngRepeat} for managing the\n\t       * unrolling of the loop.\n\t       *\n\t       * Just before a scope is destroyed, a `$destroy` event is broadcasted on this scope.\n\t       * Application code can register a `$destroy` event handler that will give it a chance to\n\t       * perform any necessary cleanup.\n\t       *\n\t       * Note that, in AngularJS, there is also a `$destroy` jQuery event, which can be used to\n\t       * clean up DOM bindings before an element is removed from the DOM.\n\t       */\n\t      $destroy: function() {\n\t        // We can't destroy a scope that has been already destroyed.\n\t        if (this.$$destroyed) return;\n\t        var parent = this.$parent;\n\n\t        this.$broadcast('$destroy');\n\t        this.$$destroyed = true;\n\n\t        if (this === $rootScope) {\n\t          //Remove handlers attached to window when $rootScope is removed\n\t          $browser.$$applicationDestroyed();\n\t        }\n\n\t        incrementWatchersCount(this, -this.$$watchersCount);\n\t        for (var eventName in this.$$listenerCount) {\n\t          decrementListenerCount(this, this.$$listenerCount[eventName], eventName);\n\t        }\n\n\t        // sever all the references to parent scopes (after this cleanup, the current scope should\n\t        // not be retained by any of our references and should be eligible for garbage collection)\n\t        if (parent && parent.$$childHead == this) parent.$$childHead = this.$$nextSibling;\n\t        if (parent && parent.$$childTail == this) parent.$$childTail = this.$$prevSibling;\n\t        if (this.$$prevSibling) this.$$prevSibling.$$nextSibling = this.$$nextSibling;\n\t        if (this.$$nextSibling) this.$$nextSibling.$$prevSibling = this.$$prevSibling;\n\n\t        // Disable listeners, watchers and apply/digest methods\n\t        this.$destroy = this.$digest = this.$apply = this.$evalAsync = this.$applyAsync = noop;\n\t        this.$on = this.$watch = this.$watchGroup = function() { return noop; };\n\t        this.$$listeners = {};\n\n\t        // Disconnect the next sibling to prevent `cleanUpScope` destroying those too\n\t        this.$$nextSibling = null;\n\t        cleanUpScope(this);\n\t      },\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $rootScope.Scope#$eval\n\t       * @kind function\n\t       *\n\t       * @description\n\t       * Executes the `expression` on the current scope and returns the result. Any exceptions in\n\t       * the expression are propagated (uncaught). This is useful when evaluating Angular\n\t       * expressions.\n\t       *\n\t       * # Example\n\t       * ```js\n\t           var scope = ng.$rootScope.Scope();\n\t           scope.a = 1;\n\t           scope.b = 2;\n\n\t           expect(scope.$eval('a+b')).toEqual(3);\n\t           expect(scope.$eval(function(scope){ return scope.a + scope.b; })).toEqual(3);\n\t       * ```\n\t       *\n\t       * @param {(string|function())=} expression An angular expression to be executed.\n\t       *\n\t       *    - `string`: execute using the rules as defined in  {@link guide/expression expression}.\n\t       *    - `function(scope)`: execute the function with the current `scope` parameter.\n\t       *\n\t       * @param {(object)=} locals Local variables object, useful for overriding values in scope.\n\t       * @returns {*} The result of evaluating the expression.\n\t       */\n\t      $eval: function(expr, locals) {\n\t        return $parse(expr)(this, locals);\n\t      },\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $rootScope.Scope#$evalAsync\n\t       * @kind function\n\t       *\n\t       * @description\n\t       * Executes the expression on the current scope at a later point in time.\n\t       *\n\t       * The `$evalAsync` makes no guarantees as to when the `expression` will be executed, only\n\t       * that:\n\t       *\n\t       *   - it will execute after the function that scheduled the evaluation (preferably before DOM\n\t       *     rendering).\n\t       *   - at least one {@link ng.$rootScope.Scope#$digest $digest cycle} will be performed after\n\t       *     `expression` execution.\n\t       *\n\t       * Any exceptions from the execution of the expression are forwarded to the\n\t       * {@link ng.$exceptionHandler $exceptionHandler} service.\n\t       *\n\t       * __Note:__ if this function is called outside of a `$digest` cycle, a new `$digest` cycle\n\t       * will be scheduled. However, it is encouraged to always call code that changes the model\n\t       * from within an `$apply` call. That includes code evaluated via `$evalAsync`.\n\t       *\n\t       * @param {(string|function())=} expression An angular expression to be executed.\n\t       *\n\t       *    - `string`: execute using the rules as defined in {@link guide/expression expression}.\n\t       *    - `function(scope)`: execute the function with the current `scope` parameter.\n\t       *\n\t       * @param {(object)=} locals Local variables object, useful for overriding values in scope.\n\t       */\n\t      $evalAsync: function(expr, locals) {\n\t        // if we are outside of an $digest loop and this is the first time we are scheduling async\n\t        // task also schedule async auto-flush\n\t        if (!$rootScope.$$phase && !asyncQueue.length) {\n\t          $browser.defer(function() {\n\t            if (asyncQueue.length) {\n\t              $rootScope.$digest();\n\t            }\n\t          });\n\t        }\n\n\t        asyncQueue.push({scope: this, expression: expr, locals: locals});\n\t      },\n\n\t      $$postDigest: function(fn) {\n\t        postDigestQueue.push(fn);\n\t      },\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $rootScope.Scope#$apply\n\t       * @kind function\n\t       *\n\t       * @description\n\t       * `$apply()` is used to execute an expression in angular from outside of the angular\n\t       * framework. (For example from browser DOM events, setTimeout, XHR or third party libraries).\n\t       * Because we are calling into the angular framework we need to perform proper scope life\n\t       * cycle of {@link ng.$exceptionHandler exception handling},\n\t       * {@link ng.$rootScope.Scope#$digest executing watches}.\n\t       *\n\t       * ## Life cycle\n\t       *\n\t       * # Pseudo-Code of `$apply()`\n\t       * ```js\n\t           function $apply(expr) {\n\t             try {\n\t               return $eval(expr);\n\t             } catch (e) {\n\t               $exceptionHandler(e);\n\t             } finally {\n\t               $root.$digest();\n\t             }\n\t           }\n\t       * ```\n\t       *\n\t       *\n\t       * Scope's `$apply()` method transitions through the following stages:\n\t       *\n\t       * 1. The {@link guide/expression expression} is executed using the\n\t       *    {@link ng.$rootScope.Scope#$eval $eval()} method.\n\t       * 2. Any exceptions from the execution of the expression are forwarded to the\n\t       *    {@link ng.$exceptionHandler $exceptionHandler} service.\n\t       * 3. The {@link ng.$rootScope.Scope#$watch watch} listeners are fired immediately after the\n\t       *    expression was executed using the {@link ng.$rootScope.Scope#$digest $digest()} method.\n\t       *\n\t       *\n\t       * @param {(string|function())=} exp An angular expression to be executed.\n\t       *\n\t       *    - `string`: execute using the rules as defined in {@link guide/expression expression}.\n\t       *    - `function(scope)`: execute the function with current `scope` parameter.\n\t       *\n\t       * @returns {*} The result of evaluating the expression.\n\t       */\n\t      $apply: function(expr) {\n\t        try {\n\t          beginPhase('$apply');\n\t          try {\n\t            return this.$eval(expr);\n\t          } finally {\n\t            clearPhase();\n\t          }\n\t        } catch (e) {\n\t          $exceptionHandler(e);\n\t        } finally {\n\t          try {\n\t            $rootScope.$digest();\n\t          } catch (e) {\n\t            $exceptionHandler(e);\n\t            throw e;\n\t          }\n\t        }\n\t      },\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $rootScope.Scope#$applyAsync\n\t       * @kind function\n\t       *\n\t       * @description\n\t       * Schedule the invocation of $apply to occur at a later time. The actual time difference\n\t       * varies across browsers, but is typically around ~10 milliseconds.\n\t       *\n\t       * This can be used to queue up multiple expressions which need to be evaluated in the same\n\t       * digest.\n\t       *\n\t       * @param {(string|function())=} exp An angular expression to be executed.\n\t       *\n\t       *    - `string`: execute using the rules as defined in {@link guide/expression expression}.\n\t       *    - `function(scope)`: execute the function with current `scope` parameter.\n\t       */\n\t      $applyAsync: function(expr) {\n\t        var scope = this;\n\t        expr && applyAsyncQueue.push($applyAsyncExpression);\n\t        scheduleApplyAsync();\n\n\t        function $applyAsyncExpression() {\n\t          scope.$eval(expr);\n\t        }\n\t      },\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $rootScope.Scope#$on\n\t       * @kind function\n\t       *\n\t       * @description\n\t       * Listens on events of a given type. See {@link ng.$rootScope.Scope#$emit $emit} for\n\t       * discussion of event life cycle.\n\t       *\n\t       * The event listener function format is: `function(event, args...)`. The `event` object\n\t       * passed into the listener has the following attributes:\n\t       *\n\t       *   - `targetScope` - `{Scope}`: the scope on which the event was `$emit`-ed or\n\t       *     `$broadcast`-ed.\n\t       *   - `currentScope` - `{Scope}`: the scope that is currently handling the event. Once the\n\t       *     event propagates through the scope hierarchy, this property is set to null.\n\t       *   - `name` - `{string}`: name of the event.\n\t       *   - `stopPropagation` - `{function=}`: calling `stopPropagation` function will cancel\n\t       *     further event propagation (available only for events that were `$emit`-ed).\n\t       *   - `preventDefault` - `{function}`: calling `preventDefault` sets `defaultPrevented` flag\n\t       *     to true.\n\t       *   - `defaultPrevented` - `{boolean}`: true if `preventDefault` was called.\n\t       *\n\t       * @param {string} name Event name to listen on.\n\t       * @param {function(event, ...args)} listener Function to call when the event is emitted.\n\t       * @returns {function()} Returns a deregistration function for this listener.\n\t       */\n\t      $on: function(name, listener) {\n\t        var namedListeners = this.$$listeners[name];\n\t        if (!namedListeners) {\n\t          this.$$listeners[name] = namedListeners = [];\n\t        }\n\t        namedListeners.push(listener);\n\n\t        var current = this;\n\t        do {\n\t          if (!current.$$listenerCount[name]) {\n\t            current.$$listenerCount[name] = 0;\n\t          }\n\t          current.$$listenerCount[name]++;\n\t        } while ((current = current.$parent));\n\n\t        var self = this;\n\t        return function() {\n\t          var indexOfListener = namedListeners.indexOf(listener);\n\t          if (indexOfListener !== -1) {\n\t            namedListeners[indexOfListener] = null;\n\t            decrementListenerCount(self, 1, name);\n\t          }\n\t        };\n\t      },\n\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $rootScope.Scope#$emit\n\t       * @kind function\n\t       *\n\t       * @description\n\t       * Dispatches an event `name` upwards through the scope hierarchy notifying the\n\t       * registered {@link ng.$rootScope.Scope#$on} listeners.\n\t       *\n\t       * The event life cycle starts at the scope on which `$emit` was called. All\n\t       * {@link ng.$rootScope.Scope#$on listeners} listening for `name` event on this scope get\n\t       * notified. Afterwards, the event traverses upwards toward the root scope and calls all\n\t       * registered listeners along the way. The event will stop propagating if one of the listeners\n\t       * cancels it.\n\t       *\n\t       * Any exception emitted from the {@link ng.$rootScope.Scope#$on listeners} will be passed\n\t       * onto the {@link ng.$exceptionHandler $exceptionHandler} service.\n\t       *\n\t       * @param {string} name Event name to emit.\n\t       * @param {...*} args Optional one or more arguments which will be passed onto the event listeners.\n\t       * @return {Object} Event object (see {@link ng.$rootScope.Scope#$on}).\n\t       */\n\t      $emit: function(name, args) {\n\t        var empty = [],\n\t            namedListeners,\n\t            scope = this,\n\t            stopPropagation = false,\n\t            event = {\n\t              name: name,\n\t              targetScope: scope,\n\t              stopPropagation: function() {stopPropagation = true;},\n\t              preventDefault: function() {\n\t                event.defaultPrevented = true;\n\t              },\n\t              defaultPrevented: false\n\t            },\n\t            listenerArgs = concat([event], arguments, 1),\n\t            i, length;\n\n\t        do {\n\t          namedListeners = scope.$$listeners[name] || empty;\n\t          event.currentScope = scope;\n\t          for (i = 0, length = namedListeners.length; i < length; i++) {\n\n\t            // if listeners were deregistered, defragment the array\n\t            if (!namedListeners[i]) {\n\t              namedListeners.splice(i, 1);\n\t              i--;\n\t              length--;\n\t              continue;\n\t            }\n\t            try {\n\t              //allow all listeners attached to the current scope to run\n\t              namedListeners[i].apply(null, listenerArgs);\n\t            } catch (e) {\n\t              $exceptionHandler(e);\n\t            }\n\t          }\n\t          //if any listener on the current scope stops propagation, prevent bubbling\n\t          if (stopPropagation) {\n\t            event.currentScope = null;\n\t            return event;\n\t          }\n\t          //traverse upwards\n\t          scope = scope.$parent;\n\t        } while (scope);\n\n\t        event.currentScope = null;\n\n\t        return event;\n\t      },\n\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $rootScope.Scope#$broadcast\n\t       * @kind function\n\t       *\n\t       * @description\n\t       * Dispatches an event `name` downwards to all child scopes (and their children) notifying the\n\t       * registered {@link ng.$rootScope.Scope#$on} listeners.\n\t       *\n\t       * The event life cycle starts at the scope on which `$broadcast` was called. All\n\t       * {@link ng.$rootScope.Scope#$on listeners} listening for `name` event on this scope get\n\t       * notified. Afterwards, the event propagates to all direct and indirect scopes of the current\n\t       * scope and calls all registered listeners along the way. The event cannot be canceled.\n\t       *\n\t       * Any exception emitted from the {@link ng.$rootScope.Scope#$on listeners} will be passed\n\t       * onto the {@link ng.$exceptionHandler $exceptionHandler} service.\n\t       *\n\t       * @param {string} name Event name to broadcast.\n\t       * @param {...*} args Optional one or more arguments which will be passed onto the event listeners.\n\t       * @return {Object} Event object, see {@link ng.$rootScope.Scope#$on}\n\t       */\n\t      $broadcast: function(name, args) {\n\t        var target = this,\n\t            current = target,\n\t            next = target,\n\t            event = {\n\t              name: name,\n\t              targetScope: target,\n\t              preventDefault: function() {\n\t                event.defaultPrevented = true;\n\t              },\n\t              defaultPrevented: false\n\t            };\n\n\t        if (!target.$$listenerCount[name]) return event;\n\n\t        var listenerArgs = concat([event], arguments, 1),\n\t            listeners, i, length;\n\n\t        //down while you can, then up and next sibling or up and next sibling until back at root\n\t        while ((current = next)) {\n\t          event.currentScope = current;\n\t          listeners = current.$$listeners[name] || [];\n\t          for (i = 0, length = listeners.length; i < length; i++) {\n\t            // if listeners were deregistered, defragment the array\n\t            if (!listeners[i]) {\n\t              listeners.splice(i, 1);\n\t              i--;\n\t              length--;\n\t              continue;\n\t            }\n\n\t            try {\n\t              listeners[i].apply(null, listenerArgs);\n\t            } catch (e) {\n\t              $exceptionHandler(e);\n\t            }\n\t          }\n\n\t          // Insanity Warning: scope depth-first traversal\n\t          // yes, this code is a bit crazy, but it works and we have tests to prove it!\n\t          // this piece should be kept in sync with the traversal in $digest\n\t          // (though it differs due to having the extra check for $$listenerCount)\n\t          if (!(next = ((current.$$listenerCount[name] && current.$$childHead) ||\n\t              (current !== target && current.$$nextSibling)))) {\n\t            while (current !== target && !(next = current.$$nextSibling)) {\n\t              current = current.$parent;\n\t            }\n\t          }\n\t        }\n\n\t        event.currentScope = null;\n\t        return event;\n\t      }\n\t    };\n\n\t    var $rootScope = new Scope();\n\n\t    //The internal queues. Expose them on the $rootScope for debugging/testing purposes.\n\t    var asyncQueue = $rootScope.$$asyncQueue = [];\n\t    var postDigestQueue = $rootScope.$$postDigestQueue = [];\n\t    var applyAsyncQueue = $rootScope.$$applyAsyncQueue = [];\n\n\t    return $rootScope;\n\n\n\t    function beginPhase(phase) {\n\t      if ($rootScope.$$phase) {\n\t        throw $rootScopeMinErr('inprog', '{0} already in progress', $rootScope.$$phase);\n\t      }\n\n\t      $rootScope.$$phase = phase;\n\t    }\n\n\t    function clearPhase() {\n\t      $rootScope.$$phase = null;\n\t    }\n\n\t    function incrementWatchersCount(current, count) {\n\t      do {\n\t        current.$$watchersCount += count;\n\t      } while ((current = current.$parent));\n\t    }\n\n\t    function decrementListenerCount(current, count, name) {\n\t      do {\n\t        current.$$listenerCount[name] -= count;\n\n\t        if (current.$$listenerCount[name] === 0) {\n\t          delete current.$$listenerCount[name];\n\t        }\n\t      } while ((current = current.$parent));\n\t    }\n\n\t    /**\n\t     * function used as an initial value for watchers.\n\t     * because it's unique we can easily tell it apart from other values\n\t     */\n\t    function initWatchVal() {}\n\n\t    function flushApplyAsync() {\n\t      while (applyAsyncQueue.length) {\n\t        try {\n\t          applyAsyncQueue.shift()();\n\t        } catch (e) {\n\t          $exceptionHandler(e);\n\t        }\n\t      }\n\t      applyAsyncId = null;\n\t    }\n\n\t    function scheduleApplyAsync() {\n\t      if (applyAsyncId === null) {\n\t        applyAsyncId = $browser.defer(function() {\n\t          $rootScope.$apply(flushApplyAsync);\n\t        });\n\t      }\n\t    }\n\t  }];\n\t}\n\n\t/**\n\t * @description\n\t * Private service to sanitize uris for links and images. Used by $compile and $sanitize.\n\t */\n\tfunction $$SanitizeUriProvider() {\n\t  var aHrefSanitizationWhitelist = /^\\s*(https?|ftp|mailto|tel|file):/,\n\t    imgSrcSanitizationWhitelist = /^\\s*((https?|ftp|file|blob):|data:image\\/)/;\n\n\t  /**\n\t   * @description\n\t   * Retrieves or overrides the default regular expression that is used for whitelisting of safe\n\t   * urls during a[href] sanitization.\n\t   *\n\t   * The sanitization is a security measure aimed at prevent XSS attacks via html links.\n\t   *\n\t   * Any url about to be assigned to a[href] via data-binding is first normalized and turned into\n\t   * an absolute url. Afterwards, the url is matched against the `aHrefSanitizationWhitelist`\n\t   * regular expression. If a match is found, the original url is written into the dom. Otherwise,\n\t   * the absolute url is prefixed with `'unsafe:'` string and only then is it written into the DOM.\n\t   *\n\t   * @param {RegExp=} regexp New regexp to whitelist urls with.\n\t   * @returns {RegExp|ng.$compileProvider} Current RegExp if called without value or self for\n\t   *    chaining otherwise.\n\t   */\n\t  this.aHrefSanitizationWhitelist = function(regexp) {\n\t    if (isDefined(regexp)) {\n\t      aHrefSanitizationWhitelist = regexp;\n\t      return this;\n\t    }\n\t    return aHrefSanitizationWhitelist;\n\t  };\n\n\n\t  /**\n\t   * @description\n\t   * Retrieves or overrides the default regular expression that is used for whitelisting of safe\n\t   * urls during img[src] sanitization.\n\t   *\n\t   * The sanitization is a security measure aimed at prevent XSS attacks via html links.\n\t   *\n\t   * Any url about to be assigned to img[src] via data-binding is first normalized and turned into\n\t   * an absolute url. Afterwards, the url is matched against the `imgSrcSanitizationWhitelist`\n\t   * regular expression. If a match is found, the original url is written into the dom. Otherwise,\n\t   * the absolute url is prefixed with `'unsafe:'` string and only then is it written into the DOM.\n\t   *\n\t   * @param {RegExp=} regexp New regexp to whitelist urls with.\n\t   * @returns {RegExp|ng.$compileProvider} Current RegExp if called without value or self for\n\t   *    chaining otherwise.\n\t   */\n\t  this.imgSrcSanitizationWhitelist = function(regexp) {\n\t    if (isDefined(regexp)) {\n\t      imgSrcSanitizationWhitelist = regexp;\n\t      return this;\n\t    }\n\t    return imgSrcSanitizationWhitelist;\n\t  };\n\n\t  this.$get = function() {\n\t    return function sanitizeUri(uri, isImage) {\n\t      var regex = isImage ? imgSrcSanitizationWhitelist : aHrefSanitizationWhitelist;\n\t      var normalizedVal;\n\t      normalizedVal = urlResolve(uri).href;\n\t      if (normalizedVal !== '' && !normalizedVal.match(regex)) {\n\t        return 'unsafe:' + normalizedVal;\n\t      }\n\t      return uri;\n\t    };\n\t  };\n\t}\n\n\t/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\n\t *     Any commits to this file should be reviewed with security in mind.  *\n\t *   Changes to this file can potentially create security vulnerabilities. *\n\t *          An approval from 2 Core members with history of modifying      *\n\t *                         this file is required.                          *\n\t *                                                                         *\n\t *  Does the change somehow allow for arbitrary javascript to be executed? *\n\t *    Or allows for someone to change the prototype of built-in objects?   *\n\t *     Or gives undesired access to variables likes document or window?    *\n\t * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */\n\n\tvar $sceMinErr = minErr('$sce');\n\n\tvar SCE_CONTEXTS = {\n\t  HTML: 'html',\n\t  CSS: 'css',\n\t  URL: 'url',\n\t  // RESOURCE_URL is a subtype of URL used in contexts where a privileged resource is sourced from a\n\t  // url.  (e.g. ng-include, script src, templateUrl)\n\t  RESOURCE_URL: 'resourceUrl',\n\t  JS: 'js'\n\t};\n\n\t// Helper functions follow.\n\n\tfunction adjustMatcher(matcher) {\n\t  if (matcher === 'self') {\n\t    return matcher;\n\t  } else if (isString(matcher)) {\n\t    // Strings match exactly except for 2 wildcards - '*' and '**'.\n\t    // '*' matches any character except those from the set ':/.?&'.\n\t    // '**' matches any character (like .* in a RegExp).\n\t    // More than 2 *'s raises an error as it's ill defined.\n\t    if (matcher.indexOf('***') > -1) {\n\t      throw $sceMinErr('iwcard',\n\t          'Illegal sequence *** in string matcher.  String: {0}', matcher);\n\t    }\n\t    matcher = escapeForRegexp(matcher).\n\t                  replace('\\\\*\\\\*', '.*').\n\t                  replace('\\\\*', '[^:/.?&;]*');\n\t    return new RegExp('^' + matcher + '$');\n\t  } else if (isRegExp(matcher)) {\n\t    // The only other type of matcher allowed is a Regexp.\n\t    // Match entire URL / disallow partial matches.\n\t    // Flags are reset (i.e. no global, ignoreCase or multiline)\n\t    return new RegExp('^' + matcher.source + '$');\n\t  } else {\n\t    throw $sceMinErr('imatcher',\n\t        'Matchers may only be \"self\", string patterns or RegExp objects');\n\t  }\n\t}\n\n\n\tfunction adjustMatchers(matchers) {\n\t  var adjustedMatchers = [];\n\t  if (isDefined(matchers)) {\n\t    forEach(matchers, function(matcher) {\n\t      adjustedMatchers.push(adjustMatcher(matcher));\n\t    });\n\t  }\n\t  return adjustedMatchers;\n\t}\n\n\n\t/**\n\t * @ngdoc service\n\t * @name $sceDelegate\n\t * @kind function\n\t *\n\t * @description\n\t *\n\t * `$sceDelegate` is a service that is used by the `$sce` service to provide {@link ng.$sce Strict\n\t * Contextual Escaping (SCE)} services to AngularJS.\n\t *\n\t * Typically, you would configure or override the {@link ng.$sceDelegate $sceDelegate} instead of\n\t * the `$sce` service to customize the way Strict Contextual Escaping works in AngularJS.  This is\n\t * because, while the `$sce` provides numerous shorthand methods, etc., you really only need to\n\t * override 3 core functions (`trustAs`, `getTrusted` and `valueOf`) to replace the way things\n\t * work because `$sce` delegates to `$sceDelegate` for these operations.\n\t *\n\t * Refer {@link ng.$sceDelegateProvider $sceDelegateProvider} to configure this service.\n\t *\n\t * The default instance of `$sceDelegate` should work out of the box with little pain.  While you\n\t * can override it completely to change the behavior of `$sce`, the common case would\n\t * involve configuring the {@link ng.$sceDelegateProvider $sceDelegateProvider} instead by setting\n\t * your own whitelists and blacklists for trusting URLs used for loading AngularJS resources such as\n\t * templates.  Refer {@link ng.$sceDelegateProvider#resourceUrlWhitelist\n\t * $sceDelegateProvider.resourceUrlWhitelist} and {@link\n\t * ng.$sceDelegateProvider#resourceUrlBlacklist $sceDelegateProvider.resourceUrlBlacklist}\n\t */\n\n\t/**\n\t * @ngdoc provider\n\t * @name $sceDelegateProvider\n\t * @description\n\t *\n\t * The `$sceDelegateProvider` provider allows developers to configure the {@link ng.$sceDelegate\n\t * $sceDelegate} service.  This allows one to get/set the whitelists and blacklists used to ensure\n\t * that the URLs used for sourcing Angular templates are safe.  Refer {@link\n\t * ng.$sceDelegateProvider#resourceUrlWhitelist $sceDelegateProvider.resourceUrlWhitelist} and\n\t * {@link ng.$sceDelegateProvider#resourceUrlBlacklist $sceDelegateProvider.resourceUrlBlacklist}\n\t *\n\t * For the general details about this service in Angular, read the main page for {@link ng.$sce\n\t * Strict Contextual Escaping (SCE)}.\n\t *\n\t * **Example**:  Consider the following case. <a name=\"example\"></a>\n\t *\n\t * - your app is hosted at url `http://myapp.example.com/`\n\t * - but some of your templates are hosted on other domains you control such as\n\t *   `http://srv01.assets.example.com/`,  `http://srv02.assets.example.com/`, etc.\n\t * - and you have an open redirect at `http://myapp.example.com/clickThru?...`.\n\t *\n\t * Here is what a secure configuration for this scenario might look like:\n\t *\n\t * ```\n\t *  angular.module('myApp', []).config(function($sceDelegateProvider) {\n\t *    $sceDelegateProvider.resourceUrlWhitelist([\n\t *      // Allow same origin resource loads.\n\t *      'self',\n\t *      // Allow loading from our assets domain.  Notice the difference between * and **.\n\t *      'http://srv*.assets.example.com/**'\n\t *    ]);\n\t *\n\t *    // The blacklist overrides the whitelist so the open redirect here is blocked.\n\t *    $sceDelegateProvider.resourceUrlBlacklist([\n\t *      'http://myapp.example.com/clickThru**'\n\t *    ]);\n\t *  });\n\t * ```\n\t */\n\n\tfunction $SceDelegateProvider() {\n\t  this.SCE_CONTEXTS = SCE_CONTEXTS;\n\n\t  // Resource URLs can also be trusted by policy.\n\t  var resourceUrlWhitelist = ['self'],\n\t      resourceUrlBlacklist = [];\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $sceDelegateProvider#resourceUrlWhitelist\n\t   * @kind function\n\t   *\n\t   * @param {Array=} whitelist When provided, replaces the resourceUrlWhitelist with the value\n\t   *     provided.  This must be an array or null.  A snapshot of this array is used so further\n\t   *     changes to the array are ignored.\n\t   *\n\t   *     Follow {@link ng.$sce#resourceUrlPatternItem this link} for a description of the items\n\t   *     allowed in this array.\n\t   *\n\t   *     Note: **an empty whitelist array will block all URLs**!\n\t   *\n\t   * @return {Array} the currently set whitelist array.\n\t   *\n\t   * The **default value** when no whitelist has been explicitly set is `['self']` allowing only\n\t   * same origin resource requests.\n\t   *\n\t   * @description\n\t   * Sets/Gets the whitelist of trusted resource URLs.\n\t   */\n\t  this.resourceUrlWhitelist = function(value) {\n\t    if (arguments.length) {\n\t      resourceUrlWhitelist = adjustMatchers(value);\n\t    }\n\t    return resourceUrlWhitelist;\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $sceDelegateProvider#resourceUrlBlacklist\n\t   * @kind function\n\t   *\n\t   * @param {Array=} blacklist When provided, replaces the resourceUrlBlacklist with the value\n\t   *     provided.  This must be an array or null.  A snapshot of this array is used so further\n\t   *     changes to the array are ignored.\n\t   *\n\t   *     Follow {@link ng.$sce#resourceUrlPatternItem this link} for a description of the items\n\t   *     allowed in this array.\n\t   *\n\t   *     The typical usage for the blacklist is to **block\n\t   *     [open redirects](http://cwe.mitre.org/data/definitions/601.html)** served by your domain as\n\t   *     these would otherwise be trusted but actually return content from the redirected domain.\n\t   *\n\t   *     Finally, **the blacklist overrides the whitelist** and has the final say.\n\t   *\n\t   * @return {Array} the currently set blacklist array.\n\t   *\n\t   * The **default value** when no whitelist has been explicitly set is the empty array (i.e. there\n\t   * is no blacklist.)\n\t   *\n\t   * @description\n\t   * Sets/Gets the blacklist of trusted resource URLs.\n\t   */\n\n\t  this.resourceUrlBlacklist = function(value) {\n\t    if (arguments.length) {\n\t      resourceUrlBlacklist = adjustMatchers(value);\n\t    }\n\t    return resourceUrlBlacklist;\n\t  };\n\n\t  this.$get = ['$injector', function($injector) {\n\n\t    var htmlSanitizer = function htmlSanitizer(html) {\n\t      throw $sceMinErr('unsafe', 'Attempting to use an unsafe value in a safe context.');\n\t    };\n\n\t    if ($injector.has('$sanitize')) {\n\t      htmlSanitizer = $injector.get('$sanitize');\n\t    }\n\n\n\t    function matchUrl(matcher, parsedUrl) {\n\t      if (matcher === 'self') {\n\t        return urlIsSameOrigin(parsedUrl);\n\t      } else {\n\t        // definitely a regex.  See adjustMatchers()\n\t        return !!matcher.exec(parsedUrl.href);\n\t      }\n\t    }\n\n\t    function isResourceUrlAllowedByPolicy(url) {\n\t      var parsedUrl = urlResolve(url.toString());\n\t      var i, n, allowed = false;\n\t      // Ensure that at least one item from the whitelist allows this url.\n\t      for (i = 0, n = resourceUrlWhitelist.length; i < n; i++) {\n\t        if (matchUrl(resourceUrlWhitelist[i], parsedUrl)) {\n\t          allowed = true;\n\t          break;\n\t        }\n\t      }\n\t      if (allowed) {\n\t        // Ensure that no item from the blacklist blocked this url.\n\t        for (i = 0, n = resourceUrlBlacklist.length; i < n; i++) {\n\t          if (matchUrl(resourceUrlBlacklist[i], parsedUrl)) {\n\t            allowed = false;\n\t            break;\n\t          }\n\t        }\n\t      }\n\t      return allowed;\n\t    }\n\n\t    function generateHolderType(Base) {\n\t      var holderType = function TrustedValueHolderType(trustedValue) {\n\t        this.$$unwrapTrustedValue = function() {\n\t          return trustedValue;\n\t        };\n\t      };\n\t      if (Base) {\n\t        holderType.prototype = new Base();\n\t      }\n\t      holderType.prototype.valueOf = function sceValueOf() {\n\t        return this.$$unwrapTrustedValue();\n\t      };\n\t      holderType.prototype.toString = function sceToString() {\n\t        return this.$$unwrapTrustedValue().toString();\n\t      };\n\t      return holderType;\n\t    }\n\n\t    var trustedValueHolderBase = generateHolderType(),\n\t        byType = {};\n\n\t    byType[SCE_CONTEXTS.HTML] = generateHolderType(trustedValueHolderBase);\n\t    byType[SCE_CONTEXTS.CSS] = generateHolderType(trustedValueHolderBase);\n\t    byType[SCE_CONTEXTS.URL] = generateHolderType(trustedValueHolderBase);\n\t    byType[SCE_CONTEXTS.JS] = generateHolderType(trustedValueHolderBase);\n\t    byType[SCE_CONTEXTS.RESOURCE_URL] = generateHolderType(byType[SCE_CONTEXTS.URL]);\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sceDelegate#trustAs\n\t     *\n\t     * @description\n\t     * Returns an object that is trusted by angular for use in specified strict\n\t     * contextual escaping contexts (such as ng-bind-html, ng-include, any src\n\t     * attribute interpolation, any dom event binding attribute interpolation\n\t     * such as for onclick,  etc.) that uses the provided value.\n\t     * See {@link ng.$sce $sce} for enabling strict contextual escaping.\n\t     *\n\t     * @param {string} type The kind of context in which this value is safe for use.  e.g. url,\n\t     *   resourceUrl, html, js and css.\n\t     * @param {*} value The value that that should be considered trusted/safe.\n\t     * @returns {*} A value that can be used to stand in for the provided `value` in places\n\t     * where Angular expects a $sce.trustAs() return value.\n\t     */\n\t    function trustAs(type, trustedValue) {\n\t      var Constructor = (byType.hasOwnProperty(type) ? byType[type] : null);\n\t      if (!Constructor) {\n\t        throw $sceMinErr('icontext',\n\t            'Attempted to trust a value in invalid context. Context: {0}; Value: {1}',\n\t            type, trustedValue);\n\t      }\n\t      if (trustedValue === null || isUndefined(trustedValue) || trustedValue === '') {\n\t        return trustedValue;\n\t      }\n\t      // All the current contexts in SCE_CONTEXTS happen to be strings.  In order to avoid trusting\n\t      // mutable objects, we ensure here that the value passed in is actually a string.\n\t      if (typeof trustedValue !== 'string') {\n\t        throw $sceMinErr('itype',\n\t            'Attempted to trust a non-string value in a content requiring a string: Context: {0}',\n\t            type);\n\t      }\n\t      return new Constructor(trustedValue);\n\t    }\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sceDelegate#valueOf\n\t     *\n\t     * @description\n\t     * If the passed parameter had been returned by a prior call to {@link ng.$sceDelegate#trustAs\n\t     * `$sceDelegate.trustAs`}, returns the value that had been passed to {@link\n\t     * ng.$sceDelegate#trustAs `$sceDelegate.trustAs`}.\n\t     *\n\t     * If the passed parameter is not a value that had been returned by {@link\n\t     * ng.$sceDelegate#trustAs `$sceDelegate.trustAs`}, returns it as-is.\n\t     *\n\t     * @param {*} value The result of a prior {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs`}\n\t     *      call or anything else.\n\t     * @returns {*} The `value` that was originally provided to {@link ng.$sceDelegate#trustAs\n\t     *     `$sceDelegate.trustAs`} if `value` is the result of such a call.  Otherwise, returns\n\t     *     `value` unchanged.\n\t     */\n\t    function valueOf(maybeTrusted) {\n\t      if (maybeTrusted instanceof trustedValueHolderBase) {\n\t        return maybeTrusted.$$unwrapTrustedValue();\n\t      } else {\n\t        return maybeTrusted;\n\t      }\n\t    }\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sceDelegate#getTrusted\n\t     *\n\t     * @description\n\t     * Takes the result of a {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs`} call and\n\t     * returns the originally supplied value if the queried context type is a supertype of the\n\t     * created type.  If this condition isn't satisfied, throws an exception.\n\t     *\n\t     * @param {string} type The kind of context in which this value is to be used.\n\t     * @param {*} maybeTrusted The result of a prior {@link ng.$sceDelegate#trustAs\n\t     *     `$sceDelegate.trustAs`} call.\n\t     * @returns {*} The value the was originally provided to {@link ng.$sceDelegate#trustAs\n\t     *     `$sceDelegate.trustAs`} if valid in this context.  Otherwise, throws an exception.\n\t     */\n\t    function getTrusted(type, maybeTrusted) {\n\t      if (maybeTrusted === null || isUndefined(maybeTrusted) || maybeTrusted === '') {\n\t        return maybeTrusted;\n\t      }\n\t      var constructor = (byType.hasOwnProperty(type) ? byType[type] : null);\n\t      if (constructor && maybeTrusted instanceof constructor) {\n\t        return maybeTrusted.$$unwrapTrustedValue();\n\t      }\n\t      // If we get here, then we may only take one of two actions.\n\t      // 1. sanitize the value for the requested type, or\n\t      // 2. throw an exception.\n\t      if (type === SCE_CONTEXTS.RESOURCE_URL) {\n\t        if (isResourceUrlAllowedByPolicy(maybeTrusted)) {\n\t          return maybeTrusted;\n\t        } else {\n\t          throw $sceMinErr('insecurl',\n\t              'Blocked loading resource from url not allowed by $sceDelegate policy.  URL: {0}',\n\t              maybeTrusted.toString());\n\t        }\n\t      } else if (type === SCE_CONTEXTS.HTML) {\n\t        return htmlSanitizer(maybeTrusted);\n\t      }\n\t      throw $sceMinErr('unsafe', 'Attempting to use an unsafe value in a safe context.');\n\t    }\n\n\t    return { trustAs: trustAs,\n\t             getTrusted: getTrusted,\n\t             valueOf: valueOf };\n\t  }];\n\t}\n\n\n\t/**\n\t * @ngdoc provider\n\t * @name $sceProvider\n\t * @description\n\t *\n\t * The $sceProvider provider allows developers to configure the {@link ng.$sce $sce} service.\n\t * -   enable/disable Strict Contextual Escaping (SCE) in a module\n\t * -   override the default implementation with a custom delegate\n\t *\n\t * Read more about {@link ng.$sce Strict Contextual Escaping (SCE)}.\n\t */\n\n\t/* jshint maxlen: false*/\n\n\t/**\n\t * @ngdoc service\n\t * @name $sce\n\t * @kind function\n\t *\n\t * @description\n\t *\n\t * `$sce` is a service that provides Strict Contextual Escaping services to AngularJS.\n\t *\n\t * # Strict Contextual Escaping\n\t *\n\t * Strict Contextual Escaping (SCE) is a mode in which AngularJS requires bindings in certain\n\t * contexts to result in a value that is marked as safe to use for that context.  One example of\n\t * such a context is binding arbitrary html controlled by the user via `ng-bind-html`.  We refer\n\t * to these contexts as privileged or SCE contexts.\n\t *\n\t * As of version 1.2, Angular ships with SCE enabled by default.\n\t *\n\t * Note:  When enabled (the default), IE<11 in quirks mode is not supported.  In this mode, IE<11 allow\n\t * one to execute arbitrary javascript by the use of the expression() syntax.  Refer\n\t * <http://blogs.msdn.com/b/ie/archive/2008/10/16/ending-expressions.aspx> to learn more about them.\n\t * You can ensure your document is in standards mode and not quirks mode by adding `<!doctype html>`\n\t * to the top of your HTML document.\n\t *\n\t * SCE assists in writing code in way that (a) is secure by default and (b) makes auditing for\n\t * security vulnerabilities such as XSS, clickjacking, etc. a lot easier.\n\t *\n\t * Here's an example of a binding in a privileged context:\n\t *\n\t * ```\n\t * <input ng-model=\"userHtml\" aria-label=\"User input\">\n\t * <div ng-bind-html=\"userHtml\"></div>\n\t * ```\n\t *\n\t * Notice that `ng-bind-html` is bound to `userHtml` controlled by the user.  With SCE\n\t * disabled, this application allows the user to render arbitrary HTML into the DIV.\n\t * In a more realistic example, one may be rendering user comments, blog articles, etc. via\n\t * bindings.  (HTML is just one example of a context where rendering user controlled input creates\n\t * security vulnerabilities.)\n\t *\n\t * For the case of HTML, you might use a library, either on the client side, or on the server side,\n\t * to sanitize unsafe HTML before binding to the value and rendering it in the document.\n\t *\n\t * How would you ensure that every place that used these types of bindings was bound to a value that\n\t * was sanitized by your library (or returned as safe for rendering by your server?)  How can you\n\t * ensure that you didn't accidentally delete the line that sanitized the value, or renamed some\n\t * properties/fields and forgot to update the binding to the sanitized value?\n\t *\n\t * To be secure by default, you want to ensure that any such bindings are disallowed unless you can\n\t * determine that something explicitly says it's safe to use a value for binding in that\n\t * context.  You can then audit your code (a simple grep would do) to ensure that this is only done\n\t * for those values that you can easily tell are safe - because they were received from your server,\n\t * sanitized by your library, etc.  You can organize your codebase to help with this - perhaps\n\t * allowing only the files in a specific directory to do this.  Ensuring that the internal API\n\t * exposed by that code doesn't markup arbitrary values as safe then becomes a more manageable task.\n\t *\n\t * In the case of AngularJS' SCE service, one uses {@link ng.$sce#trustAs $sce.trustAs}\n\t * (and shorthand methods such as {@link ng.$sce#trustAsHtml $sce.trustAsHtml}, etc.) to\n\t * obtain values that will be accepted by SCE / privileged contexts.\n\t *\n\t *\n\t * ## How does it work?\n\t *\n\t * In privileged contexts, directives and code will bind to the result of {@link ng.$sce#getTrusted\n\t * $sce.getTrusted(context, value)} rather than to the value directly.  Directives use {@link\n\t * ng.$sce#parseAs $sce.parseAs} rather than `$parse` to watch attribute bindings, which performs the\n\t * {@link ng.$sce#getTrusted $sce.getTrusted} behind the scenes on non-constant literals.\n\t *\n\t * As an example, {@link ng.directive:ngBindHtml ngBindHtml} uses {@link\n\t * ng.$sce#parseAsHtml $sce.parseAsHtml(binding expression)}.  Here's the actual code (slightly\n\t * simplified):\n\t *\n\t * ```\n\t * var ngBindHtmlDirective = ['$sce', function($sce) {\n\t *   return function(scope, element, attr) {\n\t *     scope.$watch($sce.parseAsHtml(attr.ngBindHtml), function(value) {\n\t *       element.html(value || '');\n\t *     });\n\t *   };\n\t * }];\n\t * ```\n\t *\n\t * ## Impact on loading templates\n\t *\n\t * This applies both to the {@link ng.directive:ngInclude `ng-include`} directive as well as\n\t * `templateUrl`'s specified by {@link guide/directive directives}.\n\t *\n\t * By default, Angular only loads templates from the same domain and protocol as the application\n\t * document.  This is done by calling {@link ng.$sce#getTrustedResourceUrl\n\t * $sce.getTrustedResourceUrl} on the template URL.  To load templates from other domains and/or\n\t * protocols, you may either {@link ng.$sceDelegateProvider#resourceUrlWhitelist whitelist\n\t * them} or {@link ng.$sce#trustAsResourceUrl wrap it} into a trusted value.\n\t *\n\t * *Please note*:\n\t * The browser's\n\t * [Same Origin Policy](https://code.google.com/p/browsersec/wiki/Part2#Same-origin_policy_for_XMLHttpRequest)\n\t * and [Cross-Origin Resource Sharing (CORS)](http://www.w3.org/TR/cors/)\n\t * policy apply in addition to this and may further restrict whether the template is successfully\n\t * loaded.  This means that without the right CORS policy, loading templates from a different domain\n\t * won't work on all browsers.  Also, loading templates from `file://` URL does not work on some\n\t * browsers.\n\t *\n\t * ## This feels like too much overhead\n\t *\n\t * It's important to remember that SCE only applies to interpolation expressions.\n\t *\n\t * If your expressions are constant literals, they're automatically trusted and you don't need to\n\t * call `$sce.trustAs` on them (remember to include the `ngSanitize` module) (e.g.\n\t * `<div ng-bind-html=\"'<b>implicitly trusted</b>'\"></div>`) just works.\n\t *\n\t * Additionally, `a[href]` and `img[src]` automatically sanitize their URLs and do not pass them\n\t * through {@link ng.$sce#getTrusted $sce.getTrusted}.  SCE doesn't play a role here.\n\t *\n\t * The included {@link ng.$sceDelegate $sceDelegate} comes with sane defaults to allow you to load\n\t * templates in `ng-include` from your application's domain without having to even know about SCE.\n\t * It blocks loading templates from other domains or loading templates over http from an https\n\t * served document.  You can change these by setting your own custom {@link\n\t * ng.$sceDelegateProvider#resourceUrlWhitelist whitelists} and {@link\n\t * ng.$sceDelegateProvider#resourceUrlBlacklist blacklists} for matching such URLs.\n\t *\n\t * This significantly reduces the overhead.  It is far easier to pay the small overhead and have an\n\t * application that's secure and can be audited to verify that with much more ease than bolting\n\t * security onto an application later.\n\t *\n\t * <a name=\"contexts\"></a>\n\t * ## What trusted context types are supported?\n\t *\n\t * | Context             | Notes          |\n\t * |---------------------|----------------|\n\t * | `$sce.HTML`         | For HTML that's safe to source into the application.  The {@link ng.directive:ngBindHtml ngBindHtml} directive uses this context for bindings. If an unsafe value is encountered and the {@link ngSanitize $sanitize} module is present this will sanitize the value instead of throwing an error. |\n\t * | `$sce.CSS`          | For CSS that's safe to source into the application.  Currently unused.  Feel free to use it in your own directives. |\n\t * | `$sce.URL`          | For URLs that are safe to follow as links.  Currently unused (`<a href=` and `<img src=` sanitize their urls and don't constitute an SCE context. |\n\t * | `$sce.RESOURCE_URL` | For URLs that are not only safe to follow as links, but whose contents are also safe to include in your application.  Examples include `ng-include`, `src` / `ngSrc` bindings for tags other than `IMG` (e.g. `IFRAME`, `OBJECT`, etc.)  <br><br>Note that `$sce.RESOURCE_URL` makes a stronger statement about the URL than `$sce.URL` does and therefore contexts requiring values trusted for `$sce.RESOURCE_URL` can be used anywhere that values trusted for `$sce.URL` are required. |\n\t * | `$sce.JS`           | For JavaScript that is safe to execute in your application's context.  Currently unused.  Feel free to use it in your own directives. |\n\t *\n\t * ## Format of items in {@link ng.$sceDelegateProvider#resourceUrlWhitelist resourceUrlWhitelist}/{@link ng.$sceDelegateProvider#resourceUrlBlacklist Blacklist} <a name=\"resourceUrlPatternItem\"></a>\n\t *\n\t *  Each element in these arrays must be one of the following:\n\t *\n\t *  - **'self'**\n\t *    - The special **string**, `'self'`, can be used to match against all URLs of the **same\n\t *      domain** as the application document using the **same protocol**.\n\t *  - **String** (except the special value `'self'`)\n\t *    - The string is matched against the full *normalized / absolute URL* of the resource\n\t *      being tested (substring matches are not good enough.)\n\t *    - There are exactly **two wildcard sequences** - `*` and `**`.  All other characters\n\t *      match themselves.\n\t *    - `*`: matches zero or more occurrences of any character other than one of the following 6\n\t *      characters: '`:`', '`/`', '`.`', '`?`', '`&`' and '`;`'.  It's a useful wildcard for use\n\t *      in a whitelist.\n\t *    - `**`: matches zero or more occurrences of *any* character.  As such, it's not\n\t *      appropriate for use in a scheme, domain, etc. as it would match too much.  (e.g.\n\t *      http://**.example.com/ would match http://evil.com/?ignore=.example.com/ and that might\n\t *      not have been the intention.)  Its usage at the very end of the path is ok.  (e.g.\n\t *      http://foo.example.com/templates/**).\n\t *  - **RegExp** (*see caveat below*)\n\t *    - *Caveat*:  While regular expressions are powerful and offer great flexibility,  their syntax\n\t *      (and all the inevitable escaping) makes them *harder to maintain*.  It's easy to\n\t *      accidentally introduce a bug when one updates a complex expression (imho, all regexes should\n\t *      have good test coverage).  For instance, the use of `.` in the regex is correct only in a\n\t *      small number of cases.  A `.` character in the regex used when matching the scheme or a\n\t *      subdomain could be matched against a `:` or literal `.` that was likely not intended.   It\n\t *      is highly recommended to use the string patterns and only fall back to regular expressions\n\t *      as a last resort.\n\t *    - The regular expression must be an instance of RegExp (i.e. not a string.)  It is\n\t *      matched against the **entire** *normalized / absolute URL* of the resource being tested\n\t *      (even when the RegExp did not have the `^` and `$` codes.)  In addition, any flags\n\t *      present on the RegExp (such as multiline, global, ignoreCase) are ignored.\n\t *    - If you are generating your JavaScript from some other templating engine (not\n\t *      recommended, e.g. in issue [#4006](https://github.com/angular/angular.js/issues/4006)),\n\t *      remember to escape your regular expression (and be aware that you might need more than\n\t *      one level of escaping depending on your templating engine and the way you interpolated\n\t *      the value.)  Do make use of your platform's escaping mechanism as it might be good\n\t *      enough before coding your own.  E.g. Ruby has\n\t *      [Regexp.escape(str)](http://www.ruby-doc.org/core-2.0.0/Regexp.html#method-c-escape)\n\t *      and Python has [re.escape](http://docs.python.org/library/re.html#re.escape).\n\t *      Javascript lacks a similar built in function for escaping.  Take a look at Google\n\t *      Closure library's [goog.string.regExpEscape(s)](\n\t *      http://docs.closure-library.googlecode.com/git/closure_goog_string_string.js.source.html#line962).\n\t *\n\t * Refer {@link ng.$sceDelegateProvider $sceDelegateProvider} for an example.\n\t *\n\t * ## Show me an example using SCE.\n\t *\n\t * <example module=\"mySceApp\" deps=\"angular-sanitize.js\">\n\t * <file name=\"index.html\">\n\t *   <div ng-controller=\"AppController as myCtrl\">\n\t *     <i ng-bind-html=\"myCtrl.explicitlyTrustedHtml\" id=\"explicitlyTrustedHtml\"></i><br><br>\n\t *     <b>User comments</b><br>\n\t *     By default, HTML that isn't explicitly trusted (e.g. Alice's comment) is sanitized when\n\t *     $sanitize is available.  If $sanitize isn't available, this results in an error instead of an\n\t *     exploit.\n\t *     <div class=\"well\">\n\t *       <div ng-repeat=\"userComment in myCtrl.userComments\">\n\t *         <b>{{userComment.name}}</b>:\n\t *         <span ng-bind-html=\"userComment.htmlComment\" class=\"htmlComment\"></span>\n\t *         <br>\n\t *       </div>\n\t *     </div>\n\t *   </div>\n\t * </file>\n\t *\n\t * <file name=\"script.js\">\n\t *   angular.module('mySceApp', ['ngSanitize'])\n\t *     .controller('AppController', ['$http', '$templateCache', '$sce',\n\t *       function($http, $templateCache, $sce) {\n\t *         var self = this;\n\t *         $http.get(\"test_data.json\", {cache: $templateCache}).success(function(userComments) {\n\t *           self.userComments = userComments;\n\t *         });\n\t *         self.explicitlyTrustedHtml = $sce.trustAsHtml(\n\t *             '<span onmouseover=\"this.textContent=&quot;Explicitly trusted HTML bypasses ' +\n\t *             'sanitization.&quot;\">Hover over this text.</span>');\n\t *       }]);\n\t * </file>\n\t *\n\t * <file name=\"test_data.json\">\n\t * [\n\t *   { \"name\": \"Alice\",\n\t *     \"htmlComment\":\n\t *         \"<span onmouseover='this.textContent=\\\"PWN3D!\\\"'>Is <i>anyone</i> reading this?</span>\"\n\t *   },\n\t *   { \"name\": \"Bob\",\n\t *     \"htmlComment\": \"<i>Yes!</i>  Am I the only other one?\"\n\t *   }\n\t * ]\n\t * </file>\n\t *\n\t * <file name=\"protractor.js\" type=\"protractor\">\n\t *   describe('SCE doc demo', function() {\n\t *     it('should sanitize untrusted values', function() {\n\t *       expect(element.all(by.css('.htmlComment')).first().getInnerHtml())\n\t *           .toBe('<span>Is <i>anyone</i> reading this?</span>');\n\t *     });\n\t *\n\t *     it('should NOT sanitize explicitly trusted values', function() {\n\t *       expect(element(by.id('explicitlyTrustedHtml')).getInnerHtml()).toBe(\n\t *           '<span onmouseover=\"this.textContent=&quot;Explicitly trusted HTML bypasses ' +\n\t *           'sanitization.&quot;\">Hover over this text.</span>');\n\t *     });\n\t *   });\n\t * </file>\n\t * </example>\n\t *\n\t *\n\t *\n\t * ## Can I disable SCE completely?\n\t *\n\t * Yes, you can.  However, this is strongly discouraged.  SCE gives you a lot of security benefits\n\t * for little coding overhead.  It will be much harder to take an SCE disabled application and\n\t * either secure it on your own or enable SCE at a later stage.  It might make sense to disable SCE\n\t * for cases where you have a lot of existing code that was written before SCE was introduced and\n\t * you're migrating them a module at a time.\n\t *\n\t * That said, here's how you can completely disable SCE:\n\t *\n\t * ```\n\t * angular.module('myAppWithSceDisabledmyApp', []).config(function($sceProvider) {\n\t *   // Completely disable SCE.  For demonstration purposes only!\n\t *   // Do not use in new projects.\n\t *   $sceProvider.enabled(false);\n\t * });\n\t * ```\n\t *\n\t */\n\t/* jshint maxlen: 100 */\n\n\tfunction $SceProvider() {\n\t  var enabled = true;\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $sceProvider#enabled\n\t   * @kind function\n\t   *\n\t   * @param {boolean=} value If provided, then enables/disables SCE.\n\t   * @return {boolean} true if SCE is enabled, false otherwise.\n\t   *\n\t   * @description\n\t   * Enables/disables SCE and returns the current value.\n\t   */\n\t  this.enabled = function(value) {\n\t    if (arguments.length) {\n\t      enabled = !!value;\n\t    }\n\t    return enabled;\n\t  };\n\n\n\t  /* Design notes on the default implementation for SCE.\n\t   *\n\t   * The API contract for the SCE delegate\n\t   * -------------------------------------\n\t   * The SCE delegate object must provide the following 3 methods:\n\t   *\n\t   * - trustAs(contextEnum, value)\n\t   *     This method is used to tell the SCE service that the provided value is OK to use in the\n\t   *     contexts specified by contextEnum.  It must return an object that will be accepted by\n\t   *     getTrusted() for a compatible contextEnum and return this value.\n\t   *\n\t   * - valueOf(value)\n\t   *     For values that were not produced by trustAs(), return them as is.  For values that were\n\t   *     produced by trustAs(), return the corresponding input value to trustAs.  Basically, if\n\t   *     trustAs is wrapping the given values into some type, this operation unwraps it when given\n\t   *     such a value.\n\t   *\n\t   * - getTrusted(contextEnum, value)\n\t   *     This function should return the a value that is safe to use in the context specified by\n\t   *     contextEnum or throw and exception otherwise.\n\t   *\n\t   * NOTE: This contract deliberately does NOT state that values returned by trustAs() must be\n\t   * opaque or wrapped in some holder object.  That happens to be an implementation detail.  For\n\t   * instance, an implementation could maintain a registry of all trusted objects by context.  In\n\t   * such a case, trustAs() would return the same object that was passed in.  getTrusted() would\n\t   * return the same object passed in if it was found in the registry under a compatible context or\n\t   * throw an exception otherwise.  An implementation might only wrap values some of the time based\n\t   * on some criteria.  getTrusted() might return a value and not throw an exception for special\n\t   * constants or objects even if not wrapped.  All such implementations fulfill this contract.\n\t   *\n\t   *\n\t   * A note on the inheritance model for SCE contexts\n\t   * ------------------------------------------------\n\t   * I've used inheritance and made RESOURCE_URL wrapped types a subtype of URL wrapped types.  This\n\t   * is purely an implementation details.\n\t   *\n\t   * The contract is simply this:\n\t   *\n\t   *     getTrusted($sce.RESOURCE_URL, value) succeeding implies that getTrusted($sce.URL, value)\n\t   *     will also succeed.\n\t   *\n\t   * Inheritance happens to capture this in a natural way.  In some future, we\n\t   * may not use inheritance anymore.  That is OK because no code outside of\n\t   * sce.js and sceSpecs.js would need to be aware of this detail.\n\t   */\n\n\t  this.$get = ['$parse', '$sceDelegate', function(\n\t                $parse,   $sceDelegate) {\n\t    // Prereq: Ensure that we're not running in IE<11 quirks mode.  In that mode, IE < 11 allow\n\t    // the \"expression(javascript expression)\" syntax which is insecure.\n\t    if (enabled && msie < 8) {\n\t      throw $sceMinErr('iequirks',\n\t        'Strict Contextual Escaping does not support Internet Explorer version < 11 in quirks ' +\n\t        'mode.  You can fix this by adding the text <!doctype html> to the top of your HTML ' +\n\t        'document.  See http://docs.angularjs.org/api/ng.$sce for more information.');\n\t    }\n\n\t    var sce = shallowCopy(SCE_CONTEXTS);\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sce#isEnabled\n\t     * @kind function\n\t     *\n\t     * @return {Boolean} true if SCE is enabled, false otherwise.  If you want to set the value, you\n\t     * have to do it at module config time on {@link ng.$sceProvider $sceProvider}.\n\t     *\n\t     * @description\n\t     * Returns a boolean indicating if SCE is enabled.\n\t     */\n\t    sce.isEnabled = function() {\n\t      return enabled;\n\t    };\n\t    sce.trustAs = $sceDelegate.trustAs;\n\t    sce.getTrusted = $sceDelegate.getTrusted;\n\t    sce.valueOf = $sceDelegate.valueOf;\n\n\t    if (!enabled) {\n\t      sce.trustAs = sce.getTrusted = function(type, value) { return value; };\n\t      sce.valueOf = identity;\n\t    }\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sce#parseAs\n\t     *\n\t     * @description\n\t     * Converts Angular {@link guide/expression expression} into a function.  This is like {@link\n\t     * ng.$parse $parse} and is identical when the expression is a literal constant.  Otherwise, it\n\t     * wraps the expression in a call to {@link ng.$sce#getTrusted $sce.getTrusted(*type*,\n\t     * *result*)}\n\t     *\n\t     * @param {string} type The kind of SCE context in which this result will be used.\n\t     * @param {string} expression String expression to compile.\n\t     * @returns {function(context, locals)} a function which represents the compiled expression:\n\t     *\n\t     *    * `context` – `{object}` – an object against which any expressions embedded in the strings\n\t     *      are evaluated against (typically a scope object).\n\t     *    * `locals` – `{object=}` – local variables context object, useful for overriding values in\n\t     *      `context`.\n\t     */\n\t    sce.parseAs = function sceParseAs(type, expr) {\n\t      var parsed = $parse(expr);\n\t      if (parsed.literal && parsed.constant) {\n\t        return parsed;\n\t      } else {\n\t        return $parse(expr, function(value) {\n\t          return sce.getTrusted(type, value);\n\t        });\n\t      }\n\t    };\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sce#trustAs\n\t     *\n\t     * @description\n\t     * Delegates to {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs`}.  As such,\n\t     * returns an object that is trusted by angular for use in specified strict contextual\n\t     * escaping contexts (such as ng-bind-html, ng-include, any src attribute\n\t     * interpolation, any dom event binding attribute interpolation such as for onclick,  etc.)\n\t     * that uses the provided value.  See * {@link ng.$sce $sce} for enabling strict contextual\n\t     * escaping.\n\t     *\n\t     * @param {string} type The kind of context in which this value is safe for use.  e.g. url,\n\t     *   resourceUrl, html, js and css.\n\t     * @param {*} value The value that that should be considered trusted/safe.\n\t     * @returns {*} A value that can be used to stand in for the provided `value` in places\n\t     * where Angular expects a $sce.trustAs() return value.\n\t     */\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sce#trustAsHtml\n\t     *\n\t     * @description\n\t     * Shorthand method.  `$sce.trustAsHtml(value)` →\n\t     *     {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs($sce.HTML, value)`}\n\t     *\n\t     * @param {*} value The value to trustAs.\n\t     * @returns {*} An object that can be passed to {@link ng.$sce#getTrustedHtml\n\t     *     $sce.getTrustedHtml(value)} to obtain the original value.  (privileged directives\n\t     *     only accept expressions that are either literal constants or are the\n\t     *     return value of {@link ng.$sce#trustAs $sce.trustAs}.)\n\t     */\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sce#trustAsUrl\n\t     *\n\t     * @description\n\t     * Shorthand method.  `$sce.trustAsUrl(value)` →\n\t     *     {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs($sce.URL, value)`}\n\t     *\n\t     * @param {*} value The value to trustAs.\n\t     * @returns {*} An object that can be passed to {@link ng.$sce#getTrustedUrl\n\t     *     $sce.getTrustedUrl(value)} to obtain the original value.  (privileged directives\n\t     *     only accept expressions that are either literal constants or are the\n\t     *     return value of {@link ng.$sce#trustAs $sce.trustAs}.)\n\t     */\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sce#trustAsResourceUrl\n\t     *\n\t     * @description\n\t     * Shorthand method.  `$sce.trustAsResourceUrl(value)` →\n\t     *     {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs($sce.RESOURCE_URL, value)`}\n\t     *\n\t     * @param {*} value The value to trustAs.\n\t     * @returns {*} An object that can be passed to {@link ng.$sce#getTrustedResourceUrl\n\t     *     $sce.getTrustedResourceUrl(value)} to obtain the original value.  (privileged directives\n\t     *     only accept expressions that are either literal constants or are the return\n\t     *     value of {@link ng.$sce#trustAs $sce.trustAs}.)\n\t     */\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sce#trustAsJs\n\t     *\n\t     * @description\n\t     * Shorthand method.  `$sce.trustAsJs(value)` →\n\t     *     {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs($sce.JS, value)`}\n\t     *\n\t     * @param {*} value The value to trustAs.\n\t     * @returns {*} An object that can be passed to {@link ng.$sce#getTrustedJs\n\t     *     $sce.getTrustedJs(value)} to obtain the original value.  (privileged directives\n\t     *     only accept expressions that are either literal constants or are the\n\t     *     return value of {@link ng.$sce#trustAs $sce.trustAs}.)\n\t     */\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sce#getTrusted\n\t     *\n\t     * @description\n\t     * Delegates to {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted`}.  As such,\n\t     * takes the result of a {@link ng.$sce#trustAs `$sce.trustAs`}() call and returns the\n\t     * originally supplied value if the queried context type is a supertype of the created type.\n\t     * If this condition isn't satisfied, throws an exception.\n\t     *\n\t     * @param {string} type The kind of context in which this value is to be used.\n\t     * @param {*} maybeTrusted The result of a prior {@link ng.$sce#trustAs `$sce.trustAs`}\n\t     *                         call.\n\t     * @returns {*} The value the was originally provided to\n\t     *              {@link ng.$sce#trustAs `$sce.trustAs`} if valid in this context.\n\t     *              Otherwise, throws an exception.\n\t     */\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sce#getTrustedHtml\n\t     *\n\t     * @description\n\t     * Shorthand method.  `$sce.getTrustedHtml(value)` →\n\t     *     {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.HTML, value)`}\n\t     *\n\t     * @param {*} value The value to pass to `$sce.getTrusted`.\n\t     * @returns {*} The return value of `$sce.getTrusted($sce.HTML, value)`\n\t     */\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sce#getTrustedCss\n\t     *\n\t     * @description\n\t     * Shorthand method.  `$sce.getTrustedCss(value)` →\n\t     *     {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.CSS, value)`}\n\t     *\n\t     * @param {*} value The value to pass to `$sce.getTrusted`.\n\t     * @returns {*} The return value of `$sce.getTrusted($sce.CSS, value)`\n\t     */\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sce#getTrustedUrl\n\t     *\n\t     * @description\n\t     * Shorthand method.  `$sce.getTrustedUrl(value)` →\n\t     *     {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.URL, value)`}\n\t     *\n\t     * @param {*} value The value to pass to `$sce.getTrusted`.\n\t     * @returns {*} The return value of `$sce.getTrusted($sce.URL, value)`\n\t     */\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sce#getTrustedResourceUrl\n\t     *\n\t     * @description\n\t     * Shorthand method.  `$sce.getTrustedResourceUrl(value)` →\n\t     *     {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.RESOURCE_URL, value)`}\n\t     *\n\t     * @param {*} value The value to pass to `$sceDelegate.getTrusted`.\n\t     * @returns {*} The return value of `$sce.getTrusted($sce.RESOURCE_URL, value)`\n\t     */\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sce#getTrustedJs\n\t     *\n\t     * @description\n\t     * Shorthand method.  `$sce.getTrustedJs(value)` →\n\t     *     {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.JS, value)`}\n\t     *\n\t     * @param {*} value The value to pass to `$sce.getTrusted`.\n\t     * @returns {*} The return value of `$sce.getTrusted($sce.JS, value)`\n\t     */\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sce#parseAsHtml\n\t     *\n\t     * @description\n\t     * Shorthand method.  `$sce.parseAsHtml(expression string)` →\n\t     *     {@link ng.$sce#parseAs `$sce.parseAs($sce.HTML, value)`}\n\t     *\n\t     * @param {string} expression String expression to compile.\n\t     * @returns {function(context, locals)} a function which represents the compiled expression:\n\t     *\n\t     *    * `context` – `{object}` – an object against which any expressions embedded in the strings\n\t     *      are evaluated against (typically a scope object).\n\t     *    * `locals` – `{object=}` – local variables context object, useful for overriding values in\n\t     *      `context`.\n\t     */\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sce#parseAsCss\n\t     *\n\t     * @description\n\t     * Shorthand method.  `$sce.parseAsCss(value)` →\n\t     *     {@link ng.$sce#parseAs `$sce.parseAs($sce.CSS, value)`}\n\t     *\n\t     * @param {string} expression String expression to compile.\n\t     * @returns {function(context, locals)} a function which represents the compiled expression:\n\t     *\n\t     *    * `context` – `{object}` – an object against which any expressions embedded in the strings\n\t     *      are evaluated against (typically a scope object).\n\t     *    * `locals` – `{object=}` – local variables context object, useful for overriding values in\n\t     *      `context`.\n\t     */\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sce#parseAsUrl\n\t     *\n\t     * @description\n\t     * Shorthand method.  `$sce.parseAsUrl(value)` →\n\t     *     {@link ng.$sce#parseAs `$sce.parseAs($sce.URL, value)`}\n\t     *\n\t     * @param {string} expression String expression to compile.\n\t     * @returns {function(context, locals)} a function which represents the compiled expression:\n\t     *\n\t     *    * `context` – `{object}` – an object against which any expressions embedded in the strings\n\t     *      are evaluated against (typically a scope object).\n\t     *    * `locals` – `{object=}` – local variables context object, useful for overriding values in\n\t     *      `context`.\n\t     */\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sce#parseAsResourceUrl\n\t     *\n\t     * @description\n\t     * Shorthand method.  `$sce.parseAsResourceUrl(value)` →\n\t     *     {@link ng.$sce#parseAs `$sce.parseAs($sce.RESOURCE_URL, value)`}\n\t     *\n\t     * @param {string} expression String expression to compile.\n\t     * @returns {function(context, locals)} a function which represents the compiled expression:\n\t     *\n\t     *    * `context` – `{object}` – an object against which any expressions embedded in the strings\n\t     *      are evaluated against (typically a scope object).\n\t     *    * `locals` – `{object=}` – local variables context object, useful for overriding values in\n\t     *      `context`.\n\t     */\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sce#parseAsJs\n\t     *\n\t     * @description\n\t     * Shorthand method.  `$sce.parseAsJs(value)` →\n\t     *     {@link ng.$sce#parseAs `$sce.parseAs($sce.JS, value)`}\n\t     *\n\t     * @param {string} expression String expression to compile.\n\t     * @returns {function(context, locals)} a function which represents the compiled expression:\n\t     *\n\t     *    * `context` – `{object}` – an object against which any expressions embedded in the strings\n\t     *      are evaluated against (typically a scope object).\n\t     *    * `locals` – `{object=}` – local variables context object, useful for overriding values in\n\t     *      `context`.\n\t     */\n\n\t    // Shorthand delegations.\n\t    var parse = sce.parseAs,\n\t        getTrusted = sce.getTrusted,\n\t        trustAs = sce.trustAs;\n\n\t    forEach(SCE_CONTEXTS, function(enumValue, name) {\n\t      var lName = lowercase(name);\n\t      sce[camelCase(\"parse_as_\" + lName)] = function(expr) {\n\t        return parse(enumValue, expr);\n\t      };\n\t      sce[camelCase(\"get_trusted_\" + lName)] = function(value) {\n\t        return getTrusted(enumValue, value);\n\t      };\n\t      sce[camelCase(\"trust_as_\" + lName)] = function(value) {\n\t        return trustAs(enumValue, value);\n\t      };\n\t    });\n\n\t    return sce;\n\t  }];\n\t}\n\n\t/**\n\t * !!! This is an undocumented \"private\" service !!!\n\t *\n\t * @name $sniffer\n\t * @requires $window\n\t * @requires $document\n\t *\n\t * @property {boolean} history Does the browser support html5 history api ?\n\t * @property {boolean} transitions Does the browser support CSS transition events ?\n\t * @property {boolean} animations Does the browser support CSS animation events ?\n\t *\n\t * @description\n\t * This is very simple implementation of testing browser's features.\n\t */\n\tfunction $SnifferProvider() {\n\t  this.$get = ['$window', '$document', function($window, $document) {\n\t    var eventSupport = {},\n\t        android =\n\t          toInt((/android (\\d+)/.exec(lowercase(($window.navigator || {}).userAgent)) || [])[1]),\n\t        boxee = /Boxee/i.test(($window.navigator || {}).userAgent),\n\t        document = $document[0] || {},\n\t        vendorPrefix,\n\t        vendorRegex = /^(Moz|webkit|ms)(?=[A-Z])/,\n\t        bodyStyle = document.body && document.body.style,\n\t        transitions = false,\n\t        animations = false,\n\t        match;\n\n\t    if (bodyStyle) {\n\t      for (var prop in bodyStyle) {\n\t        if (match = vendorRegex.exec(prop)) {\n\t          vendorPrefix = match[0];\n\t          vendorPrefix = vendorPrefix.substr(0, 1).toUpperCase() + vendorPrefix.substr(1);\n\t          break;\n\t        }\n\t      }\n\n\t      if (!vendorPrefix) {\n\t        vendorPrefix = ('WebkitOpacity' in bodyStyle) && 'webkit';\n\t      }\n\n\t      transitions = !!(('transition' in bodyStyle) || (vendorPrefix + 'Transition' in bodyStyle));\n\t      animations  = !!(('animation' in bodyStyle) || (vendorPrefix + 'Animation' in bodyStyle));\n\n\t      if (android && (!transitions ||  !animations)) {\n\t        transitions = isString(bodyStyle.webkitTransition);\n\t        animations = isString(bodyStyle.webkitAnimation);\n\t      }\n\t    }\n\n\n\t    return {\n\t      // Android has history.pushState, but it does not update location correctly\n\t      // so let's not use the history API at all.\n\t      // http://code.google.com/p/android/issues/detail?id=17471\n\t      // https://github.com/angular/angular.js/issues/904\n\n\t      // older webkit browser (533.9) on Boxee box has exactly the same problem as Android has\n\t      // so let's not use the history API also\n\t      // We are purposefully using `!(android < 4)` to cover the case when `android` is undefined\n\t      // jshint -W018\n\t      history: !!($window.history && $window.history.pushState && !(android < 4) && !boxee),\n\t      // jshint +W018\n\t      hasEvent: function(event) {\n\t        // IE9 implements 'input' event it's so fubared that we rather pretend that it doesn't have\n\t        // it. In particular the event is not fired when backspace or delete key are pressed or\n\t        // when cut operation is performed.\n\t        // IE10+ implements 'input' event but it erroneously fires under various situations,\n\t        // e.g. when placeholder changes, or a form is focused.\n\t        if (event === 'input' && msie <= 11) return false;\n\n\t        if (isUndefined(eventSupport[event])) {\n\t          var divElm = document.createElement('div');\n\t          eventSupport[event] = 'on' + event in divElm;\n\t        }\n\n\t        return eventSupport[event];\n\t      },\n\t      csp: csp(),\n\t      vendorPrefix: vendorPrefix,\n\t      transitions: transitions,\n\t      animations: animations,\n\t      android: android\n\t    };\n\t  }];\n\t}\n\n\tvar $compileMinErr = minErr('$compile');\n\n\t/**\n\t * @ngdoc service\n\t * @name $templateRequest\n\t *\n\t * @description\n\t * The `$templateRequest` service runs security checks then downloads the provided template using\n\t * `$http` and, upon success, stores the contents inside of `$templateCache`. If the HTTP request\n\t * fails or the response data of the HTTP request is empty, a `$compile` error will be thrown (the\n\t * exception can be thwarted by setting the 2nd parameter of the function to true). Note that the\n\t * contents of `$templateCache` are trusted, so the call to `$sce.getTrustedUrl(tpl)` is omitted\n\t * when `tpl` is of type string and `$templateCache` has the matching entry.\n\t *\n\t * @param {string|TrustedResourceUrl} tpl The HTTP request template URL\n\t * @param {boolean=} ignoreRequestError Whether or not to ignore the exception when the request fails or the template is empty\n\t *\n\t * @return {Promise} a promise for the HTTP response data of the given URL.\n\t *\n\t * @property {number} totalPendingRequests total amount of pending template requests being downloaded.\n\t */\n\tfunction $TemplateRequestProvider() {\n\t  this.$get = ['$templateCache', '$http', '$q', '$sce', function($templateCache, $http, $q, $sce) {\n\t    function handleRequestFn(tpl, ignoreRequestError) {\n\t      handleRequestFn.totalPendingRequests++;\n\n\t      // We consider the template cache holds only trusted templates, so\n\t      // there's no need to go through whitelisting again for keys that already\n\t      // are included in there. This also makes Angular accept any script\n\t      // directive, no matter its name. However, we still need to unwrap trusted\n\t      // types.\n\t      if (!isString(tpl) || !$templateCache.get(tpl)) {\n\t        tpl = $sce.getTrustedResourceUrl(tpl);\n\t      }\n\n\t      var transformResponse = $http.defaults && $http.defaults.transformResponse;\n\n\t      if (isArray(transformResponse)) {\n\t        transformResponse = transformResponse.filter(function(transformer) {\n\t          return transformer !== defaultHttpResponseTransform;\n\t        });\n\t      } else if (transformResponse === defaultHttpResponseTransform) {\n\t        transformResponse = null;\n\t      }\n\n\t      var httpOptions = {\n\t        cache: $templateCache,\n\t        transformResponse: transformResponse\n\t      };\n\n\t      return $http.get(tpl, httpOptions)\n\t        ['finally'](function() {\n\t          handleRequestFn.totalPendingRequests--;\n\t        })\n\t        .then(function(response) {\n\t          $templateCache.put(tpl, response.data);\n\t          return response.data;\n\t        }, handleError);\n\n\t      function handleError(resp) {\n\t        if (!ignoreRequestError) {\n\t          throw $compileMinErr('tpload', 'Failed to load template: {0} (HTTP status: {1} {2})',\n\t            tpl, resp.status, resp.statusText);\n\t        }\n\t        return $q.reject(resp);\n\t      }\n\t    }\n\n\t    handleRequestFn.totalPendingRequests = 0;\n\n\t    return handleRequestFn;\n\t  }];\n\t}\n\n\tfunction $$TestabilityProvider() {\n\t  this.$get = ['$rootScope', '$browser', '$location',\n\t       function($rootScope,   $browser,   $location) {\n\n\t    /**\n\t     * @name $testability\n\t     *\n\t     * @description\n\t     * The private $$testability service provides a collection of methods for use when debugging\n\t     * or by automated test and debugging tools.\n\t     */\n\t    var testability = {};\n\n\t    /**\n\t     * @name $$testability#findBindings\n\t     *\n\t     * @description\n\t     * Returns an array of elements that are bound (via ng-bind or {{}})\n\t     * to expressions matching the input.\n\t     *\n\t     * @param {Element} element The element root to search from.\n\t     * @param {string} expression The binding expression to match.\n\t     * @param {boolean} opt_exactMatch If true, only returns exact matches\n\t     *     for the expression. Filters and whitespace are ignored.\n\t     */\n\t    testability.findBindings = function(element, expression, opt_exactMatch) {\n\t      var bindings = element.getElementsByClassName('ng-binding');\n\t      var matches = [];\n\t      forEach(bindings, function(binding) {\n\t        var dataBinding = angular.element(binding).data('$binding');\n\t        if (dataBinding) {\n\t          forEach(dataBinding, function(bindingName) {\n\t            if (opt_exactMatch) {\n\t              var matcher = new RegExp('(^|\\\\s)' + escapeForRegexp(expression) + '(\\\\s|\\\\||$)');\n\t              if (matcher.test(bindingName)) {\n\t                matches.push(binding);\n\t              }\n\t            } else {\n\t              if (bindingName.indexOf(expression) != -1) {\n\t                matches.push(binding);\n\t              }\n\t            }\n\t          });\n\t        }\n\t      });\n\t      return matches;\n\t    };\n\n\t    /**\n\t     * @name $$testability#findModels\n\t     *\n\t     * @description\n\t     * Returns an array of elements that are two-way found via ng-model to\n\t     * expressions matching the input.\n\t     *\n\t     * @param {Element} element The element root to search from.\n\t     * @param {string} expression The model expression to match.\n\t     * @param {boolean} opt_exactMatch If true, only returns exact matches\n\t     *     for the expression.\n\t     */\n\t    testability.findModels = function(element, expression, opt_exactMatch) {\n\t      var prefixes = ['ng-', 'data-ng-', 'ng\\\\:'];\n\t      for (var p = 0; p < prefixes.length; ++p) {\n\t        var attributeEquals = opt_exactMatch ? '=' : '*=';\n\t        var selector = '[' + prefixes[p] + 'model' + attributeEquals + '\"' + expression + '\"]';\n\t        var elements = element.querySelectorAll(selector);\n\t        if (elements.length) {\n\t          return elements;\n\t        }\n\t      }\n\t    };\n\n\t    /**\n\t     * @name $$testability#getLocation\n\t     *\n\t     * @description\n\t     * Shortcut for getting the location in a browser agnostic way. Returns\n\t     *     the path, search, and hash. (e.g. /path?a=b#hash)\n\t     */\n\t    testability.getLocation = function() {\n\t      return $location.url();\n\t    };\n\n\t    /**\n\t     * @name $$testability#setLocation\n\t     *\n\t     * @description\n\t     * Shortcut for navigating to a location without doing a full page reload.\n\t     *\n\t     * @param {string} url The location url (path, search and hash,\n\t     *     e.g. /path?a=b#hash) to go to.\n\t     */\n\t    testability.setLocation = function(url) {\n\t      if (url !== $location.url()) {\n\t        $location.url(url);\n\t        $rootScope.$digest();\n\t      }\n\t    };\n\n\t    /**\n\t     * @name $$testability#whenStable\n\t     *\n\t     * @description\n\t     * Calls the callback when $timeout and $http requests are completed.\n\t     *\n\t     * @param {function} callback\n\t     */\n\t    testability.whenStable = function(callback) {\n\t      $browser.notifyWhenNoOutstandingRequests(callback);\n\t    };\n\n\t    return testability;\n\t  }];\n\t}\n\n\tfunction $TimeoutProvider() {\n\t  this.$get = ['$rootScope', '$browser', '$q', '$$q', '$exceptionHandler',\n\t       function($rootScope,   $browser,   $q,   $$q,   $exceptionHandler) {\n\n\t    var deferreds = {};\n\n\n\t     /**\n\t      * @ngdoc service\n\t      * @name $timeout\n\t      *\n\t      * @description\n\t      * Angular's wrapper for `window.setTimeout`. The `fn` function is wrapped into a try/catch\n\t      * block and delegates any exceptions to\n\t      * {@link ng.$exceptionHandler $exceptionHandler} service.\n\t      *\n\t      * The return value of calling `$timeout` is a promise, which will be resolved when\n\t      * the delay has passed and the timeout function, if provided, is executed.\n\t      *\n\t      * To cancel a timeout request, call `$timeout.cancel(promise)`.\n\t      *\n\t      * In tests you can use {@link ngMock.$timeout `$timeout.flush()`} to\n\t      * synchronously flush the queue of deferred functions.\n\t      *\n\t      * If you only want a promise that will be resolved after some specified delay\n\t      * then you can call `$timeout` without the `fn` function.\n\t      *\n\t      * @param {function()=} fn A function, whose execution should be delayed.\n\t      * @param {number=} [delay=0] Delay in milliseconds.\n\t      * @param {boolean=} [invokeApply=true] If set to `false` skips model dirty checking, otherwise\n\t      *   will invoke `fn` within the {@link ng.$rootScope.Scope#$apply $apply} block.\n\t      * @param {...*=} Pass additional parameters to the executed function.\n\t      * @returns {Promise} Promise that will be resolved when the timeout is reached. The value this\n\t      *   promise will be resolved with is the return value of the `fn` function.\n\t      *\n\t      */\n\t    function timeout(fn, delay, invokeApply) {\n\t      if (!isFunction(fn)) {\n\t        invokeApply = delay;\n\t        delay = fn;\n\t        fn = noop;\n\t      }\n\n\t      var args = sliceArgs(arguments, 3),\n\t          skipApply = (isDefined(invokeApply) && !invokeApply),\n\t          deferred = (skipApply ? $$q : $q).defer(),\n\t          promise = deferred.promise,\n\t          timeoutId;\n\n\t      timeoutId = $browser.defer(function() {\n\t        try {\n\t          deferred.resolve(fn.apply(null, args));\n\t        } catch (e) {\n\t          deferred.reject(e);\n\t          $exceptionHandler(e);\n\t        }\n\t        finally {\n\t          delete deferreds[promise.$$timeoutId];\n\t        }\n\n\t        if (!skipApply) $rootScope.$apply();\n\t      }, delay);\n\n\t      promise.$$timeoutId = timeoutId;\n\t      deferreds[timeoutId] = deferred;\n\n\t      return promise;\n\t    }\n\n\n\t     /**\n\t      * @ngdoc method\n\t      * @name $timeout#cancel\n\t      *\n\t      * @description\n\t      * Cancels a task associated with the `promise`. As a result of this, the promise will be\n\t      * resolved with a rejection.\n\t      *\n\t      * @param {Promise=} promise Promise returned by the `$timeout` function.\n\t      * @returns {boolean} Returns `true` if the task hasn't executed yet and was successfully\n\t      *   canceled.\n\t      */\n\t    timeout.cancel = function(promise) {\n\t      if (promise && promise.$$timeoutId in deferreds) {\n\t        deferreds[promise.$$timeoutId].reject('canceled');\n\t        delete deferreds[promise.$$timeoutId];\n\t        return $browser.defer.cancel(promise.$$timeoutId);\n\t      }\n\t      return false;\n\t    };\n\n\t    return timeout;\n\t  }];\n\t}\n\n\t// NOTE:  The usage of window and document instead of $window and $document here is\n\t// deliberate.  This service depends on the specific behavior of anchor nodes created by the\n\t// browser (resolving and parsing URLs) that is unlikely to be provided by mock objects and\n\t// cause us to break tests.  In addition, when the browser resolves a URL for XHR, it\n\t// doesn't know about mocked locations and resolves URLs to the real document - which is\n\t// exactly the behavior needed here.  There is little value is mocking these out for this\n\t// service.\n\tvar urlParsingNode = document.createElement(\"a\");\n\tvar originUrl = urlResolve(window.location.href);\n\n\n\t/**\n\t *\n\t * Implementation Notes for non-IE browsers\n\t * ----------------------------------------\n\t * Assigning a URL to the href property of an anchor DOM node, even one attached to the DOM,\n\t * results both in the normalizing and parsing of the URL.  Normalizing means that a relative\n\t * URL will be resolved into an absolute URL in the context of the application document.\n\t * Parsing means that the anchor node's host, hostname, protocol, port, pathname and related\n\t * properties are all populated to reflect the normalized URL.  This approach has wide\n\t * compatibility - Safari 1+, Mozilla 1+, Opera 7+,e etc.  See\n\t * http://www.aptana.com/reference/html/api/HTMLAnchorElement.html\n\t *\n\t * Implementation Notes for IE\n\t * ---------------------------\n\t * IE <= 10 normalizes the URL when assigned to the anchor node similar to the other\n\t * browsers.  However, the parsed components will not be set if the URL assigned did not specify\n\t * them.  (e.g. if you assign a.href = \"foo\", then a.protocol, a.host, etc. will be empty.)  We\n\t * work around that by performing the parsing in a 2nd step by taking a previously normalized\n\t * URL (e.g. by assigning to a.href) and assigning it a.href again.  This correctly populates the\n\t * properties such as protocol, hostname, port, etc.\n\t *\n\t * References:\n\t *   http://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement\n\t *   http://www.aptana.com/reference/html/api/HTMLAnchorElement.html\n\t *   http://url.spec.whatwg.org/#urlutils\n\t *   https://github.com/angular/angular.js/pull/2902\n\t *   http://james.padolsey.com/javascript/parsing-urls-with-the-dom/\n\t *\n\t * @kind function\n\t * @param {string} url The URL to be parsed.\n\t * @description Normalizes and parses a URL.\n\t * @returns {object} Returns the normalized URL as a dictionary.\n\t *\n\t *   | member name   | Description    |\n\t *   |---------------|----------------|\n\t *   | href          | A normalized version of the provided URL if it was not an absolute URL |\n\t *   | protocol      | The protocol including the trailing colon                              |\n\t *   | host          | The host and port (if the port is non-default) of the normalizedUrl    |\n\t *   | search        | The search params, minus the question mark                             |\n\t *   | hash          | The hash string, minus the hash symbol\n\t *   | hostname      | The hostname\n\t *   | port          | The port, without \":\"\n\t *   | pathname      | The pathname, beginning with \"/\"\n\t *\n\t */\n\tfunction urlResolve(url) {\n\t  var href = url;\n\n\t  if (msie) {\n\t    // Normalize before parse.  Refer Implementation Notes on why this is\n\t    // done in two steps on IE.\n\t    urlParsingNode.setAttribute(\"href\", href);\n\t    href = urlParsingNode.href;\n\t  }\n\n\t  urlParsingNode.setAttribute('href', href);\n\n\t  // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n\t  return {\n\t    href: urlParsingNode.href,\n\t    protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n\t    host: urlParsingNode.host,\n\t    search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n\t    hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n\t    hostname: urlParsingNode.hostname,\n\t    port: urlParsingNode.port,\n\t    pathname: (urlParsingNode.pathname.charAt(0) === '/')\n\t      ? urlParsingNode.pathname\n\t      : '/' + urlParsingNode.pathname\n\t  };\n\t}\n\n\t/**\n\t * Parse a request URL and determine whether this is a same-origin request as the application document.\n\t *\n\t * @param {string|object} requestUrl The url of the request as a string that will be resolved\n\t * or a parsed URL object.\n\t * @returns {boolean} Whether the request is for the same origin as the application document.\n\t */\n\tfunction urlIsSameOrigin(requestUrl) {\n\t  var parsed = (isString(requestUrl)) ? urlResolve(requestUrl) : requestUrl;\n\t  return (parsed.protocol === originUrl.protocol &&\n\t          parsed.host === originUrl.host);\n\t}\n\n\t/**\n\t * @ngdoc service\n\t * @name $window\n\t *\n\t * @description\n\t * A reference to the browser's `window` object. While `window`\n\t * is globally available in JavaScript, it causes testability problems, because\n\t * it is a global variable. In angular we always refer to it through the\n\t * `$window` service, so it may be overridden, removed or mocked for testing.\n\t *\n\t * Expressions, like the one defined for the `ngClick` directive in the example\n\t * below, are evaluated with respect to the current scope.  Therefore, there is\n\t * no risk of inadvertently coding in a dependency on a global value in such an\n\t * expression.\n\t *\n\t * @example\n\t   <example module=\"windowExample\">\n\t     <file name=\"index.html\">\n\t       <script>\n\t         angular.module('windowExample', [])\n\t           .controller('ExampleController', ['$scope', '$window', function($scope, $window) {\n\t             $scope.greeting = 'Hello, World!';\n\t             $scope.doGreeting = function(greeting) {\n\t               $window.alert(greeting);\n\t             };\n\t           }]);\n\t       </script>\n\t       <div ng-controller=\"ExampleController\">\n\t         <input type=\"text\" ng-model=\"greeting\" aria-label=\"greeting\" />\n\t         <button ng-click=\"doGreeting(greeting)\">ALERT</button>\n\t       </div>\n\t     </file>\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t      it('should display the greeting in the input box', function() {\n\t       element(by.model('greeting')).sendKeys('Hello, E2E Tests');\n\t       // If we click the button it will block the test runner\n\t       // element(':button').click();\n\t      });\n\t     </file>\n\t   </example>\n\t */\n\tfunction $WindowProvider() {\n\t  this.$get = valueFn(window);\n\t}\n\n\t/**\n\t * @name $$cookieReader\n\t * @requires $document\n\t *\n\t * @description\n\t * This is a private service for reading cookies used by $http and ngCookies\n\t *\n\t * @return {Object} a key/value map of the current cookies\n\t */\n\tfunction $$CookieReader($document) {\n\t  var rawDocument = $document[0] || {};\n\t  var lastCookies = {};\n\t  var lastCookieString = '';\n\n\t  function safeDecodeURIComponent(str) {\n\t    try {\n\t      return decodeURIComponent(str);\n\t    } catch (e) {\n\t      return str;\n\t    }\n\t  }\n\n\t  return function() {\n\t    var cookieArray, cookie, i, index, name;\n\t    var currentCookieString = rawDocument.cookie || '';\n\n\t    if (currentCookieString !== lastCookieString) {\n\t      lastCookieString = currentCookieString;\n\t      cookieArray = lastCookieString.split('; ');\n\t      lastCookies = {};\n\n\t      for (i = 0; i < cookieArray.length; i++) {\n\t        cookie = cookieArray[i];\n\t        index = cookie.indexOf('=');\n\t        if (index > 0) { //ignore nameless cookies\n\t          name = safeDecodeURIComponent(cookie.substring(0, index));\n\t          // the first value that is seen for a cookie is the most\n\t          // specific one.  values for the same cookie name that\n\t          // follow are for less specific paths.\n\t          if (isUndefined(lastCookies[name])) {\n\t            lastCookies[name] = safeDecodeURIComponent(cookie.substring(index + 1));\n\t          }\n\t        }\n\t      }\n\t    }\n\t    return lastCookies;\n\t  };\n\t}\n\n\t$$CookieReader.$inject = ['$document'];\n\n\tfunction $$CookieReaderProvider() {\n\t  this.$get = $$CookieReader;\n\t}\n\n\t/* global currencyFilter: true,\n\t dateFilter: true,\n\t filterFilter: true,\n\t jsonFilter: true,\n\t limitToFilter: true,\n\t lowercaseFilter: true,\n\t numberFilter: true,\n\t orderByFilter: true,\n\t uppercaseFilter: true,\n\t */\n\n\t/**\n\t * @ngdoc provider\n\t * @name $filterProvider\n\t * @description\n\t *\n\t * Filters are just functions which transform input to an output. However filters need to be\n\t * Dependency Injected. To achieve this a filter definition consists of a factory function which is\n\t * annotated with dependencies and is responsible for creating a filter function.\n\t *\n\t * <div class=\"alert alert-warning\">\n\t * **Note:** Filter names must be valid angular {@link expression} identifiers, such as `uppercase` or `orderBy`.\n\t * Names with special characters, such as hyphens and dots, are not allowed. If you wish to namespace\n\t * your filters, then you can use capitalization (`myappSubsectionFilterx`) or underscores\n\t * (`myapp_subsection_filterx`).\n\t * </div>\n\t *\n\t * ```js\n\t *   // Filter registration\n\t *   function MyModule($provide, $filterProvider) {\n\t *     // create a service to demonstrate injection (not always needed)\n\t *     $provide.value('greet', function(name){\n\t *       return 'Hello ' + name + '!';\n\t *     });\n\t *\n\t *     // register a filter factory which uses the\n\t *     // greet service to demonstrate DI.\n\t *     $filterProvider.register('greet', function(greet){\n\t *       // return the filter function which uses the greet service\n\t *       // to generate salutation\n\t *       return function(text) {\n\t *         // filters need to be forgiving so check input validity\n\t *         return text && greet(text) || text;\n\t *       };\n\t *     });\n\t *   }\n\t * ```\n\t *\n\t * The filter function is registered with the `$injector` under the filter name suffix with\n\t * `Filter`.\n\t *\n\t * ```js\n\t *   it('should be the same instance', inject(\n\t *     function($filterProvider) {\n\t *       $filterProvider.register('reverse', function(){\n\t *         return ...;\n\t *       });\n\t *     },\n\t *     function($filter, reverseFilter) {\n\t *       expect($filter('reverse')).toBe(reverseFilter);\n\t *     });\n\t * ```\n\t *\n\t *\n\t * For more information about how angular filters work, and how to create your own filters, see\n\t * {@link guide/filter Filters} in the Angular Developer Guide.\n\t */\n\n\t/**\n\t * @ngdoc service\n\t * @name $filter\n\t * @kind function\n\t * @description\n\t * Filters are used for formatting data displayed to the user.\n\t *\n\t * The general syntax in templates is as follows:\n\t *\n\t *         {{ expression [| filter_name[:parameter_value] ... ] }}\n\t *\n\t * @param {String} name Name of the filter function to retrieve\n\t * @return {Function} the filter function\n\t * @example\n\t   <example name=\"$filter\" module=\"filterExample\">\n\t     <file name=\"index.html\">\n\t       <div ng-controller=\"MainCtrl\">\n\t        <h3>{{ originalText }}</h3>\n\t        <h3>{{ filteredText }}</h3>\n\t       </div>\n\t     </file>\n\n\t     <file name=\"script.js\">\n\t      angular.module('filterExample', [])\n\t      .controller('MainCtrl', function($scope, $filter) {\n\t        $scope.originalText = 'hello';\n\t        $scope.filteredText = $filter('uppercase')($scope.originalText);\n\t      });\n\t     </file>\n\t   </example>\n\t  */\n\t$FilterProvider.$inject = ['$provide'];\n\tfunction $FilterProvider($provide) {\n\t  var suffix = 'Filter';\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $filterProvider#register\n\t   * @param {string|Object} name Name of the filter function, or an object map of filters where\n\t   *    the keys are the filter names and the values are the filter factories.\n\t   *\n\t   *    <div class=\"alert alert-warning\">\n\t   *    **Note:** Filter names must be valid angular {@link expression} identifiers, such as `uppercase` or `orderBy`.\n\t   *    Names with special characters, such as hyphens and dots, are not allowed. If you wish to namespace\n\t   *    your filters, then you can use capitalization (`myappSubsectionFilterx`) or underscores\n\t   *    (`myapp_subsection_filterx`).\n\t   *    </div>\n\t    * @param {Function} factory If the first argument was a string, a factory function for the filter to be registered.\n\t   * @returns {Object} Registered filter instance, or if a map of filters was provided then a map\n\t   *    of the registered filter instances.\n\t   */\n\t  function register(name, factory) {\n\t    if (isObject(name)) {\n\t      var filters = {};\n\t      forEach(name, function(filter, key) {\n\t        filters[key] = register(key, filter);\n\t      });\n\t      return filters;\n\t    } else {\n\t      return $provide.factory(name + suffix, factory);\n\t    }\n\t  }\n\t  this.register = register;\n\n\t  this.$get = ['$injector', function($injector) {\n\t    return function(name) {\n\t      return $injector.get(name + suffix);\n\t    };\n\t  }];\n\n\t  ////////////////////////////////////////\n\n\t  /* global\n\t    currencyFilter: false,\n\t    dateFilter: false,\n\t    filterFilter: false,\n\t    jsonFilter: false,\n\t    limitToFilter: false,\n\t    lowercaseFilter: false,\n\t    numberFilter: false,\n\t    orderByFilter: false,\n\t    uppercaseFilter: false,\n\t  */\n\n\t  register('currency', currencyFilter);\n\t  register('date', dateFilter);\n\t  register('filter', filterFilter);\n\t  register('json', jsonFilter);\n\t  register('limitTo', limitToFilter);\n\t  register('lowercase', lowercaseFilter);\n\t  register('number', numberFilter);\n\t  register('orderBy', orderByFilter);\n\t  register('uppercase', uppercaseFilter);\n\t}\n\n\t/**\n\t * @ngdoc filter\n\t * @name filter\n\t * @kind function\n\t *\n\t * @description\n\t * Selects a subset of items from `array` and returns it as a new array.\n\t *\n\t * @param {Array} array The source array.\n\t * @param {string|Object|function()} expression The predicate to be used for selecting items from\n\t *   `array`.\n\t *\n\t *   Can be one of:\n\t *\n\t *   - `string`: The string is used for matching against the contents of the `array`. All strings or\n\t *     objects with string properties in `array` that match this string will be returned. This also\n\t *     applies to nested object properties.\n\t *     The predicate can be negated by prefixing the string with `!`.\n\t *\n\t *   - `Object`: A pattern object can be used to filter specific properties on objects contained\n\t *     by `array`. For example `{name:\"M\", phone:\"1\"}` predicate will return an array of items\n\t *     which have property `name` containing \"M\" and property `phone` containing \"1\". A special\n\t *     property name `$` can be used (as in `{$:\"text\"}`) to accept a match against any\n\t *     property of the object or its nested object properties. That's equivalent to the simple\n\t *     substring match with a `string` as described above. The predicate can be negated by prefixing\n\t *     the string with `!`.\n\t *     For example `{name: \"!M\"}` predicate will return an array of items which have property `name`\n\t *     not containing \"M\".\n\t *\n\t *     Note that a named property will match properties on the same level only, while the special\n\t *     `$` property will match properties on the same level or deeper. E.g. an array item like\n\t *     `{name: {first: 'John', last: 'Doe'}}` will **not** be matched by `{name: 'John'}`, but\n\t *     **will** be matched by `{$: 'John'}`.\n\t *\n\t *   - `function(value, index, array)`: A predicate function can be used to write arbitrary filters.\n\t *     The function is called for each element of the array, with the element, its index, and\n\t *     the entire array itself as arguments.\n\t *\n\t *     The final result is an array of those elements that the predicate returned true for.\n\t *\n\t * @param {function(actual, expected)|true|undefined} comparator Comparator which is used in\n\t *     determining if the expected value (from the filter expression) and actual value (from\n\t *     the object in the array) should be considered a match.\n\t *\n\t *   Can be one of:\n\t *\n\t *   - `function(actual, expected)`:\n\t *     The function will be given the object value and the predicate value to compare and\n\t *     should return true if both values should be considered equal.\n\t *\n\t *   - `true`: A shorthand for `function(actual, expected) { return angular.equals(actual, expected)}`.\n\t *     This is essentially strict comparison of expected and actual.\n\t *\n\t *   - `false|undefined`: A short hand for a function which will look for a substring match in case\n\t *     insensitive way.\n\t *\n\t *     Primitive values are converted to strings. Objects are not compared against primitives,\n\t *     unless they have a custom `toString` method (e.g. `Date` objects).\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t       <div ng-init=\"friends = [{name:'John', phone:'555-1276'},\n\t                                {name:'Mary', phone:'800-BIG-MARY'},\n\t                                {name:'Mike', phone:'555-4321'},\n\t                                {name:'Adam', phone:'555-5678'},\n\t                                {name:'Julie', phone:'555-8765'},\n\t                                {name:'Juliette', phone:'555-5678'}]\"></div>\n\n\t       <label>Search: <input ng-model=\"searchText\"></label>\n\t       <table id=\"searchTextResults\">\n\t         <tr><th>Name</th><th>Phone</th></tr>\n\t         <tr ng-repeat=\"friend in friends | filter:searchText\">\n\t           <td>{{friend.name}}</td>\n\t           <td>{{friend.phone}}</td>\n\t         </tr>\n\t       </table>\n\t       <hr>\n\t       <label>Any: <input ng-model=\"search.$\"></label> <br>\n\t       <label>Name only <input ng-model=\"search.name\"></label><br>\n\t       <label>Phone only <input ng-model=\"search.phone\"></label><br>\n\t       <label>Equality <input type=\"checkbox\" ng-model=\"strict\"></label><br>\n\t       <table id=\"searchObjResults\">\n\t         <tr><th>Name</th><th>Phone</th></tr>\n\t         <tr ng-repeat=\"friendObj in friends | filter:search:strict\">\n\t           <td>{{friendObj.name}}</td>\n\t           <td>{{friendObj.phone}}</td>\n\t         </tr>\n\t       </table>\n\t     </file>\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t       var expectFriendNames = function(expectedNames, key) {\n\t         element.all(by.repeater(key + ' in friends').column(key + '.name')).then(function(arr) {\n\t           arr.forEach(function(wd, i) {\n\t             expect(wd.getText()).toMatch(expectedNames[i]);\n\t           });\n\t         });\n\t       };\n\n\t       it('should search across all fields when filtering with a string', function() {\n\t         var searchText = element(by.model('searchText'));\n\t         searchText.clear();\n\t         searchText.sendKeys('m');\n\t         expectFriendNames(['Mary', 'Mike', 'Adam'], 'friend');\n\n\t         searchText.clear();\n\t         searchText.sendKeys('76');\n\t         expectFriendNames(['John', 'Julie'], 'friend');\n\t       });\n\n\t       it('should search in specific fields when filtering with a predicate object', function() {\n\t         var searchAny = element(by.model('search.$'));\n\t         searchAny.clear();\n\t         searchAny.sendKeys('i');\n\t         expectFriendNames(['Mary', 'Mike', 'Julie', 'Juliette'], 'friendObj');\n\t       });\n\t       it('should use a equal comparison when comparator is true', function() {\n\t         var searchName = element(by.model('search.name'));\n\t         var strict = element(by.model('strict'));\n\t         searchName.clear();\n\t         searchName.sendKeys('Julie');\n\t         strict.click();\n\t         expectFriendNames(['Julie'], 'friendObj');\n\t       });\n\t     </file>\n\t   </example>\n\t */\n\tfunction filterFilter() {\n\t  return function(array, expression, comparator) {\n\t    if (!isArrayLike(array)) {\n\t      if (array == null) {\n\t        return array;\n\t      } else {\n\t        throw minErr('filter')('notarray', 'Expected array but received: {0}', array);\n\t      }\n\t    }\n\n\t    var expressionType = getTypeForFilter(expression);\n\t    var predicateFn;\n\t    var matchAgainstAnyProp;\n\n\t    switch (expressionType) {\n\t      case 'function':\n\t        predicateFn = expression;\n\t        break;\n\t      case 'boolean':\n\t      case 'null':\n\t      case 'number':\n\t      case 'string':\n\t        matchAgainstAnyProp = true;\n\t        //jshint -W086\n\t      case 'object':\n\t        //jshint +W086\n\t        predicateFn = createPredicateFn(expression, comparator, matchAgainstAnyProp);\n\t        break;\n\t      default:\n\t        return array;\n\t    }\n\n\t    return Array.prototype.filter.call(array, predicateFn);\n\t  };\n\t}\n\n\t// Helper functions for `filterFilter`\n\tfunction createPredicateFn(expression, comparator, matchAgainstAnyProp) {\n\t  var shouldMatchPrimitives = isObject(expression) && ('$' in expression);\n\t  var predicateFn;\n\n\t  if (comparator === true) {\n\t    comparator = equals;\n\t  } else if (!isFunction(comparator)) {\n\t    comparator = function(actual, expected) {\n\t      if (isUndefined(actual)) {\n\t        // No substring matching against `undefined`\n\t        return false;\n\t      }\n\t      if ((actual === null) || (expected === null)) {\n\t        // No substring matching against `null`; only match against `null`\n\t        return actual === expected;\n\t      }\n\t      if (isObject(expected) || (isObject(actual) && !hasCustomToString(actual))) {\n\t        // Should not compare primitives against objects, unless they have custom `toString` method\n\t        return false;\n\t      }\n\n\t      actual = lowercase('' + actual);\n\t      expected = lowercase('' + expected);\n\t      return actual.indexOf(expected) !== -1;\n\t    };\n\t  }\n\n\t  predicateFn = function(item) {\n\t    if (shouldMatchPrimitives && !isObject(item)) {\n\t      return deepCompare(item, expression.$, comparator, false);\n\t    }\n\t    return deepCompare(item, expression, comparator, matchAgainstAnyProp);\n\t  };\n\n\t  return predicateFn;\n\t}\n\n\tfunction deepCompare(actual, expected, comparator, matchAgainstAnyProp, dontMatchWholeObject) {\n\t  var actualType = getTypeForFilter(actual);\n\t  var expectedType = getTypeForFilter(expected);\n\n\t  if ((expectedType === 'string') && (expected.charAt(0) === '!')) {\n\t    return !deepCompare(actual, expected.substring(1), comparator, matchAgainstAnyProp);\n\t  } else if (isArray(actual)) {\n\t    // In case `actual` is an array, consider it a match\n\t    // if ANY of it's items matches `expected`\n\t    return actual.some(function(item) {\n\t      return deepCompare(item, expected, comparator, matchAgainstAnyProp);\n\t    });\n\t  }\n\n\t  switch (actualType) {\n\t    case 'object':\n\t      var key;\n\t      if (matchAgainstAnyProp) {\n\t        for (key in actual) {\n\t          if ((key.charAt(0) !== '$') && deepCompare(actual[key], expected, comparator, true)) {\n\t            return true;\n\t          }\n\t        }\n\t        return dontMatchWholeObject ? false : deepCompare(actual, expected, comparator, false);\n\t      } else if (expectedType === 'object') {\n\t        for (key in expected) {\n\t          var expectedVal = expected[key];\n\t          if (isFunction(expectedVal) || isUndefined(expectedVal)) {\n\t            continue;\n\t          }\n\n\t          var matchAnyProperty = key === '$';\n\t          var actualVal = matchAnyProperty ? actual : actual[key];\n\t          if (!deepCompare(actualVal, expectedVal, comparator, matchAnyProperty, matchAnyProperty)) {\n\t            return false;\n\t          }\n\t        }\n\t        return true;\n\t      } else {\n\t        return comparator(actual, expected);\n\t      }\n\t      break;\n\t    case 'function':\n\t      return false;\n\t    default:\n\t      return comparator(actual, expected);\n\t  }\n\t}\n\n\t// Used for easily differentiating between `null` and actual `object`\n\tfunction getTypeForFilter(val) {\n\t  return (val === null) ? 'null' : typeof val;\n\t}\n\n\t/**\n\t * @ngdoc filter\n\t * @name currency\n\t * @kind function\n\t *\n\t * @description\n\t * Formats a number as a currency (ie $1,234.56). When no currency symbol is provided, default\n\t * symbol for current locale is used.\n\t *\n\t * @param {number} amount Input to filter.\n\t * @param {string=} symbol Currency symbol or identifier to be displayed.\n\t * @param {number=} fractionSize Number of decimal places to round the amount to, defaults to default max fraction size for current locale\n\t * @returns {string} Formatted number.\n\t *\n\t *\n\t * @example\n\t   <example module=\"currencyExample\">\n\t     <file name=\"index.html\">\n\t       <script>\n\t         angular.module('currencyExample', [])\n\t           .controller('ExampleController', ['$scope', function($scope) {\n\t             $scope.amount = 1234.56;\n\t           }]);\n\t       </script>\n\t       <div ng-controller=\"ExampleController\">\n\t         <input type=\"number\" ng-model=\"amount\" aria-label=\"amount\"> <br>\n\t         default currency symbol ($): <span id=\"currency-default\">{{amount | currency}}</span><br>\n\t         custom currency identifier (USD$): <span id=\"currency-custom\">{{amount | currency:\"USD$\"}}</span>\n\t         no fractions (0): <span id=\"currency-no-fractions\">{{amount | currency:\"USD$\":0}}</span>\n\t       </div>\n\t     </file>\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t       it('should init with 1234.56', function() {\n\t         expect(element(by.id('currency-default')).getText()).toBe('$1,234.56');\n\t         expect(element(by.id('currency-custom')).getText()).toBe('USD$1,234.56');\n\t         expect(element(by.id('currency-no-fractions')).getText()).toBe('USD$1,235');\n\t       });\n\t       it('should update', function() {\n\t         if (browser.params.browser == 'safari') {\n\t           // Safari does not understand the minus key. See\n\t           // https://github.com/angular/protractor/issues/481\n\t           return;\n\t         }\n\t         element(by.model('amount')).clear();\n\t         element(by.model('amount')).sendKeys('-1234');\n\t         expect(element(by.id('currency-default')).getText()).toBe('-$1,234.00');\n\t         expect(element(by.id('currency-custom')).getText()).toBe('-USD$1,234.00');\n\t         expect(element(by.id('currency-no-fractions')).getText()).toBe('-USD$1,234');\n\t       });\n\t     </file>\n\t   </example>\n\t */\n\tcurrencyFilter.$inject = ['$locale'];\n\tfunction currencyFilter($locale) {\n\t  var formats = $locale.NUMBER_FORMATS;\n\t  return function(amount, currencySymbol, fractionSize) {\n\t    if (isUndefined(currencySymbol)) {\n\t      currencySymbol = formats.CURRENCY_SYM;\n\t    }\n\n\t    if (isUndefined(fractionSize)) {\n\t      fractionSize = formats.PATTERNS[1].maxFrac;\n\t    }\n\n\t    // if null or undefined pass it through\n\t    return (amount == null)\n\t        ? amount\n\t        : formatNumber(amount, formats.PATTERNS[1], formats.GROUP_SEP, formats.DECIMAL_SEP, fractionSize).\n\t            replace(/\\u00A4/g, currencySymbol);\n\t  };\n\t}\n\n\t/**\n\t * @ngdoc filter\n\t * @name number\n\t * @kind function\n\t *\n\t * @description\n\t * Formats a number as text.\n\t *\n\t * If the input is null or undefined, it will just be returned.\n\t * If the input is infinite (Infinity/-Infinity) the Infinity symbol '∞' is returned.\n\t * If the input is not a number an empty string is returned.\n\t *\n\t *\n\t * @param {number|string} number Number to format.\n\t * @param {(number|string)=} fractionSize Number of decimal places to round the number to.\n\t * If this is not provided then the fraction size is computed from the current locale's number\n\t * formatting pattern. In the case of the default locale, it will be 3.\n\t * @returns {string} Number rounded to decimalPlaces and places a “,” after each third digit.\n\t *\n\t * @example\n\t   <example module=\"numberFilterExample\">\n\t     <file name=\"index.html\">\n\t       <script>\n\t         angular.module('numberFilterExample', [])\n\t           .controller('ExampleController', ['$scope', function($scope) {\n\t             $scope.val = 1234.56789;\n\t           }]);\n\t       </script>\n\t       <div ng-controller=\"ExampleController\">\n\t         <label>Enter number: <input ng-model='val'></label><br>\n\t         Default formatting: <span id='number-default'>{{val | number}}</span><br>\n\t         No fractions: <span>{{val | number:0}}</span><br>\n\t         Negative number: <span>{{-val | number:4}}</span>\n\t       </div>\n\t     </file>\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t       it('should format numbers', function() {\n\t         expect(element(by.id('number-default')).getText()).toBe('1,234.568');\n\t         expect(element(by.binding('val | number:0')).getText()).toBe('1,235');\n\t         expect(element(by.binding('-val | number:4')).getText()).toBe('-1,234.5679');\n\t       });\n\n\t       it('should update', function() {\n\t         element(by.model('val')).clear();\n\t         element(by.model('val')).sendKeys('3374.333');\n\t         expect(element(by.id('number-default')).getText()).toBe('3,374.333');\n\t         expect(element(by.binding('val | number:0')).getText()).toBe('3,374');\n\t         expect(element(by.binding('-val | number:4')).getText()).toBe('-3,374.3330');\n\t      });\n\t     </file>\n\t   </example>\n\t */\n\n\n\tnumberFilter.$inject = ['$locale'];\n\tfunction numberFilter($locale) {\n\t  var formats = $locale.NUMBER_FORMATS;\n\t  return function(number, fractionSize) {\n\n\t    // if null or undefined pass it through\n\t    return (number == null)\n\t        ? number\n\t        : formatNumber(number, formats.PATTERNS[0], formats.GROUP_SEP, formats.DECIMAL_SEP,\n\t                       fractionSize);\n\t  };\n\t}\n\n\tvar DECIMAL_SEP = '.';\n\tfunction formatNumber(number, pattern, groupSep, decimalSep, fractionSize) {\n\t  if (isObject(number)) return '';\n\n\t  var isNegative = number < 0;\n\t  number = Math.abs(number);\n\n\t  var isInfinity = number === Infinity;\n\t  if (!isInfinity && !isFinite(number)) return '';\n\n\t  var numStr = number + '',\n\t      formatedText = '',\n\t      hasExponent = false,\n\t      parts = [];\n\n\t  if (isInfinity) formatedText = '\\u221e';\n\n\t  if (!isInfinity && numStr.indexOf('e') !== -1) {\n\t    var match = numStr.match(/([\\d\\.]+)e(-?)(\\d+)/);\n\t    if (match && match[2] == '-' && match[3] > fractionSize + 1) {\n\t      number = 0;\n\t    } else {\n\t      formatedText = numStr;\n\t      hasExponent = true;\n\t    }\n\t  }\n\n\t  if (!isInfinity && !hasExponent) {\n\t    var fractionLen = (numStr.split(DECIMAL_SEP)[1] || '').length;\n\n\t    // determine fractionSize if it is not specified\n\t    if (isUndefined(fractionSize)) {\n\t      fractionSize = Math.min(Math.max(pattern.minFrac, fractionLen), pattern.maxFrac);\n\t    }\n\n\t    // safely round numbers in JS without hitting imprecisions of floating-point arithmetics\n\t    // inspired by:\n\t    // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/round\n\t    number = +(Math.round(+(number.toString() + 'e' + fractionSize)).toString() + 'e' + -fractionSize);\n\n\t    var fraction = ('' + number).split(DECIMAL_SEP);\n\t    var whole = fraction[0];\n\t    fraction = fraction[1] || '';\n\n\t    var i, pos = 0,\n\t        lgroup = pattern.lgSize,\n\t        group = pattern.gSize;\n\n\t    if (whole.length >= (lgroup + group)) {\n\t      pos = whole.length - lgroup;\n\t      for (i = 0; i < pos; i++) {\n\t        if ((pos - i) % group === 0 && i !== 0) {\n\t          formatedText += groupSep;\n\t        }\n\t        formatedText += whole.charAt(i);\n\t      }\n\t    }\n\n\t    for (i = pos; i < whole.length; i++) {\n\t      if ((whole.length - i) % lgroup === 0 && i !== 0) {\n\t        formatedText += groupSep;\n\t      }\n\t      formatedText += whole.charAt(i);\n\t    }\n\n\t    // format fraction part.\n\t    while (fraction.length < fractionSize) {\n\t      fraction += '0';\n\t    }\n\n\t    if (fractionSize && fractionSize !== \"0\") formatedText += decimalSep + fraction.substr(0, fractionSize);\n\t  } else {\n\t    if (fractionSize > 0 && number < 1) {\n\t      formatedText = number.toFixed(fractionSize);\n\t      number = parseFloat(formatedText);\n\t      formatedText = formatedText.replace(DECIMAL_SEP, decimalSep);\n\t    }\n\t  }\n\n\t  if (number === 0) {\n\t    isNegative = false;\n\t  }\n\n\t  parts.push(isNegative ? pattern.negPre : pattern.posPre,\n\t             formatedText,\n\t             isNegative ? pattern.negSuf : pattern.posSuf);\n\t  return parts.join('');\n\t}\n\n\tfunction padNumber(num, digits, trim) {\n\t  var neg = '';\n\t  if (num < 0) {\n\t    neg =  '-';\n\t    num = -num;\n\t  }\n\t  num = '' + num;\n\t  while (num.length < digits) num = '0' + num;\n\t  if (trim) {\n\t    num = num.substr(num.length - digits);\n\t  }\n\t  return neg + num;\n\t}\n\n\n\tfunction dateGetter(name, size, offset, trim) {\n\t  offset = offset || 0;\n\t  return function(date) {\n\t    var value = date['get' + name]();\n\t    if (offset > 0 || value > -offset) {\n\t      value += offset;\n\t    }\n\t    if (value === 0 && offset == -12) value = 12;\n\t    return padNumber(value, size, trim);\n\t  };\n\t}\n\n\tfunction dateStrGetter(name, shortForm) {\n\t  return function(date, formats) {\n\t    var value = date['get' + name]();\n\t    var get = uppercase(shortForm ? ('SHORT' + name) : name);\n\n\t    return formats[get][value];\n\t  };\n\t}\n\n\tfunction timeZoneGetter(date, formats, offset) {\n\t  var zone = -1 * offset;\n\t  var paddedZone = (zone >= 0) ? \"+\" : \"\";\n\n\t  paddedZone += padNumber(Math[zone > 0 ? 'floor' : 'ceil'](zone / 60), 2) +\n\t                padNumber(Math.abs(zone % 60), 2);\n\n\t  return paddedZone;\n\t}\n\n\tfunction getFirstThursdayOfYear(year) {\n\t    // 0 = index of January\n\t    var dayOfWeekOnFirst = (new Date(year, 0, 1)).getDay();\n\t    // 4 = index of Thursday (+1 to account for 1st = 5)\n\t    // 11 = index of *next* Thursday (+1 account for 1st = 12)\n\t    return new Date(year, 0, ((dayOfWeekOnFirst <= 4) ? 5 : 12) - dayOfWeekOnFirst);\n\t}\n\n\tfunction getThursdayThisWeek(datetime) {\n\t    return new Date(datetime.getFullYear(), datetime.getMonth(),\n\t      // 4 = index of Thursday\n\t      datetime.getDate() + (4 - datetime.getDay()));\n\t}\n\n\tfunction weekGetter(size) {\n\t   return function(date) {\n\t      var firstThurs = getFirstThursdayOfYear(date.getFullYear()),\n\t         thisThurs = getThursdayThisWeek(date);\n\n\t      var diff = +thisThurs - +firstThurs,\n\t         result = 1 + Math.round(diff / 6.048e8); // 6.048e8 ms per week\n\n\t      return padNumber(result, size);\n\t   };\n\t}\n\n\tfunction ampmGetter(date, formats) {\n\t  return date.getHours() < 12 ? formats.AMPMS[0] : formats.AMPMS[1];\n\t}\n\n\tfunction eraGetter(date, formats) {\n\t  return date.getFullYear() <= 0 ? formats.ERAS[0] : formats.ERAS[1];\n\t}\n\n\tfunction longEraGetter(date, formats) {\n\t  return date.getFullYear() <= 0 ? formats.ERANAMES[0] : formats.ERANAMES[1];\n\t}\n\n\tvar DATE_FORMATS = {\n\t  yyyy: dateGetter('FullYear', 4),\n\t    yy: dateGetter('FullYear', 2, 0, true),\n\t     y: dateGetter('FullYear', 1),\n\t  MMMM: dateStrGetter('Month'),\n\t   MMM: dateStrGetter('Month', true),\n\t    MM: dateGetter('Month', 2, 1),\n\t     M: dateGetter('Month', 1, 1),\n\t    dd: dateGetter('Date', 2),\n\t     d: dateGetter('Date', 1),\n\t    HH: dateGetter('Hours', 2),\n\t     H: dateGetter('Hours', 1),\n\t    hh: dateGetter('Hours', 2, -12),\n\t     h: dateGetter('Hours', 1, -12),\n\t    mm: dateGetter('Minutes', 2),\n\t     m: dateGetter('Minutes', 1),\n\t    ss: dateGetter('Seconds', 2),\n\t     s: dateGetter('Seconds', 1),\n\t     // while ISO 8601 requires fractions to be prefixed with `.` or `,`\n\t     // we can be just safely rely on using `sss` since we currently don't support single or two digit fractions\n\t   sss: dateGetter('Milliseconds', 3),\n\t  EEEE: dateStrGetter('Day'),\n\t   EEE: dateStrGetter('Day', true),\n\t     a: ampmGetter,\n\t     Z: timeZoneGetter,\n\t    ww: weekGetter(2),\n\t     w: weekGetter(1),\n\t     G: eraGetter,\n\t     GG: eraGetter,\n\t     GGG: eraGetter,\n\t     GGGG: longEraGetter\n\t};\n\n\tvar DATE_FORMATS_SPLIT = /((?:[^yMdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,\n\t    NUMBER_STRING = /^\\-?\\d+$/;\n\n\t/**\n\t * @ngdoc filter\n\t * @name date\n\t * @kind function\n\t *\n\t * @description\n\t *   Formats `date` to a string based on the requested `format`.\n\t *\n\t *   `format` string can be composed of the following elements:\n\t *\n\t *   * `'yyyy'`: 4 digit representation of year (e.g. AD 1 => 0001, AD 2010 => 2010)\n\t *   * `'yy'`: 2 digit representation of year, padded (00-99). (e.g. AD 2001 => 01, AD 2010 => 10)\n\t *   * `'y'`: 1 digit representation of year, e.g. (AD 1 => 1, AD 199 => 199)\n\t *   * `'MMMM'`: Month in year (January-December)\n\t *   * `'MMM'`: Month in year (Jan-Dec)\n\t *   * `'MM'`: Month in year, padded (01-12)\n\t *   * `'M'`: Month in year (1-12)\n\t *   * `'dd'`: Day in month, padded (01-31)\n\t *   * `'d'`: Day in month (1-31)\n\t *   * `'EEEE'`: Day in Week,(Sunday-Saturday)\n\t *   * `'EEE'`: Day in Week, (Sun-Sat)\n\t *   * `'HH'`: Hour in day, padded (00-23)\n\t *   * `'H'`: Hour in day (0-23)\n\t *   * `'hh'`: Hour in AM/PM, padded (01-12)\n\t *   * `'h'`: Hour in AM/PM, (1-12)\n\t *   * `'mm'`: Minute in hour, padded (00-59)\n\t *   * `'m'`: Minute in hour (0-59)\n\t *   * `'ss'`: Second in minute, padded (00-59)\n\t *   * `'s'`: Second in minute (0-59)\n\t *   * `'sss'`: Millisecond in second, padded (000-999)\n\t *   * `'a'`: AM/PM marker\n\t *   * `'Z'`: 4 digit (+sign) representation of the timezone offset (-1200-+1200)\n\t *   * `'ww'`: Week of year, padded (00-53). Week 01 is the week with the first Thursday of the year\n\t *   * `'w'`: Week of year (0-53). Week 1 is the week with the first Thursday of the year\n\t *   * `'G'`, `'GG'`, `'GGG'`: The abbreviated form of the era string (e.g. 'AD')\n\t *   * `'GGGG'`: The long form of the era string (e.g. 'Anno Domini')\n\t *\n\t *   `format` string can also be one of the following predefined\n\t *   {@link guide/i18n localizable formats}:\n\t *\n\t *   * `'medium'`: equivalent to `'MMM d, y h:mm:ss a'` for en_US locale\n\t *     (e.g. Sep 3, 2010 12:05:08 PM)\n\t *   * `'short'`: equivalent to `'M/d/yy h:mm a'` for en_US  locale (e.g. 9/3/10 12:05 PM)\n\t *   * `'fullDate'`: equivalent to `'EEEE, MMMM d, y'` for en_US  locale\n\t *     (e.g. Friday, September 3, 2010)\n\t *   * `'longDate'`: equivalent to `'MMMM d, y'` for en_US  locale (e.g. September 3, 2010)\n\t *   * `'mediumDate'`: equivalent to `'MMM d, y'` for en_US  locale (e.g. Sep 3, 2010)\n\t *   * `'shortDate'`: equivalent to `'M/d/yy'` for en_US locale (e.g. 9/3/10)\n\t *   * `'mediumTime'`: equivalent to `'h:mm:ss a'` for en_US locale (e.g. 12:05:08 PM)\n\t *   * `'shortTime'`: equivalent to `'h:mm a'` for en_US locale (e.g. 12:05 PM)\n\t *\n\t *   `format` string can contain literal values. These need to be escaped by surrounding with single quotes (e.g.\n\t *   `\"h 'in the morning'\"`). In order to output a single quote, escape it - i.e., two single quotes in a sequence\n\t *   (e.g. `\"h 'o''clock'\"`).\n\t *\n\t * @param {(Date|number|string)} date Date to format either as Date object, milliseconds (string or\n\t *    number) or various ISO 8601 datetime string formats (e.g. yyyy-MM-ddTHH:mm:ss.sssZ and its\n\t *    shorter versions like yyyy-MM-ddTHH:mmZ, yyyy-MM-dd or yyyyMMddTHHmmssZ). If no timezone is\n\t *    specified in the string input, the time is considered to be in the local timezone.\n\t * @param {string=} format Formatting rules (see Description). If not specified,\n\t *    `mediumDate` is used.\n\t * @param {string=} timezone Timezone to be used for formatting. It understands UTC/GMT and the\n\t *    continental US time zone abbreviations, but for general use, use a time zone offset, for\n\t *    example, `'+0430'` (4 hours, 30 minutes east of the Greenwich meridian)\n\t *    If not specified, the timezone of the browser will be used.\n\t * @returns {string} Formatted string or the input if input is not recognized as date/millis.\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t       <span ng-non-bindable>{{1288323623006 | date:'medium'}}</span>:\n\t           <span>{{1288323623006 | date:'medium'}}</span><br>\n\t       <span ng-non-bindable>{{1288323623006 | date:'yyyy-MM-dd HH:mm:ss Z'}}</span>:\n\t          <span>{{1288323623006 | date:'yyyy-MM-dd HH:mm:ss Z'}}</span><br>\n\t       <span ng-non-bindable>{{1288323623006 | date:'MM/dd/yyyy @ h:mma'}}</span>:\n\t          <span>{{'1288323623006' | date:'MM/dd/yyyy @ h:mma'}}</span><br>\n\t       <span ng-non-bindable>{{1288323623006 | date:\"MM/dd/yyyy 'at' h:mma\"}}</span>:\n\t          <span>{{'1288323623006' | date:\"MM/dd/yyyy 'at' h:mma\"}}</span><br>\n\t     </file>\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t       it('should format date', function() {\n\t         expect(element(by.binding(\"1288323623006 | date:'medium'\")).getText()).\n\t            toMatch(/Oct 2\\d, 2010 \\d{1,2}:\\d{2}:\\d{2} (AM|PM)/);\n\t         expect(element(by.binding(\"1288323623006 | date:'yyyy-MM-dd HH:mm:ss Z'\")).getText()).\n\t            toMatch(/2010\\-10\\-2\\d \\d{2}:\\d{2}:\\d{2} (\\-|\\+)?\\d{4}/);\n\t         expect(element(by.binding(\"'1288323623006' | date:'MM/dd/yyyy @ h:mma'\")).getText()).\n\t            toMatch(/10\\/2\\d\\/2010 @ \\d{1,2}:\\d{2}(AM|PM)/);\n\t         expect(element(by.binding(\"'1288323623006' | date:\\\"MM/dd/yyyy 'at' h:mma\\\"\")).getText()).\n\t            toMatch(/10\\/2\\d\\/2010 at \\d{1,2}:\\d{2}(AM|PM)/);\n\t       });\n\t     </file>\n\t   </example>\n\t */\n\tdateFilter.$inject = ['$locale'];\n\tfunction dateFilter($locale) {\n\n\n\t  var R_ISO8601_STR = /^(\\d{4})-?(\\d\\d)-?(\\d\\d)(?:T(\\d\\d)(?::?(\\d\\d)(?::?(\\d\\d)(?:\\.(\\d+))?)?)?(Z|([+-])(\\d\\d):?(\\d\\d))?)?$/;\n\t                     // 1        2       3         4          5          6          7          8  9     10      11\n\t  function jsonStringToDate(string) {\n\t    var match;\n\t    if (match = string.match(R_ISO8601_STR)) {\n\t      var date = new Date(0),\n\t          tzHour = 0,\n\t          tzMin  = 0,\n\t          dateSetter = match[8] ? date.setUTCFullYear : date.setFullYear,\n\t          timeSetter = match[8] ? date.setUTCHours : date.setHours;\n\n\t      if (match[9]) {\n\t        tzHour = toInt(match[9] + match[10]);\n\t        tzMin = toInt(match[9] + match[11]);\n\t      }\n\t      dateSetter.call(date, toInt(match[1]), toInt(match[2]) - 1, toInt(match[3]));\n\t      var h = toInt(match[4] || 0) - tzHour;\n\t      var m = toInt(match[5] || 0) - tzMin;\n\t      var s = toInt(match[6] || 0);\n\t      var ms = Math.round(parseFloat('0.' + (match[7] || 0)) * 1000);\n\t      timeSetter.call(date, h, m, s, ms);\n\t      return date;\n\t    }\n\t    return string;\n\t  }\n\n\n\t  return function(date, format, timezone) {\n\t    var text = '',\n\t        parts = [],\n\t        fn, match;\n\n\t    format = format || 'mediumDate';\n\t    format = $locale.DATETIME_FORMATS[format] || format;\n\t    if (isString(date)) {\n\t      date = NUMBER_STRING.test(date) ? toInt(date) : jsonStringToDate(date);\n\t    }\n\n\t    if (isNumber(date)) {\n\t      date = new Date(date);\n\t    }\n\n\t    if (!isDate(date) || !isFinite(date.getTime())) {\n\t      return date;\n\t    }\n\n\t    while (format) {\n\t      match = DATE_FORMATS_SPLIT.exec(format);\n\t      if (match) {\n\t        parts = concat(parts, match, 1);\n\t        format = parts.pop();\n\t      } else {\n\t        parts.push(format);\n\t        format = null;\n\t      }\n\t    }\n\n\t    var dateTimezoneOffset = date.getTimezoneOffset();\n\t    if (timezone) {\n\t      dateTimezoneOffset = timezoneToOffset(timezone, date.getTimezoneOffset());\n\t      date = convertTimezoneToLocal(date, timezone, true);\n\t    }\n\t    forEach(parts, function(value) {\n\t      fn = DATE_FORMATS[value];\n\t      text += fn ? fn(date, $locale.DATETIME_FORMATS, dateTimezoneOffset)\n\t                 : value.replace(/(^'|'$)/g, '').replace(/''/g, \"'\");\n\t    });\n\n\t    return text;\n\t  };\n\t}\n\n\n\t/**\n\t * @ngdoc filter\n\t * @name json\n\t * @kind function\n\t *\n\t * @description\n\t *   Allows you to convert a JavaScript object into JSON string.\n\t *\n\t *   This filter is mostly useful for debugging. When using the double curly {{value}} notation\n\t *   the binding is automatically converted to JSON.\n\t *\n\t * @param {*} object Any JavaScript object (including arrays and primitive types) to filter.\n\t * @param {number=} spacing The number of spaces to use per indentation, defaults to 2.\n\t * @returns {string} JSON string.\n\t *\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t       <pre id=\"default-spacing\">{{ {'name':'value'} | json }}</pre>\n\t       <pre id=\"custom-spacing\">{{ {'name':'value'} | json:4 }}</pre>\n\t     </file>\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t       it('should jsonify filtered objects', function() {\n\t         expect(element(by.id('default-spacing')).getText()).toMatch(/\\{\\n  \"name\": ?\"value\"\\n}/);\n\t         expect(element(by.id('custom-spacing')).getText()).toMatch(/\\{\\n    \"name\": ?\"value\"\\n}/);\n\t       });\n\t     </file>\n\t   </example>\n\t *\n\t */\n\tfunction jsonFilter() {\n\t  return function(object, spacing) {\n\t    if (isUndefined(spacing)) {\n\t        spacing = 2;\n\t    }\n\t    return toJson(object, spacing);\n\t  };\n\t}\n\n\n\t/**\n\t * @ngdoc filter\n\t * @name lowercase\n\t * @kind function\n\t * @description\n\t * Converts string to lowercase.\n\t * @see angular.lowercase\n\t */\n\tvar lowercaseFilter = valueFn(lowercase);\n\n\n\t/**\n\t * @ngdoc filter\n\t * @name uppercase\n\t * @kind function\n\t * @description\n\t * Converts string to uppercase.\n\t * @see angular.uppercase\n\t */\n\tvar uppercaseFilter = valueFn(uppercase);\n\n\t/**\n\t * @ngdoc filter\n\t * @name limitTo\n\t * @kind function\n\t *\n\t * @description\n\t * Creates a new array or string containing only a specified number of elements. The elements\n\t * are taken from either the beginning or the end of the source array, string or number, as specified by\n\t * the value and sign (positive or negative) of `limit`. If a number is used as input, it is\n\t * converted to a string.\n\t *\n\t * @param {Array|string|number} input Source array, string or number to be limited.\n\t * @param {string|number} limit The length of the returned array or string. If the `limit` number\n\t *     is positive, `limit` number of items from the beginning of the source array/string are copied.\n\t *     If the number is negative, `limit` number  of items from the end of the source array/string\n\t *     are copied. The `limit` will be trimmed if it exceeds `array.length`. If `limit` is undefined,\n\t *     the input will be returned unchanged.\n\t * @param {(string|number)=} begin Index at which to begin limitation. As a negative index, `begin`\n\t *     indicates an offset from the end of `input`. Defaults to `0`.\n\t * @returns {Array|string} A new sub-array or substring of length `limit` or less if input array\n\t *     had less than `limit` elements.\n\t *\n\t * @example\n\t   <example module=\"limitToExample\">\n\t     <file name=\"index.html\">\n\t       <script>\n\t         angular.module('limitToExample', [])\n\t           .controller('ExampleController', ['$scope', function($scope) {\n\t             $scope.numbers = [1,2,3,4,5,6,7,8,9];\n\t             $scope.letters = \"abcdefghi\";\n\t             $scope.longNumber = 2345432342;\n\t             $scope.numLimit = 3;\n\t             $scope.letterLimit = 3;\n\t             $scope.longNumberLimit = 3;\n\t           }]);\n\t       </script>\n\t       <div ng-controller=\"ExampleController\">\n\t         <label>\n\t            Limit {{numbers}} to:\n\t            <input type=\"number\" step=\"1\" ng-model=\"numLimit\">\n\t         </label>\n\t         <p>Output numbers: {{ numbers | limitTo:numLimit }}</p>\n\t         <label>\n\t            Limit {{letters}} to:\n\t            <input type=\"number\" step=\"1\" ng-model=\"letterLimit\">\n\t         </label>\n\t         <p>Output letters: {{ letters | limitTo:letterLimit }}</p>\n\t         <label>\n\t            Limit {{longNumber}} to:\n\t            <input type=\"number\" step=\"1\" ng-model=\"longNumberLimit\">\n\t         </label>\n\t         <p>Output long number: {{ longNumber | limitTo:longNumberLimit }}</p>\n\t       </div>\n\t     </file>\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t       var numLimitInput = element(by.model('numLimit'));\n\t       var letterLimitInput = element(by.model('letterLimit'));\n\t       var longNumberLimitInput = element(by.model('longNumberLimit'));\n\t       var limitedNumbers = element(by.binding('numbers | limitTo:numLimit'));\n\t       var limitedLetters = element(by.binding('letters | limitTo:letterLimit'));\n\t       var limitedLongNumber = element(by.binding('longNumber | limitTo:longNumberLimit'));\n\n\t       it('should limit the number array to first three items', function() {\n\t         expect(numLimitInput.getAttribute('value')).toBe('3');\n\t         expect(letterLimitInput.getAttribute('value')).toBe('3');\n\t         expect(longNumberLimitInput.getAttribute('value')).toBe('3');\n\t         expect(limitedNumbers.getText()).toEqual('Output numbers: [1,2,3]');\n\t         expect(limitedLetters.getText()).toEqual('Output letters: abc');\n\t         expect(limitedLongNumber.getText()).toEqual('Output long number: 234');\n\t       });\n\n\t       // There is a bug in safari and protractor that doesn't like the minus key\n\t       // it('should update the output when -3 is entered', function() {\n\t       //   numLimitInput.clear();\n\t       //   numLimitInput.sendKeys('-3');\n\t       //   letterLimitInput.clear();\n\t       //   letterLimitInput.sendKeys('-3');\n\t       //   longNumberLimitInput.clear();\n\t       //   longNumberLimitInput.sendKeys('-3');\n\t       //   expect(limitedNumbers.getText()).toEqual('Output numbers: [7,8,9]');\n\t       //   expect(limitedLetters.getText()).toEqual('Output letters: ghi');\n\t       //   expect(limitedLongNumber.getText()).toEqual('Output long number: 342');\n\t       // });\n\n\t       it('should not exceed the maximum size of input array', function() {\n\t         numLimitInput.clear();\n\t         numLimitInput.sendKeys('100');\n\t         letterLimitInput.clear();\n\t         letterLimitInput.sendKeys('100');\n\t         longNumberLimitInput.clear();\n\t         longNumberLimitInput.sendKeys('100');\n\t         expect(limitedNumbers.getText()).toEqual('Output numbers: [1,2,3,4,5,6,7,8,9]');\n\t         expect(limitedLetters.getText()).toEqual('Output letters: abcdefghi');\n\t         expect(limitedLongNumber.getText()).toEqual('Output long number: 2345432342');\n\t       });\n\t     </file>\n\t   </example>\n\t*/\n\tfunction limitToFilter() {\n\t  return function(input, limit, begin) {\n\t    if (Math.abs(Number(limit)) === Infinity) {\n\t      limit = Number(limit);\n\t    } else {\n\t      limit = toInt(limit);\n\t    }\n\t    if (isNaN(limit)) return input;\n\n\t    if (isNumber(input)) input = input.toString();\n\t    if (!isArray(input) && !isString(input)) return input;\n\n\t    begin = (!begin || isNaN(begin)) ? 0 : toInt(begin);\n\t    begin = (begin < 0) ? Math.max(0, input.length + begin) : begin;\n\n\t    if (limit >= 0) {\n\t      return input.slice(begin, begin + limit);\n\t    } else {\n\t      if (begin === 0) {\n\t        return input.slice(limit, input.length);\n\t      } else {\n\t        return input.slice(Math.max(0, begin + limit), begin);\n\t      }\n\t    }\n\t  };\n\t}\n\n\t/**\n\t * @ngdoc filter\n\t * @name orderBy\n\t * @kind function\n\t *\n\t * @description\n\t * Orders a specified `array` by the `expression` predicate. It is ordered alphabetically\n\t * for strings and numerically for numbers. Note: if you notice numbers are not being sorted\n\t * as expected, make sure they are actually being saved as numbers and not strings.\n\t *\n\t * @param {Array} array The array to sort.\n\t * @param {function(*)|string|Array.<(function(*)|string)>=} expression A predicate to be\n\t *    used by the comparator to determine the order of elements.\n\t *\n\t *    Can be one of:\n\t *\n\t *    - `function`: Getter function. The result of this function will be sorted using the\n\t *      `<`, `===`, `>` operator.\n\t *    - `string`: An Angular expression. The result of this expression is used to compare elements\n\t *      (for example `name` to sort by a property called `name` or `name.substr(0, 3)` to sort by\n\t *      3 first characters of a property called `name`). The result of a constant expression\n\t *      is interpreted as a property name to be used in comparisons (for example `\"special name\"`\n\t *      to sort object by the value of their `special name` property). An expression can be\n\t *      optionally prefixed with `+` or `-` to control ascending or descending sort order\n\t *      (for example, `+name` or `-name`). If no property is provided, (e.g. `'+'`) then the array\n\t *      element itself is used to compare where sorting.\n\t *    - `Array`: An array of function or string predicates. The first predicate in the array\n\t *      is used for sorting, but when two items are equivalent, the next predicate is used.\n\t *\n\t *    If the predicate is missing or empty then it defaults to `'+'`.\n\t *\n\t * @param {boolean=} reverse Reverse the order of the array.\n\t * @returns {Array} Sorted copy of the source array.\n\t *\n\t *\n\t * @example\n\t * The example below demonstrates a simple ngRepeat, where the data is sorted\n\t * by age in descending order (predicate is set to `'-age'`).\n\t * `reverse` is not set, which means it defaults to `false`.\n\t   <example module=\"orderByExample\">\n\t     <file name=\"index.html\">\n\t       <script>\n\t         angular.module('orderByExample', [])\n\t           .controller('ExampleController', ['$scope', function($scope) {\n\t             $scope.friends =\n\t                 [{name:'John', phone:'555-1212', age:10},\n\t                  {name:'Mary', phone:'555-9876', age:19},\n\t                  {name:'Mike', phone:'555-4321', age:21},\n\t                  {name:'Adam', phone:'555-5678', age:35},\n\t                  {name:'Julie', phone:'555-8765', age:29}];\n\t           }]);\n\t       </script>\n\t       <div ng-controller=\"ExampleController\">\n\t         <table class=\"friend\">\n\t           <tr>\n\t             <th>Name</th>\n\t             <th>Phone Number</th>\n\t             <th>Age</th>\n\t           </tr>\n\t           <tr ng-repeat=\"friend in friends | orderBy:'-age'\">\n\t             <td>{{friend.name}}</td>\n\t             <td>{{friend.phone}}</td>\n\t             <td>{{friend.age}}</td>\n\t           </tr>\n\t         </table>\n\t       </div>\n\t     </file>\n\t   </example>\n\t *\n\t * The predicate and reverse parameters can be controlled dynamically through scope properties,\n\t * as shown in the next example.\n\t * @example\n\t   <example module=\"orderByExample\">\n\t     <file name=\"index.html\">\n\t       <script>\n\t         angular.module('orderByExample', [])\n\t           .controller('ExampleController', ['$scope', function($scope) {\n\t             $scope.friends =\n\t                 [{name:'John', phone:'555-1212', age:10},\n\t                  {name:'Mary', phone:'555-9876', age:19},\n\t                  {name:'Mike', phone:'555-4321', age:21},\n\t                  {name:'Adam', phone:'555-5678', age:35},\n\t                  {name:'Julie', phone:'555-8765', age:29}];\n\t             $scope.predicate = 'age';\n\t             $scope.reverse = true;\n\t             $scope.order = function(predicate) {\n\t               $scope.reverse = ($scope.predicate === predicate) ? !$scope.reverse : false;\n\t               $scope.predicate = predicate;\n\t             };\n\t           }]);\n\t       </script>\n\t       <style type=\"text/css\">\n\t         .sortorder:after {\n\t           content: '\\25b2';\n\t         }\n\t         .sortorder.reverse:after {\n\t           content: '\\25bc';\n\t         }\n\t       </style>\n\t       <div ng-controller=\"ExampleController\">\n\t         <pre>Sorting predicate = {{predicate}}; reverse = {{reverse}}</pre>\n\t         <hr/>\n\t         [ <a href=\"\" ng-click=\"predicate=''\">unsorted</a> ]\n\t         <table class=\"friend\">\n\t           <tr>\n\t             <th>\n\t               <a href=\"\" ng-click=\"order('name')\">Name</a>\n\t               <span class=\"sortorder\" ng-show=\"predicate === 'name'\" ng-class=\"{reverse:reverse}\"></span>\n\t             </th>\n\t             <th>\n\t               <a href=\"\" ng-click=\"order('phone')\">Phone Number</a>\n\t               <span class=\"sortorder\" ng-show=\"predicate === 'phone'\" ng-class=\"{reverse:reverse}\"></span>\n\t             </th>\n\t             <th>\n\t               <a href=\"\" ng-click=\"order('age')\">Age</a>\n\t               <span class=\"sortorder\" ng-show=\"predicate === 'age'\" ng-class=\"{reverse:reverse}\"></span>\n\t             </th>\n\t           </tr>\n\t           <tr ng-repeat=\"friend in friends | orderBy:predicate:reverse\">\n\t             <td>{{friend.name}}</td>\n\t             <td>{{friend.phone}}</td>\n\t             <td>{{friend.age}}</td>\n\t           </tr>\n\t         </table>\n\t       </div>\n\t     </file>\n\t   </example>\n\t *\n\t * It's also possible to call the orderBy filter manually, by injecting `$filter`, retrieving the\n\t * filter routine with `$filter('orderBy')`, and calling the returned filter routine with the\n\t * desired parameters.\n\t *\n\t * Example:\n\t *\n\t * @example\n\t  <example module=\"orderByExample\">\n\t    <file name=\"index.html\">\n\t      <div ng-controller=\"ExampleController\">\n\t        <table class=\"friend\">\n\t          <tr>\n\t            <th><a href=\"\" ng-click=\"reverse=false;order('name', false)\">Name</a>\n\t              (<a href=\"\" ng-click=\"order('-name',false)\">^</a>)</th>\n\t            <th><a href=\"\" ng-click=\"reverse=!reverse;order('phone', reverse)\">Phone Number</a></th>\n\t            <th><a href=\"\" ng-click=\"reverse=!reverse;order('age',reverse)\">Age</a></th>\n\t          </tr>\n\t          <tr ng-repeat=\"friend in friends\">\n\t            <td>{{friend.name}}</td>\n\t            <td>{{friend.phone}}</td>\n\t            <td>{{friend.age}}</td>\n\t          </tr>\n\t        </table>\n\t      </div>\n\t    </file>\n\n\t    <file name=\"script.js\">\n\t      angular.module('orderByExample', [])\n\t        .controller('ExampleController', ['$scope', '$filter', function($scope, $filter) {\n\t          var orderBy = $filter('orderBy');\n\t          $scope.friends = [\n\t            { name: 'John',    phone: '555-1212',    age: 10 },\n\t            { name: 'Mary',    phone: '555-9876',    age: 19 },\n\t            { name: 'Mike',    phone: '555-4321',    age: 21 },\n\t            { name: 'Adam',    phone: '555-5678',    age: 35 },\n\t            { name: 'Julie',   phone: '555-8765',    age: 29 }\n\t          ];\n\t          $scope.order = function(predicate, reverse) {\n\t            $scope.friends = orderBy($scope.friends, predicate, reverse);\n\t          };\n\t          $scope.order('-age',false);\n\t        }]);\n\t    </file>\n\t</example>\n\t */\n\torderByFilter.$inject = ['$parse'];\n\tfunction orderByFilter($parse) {\n\t  return function(array, sortPredicate, reverseOrder) {\n\n\t    if (!(isArrayLike(array))) return array;\n\n\t    if (!isArray(sortPredicate)) { sortPredicate = [sortPredicate]; }\n\t    if (sortPredicate.length === 0) { sortPredicate = ['+']; }\n\n\t    var predicates = processPredicates(sortPredicate, reverseOrder);\n\t    // Add a predicate at the end that evaluates to the element index. This makes the\n\t    // sort stable as it works as a tie-breaker when all the input predicates cannot\n\t    // distinguish between two elements.\n\t    predicates.push({ get: function() { return {}; }, descending: reverseOrder ? -1 : 1});\n\n\t    // The next three lines are a version of a Swartzian Transform idiom from Perl\n\t    // (sometimes called the Decorate-Sort-Undecorate idiom)\n\t    // See https://en.wikipedia.org/wiki/Schwartzian_transform\n\t    var compareValues = Array.prototype.map.call(array, getComparisonObject);\n\t    compareValues.sort(doComparison);\n\t    array = compareValues.map(function(item) { return item.value; });\n\n\t    return array;\n\n\t    function getComparisonObject(value, index) {\n\t      return {\n\t        value: value,\n\t        predicateValues: predicates.map(function(predicate) {\n\t          return getPredicateValue(predicate.get(value), index);\n\t        })\n\t      };\n\t    }\n\n\t    function doComparison(v1, v2) {\n\t      var result = 0;\n\t      for (var index=0, length = predicates.length; index < length; ++index) {\n\t        result = compare(v1.predicateValues[index], v2.predicateValues[index]) * predicates[index].descending;\n\t        if (result) break;\n\t      }\n\t      return result;\n\t    }\n\t  };\n\n\t  function processPredicates(sortPredicate, reverseOrder) {\n\t    reverseOrder = reverseOrder ? -1 : 1;\n\t    return sortPredicate.map(function(predicate) {\n\t      var descending = 1, get = identity;\n\n\t      if (isFunction(predicate)) {\n\t        get = predicate;\n\t      } else if (isString(predicate)) {\n\t        if ((predicate.charAt(0) == '+' || predicate.charAt(0) == '-')) {\n\t          descending = predicate.charAt(0) == '-' ? -1 : 1;\n\t          predicate = predicate.substring(1);\n\t        }\n\t        if (predicate !== '') {\n\t          get = $parse(predicate);\n\t          if (get.constant) {\n\t            var key = get();\n\t            get = function(value) { return value[key]; };\n\t          }\n\t        }\n\t      }\n\t      return { get: get, descending: descending * reverseOrder };\n\t    });\n\t  }\n\n\t  function isPrimitive(value) {\n\t    switch (typeof value) {\n\t      case 'number': /* falls through */\n\t      case 'boolean': /* falls through */\n\t      case 'string':\n\t        return true;\n\t      default:\n\t        return false;\n\t    }\n\t  }\n\n\t  function objectValue(value, index) {\n\t    // If `valueOf` is a valid function use that\n\t    if (typeof value.valueOf === 'function') {\n\t      value = value.valueOf();\n\t      if (isPrimitive(value)) return value;\n\t    }\n\t    // If `toString` is a valid function and not the one from `Object.prototype` use that\n\t    if (hasCustomToString(value)) {\n\t      value = value.toString();\n\t      if (isPrimitive(value)) return value;\n\t    }\n\t    // We have a basic object so we use the position of the object in the collection\n\t    return index;\n\t  }\n\n\t  function getPredicateValue(value, index) {\n\t    var type = typeof value;\n\t    if (value === null) {\n\t      type = 'string';\n\t      value = 'null';\n\t    } else if (type === 'string') {\n\t      value = value.toLowerCase();\n\t    } else if (type === 'object') {\n\t      value = objectValue(value, index);\n\t    }\n\t    return { value: value, type: type };\n\t  }\n\n\t  function compare(v1, v2) {\n\t    var result = 0;\n\t    if (v1.type === v2.type) {\n\t      if (v1.value !== v2.value) {\n\t        result = v1.value < v2.value ? -1 : 1;\n\t      }\n\t    } else {\n\t      result = v1.type < v2.type ? -1 : 1;\n\t    }\n\t    return result;\n\t  }\n\t}\n\n\tfunction ngDirective(directive) {\n\t  if (isFunction(directive)) {\n\t    directive = {\n\t      link: directive\n\t    };\n\t  }\n\t  directive.restrict = directive.restrict || 'AC';\n\t  return valueFn(directive);\n\t}\n\n\t/**\n\t * @ngdoc directive\n\t * @name a\n\t * @restrict E\n\t *\n\t * @description\n\t * Modifies the default behavior of the html A tag so that the default action is prevented when\n\t * the href attribute is empty.\n\t *\n\t * This change permits the easy creation of action links with the `ngClick` directive\n\t * without changing the location or causing page reloads, e.g.:\n\t * `<a href=\"\" ng-click=\"list.addItem()\">Add Item</a>`\n\t */\n\tvar htmlAnchorDirective = valueFn({\n\t  restrict: 'E',\n\t  compile: function(element, attr) {\n\t    if (!attr.href && !attr.xlinkHref) {\n\t      return function(scope, element) {\n\t        // If the linked element is not an anchor tag anymore, do nothing\n\t        if (element[0].nodeName.toLowerCase() !== 'a') return;\n\n\t        // SVGAElement does not use the href attribute, but rather the 'xlinkHref' attribute.\n\t        var href = toString.call(element.prop('href')) === '[object SVGAnimatedString]' ?\n\t                   'xlink:href' : 'href';\n\t        element.on('click', function(event) {\n\t          // if we have no href url, then don't navigate anywhere.\n\t          if (!element.attr(href)) {\n\t            event.preventDefault();\n\t          }\n\t        });\n\t      };\n\t    }\n\t  }\n\t});\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngHref\n\t * @restrict A\n\t * @priority 99\n\t *\n\t * @description\n\t * Using Angular markup like `{{hash}}` in an href attribute will\n\t * make the link go to the wrong URL if the user clicks it before\n\t * Angular has a chance to replace the `{{hash}}` markup with its\n\t * value. Until Angular replaces the markup the link will be broken\n\t * and will most likely return a 404 error. The `ngHref` directive\n\t * solves this problem.\n\t *\n\t * The wrong way to write it:\n\t * ```html\n\t * <a href=\"http://www.gravatar.com/avatar/{{hash}}\">link1</a>\n\t * ```\n\t *\n\t * The correct way to write it:\n\t * ```html\n\t * <a ng-href=\"http://www.gravatar.com/avatar/{{hash}}\">link1</a>\n\t * ```\n\t *\n\t * @element A\n\t * @param {template} ngHref any string which can contain `{{}}` markup.\n\t *\n\t * @example\n\t * This example shows various combinations of `href`, `ng-href` and `ng-click` attributes\n\t * in links and their different behaviors:\n\t    <example>\n\t      <file name=\"index.html\">\n\t        <input ng-model=\"value\" /><br />\n\t        <a id=\"link-1\" href ng-click=\"value = 1\">link 1</a> (link, don't reload)<br />\n\t        <a id=\"link-2\" href=\"\" ng-click=\"value = 2\">link 2</a> (link, don't reload)<br />\n\t        <a id=\"link-3\" ng-href=\"/{{'123'}}\">link 3</a> (link, reload!)<br />\n\t        <a id=\"link-4\" href=\"\" name=\"xx\" ng-click=\"value = 4\">anchor</a> (link, don't reload)<br />\n\t        <a id=\"link-5\" name=\"xxx\" ng-click=\"value = 5\">anchor</a> (no link)<br />\n\t        <a id=\"link-6\" ng-href=\"{{value}}\">link</a> (link, change location)\n\t      </file>\n\t      <file name=\"protractor.js\" type=\"protractor\">\n\t        it('should execute ng-click but not reload when href without value', function() {\n\t          element(by.id('link-1')).click();\n\t          expect(element(by.model('value')).getAttribute('value')).toEqual('1');\n\t          expect(element(by.id('link-1')).getAttribute('href')).toBe('');\n\t        });\n\n\t        it('should execute ng-click but not reload when href empty string', function() {\n\t          element(by.id('link-2')).click();\n\t          expect(element(by.model('value')).getAttribute('value')).toEqual('2');\n\t          expect(element(by.id('link-2')).getAttribute('href')).toBe('');\n\t        });\n\n\t        it('should execute ng-click and change url when ng-href specified', function() {\n\t          expect(element(by.id('link-3')).getAttribute('href')).toMatch(/\\/123$/);\n\n\t          element(by.id('link-3')).click();\n\n\t          // At this point, we navigate away from an Angular page, so we need\n\t          // to use browser.driver to get the base webdriver.\n\n\t          browser.wait(function() {\n\t            return browser.driver.getCurrentUrl().then(function(url) {\n\t              return url.match(/\\/123$/);\n\t            });\n\t          }, 5000, 'page should navigate to /123');\n\t        });\n\n\t        it('should execute ng-click but not reload when href empty string and name specified', function() {\n\t          element(by.id('link-4')).click();\n\t          expect(element(by.model('value')).getAttribute('value')).toEqual('4');\n\t          expect(element(by.id('link-4')).getAttribute('href')).toBe('');\n\t        });\n\n\t        it('should execute ng-click but not reload when no href but name specified', function() {\n\t          element(by.id('link-5')).click();\n\t          expect(element(by.model('value')).getAttribute('value')).toEqual('5');\n\t          expect(element(by.id('link-5')).getAttribute('href')).toBe(null);\n\t        });\n\n\t        it('should only change url when only ng-href', function() {\n\t          element(by.model('value')).clear();\n\t          element(by.model('value')).sendKeys('6');\n\t          expect(element(by.id('link-6')).getAttribute('href')).toMatch(/\\/6$/);\n\n\t          element(by.id('link-6')).click();\n\n\t          // At this point, we navigate away from an Angular page, so we need\n\t          // to use browser.driver to get the base webdriver.\n\t          browser.wait(function() {\n\t            return browser.driver.getCurrentUrl().then(function(url) {\n\t              return url.match(/\\/6$/);\n\t            });\n\t          }, 5000, 'page should navigate to /6');\n\t        });\n\t      </file>\n\t    </example>\n\t */\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngSrc\n\t * @restrict A\n\t * @priority 99\n\t *\n\t * @description\n\t * Using Angular markup like `{{hash}}` in a `src` attribute doesn't\n\t * work right: The browser will fetch from the URL with the literal\n\t * text `{{hash}}` until Angular replaces the expression inside\n\t * `{{hash}}`. The `ngSrc` directive solves this problem.\n\t *\n\t * The buggy way to write it:\n\t * ```html\n\t * <img src=\"http://www.gravatar.com/avatar/{{hash}}\" alt=\"Description\"/>\n\t * ```\n\t *\n\t * The correct way to write it:\n\t * ```html\n\t * <img ng-src=\"http://www.gravatar.com/avatar/{{hash}}\" alt=\"Description\" />\n\t * ```\n\t *\n\t * @element IMG\n\t * @param {template} ngSrc any string which can contain `{{}}` markup.\n\t */\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngSrcset\n\t * @restrict A\n\t * @priority 99\n\t *\n\t * @description\n\t * Using Angular markup like `{{hash}}` in a `srcset` attribute doesn't\n\t * work right: The browser will fetch from the URL with the literal\n\t * text `{{hash}}` until Angular replaces the expression inside\n\t * `{{hash}}`. The `ngSrcset` directive solves this problem.\n\t *\n\t * The buggy way to write it:\n\t * ```html\n\t * <img srcset=\"http://www.gravatar.com/avatar/{{hash}} 2x\" alt=\"Description\"/>\n\t * ```\n\t *\n\t * The correct way to write it:\n\t * ```html\n\t * <img ng-srcset=\"http://www.gravatar.com/avatar/{{hash}} 2x\" alt=\"Description\" />\n\t * ```\n\t *\n\t * @element IMG\n\t * @param {template} ngSrcset any string which can contain `{{}}` markup.\n\t */\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngDisabled\n\t * @restrict A\n\t * @priority 100\n\t *\n\t * @description\n\t *\n\t * This directive sets the `disabled` attribute on the element if the\n\t * {@link guide/expression expression} inside `ngDisabled` evaluates to truthy.\n\t *\n\t * A special directive is necessary because we cannot use interpolation inside the `disabled`\n\t * attribute.  The following example would make the button enabled on Chrome/Firefox\n\t * but not on older IEs:\n\t *\n\t * ```html\n\t * <!-- See below for an example of ng-disabled being used correctly -->\n\t * <div ng-init=\"isDisabled = false\">\n\t *  <button disabled=\"{{isDisabled}}\">Disabled</button>\n\t * </div>\n\t * ```\n\t *\n\t * This is because the HTML specification does not require browsers to preserve the values of\n\t * boolean attributes such as `disabled` (Their presence means true and their absence means false.)\n\t * If we put an Angular interpolation expression into such an attribute then the\n\t * binding information would be lost when the browser removes the attribute.\n\t *\n\t * @example\n\t    <example>\n\t      <file name=\"index.html\">\n\t        <label>Click me to toggle: <input type=\"checkbox\" ng-model=\"checked\"></label><br/>\n\t        <button ng-model=\"button\" ng-disabled=\"checked\">Button</button>\n\t      </file>\n\t      <file name=\"protractor.js\" type=\"protractor\">\n\t        it('should toggle button', function() {\n\t          expect(element(by.css('button')).getAttribute('disabled')).toBeFalsy();\n\t          element(by.model('checked')).click();\n\t          expect(element(by.css('button')).getAttribute('disabled')).toBeTruthy();\n\t        });\n\t      </file>\n\t    </example>\n\t *\n\t * @element INPUT\n\t * @param {expression} ngDisabled If the {@link guide/expression expression} is truthy,\n\t *     then the `disabled` attribute will be set on the element\n\t */\n\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngChecked\n\t * @restrict A\n\t * @priority 100\n\t *\n\t * @description\n\t * Sets the `checked` attribute on the element, if the expression inside `ngChecked` is truthy.\n\t *\n\t * Note that this directive should not be used together with {@link ngModel `ngModel`},\n\t * as this can lead to unexpected behavior.\n\t *\n\t * ### Why do we need `ngChecked`?\n\t *\n\t * The HTML specification does not require browsers to preserve the values of boolean attributes\n\t * such as checked. (Their presence means true and their absence means false.)\n\t * If we put an Angular interpolation expression into such an attribute then the\n\t * binding information would be lost when the browser removes the attribute.\n\t * The `ngChecked` directive solves this problem for the `checked` attribute.\n\t * This complementary directive is not removed by the browser and so provides\n\t * a permanent reliable place to store the binding information.\n\t * @example\n\t    <example>\n\t      <file name=\"index.html\">\n\t        <label>Check me to check both: <input type=\"checkbox\" ng-model=\"master\"></label><br/>\n\t        <input id=\"checkSlave\" type=\"checkbox\" ng-checked=\"master\" aria-label=\"Slave input\">\n\t      </file>\n\t      <file name=\"protractor.js\" type=\"protractor\">\n\t        it('should check both checkBoxes', function() {\n\t          expect(element(by.id('checkSlave')).getAttribute('checked')).toBeFalsy();\n\t          element(by.model('master')).click();\n\t          expect(element(by.id('checkSlave')).getAttribute('checked')).toBeTruthy();\n\t        });\n\t      </file>\n\t    </example>\n\t *\n\t * @element INPUT\n\t * @param {expression} ngChecked If the {@link guide/expression expression} is truthy,\n\t *     then the `checked` attribute will be set on the element\n\t */\n\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngReadonly\n\t * @restrict A\n\t * @priority 100\n\t *\n\t * @description\n\t * The HTML specification does not require browsers to preserve the values of boolean attributes\n\t * such as readonly. (Their presence means true and their absence means false.)\n\t * If we put an Angular interpolation expression into such an attribute then the\n\t * binding information would be lost when the browser removes the attribute.\n\t * The `ngReadonly` directive solves this problem for the `readonly` attribute.\n\t * This complementary directive is not removed by the browser and so provides\n\t * a permanent reliable place to store the binding information.\n\t * @example\n\t    <example>\n\t      <file name=\"index.html\">\n\t        <label>Check me to make text readonly: <input type=\"checkbox\" ng-model=\"checked\"></label><br/>\n\t        <input type=\"text\" ng-readonly=\"checked\" value=\"I'm Angular\" aria-label=\"Readonly field\" />\n\t      </file>\n\t      <file name=\"protractor.js\" type=\"protractor\">\n\t        it('should toggle readonly attr', function() {\n\t          expect(element(by.css('[type=\"text\"]')).getAttribute('readonly')).toBeFalsy();\n\t          element(by.model('checked')).click();\n\t          expect(element(by.css('[type=\"text\"]')).getAttribute('readonly')).toBeTruthy();\n\t        });\n\t      </file>\n\t    </example>\n\t *\n\t * @element INPUT\n\t * @param {expression} ngReadonly If the {@link guide/expression expression} is truthy,\n\t *     then special attribute \"readonly\" will be set on the element\n\t */\n\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngSelected\n\t * @restrict A\n\t * @priority 100\n\t *\n\t * @description\n\t * The HTML specification does not require browsers to preserve the values of boolean attributes\n\t * such as selected. (Their presence means true and their absence means false.)\n\t * If we put an Angular interpolation expression into such an attribute then the\n\t * binding information would be lost when the browser removes the attribute.\n\t * The `ngSelected` directive solves this problem for the `selected` attribute.\n\t * This complementary directive is not removed by the browser and so provides\n\t * a permanent reliable place to store the binding information.\n\t *\n\t * @example\n\t    <example>\n\t      <file name=\"index.html\">\n\t        <label>Check me to select: <input type=\"checkbox\" ng-model=\"selected\"></label><br/>\n\t        <select aria-label=\"ngSelected demo\">\n\t          <option>Hello!</option>\n\t          <option id=\"greet\" ng-selected=\"selected\">Greetings!</option>\n\t        </select>\n\t      </file>\n\t      <file name=\"protractor.js\" type=\"protractor\">\n\t        it('should select Greetings!', function() {\n\t          expect(element(by.id('greet')).getAttribute('selected')).toBeFalsy();\n\t          element(by.model('selected')).click();\n\t          expect(element(by.id('greet')).getAttribute('selected')).toBeTruthy();\n\t        });\n\t      </file>\n\t    </example>\n\t *\n\t * @element OPTION\n\t * @param {expression} ngSelected If the {@link guide/expression expression} is truthy,\n\t *     then special attribute \"selected\" will be set on the element\n\t */\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngOpen\n\t * @restrict A\n\t * @priority 100\n\t *\n\t * @description\n\t * The HTML specification does not require browsers to preserve the values of boolean attributes\n\t * such as open. (Their presence means true and their absence means false.)\n\t * If we put an Angular interpolation expression into such an attribute then the\n\t * binding information would be lost when the browser removes the attribute.\n\t * The `ngOpen` directive solves this problem for the `open` attribute.\n\t * This complementary directive is not removed by the browser and so provides\n\t * a permanent reliable place to store the binding information.\n\t * @example\n\t     <example>\n\t       <file name=\"index.html\">\n\t         <label>Check me check multiple: <input type=\"checkbox\" ng-model=\"open\"></label><br/>\n\t         <details id=\"details\" ng-open=\"open\">\n\t            <summary>Show/Hide me</summary>\n\t         </details>\n\t       </file>\n\t       <file name=\"protractor.js\" type=\"protractor\">\n\t         it('should toggle open', function() {\n\t           expect(element(by.id('details')).getAttribute('open')).toBeFalsy();\n\t           element(by.model('open')).click();\n\t           expect(element(by.id('details')).getAttribute('open')).toBeTruthy();\n\t         });\n\t       </file>\n\t     </example>\n\t *\n\t * @element DETAILS\n\t * @param {expression} ngOpen If the {@link guide/expression expression} is truthy,\n\t *     then special attribute \"open\" will be set on the element\n\t */\n\n\tvar ngAttributeAliasDirectives = {};\n\n\t// boolean attrs are evaluated\n\tforEach(BOOLEAN_ATTR, function(propName, attrName) {\n\t  // binding to multiple is not supported\n\t  if (propName == \"multiple\") return;\n\n\t  function defaultLinkFn(scope, element, attr) {\n\t    scope.$watch(attr[normalized], function ngBooleanAttrWatchAction(value) {\n\t      attr.$set(attrName, !!value);\n\t    });\n\t  }\n\n\t  var normalized = directiveNormalize('ng-' + attrName);\n\t  var linkFn = defaultLinkFn;\n\n\t  if (propName === 'checked') {\n\t    linkFn = function(scope, element, attr) {\n\t      // ensuring ngChecked doesn't interfere with ngModel when both are set on the same input\n\t      if (attr.ngModel !== attr[normalized]) {\n\t        defaultLinkFn(scope, element, attr);\n\t      }\n\t    };\n\t  }\n\n\t  ngAttributeAliasDirectives[normalized] = function() {\n\t    return {\n\t      restrict: 'A',\n\t      priority: 100,\n\t      link: linkFn\n\t    };\n\t  };\n\t});\n\n\t// aliased input attrs are evaluated\n\tforEach(ALIASED_ATTR, function(htmlAttr, ngAttr) {\n\t  ngAttributeAliasDirectives[ngAttr] = function() {\n\t    return {\n\t      priority: 100,\n\t      link: function(scope, element, attr) {\n\t        //special case ngPattern when a literal regular expression value\n\t        //is used as the expression (this way we don't have to watch anything).\n\t        if (ngAttr === \"ngPattern\" && attr.ngPattern.charAt(0) == \"/\") {\n\t          var match = attr.ngPattern.match(REGEX_STRING_REGEXP);\n\t          if (match) {\n\t            attr.$set(\"ngPattern\", new RegExp(match[1], match[2]));\n\t            return;\n\t          }\n\t        }\n\n\t        scope.$watch(attr[ngAttr], function ngAttrAliasWatchAction(value) {\n\t          attr.$set(ngAttr, value);\n\t        });\n\t      }\n\t    };\n\t  };\n\t});\n\n\t// ng-src, ng-srcset, ng-href are interpolated\n\tforEach(['src', 'srcset', 'href'], function(attrName) {\n\t  var normalized = directiveNormalize('ng-' + attrName);\n\t  ngAttributeAliasDirectives[normalized] = function() {\n\t    return {\n\t      priority: 99, // it needs to run after the attributes are interpolated\n\t      link: function(scope, element, attr) {\n\t        var propName = attrName,\n\t            name = attrName;\n\n\t        if (attrName === 'href' &&\n\t            toString.call(element.prop('href')) === '[object SVGAnimatedString]') {\n\t          name = 'xlinkHref';\n\t          attr.$attr[name] = 'xlink:href';\n\t          propName = null;\n\t        }\n\n\t        attr.$observe(normalized, function(value) {\n\t          if (!value) {\n\t            if (attrName === 'href') {\n\t              attr.$set(name, null);\n\t            }\n\t            return;\n\t          }\n\n\t          attr.$set(name, value);\n\n\t          // on IE, if \"ng:src\" directive declaration is used and \"src\" attribute doesn't exist\n\t          // then calling element.setAttribute('src', 'foo') doesn't do anything, so we need\n\t          // to set the property as well to achieve the desired effect.\n\t          // we use attr[attrName] value since $set can sanitize the url.\n\t          if (msie && propName) element.prop(propName, attr[name]);\n\t        });\n\t      }\n\t    };\n\t  };\n\t});\n\n\t/* global -nullFormCtrl, -SUBMITTED_CLASS, addSetValidityMethod: true\n\t */\n\tvar nullFormCtrl = {\n\t  $addControl: noop,\n\t  $$renameControl: nullFormRenameControl,\n\t  $removeControl: noop,\n\t  $setValidity: noop,\n\t  $setDirty: noop,\n\t  $setPristine: noop,\n\t  $setSubmitted: noop\n\t},\n\tSUBMITTED_CLASS = 'ng-submitted';\n\n\tfunction nullFormRenameControl(control, name) {\n\t  control.$name = name;\n\t}\n\n\t/**\n\t * @ngdoc type\n\t * @name form.FormController\n\t *\n\t * @property {boolean} $pristine True if user has not interacted with the form yet.\n\t * @property {boolean} $dirty True if user has already interacted with the form.\n\t * @property {boolean} $valid True if all of the containing forms and controls are valid.\n\t * @property {boolean} $invalid True if at least one containing control or form is invalid.\n\t * @property {boolean} $pending True if at least one containing control or form is pending.\n\t * @property {boolean} $submitted True if user has submitted the form even if its invalid.\n\t *\n\t * @property {Object} $error Is an object hash, containing references to controls or\n\t *  forms with failing validators, where:\n\t *\n\t *  - keys are validation tokens (error names),\n\t *  - values are arrays of controls or forms that have a failing validator for given error name.\n\t *\n\t *  Built-in validation tokens:\n\t *\n\t *  - `email`\n\t *  - `max`\n\t *  - `maxlength`\n\t *  - `min`\n\t *  - `minlength`\n\t *  - `number`\n\t *  - `pattern`\n\t *  - `required`\n\t *  - `url`\n\t *  - `date`\n\t *  - `datetimelocal`\n\t *  - `time`\n\t *  - `week`\n\t *  - `month`\n\t *\n\t * @description\n\t * `FormController` keeps track of all its controls and nested forms as well as the state of them,\n\t * such as being valid/invalid or dirty/pristine.\n\t *\n\t * Each {@link ng.directive:form form} directive creates an instance\n\t * of `FormController`.\n\t *\n\t */\n\t//asks for $scope to fool the BC controller module\n\tFormController.$inject = ['$element', '$attrs', '$scope', '$animate', '$interpolate'];\n\tfunction FormController(element, attrs, $scope, $animate, $interpolate) {\n\t  var form = this,\n\t      controls = [];\n\n\t  // init state\n\t  form.$error = {};\n\t  form.$$success = {};\n\t  form.$pending = undefined;\n\t  form.$name = $interpolate(attrs.name || attrs.ngForm || '')($scope);\n\t  form.$dirty = false;\n\t  form.$pristine = true;\n\t  form.$valid = true;\n\t  form.$invalid = false;\n\t  form.$submitted = false;\n\t  form.$$parentForm = nullFormCtrl;\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name form.FormController#$rollbackViewValue\n\t   *\n\t   * @description\n\t   * Rollback all form controls pending updates to the `$modelValue`.\n\t   *\n\t   * Updates may be pending by a debounced event or because the input is waiting for a some future\n\t   * event defined in `ng-model-options`. This method is typically needed by the reset button of\n\t   * a form that uses `ng-model-options` to pend updates.\n\t   */\n\t  form.$rollbackViewValue = function() {\n\t    forEach(controls, function(control) {\n\t      control.$rollbackViewValue();\n\t    });\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name form.FormController#$commitViewValue\n\t   *\n\t   * @description\n\t   * Commit all form controls pending updates to the `$modelValue`.\n\t   *\n\t   * Updates may be pending by a debounced event or because the input is waiting for a some future\n\t   * event defined in `ng-model-options`. This method is rarely needed as `NgModelController`\n\t   * usually handles calling this in response to input events.\n\t   */\n\t  form.$commitViewValue = function() {\n\t    forEach(controls, function(control) {\n\t      control.$commitViewValue();\n\t    });\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name form.FormController#$addControl\n\t   * @param {object} control control object, either a {@link form.FormController} or an\n\t   * {@link ngModel.NgModelController}\n\t   *\n\t   * @description\n\t   * Register a control with the form. Input elements using ngModelController do this automatically\n\t   * when they are linked.\n\t   *\n\t   * Note that the current state of the control will not be reflected on the new parent form. This\n\t   * is not an issue with normal use, as freshly compiled and linked controls are in a `$pristine`\n\t   * state.\n\t   *\n\t   * However, if the method is used programmatically, for example by adding dynamically created controls,\n\t   * or controls that have been previously removed without destroying their corresponding DOM element,\n\t   * it's the developers responsiblity to make sure the current state propagates to the parent form.\n\t   *\n\t   * For example, if an input control is added that is already `$dirty` and has `$error` properties,\n\t   * calling `$setDirty()` and `$validate()` afterwards will propagate the state to the parent form.\n\t   */\n\t  form.$addControl = function(control) {\n\t    // Breaking change - before, inputs whose name was \"hasOwnProperty\" were quietly ignored\n\t    // and not added to the scope.  Now we throw an error.\n\t    assertNotHasOwnProperty(control.$name, 'input');\n\t    controls.push(control);\n\n\t    if (control.$name) {\n\t      form[control.$name] = control;\n\t    }\n\n\t    control.$$parentForm = form;\n\t  };\n\n\t  // Private API: rename a form control\n\t  form.$$renameControl = function(control, newName) {\n\t    var oldName = control.$name;\n\n\t    if (form[oldName] === control) {\n\t      delete form[oldName];\n\t    }\n\t    form[newName] = control;\n\t    control.$name = newName;\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name form.FormController#$removeControl\n\t   * @param {object} control control object, either a {@link form.FormController} or an\n\t   * {@link ngModel.NgModelController}\n\t   *\n\t   * @description\n\t   * Deregister a control from the form.\n\t   *\n\t   * Input elements using ngModelController do this automatically when they are destroyed.\n\t   *\n\t   * Note that only the removed control's validation state (`$errors`etc.) will be removed from the\n\t   * form. `$dirty`, `$submitted` states will not be changed, because the expected behavior can be\n\t   * different from case to case. For example, removing the only `$dirty` control from a form may or\n\t   * may not mean that the form is still `$dirty`.\n\t   */\n\t  form.$removeControl = function(control) {\n\t    if (control.$name && form[control.$name] === control) {\n\t      delete form[control.$name];\n\t    }\n\t    forEach(form.$pending, function(value, name) {\n\t      form.$setValidity(name, null, control);\n\t    });\n\t    forEach(form.$error, function(value, name) {\n\t      form.$setValidity(name, null, control);\n\t    });\n\t    forEach(form.$$success, function(value, name) {\n\t      form.$setValidity(name, null, control);\n\t    });\n\n\t    arrayRemove(controls, control);\n\t    control.$$parentForm = nullFormCtrl;\n\t  };\n\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name form.FormController#$setValidity\n\t   *\n\t   * @description\n\t   * Sets the validity of a form control.\n\t   *\n\t   * This method will also propagate to parent forms.\n\t   */\n\t  addSetValidityMethod({\n\t    ctrl: this,\n\t    $element: element,\n\t    set: function(object, property, controller) {\n\t      var list = object[property];\n\t      if (!list) {\n\t        object[property] = [controller];\n\t      } else {\n\t        var index = list.indexOf(controller);\n\t        if (index === -1) {\n\t          list.push(controller);\n\t        }\n\t      }\n\t    },\n\t    unset: function(object, property, controller) {\n\t      var list = object[property];\n\t      if (!list) {\n\t        return;\n\t      }\n\t      arrayRemove(list, controller);\n\t      if (list.length === 0) {\n\t        delete object[property];\n\t      }\n\t    },\n\t    $animate: $animate\n\t  });\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name form.FormController#$setDirty\n\t   *\n\t   * @description\n\t   * Sets the form to a dirty state.\n\t   *\n\t   * This method can be called to add the 'ng-dirty' class and set the form to a dirty\n\t   * state (ng-dirty class). This method will also propagate to parent forms.\n\t   */\n\t  form.$setDirty = function() {\n\t    $animate.removeClass(element, PRISTINE_CLASS);\n\t    $animate.addClass(element, DIRTY_CLASS);\n\t    form.$dirty = true;\n\t    form.$pristine = false;\n\t    form.$$parentForm.$setDirty();\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name form.FormController#$setPristine\n\t   *\n\t   * @description\n\t   * Sets the form to its pristine state.\n\t   *\n\t   * This method can be called to remove the 'ng-dirty' class and set the form to its pristine\n\t   * state (ng-pristine class). This method will also propagate to all the controls contained\n\t   * in this form.\n\t   *\n\t   * Setting a form back to a pristine state is often useful when we want to 'reuse' a form after\n\t   * saving or resetting it.\n\t   */\n\t  form.$setPristine = function() {\n\t    $animate.setClass(element, PRISTINE_CLASS, DIRTY_CLASS + ' ' + SUBMITTED_CLASS);\n\t    form.$dirty = false;\n\t    form.$pristine = true;\n\t    form.$submitted = false;\n\t    forEach(controls, function(control) {\n\t      control.$setPristine();\n\t    });\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name form.FormController#$setUntouched\n\t   *\n\t   * @description\n\t   * Sets the form to its untouched state.\n\t   *\n\t   * This method can be called to remove the 'ng-touched' class and set the form controls to their\n\t   * untouched state (ng-untouched class).\n\t   *\n\t   * Setting a form controls back to their untouched state is often useful when setting the form\n\t   * back to its pristine state.\n\t   */\n\t  form.$setUntouched = function() {\n\t    forEach(controls, function(control) {\n\t      control.$setUntouched();\n\t    });\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name form.FormController#$setSubmitted\n\t   *\n\t   * @description\n\t   * Sets the form to its submitted state.\n\t   */\n\t  form.$setSubmitted = function() {\n\t    $animate.addClass(element, SUBMITTED_CLASS);\n\t    form.$submitted = true;\n\t    form.$$parentForm.$setSubmitted();\n\t  };\n\t}\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngForm\n\t * @restrict EAC\n\t *\n\t * @description\n\t * Nestable alias of {@link ng.directive:form `form`} directive. HTML\n\t * does not allow nesting of form elements. It is useful to nest forms, for example if the validity of a\n\t * sub-group of controls needs to be determined.\n\t *\n\t * Note: the purpose of `ngForm` is to group controls,\n\t * but not to be a replacement for the `<form>` tag with all of its capabilities\n\t * (e.g. posting to the server, ...).\n\t *\n\t * @param {string=} ngForm|name Name of the form. If specified, the form controller will be published into\n\t *                       related scope, under this name.\n\t *\n\t */\n\n\t /**\n\t * @ngdoc directive\n\t * @name form\n\t * @restrict E\n\t *\n\t * @description\n\t * Directive that instantiates\n\t * {@link form.FormController FormController}.\n\t *\n\t * If the `name` attribute is specified, the form controller is published onto the current scope under\n\t * this name.\n\t *\n\t * # Alias: {@link ng.directive:ngForm `ngForm`}\n\t *\n\t * In Angular, forms can be nested. This means that the outer form is valid when all of the child\n\t * forms are valid as well. However, browsers do not allow nesting of `<form>` elements, so\n\t * Angular provides the {@link ng.directive:ngForm `ngForm`} directive which behaves identically to\n\t * `<form>` but can be nested.  This allows you to have nested forms, which is very useful when\n\t * using Angular validation directives in forms that are dynamically generated using the\n\t * {@link ng.directive:ngRepeat `ngRepeat`} directive. Since you cannot dynamically generate the `name`\n\t * attribute of input elements using interpolation, you have to wrap each set of repeated inputs in an\n\t * `ngForm` directive and nest these in an outer `form` element.\n\t *\n\t *\n\t * # CSS classes\n\t *  - `ng-valid` is set if the form is valid.\n\t *  - `ng-invalid` is set if the form is invalid.\n\t *  - `ng-pending` is set if the form is pending.\n\t *  - `ng-pristine` is set if the form is pristine.\n\t *  - `ng-dirty` is set if the form is dirty.\n\t *  - `ng-submitted` is set if the form was submitted.\n\t *\n\t * Keep in mind that ngAnimate can detect each of these classes when added and removed.\n\t *\n\t *\n\t * # Submitting a form and preventing the default action\n\t *\n\t * Since the role of forms in client-side Angular applications is different than in classical\n\t * roundtrip apps, it is desirable for the browser not to translate the form submission into a full\n\t * page reload that sends the data to the server. Instead some javascript logic should be triggered\n\t * to handle the form submission in an application-specific way.\n\t *\n\t * For this reason, Angular prevents the default action (form submission to the server) unless the\n\t * `<form>` element has an `action` attribute specified.\n\t *\n\t * You can use one of the following two ways to specify what javascript method should be called when\n\t * a form is submitted:\n\t *\n\t * - {@link ng.directive:ngSubmit ngSubmit} directive on the form element\n\t * - {@link ng.directive:ngClick ngClick} directive on the first\n\t  *  button or input field of type submit (input[type=submit])\n\t *\n\t * To prevent double execution of the handler, use only one of the {@link ng.directive:ngSubmit ngSubmit}\n\t * or {@link ng.directive:ngClick ngClick} directives.\n\t * This is because of the following form submission rules in the HTML specification:\n\t *\n\t * - If a form has only one input field then hitting enter in this field triggers form submit\n\t * (`ngSubmit`)\n\t * - if a form has 2+ input fields and no buttons or input[type=submit] then hitting enter\n\t * doesn't trigger submit\n\t * - if a form has one or more input fields and one or more buttons or input[type=submit] then\n\t * hitting enter in any of the input fields will trigger the click handler on the *first* button or\n\t * input[type=submit] (`ngClick`) *and* a submit handler on the enclosing form (`ngSubmit`)\n\t *\n\t * Any pending `ngModelOptions` changes will take place immediately when an enclosing form is\n\t * submitted. Note that `ngClick` events will occur before the model is updated. Use `ngSubmit`\n\t * to have access to the updated model.\n\t *\n\t * ## Animation Hooks\n\t *\n\t * Animations in ngForm are triggered when any of the associated CSS classes are added and removed.\n\t * These classes are: `.ng-pristine`, `.ng-dirty`, `.ng-invalid` and `.ng-valid` as well as any\n\t * other validations that are performed within the form. Animations in ngForm are similar to how\n\t * they work in ngClass and animations can be hooked into using CSS transitions, keyframes as well\n\t * as JS animations.\n\t *\n\t * The following example shows a simple way to utilize CSS transitions to style a form element\n\t * that has been rendered as invalid after it has been validated:\n\t *\n\t * <pre>\n\t * //be sure to include ngAnimate as a module to hook into more\n\t * //advanced animations\n\t * .my-form {\n\t *   transition:0.5s linear all;\n\t *   background: white;\n\t * }\n\t * .my-form.ng-invalid {\n\t *   background: red;\n\t *   color:white;\n\t * }\n\t * </pre>\n\t *\n\t * @example\n\t    <example deps=\"angular-animate.js\" animations=\"true\" fixBase=\"true\" module=\"formExample\">\n\t      <file name=\"index.html\">\n\t       <script>\n\t         angular.module('formExample', [])\n\t           .controller('FormController', ['$scope', function($scope) {\n\t             $scope.userType = 'guest';\n\t           }]);\n\t       </script>\n\t       <style>\n\t        .my-form {\n\t          transition:all linear 0.5s;\n\t          background: transparent;\n\t        }\n\t        .my-form.ng-invalid {\n\t          background: red;\n\t        }\n\t       </style>\n\t       <form name=\"myForm\" ng-controller=\"FormController\" class=\"my-form\">\n\t         userType: <input name=\"input\" ng-model=\"userType\" required>\n\t         <span class=\"error\" ng-show=\"myForm.input.$error.required\">Required!</span><br>\n\t         <code>userType = {{userType}}</code><br>\n\t         <code>myForm.input.$valid = {{myForm.input.$valid}}</code><br>\n\t         <code>myForm.input.$error = {{myForm.input.$error}}</code><br>\n\t         <code>myForm.$valid = {{myForm.$valid}}</code><br>\n\t         <code>myForm.$error.required = {{!!myForm.$error.required}}</code><br>\n\t        </form>\n\t      </file>\n\t      <file name=\"protractor.js\" type=\"protractor\">\n\t        it('should initialize to model', function() {\n\t          var userType = element(by.binding('userType'));\n\t          var valid = element(by.binding('myForm.input.$valid'));\n\n\t          expect(userType.getText()).toContain('guest');\n\t          expect(valid.getText()).toContain('true');\n\t        });\n\n\t        it('should be invalid if empty', function() {\n\t          var userType = element(by.binding('userType'));\n\t          var valid = element(by.binding('myForm.input.$valid'));\n\t          var userInput = element(by.model('userType'));\n\n\t          userInput.clear();\n\t          userInput.sendKeys('');\n\n\t          expect(userType.getText()).toEqual('userType =');\n\t          expect(valid.getText()).toContain('false');\n\t        });\n\t      </file>\n\t    </example>\n\t *\n\t * @param {string=} name Name of the form. If specified, the form controller will be published into\n\t *                       related scope, under this name.\n\t */\n\tvar formDirectiveFactory = function(isNgForm) {\n\t  return ['$timeout', '$parse', function($timeout, $parse) {\n\t    var formDirective = {\n\t      name: 'form',\n\t      restrict: isNgForm ? 'EAC' : 'E',\n\t      require: ['form', '^^?form'], //first is the form's own ctrl, second is an optional parent form\n\t      controller: FormController,\n\t      compile: function ngFormCompile(formElement, attr) {\n\t        // Setup initial state of the control\n\t        formElement.addClass(PRISTINE_CLASS).addClass(VALID_CLASS);\n\n\t        var nameAttr = attr.name ? 'name' : (isNgForm && attr.ngForm ? 'ngForm' : false);\n\n\t        return {\n\t          pre: function ngFormPreLink(scope, formElement, attr, ctrls) {\n\t            var controller = ctrls[0];\n\n\t            // if `action` attr is not present on the form, prevent the default action (submission)\n\t            if (!('action' in attr)) {\n\t              // we can't use jq events because if a form is destroyed during submission the default\n\t              // action is not prevented. see #1238\n\t              //\n\t              // IE 9 is not affected because it doesn't fire a submit event and try to do a full\n\t              // page reload if the form was destroyed by submission of the form via a click handler\n\t              // on a button in the form. Looks like an IE9 specific bug.\n\t              var handleFormSubmission = function(event) {\n\t                scope.$apply(function() {\n\t                  controller.$commitViewValue();\n\t                  controller.$setSubmitted();\n\t                });\n\n\t                event.preventDefault();\n\t              };\n\n\t              addEventListenerFn(formElement[0], 'submit', handleFormSubmission);\n\n\t              // unregister the preventDefault listener so that we don't not leak memory but in a\n\t              // way that will achieve the prevention of the default action.\n\t              formElement.on('$destroy', function() {\n\t                $timeout(function() {\n\t                  removeEventListenerFn(formElement[0], 'submit', handleFormSubmission);\n\t                }, 0, false);\n\t              });\n\t            }\n\n\t            var parentFormCtrl = ctrls[1] || controller.$$parentForm;\n\t            parentFormCtrl.$addControl(controller);\n\n\t            var setter = nameAttr ? getSetter(controller.$name) : noop;\n\n\t            if (nameAttr) {\n\t              setter(scope, controller);\n\t              attr.$observe(nameAttr, function(newValue) {\n\t                if (controller.$name === newValue) return;\n\t                setter(scope, undefined);\n\t                controller.$$parentForm.$$renameControl(controller, newValue);\n\t                setter = getSetter(controller.$name);\n\t                setter(scope, controller);\n\t              });\n\t            }\n\t            formElement.on('$destroy', function() {\n\t              controller.$$parentForm.$removeControl(controller);\n\t              setter(scope, undefined);\n\t              extend(controller, nullFormCtrl); //stop propagating child destruction handlers upwards\n\t            });\n\t          }\n\t        };\n\t      }\n\t    };\n\n\t    return formDirective;\n\n\t    function getSetter(expression) {\n\t      if (expression === '') {\n\t        //create an assignable expression, so forms with an empty name can be renamed later\n\t        return $parse('this[\"\"]').assign;\n\t      }\n\t      return $parse(expression).assign || noop;\n\t    }\n\t  }];\n\t};\n\n\tvar formDirective = formDirectiveFactory();\n\tvar ngFormDirective = formDirectiveFactory(true);\n\n\t/* global VALID_CLASS: false,\n\t  INVALID_CLASS: false,\n\t  PRISTINE_CLASS: false,\n\t  DIRTY_CLASS: false,\n\t  UNTOUCHED_CLASS: false,\n\t  TOUCHED_CLASS: false,\n\t  ngModelMinErr: false,\n\t*/\n\n\t// Regex code is obtained from SO: https://stackoverflow.com/questions/3143070/javascript-regex-iso-datetime#answer-3143231\n\tvar ISO_DATE_REGEXP = /\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d:[0-5]\\d\\.\\d+([+-][0-2]\\d:[0-5]\\d|Z)/;\n\t// See valid URLs in RFC3987 (http://tools.ietf.org/html/rfc3987)\n\tvar URL_REGEXP = /^[A-Za-z][A-Za-z\\d.+-]*:\\/*(?:\\w+(?::\\w+)?@)?[^\\s/]+(?::\\d+)?(?:\\/[\\w#!:.?+=&%@\\-/]*)?$/;\n\tvar EMAIL_REGEXP = /^[a-z0-9!#$%&'*+\\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i;\n\tvar NUMBER_REGEXP = /^\\s*(\\-|\\+)?(\\d+|(\\d*(\\.\\d*)))([eE][+-]?\\d+)?\\s*$/;\n\tvar DATE_REGEXP = /^(\\d{4})-(\\d{2})-(\\d{2})$/;\n\tvar DATETIMELOCAL_REGEXP = /^(\\d{4})-(\\d\\d)-(\\d\\d)T(\\d\\d):(\\d\\d)(?::(\\d\\d)(\\.\\d{1,3})?)?$/;\n\tvar WEEK_REGEXP = /^(\\d{4})-W(\\d\\d)$/;\n\tvar MONTH_REGEXP = /^(\\d{4})-(\\d\\d)$/;\n\tvar TIME_REGEXP = /^(\\d\\d):(\\d\\d)(?::(\\d\\d)(\\.\\d{1,3})?)?$/;\n\n\tvar inputType = {\n\n\t  /**\n\t   * @ngdoc input\n\t   * @name input[text]\n\t   *\n\t   * @description\n\t   * Standard HTML text input with angular data binding, inherited by most of the `input` elements.\n\t   *\n\t   *\n\t   * @param {string} ngModel Assignable angular expression to data-bind to.\n\t   * @param {string=} name Property name of the form under which the control is published.\n\t   * @param {string=} required Adds `required` validation error key if the value is not entered.\n\t   * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to\n\t   *    the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of\n\t   *    `required` when you want to data-bind to the `required` attribute.\n\t   * @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than\n\t   *    minlength.\n\t   * @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than\n\t   *    maxlength. Setting the attribute to a negative or non-numeric value, allows view values of\n\t   *    any length.\n\t   * @param {string=} pattern Similar to `ngPattern` except that the attribute value is the actual string\n\t   *    that contains the regular expression body that will be converted to a regular expression\n\t   *    as in the ngPattern directive.\n\t   * @param {string=} ngPattern Sets `pattern` validation error key if the ngModel value does not match\n\t   *    a RegExp found by evaluating the Angular expression given in the attribute value.\n\t   *    If the expression evaluates to a RegExp object, then this is used directly.\n\t   *    If the expression evaluates to a string, then it will be converted to a RegExp\n\t   *    after wrapping it in `^` and `$` characters. For instance, `\"abc\"` will be converted to\n\t   *    `new RegExp('^abc$')`.<br />\n\t   *    **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to\n\t   *    start at the index of the last search's match, thus not taking the whole input value into\n\t   *    account.\n\t   * @param {string=} ngChange Angular expression to be executed when input changes due to user\n\t   *    interaction with the input element.\n\t   * @param {boolean=} [ngTrim=true] If set to false Angular will not automatically trim the input.\n\t   *    This parameter is ignored for input[type=password] controls, which will never trim the\n\t   *    input.\n\t   *\n\t   * @example\n\t      <example name=\"text-input-directive\" module=\"textInputExample\">\n\t        <file name=\"index.html\">\n\t         <script>\n\t           angular.module('textInputExample', [])\n\t             .controller('ExampleController', ['$scope', function($scope) {\n\t               $scope.example = {\n\t                 text: 'guest',\n\t                 word: /^\\s*\\w*\\s*$/\n\t               };\n\t             }]);\n\t         </script>\n\t         <form name=\"myForm\" ng-controller=\"ExampleController\">\n\t           <label>Single word:\n\t             <input type=\"text\" name=\"input\" ng-model=\"example.text\"\n\t                    ng-pattern=\"example.word\" required ng-trim=\"false\">\n\t           </label>\n\t           <div role=\"alert\">\n\t             <span class=\"error\" ng-show=\"myForm.input.$error.required\">\n\t               Required!</span>\n\t             <span class=\"error\" ng-show=\"myForm.input.$error.pattern\">\n\t               Single word only!</span>\n\t           </div>\n\t           <tt>text = {{example.text}}</tt><br/>\n\t           <tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>\n\t           <tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>\n\t           <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>\n\t           <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>\n\t          </form>\n\t        </file>\n\t        <file name=\"protractor.js\" type=\"protractor\">\n\t          var text = element(by.binding('example.text'));\n\t          var valid = element(by.binding('myForm.input.$valid'));\n\t          var input = element(by.model('example.text'));\n\n\t          it('should initialize to model', function() {\n\t            expect(text.getText()).toContain('guest');\n\t            expect(valid.getText()).toContain('true');\n\t          });\n\n\t          it('should be invalid if empty', function() {\n\t            input.clear();\n\t            input.sendKeys('');\n\n\t            expect(text.getText()).toEqual('text =');\n\t            expect(valid.getText()).toContain('false');\n\t          });\n\n\t          it('should be invalid if multi word', function() {\n\t            input.clear();\n\t            input.sendKeys('hello world');\n\n\t            expect(valid.getText()).toContain('false');\n\t          });\n\t        </file>\n\t      </example>\n\t   */\n\t  'text': textInputType,\n\n\t    /**\n\t     * @ngdoc input\n\t     * @name input[date]\n\t     *\n\t     * @description\n\t     * Input with date validation and transformation. In browsers that do not yet support\n\t     * the HTML5 date input, a text element will be used. In that case, text must be entered in a valid ISO-8601\n\t     * date format (yyyy-MM-dd), for example: `2009-01-06`. Since many\n\t     * modern browsers do not yet support this input type, it is important to provide cues to users on the\n\t     * expected input format via a placeholder or label.\n\t     *\n\t     * The model must always be a Date object, otherwise Angular will throw an error.\n\t     * Invalid `Date` objects (dates whose `getTime()` is `NaN`) will be rendered as an empty string.\n\t     *\n\t     * The timezone to be used to read/write the `Date` instance in the model can be defined using\n\t     * {@link ng.directive:ngModelOptions ngModelOptions}. By default, this is the timezone of the browser.\n\t     *\n\t     * @param {string} ngModel Assignable angular expression to data-bind to.\n\t     * @param {string=} name Property name of the form under which the control is published.\n\t     * @param {string=} min Sets the `min` validation error key if the value entered is less than `min`. This must be a\n\t     *   valid ISO date string (yyyy-MM-dd). You can also use interpolation inside this attribute\n\t     *   (e.g. `min=\"{{minDate | date:'yyyy-MM-dd'}}\"`). Note that `min` will also add native HTML5\n\t     *   constraint validation.\n\t     * @param {string=} max Sets the `max` validation error key if the value entered is greater than `max`. This must be\n\t     *   a valid ISO date string (yyyy-MM-dd). You can also use interpolation inside this attribute\n\t     *   (e.g. `max=\"{{maxDate | date:'yyyy-MM-dd'}}\"`). Note that `max` will also add native HTML5\n\t     *   constraint validation.\n\t     * @param {(date|string)=} ngMin Sets the `min` validation constraint to the Date / ISO date string\n\t     *   the `ngMin` expression evaluates to. Note that it does not set the `min` attribute.\n\t     * @param {(date|string)=} ngMax Sets the `max` validation constraint to the Date / ISO date string\n\t     *   the `ngMax` expression evaluates to. Note that it does not set the `max` attribute.\n\t     * @param {string=} required Sets `required` validation error key if the value is not entered.\n\t     * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to\n\t     *    the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of\n\t     *    `required` when you want to data-bind to the `required` attribute.\n\t     * @param {string=} ngChange Angular expression to be executed when input changes due to user\n\t     *    interaction with the input element.\n\t     *\n\t     * @example\n\t     <example name=\"date-input-directive\" module=\"dateInputExample\">\n\t     <file name=\"index.html\">\n\t       <script>\n\t          angular.module('dateInputExample', [])\n\t            .controller('DateController', ['$scope', function($scope) {\n\t              $scope.example = {\n\t                value: new Date(2013, 9, 22)\n\t              };\n\t            }]);\n\t       </script>\n\t       <form name=\"myForm\" ng-controller=\"DateController as dateCtrl\">\n\t          <label for=\"exampleInput\">Pick a date in 2013:</label>\n\t          <input type=\"date\" id=\"exampleInput\" name=\"input\" ng-model=\"example.value\"\n\t              placeholder=\"yyyy-MM-dd\" min=\"2013-01-01\" max=\"2013-12-31\" required />\n\t          <div role=\"alert\">\n\t            <span class=\"error\" ng-show=\"myForm.input.$error.required\">\n\t                Required!</span>\n\t            <span class=\"error\" ng-show=\"myForm.input.$error.date\">\n\t                Not a valid date!</span>\n\t           </div>\n\t           <tt>value = {{example.value | date: \"yyyy-MM-dd\"}}</tt><br/>\n\t           <tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>\n\t           <tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>\n\t           <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>\n\t           <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>\n\t       </form>\n\t     </file>\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t        var value = element(by.binding('example.value | date: \"yyyy-MM-dd\"'));\n\t        var valid = element(by.binding('myForm.input.$valid'));\n\t        var input = element(by.model('example.value'));\n\n\t        // currently protractor/webdriver does not support\n\t        // sending keys to all known HTML5 input controls\n\t        // for various browsers (see https://github.com/angular/protractor/issues/562).\n\t        function setInput(val) {\n\t          // set the value of the element and force validation.\n\t          var scr = \"var ipt = document.getElementById('exampleInput'); \" +\n\t          \"ipt.value = '\" + val + \"';\" +\n\t          \"angular.element(ipt).scope().$apply(function(s) { s.myForm[ipt.name].$setViewValue('\" + val + \"'); });\";\n\t          browser.executeScript(scr);\n\t        }\n\n\t        it('should initialize to model', function() {\n\t          expect(value.getText()).toContain('2013-10-22');\n\t          expect(valid.getText()).toContain('myForm.input.$valid = true');\n\t        });\n\n\t        it('should be invalid if empty', function() {\n\t          setInput('');\n\t          expect(value.getText()).toEqual('value =');\n\t          expect(valid.getText()).toContain('myForm.input.$valid = false');\n\t        });\n\n\t        it('should be invalid if over max', function() {\n\t          setInput('2015-01-01');\n\t          expect(value.getText()).toContain('');\n\t          expect(valid.getText()).toContain('myForm.input.$valid = false');\n\t        });\n\t     </file>\n\t     </example>\n\t     */\n\t  'date': createDateInputType('date', DATE_REGEXP,\n\t         createDateParser(DATE_REGEXP, ['yyyy', 'MM', 'dd']),\n\t         'yyyy-MM-dd'),\n\n\t   /**\n\t    * @ngdoc input\n\t    * @name input[datetime-local]\n\t    *\n\t    * @description\n\t    * Input with datetime validation and transformation. In browsers that do not yet support\n\t    * the HTML5 date input, a text element will be used. In that case, the text must be entered in a valid ISO-8601\n\t    * local datetime format (yyyy-MM-ddTHH:mm:ss), for example: `2010-12-28T14:57:00`.\n\t    *\n\t    * The model must always be a Date object, otherwise Angular will throw an error.\n\t    * Invalid `Date` objects (dates whose `getTime()` is `NaN`) will be rendered as an empty string.\n\t    *\n\t    * The timezone to be used to read/write the `Date` instance in the model can be defined using\n\t    * {@link ng.directive:ngModelOptions ngModelOptions}. By default, this is the timezone of the browser.\n\t    *\n\t    * @param {string} ngModel Assignable angular expression to data-bind to.\n\t    * @param {string=} name Property name of the form under which the control is published.\n\t    * @param {string=} min Sets the `min` validation error key if the value entered is less than `min`.\n\t    *   This must be a valid ISO datetime format (yyyy-MM-ddTHH:mm:ss). You can also use interpolation\n\t    *   inside this attribute (e.g. `min=\"{{minDatetimeLocal | date:'yyyy-MM-ddTHH:mm:ss'}}\"`).\n\t    *   Note that `min` will also add native HTML5 constraint validation.\n\t    * @param {string=} max Sets the `max` validation error key if the value entered is greater than `max`.\n\t    *   This must be a valid ISO datetime format (yyyy-MM-ddTHH:mm:ss). You can also use interpolation\n\t    *   inside this attribute (e.g. `max=\"{{maxDatetimeLocal | date:'yyyy-MM-ddTHH:mm:ss'}}\"`).\n\t    *   Note that `max` will also add native HTML5 constraint validation.\n\t    * @param {(date|string)=} ngMin Sets the `min` validation error key to the Date / ISO datetime string\n\t    *   the `ngMin` expression evaluates to. Note that it does not set the `min` attribute.\n\t    * @param {(date|string)=} ngMax Sets the `max` validation error key to the Date / ISO datetime string\n\t    *   the `ngMax` expression evaluates to. Note that it does not set the `max` attribute.\n\t    * @param {string=} required Sets `required` validation error key if the value is not entered.\n\t    * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to\n\t    *    the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of\n\t    *    `required` when you want to data-bind to the `required` attribute.\n\t    * @param {string=} ngChange Angular expression to be executed when input changes due to user\n\t    *    interaction with the input element.\n\t    *\n\t    * @example\n\t    <example name=\"datetimelocal-input-directive\" module=\"dateExample\">\n\t    <file name=\"index.html\">\n\t      <script>\n\t        angular.module('dateExample', [])\n\t          .controller('DateController', ['$scope', function($scope) {\n\t            $scope.example = {\n\t              value: new Date(2010, 11, 28, 14, 57)\n\t            };\n\t          }]);\n\t      </script>\n\t      <form name=\"myForm\" ng-controller=\"DateController as dateCtrl\">\n\t        <label for=\"exampleInput\">Pick a date between in 2013:</label>\n\t        <input type=\"datetime-local\" id=\"exampleInput\" name=\"input\" ng-model=\"example.value\"\n\t            placeholder=\"yyyy-MM-ddTHH:mm:ss\" min=\"2001-01-01T00:00:00\" max=\"2013-12-31T00:00:00\" required />\n\t        <div role=\"alert\">\n\t          <span class=\"error\" ng-show=\"myForm.input.$error.required\">\n\t              Required!</span>\n\t          <span class=\"error\" ng-show=\"myForm.input.$error.datetimelocal\">\n\t              Not a valid date!</span>\n\t        </div>\n\t        <tt>value = {{example.value | date: \"yyyy-MM-ddTHH:mm:ss\"}}</tt><br/>\n\t        <tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>\n\t        <tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>\n\t        <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>\n\t        <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>\n\t      </form>\n\t    </file>\n\t    <file name=\"protractor.js\" type=\"protractor\">\n\t      var value = element(by.binding('example.value | date: \"yyyy-MM-ddTHH:mm:ss\"'));\n\t      var valid = element(by.binding('myForm.input.$valid'));\n\t      var input = element(by.model('example.value'));\n\n\t      // currently protractor/webdriver does not support\n\t      // sending keys to all known HTML5 input controls\n\t      // for various browsers (https://github.com/angular/protractor/issues/562).\n\t      function setInput(val) {\n\t        // set the value of the element and force validation.\n\t        var scr = \"var ipt = document.getElementById('exampleInput'); \" +\n\t        \"ipt.value = '\" + val + \"';\" +\n\t        \"angular.element(ipt).scope().$apply(function(s) { s.myForm[ipt.name].$setViewValue('\" + val + \"'); });\";\n\t        browser.executeScript(scr);\n\t      }\n\n\t      it('should initialize to model', function() {\n\t        expect(value.getText()).toContain('2010-12-28T14:57:00');\n\t        expect(valid.getText()).toContain('myForm.input.$valid = true');\n\t      });\n\n\t      it('should be invalid if empty', function() {\n\t        setInput('');\n\t        expect(value.getText()).toEqual('value =');\n\t        expect(valid.getText()).toContain('myForm.input.$valid = false');\n\t      });\n\n\t      it('should be invalid if over max', function() {\n\t        setInput('2015-01-01T23:59:00');\n\t        expect(value.getText()).toContain('');\n\t        expect(valid.getText()).toContain('myForm.input.$valid = false');\n\t      });\n\t    </file>\n\t    </example>\n\t    */\n\t  'datetime-local': createDateInputType('datetimelocal', DATETIMELOCAL_REGEXP,\n\t      createDateParser(DATETIMELOCAL_REGEXP, ['yyyy', 'MM', 'dd', 'HH', 'mm', 'ss', 'sss']),\n\t      'yyyy-MM-ddTHH:mm:ss.sss'),\n\n\t  /**\n\t   * @ngdoc input\n\t   * @name input[time]\n\t   *\n\t   * @description\n\t   * Input with time validation and transformation. In browsers that do not yet support\n\t   * the HTML5 date input, a text element will be used. In that case, the text must be entered in a valid ISO-8601\n\t   * local time format (HH:mm:ss), for example: `14:57:00`. Model must be a Date object. This binding will always output a\n\t   * Date object to the model of January 1, 1970, or local date `new Date(1970, 0, 1, HH, mm, ss)`.\n\t   *\n\t   * The model must always be a Date object, otherwise Angular will throw an error.\n\t   * Invalid `Date` objects (dates whose `getTime()` is `NaN`) will be rendered as an empty string.\n\t   *\n\t   * The timezone to be used to read/write the `Date` instance in the model can be defined using\n\t   * {@link ng.directive:ngModelOptions ngModelOptions}. By default, this is the timezone of the browser.\n\t   *\n\t   * @param {string} ngModel Assignable angular expression to data-bind to.\n\t   * @param {string=} name Property name of the form under which the control is published.\n\t   * @param {string=} min Sets the `min` validation error key if the value entered is less than `min`.\n\t   *   This must be a valid ISO time format (HH:mm:ss). You can also use interpolation inside this\n\t   *   attribute (e.g. `min=\"{{minTime | date:'HH:mm:ss'}}\"`). Note that `min` will also add\n\t   *   native HTML5 constraint validation.\n\t   * @param {string=} max Sets the `max` validation error key if the value entered is greater than `max`.\n\t   *   This must be a valid ISO time format (HH:mm:ss). You can also use interpolation inside this\n\t   *   attribute (e.g. `max=\"{{maxTime | date:'HH:mm:ss'}}\"`). Note that `max` will also add\n\t   *   native HTML5 constraint validation.\n\t   * @param {(date|string)=} ngMin Sets the `min` validation constraint to the Date / ISO time string the\n\t   *   `ngMin` expression evaluates to. Note that it does not set the `min` attribute.\n\t   * @param {(date|string)=} ngMax Sets the `max` validation constraint to the Date / ISO time string the\n\t   *   `ngMax` expression evaluates to. Note that it does not set the `max` attribute.\n\t   * @param {string=} required Sets `required` validation error key if the value is not entered.\n\t   * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to\n\t   *    the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of\n\t   *    `required` when you want to data-bind to the `required` attribute.\n\t   * @param {string=} ngChange Angular expression to be executed when input changes due to user\n\t   *    interaction with the input element.\n\t   *\n\t   * @example\n\t   <example name=\"time-input-directive\" module=\"timeExample\">\n\t   <file name=\"index.html\">\n\t     <script>\n\t      angular.module('timeExample', [])\n\t        .controller('DateController', ['$scope', function($scope) {\n\t          $scope.example = {\n\t            value: new Date(1970, 0, 1, 14, 57, 0)\n\t          };\n\t        }]);\n\t     </script>\n\t     <form name=\"myForm\" ng-controller=\"DateController as dateCtrl\">\n\t        <label for=\"exampleInput\">Pick a between 8am and 5pm:</label>\n\t        <input type=\"time\" id=\"exampleInput\" name=\"input\" ng-model=\"example.value\"\n\t            placeholder=\"HH:mm:ss\" min=\"08:00:00\" max=\"17:00:00\" required />\n\t        <div role=\"alert\">\n\t          <span class=\"error\" ng-show=\"myForm.input.$error.required\">\n\t              Required!</span>\n\t          <span class=\"error\" ng-show=\"myForm.input.$error.time\">\n\t              Not a valid date!</span>\n\t        </div>\n\t        <tt>value = {{example.value | date: \"HH:mm:ss\"}}</tt><br/>\n\t        <tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>\n\t        <tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>\n\t        <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>\n\t        <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>\n\t     </form>\n\t   </file>\n\t   <file name=\"protractor.js\" type=\"protractor\">\n\t      var value = element(by.binding('example.value | date: \"HH:mm:ss\"'));\n\t      var valid = element(by.binding('myForm.input.$valid'));\n\t      var input = element(by.model('example.value'));\n\n\t      // currently protractor/webdriver does not support\n\t      // sending keys to all known HTML5 input controls\n\t      // for various browsers (https://github.com/angular/protractor/issues/562).\n\t      function setInput(val) {\n\t        // set the value of the element and force validation.\n\t        var scr = \"var ipt = document.getElementById('exampleInput'); \" +\n\t        \"ipt.value = '\" + val + \"';\" +\n\t        \"angular.element(ipt).scope().$apply(function(s) { s.myForm[ipt.name].$setViewValue('\" + val + \"'); });\";\n\t        browser.executeScript(scr);\n\t      }\n\n\t      it('should initialize to model', function() {\n\t        expect(value.getText()).toContain('14:57:00');\n\t        expect(valid.getText()).toContain('myForm.input.$valid = true');\n\t      });\n\n\t      it('should be invalid if empty', function() {\n\t        setInput('');\n\t        expect(value.getText()).toEqual('value =');\n\t        expect(valid.getText()).toContain('myForm.input.$valid = false');\n\t      });\n\n\t      it('should be invalid if over max', function() {\n\t        setInput('23:59:00');\n\t        expect(value.getText()).toContain('');\n\t        expect(valid.getText()).toContain('myForm.input.$valid = false');\n\t      });\n\t   </file>\n\t   </example>\n\t   */\n\t  'time': createDateInputType('time', TIME_REGEXP,\n\t      createDateParser(TIME_REGEXP, ['HH', 'mm', 'ss', 'sss']),\n\t     'HH:mm:ss.sss'),\n\n\t   /**\n\t    * @ngdoc input\n\t    * @name input[week]\n\t    *\n\t    * @description\n\t    * Input with week-of-the-year validation and transformation to Date. In browsers that do not yet support\n\t    * the HTML5 week input, a text element will be used. In that case, the text must be entered in a valid ISO-8601\n\t    * week format (yyyy-W##), for example: `2013-W02`.\n\t    *\n\t    * The model must always be a Date object, otherwise Angular will throw an error.\n\t    * Invalid `Date` objects (dates whose `getTime()` is `NaN`) will be rendered as an empty string.\n\t    *\n\t    * The timezone to be used to read/write the `Date` instance in the model can be defined using\n\t    * {@link ng.directive:ngModelOptions ngModelOptions}. By default, this is the timezone of the browser.\n\t    *\n\t    * @param {string} ngModel Assignable angular expression to data-bind to.\n\t    * @param {string=} name Property name of the form under which the control is published.\n\t    * @param {string=} min Sets the `min` validation error key if the value entered is less than `min`.\n\t    *   This must be a valid ISO week format (yyyy-W##). You can also use interpolation inside this\n\t    *   attribute (e.g. `min=\"{{minWeek | date:'yyyy-Www'}}\"`). Note that `min` will also add\n\t    *   native HTML5 constraint validation.\n\t    * @param {string=} max Sets the `max` validation error key if the value entered is greater than `max`.\n\t    *   This must be a valid ISO week format (yyyy-W##). You can also use interpolation inside this\n\t    *   attribute (e.g. `max=\"{{maxWeek | date:'yyyy-Www'}}\"`). Note that `max` will also add\n\t    *   native HTML5 constraint validation.\n\t    * @param {(date|string)=} ngMin Sets the `min` validation constraint to the Date / ISO week string\n\t    *   the `ngMin` expression evaluates to. Note that it does not set the `min` attribute.\n\t    * @param {(date|string)=} ngMax Sets the `max` validation constraint to the Date / ISO week string\n\t    *   the `ngMax` expression evaluates to. Note that it does not set the `max` attribute.\n\t    * @param {string=} required Sets `required` validation error key if the value is not entered.\n\t    * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to\n\t    *    the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of\n\t    *    `required` when you want to data-bind to the `required` attribute.\n\t    * @param {string=} ngChange Angular expression to be executed when input changes due to user\n\t    *    interaction with the input element.\n\t    *\n\t    * @example\n\t    <example name=\"week-input-directive\" module=\"weekExample\">\n\t    <file name=\"index.html\">\n\t      <script>\n\t      angular.module('weekExample', [])\n\t        .controller('DateController', ['$scope', function($scope) {\n\t          $scope.example = {\n\t            value: new Date(2013, 0, 3)\n\t          };\n\t        }]);\n\t      </script>\n\t      <form name=\"myForm\" ng-controller=\"DateController as dateCtrl\">\n\t        <label>Pick a date between in 2013:\n\t          <input id=\"exampleInput\" type=\"week\" name=\"input\" ng-model=\"example.value\"\n\t                 placeholder=\"YYYY-W##\" min=\"2012-W32\"\n\t                 max=\"2013-W52\" required />\n\t        </label>\n\t        <div role=\"alert\">\n\t          <span class=\"error\" ng-show=\"myForm.input.$error.required\">\n\t              Required!</span>\n\t          <span class=\"error\" ng-show=\"myForm.input.$error.week\">\n\t              Not a valid date!</span>\n\t        </div>\n\t        <tt>value = {{example.value | date: \"yyyy-Www\"}}</tt><br/>\n\t        <tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>\n\t        <tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>\n\t        <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>\n\t        <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>\n\t      </form>\n\t    </file>\n\t    <file name=\"protractor.js\" type=\"protractor\">\n\t      var value = element(by.binding('example.value | date: \"yyyy-Www\"'));\n\t      var valid = element(by.binding('myForm.input.$valid'));\n\t      var input = element(by.model('example.value'));\n\n\t      // currently protractor/webdriver does not support\n\t      // sending keys to all known HTML5 input controls\n\t      // for various browsers (https://github.com/angular/protractor/issues/562).\n\t      function setInput(val) {\n\t        // set the value of the element and force validation.\n\t        var scr = \"var ipt = document.getElementById('exampleInput'); \" +\n\t        \"ipt.value = '\" + val + \"';\" +\n\t        \"angular.element(ipt).scope().$apply(function(s) { s.myForm[ipt.name].$setViewValue('\" + val + \"'); });\";\n\t        browser.executeScript(scr);\n\t      }\n\n\t      it('should initialize to model', function() {\n\t        expect(value.getText()).toContain('2013-W01');\n\t        expect(valid.getText()).toContain('myForm.input.$valid = true');\n\t      });\n\n\t      it('should be invalid if empty', function() {\n\t        setInput('');\n\t        expect(value.getText()).toEqual('value =');\n\t        expect(valid.getText()).toContain('myForm.input.$valid = false');\n\t      });\n\n\t      it('should be invalid if over max', function() {\n\t        setInput('2015-W01');\n\t        expect(value.getText()).toContain('');\n\t        expect(valid.getText()).toContain('myForm.input.$valid = false');\n\t      });\n\t    </file>\n\t    </example>\n\t    */\n\t  'week': createDateInputType('week', WEEK_REGEXP, weekParser, 'yyyy-Www'),\n\n\t  /**\n\t   * @ngdoc input\n\t   * @name input[month]\n\t   *\n\t   * @description\n\t   * Input with month validation and transformation. In browsers that do not yet support\n\t   * the HTML5 month input, a text element will be used. In that case, the text must be entered in a valid ISO-8601\n\t   * month format (yyyy-MM), for example: `2009-01`.\n\t   *\n\t   * The model must always be a Date object, otherwise Angular will throw an error.\n\t   * Invalid `Date` objects (dates whose `getTime()` is `NaN`) will be rendered as an empty string.\n\t   * If the model is not set to the first of the month, the next view to model update will set it\n\t   * to the first of the month.\n\t   *\n\t   * The timezone to be used to read/write the `Date` instance in the model can be defined using\n\t   * {@link ng.directive:ngModelOptions ngModelOptions}. By default, this is the timezone of the browser.\n\t   *\n\t   * @param {string} ngModel Assignable angular expression to data-bind to.\n\t   * @param {string=} name Property name of the form under which the control is published.\n\t   * @param {string=} min Sets the `min` validation error key if the value entered is less than `min`.\n\t   *   This must be a valid ISO month format (yyyy-MM). You can also use interpolation inside this\n\t   *   attribute (e.g. `min=\"{{minMonth | date:'yyyy-MM'}}\"`). Note that `min` will also add\n\t   *   native HTML5 constraint validation.\n\t   * @param {string=} max Sets the `max` validation error key if the value entered is greater than `max`.\n\t   *   This must be a valid ISO month format (yyyy-MM). You can also use interpolation inside this\n\t   *   attribute (e.g. `max=\"{{maxMonth | date:'yyyy-MM'}}\"`). Note that `max` will also add\n\t   *   native HTML5 constraint validation.\n\t   * @param {(date|string)=} ngMin Sets the `min` validation constraint to the Date / ISO week string\n\t   *   the `ngMin` expression evaluates to. Note that it does not set the `min` attribute.\n\t   * @param {(date|string)=} ngMax Sets the `max` validation constraint to the Date / ISO week string\n\t   *   the `ngMax` expression evaluates to. Note that it does not set the `max` attribute.\n\n\t   * @param {string=} required Sets `required` validation error key if the value is not entered.\n\t   * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to\n\t   *    the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of\n\t   *    `required` when you want to data-bind to the `required` attribute.\n\t   * @param {string=} ngChange Angular expression to be executed when input changes due to user\n\t   *    interaction with the input element.\n\t   *\n\t   * @example\n\t   <example name=\"month-input-directive\" module=\"monthExample\">\n\t   <file name=\"index.html\">\n\t     <script>\n\t      angular.module('monthExample', [])\n\t        .controller('DateController', ['$scope', function($scope) {\n\t          $scope.example = {\n\t            value: new Date(2013, 9, 1)\n\t          };\n\t        }]);\n\t     </script>\n\t     <form name=\"myForm\" ng-controller=\"DateController as dateCtrl\">\n\t       <label for=\"exampleInput\">Pick a month in 2013:</label>\n\t       <input id=\"exampleInput\" type=\"month\" name=\"input\" ng-model=\"example.value\"\n\t          placeholder=\"yyyy-MM\" min=\"2013-01\" max=\"2013-12\" required />\n\t       <div role=\"alert\">\n\t         <span class=\"error\" ng-show=\"myForm.input.$error.required\">\n\t            Required!</span>\n\t         <span class=\"error\" ng-show=\"myForm.input.$error.month\">\n\t            Not a valid month!</span>\n\t       </div>\n\t       <tt>value = {{example.value | date: \"yyyy-MM\"}}</tt><br/>\n\t       <tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>\n\t       <tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>\n\t       <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>\n\t       <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>\n\t     </form>\n\t   </file>\n\t   <file name=\"protractor.js\" type=\"protractor\">\n\t      var value = element(by.binding('example.value | date: \"yyyy-MM\"'));\n\t      var valid = element(by.binding('myForm.input.$valid'));\n\t      var input = element(by.model('example.value'));\n\n\t      // currently protractor/webdriver does not support\n\t      // sending keys to all known HTML5 input controls\n\t      // for various browsers (https://github.com/angular/protractor/issues/562).\n\t      function setInput(val) {\n\t        // set the value of the element and force validation.\n\t        var scr = \"var ipt = document.getElementById('exampleInput'); \" +\n\t        \"ipt.value = '\" + val + \"';\" +\n\t        \"angular.element(ipt).scope().$apply(function(s) { s.myForm[ipt.name].$setViewValue('\" + val + \"'); });\";\n\t        browser.executeScript(scr);\n\t      }\n\n\t      it('should initialize to model', function() {\n\t        expect(value.getText()).toContain('2013-10');\n\t        expect(valid.getText()).toContain('myForm.input.$valid = true');\n\t      });\n\n\t      it('should be invalid if empty', function() {\n\t        setInput('');\n\t        expect(value.getText()).toEqual('value =');\n\t        expect(valid.getText()).toContain('myForm.input.$valid = false');\n\t      });\n\n\t      it('should be invalid if over max', function() {\n\t        setInput('2015-01');\n\t        expect(value.getText()).toContain('');\n\t        expect(valid.getText()).toContain('myForm.input.$valid = false');\n\t      });\n\t   </file>\n\t   </example>\n\t   */\n\t  'month': createDateInputType('month', MONTH_REGEXP,\n\t     createDateParser(MONTH_REGEXP, ['yyyy', 'MM']),\n\t     'yyyy-MM'),\n\n\t  /**\n\t   * @ngdoc input\n\t   * @name input[number]\n\t   *\n\t   * @description\n\t   * Text input with number validation and transformation. Sets the `number` validation\n\t   * error if not a valid number.\n\t   *\n\t   * <div class=\"alert alert-warning\">\n\t   * The model must always be of type `number` otherwise Angular will throw an error.\n\t   * Be aware that a string containing a number is not enough. See the {@link ngModel:numfmt}\n\t   * error docs for more information and an example of how to convert your model if necessary.\n\t   * </div>\n\t   *\n\t   * ## Issues with HTML5 constraint validation\n\t   *\n\t   * In browsers that follow the\n\t   * [HTML5 specification](https://html.spec.whatwg.org/multipage/forms.html#number-state-%28type=number%29),\n\t   * `input[number]` does not work as expected with {@link ngModelOptions `ngModelOptions.allowInvalid`}.\n\t   * If a non-number is entered in the input, the browser will report the value as an empty string,\n\t   * which means the view / model values in `ngModel` and subsequently the scope value\n\t   * will also be an empty string.\n\t   *\n\t   *\n\t   * @param {string} ngModel Assignable angular expression to data-bind to.\n\t   * @param {string=} name Property name of the form under which the control is published.\n\t   * @param {string=} min Sets the `min` validation error key if the value entered is less than `min`.\n\t   * @param {string=} max Sets the `max` validation error key if the value entered is greater than `max`.\n\t   * @param {string=} required Sets `required` validation error key if the value is not entered.\n\t   * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to\n\t   *    the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of\n\t   *    `required` when you want to data-bind to the `required` attribute.\n\t   * @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than\n\t   *    minlength.\n\t   * @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than\n\t   *    maxlength. Setting the attribute to a negative or non-numeric value, allows view values of\n\t   *    any length.\n\t   * @param {string=} pattern Similar to `ngPattern` except that the attribute value is the actual string\n\t   *    that contains the regular expression body that will be converted to a regular expression\n\t   *    as in the ngPattern directive.\n\t   * @param {string=} ngPattern Sets `pattern` validation error key if the ngModel value does not match\n\t   *    a RegExp found by evaluating the Angular expression given in the attribute value.\n\t   *    If the expression evaluates to a RegExp object, then this is used directly.\n\t   *    If the expression evaluates to a string, then it will be converted to a RegExp\n\t   *    after wrapping it in `^` and `$` characters. For instance, `\"abc\"` will be converted to\n\t   *    `new RegExp('^abc$')`.<br />\n\t   *    **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to\n\t   *    start at the index of the last search's match, thus not taking the whole input value into\n\t   *    account.\n\t   * @param {string=} ngChange Angular expression to be executed when input changes due to user\n\t   *    interaction with the input element.\n\t   *\n\t   * @example\n\t      <example name=\"number-input-directive\" module=\"numberExample\">\n\t        <file name=\"index.html\">\n\t         <script>\n\t           angular.module('numberExample', [])\n\t             .controller('ExampleController', ['$scope', function($scope) {\n\t               $scope.example = {\n\t                 value: 12\n\t               };\n\t             }]);\n\t         </script>\n\t         <form name=\"myForm\" ng-controller=\"ExampleController\">\n\t           <label>Number:\n\t             <input type=\"number\" name=\"input\" ng-model=\"example.value\"\n\t                    min=\"0\" max=\"99\" required>\n\t          </label>\n\t           <div role=\"alert\">\n\t             <span class=\"error\" ng-show=\"myForm.input.$error.required\">\n\t               Required!</span>\n\t             <span class=\"error\" ng-show=\"myForm.input.$error.number\">\n\t               Not valid number!</span>\n\t           </div>\n\t           <tt>value = {{example.value}}</tt><br/>\n\t           <tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>\n\t           <tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>\n\t           <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>\n\t           <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>\n\t          </form>\n\t        </file>\n\t        <file name=\"protractor.js\" type=\"protractor\">\n\t          var value = element(by.binding('example.value'));\n\t          var valid = element(by.binding('myForm.input.$valid'));\n\t          var input = element(by.model('example.value'));\n\n\t          it('should initialize to model', function() {\n\t            expect(value.getText()).toContain('12');\n\t            expect(valid.getText()).toContain('true');\n\t          });\n\n\t          it('should be invalid if empty', function() {\n\t            input.clear();\n\t            input.sendKeys('');\n\t            expect(value.getText()).toEqual('value =');\n\t            expect(valid.getText()).toContain('false');\n\t          });\n\n\t          it('should be invalid if over max', function() {\n\t            input.clear();\n\t            input.sendKeys('123');\n\t            expect(value.getText()).toEqual('value =');\n\t            expect(valid.getText()).toContain('false');\n\t          });\n\t        </file>\n\t      </example>\n\t   */\n\t  'number': numberInputType,\n\n\n\t  /**\n\t   * @ngdoc input\n\t   * @name input[url]\n\t   *\n\t   * @description\n\t   * Text input with URL validation. Sets the `url` validation error key if the content is not a\n\t   * valid URL.\n\t   *\n\t   * <div class=\"alert alert-warning\">\n\t   * **Note:** `input[url]` uses a regex to validate urls that is derived from the regex\n\t   * used in Chromium. If you need stricter validation, you can use `ng-pattern` or modify\n\t   * the built-in validators (see the {@link guide/forms Forms guide})\n\t   * </div>\n\t   *\n\t   * @param {string} ngModel Assignable angular expression to data-bind to.\n\t   * @param {string=} name Property name of the form under which the control is published.\n\t   * @param {string=} required Sets `required` validation error key if the value is not entered.\n\t   * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to\n\t   *    the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of\n\t   *    `required` when you want to data-bind to the `required` attribute.\n\t   * @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than\n\t   *    minlength.\n\t   * @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than\n\t   *    maxlength. Setting the attribute to a negative or non-numeric value, allows view values of\n\t   *    any length.\n\t   * @param {string=} pattern Similar to `ngPattern` except that the attribute value is the actual string\n\t   *    that contains the regular expression body that will be converted to a regular expression\n\t   *    as in the ngPattern directive.\n\t   * @param {string=} ngPattern Sets `pattern` validation error key if the ngModel value does not match\n\t   *    a RegExp found by evaluating the Angular expression given in the attribute value.\n\t   *    If the expression evaluates to a RegExp object, then this is used directly.\n\t   *    If the expression evaluates to a string, then it will be converted to a RegExp\n\t   *    after wrapping it in `^` and `$` characters. For instance, `\"abc\"` will be converted to\n\t   *    `new RegExp('^abc$')`.<br />\n\t   *    **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to\n\t   *    start at the index of the last search's match, thus not taking the whole input value into\n\t   *    account.\n\t   * @param {string=} ngChange Angular expression to be executed when input changes due to user\n\t   *    interaction with the input element.\n\t   *\n\t   * @example\n\t      <example name=\"url-input-directive\" module=\"urlExample\">\n\t        <file name=\"index.html\">\n\t         <script>\n\t           angular.module('urlExample', [])\n\t             .controller('ExampleController', ['$scope', function($scope) {\n\t               $scope.url = {\n\t                 text: 'http://google.com'\n\t               };\n\t             }]);\n\t         </script>\n\t         <form name=\"myForm\" ng-controller=\"ExampleController\">\n\t           <label>URL:\n\t             <input type=\"url\" name=\"input\" ng-model=\"url.text\" required>\n\t           <label>\n\t           <div role=\"alert\">\n\t             <span class=\"error\" ng-show=\"myForm.input.$error.required\">\n\t               Required!</span>\n\t             <span class=\"error\" ng-show=\"myForm.input.$error.url\">\n\t               Not valid url!</span>\n\t           </div>\n\t           <tt>text = {{url.text}}</tt><br/>\n\t           <tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>\n\t           <tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>\n\t           <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>\n\t           <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>\n\t           <tt>myForm.$error.url = {{!!myForm.$error.url}}</tt><br/>\n\t          </form>\n\t        </file>\n\t        <file name=\"protractor.js\" type=\"protractor\">\n\t          var text = element(by.binding('url.text'));\n\t          var valid = element(by.binding('myForm.input.$valid'));\n\t          var input = element(by.model('url.text'));\n\n\t          it('should initialize to model', function() {\n\t            expect(text.getText()).toContain('http://google.com');\n\t            expect(valid.getText()).toContain('true');\n\t          });\n\n\t          it('should be invalid if empty', function() {\n\t            input.clear();\n\t            input.sendKeys('');\n\n\t            expect(text.getText()).toEqual('text =');\n\t            expect(valid.getText()).toContain('false');\n\t          });\n\n\t          it('should be invalid if not url', function() {\n\t            input.clear();\n\t            input.sendKeys('box');\n\n\t            expect(valid.getText()).toContain('false');\n\t          });\n\t        </file>\n\t      </example>\n\t   */\n\t  'url': urlInputType,\n\n\n\t  /**\n\t   * @ngdoc input\n\t   * @name input[email]\n\t   *\n\t   * @description\n\t   * Text input with email validation. Sets the `email` validation error key if not a valid email\n\t   * address.\n\t   *\n\t   * <div class=\"alert alert-warning\">\n\t   * **Note:** `input[email]` uses a regex to validate email addresses that is derived from the regex\n\t   * used in Chromium. If you need stricter validation (e.g. requiring a top-level domain), you can\n\t   * use `ng-pattern` or modify the built-in validators (see the {@link guide/forms Forms guide})\n\t   * </div>\n\t   *\n\t   * @param {string} ngModel Assignable angular expression to data-bind to.\n\t   * @param {string=} name Property name of the form under which the control is published.\n\t   * @param {string=} required Sets `required` validation error key if the value is not entered.\n\t   * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to\n\t   *    the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of\n\t   *    `required` when you want to data-bind to the `required` attribute.\n\t   * @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than\n\t   *    minlength.\n\t   * @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than\n\t   *    maxlength. Setting the attribute to a negative or non-numeric value, allows view values of\n\t   *    any length.\n\t   * @param {string=} pattern Similar to `ngPattern` except that the attribute value is the actual string\n\t   *    that contains the regular expression body that will be converted to a regular expression\n\t   *    as in the ngPattern directive.\n\t   * @param {string=} ngPattern Sets `pattern` validation error key if the ngModel value does not match\n\t   *    a RegExp found by evaluating the Angular expression given in the attribute value.\n\t   *    If the expression evaluates to a RegExp object, then this is used directly.\n\t   *    If the expression evaluates to a string, then it will be converted to a RegExp\n\t   *    after wrapping it in `^` and `$` characters. For instance, `\"abc\"` will be converted to\n\t   *    `new RegExp('^abc$')`.<br />\n\t   *    **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to\n\t   *    start at the index of the last search's match, thus not taking the whole input value into\n\t   *    account.\n\t   * @param {string=} ngChange Angular expression to be executed when input changes due to user\n\t   *    interaction with the input element.\n\t   *\n\t   * @example\n\t      <example name=\"email-input-directive\" module=\"emailExample\">\n\t        <file name=\"index.html\">\n\t         <script>\n\t           angular.module('emailExample', [])\n\t             .controller('ExampleController', ['$scope', function($scope) {\n\t               $scope.email = {\n\t                 text: 'me@example.com'\n\t               };\n\t             }]);\n\t         </script>\n\t           <form name=\"myForm\" ng-controller=\"ExampleController\">\n\t             <label>Email:\n\t               <input type=\"email\" name=\"input\" ng-model=\"email.text\" required>\n\t             </label>\n\t             <div role=\"alert\">\n\t               <span class=\"error\" ng-show=\"myForm.input.$error.required\">\n\t                 Required!</span>\n\t               <span class=\"error\" ng-show=\"myForm.input.$error.email\">\n\t                 Not valid email!</span>\n\t             </div>\n\t             <tt>text = {{email.text}}</tt><br/>\n\t             <tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>\n\t             <tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>\n\t             <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>\n\t             <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>\n\t             <tt>myForm.$error.email = {{!!myForm.$error.email}}</tt><br/>\n\t           </form>\n\t         </file>\n\t        <file name=\"protractor.js\" type=\"protractor\">\n\t          var text = element(by.binding('email.text'));\n\t          var valid = element(by.binding('myForm.input.$valid'));\n\t          var input = element(by.model('email.text'));\n\n\t          it('should initialize to model', function() {\n\t            expect(text.getText()).toContain('me@example.com');\n\t            expect(valid.getText()).toContain('true');\n\t          });\n\n\t          it('should be invalid if empty', function() {\n\t            input.clear();\n\t            input.sendKeys('');\n\t            expect(text.getText()).toEqual('text =');\n\t            expect(valid.getText()).toContain('false');\n\t          });\n\n\t          it('should be invalid if not email', function() {\n\t            input.clear();\n\t            input.sendKeys('xxx');\n\n\t            expect(valid.getText()).toContain('false');\n\t          });\n\t        </file>\n\t      </example>\n\t   */\n\t  'email': emailInputType,\n\n\n\t  /**\n\t   * @ngdoc input\n\t   * @name input[radio]\n\t   *\n\t   * @description\n\t   * HTML radio button.\n\t   *\n\t   * @param {string} ngModel Assignable angular expression to data-bind to.\n\t   * @param {string} value The value to which the `ngModel` expression should be set when selected.\n\t   *    Note that `value` only supports `string` values, i.e. the scope model needs to be a string,\n\t   *    too. Use `ngValue` if you need complex models (`number`, `object`, ...).\n\t   * @param {string=} name Property name of the form under which the control is published.\n\t   * @param {string=} ngChange Angular expression to be executed when input changes due to user\n\t   *    interaction with the input element.\n\t   * @param {string} ngValue Angular expression to which `ngModel` will be be set when the radio\n\t   *    is selected. Should be used instead of the `value` attribute if you need\n\t   *    a non-string `ngModel` (`boolean`, `array`, ...).\n\t   *\n\t   * @example\n\t      <example name=\"radio-input-directive\" module=\"radioExample\">\n\t        <file name=\"index.html\">\n\t         <script>\n\t           angular.module('radioExample', [])\n\t             .controller('ExampleController', ['$scope', function($scope) {\n\t               $scope.color = {\n\t                 name: 'blue'\n\t               };\n\t               $scope.specialValue = {\n\t                 \"id\": \"12345\",\n\t                 \"value\": \"green\"\n\t               };\n\t             }]);\n\t         </script>\n\t         <form name=\"myForm\" ng-controller=\"ExampleController\">\n\t           <label>\n\t             <input type=\"radio\" ng-model=\"color.name\" value=\"red\">\n\t             Red\n\t           </label><br/>\n\t           <label>\n\t             <input type=\"radio\" ng-model=\"color.name\" ng-value=\"specialValue\">\n\t             Green\n\t           </label><br/>\n\t           <label>\n\t             <input type=\"radio\" ng-model=\"color.name\" value=\"blue\">\n\t             Blue\n\t           </label><br/>\n\t           <tt>color = {{color.name | json}}</tt><br/>\n\t          </form>\n\t          Note that `ng-value=\"specialValue\"` sets radio item's value to be the value of `$scope.specialValue`.\n\t        </file>\n\t        <file name=\"protractor.js\" type=\"protractor\">\n\t          it('should change state', function() {\n\t            var color = element(by.binding('color.name'));\n\n\t            expect(color.getText()).toContain('blue');\n\n\t            element.all(by.model('color.name')).get(0).click();\n\n\t            expect(color.getText()).toContain('red');\n\t          });\n\t        </file>\n\t      </example>\n\t   */\n\t  'radio': radioInputType,\n\n\n\t  /**\n\t   * @ngdoc input\n\t   * @name input[checkbox]\n\t   *\n\t   * @description\n\t   * HTML checkbox.\n\t   *\n\t   * @param {string} ngModel Assignable angular expression to data-bind to.\n\t   * @param {string=} name Property name of the form under which the control is published.\n\t   * @param {expression=} ngTrueValue The value to which the expression should be set when selected.\n\t   * @param {expression=} ngFalseValue The value to which the expression should be set when not selected.\n\t   * @param {string=} ngChange Angular expression to be executed when input changes due to user\n\t   *    interaction with the input element.\n\t   *\n\t   * @example\n\t      <example name=\"checkbox-input-directive\" module=\"checkboxExample\">\n\t        <file name=\"index.html\">\n\t         <script>\n\t           angular.module('checkboxExample', [])\n\t             .controller('ExampleController', ['$scope', function($scope) {\n\t               $scope.checkboxModel = {\n\t                value1 : true,\n\t                value2 : 'YES'\n\t              };\n\t             }]);\n\t         </script>\n\t         <form name=\"myForm\" ng-controller=\"ExampleController\">\n\t           <label>Value1:\n\t             <input type=\"checkbox\" ng-model=\"checkboxModel.value1\">\n\t           </label><br/>\n\t           <label>Value2:\n\t             <input type=\"checkbox\" ng-model=\"checkboxModel.value2\"\n\t                    ng-true-value=\"'YES'\" ng-false-value=\"'NO'\">\n\t            </label><br/>\n\t           <tt>value1 = {{checkboxModel.value1}}</tt><br/>\n\t           <tt>value2 = {{checkboxModel.value2}}</tt><br/>\n\t          </form>\n\t        </file>\n\t        <file name=\"protractor.js\" type=\"protractor\">\n\t          it('should change state', function() {\n\t            var value1 = element(by.binding('checkboxModel.value1'));\n\t            var value2 = element(by.binding('checkboxModel.value2'));\n\n\t            expect(value1.getText()).toContain('true');\n\t            expect(value2.getText()).toContain('YES');\n\n\t            element(by.model('checkboxModel.value1')).click();\n\t            element(by.model('checkboxModel.value2')).click();\n\n\t            expect(value1.getText()).toContain('false');\n\t            expect(value2.getText()).toContain('NO');\n\t          });\n\t        </file>\n\t      </example>\n\t   */\n\t  'checkbox': checkboxInputType,\n\n\t  'hidden': noop,\n\t  'button': noop,\n\t  'submit': noop,\n\t  'reset': noop,\n\t  'file': noop\n\t};\n\n\tfunction stringBasedInputType(ctrl) {\n\t  ctrl.$formatters.push(function(value) {\n\t    return ctrl.$isEmpty(value) ? value : value.toString();\n\t  });\n\t}\n\n\tfunction textInputType(scope, element, attr, ctrl, $sniffer, $browser) {\n\t  baseInputType(scope, element, attr, ctrl, $sniffer, $browser);\n\t  stringBasedInputType(ctrl);\n\t}\n\n\tfunction baseInputType(scope, element, attr, ctrl, $sniffer, $browser) {\n\t  var type = lowercase(element[0].type);\n\n\t  // In composition mode, users are still inputing intermediate text buffer,\n\t  // hold the listener until composition is done.\n\t  // More about composition events: https://developer.mozilla.org/en-US/docs/Web/API/CompositionEvent\n\t  if (!$sniffer.android) {\n\t    var composing = false;\n\n\t    element.on('compositionstart', function(data) {\n\t      composing = true;\n\t    });\n\n\t    element.on('compositionend', function() {\n\t      composing = false;\n\t      listener();\n\t    });\n\t  }\n\n\t  var listener = function(ev) {\n\t    if (timeout) {\n\t      $browser.defer.cancel(timeout);\n\t      timeout = null;\n\t    }\n\t    if (composing) return;\n\t    var value = element.val(),\n\t        event = ev && ev.type;\n\n\t    // By default we will trim the value\n\t    // If the attribute ng-trim exists we will avoid trimming\n\t    // If input type is 'password', the value is never trimmed\n\t    if (type !== 'password' && (!attr.ngTrim || attr.ngTrim !== 'false')) {\n\t      value = trim(value);\n\t    }\n\n\t    // If a control is suffering from bad input (due to native validators), browsers discard its\n\t    // value, so it may be necessary to revalidate (by calling $setViewValue again) even if the\n\t    // control's value is the same empty value twice in a row.\n\t    if (ctrl.$viewValue !== value || (value === '' && ctrl.$$hasNativeValidators)) {\n\t      ctrl.$setViewValue(value, event);\n\t    }\n\t  };\n\n\t  // if the browser does support \"input\" event, we are fine - except on IE9 which doesn't fire the\n\t  // input event on backspace, delete or cut\n\t  if ($sniffer.hasEvent('input')) {\n\t    element.on('input', listener);\n\t  } else {\n\t    var timeout;\n\n\t    var deferListener = function(ev, input, origValue) {\n\t      if (!timeout) {\n\t        timeout = $browser.defer(function() {\n\t          timeout = null;\n\t          if (!input || input.value !== origValue) {\n\t            listener(ev);\n\t          }\n\t        });\n\t      }\n\t    };\n\n\t    element.on('keydown', function(event) {\n\t      var key = event.keyCode;\n\n\t      // ignore\n\t      //    command            modifiers                   arrows\n\t      if (key === 91 || (15 < key && key < 19) || (37 <= key && key <= 40)) return;\n\n\t      deferListener(event, this, this.value);\n\t    });\n\n\t    // if user modifies input value using context menu in IE, we need \"paste\" and \"cut\" events to catch it\n\t    if ($sniffer.hasEvent('paste')) {\n\t      element.on('paste cut', deferListener);\n\t    }\n\t  }\n\n\t  // if user paste into input using mouse on older browser\n\t  // or form autocomplete on newer browser, we need \"change\" event to catch it\n\t  element.on('change', listener);\n\n\t  ctrl.$render = function() {\n\t    // Workaround for Firefox validation #12102.\n\t    var value = ctrl.$isEmpty(ctrl.$viewValue) ? '' : ctrl.$viewValue;\n\t    if (element.val() !== value) {\n\t      element.val(value);\n\t    }\n\t  };\n\t}\n\n\tfunction weekParser(isoWeek, existingDate) {\n\t  if (isDate(isoWeek)) {\n\t    return isoWeek;\n\t  }\n\n\t  if (isString(isoWeek)) {\n\t    WEEK_REGEXP.lastIndex = 0;\n\t    var parts = WEEK_REGEXP.exec(isoWeek);\n\t    if (parts) {\n\t      var year = +parts[1],\n\t          week = +parts[2],\n\t          hours = 0,\n\t          minutes = 0,\n\t          seconds = 0,\n\t          milliseconds = 0,\n\t          firstThurs = getFirstThursdayOfYear(year),\n\t          addDays = (week - 1) * 7;\n\n\t      if (existingDate) {\n\t        hours = existingDate.getHours();\n\t        minutes = existingDate.getMinutes();\n\t        seconds = existingDate.getSeconds();\n\t        milliseconds = existingDate.getMilliseconds();\n\t      }\n\n\t      return new Date(year, 0, firstThurs.getDate() + addDays, hours, minutes, seconds, milliseconds);\n\t    }\n\t  }\n\n\t  return NaN;\n\t}\n\n\tfunction createDateParser(regexp, mapping) {\n\t  return function(iso, date) {\n\t    var parts, map;\n\n\t    if (isDate(iso)) {\n\t      return iso;\n\t    }\n\n\t    if (isString(iso)) {\n\t      // When a date is JSON'ified to wraps itself inside of an extra\n\t      // set of double quotes. This makes the date parsing code unable\n\t      // to match the date string and parse it as a date.\n\t      if (iso.charAt(0) == '\"' && iso.charAt(iso.length - 1) == '\"') {\n\t        iso = iso.substring(1, iso.length - 1);\n\t      }\n\t      if (ISO_DATE_REGEXP.test(iso)) {\n\t        return new Date(iso);\n\t      }\n\t      regexp.lastIndex = 0;\n\t      parts = regexp.exec(iso);\n\n\t      if (parts) {\n\t        parts.shift();\n\t        if (date) {\n\t          map = {\n\t            yyyy: date.getFullYear(),\n\t            MM: date.getMonth() + 1,\n\t            dd: date.getDate(),\n\t            HH: date.getHours(),\n\t            mm: date.getMinutes(),\n\t            ss: date.getSeconds(),\n\t            sss: date.getMilliseconds() / 1000\n\t          };\n\t        } else {\n\t          map = { yyyy: 1970, MM: 1, dd: 1, HH: 0, mm: 0, ss: 0, sss: 0 };\n\t        }\n\n\t        forEach(parts, function(part, index) {\n\t          if (index < mapping.length) {\n\t            map[mapping[index]] = +part;\n\t          }\n\t        });\n\t        return new Date(map.yyyy, map.MM - 1, map.dd, map.HH, map.mm, map.ss || 0, map.sss * 1000 || 0);\n\t      }\n\t    }\n\n\t    return NaN;\n\t  };\n\t}\n\n\tfunction createDateInputType(type, regexp, parseDate, format) {\n\t  return function dynamicDateInputType(scope, element, attr, ctrl, $sniffer, $browser, $filter) {\n\t    badInputChecker(scope, element, attr, ctrl);\n\t    baseInputType(scope, element, attr, ctrl, $sniffer, $browser);\n\t    var timezone = ctrl && ctrl.$options && ctrl.$options.timezone;\n\t    var previousDate;\n\n\t    ctrl.$$parserName = type;\n\t    ctrl.$parsers.push(function(value) {\n\t      if (ctrl.$isEmpty(value)) return null;\n\t      if (regexp.test(value)) {\n\t        // Note: We cannot read ctrl.$modelValue, as there might be a different\n\t        // parser/formatter in the processing chain so that the model\n\t        // contains some different data format!\n\t        var parsedDate = parseDate(value, previousDate);\n\t        if (timezone) {\n\t          parsedDate = convertTimezoneToLocal(parsedDate, timezone);\n\t        }\n\t        return parsedDate;\n\t      }\n\t      return undefined;\n\t    });\n\n\t    ctrl.$formatters.push(function(value) {\n\t      if (value && !isDate(value)) {\n\t        throw ngModelMinErr('datefmt', 'Expected `{0}` to be a date', value);\n\t      }\n\t      if (isValidDate(value)) {\n\t        previousDate = value;\n\t        if (previousDate && timezone) {\n\t          previousDate = convertTimezoneToLocal(previousDate, timezone, true);\n\t        }\n\t        return $filter('date')(value, format, timezone);\n\t      } else {\n\t        previousDate = null;\n\t        return '';\n\t      }\n\t    });\n\n\t    if (isDefined(attr.min) || attr.ngMin) {\n\t      var minVal;\n\t      ctrl.$validators.min = function(value) {\n\t        return !isValidDate(value) || isUndefined(minVal) || parseDate(value) >= minVal;\n\t      };\n\t      attr.$observe('min', function(val) {\n\t        minVal = parseObservedDateValue(val);\n\t        ctrl.$validate();\n\t      });\n\t    }\n\n\t    if (isDefined(attr.max) || attr.ngMax) {\n\t      var maxVal;\n\t      ctrl.$validators.max = function(value) {\n\t        return !isValidDate(value) || isUndefined(maxVal) || parseDate(value) <= maxVal;\n\t      };\n\t      attr.$observe('max', function(val) {\n\t        maxVal = parseObservedDateValue(val);\n\t        ctrl.$validate();\n\t      });\n\t    }\n\n\t    function isValidDate(value) {\n\t      // Invalid Date: getTime() returns NaN\n\t      return value && !(value.getTime && value.getTime() !== value.getTime());\n\t    }\n\n\t    function parseObservedDateValue(val) {\n\t      return isDefined(val) && !isDate(val) ? parseDate(val) || undefined : val;\n\t    }\n\t  };\n\t}\n\n\tfunction badInputChecker(scope, element, attr, ctrl) {\n\t  var node = element[0];\n\t  var nativeValidation = ctrl.$$hasNativeValidators = isObject(node.validity);\n\t  if (nativeValidation) {\n\t    ctrl.$parsers.push(function(value) {\n\t      var validity = element.prop(VALIDITY_STATE_PROPERTY) || {};\n\t      // Detect bug in FF35 for input[email] (https://bugzilla.mozilla.org/show_bug.cgi?id=1064430):\n\t      // - also sets validity.badInput (should only be validity.typeMismatch).\n\t      // - see http://www.whatwg.org/specs/web-apps/current-work/multipage/forms.html#e-mail-state-(type=email)\n\t      // - can ignore this case as we can still read out the erroneous email...\n\t      return validity.badInput && !validity.typeMismatch ? undefined : value;\n\t    });\n\t  }\n\t}\n\n\tfunction numberInputType(scope, element, attr, ctrl, $sniffer, $browser) {\n\t  badInputChecker(scope, element, attr, ctrl);\n\t  baseInputType(scope, element, attr, ctrl, $sniffer, $browser);\n\n\t  ctrl.$$parserName = 'number';\n\t  ctrl.$parsers.push(function(value) {\n\t    if (ctrl.$isEmpty(value))      return null;\n\t    if (NUMBER_REGEXP.test(value)) return parseFloat(value);\n\t    return undefined;\n\t  });\n\n\t  ctrl.$formatters.push(function(value) {\n\t    if (!ctrl.$isEmpty(value)) {\n\t      if (!isNumber(value)) {\n\t        throw ngModelMinErr('numfmt', 'Expected `{0}` to be a number', value);\n\t      }\n\t      value = value.toString();\n\t    }\n\t    return value;\n\t  });\n\n\t  if (isDefined(attr.min) || attr.ngMin) {\n\t    var minVal;\n\t    ctrl.$validators.min = function(value) {\n\t      return ctrl.$isEmpty(value) || isUndefined(minVal) || value >= minVal;\n\t    };\n\n\t    attr.$observe('min', function(val) {\n\t      if (isDefined(val) && !isNumber(val)) {\n\t        val = parseFloat(val, 10);\n\t      }\n\t      minVal = isNumber(val) && !isNaN(val) ? val : undefined;\n\t      // TODO(matsko): implement validateLater to reduce number of validations\n\t      ctrl.$validate();\n\t    });\n\t  }\n\n\t  if (isDefined(attr.max) || attr.ngMax) {\n\t    var maxVal;\n\t    ctrl.$validators.max = function(value) {\n\t      return ctrl.$isEmpty(value) || isUndefined(maxVal) || value <= maxVal;\n\t    };\n\n\t    attr.$observe('max', function(val) {\n\t      if (isDefined(val) && !isNumber(val)) {\n\t        val = parseFloat(val, 10);\n\t      }\n\t      maxVal = isNumber(val) && !isNaN(val) ? val : undefined;\n\t      // TODO(matsko): implement validateLater to reduce number of validations\n\t      ctrl.$validate();\n\t    });\n\t  }\n\t}\n\n\tfunction urlInputType(scope, element, attr, ctrl, $sniffer, $browser) {\n\t  // Note: no badInputChecker here by purpose as `url` is only a validation\n\t  // in browsers, i.e. we can always read out input.value even if it is not valid!\n\t  baseInputType(scope, element, attr, ctrl, $sniffer, $browser);\n\t  stringBasedInputType(ctrl);\n\n\t  ctrl.$$parserName = 'url';\n\t  ctrl.$validators.url = function(modelValue, viewValue) {\n\t    var value = modelValue || viewValue;\n\t    return ctrl.$isEmpty(value) || URL_REGEXP.test(value);\n\t  };\n\t}\n\n\tfunction emailInputType(scope, element, attr, ctrl, $sniffer, $browser) {\n\t  // Note: no badInputChecker here by purpose as `url` is only a validation\n\t  // in browsers, i.e. we can always read out input.value even if it is not valid!\n\t  baseInputType(scope, element, attr, ctrl, $sniffer, $browser);\n\t  stringBasedInputType(ctrl);\n\n\t  ctrl.$$parserName = 'email';\n\t  ctrl.$validators.email = function(modelValue, viewValue) {\n\t    var value = modelValue || viewValue;\n\t    return ctrl.$isEmpty(value) || EMAIL_REGEXP.test(value);\n\t  };\n\t}\n\n\tfunction radioInputType(scope, element, attr, ctrl) {\n\t  // make the name unique, if not defined\n\t  if (isUndefined(attr.name)) {\n\t    element.attr('name', nextUid());\n\t  }\n\n\t  var listener = function(ev) {\n\t    if (element[0].checked) {\n\t      ctrl.$setViewValue(attr.value, ev && ev.type);\n\t    }\n\t  };\n\n\t  element.on('click', listener);\n\n\t  ctrl.$render = function() {\n\t    var value = attr.value;\n\t    element[0].checked = (value == ctrl.$viewValue);\n\t  };\n\n\t  attr.$observe('value', ctrl.$render);\n\t}\n\n\tfunction parseConstantExpr($parse, context, name, expression, fallback) {\n\t  var parseFn;\n\t  if (isDefined(expression)) {\n\t    parseFn = $parse(expression);\n\t    if (!parseFn.constant) {\n\t      throw ngModelMinErr('constexpr', 'Expected constant expression for `{0}`, but saw ' +\n\t                                   '`{1}`.', name, expression);\n\t    }\n\t    return parseFn(context);\n\t  }\n\t  return fallback;\n\t}\n\n\tfunction checkboxInputType(scope, element, attr, ctrl, $sniffer, $browser, $filter, $parse) {\n\t  var trueValue = parseConstantExpr($parse, scope, 'ngTrueValue', attr.ngTrueValue, true);\n\t  var falseValue = parseConstantExpr($parse, scope, 'ngFalseValue', attr.ngFalseValue, false);\n\n\t  var listener = function(ev) {\n\t    ctrl.$setViewValue(element[0].checked, ev && ev.type);\n\t  };\n\n\t  element.on('click', listener);\n\n\t  ctrl.$render = function() {\n\t    element[0].checked = ctrl.$viewValue;\n\t  };\n\n\t  // Override the standard `$isEmpty` because the $viewValue of an empty checkbox is always set to `false`\n\t  // This is because of the parser below, which compares the `$modelValue` with `trueValue` to convert\n\t  // it to a boolean.\n\t  ctrl.$isEmpty = function(value) {\n\t    return value === false;\n\t  };\n\n\t  ctrl.$formatters.push(function(value) {\n\t    return equals(value, trueValue);\n\t  });\n\n\t  ctrl.$parsers.push(function(value) {\n\t    return value ? trueValue : falseValue;\n\t  });\n\t}\n\n\n\t/**\n\t * @ngdoc directive\n\t * @name textarea\n\t * @restrict E\n\t *\n\t * @description\n\t * HTML textarea element control with angular data-binding. The data-binding and validation\n\t * properties of this element are exactly the same as those of the\n\t * {@link ng.directive:input input element}.\n\t *\n\t * @param {string} ngModel Assignable angular expression to data-bind to.\n\t * @param {string=} name Property name of the form under which the control is published.\n\t * @param {string=} required Sets `required` validation error key if the value is not entered.\n\t * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to\n\t *    the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of\n\t *    `required` when you want to data-bind to the `required` attribute.\n\t * @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than\n\t *    minlength.\n\t * @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than\n\t *    maxlength. Setting the attribute to a negative or non-numeric value, allows view values of any\n\t *    length.\n\t * @param {string=} ngPattern Sets `pattern` validation error key if the ngModel value does not match\n\t *    a RegExp found by evaluating the Angular expression given in the attribute value.\n\t *    If the expression evaluates to a RegExp object, then this is used directly.\n\t *    If the expression evaluates to a string, then it will be converted to a RegExp\n\t *    after wrapping it in `^` and `$` characters. For instance, `\"abc\"` will be converted to\n\t *    `new RegExp('^abc$')`.<br />\n\t *    **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to\n\t *    start at the index of the last search's match, thus not taking the whole input value into\n\t *    account.\n\t * @param {string=} ngChange Angular expression to be executed when input changes due to user\n\t *    interaction with the input element.\n\t * @param {boolean=} [ngTrim=true] If set to false Angular will not automatically trim the input.\n\t */\n\n\n\t/**\n\t * @ngdoc directive\n\t * @name input\n\t * @restrict E\n\t *\n\t * @description\n\t * HTML input element control. When used together with {@link ngModel `ngModel`}, it provides data-binding,\n\t * input state control, and validation.\n\t * Input control follows HTML5 input types and polyfills the HTML5 validation behavior for older browsers.\n\t *\n\t * <div class=\"alert alert-warning\">\n\t * **Note:** Not every feature offered is available for all input types.\n\t * Specifically, data binding and event handling via `ng-model` is unsupported for `input[file]`.\n\t * </div>\n\t *\n\t * @param {string} ngModel Assignable angular expression to data-bind to.\n\t * @param {string=} name Property name of the form under which the control is published.\n\t * @param {string=} required Sets `required` validation error key if the value is not entered.\n\t * @param {boolean=} ngRequired Sets `required` attribute if set to true\n\t * @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than\n\t *    minlength.\n\t * @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than\n\t *    maxlength. Setting the attribute to a negative or non-numeric value, allows view values of any\n\t *    length.\n\t * @param {string=} ngPattern Sets `pattern` validation error key if the ngModel value does not match\n\t *    a RegExp found by evaluating the Angular expression given in the attribute value.\n\t *    If the expression evaluates to a RegExp object, then this is used directly.\n\t *    If the expression evaluates to a string, then it will be converted to a RegExp\n\t *    after wrapping it in `^` and `$` characters. For instance, `\"abc\"` will be converted to\n\t *    `new RegExp('^abc$')`.<br />\n\t *    **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to\n\t *    start at the index of the last search's match, thus not taking the whole input value into\n\t *    account.\n\t * @param {string=} ngChange Angular expression to be executed when input changes due to user\n\t *    interaction with the input element.\n\t * @param {boolean=} [ngTrim=true] If set to false Angular will not automatically trim the input.\n\t *    This parameter is ignored for input[type=password] controls, which will never trim the\n\t *    input.\n\t *\n\t * @example\n\t    <example name=\"input-directive\" module=\"inputExample\">\n\t      <file name=\"index.html\">\n\t       <script>\n\t          angular.module('inputExample', [])\n\t            .controller('ExampleController', ['$scope', function($scope) {\n\t              $scope.user = {name: 'guest', last: 'visitor'};\n\t            }]);\n\t       </script>\n\t       <div ng-controller=\"ExampleController\">\n\t         <form name=\"myForm\">\n\t           <label>\n\t              User name:\n\t              <input type=\"text\" name=\"userName\" ng-model=\"user.name\" required>\n\t           </label>\n\t           <div role=\"alert\">\n\t             <span class=\"error\" ng-show=\"myForm.userName.$error.required\">\n\t              Required!</span>\n\t           </div>\n\t           <label>\n\t              Last name:\n\t              <input type=\"text\" name=\"lastName\" ng-model=\"user.last\"\n\t              ng-minlength=\"3\" ng-maxlength=\"10\">\n\t           </label>\n\t           <div role=\"alert\">\n\t             <span class=\"error\" ng-show=\"myForm.lastName.$error.minlength\">\n\t               Too short!</span>\n\t             <span class=\"error\" ng-show=\"myForm.lastName.$error.maxlength\">\n\t               Too long!</span>\n\t           </div>\n\t         </form>\n\t         <hr>\n\t         <tt>user = {{user}}</tt><br/>\n\t         <tt>myForm.userName.$valid = {{myForm.userName.$valid}}</tt><br/>\n\t         <tt>myForm.userName.$error = {{myForm.userName.$error}}</tt><br/>\n\t         <tt>myForm.lastName.$valid = {{myForm.lastName.$valid}}</tt><br/>\n\t         <tt>myForm.lastName.$error = {{myForm.lastName.$error}}</tt><br/>\n\t         <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>\n\t         <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>\n\t         <tt>myForm.$error.minlength = {{!!myForm.$error.minlength}}</tt><br/>\n\t         <tt>myForm.$error.maxlength = {{!!myForm.$error.maxlength}}</tt><br/>\n\t       </div>\n\t      </file>\n\t      <file name=\"protractor.js\" type=\"protractor\">\n\t        var user = element(by.exactBinding('user'));\n\t        var userNameValid = element(by.binding('myForm.userName.$valid'));\n\t        var lastNameValid = element(by.binding('myForm.lastName.$valid'));\n\t        var lastNameError = element(by.binding('myForm.lastName.$error'));\n\t        var formValid = element(by.binding('myForm.$valid'));\n\t        var userNameInput = element(by.model('user.name'));\n\t        var userLastInput = element(by.model('user.last'));\n\n\t        it('should initialize to model', function() {\n\t          expect(user.getText()).toContain('{\"name\":\"guest\",\"last\":\"visitor\"}');\n\t          expect(userNameValid.getText()).toContain('true');\n\t          expect(formValid.getText()).toContain('true');\n\t        });\n\n\t        it('should be invalid if empty when required', function() {\n\t          userNameInput.clear();\n\t          userNameInput.sendKeys('');\n\n\t          expect(user.getText()).toContain('{\"last\":\"visitor\"}');\n\t          expect(userNameValid.getText()).toContain('false');\n\t          expect(formValid.getText()).toContain('false');\n\t        });\n\n\t        it('should be valid if empty when min length is set', function() {\n\t          userLastInput.clear();\n\t          userLastInput.sendKeys('');\n\n\t          expect(user.getText()).toContain('{\"name\":\"guest\",\"last\":\"\"}');\n\t          expect(lastNameValid.getText()).toContain('true');\n\t          expect(formValid.getText()).toContain('true');\n\t        });\n\n\t        it('should be invalid if less than required min length', function() {\n\t          userLastInput.clear();\n\t          userLastInput.sendKeys('xx');\n\n\t          expect(user.getText()).toContain('{\"name\":\"guest\"}');\n\t          expect(lastNameValid.getText()).toContain('false');\n\t          expect(lastNameError.getText()).toContain('minlength');\n\t          expect(formValid.getText()).toContain('false');\n\t        });\n\n\t        it('should be invalid if longer than max length', function() {\n\t          userLastInput.clear();\n\t          userLastInput.sendKeys('some ridiculously long name');\n\n\t          expect(user.getText()).toContain('{\"name\":\"guest\"}');\n\t          expect(lastNameValid.getText()).toContain('false');\n\t          expect(lastNameError.getText()).toContain('maxlength');\n\t          expect(formValid.getText()).toContain('false');\n\t        });\n\t      </file>\n\t    </example>\n\t */\n\tvar inputDirective = ['$browser', '$sniffer', '$filter', '$parse',\n\t    function($browser, $sniffer, $filter, $parse) {\n\t  return {\n\t    restrict: 'E',\n\t    require: ['?ngModel'],\n\t    link: {\n\t      pre: function(scope, element, attr, ctrls) {\n\t        if (ctrls[0]) {\n\t          (inputType[lowercase(attr.type)] || inputType.text)(scope, element, attr, ctrls[0], $sniffer,\n\t                                                              $browser, $filter, $parse);\n\t        }\n\t      }\n\t    }\n\t  };\n\t}];\n\n\n\n\tvar CONSTANT_VALUE_REGEXP = /^(true|false|\\d+)$/;\n\t/**\n\t * @ngdoc directive\n\t * @name ngValue\n\t *\n\t * @description\n\t * Binds the given expression to the value of `<option>` or {@link input[radio] `input[radio]`},\n\t * so that when the element is selected, the {@link ngModel `ngModel`} of that element is set to\n\t * the bound value.\n\t *\n\t * `ngValue` is useful when dynamically generating lists of radio buttons using\n\t * {@link ngRepeat `ngRepeat`}, as shown below.\n\t *\n\t * Likewise, `ngValue` can be used to generate `<option>` elements for\n\t * the {@link select `select`} element. In that case however, only strings are supported\n\t * for the `value `attribute, so the resulting `ngModel` will always be a string.\n\t * Support for `select` models with non-string values is available via `ngOptions`.\n\t *\n\t * @element input\n\t * @param {string=} ngValue angular expression, whose value will be bound to the `value` attribute\n\t *   of the `input` element\n\t *\n\t * @example\n\t    <example name=\"ngValue-directive\" module=\"valueExample\">\n\t      <file name=\"index.html\">\n\t       <script>\n\t          angular.module('valueExample', [])\n\t            .controller('ExampleController', ['$scope', function($scope) {\n\t              $scope.names = ['pizza', 'unicorns', 'robots'];\n\t              $scope.my = { favorite: 'unicorns' };\n\t            }]);\n\t       </script>\n\t        <form ng-controller=\"ExampleController\">\n\t          <h2>Which is your favorite?</h2>\n\t            <label ng-repeat=\"name in names\" for=\"{{name}}\">\n\t              {{name}}\n\t              <input type=\"radio\"\n\t                     ng-model=\"my.favorite\"\n\t                     ng-value=\"name\"\n\t                     id=\"{{name}}\"\n\t                     name=\"favorite\">\n\t            </label>\n\t          <div>You chose {{my.favorite}}</div>\n\t        </form>\n\t      </file>\n\t      <file name=\"protractor.js\" type=\"protractor\">\n\t        var favorite = element(by.binding('my.favorite'));\n\n\t        it('should initialize to model', function() {\n\t          expect(favorite.getText()).toContain('unicorns');\n\t        });\n\t        it('should bind the values to the inputs', function() {\n\t          element.all(by.model('my.favorite')).get(0).click();\n\t          expect(favorite.getText()).toContain('pizza');\n\t        });\n\t      </file>\n\t    </example>\n\t */\n\tvar ngValueDirective = function() {\n\t  return {\n\t    restrict: 'A',\n\t    priority: 100,\n\t    compile: function(tpl, tplAttr) {\n\t      if (CONSTANT_VALUE_REGEXP.test(tplAttr.ngValue)) {\n\t        return function ngValueConstantLink(scope, elm, attr) {\n\t          attr.$set('value', scope.$eval(attr.ngValue));\n\t        };\n\t      } else {\n\t        return function ngValueLink(scope, elm, attr) {\n\t          scope.$watch(attr.ngValue, function valueWatchAction(value) {\n\t            attr.$set('value', value);\n\t          });\n\t        };\n\t      }\n\t    }\n\t  };\n\t};\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngBind\n\t * @restrict AC\n\t *\n\t * @description\n\t * The `ngBind` attribute tells Angular to replace the text content of the specified HTML element\n\t * with the value of a given expression, and to update the text content when the value of that\n\t * expression changes.\n\t *\n\t * Typically, you don't use `ngBind` directly, but instead you use the double curly markup like\n\t * `{{ expression }}` which is similar but less verbose.\n\t *\n\t * It is preferable to use `ngBind` instead of `{{ expression }}` if a template is momentarily\n\t * displayed by the browser in its raw state before Angular compiles it. Since `ngBind` is an\n\t * element attribute, it makes the bindings invisible to the user while the page is loading.\n\t *\n\t * An alternative solution to this problem would be using the\n\t * {@link ng.directive:ngCloak ngCloak} directive.\n\t *\n\t *\n\t * @element ANY\n\t * @param {expression} ngBind {@link guide/expression Expression} to evaluate.\n\t *\n\t * @example\n\t * Enter a name in the Live Preview text box; the greeting below the text box changes instantly.\n\t   <example module=\"bindExample\">\n\t     <file name=\"index.html\">\n\t       <script>\n\t         angular.module('bindExample', [])\n\t           .controller('ExampleController', ['$scope', function($scope) {\n\t             $scope.name = 'Whirled';\n\t           }]);\n\t       </script>\n\t       <div ng-controller=\"ExampleController\">\n\t         <label>Enter name: <input type=\"text\" ng-model=\"name\"></label><br>\n\t         Hello <span ng-bind=\"name\"></span>!\n\t       </div>\n\t     </file>\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t       it('should check ng-bind', function() {\n\t         var nameInput = element(by.model('name'));\n\n\t         expect(element(by.binding('name')).getText()).toBe('Whirled');\n\t         nameInput.clear();\n\t         nameInput.sendKeys('world');\n\t         expect(element(by.binding('name')).getText()).toBe('world');\n\t       });\n\t     </file>\n\t   </example>\n\t */\n\tvar ngBindDirective = ['$compile', function($compile) {\n\t  return {\n\t    restrict: 'AC',\n\t    compile: function ngBindCompile(templateElement) {\n\t      $compile.$$addBindingClass(templateElement);\n\t      return function ngBindLink(scope, element, attr) {\n\t        $compile.$$addBindingInfo(element, attr.ngBind);\n\t        element = element[0];\n\t        scope.$watch(attr.ngBind, function ngBindWatchAction(value) {\n\t          element.textContent = isUndefined(value) ? '' : value;\n\t        });\n\t      };\n\t    }\n\t  };\n\t}];\n\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngBindTemplate\n\t *\n\t * @description\n\t * The `ngBindTemplate` directive specifies that the element\n\t * text content should be replaced with the interpolation of the template\n\t * in the `ngBindTemplate` attribute.\n\t * Unlike `ngBind`, the `ngBindTemplate` can contain multiple `{{` `}}`\n\t * expressions. This directive is needed since some HTML elements\n\t * (such as TITLE and OPTION) cannot contain SPAN elements.\n\t *\n\t * @element ANY\n\t * @param {string} ngBindTemplate template of form\n\t *   <tt>{{</tt> <tt>expression</tt> <tt>}}</tt> to eval.\n\t *\n\t * @example\n\t * Try it here: enter text in text box and watch the greeting change.\n\t   <example module=\"bindExample\">\n\t     <file name=\"index.html\">\n\t       <script>\n\t         angular.module('bindExample', [])\n\t           .controller('ExampleController', ['$scope', function($scope) {\n\t             $scope.salutation = 'Hello';\n\t             $scope.name = 'World';\n\t           }]);\n\t       </script>\n\t       <div ng-controller=\"ExampleController\">\n\t        <label>Salutation: <input type=\"text\" ng-model=\"salutation\"></label><br>\n\t        <label>Name: <input type=\"text\" ng-model=\"name\"></label><br>\n\t        <pre ng-bind-template=\"{{salutation}} {{name}}!\"></pre>\n\t       </div>\n\t     </file>\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t       it('should check ng-bind', function() {\n\t         var salutationElem = element(by.binding('salutation'));\n\t         var salutationInput = element(by.model('salutation'));\n\t         var nameInput = element(by.model('name'));\n\n\t         expect(salutationElem.getText()).toBe('Hello World!');\n\n\t         salutationInput.clear();\n\t         salutationInput.sendKeys('Greetings');\n\t         nameInput.clear();\n\t         nameInput.sendKeys('user');\n\n\t         expect(salutationElem.getText()).toBe('Greetings user!');\n\t       });\n\t     </file>\n\t   </example>\n\t */\n\tvar ngBindTemplateDirective = ['$interpolate', '$compile', function($interpolate, $compile) {\n\t  return {\n\t    compile: function ngBindTemplateCompile(templateElement) {\n\t      $compile.$$addBindingClass(templateElement);\n\t      return function ngBindTemplateLink(scope, element, attr) {\n\t        var interpolateFn = $interpolate(element.attr(attr.$attr.ngBindTemplate));\n\t        $compile.$$addBindingInfo(element, interpolateFn.expressions);\n\t        element = element[0];\n\t        attr.$observe('ngBindTemplate', function(value) {\n\t          element.textContent = isUndefined(value) ? '' : value;\n\t        });\n\t      };\n\t    }\n\t  };\n\t}];\n\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngBindHtml\n\t *\n\t * @description\n\t * Evaluates the expression and inserts the resulting HTML into the element in a secure way. By default,\n\t * the resulting HTML content will be sanitized using the {@link ngSanitize.$sanitize $sanitize} service.\n\t * To utilize this functionality, ensure that `$sanitize` is available, for example, by including {@link\n\t * ngSanitize} in your module's dependencies (not in core Angular). In order to use {@link ngSanitize}\n\t * in your module's dependencies, you need to include \"angular-sanitize.js\" in your application.\n\t *\n\t * You may also bypass sanitization for values you know are safe. To do so, bind to\n\t * an explicitly trusted value via {@link ng.$sce#trustAsHtml $sce.trustAsHtml}.  See the example\n\t * under {@link ng.$sce#show-me-an-example-using-sce- Strict Contextual Escaping (SCE)}.\n\t *\n\t * Note: If a `$sanitize` service is unavailable and the bound value isn't explicitly trusted, you\n\t * will have an exception (instead of an exploit.)\n\t *\n\t * @element ANY\n\t * @param {expression} ngBindHtml {@link guide/expression Expression} to evaluate.\n\t *\n\t * @example\n\n\t   <example module=\"bindHtmlExample\" deps=\"angular-sanitize.js\">\n\t     <file name=\"index.html\">\n\t       <div ng-controller=\"ExampleController\">\n\t        <p ng-bind-html=\"myHTML\"></p>\n\t       </div>\n\t     </file>\n\n\t     <file name=\"script.js\">\n\t       angular.module('bindHtmlExample', ['ngSanitize'])\n\t         .controller('ExampleController', ['$scope', function($scope) {\n\t           $scope.myHTML =\n\t              'I am an <code>HTML</code>string with ' +\n\t              '<a href=\"#\">links!</a> and other <em>stuff</em>';\n\t         }]);\n\t     </file>\n\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t       it('should check ng-bind-html', function() {\n\t         expect(element(by.binding('myHTML')).getText()).toBe(\n\t             'I am an HTMLstring with links! and other stuff');\n\t       });\n\t     </file>\n\t   </example>\n\t */\n\tvar ngBindHtmlDirective = ['$sce', '$parse', '$compile', function($sce, $parse, $compile) {\n\t  return {\n\t    restrict: 'A',\n\t    compile: function ngBindHtmlCompile(tElement, tAttrs) {\n\t      var ngBindHtmlGetter = $parse(tAttrs.ngBindHtml);\n\t      var ngBindHtmlWatch = $parse(tAttrs.ngBindHtml, function getStringValue(value) {\n\t        return (value || '').toString();\n\t      });\n\t      $compile.$$addBindingClass(tElement);\n\n\t      return function ngBindHtmlLink(scope, element, attr) {\n\t        $compile.$$addBindingInfo(element, attr.ngBindHtml);\n\n\t        scope.$watch(ngBindHtmlWatch, function ngBindHtmlWatchAction() {\n\t          // we re-evaluate the expr because we want a TrustedValueHolderType\n\t          // for $sce, not a string\n\t          element.html($sce.getTrustedHtml(ngBindHtmlGetter(scope)) || '');\n\t        });\n\t      };\n\t    }\n\t  };\n\t}];\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngChange\n\t *\n\t * @description\n\t * Evaluate the given expression when the user changes the input.\n\t * The expression is evaluated immediately, unlike the JavaScript onchange event\n\t * which only triggers at the end of a change (usually, when the user leaves the\n\t * form element or presses the return key).\n\t *\n\t * The `ngChange` expression is only evaluated when a change in the input value causes\n\t * a new value to be committed to the model.\n\t *\n\t * It will not be evaluated:\n\t * * if the value returned from the `$parsers` transformation pipeline has not changed\n\t * * if the input has continued to be invalid since the model will stay `null`\n\t * * if the model is changed programmatically and not by a change to the input value\n\t *\n\t *\n\t * Note, this directive requires `ngModel` to be present.\n\t *\n\t * @element input\n\t * @param {expression} ngChange {@link guide/expression Expression} to evaluate upon change\n\t * in input value.\n\t *\n\t * @example\n\t * <example name=\"ngChange-directive\" module=\"changeExample\">\n\t *   <file name=\"index.html\">\n\t *     <script>\n\t *       angular.module('changeExample', [])\n\t *         .controller('ExampleController', ['$scope', function($scope) {\n\t *           $scope.counter = 0;\n\t *           $scope.change = function() {\n\t *             $scope.counter++;\n\t *           };\n\t *         }]);\n\t *     </script>\n\t *     <div ng-controller=\"ExampleController\">\n\t *       <input type=\"checkbox\" ng-model=\"confirmed\" ng-change=\"change()\" id=\"ng-change-example1\" />\n\t *       <input type=\"checkbox\" ng-model=\"confirmed\" id=\"ng-change-example2\" />\n\t *       <label for=\"ng-change-example2\">Confirmed</label><br />\n\t *       <tt>debug = {{confirmed}}</tt><br/>\n\t *       <tt>counter = {{counter}}</tt><br/>\n\t *     </div>\n\t *   </file>\n\t *   <file name=\"protractor.js\" type=\"protractor\">\n\t *     var counter = element(by.binding('counter'));\n\t *     var debug = element(by.binding('confirmed'));\n\t *\n\t *     it('should evaluate the expression if changing from view', function() {\n\t *       expect(counter.getText()).toContain('0');\n\t *\n\t *       element(by.id('ng-change-example1')).click();\n\t *\n\t *       expect(counter.getText()).toContain('1');\n\t *       expect(debug.getText()).toContain('true');\n\t *     });\n\t *\n\t *     it('should not evaluate the expression if changing from model', function() {\n\t *       element(by.id('ng-change-example2')).click();\n\n\t *       expect(counter.getText()).toContain('0');\n\t *       expect(debug.getText()).toContain('true');\n\t *     });\n\t *   </file>\n\t * </example>\n\t */\n\tvar ngChangeDirective = valueFn({\n\t  restrict: 'A',\n\t  require: 'ngModel',\n\t  link: function(scope, element, attr, ctrl) {\n\t    ctrl.$viewChangeListeners.push(function() {\n\t      scope.$eval(attr.ngChange);\n\t    });\n\t  }\n\t});\n\n\tfunction classDirective(name, selector) {\n\t  name = 'ngClass' + name;\n\t  return ['$animate', function($animate) {\n\t    return {\n\t      restrict: 'AC',\n\t      link: function(scope, element, attr) {\n\t        var oldVal;\n\n\t        scope.$watch(attr[name], ngClassWatchAction, true);\n\n\t        attr.$observe('class', function(value) {\n\t          ngClassWatchAction(scope.$eval(attr[name]));\n\t        });\n\n\n\t        if (name !== 'ngClass') {\n\t          scope.$watch('$index', function($index, old$index) {\n\t            // jshint bitwise: false\n\t            var mod = $index & 1;\n\t            if (mod !== (old$index & 1)) {\n\t              var classes = arrayClasses(scope.$eval(attr[name]));\n\t              mod === selector ?\n\t                addClasses(classes) :\n\t                removeClasses(classes);\n\t            }\n\t          });\n\t        }\n\n\t        function addClasses(classes) {\n\t          var newClasses = digestClassCounts(classes, 1);\n\t          attr.$addClass(newClasses);\n\t        }\n\n\t        function removeClasses(classes) {\n\t          var newClasses = digestClassCounts(classes, -1);\n\t          attr.$removeClass(newClasses);\n\t        }\n\n\t        function digestClassCounts(classes, count) {\n\t          // Use createMap() to prevent class assumptions involving property\n\t          // names in Object.prototype\n\t          var classCounts = element.data('$classCounts') || createMap();\n\t          var classesToUpdate = [];\n\t          forEach(classes, function(className) {\n\t            if (count > 0 || classCounts[className]) {\n\t              classCounts[className] = (classCounts[className] || 0) + count;\n\t              if (classCounts[className] === +(count > 0)) {\n\t                classesToUpdate.push(className);\n\t              }\n\t            }\n\t          });\n\t          element.data('$classCounts', classCounts);\n\t          return classesToUpdate.join(' ');\n\t        }\n\n\t        function updateClasses(oldClasses, newClasses) {\n\t          var toAdd = arrayDifference(newClasses, oldClasses);\n\t          var toRemove = arrayDifference(oldClasses, newClasses);\n\t          toAdd = digestClassCounts(toAdd, 1);\n\t          toRemove = digestClassCounts(toRemove, -1);\n\t          if (toAdd && toAdd.length) {\n\t            $animate.addClass(element, toAdd);\n\t          }\n\t          if (toRemove && toRemove.length) {\n\t            $animate.removeClass(element, toRemove);\n\t          }\n\t        }\n\n\t        function ngClassWatchAction(newVal) {\n\t          if (selector === true || scope.$index % 2 === selector) {\n\t            var newClasses = arrayClasses(newVal || []);\n\t            if (!oldVal) {\n\t              addClasses(newClasses);\n\t            } else if (!equals(newVal,oldVal)) {\n\t              var oldClasses = arrayClasses(oldVal);\n\t              updateClasses(oldClasses, newClasses);\n\t            }\n\t          }\n\t          oldVal = shallowCopy(newVal);\n\t        }\n\t      }\n\t    };\n\n\t    function arrayDifference(tokens1, tokens2) {\n\t      var values = [];\n\n\t      outer:\n\t      for (var i = 0; i < tokens1.length; i++) {\n\t        var token = tokens1[i];\n\t        for (var j = 0; j < tokens2.length; j++) {\n\t          if (token == tokens2[j]) continue outer;\n\t        }\n\t        values.push(token);\n\t      }\n\t      return values;\n\t    }\n\n\t    function arrayClasses(classVal) {\n\t      var classes = [];\n\t      if (isArray(classVal)) {\n\t        forEach(classVal, function(v) {\n\t          classes = classes.concat(arrayClasses(v));\n\t        });\n\t        return classes;\n\t      } else if (isString(classVal)) {\n\t        return classVal.split(' ');\n\t      } else if (isObject(classVal)) {\n\t        forEach(classVal, function(v, k) {\n\t          if (v) {\n\t            classes = classes.concat(k.split(' '));\n\t          }\n\t        });\n\t        return classes;\n\t      }\n\t      return classVal;\n\t    }\n\t  }];\n\t}\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngClass\n\t * @restrict AC\n\t *\n\t * @description\n\t * The `ngClass` directive allows you to dynamically set CSS classes on an HTML element by databinding\n\t * an expression that represents all classes to be added.\n\t *\n\t * The directive operates in three different ways, depending on which of three types the expression\n\t * evaluates to:\n\t *\n\t * 1. If the expression evaluates to a string, the string should be one or more space-delimited class\n\t * names.\n\t *\n\t * 2. If the expression evaluates to an object, then for each key-value pair of the\n\t * object with a truthy value the corresponding key is used as a class name.\n\t *\n\t * 3. If the expression evaluates to an array, each element of the array should either be a string as in\n\t * type 1 or an object as in type 2. This means that you can mix strings and objects together in an array\n\t * to give you more control over what CSS classes appear. See the code below for an example of this.\n\t *\n\t *\n\t * The directive won't add duplicate classes if a particular class was already set.\n\t *\n\t * When the expression changes, the previously added classes are removed and only then are the\n\t * new classes added.\n\t *\n\t * @animations\n\t * **add** - happens just before the class is applied to the elements\n\t *\n\t * **remove** - happens just before the class is removed from the element\n\t *\n\t * @element ANY\n\t * @param {expression} ngClass {@link guide/expression Expression} to eval. The result\n\t *   of the evaluation can be a string representing space delimited class\n\t *   names, an array, or a map of class names to boolean values. In the case of a map, the\n\t *   names of the properties whose values are truthy will be added as css classes to the\n\t *   element.\n\t *\n\t * @example Example that demonstrates basic bindings via ngClass directive.\n\t   <example>\n\t     <file name=\"index.html\">\n\t       <p ng-class=\"{strike: deleted, bold: important, 'has-error': error}\">Map Syntax Example</p>\n\t       <label>\n\t          <input type=\"checkbox\" ng-model=\"deleted\">\n\t          deleted (apply \"strike\" class)\n\t       </label><br>\n\t       <label>\n\t          <input type=\"checkbox\" ng-model=\"important\">\n\t          important (apply \"bold\" class)\n\t       </label><br>\n\t       <label>\n\t          <input type=\"checkbox\" ng-model=\"error\">\n\t          error (apply \"has-error\" class)\n\t       </label>\n\t       <hr>\n\t       <p ng-class=\"style\">Using String Syntax</p>\n\t       <input type=\"text\" ng-model=\"style\"\n\t              placeholder=\"Type: bold strike red\" aria-label=\"Type: bold strike red\">\n\t       <hr>\n\t       <p ng-class=\"[style1, style2, style3]\">Using Array Syntax</p>\n\t       <input ng-model=\"style1\"\n\t              placeholder=\"Type: bold, strike or red\" aria-label=\"Type: bold, strike or red\"><br>\n\t       <input ng-model=\"style2\"\n\t              placeholder=\"Type: bold, strike or red\" aria-label=\"Type: bold, strike or red 2\"><br>\n\t       <input ng-model=\"style3\"\n\t              placeholder=\"Type: bold, strike or red\" aria-label=\"Type: bold, strike or red 3\"><br>\n\t       <hr>\n\t       <p ng-class=\"[style4, {orange: warning}]\">Using Array and Map Syntax</p>\n\t       <input ng-model=\"style4\" placeholder=\"Type: bold, strike\" aria-label=\"Type: bold, strike\"><br>\n\t       <label><input type=\"checkbox\" ng-model=\"warning\"> warning (apply \"orange\" class)</label>\n\t     </file>\n\t     <file name=\"style.css\">\n\t       .strike {\n\t           text-decoration: line-through;\n\t       }\n\t       .bold {\n\t           font-weight: bold;\n\t       }\n\t       .red {\n\t           color: red;\n\t       }\n\t       .has-error {\n\t           color: red;\n\t           background-color: yellow;\n\t       }\n\t       .orange {\n\t           color: orange;\n\t       }\n\t     </file>\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t       var ps = element.all(by.css('p'));\n\n\t       it('should let you toggle the class', function() {\n\n\t         expect(ps.first().getAttribute('class')).not.toMatch(/bold/);\n\t         expect(ps.first().getAttribute('class')).not.toMatch(/has-error/);\n\n\t         element(by.model('important')).click();\n\t         expect(ps.first().getAttribute('class')).toMatch(/bold/);\n\n\t         element(by.model('error')).click();\n\t         expect(ps.first().getAttribute('class')).toMatch(/has-error/);\n\t       });\n\n\t       it('should let you toggle string example', function() {\n\t         expect(ps.get(1).getAttribute('class')).toBe('');\n\t         element(by.model('style')).clear();\n\t         element(by.model('style')).sendKeys('red');\n\t         expect(ps.get(1).getAttribute('class')).toBe('red');\n\t       });\n\n\t       it('array example should have 3 classes', function() {\n\t         expect(ps.get(2).getAttribute('class')).toBe('');\n\t         element(by.model('style1')).sendKeys('bold');\n\t         element(by.model('style2')).sendKeys('strike');\n\t         element(by.model('style3')).sendKeys('red');\n\t         expect(ps.get(2).getAttribute('class')).toBe('bold strike red');\n\t       });\n\n\t       it('array with map example should have 2 classes', function() {\n\t         expect(ps.last().getAttribute('class')).toBe('');\n\t         element(by.model('style4')).sendKeys('bold');\n\t         element(by.model('warning')).click();\n\t         expect(ps.last().getAttribute('class')).toBe('bold orange');\n\t       });\n\t     </file>\n\t   </example>\n\n\t   ## Animations\n\n\t   The example below demonstrates how to perform animations using ngClass.\n\n\t   <example module=\"ngAnimate\" deps=\"angular-animate.js\" animations=\"true\">\n\t     <file name=\"index.html\">\n\t      <input id=\"setbtn\" type=\"button\" value=\"set\" ng-click=\"myVar='my-class'\">\n\t      <input id=\"clearbtn\" type=\"button\" value=\"clear\" ng-click=\"myVar=''\">\n\t      <br>\n\t      <span class=\"base-class\" ng-class=\"myVar\">Sample Text</span>\n\t     </file>\n\t     <file name=\"style.css\">\n\t       .base-class {\n\t         transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;\n\t       }\n\n\t       .base-class.my-class {\n\t         color: red;\n\t         font-size:3em;\n\t       }\n\t     </file>\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t       it('should check ng-class', function() {\n\t         expect(element(by.css('.base-class')).getAttribute('class')).not.\n\t           toMatch(/my-class/);\n\n\t         element(by.id('setbtn')).click();\n\n\t         expect(element(by.css('.base-class')).getAttribute('class')).\n\t           toMatch(/my-class/);\n\n\t         element(by.id('clearbtn')).click();\n\n\t         expect(element(by.css('.base-class')).getAttribute('class')).not.\n\t           toMatch(/my-class/);\n\t       });\n\t     </file>\n\t   </example>\n\n\n\t   ## ngClass and pre-existing CSS3 Transitions/Animations\n\t   The ngClass directive still supports CSS3 Transitions/Animations even if they do not follow the ngAnimate CSS naming structure.\n\t   Upon animation ngAnimate will apply supplementary CSS classes to track the start and end of an animation, but this will not hinder\n\t   any pre-existing CSS transitions already on the element. To get an idea of what happens during a class-based animation, be sure\n\t   to view the step by step details of {@link $animate#addClass $animate.addClass} and\n\t   {@link $animate#removeClass $animate.removeClass}.\n\t */\n\tvar ngClassDirective = classDirective('', true);\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngClassOdd\n\t * @restrict AC\n\t *\n\t * @description\n\t * The `ngClassOdd` and `ngClassEven` directives work exactly as\n\t * {@link ng.directive:ngClass ngClass}, except they work in\n\t * conjunction with `ngRepeat` and take effect only on odd (even) rows.\n\t *\n\t * This directive can be applied only within the scope of an\n\t * {@link ng.directive:ngRepeat ngRepeat}.\n\t *\n\t * @element ANY\n\t * @param {expression} ngClassOdd {@link guide/expression Expression} to eval. The result\n\t *   of the evaluation can be a string representing space delimited class names or an array.\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t        <ol ng-init=\"names=['John', 'Mary', 'Cate', 'Suz']\">\n\t          <li ng-repeat=\"name in names\">\n\t           <span ng-class-odd=\"'odd'\" ng-class-even=\"'even'\">\n\t             {{name}}\n\t           </span>\n\t          </li>\n\t        </ol>\n\t     </file>\n\t     <file name=\"style.css\">\n\t       .odd {\n\t         color: red;\n\t       }\n\t       .even {\n\t         color: blue;\n\t       }\n\t     </file>\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t       it('should check ng-class-odd and ng-class-even', function() {\n\t         expect(element(by.repeater('name in names').row(0).column('name')).getAttribute('class')).\n\t           toMatch(/odd/);\n\t         expect(element(by.repeater('name in names').row(1).column('name')).getAttribute('class')).\n\t           toMatch(/even/);\n\t       });\n\t     </file>\n\t   </example>\n\t */\n\tvar ngClassOddDirective = classDirective('Odd', 0);\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngClassEven\n\t * @restrict AC\n\t *\n\t * @description\n\t * The `ngClassOdd` and `ngClassEven` directives work exactly as\n\t * {@link ng.directive:ngClass ngClass}, except they work in\n\t * conjunction with `ngRepeat` and take effect only on odd (even) rows.\n\t *\n\t * This directive can be applied only within the scope of an\n\t * {@link ng.directive:ngRepeat ngRepeat}.\n\t *\n\t * @element ANY\n\t * @param {expression} ngClassEven {@link guide/expression Expression} to eval. The\n\t *   result of the evaluation can be a string representing space delimited class names or an array.\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t        <ol ng-init=\"names=['John', 'Mary', 'Cate', 'Suz']\">\n\t          <li ng-repeat=\"name in names\">\n\t           <span ng-class-odd=\"'odd'\" ng-class-even=\"'even'\">\n\t             {{name}} &nbsp; &nbsp; &nbsp;\n\t           </span>\n\t          </li>\n\t        </ol>\n\t     </file>\n\t     <file name=\"style.css\">\n\t       .odd {\n\t         color: red;\n\t       }\n\t       .even {\n\t         color: blue;\n\t       }\n\t     </file>\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t       it('should check ng-class-odd and ng-class-even', function() {\n\t         expect(element(by.repeater('name in names').row(0).column('name')).getAttribute('class')).\n\t           toMatch(/odd/);\n\t         expect(element(by.repeater('name in names').row(1).column('name')).getAttribute('class')).\n\t           toMatch(/even/);\n\t       });\n\t     </file>\n\t   </example>\n\t */\n\tvar ngClassEvenDirective = classDirective('Even', 1);\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngCloak\n\t * @restrict AC\n\t *\n\t * @description\n\t * The `ngCloak` directive is used to prevent the Angular html template from being briefly\n\t * displayed by the browser in its raw (uncompiled) form while your application is loading. Use this\n\t * directive to avoid the undesirable flicker effect caused by the html template display.\n\t *\n\t * The directive can be applied to the `<body>` element, but the preferred usage is to apply\n\t * multiple `ngCloak` directives to small portions of the page to permit progressive rendering\n\t * of the browser view.\n\t *\n\t * `ngCloak` works in cooperation with the following css rule embedded within `angular.js` and\n\t * `angular.min.js`.\n\t * For CSP mode please add `angular-csp.css` to your html file (see {@link ng.directive:ngCsp ngCsp}).\n\t *\n\t * ```css\n\t * [ng\\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak {\n\t *   display: none !important;\n\t * }\n\t * ```\n\t *\n\t * When this css rule is loaded by the browser, all html elements (including their children) that\n\t * are tagged with the `ngCloak` directive are hidden. When Angular encounters this directive\n\t * during the compilation of the template it deletes the `ngCloak` element attribute, making\n\t * the compiled element visible.\n\t *\n\t * For the best result, the `angular.js` script must be loaded in the head section of the html\n\t * document; alternatively, the css rule above must be included in the external stylesheet of the\n\t * application.\n\t *\n\t * @element ANY\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t        <div id=\"template1\" ng-cloak>{{ 'hello' }}</div>\n\t        <div id=\"template2\" class=\"ng-cloak\">{{ 'world' }}</div>\n\t     </file>\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t       it('should remove the template directive and css class', function() {\n\t         expect($('#template1').getAttribute('ng-cloak')).\n\t           toBeNull();\n\t         expect($('#template2').getAttribute('ng-cloak')).\n\t           toBeNull();\n\t       });\n\t     </file>\n\t   </example>\n\t *\n\t */\n\tvar ngCloakDirective = ngDirective({\n\t  compile: function(element, attr) {\n\t    attr.$set('ngCloak', undefined);\n\t    element.removeClass('ng-cloak');\n\t  }\n\t});\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngController\n\t *\n\t * @description\n\t * The `ngController` directive attaches a controller class to the view. This is a key aspect of how angular\n\t * supports the principles behind the Model-View-Controller design pattern.\n\t *\n\t * MVC components in angular:\n\t *\n\t * * Model — Models are the properties of a scope; scopes are attached to the DOM where scope properties\n\t *   are accessed through bindings.\n\t * * View — The template (HTML with data bindings) that is rendered into the View.\n\t * * Controller — The `ngController` directive specifies a Controller class; the class contains business\n\t *   logic behind the application to decorate the scope with functions and values\n\t *\n\t * Note that you can also attach controllers to the DOM by declaring it in a route definition\n\t * via the {@link ngRoute.$route $route} service. A common mistake is to declare the controller\n\t * again using `ng-controller` in the template itself.  This will cause the controller to be attached\n\t * and executed twice.\n\t *\n\t * @element ANY\n\t * @scope\n\t * @priority 500\n\t * @param {expression} ngController Name of a constructor function registered with the current\n\t * {@link ng.$controllerProvider $controllerProvider} or an {@link guide/expression expression}\n\t * that on the current scope evaluates to a constructor function.\n\t *\n\t * The controller instance can be published into a scope property by specifying\n\t * `ng-controller=\"as propertyName\"`.\n\t *\n\t * If the current `$controllerProvider` is configured to use globals (via\n\t * {@link ng.$controllerProvider#allowGlobals `$controllerProvider.allowGlobals()` }), this may\n\t * also be the name of a globally accessible constructor function (not recommended).\n\t *\n\t * @example\n\t * Here is a simple form for editing user contact information. Adding, removing, clearing, and\n\t * greeting are methods declared on the controller (see source tab). These methods can\n\t * easily be called from the angular markup. Any changes to the data are automatically reflected\n\t * in the View without the need for a manual update.\n\t *\n\t * Two different declaration styles are included below:\n\t *\n\t * * one binds methods and properties directly onto the controller using `this`:\n\t * `ng-controller=\"SettingsController1 as settings\"`\n\t * * one injects `$scope` into the controller:\n\t * `ng-controller=\"SettingsController2\"`\n\t *\n\t * The second option is more common in the Angular community, and is generally used in boilerplates\n\t * and in this guide. However, there are advantages to binding properties directly to the controller\n\t * and avoiding scope.\n\t *\n\t * * Using `controller as` makes it obvious which controller you are accessing in the template when\n\t * multiple controllers apply to an element.\n\t * * If you are writing your controllers as classes you have easier access to the properties and\n\t * methods, which will appear on the scope, from inside the controller code.\n\t * * Since there is always a `.` in the bindings, you don't have to worry about prototypal\n\t * inheritance masking primitives.\n\t *\n\t * This example demonstrates the `controller as` syntax.\n\t *\n\t * <example name=\"ngControllerAs\" module=\"controllerAsExample\">\n\t *   <file name=\"index.html\">\n\t *    <div id=\"ctrl-as-exmpl\" ng-controller=\"SettingsController1 as settings\">\n\t *      <label>Name: <input type=\"text\" ng-model=\"settings.name\"/></label>\n\t *      <button ng-click=\"settings.greet()\">greet</button><br/>\n\t *      Contact:\n\t *      <ul>\n\t *        <li ng-repeat=\"contact in settings.contacts\">\n\t *          <select ng-model=\"contact.type\" aria-label=\"Contact method\" id=\"select_{{$index}}\">\n\t *             <option>phone</option>\n\t *             <option>email</option>\n\t *          </select>\n\t *          <input type=\"text\" ng-model=\"contact.value\" aria-labelledby=\"select_{{$index}}\" />\n\t *          <button ng-click=\"settings.clearContact(contact)\">clear</button>\n\t *          <button ng-click=\"settings.removeContact(contact)\" aria-label=\"Remove\">X</button>\n\t *        </li>\n\t *        <li><button ng-click=\"settings.addContact()\">add</button></li>\n\t *     </ul>\n\t *    </div>\n\t *   </file>\n\t *   <file name=\"app.js\">\n\t *    angular.module('controllerAsExample', [])\n\t *      .controller('SettingsController1', SettingsController1);\n\t *\n\t *    function SettingsController1() {\n\t *      this.name = \"John Smith\";\n\t *      this.contacts = [\n\t *        {type: 'phone', value: '408 555 1212'},\n\t *        {type: 'email', value: 'john.smith@example.org'} ];\n\t *    }\n\t *\n\t *    SettingsController1.prototype.greet = function() {\n\t *      alert(this.name);\n\t *    };\n\t *\n\t *    SettingsController1.prototype.addContact = function() {\n\t *      this.contacts.push({type: 'email', value: 'yourname@example.org'});\n\t *    };\n\t *\n\t *    SettingsController1.prototype.removeContact = function(contactToRemove) {\n\t *     var index = this.contacts.indexOf(contactToRemove);\n\t *      this.contacts.splice(index, 1);\n\t *    };\n\t *\n\t *    SettingsController1.prototype.clearContact = function(contact) {\n\t *      contact.type = 'phone';\n\t *      contact.value = '';\n\t *    };\n\t *   </file>\n\t *   <file name=\"protractor.js\" type=\"protractor\">\n\t *     it('should check controller as', function() {\n\t *       var container = element(by.id('ctrl-as-exmpl'));\n\t *         expect(container.element(by.model('settings.name'))\n\t *           .getAttribute('value')).toBe('John Smith');\n\t *\n\t *       var firstRepeat =\n\t *           container.element(by.repeater('contact in settings.contacts').row(0));\n\t *       var secondRepeat =\n\t *           container.element(by.repeater('contact in settings.contacts').row(1));\n\t *\n\t *       expect(firstRepeat.element(by.model('contact.value')).getAttribute('value'))\n\t *           .toBe('408 555 1212');\n\t *\n\t *       expect(secondRepeat.element(by.model('contact.value')).getAttribute('value'))\n\t *           .toBe('john.smith@example.org');\n\t *\n\t *       firstRepeat.element(by.buttonText('clear')).click();\n\t *\n\t *       expect(firstRepeat.element(by.model('contact.value')).getAttribute('value'))\n\t *           .toBe('');\n\t *\n\t *       container.element(by.buttonText('add')).click();\n\t *\n\t *       expect(container.element(by.repeater('contact in settings.contacts').row(2))\n\t *           .element(by.model('contact.value'))\n\t *           .getAttribute('value'))\n\t *           .toBe('yourname@example.org');\n\t *     });\n\t *   </file>\n\t * </example>\n\t *\n\t * This example demonstrates the \"attach to `$scope`\" style of controller.\n\t *\n\t * <example name=\"ngController\" module=\"controllerExample\">\n\t *  <file name=\"index.html\">\n\t *   <div id=\"ctrl-exmpl\" ng-controller=\"SettingsController2\">\n\t *     <label>Name: <input type=\"text\" ng-model=\"name\"/></label>\n\t *     <button ng-click=\"greet()\">greet</button><br/>\n\t *     Contact:\n\t *     <ul>\n\t *       <li ng-repeat=\"contact in contacts\">\n\t *         <select ng-model=\"contact.type\" id=\"select_{{$index}}\">\n\t *            <option>phone</option>\n\t *            <option>email</option>\n\t *         </select>\n\t *         <input type=\"text\" ng-model=\"contact.value\" aria-labelledby=\"select_{{$index}}\" />\n\t *         <button ng-click=\"clearContact(contact)\">clear</button>\n\t *         <button ng-click=\"removeContact(contact)\">X</button>\n\t *       </li>\n\t *       <li>[ <button ng-click=\"addContact()\">add</button> ]</li>\n\t *    </ul>\n\t *   </div>\n\t *  </file>\n\t *  <file name=\"app.js\">\n\t *   angular.module('controllerExample', [])\n\t *     .controller('SettingsController2', ['$scope', SettingsController2]);\n\t *\n\t *   function SettingsController2($scope) {\n\t *     $scope.name = \"John Smith\";\n\t *     $scope.contacts = [\n\t *       {type:'phone', value:'408 555 1212'},\n\t *       {type:'email', value:'john.smith@example.org'} ];\n\t *\n\t *     $scope.greet = function() {\n\t *       alert($scope.name);\n\t *     };\n\t *\n\t *     $scope.addContact = function() {\n\t *       $scope.contacts.push({type:'email', value:'yourname@example.org'});\n\t *     };\n\t *\n\t *     $scope.removeContact = function(contactToRemove) {\n\t *       var index = $scope.contacts.indexOf(contactToRemove);\n\t *       $scope.contacts.splice(index, 1);\n\t *     };\n\t *\n\t *     $scope.clearContact = function(contact) {\n\t *       contact.type = 'phone';\n\t *       contact.value = '';\n\t *     };\n\t *   }\n\t *  </file>\n\t *  <file name=\"protractor.js\" type=\"protractor\">\n\t *    it('should check controller', function() {\n\t *      var container = element(by.id('ctrl-exmpl'));\n\t *\n\t *      expect(container.element(by.model('name'))\n\t *          .getAttribute('value')).toBe('John Smith');\n\t *\n\t *      var firstRepeat =\n\t *          container.element(by.repeater('contact in contacts').row(0));\n\t *      var secondRepeat =\n\t *          container.element(by.repeater('contact in contacts').row(1));\n\t *\n\t *      expect(firstRepeat.element(by.model('contact.value')).getAttribute('value'))\n\t *          .toBe('408 555 1212');\n\t *      expect(secondRepeat.element(by.model('contact.value')).getAttribute('value'))\n\t *          .toBe('john.smith@example.org');\n\t *\n\t *      firstRepeat.element(by.buttonText('clear')).click();\n\t *\n\t *      expect(firstRepeat.element(by.model('contact.value')).getAttribute('value'))\n\t *          .toBe('');\n\t *\n\t *      container.element(by.buttonText('add')).click();\n\t *\n\t *      expect(container.element(by.repeater('contact in contacts').row(2))\n\t *          .element(by.model('contact.value'))\n\t *          .getAttribute('value'))\n\t *          .toBe('yourname@example.org');\n\t *    });\n\t *  </file>\n\t *</example>\n\n\t */\n\tvar ngControllerDirective = [function() {\n\t  return {\n\t    restrict: 'A',\n\t    scope: true,\n\t    controller: '@',\n\t    priority: 500\n\t  };\n\t}];\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngCsp\n\t *\n\t * @element html\n\t * @description\n\t *\n\t * Angular has some features that can break certain\n\t * [CSP (Content Security Policy)](https://developer.mozilla.org/en/Security/CSP) rules.\n\t *\n\t * If you intend to implement these rules then you must tell Angular not to use these features.\n\t *\n\t * This is necessary when developing things like Google Chrome Extensions or Universal Windows Apps.\n\t *\n\t *\n\t * The following rules affect Angular:\n\t *\n\t * * `unsafe-eval`: this rule forbids apps to use `eval` or `Function(string)` generated functions\n\t * (among other things). Angular makes use of this in the {@link $parse} service to provide a 30%\n\t * increase in the speed of evaluating Angular expressions.\n\t *\n\t * * `unsafe-inline`: this rule forbids apps from inject custom styles into the document. Angular\n\t * makes use of this to include some CSS rules (e.g. {@link ngCloak} and {@link ngHide}).\n\t * To make these directives work when a CSP rule is blocking inline styles, you must link to the\n\t * `angular-csp.css` in your HTML manually.\n\t *\n\t * If you do not provide `ngCsp` then Angular tries to autodetect if CSP is blocking unsafe-eval\n\t * and automatically deactivates this feature in the {@link $parse} service. This autodetection,\n\t * however, triggers a CSP error to be logged in the console:\n\t *\n\t * ```\n\t * Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of\n\t * script in the following Content Security Policy directive: \"default-src 'self'\". Note that\n\t * 'script-src' was not explicitly set, so 'default-src' is used as a fallback.\n\t * ```\n\t *\n\t * This error is harmless but annoying. To prevent the error from showing up, put the `ngCsp`\n\t * directive on an element of the HTML document that appears before the `<script>` tag that loads\n\t * the `angular.js` file.\n\t *\n\t * *Note: This directive is only available in the `ng-csp` and `data-ng-csp` attribute form.*\n\t *\n\t * You can specify which of the CSP related Angular features should be deactivated by providing\n\t * a value for the `ng-csp` attribute. The options are as follows:\n\t *\n\t * * no-inline-style: this stops Angular from injecting CSS styles into the DOM\n\t *\n\t * * no-unsafe-eval: this stops Angular from optimising $parse with unsafe eval of strings\n\t *\n\t * You can use these values in the following combinations:\n\t *\n\t *\n\t * * No declaration means that Angular will assume that you can do inline styles, but it will do\n\t * a runtime check for unsafe-eval. E.g. `<body>`. This is backwardly compatible with previous versions\n\t * of Angular.\n\t *\n\t * * A simple `ng-csp` (or `data-ng-csp`) attribute will tell Angular to deactivate both inline\n\t * styles and unsafe eval. E.g. `<body ng-csp>`. This is backwardly compatible with previous versions\n\t * of Angular.\n\t *\n\t * * Specifying only `no-unsafe-eval` tells Angular that we must not use eval, but that we can inject\n\t * inline styles. E.g. `<body ng-csp=\"no-unsafe-eval\">`.\n\t *\n\t * * Specifying only `no-inline-style` tells Angular that we must not inject styles, but that we can\n\t * run eval - no automcatic check for unsafe eval will occur. E.g. `<body ng-csp=\"no-inline-style\">`\n\t *\n\t * * Specifying both `no-unsafe-eval` and `no-inline-style` tells Angular that we must not inject\n\t * styles nor use eval, which is the same as an empty: ng-csp.\n\t * E.g.`<body ng-csp=\"no-inline-style;no-unsafe-eval\">`\n\t *\n\t * @example\n\t * This example shows how to apply the `ngCsp` directive to the `html` tag.\n\t   ```html\n\t     <!doctype html>\n\t     <html ng-app ng-csp>\n\t     ...\n\t     ...\n\t     </html>\n\t   ```\n\t  * @example\n\t      // Note: the suffix `.csp` in the example name triggers\n\t      // csp mode in our http server!\n\t      <example name=\"example.csp\" module=\"cspExample\" ng-csp=\"true\">\n\t        <file name=\"index.html\">\n\t          <div ng-controller=\"MainController as ctrl\">\n\t            <div>\n\t              <button ng-click=\"ctrl.inc()\" id=\"inc\">Increment</button>\n\t              <span id=\"counter\">\n\t                {{ctrl.counter}}\n\t              </span>\n\t            </div>\n\n\t            <div>\n\t              <button ng-click=\"ctrl.evil()\" id=\"evil\">Evil</button>\n\t              <span id=\"evilError\">\n\t                {{ctrl.evilError}}\n\t              </span>\n\t            </div>\n\t          </div>\n\t        </file>\n\t        <file name=\"script.js\">\n\t           angular.module('cspExample', [])\n\t             .controller('MainController', function() {\n\t                this.counter = 0;\n\t                this.inc = function() {\n\t                  this.counter++;\n\t                };\n\t                this.evil = function() {\n\t                  // jshint evil:true\n\t                  try {\n\t                    eval('1+2');\n\t                  } catch (e) {\n\t                    this.evilError = e.message;\n\t                  }\n\t                };\n\t              });\n\t        </file>\n\t        <file name=\"protractor.js\" type=\"protractor\">\n\t          var util, webdriver;\n\n\t          var incBtn = element(by.id('inc'));\n\t          var counter = element(by.id('counter'));\n\t          var evilBtn = element(by.id('evil'));\n\t          var evilError = element(by.id('evilError'));\n\n\t          function getAndClearSevereErrors() {\n\t            return browser.manage().logs().get('browser').then(function(browserLog) {\n\t              return browserLog.filter(function(logEntry) {\n\t                return logEntry.level.value > webdriver.logging.Level.WARNING.value;\n\t              });\n\t            });\n\t          }\n\n\t          function clearErrors() {\n\t            getAndClearSevereErrors();\n\t          }\n\n\t          function expectNoErrors() {\n\t            getAndClearSevereErrors().then(function(filteredLog) {\n\t              expect(filteredLog.length).toEqual(0);\n\t              if (filteredLog.length) {\n\t                console.log('browser console errors: ' + util.inspect(filteredLog));\n\t              }\n\t            });\n\t          }\n\n\t          function expectError(regex) {\n\t            getAndClearSevereErrors().then(function(filteredLog) {\n\t              var found = false;\n\t              filteredLog.forEach(function(log) {\n\t                if (log.message.match(regex)) {\n\t                  found = true;\n\t                }\n\t              });\n\t              if (!found) {\n\t                throw new Error('expected an error that matches ' + regex);\n\t              }\n\t            });\n\t          }\n\n\t          beforeEach(function() {\n\t            util = require('util');\n\t            webdriver = require('protractor/node_modules/selenium-webdriver');\n\t          });\n\n\t          // For now, we only test on Chrome,\n\t          // as Safari does not load the page with Protractor's injected scripts,\n\t          // and Firefox webdriver always disables content security policy (#6358)\n\t          if (browser.params.browser !== 'chrome') {\n\t            return;\n\t          }\n\n\t          it('should not report errors when the page is loaded', function() {\n\t            // clear errors so we are not dependent on previous tests\n\t            clearErrors();\n\t            // Need to reload the page as the page is already loaded when\n\t            // we come here\n\t            browser.driver.getCurrentUrl().then(function(url) {\n\t              browser.get(url);\n\t            });\n\t            expectNoErrors();\n\t          });\n\n\t          it('should evaluate expressions', function() {\n\t            expect(counter.getText()).toEqual('0');\n\t            incBtn.click();\n\t            expect(counter.getText()).toEqual('1');\n\t            expectNoErrors();\n\t          });\n\n\t          it('should throw and report an error when using \"eval\"', function() {\n\t            evilBtn.click();\n\t            expect(evilError.getText()).toMatch(/Content Security Policy/);\n\t            expectError(/Content Security Policy/);\n\t          });\n\t        </file>\n\t      </example>\n\t  */\n\n\t// ngCsp is not implemented as a proper directive any more, because we need it be processed while we\n\t// bootstrap the system (before $parse is instantiated), for this reason we just have\n\t// the csp() fn that looks for the `ng-csp` attribute anywhere in the current doc\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngClick\n\t *\n\t * @description\n\t * The ngClick directive allows you to specify custom behavior when\n\t * an element is clicked.\n\t *\n\t * @element ANY\n\t * @priority 0\n\t * @param {expression} ngClick {@link guide/expression Expression} to evaluate upon\n\t * click. ({@link guide/expression#-event- Event object is available as `$event`})\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t      <button ng-click=\"count = count + 1\" ng-init=\"count=0\">\n\t        Increment\n\t      </button>\n\t      <span>\n\t        count: {{count}}\n\t      </span>\n\t     </file>\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t       it('should check ng-click', function() {\n\t         expect(element(by.binding('count')).getText()).toMatch('0');\n\t         element(by.css('button')).click();\n\t         expect(element(by.binding('count')).getText()).toMatch('1');\n\t       });\n\t     </file>\n\t   </example>\n\t */\n\t/*\n\t * A collection of directives that allows creation of custom event handlers that are defined as\n\t * angular expressions and are compiled and executed within the current scope.\n\t */\n\tvar ngEventDirectives = {};\n\n\t// For events that might fire synchronously during DOM manipulation\n\t// we need to execute their event handlers asynchronously using $evalAsync,\n\t// so that they are not executed in an inconsistent state.\n\tvar forceAsyncEvents = {\n\t  'blur': true,\n\t  'focus': true\n\t};\n\tforEach(\n\t  'click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste'.split(' '),\n\t  function(eventName) {\n\t    var directiveName = directiveNormalize('ng-' + eventName);\n\t    ngEventDirectives[directiveName] = ['$parse', '$rootScope', function($parse, $rootScope) {\n\t      return {\n\t        restrict: 'A',\n\t        compile: function($element, attr) {\n\t          // We expose the powerful $event object on the scope that provides access to the Window,\n\t          // etc. that isn't protected by the fast paths in $parse.  We explicitly request better\n\t          // checks at the cost of speed since event handler expressions are not executed as\n\t          // frequently as regular change detection.\n\t          var fn = $parse(attr[directiveName], /* interceptorFn */ null, /* expensiveChecks */ true);\n\t          return function ngEventHandler(scope, element) {\n\t            element.on(eventName, function(event) {\n\t              var callback = function() {\n\t                fn(scope, {$event:event});\n\t              };\n\t              if (forceAsyncEvents[eventName] && $rootScope.$$phase) {\n\t                scope.$evalAsync(callback);\n\t              } else {\n\t                scope.$apply(callback);\n\t              }\n\t            });\n\t          };\n\t        }\n\t      };\n\t    }];\n\t  }\n\t);\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngDblclick\n\t *\n\t * @description\n\t * The `ngDblclick` directive allows you to specify custom behavior on a dblclick event.\n\t *\n\t * @element ANY\n\t * @priority 0\n\t * @param {expression} ngDblclick {@link guide/expression Expression} to evaluate upon\n\t * a dblclick. (The Event object is available as `$event`)\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t      <button ng-dblclick=\"count = count + 1\" ng-init=\"count=0\">\n\t        Increment (on double click)\n\t      </button>\n\t      count: {{count}}\n\t     </file>\n\t   </example>\n\t */\n\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngMousedown\n\t *\n\t * @description\n\t * The ngMousedown directive allows you to specify custom behavior on mousedown event.\n\t *\n\t * @element ANY\n\t * @priority 0\n\t * @param {expression} ngMousedown {@link guide/expression Expression} to evaluate upon\n\t * mousedown. ({@link guide/expression#-event- Event object is available as `$event`})\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t      <button ng-mousedown=\"count = count + 1\" ng-init=\"count=0\">\n\t        Increment (on mouse down)\n\t      </button>\n\t      count: {{count}}\n\t     </file>\n\t   </example>\n\t */\n\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngMouseup\n\t *\n\t * @description\n\t * Specify custom behavior on mouseup event.\n\t *\n\t * @element ANY\n\t * @priority 0\n\t * @param {expression} ngMouseup {@link guide/expression Expression} to evaluate upon\n\t * mouseup. ({@link guide/expression#-event- Event object is available as `$event`})\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t      <button ng-mouseup=\"count = count + 1\" ng-init=\"count=0\">\n\t        Increment (on mouse up)\n\t      </button>\n\t      count: {{count}}\n\t     </file>\n\t   </example>\n\t */\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngMouseover\n\t *\n\t * @description\n\t * Specify custom behavior on mouseover event.\n\t *\n\t * @element ANY\n\t * @priority 0\n\t * @param {expression} ngMouseover {@link guide/expression Expression} to evaluate upon\n\t * mouseover. ({@link guide/expression#-event- Event object is available as `$event`})\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t      <button ng-mouseover=\"count = count + 1\" ng-init=\"count=0\">\n\t        Increment (when mouse is over)\n\t      </button>\n\t      count: {{count}}\n\t     </file>\n\t   </example>\n\t */\n\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngMouseenter\n\t *\n\t * @description\n\t * Specify custom behavior on mouseenter event.\n\t *\n\t * @element ANY\n\t * @priority 0\n\t * @param {expression} ngMouseenter {@link guide/expression Expression} to evaluate upon\n\t * mouseenter. ({@link guide/expression#-event- Event object is available as `$event`})\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t      <button ng-mouseenter=\"count = count + 1\" ng-init=\"count=0\">\n\t        Increment (when mouse enters)\n\t      </button>\n\t      count: {{count}}\n\t     </file>\n\t   </example>\n\t */\n\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngMouseleave\n\t *\n\t * @description\n\t * Specify custom behavior on mouseleave event.\n\t *\n\t * @element ANY\n\t * @priority 0\n\t * @param {expression} ngMouseleave {@link guide/expression Expression} to evaluate upon\n\t * mouseleave. ({@link guide/expression#-event- Event object is available as `$event`})\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t      <button ng-mouseleave=\"count = count + 1\" ng-init=\"count=0\">\n\t        Increment (when mouse leaves)\n\t      </button>\n\t      count: {{count}}\n\t     </file>\n\t   </example>\n\t */\n\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngMousemove\n\t *\n\t * @description\n\t * Specify custom behavior on mousemove event.\n\t *\n\t * @element ANY\n\t * @priority 0\n\t * @param {expression} ngMousemove {@link guide/expression Expression} to evaluate upon\n\t * mousemove. ({@link guide/expression#-event- Event object is available as `$event`})\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t      <button ng-mousemove=\"count = count + 1\" ng-init=\"count=0\">\n\t        Increment (when mouse moves)\n\t      </button>\n\t      count: {{count}}\n\t     </file>\n\t   </example>\n\t */\n\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngKeydown\n\t *\n\t * @description\n\t * Specify custom behavior on keydown event.\n\t *\n\t * @element ANY\n\t * @priority 0\n\t * @param {expression} ngKeydown {@link guide/expression Expression} to evaluate upon\n\t * keydown. (Event object is available as `$event` and can be interrogated for keyCode, altKey, etc.)\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t      <input ng-keydown=\"count = count + 1\" ng-init=\"count=0\">\n\t      key down count: {{count}}\n\t     </file>\n\t   </example>\n\t */\n\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngKeyup\n\t *\n\t * @description\n\t * Specify custom behavior on keyup event.\n\t *\n\t * @element ANY\n\t * @priority 0\n\t * @param {expression} ngKeyup {@link guide/expression Expression} to evaluate upon\n\t * keyup. (Event object is available as `$event` and can be interrogated for keyCode, altKey, etc.)\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t       <p>Typing in the input box below updates the key count</p>\n\t       <input ng-keyup=\"count = count + 1\" ng-init=\"count=0\"> key up count: {{count}}\n\n\t       <p>Typing in the input box below updates the keycode</p>\n\t       <input ng-keyup=\"event=$event\">\n\t       <p>event keyCode: {{ event.keyCode }}</p>\n\t       <p>event altKey: {{ event.altKey }}</p>\n\t     </file>\n\t   </example>\n\t */\n\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngKeypress\n\t *\n\t * @description\n\t * Specify custom behavior on keypress event.\n\t *\n\t * @element ANY\n\t * @param {expression} ngKeypress {@link guide/expression Expression} to evaluate upon\n\t * keypress. ({@link guide/expression#-event- Event object is available as `$event`}\n\t * and can be interrogated for keyCode, altKey, etc.)\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t      <input ng-keypress=\"count = count + 1\" ng-init=\"count=0\">\n\t      key press count: {{count}}\n\t     </file>\n\t   </example>\n\t */\n\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngSubmit\n\t *\n\t * @description\n\t * Enables binding angular expressions to onsubmit events.\n\t *\n\t * Additionally it prevents the default action (which for form means sending the request to the\n\t * server and reloading the current page), but only if the form does not contain `action`,\n\t * `data-action`, or `x-action` attributes.\n\t *\n\t * <div class=\"alert alert-warning\">\n\t * **Warning:** Be careful not to cause \"double-submission\" by using both the `ngClick` and\n\t * `ngSubmit` handlers together. See the\n\t * {@link form#submitting-a-form-and-preventing-the-default-action `form` directive documentation}\n\t * for a detailed discussion of when `ngSubmit` may be triggered.\n\t * </div>\n\t *\n\t * @element form\n\t * @priority 0\n\t * @param {expression} ngSubmit {@link guide/expression Expression} to eval.\n\t * ({@link guide/expression#-event- Event object is available as `$event`})\n\t *\n\t * @example\n\t   <example module=\"submitExample\">\n\t     <file name=\"index.html\">\n\t      <script>\n\t        angular.module('submitExample', [])\n\t          .controller('ExampleController', ['$scope', function($scope) {\n\t            $scope.list = [];\n\t            $scope.text = 'hello';\n\t            $scope.submit = function() {\n\t              if ($scope.text) {\n\t                $scope.list.push(this.text);\n\t                $scope.text = '';\n\t              }\n\t            };\n\t          }]);\n\t      </script>\n\t      <form ng-submit=\"submit()\" ng-controller=\"ExampleController\">\n\t        Enter text and hit enter:\n\t        <input type=\"text\" ng-model=\"text\" name=\"text\" />\n\t        <input type=\"submit\" id=\"submit\" value=\"Submit\" />\n\t        <pre>list={{list}}</pre>\n\t      </form>\n\t     </file>\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t       it('should check ng-submit', function() {\n\t         expect(element(by.binding('list')).getText()).toBe('list=[]');\n\t         element(by.css('#submit')).click();\n\t         expect(element(by.binding('list')).getText()).toContain('hello');\n\t         expect(element(by.model('text')).getAttribute('value')).toBe('');\n\t       });\n\t       it('should ignore empty strings', function() {\n\t         expect(element(by.binding('list')).getText()).toBe('list=[]');\n\t         element(by.css('#submit')).click();\n\t         element(by.css('#submit')).click();\n\t         expect(element(by.binding('list')).getText()).toContain('hello');\n\t        });\n\t     </file>\n\t   </example>\n\t */\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngFocus\n\t *\n\t * @description\n\t * Specify custom behavior on focus event.\n\t *\n\t * Note: As the `focus` event is executed synchronously when calling `input.focus()`\n\t * AngularJS executes the expression using `scope.$evalAsync` if the event is fired\n\t * during an `$apply` to ensure a consistent state.\n\t *\n\t * @element window, input, select, textarea, a\n\t * @priority 0\n\t * @param {expression} ngFocus {@link guide/expression Expression} to evaluate upon\n\t * focus. ({@link guide/expression#-event- Event object is available as `$event`})\n\t *\n\t * @example\n\t * See {@link ng.directive:ngClick ngClick}\n\t */\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngBlur\n\t *\n\t * @description\n\t * Specify custom behavior on blur event.\n\t *\n\t * A [blur event](https://developer.mozilla.org/en-US/docs/Web/Events/blur) fires when\n\t * an element has lost focus.\n\t *\n\t * Note: As the `blur` event is executed synchronously also during DOM manipulations\n\t * (e.g. removing a focussed input),\n\t * AngularJS executes the expression using `scope.$evalAsync` if the event is fired\n\t * during an `$apply` to ensure a consistent state.\n\t *\n\t * @element window, input, select, textarea, a\n\t * @priority 0\n\t * @param {expression} ngBlur {@link guide/expression Expression} to evaluate upon\n\t * blur. ({@link guide/expression#-event- Event object is available as `$event`})\n\t *\n\t * @example\n\t * See {@link ng.directive:ngClick ngClick}\n\t */\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngCopy\n\t *\n\t * @description\n\t * Specify custom behavior on copy event.\n\t *\n\t * @element window, input, select, textarea, a\n\t * @priority 0\n\t * @param {expression} ngCopy {@link guide/expression Expression} to evaluate upon\n\t * copy. ({@link guide/expression#-event- Event object is available as `$event`})\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t      <input ng-copy=\"copied=true\" ng-init=\"copied=false; value='copy me'\" ng-model=\"value\">\n\t      copied: {{copied}}\n\t     </file>\n\t   </example>\n\t */\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngCut\n\t *\n\t * @description\n\t * Specify custom behavior on cut event.\n\t *\n\t * @element window, input, select, textarea, a\n\t * @priority 0\n\t * @param {expression} ngCut {@link guide/expression Expression} to evaluate upon\n\t * cut. ({@link guide/expression#-event- Event object is available as `$event`})\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t      <input ng-cut=\"cut=true\" ng-init=\"cut=false; value='cut me'\" ng-model=\"value\">\n\t      cut: {{cut}}\n\t     </file>\n\t   </example>\n\t */\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngPaste\n\t *\n\t * @description\n\t * Specify custom behavior on paste event.\n\t *\n\t * @element window, input, select, textarea, a\n\t * @priority 0\n\t * @param {expression} ngPaste {@link guide/expression Expression} to evaluate upon\n\t * paste. ({@link guide/expression#-event- Event object is available as `$event`})\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t      <input ng-paste=\"paste=true\" ng-init=\"paste=false\" placeholder='paste here'>\n\t      pasted: {{paste}}\n\t     </file>\n\t   </example>\n\t */\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngIf\n\t * @restrict A\n\t * @multiElement\n\t *\n\t * @description\n\t * The `ngIf` directive removes or recreates a portion of the DOM tree based on an\n\t * {expression}. If the expression assigned to `ngIf` evaluates to a false\n\t * value then the element is removed from the DOM, otherwise a clone of the\n\t * element is reinserted into the DOM.\n\t *\n\t * `ngIf` differs from `ngShow` and `ngHide` in that `ngIf` completely removes and recreates the\n\t * element in the DOM rather than changing its visibility via the `display` css property.  A common\n\t * case when this difference is significant is when using css selectors that rely on an element's\n\t * position within the DOM, such as the `:first-child` or `:last-child` pseudo-classes.\n\t *\n\t * Note that when an element is removed using `ngIf` its scope is destroyed and a new scope\n\t * is created when the element is restored.  The scope created within `ngIf` inherits from\n\t * its parent scope using\n\t * [prototypal inheritance](https://github.com/angular/angular.js/wiki/Understanding-Scopes#javascript-prototypal-inheritance).\n\t * An important implication of this is if `ngModel` is used within `ngIf` to bind to\n\t * a javascript primitive defined in the parent scope. In this case any modifications made to the\n\t * variable within the child scope will override (hide) the value in the parent scope.\n\t *\n\t * Also, `ngIf` recreates elements using their compiled state. An example of this behavior\n\t * is if an element's class attribute is directly modified after it's compiled, using something like\n\t * jQuery's `.addClass()` method, and the element is later removed. When `ngIf` recreates the element\n\t * the added class will be lost because the original compiled state is used to regenerate the element.\n\t *\n\t * Additionally, you can provide animations via the `ngAnimate` module to animate the `enter`\n\t * and `leave` effects.\n\t *\n\t * @animations\n\t * enter - happens just after the `ngIf` contents change and a new DOM element is created and injected into the `ngIf` container\n\t * leave - happens just before the `ngIf` contents are removed from the DOM\n\t *\n\t * @element ANY\n\t * @scope\n\t * @priority 600\n\t * @param {expression} ngIf If the {@link guide/expression expression} is falsy then\n\t *     the element is removed from the DOM tree. If it is truthy a copy of the compiled\n\t *     element is added to the DOM tree.\n\t *\n\t * @example\n\t  <example module=\"ngAnimate\" deps=\"angular-animate.js\" animations=\"true\">\n\t    <file name=\"index.html\">\n\t      <label>Click me: <input type=\"checkbox\" ng-model=\"checked\" ng-init=\"checked=true\" /></label><br/>\n\t      Show when checked:\n\t      <span ng-if=\"checked\" class=\"animate-if\">\n\t        This is removed when the checkbox is unchecked.\n\t      </span>\n\t    </file>\n\t    <file name=\"animations.css\">\n\t      .animate-if {\n\t        background:white;\n\t        border:1px solid black;\n\t        padding:10px;\n\t      }\n\n\t      .animate-if.ng-enter, .animate-if.ng-leave {\n\t        transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;\n\t      }\n\n\t      .animate-if.ng-enter,\n\t      .animate-if.ng-leave.ng-leave-active {\n\t        opacity:0;\n\t      }\n\n\t      .animate-if.ng-leave,\n\t      .animate-if.ng-enter.ng-enter-active {\n\t        opacity:1;\n\t      }\n\t    </file>\n\t  </example>\n\t */\n\tvar ngIfDirective = ['$animate', function($animate) {\n\t  return {\n\t    multiElement: true,\n\t    transclude: 'element',\n\t    priority: 600,\n\t    terminal: true,\n\t    restrict: 'A',\n\t    $$tlb: true,\n\t    link: function($scope, $element, $attr, ctrl, $transclude) {\n\t        var block, childScope, previousElements;\n\t        $scope.$watch($attr.ngIf, function ngIfWatchAction(value) {\n\n\t          if (value) {\n\t            if (!childScope) {\n\t              $transclude(function(clone, newScope) {\n\t                childScope = newScope;\n\t                clone[clone.length++] = document.createComment(' end ngIf: ' + $attr.ngIf + ' ');\n\t                // Note: We only need the first/last node of the cloned nodes.\n\t                // However, we need to keep the reference to the jqlite wrapper as it might be changed later\n\t                // by a directive with templateUrl when its template arrives.\n\t                block = {\n\t                  clone: clone\n\t                };\n\t                $animate.enter(clone, $element.parent(), $element);\n\t              });\n\t            }\n\t          } else {\n\t            if (previousElements) {\n\t              previousElements.remove();\n\t              previousElements = null;\n\t            }\n\t            if (childScope) {\n\t              childScope.$destroy();\n\t              childScope = null;\n\t            }\n\t            if (block) {\n\t              previousElements = getBlockNodes(block.clone);\n\t              $animate.leave(previousElements).then(function() {\n\t                previousElements = null;\n\t              });\n\t              block = null;\n\t            }\n\t          }\n\t        });\n\t    }\n\t  };\n\t}];\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngInclude\n\t * @restrict ECA\n\t *\n\t * @description\n\t * Fetches, compiles and includes an external HTML fragment.\n\t *\n\t * By default, the template URL is restricted to the same domain and protocol as the\n\t * application document. This is done by calling {@link $sce#getTrustedResourceUrl\n\t * $sce.getTrustedResourceUrl} on it. To load templates from other domains or protocols\n\t * you may either {@link ng.$sceDelegateProvider#resourceUrlWhitelist whitelist them} or\n\t * {@link $sce#trustAsResourceUrl wrap them} as trusted values. Refer to Angular's {@link\n\t * ng.$sce Strict Contextual Escaping}.\n\t *\n\t * In addition, the browser's\n\t * [Same Origin Policy](https://code.google.com/p/browsersec/wiki/Part2#Same-origin_policy_for_XMLHttpRequest)\n\t * and [Cross-Origin Resource Sharing (CORS)](http://www.w3.org/TR/cors/)\n\t * policy may further restrict whether the template is successfully loaded.\n\t * For example, `ngInclude` won't work for cross-domain requests on all browsers and for `file://`\n\t * access on some browsers.\n\t *\n\t * @animations\n\t * enter - animation is used to bring new content into the browser.\n\t * leave - animation is used to animate existing content away.\n\t *\n\t * The enter and leave animation occur concurrently.\n\t *\n\t * @scope\n\t * @priority 400\n\t *\n\t * @param {string} ngInclude|src angular expression evaluating to URL. If the source is a string constant,\n\t *                 make sure you wrap it in **single** quotes, e.g. `src=\"'myPartialTemplate.html'\"`.\n\t * @param {string=} onload Expression to evaluate when a new partial is loaded.\n\t *                  <div class=\"alert alert-warning\">\n\t *                  **Note:** When using onload on SVG elements in IE11, the browser will try to call\n\t *                  a function with the name on the window element, which will usually throw a\n\t *                  \"function is undefined\" error. To fix this, you can instead use `data-onload` or a\n\t *                  different form that {@link guide/directive#normalization matches} `onload`.\n\t *                  </div>\n\t   *\n\t * @param {string=} autoscroll Whether `ngInclude` should call {@link ng.$anchorScroll\n\t *                  $anchorScroll} to scroll the viewport after the content is loaded.\n\t *\n\t *                  - If the attribute is not set, disable scrolling.\n\t *                  - If the attribute is set without value, enable scrolling.\n\t *                  - Otherwise enable scrolling only if the expression evaluates to truthy value.\n\t *\n\t * @example\n\t  <example module=\"includeExample\" deps=\"angular-animate.js\" animations=\"true\">\n\t    <file name=\"index.html\">\n\t     <div ng-controller=\"ExampleController\">\n\t       <select ng-model=\"template\" ng-options=\"t.name for t in templates\">\n\t        <option value=\"\">(blank)</option>\n\t       </select>\n\t       url of the template: <code>{{template.url}}</code>\n\t       <hr/>\n\t       <div class=\"slide-animate-container\">\n\t         <div class=\"slide-animate\" ng-include=\"template.url\"></div>\n\t       </div>\n\t     </div>\n\t    </file>\n\t    <file name=\"script.js\">\n\t      angular.module('includeExample', ['ngAnimate'])\n\t        .controller('ExampleController', ['$scope', function($scope) {\n\t          $scope.templates =\n\t            [ { name: 'template1.html', url: 'template1.html'},\n\t              { name: 'template2.html', url: 'template2.html'} ];\n\t          $scope.template = $scope.templates[0];\n\t        }]);\n\t     </file>\n\t    <file name=\"template1.html\">\n\t      Content of template1.html\n\t    </file>\n\t    <file name=\"template2.html\">\n\t      Content of template2.html\n\t    </file>\n\t    <file name=\"animations.css\">\n\t      .slide-animate-container {\n\t        position:relative;\n\t        background:white;\n\t        border:1px solid black;\n\t        height:40px;\n\t        overflow:hidden;\n\t      }\n\n\t      .slide-animate {\n\t        padding:10px;\n\t      }\n\n\t      .slide-animate.ng-enter, .slide-animate.ng-leave {\n\t        transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;\n\n\t        position:absolute;\n\t        top:0;\n\t        left:0;\n\t        right:0;\n\t        bottom:0;\n\t        display:block;\n\t        padding:10px;\n\t      }\n\n\t      .slide-animate.ng-enter {\n\t        top:-50px;\n\t      }\n\t      .slide-animate.ng-enter.ng-enter-active {\n\t        top:0;\n\t      }\n\n\t      .slide-animate.ng-leave {\n\t        top:0;\n\t      }\n\t      .slide-animate.ng-leave.ng-leave-active {\n\t        top:50px;\n\t      }\n\t    </file>\n\t    <file name=\"protractor.js\" type=\"protractor\">\n\t      var templateSelect = element(by.model('template'));\n\t      var includeElem = element(by.css('[ng-include]'));\n\n\t      it('should load template1.html', function() {\n\t        expect(includeElem.getText()).toMatch(/Content of template1.html/);\n\t      });\n\n\t      it('should load template2.html', function() {\n\t        if (browser.params.browser == 'firefox') {\n\t          // Firefox can't handle using selects\n\t          // See https://github.com/angular/protractor/issues/480\n\t          return;\n\t        }\n\t        templateSelect.click();\n\t        templateSelect.all(by.css('option')).get(2).click();\n\t        expect(includeElem.getText()).toMatch(/Content of template2.html/);\n\t      });\n\n\t      it('should change to blank', function() {\n\t        if (browser.params.browser == 'firefox') {\n\t          // Firefox can't handle using selects\n\t          return;\n\t        }\n\t        templateSelect.click();\n\t        templateSelect.all(by.css('option')).get(0).click();\n\t        expect(includeElem.isPresent()).toBe(false);\n\t      });\n\t    </file>\n\t  </example>\n\t */\n\n\n\t/**\n\t * @ngdoc event\n\t * @name ngInclude#$includeContentRequested\n\t * @eventType emit on the scope ngInclude was declared in\n\t * @description\n\t * Emitted every time the ngInclude content is requested.\n\t *\n\t * @param {Object} angularEvent Synthetic event object.\n\t * @param {String} src URL of content to load.\n\t */\n\n\n\t/**\n\t * @ngdoc event\n\t * @name ngInclude#$includeContentLoaded\n\t * @eventType emit on the current ngInclude scope\n\t * @description\n\t * Emitted every time the ngInclude content is reloaded.\n\t *\n\t * @param {Object} angularEvent Synthetic event object.\n\t * @param {String} src URL of content to load.\n\t */\n\n\n\t/**\n\t * @ngdoc event\n\t * @name ngInclude#$includeContentError\n\t * @eventType emit on the scope ngInclude was declared in\n\t * @description\n\t * Emitted when a template HTTP request yields an erroneous response (status < 200 || status > 299)\n\t *\n\t * @param {Object} angularEvent Synthetic event object.\n\t * @param {String} src URL of content to load.\n\t */\n\tvar ngIncludeDirective = ['$templateRequest', '$anchorScroll', '$animate',\n\t                  function($templateRequest,   $anchorScroll,   $animate) {\n\t  return {\n\t    restrict: 'ECA',\n\t    priority: 400,\n\t    terminal: true,\n\t    transclude: 'element',\n\t    controller: angular.noop,\n\t    compile: function(element, attr) {\n\t      var srcExp = attr.ngInclude || attr.src,\n\t          onloadExp = attr.onload || '',\n\t          autoScrollExp = attr.autoscroll;\n\n\t      return function(scope, $element, $attr, ctrl, $transclude) {\n\t        var changeCounter = 0,\n\t            currentScope,\n\t            previousElement,\n\t            currentElement;\n\n\t        var cleanupLastIncludeContent = function() {\n\t          if (previousElement) {\n\t            previousElement.remove();\n\t            previousElement = null;\n\t          }\n\t          if (currentScope) {\n\t            currentScope.$destroy();\n\t            currentScope = null;\n\t          }\n\t          if (currentElement) {\n\t            $animate.leave(currentElement).then(function() {\n\t              previousElement = null;\n\t            });\n\t            previousElement = currentElement;\n\t            currentElement = null;\n\t          }\n\t        };\n\n\t        scope.$watch(srcExp, function ngIncludeWatchAction(src) {\n\t          var afterAnimation = function() {\n\t            if (isDefined(autoScrollExp) && (!autoScrollExp || scope.$eval(autoScrollExp))) {\n\t              $anchorScroll();\n\t            }\n\t          };\n\t          var thisChangeId = ++changeCounter;\n\n\t          if (src) {\n\t            //set the 2nd param to true to ignore the template request error so that the inner\n\t            //contents and scope can be cleaned up.\n\t            $templateRequest(src, true).then(function(response) {\n\t              if (thisChangeId !== changeCounter) return;\n\t              var newScope = scope.$new();\n\t              ctrl.template = response;\n\n\t              // Note: This will also link all children of ng-include that were contained in the original\n\t              // html. If that content contains controllers, ... they could pollute/change the scope.\n\t              // However, using ng-include on an element with additional content does not make sense...\n\t              // Note: We can't remove them in the cloneAttchFn of $transclude as that\n\t              // function is called before linking the content, which would apply child\n\t              // directives to non existing elements.\n\t              var clone = $transclude(newScope, function(clone) {\n\t                cleanupLastIncludeContent();\n\t                $animate.enter(clone, null, $element).then(afterAnimation);\n\t              });\n\n\t              currentScope = newScope;\n\t              currentElement = clone;\n\n\t              currentScope.$emit('$includeContentLoaded', src);\n\t              scope.$eval(onloadExp);\n\t            }, function() {\n\t              if (thisChangeId === changeCounter) {\n\t                cleanupLastIncludeContent();\n\t                scope.$emit('$includeContentError', src);\n\t              }\n\t            });\n\t            scope.$emit('$includeContentRequested', src);\n\t          } else {\n\t            cleanupLastIncludeContent();\n\t            ctrl.template = null;\n\t          }\n\t        });\n\t      };\n\t    }\n\t  };\n\t}];\n\n\t// This directive is called during the $transclude call of the first `ngInclude` directive.\n\t// It will replace and compile the content of the element with the loaded template.\n\t// We need this directive so that the element content is already filled when\n\t// the link function of another directive on the same element as ngInclude\n\t// is called.\n\tvar ngIncludeFillContentDirective = ['$compile',\n\t  function($compile) {\n\t    return {\n\t      restrict: 'ECA',\n\t      priority: -400,\n\t      require: 'ngInclude',\n\t      link: function(scope, $element, $attr, ctrl) {\n\t        if (/SVG/.test($element[0].toString())) {\n\t          // WebKit: https://bugs.webkit.org/show_bug.cgi?id=135698 --- SVG elements do not\n\t          // support innerHTML, so detect this here and try to generate the contents\n\t          // specially.\n\t          $element.empty();\n\t          $compile(jqLiteBuildFragment(ctrl.template, document).childNodes)(scope,\n\t              function namespaceAdaptedClone(clone) {\n\t            $element.append(clone);\n\t          }, {futureParentElement: $element});\n\t          return;\n\t        }\n\n\t        $element.html(ctrl.template);\n\t        $compile($element.contents())(scope);\n\t      }\n\t    };\n\t  }];\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngInit\n\t * @restrict AC\n\t *\n\t * @description\n\t * The `ngInit` directive allows you to evaluate an expression in the\n\t * current scope.\n\t *\n\t * <div class=\"alert alert-danger\">\n\t * This directive can be abused to add unnecessary amounts of logic into your templates.\n\t * There are only a few appropriate uses of `ngInit`, such as for aliasing special properties of\n\t * {@link ng.directive:ngRepeat `ngRepeat`}, as seen in the demo below; and for injecting data via\n\t * server side scripting. Besides these few cases, you should use {@link guide/controller controllers}\n\t * rather than `ngInit` to initialize values on a scope.\n\t * </div>\n\t *\n\t * <div class=\"alert alert-warning\">\n\t * **Note**: If you have assignment in `ngInit` along with a {@link ng.$filter `filter`}, make\n\t * sure you have parentheses to ensure correct operator precedence:\n\t * <pre class=\"prettyprint\">\n\t * `<div ng-init=\"test1 = ($index | toString)\"></div>`\n\t * </pre>\n\t * </div>\n\t *\n\t * @priority 450\n\t *\n\t * @element ANY\n\t * @param {expression} ngInit {@link guide/expression Expression} to eval.\n\t *\n\t * @example\n\t   <example module=\"initExample\">\n\t     <file name=\"index.html\">\n\t   <script>\n\t     angular.module('initExample', [])\n\t       .controller('ExampleController', ['$scope', function($scope) {\n\t         $scope.list = [['a', 'b'], ['c', 'd']];\n\t       }]);\n\t   </script>\n\t   <div ng-controller=\"ExampleController\">\n\t     <div ng-repeat=\"innerList in list\" ng-init=\"outerIndex = $index\">\n\t       <div ng-repeat=\"value in innerList\" ng-init=\"innerIndex = $index\">\n\t          <span class=\"example-init\">list[ {{outerIndex}} ][ {{innerIndex}} ] = {{value}};</span>\n\t       </div>\n\t     </div>\n\t   </div>\n\t     </file>\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t       it('should alias index positions', function() {\n\t         var elements = element.all(by.css('.example-init'));\n\t         expect(elements.get(0).getText()).toBe('list[ 0 ][ 0 ] = a;');\n\t         expect(elements.get(1).getText()).toBe('list[ 0 ][ 1 ] = b;');\n\t         expect(elements.get(2).getText()).toBe('list[ 1 ][ 0 ] = c;');\n\t         expect(elements.get(3).getText()).toBe('list[ 1 ][ 1 ] = d;');\n\t       });\n\t     </file>\n\t   </example>\n\t */\n\tvar ngInitDirective = ngDirective({\n\t  priority: 450,\n\t  compile: function() {\n\t    return {\n\t      pre: function(scope, element, attrs) {\n\t        scope.$eval(attrs.ngInit);\n\t      }\n\t    };\n\t  }\n\t});\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngList\n\t *\n\t * @description\n\t * Text input that converts between a delimited string and an array of strings. The default\n\t * delimiter is a comma followed by a space - equivalent to `ng-list=\", \"`. You can specify a custom\n\t * delimiter as the value of the `ngList` attribute - for example, `ng-list=\" | \"`.\n\t *\n\t * The behaviour of the directive is affected by the use of the `ngTrim` attribute.\n\t * * If `ngTrim` is set to `\"false\"` then whitespace around both the separator and each\n\t *   list item is respected. This implies that the user of the directive is responsible for\n\t *   dealing with whitespace but also allows you to use whitespace as a delimiter, such as a\n\t *   tab or newline character.\n\t * * Otherwise whitespace around the delimiter is ignored when splitting (although it is respected\n\t *   when joining the list items back together) and whitespace around each list item is stripped\n\t *   before it is added to the model.\n\t *\n\t * ### Example with Validation\n\t *\n\t * <example name=\"ngList-directive\" module=\"listExample\">\n\t *   <file name=\"app.js\">\n\t *      angular.module('listExample', [])\n\t *        .controller('ExampleController', ['$scope', function($scope) {\n\t *          $scope.names = ['morpheus', 'neo', 'trinity'];\n\t *        }]);\n\t *   </file>\n\t *   <file name=\"index.html\">\n\t *    <form name=\"myForm\" ng-controller=\"ExampleController\">\n\t *      <label>List: <input name=\"namesInput\" ng-model=\"names\" ng-list required></label>\n\t *      <span role=\"alert\">\n\t *        <span class=\"error\" ng-show=\"myForm.namesInput.$error.required\">\n\t *        Required!</span>\n\t *      </span>\n\t *      <br>\n\t *      <tt>names = {{names}}</tt><br/>\n\t *      <tt>myForm.namesInput.$valid = {{myForm.namesInput.$valid}}</tt><br/>\n\t *      <tt>myForm.namesInput.$error = {{myForm.namesInput.$error}}</tt><br/>\n\t *      <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>\n\t *      <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>\n\t *     </form>\n\t *   </file>\n\t *   <file name=\"protractor.js\" type=\"protractor\">\n\t *     var listInput = element(by.model('names'));\n\t *     var names = element(by.exactBinding('names'));\n\t *     var valid = element(by.binding('myForm.namesInput.$valid'));\n\t *     var error = element(by.css('span.error'));\n\t *\n\t *     it('should initialize to model', function() {\n\t *       expect(names.getText()).toContain('[\"morpheus\",\"neo\",\"trinity\"]');\n\t *       expect(valid.getText()).toContain('true');\n\t *       expect(error.getCssValue('display')).toBe('none');\n\t *     });\n\t *\n\t *     it('should be invalid if empty', function() {\n\t *       listInput.clear();\n\t *       listInput.sendKeys('');\n\t *\n\t *       expect(names.getText()).toContain('');\n\t *       expect(valid.getText()).toContain('false');\n\t *       expect(error.getCssValue('display')).not.toBe('none');\n\t *     });\n\t *   </file>\n\t * </example>\n\t *\n\t * ### Example - splitting on newline\n\t * <example name=\"ngList-directive-newlines\">\n\t *   <file name=\"index.html\">\n\t *    <textarea ng-model=\"list\" ng-list=\"&#10;\" ng-trim=\"false\"></textarea>\n\t *    <pre>{{ list | json }}</pre>\n\t *   </file>\n\t *   <file name=\"protractor.js\" type=\"protractor\">\n\t *     it(\"should split the text by newlines\", function() {\n\t *       var listInput = element(by.model('list'));\n\t *       var output = element(by.binding('list | json'));\n\t *       listInput.sendKeys('abc\\ndef\\nghi');\n\t *       expect(output.getText()).toContain('[\\n  \"abc\",\\n  \"def\",\\n  \"ghi\"\\n]');\n\t *     });\n\t *   </file>\n\t * </example>\n\t *\n\t * @element input\n\t * @param {string=} ngList optional delimiter that should be used to split the value.\n\t */\n\tvar ngListDirective = function() {\n\t  return {\n\t    restrict: 'A',\n\t    priority: 100,\n\t    require: 'ngModel',\n\t    link: function(scope, element, attr, ctrl) {\n\t      // We want to control whitespace trimming so we use this convoluted approach\n\t      // to access the ngList attribute, which doesn't pre-trim the attribute\n\t      var ngList = element.attr(attr.$attr.ngList) || ', ';\n\t      var trimValues = attr.ngTrim !== 'false';\n\t      var separator = trimValues ? trim(ngList) : ngList;\n\n\t      var parse = function(viewValue) {\n\t        // If the viewValue is invalid (say required but empty) it will be `undefined`\n\t        if (isUndefined(viewValue)) return;\n\n\t        var list = [];\n\n\t        if (viewValue) {\n\t          forEach(viewValue.split(separator), function(value) {\n\t            if (value) list.push(trimValues ? trim(value) : value);\n\t          });\n\t        }\n\n\t        return list;\n\t      };\n\n\t      ctrl.$parsers.push(parse);\n\t      ctrl.$formatters.push(function(value) {\n\t        if (isArray(value)) {\n\t          return value.join(ngList);\n\t        }\n\n\t        return undefined;\n\t      });\n\n\t      // Override the standard $isEmpty because an empty array means the input is empty.\n\t      ctrl.$isEmpty = function(value) {\n\t        return !value || !value.length;\n\t      };\n\t    }\n\t  };\n\t};\n\n\t/* global VALID_CLASS: true,\n\t  INVALID_CLASS: true,\n\t  PRISTINE_CLASS: true,\n\t  DIRTY_CLASS: true,\n\t  UNTOUCHED_CLASS: true,\n\t  TOUCHED_CLASS: true,\n\t*/\n\n\tvar VALID_CLASS = 'ng-valid',\n\t    INVALID_CLASS = 'ng-invalid',\n\t    PRISTINE_CLASS = 'ng-pristine',\n\t    DIRTY_CLASS = 'ng-dirty',\n\t    UNTOUCHED_CLASS = 'ng-untouched',\n\t    TOUCHED_CLASS = 'ng-touched',\n\t    PENDING_CLASS = 'ng-pending';\n\n\tvar ngModelMinErr = minErr('ngModel');\n\n\t/**\n\t * @ngdoc type\n\t * @name ngModel.NgModelController\n\t *\n\t * @property {*} $viewValue The actual value from the control's view. For `input` elements, this is a\n\t * String. See {@link ngModel.NgModelController#$setViewValue} for information about when the $viewValue\n\t * is set.\n\t * @property {*} $modelValue The value in the model that the control is bound to.\n\t * @property {Array.<Function>} $parsers Array of functions to execute, as a pipeline, whenever\n\t       the control reads value from the DOM. The functions are called in array order, each passing\n\t       its return value through to the next. The last return value is forwarded to the\n\t       {@link ngModel.NgModelController#$validators `$validators`} collection.\n\n\tParsers are used to sanitize / convert the {@link ngModel.NgModelController#$viewValue\n\t`$viewValue`}.\n\n\tReturning `undefined` from a parser means a parse error occurred. In that case,\n\tno {@link ngModel.NgModelController#$validators `$validators`} will run and the `ngModel`\n\twill be set to `undefined` unless {@link ngModelOptions `ngModelOptions.allowInvalid`}\n\tis set to `true`. The parse error is stored in `ngModel.$error.parse`.\n\n\t *\n\t * @property {Array.<Function>} $formatters Array of functions to execute, as a pipeline, whenever\n\t       the model value changes. The functions are called in reverse array order, each passing the value through to the\n\t       next. The last return value is used as the actual DOM value.\n\t       Used to format / convert values for display in the control.\n\t * ```js\n\t * function formatter(value) {\n\t *   if (value) {\n\t *     return value.toUpperCase();\n\t *   }\n\t * }\n\t * ngModel.$formatters.push(formatter);\n\t * ```\n\t *\n\t * @property {Object.<string, function>} $validators A collection of validators that are applied\n\t *      whenever the model value changes. The key value within the object refers to the name of the\n\t *      validator while the function refers to the validation operation. The validation operation is\n\t *      provided with the model value as an argument and must return a true or false value depending\n\t *      on the response of that validation.\n\t *\n\t * ```js\n\t * ngModel.$validators.validCharacters = function(modelValue, viewValue) {\n\t *   var value = modelValue || viewValue;\n\t *   return /[0-9]+/.test(value) &&\n\t *          /[a-z]+/.test(value) &&\n\t *          /[A-Z]+/.test(value) &&\n\t *          /\\W+/.test(value);\n\t * };\n\t * ```\n\t *\n\t * @property {Object.<string, function>} $asyncValidators A collection of validations that are expected to\n\t *      perform an asynchronous validation (e.g. a HTTP request). The validation function that is provided\n\t *      is expected to return a promise when it is run during the model validation process. Once the promise\n\t *      is delivered then the validation status will be set to true when fulfilled and false when rejected.\n\t *      When the asynchronous validators are triggered, each of the validators will run in parallel and the model\n\t *      value will only be updated once all validators have been fulfilled. As long as an asynchronous validator\n\t *      is unfulfilled, its key will be added to the controllers `$pending` property. Also, all asynchronous validators\n\t *      will only run once all synchronous validators have passed.\n\t *\n\t * Please note that if $http is used then it is important that the server returns a success HTTP response code\n\t * in order to fulfill the validation and a status level of `4xx` in order to reject the validation.\n\t *\n\t * ```js\n\t * ngModel.$asyncValidators.uniqueUsername = function(modelValue, viewValue) {\n\t *   var value = modelValue || viewValue;\n\t *\n\t *   // Lookup user by username\n\t *   return $http.get('/api/users/' + value).\n\t *      then(function resolved() {\n\t *        //username exists, this means validation fails\n\t *        return $q.reject('exists');\n\t *      }, function rejected() {\n\t *        //username does not exist, therefore this validation passes\n\t *        return true;\n\t *      });\n\t * };\n\t * ```\n\t *\n\t * @property {Array.<Function>} $viewChangeListeners Array of functions to execute whenever the\n\t *     view value has changed. It is called with no arguments, and its return value is ignored.\n\t *     This can be used in place of additional $watches against the model value.\n\t *\n\t * @property {Object} $error An object hash with all failing validator ids as keys.\n\t * @property {Object} $pending An object hash with all pending validator ids as keys.\n\t *\n\t * @property {boolean} $untouched True if control has not lost focus yet.\n\t * @property {boolean} $touched True if control has lost focus.\n\t * @property {boolean} $pristine True if user has not interacted with the control yet.\n\t * @property {boolean} $dirty True if user has already interacted with the control.\n\t * @property {boolean} $valid True if there is no error.\n\t * @property {boolean} $invalid True if at least one error on the control.\n\t * @property {string} $name The name attribute of the control.\n\t *\n\t * @description\n\t *\n\t * `NgModelController` provides API for the {@link ngModel `ngModel`} directive.\n\t * The controller contains services for data-binding, validation, CSS updates, and value formatting\n\t * and parsing. It purposefully does not contain any logic which deals with DOM rendering or\n\t * listening to DOM events.\n\t * Such DOM related logic should be provided by other directives which make use of\n\t * `NgModelController` for data-binding to control elements.\n\t * Angular provides this DOM logic for most {@link input `input`} elements.\n\t * At the end of this page you can find a {@link ngModel.NgModelController#custom-control-example\n\t * custom control example} that uses `ngModelController` to bind to `contenteditable` elements.\n\t *\n\t * @example\n\t * ### Custom Control Example\n\t * This example shows how to use `NgModelController` with a custom control to achieve\n\t * data-binding. Notice how different directives (`contenteditable`, `ng-model`, and `required`)\n\t * collaborate together to achieve the desired result.\n\t *\n\t * `contenteditable` is an HTML5 attribute, which tells the browser to let the element\n\t * contents be edited in place by the user.\n\t *\n\t * We are using the {@link ng.service:$sce $sce} service here and include the {@link ngSanitize $sanitize}\n\t * module to automatically remove \"bad\" content like inline event listener (e.g. `<span onclick=\"...\">`).\n\t * However, as we are using `$sce` the model can still decide to provide unsafe content if it marks\n\t * that content using the `$sce` service.\n\t *\n\t * <example name=\"NgModelController\" module=\"customControl\" deps=\"angular-sanitize.js\">\n\t    <file name=\"style.css\">\n\t      [contenteditable] {\n\t        border: 1px solid black;\n\t        background-color: white;\n\t        min-height: 20px;\n\t      }\n\n\t      .ng-invalid {\n\t        border: 1px solid red;\n\t      }\n\n\t    </file>\n\t    <file name=\"script.js\">\n\t      angular.module('customControl', ['ngSanitize']).\n\t        directive('contenteditable', ['$sce', function($sce) {\n\t          return {\n\t            restrict: 'A', // only activate on element attribute\n\t            require: '?ngModel', // get a hold of NgModelController\n\t            link: function(scope, element, attrs, ngModel) {\n\t              if (!ngModel) return; // do nothing if no ng-model\n\n\t              // Specify how UI should be updated\n\t              ngModel.$render = function() {\n\t                element.html($sce.getTrustedHtml(ngModel.$viewValue || ''));\n\t              };\n\n\t              // Listen for change events to enable binding\n\t              element.on('blur keyup change', function() {\n\t                scope.$evalAsync(read);\n\t              });\n\t              read(); // initialize\n\n\t              // Write data to the model\n\t              function read() {\n\t                var html = element.html();\n\t                // When we clear the content editable the browser leaves a <br> behind\n\t                // If strip-br attribute is provided then we strip this out\n\t                if ( attrs.stripBr && html == '<br>' ) {\n\t                  html = '';\n\t                }\n\t                ngModel.$setViewValue(html);\n\t              }\n\t            }\n\t          };\n\t        }]);\n\t    </file>\n\t    <file name=\"index.html\">\n\t      <form name=\"myForm\">\n\t       <div contenteditable\n\t            name=\"myWidget\" ng-model=\"userContent\"\n\t            strip-br=\"true\"\n\t            required>Change me!</div>\n\t        <span ng-show=\"myForm.myWidget.$error.required\">Required!</span>\n\t       <hr>\n\t       <textarea ng-model=\"userContent\" aria-label=\"Dynamic textarea\"></textarea>\n\t      </form>\n\t    </file>\n\t    <file name=\"protractor.js\" type=\"protractor\">\n\t    it('should data-bind and become invalid', function() {\n\t      if (browser.params.browser == 'safari' || browser.params.browser == 'firefox') {\n\t        // SafariDriver can't handle contenteditable\n\t        // and Firefox driver can't clear contenteditables very well\n\t        return;\n\t      }\n\t      var contentEditable = element(by.css('[contenteditable]'));\n\t      var content = 'Change me!';\n\n\t      expect(contentEditable.getText()).toEqual(content);\n\n\t      contentEditable.clear();\n\t      contentEditable.sendKeys(protractor.Key.BACK_SPACE);\n\t      expect(contentEditable.getText()).toEqual('');\n\t      expect(contentEditable.getAttribute('class')).toMatch(/ng-invalid-required/);\n\t    });\n\t    </file>\n\t * </example>\n\t *\n\t *\n\t */\n\tvar NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$parse', '$animate', '$timeout', '$rootScope', '$q', '$interpolate',\n\t    function($scope, $exceptionHandler, $attr, $element, $parse, $animate, $timeout, $rootScope, $q, $interpolate) {\n\t  this.$viewValue = Number.NaN;\n\t  this.$modelValue = Number.NaN;\n\t  this.$$rawModelValue = undefined; // stores the parsed modelValue / model set from scope regardless of validity.\n\t  this.$validators = {};\n\t  this.$asyncValidators = {};\n\t  this.$parsers = [];\n\t  this.$formatters = [];\n\t  this.$viewChangeListeners = [];\n\t  this.$untouched = true;\n\t  this.$touched = false;\n\t  this.$pristine = true;\n\t  this.$dirty = false;\n\t  this.$valid = true;\n\t  this.$invalid = false;\n\t  this.$error = {}; // keep invalid keys here\n\t  this.$$success = {}; // keep valid keys here\n\t  this.$pending = undefined; // keep pending keys here\n\t  this.$name = $interpolate($attr.name || '', false)($scope);\n\t  this.$$parentForm = nullFormCtrl;\n\n\t  var parsedNgModel = $parse($attr.ngModel),\n\t      parsedNgModelAssign = parsedNgModel.assign,\n\t      ngModelGet = parsedNgModel,\n\t      ngModelSet = parsedNgModelAssign,\n\t      pendingDebounce = null,\n\t      parserValid,\n\t      ctrl = this;\n\n\t  this.$$setOptions = function(options) {\n\t    ctrl.$options = options;\n\t    if (options && options.getterSetter) {\n\t      var invokeModelGetter = $parse($attr.ngModel + '()'),\n\t          invokeModelSetter = $parse($attr.ngModel + '($$$p)');\n\n\t      ngModelGet = function($scope) {\n\t        var modelValue = parsedNgModel($scope);\n\t        if (isFunction(modelValue)) {\n\t          modelValue = invokeModelGetter($scope);\n\t        }\n\t        return modelValue;\n\t      };\n\t      ngModelSet = function($scope, newValue) {\n\t        if (isFunction(parsedNgModel($scope))) {\n\t          invokeModelSetter($scope, {$$$p: ctrl.$modelValue});\n\t        } else {\n\t          parsedNgModelAssign($scope, ctrl.$modelValue);\n\t        }\n\t      };\n\t    } else if (!parsedNgModel.assign) {\n\t      throw ngModelMinErr('nonassign', \"Expression '{0}' is non-assignable. Element: {1}\",\n\t          $attr.ngModel, startingTag($element));\n\t    }\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name ngModel.NgModelController#$render\n\t   *\n\t   * @description\n\t   * Called when the view needs to be updated. It is expected that the user of the ng-model\n\t   * directive will implement this method.\n\t   *\n\t   * The `$render()` method is invoked in the following situations:\n\t   *\n\t   * * `$rollbackViewValue()` is called.  If we are rolling back the view value to the last\n\t   *   committed value then `$render()` is called to update the input control.\n\t   * * The value referenced by `ng-model` is changed programmatically and both the `$modelValue` and\n\t   *   the `$viewValue` are different from last time.\n\t   *\n\t   * Since `ng-model` does not do a deep watch, `$render()` is only invoked if the values of\n\t   * `$modelValue` and `$viewValue` are actually different from their previous value. If `$modelValue`\n\t   * or `$viewValue` are objects (rather than a string or number) then `$render()` will not be\n\t   * invoked if you only change a property on the objects.\n\t   */\n\t  this.$render = noop;\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name ngModel.NgModelController#$isEmpty\n\t   *\n\t   * @description\n\t   * This is called when we need to determine if the value of an input is empty.\n\t   *\n\t   * For instance, the required directive does this to work out if the input has data or not.\n\t   *\n\t   * The default `$isEmpty` function checks whether the value is `undefined`, `''`, `null` or `NaN`.\n\t   *\n\t   * You can override this for input directives whose concept of being empty is different from the\n\t   * default. The `checkboxInputType` directive does this because in its case a value of `false`\n\t   * implies empty.\n\t   *\n\t   * @param {*} value The value of the input to check for emptiness.\n\t   * @returns {boolean} True if `value` is \"empty\".\n\t   */\n\t  this.$isEmpty = function(value) {\n\t    return isUndefined(value) || value === '' || value === null || value !== value;\n\t  };\n\n\t  var currentValidationRunId = 0;\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name ngModel.NgModelController#$setValidity\n\t   *\n\t   * @description\n\t   * Change the validity state, and notify the form.\n\t   *\n\t   * This method can be called within $parsers/$formatters or a custom validation implementation.\n\t   * However, in most cases it should be sufficient to use the `ngModel.$validators` and\n\t   * `ngModel.$asyncValidators` collections which will call `$setValidity` automatically.\n\t   *\n\t   * @param {string} validationErrorKey Name of the validator. The `validationErrorKey` will be assigned\n\t   *        to either `$error[validationErrorKey]` or `$pending[validationErrorKey]`\n\t   *        (for unfulfilled `$asyncValidators`), so that it is available for data-binding.\n\t   *        The `validationErrorKey` should be in camelCase and will get converted into dash-case\n\t   *        for class name. Example: `myError` will result in `ng-valid-my-error` and `ng-invalid-my-error`\n\t   *        class and can be bound to as  `{{someForm.someControl.$error.myError}}` .\n\t   * @param {boolean} isValid Whether the current state is valid (true), invalid (false), pending (undefined),\n\t   *                          or skipped (null). Pending is used for unfulfilled `$asyncValidators`.\n\t   *                          Skipped is used by Angular when validators do not run because of parse errors and\n\t   *                          when `$asyncValidators` do not run because any of the `$validators` failed.\n\t   */\n\t  addSetValidityMethod({\n\t    ctrl: this,\n\t    $element: $element,\n\t    set: function(object, property) {\n\t      object[property] = true;\n\t    },\n\t    unset: function(object, property) {\n\t      delete object[property];\n\t    },\n\t    $animate: $animate\n\t  });\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name ngModel.NgModelController#$setPristine\n\t   *\n\t   * @description\n\t   * Sets the control to its pristine state.\n\t   *\n\t   * This method can be called to remove the `ng-dirty` class and set the control to its pristine\n\t   * state (`ng-pristine` class). A model is considered to be pristine when the control\n\t   * has not been changed from when first compiled.\n\t   */\n\t  this.$setPristine = function() {\n\t    ctrl.$dirty = false;\n\t    ctrl.$pristine = true;\n\t    $animate.removeClass($element, DIRTY_CLASS);\n\t    $animate.addClass($element, PRISTINE_CLASS);\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name ngModel.NgModelController#$setDirty\n\t   *\n\t   * @description\n\t   * Sets the control to its dirty state.\n\t   *\n\t   * This method can be called to remove the `ng-pristine` class and set the control to its dirty\n\t   * state (`ng-dirty` class). A model is considered to be dirty when the control has been changed\n\t   * from when first compiled.\n\t   */\n\t  this.$setDirty = function() {\n\t    ctrl.$dirty = true;\n\t    ctrl.$pristine = false;\n\t    $animate.removeClass($element, PRISTINE_CLASS);\n\t    $animate.addClass($element, DIRTY_CLASS);\n\t    ctrl.$$parentForm.$setDirty();\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name ngModel.NgModelController#$setUntouched\n\t   *\n\t   * @description\n\t   * Sets the control to its untouched state.\n\t   *\n\t   * This method can be called to remove the `ng-touched` class and set the control to its\n\t   * untouched state (`ng-untouched` class). Upon compilation, a model is set as untouched\n\t   * by default, however this function can be used to restore that state if the model has\n\t   * already been touched by the user.\n\t   */\n\t  this.$setUntouched = function() {\n\t    ctrl.$touched = false;\n\t    ctrl.$untouched = true;\n\t    $animate.setClass($element, UNTOUCHED_CLASS, TOUCHED_CLASS);\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name ngModel.NgModelController#$setTouched\n\t   *\n\t   * @description\n\t   * Sets the control to its touched state.\n\t   *\n\t   * This method can be called to remove the `ng-untouched` class and set the control to its\n\t   * touched state (`ng-touched` class). A model is considered to be touched when the user has\n\t   * first focused the control element and then shifted focus away from the control (blur event).\n\t   */\n\t  this.$setTouched = function() {\n\t    ctrl.$touched = true;\n\t    ctrl.$untouched = false;\n\t    $animate.setClass($element, TOUCHED_CLASS, UNTOUCHED_CLASS);\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name ngModel.NgModelController#$rollbackViewValue\n\t   *\n\t   * @description\n\t   * Cancel an update and reset the input element's value to prevent an update to the `$modelValue`,\n\t   * which may be caused by a pending debounced event or because the input is waiting for a some\n\t   * future event.\n\t   *\n\t   * If you have an input that uses `ng-model-options` to set up debounced events or events such\n\t   * as blur you can have a situation where there is a period when the `$viewValue`\n\t   * is out of synch with the ngModel's `$modelValue`.\n\t   *\n\t   * In this case, you can run into difficulties if you try to update the ngModel's `$modelValue`\n\t   * programmatically before these debounced/future events have resolved/occurred, because Angular's\n\t   * dirty checking mechanism is not able to tell whether the model has actually changed or not.\n\t   *\n\t   * The `$rollbackViewValue()` method should be called before programmatically changing the model of an\n\t   * input which may have such events pending. This is important in order to make sure that the\n\t   * input field will be updated with the new model value and any pending operations are cancelled.\n\t   *\n\t   * <example name=\"ng-model-cancel-update\" module=\"cancel-update-example\">\n\t   *   <file name=\"app.js\">\n\t   *     angular.module('cancel-update-example', [])\n\t   *\n\t   *     .controller('CancelUpdateController', ['$scope', function($scope) {\n\t   *       $scope.resetWithCancel = function(e) {\n\t   *         if (e.keyCode == 27) {\n\t   *           $scope.myForm.myInput1.$rollbackViewValue();\n\t   *           $scope.myValue = '';\n\t   *         }\n\t   *       };\n\t   *       $scope.resetWithoutCancel = function(e) {\n\t   *         if (e.keyCode == 27) {\n\t   *           $scope.myValue = '';\n\t   *         }\n\t   *       };\n\t   *     }]);\n\t   *   </file>\n\t   *   <file name=\"index.html\">\n\t   *     <div ng-controller=\"CancelUpdateController\">\n\t   *       <p>Try typing something in each input.  See that the model only updates when you\n\t   *          blur off the input.\n\t   *        </p>\n\t   *        <p>Now see what happens if you start typing then press the Escape key</p>\n\t   *\n\t   *       <form name=\"myForm\" ng-model-options=\"{ updateOn: 'blur' }\">\n\t   *         <p id=\"inputDescription1\">With $rollbackViewValue()</p>\n\t   *         <input name=\"myInput1\" aria-describedby=\"inputDescription1\" ng-model=\"myValue\"\n\t   *                ng-keydown=\"resetWithCancel($event)\"><br/>\n\t   *         myValue: \"{{ myValue }}\"\n\t   *\n\t   *         <p id=\"inputDescription2\">Without $rollbackViewValue()</p>\n\t   *         <input name=\"myInput2\" aria-describedby=\"inputDescription2\" ng-model=\"myValue\"\n\t   *                ng-keydown=\"resetWithoutCancel($event)\"><br/>\n\t   *         myValue: \"{{ myValue }}\"\n\t   *       </form>\n\t   *     </div>\n\t   *   </file>\n\t   * </example>\n\t   */\n\t  this.$rollbackViewValue = function() {\n\t    $timeout.cancel(pendingDebounce);\n\t    ctrl.$viewValue = ctrl.$$lastCommittedViewValue;\n\t    ctrl.$render();\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name ngModel.NgModelController#$validate\n\t   *\n\t   * @description\n\t   * Runs each of the registered validators (first synchronous validators and then\n\t   * asynchronous validators).\n\t   * If the validity changes to invalid, the model will be set to `undefined`,\n\t   * unless {@link ngModelOptions `ngModelOptions.allowInvalid`} is `true`.\n\t   * If the validity changes to valid, it will set the model to the last available valid\n\t   * `$modelValue`, i.e. either the last parsed value or the last value set from the scope.\n\t   */\n\t  this.$validate = function() {\n\t    // ignore $validate before model is initialized\n\t    if (isNumber(ctrl.$modelValue) && isNaN(ctrl.$modelValue)) {\n\t      return;\n\t    }\n\n\t    var viewValue = ctrl.$$lastCommittedViewValue;\n\t    // Note: we use the $$rawModelValue as $modelValue might have been\n\t    // set to undefined during a view -> model update that found validation\n\t    // errors. We can't parse the view here, since that could change\n\t    // the model although neither viewValue nor the model on the scope changed\n\t    var modelValue = ctrl.$$rawModelValue;\n\n\t    var prevValid = ctrl.$valid;\n\t    var prevModelValue = ctrl.$modelValue;\n\n\t    var allowInvalid = ctrl.$options && ctrl.$options.allowInvalid;\n\n\t    ctrl.$$runValidators(modelValue, viewValue, function(allValid) {\n\t      // If there was no change in validity, don't update the model\n\t      // This prevents changing an invalid modelValue to undefined\n\t      if (!allowInvalid && prevValid !== allValid) {\n\t        // Note: Don't check ctrl.$valid here, as we could have\n\t        // external validators (e.g. calculated on the server),\n\t        // that just call $setValidity and need the model value\n\t        // to calculate their validity.\n\t        ctrl.$modelValue = allValid ? modelValue : undefined;\n\n\t        if (ctrl.$modelValue !== prevModelValue) {\n\t          ctrl.$$writeModelToScope();\n\t        }\n\t      }\n\t    });\n\n\t  };\n\n\t  this.$$runValidators = function(modelValue, viewValue, doneCallback) {\n\t    currentValidationRunId++;\n\t    var localValidationRunId = currentValidationRunId;\n\n\t    // check parser error\n\t    if (!processParseErrors()) {\n\t      validationDone(false);\n\t      return;\n\t    }\n\t    if (!processSyncValidators()) {\n\t      validationDone(false);\n\t      return;\n\t    }\n\t    processAsyncValidators();\n\n\t    function processParseErrors() {\n\t      var errorKey = ctrl.$$parserName || 'parse';\n\t      if (isUndefined(parserValid)) {\n\t        setValidity(errorKey, null);\n\t      } else {\n\t        if (!parserValid) {\n\t          forEach(ctrl.$validators, function(v, name) {\n\t            setValidity(name, null);\n\t          });\n\t          forEach(ctrl.$asyncValidators, function(v, name) {\n\t            setValidity(name, null);\n\t          });\n\t        }\n\t        // Set the parse error last, to prevent unsetting it, should a $validators key == parserName\n\t        setValidity(errorKey, parserValid);\n\t        return parserValid;\n\t      }\n\t      return true;\n\t    }\n\n\t    function processSyncValidators() {\n\t      var syncValidatorsValid = true;\n\t      forEach(ctrl.$validators, function(validator, name) {\n\t        var result = validator(modelValue, viewValue);\n\t        syncValidatorsValid = syncValidatorsValid && result;\n\t        setValidity(name, result);\n\t      });\n\t      if (!syncValidatorsValid) {\n\t        forEach(ctrl.$asyncValidators, function(v, name) {\n\t          setValidity(name, null);\n\t        });\n\t        return false;\n\t      }\n\t      return true;\n\t    }\n\n\t    function processAsyncValidators() {\n\t      var validatorPromises = [];\n\t      var allValid = true;\n\t      forEach(ctrl.$asyncValidators, function(validator, name) {\n\t        var promise = validator(modelValue, viewValue);\n\t        if (!isPromiseLike(promise)) {\n\t          throw ngModelMinErr(\"$asyncValidators\",\n\t            \"Expected asynchronous validator to return a promise but got '{0}' instead.\", promise);\n\t        }\n\t        setValidity(name, undefined);\n\t        validatorPromises.push(promise.then(function() {\n\t          setValidity(name, true);\n\t        }, function(error) {\n\t          allValid = false;\n\t          setValidity(name, false);\n\t        }));\n\t      });\n\t      if (!validatorPromises.length) {\n\t        validationDone(true);\n\t      } else {\n\t        $q.all(validatorPromises).then(function() {\n\t          validationDone(allValid);\n\t        }, noop);\n\t      }\n\t    }\n\n\t    function setValidity(name, isValid) {\n\t      if (localValidationRunId === currentValidationRunId) {\n\t        ctrl.$setValidity(name, isValid);\n\t      }\n\t    }\n\n\t    function validationDone(allValid) {\n\t      if (localValidationRunId === currentValidationRunId) {\n\n\t        doneCallback(allValid);\n\t      }\n\t    }\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name ngModel.NgModelController#$commitViewValue\n\t   *\n\t   * @description\n\t   * Commit a pending update to the `$modelValue`.\n\t   *\n\t   * Updates may be pending by a debounced event or because the input is waiting for a some future\n\t   * event defined in `ng-model-options`. this method is rarely needed as `NgModelController`\n\t   * usually handles calling this in response to input events.\n\t   */\n\t  this.$commitViewValue = function() {\n\t    var viewValue = ctrl.$viewValue;\n\n\t    $timeout.cancel(pendingDebounce);\n\n\t    // If the view value has not changed then we should just exit, except in the case where there is\n\t    // a native validator on the element. In this case the validation state may have changed even though\n\t    // the viewValue has stayed empty.\n\t    if (ctrl.$$lastCommittedViewValue === viewValue && (viewValue !== '' || !ctrl.$$hasNativeValidators)) {\n\t      return;\n\t    }\n\t    ctrl.$$lastCommittedViewValue = viewValue;\n\n\t    // change to dirty\n\t    if (ctrl.$pristine) {\n\t      this.$setDirty();\n\t    }\n\t    this.$$parseAndValidate();\n\t  };\n\n\t  this.$$parseAndValidate = function() {\n\t    var viewValue = ctrl.$$lastCommittedViewValue;\n\t    var modelValue = viewValue;\n\t    parserValid = isUndefined(modelValue) ? undefined : true;\n\n\t    if (parserValid) {\n\t      for (var i = 0; i < ctrl.$parsers.length; i++) {\n\t        modelValue = ctrl.$parsers[i](modelValue);\n\t        if (isUndefined(modelValue)) {\n\t          parserValid = false;\n\t          break;\n\t        }\n\t      }\n\t    }\n\t    if (isNumber(ctrl.$modelValue) && isNaN(ctrl.$modelValue)) {\n\t      // ctrl.$modelValue has not been touched yet...\n\t      ctrl.$modelValue = ngModelGet($scope);\n\t    }\n\t    var prevModelValue = ctrl.$modelValue;\n\t    var allowInvalid = ctrl.$options && ctrl.$options.allowInvalid;\n\t    ctrl.$$rawModelValue = modelValue;\n\n\t    if (allowInvalid) {\n\t      ctrl.$modelValue = modelValue;\n\t      writeToModelIfNeeded();\n\t    }\n\n\t    // Pass the $$lastCommittedViewValue here, because the cached viewValue might be out of date.\n\t    // This can happen if e.g. $setViewValue is called from inside a parser\n\t    ctrl.$$runValidators(modelValue, ctrl.$$lastCommittedViewValue, function(allValid) {\n\t      if (!allowInvalid) {\n\t        // Note: Don't check ctrl.$valid here, as we could have\n\t        // external validators (e.g. calculated on the server),\n\t        // that just call $setValidity and need the model value\n\t        // to calculate their validity.\n\t        ctrl.$modelValue = allValid ? modelValue : undefined;\n\t        writeToModelIfNeeded();\n\t      }\n\t    });\n\n\t    function writeToModelIfNeeded() {\n\t      if (ctrl.$modelValue !== prevModelValue) {\n\t        ctrl.$$writeModelToScope();\n\t      }\n\t    }\n\t  };\n\n\t  this.$$writeModelToScope = function() {\n\t    ngModelSet($scope, ctrl.$modelValue);\n\t    forEach(ctrl.$viewChangeListeners, function(listener) {\n\t      try {\n\t        listener();\n\t      } catch (e) {\n\t        $exceptionHandler(e);\n\t      }\n\t    });\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name ngModel.NgModelController#$setViewValue\n\t   *\n\t   * @description\n\t   * Update the view value.\n\t   *\n\t   * This method should be called when a control wants to change the view value; typically,\n\t   * this is done from within a DOM event handler. For example, the {@link ng.directive:input input}\n\t   * directive calls it when the value of the input changes and {@link ng.directive:select select}\n\t   * calls it when an option is selected.\n\t   *\n\t   * When `$setViewValue` is called, the new `value` will be staged for committing through the `$parsers`\n\t   * and `$validators` pipelines. If there are no special {@link ngModelOptions} specified then the staged\n\t   * value sent directly for processing, finally to be applied to `$modelValue` and then the\n\t   * **expression** specified in the `ng-model` attribute. Lastly, all the registered change listeners,\n\t   * in the `$viewChangeListeners` list, are called.\n\t   *\n\t   * In case the {@link ng.directive:ngModelOptions ngModelOptions} directive is used with `updateOn`\n\t   * and the `default` trigger is not listed, all those actions will remain pending until one of the\n\t   * `updateOn` events is triggered on the DOM element.\n\t   * All these actions will be debounced if the {@link ng.directive:ngModelOptions ngModelOptions}\n\t   * directive is used with a custom debounce for this particular event.\n\t   * Note that a `$digest` is only triggered once the `updateOn` events are fired, or if `debounce`\n\t   * is specified, once the timer runs out.\n\t   *\n\t   * When used with standard inputs, the view value will always be a string (which is in some cases\n\t   * parsed into another type, such as a `Date` object for `input[date]`.)\n\t   * However, custom controls might also pass objects to this method. In this case, we should make\n\t   * a copy of the object before passing it to `$setViewValue`. This is because `ngModel` does not\n\t   * perform a deep watch of objects, it only looks for a change of identity. If you only change\n\t   * the property of the object then ngModel will not realise that the object has changed and\n\t   * will not invoke the `$parsers` and `$validators` pipelines. For this reason, you should\n\t   * not change properties of the copy once it has been passed to `$setViewValue`.\n\t   * Otherwise you may cause the model value on the scope to change incorrectly.\n\t   *\n\t   * <div class=\"alert alert-info\">\n\t   * In any case, the value passed to the method should always reflect the current value\n\t   * of the control. For example, if you are calling `$setViewValue` for an input element,\n\t   * you should pass the input DOM value. Otherwise, the control and the scope model become\n\t   * out of sync. It's also important to note that `$setViewValue` does not call `$render` or change\n\t   * the control's DOM value in any way. If we want to change the control's DOM value\n\t   * programmatically, we should update the `ngModel` scope expression. Its new value will be\n\t   * picked up by the model controller, which will run it through the `$formatters`, `$render` it\n\t   * to update the DOM, and finally call `$validate` on it.\n\t   * </div>\n\t   *\n\t   * @param {*} value value from the view.\n\t   * @param {string} trigger Event that triggered the update.\n\t   */\n\t  this.$setViewValue = function(value, trigger) {\n\t    ctrl.$viewValue = value;\n\t    if (!ctrl.$options || ctrl.$options.updateOnDefault) {\n\t      ctrl.$$debounceViewValueCommit(trigger);\n\t    }\n\t  };\n\n\t  this.$$debounceViewValueCommit = function(trigger) {\n\t    var debounceDelay = 0,\n\t        options = ctrl.$options,\n\t        debounce;\n\n\t    if (options && isDefined(options.debounce)) {\n\t      debounce = options.debounce;\n\t      if (isNumber(debounce)) {\n\t        debounceDelay = debounce;\n\t      } else if (isNumber(debounce[trigger])) {\n\t        debounceDelay = debounce[trigger];\n\t      } else if (isNumber(debounce['default'])) {\n\t        debounceDelay = debounce['default'];\n\t      }\n\t    }\n\n\t    $timeout.cancel(pendingDebounce);\n\t    if (debounceDelay) {\n\t      pendingDebounce = $timeout(function() {\n\t        ctrl.$commitViewValue();\n\t      }, debounceDelay);\n\t    } else if ($rootScope.$$phase) {\n\t      ctrl.$commitViewValue();\n\t    } else {\n\t      $scope.$apply(function() {\n\t        ctrl.$commitViewValue();\n\t      });\n\t    }\n\t  };\n\n\t  // model -> value\n\t  // Note: we cannot use a normal scope.$watch as we want to detect the following:\n\t  // 1. scope value is 'a'\n\t  // 2. user enters 'b'\n\t  // 3. ng-change kicks in and reverts scope value to 'a'\n\t  //    -> scope value did not change since the last digest as\n\t  //       ng-change executes in apply phase\n\t  // 4. view should be changed back to 'a'\n\t  $scope.$watch(function ngModelWatch() {\n\t    var modelValue = ngModelGet($scope);\n\n\t    // if scope model value and ngModel value are out of sync\n\t    // TODO(perf): why not move this to the action fn?\n\t    if (modelValue !== ctrl.$modelValue &&\n\t       // checks for NaN is needed to allow setting the model to NaN when there's an asyncValidator\n\t       (ctrl.$modelValue === ctrl.$modelValue || modelValue === modelValue)\n\t    ) {\n\t      ctrl.$modelValue = ctrl.$$rawModelValue = modelValue;\n\t      parserValid = undefined;\n\n\t      var formatters = ctrl.$formatters,\n\t          idx = formatters.length;\n\n\t      var viewValue = modelValue;\n\t      while (idx--) {\n\t        viewValue = formatters[idx](viewValue);\n\t      }\n\t      if (ctrl.$viewValue !== viewValue) {\n\t        ctrl.$viewValue = ctrl.$$lastCommittedViewValue = viewValue;\n\t        ctrl.$render();\n\n\t        ctrl.$$runValidators(modelValue, viewValue, noop);\n\t      }\n\t    }\n\n\t    return modelValue;\n\t  });\n\t}];\n\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngModel\n\t *\n\t * @element input\n\t * @priority 1\n\t *\n\t * @description\n\t * The `ngModel` directive binds an `input`,`select`, `textarea` (or custom form control) to a\n\t * property on the scope using {@link ngModel.NgModelController NgModelController},\n\t * which is created and exposed by this directive.\n\t *\n\t * `ngModel` is responsible for:\n\t *\n\t * - Binding the view into the model, which other directives such as `input`, `textarea` or `select`\n\t *   require.\n\t * - Providing validation behavior (i.e. required, number, email, url).\n\t * - Keeping the state of the control (valid/invalid, dirty/pristine, touched/untouched, validation errors).\n\t * - Setting related css classes on the element (`ng-valid`, `ng-invalid`, `ng-dirty`, `ng-pristine`, `ng-touched`, `ng-untouched`) including animations.\n\t * - Registering the control with its parent {@link ng.directive:form form}.\n\t *\n\t * Note: `ngModel` will try to bind to the property given by evaluating the expression on the\n\t * current scope. If the property doesn't already exist on this scope, it will be created\n\t * implicitly and added to the scope.\n\t *\n\t * For best practices on using `ngModel`, see:\n\t *\n\t *  - [Understanding Scopes](https://github.com/angular/angular.js/wiki/Understanding-Scopes)\n\t *\n\t * For basic examples, how to use `ngModel`, see:\n\t *\n\t *  - {@link ng.directive:input input}\n\t *    - {@link input[text] text}\n\t *    - {@link input[checkbox] checkbox}\n\t *    - {@link input[radio] radio}\n\t *    - {@link input[number] number}\n\t *    - {@link input[email] email}\n\t *    - {@link input[url] url}\n\t *    - {@link input[date] date}\n\t *    - {@link input[datetime-local] datetime-local}\n\t *    - {@link input[time] time}\n\t *    - {@link input[month] month}\n\t *    - {@link input[week] week}\n\t *  - {@link ng.directive:select select}\n\t *  - {@link ng.directive:textarea textarea}\n\t *\n\t * # CSS classes\n\t * The following CSS classes are added and removed on the associated input/select/textarea element\n\t * depending on the validity of the model.\n\t *\n\t *  - `ng-valid`: the model is valid\n\t *  - `ng-invalid`: the model is invalid\n\t *  - `ng-valid-[key]`: for each valid key added by `$setValidity`\n\t *  - `ng-invalid-[key]`: for each invalid key added by `$setValidity`\n\t *  - `ng-pristine`: the control hasn't been interacted with yet\n\t *  - `ng-dirty`: the control has been interacted with\n\t *  - `ng-touched`: the control has been blurred\n\t *  - `ng-untouched`: the control hasn't been blurred\n\t *  - `ng-pending`: any `$asyncValidators` are unfulfilled\n\t *\n\t * Keep in mind that ngAnimate can detect each of these classes when added and removed.\n\t *\n\t * ## Animation Hooks\n\t *\n\t * Animations within models are triggered when any of the associated CSS classes are added and removed\n\t * on the input element which is attached to the model. These classes are: `.ng-pristine`, `.ng-dirty`,\n\t * `.ng-invalid` and `.ng-valid` as well as any other validations that are performed on the model itself.\n\t * The animations that are triggered within ngModel are similar to how they work in ngClass and\n\t * animations can be hooked into using CSS transitions, keyframes as well as JS animations.\n\t *\n\t * The following example shows a simple way to utilize CSS transitions to style an input element\n\t * that has been rendered as invalid after it has been validated:\n\t *\n\t * <pre>\n\t * //be sure to include ngAnimate as a module to hook into more\n\t * //advanced animations\n\t * .my-input {\n\t *   transition:0.5s linear all;\n\t *   background: white;\n\t * }\n\t * .my-input.ng-invalid {\n\t *   background: red;\n\t *   color:white;\n\t * }\n\t * </pre>\n\t *\n\t * @example\n\t * <example deps=\"angular-animate.js\" animations=\"true\" fixBase=\"true\" module=\"inputExample\">\n\t     <file name=\"index.html\">\n\t       <script>\n\t        angular.module('inputExample', [])\n\t          .controller('ExampleController', ['$scope', function($scope) {\n\t            $scope.val = '1';\n\t          }]);\n\t       </script>\n\t       <style>\n\t         .my-input {\n\t           transition:all linear 0.5s;\n\t           background: transparent;\n\t         }\n\t         .my-input.ng-invalid {\n\t           color:white;\n\t           background: red;\n\t         }\n\t       </style>\n\t       <p id=\"inputDescription\">\n\t        Update input to see transitions when valid/invalid.\n\t        Integer is a valid value.\n\t       </p>\n\t       <form name=\"testForm\" ng-controller=\"ExampleController\">\n\t         <input ng-model=\"val\" ng-pattern=\"/^\\d+$/\" name=\"anim\" class=\"my-input\"\n\t                aria-describedby=\"inputDescription\" />\n\t       </form>\n\t     </file>\n\t * </example>\n\t *\n\t * ## Binding to a getter/setter\n\t *\n\t * Sometimes it's helpful to bind `ngModel` to a getter/setter function.  A getter/setter is a\n\t * function that returns a representation of the model when called with zero arguments, and sets\n\t * the internal state of a model when called with an argument. It's sometimes useful to use this\n\t * for models that have an internal representation that's different from what the model exposes\n\t * to the view.\n\t *\n\t * <div class=\"alert alert-success\">\n\t * **Best Practice:** It's best to keep getters fast because Angular is likely to call them more\n\t * frequently than other parts of your code.\n\t * </div>\n\t *\n\t * You use this behavior by adding `ng-model-options=\"{ getterSetter: true }\"` to an element that\n\t * has `ng-model` attached to it. You can also add `ng-model-options=\"{ getterSetter: true }\"` to\n\t * a `<form>`, which will enable this behavior for all `<input>`s within it. See\n\t * {@link ng.directive:ngModelOptions `ngModelOptions`} for more.\n\t *\n\t * The following example shows how to use `ngModel` with a getter/setter:\n\t *\n\t * @example\n\t * <example name=\"ngModel-getter-setter\" module=\"getterSetterExample\">\n\t     <file name=\"index.html\">\n\t       <div ng-controller=\"ExampleController\">\n\t         <form name=\"userForm\">\n\t           <label>Name:\n\t             <input type=\"text\" name=\"userName\"\n\t                    ng-model=\"user.name\"\n\t                    ng-model-options=\"{ getterSetter: true }\" />\n\t           </label>\n\t         </form>\n\t         <pre>user.name = <span ng-bind=\"user.name()\"></span></pre>\n\t       </div>\n\t     </file>\n\t     <file name=\"app.js\">\n\t       angular.module('getterSetterExample', [])\n\t         .controller('ExampleController', ['$scope', function($scope) {\n\t           var _name = 'Brian';\n\t           $scope.user = {\n\t             name: function(newName) {\n\t              // Note that newName can be undefined for two reasons:\n\t              // 1. Because it is called as a getter and thus called with no arguments\n\t              // 2. Because the property should actually be set to undefined. This happens e.g. if the\n\t              //    input is invalid\n\t              return arguments.length ? (_name = newName) : _name;\n\t             }\n\t           };\n\t         }]);\n\t     </file>\n\t * </example>\n\t */\n\tvar ngModelDirective = ['$rootScope', function($rootScope) {\n\t  return {\n\t    restrict: 'A',\n\t    require: ['ngModel', '^?form', '^?ngModelOptions'],\n\t    controller: NgModelController,\n\t    // Prelink needs to run before any input directive\n\t    // so that we can set the NgModelOptions in NgModelController\n\t    // before anyone else uses it.\n\t    priority: 1,\n\t    compile: function ngModelCompile(element) {\n\t      // Setup initial state of the control\n\t      element.addClass(PRISTINE_CLASS).addClass(UNTOUCHED_CLASS).addClass(VALID_CLASS);\n\n\t      return {\n\t        pre: function ngModelPreLink(scope, element, attr, ctrls) {\n\t          var modelCtrl = ctrls[0],\n\t              formCtrl = ctrls[1] || modelCtrl.$$parentForm;\n\n\t          modelCtrl.$$setOptions(ctrls[2] && ctrls[2].$options);\n\n\t          // notify others, especially parent forms\n\t          formCtrl.$addControl(modelCtrl);\n\n\t          attr.$observe('name', function(newValue) {\n\t            if (modelCtrl.$name !== newValue) {\n\t              modelCtrl.$$parentForm.$$renameControl(modelCtrl, newValue);\n\t            }\n\t          });\n\n\t          scope.$on('$destroy', function() {\n\t            modelCtrl.$$parentForm.$removeControl(modelCtrl);\n\t          });\n\t        },\n\t        post: function ngModelPostLink(scope, element, attr, ctrls) {\n\t          var modelCtrl = ctrls[0];\n\t          if (modelCtrl.$options && modelCtrl.$options.updateOn) {\n\t            element.on(modelCtrl.$options.updateOn, function(ev) {\n\t              modelCtrl.$$debounceViewValueCommit(ev && ev.type);\n\t            });\n\t          }\n\n\t          element.on('blur', function(ev) {\n\t            if (modelCtrl.$touched) return;\n\n\t            if ($rootScope.$$phase) {\n\t              scope.$evalAsync(modelCtrl.$setTouched);\n\t            } else {\n\t              scope.$apply(modelCtrl.$setTouched);\n\t            }\n\t          });\n\t        }\n\t      };\n\t    }\n\t  };\n\t}];\n\n\tvar DEFAULT_REGEXP = /(\\s+|^)default(\\s+|$)/;\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngModelOptions\n\t *\n\t * @description\n\t * Allows tuning how model updates are done. Using `ngModelOptions` you can specify a custom list of\n\t * events that will trigger a model update and/or a debouncing delay so that the actual update only\n\t * takes place when a timer expires; this timer will be reset after another change takes place.\n\t *\n\t * Given the nature of `ngModelOptions`, the value displayed inside input fields in the view might\n\t * be different from the value in the actual model. This means that if you update the model you\n\t * should also invoke {@link ngModel.NgModelController `$rollbackViewValue`} on the relevant input field in\n\t * order to make sure it is synchronized with the model and that any debounced action is canceled.\n\t *\n\t * The easiest way to reference the control's {@link ngModel.NgModelController `$rollbackViewValue`}\n\t * method is by making sure the input is placed inside a form that has a `name` attribute. This is\n\t * important because `form` controllers are published to the related scope under the name in their\n\t * `name` attribute.\n\t *\n\t * Any pending changes will take place immediately when an enclosing form is submitted via the\n\t * `submit` event. Note that `ngClick` events will occur before the model is updated. Use `ngSubmit`\n\t * to have access to the updated model.\n\t *\n\t * `ngModelOptions` has an effect on the element it's declared on and its descendants.\n\t *\n\t * @param {Object} ngModelOptions options to apply to the current model. Valid keys are:\n\t *   - `updateOn`: string specifying which event should the input be bound to. You can set several\n\t *     events using an space delimited list. There is a special event called `default` that\n\t *     matches the default events belonging of the control.\n\t *   - `debounce`: integer value which contains the debounce model update value in milliseconds. A\n\t *     value of 0 triggers an immediate update. If an object is supplied instead, you can specify a\n\t *     custom value for each event. For example:\n\t *     `ng-model-options=\"{ updateOn: 'default blur', debounce: { 'default': 500, 'blur': 0 } }\"`\n\t *   - `allowInvalid`: boolean value which indicates that the model can be set with values that did\n\t *     not validate correctly instead of the default behavior of setting the model to undefined.\n\t *   - `getterSetter`: boolean value which determines whether or not to treat functions bound to\n\t       `ngModel` as getters/setters.\n\t *   - `timezone`: Defines the timezone to be used to read/write the `Date` instance in the model for\n\t *     `<input type=\"date\">`, `<input type=\"time\">`, ... . It understands UTC/GMT and the\n\t *     continental US time zone abbreviations, but for general use, use a time zone offset, for\n\t *     example, `'+0430'` (4 hours, 30 minutes east of the Greenwich meridian)\n\t *     If not specified, the timezone of the browser will be used.\n\t *\n\t * @example\n\n\t  The following example shows how to override immediate updates. Changes on the inputs within the\n\t  form will update the model only when the control loses focus (blur event). If `escape` key is\n\t  pressed while the input field is focused, the value is reset to the value in the current model.\n\n\t  <example name=\"ngModelOptions-directive-blur\" module=\"optionsExample\">\n\t    <file name=\"index.html\">\n\t      <div ng-controller=\"ExampleController\">\n\t        <form name=\"userForm\">\n\t          <label>Name:\n\t            <input type=\"text\" name=\"userName\"\n\t                   ng-model=\"user.name\"\n\t                   ng-model-options=\"{ updateOn: 'blur' }\"\n\t                   ng-keyup=\"cancel($event)\" />\n\t          </label><br />\n\t          <label>Other data:\n\t            <input type=\"text\" ng-model=\"user.data\" />\n\t          </label><br />\n\t        </form>\n\t        <pre>user.name = <span ng-bind=\"user.name\"></span></pre>\n\t        <pre>user.data = <span ng-bind=\"user.data\"></span></pre>\n\t      </div>\n\t    </file>\n\t    <file name=\"app.js\">\n\t      angular.module('optionsExample', [])\n\t        .controller('ExampleController', ['$scope', function($scope) {\n\t          $scope.user = { name: 'John', data: '' };\n\n\t          $scope.cancel = function(e) {\n\t            if (e.keyCode == 27) {\n\t              $scope.userForm.userName.$rollbackViewValue();\n\t            }\n\t          };\n\t        }]);\n\t    </file>\n\t    <file name=\"protractor.js\" type=\"protractor\">\n\t      var model = element(by.binding('user.name'));\n\t      var input = element(by.model('user.name'));\n\t      var other = element(by.model('user.data'));\n\n\t      it('should allow custom events', function() {\n\t        input.sendKeys(' Doe');\n\t        input.click();\n\t        expect(model.getText()).toEqual('John');\n\t        other.click();\n\t        expect(model.getText()).toEqual('John Doe');\n\t      });\n\n\t      it('should $rollbackViewValue when model changes', function() {\n\t        input.sendKeys(' Doe');\n\t        expect(input.getAttribute('value')).toEqual('John Doe');\n\t        input.sendKeys(protractor.Key.ESCAPE);\n\t        expect(input.getAttribute('value')).toEqual('John');\n\t        other.click();\n\t        expect(model.getText()).toEqual('John');\n\t      });\n\t    </file>\n\t  </example>\n\n\t  This one shows how to debounce model changes. Model will be updated only 1 sec after last change.\n\t  If the `Clear` button is pressed, any debounced action is canceled and the value becomes empty.\n\n\t  <example name=\"ngModelOptions-directive-debounce\" module=\"optionsExample\">\n\t    <file name=\"index.html\">\n\t      <div ng-controller=\"ExampleController\">\n\t        <form name=\"userForm\">\n\t          <label>Name:\n\t            <input type=\"text\" name=\"userName\"\n\t                   ng-model=\"user.name\"\n\t                   ng-model-options=\"{ debounce: 1000 }\" />\n\t          </label>\n\t          <button ng-click=\"userForm.userName.$rollbackViewValue(); user.name=''\">Clear</button>\n\t          <br />\n\t        </form>\n\t        <pre>user.name = <span ng-bind=\"user.name\"></span></pre>\n\t      </div>\n\t    </file>\n\t    <file name=\"app.js\">\n\t      angular.module('optionsExample', [])\n\t        .controller('ExampleController', ['$scope', function($scope) {\n\t          $scope.user = { name: 'Igor' };\n\t        }]);\n\t    </file>\n\t  </example>\n\n\t  This one shows how to bind to getter/setters:\n\n\t  <example name=\"ngModelOptions-directive-getter-setter\" module=\"getterSetterExample\">\n\t    <file name=\"index.html\">\n\t      <div ng-controller=\"ExampleController\">\n\t        <form name=\"userForm\">\n\t          <label>Name:\n\t            <input type=\"text\" name=\"userName\"\n\t                   ng-model=\"user.name\"\n\t                   ng-model-options=\"{ getterSetter: true }\" />\n\t          </label>\n\t        </form>\n\t        <pre>user.name = <span ng-bind=\"user.name()\"></span></pre>\n\t      </div>\n\t    </file>\n\t    <file name=\"app.js\">\n\t      angular.module('getterSetterExample', [])\n\t        .controller('ExampleController', ['$scope', function($scope) {\n\t          var _name = 'Brian';\n\t          $scope.user = {\n\t            name: function(newName) {\n\t              // Note that newName can be undefined for two reasons:\n\t              // 1. Because it is called as a getter and thus called with no arguments\n\t              // 2. Because the property should actually be set to undefined. This happens e.g. if the\n\t              //    input is invalid\n\t              return arguments.length ? (_name = newName) : _name;\n\t            }\n\t          };\n\t        }]);\n\t    </file>\n\t  </example>\n\t */\n\tvar ngModelOptionsDirective = function() {\n\t  return {\n\t    restrict: 'A',\n\t    controller: ['$scope', '$attrs', function($scope, $attrs) {\n\t      var that = this;\n\t      this.$options = copy($scope.$eval($attrs.ngModelOptions));\n\t      // Allow adding/overriding bound events\n\t      if (isDefined(this.$options.updateOn)) {\n\t        this.$options.updateOnDefault = false;\n\t        // extract \"default\" pseudo-event from list of events that can trigger a model update\n\t        this.$options.updateOn = trim(this.$options.updateOn.replace(DEFAULT_REGEXP, function() {\n\t          that.$options.updateOnDefault = true;\n\t          return ' ';\n\t        }));\n\t      } else {\n\t        this.$options.updateOnDefault = true;\n\t      }\n\t    }]\n\t  };\n\t};\n\n\n\n\t// helper methods\n\tfunction addSetValidityMethod(context) {\n\t  var ctrl = context.ctrl,\n\t      $element = context.$element,\n\t      classCache = {},\n\t      set = context.set,\n\t      unset = context.unset,\n\t      $animate = context.$animate;\n\n\t  classCache[INVALID_CLASS] = !(classCache[VALID_CLASS] = $element.hasClass(VALID_CLASS));\n\n\t  ctrl.$setValidity = setValidity;\n\n\t  function setValidity(validationErrorKey, state, controller) {\n\t    if (isUndefined(state)) {\n\t      createAndSet('$pending', validationErrorKey, controller);\n\t    } else {\n\t      unsetAndCleanup('$pending', validationErrorKey, controller);\n\t    }\n\t    if (!isBoolean(state)) {\n\t      unset(ctrl.$error, validationErrorKey, controller);\n\t      unset(ctrl.$$success, validationErrorKey, controller);\n\t    } else {\n\t      if (state) {\n\t        unset(ctrl.$error, validationErrorKey, controller);\n\t        set(ctrl.$$success, validationErrorKey, controller);\n\t      } else {\n\t        set(ctrl.$error, validationErrorKey, controller);\n\t        unset(ctrl.$$success, validationErrorKey, controller);\n\t      }\n\t    }\n\t    if (ctrl.$pending) {\n\t      cachedToggleClass(PENDING_CLASS, true);\n\t      ctrl.$valid = ctrl.$invalid = undefined;\n\t      toggleValidationCss('', null);\n\t    } else {\n\t      cachedToggleClass(PENDING_CLASS, false);\n\t      ctrl.$valid = isObjectEmpty(ctrl.$error);\n\t      ctrl.$invalid = !ctrl.$valid;\n\t      toggleValidationCss('', ctrl.$valid);\n\t    }\n\n\t    // re-read the state as the set/unset methods could have\n\t    // combined state in ctrl.$error[validationError] (used for forms),\n\t    // where setting/unsetting only increments/decrements the value,\n\t    // and does not replace it.\n\t    var combinedState;\n\t    if (ctrl.$pending && ctrl.$pending[validationErrorKey]) {\n\t      combinedState = undefined;\n\t    } else if (ctrl.$error[validationErrorKey]) {\n\t      combinedState = false;\n\t    } else if (ctrl.$$success[validationErrorKey]) {\n\t      combinedState = true;\n\t    } else {\n\t      combinedState = null;\n\t    }\n\n\t    toggleValidationCss(validationErrorKey, combinedState);\n\t    ctrl.$$parentForm.$setValidity(validationErrorKey, combinedState, ctrl);\n\t  }\n\n\t  function createAndSet(name, value, controller) {\n\t    if (!ctrl[name]) {\n\t      ctrl[name] = {};\n\t    }\n\t    set(ctrl[name], value, controller);\n\t  }\n\n\t  function unsetAndCleanup(name, value, controller) {\n\t    if (ctrl[name]) {\n\t      unset(ctrl[name], value, controller);\n\t    }\n\t    if (isObjectEmpty(ctrl[name])) {\n\t      ctrl[name] = undefined;\n\t    }\n\t  }\n\n\t  function cachedToggleClass(className, switchValue) {\n\t    if (switchValue && !classCache[className]) {\n\t      $animate.addClass($element, className);\n\t      classCache[className] = true;\n\t    } else if (!switchValue && classCache[className]) {\n\t      $animate.removeClass($element, className);\n\t      classCache[className] = false;\n\t    }\n\t  }\n\n\t  function toggleValidationCss(validationErrorKey, isValid) {\n\t    validationErrorKey = validationErrorKey ? '-' + snake_case(validationErrorKey, '-') : '';\n\n\t    cachedToggleClass(VALID_CLASS + validationErrorKey, isValid === true);\n\t    cachedToggleClass(INVALID_CLASS + validationErrorKey, isValid === false);\n\t  }\n\t}\n\n\tfunction isObjectEmpty(obj) {\n\t  if (obj) {\n\t    for (var prop in obj) {\n\t      if (obj.hasOwnProperty(prop)) {\n\t        return false;\n\t      }\n\t    }\n\t  }\n\t  return true;\n\t}\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngNonBindable\n\t * @restrict AC\n\t * @priority 1000\n\t *\n\t * @description\n\t * The `ngNonBindable` directive tells Angular not to compile or bind the contents of the current\n\t * DOM element. This is useful if the element contains what appears to be Angular directives and\n\t * bindings but which should be ignored by Angular. This could be the case if you have a site that\n\t * displays snippets of code, for instance.\n\t *\n\t * @element ANY\n\t *\n\t * @example\n\t * In this example there are two locations where a simple interpolation binding (`{{}}`) is present,\n\t * but the one wrapped in `ngNonBindable` is left alone.\n\t *\n\t * @example\n\t    <example>\n\t      <file name=\"index.html\">\n\t        <div>Normal: {{1 + 2}}</div>\n\t        <div ng-non-bindable>Ignored: {{1 + 2}}</div>\n\t      </file>\n\t      <file name=\"protractor.js\" type=\"protractor\">\n\t       it('should check ng-non-bindable', function() {\n\t         expect(element(by.binding('1 + 2')).getText()).toContain('3');\n\t         expect(element.all(by.css('div')).last().getText()).toMatch(/1 \\+ 2/);\n\t       });\n\t      </file>\n\t    </example>\n\t */\n\tvar ngNonBindableDirective = ngDirective({ terminal: true, priority: 1000 });\n\n\t/* global jqLiteRemove */\n\n\tvar ngOptionsMinErr = minErr('ngOptions');\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngOptions\n\t * @restrict A\n\t *\n\t * @description\n\t *\n\t * The `ngOptions` attribute can be used to dynamically generate a list of `<option>`\n\t * elements for the `<select>` element using the array or object obtained by evaluating the\n\t * `ngOptions` comprehension expression.\n\t *\n\t * In many cases, `ngRepeat` can be used on `<option>` elements instead of `ngOptions` to achieve a\n\t * similar result. However, `ngOptions` provides some benefits such as reducing memory and\n\t * increasing speed by not creating a new scope for each repeated instance, as well as providing\n\t * more flexibility in how the `<select>`'s model is assigned via the `select` **`as`** part of the\n\t * comprehension expression. `ngOptions` should be used when the `<select>` model needs to be bound\n\t *  to a non-string value. This is because an option element can only be bound to string values at\n\t * present.\n\t *\n\t * When an item in the `<select>` menu is selected, the array element or object property\n\t * represented by the selected option will be bound to the model identified by the `ngModel`\n\t * directive.\n\t *\n\t * Optionally, a single hard-coded `<option>` element, with the value set to an empty string, can\n\t * be nested into the `<select>` element. This element will then represent the `null` or \"not selected\"\n\t * option. See example below for demonstration.\n\t *\n\t * ## Complex Models (objects or collections)\n\t *\n\t * By default, `ngModel` watches the model by reference, not value. This is important to know when\n\t * binding the select to a model that is an object or a collection.\n\t *\n\t * One issue occurs if you want to preselect an option. For example, if you set\n\t * the model to an object that is equal to an object in your collection, `ngOptions` won't be able to set the selection,\n\t * because the objects are not identical. So by default, you should always reference the item in your collection\n\t * for preselections, e.g.: `$scope.selected = $scope.collection[3]`.\n\t *\n\t * Another solution is to use a `track by` clause, because then `ngOptions` will track the identity\n\t * of the item not by reference, but by the result of the `track by` expression. For example, if your\n\t * collection items have an id property, you would `track by item.id`.\n\t *\n\t * A different issue with objects or collections is that ngModel won't detect if an object property or\n\t * a collection item changes. For that reason, `ngOptions` additionally watches the model using\n\t * `$watchCollection`, when the expression contains a `track by` clause or the the select has the `multiple` attribute.\n\t * This allows ngOptions to trigger a re-rendering of the options even if the actual object/collection\n\t * has not changed identity, but only a property on the object or an item in the collection changes.\n\t *\n\t * Note that `$watchCollection` does a shallow comparison of the properties of the object (or the items in the collection\n\t * if the model is an array). This means that changing a property deeper than the first level inside the\n\t * object/collection will not trigger a re-rendering.\n\t *\n\t * ## `select` **`as`**\n\t *\n\t * Using `select` **`as`** will bind the result of the `select` expression to the model, but\n\t * the value of the `<select>` and `<option>` html elements will be either the index (for array data sources)\n\t * or property name (for object data sources) of the value within the collection. If a **`track by`** expression\n\t * is used, the result of that expression will be set as the value of the `option` and `select` elements.\n\t *\n\t *\n\t * ### `select` **`as`** and **`track by`**\n\t *\n\t * <div class=\"alert alert-warning\">\n\t * Be careful when using `select` **`as`** and **`track by`** in the same expression.\n\t * </div>\n\t *\n\t * Given this array of items on the $scope:\n\t *\n\t * ```js\n\t * $scope.items = [{\n\t *   id: 1,\n\t *   label: 'aLabel',\n\t *   subItem: { name: 'aSubItem' }\n\t * }, {\n\t *   id: 2,\n\t *   label: 'bLabel',\n\t *   subItem: { name: 'bSubItem' }\n\t * }];\n\t * ```\n\t *\n\t * This will work:\n\t *\n\t * ```html\n\t * <select ng-options=\"item as item.label for item in items track by item.id\" ng-model=\"selected\"></select>\n\t * ```\n\t * ```js\n\t * $scope.selected = $scope.items[0];\n\t * ```\n\t *\n\t * but this will not work:\n\t *\n\t * ```html\n\t * <select ng-options=\"item.subItem as item.label for item in items track by item.id\" ng-model=\"selected\"></select>\n\t * ```\n\t * ```js\n\t * $scope.selected = $scope.items[0].subItem;\n\t * ```\n\t *\n\t * In both examples, the **`track by`** expression is applied successfully to each `item` in the\n\t * `items` array. Because the selected option has been set programmatically in the controller, the\n\t * **`track by`** expression is also applied to the `ngModel` value. In the first example, the\n\t * `ngModel` value is `items[0]` and the **`track by`** expression evaluates to `items[0].id` with\n\t * no issue. In the second example, the `ngModel` value is `items[0].subItem` and the **`track by`**\n\t * expression evaluates to `items[0].subItem.id` (which is undefined). As a result, the model value\n\t * is not matched against any `<option>` and the `<select>` appears as having no selected value.\n\t *\n\t *\n\t * @param {string} ngModel Assignable angular expression to data-bind to.\n\t * @param {string=} name Property name of the form under which the control is published.\n\t * @param {string=} required The control is considered valid only if value is entered.\n\t * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to\n\t *    the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of\n\t *    `required` when you want to data-bind to the `required` attribute.\n\t * @param {comprehension_expression=} ngOptions in one of the following forms:\n\t *\n\t *   * for array data sources:\n\t *     * `label` **`for`** `value` **`in`** `array`\n\t *     * `select` **`as`** `label` **`for`** `value` **`in`** `array`\n\t *     * `label` **`group by`** `group` **`for`** `value` **`in`** `array`\n\t *     * `label` **`disable when`** `disable` **`for`** `value` **`in`** `array`\n\t *     * `label` **`group by`** `group` **`for`** `value` **`in`** `array` **`track by`** `trackexpr`\n\t *     * `label` **`disable when`** `disable` **`for`** `value` **`in`** `array` **`track by`** `trackexpr`\n\t *     * `label` **`for`** `value` **`in`** `array` | orderBy:`orderexpr` **`track by`** `trackexpr`\n\t *        (for including a filter with `track by`)\n\t *   * for object data sources:\n\t *     * `label` **`for (`**`key` **`,`** `value`**`) in`** `object`\n\t *     * `select` **`as`** `label` **`for (`**`key` **`,`** `value`**`) in`** `object`\n\t *     * `label` **`group by`** `group` **`for (`**`key`**`,`** `value`**`) in`** `object`\n\t *     * `label` **`disable when`** `disable` **`for (`**`key`**`,`** `value`**`) in`** `object`\n\t *     * `select` **`as`** `label` **`group by`** `group`\n\t *         **`for` `(`**`key`**`,`** `value`**`) in`** `object`\n\t *     * `select` **`as`** `label` **`disable when`** `disable`\n\t *         **`for` `(`**`key`**`,`** `value`**`) in`** `object`\n\t *\n\t * Where:\n\t *\n\t *   * `array` / `object`: an expression which evaluates to an array / object to iterate over.\n\t *   * `value`: local variable which will refer to each item in the `array` or each property value\n\t *      of `object` during iteration.\n\t *   * `key`: local variable which will refer to a property name in `object` during iteration.\n\t *   * `label`: The result of this expression will be the label for `<option>` element. The\n\t *     `expression` will most likely refer to the `value` variable (e.g. `value.propertyName`).\n\t *   * `select`: The result of this expression will be bound to the model of the parent `<select>`\n\t *      element. If not specified, `select` expression will default to `value`.\n\t *   * `group`: The result of this expression will be used to group options using the `<optgroup>`\n\t *      DOM element.\n\t *   * `disable`: The result of this expression will be used to disable the rendered `<option>`\n\t *      element. Return `true` to disable.\n\t *   * `trackexpr`: Used when working with an array of objects. The result of this expression will be\n\t *      used to identify the objects in the array. The `trackexpr` will most likely refer to the\n\t *     `value` variable (e.g. `value.propertyName`). With this the selection is preserved\n\t *      even when the options are recreated (e.g. reloaded from the server).\n\t *\n\t * @example\n\t    <example module=\"selectExample\">\n\t      <file name=\"index.html\">\n\t        <script>\n\t        angular.module('selectExample', [])\n\t          .controller('ExampleController', ['$scope', function($scope) {\n\t            $scope.colors = [\n\t              {name:'black', shade:'dark'},\n\t              {name:'white', shade:'light', notAnOption: true},\n\t              {name:'red', shade:'dark'},\n\t              {name:'blue', shade:'dark', notAnOption: true},\n\t              {name:'yellow', shade:'light', notAnOption: false}\n\t            ];\n\t            $scope.myColor = $scope.colors[2]; // red\n\t          }]);\n\t        </script>\n\t        <div ng-controller=\"ExampleController\">\n\t          <ul>\n\t            <li ng-repeat=\"color in colors\">\n\t              <label>Name: <input ng-model=\"color.name\"></label>\n\t              <label><input type=\"checkbox\" ng-model=\"color.notAnOption\"> Disabled?</label>\n\t              <button ng-click=\"colors.splice($index, 1)\" aria-label=\"Remove\">X</button>\n\t            </li>\n\t            <li>\n\t              <button ng-click=\"colors.push({})\">add</button>\n\t            </li>\n\t          </ul>\n\t          <hr/>\n\t          <label>Color (null not allowed):\n\t            <select ng-model=\"myColor\" ng-options=\"color.name for color in colors\"></select>\n\t          </label><br/>\n\t          <label>Color (null allowed):\n\t          <span  class=\"nullable\">\n\t            <select ng-model=\"myColor\" ng-options=\"color.name for color in colors\">\n\t              <option value=\"\">-- choose color --</option>\n\t            </select>\n\t          </span></label><br/>\n\n\t          <label>Color grouped by shade:\n\t            <select ng-model=\"myColor\" ng-options=\"color.name group by color.shade for color in colors\">\n\t            </select>\n\t          </label><br/>\n\n\t          <label>Color grouped by shade, with some disabled:\n\t            <select ng-model=\"myColor\"\n\t                  ng-options=\"color.name group by color.shade disable when color.notAnOption for color in colors\">\n\t            </select>\n\t          </label><br/>\n\n\n\n\t          Select <button ng-click=\"myColor = { name:'not in list', shade: 'other' }\">bogus</button>.\n\t          <br/>\n\t          <hr/>\n\t          Currently selected: {{ {selected_color:myColor} }}\n\t          <div style=\"border:solid 1px black; height:20px\"\n\t               ng-style=\"{'background-color':myColor.name}\">\n\t          </div>\n\t        </div>\n\t      </file>\n\t      <file name=\"protractor.js\" type=\"protractor\">\n\t         it('should check ng-options', function() {\n\t           expect(element(by.binding('{selected_color:myColor}')).getText()).toMatch('red');\n\t           element.all(by.model('myColor')).first().click();\n\t           element.all(by.css('select[ng-model=\"myColor\"] option')).first().click();\n\t           expect(element(by.binding('{selected_color:myColor}')).getText()).toMatch('black');\n\t           element(by.css('.nullable select[ng-model=\"myColor\"]')).click();\n\t           element.all(by.css('.nullable select[ng-model=\"myColor\"] option')).first().click();\n\t           expect(element(by.binding('{selected_color:myColor}')).getText()).toMatch('null');\n\t         });\n\t      </file>\n\t    </example>\n\t */\n\n\t// jshint maxlen: false\n\t//                     //00001111111111000000000002222222222000000000000000000000333333333300000000000000000000000004444444444400000000000005555555555555550000000006666666666666660000000777777777777777000000000000000888888888800000000000000000009999999999\n\tvar NG_OPTIONS_REGEXP = /^\\s*([\\s\\S]+?)(?:\\s+as\\s+([\\s\\S]+?))?(?:\\s+group\\s+by\\s+([\\s\\S]+?))?(?:\\s+disable\\s+when\\s+([\\s\\S]+?))?\\s+for\\s+(?:([\\$\\w][\\$\\w]*)|(?:\\(\\s*([\\$\\w][\\$\\w]*)\\s*,\\s*([\\$\\w][\\$\\w]*)\\s*\\)))\\s+in\\s+([\\s\\S]+?)(?:\\s+track\\s+by\\s+([\\s\\S]+?))?$/;\n\t                        // 1: value expression (valueFn)\n\t                        // 2: label expression (displayFn)\n\t                        // 3: group by expression (groupByFn)\n\t                        // 4: disable when expression (disableWhenFn)\n\t                        // 5: array item variable name\n\t                        // 6: object item key variable name\n\t                        // 7: object item value variable name\n\t                        // 8: collection expression\n\t                        // 9: track by expression\n\t// jshint maxlen: 100\n\n\n\tvar ngOptionsDirective = ['$compile', '$parse', function($compile, $parse) {\n\n\t  function parseOptionsExpression(optionsExp, selectElement, scope) {\n\n\t    var match = optionsExp.match(NG_OPTIONS_REGEXP);\n\t    if (!(match)) {\n\t      throw ngOptionsMinErr('iexp',\n\t        \"Expected expression in form of \" +\n\t        \"'_select_ (as _label_)? for (_key_,)?_value_ in _collection_'\" +\n\t        \" but got '{0}'. Element: {1}\",\n\t        optionsExp, startingTag(selectElement));\n\t    }\n\n\t    // Extract the parts from the ngOptions expression\n\n\t    // The variable name for the value of the item in the collection\n\t    var valueName = match[5] || match[7];\n\t    // The variable name for the key of the item in the collection\n\t    var keyName = match[6];\n\n\t    // An expression that generates the viewValue for an option if there is a label expression\n\t    var selectAs = / as /.test(match[0]) && match[1];\n\t    // An expression that is used to track the id of each object in the options collection\n\t    var trackBy = match[9];\n\t    // An expression that generates the viewValue for an option if there is no label expression\n\t    var valueFn = $parse(match[2] ? match[1] : valueName);\n\t    var selectAsFn = selectAs && $parse(selectAs);\n\t    var viewValueFn = selectAsFn || valueFn;\n\t    var trackByFn = trackBy && $parse(trackBy);\n\n\t    // Get the value by which we are going to track the option\n\t    // if we have a trackFn then use that (passing scope and locals)\n\t    // otherwise just hash the given viewValue\n\t    var getTrackByValueFn = trackBy ?\n\t                              function(value, locals) { return trackByFn(scope, locals); } :\n\t                              function getHashOfValue(value) { return hashKey(value); };\n\t    var getTrackByValue = function(value, key) {\n\t      return getTrackByValueFn(value, getLocals(value, key));\n\t    };\n\n\t    var displayFn = $parse(match[2] || match[1]);\n\t    var groupByFn = $parse(match[3] || '');\n\t    var disableWhenFn = $parse(match[4] || '');\n\t    var valuesFn = $parse(match[8]);\n\n\t    var locals = {};\n\t    var getLocals = keyName ? function(value, key) {\n\t      locals[keyName] = key;\n\t      locals[valueName] = value;\n\t      return locals;\n\t    } : function(value) {\n\t      locals[valueName] = value;\n\t      return locals;\n\t    };\n\n\n\t    function Option(selectValue, viewValue, label, group, disabled) {\n\t      this.selectValue = selectValue;\n\t      this.viewValue = viewValue;\n\t      this.label = label;\n\t      this.group = group;\n\t      this.disabled = disabled;\n\t    }\n\n\t    function getOptionValuesKeys(optionValues) {\n\t      var optionValuesKeys;\n\n\t      if (!keyName && isArrayLike(optionValues)) {\n\t        optionValuesKeys = optionValues;\n\t      } else {\n\t        // if object, extract keys, in enumeration order, unsorted\n\t        optionValuesKeys = [];\n\t        for (var itemKey in optionValues) {\n\t          if (optionValues.hasOwnProperty(itemKey) && itemKey.charAt(0) !== '$') {\n\t            optionValuesKeys.push(itemKey);\n\t          }\n\t        }\n\t      }\n\t      return optionValuesKeys;\n\t    }\n\n\t    return {\n\t      trackBy: trackBy,\n\t      getTrackByValue: getTrackByValue,\n\t      getWatchables: $parse(valuesFn, function(optionValues) {\n\t        // Create a collection of things that we would like to watch (watchedArray)\n\t        // so that they can all be watched using a single $watchCollection\n\t        // that only runs the handler once if anything changes\n\t        var watchedArray = [];\n\t        optionValues = optionValues || [];\n\n\t        var optionValuesKeys = getOptionValuesKeys(optionValues);\n\t        var optionValuesLength = optionValuesKeys.length;\n\t        for (var index = 0; index < optionValuesLength; index++) {\n\t          var key = (optionValues === optionValuesKeys) ? index : optionValuesKeys[index];\n\t          var value = optionValues[key];\n\n\t          var locals = getLocals(optionValues[key], key);\n\t          var selectValue = getTrackByValueFn(optionValues[key], locals);\n\t          watchedArray.push(selectValue);\n\n\t          // Only need to watch the displayFn if there is a specific label expression\n\t          if (match[2] || match[1]) {\n\t            var label = displayFn(scope, locals);\n\t            watchedArray.push(label);\n\t          }\n\n\t          // Only need to watch the disableWhenFn if there is a specific disable expression\n\t          if (match[4]) {\n\t            var disableWhen = disableWhenFn(scope, locals);\n\t            watchedArray.push(disableWhen);\n\t          }\n\t        }\n\t        return watchedArray;\n\t      }),\n\n\t      getOptions: function() {\n\n\t        var optionItems = [];\n\t        var selectValueMap = {};\n\n\t        // The option values were already computed in the `getWatchables` fn,\n\t        // which must have been called to trigger `getOptions`\n\t        var optionValues = valuesFn(scope) || [];\n\t        var optionValuesKeys = getOptionValuesKeys(optionValues);\n\t        var optionValuesLength = optionValuesKeys.length;\n\n\t        for (var index = 0; index < optionValuesLength; index++) {\n\t          var key = (optionValues === optionValuesKeys) ? index : optionValuesKeys[index];\n\t          var value = optionValues[key];\n\t          var locals = getLocals(value, key);\n\t          var viewValue = viewValueFn(scope, locals);\n\t          var selectValue = getTrackByValueFn(viewValue, locals);\n\t          var label = displayFn(scope, locals);\n\t          var group = groupByFn(scope, locals);\n\t          var disabled = disableWhenFn(scope, locals);\n\t          var optionItem = new Option(selectValue, viewValue, label, group, disabled);\n\n\t          optionItems.push(optionItem);\n\t          selectValueMap[selectValue] = optionItem;\n\t        }\n\n\t        return {\n\t          items: optionItems,\n\t          selectValueMap: selectValueMap,\n\t          getOptionFromViewValue: function(value) {\n\t            return selectValueMap[getTrackByValue(value)];\n\t          },\n\t          getViewValueFromOption: function(option) {\n\t            // If the viewValue could be an object that may be mutated by the application,\n\t            // we need to make a copy and not return the reference to the value on the option.\n\t            return trackBy ? angular.copy(option.viewValue) : option.viewValue;\n\t          }\n\t        };\n\t      }\n\t    };\n\t  }\n\n\n\t  // we can't just jqLite('<option>') since jqLite is not smart enough\n\t  // to create it in <select> and IE barfs otherwise.\n\t  var optionTemplate = document.createElement('option'),\n\t      optGroupTemplate = document.createElement('optgroup');\n\n\n\t    function ngOptionsPostLink(scope, selectElement, attr, ctrls) {\n\n\t      // if ngModel is not defined, we don't need to do anything\n\t      var ngModelCtrl = ctrls[1];\n\t      if (!ngModelCtrl) return;\n\n\t      var selectCtrl = ctrls[0];\n\t      var multiple = attr.multiple;\n\n\t      // The emptyOption allows the application developer to provide their own custom \"empty\"\n\t      // option when the viewValue does not match any of the option values.\n\t      var emptyOption;\n\t      for (var i = 0, children = selectElement.children(), ii = children.length; i < ii; i++) {\n\t        if (children[i].value === '') {\n\t          emptyOption = children.eq(i);\n\t          break;\n\t        }\n\t      }\n\n\t      var providedEmptyOption = !!emptyOption;\n\n\t      var unknownOption = jqLite(optionTemplate.cloneNode(false));\n\t      unknownOption.val('?');\n\n\t      var options;\n\t      var ngOptions = parseOptionsExpression(attr.ngOptions, selectElement, scope);\n\n\n\t      var renderEmptyOption = function() {\n\t        if (!providedEmptyOption) {\n\t          selectElement.prepend(emptyOption);\n\t        }\n\t        selectElement.val('');\n\t        emptyOption.prop('selected', true); // needed for IE\n\t        emptyOption.attr('selected', true);\n\t      };\n\n\t      var removeEmptyOption = function() {\n\t        if (!providedEmptyOption) {\n\t          emptyOption.remove();\n\t        }\n\t      };\n\n\n\t      var renderUnknownOption = function() {\n\t        selectElement.prepend(unknownOption);\n\t        selectElement.val('?');\n\t        unknownOption.prop('selected', true); // needed for IE\n\t        unknownOption.attr('selected', true);\n\t      };\n\n\t      var removeUnknownOption = function() {\n\t        unknownOption.remove();\n\t      };\n\n\t      // Update the controller methods for multiple selectable options\n\t      if (!multiple) {\n\n\t        selectCtrl.writeValue = function writeNgOptionsValue(value) {\n\t          var option = options.getOptionFromViewValue(value);\n\n\t          if (option && !option.disabled) {\n\t            if (selectElement[0].value !== option.selectValue) {\n\t              removeUnknownOption();\n\t              removeEmptyOption();\n\n\t              selectElement[0].value = option.selectValue;\n\t              option.element.selected = true;\n\t              option.element.setAttribute('selected', 'selected');\n\t            }\n\t          } else {\n\t            if (value === null || providedEmptyOption) {\n\t              removeUnknownOption();\n\t              renderEmptyOption();\n\t            } else {\n\t              removeEmptyOption();\n\t              renderUnknownOption();\n\t            }\n\t          }\n\t        };\n\n\t        selectCtrl.readValue = function readNgOptionsValue() {\n\n\t          var selectedOption = options.selectValueMap[selectElement.val()];\n\n\t          if (selectedOption && !selectedOption.disabled) {\n\t            removeEmptyOption();\n\t            removeUnknownOption();\n\t            return options.getViewValueFromOption(selectedOption);\n\t          }\n\t          return null;\n\t        };\n\n\t        // If we are using `track by` then we must watch the tracked value on the model\n\t        // since ngModel only watches for object identity change\n\t        if (ngOptions.trackBy) {\n\t          scope.$watch(\n\t            function() { return ngOptions.getTrackByValue(ngModelCtrl.$viewValue); },\n\t            function() { ngModelCtrl.$render(); }\n\t          );\n\t        }\n\n\t      } else {\n\n\t        ngModelCtrl.$isEmpty = function(value) {\n\t          return !value || value.length === 0;\n\t        };\n\n\n\t        selectCtrl.writeValue = function writeNgOptionsMultiple(value) {\n\t          options.items.forEach(function(option) {\n\t            option.element.selected = false;\n\t          });\n\n\t          if (value) {\n\t            value.forEach(function(item) {\n\t              var option = options.getOptionFromViewValue(item);\n\t              if (option && !option.disabled) option.element.selected = true;\n\t            });\n\t          }\n\t        };\n\n\n\t        selectCtrl.readValue = function readNgOptionsMultiple() {\n\t          var selectedValues = selectElement.val() || [],\n\t              selections = [];\n\n\t          forEach(selectedValues, function(value) {\n\t            var option = options.selectValueMap[value];\n\t            if (option && !option.disabled) selections.push(options.getViewValueFromOption(option));\n\t          });\n\n\t          return selections;\n\t        };\n\n\t        // If we are using `track by` then we must watch these tracked values on the model\n\t        // since ngModel only watches for object identity change\n\t        if (ngOptions.trackBy) {\n\n\t          scope.$watchCollection(function() {\n\t            if (isArray(ngModelCtrl.$viewValue)) {\n\t              return ngModelCtrl.$viewValue.map(function(value) {\n\t                return ngOptions.getTrackByValue(value);\n\t              });\n\t            }\n\t          }, function() {\n\t            ngModelCtrl.$render();\n\t          });\n\n\t        }\n\t      }\n\n\n\t      if (providedEmptyOption) {\n\n\t        // we need to remove it before calling selectElement.empty() because otherwise IE will\n\t        // remove the label from the element. wtf?\n\t        emptyOption.remove();\n\n\t        // compile the element since there might be bindings in it\n\t        $compile(emptyOption)(scope);\n\n\t        // remove the class, which is added automatically because we recompile the element and it\n\t        // becomes the compilation root\n\t        emptyOption.removeClass('ng-scope');\n\t      } else {\n\t        emptyOption = jqLite(optionTemplate.cloneNode(false));\n\t      }\n\n\t      // We need to do this here to ensure that the options object is defined\n\t      // when we first hit it in writeNgOptionsValue\n\t      updateOptions();\n\n\t      // We will re-render the option elements if the option values or labels change\n\t      scope.$watchCollection(ngOptions.getWatchables, updateOptions);\n\n\t      // ------------------------------------------------------------------ //\n\n\n\t      function updateOptionElement(option, element) {\n\t        option.element = element;\n\t        element.disabled = option.disabled;\n\t        // NOTE: The label must be set before the value, otherwise IE10/11/EDGE create unresponsive\n\t        // selects in certain circumstances when multiple selects are next to each other and display\n\t        // the option list in listbox style, i.e. the select is [multiple], or specifies a [size].\n\t        // See https://github.com/angular/angular.js/issues/11314 for more info.\n\t        // This is unfortunately untestable with unit / e2e tests\n\t        if (option.label !== element.label) {\n\t          element.label = option.label;\n\t          element.textContent = option.label;\n\t        }\n\t        if (option.value !== element.value) element.value = option.selectValue;\n\t      }\n\n\t      function addOrReuseElement(parent, current, type, templateElement) {\n\t        var element;\n\t        // Check whether we can reuse the next element\n\t        if (current && lowercase(current.nodeName) === type) {\n\t          // The next element is the right type so reuse it\n\t          element = current;\n\t        } else {\n\t          // The next element is not the right type so create a new one\n\t          element = templateElement.cloneNode(false);\n\t          if (!current) {\n\t            // There are no more elements so just append it to the select\n\t            parent.appendChild(element);\n\t          } else {\n\t            // The next element is not a group so insert the new one\n\t            parent.insertBefore(element, current);\n\t          }\n\t        }\n\t        return element;\n\t      }\n\n\n\t      function removeExcessElements(current) {\n\t        var next;\n\t        while (current) {\n\t          next = current.nextSibling;\n\t          jqLiteRemove(current);\n\t          current = next;\n\t        }\n\t      }\n\n\n\t      function skipEmptyAndUnknownOptions(current) {\n\t        var emptyOption_ = emptyOption && emptyOption[0];\n\t        var unknownOption_ = unknownOption && unknownOption[0];\n\n\t        // We cannot rely on the extracted empty option being the same as the compiled empty option,\n\t        // because the compiled empty option might have been replaced by a comment because\n\t        // it had an \"element\" transclusion directive on it (such as ngIf)\n\t        if (emptyOption_ || unknownOption_) {\n\t          while (current &&\n\t                (current === emptyOption_ ||\n\t                current === unknownOption_ ||\n\t                current.nodeType === NODE_TYPE_COMMENT ||\n\t                current.value === '')) {\n\t            current = current.nextSibling;\n\t          }\n\t        }\n\t        return current;\n\t      }\n\n\n\t      function updateOptions() {\n\n\t        var previousValue = options && selectCtrl.readValue();\n\n\t        options = ngOptions.getOptions();\n\n\t        var groupMap = {};\n\t        var currentElement = selectElement[0].firstChild;\n\n\t        // Ensure that the empty option is always there if it was explicitly provided\n\t        if (providedEmptyOption) {\n\t          selectElement.prepend(emptyOption);\n\t        }\n\n\t        currentElement = skipEmptyAndUnknownOptions(currentElement);\n\n\t        options.items.forEach(function updateOption(option) {\n\t          var group;\n\t          var groupElement;\n\t          var optionElement;\n\n\t          if (option.group) {\n\n\t            // This option is to live in a group\n\t            // See if we have already created this group\n\t            group = groupMap[option.group];\n\n\t            if (!group) {\n\n\t              // We have not already created this group\n\t              groupElement = addOrReuseElement(selectElement[0],\n\t                                               currentElement,\n\t                                               'optgroup',\n\t                                               optGroupTemplate);\n\t              // Move to the next element\n\t              currentElement = groupElement.nextSibling;\n\n\t              // Update the label on the group element\n\t              groupElement.label = option.group;\n\n\t              // Store it for use later\n\t              group = groupMap[option.group] = {\n\t                groupElement: groupElement,\n\t                currentOptionElement: groupElement.firstChild\n\t              };\n\n\t            }\n\n\t            // So now we have a group for this option we add the option to the group\n\t            optionElement = addOrReuseElement(group.groupElement,\n\t                                              group.currentOptionElement,\n\t                                              'option',\n\t                                              optionTemplate);\n\t            updateOptionElement(option, optionElement);\n\t            // Move to the next element\n\t            group.currentOptionElement = optionElement.nextSibling;\n\n\t          } else {\n\n\t            // This option is not in a group\n\t            optionElement = addOrReuseElement(selectElement[0],\n\t                                              currentElement,\n\t                                              'option',\n\t                                              optionTemplate);\n\t            updateOptionElement(option, optionElement);\n\t            // Move to the next element\n\t            currentElement = optionElement.nextSibling;\n\t          }\n\t        });\n\n\n\t        // Now remove all excess options and group\n\t        Object.keys(groupMap).forEach(function(key) {\n\t          removeExcessElements(groupMap[key].currentOptionElement);\n\t        });\n\t        removeExcessElements(currentElement);\n\n\t        ngModelCtrl.$render();\n\n\t        // Check to see if the value has changed due to the update to the options\n\t        if (!ngModelCtrl.$isEmpty(previousValue)) {\n\t          var nextValue = selectCtrl.readValue();\n\t          if (ngOptions.trackBy ? !equals(previousValue, nextValue) : previousValue !== nextValue) {\n\t            ngModelCtrl.$setViewValue(nextValue);\n\t            ngModelCtrl.$render();\n\t          }\n\t        }\n\n\t      }\n\t  }\n\n\t  return {\n\t    restrict: 'A',\n\t    terminal: true,\n\t    require: ['select', '?ngModel'],\n\t    link: {\n\t      pre: function ngOptionsPreLink(scope, selectElement, attr, ctrls) {\n\t        // Deactivate the SelectController.register method to prevent\n\t        // option directives from accidentally registering themselves\n\t        // (and unwanted $destroy handlers etc.)\n\t        ctrls[0].registerOption = noop;\n\t      },\n\t      post: ngOptionsPostLink\n\t    }\n\t  };\n\t}];\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngPluralize\n\t * @restrict EA\n\t *\n\t * @description\n\t * `ngPluralize` is a directive that displays messages according to en-US localization rules.\n\t * These rules are bundled with angular.js, but can be overridden\n\t * (see {@link guide/i18n Angular i18n} dev guide). You configure ngPluralize directive\n\t * by specifying the mappings between\n\t * [plural categories](http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html)\n\t * and the strings to be displayed.\n\t *\n\t * # Plural categories and explicit number rules\n\t * There are two\n\t * [plural categories](http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html)\n\t * in Angular's default en-US locale: \"one\" and \"other\".\n\t *\n\t * While a plural category may match many numbers (for example, in en-US locale, \"other\" can match\n\t * any number that is not 1), an explicit number rule can only match one number. For example, the\n\t * explicit number rule for \"3\" matches the number 3. There are examples of plural categories\n\t * and explicit number rules throughout the rest of this documentation.\n\t *\n\t * # Configuring ngPluralize\n\t * You configure ngPluralize by providing 2 attributes: `count` and `when`.\n\t * You can also provide an optional attribute, `offset`.\n\t *\n\t * The value of the `count` attribute can be either a string or an {@link guide/expression\n\t * Angular expression}; these are evaluated on the current scope for its bound value.\n\t *\n\t * The `when` attribute specifies the mappings between plural categories and the actual\n\t * string to be displayed. The value of the attribute should be a JSON object.\n\t *\n\t * The following example shows how to configure ngPluralize:\n\t *\n\t * ```html\n\t * <ng-pluralize count=\"personCount\"\n\t                 when=\"{'0': 'Nobody is viewing.',\n\t *                      'one': '1 person is viewing.',\n\t *                      'other': '{} people are viewing.'}\">\n\t * </ng-pluralize>\n\t *```\n\t *\n\t * In the example, `\"0: Nobody is viewing.\"` is an explicit number rule. If you did not\n\t * specify this rule, 0 would be matched to the \"other\" category and \"0 people are viewing\"\n\t * would be shown instead of \"Nobody is viewing\". You can specify an explicit number rule for\n\t * other numbers, for example 12, so that instead of showing \"12 people are viewing\", you can\n\t * show \"a dozen people are viewing\".\n\t *\n\t * You can use a set of closed braces (`{}`) as a placeholder for the number that you want substituted\n\t * into pluralized strings. In the previous example, Angular will replace `{}` with\n\t * <span ng-non-bindable>`{{personCount}}`</span>. The closed braces `{}` is a placeholder\n\t * for <span ng-non-bindable>{{numberExpression}}</span>.\n\t *\n\t * If no rule is defined for a category, then an empty string is displayed and a warning is generated.\n\t * Note that some locales define more categories than `one` and `other`. For example, fr-fr defines `few` and `many`.\n\t *\n\t * # Configuring ngPluralize with offset\n\t * The `offset` attribute allows further customization of pluralized text, which can result in\n\t * a better user experience. For example, instead of the message \"4 people are viewing this document\",\n\t * you might display \"John, Kate and 2 others are viewing this document\".\n\t * The offset attribute allows you to offset a number by any desired value.\n\t * Let's take a look at an example:\n\t *\n\t * ```html\n\t * <ng-pluralize count=\"personCount\" offset=2\n\t *               when=\"{'0': 'Nobody is viewing.',\n\t *                      '1': '{{person1}} is viewing.',\n\t *                      '2': '{{person1}} and {{person2}} are viewing.',\n\t *                      'one': '{{person1}}, {{person2}} and one other person are viewing.',\n\t *                      'other': '{{person1}}, {{person2}} and {} other people are viewing.'}\">\n\t * </ng-pluralize>\n\t * ```\n\t *\n\t * Notice that we are still using two plural categories(one, other), but we added\n\t * three explicit number rules 0, 1 and 2.\n\t * When one person, perhaps John, views the document, \"John is viewing\" will be shown.\n\t * When three people view the document, no explicit number rule is found, so\n\t * an offset of 2 is taken off 3, and Angular uses 1 to decide the plural category.\n\t * In this case, plural category 'one' is matched and \"John, Mary and one other person are viewing\"\n\t * is shown.\n\t *\n\t * Note that when you specify offsets, you must provide explicit number rules for\n\t * numbers from 0 up to and including the offset. If you use an offset of 3, for example,\n\t * you must provide explicit number rules for 0, 1, 2 and 3. You must also provide plural strings for\n\t * plural categories \"one\" and \"other\".\n\t *\n\t * @param {string|expression} count The variable to be bound to.\n\t * @param {string} when The mapping between plural category to its corresponding strings.\n\t * @param {number=} offset Offset to deduct from the total number.\n\t *\n\t * @example\n\t    <example module=\"pluralizeExample\">\n\t      <file name=\"index.html\">\n\t        <script>\n\t          angular.module('pluralizeExample', [])\n\t            .controller('ExampleController', ['$scope', function($scope) {\n\t              $scope.person1 = 'Igor';\n\t              $scope.person2 = 'Misko';\n\t              $scope.personCount = 1;\n\t            }]);\n\t        </script>\n\t        <div ng-controller=\"ExampleController\">\n\t          <label>Person 1:<input type=\"text\" ng-model=\"person1\" value=\"Igor\" /></label><br/>\n\t          <label>Person 2:<input type=\"text\" ng-model=\"person2\" value=\"Misko\" /></label><br/>\n\t          <label>Number of People:<input type=\"text\" ng-model=\"personCount\" value=\"1\" /></label><br/>\n\n\t          <!--- Example with simple pluralization rules for en locale --->\n\t          Without Offset:\n\t          <ng-pluralize count=\"personCount\"\n\t                        when=\"{'0': 'Nobody is viewing.',\n\t                               'one': '1 person is viewing.',\n\t                               'other': '{} people are viewing.'}\">\n\t          </ng-pluralize><br>\n\n\t          <!--- Example with offset --->\n\t          With Offset(2):\n\t          <ng-pluralize count=\"personCount\" offset=2\n\t                        when=\"{'0': 'Nobody is viewing.',\n\t                               '1': '{{person1}} is viewing.',\n\t                               '2': '{{person1}} and {{person2}} are viewing.',\n\t                               'one': '{{person1}}, {{person2}} and one other person are viewing.',\n\t                               'other': '{{person1}}, {{person2}} and {} other people are viewing.'}\">\n\t          </ng-pluralize>\n\t        </div>\n\t      </file>\n\t      <file name=\"protractor.js\" type=\"protractor\">\n\t        it('should show correct pluralized string', function() {\n\t          var withoutOffset = element.all(by.css('ng-pluralize')).get(0);\n\t          var withOffset = element.all(by.css('ng-pluralize')).get(1);\n\t          var countInput = element(by.model('personCount'));\n\n\t          expect(withoutOffset.getText()).toEqual('1 person is viewing.');\n\t          expect(withOffset.getText()).toEqual('Igor is viewing.');\n\n\t          countInput.clear();\n\t          countInput.sendKeys('0');\n\n\t          expect(withoutOffset.getText()).toEqual('Nobody is viewing.');\n\t          expect(withOffset.getText()).toEqual('Nobody is viewing.');\n\n\t          countInput.clear();\n\t          countInput.sendKeys('2');\n\n\t          expect(withoutOffset.getText()).toEqual('2 people are viewing.');\n\t          expect(withOffset.getText()).toEqual('Igor and Misko are viewing.');\n\n\t          countInput.clear();\n\t          countInput.sendKeys('3');\n\n\t          expect(withoutOffset.getText()).toEqual('3 people are viewing.');\n\t          expect(withOffset.getText()).toEqual('Igor, Misko and one other person are viewing.');\n\n\t          countInput.clear();\n\t          countInput.sendKeys('4');\n\n\t          expect(withoutOffset.getText()).toEqual('4 people are viewing.');\n\t          expect(withOffset.getText()).toEqual('Igor, Misko and 2 other people are viewing.');\n\t        });\n\t        it('should show data-bound names', function() {\n\t          var withOffset = element.all(by.css('ng-pluralize')).get(1);\n\t          var personCount = element(by.model('personCount'));\n\t          var person1 = element(by.model('person1'));\n\t          var person2 = element(by.model('person2'));\n\t          personCount.clear();\n\t          personCount.sendKeys('4');\n\t          person1.clear();\n\t          person1.sendKeys('Di');\n\t          person2.clear();\n\t          person2.sendKeys('Vojta');\n\t          expect(withOffset.getText()).toEqual('Di, Vojta and 2 other people are viewing.');\n\t        });\n\t      </file>\n\t    </example>\n\t */\n\tvar ngPluralizeDirective = ['$locale', '$interpolate', '$log', function($locale, $interpolate, $log) {\n\t  var BRACE = /{}/g,\n\t      IS_WHEN = /^when(Minus)?(.+)$/;\n\n\t  return {\n\t    link: function(scope, element, attr) {\n\t      var numberExp = attr.count,\n\t          whenExp = attr.$attr.when && element.attr(attr.$attr.when), // we have {{}} in attrs\n\t          offset = attr.offset || 0,\n\t          whens = scope.$eval(whenExp) || {},\n\t          whensExpFns = {},\n\t          startSymbol = $interpolate.startSymbol(),\n\t          endSymbol = $interpolate.endSymbol(),\n\t          braceReplacement = startSymbol + numberExp + '-' + offset + endSymbol,\n\t          watchRemover = angular.noop,\n\t          lastCount;\n\n\t      forEach(attr, function(expression, attributeName) {\n\t        var tmpMatch = IS_WHEN.exec(attributeName);\n\t        if (tmpMatch) {\n\t          var whenKey = (tmpMatch[1] ? '-' : '') + lowercase(tmpMatch[2]);\n\t          whens[whenKey] = element.attr(attr.$attr[attributeName]);\n\t        }\n\t      });\n\t      forEach(whens, function(expression, key) {\n\t        whensExpFns[key] = $interpolate(expression.replace(BRACE, braceReplacement));\n\n\t      });\n\n\t      scope.$watch(numberExp, function ngPluralizeWatchAction(newVal) {\n\t        var count = parseFloat(newVal);\n\t        var countIsNaN = isNaN(count);\n\n\t        if (!countIsNaN && !(count in whens)) {\n\t          // If an explicit number rule such as 1, 2, 3... is defined, just use it.\n\t          // Otherwise, check it against pluralization rules in $locale service.\n\t          count = $locale.pluralCat(count - offset);\n\t        }\n\n\t        // If both `count` and `lastCount` are NaN, we don't need to re-register a watch.\n\t        // In JS `NaN !== NaN`, so we have to exlicitly check.\n\t        if ((count !== lastCount) && !(countIsNaN && isNumber(lastCount) && isNaN(lastCount))) {\n\t          watchRemover();\n\t          var whenExpFn = whensExpFns[count];\n\t          if (isUndefined(whenExpFn)) {\n\t            if (newVal != null) {\n\t              $log.debug(\"ngPluralize: no rule defined for '\" + count + \"' in \" + whenExp);\n\t            }\n\t            watchRemover = noop;\n\t            updateElementText();\n\t          } else {\n\t            watchRemover = scope.$watch(whenExpFn, updateElementText);\n\t          }\n\t          lastCount = count;\n\t        }\n\t      });\n\n\t      function updateElementText(newText) {\n\t        element.text(newText || '');\n\t      }\n\t    }\n\t  };\n\t}];\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngRepeat\n\t * @multiElement\n\t *\n\t * @description\n\t * The `ngRepeat` directive instantiates a template once per item from a collection. Each template\n\t * instance gets its own scope, where the given loop variable is set to the current collection item,\n\t * and `$index` is set to the item index or key.\n\t *\n\t * Special properties are exposed on the local scope of each template instance, including:\n\t *\n\t * | Variable  | Type            | Details                                                                     |\n\t * |-----------|-----------------|-----------------------------------------------------------------------------|\n\t * | `$index`  | {@type number}  | iterator offset of the repeated element (0..length-1)                       |\n\t * | `$first`  | {@type boolean} | true if the repeated element is first in the iterator.                      |\n\t * | `$middle` | {@type boolean} | true if the repeated element is between the first and last in the iterator. |\n\t * | `$last`   | {@type boolean} | true if the repeated element is last in the iterator.                       |\n\t * | `$even`   | {@type boolean} | true if the iterator position `$index` is even (otherwise false).           |\n\t * | `$odd`    | {@type boolean} | true if the iterator position `$index` is odd (otherwise false).            |\n\t *\n\t * <div class=\"alert alert-info\">\n\t *   Creating aliases for these properties is possible with {@link ng.directive:ngInit `ngInit`}.\n\t *   This may be useful when, for instance, nesting ngRepeats.\n\t * </div>\n\t *\n\t *\n\t * # Iterating over object properties\n\t *\n\t * It is possible to get `ngRepeat` to iterate over the properties of an object using the following\n\t * syntax:\n\t *\n\t * ```js\n\t * <div ng-repeat=\"(key, value) in myObj\"> ... </div>\n\t * ```\n\t *\n\t * You need to be aware that the JavaScript specification does not define the order of keys\n\t * returned for an object. (To mitigate this in Angular 1.3 the `ngRepeat` directive\n\t * used to sort the keys alphabetically.)\n\t *\n\t * Version 1.4 removed the alphabetic sorting. We now rely on the order returned by the browser\n\t * when running `for key in myObj`. It seems that browsers generally follow the strategy of providing\n\t * keys in the order in which they were defined, although there are exceptions when keys are deleted\n\t * and reinstated. See the [MDN page on `delete` for more info](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/delete#Cross-browser_notes).\n\t *\n\t * If this is not desired, the recommended workaround is to convert your object into an array\n\t * that is sorted into the order that you prefer before providing it to `ngRepeat`.  You could\n\t * do this with a filter such as [toArrayFilter](http://ngmodules.org/modules/angular-toArrayFilter)\n\t * or implement a `$watch` on the object yourself.\n\t *\n\t *\n\t * # Tracking and Duplicates\n\t *\n\t * `ngRepeat` uses {@link $rootScope.Scope#$watchCollection $watchCollection} to detect changes in\n\t * the collection. When a change happens, ngRepeat then makes the corresponding changes to the DOM:\n\t *\n\t * * When an item is added, a new instance of the template is added to the DOM.\n\t * * When an item is removed, its template instance is removed from the DOM.\n\t * * When items are reordered, their respective templates are reordered in the DOM.\n\t *\n\t * To minimize creation of DOM elements, `ngRepeat` uses a function\n\t * to \"keep track\" of all items in the collection and their corresponding DOM elements.\n\t * For example, if an item is added to the collection, ngRepeat will know that all other items\n\t * already have DOM elements, and will not re-render them.\n\t *\n\t * The default tracking function (which tracks items by their identity) does not allow\n\t * duplicate items in arrays. This is because when there are duplicates, it is not possible\n\t * to maintain a one-to-one mapping between collection items and DOM elements.\n\t *\n\t * If you do need to repeat duplicate items, you can substitute the default tracking behavior\n\t * with your own using the `track by` expression.\n\t *\n\t * For example, you may track items by the index of each item in the collection, using the\n\t * special scope property `$index`:\n\t * ```html\n\t *    <div ng-repeat=\"n in [42, 42, 43, 43] track by $index\">\n\t *      {{n}}\n\t *    </div>\n\t * ```\n\t *\n\t * You may also use arbitrary expressions in `track by`, including references to custom functions\n\t * on the scope:\n\t * ```html\n\t *    <div ng-repeat=\"n in [42, 42, 43, 43] track by myTrackingFunction(n)\">\n\t *      {{n}}\n\t *    </div>\n\t * ```\n\t *\n\t * <div class=\"alert alert-success\">\n\t * If you are working with objects that have an identifier property, you should track\n\t * by the identifier instead of the whole object. Should you reload your data later, `ngRepeat`\n\t * will not have to rebuild the DOM elements for items it has already rendered, even if the\n\t * JavaScript objects in the collection have been substituted for new ones. For large collections,\n\t * this signifincantly improves rendering performance. If you don't have a unique identifier,\n\t * `track by $index` can also provide a performance boost.\n\t * </div>\n\t * ```html\n\t *    <div ng-repeat=\"model in collection track by model.id\">\n\t *      {{model.name}}\n\t *    </div>\n\t * ```\n\t *\n\t * When no `track by` expression is provided, it is equivalent to tracking by the built-in\n\t * `$id` function, which tracks items by their identity:\n\t * ```html\n\t *    <div ng-repeat=\"obj in collection track by $id(obj)\">\n\t *      {{obj.prop}}\n\t *    </div>\n\t * ```\n\t *\n\t * <div class=\"alert alert-warning\">\n\t * **Note:** `track by` must always be the last expression:\n\t * </div>\n\t * ```\n\t * <div ng-repeat=\"model in collection | orderBy: 'id' as filtered_result track by model.id\">\n\t *     {{model.name}}\n\t * </div>\n\t * ```\n\t *\n\t * # Special repeat start and end points\n\t * To repeat a series of elements instead of just one parent element, ngRepeat (as well as other ng directives) supports extending\n\t * the range of the repeater by defining explicit start and end points by using **ng-repeat-start** and **ng-repeat-end** respectively.\n\t * The **ng-repeat-start** directive works the same as **ng-repeat**, but will repeat all the HTML code (including the tag it's defined on)\n\t * up to and including the ending HTML tag where **ng-repeat-end** is placed.\n\t *\n\t * The example below makes use of this feature:\n\t * ```html\n\t *   <header ng-repeat-start=\"item in items\">\n\t *     Header {{ item }}\n\t *   </header>\n\t *   <div class=\"body\">\n\t *     Body {{ item }}\n\t *   </div>\n\t *   <footer ng-repeat-end>\n\t *     Footer {{ item }}\n\t *   </footer>\n\t * ```\n\t *\n\t * And with an input of {@type ['A','B']} for the items variable in the example above, the output will evaluate to:\n\t * ```html\n\t *   <header>\n\t *     Header A\n\t *   </header>\n\t *   <div class=\"body\">\n\t *     Body A\n\t *   </div>\n\t *   <footer>\n\t *     Footer A\n\t *   </footer>\n\t *   <header>\n\t *     Header B\n\t *   </header>\n\t *   <div class=\"body\">\n\t *     Body B\n\t *   </div>\n\t *   <footer>\n\t *     Footer B\n\t *   </footer>\n\t * ```\n\t *\n\t * The custom start and end points for ngRepeat also support all other HTML directive syntax flavors provided in AngularJS (such\n\t * as **data-ng-repeat-start**, **x-ng-repeat-start** and **ng:repeat-start**).\n\t *\n\t * @animations\n\t * **.enter** - when a new item is added to the list or when an item is revealed after a filter\n\t *\n\t * **.leave** - when an item is removed from the list or when an item is filtered out\n\t *\n\t * **.move** - when an adjacent item is filtered out causing a reorder or when the item contents are reordered\n\t *\n\t * @element ANY\n\t * @scope\n\t * @priority 1000\n\t * @param {repeat_expression} ngRepeat The expression indicating how to enumerate a collection. These\n\t *   formats are currently supported:\n\t *\n\t *   * `variable in expression` – where variable is the user defined loop variable and `expression`\n\t *     is a scope expression giving the collection to enumerate.\n\t *\n\t *     For example: `album in artist.albums`.\n\t *\n\t *   * `(key, value) in expression` – where `key` and `value` can be any user defined identifiers,\n\t *     and `expression` is the scope expression giving the collection to enumerate.\n\t *\n\t *     For example: `(name, age) in {'adam':10, 'amalie':12}`.\n\t *\n\t *   * `variable in expression track by tracking_expression` – You can also provide an optional tracking expression\n\t *     which can be used to associate the objects in the collection with the DOM elements. If no tracking expression\n\t *     is specified, ng-repeat associates elements by identity. It is an error to have\n\t *     more than one tracking expression value resolve to the same key. (This would mean that two distinct objects are\n\t *     mapped to the same DOM element, which is not possible.)\n\t *\n\t *     Note that the tracking expression must come last, after any filters, and the alias expression.\n\t *\n\t *     For example: `item in items` is equivalent to `item in items track by $id(item)`. This implies that the DOM elements\n\t *     will be associated by item identity in the array.\n\t *\n\t *     For example: `item in items track by $id(item)`. A built in `$id()` function can be used to assign a unique\n\t *     `$$hashKey` property to each item in the array. This property is then used as a key to associated DOM elements\n\t *     with the corresponding item in the array by identity. Moving the same object in array would move the DOM\n\t *     element in the same way in the DOM.\n\t *\n\t *     For example: `item in items track by item.id` is a typical pattern when the items come from the database. In this\n\t *     case the object identity does not matter. Two objects are considered equivalent as long as their `id`\n\t *     property is same.\n\t *\n\t *     For example: `item in items | filter:searchText track by item.id` is a pattern that might be used to apply a filter\n\t *     to items in conjunction with a tracking expression.\n\t *\n\t *   * `variable in expression as alias_expression` – You can also provide an optional alias expression which will then store the\n\t *     intermediate results of the repeater after the filters have been applied. Typically this is used to render a special message\n\t *     when a filter is active on the repeater, but the filtered result set is empty.\n\t *\n\t *     For example: `item in items | filter:x as results` will store the fragment of the repeated items as `results`, but only after\n\t *     the items have been processed through the filter.\n\t *\n\t *     Please note that `as [variable name] is not an operator but rather a part of ngRepeat micro-syntax so it can be used only at the end\n\t *     (and not as operator, inside an expression).\n\t *\n\t *     For example: `item in items | filter : x | orderBy : order | limitTo : limit as results` .\n\t *\n\t * @example\n\t * This example initializes the scope to a list of names and\n\t * then uses `ngRepeat` to display every person:\n\t  <example module=\"ngAnimate\" deps=\"angular-animate.js\" animations=\"true\">\n\t    <file name=\"index.html\">\n\t      <div ng-init=\"friends = [\n\t        {name:'John', age:25, gender:'boy'},\n\t        {name:'Jessie', age:30, gender:'girl'},\n\t        {name:'Johanna', age:28, gender:'girl'},\n\t        {name:'Joy', age:15, gender:'girl'},\n\t        {name:'Mary', age:28, gender:'girl'},\n\t        {name:'Peter', age:95, gender:'boy'},\n\t        {name:'Sebastian', age:50, gender:'boy'},\n\t        {name:'Erika', age:27, gender:'girl'},\n\t        {name:'Patrick', age:40, gender:'boy'},\n\t        {name:'Samantha', age:60, gender:'girl'}\n\t      ]\">\n\t        I have {{friends.length}} friends. They are:\n\t        <input type=\"search\" ng-model=\"q\" placeholder=\"filter friends...\" aria-label=\"filter friends\" />\n\t        <ul class=\"example-animate-container\">\n\t          <li class=\"animate-repeat\" ng-repeat=\"friend in friends | filter:q as results\">\n\t            [{{$index + 1}}] {{friend.name}} who is {{friend.age}} years old.\n\t          </li>\n\t          <li class=\"animate-repeat\" ng-if=\"results.length == 0\">\n\t            <strong>No results found...</strong>\n\t          </li>\n\t        </ul>\n\t      </div>\n\t    </file>\n\t    <file name=\"animations.css\">\n\t      .example-animate-container {\n\t        background:white;\n\t        border:1px solid black;\n\t        list-style:none;\n\t        margin:0;\n\t        padding:0 10px;\n\t      }\n\n\t      .animate-repeat {\n\t        line-height:40px;\n\t        list-style:none;\n\t        box-sizing:border-box;\n\t      }\n\n\t      .animate-repeat.ng-move,\n\t      .animate-repeat.ng-enter,\n\t      .animate-repeat.ng-leave {\n\t        transition:all linear 0.5s;\n\t      }\n\n\t      .animate-repeat.ng-leave.ng-leave-active,\n\t      .animate-repeat.ng-move,\n\t      .animate-repeat.ng-enter {\n\t        opacity:0;\n\t        max-height:0;\n\t      }\n\n\t      .animate-repeat.ng-leave,\n\t      .animate-repeat.ng-move.ng-move-active,\n\t      .animate-repeat.ng-enter.ng-enter-active {\n\t        opacity:1;\n\t        max-height:40px;\n\t      }\n\t    </file>\n\t    <file name=\"protractor.js\" type=\"protractor\">\n\t      var friends = element.all(by.repeater('friend in friends'));\n\n\t      it('should render initial data set', function() {\n\t        expect(friends.count()).toBe(10);\n\t        expect(friends.get(0).getText()).toEqual('[1] John who is 25 years old.');\n\t        expect(friends.get(1).getText()).toEqual('[2] Jessie who is 30 years old.');\n\t        expect(friends.last().getText()).toEqual('[10] Samantha who is 60 years old.');\n\t        expect(element(by.binding('friends.length')).getText())\n\t            .toMatch(\"I have 10 friends. They are:\");\n\t      });\n\n\t       it('should update repeater when filter predicate changes', function() {\n\t         expect(friends.count()).toBe(10);\n\n\t         element(by.model('q')).sendKeys('ma');\n\n\t         expect(friends.count()).toBe(2);\n\t         expect(friends.get(0).getText()).toEqual('[1] Mary who is 28 years old.');\n\t         expect(friends.last().getText()).toEqual('[2] Samantha who is 60 years old.');\n\t       });\n\t      </file>\n\t    </example>\n\t */\n\tvar ngRepeatDirective = ['$parse', '$animate', function($parse, $animate) {\n\t  var NG_REMOVED = '$$NG_REMOVED';\n\t  var ngRepeatMinErr = minErr('ngRepeat');\n\n\t  var updateScope = function(scope, index, valueIdentifier, value, keyIdentifier, key, arrayLength) {\n\t    // TODO(perf): generate setters to shave off ~40ms or 1-1.5%\n\t    scope[valueIdentifier] = value;\n\t    if (keyIdentifier) scope[keyIdentifier] = key;\n\t    scope.$index = index;\n\t    scope.$first = (index === 0);\n\t    scope.$last = (index === (arrayLength - 1));\n\t    scope.$middle = !(scope.$first || scope.$last);\n\t    // jshint bitwise: false\n\t    scope.$odd = !(scope.$even = (index&1) === 0);\n\t    // jshint bitwise: true\n\t  };\n\n\t  var getBlockStart = function(block) {\n\t    return block.clone[0];\n\t  };\n\n\t  var getBlockEnd = function(block) {\n\t    return block.clone[block.clone.length - 1];\n\t  };\n\n\n\t  return {\n\t    restrict: 'A',\n\t    multiElement: true,\n\t    transclude: 'element',\n\t    priority: 1000,\n\t    terminal: true,\n\t    $$tlb: true,\n\t    compile: function ngRepeatCompile($element, $attr) {\n\t      var expression = $attr.ngRepeat;\n\t      var ngRepeatEndComment = document.createComment(' end ngRepeat: ' + expression + ' ');\n\n\t      var match = expression.match(/^\\s*([\\s\\S]+?)\\s+in\\s+([\\s\\S]+?)(?:\\s+as\\s+([\\s\\S]+?))?(?:\\s+track\\s+by\\s+([\\s\\S]+?))?\\s*$/);\n\n\t      if (!match) {\n\t        throw ngRepeatMinErr('iexp', \"Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.\",\n\t            expression);\n\t      }\n\n\t      var lhs = match[1];\n\t      var rhs = match[2];\n\t      var aliasAs = match[3];\n\t      var trackByExp = match[4];\n\n\t      match = lhs.match(/^(?:(\\s*[\\$\\w]+)|\\(\\s*([\\$\\w]+)\\s*,\\s*([\\$\\w]+)\\s*\\))$/);\n\n\t      if (!match) {\n\t        throw ngRepeatMinErr('iidexp', \"'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.\",\n\t            lhs);\n\t      }\n\t      var valueIdentifier = match[3] || match[1];\n\t      var keyIdentifier = match[2];\n\n\t      if (aliasAs && (!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(aliasAs) ||\n\t          /^(null|undefined|this|\\$index|\\$first|\\$middle|\\$last|\\$even|\\$odd|\\$parent|\\$root|\\$id)$/.test(aliasAs))) {\n\t        throw ngRepeatMinErr('badident', \"alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.\",\n\t          aliasAs);\n\t      }\n\n\t      var trackByExpGetter, trackByIdExpFn, trackByIdArrayFn, trackByIdObjFn;\n\t      var hashFnLocals = {$id: hashKey};\n\n\t      if (trackByExp) {\n\t        trackByExpGetter = $parse(trackByExp);\n\t      } else {\n\t        trackByIdArrayFn = function(key, value) {\n\t          return hashKey(value);\n\t        };\n\t        trackByIdObjFn = function(key) {\n\t          return key;\n\t        };\n\t      }\n\n\t      return function ngRepeatLink($scope, $element, $attr, ctrl, $transclude) {\n\n\t        if (trackByExpGetter) {\n\t          trackByIdExpFn = function(key, value, index) {\n\t            // assign key, value, and $index to the locals so that they can be used in hash functions\n\t            if (keyIdentifier) hashFnLocals[keyIdentifier] = key;\n\t            hashFnLocals[valueIdentifier] = value;\n\t            hashFnLocals.$index = index;\n\t            return trackByExpGetter($scope, hashFnLocals);\n\t          };\n\t        }\n\n\t        // Store a list of elements from previous run. This is a hash where key is the item from the\n\t        // iterator, and the value is objects with following properties.\n\t        //   - scope: bound scope\n\t        //   - element: previous element.\n\t        //   - index: position\n\t        //\n\t        // We are using no-proto object so that we don't need to guard against inherited props via\n\t        // hasOwnProperty.\n\t        var lastBlockMap = createMap();\n\n\t        //watch props\n\t        $scope.$watchCollection(rhs, function ngRepeatAction(collection) {\n\t          var index, length,\n\t              previousNode = $element[0],     // node that cloned nodes should be inserted after\n\t                                              // initialized to the comment node anchor\n\t              nextNode,\n\t              // Same as lastBlockMap but it has the current state. It will become the\n\t              // lastBlockMap on the next iteration.\n\t              nextBlockMap = createMap(),\n\t              collectionLength,\n\t              key, value, // key/value of iteration\n\t              trackById,\n\t              trackByIdFn,\n\t              collectionKeys,\n\t              block,       // last object information {scope, element, id}\n\t              nextBlockOrder,\n\t              elementsToRemove;\n\n\t          if (aliasAs) {\n\t            $scope[aliasAs] = collection;\n\t          }\n\n\t          if (isArrayLike(collection)) {\n\t            collectionKeys = collection;\n\t            trackByIdFn = trackByIdExpFn || trackByIdArrayFn;\n\t          } else {\n\t            trackByIdFn = trackByIdExpFn || trackByIdObjFn;\n\t            // if object, extract keys, in enumeration order, unsorted\n\t            collectionKeys = [];\n\t            for (var itemKey in collection) {\n\t              if (hasOwnProperty.call(collection, itemKey) && itemKey.charAt(0) !== '$') {\n\t                collectionKeys.push(itemKey);\n\t              }\n\t            }\n\t          }\n\n\t          collectionLength = collectionKeys.length;\n\t          nextBlockOrder = new Array(collectionLength);\n\n\t          // locate existing items\n\t          for (index = 0; index < collectionLength; index++) {\n\t            key = (collection === collectionKeys) ? index : collectionKeys[index];\n\t            value = collection[key];\n\t            trackById = trackByIdFn(key, value, index);\n\t            if (lastBlockMap[trackById]) {\n\t              // found previously seen block\n\t              block = lastBlockMap[trackById];\n\t              delete lastBlockMap[trackById];\n\t              nextBlockMap[trackById] = block;\n\t              nextBlockOrder[index] = block;\n\t            } else if (nextBlockMap[trackById]) {\n\t              // if collision detected. restore lastBlockMap and throw an error\n\t              forEach(nextBlockOrder, function(block) {\n\t                if (block && block.scope) lastBlockMap[block.id] = block;\n\t              });\n\t              throw ngRepeatMinErr('dupes',\n\t                  \"Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}\",\n\t                  expression, trackById, value);\n\t            } else {\n\t              // new never before seen block\n\t              nextBlockOrder[index] = {id: trackById, scope: undefined, clone: undefined};\n\t              nextBlockMap[trackById] = true;\n\t            }\n\t          }\n\n\t          // remove leftover items\n\t          for (var blockKey in lastBlockMap) {\n\t            block = lastBlockMap[blockKey];\n\t            elementsToRemove = getBlockNodes(block.clone);\n\t            $animate.leave(elementsToRemove);\n\t            if (elementsToRemove[0].parentNode) {\n\t              // if the element was not removed yet because of pending animation, mark it as deleted\n\t              // so that we can ignore it later\n\t              for (index = 0, length = elementsToRemove.length; index < length; index++) {\n\t                elementsToRemove[index][NG_REMOVED] = true;\n\t              }\n\t            }\n\t            block.scope.$destroy();\n\t          }\n\n\t          // we are not using forEach for perf reasons (trying to avoid #call)\n\t          for (index = 0; index < collectionLength; index++) {\n\t            key = (collection === collectionKeys) ? index : collectionKeys[index];\n\t            value = collection[key];\n\t            block = nextBlockOrder[index];\n\n\t            if (block.scope) {\n\t              // if we have already seen this object, then we need to reuse the\n\t              // associated scope/element\n\n\t              nextNode = previousNode;\n\n\t              // skip nodes that are already pending removal via leave animation\n\t              do {\n\t                nextNode = nextNode.nextSibling;\n\t              } while (nextNode && nextNode[NG_REMOVED]);\n\n\t              if (getBlockStart(block) != nextNode) {\n\t                // existing item which got moved\n\t                $animate.move(getBlockNodes(block.clone), null, jqLite(previousNode));\n\t              }\n\t              previousNode = getBlockEnd(block);\n\t              updateScope(block.scope, index, valueIdentifier, value, keyIdentifier, key, collectionLength);\n\t            } else {\n\t              // new item which we don't know about\n\t              $transclude(function ngRepeatTransclude(clone, scope) {\n\t                block.scope = scope;\n\t                // http://jsperf.com/clone-vs-createcomment\n\t                var endNode = ngRepeatEndComment.cloneNode(false);\n\t                clone[clone.length++] = endNode;\n\n\t                // TODO(perf): support naked previousNode in `enter` to avoid creation of jqLite wrapper?\n\t                $animate.enter(clone, null, jqLite(previousNode));\n\t                previousNode = endNode;\n\t                // Note: We only need the first/last node of the cloned nodes.\n\t                // However, we need to keep the reference to the jqlite wrapper as it might be changed later\n\t                // by a directive with templateUrl when its template arrives.\n\t                block.clone = clone;\n\t                nextBlockMap[block.id] = block;\n\t                updateScope(block.scope, index, valueIdentifier, value, keyIdentifier, key, collectionLength);\n\t              });\n\t            }\n\t          }\n\t          lastBlockMap = nextBlockMap;\n\t        });\n\t      };\n\t    }\n\t  };\n\t}];\n\n\tvar NG_HIDE_CLASS = 'ng-hide';\n\tvar NG_HIDE_IN_PROGRESS_CLASS = 'ng-hide-animate';\n\t/**\n\t * @ngdoc directive\n\t * @name ngShow\n\t * @multiElement\n\t *\n\t * @description\n\t * The `ngShow` directive shows or hides the given HTML element based on the expression\n\t * provided to the `ngShow` attribute. The element is shown or hidden by removing or adding\n\t * the `.ng-hide` CSS class onto the element. The `.ng-hide` CSS class is predefined\n\t * in AngularJS and sets the display style to none (using an !important flag).\n\t * For CSP mode please add `angular-csp.css` to your html file (see {@link ng.directive:ngCsp ngCsp}).\n\t *\n\t * ```html\n\t * <!-- when $scope.myValue is truthy (element is visible) -->\n\t * <div ng-show=\"myValue\"></div>\n\t *\n\t * <!-- when $scope.myValue is falsy (element is hidden) -->\n\t * <div ng-show=\"myValue\" class=\"ng-hide\"></div>\n\t * ```\n\t *\n\t * When the `ngShow` expression evaluates to a falsy value then the `.ng-hide` CSS class is added to the class\n\t * attribute on the element causing it to become hidden. When truthy, the `.ng-hide` CSS class is removed\n\t * from the element causing the element not to appear hidden.\n\t *\n\t * ## Why is !important used?\n\t *\n\t * You may be wondering why !important is used for the `.ng-hide` CSS class. This is because the `.ng-hide` selector\n\t * can be easily overridden by heavier selectors. For example, something as simple\n\t * as changing the display style on a HTML list item would make hidden elements appear visible.\n\t * This also becomes a bigger issue when dealing with CSS frameworks.\n\t *\n\t * By using !important, the show and hide behavior will work as expected despite any clash between CSS selector\n\t * specificity (when !important isn't used with any conflicting styles). If a developer chooses to override the\n\t * styling to change how to hide an element then it is just a matter of using !important in their own CSS code.\n\t *\n\t * ### Overriding `.ng-hide`\n\t *\n\t * By default, the `.ng-hide` class will style the element with `display: none!important`. If you wish to change\n\t * the hide behavior with ngShow/ngHide then this can be achieved by restating the styles for the `.ng-hide`\n\t * class CSS. Note that the selector that needs to be used is actually `.ng-hide:not(.ng-hide-animate)` to cope\n\t * with extra animation classes that can be added.\n\t *\n\t * ```css\n\t * .ng-hide:not(.ng-hide-animate) {\n\t *   /&#42; this is just another form of hiding an element &#42;/\n\t *   display: block!important;\n\t *   position: absolute;\n\t *   top: -9999px;\n\t *   left: -9999px;\n\t * }\n\t * ```\n\t *\n\t * By default you don't need to override in CSS anything and the animations will work around the display style.\n\t *\n\t * ## A note about animations with `ngShow`\n\t *\n\t * Animations in ngShow/ngHide work with the show and hide events that are triggered when the directive expression\n\t * is true and false. This system works like the animation system present with ngClass except that\n\t * you must also include the !important flag to override the display property\n\t * so that you can perform an animation when the element is hidden during the time of the animation.\n\t *\n\t * ```css\n\t * //\n\t * //a working example can be found at the bottom of this page\n\t * //\n\t * .my-element.ng-hide-add, .my-element.ng-hide-remove {\n\t *   /&#42; this is required as of 1.3x to properly\n\t *      apply all styling in a show/hide animation &#42;/\n\t *   transition: 0s linear all;\n\t * }\n\t *\n\t * .my-element.ng-hide-add-active,\n\t * .my-element.ng-hide-remove-active {\n\t *   /&#42; the transition is defined in the active class &#42;/\n\t *   transition: 1s linear all;\n\t * }\n\t *\n\t * .my-element.ng-hide-add { ... }\n\t * .my-element.ng-hide-add.ng-hide-add-active { ... }\n\t * .my-element.ng-hide-remove { ... }\n\t * .my-element.ng-hide-remove.ng-hide-remove-active { ... }\n\t * ```\n\t *\n\t * Keep in mind that, as of AngularJS version 1.3.0-beta.11, there is no need to change the display\n\t * property to block during animation states--ngAnimate will handle the style toggling automatically for you.\n\t *\n\t * @animations\n\t * addClass: `.ng-hide` - happens after the `ngShow` expression evaluates to a truthy value and the just before contents are set to visible\n\t * removeClass: `.ng-hide` - happens after the `ngShow` expression evaluates to a non truthy value and just before the contents are set to hidden\n\t *\n\t * @element ANY\n\t * @param {expression} ngShow If the {@link guide/expression expression} is truthy\n\t *     then the element is shown or hidden respectively.\n\t *\n\t * @example\n\t  <example module=\"ngAnimate\" deps=\"angular-animate.js\" animations=\"true\">\n\t    <file name=\"index.html\">\n\t      Click me: <input type=\"checkbox\" ng-model=\"checked\" aria-label=\"Toggle ngHide\"><br/>\n\t      <div>\n\t        Show:\n\t        <div class=\"check-element animate-show\" ng-show=\"checked\">\n\t          <span class=\"glyphicon glyphicon-thumbs-up\"></span> I show up when your checkbox is checked.\n\t        </div>\n\t      </div>\n\t      <div>\n\t        Hide:\n\t        <div class=\"check-element animate-show\" ng-hide=\"checked\">\n\t          <span class=\"glyphicon glyphicon-thumbs-down\"></span> I hide when your checkbox is checked.\n\t        </div>\n\t      </div>\n\t    </file>\n\t    <file name=\"glyphicons.css\">\n\t      @import url(../../components/bootstrap-3.1.1/css/bootstrap.css);\n\t    </file>\n\t    <file name=\"animations.css\">\n\t      .animate-show {\n\t        line-height: 20px;\n\t        opacity: 1;\n\t        padding: 10px;\n\t        border: 1px solid black;\n\t        background: white;\n\t      }\n\n\t      .animate-show.ng-hide-add, .animate-show.ng-hide-remove {\n\t        transition: all linear 0.5s;\n\t      }\n\n\t      .animate-show.ng-hide {\n\t        line-height: 0;\n\t        opacity: 0;\n\t        padding: 0 10px;\n\t      }\n\n\t      .check-element {\n\t        padding: 10px;\n\t        border: 1px solid black;\n\t        background: white;\n\t      }\n\t    </file>\n\t    <file name=\"protractor.js\" type=\"protractor\">\n\t      var thumbsUp = element(by.css('span.glyphicon-thumbs-up'));\n\t      var thumbsDown = element(by.css('span.glyphicon-thumbs-down'));\n\n\t      it('should check ng-show / ng-hide', function() {\n\t        expect(thumbsUp.isDisplayed()).toBeFalsy();\n\t        expect(thumbsDown.isDisplayed()).toBeTruthy();\n\n\t        element(by.model('checked')).click();\n\n\t        expect(thumbsUp.isDisplayed()).toBeTruthy();\n\t        expect(thumbsDown.isDisplayed()).toBeFalsy();\n\t      });\n\t    </file>\n\t  </example>\n\t */\n\tvar ngShowDirective = ['$animate', function($animate) {\n\t  return {\n\t    restrict: 'A',\n\t    multiElement: true,\n\t    link: function(scope, element, attr) {\n\t      scope.$watch(attr.ngShow, function ngShowWatchAction(value) {\n\t        // we're adding a temporary, animation-specific class for ng-hide since this way\n\t        // we can control when the element is actually displayed on screen without having\n\t        // to have a global/greedy CSS selector that breaks when other animations are run.\n\t        // Read: https://github.com/angular/angular.js/issues/9103#issuecomment-58335845\n\t        $animate[value ? 'removeClass' : 'addClass'](element, NG_HIDE_CLASS, {\n\t          tempClasses: NG_HIDE_IN_PROGRESS_CLASS\n\t        });\n\t      });\n\t    }\n\t  };\n\t}];\n\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngHide\n\t * @multiElement\n\t *\n\t * @description\n\t * The `ngHide` directive shows or hides the given HTML element based on the expression\n\t * provided to the `ngHide` attribute. The element is shown or hidden by removing or adding\n\t * the `ng-hide` CSS class onto the element. The `.ng-hide` CSS class is predefined\n\t * in AngularJS and sets the display style to none (using an !important flag).\n\t * For CSP mode please add `angular-csp.css` to your html file (see {@link ng.directive:ngCsp ngCsp}).\n\t *\n\t * ```html\n\t * <!-- when $scope.myValue is truthy (element is hidden) -->\n\t * <div ng-hide=\"myValue\" class=\"ng-hide\"></div>\n\t *\n\t * <!-- when $scope.myValue is falsy (element is visible) -->\n\t * <div ng-hide=\"myValue\"></div>\n\t * ```\n\t *\n\t * When the `ngHide` expression evaluates to a truthy value then the `.ng-hide` CSS class is added to the class\n\t * attribute on the element causing it to become hidden. When falsy, the `.ng-hide` CSS class is removed\n\t * from the element causing the element not to appear hidden.\n\t *\n\t * ## Why is !important used?\n\t *\n\t * You may be wondering why !important is used for the `.ng-hide` CSS class. This is because the `.ng-hide` selector\n\t * can be easily overridden by heavier selectors. For example, something as simple\n\t * as changing the display style on a HTML list item would make hidden elements appear visible.\n\t * This also becomes a bigger issue when dealing with CSS frameworks.\n\t *\n\t * By using !important, the show and hide behavior will work as expected despite any clash between CSS selector\n\t * specificity (when !important isn't used with any conflicting styles). If a developer chooses to override the\n\t * styling to change how to hide an element then it is just a matter of using !important in their own CSS code.\n\t *\n\t * ### Overriding `.ng-hide`\n\t *\n\t * By default, the `.ng-hide` class will style the element with `display: none!important`. If you wish to change\n\t * the hide behavior with ngShow/ngHide then this can be achieved by restating the styles for the `.ng-hide`\n\t * class in CSS:\n\t *\n\t * ```css\n\t * .ng-hide {\n\t *   /&#42; this is just another form of hiding an element &#42;/\n\t *   display: block!important;\n\t *   position: absolute;\n\t *   top: -9999px;\n\t *   left: -9999px;\n\t * }\n\t * ```\n\t *\n\t * By default you don't need to override in CSS anything and the animations will work around the display style.\n\t *\n\t * ## A note about animations with `ngHide`\n\t *\n\t * Animations in ngShow/ngHide work with the show and hide events that are triggered when the directive expression\n\t * is true and false. This system works like the animation system present with ngClass, except that the `.ng-hide`\n\t * CSS class is added and removed for you instead of your own CSS class.\n\t *\n\t * ```css\n\t * //\n\t * //a working example can be found at the bottom of this page\n\t * //\n\t * .my-element.ng-hide-add, .my-element.ng-hide-remove {\n\t *   transition: 0.5s linear all;\n\t * }\n\t *\n\t * .my-element.ng-hide-add { ... }\n\t * .my-element.ng-hide-add.ng-hide-add-active { ... }\n\t * .my-element.ng-hide-remove { ... }\n\t * .my-element.ng-hide-remove.ng-hide-remove-active { ... }\n\t * ```\n\t *\n\t * Keep in mind that, as of AngularJS version 1.3.0-beta.11, there is no need to change the display\n\t * property to block during animation states--ngAnimate will handle the style toggling automatically for you.\n\t *\n\t * @animations\n\t * removeClass: `.ng-hide` - happens after the `ngHide` expression evaluates to a truthy value and just before the contents are set to hidden\n\t * addClass: `.ng-hide` - happens after the `ngHide` expression evaluates to a non truthy value and just before the contents are set to visible\n\t *\n\t * @element ANY\n\t * @param {expression} ngHide If the {@link guide/expression expression} is truthy then\n\t *     the element is shown or hidden respectively.\n\t *\n\t * @example\n\t  <example module=\"ngAnimate\" deps=\"angular-animate.js\" animations=\"true\">\n\t    <file name=\"index.html\">\n\t      Click me: <input type=\"checkbox\" ng-model=\"checked\" aria-label=\"Toggle ngShow\"><br/>\n\t      <div>\n\t        Show:\n\t        <div class=\"check-element animate-hide\" ng-show=\"checked\">\n\t          <span class=\"glyphicon glyphicon-thumbs-up\"></span> I show up when your checkbox is checked.\n\t        </div>\n\t      </div>\n\t      <div>\n\t        Hide:\n\t        <div class=\"check-element animate-hide\" ng-hide=\"checked\">\n\t          <span class=\"glyphicon glyphicon-thumbs-down\"></span> I hide when your checkbox is checked.\n\t        </div>\n\t      </div>\n\t    </file>\n\t    <file name=\"glyphicons.css\">\n\t      @import url(../../components/bootstrap-3.1.1/css/bootstrap.css);\n\t    </file>\n\t    <file name=\"animations.css\">\n\t      .animate-hide {\n\t        transition: all linear 0.5s;\n\t        line-height: 20px;\n\t        opacity: 1;\n\t        padding: 10px;\n\t        border: 1px solid black;\n\t        background: white;\n\t      }\n\n\t      .animate-hide.ng-hide {\n\t        line-height: 0;\n\t        opacity: 0;\n\t        padding: 0 10px;\n\t      }\n\n\t      .check-element {\n\t        padding: 10px;\n\t        border: 1px solid black;\n\t        background: white;\n\t      }\n\t    </file>\n\t    <file name=\"protractor.js\" type=\"protractor\">\n\t      var thumbsUp = element(by.css('span.glyphicon-thumbs-up'));\n\t      var thumbsDown = element(by.css('span.glyphicon-thumbs-down'));\n\n\t      it('should check ng-show / ng-hide', function() {\n\t        expect(thumbsUp.isDisplayed()).toBeFalsy();\n\t        expect(thumbsDown.isDisplayed()).toBeTruthy();\n\n\t        element(by.model('checked')).click();\n\n\t        expect(thumbsUp.isDisplayed()).toBeTruthy();\n\t        expect(thumbsDown.isDisplayed()).toBeFalsy();\n\t      });\n\t    </file>\n\t  </example>\n\t */\n\tvar ngHideDirective = ['$animate', function($animate) {\n\t  return {\n\t    restrict: 'A',\n\t    multiElement: true,\n\t    link: function(scope, element, attr) {\n\t      scope.$watch(attr.ngHide, function ngHideWatchAction(value) {\n\t        // The comment inside of the ngShowDirective explains why we add and\n\t        // remove a temporary class for the show/hide animation\n\t        $animate[value ? 'addClass' : 'removeClass'](element,NG_HIDE_CLASS, {\n\t          tempClasses: NG_HIDE_IN_PROGRESS_CLASS\n\t        });\n\t      });\n\t    }\n\t  };\n\t}];\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngStyle\n\t * @restrict AC\n\t *\n\t * @description\n\t * The `ngStyle` directive allows you to set CSS style on an HTML element conditionally.\n\t *\n\t * @element ANY\n\t * @param {expression} ngStyle\n\t *\n\t * {@link guide/expression Expression} which evals to an\n\t * object whose keys are CSS style names and values are corresponding values for those CSS\n\t * keys.\n\t *\n\t * Since some CSS style names are not valid keys for an object, they must be quoted.\n\t * See the 'background-color' style in the example below.\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t        <input type=\"button\" value=\"set color\" ng-click=\"myStyle={color:'red'}\">\n\t        <input type=\"button\" value=\"set background\" ng-click=\"myStyle={'background-color':'blue'}\">\n\t        <input type=\"button\" value=\"clear\" ng-click=\"myStyle={}\">\n\t        <br/>\n\t        <span ng-style=\"myStyle\">Sample Text</span>\n\t        <pre>myStyle={{myStyle}}</pre>\n\t     </file>\n\t     <file name=\"style.css\">\n\t       span {\n\t         color: black;\n\t       }\n\t     </file>\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t       var colorSpan = element(by.css('span'));\n\n\t       it('should check ng-style', function() {\n\t         expect(colorSpan.getCssValue('color')).toBe('rgba(0, 0, 0, 1)');\n\t         element(by.css('input[value=\\'set color\\']')).click();\n\t         expect(colorSpan.getCssValue('color')).toBe('rgba(255, 0, 0, 1)');\n\t         element(by.css('input[value=clear]')).click();\n\t         expect(colorSpan.getCssValue('color')).toBe('rgba(0, 0, 0, 1)');\n\t       });\n\t     </file>\n\t   </example>\n\t */\n\tvar ngStyleDirective = ngDirective(function(scope, element, attr) {\n\t  scope.$watch(attr.ngStyle, function ngStyleWatchAction(newStyles, oldStyles) {\n\t    if (oldStyles && (newStyles !== oldStyles)) {\n\t      forEach(oldStyles, function(val, style) { element.css(style, '');});\n\t    }\n\t    if (newStyles) element.css(newStyles);\n\t  }, true);\n\t});\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngSwitch\n\t * @restrict EA\n\t *\n\t * @description\n\t * The `ngSwitch` directive is used to conditionally swap DOM structure on your template based on a scope expression.\n\t * Elements within `ngSwitch` but without `ngSwitchWhen` or `ngSwitchDefault` directives will be preserved at the location\n\t * as specified in the template.\n\t *\n\t * The directive itself works similar to ngInclude, however, instead of downloading template code (or loading it\n\t * from the template cache), `ngSwitch` simply chooses one of the nested elements and makes it visible based on which element\n\t * matches the value obtained from the evaluated expression. In other words, you define a container element\n\t * (where you place the directive), place an expression on the **`on=\"...\"` attribute**\n\t * (or the **`ng-switch=\"...\"` attribute**), define any inner elements inside of the directive and place\n\t * a when attribute per element. The when attribute is used to inform ngSwitch which element to display when the on\n\t * expression is evaluated. If a matching expression is not found via a when attribute then an element with the default\n\t * attribute is displayed.\n\t *\n\t * <div class=\"alert alert-info\">\n\t * Be aware that the attribute values to match against cannot be expressions. They are interpreted\n\t * as literal string values to match against.\n\t * For example, **`ng-switch-when=\"someVal\"`** will match against the string `\"someVal\"` not against the\n\t * value of the expression `$scope.someVal`.\n\t * </div>\n\n\t * @animations\n\t * enter - happens after the ngSwitch contents change and the matched child element is placed inside the container\n\t * leave - happens just after the ngSwitch contents change and just before the former contents are removed from the DOM\n\t *\n\t * @usage\n\t *\n\t * ```\n\t * <ANY ng-switch=\"expression\">\n\t *   <ANY ng-switch-when=\"matchValue1\">...</ANY>\n\t *   <ANY ng-switch-when=\"matchValue2\">...</ANY>\n\t *   <ANY ng-switch-default>...</ANY>\n\t * </ANY>\n\t * ```\n\t *\n\t *\n\t * @scope\n\t * @priority 1200\n\t * @param {*} ngSwitch|on expression to match against <code>ng-switch-when</code>.\n\t * On child elements add:\n\t *\n\t * * `ngSwitchWhen`: the case statement to match against. If match then this\n\t *   case will be displayed. If the same match appears multiple times, all the\n\t *   elements will be displayed.\n\t * * `ngSwitchDefault`: the default case when no other case match. If there\n\t *   are multiple default cases, all of them will be displayed when no other\n\t *   case match.\n\t *\n\t *\n\t * @example\n\t  <example module=\"switchExample\" deps=\"angular-animate.js\" animations=\"true\">\n\t    <file name=\"index.html\">\n\t      <div ng-controller=\"ExampleController\">\n\t        <select ng-model=\"selection\" ng-options=\"item for item in items\">\n\t        </select>\n\t        <code>selection={{selection}}</code>\n\t        <hr/>\n\t        <div class=\"animate-switch-container\"\n\t          ng-switch on=\"selection\">\n\t            <div class=\"animate-switch\" ng-switch-when=\"settings\">Settings Div</div>\n\t            <div class=\"animate-switch\" ng-switch-when=\"home\">Home Span</div>\n\t            <div class=\"animate-switch\" ng-switch-default>default</div>\n\t        </div>\n\t      </div>\n\t    </file>\n\t    <file name=\"script.js\">\n\t      angular.module('switchExample', ['ngAnimate'])\n\t        .controller('ExampleController', ['$scope', function($scope) {\n\t          $scope.items = ['settings', 'home', 'other'];\n\t          $scope.selection = $scope.items[0];\n\t        }]);\n\t    </file>\n\t    <file name=\"animations.css\">\n\t      .animate-switch-container {\n\t        position:relative;\n\t        background:white;\n\t        border:1px solid black;\n\t        height:40px;\n\t        overflow:hidden;\n\t      }\n\n\t      .animate-switch {\n\t        padding:10px;\n\t      }\n\n\t      .animate-switch.ng-animate {\n\t        transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;\n\n\t        position:absolute;\n\t        top:0;\n\t        left:0;\n\t        right:0;\n\t        bottom:0;\n\t      }\n\n\t      .animate-switch.ng-leave.ng-leave-active,\n\t      .animate-switch.ng-enter {\n\t        top:-50px;\n\t      }\n\t      .animate-switch.ng-leave,\n\t      .animate-switch.ng-enter.ng-enter-active {\n\t        top:0;\n\t      }\n\t    </file>\n\t    <file name=\"protractor.js\" type=\"protractor\">\n\t      var switchElem = element(by.css('[ng-switch]'));\n\t      var select = element(by.model('selection'));\n\n\t      it('should start in settings', function() {\n\t        expect(switchElem.getText()).toMatch(/Settings Div/);\n\t      });\n\t      it('should change to home', function() {\n\t        select.all(by.css('option')).get(1).click();\n\t        expect(switchElem.getText()).toMatch(/Home Span/);\n\t      });\n\t      it('should select default', function() {\n\t        select.all(by.css('option')).get(2).click();\n\t        expect(switchElem.getText()).toMatch(/default/);\n\t      });\n\t    </file>\n\t  </example>\n\t */\n\tvar ngSwitchDirective = ['$animate', function($animate) {\n\t  return {\n\t    require: 'ngSwitch',\n\n\t    // asks for $scope to fool the BC controller module\n\t    controller: ['$scope', function ngSwitchController() {\n\t     this.cases = {};\n\t    }],\n\t    link: function(scope, element, attr, ngSwitchController) {\n\t      var watchExpr = attr.ngSwitch || attr.on,\n\t          selectedTranscludes = [],\n\t          selectedElements = [],\n\t          previousLeaveAnimations = [],\n\t          selectedScopes = [];\n\n\t      var spliceFactory = function(array, index) {\n\t          return function() { array.splice(index, 1); };\n\t      };\n\n\t      scope.$watch(watchExpr, function ngSwitchWatchAction(value) {\n\t        var i, ii;\n\t        for (i = 0, ii = previousLeaveAnimations.length; i < ii; ++i) {\n\t          $animate.cancel(previousLeaveAnimations[i]);\n\t        }\n\t        previousLeaveAnimations.length = 0;\n\n\t        for (i = 0, ii = selectedScopes.length; i < ii; ++i) {\n\t          var selected = getBlockNodes(selectedElements[i].clone);\n\t          selectedScopes[i].$destroy();\n\t          var promise = previousLeaveAnimations[i] = $animate.leave(selected);\n\t          promise.then(spliceFactory(previousLeaveAnimations, i));\n\t        }\n\n\t        selectedElements.length = 0;\n\t        selectedScopes.length = 0;\n\n\t        if ((selectedTranscludes = ngSwitchController.cases['!' + value] || ngSwitchController.cases['?'])) {\n\t          forEach(selectedTranscludes, function(selectedTransclude) {\n\t            selectedTransclude.transclude(function(caseElement, selectedScope) {\n\t              selectedScopes.push(selectedScope);\n\t              var anchor = selectedTransclude.element;\n\t              caseElement[caseElement.length++] = document.createComment(' end ngSwitchWhen: ');\n\t              var block = { clone: caseElement };\n\n\t              selectedElements.push(block);\n\t              $animate.enter(caseElement, anchor.parent(), anchor);\n\t            });\n\t          });\n\t        }\n\t      });\n\t    }\n\t  };\n\t}];\n\n\tvar ngSwitchWhenDirective = ngDirective({\n\t  transclude: 'element',\n\t  priority: 1200,\n\t  require: '^ngSwitch',\n\t  multiElement: true,\n\t  link: function(scope, element, attrs, ctrl, $transclude) {\n\t    ctrl.cases['!' + attrs.ngSwitchWhen] = (ctrl.cases['!' + attrs.ngSwitchWhen] || []);\n\t    ctrl.cases['!' + attrs.ngSwitchWhen].push({ transclude: $transclude, element: element });\n\t  }\n\t});\n\n\tvar ngSwitchDefaultDirective = ngDirective({\n\t  transclude: 'element',\n\t  priority: 1200,\n\t  require: '^ngSwitch',\n\t  multiElement: true,\n\t  link: function(scope, element, attr, ctrl, $transclude) {\n\t    ctrl.cases['?'] = (ctrl.cases['?'] || []);\n\t    ctrl.cases['?'].push({ transclude: $transclude, element: element });\n\t   }\n\t});\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngTransclude\n\t * @restrict EAC\n\t *\n\t * @description\n\t * Directive that marks the insertion point for the transcluded DOM of the nearest parent directive that uses transclusion.\n\t *\n\t * Any existing content of the element that this directive is placed on will be removed before the transcluded content is inserted.\n\t *\n\t * @element ANY\n\t *\n\t * @example\n\t   <example module=\"transcludeExample\">\n\t     <file name=\"index.html\">\n\t       <script>\n\t         angular.module('transcludeExample', [])\n\t          .directive('pane', function(){\n\t             return {\n\t               restrict: 'E',\n\t               transclude: true,\n\t               scope: { title:'@' },\n\t               template: '<div style=\"border: 1px solid black;\">' +\n\t                           '<div style=\"background-color: gray\">{{title}}</div>' +\n\t                           '<ng-transclude></ng-transclude>' +\n\t                         '</div>'\n\t             };\n\t         })\n\t         .controller('ExampleController', ['$scope', function($scope) {\n\t           $scope.title = 'Lorem Ipsum';\n\t           $scope.text = 'Neque porro quisquam est qui dolorem ipsum quia dolor...';\n\t         }]);\n\t       </script>\n\t       <div ng-controller=\"ExampleController\">\n\t         <input ng-model=\"title\" aria-label=\"title\"> <br/>\n\t         <textarea ng-model=\"text\" aria-label=\"text\"></textarea> <br/>\n\t         <pane title=\"{{title}}\">{{text}}</pane>\n\t       </div>\n\t     </file>\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t        it('should have transcluded', function() {\n\t          var titleElement = element(by.model('title'));\n\t          titleElement.clear();\n\t          titleElement.sendKeys('TITLE');\n\t          var textElement = element(by.model('text'));\n\t          textElement.clear();\n\t          textElement.sendKeys('TEXT');\n\t          expect(element(by.binding('title')).getText()).toEqual('TITLE');\n\t          expect(element(by.binding('text')).getText()).toEqual('TEXT');\n\t        });\n\t     </file>\n\t   </example>\n\t *\n\t */\n\tvar ngTranscludeDirective = ngDirective({\n\t  restrict: 'EAC',\n\t  link: function($scope, $element, $attrs, controller, $transclude) {\n\t    if (!$transclude) {\n\t      throw minErr('ngTransclude')('orphan',\n\t       'Illegal use of ngTransclude directive in the template! ' +\n\t       'No parent directive that requires a transclusion found. ' +\n\t       'Element: {0}',\n\t       startingTag($element));\n\t    }\n\n\t    $transclude(function(clone) {\n\t      $element.empty();\n\t      $element.append(clone);\n\t    });\n\t  }\n\t});\n\n\t/**\n\t * @ngdoc directive\n\t * @name script\n\t * @restrict E\n\t *\n\t * @description\n\t * Load the content of a `<script>` element into {@link ng.$templateCache `$templateCache`}, so that the\n\t * template can be used by {@link ng.directive:ngInclude `ngInclude`},\n\t * {@link ngRoute.directive:ngView `ngView`}, or {@link guide/directive directives}. The type of the\n\t * `<script>` element must be specified as `text/ng-template`, and a cache name for the template must be\n\t * assigned through the element's `id`, which can then be used as a directive's `templateUrl`.\n\t *\n\t * @param {string} type Must be set to `'text/ng-template'`.\n\t * @param {string} id Cache name of the template.\n\t *\n\t * @example\n\t  <example>\n\t    <file name=\"index.html\">\n\t      <script type=\"text/ng-template\" id=\"/tpl.html\">\n\t        Content of the template.\n\t      </script>\n\n\t      <a ng-click=\"currentTpl='/tpl.html'\" id=\"tpl-link\">Load inlined template</a>\n\t      <div id=\"tpl-content\" ng-include src=\"currentTpl\"></div>\n\t    </file>\n\t    <file name=\"protractor.js\" type=\"protractor\">\n\t      it('should load template defined inside script tag', function() {\n\t        element(by.css('#tpl-link')).click();\n\t        expect(element(by.css('#tpl-content')).getText()).toMatch(/Content of the template/);\n\t      });\n\t    </file>\n\t  </example>\n\t */\n\tvar scriptDirective = ['$templateCache', function($templateCache) {\n\t  return {\n\t    restrict: 'E',\n\t    terminal: true,\n\t    compile: function(element, attr) {\n\t      if (attr.type == 'text/ng-template') {\n\t        var templateUrl = attr.id,\n\t            text = element[0].text;\n\n\t        $templateCache.put(templateUrl, text);\n\t      }\n\t    }\n\t  };\n\t}];\n\n\tvar noopNgModelController = { $setViewValue: noop, $render: noop };\n\n\tfunction chromeHack(optionElement) {\n\t  // Workaround for https://code.google.com/p/chromium/issues/detail?id=381459\n\t  // Adding an <option selected=\"selected\"> element to a <select required=\"required\"> should\n\t  // automatically select the new element\n\t  if (optionElement[0].hasAttribute('selected')) {\n\t    optionElement[0].selected = true;\n\t  }\n\t}\n\n\t/**\n\t * @ngdoc type\n\t * @name  select.SelectController\n\t * @description\n\t * The controller for the `<select>` directive. This provides support for reading\n\t * and writing the selected value(s) of the control and also coordinates dynamically\n\t * added `<option>` elements, perhaps by an `ngRepeat` directive.\n\t */\n\tvar SelectController =\n\t        ['$element', '$scope', '$attrs', function($element, $scope, $attrs) {\n\n\t  var self = this,\n\t      optionsMap = new HashMap();\n\n\t  // If the ngModel doesn't get provided then provide a dummy noop version to prevent errors\n\t  self.ngModelCtrl = noopNgModelController;\n\n\t  // The \"unknown\" option is one that is prepended to the list if the viewValue\n\t  // does not match any of the options. When it is rendered the value of the unknown\n\t  // option is '? XXX ?' where XXX is the hashKey of the value that is not known.\n\t  //\n\t  // We can't just jqLite('<option>') since jqLite is not smart enough\n\t  // to create it in <select> and IE barfs otherwise.\n\t  self.unknownOption = jqLite(document.createElement('option'));\n\t  self.renderUnknownOption = function(val) {\n\t    var unknownVal = '? ' + hashKey(val) + ' ?';\n\t    self.unknownOption.val(unknownVal);\n\t    $element.prepend(self.unknownOption);\n\t    $element.val(unknownVal);\n\t  };\n\n\t  $scope.$on('$destroy', function() {\n\t    // disable unknown option so that we don't do work when the whole select is being destroyed\n\t    self.renderUnknownOption = noop;\n\t  });\n\n\t  self.removeUnknownOption = function() {\n\t    if (self.unknownOption.parent()) self.unknownOption.remove();\n\t  };\n\n\n\t  // Read the value of the select control, the implementation of this changes depending\n\t  // upon whether the select can have multiple values and whether ngOptions is at work.\n\t  self.readValue = function readSingleValue() {\n\t    self.removeUnknownOption();\n\t    return $element.val();\n\t  };\n\n\n\t  // Write the value to the select control, the implementation of this changes depending\n\t  // upon whether the select can have multiple values and whether ngOptions is at work.\n\t  self.writeValue = function writeSingleValue(value) {\n\t    if (self.hasOption(value)) {\n\t      self.removeUnknownOption();\n\t      $element.val(value);\n\t      if (value === '') self.emptyOption.prop('selected', true); // to make IE9 happy\n\t    } else {\n\t      if (value == null && self.emptyOption) {\n\t        self.removeUnknownOption();\n\t        $element.val('');\n\t      } else {\n\t        self.renderUnknownOption(value);\n\t      }\n\t    }\n\t  };\n\n\n\t  // Tell the select control that an option, with the given value, has been added\n\t  self.addOption = function(value, element) {\n\t    assertNotHasOwnProperty(value, '\"option value\"');\n\t    if (value === '') {\n\t      self.emptyOption = element;\n\t    }\n\t    var count = optionsMap.get(value) || 0;\n\t    optionsMap.put(value, count + 1);\n\t    self.ngModelCtrl.$render();\n\t    chromeHack(element);\n\t  };\n\n\t  // Tell the select control that an option, with the given value, has been removed\n\t  self.removeOption = function(value) {\n\t    var count = optionsMap.get(value);\n\t    if (count) {\n\t      if (count === 1) {\n\t        optionsMap.remove(value);\n\t        if (value === '') {\n\t          self.emptyOption = undefined;\n\t        }\n\t      } else {\n\t        optionsMap.put(value, count - 1);\n\t      }\n\t    }\n\t  };\n\n\t  // Check whether the select control has an option matching the given value\n\t  self.hasOption = function(value) {\n\t    return !!optionsMap.get(value);\n\t  };\n\n\n\t  self.registerOption = function(optionScope, optionElement, optionAttrs, interpolateValueFn, interpolateTextFn) {\n\n\t    if (interpolateValueFn) {\n\t      // The value attribute is interpolated\n\t      var oldVal;\n\t      optionAttrs.$observe('value', function valueAttributeObserveAction(newVal) {\n\t        if (isDefined(oldVal)) {\n\t          self.removeOption(oldVal);\n\t        }\n\t        oldVal = newVal;\n\t        self.addOption(newVal, optionElement);\n\t      });\n\t    } else if (interpolateTextFn) {\n\t      // The text content is interpolated\n\t      optionScope.$watch(interpolateTextFn, function interpolateWatchAction(newVal, oldVal) {\n\t        optionAttrs.$set('value', newVal);\n\t        if (oldVal !== newVal) {\n\t          self.removeOption(oldVal);\n\t        }\n\t        self.addOption(newVal, optionElement);\n\t      });\n\t    } else {\n\t      // The value attribute is static\n\t      self.addOption(optionAttrs.value, optionElement);\n\t    }\n\n\t    optionElement.on('$destroy', function() {\n\t      self.removeOption(optionAttrs.value);\n\t      self.ngModelCtrl.$render();\n\t    });\n\t  };\n\t}];\n\n\t/**\n\t * @ngdoc directive\n\t * @name select\n\t * @restrict E\n\t *\n\t * @description\n\t * HTML `SELECT` element with angular data-binding.\n\t *\n\t * The `select` directive is used together with {@link ngModel `ngModel`} to provide data-binding\n\t * between the scope and the `<select>` control (including setting default values).\n\t * Ìt also handles dynamic `<option>` elements, which can be added using the {@link ngRepeat `ngRepeat}` or\n\t * {@link ngOptions `ngOptions`} directives.\n\t *\n\t * When an item in the `<select>` menu is selected, the value of the selected option will be bound\n\t * to the model identified by the `ngModel` directive. With static or repeated options, this is\n\t * the content of the `value` attribute or the textContent of the `<option>`, if the value attribute is missing.\n\t * If you want dynamic value attributes, you can use interpolation inside the value attribute.\n\t *\n\t * <div class=\"alert alert-warning\">\n\t * Note that the value of a `select` directive used without `ngOptions` is always a string.\n\t * When the model needs to be bound to a non-string value, you must either explictly convert it\n\t * using a directive (see example below) or use `ngOptions` to specify the set of options.\n\t * This is because an option element can only be bound to string values at present.\n\t * </div>\n\t *\n\t * If the viewValue of `ngModel` does not match any of the options, then the control\n\t * will automatically add an \"unknown\" option, which it then removes when the mismatch is resolved.\n\t *\n\t * Optionally, a single hard-coded `<option>` element, with the value set to an empty string, can\n\t * be nested into the `<select>` element. This element will then represent the `null` or \"not selected\"\n\t * option. See example below for demonstration.\n\t *\n\t * <div class=\"alert alert-info\">\n\t * In many cases, `ngRepeat` can be used on `<option>` elements instead of {@link ng.directive:ngOptions\n\t * ngOptions} to achieve a similar result. However, `ngOptions` provides some benefits, such as\n\t * more flexibility in how the `<select>`'s model is assigned via the `select` **`as`** part of the\n\t * comprehension expression, and additionally in reducing memory and increasing speed by not creating\n\t * a new scope for each repeated instance.\n\t * </div>\n\t *\n\t *\n\t * @param {string} ngModel Assignable angular expression to data-bind to.\n\t * @param {string=} name Property name of the form under which the control is published.\n\t * @param {string=} multiple Allows multiple options to be selected. The selected values will be\n\t *     bound to the model as an array.\n\t * @param {string=} required Sets `required` validation error key if the value is not entered.\n\t * @param {string=} ngRequired Adds required attribute and required validation constraint to\n\t * the element when the ngRequired expression evaluates to true. Use ngRequired instead of required\n\t * when you want to data-bind to the required attribute.\n\t * @param {string=} ngChange Angular expression to be executed when selected option(s) changes due to user\n\t *    interaction with the select element.\n\t * @param {string=} ngOptions sets the options that the select is populated with and defines what is\n\t * set on the model on selection. See {@link ngOptions `ngOptions`}.\n\t *\n\t * @example\n\t * ### Simple `select` elements with static options\n\t *\n\t * <example name=\"static-select\" module=\"staticSelect\">\n\t * <file name=\"index.html\">\n\t * <div ng-controller=\"ExampleController\">\n\t *   <form name=\"myForm\">\n\t *     <label for=\"singleSelect\"> Single select: </label><br>\n\t *     <select name=\"singleSelect\" ng-model=\"data.singleSelect\">\n\t *       <option value=\"option-1\">Option 1</option>\n\t *       <option value=\"option-2\">Option 2</option>\n\t *     </select><br>\n\t *\n\t *     <label for=\"singleSelect\"> Single select with \"not selected\" option and dynamic option values: </label><br>\n\t *     <select name=\"singleSelect\" id=\"singleSelect\" ng-model=\"data.singleSelect\">\n\t *       <option value=\"\">---Please select---</option> <!-- not selected / blank option -->\n\t *       <option value=\"{{data.option1}}\">Option 1</option> <!-- interpolation -->\n\t *       <option value=\"option-2\">Option 2</option>\n\t *     </select><br>\n\t *     <button ng-click=\"forceUnknownOption()\">Force unknown option</button><br>\n\t *     <tt>singleSelect = {{data.singleSelect}}</tt>\n\t *\n\t *     <hr>\n\t *     <label for=\"multipleSelect\"> Multiple select: </label><br>\n\t *     <select name=\"multipleSelect\" id=\"multipleSelect\" ng-model=\"data.multipleSelect\" multiple>\n\t *       <option value=\"option-1\">Option 1</option>\n\t *       <option value=\"option-2\">Option 2</option>\n\t *       <option value=\"option-3\">Option 3</option>\n\t *     </select><br>\n\t *     <tt>multipleSelect = {{data.multipleSelect}}</tt><br/>\n\t *   </form>\n\t * </div>\n\t * </file>\n\t * <file name=\"app.js\">\n\t *  angular.module('staticSelect', [])\n\t *    .controller('ExampleController', ['$scope', function($scope) {\n\t *      $scope.data = {\n\t *       singleSelect: null,\n\t *       multipleSelect: [],\n\t *       option1: 'option-1',\n\t *      };\n\t *\n\t *      $scope.forceUnknownOption = function() {\n\t *        $scope.data.singleSelect = 'nonsense';\n\t *      };\n\t *   }]);\n\t * </file>\n\t *</example>\n\t *\n\t * ### Using `ngRepeat` to generate `select` options\n\t * <example name=\"ngrepeat-select\" module=\"ngrepeatSelect\">\n\t * <file name=\"index.html\">\n\t * <div ng-controller=\"ExampleController\">\n\t *   <form name=\"myForm\">\n\t *     <label for=\"repeatSelect\"> Repeat select: </label>\n\t *     <select name=\"repeatSelect\" id=\"repeatSelect\" ng-model=\"data.repeatSelect\">\n\t *       <option ng-repeat=\"option in data.availableOptions\" value=\"{{option.id}}\">{{option.name}}</option>\n\t *     </select>\n\t *   </form>\n\t *   <hr>\n\t *   <tt>repeatSelect = {{data.repeatSelect}}</tt><br/>\n\t * </div>\n\t * </file>\n\t * <file name=\"app.js\">\n\t *  angular.module('ngrepeatSelect', [])\n\t *    .controller('ExampleController', ['$scope', function($scope) {\n\t *      $scope.data = {\n\t *       repeatSelect: null,\n\t *       availableOptions: [\n\t *         {id: '1', name: 'Option A'},\n\t *         {id: '2', name: 'Option B'},\n\t *         {id: '3', name: 'Option C'}\n\t *       ],\n\t *      };\n\t *   }]);\n\t * </file>\n\t *</example>\n\t *\n\t *\n\t * ### Using `select` with `ngOptions` and setting a default value\n\t * See the {@link ngOptions ngOptions documentation} for more `ngOptions` usage examples.\n\t *\n\t * <example name=\"select-with-default-values\" module=\"defaultValueSelect\">\n\t * <file name=\"index.html\">\n\t * <div ng-controller=\"ExampleController\">\n\t *   <form name=\"myForm\">\n\t *     <label for=\"mySelect\">Make a choice:</label>\n\t *     <select name=\"mySelect\" id=\"mySelect\"\n\t *       ng-options=\"option.name for option in data.availableOptions track by option.id\"\n\t *       ng-model=\"data.selectedOption\"></select>\n\t *   </form>\n\t *   <hr>\n\t *   <tt>option = {{data.selectedOption}}</tt><br/>\n\t * </div>\n\t * </file>\n\t * <file name=\"app.js\">\n\t *  angular.module('defaultValueSelect', [])\n\t *    .controller('ExampleController', ['$scope', function($scope) {\n\t *      $scope.data = {\n\t *       availableOptions: [\n\t *         {id: '1', name: 'Option A'},\n\t *         {id: '2', name: 'Option B'},\n\t *         {id: '3', name: 'Option C'}\n\t *       ],\n\t *       selectedOption: {id: '3', name: 'Option C'} //This sets the default value of the select in the ui\n\t *       };\n\t *   }]);\n\t * </file>\n\t *</example>\n\t *\n\t *\n\t * ### Binding `select` to a non-string value via `ngModel` parsing / formatting\n\t *\n\t * <example name=\"select-with-non-string-options\" module=\"nonStringSelect\">\n\t *   <file name=\"index.html\">\n\t *     <select ng-model=\"model.id\" convert-to-number>\n\t *       <option value=\"0\">Zero</option>\n\t *       <option value=\"1\">One</option>\n\t *       <option value=\"2\">Two</option>\n\t *     </select>\n\t *     {{ model }}\n\t *   </file>\n\t *   <file name=\"app.js\">\n\t *     angular.module('nonStringSelect', [])\n\t *       .run(function($rootScope) {\n\t *         $rootScope.model = { id: 2 };\n\t *       })\n\t *       .directive('convertToNumber', function() {\n\t *         return {\n\t *           require: 'ngModel',\n\t *           link: function(scope, element, attrs, ngModel) {\n\t *             ngModel.$parsers.push(function(val) {\n\t *               return parseInt(val, 10);\n\t *             });\n\t *             ngModel.$formatters.push(function(val) {\n\t *               return '' + val;\n\t *             });\n\t *           }\n\t *         };\n\t *       });\n\t *   </file>\n\t *   <file name=\"protractor.js\" type=\"protractor\">\n\t *     it('should initialize to model', function() {\n\t *       var select = element(by.css('select'));\n\t *       expect(element(by.model('model.id')).$('option:checked').getText()).toEqual('Two');\n\t *     });\n\t *   </file>\n\t * </example>\n\t *\n\t */\n\tvar selectDirective = function() {\n\n\t  return {\n\t    restrict: 'E',\n\t    require: ['select', '?ngModel'],\n\t    controller: SelectController,\n\t    priority: 1,\n\t    link: {\n\t      pre: selectPreLink\n\t    }\n\t  };\n\n\t  function selectPreLink(scope, element, attr, ctrls) {\n\n\t      // if ngModel is not defined, we don't need to do anything\n\t      var ngModelCtrl = ctrls[1];\n\t      if (!ngModelCtrl) return;\n\n\t      var selectCtrl = ctrls[0];\n\n\t      selectCtrl.ngModelCtrl = ngModelCtrl;\n\n\t      // We delegate rendering to the `writeValue` method, which can be changed\n\t      // if the select can have multiple selected values or if the options are being\n\t      // generated by `ngOptions`\n\t      ngModelCtrl.$render = function() {\n\t        selectCtrl.writeValue(ngModelCtrl.$viewValue);\n\t      };\n\n\t      // When the selected item(s) changes we delegate getting the value of the select control\n\t      // to the `readValue` method, which can be changed if the select can have multiple\n\t      // selected values or if the options are being generated by `ngOptions`\n\t      element.on('change', function() {\n\t        scope.$apply(function() {\n\t          ngModelCtrl.$setViewValue(selectCtrl.readValue());\n\t        });\n\t      });\n\n\t      // If the select allows multiple values then we need to modify how we read and write\n\t      // values from and to the control; also what it means for the value to be empty and\n\t      // we have to add an extra watch since ngModel doesn't work well with arrays - it\n\t      // doesn't trigger rendering if only an item in the array changes.\n\t      if (attr.multiple) {\n\n\t        // Read value now needs to check each option to see if it is selected\n\t        selectCtrl.readValue = function readMultipleValue() {\n\t          var array = [];\n\t          forEach(element.find('option'), function(option) {\n\t            if (option.selected) {\n\t              array.push(option.value);\n\t            }\n\t          });\n\t          return array;\n\t        };\n\n\t        // Write value now needs to set the selected property of each matching option\n\t        selectCtrl.writeValue = function writeMultipleValue(value) {\n\t          var items = new HashMap(value);\n\t          forEach(element.find('option'), function(option) {\n\t            option.selected = isDefined(items.get(option.value));\n\t          });\n\t        };\n\n\t        // we have to do it on each watch since ngModel watches reference, but\n\t        // we need to work of an array, so we need to see if anything was inserted/removed\n\t        var lastView, lastViewRef = NaN;\n\t        scope.$watch(function selectMultipleWatch() {\n\t          if (lastViewRef === ngModelCtrl.$viewValue && !equals(lastView, ngModelCtrl.$viewValue)) {\n\t            lastView = shallowCopy(ngModelCtrl.$viewValue);\n\t            ngModelCtrl.$render();\n\t          }\n\t          lastViewRef = ngModelCtrl.$viewValue;\n\t        });\n\n\t        // If we are a multiple select then value is now a collection\n\t        // so the meaning of $isEmpty changes\n\t        ngModelCtrl.$isEmpty = function(value) {\n\t          return !value || value.length === 0;\n\t        };\n\n\t      }\n\t    }\n\t};\n\n\n\t// The option directive is purely designed to communicate the existence (or lack of)\n\t// of dynamically created (and destroyed) option elements to their containing select\n\t// directive via its controller.\n\tvar optionDirective = ['$interpolate', function($interpolate) {\n\t  return {\n\t    restrict: 'E',\n\t    priority: 100,\n\t    compile: function(element, attr) {\n\n\t      if (isDefined(attr.value)) {\n\t        // If the value attribute is defined, check if it contains an interpolation\n\t        var interpolateValueFn = $interpolate(attr.value, true);\n\t      } else {\n\t        // If the value attribute is not defined then we fall back to the\n\t        // text content of the option element, which may be interpolated\n\t        var interpolateTextFn = $interpolate(element.text(), true);\n\t        if (!interpolateTextFn) {\n\t          attr.$set('value', element.text());\n\t        }\n\t      }\n\n\t      return function(scope, element, attr) {\n\n\t        // This is an optimization over using ^^ since we don't want to have to search\n\t        // all the way to the root of the DOM for every single option element\n\t        var selectCtrlName = '$selectController',\n\t            parent = element.parent(),\n\t            selectCtrl = parent.data(selectCtrlName) ||\n\t              parent.parent().data(selectCtrlName); // in case we are in optgroup\n\n\t        if (selectCtrl) {\n\t          selectCtrl.registerOption(scope, element, attr, interpolateValueFn, interpolateTextFn);\n\t        }\n\t      };\n\t    }\n\t  };\n\t}];\n\n\tvar styleDirective = valueFn({\n\t  restrict: 'E',\n\t  terminal: false\n\t});\n\n\tvar requiredDirective = function() {\n\t  return {\n\t    restrict: 'A',\n\t    require: '?ngModel',\n\t    link: function(scope, elm, attr, ctrl) {\n\t      if (!ctrl) return;\n\t      attr.required = true; // force truthy in case we are on non input element\n\n\t      ctrl.$validators.required = function(modelValue, viewValue) {\n\t        return !attr.required || !ctrl.$isEmpty(viewValue);\n\t      };\n\n\t      attr.$observe('required', function() {\n\t        ctrl.$validate();\n\t      });\n\t    }\n\t  };\n\t};\n\n\n\tvar patternDirective = function() {\n\t  return {\n\t    restrict: 'A',\n\t    require: '?ngModel',\n\t    link: function(scope, elm, attr, ctrl) {\n\t      if (!ctrl) return;\n\n\t      var regexp, patternExp = attr.ngPattern || attr.pattern;\n\t      attr.$observe('pattern', function(regex) {\n\t        if (isString(regex) && regex.length > 0) {\n\t          regex = new RegExp('^' + regex + '$');\n\t        }\n\n\t        if (regex && !regex.test) {\n\t          throw minErr('ngPattern')('noregexp',\n\t            'Expected {0} to be a RegExp but was {1}. Element: {2}', patternExp,\n\t            regex, startingTag(elm));\n\t        }\n\n\t        regexp = regex || undefined;\n\t        ctrl.$validate();\n\t      });\n\n\t      ctrl.$validators.pattern = function(modelValue, viewValue) {\n\t        // HTML5 pattern constraint validates the input value, so we validate the viewValue\n\t        return ctrl.$isEmpty(viewValue) || isUndefined(regexp) || regexp.test(viewValue);\n\t      };\n\t    }\n\t  };\n\t};\n\n\n\tvar maxlengthDirective = function() {\n\t  return {\n\t    restrict: 'A',\n\t    require: '?ngModel',\n\t    link: function(scope, elm, attr, ctrl) {\n\t      if (!ctrl) return;\n\n\t      var maxlength = -1;\n\t      attr.$observe('maxlength', function(value) {\n\t        var intVal = toInt(value);\n\t        maxlength = isNaN(intVal) ? -1 : intVal;\n\t        ctrl.$validate();\n\t      });\n\t      ctrl.$validators.maxlength = function(modelValue, viewValue) {\n\t        return (maxlength < 0) || ctrl.$isEmpty(viewValue) || (viewValue.length <= maxlength);\n\t      };\n\t    }\n\t  };\n\t};\n\n\tvar minlengthDirective = function() {\n\t  return {\n\t    restrict: 'A',\n\t    require: '?ngModel',\n\t    link: function(scope, elm, attr, ctrl) {\n\t      if (!ctrl) return;\n\n\t      var minlength = 0;\n\t      attr.$observe('minlength', function(value) {\n\t        minlength = toInt(value) || 0;\n\t        ctrl.$validate();\n\t      });\n\t      ctrl.$validators.minlength = function(modelValue, viewValue) {\n\t        return ctrl.$isEmpty(viewValue) || viewValue.length >= minlength;\n\t      };\n\t    }\n\t  };\n\t};\n\n\tif (window.angular.bootstrap) {\n\t  //AngularJS is already loaded, so we can return here...\n\t  console.log('WARNING: Tried to load angular more than once.');\n\t  return;\n\t}\n\n\t//try to bind to jquery now so that one can write jqLite(document).ready()\n\t//but we will rebind on bootstrap again.\n\tbindJQuery();\n\n\tpublishExternalAPI(angular);\n\n\tangular.module(\"ngLocale\", [], [\"$provide\", function($provide) {\n\tvar PLURAL_CATEGORY = {ZERO: \"zero\", ONE: \"one\", TWO: \"two\", FEW: \"few\", MANY: \"many\", OTHER: \"other\"};\n\tfunction getDecimals(n) {\n\t  n = n + '';\n\t  var i = n.indexOf('.');\n\t  return (i == -1) ? 0 : n.length - i - 1;\n\t}\n\n\tfunction getVF(n, opt_precision) {\n\t  var v = opt_precision;\n\n\t  if (undefined === v) {\n\t    v = Math.min(getDecimals(n), 3);\n\t  }\n\n\t  var base = Math.pow(10, v);\n\t  var f = ((n * base) | 0) % base;\n\t  return {v: v, f: f};\n\t}\n\n\t$provide.value(\"$locale\", {\n\t  \"DATETIME_FORMATS\": {\n\t    \"AMPMS\": [\n\t      \"AM\",\n\t      \"PM\"\n\t    ],\n\t    \"DAY\": [\n\t      \"Sunday\",\n\t      \"Monday\",\n\t      \"Tuesday\",\n\t      \"Wednesday\",\n\t      \"Thursday\",\n\t      \"Friday\",\n\t      \"Saturday\"\n\t    ],\n\t    \"ERANAMES\": [\n\t      \"Before Christ\",\n\t      \"Anno Domini\"\n\t    ],\n\t    \"ERAS\": [\n\t      \"BC\",\n\t      \"AD\"\n\t    ],\n\t    \"FIRSTDAYOFWEEK\": 6,\n\t    \"MONTH\": [\n\t      \"January\",\n\t      \"February\",\n\t      \"March\",\n\t      \"April\",\n\t      \"May\",\n\t      \"June\",\n\t      \"July\",\n\t      \"August\",\n\t      \"September\",\n\t      \"October\",\n\t      \"November\",\n\t      \"December\"\n\t    ],\n\t    \"SHORTDAY\": [\n\t      \"Sun\",\n\t      \"Mon\",\n\t      \"Tue\",\n\t      \"Wed\",\n\t      \"Thu\",\n\t      \"Fri\",\n\t      \"Sat\"\n\t    ],\n\t    \"SHORTMONTH\": [\n\t      \"Jan\",\n\t      \"Feb\",\n\t      \"Mar\",\n\t      \"Apr\",\n\t      \"May\",\n\t      \"Jun\",\n\t      \"Jul\",\n\t      \"Aug\",\n\t      \"Sep\",\n\t      \"Oct\",\n\t      \"Nov\",\n\t      \"Dec\"\n\t    ],\n\t    \"WEEKENDRANGE\": [\n\t      5,\n\t      6\n\t    ],\n\t    \"fullDate\": \"EEEE, MMMM d, y\",\n\t    \"longDate\": \"MMMM d, y\",\n\t    \"medium\": \"MMM d, y h:mm:ss a\",\n\t    \"mediumDate\": \"MMM d, y\",\n\t    \"mediumTime\": \"h:mm:ss a\",\n\t    \"short\": \"M/d/yy h:mm a\",\n\t    \"shortDate\": \"M/d/yy\",\n\t    \"shortTime\": \"h:mm a\"\n\t  },\n\t  \"NUMBER_FORMATS\": {\n\t    \"CURRENCY_SYM\": \"$\",\n\t    \"DECIMAL_SEP\": \".\",\n\t    \"GROUP_SEP\": \",\",\n\t    \"PATTERNS\": [\n\t      {\n\t        \"gSize\": 3,\n\t        \"lgSize\": 3,\n\t        \"maxFrac\": 3,\n\t        \"minFrac\": 0,\n\t        \"minInt\": 1,\n\t        \"negPre\": \"-\",\n\t        \"negSuf\": \"\",\n\t        \"posPre\": \"\",\n\t        \"posSuf\": \"\"\n\t      },\n\t      {\n\t        \"gSize\": 3,\n\t        \"lgSize\": 3,\n\t        \"maxFrac\": 2,\n\t        \"minFrac\": 2,\n\t        \"minInt\": 1,\n\t        \"negPre\": \"-\\u00a4\",\n\t        \"negSuf\": \"\",\n\t        \"posPre\": \"\\u00a4\",\n\t        \"posSuf\": \"\"\n\t      }\n\t    ]\n\t  },\n\t  \"id\": \"en-us\",\n\t  \"pluralCat\": function(n, opt_precision) {  var i = n | 0;  var vf = getVF(n, opt_precision);  if (i == 1 && vf.v == 0) {    return PLURAL_CATEGORY.ONE;  }  return PLURAL_CATEGORY.OTHER;}\n\t});\n\t}]);\n\n\t  jqLite(document).ready(function() {\n\t    angularInit(document, bootstrap);\n\t  });\n\n\t})(window, document);\n\n\t!window.angular.$$csp().noInlineStyle && window.angular.element(document.head).prepend('<style type=\"text/css\">@charset \"UTF-8\";[ng\\\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}</style>');\n\n/***/ },\n/* 11 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\n\tmodule.exports = angular.module('app', []);\n\n\tfunction printMessage() {\n\t  var status = arguments.length <= 0 || arguments[0] === undefined ? 'working' : arguments[0];\n\t  // default params\n\t  var message = 'ES6'; // let\n\t  console.log(message + ' is ' + status); // template string\n\t}\n\tprintMessage();\n\n/***/ }\n/******/ ]);"
  },
  {
    "path": "Part1/app/core/bootstrap.js",
    "content": "/*jshint browser:true */\n'use strict';\n\nrequire('./vendor.js')();\nvar appModule = require('../index');\n\nangular.element(document).ready(function () {\n  angular.bootstrap(document, [appModule.name], {\n    //strictDi: true\n  });\n});"
  },
  {
    "path": "Part1/app/core/vendor.js",
    "content": "module.exports = function () {\n  /* Styles */\n  require('../index.scss');\n\n  /* JS */\n  require('angular');\n};"
  },
  {
    "path": "Part1/app/index.html",
    "content": "<!doctype html>\n<html lang=\"en\">\n<head>\n  <meta charset=\"UTF-8\">\n  <title>Webpack Angular Part 1</title>\n</head>\n<body>\n<p>Angular is working: {{1 + 1 === 2}}</p>\n\n<script src=\"bundle.js\"></script>\n</body>\n</html>"
  },
  {
    "path": "Part1/app/index.js",
    "content": "'use strict';\n\nmodule.exports = angular.module('app', []);\n\nfunction printMessage (status='working') {\t\t// default params\n  let message = 'ES6';\t\t\t\t\t            \t// let\n  console.log(`${message} is ${status}`);\t    // template string\n}\nprintMessage();"
  },
  {
    "path": "Part1/app/index.scss",
    "content": "body {\n  background-color: red;\n}"
  },
  {
    "path": "Part1/package.json",
    "content": "{\n  \"name\": \"WebpackAngular\",\n  \"version\": \"0.4.0\",\n  \"description\": \"Webpack Angular Demo: Setup\",\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"node node_modules/.bin/webpack-dev-server --content-base app --hot\",\n    \"start-win\": \"node_modules\\\\.bin\\\\webpack-dev-server.cmd -—content-base app --hot\"\n  },\n  \"author\": \"Shawn McKay <shawn.j.mckay@gmail.com>\",\n  \"license\": \"ISC\",\n  \"devDependencies\": {\n    \"babel-core\": \"6.4.0\",\n    \"babel-loader\": \"6.2.1\",\n    \"css-loader\": \"0.23.1\",\n    \"jshint\": \"2.8.0\",\n    \"jshint-loader\": \"0.8.3\",\n    \"ng-annotate-loader\": \"0.1.0\",\n    \"node-sass\": \"3.4.2\",\n    \"sass-loader\": \"3.1.2\",\n    \"style-loader\": \"0.13.0\",\n    \"webpack\": \"1.12.11\",\n    \"webpack-dev-server\": \"1.14.1\",\n    \"babel-preset-es2015\": \"6.3.13\"\n  },\n  \"dependencies\": {\n    \"angular\": \"^1.4.8\",\n\n  }\n}\n"
  },
  {
    "path": "Part1/webpack.config.js",
    "content": "'use strict';\nvar webpack = require('webpack'),\n  path = require('path');\n\n// PATHS\nvar PATHS = {\n  app: __dirname + '/app',\n  bower: __dirname + '/app/bower_components'\n};\n\nmodule.exports = {\n  context: PATHS.app,\n  entry: {\n    app: ['webpack/hot/dev-server', './core/bootstrap.js']\n  },\n  output: {\n    path: PATHS.app,\n    filename: 'bundle.js'\n  },\n  module: {\n    loaders: [{\n      test: /\\.scss$/,\n      loader: 'style!css!sass'\n    }, {\n      test: /\\.js$/,\n      loader: 'ng-annotate!babel?presets[]=es2015!jshint',\n      exclude: /node_modules|bower_components/\n    }]\n  },\n  plugins: [\n    new webpack.HotModuleReplacementPlugin()\n  ]\n};\n"
  },
  {
    "path": "Part2/.jshintrc",
    "content": "{\n  \"esnext\": true,\n  \"node\": true,\n  \"globals\": {\n    \"angular\": true,\n    \"console\": true\n  }\n}"
  },
  {
    "path": "Part2/README.md",
    "content": "#####Part 2\n#Complex Webpack Dependencies\n\nIf you're unfamiliar with Webpack, you might want to checkout [Part 1](http://shmck.com/webpack-angular-part-1) of this Article on setting up a project with Webpack. This demo will continue from the previous article's [code-base](https://github.com/ShMcK/WebpackAngularDemos/tree/master/Part1).\n\nIn this article we'll look at loading different types of dependencies: scripts, styles, fonts, etc. using Webpack. We'll also compare and contrast loading modules from NPM & Bower.\n\n##LumX\n  \n[LumX](http://ui.lumapps.com/) is a great Material Design based CSS Framework built for Angular. \n\nI would argue LumX looks better in both style and code-style when compared to [angular-material](https://material.angularjs.org/). Again, that's largely a matter of opinion. \n\nLumX will make a good example as it comes with a lot of different types of dependencies: scripts, styles, fonts. Let's see how Webpack can combine them into a single `bundle.js` file. \n\n## Bower Setup\n\nMake a `bower.json` file. \n\n```shell\nbower init\n```\nGet some practice pressing enter really fast and agree to all the defaults.\n\nCreate a file called `.bowerrc` in the root. This will move all our downloaded bower components into the specified directory.\n\n```json\n{\n  \"directory\": \"app/bower_components\"\n}\n```\n\nWe're going to need `lumx`, install it.\n\n```shell\nbower install --save lumx\n```\n\nWe should let Angular know we're going to be using Lumx.\n\n/app/index.js\n\n```js\nmodule.exports = angular.module('app', [\n  'lumx'\n]);\n```\n\nLumX comes with a party of dependencies. Look in `app/bower_components` and you'll see them all. \n\n```\nbower_components\n├── angular\n├── bourbon\t\t\t// Sass mixins\n├── jquery\n├── lumx\t\t\t\t\n├── mdi\t\t\t\t// Material Design Icons\n├── moment \t\t\t// time\n└── velocity\t\t\t// jQuery animations\n```\n\nBad news at this point.\n\n> Webpack Prefers NPM over Bower.\n\nDon't worry, it'll work out.\n\n## NPM vs. Bower\n\nIt's true, Webpack can handle both CommonJS & AMD (asynchronous) modules. But Webpack has a preference: CommonJS. \n\nLet's compare NPM and Bower for a minute.\n\nNPM has nested dependencies, meaning that you can have different packages all loading different versions of `lodash` at the same time. It's very specific. \n\nBower, on the other hand, flattens dependencies. As such, it is often used on the front-end because, well, obviously, it isn't ideal to have 3 versions of jQuery loaded every time you visit a webpage.\n\nAnyway, that information probably wasn't very helpful, but it's nice to know. To the point:\n\nNPM and Bower aren't the same, and Webpack prefers NPM (CommonJS). According to the Docs:\n\n> In many cases modules from npm are better than the same module from \n> bower. Bower mostly contain only concatenated/bundled files which\n>  are:\n> \n> More difficult to handle for webpack\n> More difficult to optimize for webpack\n> Sometimes only useable without a module system\n> So prefer to use the CommonJs-style module and let webpack build it.\n[Source](http://webpack.github.io/docs/usage-with-bower.html). \n\nLuckily most packages have NPM & Bower equivalents, though there doesn't seem to be much interest in making LumX an NPM module. See the [open issue](https://github.com/lumapps/lumX/issues/74) and comment about how much you want more NPM! \n\nLet's get emotional now and get rid of all of our Bower Lumx dependencies. If it's not NPM, it deserves a subtle level of disgust.\n\n```\napp/bower_components\n├── bourbon\t\n└── lumx\n```\n\nIf you want to keep them from coming back, go into `bower_components/lumx/bower.json` and delete the dependencies. However, you'll just have to do this again if you update LumX in the future.\n\nFrom here on in, we're going to try to NPM almost everything. \n\n## NPM! NPM!\n\nNow let's NPM install the dependencies we just deleted from Bower.\n\n```json\n\t\t\t                   /* NPM Package Name */\n\"dependencies\": {\t           ====================\n    \"angular\": \"latest\",\t\t// angular\n    \"jquery\": \"latest\",\t\t\t// jquery\n    \"velocity\": \"latest\",\t\t// velocity-animate\n    \"moment\": \"latest\",\t\t\t// moment\n    \"bourbon\": \"latest\",        // node-bourbon (not necessary)\n    \"mdi\": \"1.0.8-beta\"\t\t\t// mdi\n  }\n```\n\nAs you can see, there really are easy NPM equivalents. Install the dependencies.\n\n```shell\nnpm install --save angular jquery velocity-animate moment mdi\n```\n\n### Require(NPM_Module)\n\nIt should still work. Now let's load some primary NPM dependencies in a file we'll call `vendor.js`.\n\n/app/core/vendor.js\n\n```js\nmodule.exports = function () {\n\t/* must be in order */\n  require('jquery');\n  require('velocity-animate');\n  require('angular');\n};\n```\n\nLumX seeks a few dependencies as globals, so we'll have to change this a little.\n\n`global` attaches a value to the global context, likely the browser window. \n\n/app/core/vendor.js\n\n```js\nmodule.exports = function () {\nglobal.$ = global.jQuery = require('jquery');   // $ for Lumx, jQuery for velocity\n  require('velocity-animate');\n  require('angular');\n  global.moment = require('moment');            // for LumX\n  };\n```\n\n### Require(Bower_Component)\n\nWe'll have to inject some dependencies into LumX to get it to load properly. For this we need the [`imports-loader`](https://github.com/webpack/imports-loader).\n\n`npm install -D imports-loader`\n\nNow we can require Lumx, even though it is a Bower package. \n\n```js\nmodule.exports = function () {\nglobal.$ = global.jQuery = require('jquery');\n  require('velocity-animate');\n  require('angular');\n  global.moment = require('moment');\n  require('imports?angular!../bower_components/lumx/dist/lumx.js');\n  };\n```\n\n`imports?` tells webpack to use the imports-loader, and `angular!` says to inject angular into the file. You could also inject jQuery, but it's already global.\n \nThere is probably an easier to way load Bower packages, if you know how, please post in the comments. This worked for me.\n  \nNote: another possible suggestion would be to load Lumx as an NPM module using [`debowerify`](https://github.com/eugeneware/debowerify), as posted by Mallim [here](https://github.com/lumapps/lumX/issues/74). I plan to explore this option later. \n\n### Require(styles)\n\nLumX depends on a Bourbon Sass mixins which also have an NPM equivalent: `node-bourbon`. However, LumX requires them using a relative path within the `bower_components` folder, so it's better just to keep the Bower Bourbon file.\n\nStyle sheets can be loaded using `require('.path/to/_lumx.scss')`, as in the [previous article](http://shmck.com/webpack-angular-part-1) but due to the cascading nature of stylesheets, it's likely better to keep them in a root `index.scss` file. Simply import the Lumx styles.\n\n/app/index.scss\n\n`@import './bower_components/lumx/dist/scss/_lumx';`\n\n### Require(Fonts & Icons)\n\nWe'll need another loader for fonts & icons. Install the [`file-loader`](https://github.com/webpack/file-loader).\n\n`npm install -D file-loader`\n\nAdd the loader to your webpack.config file and tell it to grab anything that looks like a font.\n\n/app/webpack.config.js\n\n```js\n{\n    test: /\\.(woff|woff2|ttf|eot|svg)(\\?v=[0-9]\\.[0-9]\\.[0-9])?$/,\n    loader: 'file-loader?name=res/[name].[ext]?[hash]'\n}\n```\n\nLoad up the Material Design Icons. The `materialdesignicons.scss` will point to our font files, which will get loaded by the file-loader.\n\n/app/core/vendor.js\n\n```js\n/* Styles */\n  require('../index.scss');\n  require('../../node_modules/mdi/scss/materialdesignicons.scss');\n```\n\nCreate a test to see if icons and fonts are loading in `index.html`.\n \n/app/index.html\n\n```html\n<p class='fs-headline'>Icon Test: <i class=\"mdi mdi-twitter\"></i> @Sh_McK</p>\n```\n\n## Conclusion\n\nWe now have our LumX dependencies running: scripts, styles, fonts & icons, oh my! \n\nWe saw how Webpack can load different file formats, as well as handle different module types (NPM or Bower). Webpack prefers NPM.\n\nCheckout [Github](https://github.com/ShMcK/WebpackAngularDemos/tree/master/Part2) for the full codebase.\n\nIn [Part 3](http://shmck.com/webpack-angular-part-3) we'll finally be able to take advantage of using Webpack with Angular for creating incredibly modular code.\n"
  },
  {
    "path": "Part2/app/bundle.js",
    "content": "/******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\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\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\texports: {},\n/******/ \t\t\tid: moduleId,\n/******/ \t\t\tloaded: false\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.loaded = true;\n\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n\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// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(0);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(1);\n\tmodule.exports = __webpack_require__(2);\n\n\n/***/ },\n/* 1 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/*\r\n\t\tMIT License http://www.opensource.org/licenses/mit-license.php\r\n\t\tAuthor Tobias Koppers @sokra\r\n\t*/\r\n\tif(false) {\r\n\t\tvar lastData;\r\n\t\tvar upToDate = function upToDate() {\r\n\t\t\treturn lastData.indexOf(__webpack_hash__) >= 0;\r\n\t\t};\r\n\t\tvar check = function check() {\r\n\t\t\tmodule.hot.check(true, function(err, updatedModules) {\r\n\t\t\t\tif(err) {\r\n\t\t\t\t\tif(module.hot.status() in {abort:1,fail:1}) {\r\n\t\t\t\t\t\tconsole.warn(\"[HMR] Cannot apply update. Need to do a full reload!\");\r\n\t\t\t\t\t\tconsole.warn(\"[HMR] \" + err.stack || err.message);\r\n\t\t\t\t\t\twindow.location.reload();\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tconsole.warn(\"[HMR] Update failed: \" + err.stack || err.message);\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif(!updatedModules) {\r\n\t\t\t\t\tconsole.warn(\"[HMR] Cannot find update. Need to do a full reload!\");\r\n\t\t\t\t\tconsole.warn(\"[HMR] (Probably because of restarting the webpack-dev-server)\")\r\n\t\t\t\t\twindow.location.reload();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif(!upToDate()) {\r\n\t\t\t\t\tcheck();\r\n\t\t\t\t}\r\n\r\n\t\t\t\trequire(\"./log-apply-result\")(updatedModules, updatedModules);\r\n\r\n\t\t\t\tif(upToDate()) {\r\n\t\t\t\t\tconsole.log(\"[HMR] App is up to date.\");\r\n\t\t\t\t}\r\n\r\n\t\t\t});\r\n\t\t};\r\n\t\tvar addEventListener = window.addEventListener ? function(eventName, listener) {\r\n\t\t\twindow.addEventListener(eventName, listener, false);\r\n\t\t} : function (eventName, listener) {\r\n\t\t\twindow.attachEvent('on' + eventName, listener);\r\n\t\t};\r\n\t\taddEventListener(\"message\", function(event) {\r\n\t\t\tif(typeof event.data === \"string\" && event.data.indexOf(\"webpackHotUpdate\") === 0) {\r\n\t\t\t\tlastData = event.data;\r\n\t\t\t\tif(!upToDate() && module.hot.status() === \"idle\") {\r\n\t\t\t\t\tconsole.log(\"[HMR] Checking for updates on the server...\");\r\n\t\t\t\t\tcheck();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tconsole.log(\"[HMR] Waiting for update signal from WDS...\");\r\n\t} else {\r\n\t\tthrow new Error(\"[HMR] Hot Module Replacement is disabled.\");\r\n\t}\r\n\n\n/***/ },\n/* 2 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/*jshint browser:true */\n\t'use strict';\n\n\t__webpack_require__(3)();\n\tvar appModule = __webpack_require__(4);\n\n\tangular.element(document).ready(function () {\n\t  angular.bootstrap(document, [appModule.name], {});\n\t});\n\n\t//strictDi: true\n\n/***/ },\n/* 3 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\n\tmodule.exports = function () {\n\t  /* Styles */\n\t  __webpack_require__(6);\n\n\t  /* JS */\n\t  __webpack_require__(5);\n\t};\n\n/***/ },\n/* 4 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\n\tmodule.exports = angular.module('app', []);\n\n\tfunction printMessage() {\n\t  var status = arguments[0] === undefined ? 'working' : arguments[0];\n\t  // default params\n\t  var message = 'ES6'; // let\n\t  console.log('' + message + ' is ' + status); // template string\n\t}\n\tprintMessage();\n\n/***/ },\n/* 5 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(9);\n\tmodule.exports = angular;\n\n\n/***/ },\n/* 6 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// style-loader: Adds some css to the DOM by adding a <style> tag\n\n\t// load the styles\n\tvar content = __webpack_require__(7);\n\tif(typeof content === 'string') content = [[module.id, content, '']];\n\t// add the styles to the DOM\n\tvar update = __webpack_require__(8)(content, {});\n\t// Hot Module Replacement\n\tif(false) {\n\t\t// When the styles change, update the <style> tags\n\t\tmodule.hot.accept(\"!!./../node_modules/css-loader/index.js!./../node_modules/sass-loader/index.js!./index.scss\", function() {\n\t\t\tvar newContent = require(\"!!./../node_modules/css-loader/index.js!./../node_modules/sass-loader/index.js!./index.scss\");\n\t\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\t\t\tupdate(newContent);\n\t\t});\n\t\t// When the module is disposed, remove the <style> tags\n\t\tmodule.hot.dispose(function() { update(); });\n\t}\n\n/***/ },\n/* 7 */\n/***/ function(module, exports, __webpack_require__) {\n\n\texports = module.exports = __webpack_require__(10)();\n\texports.push([module.id, \"body {\\n  background-color: red; }\\n\", \"\"]);\n\n/***/ },\n/* 8 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/*\r\n\t\tMIT License http://www.opensource.org/licenses/mit-license.php\r\n\t\tAuthor Tobias Koppers @sokra\r\n\t*/\r\n\tvar stylesInDom = {},\r\n\t\tmemoize = function(fn) {\r\n\t\t\tvar memo;\r\n\t\t\treturn function () {\r\n\t\t\t\tif (typeof memo === \"undefined\") memo = fn.apply(this, arguments);\r\n\t\t\t\treturn memo;\r\n\t\t\t};\r\n\t\t},\r\n\t\tisOldIE = memoize(function() {\r\n\t\t\treturn /msie [6-9]\\b/.test(window.navigator.userAgent.toLowerCase());\r\n\t\t}),\r\n\t\tgetHeadElement = memoize(function () {\r\n\t\t\treturn document.head || document.getElementsByTagName(\"head\")[0];\r\n\t\t}),\r\n\t\tsingletonElement = null,\r\n\t\tsingletonCounter = 0;\r\n\r\n\tmodule.exports = function(list, options) {\r\n\t\tif(false) {\r\n\t\t\tif(typeof document !== \"object\") throw new Error(\"The style-loader cannot be used in a non-browser environment\");\r\n\t\t}\r\n\r\n\t\toptions = options || {};\r\n\t\t// Force single-tag solution on IE6-9, which has a hard limit on the # of <style>\r\n\t\t// tags it will allow on a page\r\n\t\tif (typeof options.singleton === \"undefined\") options.singleton = isOldIE();\r\n\r\n\t\tvar styles = listToStyles(list);\r\n\t\taddStylesToDom(styles, options);\r\n\r\n\t\treturn function update(newList) {\r\n\t\t\tvar mayRemove = [];\r\n\t\t\tfor(var i = 0; i < styles.length; i++) {\r\n\t\t\t\tvar item = styles[i];\r\n\t\t\t\tvar domStyle = stylesInDom[item.id];\r\n\t\t\t\tdomStyle.refs--;\r\n\t\t\t\tmayRemove.push(domStyle);\r\n\t\t\t}\r\n\t\t\tif(newList) {\r\n\t\t\t\tvar newStyles = listToStyles(newList);\r\n\t\t\t\taddStylesToDom(newStyles, options);\r\n\t\t\t}\r\n\t\t\tfor(var i = 0; i < mayRemove.length; i++) {\r\n\t\t\t\tvar domStyle = mayRemove[i];\r\n\t\t\t\tif(domStyle.refs === 0) {\r\n\t\t\t\t\tfor(var j = 0; j < domStyle.parts.length; j++)\r\n\t\t\t\t\t\tdomStyle.parts[j]();\r\n\t\t\t\t\tdelete stylesInDom[domStyle.id];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\t}\r\n\r\n\tfunction addStylesToDom(styles, options) {\r\n\t\tfor(var i = 0; i < styles.length; i++) {\r\n\t\t\tvar item = styles[i];\r\n\t\t\tvar domStyle = stylesInDom[item.id];\r\n\t\t\tif(domStyle) {\r\n\t\t\t\tdomStyle.refs++;\r\n\t\t\t\tfor(var j = 0; j < domStyle.parts.length; j++) {\r\n\t\t\t\t\tdomStyle.parts[j](item.parts[j]);\r\n\t\t\t\t}\r\n\t\t\t\tfor(; j < item.parts.length; j++) {\r\n\t\t\t\t\tdomStyle.parts.push(addStyle(item.parts[j], options));\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tvar parts = [];\r\n\t\t\t\tfor(var j = 0; j < item.parts.length; j++) {\r\n\t\t\t\t\tparts.push(addStyle(item.parts[j], options));\r\n\t\t\t\t}\r\n\t\t\t\tstylesInDom[item.id] = {id: item.id, refs: 1, parts: parts};\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tfunction listToStyles(list) {\r\n\t\tvar styles = [];\r\n\t\tvar newStyles = {};\r\n\t\tfor(var i = 0; i < list.length; i++) {\r\n\t\t\tvar item = list[i];\r\n\t\t\tvar id = item[0];\r\n\t\t\tvar css = item[1];\r\n\t\t\tvar media = item[2];\r\n\t\t\tvar sourceMap = item[3];\r\n\t\t\tvar part = {css: css, media: media, sourceMap: sourceMap};\r\n\t\t\tif(!newStyles[id])\r\n\t\t\t\tstyles.push(newStyles[id] = {id: id, parts: [part]});\r\n\t\t\telse\r\n\t\t\t\tnewStyles[id].parts.push(part);\r\n\t\t}\r\n\t\treturn styles;\r\n\t}\r\n\r\n\tfunction createStyleElement() {\r\n\t\tvar styleElement = document.createElement(\"style\");\r\n\t\tvar head = getHeadElement();\r\n\t\tstyleElement.type = \"text/css\";\r\n\t\thead.appendChild(styleElement);\r\n\t\treturn styleElement;\r\n\t}\r\n\r\n\tfunction createLinkElement() {\r\n\t\tvar linkElement = document.createElement(\"link\");\r\n\t\tvar head = getHeadElement();\r\n\t\tlinkElement.rel = \"stylesheet\";\r\n\t\thead.appendChild(linkElement);\r\n\t\treturn linkElement;\r\n\t}\r\n\r\n\tfunction addStyle(obj, options) {\r\n\t\tvar styleElement, update, remove;\r\n\r\n\t\tif (options.singleton) {\r\n\t\t\tvar styleIndex = singletonCounter++;\r\n\t\t\tstyleElement = singletonElement || (singletonElement = createStyleElement());\r\n\t\t\tupdate = applyToSingletonTag.bind(null, styleElement, styleIndex, false);\r\n\t\t\tremove = applyToSingletonTag.bind(null, styleElement, styleIndex, true);\r\n\t\t} else if(obj.sourceMap &&\r\n\t\t\ttypeof URL === \"function\" &&\r\n\t\t\ttypeof URL.createObjectURL === \"function\" &&\r\n\t\t\ttypeof URL.revokeObjectURL === \"function\" &&\r\n\t\t\ttypeof Blob === \"function\" &&\r\n\t\t\ttypeof btoa === \"function\") {\r\n\t\t\tstyleElement = createLinkElement();\r\n\t\t\tupdate = updateLink.bind(null, styleElement);\r\n\t\t\tremove = function() {\r\n\t\t\t\tstyleElement.parentNode.removeChild(styleElement);\r\n\t\t\t\tif(styleElement.href)\r\n\t\t\t\t\tURL.revokeObjectURL(styleElement.href);\r\n\t\t\t};\r\n\t\t} else {\r\n\t\t\tstyleElement = createStyleElement();\r\n\t\t\tupdate = applyToTag.bind(null, styleElement);\r\n\t\t\tremove = function() {\r\n\t\t\t\tstyleElement.parentNode.removeChild(styleElement);\r\n\t\t\t};\r\n\t\t}\r\n\r\n\t\tupdate(obj);\r\n\r\n\t\treturn function updateStyle(newObj) {\r\n\t\t\tif(newObj) {\r\n\t\t\t\tif(newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap)\r\n\t\t\t\t\treturn;\r\n\t\t\t\tupdate(obj = newObj);\r\n\t\t\t} else {\r\n\t\t\t\tremove();\r\n\t\t\t}\r\n\t\t};\r\n\t}\r\n\r\n\tfunction replaceText(source, id, replacement) {\r\n\t\tvar boundaries = [\"/** >>\" + id + \" **/\", \"/** \" + id + \"<< **/\"];\r\n\t\tvar start = source.lastIndexOf(boundaries[0]);\r\n\t\tvar wrappedReplacement = replacement\r\n\t\t\t? (boundaries[0] + replacement + boundaries[1])\r\n\t\t\t: \"\";\r\n\t\tif (source.lastIndexOf(boundaries[0]) >= 0) {\r\n\t\t\tvar end = source.lastIndexOf(boundaries[1]) + boundaries[1].length;\r\n\t\t\treturn source.slice(0, start) + wrappedReplacement + source.slice(end);\r\n\t\t} else {\r\n\t\t\treturn source + wrappedReplacement;\r\n\t\t}\r\n\t}\r\n\r\n\tfunction applyToSingletonTag(styleElement, index, remove, obj) {\r\n\t\tvar css = remove ? \"\" : obj.css;\r\n\r\n\t\tif(styleElement.styleSheet) {\r\n\t\t\tstyleElement.styleSheet.cssText = replaceText(styleElement.styleSheet.cssText, index, css);\r\n\t\t} else {\r\n\t\t\tvar cssNode = document.createTextNode(css);\r\n\t\t\tvar childNodes = styleElement.childNodes;\r\n\t\t\tif (childNodes[index]) styleElement.removeChild(childNodes[index]);\r\n\t\t\tif (childNodes.length) {\r\n\t\t\t\tstyleElement.insertBefore(cssNode, childNodes[index]);\r\n\t\t\t} else {\r\n\t\t\t\tstyleElement.appendChild(cssNode);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tfunction applyToTag(styleElement, obj) {\r\n\t\tvar css = obj.css;\r\n\t\tvar media = obj.media;\r\n\t\tvar sourceMap = obj.sourceMap;\r\n\r\n\t\tif(media) {\r\n\t\t\tstyleElement.setAttribute(\"media\", media)\r\n\t\t}\r\n\r\n\t\tif(styleElement.styleSheet) {\r\n\t\t\tstyleElement.styleSheet.cssText = css;\r\n\t\t} else {\r\n\t\t\twhile(styleElement.firstChild) {\r\n\t\t\t\tstyleElement.removeChild(styleElement.firstChild);\r\n\t\t\t}\r\n\t\t\tstyleElement.appendChild(document.createTextNode(css));\r\n\t\t}\r\n\t}\r\n\r\n\tfunction updateLink(linkElement, obj) {\r\n\t\tvar css = obj.css;\r\n\t\tvar media = obj.media;\r\n\t\tvar sourceMap = obj.sourceMap;\r\n\r\n\t\tif(sourceMap) {\r\n\t\t\tcss += \"\\n/*# sourceMappingURL=data:application/json;base64,\" + btoa(JSON.stringify(sourceMap)) + \" */\";\r\n\t\t}\r\n\r\n\t\tvar blob = new Blob([css], { type: \"text/css\" });\r\n\r\n\t\tvar oldSrc = linkElement.href;\r\n\r\n\t\tlinkElement.href = URL.createObjectURL(blob);\r\n\r\n\t\tif(oldSrc)\r\n\t\t\tURL.revokeObjectURL(oldSrc);\r\n\t}\r\n\n\n/***/ },\n/* 9 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar require;/**\n\t * @license AngularJS v1.3.15\n\t * (c) 2010-2014 Google, Inc. http://angularjs.org\n\t * License: MIT\n\t */\n\t(function(window, document, undefined) {'use strict';\n\n\t/**\n\t * @description\n\t *\n\t * This object provides a utility for producing rich Error messages within\n\t * Angular. It can be called as follows:\n\t *\n\t * var exampleMinErr = minErr('example');\n\t * throw exampleMinErr('one', 'This {0} is {1}', foo, bar);\n\t *\n\t * The above creates an instance of minErr in the example namespace. The\n\t * resulting error will have a namespaced error code of example.one.  The\n\t * resulting error will replace {0} with the value of foo, and {1} with the\n\t * value of bar. The object is not restricted in the number of arguments it can\n\t * take.\n\t *\n\t * If fewer arguments are specified than necessary for interpolation, the extra\n\t * interpolation markers will be preserved in the final string.\n\t *\n\t * Since data will be parsed statically during a build step, some restrictions\n\t * are applied with respect to how minErr instances are created and called.\n\t * Instances should have names of the form namespaceMinErr for a minErr created\n\t * using minErr('namespace') . Error codes, namespaces and template strings\n\t * should all be static strings, not variables or general expressions.\n\t *\n\t * @param {string} module The namespace to use for the new minErr instance.\n\t * @param {function} ErrorConstructor Custom error constructor to be instantiated when returning\n\t *   error from returned function, for cases when a particular type of error is useful.\n\t * @returns {function(code:string, template:string, ...templateArgs): Error} minErr instance\n\t */\n\n\tfunction minErr(module, ErrorConstructor) {\n\t  ErrorConstructor = ErrorConstructor || Error;\n\t  return function() {\n\t    var code = arguments[0],\n\t      prefix = '[' + (module ? module + ':' : '') + code + '] ',\n\t      template = arguments[1],\n\t      templateArgs = arguments,\n\n\t      message, i;\n\n\t    message = prefix + template.replace(/\\{\\d+\\}/g, function(match) {\n\t      var index = +match.slice(1, -1), arg;\n\n\t      if (index + 2 < templateArgs.length) {\n\t        return toDebugString(templateArgs[index + 2]);\n\t      }\n\t      return match;\n\t    });\n\n\t    message = message + '\\nhttp://errors.angularjs.org/1.3.15/' +\n\t      (module ? module + '/' : '') + code;\n\t    for (i = 2; i < arguments.length; i++) {\n\t      message = message + (i == 2 ? '?' : '&') + 'p' + (i - 2) + '=' +\n\t        encodeURIComponent(toDebugString(arguments[i]));\n\t    }\n\t    return new ErrorConstructor(message);\n\t  };\n\t}\n\n\t/* We need to tell jshint what variables are being exported */\n\t/* global angular: true,\n\t  msie: true,\n\t  jqLite: true,\n\t  jQuery: true,\n\t  slice: true,\n\t  splice: true,\n\t  push: true,\n\t  toString: true,\n\t  ngMinErr: true,\n\t  angularModule: true,\n\t  uid: true,\n\t  REGEX_STRING_REGEXP: true,\n\t  VALIDITY_STATE_PROPERTY: true,\n\n\t  lowercase: true,\n\t  uppercase: true,\n\t  manualLowercase: true,\n\t  manualUppercase: true,\n\t  nodeName_: true,\n\t  isArrayLike: true,\n\t  forEach: true,\n\t  sortedKeys: true,\n\t  forEachSorted: true,\n\t  reverseParams: true,\n\t  nextUid: true,\n\t  setHashKey: true,\n\t  extend: true,\n\t  int: true,\n\t  inherit: true,\n\t  noop: true,\n\t  identity: true,\n\t  valueFn: true,\n\t  isUndefined: true,\n\t  isDefined: true,\n\t  isObject: true,\n\t  isString: true,\n\t  isNumber: true,\n\t  isDate: true,\n\t  isArray: true,\n\t  isFunction: true,\n\t  isRegExp: true,\n\t  isWindow: true,\n\t  isScope: true,\n\t  isFile: true,\n\t  isFormData: true,\n\t  isBlob: true,\n\t  isBoolean: true,\n\t  isPromiseLike: true,\n\t  trim: true,\n\t  escapeForRegexp: true,\n\t  isElement: true,\n\t  makeMap: true,\n\t  includes: true,\n\t  arrayRemove: true,\n\t  copy: true,\n\t  shallowCopy: true,\n\t  equals: true,\n\t  csp: true,\n\t  concat: true,\n\t  sliceArgs: true,\n\t  bind: true,\n\t  toJsonReplacer: true,\n\t  toJson: true,\n\t  fromJson: true,\n\t  startingTag: true,\n\t  tryDecodeURIComponent: true,\n\t  parseKeyValue: true,\n\t  toKeyValue: true,\n\t  encodeUriSegment: true,\n\t  encodeUriQuery: true,\n\t  angularInit: true,\n\t  bootstrap: true,\n\t  getTestability: true,\n\t  snake_case: true,\n\t  bindJQuery: true,\n\t  assertArg: true,\n\t  assertArgFn: true,\n\t  assertNotHasOwnProperty: true,\n\t  getter: true,\n\t  getBlockNodes: true,\n\t  hasOwnProperty: true,\n\t  createMap: true,\n\n\t  NODE_TYPE_ELEMENT: true,\n\t  NODE_TYPE_TEXT: true,\n\t  NODE_TYPE_COMMENT: true,\n\t  NODE_TYPE_DOCUMENT: true,\n\t  NODE_TYPE_DOCUMENT_FRAGMENT: true,\n\t*/\n\n\t////////////////////////////////////\n\n\t/**\n\t * @ngdoc module\n\t * @name ng\n\t * @module ng\n\t * @description\n\t *\n\t * # ng (core module)\n\t * The ng module is loaded by default when an AngularJS application is started. The module itself\n\t * contains the essential components for an AngularJS application to function. The table below\n\t * lists a high level breakdown of each of the services/factories, filters, directives and testing\n\t * components available within this core module.\n\t *\n\t * <div doc-module-components=\"ng\"></div>\n\t */\n\n\tvar REGEX_STRING_REGEXP = /^\\/(.+)\\/([a-z]*)$/;\n\n\t// The name of a form control's ValidityState property.\n\t// This is used so that it's possible for internal tests to create mock ValidityStates.\n\tvar VALIDITY_STATE_PROPERTY = 'validity';\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.lowercase\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description Converts the specified string to lowercase.\n\t * @param {string} string String to be converted to lowercase.\n\t * @returns {string} Lowercased string.\n\t */\n\tvar lowercase = function(string) {return isString(string) ? string.toLowerCase() : string;};\n\tvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.uppercase\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description Converts the specified string to uppercase.\n\t * @param {string} string String to be converted to uppercase.\n\t * @returns {string} Uppercased string.\n\t */\n\tvar uppercase = function(string) {return isString(string) ? string.toUpperCase() : string;};\n\n\n\tvar manualLowercase = function(s) {\n\t  /* jshint bitwise: false */\n\t  return isString(s)\n\t      ? s.replace(/[A-Z]/g, function(ch) {return String.fromCharCode(ch.charCodeAt(0) | 32);})\n\t      : s;\n\t};\n\tvar manualUppercase = function(s) {\n\t  /* jshint bitwise: false */\n\t  return isString(s)\n\t      ? s.replace(/[a-z]/g, function(ch) {return String.fromCharCode(ch.charCodeAt(0) & ~32);})\n\t      : s;\n\t};\n\n\n\t// String#toLowerCase and String#toUpperCase don't produce correct results in browsers with Turkish\n\t// locale, for this reason we need to detect this case and redefine lowercase/uppercase methods\n\t// with correct but slower alternatives.\n\tif ('i' !== 'I'.toLowerCase()) {\n\t  lowercase = manualLowercase;\n\t  uppercase = manualUppercase;\n\t}\n\n\n\tvar\n\t    msie,             // holds major version number for IE, or NaN if UA is not IE.\n\t    jqLite,           // delay binding since jQuery could be loaded after us.\n\t    jQuery,           // delay binding\n\t    slice             = [].slice,\n\t    splice            = [].splice,\n\t    push              = [].push,\n\t    toString          = Object.prototype.toString,\n\t    ngMinErr          = minErr('ng'),\n\n\t    /** @name angular */\n\t    angular           = window.angular || (window.angular = {}),\n\t    angularModule,\n\t    uid               = 0;\n\n\t/**\n\t * documentMode is an IE-only property\n\t * http://msdn.microsoft.com/en-us/library/ie/cc196988(v=vs.85).aspx\n\t */\n\tmsie = document.documentMode;\n\n\n\t/**\n\t * @private\n\t * @param {*} obj\n\t * @return {boolean} Returns true if `obj` is an array or array-like object (NodeList, Arguments,\n\t *                   String ...)\n\t */\n\tfunction isArrayLike(obj) {\n\t  if (obj == null || isWindow(obj)) {\n\t    return false;\n\t  }\n\n\t  var length = obj.length;\n\n\t  if (obj.nodeType === NODE_TYPE_ELEMENT && length) {\n\t    return true;\n\t  }\n\n\t  return isString(obj) || isArray(obj) || length === 0 ||\n\t         typeof length === 'number' && length > 0 && (length - 1) in obj;\n\t}\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.forEach\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Invokes the `iterator` function once for each item in `obj` collection, which can be either an\n\t * object or an array. The `iterator` function is invoked with `iterator(value, key, obj)`, where `value`\n\t * is the value of an object property or an array element, `key` is the object property key or\n\t * array element index and obj is the `obj` itself. Specifying a `context` for the function is optional.\n\t *\n\t * It is worth noting that `.forEach` does not iterate over inherited properties because it filters\n\t * using the `hasOwnProperty` method.\n\t *\n\t * Unlike ES262's\n\t * [Array.prototype.forEach](http://www.ecma-international.org/ecma-262/5.1/#sec-15.4.4.18),\n\t * Providing 'undefined' or 'null' values for `obj` will not throw a TypeError, but rather just\n\t * return the value provided.\n\t *\n\t   ```js\n\t     var values = {name: 'misko', gender: 'male'};\n\t     var log = [];\n\t     angular.forEach(values, function(value, key) {\n\t       this.push(key + ': ' + value);\n\t     }, log);\n\t     expect(log).toEqual(['name: misko', 'gender: male']);\n\t   ```\n\t *\n\t * @param {Object|Array} obj Object to iterate over.\n\t * @param {Function} iterator Iterator function.\n\t * @param {Object=} context Object to become context (`this`) for the iterator function.\n\t * @returns {Object|Array} Reference to `obj`.\n\t */\n\n\tfunction forEach(obj, iterator, context) {\n\t  var key, length;\n\t  if (obj) {\n\t    if (isFunction(obj)) {\n\t      for (key in obj) {\n\t        // Need to check if hasOwnProperty exists,\n\t        // as on IE8 the result of querySelectorAll is an object without a hasOwnProperty function\n\t        if (key != 'prototype' && key != 'length' && key != 'name' && (!obj.hasOwnProperty || obj.hasOwnProperty(key))) {\n\t          iterator.call(context, obj[key], key, obj);\n\t        }\n\t      }\n\t    } else if (isArray(obj) || isArrayLike(obj)) {\n\t      var isPrimitive = typeof obj !== 'object';\n\t      for (key = 0, length = obj.length; key < length; key++) {\n\t        if (isPrimitive || key in obj) {\n\t          iterator.call(context, obj[key], key, obj);\n\t        }\n\t      }\n\t    } else if (obj.forEach && obj.forEach !== forEach) {\n\t        obj.forEach(iterator, context, obj);\n\t    } else {\n\t      for (key in obj) {\n\t        if (obj.hasOwnProperty(key)) {\n\t          iterator.call(context, obj[key], key, obj);\n\t        }\n\t      }\n\t    }\n\t  }\n\t  return obj;\n\t}\n\n\tfunction sortedKeys(obj) {\n\t  return Object.keys(obj).sort();\n\t}\n\n\tfunction forEachSorted(obj, iterator, context) {\n\t  var keys = sortedKeys(obj);\n\t  for (var i = 0; i < keys.length; i++) {\n\t    iterator.call(context, obj[keys[i]], keys[i]);\n\t  }\n\t  return keys;\n\t}\n\n\n\t/**\n\t * when using forEach the params are value, key, but it is often useful to have key, value.\n\t * @param {function(string, *)} iteratorFn\n\t * @returns {function(*, string)}\n\t */\n\tfunction reverseParams(iteratorFn) {\n\t  return function(value, key) { iteratorFn(key, value); };\n\t}\n\n\t/**\n\t * A consistent way of creating unique IDs in angular.\n\t *\n\t * Using simple numbers allows us to generate 28.6 million unique ids per second for 10 years before\n\t * we hit number precision issues in JavaScript.\n\t *\n\t * Math.pow(2,53) / 60 / 60 / 24 / 365 / 10 = 28.6M\n\t *\n\t * @returns {number} an unique alpha-numeric string\n\t */\n\tfunction nextUid() {\n\t  return ++uid;\n\t}\n\n\n\t/**\n\t * Set or clear the hashkey for an object.\n\t * @param obj object\n\t * @param h the hashkey (!truthy to delete the hashkey)\n\t */\n\tfunction setHashKey(obj, h) {\n\t  if (h) {\n\t    obj.$$hashKey = h;\n\t  } else {\n\t    delete obj.$$hashKey;\n\t  }\n\t}\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.extend\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Extends the destination object `dst` by copying own enumerable properties from the `src` object(s)\n\t * to `dst`. You can specify multiple `src` objects. If you want to preserve original objects, you can do so\n\t * by passing an empty object as the target: `var object = angular.extend({}, object1, object2)`.\n\t * Note: Keep in mind that `angular.extend` does not support recursive merge (deep copy).\n\t *\n\t * @param {Object} dst Destination object.\n\t * @param {...Object} src Source object(s).\n\t * @returns {Object} Reference to `dst`.\n\t */\n\tfunction extend(dst) {\n\t  var h = dst.$$hashKey;\n\n\t  for (var i = 1, ii = arguments.length; i < ii; i++) {\n\t    var obj = arguments[i];\n\t    if (obj) {\n\t      var keys = Object.keys(obj);\n\t      for (var j = 0, jj = keys.length; j < jj; j++) {\n\t        var key = keys[j];\n\t        dst[key] = obj[key];\n\t      }\n\t    }\n\t  }\n\n\t  setHashKey(dst, h);\n\t  return dst;\n\t}\n\n\tfunction int(str) {\n\t  return parseInt(str, 10);\n\t}\n\n\n\tfunction inherit(parent, extra) {\n\t  return extend(Object.create(parent), extra);\n\t}\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.noop\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * A function that performs no operations. This function can be useful when writing code in the\n\t * functional style.\n\t   ```js\n\t     function foo(callback) {\n\t       var result = calculateResult();\n\t       (callback || angular.noop)(result);\n\t     }\n\t   ```\n\t */\n\tfunction noop() {}\n\tnoop.$inject = [];\n\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.identity\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * A function that returns its first argument. This function is useful when writing code in the\n\t * functional style.\n\t *\n\t   ```js\n\t     function transformer(transformationFn, value) {\n\t       return (transformationFn || angular.identity)(value);\n\t     };\n\t   ```\n\t  * @param {*} value to be returned.\n\t  * @returns {*} the value passed in.\n\t */\n\tfunction identity($) {return $;}\n\tidentity.$inject = [];\n\n\n\tfunction valueFn(value) {return function() {return value;};}\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.isUndefined\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Determines if a reference is undefined.\n\t *\n\t * @param {*} value Reference to check.\n\t * @returns {boolean} True if `value` is undefined.\n\t */\n\tfunction isUndefined(value) {return typeof value === 'undefined';}\n\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.isDefined\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Determines if a reference is defined.\n\t *\n\t * @param {*} value Reference to check.\n\t * @returns {boolean} True if `value` is defined.\n\t */\n\tfunction isDefined(value) {return typeof value !== 'undefined';}\n\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.isObject\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Determines if a reference is an `Object`. Unlike `typeof` in JavaScript, `null`s are not\n\t * considered to be objects. Note that JavaScript arrays are objects.\n\t *\n\t * @param {*} value Reference to check.\n\t * @returns {boolean} True if `value` is an `Object` but not `null`.\n\t */\n\tfunction isObject(value) {\n\t  // http://jsperf.com/isobject4\n\t  return value !== null && typeof value === 'object';\n\t}\n\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.isString\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Determines if a reference is a `String`.\n\t *\n\t * @param {*} value Reference to check.\n\t * @returns {boolean} True if `value` is a `String`.\n\t */\n\tfunction isString(value) {return typeof value === 'string';}\n\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.isNumber\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Determines if a reference is a `Number`.\n\t *\n\t * This includes the \"special\" numbers `NaN`, `+Infinity` and `-Infinity`.\n\t *\n\t * If you wish to exclude these then you can use the native\n\t * [`isFinite'](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/isFinite)\n\t * method.\n\t *\n\t * @param {*} value Reference to check.\n\t * @returns {boolean} True if `value` is a `Number`.\n\t */\n\tfunction isNumber(value) {return typeof value === 'number';}\n\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.isDate\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Determines if a value is a date.\n\t *\n\t * @param {*} value Reference to check.\n\t * @returns {boolean} True if `value` is a `Date`.\n\t */\n\tfunction isDate(value) {\n\t  return toString.call(value) === '[object Date]';\n\t}\n\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.isArray\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Determines if a reference is an `Array`.\n\t *\n\t * @param {*} value Reference to check.\n\t * @returns {boolean} True if `value` is an `Array`.\n\t */\n\tvar isArray = Array.isArray;\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.isFunction\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Determines if a reference is a `Function`.\n\t *\n\t * @param {*} value Reference to check.\n\t * @returns {boolean} True if `value` is a `Function`.\n\t */\n\tfunction isFunction(value) {return typeof value === 'function';}\n\n\n\t/**\n\t * Determines if a value is a regular expression object.\n\t *\n\t * @private\n\t * @param {*} value Reference to check.\n\t * @returns {boolean} True if `value` is a `RegExp`.\n\t */\n\tfunction isRegExp(value) {\n\t  return toString.call(value) === '[object RegExp]';\n\t}\n\n\n\t/**\n\t * Checks if `obj` is a window object.\n\t *\n\t * @private\n\t * @param {*} obj Object to check\n\t * @returns {boolean} True if `obj` is a window obj.\n\t */\n\tfunction isWindow(obj) {\n\t  return obj && obj.window === obj;\n\t}\n\n\n\tfunction isScope(obj) {\n\t  return obj && obj.$evalAsync && obj.$watch;\n\t}\n\n\n\tfunction isFile(obj) {\n\t  return toString.call(obj) === '[object File]';\n\t}\n\n\n\tfunction isFormData(obj) {\n\t  return toString.call(obj) === '[object FormData]';\n\t}\n\n\n\tfunction isBlob(obj) {\n\t  return toString.call(obj) === '[object Blob]';\n\t}\n\n\n\tfunction isBoolean(value) {\n\t  return typeof value === 'boolean';\n\t}\n\n\n\tfunction isPromiseLike(obj) {\n\t  return obj && isFunction(obj.then);\n\t}\n\n\n\tvar trim = function(value) {\n\t  return isString(value) ? value.trim() : value;\n\t};\n\n\t// Copied from:\n\t// http://docs.closure-library.googlecode.com/git/local_closure_goog_string_string.js.source.html#line1021\n\t// Prereq: s is a string.\n\tvar escapeForRegexp = function(s) {\n\t  return s.replace(/([-()\\[\\]{}+?*.$\\^|,:#<!\\\\])/g, '\\\\$1').\n\t           replace(/\\x08/g, '\\\\x08');\n\t};\n\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.isElement\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Determines if a reference is a DOM element (or wrapped jQuery element).\n\t *\n\t * @param {*} value Reference to check.\n\t * @returns {boolean} True if `value` is a DOM element (or wrapped jQuery element).\n\t */\n\tfunction isElement(node) {\n\t  return !!(node &&\n\t    (node.nodeName  // we are a direct element\n\t    || (node.prop && node.attr && node.find)));  // we have an on and find method part of jQuery API\n\t}\n\n\t/**\n\t * @param str 'key1,key2,...'\n\t * @returns {object} in the form of {key1:true, key2:true, ...}\n\t */\n\tfunction makeMap(str) {\n\t  var obj = {}, items = str.split(\",\"), i;\n\t  for (i = 0; i < items.length; i++)\n\t    obj[items[i]] = true;\n\t  return obj;\n\t}\n\n\n\tfunction nodeName_(element) {\n\t  return lowercase(element.nodeName || (element[0] && element[0].nodeName));\n\t}\n\n\tfunction includes(array, obj) {\n\t  return Array.prototype.indexOf.call(array, obj) != -1;\n\t}\n\n\tfunction arrayRemove(array, value) {\n\t  var index = array.indexOf(value);\n\t  if (index >= 0)\n\t    array.splice(index, 1);\n\t  return value;\n\t}\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.copy\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Creates a deep copy of `source`, which should be an object or an array.\n\t *\n\t * * If no destination is supplied, a copy of the object or array is created.\n\t * * If a destination is provided, all of its elements (for arrays) or properties (for objects)\n\t *   are deleted and then all elements/properties from the source are copied to it.\n\t * * If `source` is not an object or array (inc. `null` and `undefined`), `source` is returned.\n\t * * If `source` is identical to 'destination' an exception will be thrown.\n\t *\n\t * @param {*} source The source that will be used to make a copy.\n\t *                   Can be any type, including primitives, `null`, and `undefined`.\n\t * @param {(Object|Array)=} destination Destination into which the source is copied. If\n\t *     provided, must be of the same type as `source`.\n\t * @returns {*} The copy or updated `destination`, if `destination` was specified.\n\t *\n\t * @example\n\t <example module=\"copyExample\">\n\t <file name=\"index.html\">\n\t <div ng-controller=\"ExampleController\">\n\t <form novalidate class=\"simple-form\">\n\t Name: <input type=\"text\" ng-model=\"user.name\" /><br />\n\t E-mail: <input type=\"email\" ng-model=\"user.email\" /><br />\n\t Gender: <input type=\"radio\" ng-model=\"user.gender\" value=\"male\" />male\n\t <input type=\"radio\" ng-model=\"user.gender\" value=\"female\" />female<br />\n\t <button ng-click=\"reset()\">RESET</button>\n\t <button ng-click=\"update(user)\">SAVE</button>\n\t </form>\n\t <pre>form = {{user | json}}</pre>\n\t <pre>master = {{master | json}}</pre>\n\t </div>\n\n\t <script>\n\t  angular.module('copyExample', [])\n\t    .controller('ExampleController', ['$scope', function($scope) {\n\t      $scope.master= {};\n\n\t      $scope.update = function(user) {\n\t        // Example with 1 argument\n\t        $scope.master= angular.copy(user);\n\t      };\n\n\t      $scope.reset = function() {\n\t        // Example with 2 arguments\n\t        angular.copy($scope.master, $scope.user);\n\t      };\n\n\t      $scope.reset();\n\t    }]);\n\t </script>\n\t </file>\n\t </example>\n\t */\n\tfunction copy(source, destination, stackSource, stackDest) {\n\t  if (isWindow(source) || isScope(source)) {\n\t    throw ngMinErr('cpws',\n\t      \"Can't copy! Making copies of Window or Scope instances is not supported.\");\n\t  }\n\n\t  if (!destination) {\n\t    destination = source;\n\t    if (source) {\n\t      if (isArray(source)) {\n\t        destination = copy(source, [], stackSource, stackDest);\n\t      } else if (isDate(source)) {\n\t        destination = new Date(source.getTime());\n\t      } else if (isRegExp(source)) {\n\t        destination = new RegExp(source.source, source.toString().match(/[^\\/]*$/)[0]);\n\t        destination.lastIndex = source.lastIndex;\n\t      } else if (isObject(source)) {\n\t        var emptyObject = Object.create(Object.getPrototypeOf(source));\n\t        destination = copy(source, emptyObject, stackSource, stackDest);\n\t      }\n\t    }\n\t  } else {\n\t    if (source === destination) throw ngMinErr('cpi',\n\t      \"Can't copy! Source and destination are identical.\");\n\n\t    stackSource = stackSource || [];\n\t    stackDest = stackDest || [];\n\n\t    if (isObject(source)) {\n\t      var index = stackSource.indexOf(source);\n\t      if (index !== -1) return stackDest[index];\n\n\t      stackSource.push(source);\n\t      stackDest.push(destination);\n\t    }\n\n\t    var result;\n\t    if (isArray(source)) {\n\t      destination.length = 0;\n\t      for (var i = 0; i < source.length; i++) {\n\t        result = copy(source[i], null, stackSource, stackDest);\n\t        if (isObject(source[i])) {\n\t          stackSource.push(source[i]);\n\t          stackDest.push(result);\n\t        }\n\t        destination.push(result);\n\t      }\n\t    } else {\n\t      var h = destination.$$hashKey;\n\t      if (isArray(destination)) {\n\t        destination.length = 0;\n\t      } else {\n\t        forEach(destination, function(value, key) {\n\t          delete destination[key];\n\t        });\n\t      }\n\t      for (var key in source) {\n\t        if (source.hasOwnProperty(key)) {\n\t          result = copy(source[key], null, stackSource, stackDest);\n\t          if (isObject(source[key])) {\n\t            stackSource.push(source[key]);\n\t            stackDest.push(result);\n\t          }\n\t          destination[key] = result;\n\t        }\n\t      }\n\t      setHashKey(destination,h);\n\t    }\n\n\t  }\n\t  return destination;\n\t}\n\n\t/**\n\t * Creates a shallow copy of an object, an array or a primitive.\n\t *\n\t * Assumes that there are no proto properties for objects.\n\t */\n\tfunction shallowCopy(src, dst) {\n\t  if (isArray(src)) {\n\t    dst = dst || [];\n\n\t    for (var i = 0, ii = src.length; i < ii; i++) {\n\t      dst[i] = src[i];\n\t    }\n\t  } else if (isObject(src)) {\n\t    dst = dst || {};\n\n\t    for (var key in src) {\n\t      if (!(key.charAt(0) === '$' && key.charAt(1) === '$')) {\n\t        dst[key] = src[key];\n\t      }\n\t    }\n\t  }\n\n\t  return dst || src;\n\t}\n\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.equals\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Determines if two objects or two values are equivalent. Supports value types, regular\n\t * expressions, arrays and objects.\n\t *\n\t * Two objects or values are considered equivalent if at least one of the following is true:\n\t *\n\t * * Both objects or values pass `===` comparison.\n\t * * Both objects or values are of the same type and all of their properties are equal by\n\t *   comparing them with `angular.equals`.\n\t * * Both values are NaN. (In JavaScript, NaN == NaN => false. But we consider two NaN as equal)\n\t * * Both values represent the same regular expression (In JavaScript,\n\t *   /abc/ == /abc/ => false. But we consider two regular expressions as equal when their textual\n\t *   representation matches).\n\t *\n\t * During a property comparison, properties of `function` type and properties with names\n\t * that begin with `$` are ignored.\n\t *\n\t * Scope and DOMWindow objects are being compared only by identify (`===`).\n\t *\n\t * @param {*} o1 Object or value to compare.\n\t * @param {*} o2 Object or value to compare.\n\t * @returns {boolean} True if arguments are equal.\n\t */\n\tfunction equals(o1, o2) {\n\t  if (o1 === o2) return true;\n\t  if (o1 === null || o2 === null) return false;\n\t  if (o1 !== o1 && o2 !== o2) return true; // NaN === NaN\n\t  var t1 = typeof o1, t2 = typeof o2, length, key, keySet;\n\t  if (t1 == t2) {\n\t    if (t1 == 'object') {\n\t      if (isArray(o1)) {\n\t        if (!isArray(o2)) return false;\n\t        if ((length = o1.length) == o2.length) {\n\t          for (key = 0; key < length; key++) {\n\t            if (!equals(o1[key], o2[key])) return false;\n\t          }\n\t          return true;\n\t        }\n\t      } else if (isDate(o1)) {\n\t        if (!isDate(o2)) return false;\n\t        return equals(o1.getTime(), o2.getTime());\n\t      } else if (isRegExp(o1)) {\n\t        return isRegExp(o2) ? o1.toString() == o2.toString() : false;\n\t      } else {\n\t        if (isScope(o1) || isScope(o2) || isWindow(o1) || isWindow(o2) ||\n\t          isArray(o2) || isDate(o2) || isRegExp(o2)) return false;\n\t        keySet = {};\n\t        for (key in o1) {\n\t          if (key.charAt(0) === '$' || isFunction(o1[key])) continue;\n\t          if (!equals(o1[key], o2[key])) return false;\n\t          keySet[key] = true;\n\t        }\n\t        for (key in o2) {\n\t          if (!keySet.hasOwnProperty(key) &&\n\t              key.charAt(0) !== '$' &&\n\t              o2[key] !== undefined &&\n\t              !isFunction(o2[key])) return false;\n\t        }\n\t        return true;\n\t      }\n\t    }\n\t  }\n\t  return false;\n\t}\n\n\tvar csp = function() {\n\t  if (isDefined(csp.isActive_)) return csp.isActive_;\n\n\t  var active = !!(document.querySelector('[ng-csp]') ||\n\t                  document.querySelector('[data-ng-csp]'));\n\n\t  if (!active) {\n\t    try {\n\t      /* jshint -W031, -W054 */\n\t      new Function('');\n\t      /* jshint +W031, +W054 */\n\t    } catch (e) {\n\t      active = true;\n\t    }\n\t  }\n\n\t  return (csp.isActive_ = active);\n\t};\n\n\n\n\tfunction concat(array1, array2, index) {\n\t  return array1.concat(slice.call(array2, index));\n\t}\n\n\tfunction sliceArgs(args, startIndex) {\n\t  return slice.call(args, startIndex || 0);\n\t}\n\n\n\t/* jshint -W101 */\n\t/**\n\t * @ngdoc function\n\t * @name angular.bind\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Returns a function which calls function `fn` bound to `self` (`self` becomes the `this` for\n\t * `fn`). You can supply optional `args` that are prebound to the function. This feature is also\n\t * known as [partial application](http://en.wikipedia.org/wiki/Partial_application), as\n\t * distinguished from [function currying](http://en.wikipedia.org/wiki/Currying#Contrast_with_partial_function_application).\n\t *\n\t * @param {Object} self Context which `fn` should be evaluated in.\n\t * @param {function()} fn Function to be bound.\n\t * @param {...*} args Optional arguments to be prebound to the `fn` function call.\n\t * @returns {function()} Function that wraps the `fn` with all the specified bindings.\n\t */\n\t/* jshint +W101 */\n\tfunction bind(self, fn) {\n\t  var curryArgs = arguments.length > 2 ? sliceArgs(arguments, 2) : [];\n\t  if (isFunction(fn) && !(fn instanceof RegExp)) {\n\t    return curryArgs.length\n\t      ? function() {\n\t          return arguments.length\n\t            ? fn.apply(self, concat(curryArgs, arguments, 0))\n\t            : fn.apply(self, curryArgs);\n\t        }\n\t      : function() {\n\t          return arguments.length\n\t            ? fn.apply(self, arguments)\n\t            : fn.call(self);\n\t        };\n\t  } else {\n\t    // in IE, native methods are not functions so they cannot be bound (note: they don't need to be)\n\t    return fn;\n\t  }\n\t}\n\n\n\tfunction toJsonReplacer(key, value) {\n\t  var val = value;\n\n\t  if (typeof key === 'string' && key.charAt(0) === '$' && key.charAt(1) === '$') {\n\t    val = undefined;\n\t  } else if (isWindow(value)) {\n\t    val = '$WINDOW';\n\t  } else if (value &&  document === value) {\n\t    val = '$DOCUMENT';\n\t  } else if (isScope(value)) {\n\t    val = '$SCOPE';\n\t  }\n\n\t  return val;\n\t}\n\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.toJson\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Serializes input into a JSON-formatted string. Properties with leading $$ characters will be\n\t * stripped since angular uses this notation internally.\n\t *\n\t * @param {Object|Array|Date|string|number} obj Input to be serialized into JSON.\n\t * @param {boolean|number=} pretty If set to true, the JSON output will contain newlines and whitespace.\n\t *    If set to an integer, the JSON output will contain that many spaces per indentation (the default is 2).\n\t * @returns {string|undefined} JSON-ified string representing `obj`.\n\t */\n\tfunction toJson(obj, pretty) {\n\t  if (typeof obj === 'undefined') return undefined;\n\t  if (!isNumber(pretty)) {\n\t    pretty = pretty ? 2 : null;\n\t  }\n\t  return JSON.stringify(obj, toJsonReplacer, pretty);\n\t}\n\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.fromJson\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Deserializes a JSON string.\n\t *\n\t * @param {string} json JSON string to deserialize.\n\t * @returns {Object|Array|string|number} Deserialized JSON string.\n\t */\n\tfunction fromJson(json) {\n\t  return isString(json)\n\t      ? JSON.parse(json)\n\t      : json;\n\t}\n\n\n\t/**\n\t * @returns {string} Returns the string representation of the element.\n\t */\n\tfunction startingTag(element) {\n\t  element = jqLite(element).clone();\n\t  try {\n\t    // turns out IE does not let you set .html() on elements which\n\t    // are not allowed to have children. So we just ignore it.\n\t    element.empty();\n\t  } catch (e) {}\n\t  var elemHtml = jqLite('<div>').append(element).html();\n\t  try {\n\t    return element[0].nodeType === NODE_TYPE_TEXT ? lowercase(elemHtml) :\n\t        elemHtml.\n\t          match(/^(<[^>]+>)/)[1].\n\t          replace(/^<([\\w\\-]+)/, function(match, nodeName) { return '<' + lowercase(nodeName); });\n\t  } catch (e) {\n\t    return lowercase(elemHtml);\n\t  }\n\n\t}\n\n\n\t/////////////////////////////////////////////////\n\n\t/**\n\t * Tries to decode the URI component without throwing an exception.\n\t *\n\t * @private\n\t * @param str value potential URI component to check.\n\t * @returns {boolean} True if `value` can be decoded\n\t * with the decodeURIComponent function.\n\t */\n\tfunction tryDecodeURIComponent(value) {\n\t  try {\n\t    return decodeURIComponent(value);\n\t  } catch (e) {\n\t    // Ignore any invalid uri component\n\t  }\n\t}\n\n\n\t/**\n\t * Parses an escaped url query string into key-value pairs.\n\t * @returns {Object.<string,boolean|Array>}\n\t */\n\tfunction parseKeyValue(/**string*/keyValue) {\n\t  var obj = {}, key_value, key;\n\t  forEach((keyValue || \"\").split('&'), function(keyValue) {\n\t    if (keyValue) {\n\t      key_value = keyValue.replace(/\\+/g,'%20').split('=');\n\t      key = tryDecodeURIComponent(key_value[0]);\n\t      if (isDefined(key)) {\n\t        var val = isDefined(key_value[1]) ? tryDecodeURIComponent(key_value[1]) : true;\n\t        if (!hasOwnProperty.call(obj, key)) {\n\t          obj[key] = val;\n\t        } else if (isArray(obj[key])) {\n\t          obj[key].push(val);\n\t        } else {\n\t          obj[key] = [obj[key],val];\n\t        }\n\t      }\n\t    }\n\t  });\n\t  return obj;\n\t}\n\n\tfunction toKeyValue(obj) {\n\t  var parts = [];\n\t  forEach(obj, function(value, key) {\n\t    if (isArray(value)) {\n\t      forEach(value, function(arrayValue) {\n\t        parts.push(encodeUriQuery(key, true) +\n\t                   (arrayValue === true ? '' : '=' + encodeUriQuery(arrayValue, true)));\n\t      });\n\t    } else {\n\t    parts.push(encodeUriQuery(key, true) +\n\t               (value === true ? '' : '=' + encodeUriQuery(value, true)));\n\t    }\n\t  });\n\t  return parts.length ? parts.join('&') : '';\n\t}\n\n\n\t/**\n\t * We need our custom method because encodeURIComponent is too aggressive and doesn't follow\n\t * http://www.ietf.org/rfc/rfc3986.txt with regards to the character set (pchar) allowed in path\n\t * segments:\n\t *    segment       = *pchar\n\t *    pchar         = unreserved / pct-encoded / sub-delims / \":\" / \"@\"\n\t *    pct-encoded   = \"%\" HEXDIG HEXDIG\n\t *    unreserved    = ALPHA / DIGIT / \"-\" / \".\" / \"_\" / \"~\"\n\t *    sub-delims    = \"!\" / \"$\" / \"&\" / \"'\" / \"(\" / \")\"\n\t *                     / \"*\" / \"+\" / \",\" / \";\" / \"=\"\n\t */\n\tfunction encodeUriSegment(val) {\n\t  return encodeUriQuery(val, true).\n\t             replace(/%26/gi, '&').\n\t             replace(/%3D/gi, '=').\n\t             replace(/%2B/gi, '+');\n\t}\n\n\n\t/**\n\t * This method is intended for encoding *key* or *value* parts of query component. We need a custom\n\t * method because encodeURIComponent is too aggressive and encodes stuff that doesn't have to be\n\t * encoded per http://tools.ietf.org/html/rfc3986:\n\t *    query       = *( pchar / \"/\" / \"?\" )\n\t *    pchar         = unreserved / pct-encoded / sub-delims / \":\" / \"@\"\n\t *    unreserved    = ALPHA / DIGIT / \"-\" / \".\" / \"_\" / \"~\"\n\t *    pct-encoded   = \"%\" HEXDIG HEXDIG\n\t *    sub-delims    = \"!\" / \"$\" / \"&\" / \"'\" / \"(\" / \")\"\n\t *                     / \"*\" / \"+\" / \",\" / \";\" / \"=\"\n\t */\n\tfunction encodeUriQuery(val, pctEncodeSpaces) {\n\t  return encodeURIComponent(val).\n\t             replace(/%40/gi, '@').\n\t             replace(/%3A/gi, ':').\n\t             replace(/%24/g, '$').\n\t             replace(/%2C/gi, ',').\n\t             replace(/%3B/gi, ';').\n\t             replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));\n\t}\n\n\tvar ngAttrPrefixes = ['ng-', 'data-ng-', 'ng:', 'x-ng-'];\n\n\tfunction getNgAttribute(element, ngAttr) {\n\t  var attr, i, ii = ngAttrPrefixes.length;\n\t  element = jqLite(element);\n\t  for (i = 0; i < ii; ++i) {\n\t    attr = ngAttrPrefixes[i] + ngAttr;\n\t    if (isString(attr = element.attr(attr))) {\n\t      return attr;\n\t    }\n\t  }\n\t  return null;\n\t}\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngApp\n\t * @module ng\n\t *\n\t * @element ANY\n\t * @param {angular.Module} ngApp an optional application\n\t *   {@link angular.module module} name to load.\n\t * @param {boolean=} ngStrictDi if this attribute is present on the app element, the injector will be\n\t *   created in \"strict-di\" mode. This means that the application will fail to invoke functions which\n\t *   do not use explicit function annotation (and are thus unsuitable for minification), as described\n\t *   in {@link guide/di the Dependency Injection guide}, and useful debugging info will assist in\n\t *   tracking down the root of these bugs.\n\t *\n\t * @description\n\t *\n\t * Use this directive to **auto-bootstrap** an AngularJS application. The `ngApp` directive\n\t * designates the **root element** of the application and is typically placed near the root element\n\t * of the page - e.g. on the `<body>` or `<html>` tags.\n\t *\n\t * Only one AngularJS application can be auto-bootstrapped per HTML document. The first `ngApp`\n\t * found in the document will be used to define the root element to auto-bootstrap as an\n\t * application. To run multiple applications in an HTML document you must manually bootstrap them using\n\t * {@link angular.bootstrap} instead. AngularJS applications cannot be nested within each other.\n\t *\n\t * You can specify an **AngularJS module** to be used as the root module for the application.  This\n\t * module will be loaded into the {@link auto.$injector} when the application is bootstrapped. It\n\t * should contain the application code needed or have dependencies on other modules that will\n\t * contain the code. See {@link angular.module} for more information.\n\t *\n\t * In the example below if the `ngApp` directive were not placed on the `html` element then the\n\t * document would not be compiled, the `AppController` would not be instantiated and the `{{ a+b }}`\n\t * would not be resolved to `3`.\n\t *\n\t * `ngApp` is the easiest, and most common way to bootstrap an application.\n\t *\n\t <example module=\"ngAppDemo\">\n\t   <file name=\"index.html\">\n\t   <div ng-controller=\"ngAppDemoController\">\n\t     I can add: {{a}} + {{b}} =  {{ a+b }}\n\t   </div>\n\t   </file>\n\t   <file name=\"script.js\">\n\t   angular.module('ngAppDemo', []).controller('ngAppDemoController', function($scope) {\n\t     $scope.a = 1;\n\t     $scope.b = 2;\n\t   });\n\t   </file>\n\t </example>\n\t *\n\t * Using `ngStrictDi`, you would see something like this:\n\t *\n\t <example ng-app-included=\"true\">\n\t   <file name=\"index.html\">\n\t   <div ng-app=\"ngAppStrictDemo\" ng-strict-di>\n\t       <div ng-controller=\"GoodController1\">\n\t           I can add: {{a}} + {{b}} =  {{ a+b }}\n\n\t           <p>This renders because the controller does not fail to\n\t              instantiate, by using explicit annotation style (see\n\t              script.js for details)\n\t           </p>\n\t       </div>\n\n\t       <div ng-controller=\"GoodController2\">\n\t           Name: <input ng-model=\"name\"><br />\n\t           Hello, {{name}}!\n\n\t           <p>This renders because the controller does not fail to\n\t              instantiate, by using explicit annotation style\n\t              (see script.js for details)\n\t           </p>\n\t       </div>\n\n\t       <div ng-controller=\"BadController\">\n\t           I can add: {{a}} + {{b}} =  {{ a+b }}\n\n\t           <p>The controller could not be instantiated, due to relying\n\t              on automatic function annotations (which are disabled in\n\t              strict mode). As such, the content of this section is not\n\t              interpolated, and there should be an error in your web console.\n\t           </p>\n\t       </div>\n\t   </div>\n\t   </file>\n\t   <file name=\"script.js\">\n\t   angular.module('ngAppStrictDemo', [])\n\t     // BadController will fail to instantiate, due to relying on automatic function annotation,\n\t     // rather than an explicit annotation\n\t     .controller('BadController', function($scope) {\n\t       $scope.a = 1;\n\t       $scope.b = 2;\n\t     })\n\t     // Unlike BadController, GoodController1 and GoodController2 will not fail to be instantiated,\n\t     // due to using explicit annotations using the array style and $inject property, respectively.\n\t     .controller('GoodController1', ['$scope', function($scope) {\n\t       $scope.a = 1;\n\t       $scope.b = 2;\n\t     }])\n\t     .controller('GoodController2', GoodController2);\n\t     function GoodController2($scope) {\n\t       $scope.name = \"World\";\n\t     }\n\t     GoodController2.$inject = ['$scope'];\n\t   </file>\n\t   <file name=\"style.css\">\n\t   div[ng-controller] {\n\t       margin-bottom: 1em;\n\t       -webkit-border-radius: 4px;\n\t       border-radius: 4px;\n\t       border: 1px solid;\n\t       padding: .5em;\n\t   }\n\t   div[ng-controller^=Good] {\n\t       border-color: #d6e9c6;\n\t       background-color: #dff0d8;\n\t       color: #3c763d;\n\t   }\n\t   div[ng-controller^=Bad] {\n\t       border-color: #ebccd1;\n\t       background-color: #f2dede;\n\t       color: #a94442;\n\t       margin-bottom: 0;\n\t   }\n\t   </file>\n\t </example>\n\t */\n\tfunction angularInit(element, bootstrap) {\n\t  var appElement,\n\t      module,\n\t      config = {};\n\n\t  // The element `element` has priority over any other element\n\t  forEach(ngAttrPrefixes, function(prefix) {\n\t    var name = prefix + 'app';\n\n\t    if (!appElement && element.hasAttribute && element.hasAttribute(name)) {\n\t      appElement = element;\n\t      module = element.getAttribute(name);\n\t    }\n\t  });\n\t  forEach(ngAttrPrefixes, function(prefix) {\n\t    var name = prefix + 'app';\n\t    var candidate;\n\n\t    if (!appElement && (candidate = element.querySelector('[' + name.replace(':', '\\\\:') + ']'))) {\n\t      appElement = candidate;\n\t      module = candidate.getAttribute(name);\n\t    }\n\t  });\n\t  if (appElement) {\n\t    config.strictDi = getNgAttribute(appElement, \"strict-di\") !== null;\n\t    bootstrap(appElement, module ? [module] : [], config);\n\t  }\n\t}\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.bootstrap\n\t * @module ng\n\t * @description\n\t * Use this function to manually start up angular application.\n\t *\n\t * See: {@link guide/bootstrap Bootstrap}\n\t *\n\t * Note that Protractor based end-to-end tests cannot use this function to bootstrap manually.\n\t * They must use {@link ng.directive:ngApp ngApp}.\n\t *\n\t * Angular will detect if it has been loaded into the browser more than once and only allow the\n\t * first loaded script to be bootstrapped and will report a warning to the browser console for\n\t * each of the subsequent scripts. This prevents strange results in applications, where otherwise\n\t * multiple instances of Angular try to work on the DOM.\n\t *\n\t * ```html\n\t * <!doctype html>\n\t * <html>\n\t * <body>\n\t * <div ng-controller=\"WelcomeController\">\n\t *   {{greeting}}\n\t * </div>\n\t *\n\t * <script src=\"angular.js\"></script>\n\t * <script>\n\t *   var app = angular.module('demo', [])\n\t *   .controller('WelcomeController', function($scope) {\n\t *       $scope.greeting = 'Welcome!';\n\t *   });\n\t *   angular.bootstrap(document, ['demo']);\n\t * </script>\n\t * </body>\n\t * </html>\n\t * ```\n\t *\n\t * @param {DOMElement} element DOM element which is the root of angular application.\n\t * @param {Array<String|Function|Array>=} modules an array of modules to load into the application.\n\t *     Each item in the array should be the name of a predefined module or a (DI annotated)\n\t *     function that will be invoked by the injector as a `config` block.\n\t *     See: {@link angular.module modules}\n\t * @param {Object=} config an object for defining configuration options for the application. The\n\t *     following keys are supported:\n\t *\n\t * * `strictDi` - disable automatic function annotation for the application. This is meant to\n\t *   assist in finding bugs which break minified code. Defaults to `false`.\n\t *\n\t * @returns {auto.$injector} Returns the newly created injector for this app.\n\t */\n\tfunction bootstrap(element, modules, config) {\n\t  if (!isObject(config)) config = {};\n\t  var defaultConfig = {\n\t    strictDi: false\n\t  };\n\t  config = extend(defaultConfig, config);\n\t  var doBootstrap = function() {\n\t    element = jqLite(element);\n\n\t    if (element.injector()) {\n\t      var tag = (element[0] === document) ? 'document' : startingTag(element);\n\t      //Encode angle brackets to prevent input from being sanitized to empty string #8683\n\t      throw ngMinErr(\n\t          'btstrpd',\n\t          \"App Already Bootstrapped with this Element '{0}'\",\n\t          tag.replace(/</,'&lt;').replace(/>/,'&gt;'));\n\t    }\n\n\t    modules = modules || [];\n\t    modules.unshift(['$provide', function($provide) {\n\t      $provide.value('$rootElement', element);\n\t    }]);\n\n\t    if (config.debugInfoEnabled) {\n\t      // Pushing so that this overrides `debugInfoEnabled` setting defined in user's `modules`.\n\t      modules.push(['$compileProvider', function($compileProvider) {\n\t        $compileProvider.debugInfoEnabled(true);\n\t      }]);\n\t    }\n\n\t    modules.unshift('ng');\n\t    var injector = createInjector(modules, config.strictDi);\n\t    injector.invoke(['$rootScope', '$rootElement', '$compile', '$injector',\n\t       function bootstrapApply(scope, element, compile, injector) {\n\t        scope.$apply(function() {\n\t          element.data('$injector', injector);\n\t          compile(element)(scope);\n\t        });\n\t      }]\n\t    );\n\t    return injector;\n\t  };\n\n\t  var NG_ENABLE_DEBUG_INFO = /^NG_ENABLE_DEBUG_INFO!/;\n\t  var NG_DEFER_BOOTSTRAP = /^NG_DEFER_BOOTSTRAP!/;\n\n\t  if (window && NG_ENABLE_DEBUG_INFO.test(window.name)) {\n\t    config.debugInfoEnabled = true;\n\t    window.name = window.name.replace(NG_ENABLE_DEBUG_INFO, '');\n\t  }\n\n\t  if (window && !NG_DEFER_BOOTSTRAP.test(window.name)) {\n\t    return doBootstrap();\n\t  }\n\n\t  window.name = window.name.replace(NG_DEFER_BOOTSTRAP, '');\n\t  angular.resumeBootstrap = function(extraModules) {\n\t    forEach(extraModules, function(module) {\n\t      modules.push(module);\n\t    });\n\t    return doBootstrap();\n\t  };\n\n\t  if (isFunction(angular.resumeDeferredBootstrap)) {\n\t    angular.resumeDeferredBootstrap();\n\t  }\n\t}\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.reloadWithDebugInfo\n\t * @module ng\n\t * @description\n\t * Use this function to reload the current application with debug information turned on.\n\t * This takes precedence over a call to `$compileProvider.debugInfoEnabled(false)`.\n\t *\n\t * See {@link ng.$compileProvider#debugInfoEnabled} for more.\n\t */\n\tfunction reloadWithDebugInfo() {\n\t  window.name = 'NG_ENABLE_DEBUG_INFO!' + window.name;\n\t  window.location.reload();\n\t}\n\n\t/**\n\t * @name angular.getTestability\n\t * @module ng\n\t * @description\n\t * Get the testability service for the instance of Angular on the given\n\t * element.\n\t * @param {DOMElement} element DOM element which is the root of angular application.\n\t */\n\tfunction getTestability(rootElement) {\n\t  var injector = angular.element(rootElement).injector();\n\t  if (!injector) {\n\t    throw ngMinErr('test',\n\t      'no injector found for element argument to getTestability');\n\t  }\n\t  return injector.get('$$testability');\n\t}\n\n\tvar SNAKE_CASE_REGEXP = /[A-Z]/g;\n\tfunction snake_case(name, separator) {\n\t  separator = separator || '_';\n\t  return name.replace(SNAKE_CASE_REGEXP, function(letter, pos) {\n\t    return (pos ? separator : '') + letter.toLowerCase();\n\t  });\n\t}\n\n\tvar bindJQueryFired = false;\n\tvar skipDestroyOnNextJQueryCleanData;\n\tfunction bindJQuery() {\n\t  var originalCleanData;\n\n\t  if (bindJQueryFired) {\n\t    return;\n\t  }\n\n\t  // bind to jQuery if present;\n\t  jQuery = window.jQuery;\n\t  // Use jQuery if it exists with proper functionality, otherwise default to us.\n\t  // Angular 1.2+ requires jQuery 1.7+ for on()/off() support.\n\t  // Angular 1.3+ technically requires at least jQuery 2.1+ but it may work with older\n\t  // versions. It will not work for sure with jQuery <1.7, though.\n\t  if (jQuery && jQuery.fn.on) {\n\t    jqLite = jQuery;\n\t    extend(jQuery.fn, {\n\t      scope: JQLitePrototype.scope,\n\t      isolateScope: JQLitePrototype.isolateScope,\n\t      controller: JQLitePrototype.controller,\n\t      injector: JQLitePrototype.injector,\n\t      inheritedData: JQLitePrototype.inheritedData\n\t    });\n\n\t    // All nodes removed from the DOM via various jQuery APIs like .remove()\n\t    // are passed through jQuery.cleanData. Monkey-patch this method to fire\n\t    // the $destroy event on all removed nodes.\n\t    originalCleanData = jQuery.cleanData;\n\t    jQuery.cleanData = function(elems) {\n\t      var events;\n\t      if (!skipDestroyOnNextJQueryCleanData) {\n\t        for (var i = 0, elem; (elem = elems[i]) != null; i++) {\n\t          events = jQuery._data(elem, \"events\");\n\t          if (events && events.$destroy) {\n\t            jQuery(elem).triggerHandler('$destroy');\n\t          }\n\t        }\n\t      } else {\n\t        skipDestroyOnNextJQueryCleanData = false;\n\t      }\n\t      originalCleanData(elems);\n\t    };\n\t  } else {\n\t    jqLite = JQLite;\n\t  }\n\n\t  angular.element = jqLite;\n\n\t  // Prevent double-proxying.\n\t  bindJQueryFired = true;\n\t}\n\n\t/**\n\t * throw error if the argument is falsy.\n\t */\n\tfunction assertArg(arg, name, reason) {\n\t  if (!arg) {\n\t    throw ngMinErr('areq', \"Argument '{0}' is {1}\", (name || '?'), (reason || \"required\"));\n\t  }\n\t  return arg;\n\t}\n\n\tfunction assertArgFn(arg, name, acceptArrayAnnotation) {\n\t  if (acceptArrayAnnotation && isArray(arg)) {\n\t      arg = arg[arg.length - 1];\n\t  }\n\n\t  assertArg(isFunction(arg), name, 'not a function, got ' +\n\t      (arg && typeof arg === 'object' ? arg.constructor.name || 'Object' : typeof arg));\n\t  return arg;\n\t}\n\n\t/**\n\t * throw error if the name given is hasOwnProperty\n\t * @param  {String} name    the name to test\n\t * @param  {String} context the context in which the name is used, such as module or directive\n\t */\n\tfunction assertNotHasOwnProperty(name, context) {\n\t  if (name === 'hasOwnProperty') {\n\t    throw ngMinErr('badname', \"hasOwnProperty is not a valid {0} name\", context);\n\t  }\n\t}\n\n\t/**\n\t * Return the value accessible from the object by path. Any undefined traversals are ignored\n\t * @param {Object} obj starting object\n\t * @param {String} path path to traverse\n\t * @param {boolean} [bindFnToScope=true]\n\t * @returns {Object} value as accessible by path\n\t */\n\t//TODO(misko): this function needs to be removed\n\tfunction getter(obj, path, bindFnToScope) {\n\t  if (!path) return obj;\n\t  var keys = path.split('.');\n\t  var key;\n\t  var lastInstance = obj;\n\t  var len = keys.length;\n\n\t  for (var i = 0; i < len; i++) {\n\t    key = keys[i];\n\t    if (obj) {\n\t      obj = (lastInstance = obj)[key];\n\t    }\n\t  }\n\t  if (!bindFnToScope && isFunction(obj)) {\n\t    return bind(lastInstance, obj);\n\t  }\n\t  return obj;\n\t}\n\n\t/**\n\t * Return the DOM siblings between the first and last node in the given array.\n\t * @param {Array} array like object\n\t * @returns {jqLite} jqLite collection containing the nodes\n\t */\n\tfunction getBlockNodes(nodes) {\n\t  // TODO(perf): just check if all items in `nodes` are siblings and if they are return the original\n\t  //             collection, otherwise update the original collection.\n\t  var node = nodes[0];\n\t  var endNode = nodes[nodes.length - 1];\n\t  var blockNodes = [node];\n\n\t  do {\n\t    node = node.nextSibling;\n\t    if (!node) break;\n\t    blockNodes.push(node);\n\t  } while (node !== endNode);\n\n\t  return jqLite(blockNodes);\n\t}\n\n\n\t/**\n\t * Creates a new object without a prototype. This object is useful for lookup without having to\n\t * guard against prototypically inherited properties via hasOwnProperty.\n\t *\n\t * Related micro-benchmarks:\n\t * - http://jsperf.com/object-create2\n\t * - http://jsperf.com/proto-map-lookup/2\n\t * - http://jsperf.com/for-in-vs-object-keys2\n\t *\n\t * @returns {Object}\n\t */\n\tfunction createMap() {\n\t  return Object.create(null);\n\t}\n\n\tvar NODE_TYPE_ELEMENT = 1;\n\tvar NODE_TYPE_TEXT = 3;\n\tvar NODE_TYPE_COMMENT = 8;\n\tvar NODE_TYPE_DOCUMENT = 9;\n\tvar NODE_TYPE_DOCUMENT_FRAGMENT = 11;\n\n\t/**\n\t * @ngdoc type\n\t * @name angular.Module\n\t * @module ng\n\t * @description\n\t *\n\t * Interface for configuring angular {@link angular.module modules}.\n\t */\n\n\tfunction setupModuleLoader(window) {\n\n\t  var $injectorMinErr = minErr('$injector');\n\t  var ngMinErr = minErr('ng');\n\n\t  function ensure(obj, name, factory) {\n\t    return obj[name] || (obj[name] = factory());\n\t  }\n\n\t  var angular = ensure(window, 'angular', Object);\n\n\t  // We need to expose `angular.$$minErr` to modules such as `ngResource` that reference it during bootstrap\n\t  angular.$$minErr = angular.$$minErr || minErr;\n\n\t  return ensure(angular, 'module', function() {\n\t    /** @type {Object.<string, angular.Module>} */\n\t    var modules = {};\n\n\t    /**\n\t     * @ngdoc function\n\t     * @name angular.module\n\t     * @module ng\n\t     * @description\n\t     *\n\t     * The `angular.module` is a global place for creating, registering and retrieving Angular\n\t     * modules.\n\t     * All modules (angular core or 3rd party) that should be available to an application must be\n\t     * registered using this mechanism.\n\t     *\n\t     * When passed two or more arguments, a new module is created.  If passed only one argument, an\n\t     * existing module (the name passed as the first argument to `module`) is retrieved.\n\t     *\n\t     *\n\t     * # Module\n\t     *\n\t     * A module is a collection of services, directives, controllers, filters, and configuration information.\n\t     * `angular.module` is used to configure the {@link auto.$injector $injector}.\n\t     *\n\t     * ```js\n\t     * // Create a new module\n\t     * var myModule = angular.module('myModule', []);\n\t     *\n\t     * // register a new service\n\t     * myModule.value('appName', 'MyCoolApp');\n\t     *\n\t     * // configure existing services inside initialization blocks.\n\t     * myModule.config(['$locationProvider', function($locationProvider) {\n\t     *   // Configure existing providers\n\t     *   $locationProvider.hashPrefix('!');\n\t     * }]);\n\t     * ```\n\t     *\n\t     * Then you can create an injector and load your modules like this:\n\t     *\n\t     * ```js\n\t     * var injector = angular.injector(['ng', 'myModule'])\n\t     * ```\n\t     *\n\t     * However it's more likely that you'll just use\n\t     * {@link ng.directive:ngApp ngApp} or\n\t     * {@link angular.bootstrap} to simplify this process for you.\n\t     *\n\t     * @param {!string} name The name of the module to create or retrieve.\n\t     * @param {!Array.<string>=} requires If specified then new module is being created. If\n\t     *        unspecified then the module is being retrieved for further configuration.\n\t     * @param {Function=} configFn Optional configuration function for the module. Same as\n\t     *        {@link angular.Module#config Module#config()}.\n\t     * @returns {module} new module with the {@link angular.Module} api.\n\t     */\n\t    return function module(name, requires, configFn) {\n\t      var assertNotHasOwnProperty = function(name, context) {\n\t        if (name === 'hasOwnProperty') {\n\t          throw ngMinErr('badname', 'hasOwnProperty is not a valid {0} name', context);\n\t        }\n\t      };\n\n\t      assertNotHasOwnProperty(name, 'module');\n\t      if (requires && modules.hasOwnProperty(name)) {\n\t        modules[name] = null;\n\t      }\n\t      return ensure(modules, name, function() {\n\t        if (!requires) {\n\t          throw $injectorMinErr('nomod', \"Module '{0}' is not available! You either misspelled \" +\n\t             \"the module name or forgot to load it. If registering a module ensure that you \" +\n\t             \"specify the dependencies as the second argument.\", name);\n\t        }\n\n\t        /** @type {!Array.<Array.<*>>} */\n\t        var invokeQueue = [];\n\n\t        /** @type {!Array.<Function>} */\n\t        var configBlocks = [];\n\n\t        /** @type {!Array.<Function>} */\n\t        var runBlocks = [];\n\n\t        var config = invokeLater('$injector', 'invoke', 'push', configBlocks);\n\n\t        /** @type {angular.Module} */\n\t        var moduleInstance = {\n\t          // Private state\n\t          _invokeQueue: invokeQueue,\n\t          _configBlocks: configBlocks,\n\t          _runBlocks: runBlocks,\n\n\t          /**\n\t           * @ngdoc property\n\t           * @name angular.Module#requires\n\t           * @module ng\n\t           *\n\t           * @description\n\t           * Holds the list of modules which the injector will load before the current module is\n\t           * loaded.\n\t           */\n\t          requires: requires,\n\n\t          /**\n\t           * @ngdoc property\n\t           * @name angular.Module#name\n\t           * @module ng\n\t           *\n\t           * @description\n\t           * Name of the module.\n\t           */\n\t          name: name,\n\n\n\t          /**\n\t           * @ngdoc method\n\t           * @name angular.Module#provider\n\t           * @module ng\n\t           * @param {string} name service name\n\t           * @param {Function} providerType Construction function for creating new instance of the\n\t           *                                service.\n\t           * @description\n\t           * See {@link auto.$provide#provider $provide.provider()}.\n\t           */\n\t          provider: invokeLater('$provide', 'provider'),\n\n\t          /**\n\t           * @ngdoc method\n\t           * @name angular.Module#factory\n\t           * @module ng\n\t           * @param {string} name service name\n\t           * @param {Function} providerFunction Function for creating new instance of the service.\n\t           * @description\n\t           * See {@link auto.$provide#factory $provide.factory()}.\n\t           */\n\t          factory: invokeLater('$provide', 'factory'),\n\n\t          /**\n\t           * @ngdoc method\n\t           * @name angular.Module#service\n\t           * @module ng\n\t           * @param {string} name service name\n\t           * @param {Function} constructor A constructor function that will be instantiated.\n\t           * @description\n\t           * See {@link auto.$provide#service $provide.service()}.\n\t           */\n\t          service: invokeLater('$provide', 'service'),\n\n\t          /**\n\t           * @ngdoc method\n\t           * @name angular.Module#value\n\t           * @module ng\n\t           * @param {string} name service name\n\t           * @param {*} object Service instance object.\n\t           * @description\n\t           * See {@link auto.$provide#value $provide.value()}.\n\t           */\n\t          value: invokeLater('$provide', 'value'),\n\n\t          /**\n\t           * @ngdoc method\n\t           * @name angular.Module#constant\n\t           * @module ng\n\t           * @param {string} name constant name\n\t           * @param {*} object Constant value.\n\t           * @description\n\t           * Because the constant are fixed, they get applied before other provide methods.\n\t           * See {@link auto.$provide#constant $provide.constant()}.\n\t           */\n\t          constant: invokeLater('$provide', 'constant', 'unshift'),\n\n\t          /**\n\t           * @ngdoc method\n\t           * @name angular.Module#animation\n\t           * @module ng\n\t           * @param {string} name animation name\n\t           * @param {Function} animationFactory Factory function for creating new instance of an\n\t           *                                    animation.\n\t           * @description\n\t           *\n\t           * **NOTE**: animations take effect only if the **ngAnimate** module is loaded.\n\t           *\n\t           *\n\t           * Defines an animation hook that can be later used with\n\t           * {@link ngAnimate.$animate $animate} service and directives that use this service.\n\t           *\n\t           * ```js\n\t           * module.animation('.animation-name', function($inject1, $inject2) {\n\t           *   return {\n\t           *     eventName : function(element, done) {\n\t           *       //code to run the animation\n\t           *       //once complete, then run done()\n\t           *       return function cancellationFunction(element) {\n\t           *         //code to cancel the animation\n\t           *       }\n\t           *     }\n\t           *   }\n\t           * })\n\t           * ```\n\t           *\n\t           * See {@link ng.$animateProvider#register $animateProvider.register()} and\n\t           * {@link ngAnimate ngAnimate module} for more information.\n\t           */\n\t          animation: invokeLater('$animateProvider', 'register'),\n\n\t          /**\n\t           * @ngdoc method\n\t           * @name angular.Module#filter\n\t           * @module ng\n\t           * @param {string} name Filter name.\n\t           * @param {Function} filterFactory Factory function for creating new instance of filter.\n\t           * @description\n\t           * See {@link ng.$filterProvider#register $filterProvider.register()}.\n\t           */\n\t          filter: invokeLater('$filterProvider', 'register'),\n\n\t          /**\n\t           * @ngdoc method\n\t           * @name angular.Module#controller\n\t           * @module ng\n\t           * @param {string|Object} name Controller name, or an object map of controllers where the\n\t           *    keys are the names and the values are the constructors.\n\t           * @param {Function} constructor Controller constructor function.\n\t           * @description\n\t           * See {@link ng.$controllerProvider#register $controllerProvider.register()}.\n\t           */\n\t          controller: invokeLater('$controllerProvider', 'register'),\n\n\t          /**\n\t           * @ngdoc method\n\t           * @name angular.Module#directive\n\t           * @module ng\n\t           * @param {string|Object} name Directive name, or an object map of directives where the\n\t           *    keys are the names and the values are the factories.\n\t           * @param {Function} directiveFactory Factory function for creating new instance of\n\t           * directives.\n\t           * @description\n\t           * See {@link ng.$compileProvider#directive $compileProvider.directive()}.\n\t           */\n\t          directive: invokeLater('$compileProvider', 'directive'),\n\n\t          /**\n\t           * @ngdoc method\n\t           * @name angular.Module#config\n\t           * @module ng\n\t           * @param {Function} configFn Execute this function on module load. Useful for service\n\t           *    configuration.\n\t           * @description\n\t           * Use this method to register work which needs to be performed on module loading.\n\t           * For more about how to configure services, see\n\t           * {@link providers#provider-recipe Provider Recipe}.\n\t           */\n\t          config: config,\n\n\t          /**\n\t           * @ngdoc method\n\t           * @name angular.Module#run\n\t           * @module ng\n\t           * @param {Function} initializationFn Execute this function after injector creation.\n\t           *    Useful for application initialization.\n\t           * @description\n\t           * Use this method to register work which should be performed when the injector is done\n\t           * loading all modules.\n\t           */\n\t          run: function(block) {\n\t            runBlocks.push(block);\n\t            return this;\n\t          }\n\t        };\n\n\t        if (configFn) {\n\t          config(configFn);\n\t        }\n\n\t        return moduleInstance;\n\n\t        /**\n\t         * @param {string} provider\n\t         * @param {string} method\n\t         * @param {String=} insertMethod\n\t         * @returns {angular.Module}\n\t         */\n\t        function invokeLater(provider, method, insertMethod, queue) {\n\t          if (!queue) queue = invokeQueue;\n\t          return function() {\n\t            queue[insertMethod || 'push']([provider, method, arguments]);\n\t            return moduleInstance;\n\t          };\n\t        }\n\t      });\n\t    };\n\t  });\n\n\t}\n\n\t/* global: toDebugString: true */\n\n\tfunction serializeObject(obj) {\n\t  var seen = [];\n\n\t  return JSON.stringify(obj, function(key, val) {\n\t    val = toJsonReplacer(key, val);\n\t    if (isObject(val)) {\n\n\t      if (seen.indexOf(val) >= 0) return '<<already seen>>';\n\n\t      seen.push(val);\n\t    }\n\t    return val;\n\t  });\n\t}\n\n\tfunction toDebugString(obj) {\n\t  if (typeof obj === 'function') {\n\t    return obj.toString().replace(/ \\{[\\s\\S]*$/, '');\n\t  } else if (typeof obj === 'undefined') {\n\t    return 'undefined';\n\t  } else if (typeof obj !== 'string') {\n\t    return serializeObject(obj);\n\t  }\n\t  return obj;\n\t}\n\n\t/* global angularModule: true,\n\t  version: true,\n\n\t  $LocaleProvider,\n\t  $CompileProvider,\n\n\t  htmlAnchorDirective,\n\t  inputDirective,\n\t  inputDirective,\n\t  formDirective,\n\t  scriptDirective,\n\t  selectDirective,\n\t  styleDirective,\n\t  optionDirective,\n\t  ngBindDirective,\n\t  ngBindHtmlDirective,\n\t  ngBindTemplateDirective,\n\t  ngClassDirective,\n\t  ngClassEvenDirective,\n\t  ngClassOddDirective,\n\t  ngCspDirective,\n\t  ngCloakDirective,\n\t  ngControllerDirective,\n\t  ngFormDirective,\n\t  ngHideDirective,\n\t  ngIfDirective,\n\t  ngIncludeDirective,\n\t  ngIncludeFillContentDirective,\n\t  ngInitDirective,\n\t  ngNonBindableDirective,\n\t  ngPluralizeDirective,\n\t  ngRepeatDirective,\n\t  ngShowDirective,\n\t  ngStyleDirective,\n\t  ngSwitchDirective,\n\t  ngSwitchWhenDirective,\n\t  ngSwitchDefaultDirective,\n\t  ngOptionsDirective,\n\t  ngTranscludeDirective,\n\t  ngModelDirective,\n\t  ngListDirective,\n\t  ngChangeDirective,\n\t  patternDirective,\n\t  patternDirective,\n\t  requiredDirective,\n\t  requiredDirective,\n\t  minlengthDirective,\n\t  minlengthDirective,\n\t  maxlengthDirective,\n\t  maxlengthDirective,\n\t  ngValueDirective,\n\t  ngModelOptionsDirective,\n\t  ngAttributeAliasDirectives,\n\t  ngEventDirectives,\n\n\t  $AnchorScrollProvider,\n\t  $AnimateProvider,\n\t  $BrowserProvider,\n\t  $CacheFactoryProvider,\n\t  $ControllerProvider,\n\t  $DocumentProvider,\n\t  $ExceptionHandlerProvider,\n\t  $FilterProvider,\n\t  $InterpolateProvider,\n\t  $IntervalProvider,\n\t  $HttpProvider,\n\t  $HttpBackendProvider,\n\t  $LocationProvider,\n\t  $LogProvider,\n\t  $ParseProvider,\n\t  $RootScopeProvider,\n\t  $QProvider,\n\t  $$QProvider,\n\t  $$SanitizeUriProvider,\n\t  $SceProvider,\n\t  $SceDelegateProvider,\n\t  $SnifferProvider,\n\t  $TemplateCacheProvider,\n\t  $TemplateRequestProvider,\n\t  $$TestabilityProvider,\n\t  $TimeoutProvider,\n\t  $$RAFProvider,\n\t  $$AsyncCallbackProvider,\n\t  $WindowProvider,\n\t  $$jqLiteProvider\n\t*/\n\n\n\t/**\n\t * @ngdoc object\n\t * @name angular.version\n\t * @module ng\n\t * @description\n\t * An object that contains information about the current AngularJS version. This object has the\n\t * following properties:\n\t *\n\t * - `full` – `{string}` – Full version string, such as \"0.9.18\".\n\t * - `major` – `{number}` – Major version number, such as \"0\".\n\t * - `minor` – `{number}` – Minor version number, such as \"9\".\n\t * - `dot` – `{number}` – Dot version number, such as \"18\".\n\t * - `codeName` – `{string}` – Code name of the release, such as \"jiggling-armfat\".\n\t */\n\tvar version = {\n\t  full: '1.3.15',    // all of these placeholder strings will be replaced by grunt's\n\t  major: 1,    // package task\n\t  minor: 3,\n\t  dot: 15,\n\t  codeName: 'locality-filtration'\n\t};\n\n\n\tfunction publishExternalAPI(angular) {\n\t  extend(angular, {\n\t    'bootstrap': bootstrap,\n\t    'copy': copy,\n\t    'extend': extend,\n\t    'equals': equals,\n\t    'element': jqLite,\n\t    'forEach': forEach,\n\t    'injector': createInjector,\n\t    'noop': noop,\n\t    'bind': bind,\n\t    'toJson': toJson,\n\t    'fromJson': fromJson,\n\t    'identity': identity,\n\t    'isUndefined': isUndefined,\n\t    'isDefined': isDefined,\n\t    'isString': isString,\n\t    'isFunction': isFunction,\n\t    'isObject': isObject,\n\t    'isNumber': isNumber,\n\t    'isElement': isElement,\n\t    'isArray': isArray,\n\t    'version': version,\n\t    'isDate': isDate,\n\t    'lowercase': lowercase,\n\t    'uppercase': uppercase,\n\t    'callbacks': {counter: 0},\n\t    'getTestability': getTestability,\n\t    '$$minErr': minErr,\n\t    '$$csp': csp,\n\t    'reloadWithDebugInfo': reloadWithDebugInfo\n\t  });\n\n\t  angularModule = setupModuleLoader(window);\n\t  try {\n\t    angularModule('ngLocale');\n\t  } catch (e) {\n\t    angularModule('ngLocale', []).provider('$locale', $LocaleProvider);\n\t  }\n\n\t  angularModule('ng', ['ngLocale'], ['$provide',\n\t    function ngModule($provide) {\n\t      // $$sanitizeUriProvider needs to be before $compileProvider as it is used by it.\n\t      $provide.provider({\n\t        $$sanitizeUri: $$SanitizeUriProvider\n\t      });\n\t      $provide.provider('$compile', $CompileProvider).\n\t        directive({\n\t            a: htmlAnchorDirective,\n\t            input: inputDirective,\n\t            textarea: inputDirective,\n\t            form: formDirective,\n\t            script: scriptDirective,\n\t            select: selectDirective,\n\t            style: styleDirective,\n\t            option: optionDirective,\n\t            ngBind: ngBindDirective,\n\t            ngBindHtml: ngBindHtmlDirective,\n\t            ngBindTemplate: ngBindTemplateDirective,\n\t            ngClass: ngClassDirective,\n\t            ngClassEven: ngClassEvenDirective,\n\t            ngClassOdd: ngClassOddDirective,\n\t            ngCloak: ngCloakDirective,\n\t            ngController: ngControllerDirective,\n\t            ngForm: ngFormDirective,\n\t            ngHide: ngHideDirective,\n\t            ngIf: ngIfDirective,\n\t            ngInclude: ngIncludeDirective,\n\t            ngInit: ngInitDirective,\n\t            ngNonBindable: ngNonBindableDirective,\n\t            ngPluralize: ngPluralizeDirective,\n\t            ngRepeat: ngRepeatDirective,\n\t            ngShow: ngShowDirective,\n\t            ngStyle: ngStyleDirective,\n\t            ngSwitch: ngSwitchDirective,\n\t            ngSwitchWhen: ngSwitchWhenDirective,\n\t            ngSwitchDefault: ngSwitchDefaultDirective,\n\t            ngOptions: ngOptionsDirective,\n\t            ngTransclude: ngTranscludeDirective,\n\t            ngModel: ngModelDirective,\n\t            ngList: ngListDirective,\n\t            ngChange: ngChangeDirective,\n\t            pattern: patternDirective,\n\t            ngPattern: patternDirective,\n\t            required: requiredDirective,\n\t            ngRequired: requiredDirective,\n\t            minlength: minlengthDirective,\n\t            ngMinlength: minlengthDirective,\n\t            maxlength: maxlengthDirective,\n\t            ngMaxlength: maxlengthDirective,\n\t            ngValue: ngValueDirective,\n\t            ngModelOptions: ngModelOptionsDirective\n\t        }).\n\t        directive({\n\t          ngInclude: ngIncludeFillContentDirective\n\t        }).\n\t        directive(ngAttributeAliasDirectives).\n\t        directive(ngEventDirectives);\n\t      $provide.provider({\n\t        $anchorScroll: $AnchorScrollProvider,\n\t        $animate: $AnimateProvider,\n\t        $browser: $BrowserProvider,\n\t        $cacheFactory: $CacheFactoryProvider,\n\t        $controller: $ControllerProvider,\n\t        $document: $DocumentProvider,\n\t        $exceptionHandler: $ExceptionHandlerProvider,\n\t        $filter: $FilterProvider,\n\t        $interpolate: $InterpolateProvider,\n\t        $interval: $IntervalProvider,\n\t        $http: $HttpProvider,\n\t        $httpBackend: $HttpBackendProvider,\n\t        $location: $LocationProvider,\n\t        $log: $LogProvider,\n\t        $parse: $ParseProvider,\n\t        $rootScope: $RootScopeProvider,\n\t        $q: $QProvider,\n\t        $$q: $$QProvider,\n\t        $sce: $SceProvider,\n\t        $sceDelegate: $SceDelegateProvider,\n\t        $sniffer: $SnifferProvider,\n\t        $templateCache: $TemplateCacheProvider,\n\t        $templateRequest: $TemplateRequestProvider,\n\t        $$testability: $$TestabilityProvider,\n\t        $timeout: $TimeoutProvider,\n\t        $window: $WindowProvider,\n\t        $$rAF: $$RAFProvider,\n\t        $$asyncCallback: $$AsyncCallbackProvider,\n\t        $$jqLite: $$jqLiteProvider\n\t      });\n\t    }\n\t  ]);\n\t}\n\n\t/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\n\t *     Any commits to this file should be reviewed with security in mind.  *\n\t *   Changes to this file can potentially create security vulnerabilities. *\n\t *          An approval from 2 Core members with history of modifying      *\n\t *                         this file is required.                          *\n\t *                                                                         *\n\t *  Does the change somehow allow for arbitrary javascript to be executed? *\n\t *    Or allows for someone to change the prototype of built-in objects?   *\n\t *     Or gives undesired access to variables likes document or window?    *\n\t * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */\n\n\t/* global JQLitePrototype: true,\n\t  addEventListenerFn: true,\n\t  removeEventListenerFn: true,\n\t  BOOLEAN_ATTR: true,\n\t  ALIASED_ATTR: true,\n\t*/\n\n\t//////////////////////////////////\n\t//JQLite\n\t//////////////////////////////////\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.element\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Wraps a raw DOM element or HTML string as a [jQuery](http://jquery.com) element.\n\t *\n\t * If jQuery is available, `angular.element` is an alias for the\n\t * [jQuery](http://api.jquery.com/jQuery/) function. If jQuery is not available, `angular.element`\n\t * delegates to Angular's built-in subset of jQuery, called \"jQuery lite\" or \"jqLite.\"\n\t *\n\t * <div class=\"alert alert-success\">jqLite is a tiny, API-compatible subset of jQuery that allows\n\t * Angular to manipulate the DOM in a cross-browser compatible way. **jqLite** implements only the most\n\t * commonly needed functionality with the goal of having a very small footprint.</div>\n\t *\n\t * To use jQuery, simply load it before `DOMContentLoaded` event fired.\n\t *\n\t * <div class=\"alert\">**Note:** all element references in Angular are always wrapped with jQuery or\n\t * jqLite; they are never raw DOM references.</div>\n\t *\n\t * ## Angular's jqLite\n\t * jqLite provides only the following jQuery methods:\n\t *\n\t * - [`addClass()`](http://api.jquery.com/addClass/)\n\t * - [`after()`](http://api.jquery.com/after/)\n\t * - [`append()`](http://api.jquery.com/append/)\n\t * - [`attr()`](http://api.jquery.com/attr/) - Does not support functions as parameters\n\t * - [`bind()`](http://api.jquery.com/bind/) - Does not support namespaces, selectors or eventData\n\t * - [`children()`](http://api.jquery.com/children/) - Does not support selectors\n\t * - [`clone()`](http://api.jquery.com/clone/)\n\t * - [`contents()`](http://api.jquery.com/contents/)\n\t * - [`css()`](http://api.jquery.com/css/) - Only retrieves inline-styles, does not call `getComputedStyle()`\n\t * - [`data()`](http://api.jquery.com/data/)\n\t * - [`detach()`](http://api.jquery.com/detach/)\n\t * - [`empty()`](http://api.jquery.com/empty/)\n\t * - [`eq()`](http://api.jquery.com/eq/)\n\t * - [`find()`](http://api.jquery.com/find/) - Limited to lookups by tag name\n\t * - [`hasClass()`](http://api.jquery.com/hasClass/)\n\t * - [`html()`](http://api.jquery.com/html/)\n\t * - [`next()`](http://api.jquery.com/next/) - Does not support selectors\n\t * - [`on()`](http://api.jquery.com/on/) - Does not support namespaces, selectors or eventData\n\t * - [`off()`](http://api.jquery.com/off/) - Does not support namespaces or selectors\n\t * - [`one()`](http://api.jquery.com/one/) - Does not support namespaces or selectors\n\t * - [`parent()`](http://api.jquery.com/parent/) - Does not support selectors\n\t * - [`prepend()`](http://api.jquery.com/prepend/)\n\t * - [`prop()`](http://api.jquery.com/prop/)\n\t * - [`ready()`](http://api.jquery.com/ready/)\n\t * - [`remove()`](http://api.jquery.com/remove/)\n\t * - [`removeAttr()`](http://api.jquery.com/removeAttr/)\n\t * - [`removeClass()`](http://api.jquery.com/removeClass/)\n\t * - [`removeData()`](http://api.jquery.com/removeData/)\n\t * - [`replaceWith()`](http://api.jquery.com/replaceWith/)\n\t * - [`text()`](http://api.jquery.com/text/)\n\t * - [`toggleClass()`](http://api.jquery.com/toggleClass/)\n\t * - [`triggerHandler()`](http://api.jquery.com/triggerHandler/) - Passes a dummy event object to handlers.\n\t * - [`unbind()`](http://api.jquery.com/unbind/) - Does not support namespaces\n\t * - [`val()`](http://api.jquery.com/val/)\n\t * - [`wrap()`](http://api.jquery.com/wrap/)\n\t *\n\t * ## jQuery/jqLite Extras\n\t * Angular also provides the following additional methods and events to both jQuery and jqLite:\n\t *\n\t * ### Events\n\t * - `$destroy` - AngularJS intercepts all jqLite/jQuery's DOM destruction apis and fires this event\n\t *    on all DOM nodes being removed.  This can be used to clean up any 3rd party bindings to the DOM\n\t *    element before it is removed.\n\t *\n\t * ### Methods\n\t * - `controller(name)` - retrieves the controller of the current element or its parent. By default\n\t *   retrieves controller associated with the `ngController` directive. If `name` is provided as\n\t *   camelCase directive name, then the controller for this directive will be retrieved (e.g.\n\t *   `'ngModel'`).\n\t * - `injector()` - retrieves the injector of the current element or its parent.\n\t * - `scope()` - retrieves the {@link ng.$rootScope.Scope scope} of the current\n\t *   element or its parent. Requires {@link guide/production#disabling-debug-data Debug Data} to\n\t *   be enabled.\n\t * - `isolateScope()` - retrieves an isolate {@link ng.$rootScope.Scope scope} if one is attached directly to the\n\t *   current element. This getter should be used only on elements that contain a directive which starts a new isolate\n\t *   scope. Calling `scope()` on this element always returns the original non-isolate scope.\n\t *   Requires {@link guide/production#disabling-debug-data Debug Data} to be enabled.\n\t * - `inheritedData()` - same as `data()`, but walks up the DOM until a value is found or the top\n\t *   parent element is reached.\n\t *\n\t * @param {string|DOMElement} element HTML string or DOMElement to be wrapped into jQuery.\n\t * @returns {Object} jQuery object.\n\t */\n\n\tJQLite.expando = 'ng339';\n\n\tvar jqCache = JQLite.cache = {},\n\t    jqId = 1,\n\t    addEventListenerFn = function(element, type, fn) {\n\t      element.addEventListener(type, fn, false);\n\t    },\n\t    removeEventListenerFn = function(element, type, fn) {\n\t      element.removeEventListener(type, fn, false);\n\t    };\n\n\t/*\n\t * !!! This is an undocumented \"private\" function !!!\n\t */\n\tJQLite._data = function(node) {\n\t  //jQuery always returns an object on cache miss\n\t  return this.cache[node[this.expando]] || {};\n\t};\n\n\tfunction jqNextId() { return ++jqId; }\n\n\n\tvar SPECIAL_CHARS_REGEXP = /([\\:\\-\\_]+(.))/g;\n\tvar MOZ_HACK_REGEXP = /^moz([A-Z])/;\n\tvar MOUSE_EVENT_MAP= { mouseleave: \"mouseout\", mouseenter: \"mouseover\"};\n\tvar jqLiteMinErr = minErr('jqLite');\n\n\t/**\n\t * Converts snake_case to camelCase.\n\t * Also there is special case for Moz prefix starting with upper case letter.\n\t * @param name Name to normalize\n\t */\n\tfunction camelCase(name) {\n\t  return name.\n\t    replace(SPECIAL_CHARS_REGEXP, function(_, separator, letter, offset) {\n\t      return offset ? letter.toUpperCase() : letter;\n\t    }).\n\t    replace(MOZ_HACK_REGEXP, 'Moz$1');\n\t}\n\n\tvar SINGLE_TAG_REGEXP = /^<(\\w+)\\s*\\/?>(?:<\\/\\1>|)$/;\n\tvar HTML_REGEXP = /<|&#?\\w+;/;\n\tvar TAG_NAME_REGEXP = /<([\\w:]+)/;\n\tvar XHTML_TAG_REGEXP = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\\w:]+)[^>]*)\\/>/gi;\n\n\tvar wrapMap = {\n\t  'option': [1, '<select multiple=\"multiple\">', '</select>'],\n\n\t  'thead': [1, '<table>', '</table>'],\n\t  'col': [2, '<table><colgroup>', '</colgroup></table>'],\n\t  'tr': [2, '<table><tbody>', '</tbody></table>'],\n\t  'td': [3, '<table><tbody><tr>', '</tr></tbody></table>'],\n\t  '_default': [0, \"\", \"\"]\n\t};\n\n\twrapMap.optgroup = wrapMap.option;\n\twrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;\n\twrapMap.th = wrapMap.td;\n\n\n\tfunction jqLiteIsTextNode(html) {\n\t  return !HTML_REGEXP.test(html);\n\t}\n\n\tfunction jqLiteAcceptsData(node) {\n\t  // The window object can accept data but has no nodeType\n\t  // Otherwise we are only interested in elements (1) and documents (9)\n\t  var nodeType = node.nodeType;\n\t  return nodeType === NODE_TYPE_ELEMENT || !nodeType || nodeType === NODE_TYPE_DOCUMENT;\n\t}\n\n\tfunction jqLiteBuildFragment(html, context) {\n\t  var tmp, tag, wrap,\n\t      fragment = context.createDocumentFragment(),\n\t      nodes = [], i;\n\n\t  if (jqLiteIsTextNode(html)) {\n\t    // Convert non-html into a text node\n\t    nodes.push(context.createTextNode(html));\n\t  } else {\n\t    // Convert html into DOM nodes\n\t    tmp = tmp || fragment.appendChild(context.createElement(\"div\"));\n\t    tag = (TAG_NAME_REGEXP.exec(html) || [\"\", \"\"])[1].toLowerCase();\n\t    wrap = wrapMap[tag] || wrapMap._default;\n\t    tmp.innerHTML = wrap[1] + html.replace(XHTML_TAG_REGEXP, \"<$1></$2>\") + wrap[2];\n\n\t    // Descend through wrappers to the right content\n\t    i = wrap[0];\n\t    while (i--) {\n\t      tmp = tmp.lastChild;\n\t    }\n\n\t    nodes = concat(nodes, tmp.childNodes);\n\n\t    tmp = fragment.firstChild;\n\t    tmp.textContent = \"\";\n\t  }\n\n\t  // Remove wrapper from fragment\n\t  fragment.textContent = \"\";\n\t  fragment.innerHTML = \"\"; // Clear inner HTML\n\t  forEach(nodes, function(node) {\n\t    fragment.appendChild(node);\n\t  });\n\n\t  return fragment;\n\t}\n\n\tfunction jqLiteParseHTML(html, context) {\n\t  context = context || document;\n\t  var parsed;\n\n\t  if ((parsed = SINGLE_TAG_REGEXP.exec(html))) {\n\t    return [context.createElement(parsed[1])];\n\t  }\n\n\t  if ((parsed = jqLiteBuildFragment(html, context))) {\n\t    return parsed.childNodes;\n\t  }\n\n\t  return [];\n\t}\n\n\t/////////////////////////////////////////////\n\tfunction JQLite(element) {\n\t  if (element instanceof JQLite) {\n\t    return element;\n\t  }\n\n\t  var argIsString;\n\n\t  if (isString(element)) {\n\t    element = trim(element);\n\t    argIsString = true;\n\t  }\n\t  if (!(this instanceof JQLite)) {\n\t    if (argIsString && element.charAt(0) != '<') {\n\t      throw jqLiteMinErr('nosel', 'Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element');\n\t    }\n\t    return new JQLite(element);\n\t  }\n\n\t  if (argIsString) {\n\t    jqLiteAddNodes(this, jqLiteParseHTML(element));\n\t  } else {\n\t    jqLiteAddNodes(this, element);\n\t  }\n\t}\n\n\tfunction jqLiteClone(element) {\n\t  return element.cloneNode(true);\n\t}\n\n\tfunction jqLiteDealoc(element, onlyDescendants) {\n\t  if (!onlyDescendants) jqLiteRemoveData(element);\n\n\t  if (element.querySelectorAll) {\n\t    var descendants = element.querySelectorAll('*');\n\t    for (var i = 0, l = descendants.length; i < l; i++) {\n\t      jqLiteRemoveData(descendants[i]);\n\t    }\n\t  }\n\t}\n\n\tfunction jqLiteOff(element, type, fn, unsupported) {\n\t  if (isDefined(unsupported)) throw jqLiteMinErr('offargs', 'jqLite#off() does not support the `selector` argument');\n\n\t  var expandoStore = jqLiteExpandoStore(element);\n\t  var events = expandoStore && expandoStore.events;\n\t  var handle = expandoStore && expandoStore.handle;\n\n\t  if (!handle) return; //no listeners registered\n\n\t  if (!type) {\n\t    for (type in events) {\n\t      if (type !== '$destroy') {\n\t        removeEventListenerFn(element, type, handle);\n\t      }\n\t      delete events[type];\n\t    }\n\t  } else {\n\t    forEach(type.split(' '), function(type) {\n\t      if (isDefined(fn)) {\n\t        var listenerFns = events[type];\n\t        arrayRemove(listenerFns || [], fn);\n\t        if (listenerFns && listenerFns.length > 0) {\n\t          return;\n\t        }\n\t      }\n\n\t      removeEventListenerFn(element, type, handle);\n\t      delete events[type];\n\t    });\n\t  }\n\t}\n\n\tfunction jqLiteRemoveData(element, name) {\n\t  var expandoId = element.ng339;\n\t  var expandoStore = expandoId && jqCache[expandoId];\n\n\t  if (expandoStore) {\n\t    if (name) {\n\t      delete expandoStore.data[name];\n\t      return;\n\t    }\n\n\t    if (expandoStore.handle) {\n\t      if (expandoStore.events.$destroy) {\n\t        expandoStore.handle({}, '$destroy');\n\t      }\n\t      jqLiteOff(element);\n\t    }\n\t    delete jqCache[expandoId];\n\t    element.ng339 = undefined; // don't delete DOM expandos. IE and Chrome don't like it\n\t  }\n\t}\n\n\n\tfunction jqLiteExpandoStore(element, createIfNecessary) {\n\t  var expandoId = element.ng339,\n\t      expandoStore = expandoId && jqCache[expandoId];\n\n\t  if (createIfNecessary && !expandoStore) {\n\t    element.ng339 = expandoId = jqNextId();\n\t    expandoStore = jqCache[expandoId] = {events: {}, data: {}, handle: undefined};\n\t  }\n\n\t  return expandoStore;\n\t}\n\n\n\tfunction jqLiteData(element, key, value) {\n\t  if (jqLiteAcceptsData(element)) {\n\n\t    var isSimpleSetter = isDefined(value);\n\t    var isSimpleGetter = !isSimpleSetter && key && !isObject(key);\n\t    var massGetter = !key;\n\t    var expandoStore = jqLiteExpandoStore(element, !isSimpleGetter);\n\t    var data = expandoStore && expandoStore.data;\n\n\t    if (isSimpleSetter) { // data('key', value)\n\t      data[key] = value;\n\t    } else {\n\t      if (massGetter) {  // data()\n\t        return data;\n\t      } else {\n\t        if (isSimpleGetter) { // data('key')\n\t          // don't force creation of expandoStore if it doesn't exist yet\n\t          return data && data[key];\n\t        } else { // mass-setter: data({key1: val1, key2: val2})\n\t          extend(data, key);\n\t        }\n\t      }\n\t    }\n\t  }\n\t}\n\n\tfunction jqLiteHasClass(element, selector) {\n\t  if (!element.getAttribute) return false;\n\t  return ((\" \" + (element.getAttribute('class') || '') + \" \").replace(/[\\n\\t]/g, \" \").\n\t      indexOf(\" \" + selector + \" \") > -1);\n\t}\n\n\tfunction jqLiteRemoveClass(element, cssClasses) {\n\t  if (cssClasses && element.setAttribute) {\n\t    forEach(cssClasses.split(' '), function(cssClass) {\n\t      element.setAttribute('class', trim(\n\t          (\" \" + (element.getAttribute('class') || '') + \" \")\n\t          .replace(/[\\n\\t]/g, \" \")\n\t          .replace(\" \" + trim(cssClass) + \" \", \" \"))\n\t      );\n\t    });\n\t  }\n\t}\n\n\tfunction jqLiteAddClass(element, cssClasses) {\n\t  if (cssClasses && element.setAttribute) {\n\t    var existingClasses = (' ' + (element.getAttribute('class') || '') + ' ')\n\t                            .replace(/[\\n\\t]/g, \" \");\n\n\t    forEach(cssClasses.split(' '), function(cssClass) {\n\t      cssClass = trim(cssClass);\n\t      if (existingClasses.indexOf(' ' + cssClass + ' ') === -1) {\n\t        existingClasses += cssClass + ' ';\n\t      }\n\t    });\n\n\t    element.setAttribute('class', trim(existingClasses));\n\t  }\n\t}\n\n\n\tfunction jqLiteAddNodes(root, elements) {\n\t  // THIS CODE IS VERY HOT. Don't make changes without benchmarking.\n\n\t  if (elements) {\n\n\t    // if a Node (the most common case)\n\t    if (elements.nodeType) {\n\t      root[root.length++] = elements;\n\t    } else {\n\t      var length = elements.length;\n\n\t      // if an Array or NodeList and not a Window\n\t      if (typeof length === 'number' && elements.window !== elements) {\n\t        if (length) {\n\t          for (var i = 0; i < length; i++) {\n\t            root[root.length++] = elements[i];\n\t          }\n\t        }\n\t      } else {\n\t        root[root.length++] = elements;\n\t      }\n\t    }\n\t  }\n\t}\n\n\n\tfunction jqLiteController(element, name) {\n\t  return jqLiteInheritedData(element, '$' + (name || 'ngController') + 'Controller');\n\t}\n\n\tfunction jqLiteInheritedData(element, name, value) {\n\t  // if element is the document object work with the html element instead\n\t  // this makes $(document).scope() possible\n\t  if (element.nodeType == NODE_TYPE_DOCUMENT) {\n\t    element = element.documentElement;\n\t  }\n\t  var names = isArray(name) ? name : [name];\n\n\t  while (element) {\n\t    for (var i = 0, ii = names.length; i < ii; i++) {\n\t      if ((value = jqLite.data(element, names[i])) !== undefined) return value;\n\t    }\n\n\t    // If dealing with a document fragment node with a host element, and no parent, use the host\n\t    // element as the parent. This enables directives within a Shadow DOM or polyfilled Shadow DOM\n\t    // to lookup parent controllers.\n\t    element = element.parentNode || (element.nodeType === NODE_TYPE_DOCUMENT_FRAGMENT && element.host);\n\t  }\n\t}\n\n\tfunction jqLiteEmpty(element) {\n\t  jqLiteDealoc(element, true);\n\t  while (element.firstChild) {\n\t    element.removeChild(element.firstChild);\n\t  }\n\t}\n\n\tfunction jqLiteRemove(element, keepData) {\n\t  if (!keepData) jqLiteDealoc(element);\n\t  var parent = element.parentNode;\n\t  if (parent) parent.removeChild(element);\n\t}\n\n\n\tfunction jqLiteDocumentLoaded(action, win) {\n\t  win = win || window;\n\t  if (win.document.readyState === 'complete') {\n\t    // Force the action to be run async for consistent behaviour\n\t    // from the action's point of view\n\t    // i.e. it will definitely not be in a $apply\n\t    win.setTimeout(action);\n\t  } else {\n\t    // No need to unbind this handler as load is only ever called once\n\t    jqLite(win).on('load', action);\n\t  }\n\t}\n\n\t//////////////////////////////////////////\n\t// Functions which are declared directly.\n\t//////////////////////////////////////////\n\tvar JQLitePrototype = JQLite.prototype = {\n\t  ready: function(fn) {\n\t    var fired = false;\n\n\t    function trigger() {\n\t      if (fired) return;\n\t      fired = true;\n\t      fn();\n\t    }\n\n\t    // check if document is already loaded\n\t    if (document.readyState === 'complete') {\n\t      setTimeout(trigger);\n\t    } else {\n\t      this.on('DOMContentLoaded', trigger); // works for modern browsers and IE9\n\t      // we can not use jqLite since we are not done loading and jQuery could be loaded later.\n\t      // jshint -W064\n\t      JQLite(window).on('load', trigger); // fallback to window.onload for others\n\t      // jshint +W064\n\t    }\n\t  },\n\t  toString: function() {\n\t    var value = [];\n\t    forEach(this, function(e) { value.push('' + e);});\n\t    return '[' + value.join(', ') + ']';\n\t  },\n\n\t  eq: function(index) {\n\t      return (index >= 0) ? jqLite(this[index]) : jqLite(this[this.length + index]);\n\t  },\n\n\t  length: 0,\n\t  push: push,\n\t  sort: [].sort,\n\t  splice: [].splice\n\t};\n\n\t//////////////////////////////////////////\n\t// Functions iterating getter/setters.\n\t// these functions return self on setter and\n\t// value on get.\n\t//////////////////////////////////////////\n\tvar BOOLEAN_ATTR = {};\n\tforEach('multiple,selected,checked,disabled,readOnly,required,open'.split(','), function(value) {\n\t  BOOLEAN_ATTR[lowercase(value)] = value;\n\t});\n\tvar BOOLEAN_ELEMENTS = {};\n\tforEach('input,select,option,textarea,button,form,details'.split(','), function(value) {\n\t  BOOLEAN_ELEMENTS[value] = true;\n\t});\n\tvar ALIASED_ATTR = {\n\t  'ngMinlength': 'minlength',\n\t  'ngMaxlength': 'maxlength',\n\t  'ngMin': 'min',\n\t  'ngMax': 'max',\n\t  'ngPattern': 'pattern'\n\t};\n\n\tfunction getBooleanAttrName(element, name) {\n\t  // check dom last since we will most likely fail on name\n\t  var booleanAttr = BOOLEAN_ATTR[name.toLowerCase()];\n\n\t  // booleanAttr is here twice to minimize DOM access\n\t  return booleanAttr && BOOLEAN_ELEMENTS[nodeName_(element)] && booleanAttr;\n\t}\n\n\tfunction getAliasedAttrName(element, name) {\n\t  var nodeName = element.nodeName;\n\t  return (nodeName === 'INPUT' || nodeName === 'TEXTAREA') && ALIASED_ATTR[name];\n\t}\n\n\tforEach({\n\t  data: jqLiteData,\n\t  removeData: jqLiteRemoveData\n\t}, function(fn, name) {\n\t  JQLite[name] = fn;\n\t});\n\n\tforEach({\n\t  data: jqLiteData,\n\t  inheritedData: jqLiteInheritedData,\n\n\t  scope: function(element) {\n\t    // Can't use jqLiteData here directly so we stay compatible with jQuery!\n\t    return jqLite.data(element, '$scope') || jqLiteInheritedData(element.parentNode || element, ['$isolateScope', '$scope']);\n\t  },\n\n\t  isolateScope: function(element) {\n\t    // Can't use jqLiteData here directly so we stay compatible with jQuery!\n\t    return jqLite.data(element, '$isolateScope') || jqLite.data(element, '$isolateScopeNoTemplate');\n\t  },\n\n\t  controller: jqLiteController,\n\n\t  injector: function(element) {\n\t    return jqLiteInheritedData(element, '$injector');\n\t  },\n\n\t  removeAttr: function(element, name) {\n\t    element.removeAttribute(name);\n\t  },\n\n\t  hasClass: jqLiteHasClass,\n\n\t  css: function(element, name, value) {\n\t    name = camelCase(name);\n\n\t    if (isDefined(value)) {\n\t      element.style[name] = value;\n\t    } else {\n\t      return element.style[name];\n\t    }\n\t  },\n\n\t  attr: function(element, name, value) {\n\t    var lowercasedName = lowercase(name);\n\t    if (BOOLEAN_ATTR[lowercasedName]) {\n\t      if (isDefined(value)) {\n\t        if (!!value) {\n\t          element[name] = true;\n\t          element.setAttribute(name, lowercasedName);\n\t        } else {\n\t          element[name] = false;\n\t          element.removeAttribute(lowercasedName);\n\t        }\n\t      } else {\n\t        return (element[name] ||\n\t                 (element.attributes.getNamedItem(name) || noop).specified)\n\t               ? lowercasedName\n\t               : undefined;\n\t      }\n\t    } else if (isDefined(value)) {\n\t      element.setAttribute(name, value);\n\t    } else if (element.getAttribute) {\n\t      // the extra argument \"2\" is to get the right thing for a.href in IE, see jQuery code\n\t      // some elements (e.g. Document) don't have get attribute, so return undefined\n\t      var ret = element.getAttribute(name, 2);\n\t      // normalize non-existing attributes to undefined (as jQuery)\n\t      return ret === null ? undefined : ret;\n\t    }\n\t  },\n\n\t  prop: function(element, name, value) {\n\t    if (isDefined(value)) {\n\t      element[name] = value;\n\t    } else {\n\t      return element[name];\n\t    }\n\t  },\n\n\t  text: (function() {\n\t    getText.$dv = '';\n\t    return getText;\n\n\t    function getText(element, value) {\n\t      if (isUndefined(value)) {\n\t        var nodeType = element.nodeType;\n\t        return (nodeType === NODE_TYPE_ELEMENT || nodeType === NODE_TYPE_TEXT) ? element.textContent : '';\n\t      }\n\t      element.textContent = value;\n\t    }\n\t  })(),\n\n\t  val: function(element, value) {\n\t    if (isUndefined(value)) {\n\t      if (element.multiple && nodeName_(element) === 'select') {\n\t        var result = [];\n\t        forEach(element.options, function(option) {\n\t          if (option.selected) {\n\t            result.push(option.value || option.text);\n\t          }\n\t        });\n\t        return result.length === 0 ? null : result;\n\t      }\n\t      return element.value;\n\t    }\n\t    element.value = value;\n\t  },\n\n\t  html: function(element, value) {\n\t    if (isUndefined(value)) {\n\t      return element.innerHTML;\n\t    }\n\t    jqLiteDealoc(element, true);\n\t    element.innerHTML = value;\n\t  },\n\n\t  empty: jqLiteEmpty\n\t}, function(fn, name) {\n\t  /**\n\t   * Properties: writes return selection, reads return first value\n\t   */\n\t  JQLite.prototype[name] = function(arg1, arg2) {\n\t    var i, key;\n\t    var nodeCount = this.length;\n\n\t    // jqLiteHasClass has only two arguments, but is a getter-only fn, so we need to special-case it\n\t    // in a way that survives minification.\n\t    // jqLiteEmpty takes no arguments but is a setter.\n\t    if (fn !== jqLiteEmpty &&\n\t        (((fn.length == 2 && (fn !== jqLiteHasClass && fn !== jqLiteController)) ? arg1 : arg2) === undefined)) {\n\t      if (isObject(arg1)) {\n\n\t        // we are a write, but the object properties are the key/values\n\t        for (i = 0; i < nodeCount; i++) {\n\t          if (fn === jqLiteData) {\n\t            // data() takes the whole object in jQuery\n\t            fn(this[i], arg1);\n\t          } else {\n\t            for (key in arg1) {\n\t              fn(this[i], key, arg1[key]);\n\t            }\n\t          }\n\t        }\n\t        // return self for chaining\n\t        return this;\n\t      } else {\n\t        // we are a read, so read the first child.\n\t        // TODO: do we still need this?\n\t        var value = fn.$dv;\n\t        // Only if we have $dv do we iterate over all, otherwise it is just the first element.\n\t        var jj = (value === undefined) ? Math.min(nodeCount, 1) : nodeCount;\n\t        for (var j = 0; j < jj; j++) {\n\t          var nodeValue = fn(this[j], arg1, arg2);\n\t          value = value ? value + nodeValue : nodeValue;\n\t        }\n\t        return value;\n\t      }\n\t    } else {\n\t      // we are a write, so apply to all children\n\t      for (i = 0; i < nodeCount; i++) {\n\t        fn(this[i], arg1, arg2);\n\t      }\n\t      // return self for chaining\n\t      return this;\n\t    }\n\t  };\n\t});\n\n\tfunction createEventHandler(element, events) {\n\t  var eventHandler = function(event, type) {\n\t    // jQuery specific api\n\t    event.isDefaultPrevented = function() {\n\t      return event.defaultPrevented;\n\t    };\n\n\t    var eventFns = events[type || event.type];\n\t    var eventFnsLength = eventFns ? eventFns.length : 0;\n\n\t    if (!eventFnsLength) return;\n\n\t    if (isUndefined(event.immediatePropagationStopped)) {\n\t      var originalStopImmediatePropagation = event.stopImmediatePropagation;\n\t      event.stopImmediatePropagation = function() {\n\t        event.immediatePropagationStopped = true;\n\n\t        if (event.stopPropagation) {\n\t          event.stopPropagation();\n\t        }\n\n\t        if (originalStopImmediatePropagation) {\n\t          originalStopImmediatePropagation.call(event);\n\t        }\n\t      };\n\t    }\n\n\t    event.isImmediatePropagationStopped = function() {\n\t      return event.immediatePropagationStopped === true;\n\t    };\n\n\t    // Copy event handlers in case event handlers array is modified during execution.\n\t    if ((eventFnsLength > 1)) {\n\t      eventFns = shallowCopy(eventFns);\n\t    }\n\n\t    for (var i = 0; i < eventFnsLength; i++) {\n\t      if (!event.isImmediatePropagationStopped()) {\n\t        eventFns[i].call(element, event);\n\t      }\n\t    }\n\t  };\n\n\t  // TODO: this is a hack for angularMocks/clearDataCache that makes it possible to deregister all\n\t  //       events on `element`\n\t  eventHandler.elem = element;\n\t  return eventHandler;\n\t}\n\n\t//////////////////////////////////////////\n\t// Functions iterating traversal.\n\t// These functions chain results into a single\n\t// selector.\n\t//////////////////////////////////////////\n\tforEach({\n\t  removeData: jqLiteRemoveData,\n\n\t  on: function jqLiteOn(element, type, fn, unsupported) {\n\t    if (isDefined(unsupported)) throw jqLiteMinErr('onargs', 'jqLite#on() does not support the `selector` or `eventData` parameters');\n\n\t    // Do not add event handlers to non-elements because they will not be cleaned up.\n\t    if (!jqLiteAcceptsData(element)) {\n\t      return;\n\t    }\n\n\t    var expandoStore = jqLiteExpandoStore(element, true);\n\t    var events = expandoStore.events;\n\t    var handle = expandoStore.handle;\n\n\t    if (!handle) {\n\t      handle = expandoStore.handle = createEventHandler(element, events);\n\t    }\n\n\t    // http://jsperf.com/string-indexof-vs-split\n\t    var types = type.indexOf(' ') >= 0 ? type.split(' ') : [type];\n\t    var i = types.length;\n\n\t    while (i--) {\n\t      type = types[i];\n\t      var eventFns = events[type];\n\n\t      if (!eventFns) {\n\t        events[type] = [];\n\n\t        if (type === 'mouseenter' || type === 'mouseleave') {\n\t          // Refer to jQuery's implementation of mouseenter & mouseleave\n\t          // Read about mouseenter and mouseleave:\n\t          // http://www.quirksmode.org/js/events_mouse.html#link8\n\n\t          jqLiteOn(element, MOUSE_EVENT_MAP[type], function(event) {\n\t            var target = this, related = event.relatedTarget;\n\t            // For mousenter/leave call the handler if related is outside the target.\n\t            // NB: No relatedTarget if the mouse left/entered the browser window\n\t            if (!related || (related !== target && !target.contains(related))) {\n\t              handle(event, type);\n\t            }\n\t          });\n\n\t        } else {\n\t          if (type !== '$destroy') {\n\t            addEventListenerFn(element, type, handle);\n\t          }\n\t        }\n\t        eventFns = events[type];\n\t      }\n\t      eventFns.push(fn);\n\t    }\n\t  },\n\n\t  off: jqLiteOff,\n\n\t  one: function(element, type, fn) {\n\t    element = jqLite(element);\n\n\t    //add the listener twice so that when it is called\n\t    //you can remove the original function and still be\n\t    //able to call element.off(ev, fn) normally\n\t    element.on(type, function onFn() {\n\t      element.off(type, fn);\n\t      element.off(type, onFn);\n\t    });\n\t    element.on(type, fn);\n\t  },\n\n\t  replaceWith: function(element, replaceNode) {\n\t    var index, parent = element.parentNode;\n\t    jqLiteDealoc(element);\n\t    forEach(new JQLite(replaceNode), function(node) {\n\t      if (index) {\n\t        parent.insertBefore(node, index.nextSibling);\n\t      } else {\n\t        parent.replaceChild(node, element);\n\t      }\n\t      index = node;\n\t    });\n\t  },\n\n\t  children: function(element) {\n\t    var children = [];\n\t    forEach(element.childNodes, function(element) {\n\t      if (element.nodeType === NODE_TYPE_ELEMENT)\n\t        children.push(element);\n\t    });\n\t    return children;\n\t  },\n\n\t  contents: function(element) {\n\t    return element.contentDocument || element.childNodes || [];\n\t  },\n\n\t  append: function(element, node) {\n\t    var nodeType = element.nodeType;\n\t    if (nodeType !== NODE_TYPE_ELEMENT && nodeType !== NODE_TYPE_DOCUMENT_FRAGMENT) return;\n\n\t    node = new JQLite(node);\n\n\t    for (var i = 0, ii = node.length; i < ii; i++) {\n\t      var child = node[i];\n\t      element.appendChild(child);\n\t    }\n\t  },\n\n\t  prepend: function(element, node) {\n\t    if (element.nodeType === NODE_TYPE_ELEMENT) {\n\t      var index = element.firstChild;\n\t      forEach(new JQLite(node), function(child) {\n\t        element.insertBefore(child, index);\n\t      });\n\t    }\n\t  },\n\n\t  wrap: function(element, wrapNode) {\n\t    wrapNode = jqLite(wrapNode).eq(0).clone()[0];\n\t    var parent = element.parentNode;\n\t    if (parent) {\n\t      parent.replaceChild(wrapNode, element);\n\t    }\n\t    wrapNode.appendChild(element);\n\t  },\n\n\t  remove: jqLiteRemove,\n\n\t  detach: function(element) {\n\t    jqLiteRemove(element, true);\n\t  },\n\n\t  after: function(element, newElement) {\n\t    var index = element, parent = element.parentNode;\n\t    newElement = new JQLite(newElement);\n\n\t    for (var i = 0, ii = newElement.length; i < ii; i++) {\n\t      var node = newElement[i];\n\t      parent.insertBefore(node, index.nextSibling);\n\t      index = node;\n\t    }\n\t  },\n\n\t  addClass: jqLiteAddClass,\n\t  removeClass: jqLiteRemoveClass,\n\n\t  toggleClass: function(element, selector, condition) {\n\t    if (selector) {\n\t      forEach(selector.split(' '), function(className) {\n\t        var classCondition = condition;\n\t        if (isUndefined(classCondition)) {\n\t          classCondition = !jqLiteHasClass(element, className);\n\t        }\n\t        (classCondition ? jqLiteAddClass : jqLiteRemoveClass)(element, className);\n\t      });\n\t    }\n\t  },\n\n\t  parent: function(element) {\n\t    var parent = element.parentNode;\n\t    return parent && parent.nodeType !== NODE_TYPE_DOCUMENT_FRAGMENT ? parent : null;\n\t  },\n\n\t  next: function(element) {\n\t    return element.nextElementSibling;\n\t  },\n\n\t  find: function(element, selector) {\n\t    if (element.getElementsByTagName) {\n\t      return element.getElementsByTagName(selector);\n\t    } else {\n\t      return [];\n\t    }\n\t  },\n\n\t  clone: jqLiteClone,\n\n\t  triggerHandler: function(element, event, extraParameters) {\n\n\t    var dummyEvent, eventFnsCopy, handlerArgs;\n\t    var eventName = event.type || event;\n\t    var expandoStore = jqLiteExpandoStore(element);\n\t    var events = expandoStore && expandoStore.events;\n\t    var eventFns = events && events[eventName];\n\n\t    if (eventFns) {\n\t      // Create a dummy event to pass to the handlers\n\t      dummyEvent = {\n\t        preventDefault: function() { this.defaultPrevented = true; },\n\t        isDefaultPrevented: function() { return this.defaultPrevented === true; },\n\t        stopImmediatePropagation: function() { this.immediatePropagationStopped = true; },\n\t        isImmediatePropagationStopped: function() { return this.immediatePropagationStopped === true; },\n\t        stopPropagation: noop,\n\t        type: eventName,\n\t        target: element\n\t      };\n\n\t      // If a custom event was provided then extend our dummy event with it\n\t      if (event.type) {\n\t        dummyEvent = extend(dummyEvent, event);\n\t      }\n\n\t      // Copy event handlers in case event handlers array is modified during execution.\n\t      eventFnsCopy = shallowCopy(eventFns);\n\t      handlerArgs = extraParameters ? [dummyEvent].concat(extraParameters) : [dummyEvent];\n\n\t      forEach(eventFnsCopy, function(fn) {\n\t        if (!dummyEvent.isImmediatePropagationStopped()) {\n\t          fn.apply(element, handlerArgs);\n\t        }\n\t      });\n\t    }\n\t  }\n\t}, function(fn, name) {\n\t  /**\n\t   * chaining functions\n\t   */\n\t  JQLite.prototype[name] = function(arg1, arg2, arg3) {\n\t    var value;\n\n\t    for (var i = 0, ii = this.length; i < ii; i++) {\n\t      if (isUndefined(value)) {\n\t        value = fn(this[i], arg1, arg2, arg3);\n\t        if (isDefined(value)) {\n\t          // any function which returns a value needs to be wrapped\n\t          value = jqLite(value);\n\t        }\n\t      } else {\n\t        jqLiteAddNodes(value, fn(this[i], arg1, arg2, arg3));\n\t      }\n\t    }\n\t    return isDefined(value) ? value : this;\n\t  };\n\n\t  // bind legacy bind/unbind to on/off\n\t  JQLite.prototype.bind = JQLite.prototype.on;\n\t  JQLite.prototype.unbind = JQLite.prototype.off;\n\t});\n\n\n\t// Provider for private $$jqLite service\n\tfunction $$jqLiteProvider() {\n\t  this.$get = function $$jqLite() {\n\t    return extend(JQLite, {\n\t      hasClass: function(node, classes) {\n\t        if (node.attr) node = node[0];\n\t        return jqLiteHasClass(node, classes);\n\t      },\n\t      addClass: function(node, classes) {\n\t        if (node.attr) node = node[0];\n\t        return jqLiteAddClass(node, classes);\n\t      },\n\t      removeClass: function(node, classes) {\n\t        if (node.attr) node = node[0];\n\t        return jqLiteRemoveClass(node, classes);\n\t      }\n\t    });\n\t  };\n\t}\n\n\t/**\n\t * Computes a hash of an 'obj'.\n\t * Hash of a:\n\t *  string is string\n\t *  number is number as string\n\t *  object is either result of calling $$hashKey function on the object or uniquely generated id,\n\t *         that is also assigned to the $$hashKey property of the object.\n\t *\n\t * @param obj\n\t * @returns {string} hash string such that the same input will have the same hash string.\n\t *         The resulting string key is in 'type:hashKey' format.\n\t */\n\tfunction hashKey(obj, nextUidFn) {\n\t  var key = obj && obj.$$hashKey;\n\n\t  if (key) {\n\t    if (typeof key === 'function') {\n\t      key = obj.$$hashKey();\n\t    }\n\t    return key;\n\t  }\n\n\t  var objType = typeof obj;\n\t  if (objType == 'function' || (objType == 'object' && obj !== null)) {\n\t    key = obj.$$hashKey = objType + ':' + (nextUidFn || nextUid)();\n\t  } else {\n\t    key = objType + ':' + obj;\n\t  }\n\n\t  return key;\n\t}\n\n\t/**\n\t * HashMap which can use objects as keys\n\t */\n\tfunction HashMap(array, isolatedUid) {\n\t  if (isolatedUid) {\n\t    var uid = 0;\n\t    this.nextUid = function() {\n\t      return ++uid;\n\t    };\n\t  }\n\t  forEach(array, this.put, this);\n\t}\n\tHashMap.prototype = {\n\t  /**\n\t   * Store key value pair\n\t   * @param key key to store can be any type\n\t   * @param value value to store can be any type\n\t   */\n\t  put: function(key, value) {\n\t    this[hashKey(key, this.nextUid)] = value;\n\t  },\n\n\t  /**\n\t   * @param key\n\t   * @returns {Object} the value for the key\n\t   */\n\t  get: function(key) {\n\t    return this[hashKey(key, this.nextUid)];\n\t  },\n\n\t  /**\n\t   * Remove the key/value pair\n\t   * @param key\n\t   */\n\t  remove: function(key) {\n\t    var value = this[key = hashKey(key, this.nextUid)];\n\t    delete this[key];\n\t    return value;\n\t  }\n\t};\n\n\t/**\n\t * @ngdoc function\n\t * @module ng\n\t * @name angular.injector\n\t * @kind function\n\t *\n\t * @description\n\t * Creates an injector object that can be used for retrieving services as well as for\n\t * dependency injection (see {@link guide/di dependency injection}).\n\t *\n\t * @param {Array.<string|Function>} modules A list of module functions or their aliases. See\n\t *     {@link angular.module}. The `ng` module must be explicitly added.\n\t * @param {boolean=} [strictDi=false] Whether the injector should be in strict mode, which\n\t *     disallows argument name annotation inference.\n\t * @returns {injector} Injector object. See {@link auto.$injector $injector}.\n\t *\n\t * @example\n\t * Typical usage\n\t * ```js\n\t *   // create an injector\n\t *   var $injector = angular.injector(['ng']);\n\t *\n\t *   // use the injector to kick off your application\n\t *   // use the type inference to auto inject arguments, or use implicit injection\n\t *   $injector.invoke(function($rootScope, $compile, $document) {\n\t *     $compile($document)($rootScope);\n\t *     $rootScope.$digest();\n\t *   });\n\t * ```\n\t *\n\t * Sometimes you want to get access to the injector of a currently running Angular app\n\t * from outside Angular. Perhaps, you want to inject and compile some markup after the\n\t * application has been bootstrapped. You can do this using the extra `injector()` added\n\t * to JQuery/jqLite elements. See {@link angular.element}.\n\t *\n\t * *This is fairly rare but could be the case if a third party library is injecting the\n\t * markup.*\n\t *\n\t * In the following example a new block of HTML containing a `ng-controller`\n\t * directive is added to the end of the document body by JQuery. We then compile and link\n\t * it into the current AngularJS scope.\n\t *\n\t * ```js\n\t * var $div = $('<div ng-controller=\"MyCtrl\">{{content.label}}</div>');\n\t * $(document.body).append($div);\n\t *\n\t * angular.element(document).injector().invoke(function($compile) {\n\t *   var scope = angular.element($div).scope();\n\t *   $compile($div)(scope);\n\t * });\n\t * ```\n\t */\n\n\n\t/**\n\t * @ngdoc module\n\t * @name auto\n\t * @description\n\t *\n\t * Implicit module which gets automatically added to each {@link auto.$injector $injector}.\n\t */\n\n\tvar FN_ARGS = /^function\\s*[^\\(]*\\(\\s*([^\\)]*)\\)/m;\n\tvar FN_ARG_SPLIT = /,/;\n\tvar FN_ARG = /^\\s*(_?)(\\S+?)\\1\\s*$/;\n\tvar STRIP_COMMENTS = /((\\/\\/.*$)|(\\/\\*[\\s\\S]*?\\*\\/))/mg;\n\tvar $injectorMinErr = minErr('$injector');\n\n\tfunction anonFn(fn) {\n\t  // For anonymous functions, showing at the very least the function signature can help in\n\t  // debugging.\n\t  var fnText = fn.toString().replace(STRIP_COMMENTS, ''),\n\t      args = fnText.match(FN_ARGS);\n\t  if (args) {\n\t    return 'function(' + (args[1] || '').replace(/[\\s\\r\\n]+/, ' ') + ')';\n\t  }\n\t  return 'fn';\n\t}\n\n\tfunction annotate(fn, strictDi, name) {\n\t  var $inject,\n\t      fnText,\n\t      argDecl,\n\t      last;\n\n\t  if (typeof fn === 'function') {\n\t    if (!($inject = fn.$inject)) {\n\t      $inject = [];\n\t      if (fn.length) {\n\t        if (strictDi) {\n\t          if (!isString(name) || !name) {\n\t            name = fn.name || anonFn(fn);\n\t          }\n\t          throw $injectorMinErr('strictdi',\n\t            '{0} is not using explicit annotation and cannot be invoked in strict mode', name);\n\t        }\n\t        fnText = fn.toString().replace(STRIP_COMMENTS, '');\n\t        argDecl = fnText.match(FN_ARGS);\n\t        forEach(argDecl[1].split(FN_ARG_SPLIT), function(arg) {\n\t          arg.replace(FN_ARG, function(all, underscore, name) {\n\t            $inject.push(name);\n\t          });\n\t        });\n\t      }\n\t      fn.$inject = $inject;\n\t    }\n\t  } else if (isArray(fn)) {\n\t    last = fn.length - 1;\n\t    assertArgFn(fn[last], 'fn');\n\t    $inject = fn.slice(0, last);\n\t  } else {\n\t    assertArgFn(fn, 'fn', true);\n\t  }\n\t  return $inject;\n\t}\n\n\t///////////////////////////////////////\n\n\t/**\n\t * @ngdoc service\n\t * @name $injector\n\t *\n\t * @description\n\t *\n\t * `$injector` is used to retrieve object instances as defined by\n\t * {@link auto.$provide provider}, instantiate types, invoke methods,\n\t * and load modules.\n\t *\n\t * The following always holds true:\n\t *\n\t * ```js\n\t *   var $injector = angular.injector();\n\t *   expect($injector.get('$injector')).toBe($injector);\n\t *   expect($injector.invoke(function($injector) {\n\t *     return $injector;\n\t *   })).toBe($injector);\n\t * ```\n\t *\n\t * # Injection Function Annotation\n\t *\n\t * JavaScript does not have annotations, and annotations are needed for dependency injection. The\n\t * following are all valid ways of annotating function with injection arguments and are equivalent.\n\t *\n\t * ```js\n\t *   // inferred (only works if code not minified/obfuscated)\n\t *   $injector.invoke(function(serviceA){});\n\t *\n\t *   // annotated\n\t *   function explicit(serviceA) {};\n\t *   explicit.$inject = ['serviceA'];\n\t *   $injector.invoke(explicit);\n\t *\n\t *   // inline\n\t *   $injector.invoke(['serviceA', function(serviceA){}]);\n\t * ```\n\t *\n\t * ## Inference\n\t *\n\t * In JavaScript calling `toString()` on a function returns the function definition. The definition\n\t * can then be parsed and the function arguments can be extracted. This method of discovering\n\t * annotations is disallowed when the injector is in strict mode.\n\t * *NOTE:* This does not work with minification, and obfuscation tools since these tools change the\n\t * argument names.\n\t *\n\t * ## `$inject` Annotation\n\t * By adding an `$inject` property onto a function the injection parameters can be specified.\n\t *\n\t * ## Inline\n\t * As an array of injection names, where the last item in the array is the function to call.\n\t */\n\n\t/**\n\t * @ngdoc method\n\t * @name $injector#get\n\t *\n\t * @description\n\t * Return an instance of the service.\n\t *\n\t * @param {string} name The name of the instance to retrieve.\n\t * @param {string} caller An optional string to provide the origin of the function call for error messages.\n\t * @return {*} The instance.\n\t */\n\n\t/**\n\t * @ngdoc method\n\t * @name $injector#invoke\n\t *\n\t * @description\n\t * Invoke the method and supply the method arguments from the `$injector`.\n\t *\n\t * @param {!Function} fn The function to invoke. Function parameters are injected according to the\n\t *   {@link guide/di $inject Annotation} rules.\n\t * @param {Object=} self The `this` for the invoked method.\n\t * @param {Object=} locals Optional object. If preset then any argument names are read from this\n\t *                         object first, before the `$injector` is consulted.\n\t * @returns {*} the value returned by the invoked `fn` function.\n\t */\n\n\t/**\n\t * @ngdoc method\n\t * @name $injector#has\n\t *\n\t * @description\n\t * Allows the user to query if the particular service exists.\n\t *\n\t * @param {string} name Name of the service to query.\n\t * @returns {boolean} `true` if injector has given service.\n\t */\n\n\t/**\n\t * @ngdoc method\n\t * @name $injector#instantiate\n\t * @description\n\t * Create a new instance of JS type. The method takes a constructor function, invokes the new\n\t * operator, and supplies all of the arguments to the constructor function as specified by the\n\t * constructor annotation.\n\t *\n\t * @param {Function} Type Annotated constructor function.\n\t * @param {Object=} locals Optional object. If preset then any argument names are read from this\n\t * object first, before the `$injector` is consulted.\n\t * @returns {Object} new instance of `Type`.\n\t */\n\n\t/**\n\t * @ngdoc method\n\t * @name $injector#annotate\n\t *\n\t * @description\n\t * Returns an array of service names which the function is requesting for injection. This API is\n\t * used by the injector to determine which services need to be injected into the function when the\n\t * function is invoked. There are three ways in which the function can be annotated with the needed\n\t * dependencies.\n\t *\n\t * # Argument names\n\t *\n\t * The simplest form is to extract the dependencies from the arguments of the function. This is done\n\t * by converting the function into a string using `toString()` method and extracting the argument\n\t * names.\n\t * ```js\n\t *   // Given\n\t *   function MyController($scope, $route) {\n\t *     // ...\n\t *   }\n\t *\n\t *   // Then\n\t *   expect(injector.annotate(MyController)).toEqual(['$scope', '$route']);\n\t * ```\n\t *\n\t * You can disallow this method by using strict injection mode.\n\t *\n\t * This method does not work with code minification / obfuscation. For this reason the following\n\t * annotation strategies are supported.\n\t *\n\t * # The `$inject` property\n\t *\n\t * If a function has an `$inject` property and its value is an array of strings, then the strings\n\t * represent names of services to be injected into the function.\n\t * ```js\n\t *   // Given\n\t *   var MyController = function(obfuscatedScope, obfuscatedRoute) {\n\t *     // ...\n\t *   }\n\t *   // Define function dependencies\n\t *   MyController['$inject'] = ['$scope', '$route'];\n\t *\n\t *   // Then\n\t *   expect(injector.annotate(MyController)).toEqual(['$scope', '$route']);\n\t * ```\n\t *\n\t * # The array notation\n\t *\n\t * It is often desirable to inline Injected functions and that's when setting the `$inject` property\n\t * is very inconvenient. In these situations using the array notation to specify the dependencies in\n\t * a way that survives minification is a better choice:\n\t *\n\t * ```js\n\t *   // We wish to write this (not minification / obfuscation safe)\n\t *   injector.invoke(function($compile, $rootScope) {\n\t *     // ...\n\t *   });\n\t *\n\t *   // We are forced to write break inlining\n\t *   var tmpFn = function(obfuscatedCompile, obfuscatedRootScope) {\n\t *     // ...\n\t *   };\n\t *   tmpFn.$inject = ['$compile', '$rootScope'];\n\t *   injector.invoke(tmpFn);\n\t *\n\t *   // To better support inline function the inline annotation is supported\n\t *   injector.invoke(['$compile', '$rootScope', function(obfCompile, obfRootScope) {\n\t *     // ...\n\t *   }]);\n\t *\n\t *   // Therefore\n\t *   expect(injector.annotate(\n\t *      ['$compile', '$rootScope', function(obfus_$compile, obfus_$rootScope) {}])\n\t *    ).toEqual(['$compile', '$rootScope']);\n\t * ```\n\t *\n\t * @param {Function|Array.<string|Function>} fn Function for which dependent service names need to\n\t * be retrieved as described above.\n\t *\n\t * @param {boolean=} [strictDi=false] Disallow argument name annotation inference.\n\t *\n\t * @returns {Array.<string>} The names of the services which the function requires.\n\t */\n\n\n\n\n\t/**\n\t * @ngdoc service\n\t * @name $provide\n\t *\n\t * @description\n\t *\n\t * The {@link auto.$provide $provide} service has a number of methods for registering components\n\t * with the {@link auto.$injector $injector}. Many of these functions are also exposed on\n\t * {@link angular.Module}.\n\t *\n\t * An Angular **service** is a singleton object created by a **service factory**.  These **service\n\t * factories** are functions which, in turn, are created by a **service provider**.\n\t * The **service providers** are constructor functions. When instantiated they must contain a\n\t * property called `$get`, which holds the **service factory** function.\n\t *\n\t * When you request a service, the {@link auto.$injector $injector} is responsible for finding the\n\t * correct **service provider**, instantiating it and then calling its `$get` **service factory**\n\t * function to get the instance of the **service**.\n\t *\n\t * Often services have no configuration options and there is no need to add methods to the service\n\t * provider.  The provider will be no more than a constructor function with a `$get` property. For\n\t * these cases the {@link auto.$provide $provide} service has additional helper methods to register\n\t * services without specifying a provider.\n\t *\n\t * * {@link auto.$provide#provider provider(provider)} - registers a **service provider** with the\n\t *     {@link auto.$injector $injector}\n\t * * {@link auto.$provide#constant constant(obj)} - registers a value/object that can be accessed by\n\t *     providers and services.\n\t * * {@link auto.$provide#value value(obj)} - registers a value/object that can only be accessed by\n\t *     services, not providers.\n\t * * {@link auto.$provide#factory factory(fn)} - registers a service **factory function**, `fn`,\n\t *     that will be wrapped in a **service provider** object, whose `$get` property will contain the\n\t *     given factory function.\n\t * * {@link auto.$provide#service service(class)} - registers a **constructor function**, `class`\n\t *     that will be wrapped in a **service provider** object, whose `$get` property will instantiate\n\t *      a new object using the given constructor function.\n\t *\n\t * See the individual methods for more information and examples.\n\t */\n\n\t/**\n\t * @ngdoc method\n\t * @name $provide#provider\n\t * @description\n\t *\n\t * Register a **provider function** with the {@link auto.$injector $injector}. Provider functions\n\t * are constructor functions, whose instances are responsible for \"providing\" a factory for a\n\t * service.\n\t *\n\t * Service provider names start with the name of the service they provide followed by `Provider`.\n\t * For example, the {@link ng.$log $log} service has a provider called\n\t * {@link ng.$logProvider $logProvider}.\n\t *\n\t * Service provider objects can have additional methods which allow configuration of the provider\n\t * and its service. Importantly, you can configure what kind of service is created by the `$get`\n\t * method, or how that service will act. For example, the {@link ng.$logProvider $logProvider} has a\n\t * method {@link ng.$logProvider#debugEnabled debugEnabled}\n\t * which lets you specify whether the {@link ng.$log $log} service will log debug messages to the\n\t * console or not.\n\t *\n\t * @param {string} name The name of the instance. NOTE: the provider will be available under `name +\n\t                        'Provider'` key.\n\t * @param {(Object|function())} provider If the provider is:\n\t *\n\t *   - `Object`: then it should have a `$get` method. The `$get` method will be invoked using\n\t *     {@link auto.$injector#invoke $injector.invoke()} when an instance needs to be created.\n\t *   - `Constructor`: a new instance of the provider will be created using\n\t *     {@link auto.$injector#instantiate $injector.instantiate()}, then treated as `object`.\n\t *\n\t * @returns {Object} registered provider instance\n\n\t * @example\n\t *\n\t * The following example shows how to create a simple event tracking service and register it using\n\t * {@link auto.$provide#provider $provide.provider()}.\n\t *\n\t * ```js\n\t *  // Define the eventTracker provider\n\t *  function EventTrackerProvider() {\n\t *    var trackingUrl = '/track';\n\t *\n\t *    // A provider method for configuring where the tracked events should been saved\n\t *    this.setTrackingUrl = function(url) {\n\t *      trackingUrl = url;\n\t *    };\n\t *\n\t *    // The service factory function\n\t *    this.$get = ['$http', function($http) {\n\t *      var trackedEvents = {};\n\t *      return {\n\t *        // Call this to track an event\n\t *        event: function(event) {\n\t *          var count = trackedEvents[event] || 0;\n\t *          count += 1;\n\t *          trackedEvents[event] = count;\n\t *          return count;\n\t *        },\n\t *        // Call this to save the tracked events to the trackingUrl\n\t *        save: function() {\n\t *          $http.post(trackingUrl, trackedEvents);\n\t *        }\n\t *      };\n\t *    }];\n\t *  }\n\t *\n\t *  describe('eventTracker', function() {\n\t *    var postSpy;\n\t *\n\t *    beforeEach(module(function($provide) {\n\t *      // Register the eventTracker provider\n\t *      $provide.provider('eventTracker', EventTrackerProvider);\n\t *    }));\n\t *\n\t *    beforeEach(module(function(eventTrackerProvider) {\n\t *      // Configure eventTracker provider\n\t *      eventTrackerProvider.setTrackingUrl('/custom-track');\n\t *    }));\n\t *\n\t *    it('tracks events', inject(function(eventTracker) {\n\t *      expect(eventTracker.event('login')).toEqual(1);\n\t *      expect(eventTracker.event('login')).toEqual(2);\n\t *    }));\n\t *\n\t *    it('saves to the tracking url', inject(function(eventTracker, $http) {\n\t *      postSpy = spyOn($http, 'post');\n\t *      eventTracker.event('login');\n\t *      eventTracker.save();\n\t *      expect(postSpy).toHaveBeenCalled();\n\t *      expect(postSpy.mostRecentCall.args[0]).not.toEqual('/track');\n\t *      expect(postSpy.mostRecentCall.args[0]).toEqual('/custom-track');\n\t *      expect(postSpy.mostRecentCall.args[1]).toEqual({ 'login': 1 });\n\t *    }));\n\t *  });\n\t * ```\n\t */\n\n\t/**\n\t * @ngdoc method\n\t * @name $provide#factory\n\t * @description\n\t *\n\t * Register a **service factory**, which will be called to return the service instance.\n\t * This is short for registering a service where its provider consists of only a `$get` property,\n\t * which is the given service factory function.\n\t * You should use {@link auto.$provide#factory $provide.factory(getFn)} if you do not need to\n\t * configure your service in a provider.\n\t *\n\t * @param {string} name The name of the instance.\n\t * @param {function()} $getFn The $getFn for the instance creation. Internally this is a short hand\n\t *                            for `$provide.provider(name, {$get: $getFn})`.\n\t * @returns {Object} registered provider instance\n\t *\n\t * @example\n\t * Here is an example of registering a service\n\t * ```js\n\t *   $provide.factory('ping', ['$http', function($http) {\n\t *     return function ping() {\n\t *       return $http.send('/ping');\n\t *     };\n\t *   }]);\n\t * ```\n\t * You would then inject and use this service like this:\n\t * ```js\n\t *   someModule.controller('Ctrl', ['ping', function(ping) {\n\t *     ping();\n\t *   }]);\n\t * ```\n\t */\n\n\n\t/**\n\t * @ngdoc method\n\t * @name $provide#service\n\t * @description\n\t *\n\t * Register a **service constructor**, which will be invoked with `new` to create the service\n\t * instance.\n\t * This is short for registering a service where its provider's `$get` property is the service\n\t * constructor function that will be used to instantiate the service instance.\n\t *\n\t * You should use {@link auto.$provide#service $provide.service(class)} if you define your service\n\t * as a type/class.\n\t *\n\t * @param {string} name The name of the instance.\n\t * @param {Function} constructor A class (constructor function) that will be instantiated.\n\t * @returns {Object} registered provider instance\n\t *\n\t * @example\n\t * Here is an example of registering a service using\n\t * {@link auto.$provide#service $provide.service(class)}.\n\t * ```js\n\t *   var Ping = function($http) {\n\t *     this.$http = $http;\n\t *   };\n\t *\n\t *   Ping.$inject = ['$http'];\n\t *\n\t *   Ping.prototype.send = function() {\n\t *     return this.$http.get('/ping');\n\t *   };\n\t *   $provide.service('ping', Ping);\n\t * ```\n\t * You would then inject and use this service like this:\n\t * ```js\n\t *   someModule.controller('Ctrl', ['ping', function(ping) {\n\t *     ping.send();\n\t *   }]);\n\t * ```\n\t */\n\n\n\t/**\n\t * @ngdoc method\n\t * @name $provide#value\n\t * @description\n\t *\n\t * Register a **value service** with the {@link auto.$injector $injector}, such as a string, a\n\t * number, an array, an object or a function.  This is short for registering a service where its\n\t * provider's `$get` property is a factory function that takes no arguments and returns the **value\n\t * service**.\n\t *\n\t * Value services are similar to constant services, except that they cannot be injected into a\n\t * module configuration function (see {@link angular.Module#config}) but they can be overridden by\n\t * an Angular\n\t * {@link auto.$provide#decorator decorator}.\n\t *\n\t * @param {string} name The name of the instance.\n\t * @param {*} value The value.\n\t * @returns {Object} registered provider instance\n\t *\n\t * @example\n\t * Here are some examples of creating value services.\n\t * ```js\n\t *   $provide.value('ADMIN_USER', 'admin');\n\t *\n\t *   $provide.value('RoleLookup', { admin: 0, writer: 1, reader: 2 });\n\t *\n\t *   $provide.value('halfOf', function(value) {\n\t *     return value / 2;\n\t *   });\n\t * ```\n\t */\n\n\n\t/**\n\t * @ngdoc method\n\t * @name $provide#constant\n\t * @description\n\t *\n\t * Register a **constant service**, such as a string, a number, an array, an object or a function,\n\t * with the {@link auto.$injector $injector}. Unlike {@link auto.$provide#value value} it can be\n\t * injected into a module configuration function (see {@link angular.Module#config}) and it cannot\n\t * be overridden by an Angular {@link auto.$provide#decorator decorator}.\n\t *\n\t * @param {string} name The name of the constant.\n\t * @param {*} value The constant value.\n\t * @returns {Object} registered instance\n\t *\n\t * @example\n\t * Here a some examples of creating constants:\n\t * ```js\n\t *   $provide.constant('SHARD_HEIGHT', 306);\n\t *\n\t *   $provide.constant('MY_COLOURS', ['red', 'blue', 'grey']);\n\t *\n\t *   $provide.constant('double', function(value) {\n\t *     return value * 2;\n\t *   });\n\t * ```\n\t */\n\n\n\t/**\n\t * @ngdoc method\n\t * @name $provide#decorator\n\t * @description\n\t *\n\t * Register a **service decorator** with the {@link auto.$injector $injector}. A service decorator\n\t * intercepts the creation of a service, allowing it to override or modify the behaviour of the\n\t * service. The object returned by the decorator may be the original service, or a new service\n\t * object which replaces or wraps and delegates to the original service.\n\t *\n\t * @param {string} name The name of the service to decorate.\n\t * @param {function()} decorator This function will be invoked when the service needs to be\n\t *    instantiated and should return the decorated service instance. The function is called using\n\t *    the {@link auto.$injector#invoke injector.invoke} method and is therefore fully injectable.\n\t *    Local injection arguments:\n\t *\n\t *    * `$delegate` - The original service instance, which can be monkey patched, configured,\n\t *      decorated or delegated to.\n\t *\n\t * @example\n\t * Here we decorate the {@link ng.$log $log} service to convert warnings to errors by intercepting\n\t * calls to {@link ng.$log#error $log.warn()}.\n\t * ```js\n\t *   $provide.decorator('$log', ['$delegate', function($delegate) {\n\t *     $delegate.warn = $delegate.error;\n\t *     return $delegate;\n\t *   }]);\n\t * ```\n\t */\n\n\n\tfunction createInjector(modulesToLoad, strictDi) {\n\t  strictDi = (strictDi === true);\n\t  var INSTANTIATING = {},\n\t      providerSuffix = 'Provider',\n\t      path = [],\n\t      loadedModules = new HashMap([], true),\n\t      providerCache = {\n\t        $provide: {\n\t            provider: supportObject(provider),\n\t            factory: supportObject(factory),\n\t            service: supportObject(service),\n\t            value: supportObject(value),\n\t            constant: supportObject(constant),\n\t            decorator: decorator\n\t          }\n\t      },\n\t      providerInjector = (providerCache.$injector =\n\t          createInternalInjector(providerCache, function(serviceName, caller) {\n\t            if (angular.isString(caller)) {\n\t              path.push(caller);\n\t            }\n\t            throw $injectorMinErr('unpr', \"Unknown provider: {0}\", path.join(' <- '));\n\t          })),\n\t      instanceCache = {},\n\t      instanceInjector = (instanceCache.$injector =\n\t          createInternalInjector(instanceCache, function(serviceName, caller) {\n\t            var provider = providerInjector.get(serviceName + providerSuffix, caller);\n\t            return instanceInjector.invoke(provider.$get, provider, undefined, serviceName);\n\t          }));\n\n\n\t  forEach(loadModules(modulesToLoad), function(fn) { instanceInjector.invoke(fn || noop); });\n\n\t  return instanceInjector;\n\n\t  ////////////////////////////////////\n\t  // $provider\n\t  ////////////////////////////////////\n\n\t  function supportObject(delegate) {\n\t    return function(key, value) {\n\t      if (isObject(key)) {\n\t        forEach(key, reverseParams(delegate));\n\t      } else {\n\t        return delegate(key, value);\n\t      }\n\t    };\n\t  }\n\n\t  function provider(name, provider_) {\n\t    assertNotHasOwnProperty(name, 'service');\n\t    if (isFunction(provider_) || isArray(provider_)) {\n\t      provider_ = providerInjector.instantiate(provider_);\n\t    }\n\t    if (!provider_.$get) {\n\t      throw $injectorMinErr('pget', \"Provider '{0}' must define $get factory method.\", name);\n\t    }\n\t    return providerCache[name + providerSuffix] = provider_;\n\t  }\n\n\t  function enforceReturnValue(name, factory) {\n\t    return function enforcedReturnValue() {\n\t      var result = instanceInjector.invoke(factory, this);\n\t      if (isUndefined(result)) {\n\t        throw $injectorMinErr('undef', \"Provider '{0}' must return a value from $get factory method.\", name);\n\t      }\n\t      return result;\n\t    };\n\t  }\n\n\t  function factory(name, factoryFn, enforce) {\n\t    return provider(name, {\n\t      $get: enforce !== false ? enforceReturnValue(name, factoryFn) : factoryFn\n\t    });\n\t  }\n\n\t  function service(name, constructor) {\n\t    return factory(name, ['$injector', function($injector) {\n\t      return $injector.instantiate(constructor);\n\t    }]);\n\t  }\n\n\t  function value(name, val) { return factory(name, valueFn(val), false); }\n\n\t  function constant(name, value) {\n\t    assertNotHasOwnProperty(name, 'constant');\n\t    providerCache[name] = value;\n\t    instanceCache[name] = value;\n\t  }\n\n\t  function decorator(serviceName, decorFn) {\n\t    var origProvider = providerInjector.get(serviceName + providerSuffix),\n\t        orig$get = origProvider.$get;\n\n\t    origProvider.$get = function() {\n\t      var origInstance = instanceInjector.invoke(orig$get, origProvider);\n\t      return instanceInjector.invoke(decorFn, null, {$delegate: origInstance});\n\t    };\n\t  }\n\n\t  ////////////////////////////////////\n\t  // Module Loading\n\t  ////////////////////////////////////\n\t  function loadModules(modulesToLoad) {\n\t    var runBlocks = [], moduleFn;\n\t    forEach(modulesToLoad, function(module) {\n\t      if (loadedModules.get(module)) return;\n\t      loadedModules.put(module, true);\n\n\t      function runInvokeQueue(queue) {\n\t        var i, ii;\n\t        for (i = 0, ii = queue.length; i < ii; i++) {\n\t          var invokeArgs = queue[i],\n\t              provider = providerInjector.get(invokeArgs[0]);\n\n\t          provider[invokeArgs[1]].apply(provider, invokeArgs[2]);\n\t        }\n\t      }\n\n\t      try {\n\t        if (isString(module)) {\n\t          moduleFn = angularModule(module);\n\t          runBlocks = runBlocks.concat(loadModules(moduleFn.requires)).concat(moduleFn._runBlocks);\n\t          runInvokeQueue(moduleFn._invokeQueue);\n\t          runInvokeQueue(moduleFn._configBlocks);\n\t        } else if (isFunction(module)) {\n\t            runBlocks.push(providerInjector.invoke(module));\n\t        } else if (isArray(module)) {\n\t            runBlocks.push(providerInjector.invoke(module));\n\t        } else {\n\t          assertArgFn(module, 'module');\n\t        }\n\t      } catch (e) {\n\t        if (isArray(module)) {\n\t          module = module[module.length - 1];\n\t        }\n\t        if (e.message && e.stack && e.stack.indexOf(e.message) == -1) {\n\t          // Safari & FF's stack traces don't contain error.message content\n\t          // unlike those of Chrome and IE\n\t          // So if stack doesn't contain message, we create a new string that contains both.\n\t          // Since error.stack is read-only in Safari, I'm overriding e and not e.stack here.\n\t          /* jshint -W022 */\n\t          e = e.message + '\\n' + e.stack;\n\t        }\n\t        throw $injectorMinErr('modulerr', \"Failed to instantiate module {0} due to:\\n{1}\",\n\t                  module, e.stack || e.message || e);\n\t      }\n\t    });\n\t    return runBlocks;\n\t  }\n\n\t  ////////////////////////////////////\n\t  // internal Injector\n\t  ////////////////////////////////////\n\n\t  function createInternalInjector(cache, factory) {\n\n\t    function getService(serviceName, caller) {\n\t      if (cache.hasOwnProperty(serviceName)) {\n\t        if (cache[serviceName] === INSTANTIATING) {\n\t          throw $injectorMinErr('cdep', 'Circular dependency found: {0}',\n\t                    serviceName + ' <- ' + path.join(' <- '));\n\t        }\n\t        return cache[serviceName];\n\t      } else {\n\t        try {\n\t          path.unshift(serviceName);\n\t          cache[serviceName] = INSTANTIATING;\n\t          return cache[serviceName] = factory(serviceName, caller);\n\t        } catch (err) {\n\t          if (cache[serviceName] === INSTANTIATING) {\n\t            delete cache[serviceName];\n\t          }\n\t          throw err;\n\t        } finally {\n\t          path.shift();\n\t        }\n\t      }\n\t    }\n\n\t    function invoke(fn, self, locals, serviceName) {\n\t      if (typeof locals === 'string') {\n\t        serviceName = locals;\n\t        locals = null;\n\t      }\n\n\t      var args = [],\n\t          $inject = createInjector.$$annotate(fn, strictDi, serviceName),\n\t          length, i,\n\t          key;\n\n\t      for (i = 0, length = $inject.length; i < length; i++) {\n\t        key = $inject[i];\n\t        if (typeof key !== 'string') {\n\t          throw $injectorMinErr('itkn',\n\t                  'Incorrect injection token! Expected service name as string, got {0}', key);\n\t        }\n\t        args.push(\n\t          locals && locals.hasOwnProperty(key)\n\t          ? locals[key]\n\t          : getService(key, serviceName)\n\t        );\n\t      }\n\t      if (isArray(fn)) {\n\t        fn = fn[length];\n\t      }\n\n\t      // http://jsperf.com/angularjs-invoke-apply-vs-switch\n\t      // #5388\n\t      return fn.apply(self, args);\n\t    }\n\n\t    function instantiate(Type, locals, serviceName) {\n\t      // Check if Type is annotated and use just the given function at n-1 as parameter\n\t      // e.g. someModule.factory('greeter', ['$window', function(renamed$window) {}]);\n\t      // Object creation: http://jsperf.com/create-constructor/2\n\t      var instance = Object.create((isArray(Type) ? Type[Type.length - 1] : Type).prototype || null);\n\t      var returnedValue = invoke(Type, instance, locals, serviceName);\n\n\t      return isObject(returnedValue) || isFunction(returnedValue) ? returnedValue : instance;\n\t    }\n\n\t    return {\n\t      invoke: invoke,\n\t      instantiate: instantiate,\n\t      get: getService,\n\t      annotate: createInjector.$$annotate,\n\t      has: function(name) {\n\t        return providerCache.hasOwnProperty(name + providerSuffix) || cache.hasOwnProperty(name);\n\t      }\n\t    };\n\t  }\n\t}\n\n\tcreateInjector.$$annotate = annotate;\n\n\t/**\n\t * @ngdoc provider\n\t * @name $anchorScrollProvider\n\t *\n\t * @description\n\t * Use `$anchorScrollProvider` to disable automatic scrolling whenever\n\t * {@link ng.$location#hash $location.hash()} changes.\n\t */\n\tfunction $AnchorScrollProvider() {\n\n\t  var autoScrollingEnabled = true;\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $anchorScrollProvider#disableAutoScrolling\n\t   *\n\t   * @description\n\t   * By default, {@link ng.$anchorScroll $anchorScroll()} will automatically detect changes to\n\t   * {@link ng.$location#hash $location.hash()} and scroll to the element matching the new hash.<br />\n\t   * Use this method to disable automatic scrolling.\n\t   *\n\t   * If automatic scrolling is disabled, one must explicitly call\n\t   * {@link ng.$anchorScroll $anchorScroll()} in order to scroll to the element related to the\n\t   * current hash.\n\t   */\n\t  this.disableAutoScrolling = function() {\n\t    autoScrollingEnabled = false;\n\t  };\n\n\t  /**\n\t   * @ngdoc service\n\t   * @name $anchorScroll\n\t   * @kind function\n\t   * @requires $window\n\t   * @requires $location\n\t   * @requires $rootScope\n\t   *\n\t   * @description\n\t   * When called, it checks the current value of {@link ng.$location#hash $location.hash()} and\n\t   * scrolls to the related element, according to the rules specified in the\n\t   * [Html5 spec](http://dev.w3.org/html5/spec/Overview.html#the-indicated-part-of-the-document).\n\t   *\n\t   * It also watches the {@link ng.$location#hash $location.hash()} and automatically scrolls to\n\t   * match any anchor whenever it changes. This can be disabled by calling\n\t   * {@link ng.$anchorScrollProvider#disableAutoScrolling $anchorScrollProvider.disableAutoScrolling()}.\n\t   *\n\t   * Additionally, you can use its {@link ng.$anchorScroll#yOffset yOffset} property to specify a\n\t   * vertical scroll-offset (either fixed or dynamic).\n\t   *\n\t   * @property {(number|function|jqLite)} yOffset\n\t   * If set, specifies a vertical scroll-offset. This is often useful when there are fixed\n\t   * positioned elements at the top of the page, such as navbars, headers etc.\n\t   *\n\t   * `yOffset` can be specified in various ways:\n\t   * - **number**: A fixed number of pixels to be used as offset.<br /><br />\n\t   * - **function**: A getter function called everytime `$anchorScroll()` is executed. Must return\n\t   *   a number representing the offset (in pixels).<br /><br />\n\t   * - **jqLite**: A jqLite/jQuery element to be used for specifying the offset. The distance from\n\t   *   the top of the page to the element's bottom will be used as offset.<br />\n\t   *   **Note**: The element will be taken into account only as long as its `position` is set to\n\t   *   `fixed`. This option is useful, when dealing with responsive navbars/headers that adjust\n\t   *   their height and/or positioning according to the viewport's size.\n\t   *\n\t   * <br />\n\t   * <div class=\"alert alert-warning\">\n\t   * In order for `yOffset` to work properly, scrolling should take place on the document's root and\n\t   * not some child element.\n\t   * </div>\n\t   *\n\t   * @example\n\t     <example module=\"anchorScrollExample\">\n\t       <file name=\"index.html\">\n\t         <div id=\"scrollArea\" ng-controller=\"ScrollController\">\n\t           <a ng-click=\"gotoBottom()\">Go to bottom</a>\n\t           <a id=\"bottom\"></a> You're at the bottom!\n\t         </div>\n\t       </file>\n\t       <file name=\"script.js\">\n\t         angular.module('anchorScrollExample', [])\n\t           .controller('ScrollController', ['$scope', '$location', '$anchorScroll',\n\t             function ($scope, $location, $anchorScroll) {\n\t               $scope.gotoBottom = function() {\n\t                 // set the location.hash to the id of\n\t                 // the element you wish to scroll to.\n\t                 $location.hash('bottom');\n\n\t                 // call $anchorScroll()\n\t                 $anchorScroll();\n\t               };\n\t             }]);\n\t       </file>\n\t       <file name=\"style.css\">\n\t         #scrollArea {\n\t           height: 280px;\n\t           overflow: auto;\n\t         }\n\n\t         #bottom {\n\t           display: block;\n\t           margin-top: 2000px;\n\t         }\n\t       </file>\n\t     </example>\n\t   *\n\t   * <hr />\n\t   * The example below illustrates the use of a vertical scroll-offset (specified as a fixed value).\n\t   * See {@link ng.$anchorScroll#yOffset $anchorScroll.yOffset} for more details.\n\t   *\n\t   * @example\n\t     <example module=\"anchorScrollOffsetExample\">\n\t       <file name=\"index.html\">\n\t         <div class=\"fixed-header\" ng-controller=\"headerCtrl\">\n\t           <a href=\"\" ng-click=\"gotoAnchor(x)\" ng-repeat=\"x in [1,2,3,4,5]\">\n\t             Go to anchor {{x}}\n\t           </a>\n\t         </div>\n\t         <div id=\"anchor{{x}}\" class=\"anchor\" ng-repeat=\"x in [1,2,3,4,5]\">\n\t           Anchor {{x}} of 5\n\t         </div>\n\t       </file>\n\t       <file name=\"script.js\">\n\t         angular.module('anchorScrollOffsetExample', [])\n\t           .run(['$anchorScroll', function($anchorScroll) {\n\t             $anchorScroll.yOffset = 50;   // always scroll by 50 extra pixels\n\t           }])\n\t           .controller('headerCtrl', ['$anchorScroll', '$location', '$scope',\n\t             function ($anchorScroll, $location, $scope) {\n\t               $scope.gotoAnchor = function(x) {\n\t                 var newHash = 'anchor' + x;\n\t                 if ($location.hash() !== newHash) {\n\t                   // set the $location.hash to `newHash` and\n\t                   // $anchorScroll will automatically scroll to it\n\t                   $location.hash('anchor' + x);\n\t                 } else {\n\t                   // call $anchorScroll() explicitly,\n\t                   // since $location.hash hasn't changed\n\t                   $anchorScroll();\n\t                 }\n\t               };\n\t             }\n\t           ]);\n\t       </file>\n\t       <file name=\"style.css\">\n\t         body {\n\t           padding-top: 50px;\n\t         }\n\n\t         .anchor {\n\t           border: 2px dashed DarkOrchid;\n\t           padding: 10px 10px 200px 10px;\n\t         }\n\n\t         .fixed-header {\n\t           background-color: rgba(0, 0, 0, 0.2);\n\t           height: 50px;\n\t           position: fixed;\n\t           top: 0; left: 0; right: 0;\n\t         }\n\n\t         .fixed-header > a {\n\t           display: inline-block;\n\t           margin: 5px 15px;\n\t         }\n\t       </file>\n\t     </example>\n\t   */\n\t  this.$get = ['$window', '$location', '$rootScope', function($window, $location, $rootScope) {\n\t    var document = $window.document;\n\n\t    // Helper function to get first anchor from a NodeList\n\t    // (using `Array#some()` instead of `angular#forEach()` since it's more performant\n\t    //  and working in all supported browsers.)\n\t    function getFirstAnchor(list) {\n\t      var result = null;\n\t      Array.prototype.some.call(list, function(element) {\n\t        if (nodeName_(element) === 'a') {\n\t          result = element;\n\t          return true;\n\t        }\n\t      });\n\t      return result;\n\t    }\n\n\t    function getYOffset() {\n\n\t      var offset = scroll.yOffset;\n\n\t      if (isFunction(offset)) {\n\t        offset = offset();\n\t      } else if (isElement(offset)) {\n\t        var elem = offset[0];\n\t        var style = $window.getComputedStyle(elem);\n\t        if (style.position !== 'fixed') {\n\t          offset = 0;\n\t        } else {\n\t          offset = elem.getBoundingClientRect().bottom;\n\t        }\n\t      } else if (!isNumber(offset)) {\n\t        offset = 0;\n\t      }\n\n\t      return offset;\n\t    }\n\n\t    function scrollTo(elem) {\n\t      if (elem) {\n\t        elem.scrollIntoView();\n\n\t        var offset = getYOffset();\n\n\t        if (offset) {\n\t          // `offset` is the number of pixels we should scroll UP in order to align `elem` properly.\n\t          // This is true ONLY if the call to `elem.scrollIntoView()` initially aligns `elem` at the\n\t          // top of the viewport.\n\t          //\n\t          // IF the number of pixels from the top of `elem` to the end of the page's content is less\n\t          // than the height of the viewport, then `elem.scrollIntoView()` will align the `elem` some\n\t          // way down the page.\n\t          //\n\t          // This is often the case for elements near the bottom of the page.\n\t          //\n\t          // In such cases we do not need to scroll the whole `offset` up, just the difference between\n\t          // the top of the element and the offset, which is enough to align the top of `elem` at the\n\t          // desired position.\n\t          var elemTop = elem.getBoundingClientRect().top;\n\t          $window.scrollBy(0, elemTop - offset);\n\t        }\n\t      } else {\n\t        $window.scrollTo(0, 0);\n\t      }\n\t    }\n\n\t    function scroll() {\n\t      var hash = $location.hash(), elm;\n\n\t      // empty hash, scroll to the top of the page\n\t      if (!hash) scrollTo(null);\n\n\t      // element with given id\n\t      else if ((elm = document.getElementById(hash))) scrollTo(elm);\n\n\t      // first anchor with given name :-D\n\t      else if ((elm = getFirstAnchor(document.getElementsByName(hash)))) scrollTo(elm);\n\n\t      // no element and hash == 'top', scroll to the top of the page\n\t      else if (hash === 'top') scrollTo(null);\n\t    }\n\n\t    // does not scroll when user clicks on anchor link that is currently on\n\t    // (no url change, no $location.hash() change), browser native does scroll\n\t    if (autoScrollingEnabled) {\n\t      $rootScope.$watch(function autoScrollWatch() {return $location.hash();},\n\t        function autoScrollWatchAction(newVal, oldVal) {\n\t          // skip the initial scroll if $location.hash is empty\n\t          if (newVal === oldVal && newVal === '') return;\n\n\t          jqLiteDocumentLoaded(function() {\n\t            $rootScope.$evalAsync(scroll);\n\t          });\n\t        });\n\t    }\n\n\t    return scroll;\n\t  }];\n\t}\n\n\tvar $animateMinErr = minErr('$animate');\n\n\t/**\n\t * @ngdoc provider\n\t * @name $animateProvider\n\t *\n\t * @description\n\t * Default implementation of $animate that doesn't perform any animations, instead just\n\t * synchronously performs DOM\n\t * updates and calls done() callbacks.\n\t *\n\t * In order to enable animations the ngAnimate module has to be loaded.\n\t *\n\t * To see the functional implementation check out src/ngAnimate/animate.js\n\t */\n\tvar $AnimateProvider = ['$provide', function($provide) {\n\n\n\t  this.$$selectors = {};\n\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $animateProvider#register\n\t   *\n\t   * @description\n\t   * Registers a new injectable animation factory function. The factory function produces the\n\t   * animation object which contains callback functions for each event that is expected to be\n\t   * animated.\n\t   *\n\t   *   * `eventFn`: `function(Element, doneFunction)` The element to animate, the `doneFunction`\n\t   *   must be called once the element animation is complete. If a function is returned then the\n\t   *   animation service will use this function to cancel the animation whenever a cancel event is\n\t   *   triggered.\n\t   *\n\t   *\n\t   * ```js\n\t   *   return {\n\t     *     eventFn : function(element, done) {\n\t     *       //code to run the animation\n\t     *       //once complete, then run done()\n\t     *       return function cancellationFunction() {\n\t     *         //code to cancel the animation\n\t     *       }\n\t     *     }\n\t     *   }\n\t   * ```\n\t   *\n\t   * @param {string} name The name of the animation.\n\t   * @param {Function} factory The factory function that will be executed to return the animation\n\t   *                           object.\n\t   */\n\t  this.register = function(name, factory) {\n\t    var key = name + '-animation';\n\t    if (name && name.charAt(0) != '.') throw $animateMinErr('notcsel',\n\t        \"Expecting class selector starting with '.' got '{0}'.\", name);\n\t    this.$$selectors[name.substr(1)] = key;\n\t    $provide.factory(key, factory);\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $animateProvider#classNameFilter\n\t   *\n\t   * @description\n\t   * Sets and/or returns the CSS class regular expression that is checked when performing\n\t   * an animation. Upon bootstrap the classNameFilter value is not set at all and will\n\t   * therefore enable $animate to attempt to perform an animation on any element.\n\t   * When setting the classNameFilter value, animations will only be performed on elements\n\t   * that successfully match the filter expression. This in turn can boost performance\n\t   * for low-powered devices as well as applications containing a lot of structural operations.\n\t   * @param {RegExp=} expression The className expression which will be checked against all animations\n\t   * @return {RegExp} The current CSS className expression value. If null then there is no expression value\n\t   */\n\t  this.classNameFilter = function(expression) {\n\t    if (arguments.length === 1) {\n\t      this.$$classNameFilter = (expression instanceof RegExp) ? expression : null;\n\t    }\n\t    return this.$$classNameFilter;\n\t  };\n\n\t  this.$get = ['$$q', '$$asyncCallback', '$rootScope', function($$q, $$asyncCallback, $rootScope) {\n\n\t    var currentDefer;\n\n\t    function runAnimationPostDigest(fn) {\n\t      var cancelFn, defer = $$q.defer();\n\t      defer.promise.$$cancelFn = function ngAnimateMaybeCancel() {\n\t        cancelFn && cancelFn();\n\t      };\n\n\t      $rootScope.$$postDigest(function ngAnimatePostDigest() {\n\t        cancelFn = fn(function ngAnimateNotifyComplete() {\n\t          defer.resolve();\n\t        });\n\t      });\n\n\t      return defer.promise;\n\t    }\n\n\t    function resolveElementClasses(element, classes) {\n\t      var toAdd = [], toRemove = [];\n\n\t      var hasClasses = createMap();\n\t      forEach((element.attr('class') || '').split(/\\s+/), function(className) {\n\t        hasClasses[className] = true;\n\t      });\n\n\t      forEach(classes, function(status, className) {\n\t        var hasClass = hasClasses[className];\n\n\t        // If the most recent class manipulation (via $animate) was to remove the class, and the\n\t        // element currently has the class, the class is scheduled for removal. Otherwise, if\n\t        // the most recent class manipulation (via $animate) was to add the class, and the\n\t        // element does not currently have the class, the class is scheduled to be added.\n\t        if (status === false && hasClass) {\n\t          toRemove.push(className);\n\t        } else if (status === true && !hasClass) {\n\t          toAdd.push(className);\n\t        }\n\t      });\n\n\t      return (toAdd.length + toRemove.length) > 0 &&\n\t        [toAdd.length ? toAdd : null, toRemove.length ? toRemove : null];\n\t    }\n\n\t    function cachedClassManipulation(cache, classes, op) {\n\t      for (var i=0, ii = classes.length; i < ii; ++i) {\n\t        var className = classes[i];\n\t        cache[className] = op;\n\t      }\n\t    }\n\n\t    function asyncPromise() {\n\t      // only serve one instance of a promise in order to save CPU cycles\n\t      if (!currentDefer) {\n\t        currentDefer = $$q.defer();\n\t        $$asyncCallback(function() {\n\t          currentDefer.resolve();\n\t          currentDefer = null;\n\t        });\n\t      }\n\t      return currentDefer.promise;\n\t    }\n\n\t    function applyStyles(element, options) {\n\t      if (angular.isObject(options)) {\n\t        var styles = extend(options.from || {}, options.to || {});\n\t        element.css(styles);\n\t      }\n\t    }\n\n\t    /**\n\t     *\n\t     * @ngdoc service\n\t     * @name $animate\n\t     * @description The $animate service provides rudimentary DOM manipulation functions to\n\t     * insert, remove and move elements within the DOM, as well as adding and removing classes.\n\t     * This service is the core service used by the ngAnimate $animator service which provides\n\t     * high-level animation hooks for CSS and JavaScript.\n\t     *\n\t     * $animate is available in the AngularJS core, however, the ngAnimate module must be included\n\t     * to enable full out animation support. Otherwise, $animate will only perform simple DOM\n\t     * manipulation operations.\n\t     *\n\t     * To learn more about enabling animation support, click here to visit the {@link ngAnimate\n\t     * ngAnimate module page} as well as the {@link ngAnimate.$animate ngAnimate $animate service\n\t     * page}.\n\t     */\n\t    return {\n\t      animate: function(element, from, to) {\n\t        applyStyles(element, { from: from, to: to });\n\t        return asyncPromise();\n\t      },\n\n\t      /**\n\t       *\n\t       * @ngdoc method\n\t       * @name $animate#enter\n\t       * @kind function\n\t       * @description Inserts the element into the DOM either after the `after` element or\n\t       * as the first child within the `parent` element. When the function is called a promise\n\t       * is returned that will be resolved at a later time.\n\t       * @param {DOMElement} element the element which will be inserted into the DOM\n\t       * @param {DOMElement} parent the parent element which will append the element as\n\t       *   a child (if the after element is not present)\n\t       * @param {DOMElement} after the sibling element which will append the element\n\t       *   after itself\n\t       * @param {object=} options an optional collection of styles that will be applied to the element.\n\t       * @return {Promise} the animation callback promise\n\t       */\n\t      enter: function(element, parent, after, options) {\n\t        applyStyles(element, options);\n\t        after ? after.after(element)\n\t              : parent.prepend(element);\n\t        return asyncPromise();\n\t      },\n\n\t      /**\n\t       *\n\t       * @ngdoc method\n\t       * @name $animate#leave\n\t       * @kind function\n\t       * @description Removes the element from the DOM. When the function is called a promise\n\t       * is returned that will be resolved at a later time.\n\t       * @param {DOMElement} element the element which will be removed from the DOM\n\t       * @param {object=} options an optional collection of options that will be applied to the element.\n\t       * @return {Promise} the animation callback promise\n\t       */\n\t      leave: function(element, options) {\n\t        applyStyles(element, options);\n\t        element.remove();\n\t        return asyncPromise();\n\t      },\n\n\t      /**\n\t       *\n\t       * @ngdoc method\n\t       * @name $animate#move\n\t       * @kind function\n\t       * @description Moves the position of the provided element within the DOM to be placed\n\t       * either after the `after` element or inside of the `parent` element. When the function\n\t       * is called a promise is returned that will be resolved at a later time.\n\t       *\n\t       * @param {DOMElement} element the element which will be moved around within the\n\t       *   DOM\n\t       * @param {DOMElement} parent the parent element where the element will be\n\t       *   inserted into (if the after element is not present)\n\t       * @param {DOMElement} after the sibling element where the element will be\n\t       *   positioned next to\n\t       * @param {object=} options an optional collection of options that will be applied to the element.\n\t       * @return {Promise} the animation callback promise\n\t       */\n\t      move: function(element, parent, after, options) {\n\t        // Do not remove element before insert. Removing will cause data associated with the\n\t        // element to be dropped. Insert will implicitly do the remove.\n\t        return this.enter(element, parent, after, options);\n\t      },\n\n\t      /**\n\t       *\n\t       * @ngdoc method\n\t       * @name $animate#addClass\n\t       * @kind function\n\t       * @description Adds the provided className CSS class value to the provided element.\n\t       * When the function is called a promise is returned that will be resolved at a later time.\n\t       * @param {DOMElement} element the element which will have the className value\n\t       *   added to it\n\t       * @param {string} className the CSS class which will be added to the element\n\t       * @param {object=} options an optional collection of options that will be applied to the element.\n\t       * @return {Promise} the animation callback promise\n\t       */\n\t      addClass: function(element, className, options) {\n\t        return this.setClass(element, className, [], options);\n\t      },\n\n\t      $$addClassImmediately: function(element, className, options) {\n\t        element = jqLite(element);\n\t        className = !isString(className)\n\t                        ? (isArray(className) ? className.join(' ') : '')\n\t                        : className;\n\t        forEach(element, function(element) {\n\t          jqLiteAddClass(element, className);\n\t        });\n\t        applyStyles(element, options);\n\t        return asyncPromise();\n\t      },\n\n\t      /**\n\t       *\n\t       * @ngdoc method\n\t       * @name $animate#removeClass\n\t       * @kind function\n\t       * @description Removes the provided className CSS class value from the provided element.\n\t       * When the function is called a promise is returned that will be resolved at a later time.\n\t       * @param {DOMElement} element the element which will have the className value\n\t       *   removed from it\n\t       * @param {string} className the CSS class which will be removed from the element\n\t       * @param {object=} options an optional collection of options that will be applied to the element.\n\t       * @return {Promise} the animation callback promise\n\t       */\n\t      removeClass: function(element, className, options) {\n\t        return this.setClass(element, [], className, options);\n\t      },\n\n\t      $$removeClassImmediately: function(element, className, options) {\n\t        element = jqLite(element);\n\t        className = !isString(className)\n\t                        ? (isArray(className) ? className.join(' ') : '')\n\t                        : className;\n\t        forEach(element, function(element) {\n\t          jqLiteRemoveClass(element, className);\n\t        });\n\t        applyStyles(element, options);\n\t        return asyncPromise();\n\t      },\n\n\t      /**\n\t       *\n\t       * @ngdoc method\n\t       * @name $animate#setClass\n\t       * @kind function\n\t       * @description Adds and/or removes the given CSS classes to and from the element.\n\t       * When the function is called a promise is returned that will be resolved at a later time.\n\t       * @param {DOMElement} element the element which will have its CSS classes changed\n\t       *   removed from it\n\t       * @param {string} add the CSS classes which will be added to the element\n\t       * @param {string} remove the CSS class which will be removed from the element\n\t       * @param {object=} options an optional collection of options that will be applied to the element.\n\t       * @return {Promise} the animation callback promise\n\t       */\n\t      setClass: function(element, add, remove, options) {\n\t        var self = this;\n\t        var STORAGE_KEY = '$$animateClasses';\n\t        var createdCache = false;\n\t        element = jqLite(element);\n\n\t        var cache = element.data(STORAGE_KEY);\n\t        if (!cache) {\n\t          cache = {\n\t            classes: {},\n\t            options: options\n\t          };\n\t          createdCache = true;\n\t        } else if (options && cache.options) {\n\t          cache.options = angular.extend(cache.options || {}, options);\n\t        }\n\n\t        var classes = cache.classes;\n\n\t        add = isArray(add) ? add : add.split(' ');\n\t        remove = isArray(remove) ? remove : remove.split(' ');\n\t        cachedClassManipulation(classes, add, true);\n\t        cachedClassManipulation(classes, remove, false);\n\n\t        if (createdCache) {\n\t          cache.promise = runAnimationPostDigest(function(done) {\n\t            var cache = element.data(STORAGE_KEY);\n\t            element.removeData(STORAGE_KEY);\n\n\t            // in the event that the element is removed before postDigest\n\t            // is run then the cache will be undefined and there will be\n\t            // no need anymore to add or remove and of the element classes\n\t            if (cache) {\n\t              var classes = resolveElementClasses(element, cache.classes);\n\t              if (classes) {\n\t                self.$$setClassImmediately(element, classes[0], classes[1], cache.options);\n\t              }\n\t            }\n\n\t            done();\n\t          });\n\t          element.data(STORAGE_KEY, cache);\n\t        }\n\n\t        return cache.promise;\n\t      },\n\n\t      $$setClassImmediately: function(element, add, remove, options) {\n\t        add && this.$$addClassImmediately(element, add);\n\t        remove && this.$$removeClassImmediately(element, remove);\n\t        applyStyles(element, options);\n\t        return asyncPromise();\n\t      },\n\n\t      enabled: noop,\n\t      cancel: noop\n\t    };\n\t  }];\n\t}];\n\n\tfunction $$AsyncCallbackProvider() {\n\t  this.$get = ['$$rAF', '$timeout', function($$rAF, $timeout) {\n\t    return $$rAF.supported\n\t      ? function(fn) { return $$rAF(fn); }\n\t      : function(fn) {\n\t        return $timeout(fn, 0, false);\n\t      };\n\t  }];\n\t}\n\n\t/* global stripHash: true */\n\n\t/**\n\t * ! This is a private undocumented service !\n\t *\n\t * @name $browser\n\t * @requires $log\n\t * @description\n\t * This object has two goals:\n\t *\n\t * - hide all the global state in the browser caused by the window object\n\t * - abstract away all the browser specific features and inconsistencies\n\t *\n\t * For tests we provide {@link ngMock.$browser mock implementation} of the `$browser`\n\t * service, which can be used for convenient testing of the application without the interaction with\n\t * the real browser apis.\n\t */\n\t/**\n\t * @param {object} window The global window object.\n\t * @param {object} document jQuery wrapped document.\n\t * @param {object} $log window.console or an object with the same interface.\n\t * @param {object} $sniffer $sniffer service\n\t */\n\tfunction Browser(window, document, $log, $sniffer) {\n\t  var self = this,\n\t      rawDocument = document[0],\n\t      location = window.location,\n\t      history = window.history,\n\t      setTimeout = window.setTimeout,\n\t      clearTimeout = window.clearTimeout,\n\t      pendingDeferIds = {};\n\n\t  self.isMock = false;\n\n\t  var outstandingRequestCount = 0;\n\t  var outstandingRequestCallbacks = [];\n\n\t  // TODO(vojta): remove this temporary api\n\t  self.$$completeOutstandingRequest = completeOutstandingRequest;\n\t  self.$$incOutstandingRequestCount = function() { outstandingRequestCount++; };\n\n\t  /**\n\t   * Executes the `fn` function(supports currying) and decrements the `outstandingRequestCallbacks`\n\t   * counter. If the counter reaches 0, all the `outstandingRequestCallbacks` are executed.\n\t   */\n\t  function completeOutstandingRequest(fn) {\n\t    try {\n\t      fn.apply(null, sliceArgs(arguments, 1));\n\t    } finally {\n\t      outstandingRequestCount--;\n\t      if (outstandingRequestCount === 0) {\n\t        while (outstandingRequestCallbacks.length) {\n\t          try {\n\t            outstandingRequestCallbacks.pop()();\n\t          } catch (e) {\n\t            $log.error(e);\n\t          }\n\t        }\n\t      }\n\t    }\n\t  }\n\n\t  function getHash(url) {\n\t    var index = url.indexOf('#');\n\t    return index === -1 ? '' : url.substr(index + 1);\n\t  }\n\n\t  /**\n\t   * @private\n\t   * Note: this method is used only by scenario runner\n\t   * TODO(vojta): prefix this method with $$ ?\n\t   * @param {function()} callback Function that will be called when no outstanding request\n\t   */\n\t  self.notifyWhenNoOutstandingRequests = function(callback) {\n\t    // force browser to execute all pollFns - this is needed so that cookies and other pollers fire\n\t    // at some deterministic time in respect to the test runner's actions. Leaving things up to the\n\t    // regular poller would result in flaky tests.\n\t    forEach(pollFns, function(pollFn) { pollFn(); });\n\n\t    if (outstandingRequestCount === 0) {\n\t      callback();\n\t    } else {\n\t      outstandingRequestCallbacks.push(callback);\n\t    }\n\t  };\n\n\t  //////////////////////////////////////////////////////////////\n\t  // Poll Watcher API\n\t  //////////////////////////////////////////////////////////////\n\t  var pollFns = [],\n\t      pollTimeout;\n\n\t  /**\n\t   * @name $browser#addPollFn\n\t   *\n\t   * @param {function()} fn Poll function to add\n\t   *\n\t   * @description\n\t   * Adds a function to the list of functions that poller periodically executes,\n\t   * and starts polling if not started yet.\n\t   *\n\t   * @returns {function()} the added function\n\t   */\n\t  self.addPollFn = function(fn) {\n\t    if (isUndefined(pollTimeout)) startPoller(100, setTimeout);\n\t    pollFns.push(fn);\n\t    return fn;\n\t  };\n\n\t  /**\n\t   * @param {number} interval How often should browser call poll functions (ms)\n\t   * @param {function()} setTimeout Reference to a real or fake `setTimeout` function.\n\t   *\n\t   * @description\n\t   * Configures the poller to run in the specified intervals, using the specified\n\t   * setTimeout fn and kicks it off.\n\t   */\n\t  function startPoller(interval, setTimeout) {\n\t    (function check() {\n\t      forEach(pollFns, function(pollFn) { pollFn(); });\n\t      pollTimeout = setTimeout(check, interval);\n\t    })();\n\t  }\n\n\t  //////////////////////////////////////////////////////////////\n\t  // URL API\n\t  //////////////////////////////////////////////////////////////\n\n\t  var cachedState, lastHistoryState,\n\t      lastBrowserUrl = location.href,\n\t      baseElement = document.find('base'),\n\t      reloadLocation = null;\n\n\t  cacheState();\n\t  lastHistoryState = cachedState;\n\n\t  /**\n\t   * @name $browser#url\n\t   *\n\t   * @description\n\t   * GETTER:\n\t   * Without any argument, this method just returns current value of location.href.\n\t   *\n\t   * SETTER:\n\t   * With at least one argument, this method sets url to new value.\n\t   * If html5 history api supported, pushState/replaceState is used, otherwise\n\t   * location.href/location.replace is used.\n\t   * Returns its own instance to allow chaining\n\t   *\n\t   * NOTE: this api is intended for use only by the $location service. Please use the\n\t   * {@link ng.$location $location service} to change url.\n\t   *\n\t   * @param {string} url New url (when used as setter)\n\t   * @param {boolean=} replace Should new url replace current history record?\n\t   * @param {object=} state object to use with pushState/replaceState\n\t   */\n\t  self.url = function(url, replace, state) {\n\t    // In modern browsers `history.state` is `null` by default; treating it separately\n\t    // from `undefined` would cause `$browser.url('/foo')` to change `history.state`\n\t    // to undefined via `pushState`. Instead, let's change `undefined` to `null` here.\n\t    if (isUndefined(state)) {\n\t      state = null;\n\t    }\n\n\t    // Android Browser BFCache causes location, history reference to become stale.\n\t    if (location !== window.location) location = window.location;\n\t    if (history !== window.history) history = window.history;\n\n\t    // setter\n\t    if (url) {\n\t      var sameState = lastHistoryState === state;\n\n\t      // Don't change anything if previous and current URLs and states match. This also prevents\n\t      // IE<10 from getting into redirect loop when in LocationHashbangInHtml5Url mode.\n\t      // See https://github.com/angular/angular.js/commit/ffb2701\n\t      if (lastBrowserUrl === url && (!$sniffer.history || sameState)) {\n\t        return self;\n\t      }\n\t      var sameBase = lastBrowserUrl && stripHash(lastBrowserUrl) === stripHash(url);\n\t      lastBrowserUrl = url;\n\t      lastHistoryState = state;\n\t      // Don't use history API if only the hash changed\n\t      // due to a bug in IE10/IE11 which leads\n\t      // to not firing a `hashchange` nor `popstate` event\n\t      // in some cases (see #9143).\n\t      if ($sniffer.history && (!sameBase || !sameState)) {\n\t        history[replace ? 'replaceState' : 'pushState'](state, '', url);\n\t        cacheState();\n\t        // Do the assignment again so that those two variables are referentially identical.\n\t        lastHistoryState = cachedState;\n\t      } else {\n\t        if (!sameBase) {\n\t          reloadLocation = url;\n\t        }\n\t        if (replace) {\n\t          location.replace(url);\n\t        } else if (!sameBase) {\n\t          location.href = url;\n\t        } else {\n\t          location.hash = getHash(url);\n\t        }\n\t      }\n\t      return self;\n\t    // getter\n\t    } else {\n\t      // - reloadLocation is needed as browsers don't allow to read out\n\t      //   the new location.href if a reload happened.\n\t      // - the replacement is a workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=407172\n\t      return reloadLocation || location.href.replace(/%27/g,\"'\");\n\t    }\n\t  };\n\n\t  /**\n\t   * @name $browser#state\n\t   *\n\t   * @description\n\t   * This method is a getter.\n\t   *\n\t   * Return history.state or null if history.state is undefined.\n\t   *\n\t   * @returns {object} state\n\t   */\n\t  self.state = function() {\n\t    return cachedState;\n\t  };\n\n\t  var urlChangeListeners = [],\n\t      urlChangeInit = false;\n\n\t  function cacheStateAndFireUrlChange() {\n\t    cacheState();\n\t    fireUrlChange();\n\t  }\n\n\t  function getCurrentState() {\n\t    try {\n\t      return history.state;\n\t    } catch (e) {\n\t      // MSIE can reportedly throw when there is no state (UNCONFIRMED).\n\t    }\n\t  }\n\n\t  // This variable should be used *only* inside the cacheState function.\n\t  var lastCachedState = null;\n\t  function cacheState() {\n\t    // This should be the only place in $browser where `history.state` is read.\n\t    cachedState = getCurrentState();\n\t    cachedState = isUndefined(cachedState) ? null : cachedState;\n\n\t    // Prevent callbacks fo fire twice if both hashchange & popstate were fired.\n\t    if (equals(cachedState, lastCachedState)) {\n\t      cachedState = lastCachedState;\n\t    }\n\t    lastCachedState = cachedState;\n\t  }\n\n\t  function fireUrlChange() {\n\t    if (lastBrowserUrl === self.url() && lastHistoryState === cachedState) {\n\t      return;\n\t    }\n\n\t    lastBrowserUrl = self.url();\n\t    lastHistoryState = cachedState;\n\t    forEach(urlChangeListeners, function(listener) {\n\t      listener(self.url(), cachedState);\n\t    });\n\t  }\n\n\t  /**\n\t   * @name $browser#onUrlChange\n\t   *\n\t   * @description\n\t   * Register callback function that will be called, when url changes.\n\t   *\n\t   * It's only called when the url is changed from outside of angular:\n\t   * - user types different url into address bar\n\t   * - user clicks on history (forward/back) button\n\t   * - user clicks on a link\n\t   *\n\t   * It's not called when url is changed by $browser.url() method\n\t   *\n\t   * The listener gets called with new url as parameter.\n\t   *\n\t   * NOTE: this api is intended for use only by the $location service. Please use the\n\t   * {@link ng.$location $location service} to monitor url changes in angular apps.\n\t   *\n\t   * @param {function(string)} listener Listener function to be called when url changes.\n\t   * @return {function(string)} Returns the registered listener fn - handy if the fn is anonymous.\n\t   */\n\t  self.onUrlChange = function(callback) {\n\t    // TODO(vojta): refactor to use node's syntax for events\n\t    if (!urlChangeInit) {\n\t      // We listen on both (hashchange/popstate) when available, as some browsers (e.g. Opera)\n\t      // don't fire popstate when user change the address bar and don't fire hashchange when url\n\t      // changed by push/replaceState\n\n\t      // html5 history api - popstate event\n\t      if ($sniffer.history) jqLite(window).on('popstate', cacheStateAndFireUrlChange);\n\t      // hashchange event\n\t      jqLite(window).on('hashchange', cacheStateAndFireUrlChange);\n\n\t      urlChangeInit = true;\n\t    }\n\n\t    urlChangeListeners.push(callback);\n\t    return callback;\n\t  };\n\n\t  /**\n\t   * Checks whether the url has changed outside of Angular.\n\t   * Needs to be exported to be able to check for changes that have been done in sync,\n\t   * as hashchange/popstate events fire in async.\n\t   */\n\t  self.$$checkUrlChange = fireUrlChange;\n\n\t  //////////////////////////////////////////////////////////////\n\t  // Misc API\n\t  //////////////////////////////////////////////////////////////\n\n\t  /**\n\t   * @name $browser#baseHref\n\t   *\n\t   * @description\n\t   * Returns current <base href>\n\t   * (always relative - without domain)\n\t   *\n\t   * @returns {string} The current base href\n\t   */\n\t  self.baseHref = function() {\n\t    var href = baseElement.attr('href');\n\t    return href ? href.replace(/^(https?\\:)?\\/\\/[^\\/]*/, '') : '';\n\t  };\n\n\t  //////////////////////////////////////////////////////////////\n\t  // Cookies API\n\t  //////////////////////////////////////////////////////////////\n\t  var lastCookies = {};\n\t  var lastCookieString = '';\n\t  var cookiePath = self.baseHref();\n\n\t  function safeDecodeURIComponent(str) {\n\t    try {\n\t      return decodeURIComponent(str);\n\t    } catch (e) {\n\t      return str;\n\t    }\n\t  }\n\n\t  /**\n\t   * @name $browser#cookies\n\t   *\n\t   * @param {string=} name Cookie name\n\t   * @param {string=} value Cookie value\n\t   *\n\t   * @description\n\t   * The cookies method provides a 'private' low level access to browser cookies.\n\t   * It is not meant to be used directly, use the $cookie service instead.\n\t   *\n\t   * The return values vary depending on the arguments that the method was called with as follows:\n\t   *\n\t   * - cookies() -> hash of all cookies, this is NOT a copy of the internal state, so do not modify\n\t   *   it\n\t   * - cookies(name, value) -> set name to value, if value is undefined delete the cookie\n\t   * - cookies(name) -> the same as (name, undefined) == DELETES (no one calls it right now that\n\t   *   way)\n\t   *\n\t   * @returns {Object} Hash of all cookies (if called without any parameter)\n\t   */\n\t  self.cookies = function(name, value) {\n\t    var cookieLength, cookieArray, cookie, i, index;\n\n\t    if (name) {\n\t      if (value === undefined) {\n\t        rawDocument.cookie = encodeURIComponent(name) + \"=;path=\" + cookiePath +\n\t                                \";expires=Thu, 01 Jan 1970 00:00:00 GMT\";\n\t      } else {\n\t        if (isString(value)) {\n\t          cookieLength = (rawDocument.cookie = encodeURIComponent(name) + '=' + encodeURIComponent(value) +\n\t                                ';path=' + cookiePath).length + 1;\n\n\t          // per http://www.ietf.org/rfc/rfc2109.txt browser must allow at minimum:\n\t          // - 300 cookies\n\t          // - 20 cookies per unique domain\n\t          // - 4096 bytes per cookie\n\t          if (cookieLength > 4096) {\n\t            $log.warn(\"Cookie '\" + name +\n\t              \"' possibly not set or overflowed because it was too large (\" +\n\t              cookieLength + \" > 4096 bytes)!\");\n\t          }\n\t        }\n\t      }\n\t    } else {\n\t      if (rawDocument.cookie !== lastCookieString) {\n\t        lastCookieString = rawDocument.cookie;\n\t        cookieArray = lastCookieString.split(\"; \");\n\t        lastCookies = {};\n\n\t        for (i = 0; i < cookieArray.length; i++) {\n\t          cookie = cookieArray[i];\n\t          index = cookie.indexOf('=');\n\t          if (index > 0) { //ignore nameless cookies\n\t            name = safeDecodeURIComponent(cookie.substring(0, index));\n\t            // the first value that is seen for a cookie is the most\n\t            // specific one.  values for the same cookie name that\n\t            // follow are for less specific paths.\n\t            if (lastCookies[name] === undefined) {\n\t              lastCookies[name] = safeDecodeURIComponent(cookie.substring(index + 1));\n\t            }\n\t          }\n\t        }\n\t      }\n\t      return lastCookies;\n\t    }\n\t  };\n\n\n\t  /**\n\t   * @name $browser#defer\n\t   * @param {function()} fn A function, who's execution should be deferred.\n\t   * @param {number=} [delay=0] of milliseconds to defer the function execution.\n\t   * @returns {*} DeferId that can be used to cancel the task via `$browser.defer.cancel()`.\n\t   *\n\t   * @description\n\t   * Executes a fn asynchronously via `setTimeout(fn, delay)`.\n\t   *\n\t   * Unlike when calling `setTimeout` directly, in test this function is mocked and instead of using\n\t   * `setTimeout` in tests, the fns are queued in an array, which can be programmatically flushed\n\t   * via `$browser.defer.flush()`.\n\t   *\n\t   */\n\t  self.defer = function(fn, delay) {\n\t    var timeoutId;\n\t    outstandingRequestCount++;\n\t    timeoutId = setTimeout(function() {\n\t      delete pendingDeferIds[timeoutId];\n\t      completeOutstandingRequest(fn);\n\t    }, delay || 0);\n\t    pendingDeferIds[timeoutId] = true;\n\t    return timeoutId;\n\t  };\n\n\n\t  /**\n\t   * @name $browser#defer.cancel\n\t   *\n\t   * @description\n\t   * Cancels a deferred task identified with `deferId`.\n\t   *\n\t   * @param {*} deferId Token returned by the `$browser.defer` function.\n\t   * @returns {boolean} Returns `true` if the task hasn't executed yet and was successfully\n\t   *                    canceled.\n\t   */\n\t  self.defer.cancel = function(deferId) {\n\t    if (pendingDeferIds[deferId]) {\n\t      delete pendingDeferIds[deferId];\n\t      clearTimeout(deferId);\n\t      completeOutstandingRequest(noop);\n\t      return true;\n\t    }\n\t    return false;\n\t  };\n\n\t}\n\n\tfunction $BrowserProvider() {\n\t  this.$get = ['$window', '$log', '$sniffer', '$document',\n\t      function($window, $log, $sniffer, $document) {\n\t        return new Browser($window, $document, $log, $sniffer);\n\t      }];\n\t}\n\n\t/**\n\t * @ngdoc service\n\t * @name $cacheFactory\n\t *\n\t * @description\n\t * Factory that constructs {@link $cacheFactory.Cache Cache} objects and gives access to\n\t * them.\n\t *\n\t * ```js\n\t *\n\t *  var cache = $cacheFactory('cacheId');\n\t *  expect($cacheFactory.get('cacheId')).toBe(cache);\n\t *  expect($cacheFactory.get('noSuchCacheId')).not.toBeDefined();\n\t *\n\t *  cache.put(\"key\", \"value\");\n\t *  cache.put(\"another key\", \"another value\");\n\t *\n\t *  // We've specified no options on creation\n\t *  expect(cache.info()).toEqual({id: 'cacheId', size: 2});\n\t *\n\t * ```\n\t *\n\t *\n\t * @param {string} cacheId Name or id of the newly created cache.\n\t * @param {object=} options Options object that specifies the cache behavior. Properties:\n\t *\n\t *   - `{number=}` `capacity` — turns the cache into LRU cache.\n\t *\n\t * @returns {object} Newly created cache object with the following set of methods:\n\t *\n\t * - `{object}` `info()` — Returns id, size, and options of cache.\n\t * - `{{*}}` `put({string} key, {*} value)` — Puts a new key-value pair into the cache and returns\n\t *   it.\n\t * - `{{*}}` `get({string} key)` — Returns cached value for `key` or undefined for cache miss.\n\t * - `{void}` `remove({string} key)` — Removes a key-value pair from the cache.\n\t * - `{void}` `removeAll()` — Removes all cached values.\n\t * - `{void}` `destroy()` — Removes references to this cache from $cacheFactory.\n\t *\n\t * @example\n\t   <example module=\"cacheExampleApp\">\n\t     <file name=\"index.html\">\n\t       <div ng-controller=\"CacheController\">\n\t         <input ng-model=\"newCacheKey\" placeholder=\"Key\">\n\t         <input ng-model=\"newCacheValue\" placeholder=\"Value\">\n\t         <button ng-click=\"put(newCacheKey, newCacheValue)\">Cache</button>\n\n\t         <p ng-if=\"keys.length\">Cached Values</p>\n\t         <div ng-repeat=\"key in keys\">\n\t           <span ng-bind=\"key\"></span>\n\t           <span>: </span>\n\t           <b ng-bind=\"cache.get(key)\"></b>\n\t         </div>\n\n\t         <p>Cache Info</p>\n\t         <div ng-repeat=\"(key, value) in cache.info()\">\n\t           <span ng-bind=\"key\"></span>\n\t           <span>: </span>\n\t           <b ng-bind=\"value\"></b>\n\t         </div>\n\t       </div>\n\t     </file>\n\t     <file name=\"script.js\">\n\t       angular.module('cacheExampleApp', []).\n\t         controller('CacheController', ['$scope', '$cacheFactory', function($scope, $cacheFactory) {\n\t           $scope.keys = [];\n\t           $scope.cache = $cacheFactory('cacheId');\n\t           $scope.put = function(key, value) {\n\t             if ($scope.cache.get(key) === undefined) {\n\t               $scope.keys.push(key);\n\t             }\n\t             $scope.cache.put(key, value === undefined ? null : value);\n\t           };\n\t         }]);\n\t     </file>\n\t     <file name=\"style.css\">\n\t       p {\n\t         margin: 10px 0 3px;\n\t       }\n\t     </file>\n\t   </example>\n\t */\n\tfunction $CacheFactoryProvider() {\n\n\t  this.$get = function() {\n\t    var caches = {};\n\n\t    function cacheFactory(cacheId, options) {\n\t      if (cacheId in caches) {\n\t        throw minErr('$cacheFactory')('iid', \"CacheId '{0}' is already taken!\", cacheId);\n\t      }\n\n\t      var size = 0,\n\t          stats = extend({}, options, {id: cacheId}),\n\t          data = {},\n\t          capacity = (options && options.capacity) || Number.MAX_VALUE,\n\t          lruHash = {},\n\t          freshEnd = null,\n\t          staleEnd = null;\n\n\t      /**\n\t       * @ngdoc type\n\t       * @name $cacheFactory.Cache\n\t       *\n\t       * @description\n\t       * A cache object used to store and retrieve data, primarily used by\n\t       * {@link $http $http} and the {@link ng.directive:script script} directive to cache\n\t       * templates and other data.\n\t       *\n\t       * ```js\n\t       *  angular.module('superCache')\n\t       *    .factory('superCache', ['$cacheFactory', function($cacheFactory) {\n\t       *      return $cacheFactory('super-cache');\n\t       *    }]);\n\t       * ```\n\t       *\n\t       * Example test:\n\t       *\n\t       * ```js\n\t       *  it('should behave like a cache', inject(function(superCache) {\n\t       *    superCache.put('key', 'value');\n\t       *    superCache.put('another key', 'another value');\n\t       *\n\t       *    expect(superCache.info()).toEqual({\n\t       *      id: 'super-cache',\n\t       *      size: 2\n\t       *    });\n\t       *\n\t       *    superCache.remove('another key');\n\t       *    expect(superCache.get('another key')).toBeUndefined();\n\t       *\n\t       *    superCache.removeAll();\n\t       *    expect(superCache.info()).toEqual({\n\t       *      id: 'super-cache',\n\t       *      size: 0\n\t       *    });\n\t       *  }));\n\t       * ```\n\t       */\n\t      return caches[cacheId] = {\n\n\t        /**\n\t         * @ngdoc method\n\t         * @name $cacheFactory.Cache#put\n\t         * @kind function\n\t         *\n\t         * @description\n\t         * Inserts a named entry into the {@link $cacheFactory.Cache Cache} object to be\n\t         * retrieved later, and incrementing the size of the cache if the key was not already\n\t         * present in the cache. If behaving like an LRU cache, it will also remove stale\n\t         * entries from the set.\n\t         *\n\t         * It will not insert undefined values into the cache.\n\t         *\n\t         * @param {string} key the key under which the cached data is stored.\n\t         * @param {*} value the value to store alongside the key. If it is undefined, the key\n\t         *    will not be stored.\n\t         * @returns {*} the value stored.\n\t         */\n\t        put: function(key, value) {\n\t          if (capacity < Number.MAX_VALUE) {\n\t            var lruEntry = lruHash[key] || (lruHash[key] = {key: key});\n\n\t            refresh(lruEntry);\n\t          }\n\n\t          if (isUndefined(value)) return;\n\t          if (!(key in data)) size++;\n\t          data[key] = value;\n\n\t          if (size > capacity) {\n\t            this.remove(staleEnd.key);\n\t          }\n\n\t          return value;\n\t        },\n\n\t        /**\n\t         * @ngdoc method\n\t         * @name $cacheFactory.Cache#get\n\t         * @kind function\n\t         *\n\t         * @description\n\t         * Retrieves named data stored in the {@link $cacheFactory.Cache Cache} object.\n\t         *\n\t         * @param {string} key the key of the data to be retrieved\n\t         * @returns {*} the value stored.\n\t         */\n\t        get: function(key) {\n\t          if (capacity < Number.MAX_VALUE) {\n\t            var lruEntry = lruHash[key];\n\n\t            if (!lruEntry) return;\n\n\t            refresh(lruEntry);\n\t          }\n\n\t          return data[key];\n\t        },\n\n\n\t        /**\n\t         * @ngdoc method\n\t         * @name $cacheFactory.Cache#remove\n\t         * @kind function\n\t         *\n\t         * @description\n\t         * Removes an entry from the {@link $cacheFactory.Cache Cache} object.\n\t         *\n\t         * @param {string} key the key of the entry to be removed\n\t         */\n\t        remove: function(key) {\n\t          if (capacity < Number.MAX_VALUE) {\n\t            var lruEntry = lruHash[key];\n\n\t            if (!lruEntry) return;\n\n\t            if (lruEntry == freshEnd) freshEnd = lruEntry.p;\n\t            if (lruEntry == staleEnd) staleEnd = lruEntry.n;\n\t            link(lruEntry.n,lruEntry.p);\n\n\t            delete lruHash[key];\n\t          }\n\n\t          delete data[key];\n\t          size--;\n\t        },\n\n\n\t        /**\n\t         * @ngdoc method\n\t         * @name $cacheFactory.Cache#removeAll\n\t         * @kind function\n\t         *\n\t         * @description\n\t         * Clears the cache object of any entries.\n\t         */\n\t        removeAll: function() {\n\t          data = {};\n\t          size = 0;\n\t          lruHash = {};\n\t          freshEnd = staleEnd = null;\n\t        },\n\n\n\t        /**\n\t         * @ngdoc method\n\t         * @name $cacheFactory.Cache#destroy\n\t         * @kind function\n\t         *\n\t         * @description\n\t         * Destroys the {@link $cacheFactory.Cache Cache} object entirely,\n\t         * removing it from the {@link $cacheFactory $cacheFactory} set.\n\t         */\n\t        destroy: function() {\n\t          data = null;\n\t          stats = null;\n\t          lruHash = null;\n\t          delete caches[cacheId];\n\t        },\n\n\n\t        /**\n\t         * @ngdoc method\n\t         * @name $cacheFactory.Cache#info\n\t         * @kind function\n\t         *\n\t         * @description\n\t         * Retrieve information regarding a particular {@link $cacheFactory.Cache Cache}.\n\t         *\n\t         * @returns {object} an object with the following properties:\n\t         *   <ul>\n\t         *     <li>**id**: the id of the cache instance</li>\n\t         *     <li>**size**: the number of entries kept in the cache instance</li>\n\t         *     <li>**...**: any additional properties from the options object when creating the\n\t         *       cache.</li>\n\t         *   </ul>\n\t         */\n\t        info: function() {\n\t          return extend({}, stats, {size: size});\n\t        }\n\t      };\n\n\n\t      /**\n\t       * makes the `entry` the freshEnd of the LRU linked list\n\t       */\n\t      function refresh(entry) {\n\t        if (entry != freshEnd) {\n\t          if (!staleEnd) {\n\t            staleEnd = entry;\n\t          } else if (staleEnd == entry) {\n\t            staleEnd = entry.n;\n\t          }\n\n\t          link(entry.n, entry.p);\n\t          link(entry, freshEnd);\n\t          freshEnd = entry;\n\t          freshEnd.n = null;\n\t        }\n\t      }\n\n\n\t      /**\n\t       * bidirectionally links two entries of the LRU linked list\n\t       */\n\t      function link(nextEntry, prevEntry) {\n\t        if (nextEntry != prevEntry) {\n\t          if (nextEntry) nextEntry.p = prevEntry; //p stands for previous, 'prev' didn't minify\n\t          if (prevEntry) prevEntry.n = nextEntry; //n stands for next, 'next' didn't minify\n\t        }\n\t      }\n\t    }\n\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $cacheFactory#info\n\t   *\n\t   * @description\n\t   * Get information about all the caches that have been created\n\t   *\n\t   * @returns {Object} - key-value map of `cacheId` to the result of calling `cache#info`\n\t   */\n\t    cacheFactory.info = function() {\n\t      var info = {};\n\t      forEach(caches, function(cache, cacheId) {\n\t        info[cacheId] = cache.info();\n\t      });\n\t      return info;\n\t    };\n\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $cacheFactory#get\n\t   *\n\t   * @description\n\t   * Get access to a cache object by the `cacheId` used when it was created.\n\t   *\n\t   * @param {string} cacheId Name or id of a cache to access.\n\t   * @returns {object} Cache object identified by the cacheId or undefined if no such cache.\n\t   */\n\t    cacheFactory.get = function(cacheId) {\n\t      return caches[cacheId];\n\t    };\n\n\n\t    return cacheFactory;\n\t  };\n\t}\n\n\t/**\n\t * @ngdoc service\n\t * @name $templateCache\n\t *\n\t * @description\n\t * The first time a template is used, it is loaded in the template cache for quick retrieval. You\n\t * can load templates directly into the cache in a `script` tag, or by consuming the\n\t * `$templateCache` service directly.\n\t *\n\t * Adding via the `script` tag:\n\t *\n\t * ```html\n\t *   <script type=\"text/ng-template\" id=\"templateId.html\">\n\t *     <p>This is the content of the template</p>\n\t *   </script>\n\t * ```\n\t *\n\t * **Note:** the `script` tag containing the template does not need to be included in the `head` of\n\t * the document, but it must be a descendent of the {@link ng.$rootElement $rootElement} (IE,\n\t * element with ng-app attribute), otherwise the template will be ignored.\n\t *\n\t * Adding via the `$templateCache` service:\n\t *\n\t * ```js\n\t * var myApp = angular.module('myApp', []);\n\t * myApp.run(function($templateCache) {\n\t *   $templateCache.put('templateId.html', 'This is the content of the template');\n\t * });\n\t * ```\n\t *\n\t * To retrieve the template later, simply use it in your HTML:\n\t * ```html\n\t * <div ng-include=\" 'templateId.html' \"></div>\n\t * ```\n\t *\n\t * or get it via Javascript:\n\t * ```js\n\t * $templateCache.get('templateId.html')\n\t * ```\n\t *\n\t * See {@link ng.$cacheFactory $cacheFactory}.\n\t *\n\t */\n\tfunction $TemplateCacheProvider() {\n\t  this.$get = ['$cacheFactory', function($cacheFactory) {\n\t    return $cacheFactory('templates');\n\t  }];\n\t}\n\n\t/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\n\t *     Any commits to this file should be reviewed with security in mind.  *\n\t *   Changes to this file can potentially create security vulnerabilities. *\n\t *          An approval from 2 Core members with history of modifying      *\n\t *                         this file is required.                          *\n\t *                                                                         *\n\t *  Does the change somehow allow for arbitrary javascript to be executed? *\n\t *    Or allows for someone to change the prototype of built-in objects?   *\n\t *     Or gives undesired access to variables likes document or window?    *\n\t * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */\n\n\t/* ! VARIABLE/FUNCTION NAMING CONVENTIONS THAT APPLY TO THIS FILE!\n\t *\n\t * DOM-related variables:\n\t *\n\t * - \"node\" - DOM Node\n\t * - \"element\" - DOM Element or Node\n\t * - \"$node\" or \"$element\" - jqLite-wrapped node or element\n\t *\n\t *\n\t * Compiler related stuff:\n\t *\n\t * - \"linkFn\" - linking fn of a single directive\n\t * - \"nodeLinkFn\" - function that aggregates all linking fns for a particular node\n\t * - \"childLinkFn\" -  function that aggregates all linking fns for child nodes of a particular node\n\t * - \"compositeLinkFn\" - function that aggregates all linking fns for a compilation root (nodeList)\n\t */\n\n\n\t/**\n\t * @ngdoc service\n\t * @name $compile\n\t * @kind function\n\t *\n\t * @description\n\t * Compiles an HTML string or DOM into a template and produces a template function, which\n\t * can then be used to link {@link ng.$rootScope.Scope `scope`} and the template together.\n\t *\n\t * The compilation is a process of walking the DOM tree and matching DOM elements to\n\t * {@link ng.$compileProvider#directive directives}.\n\t *\n\t * <div class=\"alert alert-warning\">\n\t * **Note:** This document is an in-depth reference of all directive options.\n\t * For a gentle introduction to directives with examples of common use cases,\n\t * see the {@link guide/directive directive guide}.\n\t * </div>\n\t *\n\t * ## Comprehensive Directive API\n\t *\n\t * There are many different options for a directive.\n\t *\n\t * The difference resides in the return value of the factory function.\n\t * You can either return a \"Directive Definition Object\" (see below) that defines the directive properties,\n\t * or just the `postLink` function (all other properties will have the default values).\n\t *\n\t * <div class=\"alert alert-success\">\n\t * **Best Practice:** It's recommended to use the \"directive definition object\" form.\n\t * </div>\n\t *\n\t * Here's an example directive declared with a Directive Definition Object:\n\t *\n\t * ```js\n\t *   var myModule = angular.module(...);\n\t *\n\t *   myModule.directive('directiveName', function factory(injectables) {\n\t *     var directiveDefinitionObject = {\n\t *       priority: 0,\n\t *       template: '<div></div>', // or // function(tElement, tAttrs) { ... },\n\t *       // or\n\t *       // templateUrl: 'directive.html', // or // function(tElement, tAttrs) { ... },\n\t *       transclude: false,\n\t *       restrict: 'A',\n\t *       templateNamespace: 'html',\n\t *       scope: false,\n\t *       controller: function($scope, $element, $attrs, $transclude, otherInjectables) { ... },\n\t *       controllerAs: 'stringAlias',\n\t *       require: 'siblingDirectiveName', // or // ['^parentDirectiveName', '?optionalDirectiveName', '?^optionalParent'],\n\t *       compile: function compile(tElement, tAttrs, transclude) {\n\t *         return {\n\t *           pre: function preLink(scope, iElement, iAttrs, controller) { ... },\n\t *           post: function postLink(scope, iElement, iAttrs, controller) { ... }\n\t *         }\n\t *         // or\n\t *         // return function postLink( ... ) { ... }\n\t *       },\n\t *       // or\n\t *       // link: {\n\t *       //  pre: function preLink(scope, iElement, iAttrs, controller) { ... },\n\t *       //  post: function postLink(scope, iElement, iAttrs, controller) { ... }\n\t *       // }\n\t *       // or\n\t *       // link: function postLink( ... ) { ... }\n\t *     };\n\t *     return directiveDefinitionObject;\n\t *   });\n\t * ```\n\t *\n\t * <div class=\"alert alert-warning\">\n\t * **Note:** Any unspecified options will use the default value. You can see the default values below.\n\t * </div>\n\t *\n\t * Therefore the above can be simplified as:\n\t *\n\t * ```js\n\t *   var myModule = angular.module(...);\n\t *\n\t *   myModule.directive('directiveName', function factory(injectables) {\n\t *     var directiveDefinitionObject = {\n\t *       link: function postLink(scope, iElement, iAttrs) { ... }\n\t *     };\n\t *     return directiveDefinitionObject;\n\t *     // or\n\t *     // return function postLink(scope, iElement, iAttrs) { ... }\n\t *   });\n\t * ```\n\t *\n\t *\n\t *\n\t * ### Directive Definition Object\n\t *\n\t * The directive definition object provides instructions to the {@link ng.$compile\n\t * compiler}. The attributes are:\n\t *\n\t * #### `multiElement`\n\t * When this property is set to true, the HTML compiler will collect DOM nodes between\n\t * nodes with the attributes `directive-name-start` and `directive-name-end`, and group them\n\t * together as the directive elements. It is recommended that this feature be used on directives\n\t * which are not strictly behavioural (such as {@link ngClick}), and which\n\t * do not manipulate or replace child nodes (such as {@link ngInclude}).\n\t *\n\t * #### `priority`\n\t * When there are multiple directives defined on a single DOM element, sometimes it\n\t * is necessary to specify the order in which the directives are applied. The `priority` is used\n\t * to sort the directives before their `compile` functions get called. Priority is defined as a\n\t * number. Directives with greater numerical `priority` are compiled first. Pre-link functions\n\t * are also run in priority order, but post-link functions are run in reverse order. The order\n\t * of directives with the same priority is undefined. The default priority is `0`.\n\t *\n\t * #### `terminal`\n\t * If set to true then the current `priority` will be the last set of directives\n\t * which will execute (any directives at the current priority will still execute\n\t * as the order of execution on same `priority` is undefined). Note that expressions\n\t * and other directives used in the directive's template will also be excluded from execution.\n\t *\n\t * #### `scope`\n\t * **If set to `true`,** then a new scope will be created for this directive. If multiple directives on the\n\t * same element request a new scope, only one new scope is created. The new scope rule does not\n\t * apply for the root of the template since the root of the template always gets a new scope.\n\t *\n\t * **If set to `{}` (object hash),** then a new \"isolate\" scope is created. The 'isolate' scope differs from\n\t * normal scope in that it does not prototypically inherit from the parent scope. This is useful\n\t * when creating reusable components, which should not accidentally read or modify data in the\n\t * parent scope.\n\t *\n\t * The 'isolate' scope takes an object hash which defines a set of local scope properties\n\t * derived from the parent scope. These local properties are useful for aliasing values for\n\t * templates. Locals definition is a hash of local scope property to its source:\n\t *\n\t * * `@` or `@attr` - bind a local scope property to the value of DOM attribute. The result is\n\t *   always a string since DOM attributes are strings. If no `attr` name is specified  then the\n\t *   attribute name is assumed to be the same as the local name.\n\t *   Given `<widget my-attr=\"hello {{name}}\">` and widget definition\n\t *   of `scope: { localName:'@myAttr' }`, then widget scope property `localName` will reflect\n\t *   the interpolated value of `hello {{name}}`. As the `name` attribute changes so will the\n\t *   `localName` property on the widget scope. The `name` is read from the parent scope (not\n\t *   component scope).\n\t *\n\t * * `=` or `=attr` - set up bi-directional binding between a local scope property and the\n\t *   parent scope property of name defined via the value of the `attr` attribute. If no `attr`\n\t *   name is specified then the attribute name is assumed to be the same as the local name.\n\t *   Given `<widget my-attr=\"parentModel\">` and widget definition of\n\t *   `scope: { localModel:'=myAttr' }`, then widget scope property `localModel` will reflect the\n\t *   value of `parentModel` on the parent scope. Any changes to `parentModel` will be reflected\n\t *   in `localModel` and any changes in `localModel` will reflect in `parentModel`. If the parent\n\t *   scope property doesn't exist, it will throw a NON_ASSIGNABLE_MODEL_EXPRESSION exception. You\n\t *   can avoid this behavior using `=?` or `=?attr` in order to flag the property as optional. If\n\t *   you want to shallow watch for changes (i.e. $watchCollection instead of $watch) you can use\n\t *   `=*` or `=*attr` (`=*?` or `=*?attr` if the property is optional).\n\t *\n\t * * `&` or `&attr` - provides a way to execute an expression in the context of the parent scope.\n\t *   If no `attr` name is specified then the attribute name is assumed to be the same as the\n\t *   local name. Given `<widget my-attr=\"count = count + value\">` and widget definition of\n\t *   `scope: { localFn:'&myAttr' }`, then isolate scope property `localFn` will point to\n\t *   a function wrapper for the `count = count + value` expression. Often it's desirable to\n\t *   pass data from the isolated scope via an expression to the parent scope, this can be\n\t *   done by passing a map of local variable names and values into the expression wrapper fn.\n\t *   For example, if the expression is `increment(amount)` then we can specify the amount value\n\t *   by calling the `localFn` as `localFn({amount: 22})`.\n\t *\n\t *\n\t * #### `bindToController`\n\t * When an isolate scope is used for a component (see above), and `controllerAs` is used, `bindToController: true` will\n\t * allow a component to have its properties bound to the controller, rather than to scope. When the controller\n\t * is instantiated, the initial values of the isolate scope bindings are already available.\n\t *\n\t * #### `controller`\n\t * Controller constructor function. The controller is instantiated before the\n\t * pre-linking phase and it is shared with other directives (see\n\t * `require` attribute). This allows the directives to communicate with each other and augment\n\t * each other's behavior. The controller is injectable (and supports bracket notation) with the following locals:\n\t *\n\t * * `$scope` - Current scope associated with the element\n\t * * `$element` - Current element\n\t * * `$attrs` - Current attributes object for the element\n\t * * `$transclude` - A transclude linking function pre-bound to the correct transclusion scope:\n\t *   `function([scope], cloneLinkingFn, futureParentElement)`.\n\t *    * `scope`: optional argument to override the scope.\n\t *    * `cloneLinkingFn`: optional argument to create clones of the original transcluded content.\n\t *    * `futureParentElement`:\n\t *        * defines the parent to which the `cloneLinkingFn` will add the cloned elements.\n\t *        * default: `$element.parent()` resp. `$element` for `transclude:'element'` resp. `transclude:true`.\n\t *        * only needed for transcludes that are allowed to contain non html elements (e.g. SVG elements)\n\t *          and when the `cloneLinkinFn` is passed,\n\t *          as those elements need to created and cloned in a special way when they are defined outside their\n\t *          usual containers (e.g. like `<svg>`).\n\t *        * See also the `directive.templateNamespace` property.\n\t *\n\t *\n\t * #### `require`\n\t * Require another directive and inject its controller as the fourth argument to the linking function. The\n\t * `require` takes a string name (or array of strings) of the directive(s) to pass in. If an array is used, the\n\t * injected argument will be an array in corresponding order. If no such directive can be\n\t * found, or if the directive does not have a controller, then an error is raised (unless no link function\n\t * is specified, in which case error checking is skipped). The name can be prefixed with:\n\t *\n\t * * (no prefix) - Locate the required controller on the current element. Throw an error if not found.\n\t * * `?` - Attempt to locate the required controller or pass `null` to the `link` fn if not found.\n\t * * `^` - Locate the required controller by searching the element and its parents. Throw an error if not found.\n\t * * `^^` - Locate the required controller by searching the element's parents. Throw an error if not found.\n\t * * `?^` - Attempt to locate the required controller by searching the element and its parents or pass\n\t *   `null` to the `link` fn if not found.\n\t * * `?^^` - Attempt to locate the required controller by searching the element's parents, or pass\n\t *   `null` to the `link` fn if not found.\n\t *\n\t *\n\t * #### `controllerAs`\n\t * Controller alias at the directive scope. An alias for the controller so it\n\t * can be referenced at the directive template. The directive needs to define a scope for this\n\t * configuration to be used. Useful in the case when directive is used as component.\n\t *\n\t *\n\t * #### `restrict`\n\t * String of subset of `EACM` which restricts the directive to a specific directive\n\t * declaration style. If omitted, the defaults (elements and attributes) are used.\n\t *\n\t * * `E` - Element name (default): `<my-directive></my-directive>`\n\t * * `A` - Attribute (default): `<div my-directive=\"exp\"></div>`\n\t * * `C` - Class: `<div class=\"my-directive: exp;\"></div>`\n\t * * `M` - Comment: `<!-- directive: my-directive exp -->`\n\t *\n\t *\n\t * #### `templateNamespace`\n\t * String representing the document type used by the markup in the template.\n\t * AngularJS needs this information as those elements need to be created and cloned\n\t * in a special way when they are defined outside their usual containers like `<svg>` and `<math>`.\n\t *\n\t * * `html` - All root nodes in the template are HTML. Root nodes may also be\n\t *   top-level elements such as `<svg>` or `<math>`.\n\t * * `svg` - The root nodes in the template are SVG elements (excluding `<math>`).\n\t * * `math` - The root nodes in the template are MathML elements (excluding `<svg>`).\n\t *\n\t * If no `templateNamespace` is specified, then the namespace is considered to be `html`.\n\t *\n\t * #### `template`\n\t * HTML markup that may:\n\t * * Replace the contents of the directive's element (default).\n\t * * Replace the directive's element itself (if `replace` is true - DEPRECATED).\n\t * * Wrap the contents of the directive's element (if `transclude` is true).\n\t *\n\t * Value may be:\n\t *\n\t * * A string. For example `<div red-on-hover>{{delete_str}}</div>`.\n\t * * A function which takes two arguments `tElement` and `tAttrs` (described in the `compile`\n\t *   function api below) and returns a string value.\n\t *\n\t *\n\t * #### `templateUrl`\n\t * This is similar to `template` but the template is loaded from the specified URL, asynchronously.\n\t *\n\t * Because template loading is asynchronous the compiler will suspend compilation of directives on that element\n\t * for later when the template has been resolved.  In the meantime it will continue to compile and link\n\t * sibling and parent elements as though this element had not contained any directives.\n\t *\n\t * The compiler does not suspend the entire compilation to wait for templates to be loaded because this\n\t * would result in the whole app \"stalling\" until all templates are loaded asynchronously - even in the\n\t * case when only one deeply nested directive has `templateUrl`.\n\t *\n\t * Template loading is asynchronous even if the template has been preloaded into the {@link $templateCache}\n\t *\n\t * You can specify `templateUrl` as a string representing the URL or as a function which takes two\n\t * arguments `tElement` and `tAttrs` (described in the `compile` function api below) and returns\n\t * a string value representing the url.  In either case, the template URL is passed through {@link\n\t * $sce#getTrustedResourceUrl $sce.getTrustedResourceUrl}.\n\t *\n\t *\n\t * #### `replace` ([*DEPRECATED*!], will be removed in next major release - i.e. v2.0)\n\t * specify what the template should replace. Defaults to `false`.\n\t *\n\t * * `true` - the template will replace the directive's element.\n\t * * `false` - the template will replace the contents of the directive's element.\n\t *\n\t * The replacement process migrates all of the attributes / classes from the old element to the new\n\t * one. See the {@link guide/directive#template-expanding-directive\n\t * Directives Guide} for an example.\n\t *\n\t * There are very few scenarios where element replacement is required for the application function,\n\t * the main one being reusable custom components that are used within SVG contexts\n\t * (because SVG doesn't work with custom elements in the DOM tree).\n\t *\n\t * #### `transclude`\n\t * Extract the contents of the element where the directive appears and make it available to the directive.\n\t * The contents are compiled and provided to the directive as a **transclusion function**. See the\n\t * {@link $compile#transclusion Transclusion} section below.\n\t *\n\t * There are two kinds of transclusion depending upon whether you want to transclude just the contents of the\n\t * directive's element or the entire element:\n\t *\n\t * * `true` - transclude the content (i.e. the child nodes) of the directive's element.\n\t * * `'element'` - transclude the whole of the directive's element including any directives on this\n\t *   element that defined at a lower priority than this directive. When used, the `template`\n\t *   property is ignored.\n\t *\n\t *\n\t * #### `compile`\n\t *\n\t * ```js\n\t *   function compile(tElement, tAttrs, transclude) { ... }\n\t * ```\n\t *\n\t * The compile function deals with transforming the template DOM. Since most directives do not do\n\t * template transformation, it is not used often. The compile function takes the following arguments:\n\t *\n\t *   * `tElement` - template element - The element where the directive has been declared. It is\n\t *     safe to do template transformation on the element and child elements only.\n\t *\n\t *   * `tAttrs` - template attributes - Normalized list of attributes declared on this element shared\n\t *     between all directive compile functions.\n\t *\n\t *   * `transclude` -  [*DEPRECATED*!] A transclude linking function: `function(scope, cloneLinkingFn)`\n\t *\n\t * <div class=\"alert alert-warning\">\n\t * **Note:** The template instance and the link instance may be different objects if the template has\n\t * been cloned. For this reason it is **not** safe to do anything other than DOM transformations that\n\t * apply to all cloned DOM nodes within the compile function. Specifically, DOM listener registration\n\t * should be done in a linking function rather than in a compile function.\n\t * </div>\n\n\t * <div class=\"alert alert-warning\">\n\t * **Note:** The compile function cannot handle directives that recursively use themselves in their\n\t * own templates or compile functions. Compiling these directives results in an infinite loop and a\n\t * stack overflow errors.\n\t *\n\t * This can be avoided by manually using $compile in the postLink function to imperatively compile\n\t * a directive's template instead of relying on automatic template compilation via `template` or\n\t * `templateUrl` declaration or manual compilation inside the compile function.\n\t * </div>\n\t *\n\t * <div class=\"alert alert-error\">\n\t * **Note:** The `transclude` function that is passed to the compile function is deprecated, as it\n\t *   e.g. does not know about the right outer scope. Please use the transclude function that is passed\n\t *   to the link function instead.\n\t * </div>\n\n\t * A compile function can have a return value which can be either a function or an object.\n\t *\n\t * * returning a (post-link) function - is equivalent to registering the linking function via the\n\t *   `link` property of the config object when the compile function is empty.\n\t *\n\t * * returning an object with function(s) registered via `pre` and `post` properties - allows you to\n\t *   control when a linking function should be called during the linking phase. See info about\n\t *   pre-linking and post-linking functions below.\n\t *\n\t *\n\t * #### `link`\n\t * This property is used only if the `compile` property is not defined.\n\t *\n\t * ```js\n\t *   function link(scope, iElement, iAttrs, controller, transcludeFn) { ... }\n\t * ```\n\t *\n\t * The link function is responsible for registering DOM listeners as well as updating the DOM. It is\n\t * executed after the template has been cloned. This is where most of the directive logic will be\n\t * put.\n\t *\n\t *   * `scope` - {@link ng.$rootScope.Scope Scope} - The scope to be used by the\n\t *     directive for registering {@link ng.$rootScope.Scope#$watch watches}.\n\t *\n\t *   * `iElement` - instance element - The element where the directive is to be used. It is safe to\n\t *     manipulate the children of the element only in `postLink` function since the children have\n\t *     already been linked.\n\t *\n\t *   * `iAttrs` - instance attributes - Normalized list of attributes declared on this element shared\n\t *     between all directive linking functions.\n\t *\n\t *   * `controller` - a controller instance - A controller instance if at least one directive on the\n\t *     element defines a controller. The controller is shared among all the directives, which allows\n\t *     the directives to use the controllers as a communication channel.\n\t *\n\t *   * `transcludeFn` - A transclude linking function pre-bound to the correct transclusion scope.\n\t *     This is the same as the `$transclude`\n\t *     parameter of directive controllers, see there for details.\n\t *     `function([scope], cloneLinkingFn, futureParentElement)`.\n\t *\n\t * #### Pre-linking function\n\t *\n\t * Executed before the child elements are linked. Not safe to do DOM transformation since the\n\t * compiler linking function will fail to locate the correct elements for linking.\n\t *\n\t * #### Post-linking function\n\t *\n\t * Executed after the child elements are linked.\n\t *\n\t * Note that child elements that contain `templateUrl` directives will not have been compiled\n\t * and linked since they are waiting for their template to load asynchronously and their own\n\t * compilation and linking has been suspended until that occurs.\n\t *\n\t * It is safe to do DOM transformation in the post-linking function on elements that are not waiting\n\t * for their async templates to be resolved.\n\t *\n\t *\n\t * ### Transclusion\n\t *\n\t * Transclusion is the process of extracting a collection of DOM element from one part of the DOM and\n\t * copying them to another part of the DOM, while maintaining their connection to the original AngularJS\n\t * scope from where they were taken.\n\t *\n\t * Transclusion is used (often with {@link ngTransclude}) to insert the\n\t * original contents of a directive's element into a specified place in the template of the directive.\n\t * The benefit of transclusion, over simply moving the DOM elements manually, is that the transcluded\n\t * content has access to the properties on the scope from which it was taken, even if the directive\n\t * has isolated scope.\n\t * See the {@link guide/directive#creating-a-directive-that-wraps-other-elements Directives Guide}.\n\t *\n\t * This makes it possible for the widget to have private state for its template, while the transcluded\n\t * content has access to its originating scope.\n\t *\n\t * <div class=\"alert alert-warning\">\n\t * **Note:** When testing an element transclude directive you must not place the directive at the root of the\n\t * DOM fragment that is being compiled. See {@link guide/unit-testing#testing-transclusion-directives\n\t * Testing Transclusion Directives}.\n\t * </div>\n\t *\n\t * #### Transclusion Functions\n\t *\n\t * When a directive requests transclusion, the compiler extracts its contents and provides a **transclusion\n\t * function** to the directive's `link` function and `controller`. This transclusion function is a special\n\t * **linking function** that will return the compiled contents linked to a new transclusion scope.\n\t *\n\t * <div class=\"alert alert-info\">\n\t * If you are just using {@link ngTransclude} then you don't need to worry about this function, since\n\t * ngTransclude will deal with it for us.\n\t * </div>\n\t *\n\t * If you want to manually control the insertion and removal of the transcluded content in your directive\n\t * then you must use this transclude function. When you call a transclude function it returns a a jqLite/JQuery\n\t * object that contains the compiled DOM, which is linked to the correct transclusion scope.\n\t *\n\t * When you call a transclusion function you can pass in a **clone attach function**. This function accepts\n\t * two parameters, `function(clone, scope) { ... }`, where the `clone` is a fresh compiled copy of your transcluded\n\t * content and the `scope` is the newly created transclusion scope, to which the clone is bound.\n\t *\n\t * <div class=\"alert alert-info\">\n\t * **Best Practice**: Always provide a `cloneFn` (clone attach function) when you call a translude function\n\t * since you then get a fresh clone of the original DOM and also have access to the new transclusion scope.\n\t * </div>\n\t *\n\t * It is normal practice to attach your transcluded content (`clone`) to the DOM inside your **clone\n\t * attach function**:\n\t *\n\t * ```js\n\t * var transcludedContent, transclusionScope;\n\t *\n\t * $transclude(function(clone, scope) {\n\t *   element.append(clone);\n\t *   transcludedContent = clone;\n\t *   transclusionScope = scope;\n\t * });\n\t * ```\n\t *\n\t * Later, if you want to remove the transcluded content from your DOM then you should also destroy the\n\t * associated transclusion scope:\n\t *\n\t * ```js\n\t * transcludedContent.remove();\n\t * transclusionScope.$destroy();\n\t * ```\n\t *\n\t * <div class=\"alert alert-info\">\n\t * **Best Practice**: if you intend to add and remove transcluded content manually in your directive\n\t * (by calling the transclude function to get the DOM and and calling `element.remove()` to remove it),\n\t * then you are also responsible for calling `$destroy` on the transclusion scope.\n\t * </div>\n\t *\n\t * The built-in DOM manipulation directives, such as {@link ngIf}, {@link ngSwitch} and {@link ngRepeat}\n\t * automatically destroy their transluded clones as necessary so you do not need to worry about this if\n\t * you are simply using {@link ngTransclude} to inject the transclusion into your directive.\n\t *\n\t *\n\t * #### Transclusion Scopes\n\t *\n\t * When you call a transclude function it returns a DOM fragment that is pre-bound to a **transclusion\n\t * scope**. This scope is special, in that it is a child of the directive's scope (and so gets destroyed\n\t * when the directive's scope gets destroyed) but it inherits the properties of the scope from which it\n\t * was taken.\n\t *\n\t * For example consider a directive that uses transclusion and isolated scope. The DOM hierarchy might look\n\t * like this:\n\t *\n\t * ```html\n\t * <div ng-app>\n\t *   <div isolate>\n\t *     <div transclusion>\n\t *     </div>\n\t *   </div>\n\t * </div>\n\t * ```\n\t *\n\t * The `$parent` scope hierarchy will look like this:\n\t *\n\t * ```\n\t * - $rootScope\n\t *   - isolate\n\t *     - transclusion\n\t * ```\n\t *\n\t * but the scopes will inherit prototypically from different scopes to their `$parent`.\n\t *\n\t * ```\n\t * - $rootScope\n\t *   - transclusion\n\t * - isolate\n\t * ```\n\t *\n\t *\n\t * ### Attributes\n\t *\n\t * The {@link ng.$compile.directive.Attributes Attributes} object - passed as a parameter in the\n\t * `link()` or `compile()` functions. It has a variety of uses.\n\t *\n\t * accessing *Normalized attribute names:*\n\t * Directives like 'ngBind' can be expressed in many ways: 'ng:bind', `data-ng-bind`, or 'x-ng-bind'.\n\t * the attributes object allows for normalized access to\n\t *   the attributes.\n\t *\n\t * * *Directive inter-communication:* All directives share the same instance of the attributes\n\t *   object which allows the directives to use the attributes object as inter directive\n\t *   communication.\n\t *\n\t * * *Supports interpolation:* Interpolation attributes are assigned to the attribute object\n\t *   allowing other directives to read the interpolated value.\n\t *\n\t * * *Observing interpolated attributes:* Use `$observe` to observe the value changes of attributes\n\t *   that contain interpolation (e.g. `src=\"{{bar}}\"`). Not only is this very efficient but it's also\n\t *   the only way to easily get the actual value because during the linking phase the interpolation\n\t *   hasn't been evaluated yet and so the value is at this time set to `undefined`.\n\t *\n\t * ```js\n\t * function linkingFn(scope, elm, attrs, ctrl) {\n\t *   // get the attribute value\n\t *   console.log(attrs.ngModel);\n\t *\n\t *   // change the attribute\n\t *   attrs.$set('ngModel', 'new value');\n\t *\n\t *   // observe changes to interpolated attribute\n\t *   attrs.$observe('ngModel', function(value) {\n\t *     console.log('ngModel has changed value to ' + value);\n\t *   });\n\t * }\n\t * ```\n\t *\n\t * ## Example\n\t *\n\t * <div class=\"alert alert-warning\">\n\t * **Note**: Typically directives are registered with `module.directive`. The example below is\n\t * to illustrate how `$compile` works.\n\t * </div>\n\t *\n\t <example module=\"compileExample\">\n\t   <file name=\"index.html\">\n\t    <script>\n\t      angular.module('compileExample', [], function($compileProvider) {\n\t        // configure new 'compile' directive by passing a directive\n\t        // factory function. The factory function injects the '$compile'\n\t        $compileProvider.directive('compile', function($compile) {\n\t          // directive factory creates a link function\n\t          return function(scope, element, attrs) {\n\t            scope.$watch(\n\t              function(scope) {\n\t                 // watch the 'compile' expression for changes\n\t                return scope.$eval(attrs.compile);\n\t              },\n\t              function(value) {\n\t                // when the 'compile' expression changes\n\t                // assign it into the current DOM\n\t                element.html(value);\n\n\t                // compile the new DOM and link it to the current\n\t                // scope.\n\t                // NOTE: we only compile .childNodes so that\n\t                // we don't get into infinite loop compiling ourselves\n\t                $compile(element.contents())(scope);\n\t              }\n\t            );\n\t          };\n\t        });\n\t      })\n\t      .controller('GreeterController', ['$scope', function($scope) {\n\t        $scope.name = 'Angular';\n\t        $scope.html = 'Hello {{name}}';\n\t      }]);\n\t    </script>\n\t    <div ng-controller=\"GreeterController\">\n\t      <input ng-model=\"name\"> <br>\n\t      <textarea ng-model=\"html\"></textarea> <br>\n\t      <div compile=\"html\"></div>\n\t    </div>\n\t   </file>\n\t   <file name=\"protractor.js\" type=\"protractor\">\n\t     it('should auto compile', function() {\n\t       var textarea = $('textarea');\n\t       var output = $('div[compile]');\n\t       // The initial state reads 'Hello Angular'.\n\t       expect(output.getText()).toBe('Hello Angular');\n\t       textarea.clear();\n\t       textarea.sendKeys('{{name}}!');\n\t       expect(output.getText()).toBe('Angular!');\n\t     });\n\t   </file>\n\t </example>\n\n\t *\n\t *\n\t * @param {string|DOMElement} element Element or HTML string to compile into a template function.\n\t * @param {function(angular.Scope, cloneAttachFn=)} transclude function available to directives - DEPRECATED.\n\t *\n\t * <div class=\"alert alert-error\">\n\t * **Note:** Passing a `transclude` function to the $compile function is deprecated, as it\n\t *   e.g. will not use the right outer scope. Please pass the transclude function as a\n\t *   `parentBoundTranscludeFn` to the link function instead.\n\t * </div>\n\t *\n\t * @param {number} maxPriority only apply directives lower than given priority (Only effects the\n\t *                 root element(s), not their children)\n\t * @returns {function(scope, cloneAttachFn=, options=)} a link function which is used to bind template\n\t * (a DOM element/tree) to a scope. Where:\n\t *\n\t *  * `scope` - A {@link ng.$rootScope.Scope Scope} to bind to.\n\t *  * `cloneAttachFn` - If `cloneAttachFn` is provided, then the link function will clone the\n\t *  `template` and call the `cloneAttachFn` function allowing the caller to attach the\n\t *  cloned elements to the DOM document at the appropriate place. The `cloneAttachFn` is\n\t *  called as: <br> `cloneAttachFn(clonedElement, scope)` where:\n\t *\n\t *      * `clonedElement` - is a clone of the original `element` passed into the compiler.\n\t *      * `scope` - is the current scope with which the linking function is working with.\n\t *\n\t *  * `options` - An optional object hash with linking options. If `options` is provided, then the following\n\t *  keys may be used to control linking behavior:\n\t *\n\t *      * `parentBoundTranscludeFn` - the transclude function made available to\n\t *        directives; if given, it will be passed through to the link functions of\n\t *        directives found in `element` during compilation.\n\t *      * `transcludeControllers` - an object hash with keys that map controller names\n\t *        to controller instances; if given, it will make the controllers\n\t *        available to directives.\n\t *      * `futureParentElement` - defines the parent to which the `cloneAttachFn` will add\n\t *        the cloned elements; only needed for transcludes that are allowed to contain non html\n\t *        elements (e.g. SVG elements). See also the directive.controller property.\n\t *\n\t * Calling the linking function returns the element of the template. It is either the original\n\t * element passed in, or the clone of the element if the `cloneAttachFn` is provided.\n\t *\n\t * After linking the view is not updated until after a call to $digest which typically is done by\n\t * Angular automatically.\n\t *\n\t * If you need access to the bound view, there are two ways to do it:\n\t *\n\t * - If you are not asking the linking function to clone the template, create the DOM element(s)\n\t *   before you send them to the compiler and keep this reference around.\n\t *   ```js\n\t *     var element = $compile('<p>{{total}}</p>')(scope);\n\t *   ```\n\t *\n\t * - if on the other hand, you need the element to be cloned, the view reference from the original\n\t *   example would not point to the clone, but rather to the original template that was cloned. In\n\t *   this case, you can access the clone via the cloneAttachFn:\n\t *   ```js\n\t *     var templateElement = angular.element('<p>{{total}}</p>'),\n\t *         scope = ....;\n\t *\n\t *     var clonedElement = $compile(templateElement)(scope, function(clonedElement, scope) {\n\t *       //attach the clone to DOM document at the right place\n\t *     });\n\t *\n\t *     //now we have reference to the cloned DOM via `clonedElement`\n\t *   ```\n\t *\n\t *\n\t * For information on how the compiler works, see the\n\t * {@link guide/compiler Angular HTML Compiler} section of the Developer Guide.\n\t */\n\n\tvar $compileMinErr = minErr('$compile');\n\n\t/**\n\t * @ngdoc provider\n\t * @name $compileProvider\n\t *\n\t * @description\n\t */\n\t$CompileProvider.$inject = ['$provide', '$$sanitizeUriProvider'];\n\tfunction $CompileProvider($provide, $$sanitizeUriProvider) {\n\t  var hasDirectives = {},\n\t      Suffix = 'Directive',\n\t      COMMENT_DIRECTIVE_REGEXP = /^\\s*directive\\:\\s*([\\w\\-]+)\\s+(.*)$/,\n\t      CLASS_DIRECTIVE_REGEXP = /(([\\w\\-]+)(?:\\:([^;]+))?;?)/,\n\t      ALL_OR_NOTHING_ATTRS = makeMap('ngSrc,ngSrcset,src,srcset'),\n\t      REQUIRE_PREFIX_REGEXP = /^(?:(\\^\\^?)?(\\?)?(\\^\\^?)?)?/;\n\n\t  // Ref: http://developers.whatwg.org/webappapis.html#event-handler-idl-attributes\n\t  // The assumption is that future DOM event attribute names will begin with\n\t  // 'on' and be composed of only English letters.\n\t  var EVENT_HANDLER_ATTR_REGEXP = /^(on[a-z]+|formaction)$/;\n\n\t  function parseIsolateBindings(scope, directiveName) {\n\t    var LOCAL_REGEXP = /^\\s*([@&]|=(\\*?))(\\??)\\s*(\\w*)\\s*$/;\n\n\t    var bindings = {};\n\n\t    forEach(scope, function(definition, scopeName) {\n\t      var match = definition.match(LOCAL_REGEXP);\n\n\t      if (!match) {\n\t        throw $compileMinErr('iscp',\n\t            \"Invalid isolate scope definition for directive '{0}'.\" +\n\t            \" Definition: {... {1}: '{2}' ...}\",\n\t            directiveName, scopeName, definition);\n\t      }\n\n\t      bindings[scopeName] = {\n\t        mode: match[1][0],\n\t        collection: match[2] === '*',\n\t        optional: match[3] === '?',\n\t        attrName: match[4] || scopeName\n\t      };\n\t    });\n\n\t    return bindings;\n\t  }\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $compileProvider#directive\n\t   * @kind function\n\t   *\n\t   * @description\n\t   * Register a new directive with the compiler.\n\t   *\n\t   * @param {string|Object} name Name of the directive in camel-case (i.e. <code>ngBind</code> which\n\t   *    will match as <code>ng-bind</code>), or an object map of directives where the keys are the\n\t   *    names and the values are the factories.\n\t   * @param {Function|Array} directiveFactory An injectable directive factory function. See\n\t   *    {@link guide/directive} for more info.\n\t   * @returns {ng.$compileProvider} Self for chaining.\n\t   */\n\t   this.directive = function registerDirective(name, directiveFactory) {\n\t    assertNotHasOwnProperty(name, 'directive');\n\t    if (isString(name)) {\n\t      assertArg(directiveFactory, 'directiveFactory');\n\t      if (!hasDirectives.hasOwnProperty(name)) {\n\t        hasDirectives[name] = [];\n\t        $provide.factory(name + Suffix, ['$injector', '$exceptionHandler',\n\t          function($injector, $exceptionHandler) {\n\t            var directives = [];\n\t            forEach(hasDirectives[name], function(directiveFactory, index) {\n\t              try {\n\t                var directive = $injector.invoke(directiveFactory);\n\t                if (isFunction(directive)) {\n\t                  directive = { compile: valueFn(directive) };\n\t                } else if (!directive.compile && directive.link) {\n\t                  directive.compile = valueFn(directive.link);\n\t                }\n\t                directive.priority = directive.priority || 0;\n\t                directive.index = index;\n\t                directive.name = directive.name || name;\n\t                directive.require = directive.require || (directive.controller && directive.name);\n\t                directive.restrict = directive.restrict || 'EA';\n\t                if (isObject(directive.scope)) {\n\t                  directive.$$isolateBindings = parseIsolateBindings(directive.scope, directive.name);\n\t                }\n\t                directives.push(directive);\n\t              } catch (e) {\n\t                $exceptionHandler(e);\n\t              }\n\t            });\n\t            return directives;\n\t          }]);\n\t      }\n\t      hasDirectives[name].push(directiveFactory);\n\t    } else {\n\t      forEach(name, reverseParams(registerDirective));\n\t    }\n\t    return this;\n\t  };\n\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $compileProvider#aHrefSanitizationWhitelist\n\t   * @kind function\n\t   *\n\t   * @description\n\t   * Retrieves or overrides the default regular expression that is used for whitelisting of safe\n\t   * urls during a[href] sanitization.\n\t   *\n\t   * The sanitization is a security measure aimed at preventing XSS attacks via html links.\n\t   *\n\t   * Any url about to be assigned to a[href] via data-binding is first normalized and turned into\n\t   * an absolute url. Afterwards, the url is matched against the `aHrefSanitizationWhitelist`\n\t   * regular expression. If a match is found, the original url is written into the dom. Otherwise,\n\t   * the absolute url is prefixed with `'unsafe:'` string and only then is it written into the DOM.\n\t   *\n\t   * @param {RegExp=} regexp New regexp to whitelist urls with.\n\t   * @returns {RegExp|ng.$compileProvider} Current RegExp if called without value or self for\n\t   *    chaining otherwise.\n\t   */\n\t  this.aHrefSanitizationWhitelist = function(regexp) {\n\t    if (isDefined(regexp)) {\n\t      $$sanitizeUriProvider.aHrefSanitizationWhitelist(regexp);\n\t      return this;\n\t    } else {\n\t      return $$sanitizeUriProvider.aHrefSanitizationWhitelist();\n\t    }\n\t  };\n\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $compileProvider#imgSrcSanitizationWhitelist\n\t   * @kind function\n\t   *\n\t   * @description\n\t   * Retrieves or overrides the default regular expression that is used for whitelisting of safe\n\t   * urls during img[src] sanitization.\n\t   *\n\t   * The sanitization is a security measure aimed at prevent XSS attacks via html links.\n\t   *\n\t   * Any url about to be assigned to img[src] via data-binding is first normalized and turned into\n\t   * an absolute url. Afterwards, the url is matched against the `imgSrcSanitizationWhitelist`\n\t   * regular expression. If a match is found, the original url is written into the dom. Otherwise,\n\t   * the absolute url is prefixed with `'unsafe:'` string and only then is it written into the DOM.\n\t   *\n\t   * @param {RegExp=} regexp New regexp to whitelist urls with.\n\t   * @returns {RegExp|ng.$compileProvider} Current RegExp if called without value or self for\n\t   *    chaining otherwise.\n\t   */\n\t  this.imgSrcSanitizationWhitelist = function(regexp) {\n\t    if (isDefined(regexp)) {\n\t      $$sanitizeUriProvider.imgSrcSanitizationWhitelist(regexp);\n\t      return this;\n\t    } else {\n\t      return $$sanitizeUriProvider.imgSrcSanitizationWhitelist();\n\t    }\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name  $compileProvider#debugInfoEnabled\n\t   *\n\t   * @param {boolean=} enabled update the debugInfoEnabled state if provided, otherwise just return the\n\t   * current debugInfoEnabled state\n\t   * @returns {*} current value if used as getter or itself (chaining) if used as setter\n\t   *\n\t   * @kind function\n\t   *\n\t   * @description\n\t   * Call this method to enable/disable various debug runtime information in the compiler such as adding\n\t   * binding information and a reference to the current scope on to DOM elements.\n\t   * If enabled, the compiler will add the following to DOM elements that have been bound to the scope\n\t   * * `ng-binding` CSS class\n\t   * * `$binding` data property containing an array of the binding expressions\n\t   *\n\t   * You may want to disable this in production for a significant performance boost. See\n\t   * {@link guide/production#disabling-debug-data Disabling Debug Data} for more.\n\t   *\n\t   * The default value is true.\n\t   */\n\t  var debugInfoEnabled = true;\n\t  this.debugInfoEnabled = function(enabled) {\n\t    if (isDefined(enabled)) {\n\t      debugInfoEnabled = enabled;\n\t      return this;\n\t    }\n\t    return debugInfoEnabled;\n\t  };\n\n\t  this.$get = [\n\t            '$injector', '$interpolate', '$exceptionHandler', '$templateRequest', '$parse',\n\t            '$controller', '$rootScope', '$document', '$sce', '$animate', '$$sanitizeUri',\n\t    function($injector,   $interpolate,   $exceptionHandler,   $templateRequest,   $parse,\n\t             $controller,   $rootScope,   $document,   $sce,   $animate,   $$sanitizeUri) {\n\n\t    var Attributes = function(element, attributesToCopy) {\n\t      if (attributesToCopy) {\n\t        var keys = Object.keys(attributesToCopy);\n\t        var i, l, key;\n\n\t        for (i = 0, l = keys.length; i < l; i++) {\n\t          key = keys[i];\n\t          this[key] = attributesToCopy[key];\n\t        }\n\t      } else {\n\t        this.$attr = {};\n\t      }\n\n\t      this.$$element = element;\n\t    };\n\n\t    Attributes.prototype = {\n\t      /**\n\t       * @ngdoc method\n\t       * @name $compile.directive.Attributes#$normalize\n\t       * @kind function\n\t       *\n\t       * @description\n\t       * Converts an attribute name (e.g. dash/colon/underscore-delimited string, optionally prefixed with `x-` or\n\t       * `data-`) to its normalized, camelCase form.\n\t       *\n\t       * Also there is special case for Moz prefix starting with upper case letter.\n\t       *\n\t       * For further information check out the guide on {@link guide/directive#matching-directives Matching Directives}\n\t       *\n\t       * @param {string} name Name to normalize\n\t       */\n\t      $normalize: directiveNormalize,\n\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $compile.directive.Attributes#$addClass\n\t       * @kind function\n\t       *\n\t       * @description\n\t       * Adds the CSS class value specified by the classVal parameter to the element. If animations\n\t       * are enabled then an animation will be triggered for the class addition.\n\t       *\n\t       * @param {string} classVal The className value that will be added to the element\n\t       */\n\t      $addClass: function(classVal) {\n\t        if (classVal && classVal.length > 0) {\n\t          $animate.addClass(this.$$element, classVal);\n\t        }\n\t      },\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $compile.directive.Attributes#$removeClass\n\t       * @kind function\n\t       *\n\t       * @description\n\t       * Removes the CSS class value specified by the classVal parameter from the element. If\n\t       * animations are enabled then an animation will be triggered for the class removal.\n\t       *\n\t       * @param {string} classVal The className value that will be removed from the element\n\t       */\n\t      $removeClass: function(classVal) {\n\t        if (classVal && classVal.length > 0) {\n\t          $animate.removeClass(this.$$element, classVal);\n\t        }\n\t      },\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $compile.directive.Attributes#$updateClass\n\t       * @kind function\n\t       *\n\t       * @description\n\t       * Adds and removes the appropriate CSS class values to the element based on the difference\n\t       * between the new and old CSS class values (specified as newClasses and oldClasses).\n\t       *\n\t       * @param {string} newClasses The current CSS className value\n\t       * @param {string} oldClasses The former CSS className value\n\t       */\n\t      $updateClass: function(newClasses, oldClasses) {\n\t        var toAdd = tokenDifference(newClasses, oldClasses);\n\t        if (toAdd && toAdd.length) {\n\t          $animate.addClass(this.$$element, toAdd);\n\t        }\n\n\t        var toRemove = tokenDifference(oldClasses, newClasses);\n\t        if (toRemove && toRemove.length) {\n\t          $animate.removeClass(this.$$element, toRemove);\n\t        }\n\t      },\n\n\t      /**\n\t       * Set a normalized attribute on the element in a way such that all directives\n\t       * can share the attribute. This function properly handles boolean attributes.\n\t       * @param {string} key Normalized key. (ie ngAttribute)\n\t       * @param {string|boolean} value The value to set. If `null` attribute will be deleted.\n\t       * @param {boolean=} writeAttr If false, does not write the value to DOM element attribute.\n\t       *     Defaults to true.\n\t       * @param {string=} attrName Optional none normalized name. Defaults to key.\n\t       */\n\t      $set: function(key, value, writeAttr, attrName) {\n\t        // TODO: decide whether or not to throw an error if \"class\"\n\t        //is set through this function since it may cause $updateClass to\n\t        //become unstable.\n\n\t        var node = this.$$element[0],\n\t            booleanKey = getBooleanAttrName(node, key),\n\t            aliasedKey = getAliasedAttrName(node, key),\n\t            observer = key,\n\t            nodeName;\n\n\t        if (booleanKey) {\n\t          this.$$element.prop(key, value);\n\t          attrName = booleanKey;\n\t        } else if (aliasedKey) {\n\t          this[aliasedKey] = value;\n\t          observer = aliasedKey;\n\t        }\n\n\t        this[key] = value;\n\n\t        // translate normalized key to actual key\n\t        if (attrName) {\n\t          this.$attr[key] = attrName;\n\t        } else {\n\t          attrName = this.$attr[key];\n\t          if (!attrName) {\n\t            this.$attr[key] = attrName = snake_case(key, '-');\n\t          }\n\t        }\n\n\t        nodeName = nodeName_(this.$$element);\n\n\t        if ((nodeName === 'a' && key === 'href') ||\n\t            (nodeName === 'img' && key === 'src')) {\n\t          // sanitize a[href] and img[src] values\n\t          this[key] = value = $$sanitizeUri(value, key === 'src');\n\t        } else if (nodeName === 'img' && key === 'srcset') {\n\t          // sanitize img[srcset] values\n\t          var result = \"\";\n\n\t          // first check if there are spaces because it's not the same pattern\n\t          var trimmedSrcset = trim(value);\n\t          //                (   999x   ,|   999w   ,|   ,|,   )\n\t          var srcPattern = /(\\s+\\d+x\\s*,|\\s+\\d+w\\s*,|\\s+,|,\\s+)/;\n\t          var pattern = /\\s/.test(trimmedSrcset) ? srcPattern : /(,)/;\n\n\t          // split srcset into tuple of uri and descriptor except for the last item\n\t          var rawUris = trimmedSrcset.split(pattern);\n\n\t          // for each tuples\n\t          var nbrUrisWith2parts = Math.floor(rawUris.length / 2);\n\t          for (var i = 0; i < nbrUrisWith2parts; i++) {\n\t            var innerIdx = i * 2;\n\t            // sanitize the uri\n\t            result += $$sanitizeUri(trim(rawUris[innerIdx]), true);\n\t            // add the descriptor\n\t            result += (\" \" + trim(rawUris[innerIdx + 1]));\n\t          }\n\n\t          // split the last item into uri and descriptor\n\t          var lastTuple = trim(rawUris[i * 2]).split(/\\s/);\n\n\t          // sanitize the last uri\n\t          result += $$sanitizeUri(trim(lastTuple[0]), true);\n\n\t          // and add the last descriptor if any\n\t          if (lastTuple.length === 2) {\n\t            result += (\" \" + trim(lastTuple[1]));\n\t          }\n\t          this[key] = value = result;\n\t        }\n\n\t        if (writeAttr !== false) {\n\t          if (value === null || value === undefined) {\n\t            this.$$element.removeAttr(attrName);\n\t          } else {\n\t            this.$$element.attr(attrName, value);\n\t          }\n\t        }\n\n\t        // fire observers\n\t        var $$observers = this.$$observers;\n\t        $$observers && forEach($$observers[observer], function(fn) {\n\t          try {\n\t            fn(value);\n\t          } catch (e) {\n\t            $exceptionHandler(e);\n\t          }\n\t        });\n\t      },\n\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $compile.directive.Attributes#$observe\n\t       * @kind function\n\t       *\n\t       * @description\n\t       * Observes an interpolated attribute.\n\t       *\n\t       * The observer function will be invoked once during the next `$digest` following\n\t       * compilation. The observer is then invoked whenever the interpolated value\n\t       * changes.\n\t       *\n\t       * @param {string} key Normalized key. (ie ngAttribute) .\n\t       * @param {function(interpolatedValue)} fn Function that will be called whenever\n\t                the interpolated value of the attribute changes.\n\t       *        See the {@link guide/directive#text-and-attribute-bindings Directives} guide for more info.\n\t       * @returns {function()} Returns a deregistration function for this observer.\n\t       */\n\t      $observe: function(key, fn) {\n\t        var attrs = this,\n\t            $$observers = (attrs.$$observers || (attrs.$$observers = createMap())),\n\t            listeners = ($$observers[key] || ($$observers[key] = []));\n\n\t        listeners.push(fn);\n\t        $rootScope.$evalAsync(function() {\n\t          if (!listeners.$$inter && attrs.hasOwnProperty(key)) {\n\t            // no one registered attribute interpolation function, so lets call it manually\n\t            fn(attrs[key]);\n\t          }\n\t        });\n\n\t        return function() {\n\t          arrayRemove(listeners, fn);\n\t        };\n\t      }\n\t    };\n\n\n\t    function safeAddClass($element, className) {\n\t      try {\n\t        $element.addClass(className);\n\t      } catch (e) {\n\t        // ignore, since it means that we are trying to set class on\n\t        // SVG element, where class name is read-only.\n\t      }\n\t    }\n\n\n\t    var startSymbol = $interpolate.startSymbol(),\n\t        endSymbol = $interpolate.endSymbol(),\n\t        denormalizeTemplate = (startSymbol == '{{' || endSymbol  == '}}')\n\t            ? identity\n\t            : function denormalizeTemplate(template) {\n\t              return template.replace(/\\{\\{/g, startSymbol).replace(/}}/g, endSymbol);\n\t        },\n\t        NG_ATTR_BINDING = /^ngAttr[A-Z]/;\n\n\t    compile.$$addBindingInfo = debugInfoEnabled ? function $$addBindingInfo($element, binding) {\n\t      var bindings = $element.data('$binding') || [];\n\n\t      if (isArray(binding)) {\n\t        bindings = bindings.concat(binding);\n\t      } else {\n\t        bindings.push(binding);\n\t      }\n\n\t      $element.data('$binding', bindings);\n\t    } : noop;\n\n\t    compile.$$addBindingClass = debugInfoEnabled ? function $$addBindingClass($element) {\n\t      safeAddClass($element, 'ng-binding');\n\t    } : noop;\n\n\t    compile.$$addScopeInfo = debugInfoEnabled ? function $$addScopeInfo($element, scope, isolated, noTemplate) {\n\t      var dataName = isolated ? (noTemplate ? '$isolateScopeNoTemplate' : '$isolateScope') : '$scope';\n\t      $element.data(dataName, scope);\n\t    } : noop;\n\n\t    compile.$$addScopeClass = debugInfoEnabled ? function $$addScopeClass($element, isolated) {\n\t      safeAddClass($element, isolated ? 'ng-isolate-scope' : 'ng-scope');\n\t    } : noop;\n\n\t    return compile;\n\n\t    //================================\n\n\t    function compile($compileNodes, transcludeFn, maxPriority, ignoreDirective,\n\t                        previousCompileContext) {\n\t      if (!($compileNodes instanceof jqLite)) {\n\t        // jquery always rewraps, whereas we need to preserve the original selector so that we can\n\t        // modify it.\n\t        $compileNodes = jqLite($compileNodes);\n\t      }\n\t      // We can not compile top level text elements since text nodes can be merged and we will\n\t      // not be able to attach scope data to them, so we will wrap them in <span>\n\t      forEach($compileNodes, function(node, index) {\n\t        if (node.nodeType == NODE_TYPE_TEXT && node.nodeValue.match(/\\S+/) /* non-empty */ ) {\n\t          $compileNodes[index] = jqLite(node).wrap('<span></span>').parent()[0];\n\t        }\n\t      });\n\t      var compositeLinkFn =\n\t              compileNodes($compileNodes, transcludeFn, $compileNodes,\n\t                           maxPriority, ignoreDirective, previousCompileContext);\n\t      compile.$$addScopeClass($compileNodes);\n\t      var namespace = null;\n\t      return function publicLinkFn(scope, cloneConnectFn, options) {\n\t        assertArg(scope, 'scope');\n\n\t        options = options || {};\n\t        var parentBoundTranscludeFn = options.parentBoundTranscludeFn,\n\t          transcludeControllers = options.transcludeControllers,\n\t          futureParentElement = options.futureParentElement;\n\n\t        // When `parentBoundTranscludeFn` is passed, it is a\n\t        // `controllersBoundTransclude` function (it was previously passed\n\t        // as `transclude` to directive.link) so we must unwrap it to get\n\t        // its `boundTranscludeFn`\n\t        if (parentBoundTranscludeFn && parentBoundTranscludeFn.$$boundTransclude) {\n\t          parentBoundTranscludeFn = parentBoundTranscludeFn.$$boundTransclude;\n\t        }\n\n\t        if (!namespace) {\n\t          namespace = detectNamespaceForChildElements(futureParentElement);\n\t        }\n\t        var $linkNode;\n\t        if (namespace !== 'html') {\n\t          // When using a directive with replace:true and templateUrl the $compileNodes\n\t          // (or a child element inside of them)\n\t          // might change, so we need to recreate the namespace adapted compileNodes\n\t          // for call to the link function.\n\t          // Note: This will already clone the nodes...\n\t          $linkNode = jqLite(\n\t            wrapTemplate(namespace, jqLite('<div>').append($compileNodes).html())\n\t          );\n\t        } else if (cloneConnectFn) {\n\t          // important!!: we must call our jqLite.clone() since the jQuery one is trying to be smart\n\t          // and sometimes changes the structure of the DOM.\n\t          $linkNode = JQLitePrototype.clone.call($compileNodes);\n\t        } else {\n\t          $linkNode = $compileNodes;\n\t        }\n\n\t        if (transcludeControllers) {\n\t          for (var controllerName in transcludeControllers) {\n\t            $linkNode.data('$' + controllerName + 'Controller', transcludeControllers[controllerName].instance);\n\t          }\n\t        }\n\n\t        compile.$$addScopeInfo($linkNode, scope);\n\n\t        if (cloneConnectFn) cloneConnectFn($linkNode, scope);\n\t        if (compositeLinkFn) compositeLinkFn(scope, $linkNode, $linkNode, parentBoundTranscludeFn);\n\t        return $linkNode;\n\t      };\n\t    }\n\n\t    function detectNamespaceForChildElements(parentElement) {\n\t      // TODO: Make this detect MathML as well...\n\t      var node = parentElement && parentElement[0];\n\t      if (!node) {\n\t        return 'html';\n\t      } else {\n\t        return nodeName_(node) !== 'foreignobject' && node.toString().match(/SVG/) ? 'svg' : 'html';\n\t      }\n\t    }\n\n\t    /**\n\t     * Compile function matches each node in nodeList against the directives. Once all directives\n\t     * for a particular node are collected their compile functions are executed. The compile\n\t     * functions return values - the linking functions - are combined into a composite linking\n\t     * function, which is the a linking function for the node.\n\t     *\n\t     * @param {NodeList} nodeList an array of nodes or NodeList to compile\n\t     * @param {function(angular.Scope, cloneAttachFn=)} transcludeFn A linking function, where the\n\t     *        scope argument is auto-generated to the new child of the transcluded parent scope.\n\t     * @param {DOMElement=} $rootElement If the nodeList is the root of the compilation tree then\n\t     *        the rootElement must be set the jqLite collection of the compile root. This is\n\t     *        needed so that the jqLite collection items can be replaced with widgets.\n\t     * @param {number=} maxPriority Max directive priority.\n\t     * @returns {Function} A composite linking function of all of the matched directives or null.\n\t     */\n\t    function compileNodes(nodeList, transcludeFn, $rootElement, maxPriority, ignoreDirective,\n\t                            previousCompileContext) {\n\t      var linkFns = [],\n\t          attrs, directives, nodeLinkFn, childNodes, childLinkFn, linkFnFound, nodeLinkFnFound;\n\n\t      for (var i = 0; i < nodeList.length; i++) {\n\t        attrs = new Attributes();\n\n\t        // we must always refer to nodeList[i] since the nodes can be replaced underneath us.\n\t        directives = collectDirectives(nodeList[i], [], attrs, i === 0 ? maxPriority : undefined,\n\t                                        ignoreDirective);\n\n\t        nodeLinkFn = (directives.length)\n\t            ? applyDirectivesToNode(directives, nodeList[i], attrs, transcludeFn, $rootElement,\n\t                                      null, [], [], previousCompileContext)\n\t            : null;\n\n\t        if (nodeLinkFn && nodeLinkFn.scope) {\n\t          compile.$$addScopeClass(attrs.$$element);\n\t        }\n\n\t        childLinkFn = (nodeLinkFn && nodeLinkFn.terminal ||\n\t                      !(childNodes = nodeList[i].childNodes) ||\n\t                      !childNodes.length)\n\t            ? null\n\t            : compileNodes(childNodes,\n\t                 nodeLinkFn ? (\n\t                  (nodeLinkFn.transcludeOnThisElement || !nodeLinkFn.templateOnThisElement)\n\t                     && nodeLinkFn.transclude) : transcludeFn);\n\n\t        if (nodeLinkFn || childLinkFn) {\n\t          linkFns.push(i, nodeLinkFn, childLinkFn);\n\t          linkFnFound = true;\n\t          nodeLinkFnFound = nodeLinkFnFound || nodeLinkFn;\n\t        }\n\n\t        //use the previous context only for the first element in the virtual group\n\t        previousCompileContext = null;\n\t      }\n\n\t      // return a linking function if we have found anything, null otherwise\n\t      return linkFnFound ? compositeLinkFn : null;\n\n\t      function compositeLinkFn(scope, nodeList, $rootElement, parentBoundTranscludeFn) {\n\t        var nodeLinkFn, childLinkFn, node, childScope, i, ii, idx, childBoundTranscludeFn;\n\t        var stableNodeList;\n\n\n\t        if (nodeLinkFnFound) {\n\t          // copy nodeList so that if a nodeLinkFn removes or adds an element at this DOM level our\n\t          // offsets don't get screwed up\n\t          var nodeListLength = nodeList.length;\n\t          stableNodeList = new Array(nodeListLength);\n\n\t          // create a sparse array by only copying the elements which have a linkFn\n\t          for (i = 0; i < linkFns.length; i+=3) {\n\t            idx = linkFns[i];\n\t            stableNodeList[idx] = nodeList[idx];\n\t          }\n\t        } else {\n\t          stableNodeList = nodeList;\n\t        }\n\n\t        for (i = 0, ii = linkFns.length; i < ii;) {\n\t          node = stableNodeList[linkFns[i++]];\n\t          nodeLinkFn = linkFns[i++];\n\t          childLinkFn = linkFns[i++];\n\n\t          if (nodeLinkFn) {\n\t            if (nodeLinkFn.scope) {\n\t              childScope = scope.$new();\n\t              compile.$$addScopeInfo(jqLite(node), childScope);\n\t            } else {\n\t              childScope = scope;\n\t            }\n\n\t            if (nodeLinkFn.transcludeOnThisElement) {\n\t              childBoundTranscludeFn = createBoundTranscludeFn(\n\t                  scope, nodeLinkFn.transclude, parentBoundTranscludeFn,\n\t                  nodeLinkFn.elementTranscludeOnThisElement);\n\n\t            } else if (!nodeLinkFn.templateOnThisElement && parentBoundTranscludeFn) {\n\t              childBoundTranscludeFn = parentBoundTranscludeFn;\n\n\t            } else if (!parentBoundTranscludeFn && transcludeFn) {\n\t              childBoundTranscludeFn = createBoundTranscludeFn(scope, transcludeFn);\n\n\t            } else {\n\t              childBoundTranscludeFn = null;\n\t            }\n\n\t            nodeLinkFn(childLinkFn, childScope, node, $rootElement, childBoundTranscludeFn);\n\n\t          } else if (childLinkFn) {\n\t            childLinkFn(scope, node.childNodes, undefined, parentBoundTranscludeFn);\n\t          }\n\t        }\n\t      }\n\t    }\n\n\t    function createBoundTranscludeFn(scope, transcludeFn, previousBoundTranscludeFn, elementTransclusion) {\n\n\t      var boundTranscludeFn = function(transcludedScope, cloneFn, controllers, futureParentElement, containingScope) {\n\n\t        if (!transcludedScope) {\n\t          transcludedScope = scope.$new(false, containingScope);\n\t          transcludedScope.$$transcluded = true;\n\t        }\n\n\t        return transcludeFn(transcludedScope, cloneFn, {\n\t          parentBoundTranscludeFn: previousBoundTranscludeFn,\n\t          transcludeControllers: controllers,\n\t          futureParentElement: futureParentElement\n\t        });\n\t      };\n\n\t      return boundTranscludeFn;\n\t    }\n\n\t    /**\n\t     * Looks for directives on the given node and adds them to the directive collection which is\n\t     * sorted.\n\t     *\n\t     * @param node Node to search.\n\t     * @param directives An array to which the directives are added to. This array is sorted before\n\t     *        the function returns.\n\t     * @param attrs The shared attrs object which is used to populate the normalized attributes.\n\t     * @param {number=} maxPriority Max directive priority.\n\t     */\n\t    function collectDirectives(node, directives, attrs, maxPriority, ignoreDirective) {\n\t      var nodeType = node.nodeType,\n\t          attrsMap = attrs.$attr,\n\t          match,\n\t          className;\n\n\t      switch (nodeType) {\n\t        case NODE_TYPE_ELEMENT: /* Element */\n\t          // use the node name: <directive>\n\t          addDirective(directives,\n\t              directiveNormalize(nodeName_(node)), 'E', maxPriority, ignoreDirective);\n\n\t          // iterate over the attributes\n\t          for (var attr, name, nName, ngAttrName, value, isNgAttr, nAttrs = node.attributes,\n\t                   j = 0, jj = nAttrs && nAttrs.length; j < jj; j++) {\n\t            var attrStartName = false;\n\t            var attrEndName = false;\n\n\t            attr = nAttrs[j];\n\t            name = attr.name;\n\t            value = trim(attr.value);\n\n\t            // support ngAttr attribute binding\n\t            ngAttrName = directiveNormalize(name);\n\t            if (isNgAttr = NG_ATTR_BINDING.test(ngAttrName)) {\n\t              name = name.replace(PREFIX_REGEXP, '')\n\t                .substr(8).replace(/_(.)/g, function(match, letter) {\n\t                  return letter.toUpperCase();\n\t                });\n\t            }\n\n\t            var directiveNName = ngAttrName.replace(/(Start|End)$/, '');\n\t            if (directiveIsMultiElement(directiveNName)) {\n\t              if (ngAttrName === directiveNName + 'Start') {\n\t                attrStartName = name;\n\t                attrEndName = name.substr(0, name.length - 5) + 'end';\n\t                name = name.substr(0, name.length - 6);\n\t              }\n\t            }\n\n\t            nName = directiveNormalize(name.toLowerCase());\n\t            attrsMap[nName] = name;\n\t            if (isNgAttr || !attrs.hasOwnProperty(nName)) {\n\t                attrs[nName] = value;\n\t                if (getBooleanAttrName(node, nName)) {\n\t                  attrs[nName] = true; // presence means true\n\t                }\n\t            }\n\t            addAttrInterpolateDirective(node, directives, value, nName, isNgAttr);\n\t            addDirective(directives, nName, 'A', maxPriority, ignoreDirective, attrStartName,\n\t                          attrEndName);\n\t          }\n\n\t          // use class as directive\n\t          className = node.className;\n\t          if (isObject(className)) {\n\t              // Maybe SVGAnimatedString\n\t              className = className.animVal;\n\t          }\n\t          if (isString(className) && className !== '') {\n\t            while (match = CLASS_DIRECTIVE_REGEXP.exec(className)) {\n\t              nName = directiveNormalize(match[2]);\n\t              if (addDirective(directives, nName, 'C', maxPriority, ignoreDirective)) {\n\t                attrs[nName] = trim(match[3]);\n\t              }\n\t              className = className.substr(match.index + match[0].length);\n\t            }\n\t          }\n\t          break;\n\t        case NODE_TYPE_TEXT: /* Text Node */\n\t          addTextInterpolateDirective(directives, node.nodeValue);\n\t          break;\n\t        case NODE_TYPE_COMMENT: /* Comment */\n\t          try {\n\t            match = COMMENT_DIRECTIVE_REGEXP.exec(node.nodeValue);\n\t            if (match) {\n\t              nName = directiveNormalize(match[1]);\n\t              if (addDirective(directives, nName, 'M', maxPriority, ignoreDirective)) {\n\t                attrs[nName] = trim(match[2]);\n\t              }\n\t            }\n\t          } catch (e) {\n\t            // turns out that under some circumstances IE9 throws errors when one attempts to read\n\t            // comment's node value.\n\t            // Just ignore it and continue. (Can't seem to reproduce in test case.)\n\t          }\n\t          break;\n\t      }\n\n\t      directives.sort(byPriority);\n\t      return directives;\n\t    }\n\n\t    /**\n\t     * Given a node with an directive-start it collects all of the siblings until it finds\n\t     * directive-end.\n\t     * @param node\n\t     * @param attrStart\n\t     * @param attrEnd\n\t     * @returns {*}\n\t     */\n\t    function groupScan(node, attrStart, attrEnd) {\n\t      var nodes = [];\n\t      var depth = 0;\n\t      if (attrStart && node.hasAttribute && node.hasAttribute(attrStart)) {\n\t        do {\n\t          if (!node) {\n\t            throw $compileMinErr('uterdir',\n\t                      \"Unterminated attribute, found '{0}' but no matching '{1}' found.\",\n\t                      attrStart, attrEnd);\n\t          }\n\t          if (node.nodeType == NODE_TYPE_ELEMENT) {\n\t            if (node.hasAttribute(attrStart)) depth++;\n\t            if (node.hasAttribute(attrEnd)) depth--;\n\t          }\n\t          nodes.push(node);\n\t          node = node.nextSibling;\n\t        } while (depth > 0);\n\t      } else {\n\t        nodes.push(node);\n\t      }\n\n\t      return jqLite(nodes);\n\t    }\n\n\t    /**\n\t     * Wrapper for linking function which converts normal linking function into a grouped\n\t     * linking function.\n\t     * @param linkFn\n\t     * @param attrStart\n\t     * @param attrEnd\n\t     * @returns {Function}\n\t     */\n\t    function groupElementsLinkFnWrapper(linkFn, attrStart, attrEnd) {\n\t      return function(scope, element, attrs, controllers, transcludeFn) {\n\t        element = groupScan(element[0], attrStart, attrEnd);\n\t        return linkFn(scope, element, attrs, controllers, transcludeFn);\n\t      };\n\t    }\n\n\t    /**\n\t     * Once the directives have been collected, their compile functions are executed. This method\n\t     * is responsible for inlining directive templates as well as terminating the application\n\t     * of the directives if the terminal directive has been reached.\n\t     *\n\t     * @param {Array} directives Array of collected directives to execute their compile function.\n\t     *        this needs to be pre-sorted by priority order.\n\t     * @param {Node} compileNode The raw DOM node to apply the compile functions to\n\t     * @param {Object} templateAttrs The shared attribute function\n\t     * @param {function(angular.Scope, cloneAttachFn=)} transcludeFn A linking function, where the\n\t     *                                                  scope argument is auto-generated to the new\n\t     *                                                  child of the transcluded parent scope.\n\t     * @param {JQLite} jqCollection If we are working on the root of the compile tree then this\n\t     *                              argument has the root jqLite array so that we can replace nodes\n\t     *                              on it.\n\t     * @param {Object=} originalReplaceDirective An optional directive that will be ignored when\n\t     *                                           compiling the transclusion.\n\t     * @param {Array.<Function>} preLinkFns\n\t     * @param {Array.<Function>} postLinkFns\n\t     * @param {Object} previousCompileContext Context used for previous compilation of the current\n\t     *                                        node\n\t     * @returns {Function} linkFn\n\t     */\n\t    function applyDirectivesToNode(directives, compileNode, templateAttrs, transcludeFn,\n\t                                   jqCollection, originalReplaceDirective, preLinkFns, postLinkFns,\n\t                                   previousCompileContext) {\n\t      previousCompileContext = previousCompileContext || {};\n\n\t      var terminalPriority = -Number.MAX_VALUE,\n\t          newScopeDirective,\n\t          controllerDirectives = previousCompileContext.controllerDirectives,\n\t          controllers,\n\t          newIsolateScopeDirective = previousCompileContext.newIsolateScopeDirective,\n\t          templateDirective = previousCompileContext.templateDirective,\n\t          nonTlbTranscludeDirective = previousCompileContext.nonTlbTranscludeDirective,\n\t          hasTranscludeDirective = false,\n\t          hasTemplate = false,\n\t          hasElementTranscludeDirective = previousCompileContext.hasElementTranscludeDirective,\n\t          $compileNode = templateAttrs.$$element = jqLite(compileNode),\n\t          directive,\n\t          directiveName,\n\t          $template,\n\t          replaceDirective = originalReplaceDirective,\n\t          childTranscludeFn = transcludeFn,\n\t          linkFn,\n\t          directiveValue;\n\n\t      // executes all directives on the current element\n\t      for (var i = 0, ii = directives.length; i < ii; i++) {\n\t        directive = directives[i];\n\t        var attrStart = directive.$$start;\n\t        var attrEnd = directive.$$end;\n\n\t        // collect multiblock sections\n\t        if (attrStart) {\n\t          $compileNode = groupScan(compileNode, attrStart, attrEnd);\n\t        }\n\t        $template = undefined;\n\n\t        if (terminalPriority > directive.priority) {\n\t          break; // prevent further processing of directives\n\t        }\n\n\t        if (directiveValue = directive.scope) {\n\n\t          // skip the check for directives with async templates, we'll check the derived sync\n\t          // directive when the template arrives\n\t          if (!directive.templateUrl) {\n\t            if (isObject(directiveValue)) {\n\t              // This directive is trying to add an isolated scope.\n\t              // Check that there is no scope of any kind already\n\t              assertNoDuplicate('new/isolated scope', newIsolateScopeDirective || newScopeDirective,\n\t                                directive, $compileNode);\n\t              newIsolateScopeDirective = directive;\n\t            } else {\n\t              // This directive is trying to add a child scope.\n\t              // Check that there is no isolated scope already\n\t              assertNoDuplicate('new/isolated scope', newIsolateScopeDirective, directive,\n\t                                $compileNode);\n\t            }\n\t          }\n\n\t          newScopeDirective = newScopeDirective || directive;\n\t        }\n\n\t        directiveName = directive.name;\n\n\t        if (!directive.templateUrl && directive.controller) {\n\t          directiveValue = directive.controller;\n\t          controllerDirectives = controllerDirectives || {};\n\t          assertNoDuplicate(\"'\" + directiveName + \"' controller\",\n\t              controllerDirectives[directiveName], directive, $compileNode);\n\t          controllerDirectives[directiveName] = directive;\n\t        }\n\n\t        if (directiveValue = directive.transclude) {\n\t          hasTranscludeDirective = true;\n\n\t          // Special case ngIf and ngRepeat so that we don't complain about duplicate transclusion.\n\t          // This option should only be used by directives that know how to safely handle element transclusion,\n\t          // where the transcluded nodes are added or replaced after linking.\n\t          if (!directive.$$tlb) {\n\t            assertNoDuplicate('transclusion', nonTlbTranscludeDirective, directive, $compileNode);\n\t            nonTlbTranscludeDirective = directive;\n\t          }\n\n\t          if (directiveValue == 'element') {\n\t            hasElementTranscludeDirective = true;\n\t            terminalPriority = directive.priority;\n\t            $template = $compileNode;\n\t            $compileNode = templateAttrs.$$element =\n\t                jqLite(document.createComment(' ' + directiveName + ': ' +\n\t                                              templateAttrs[directiveName] + ' '));\n\t            compileNode = $compileNode[0];\n\t            replaceWith(jqCollection, sliceArgs($template), compileNode);\n\n\t            childTranscludeFn = compile($template, transcludeFn, terminalPriority,\n\t                                        replaceDirective && replaceDirective.name, {\n\t                                          // Don't pass in:\n\t                                          // - controllerDirectives - otherwise we'll create duplicates controllers\n\t                                          // - newIsolateScopeDirective or templateDirective - combining templates with\n\t                                          //   element transclusion doesn't make sense.\n\t                                          //\n\t                                          // We need only nonTlbTranscludeDirective so that we prevent putting transclusion\n\t                                          // on the same element more than once.\n\t                                          nonTlbTranscludeDirective: nonTlbTranscludeDirective\n\t                                        });\n\t          } else {\n\t            $template = jqLite(jqLiteClone(compileNode)).contents();\n\t            $compileNode.empty(); // clear contents\n\t            childTranscludeFn = compile($template, transcludeFn);\n\t          }\n\t        }\n\n\t        if (directive.template) {\n\t          hasTemplate = true;\n\t          assertNoDuplicate('template', templateDirective, directive, $compileNode);\n\t          templateDirective = directive;\n\n\t          directiveValue = (isFunction(directive.template))\n\t              ? directive.template($compileNode, templateAttrs)\n\t              : directive.template;\n\n\t          directiveValue = denormalizeTemplate(directiveValue);\n\n\t          if (directive.replace) {\n\t            replaceDirective = directive;\n\t            if (jqLiteIsTextNode(directiveValue)) {\n\t              $template = [];\n\t            } else {\n\t              $template = removeComments(wrapTemplate(directive.templateNamespace, trim(directiveValue)));\n\t            }\n\t            compileNode = $template[0];\n\n\t            if ($template.length != 1 || compileNode.nodeType !== NODE_TYPE_ELEMENT) {\n\t              throw $compileMinErr('tplrt',\n\t                  \"Template for directive '{0}' must have exactly one root element. {1}\",\n\t                  directiveName, '');\n\t            }\n\n\t            replaceWith(jqCollection, $compileNode, compileNode);\n\n\t            var newTemplateAttrs = {$attr: {}};\n\n\t            // combine directives from the original node and from the template:\n\t            // - take the array of directives for this element\n\t            // - split it into two parts, those that already applied (processed) and those that weren't (unprocessed)\n\t            // - collect directives from the template and sort them by priority\n\t            // - combine directives as: processed + template + unprocessed\n\t            var templateDirectives = collectDirectives(compileNode, [], newTemplateAttrs);\n\t            var unprocessedDirectives = directives.splice(i + 1, directives.length - (i + 1));\n\n\t            if (newIsolateScopeDirective) {\n\t              markDirectivesAsIsolate(templateDirectives);\n\t            }\n\t            directives = directives.concat(templateDirectives).concat(unprocessedDirectives);\n\t            mergeTemplateAttributes(templateAttrs, newTemplateAttrs);\n\n\t            ii = directives.length;\n\t          } else {\n\t            $compileNode.html(directiveValue);\n\t          }\n\t        }\n\n\t        if (directive.templateUrl) {\n\t          hasTemplate = true;\n\t          assertNoDuplicate('template', templateDirective, directive, $compileNode);\n\t          templateDirective = directive;\n\n\t          if (directive.replace) {\n\t            replaceDirective = directive;\n\t          }\n\n\t          nodeLinkFn = compileTemplateUrl(directives.splice(i, directives.length - i), $compileNode,\n\t              templateAttrs, jqCollection, hasTranscludeDirective && childTranscludeFn, preLinkFns, postLinkFns, {\n\t                controllerDirectives: controllerDirectives,\n\t                newIsolateScopeDirective: newIsolateScopeDirective,\n\t                templateDirective: templateDirective,\n\t                nonTlbTranscludeDirective: nonTlbTranscludeDirective\n\t              });\n\t          ii = directives.length;\n\t        } else if (directive.compile) {\n\t          try {\n\t            linkFn = directive.compile($compileNode, templateAttrs, childTranscludeFn);\n\t            if (isFunction(linkFn)) {\n\t              addLinkFns(null, linkFn, attrStart, attrEnd);\n\t            } else if (linkFn) {\n\t              addLinkFns(linkFn.pre, linkFn.post, attrStart, attrEnd);\n\t            }\n\t          } catch (e) {\n\t            $exceptionHandler(e, startingTag($compileNode));\n\t          }\n\t        }\n\n\t        if (directive.terminal) {\n\t          nodeLinkFn.terminal = true;\n\t          terminalPriority = Math.max(terminalPriority, directive.priority);\n\t        }\n\n\t      }\n\n\t      nodeLinkFn.scope = newScopeDirective && newScopeDirective.scope === true;\n\t      nodeLinkFn.transcludeOnThisElement = hasTranscludeDirective;\n\t      nodeLinkFn.elementTranscludeOnThisElement = hasElementTranscludeDirective;\n\t      nodeLinkFn.templateOnThisElement = hasTemplate;\n\t      nodeLinkFn.transclude = childTranscludeFn;\n\n\t      previousCompileContext.hasElementTranscludeDirective = hasElementTranscludeDirective;\n\n\t      // might be normal or delayed nodeLinkFn depending on if templateUrl is present\n\t      return nodeLinkFn;\n\n\t      ////////////////////\n\n\t      function addLinkFns(pre, post, attrStart, attrEnd) {\n\t        if (pre) {\n\t          if (attrStart) pre = groupElementsLinkFnWrapper(pre, attrStart, attrEnd);\n\t          pre.require = directive.require;\n\t          pre.directiveName = directiveName;\n\t          if (newIsolateScopeDirective === directive || directive.$$isolateScope) {\n\t            pre = cloneAndAnnotateFn(pre, {isolateScope: true});\n\t          }\n\t          preLinkFns.push(pre);\n\t        }\n\t        if (post) {\n\t          if (attrStart) post = groupElementsLinkFnWrapper(post, attrStart, attrEnd);\n\t          post.require = directive.require;\n\t          post.directiveName = directiveName;\n\t          if (newIsolateScopeDirective === directive || directive.$$isolateScope) {\n\t            post = cloneAndAnnotateFn(post, {isolateScope: true});\n\t          }\n\t          postLinkFns.push(post);\n\t        }\n\t      }\n\n\n\t      function getControllers(directiveName, require, $element, elementControllers) {\n\t        var value, retrievalMethod = 'data', optional = false;\n\t        var $searchElement = $element;\n\t        var match;\n\t        if (isString(require)) {\n\t          match = require.match(REQUIRE_PREFIX_REGEXP);\n\t          require = require.substring(match[0].length);\n\n\t          if (match[3]) {\n\t            if (match[1]) match[3] = null;\n\t            else match[1] = match[3];\n\t          }\n\t          if (match[1] === '^') {\n\t            retrievalMethod = 'inheritedData';\n\t          } else if (match[1] === '^^') {\n\t            retrievalMethod = 'inheritedData';\n\t            $searchElement = $element.parent();\n\t          }\n\t          if (match[2] === '?') {\n\t            optional = true;\n\t          }\n\n\t          value = null;\n\n\t          if (elementControllers && retrievalMethod === 'data') {\n\t            if (value = elementControllers[require]) {\n\t              value = value.instance;\n\t            }\n\t          }\n\t          value = value || $searchElement[retrievalMethod]('$' + require + 'Controller');\n\n\t          if (!value && !optional) {\n\t            throw $compileMinErr('ctreq',\n\t                \"Controller '{0}', required by directive '{1}', can't be found!\",\n\t                require, directiveName);\n\t          }\n\t          return value || null;\n\t        } else if (isArray(require)) {\n\t          value = [];\n\t          forEach(require, function(require) {\n\t            value.push(getControllers(directiveName, require, $element, elementControllers));\n\t          });\n\t        }\n\t        return value;\n\t      }\n\n\n\t      function nodeLinkFn(childLinkFn, scope, linkNode, $rootElement, boundTranscludeFn) {\n\t        var i, ii, linkFn, controller, isolateScope, elementControllers, transcludeFn, $element,\n\t            attrs;\n\n\t        if (compileNode === linkNode) {\n\t          attrs = templateAttrs;\n\t          $element = templateAttrs.$$element;\n\t        } else {\n\t          $element = jqLite(linkNode);\n\t          attrs = new Attributes($element, templateAttrs);\n\t        }\n\n\t        if (newIsolateScopeDirective) {\n\t          isolateScope = scope.$new(true);\n\t        }\n\n\t        if (boundTranscludeFn) {\n\t          // track `boundTranscludeFn` so it can be unwrapped if `transcludeFn`\n\t          // is later passed as `parentBoundTranscludeFn` to `publicLinkFn`\n\t          transcludeFn = controllersBoundTransclude;\n\t          transcludeFn.$$boundTransclude = boundTranscludeFn;\n\t        }\n\n\t        if (controllerDirectives) {\n\t          // TODO: merge `controllers` and `elementControllers` into single object.\n\t          controllers = {};\n\t          elementControllers = {};\n\t          forEach(controllerDirectives, function(directive) {\n\t            var locals = {\n\t              $scope: directive === newIsolateScopeDirective || directive.$$isolateScope ? isolateScope : scope,\n\t              $element: $element,\n\t              $attrs: attrs,\n\t              $transclude: transcludeFn\n\t            }, controllerInstance;\n\n\t            controller = directive.controller;\n\t            if (controller == '@') {\n\t              controller = attrs[directive.name];\n\t            }\n\n\t            controllerInstance = $controller(controller, locals, true, directive.controllerAs);\n\n\t            // For directives with element transclusion the element is a comment,\n\t            // but jQuery .data doesn't support attaching data to comment nodes as it's hard to\n\t            // clean up (http://bugs.jquery.com/ticket/8335).\n\t            // Instead, we save the controllers for the element in a local hash and attach to .data\n\t            // later, once we have the actual element.\n\t            elementControllers[directive.name] = controllerInstance;\n\t            if (!hasElementTranscludeDirective) {\n\t              $element.data('$' + directive.name + 'Controller', controllerInstance.instance);\n\t            }\n\n\t            controllers[directive.name] = controllerInstance;\n\t          });\n\t        }\n\n\t        if (newIsolateScopeDirective) {\n\t          compile.$$addScopeInfo($element, isolateScope, true, !(templateDirective && (templateDirective === newIsolateScopeDirective ||\n\t              templateDirective === newIsolateScopeDirective.$$originalDirective)));\n\t          compile.$$addScopeClass($element, true);\n\n\t          var isolateScopeController = controllers && controllers[newIsolateScopeDirective.name];\n\t          var isolateBindingContext = isolateScope;\n\t          if (isolateScopeController && isolateScopeController.identifier &&\n\t              newIsolateScopeDirective.bindToController === true) {\n\t            isolateBindingContext = isolateScopeController.instance;\n\t          }\n\n\t          forEach(isolateScope.$$isolateBindings = newIsolateScopeDirective.$$isolateBindings, function(definition, scopeName) {\n\t            var attrName = definition.attrName,\n\t                optional = definition.optional,\n\t                mode = definition.mode, // @, =, or &\n\t                lastValue,\n\t                parentGet, parentSet, compare;\n\n\t            switch (mode) {\n\n\t              case '@':\n\t                attrs.$observe(attrName, function(value) {\n\t                  isolateBindingContext[scopeName] = value;\n\t                });\n\t                attrs.$$observers[attrName].$$scope = scope;\n\t                if (attrs[attrName]) {\n\t                  // If the attribute has been provided then we trigger an interpolation to ensure\n\t                  // the value is there for use in the link fn\n\t                  isolateBindingContext[scopeName] = $interpolate(attrs[attrName])(scope);\n\t                }\n\t                break;\n\n\t              case '=':\n\t                if (optional && !attrs[attrName]) {\n\t                  return;\n\t                }\n\t                parentGet = $parse(attrs[attrName]);\n\t                if (parentGet.literal) {\n\t                  compare = equals;\n\t                } else {\n\t                  compare = function(a, b) { return a === b || (a !== a && b !== b); };\n\t                }\n\t                parentSet = parentGet.assign || function() {\n\t                  // reset the change, or we will throw this exception on every $digest\n\t                  lastValue = isolateBindingContext[scopeName] = parentGet(scope);\n\t                  throw $compileMinErr('nonassign',\n\t                      \"Expression '{0}' used with directive '{1}' is non-assignable!\",\n\t                      attrs[attrName], newIsolateScopeDirective.name);\n\t                };\n\t                lastValue = isolateBindingContext[scopeName] = parentGet(scope);\n\t                var parentValueWatch = function parentValueWatch(parentValue) {\n\t                  if (!compare(parentValue, isolateBindingContext[scopeName])) {\n\t                    // we are out of sync and need to copy\n\t                    if (!compare(parentValue, lastValue)) {\n\t                      // parent changed and it has precedence\n\t                      isolateBindingContext[scopeName] = parentValue;\n\t                    } else {\n\t                      // if the parent can be assigned then do so\n\t                      parentSet(scope, parentValue = isolateBindingContext[scopeName]);\n\t                    }\n\t                  }\n\t                  return lastValue = parentValue;\n\t                };\n\t                parentValueWatch.$stateful = true;\n\t                var unwatch;\n\t                if (definition.collection) {\n\t                  unwatch = scope.$watchCollection(attrs[attrName], parentValueWatch);\n\t                } else {\n\t                  unwatch = scope.$watch($parse(attrs[attrName], parentValueWatch), null, parentGet.literal);\n\t                }\n\t                isolateScope.$on('$destroy', unwatch);\n\t                break;\n\n\t              case '&':\n\t                parentGet = $parse(attrs[attrName]);\n\t                isolateBindingContext[scopeName] = function(locals) {\n\t                  return parentGet(scope, locals);\n\t                };\n\t                break;\n\t            }\n\t          });\n\t        }\n\t        if (controllers) {\n\t          forEach(controllers, function(controller) {\n\t            controller();\n\t          });\n\t          controllers = null;\n\t        }\n\n\t        // PRELINKING\n\t        for (i = 0, ii = preLinkFns.length; i < ii; i++) {\n\t          linkFn = preLinkFns[i];\n\t          invokeLinkFn(linkFn,\n\t              linkFn.isolateScope ? isolateScope : scope,\n\t              $element,\n\t              attrs,\n\t              linkFn.require && getControllers(linkFn.directiveName, linkFn.require, $element, elementControllers),\n\t              transcludeFn\n\t          );\n\t        }\n\n\t        // RECURSION\n\t        // We only pass the isolate scope, if the isolate directive has a template,\n\t        // otherwise the child elements do not belong to the isolate directive.\n\t        var scopeToChild = scope;\n\t        if (newIsolateScopeDirective && (newIsolateScopeDirective.template || newIsolateScopeDirective.templateUrl === null)) {\n\t          scopeToChild = isolateScope;\n\t        }\n\t        childLinkFn && childLinkFn(scopeToChild, linkNode.childNodes, undefined, boundTranscludeFn);\n\n\t        // POSTLINKING\n\t        for (i = postLinkFns.length - 1; i >= 0; i--) {\n\t          linkFn = postLinkFns[i];\n\t          invokeLinkFn(linkFn,\n\t              linkFn.isolateScope ? isolateScope : scope,\n\t              $element,\n\t              attrs,\n\t              linkFn.require && getControllers(linkFn.directiveName, linkFn.require, $element, elementControllers),\n\t              transcludeFn\n\t          );\n\t        }\n\n\t        // This is the function that is injected as `$transclude`.\n\t        // Note: all arguments are optional!\n\t        function controllersBoundTransclude(scope, cloneAttachFn, futureParentElement) {\n\t          var transcludeControllers;\n\n\t          // No scope passed in:\n\t          if (!isScope(scope)) {\n\t            futureParentElement = cloneAttachFn;\n\t            cloneAttachFn = scope;\n\t            scope = undefined;\n\t          }\n\n\t          if (hasElementTranscludeDirective) {\n\t            transcludeControllers = elementControllers;\n\t          }\n\t          if (!futureParentElement) {\n\t            futureParentElement = hasElementTranscludeDirective ? $element.parent() : $element;\n\t          }\n\t          return boundTranscludeFn(scope, cloneAttachFn, transcludeControllers, futureParentElement, scopeToChild);\n\t        }\n\t      }\n\t    }\n\n\t    function markDirectivesAsIsolate(directives) {\n\t      // mark all directives as needing isolate scope.\n\t      for (var j = 0, jj = directives.length; j < jj; j++) {\n\t        directives[j] = inherit(directives[j], {$$isolateScope: true});\n\t      }\n\t    }\n\n\t    /**\n\t     * looks up the directive and decorates it with exception handling and proper parameters. We\n\t     * call this the boundDirective.\n\t     *\n\t     * @param {string} name name of the directive to look up.\n\t     * @param {string} location The directive must be found in specific format.\n\t     *   String containing any of theses characters:\n\t     *\n\t     *   * `E`: element name\n\t     *   * `A': attribute\n\t     *   * `C`: class\n\t     *   * `M`: comment\n\t     * @returns {boolean} true if directive was added.\n\t     */\n\t    function addDirective(tDirectives, name, location, maxPriority, ignoreDirective, startAttrName,\n\t                          endAttrName) {\n\t      if (name === ignoreDirective) return null;\n\t      var match = null;\n\t      if (hasDirectives.hasOwnProperty(name)) {\n\t        for (var directive, directives = $injector.get(name + Suffix),\n\t            i = 0, ii = directives.length; i < ii; i++) {\n\t          try {\n\t            directive = directives[i];\n\t            if ((maxPriority === undefined || maxPriority > directive.priority) &&\n\t                 directive.restrict.indexOf(location) != -1) {\n\t              if (startAttrName) {\n\t                directive = inherit(directive, {$$start: startAttrName, $$end: endAttrName});\n\t              }\n\t              tDirectives.push(directive);\n\t              match = directive;\n\t            }\n\t          } catch (e) { $exceptionHandler(e); }\n\t        }\n\t      }\n\t      return match;\n\t    }\n\n\n\t    /**\n\t     * looks up the directive and returns true if it is a multi-element directive,\n\t     * and therefore requires DOM nodes between -start and -end markers to be grouped\n\t     * together.\n\t     *\n\t     * @param {string} name name of the directive to look up.\n\t     * @returns true if directive was registered as multi-element.\n\t     */\n\t    function directiveIsMultiElement(name) {\n\t      if (hasDirectives.hasOwnProperty(name)) {\n\t        for (var directive, directives = $injector.get(name + Suffix),\n\t            i = 0, ii = directives.length; i < ii; i++) {\n\t          directive = directives[i];\n\t          if (directive.multiElement) {\n\t            return true;\n\t          }\n\t        }\n\t      }\n\t      return false;\n\t    }\n\n\t    /**\n\t     * When the element is replaced with HTML template then the new attributes\n\t     * on the template need to be merged with the existing attributes in the DOM.\n\t     * The desired effect is to have both of the attributes present.\n\t     *\n\t     * @param {object} dst destination attributes (original DOM)\n\t     * @param {object} src source attributes (from the directive template)\n\t     */\n\t    function mergeTemplateAttributes(dst, src) {\n\t      var srcAttr = src.$attr,\n\t          dstAttr = dst.$attr,\n\t          $element = dst.$$element;\n\n\t      // reapply the old attributes to the new element\n\t      forEach(dst, function(value, key) {\n\t        if (key.charAt(0) != '$') {\n\t          if (src[key] && src[key] !== value) {\n\t            value += (key === 'style' ? ';' : ' ') + src[key];\n\t          }\n\t          dst.$set(key, value, true, srcAttr[key]);\n\t        }\n\t      });\n\n\t      // copy the new attributes on the old attrs object\n\t      forEach(src, function(value, key) {\n\t        if (key == 'class') {\n\t          safeAddClass($element, value);\n\t          dst['class'] = (dst['class'] ? dst['class'] + ' ' : '') + value;\n\t        } else if (key == 'style') {\n\t          $element.attr('style', $element.attr('style') + ';' + value);\n\t          dst['style'] = (dst['style'] ? dst['style'] + ';' : '') + value;\n\t          // `dst` will never contain hasOwnProperty as DOM parser won't let it.\n\t          // You will get an \"InvalidCharacterError: DOM Exception 5\" error if you\n\t          // have an attribute like \"has-own-property\" or \"data-has-own-property\", etc.\n\t        } else if (key.charAt(0) != '$' && !dst.hasOwnProperty(key)) {\n\t          dst[key] = value;\n\t          dstAttr[key] = srcAttr[key];\n\t        }\n\t      });\n\t    }\n\n\n\t    function compileTemplateUrl(directives, $compileNode, tAttrs,\n\t        $rootElement, childTranscludeFn, preLinkFns, postLinkFns, previousCompileContext) {\n\t      var linkQueue = [],\n\t          afterTemplateNodeLinkFn,\n\t          afterTemplateChildLinkFn,\n\t          beforeTemplateCompileNode = $compileNode[0],\n\t          origAsyncDirective = directives.shift(),\n\t          derivedSyncDirective = inherit(origAsyncDirective, {\n\t            templateUrl: null, transclude: null, replace: null, $$originalDirective: origAsyncDirective\n\t          }),\n\t          templateUrl = (isFunction(origAsyncDirective.templateUrl))\n\t              ? origAsyncDirective.templateUrl($compileNode, tAttrs)\n\t              : origAsyncDirective.templateUrl,\n\t          templateNamespace = origAsyncDirective.templateNamespace;\n\n\t      $compileNode.empty();\n\n\t      $templateRequest($sce.getTrustedResourceUrl(templateUrl))\n\t        .then(function(content) {\n\t          var compileNode, tempTemplateAttrs, $template, childBoundTranscludeFn;\n\n\t          content = denormalizeTemplate(content);\n\n\t          if (origAsyncDirective.replace) {\n\t            if (jqLiteIsTextNode(content)) {\n\t              $template = [];\n\t            } else {\n\t              $template = removeComments(wrapTemplate(templateNamespace, trim(content)));\n\t            }\n\t            compileNode = $template[0];\n\n\t            if ($template.length != 1 || compileNode.nodeType !== NODE_TYPE_ELEMENT) {\n\t              throw $compileMinErr('tplrt',\n\t                  \"Template for directive '{0}' must have exactly one root element. {1}\",\n\t                  origAsyncDirective.name, templateUrl);\n\t            }\n\n\t            tempTemplateAttrs = {$attr: {}};\n\t            replaceWith($rootElement, $compileNode, compileNode);\n\t            var templateDirectives = collectDirectives(compileNode, [], tempTemplateAttrs);\n\n\t            if (isObject(origAsyncDirective.scope)) {\n\t              markDirectivesAsIsolate(templateDirectives);\n\t            }\n\t            directives = templateDirectives.concat(directives);\n\t            mergeTemplateAttributes(tAttrs, tempTemplateAttrs);\n\t          } else {\n\t            compileNode = beforeTemplateCompileNode;\n\t            $compileNode.html(content);\n\t          }\n\n\t          directives.unshift(derivedSyncDirective);\n\n\t          afterTemplateNodeLinkFn = applyDirectivesToNode(directives, compileNode, tAttrs,\n\t              childTranscludeFn, $compileNode, origAsyncDirective, preLinkFns, postLinkFns,\n\t              previousCompileContext);\n\t          forEach($rootElement, function(node, i) {\n\t            if (node == compileNode) {\n\t              $rootElement[i] = $compileNode[0];\n\t            }\n\t          });\n\t          afterTemplateChildLinkFn = compileNodes($compileNode[0].childNodes, childTranscludeFn);\n\n\t          while (linkQueue.length) {\n\t            var scope = linkQueue.shift(),\n\t                beforeTemplateLinkNode = linkQueue.shift(),\n\t                linkRootElement = linkQueue.shift(),\n\t                boundTranscludeFn = linkQueue.shift(),\n\t                linkNode = $compileNode[0];\n\n\t            if (scope.$$destroyed) continue;\n\n\t            if (beforeTemplateLinkNode !== beforeTemplateCompileNode) {\n\t              var oldClasses = beforeTemplateLinkNode.className;\n\n\t              if (!(previousCompileContext.hasElementTranscludeDirective &&\n\t                  origAsyncDirective.replace)) {\n\t                // it was cloned therefore we have to clone as well.\n\t                linkNode = jqLiteClone(compileNode);\n\t              }\n\t              replaceWith(linkRootElement, jqLite(beforeTemplateLinkNode), linkNode);\n\n\t              // Copy in CSS classes from original node\n\t              safeAddClass(jqLite(linkNode), oldClasses);\n\t            }\n\t            if (afterTemplateNodeLinkFn.transcludeOnThisElement) {\n\t              childBoundTranscludeFn = createBoundTranscludeFn(scope, afterTemplateNodeLinkFn.transclude, boundTranscludeFn);\n\t            } else {\n\t              childBoundTranscludeFn = boundTranscludeFn;\n\t            }\n\t            afterTemplateNodeLinkFn(afterTemplateChildLinkFn, scope, linkNode, $rootElement,\n\t              childBoundTranscludeFn);\n\t          }\n\t          linkQueue = null;\n\t        });\n\n\t      return function delayedNodeLinkFn(ignoreChildLinkFn, scope, node, rootElement, boundTranscludeFn) {\n\t        var childBoundTranscludeFn = boundTranscludeFn;\n\t        if (scope.$$destroyed) return;\n\t        if (linkQueue) {\n\t          linkQueue.push(scope,\n\t                         node,\n\t                         rootElement,\n\t                         childBoundTranscludeFn);\n\t        } else {\n\t          if (afterTemplateNodeLinkFn.transcludeOnThisElement) {\n\t            childBoundTranscludeFn = createBoundTranscludeFn(scope, afterTemplateNodeLinkFn.transclude, boundTranscludeFn);\n\t          }\n\t          afterTemplateNodeLinkFn(afterTemplateChildLinkFn, scope, node, rootElement, childBoundTranscludeFn);\n\t        }\n\t      };\n\t    }\n\n\n\t    /**\n\t     * Sorting function for bound directives.\n\t     */\n\t    function byPriority(a, b) {\n\t      var diff = b.priority - a.priority;\n\t      if (diff !== 0) return diff;\n\t      if (a.name !== b.name) return (a.name < b.name) ? -1 : 1;\n\t      return a.index - b.index;\n\t    }\n\n\n\t    function assertNoDuplicate(what, previousDirective, directive, element) {\n\t      if (previousDirective) {\n\t        throw $compileMinErr('multidir', 'Multiple directives [{0}, {1}] asking for {2} on: {3}',\n\t            previousDirective.name, directive.name, what, startingTag(element));\n\t      }\n\t    }\n\n\n\t    function addTextInterpolateDirective(directives, text) {\n\t      var interpolateFn = $interpolate(text, true);\n\t      if (interpolateFn) {\n\t        directives.push({\n\t          priority: 0,\n\t          compile: function textInterpolateCompileFn(templateNode) {\n\t            var templateNodeParent = templateNode.parent(),\n\t                hasCompileParent = !!templateNodeParent.length;\n\n\t            // When transcluding a template that has bindings in the root\n\t            // we don't have a parent and thus need to add the class during linking fn.\n\t            if (hasCompileParent) compile.$$addBindingClass(templateNodeParent);\n\n\t            return function textInterpolateLinkFn(scope, node) {\n\t              var parent = node.parent();\n\t              if (!hasCompileParent) compile.$$addBindingClass(parent);\n\t              compile.$$addBindingInfo(parent, interpolateFn.expressions);\n\t              scope.$watch(interpolateFn, function interpolateFnWatchAction(value) {\n\t                node[0].nodeValue = value;\n\t              });\n\t            };\n\t          }\n\t        });\n\t      }\n\t    }\n\n\n\t    function wrapTemplate(type, template) {\n\t      type = lowercase(type || 'html');\n\t      switch (type) {\n\t      case 'svg':\n\t      case 'math':\n\t        var wrapper = document.createElement('div');\n\t        wrapper.innerHTML = '<' + type + '>' + template + '</' + type + '>';\n\t        return wrapper.childNodes[0].childNodes;\n\t      default:\n\t        return template;\n\t      }\n\t    }\n\n\n\t    function getTrustedContext(node, attrNormalizedName) {\n\t      if (attrNormalizedName == \"srcdoc\") {\n\t        return $sce.HTML;\n\t      }\n\t      var tag = nodeName_(node);\n\t      // maction[xlink:href] can source SVG.  It's not limited to <maction>.\n\t      if (attrNormalizedName == \"xlinkHref\" ||\n\t          (tag == \"form\" && attrNormalizedName == \"action\") ||\n\t          (tag != \"img\" && (attrNormalizedName == \"src\" ||\n\t                            attrNormalizedName == \"ngSrc\"))) {\n\t        return $sce.RESOURCE_URL;\n\t      }\n\t    }\n\n\n\t    function addAttrInterpolateDirective(node, directives, value, name, allOrNothing) {\n\t      var trustedContext = getTrustedContext(node, name);\n\t      allOrNothing = ALL_OR_NOTHING_ATTRS[name] || allOrNothing;\n\n\t      var interpolateFn = $interpolate(value, true, trustedContext, allOrNothing);\n\n\t      // no interpolation found -> ignore\n\t      if (!interpolateFn) return;\n\n\n\t      if (name === \"multiple\" && nodeName_(node) === \"select\") {\n\t        throw $compileMinErr(\"selmulti\",\n\t            \"Binding to the 'multiple' attribute is not supported. Element: {0}\",\n\t            startingTag(node));\n\t      }\n\n\t      directives.push({\n\t        priority: 100,\n\t        compile: function() {\n\t            return {\n\t              pre: function attrInterpolatePreLinkFn(scope, element, attr) {\n\t                var $$observers = (attr.$$observers || (attr.$$observers = {}));\n\n\t                if (EVENT_HANDLER_ATTR_REGEXP.test(name)) {\n\t                  throw $compileMinErr('nodomevents',\n\t                      \"Interpolations for HTML DOM event attributes are disallowed.  Please use the \" +\n\t                          \"ng- versions (such as ng-click instead of onclick) instead.\");\n\t                }\n\n\t                // If the attribute has changed since last $interpolate()ed\n\t                var newValue = attr[name];\n\t                if (newValue !== value) {\n\t                  // we need to interpolate again since the attribute value has been updated\n\t                  // (e.g. by another directive's compile function)\n\t                  // ensure unset/empty values make interpolateFn falsy\n\t                  interpolateFn = newValue && $interpolate(newValue, true, trustedContext, allOrNothing);\n\t                  value = newValue;\n\t                }\n\n\t                // if attribute was updated so that there is no interpolation going on we don't want to\n\t                // register any observers\n\t                if (!interpolateFn) return;\n\n\t                // initialize attr object so that it's ready in case we need the value for isolate\n\t                // scope initialization, otherwise the value would not be available from isolate\n\t                // directive's linking fn during linking phase\n\t                attr[name] = interpolateFn(scope);\n\n\t                ($$observers[name] || ($$observers[name] = [])).$$inter = true;\n\t                (attr.$$observers && attr.$$observers[name].$$scope || scope).\n\t                  $watch(interpolateFn, function interpolateFnWatchAction(newValue, oldValue) {\n\t                    //special case for class attribute addition + removal\n\t                    //so that class changes can tap into the animation\n\t                    //hooks provided by the $animate service. Be sure to\n\t                    //skip animations when the first digest occurs (when\n\t                    //both the new and the old values are the same) since\n\t                    //the CSS classes are the non-interpolated values\n\t                    if (name === 'class' && newValue != oldValue) {\n\t                      attr.$updateClass(newValue, oldValue);\n\t                    } else {\n\t                      attr.$set(name, newValue);\n\t                    }\n\t                  });\n\t              }\n\t            };\n\t          }\n\t      });\n\t    }\n\n\n\t    /**\n\t     * This is a special jqLite.replaceWith, which can replace items which\n\t     * have no parents, provided that the containing jqLite collection is provided.\n\t     *\n\t     * @param {JqLite=} $rootElement The root of the compile tree. Used so that we can replace nodes\n\t     *                               in the root of the tree.\n\t     * @param {JqLite} elementsToRemove The jqLite element which we are going to replace. We keep\n\t     *                                  the shell, but replace its DOM node reference.\n\t     * @param {Node} newNode The new DOM node.\n\t     */\n\t    function replaceWith($rootElement, elementsToRemove, newNode) {\n\t      var firstElementToRemove = elementsToRemove[0],\n\t          removeCount = elementsToRemove.length,\n\t          parent = firstElementToRemove.parentNode,\n\t          i, ii;\n\n\t      if ($rootElement) {\n\t        for (i = 0, ii = $rootElement.length; i < ii; i++) {\n\t          if ($rootElement[i] == firstElementToRemove) {\n\t            $rootElement[i++] = newNode;\n\t            for (var j = i, j2 = j + removeCount - 1,\n\t                     jj = $rootElement.length;\n\t                 j < jj; j++, j2++) {\n\t              if (j2 < jj) {\n\t                $rootElement[j] = $rootElement[j2];\n\t              } else {\n\t                delete $rootElement[j];\n\t              }\n\t            }\n\t            $rootElement.length -= removeCount - 1;\n\n\t            // If the replaced element is also the jQuery .context then replace it\n\t            // .context is a deprecated jQuery api, so we should set it only when jQuery set it\n\t            // http://api.jquery.com/context/\n\t            if ($rootElement.context === firstElementToRemove) {\n\t              $rootElement.context = newNode;\n\t            }\n\t            break;\n\t          }\n\t        }\n\t      }\n\n\t      if (parent) {\n\t        parent.replaceChild(newNode, firstElementToRemove);\n\t      }\n\n\t      // TODO(perf): what's this document fragment for? is it needed? can we at least reuse it?\n\t      var fragment = document.createDocumentFragment();\n\t      fragment.appendChild(firstElementToRemove);\n\n\t      // Copy over user data (that includes Angular's $scope etc.). Don't copy private\n\t      // data here because there's no public interface in jQuery to do that and copying over\n\t      // event listeners (which is the main use of private data) wouldn't work anyway.\n\t      jqLite(newNode).data(jqLite(firstElementToRemove).data());\n\n\t      // Remove data of the replaced element. We cannot just call .remove()\n\t      // on the element it since that would deallocate scope that is needed\n\t      // for the new node. Instead, remove the data \"manually\".\n\t      if (!jQuery) {\n\t        delete jqLite.cache[firstElementToRemove[jqLite.expando]];\n\t      } else {\n\t        // jQuery 2.x doesn't expose the data storage. Use jQuery.cleanData to clean up after\n\t        // the replaced element. The cleanData version monkey-patched by Angular would cause\n\t        // the scope to be trashed and we do need the very same scope to work with the new\n\t        // element. However, we cannot just cache the non-patched version and use it here as\n\t        // that would break if another library patches the method after Angular does (one\n\t        // example is jQuery UI). Instead, set a flag indicating scope destroying should be\n\t        // skipped this one time.\n\t        skipDestroyOnNextJQueryCleanData = true;\n\t        jQuery.cleanData([firstElementToRemove]);\n\t      }\n\n\t      for (var k = 1, kk = elementsToRemove.length; k < kk; k++) {\n\t        var element = elementsToRemove[k];\n\t        jqLite(element).remove(); // must do this way to clean up expando\n\t        fragment.appendChild(element);\n\t        delete elementsToRemove[k];\n\t      }\n\n\t      elementsToRemove[0] = newNode;\n\t      elementsToRemove.length = 1;\n\t    }\n\n\n\t    function cloneAndAnnotateFn(fn, annotation) {\n\t      return extend(function() { return fn.apply(null, arguments); }, fn, annotation);\n\t    }\n\n\n\t    function invokeLinkFn(linkFn, scope, $element, attrs, controllers, transcludeFn) {\n\t      try {\n\t        linkFn(scope, $element, attrs, controllers, transcludeFn);\n\t      } catch (e) {\n\t        $exceptionHandler(e, startingTag($element));\n\t      }\n\t    }\n\t  }];\n\t}\n\n\tvar PREFIX_REGEXP = /^((?:x|data)[\\:\\-_])/i;\n\t/**\n\t * Converts all accepted directives format into proper directive name.\n\t * @param name Name to normalize\n\t */\n\tfunction directiveNormalize(name) {\n\t  return camelCase(name.replace(PREFIX_REGEXP, ''));\n\t}\n\n\t/**\n\t * @ngdoc type\n\t * @name $compile.directive.Attributes\n\t *\n\t * @description\n\t * A shared object between directive compile / linking functions which contains normalized DOM\n\t * element attributes. The values reflect current binding state `{{ }}`. The normalization is\n\t * needed since all of these are treated as equivalent in Angular:\n\t *\n\t * ```\n\t *    <span ng:bind=\"a\" ng-bind=\"a\" data-ng-bind=\"a\" x-ng-bind=\"a\">\n\t * ```\n\t */\n\n\t/**\n\t * @ngdoc property\n\t * @name $compile.directive.Attributes#$attr\n\t *\n\t * @description\n\t * A map of DOM element attribute names to the normalized name. This is\n\t * needed to do reverse lookup from normalized name back to actual name.\n\t */\n\n\n\t/**\n\t * @ngdoc method\n\t * @name $compile.directive.Attributes#$set\n\t * @kind function\n\t *\n\t * @description\n\t * Set DOM element attribute value.\n\t *\n\t *\n\t * @param {string} name Normalized element attribute name of the property to modify. The name is\n\t *          reverse-translated using the {@link ng.$compile.directive.Attributes#$attr $attr}\n\t *          property to the original name.\n\t * @param {string} value Value to set the attribute to. The value can be an interpolated string.\n\t */\n\n\n\n\t/**\n\t * Closure compiler type information\n\t */\n\n\tfunction nodesetLinkingFn(\n\t  /* angular.Scope */ scope,\n\t  /* NodeList */ nodeList,\n\t  /* Element */ rootElement,\n\t  /* function(Function) */ boundTranscludeFn\n\t) {}\n\n\tfunction directiveLinkingFn(\n\t  /* nodesetLinkingFn */ nodesetLinkingFn,\n\t  /* angular.Scope */ scope,\n\t  /* Node */ node,\n\t  /* Element */ rootElement,\n\t  /* function(Function) */ boundTranscludeFn\n\t) {}\n\n\tfunction tokenDifference(str1, str2) {\n\t  var values = '',\n\t      tokens1 = str1.split(/\\s+/),\n\t      tokens2 = str2.split(/\\s+/);\n\n\t  outer:\n\t  for (var i = 0; i < tokens1.length; i++) {\n\t    var token = tokens1[i];\n\t    for (var j = 0; j < tokens2.length; j++) {\n\t      if (token == tokens2[j]) continue outer;\n\t    }\n\t    values += (values.length > 0 ? ' ' : '') + token;\n\t  }\n\t  return values;\n\t}\n\n\tfunction removeComments(jqNodes) {\n\t  jqNodes = jqLite(jqNodes);\n\t  var i = jqNodes.length;\n\n\t  if (i <= 1) {\n\t    return jqNodes;\n\t  }\n\n\t  while (i--) {\n\t    var node = jqNodes[i];\n\t    if (node.nodeType === NODE_TYPE_COMMENT) {\n\t      splice.call(jqNodes, i, 1);\n\t    }\n\t  }\n\t  return jqNodes;\n\t}\n\n\tvar $controllerMinErr = minErr('$controller');\n\n\t/**\n\t * @ngdoc provider\n\t * @name $controllerProvider\n\t * @description\n\t * The {@link ng.$controller $controller service} is used by Angular to create new\n\t * controllers.\n\t *\n\t * This provider allows controller registration via the\n\t * {@link ng.$controllerProvider#register register} method.\n\t */\n\tfunction $ControllerProvider() {\n\t  var controllers = {},\n\t      globals = false,\n\t      CNTRL_REG = /^(\\S+)(\\s+as\\s+(\\w+))?$/;\n\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $controllerProvider#register\n\t   * @param {string|Object} name Controller name, or an object map of controllers where the keys are\n\t   *    the names and the values are the constructors.\n\t   * @param {Function|Array} constructor Controller constructor fn (optionally decorated with DI\n\t   *    annotations in the array notation).\n\t   */\n\t  this.register = function(name, constructor) {\n\t    assertNotHasOwnProperty(name, 'controller');\n\t    if (isObject(name)) {\n\t      extend(controllers, name);\n\t    } else {\n\t      controllers[name] = constructor;\n\t    }\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $controllerProvider#allowGlobals\n\t   * @description If called, allows `$controller` to find controller constructors on `window`\n\t   */\n\t  this.allowGlobals = function() {\n\t    globals = true;\n\t  };\n\n\n\t  this.$get = ['$injector', '$window', function($injector, $window) {\n\n\t    /**\n\t     * @ngdoc service\n\t     * @name $controller\n\t     * @requires $injector\n\t     *\n\t     * @param {Function|string} constructor If called with a function then it's considered to be the\n\t     *    controller constructor function. Otherwise it's considered to be a string which is used\n\t     *    to retrieve the controller constructor using the following steps:\n\t     *\n\t     *    * check if a controller with given name is registered via `$controllerProvider`\n\t     *    * check if evaluating the string on the current scope returns a constructor\n\t     *    * if $controllerProvider#allowGlobals, check `window[constructor]` on the global\n\t     *      `window` object (not recommended)\n\t     *\n\t     *    The string can use the `controller as property` syntax, where the controller instance is published\n\t     *    as the specified property on the `scope`; the `scope` must be injected into `locals` param for this\n\t     *    to work correctly.\n\t     *\n\t     * @param {Object} locals Injection locals for Controller.\n\t     * @return {Object} Instance of given controller.\n\t     *\n\t     * @description\n\t     * `$controller` service is responsible for instantiating controllers.\n\t     *\n\t     * It's just a simple call to {@link auto.$injector $injector}, but extracted into\n\t     * a service, so that one can override this service with [BC version](https://gist.github.com/1649788).\n\t     */\n\t    return function(expression, locals, later, ident) {\n\t      // PRIVATE API:\n\t      //   param `later` --- indicates that the controller's constructor is invoked at a later time.\n\t      //                     If true, $controller will allocate the object with the correct\n\t      //                     prototype chain, but will not invoke the controller until a returned\n\t      //                     callback is invoked.\n\t      //   param `ident` --- An optional label which overrides the label parsed from the controller\n\t      //                     expression, if any.\n\t      var instance, match, constructor, identifier;\n\t      later = later === true;\n\t      if (ident && isString(ident)) {\n\t        identifier = ident;\n\t      }\n\n\t      if (isString(expression)) {\n\t        match = expression.match(CNTRL_REG);\n\t        if (!match) {\n\t          throw $controllerMinErr('ctrlfmt',\n\t            \"Badly formed controller string '{0}'. \" +\n\t            \"Must match `__name__ as __id__` or `__name__`.\", expression);\n\t        }\n\t        constructor = match[1],\n\t        identifier = identifier || match[3];\n\t        expression = controllers.hasOwnProperty(constructor)\n\t            ? controllers[constructor]\n\t            : getter(locals.$scope, constructor, true) ||\n\t                (globals ? getter($window, constructor, true) : undefined);\n\n\t        assertArgFn(expression, constructor, true);\n\t      }\n\n\t      if (later) {\n\t        // Instantiate controller later:\n\t        // This machinery is used to create an instance of the object before calling the\n\t        // controller's constructor itself.\n\t        //\n\t        // This allows properties to be added to the controller before the constructor is\n\t        // invoked. Primarily, this is used for isolate scope bindings in $compile.\n\t        //\n\t        // This feature is not intended for use by applications, and is thus not documented\n\t        // publicly.\n\t        // Object creation: http://jsperf.com/create-constructor/2\n\t        var controllerPrototype = (isArray(expression) ?\n\t          expression[expression.length - 1] : expression).prototype;\n\t        instance = Object.create(controllerPrototype || null);\n\n\t        if (identifier) {\n\t          addIdentifier(locals, identifier, instance, constructor || expression.name);\n\t        }\n\n\t        return extend(function() {\n\t          $injector.invoke(expression, instance, locals, constructor);\n\t          return instance;\n\t        }, {\n\t          instance: instance,\n\t          identifier: identifier\n\t        });\n\t      }\n\n\t      instance = $injector.instantiate(expression, locals, constructor);\n\n\t      if (identifier) {\n\t        addIdentifier(locals, identifier, instance, constructor || expression.name);\n\t      }\n\n\t      return instance;\n\t    };\n\n\t    function addIdentifier(locals, identifier, instance, name) {\n\t      if (!(locals && isObject(locals.$scope))) {\n\t        throw minErr('$controller')('noscp',\n\t          \"Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.\",\n\t          name, identifier);\n\t      }\n\n\t      locals.$scope[identifier] = instance;\n\t    }\n\t  }];\n\t}\n\n\t/**\n\t * @ngdoc service\n\t * @name $document\n\t * @requires $window\n\t *\n\t * @description\n\t * A {@link angular.element jQuery or jqLite} wrapper for the browser's `window.document` object.\n\t *\n\t * @example\n\t   <example module=\"documentExample\">\n\t     <file name=\"index.html\">\n\t       <div ng-controller=\"ExampleController\">\n\t         <p>$document title: <b ng-bind=\"title\"></b></p>\n\t         <p>window.document title: <b ng-bind=\"windowTitle\"></b></p>\n\t       </div>\n\t     </file>\n\t     <file name=\"script.js\">\n\t       angular.module('documentExample', [])\n\t         .controller('ExampleController', ['$scope', '$document', function($scope, $document) {\n\t           $scope.title = $document[0].title;\n\t           $scope.windowTitle = angular.element(window.document)[0].title;\n\t         }]);\n\t     </file>\n\t   </example>\n\t */\n\tfunction $DocumentProvider() {\n\t  this.$get = ['$window', function(window) {\n\t    return jqLite(window.document);\n\t  }];\n\t}\n\n\t/**\n\t * @ngdoc service\n\t * @name $exceptionHandler\n\t * @requires ng.$log\n\t *\n\t * @description\n\t * Any uncaught exception in angular expressions is delegated to this service.\n\t * The default implementation simply delegates to `$log.error` which logs it into\n\t * the browser console.\n\t *\n\t * In unit tests, if `angular-mocks.js` is loaded, this service is overridden by\n\t * {@link ngMock.$exceptionHandler mock $exceptionHandler} which aids in testing.\n\t *\n\t * ## Example:\n\t *\n\t * ```js\n\t *   angular.module('exceptionOverride', []).factory('$exceptionHandler', function() {\n\t *     return function(exception, cause) {\n\t *       exception.message += ' (caused by \"' + cause + '\")';\n\t *       throw exception;\n\t *     };\n\t *   });\n\t * ```\n\t *\n\t * This example will override the normal action of `$exceptionHandler`, to make angular\n\t * exceptions fail hard when they happen, instead of just logging to the console.\n\t *\n\t * <hr />\n\t * Note, that code executed in event-listeners (even those registered using jqLite's `on`/`bind`\n\t * methods) does not delegate exceptions to the {@link ng.$exceptionHandler $exceptionHandler}\n\t * (unless executed during a digest).\n\t *\n\t * If you wish, you can manually delegate exceptions, e.g.\n\t * `try { ... } catch(e) { $exceptionHandler(e); }`\n\t *\n\t * @param {Error} exception Exception associated with the error.\n\t * @param {string=} cause optional information about the context in which\n\t *       the error was thrown.\n\t *\n\t */\n\tfunction $ExceptionHandlerProvider() {\n\t  this.$get = ['$log', function($log) {\n\t    return function(exception, cause) {\n\t      $log.error.apply($log, arguments);\n\t    };\n\t  }];\n\t}\n\n\tvar APPLICATION_JSON = 'application/json';\n\tvar CONTENT_TYPE_APPLICATION_JSON = {'Content-Type': APPLICATION_JSON + ';charset=utf-8'};\n\tvar JSON_START = /^\\[|^\\{(?!\\{)/;\n\tvar JSON_ENDS = {\n\t  '[': /]$/,\n\t  '{': /}$/\n\t};\n\tvar JSON_PROTECTION_PREFIX = /^\\)\\]\\}',?\\n/;\n\n\tfunction defaultHttpResponseTransform(data, headers) {\n\t  if (isString(data)) {\n\t    // Strip json vulnerability protection prefix and trim whitespace\n\t    var tempData = data.replace(JSON_PROTECTION_PREFIX, '').trim();\n\n\t    if (tempData) {\n\t      var contentType = headers('Content-Type');\n\t      if ((contentType && (contentType.indexOf(APPLICATION_JSON) === 0)) || isJsonLike(tempData)) {\n\t        data = fromJson(tempData);\n\t      }\n\t    }\n\t  }\n\n\t  return data;\n\t}\n\n\tfunction isJsonLike(str) {\n\t    var jsonStart = str.match(JSON_START);\n\t    return jsonStart && JSON_ENDS[jsonStart[0]].test(str);\n\t}\n\n\t/**\n\t * Parse headers into key value object\n\t *\n\t * @param {string} headers Raw headers as a string\n\t * @returns {Object} Parsed headers as key value object\n\t */\n\tfunction parseHeaders(headers) {\n\t  var parsed = createMap(), key, val, i;\n\n\t  if (!headers) return parsed;\n\n\t  forEach(headers.split('\\n'), function(line) {\n\t    i = line.indexOf(':');\n\t    key = lowercase(trim(line.substr(0, i)));\n\t    val = trim(line.substr(i + 1));\n\n\t    if (key) {\n\t      parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n\t    }\n\t  });\n\n\t  return parsed;\n\t}\n\n\n\t/**\n\t * Returns a function that provides access to parsed headers.\n\t *\n\t * Headers are lazy parsed when first requested.\n\t * @see parseHeaders\n\t *\n\t * @param {(string|Object)} headers Headers to provide access to.\n\t * @returns {function(string=)} Returns a getter function which if called with:\n\t *\n\t *   - if called with single an argument returns a single header value or null\n\t *   - if called with no arguments returns an object containing all headers.\n\t */\n\tfunction headersGetter(headers) {\n\t  var headersObj = isObject(headers) ? headers : undefined;\n\n\t  return function(name) {\n\t    if (!headersObj) headersObj =  parseHeaders(headers);\n\n\t    if (name) {\n\t      var value = headersObj[lowercase(name)];\n\t      if (value === void 0) {\n\t        value = null;\n\t      }\n\t      return value;\n\t    }\n\n\t    return headersObj;\n\t  };\n\t}\n\n\n\t/**\n\t * Chain all given functions\n\t *\n\t * This function is used for both request and response transforming\n\t *\n\t * @param {*} data Data to transform.\n\t * @param {function(string=)} headers HTTP headers getter fn.\n\t * @param {number} status HTTP status code of the response.\n\t * @param {(Function|Array.<Function>)} fns Function or an array of functions.\n\t * @returns {*} Transformed data.\n\t */\n\tfunction transformData(data, headers, status, fns) {\n\t  if (isFunction(fns))\n\t    return fns(data, headers, status);\n\n\t  forEach(fns, function(fn) {\n\t    data = fn(data, headers, status);\n\t  });\n\n\t  return data;\n\t}\n\n\n\tfunction isSuccess(status) {\n\t  return 200 <= status && status < 300;\n\t}\n\n\n\t/**\n\t * @ngdoc provider\n\t * @name $httpProvider\n\t * @description\n\t * Use `$httpProvider` to change the default behavior of the {@link ng.$http $http} service.\n\t * */\n\tfunction $HttpProvider() {\n\t  /**\n\t   * @ngdoc property\n\t   * @name $httpProvider#defaults\n\t   * @description\n\t   *\n\t   * Object containing default values for all {@link ng.$http $http} requests.\n\t   *\n\t   * - **`defaults.cache`** - {Object} - an object built with {@link ng.$cacheFactory `$cacheFactory`}\n\t   * that will provide the cache for all requests who set their `cache` property to `true`.\n\t   * If you set the `default.cache = false` then only requests that specify their own custom\n\t   * cache object will be cached. See {@link $http#caching $http Caching} for more information.\n\t   *\n\t   * - **`defaults.xsrfCookieName`** - {string} - Name of cookie containing the XSRF token.\n\t   * Defaults value is `'XSRF-TOKEN'`.\n\t   *\n\t   * - **`defaults.xsrfHeaderName`** - {string} - Name of HTTP header to populate with the\n\t   * XSRF token. Defaults value is `'X-XSRF-TOKEN'`.\n\t   *\n\t   * - **`defaults.headers`** - {Object} - Default headers for all $http requests.\n\t   * Refer to {@link ng.$http#setting-http-headers $http} for documentation on\n\t   * setting default headers.\n\t   *     - **`defaults.headers.common`**\n\t   *     - **`defaults.headers.post`**\n\t   *     - **`defaults.headers.put`**\n\t   *     - **`defaults.headers.patch`**\n\t   *\n\t   **/\n\t  var defaults = this.defaults = {\n\t    // transform incoming response data\n\t    transformResponse: [defaultHttpResponseTransform],\n\n\t    // transform outgoing request data\n\t    transformRequest: [function(d) {\n\t      return isObject(d) && !isFile(d) && !isBlob(d) && !isFormData(d) ? toJson(d) : d;\n\t    }],\n\n\t    // default headers\n\t    headers: {\n\t      common: {\n\t        'Accept': 'application/json, text/plain, */*'\n\t      },\n\t      post:   shallowCopy(CONTENT_TYPE_APPLICATION_JSON),\n\t      put:    shallowCopy(CONTENT_TYPE_APPLICATION_JSON),\n\t      patch:  shallowCopy(CONTENT_TYPE_APPLICATION_JSON)\n\t    },\n\n\t    xsrfCookieName: 'XSRF-TOKEN',\n\t    xsrfHeaderName: 'X-XSRF-TOKEN'\n\t  };\n\n\t  var useApplyAsync = false;\n\t  /**\n\t   * @ngdoc method\n\t   * @name $httpProvider#useApplyAsync\n\t   * @description\n\t   *\n\t   * Configure $http service to combine processing of multiple http responses received at around\n\t   * the same time via {@link ng.$rootScope.Scope#$applyAsync $rootScope.$applyAsync}. This can result in\n\t   * significant performance improvement for bigger applications that make many HTTP requests\n\t   * concurrently (common during application bootstrap).\n\t   *\n\t   * Defaults to false. If no value is specifed, returns the current configured value.\n\t   *\n\t   * @param {boolean=} value If true, when requests are loaded, they will schedule a deferred\n\t   *    \"apply\" on the next tick, giving time for subsequent requests in a roughly ~10ms window\n\t   *    to load and share the same digest cycle.\n\t   *\n\t   * @returns {boolean|Object} If a value is specified, returns the $httpProvider for chaining.\n\t   *    otherwise, returns the current configured value.\n\t   **/\n\t  this.useApplyAsync = function(value) {\n\t    if (isDefined(value)) {\n\t      useApplyAsync = !!value;\n\t      return this;\n\t    }\n\t    return useApplyAsync;\n\t  };\n\n\t  /**\n\t   * @ngdoc property\n\t   * @name $httpProvider#interceptors\n\t   * @description\n\t   *\n\t   * Array containing service factories for all synchronous or asynchronous {@link ng.$http $http}\n\t   * pre-processing of request or postprocessing of responses.\n\t   *\n\t   * These service factories are ordered by request, i.e. they are applied in the same order as the\n\t   * array, on request, but reverse order, on response.\n\t   *\n\t   * {@link ng.$http#interceptors Interceptors detailed info}\n\t   **/\n\t  var interceptorFactories = this.interceptors = [];\n\n\t  this.$get = ['$httpBackend', '$browser', '$cacheFactory', '$rootScope', '$q', '$injector',\n\t      function($httpBackend, $browser, $cacheFactory, $rootScope, $q, $injector) {\n\n\t    var defaultCache = $cacheFactory('$http');\n\n\t    /**\n\t     * Interceptors stored in reverse order. Inner interceptors before outer interceptors.\n\t     * The reversal is needed so that we can build up the interception chain around the\n\t     * server request.\n\t     */\n\t    var reversedInterceptors = [];\n\n\t    forEach(interceptorFactories, function(interceptorFactory) {\n\t      reversedInterceptors.unshift(isString(interceptorFactory)\n\t          ? $injector.get(interceptorFactory) : $injector.invoke(interceptorFactory));\n\t    });\n\n\t    /**\n\t     * @ngdoc service\n\t     * @kind function\n\t     * @name $http\n\t     * @requires ng.$httpBackend\n\t     * @requires $cacheFactory\n\t     * @requires $rootScope\n\t     * @requires $q\n\t     * @requires $injector\n\t     *\n\t     * @description\n\t     * The `$http` service is a core Angular service that facilitates communication with the remote\n\t     * HTTP servers via the browser's [XMLHttpRequest](https://developer.mozilla.org/en/xmlhttprequest)\n\t     * object or via [JSONP](http://en.wikipedia.org/wiki/JSONP).\n\t     *\n\t     * For unit testing applications that use `$http` service, see\n\t     * {@link ngMock.$httpBackend $httpBackend mock}.\n\t     *\n\t     * For a higher level of abstraction, please check out the {@link ngResource.$resource\n\t     * $resource} service.\n\t     *\n\t     * The $http API is based on the {@link ng.$q deferred/promise APIs} exposed by\n\t     * the $q service. While for simple usage patterns this doesn't matter much, for advanced usage\n\t     * it is important to familiarize yourself with these APIs and the guarantees they provide.\n\t     *\n\t     *\n\t     * ## General usage\n\t     * The `$http` service is a function which takes a single argument — a configuration object —\n\t     * that is used to generate an HTTP request and returns  a {@link ng.$q promise}\n\t     * with two $http specific methods: `success` and `error`.\n\t     *\n\t     * ```js\n\t     *   // Simple GET request example :\n\t     *   $http.get('/someUrl').\n\t     *     success(function(data, status, headers, config) {\n\t     *       // this callback will be called asynchronously\n\t     *       // when the response is available\n\t     *     }).\n\t     *     error(function(data, status, headers, config) {\n\t     *       // called asynchronously if an error occurs\n\t     *       // or server returns response with an error status.\n\t     *     });\n\t     * ```\n\t     *\n\t     * ```js\n\t     *   // Simple POST request example (passing data) :\n\t     *   $http.post('/someUrl', {msg:'hello word!'}).\n\t     *     success(function(data, status, headers, config) {\n\t     *       // this callback will be called asynchronously\n\t     *       // when the response is available\n\t     *     }).\n\t     *     error(function(data, status, headers, config) {\n\t     *       // called asynchronously if an error occurs\n\t     *       // or server returns response with an error status.\n\t     *     });\n\t     * ```\n\t     *\n\t     *\n\t     * Since the returned value of calling the $http function is a `promise`, you can also use\n\t     * the `then` method to register callbacks, and these callbacks will receive a single argument –\n\t     * an object representing the response. See the API signature and type info below for more\n\t     * details.\n\t     *\n\t     * A response status code between 200 and 299 is considered a success status and\n\t     * will result in the success callback being called. Note that if the response is a redirect,\n\t     * XMLHttpRequest will transparently follow it, meaning that the error callback will not be\n\t     * called for such responses.\n\t     *\n\t     * ## Writing Unit Tests that use $http\n\t     * When unit testing (using {@link ngMock ngMock}), it is necessary to call\n\t     * {@link ngMock.$httpBackend#flush $httpBackend.flush()} to flush each pending\n\t     * request using trained responses.\n\t     *\n\t     * ```\n\t     * $httpBackend.expectGET(...);\n\t     * $http.get(...);\n\t     * $httpBackend.flush();\n\t     * ```\n\t     *\n\t     * ## Shortcut methods\n\t     *\n\t     * Shortcut methods are also available. All shortcut methods require passing in the URL, and\n\t     * request data must be passed in for POST/PUT requests.\n\t     *\n\t     * ```js\n\t     *   $http.get('/someUrl').success(successCallback);\n\t     *   $http.post('/someUrl', data).success(successCallback);\n\t     * ```\n\t     *\n\t     * Complete list of shortcut methods:\n\t     *\n\t     * - {@link ng.$http#get $http.get}\n\t     * - {@link ng.$http#head $http.head}\n\t     * - {@link ng.$http#post $http.post}\n\t     * - {@link ng.$http#put $http.put}\n\t     * - {@link ng.$http#delete $http.delete}\n\t     * - {@link ng.$http#jsonp $http.jsonp}\n\t     * - {@link ng.$http#patch $http.patch}\n\t     *\n\t     *\n\t     * ## Setting HTTP Headers\n\t     *\n\t     * The $http service will automatically add certain HTTP headers to all requests. These defaults\n\t     * can be fully configured by accessing the `$httpProvider.defaults.headers` configuration\n\t     * object, which currently contains this default configuration:\n\t     *\n\t     * - `$httpProvider.defaults.headers.common` (headers that are common for all requests):\n\t     *   - `Accept: application/json, text/plain, * / *`\n\t     * - `$httpProvider.defaults.headers.post`: (header defaults for POST requests)\n\t     *   - `Content-Type: application/json`\n\t     * - `$httpProvider.defaults.headers.put` (header defaults for PUT requests)\n\t     *   - `Content-Type: application/json`\n\t     *\n\t     * To add or overwrite these defaults, simply add or remove a property from these configuration\n\t     * objects. To add headers for an HTTP method other than POST or PUT, simply add a new object\n\t     * with the lowercased HTTP method name as the key, e.g.\n\t     * `$httpProvider.defaults.headers.get = { 'My-Header' : 'value' }.\n\t     *\n\t     * The defaults can also be set at runtime via the `$http.defaults` object in the same\n\t     * fashion. For example:\n\t     *\n\t     * ```\n\t     * module.run(function($http) {\n\t     *   $http.defaults.headers.common.Authorization = 'Basic YmVlcDpib29w'\n\t     * });\n\t     * ```\n\t     *\n\t     * In addition, you can supply a `headers` property in the config object passed when\n\t     * calling `$http(config)`, which overrides the defaults without changing them globally.\n\t     *\n\t     * To explicitly remove a header automatically added via $httpProvider.defaults.headers on a per request basis,\n\t     * Use the `headers` property, setting the desired header to `undefined`. For example:\n\t     *\n\t     * ```js\n\t     * var req = {\n\t     *  method: 'POST',\n\t     *  url: 'http://example.com',\n\t     *  headers: {\n\t     *    'Content-Type': undefined\n\t     *  },\n\t     *  data: { test: 'test' },\n\t     * }\n\t     *\n\t     * $http(req).success(function(){...}).error(function(){...});\n\t     * ```\n\t     *\n\t     * ## Transforming Requests and Responses\n\t     *\n\t     * Both requests and responses can be transformed using transformation functions: `transformRequest`\n\t     * and `transformResponse`. These properties can be a single function that returns\n\t     * the transformed value (`function(data, headersGetter, status)`) or an array of such transformation functions,\n\t     * which allows you to `push` or `unshift` a new transformation function into the transformation chain.\n\t     *\n\t     * ### Default Transformations\n\t     *\n\t     * The `$httpProvider` provider and `$http` service expose `defaults.transformRequest` and\n\t     * `defaults.transformResponse` properties. If a request does not provide its own transformations\n\t     * then these will be applied.\n\t     *\n\t     * You can augment or replace the default transformations by modifying these properties by adding to or\n\t     * replacing the array.\n\t     *\n\t     * Angular provides the following default transformations:\n\t     *\n\t     * Request transformations (`$httpProvider.defaults.transformRequest` and `$http.defaults.transformRequest`):\n\t     *\n\t     * - If the `data` property of the request configuration object contains an object, serialize it\n\t     *   into JSON format.\n\t     *\n\t     * Response transformations (`$httpProvider.defaults.transformResponse` and `$http.defaults.transformResponse`):\n\t     *\n\t     *  - If XSRF prefix is detected, strip it (see Security Considerations section below).\n\t     *  - If JSON response is detected, deserialize it using a JSON parser.\n\t     *\n\t     *\n\t     * ### Overriding the Default Transformations Per Request\n\t     *\n\t     * If you wish override the request/response transformations only for a single request then provide\n\t     * `transformRequest` and/or `transformResponse` properties on the configuration object passed\n\t     * into `$http`.\n\t     *\n\t     * Note that if you provide these properties on the config object the default transformations will be\n\t     * overwritten. If you wish to augment the default transformations then you must include them in your\n\t     * local transformation array.\n\t     *\n\t     * The following code demonstrates adding a new response transformation to be run after the default response\n\t     * transformations have been run.\n\t     *\n\t     * ```js\n\t     * function appendTransform(defaults, transform) {\n\t     *\n\t     *   // We can't guarantee that the default transformation is an array\n\t     *   defaults = angular.isArray(defaults) ? defaults : [defaults];\n\t     *\n\t     *   // Append the new transformation to the defaults\n\t     *   return defaults.concat(transform);\n\t     * }\n\t     *\n\t     * $http({\n\t     *   url: '...',\n\t     *   method: 'GET',\n\t     *   transformResponse: appendTransform($http.defaults.transformResponse, function(value) {\n\t     *     return doTransform(value);\n\t     *   })\n\t     * });\n\t     * ```\n\t     *\n\t     *\n\t     * ## Caching\n\t     *\n\t     * To enable caching, set the request configuration `cache` property to `true` (to use default\n\t     * cache) or to a custom cache object (built with {@link ng.$cacheFactory `$cacheFactory`}).\n\t     * When the cache is enabled, `$http` stores the response from the server in the specified\n\t     * cache. The next time the same request is made, the response is served from the cache without\n\t     * sending a request to the server.\n\t     *\n\t     * Note that even if the response is served from cache, delivery of the data is asynchronous in\n\t     * the same way that real requests are.\n\t     *\n\t     * If there are multiple GET requests for the same URL that should be cached using the same\n\t     * cache, but the cache is not populated yet, only one request to the server will be made and\n\t     * the remaining requests will be fulfilled using the response from the first request.\n\t     *\n\t     * You can change the default cache to a new object (built with\n\t     * {@link ng.$cacheFactory `$cacheFactory`}) by updating the\n\t     * {@link ng.$http#defaults `$http.defaults.cache`} property. All requests who set\n\t     * their `cache` property to `true` will now use this cache object.\n\t     *\n\t     * If you set the default cache to `false` then only requests that specify their own custom\n\t     * cache object will be cached.\n\t     *\n\t     * ## Interceptors\n\t     *\n\t     * Before you start creating interceptors, be sure to understand the\n\t     * {@link ng.$q $q and deferred/promise APIs}.\n\t     *\n\t     * For purposes of global error handling, authentication, or any kind of synchronous or\n\t     * asynchronous pre-processing of request or postprocessing of responses, it is desirable to be\n\t     * able to intercept requests before they are handed to the server and\n\t     * responses before they are handed over to the application code that\n\t     * initiated these requests. The interceptors leverage the {@link ng.$q\n\t     * promise APIs} to fulfill this need for both synchronous and asynchronous pre-processing.\n\t     *\n\t     * The interceptors are service factories that are registered with the `$httpProvider` by\n\t     * adding them to the `$httpProvider.interceptors` array. The factory is called and\n\t     * injected with dependencies (if specified) and returns the interceptor.\n\t     *\n\t     * There are two kinds of interceptors (and two kinds of rejection interceptors):\n\t     *\n\t     *   * `request`: interceptors get called with a http `config` object. The function is free to\n\t     *     modify the `config` object or create a new one. The function needs to return the `config`\n\t     *     object directly, or a promise containing the `config` or a new `config` object.\n\t     *   * `requestError`: interceptor gets called when a previous interceptor threw an error or\n\t     *     resolved with a rejection.\n\t     *   * `response`: interceptors get called with http `response` object. The function is free to\n\t     *     modify the `response` object or create a new one. The function needs to return the `response`\n\t     *     object directly, or as a promise containing the `response` or a new `response` object.\n\t     *   * `responseError`: interceptor gets called when a previous interceptor threw an error or\n\t     *     resolved with a rejection.\n\t     *\n\t     *\n\t     * ```js\n\t     *   // register the interceptor as a service\n\t     *   $provide.factory('myHttpInterceptor', function($q, dependency1, dependency2) {\n\t     *     return {\n\t     *       // optional method\n\t     *       'request': function(config) {\n\t     *         // do something on success\n\t     *         return config;\n\t     *       },\n\t     *\n\t     *       // optional method\n\t     *      'requestError': function(rejection) {\n\t     *         // do something on error\n\t     *         if (canRecover(rejection)) {\n\t     *           return responseOrNewPromise\n\t     *         }\n\t     *         return $q.reject(rejection);\n\t     *       },\n\t     *\n\t     *\n\t     *\n\t     *       // optional method\n\t     *       'response': function(response) {\n\t     *         // do something on success\n\t     *         return response;\n\t     *       },\n\t     *\n\t     *       // optional method\n\t     *      'responseError': function(rejection) {\n\t     *         // do something on error\n\t     *         if (canRecover(rejection)) {\n\t     *           return responseOrNewPromise\n\t     *         }\n\t     *         return $q.reject(rejection);\n\t     *       }\n\t     *     };\n\t     *   });\n\t     *\n\t     *   $httpProvider.interceptors.push('myHttpInterceptor');\n\t     *\n\t     *\n\t     *   // alternatively, register the interceptor via an anonymous factory\n\t     *   $httpProvider.interceptors.push(function($q, dependency1, dependency2) {\n\t     *     return {\n\t     *      'request': function(config) {\n\t     *          // same as above\n\t     *       },\n\t     *\n\t     *       'response': function(response) {\n\t     *          // same as above\n\t     *       }\n\t     *     };\n\t     *   });\n\t     * ```\n\t     *\n\t     * ## Security Considerations\n\t     *\n\t     * When designing web applications, consider security threats from:\n\t     *\n\t     * - [JSON vulnerability](http://haacked.com/archive/2008/11/20/anatomy-of-a-subtle-json-vulnerability.aspx)\n\t     * - [XSRF](http://en.wikipedia.org/wiki/Cross-site_request_forgery)\n\t     *\n\t     * Both server and the client must cooperate in order to eliminate these threats. Angular comes\n\t     * pre-configured with strategies that address these issues, but for this to work backend server\n\t     * cooperation is required.\n\t     *\n\t     * ### JSON Vulnerability Protection\n\t     *\n\t     * A [JSON vulnerability](http://haacked.com/archive/2008/11/20/anatomy-of-a-subtle-json-vulnerability.aspx)\n\t     * allows third party website to turn your JSON resource URL into\n\t     * [JSONP](http://en.wikipedia.org/wiki/JSONP) request under some conditions. To\n\t     * counter this your server can prefix all JSON requests with following string `\")]}',\\n\"`.\n\t     * Angular will automatically strip the prefix before processing it as JSON.\n\t     *\n\t     * For example if your server needs to return:\n\t     * ```js\n\t     * ['one','two']\n\t     * ```\n\t     *\n\t     * which is vulnerable to attack, your server can return:\n\t     * ```js\n\t     * )]}',\n\t     * ['one','two']\n\t     * ```\n\t     *\n\t     * Angular will strip the prefix, before processing the JSON.\n\t     *\n\t     *\n\t     * ### Cross Site Request Forgery (XSRF) Protection\n\t     *\n\t     * [XSRF](http://en.wikipedia.org/wiki/Cross-site_request_forgery) is a technique by which\n\t     * an unauthorized site can gain your user's private data. Angular provides a mechanism\n\t     * to counter XSRF. When performing XHR requests, the $http service reads a token from a cookie\n\t     * (by default, `XSRF-TOKEN`) and sets it as an HTTP header (`X-XSRF-TOKEN`). Since only\n\t     * JavaScript that runs on your domain could read the cookie, your server can be assured that\n\t     * the XHR came from JavaScript running on your domain. The header will not be set for\n\t     * cross-domain requests.\n\t     *\n\t     * To take advantage of this, your server needs to set a token in a JavaScript readable session\n\t     * cookie called `XSRF-TOKEN` on the first HTTP GET request. On subsequent XHR requests the\n\t     * server can verify that the cookie matches `X-XSRF-TOKEN` HTTP header, and therefore be sure\n\t     * that only JavaScript running on your domain could have sent the request. The token must be\n\t     * unique for each user and must be verifiable by the server (to prevent the JavaScript from\n\t     * making up its own tokens). We recommend that the token is a digest of your site's\n\t     * authentication cookie with a [salt](https://en.wikipedia.org/wiki/Salt_(cryptography&#41;)\n\t     * for added security.\n\t     *\n\t     * The name of the headers can be specified using the xsrfHeaderName and xsrfCookieName\n\t     * properties of either $httpProvider.defaults at config-time, $http.defaults at run-time,\n\t     * or the per-request config object.\n\t     *\n\t     *\n\t     * @param {object} config Object describing the request to be made and how it should be\n\t     *    processed. The object has following properties:\n\t     *\n\t     *    - **method** – `{string}` – HTTP method (e.g. 'GET', 'POST', etc)\n\t     *    - **url** – `{string}` – Absolute or relative URL of the resource that is being requested.\n\t     *    - **params** – `{Object.<string|Object>}` – Map of strings or objects which will be turned\n\t     *      to `?key1=value1&key2=value2` after the url. If the value is not a string, it will be\n\t     *      JSONified.\n\t     *    - **data** – `{string|Object}` – Data to be sent as the request message data.\n\t     *    - **headers** – `{Object}` – Map of strings or functions which return strings representing\n\t     *      HTTP headers to send to the server. If the return value of a function is null, the\n\t     *      header will not be sent.\n\t     *    - **xsrfHeaderName** – `{string}` – Name of HTTP header to populate with the XSRF token.\n\t     *    - **xsrfCookieName** – `{string}` – Name of cookie containing the XSRF token.\n\t     *    - **transformRequest** –\n\t     *      `{function(data, headersGetter)|Array.<function(data, headersGetter)>}` –\n\t     *      transform function or an array of such functions. The transform function takes the http\n\t     *      request body and headers and returns its transformed (typically serialized) version.\n\t     *      See {@link ng.$http#overriding-the-default-transformations-per-request\n\t     *      Overriding the Default Transformations}\n\t     *    - **transformResponse** –\n\t     *      `{function(data, headersGetter, status)|Array.<function(data, headersGetter, status)>}` –\n\t     *      transform function or an array of such functions. The transform function takes the http\n\t     *      response body, headers and status and returns its transformed (typically deserialized) version.\n\t     *      See {@link ng.$http#overriding-the-default-transformations-per-request\n\t     *      Overriding the Default Transformations}\n\t     *    - **cache** – `{boolean|Cache}` – If true, a default $http cache will be used to cache the\n\t     *      GET request, otherwise if a cache instance built with\n\t     *      {@link ng.$cacheFactory $cacheFactory}, this cache will be used for\n\t     *      caching.\n\t     *    - **timeout** – `{number|Promise}` – timeout in milliseconds, or {@link ng.$q promise}\n\t     *      that should abort the request when resolved.\n\t     *    - **withCredentials** - `{boolean}` - whether to set the `withCredentials` flag on the\n\t     *      XHR object. See [requests with credentials](https://developer.mozilla.org/docs/Web/HTTP/Access_control_CORS#Requests_with_credentials)\n\t     *      for more information.\n\t     *    - **responseType** - `{string}` - see\n\t     *      [requestType](https://developer.mozilla.org/en-US/docs/DOM/XMLHttpRequest#responseType).\n\t     *\n\t     * @returns {HttpPromise} Returns a {@link ng.$q promise} object with the\n\t     *   standard `then` method and two http specific methods: `success` and `error`. The `then`\n\t     *   method takes two arguments a success and an error callback which will be called with a\n\t     *   response object. The `success` and `error` methods take a single argument - a function that\n\t     *   will be called when the request succeeds or fails respectively. The arguments passed into\n\t     *   these functions are destructured representation of the response object passed into the\n\t     *   `then` method. The response object has these properties:\n\t     *\n\t     *   - **data** – `{string|Object}` – The response body transformed with the transform\n\t     *     functions.\n\t     *   - **status** – `{number}` – HTTP status code of the response.\n\t     *   - **headers** – `{function([headerName])}` – Header getter function.\n\t     *   - **config** – `{Object}` – The configuration object that was used to generate the request.\n\t     *   - **statusText** – `{string}` – HTTP status text of the response.\n\t     *\n\t     * @property {Array.<Object>} pendingRequests Array of config objects for currently pending\n\t     *   requests. This is primarily meant to be used for debugging purposes.\n\t     *\n\t     *\n\t     * @example\n\t<example module=\"httpExample\">\n\t<file name=\"index.html\">\n\t  <div ng-controller=\"FetchController\">\n\t    <select ng-model=\"method\">\n\t      <option>GET</option>\n\t      <option>JSONP</option>\n\t    </select>\n\t    <input type=\"text\" ng-model=\"url\" size=\"80\"/>\n\t    <button id=\"fetchbtn\" ng-click=\"fetch()\">fetch</button><br>\n\t    <button id=\"samplegetbtn\" ng-click=\"updateModel('GET', 'http-hello.html')\">Sample GET</button>\n\t    <button id=\"samplejsonpbtn\"\n\t      ng-click=\"updateModel('JSONP',\n\t                    'https://angularjs.org/greet.php?callback=JSON_CALLBACK&name=Super%20Hero')\">\n\t      Sample JSONP\n\t    </button>\n\t    <button id=\"invalidjsonpbtn\"\n\t      ng-click=\"updateModel('JSONP', 'https://angularjs.org/doesntexist&callback=JSON_CALLBACK')\">\n\t        Invalid JSONP\n\t      </button>\n\t    <pre>http status code: {{status}}</pre>\n\t    <pre>http response data: {{data}}</pre>\n\t  </div>\n\t</file>\n\t<file name=\"script.js\">\n\t  angular.module('httpExample', [])\n\t    .controller('FetchController', ['$scope', '$http', '$templateCache',\n\t      function($scope, $http, $templateCache) {\n\t        $scope.method = 'GET';\n\t        $scope.url = 'http-hello.html';\n\n\t        $scope.fetch = function() {\n\t          $scope.code = null;\n\t          $scope.response = null;\n\n\t          $http({method: $scope.method, url: $scope.url, cache: $templateCache}).\n\t            success(function(data, status) {\n\t              $scope.status = status;\n\t              $scope.data = data;\n\t            }).\n\t            error(function(data, status) {\n\t              $scope.data = data || \"Request failed\";\n\t              $scope.status = status;\n\t          });\n\t        };\n\n\t        $scope.updateModel = function(method, url) {\n\t          $scope.method = method;\n\t          $scope.url = url;\n\t        };\n\t      }]);\n\t</file>\n\t<file name=\"http-hello.html\">\n\t  Hello, $http!\n\t</file>\n\t<file name=\"protractor.js\" type=\"protractor\">\n\t  var status = element(by.binding('status'));\n\t  var data = element(by.binding('data'));\n\t  var fetchBtn = element(by.id('fetchbtn'));\n\t  var sampleGetBtn = element(by.id('samplegetbtn'));\n\t  var sampleJsonpBtn = element(by.id('samplejsonpbtn'));\n\t  var invalidJsonpBtn = element(by.id('invalidjsonpbtn'));\n\n\t  it('should make an xhr GET request', function() {\n\t    sampleGetBtn.click();\n\t    fetchBtn.click();\n\t    expect(status.getText()).toMatch('200');\n\t    expect(data.getText()).toMatch(/Hello, \\$http!/);\n\t  });\n\n\t// Commented out due to flakes. See https://github.com/angular/angular.js/issues/9185\n\t// it('should make a JSONP request to angularjs.org', function() {\n\t//   sampleJsonpBtn.click();\n\t//   fetchBtn.click();\n\t//   expect(status.getText()).toMatch('200');\n\t//   expect(data.getText()).toMatch(/Super Hero!/);\n\t// });\n\n\t  it('should make JSONP request to invalid URL and invoke the error handler',\n\t      function() {\n\t    invalidJsonpBtn.click();\n\t    fetchBtn.click();\n\t    expect(status.getText()).toMatch('0');\n\t    expect(data.getText()).toMatch('Request failed');\n\t  });\n\t</file>\n\t</example>\n\t     */\n\t    function $http(requestConfig) {\n\n\t      if (!angular.isObject(requestConfig)) {\n\t        throw minErr('$http')('badreq', 'Http request configuration must be an object.  Received: {0}', requestConfig);\n\t      }\n\n\t      var config = extend({\n\t        method: 'get',\n\t        transformRequest: defaults.transformRequest,\n\t        transformResponse: defaults.transformResponse\n\t      }, requestConfig);\n\n\t      config.headers = mergeHeaders(requestConfig);\n\t      config.method = uppercase(config.method);\n\n\t      var serverRequest = function(config) {\n\t        var headers = config.headers;\n\t        var reqData = transformData(config.data, headersGetter(headers), undefined, config.transformRequest);\n\n\t        // strip content-type if data is undefined\n\t        if (isUndefined(reqData)) {\n\t          forEach(headers, function(value, header) {\n\t            if (lowercase(header) === 'content-type') {\n\t                delete headers[header];\n\t            }\n\t          });\n\t        }\n\n\t        if (isUndefined(config.withCredentials) && !isUndefined(defaults.withCredentials)) {\n\t          config.withCredentials = defaults.withCredentials;\n\t        }\n\n\t        // send request\n\t        return sendReq(config, reqData).then(transformResponse, transformResponse);\n\t      };\n\n\t      var chain = [serverRequest, undefined];\n\t      var promise = $q.when(config);\n\n\t      // apply interceptors\n\t      forEach(reversedInterceptors, function(interceptor) {\n\t        if (interceptor.request || interceptor.requestError) {\n\t          chain.unshift(interceptor.request, interceptor.requestError);\n\t        }\n\t        if (interceptor.response || interceptor.responseError) {\n\t          chain.push(interceptor.response, interceptor.responseError);\n\t        }\n\t      });\n\n\t      while (chain.length) {\n\t        var thenFn = chain.shift();\n\t        var rejectFn = chain.shift();\n\n\t        promise = promise.then(thenFn, rejectFn);\n\t      }\n\n\t      promise.success = function(fn) {\n\t        promise.then(function(response) {\n\t          fn(response.data, response.status, response.headers, config);\n\t        });\n\t        return promise;\n\t      };\n\n\t      promise.error = function(fn) {\n\t        promise.then(null, function(response) {\n\t          fn(response.data, response.status, response.headers, config);\n\t        });\n\t        return promise;\n\t      };\n\n\t      return promise;\n\n\t      function transformResponse(response) {\n\t        // make a copy since the response must be cacheable\n\t        var resp = extend({}, response);\n\t        if (!response.data) {\n\t          resp.data = response.data;\n\t        } else {\n\t          resp.data = transformData(response.data, response.headers, response.status, config.transformResponse);\n\t        }\n\t        return (isSuccess(response.status))\n\t          ? resp\n\t          : $q.reject(resp);\n\t      }\n\n\t      function executeHeaderFns(headers) {\n\t        var headerContent, processedHeaders = {};\n\n\t        forEach(headers, function(headerFn, header) {\n\t          if (isFunction(headerFn)) {\n\t            headerContent = headerFn();\n\t            if (headerContent != null) {\n\t              processedHeaders[header] = headerContent;\n\t            }\n\t          } else {\n\t            processedHeaders[header] = headerFn;\n\t          }\n\t        });\n\n\t        return processedHeaders;\n\t      }\n\n\t      function mergeHeaders(config) {\n\t        var defHeaders = defaults.headers,\n\t            reqHeaders = extend({}, config.headers),\n\t            defHeaderName, lowercaseDefHeaderName, reqHeaderName;\n\n\t        defHeaders = extend({}, defHeaders.common, defHeaders[lowercase(config.method)]);\n\n\t        // using for-in instead of forEach to avoid unecessary iteration after header has been found\n\t        defaultHeadersIteration:\n\t        for (defHeaderName in defHeaders) {\n\t          lowercaseDefHeaderName = lowercase(defHeaderName);\n\n\t          for (reqHeaderName in reqHeaders) {\n\t            if (lowercase(reqHeaderName) === lowercaseDefHeaderName) {\n\t              continue defaultHeadersIteration;\n\t            }\n\t          }\n\n\t          reqHeaders[defHeaderName] = defHeaders[defHeaderName];\n\t        }\n\n\t        // execute if header value is a function for merged headers\n\t        return executeHeaderFns(reqHeaders);\n\t      }\n\t    }\n\n\t    $http.pendingRequests = [];\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $http#get\n\t     *\n\t     * @description\n\t     * Shortcut method to perform `GET` request.\n\t     *\n\t     * @param {string} url Relative or absolute URL specifying the destination of the request\n\t     * @param {Object=} config Optional configuration object\n\t     * @returns {HttpPromise} Future object\n\t     */\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $http#delete\n\t     *\n\t     * @description\n\t     * Shortcut method to perform `DELETE` request.\n\t     *\n\t     * @param {string} url Relative or absolute URL specifying the destination of the request\n\t     * @param {Object=} config Optional configuration object\n\t     * @returns {HttpPromise} Future object\n\t     */\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $http#head\n\t     *\n\t     * @description\n\t     * Shortcut method to perform `HEAD` request.\n\t     *\n\t     * @param {string} url Relative or absolute URL specifying the destination of the request\n\t     * @param {Object=} config Optional configuration object\n\t     * @returns {HttpPromise} Future object\n\t     */\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $http#jsonp\n\t     *\n\t     * @description\n\t     * Shortcut method to perform `JSONP` request.\n\t     *\n\t     * @param {string} url Relative or absolute URL specifying the destination of the request.\n\t     *                     The name of the callback should be the string `JSON_CALLBACK`.\n\t     * @param {Object=} config Optional configuration object\n\t     * @returns {HttpPromise} Future object\n\t     */\n\t    createShortMethods('get', 'delete', 'head', 'jsonp');\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $http#post\n\t     *\n\t     * @description\n\t     * Shortcut method to perform `POST` request.\n\t     *\n\t     * @param {string} url Relative or absolute URL specifying the destination of the request\n\t     * @param {*} data Request content\n\t     * @param {Object=} config Optional configuration object\n\t     * @returns {HttpPromise} Future object\n\t     */\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $http#put\n\t     *\n\t     * @description\n\t     * Shortcut method to perform `PUT` request.\n\t     *\n\t     * @param {string} url Relative or absolute URL specifying the destination of the request\n\t     * @param {*} data Request content\n\t     * @param {Object=} config Optional configuration object\n\t     * @returns {HttpPromise} Future object\n\t     */\n\n\t     /**\n\t      * @ngdoc method\n\t      * @name $http#patch\n\t      *\n\t      * @description\n\t      * Shortcut method to perform `PATCH` request.\n\t      *\n\t      * @param {string} url Relative or absolute URL specifying the destination of the request\n\t      * @param {*} data Request content\n\t      * @param {Object=} config Optional configuration object\n\t      * @returns {HttpPromise} Future object\n\t      */\n\t    createShortMethodsWithData('post', 'put', 'patch');\n\n\t        /**\n\t         * @ngdoc property\n\t         * @name $http#defaults\n\t         *\n\t         * @description\n\t         * Runtime equivalent of the `$httpProvider.defaults` property. Allows configuration of\n\t         * default headers, withCredentials as well as request and response transformations.\n\t         *\n\t         * See \"Setting HTTP Headers\" and \"Transforming Requests and Responses\" sections above.\n\t         */\n\t    $http.defaults = defaults;\n\n\n\t    return $http;\n\n\n\t    function createShortMethods(names) {\n\t      forEach(arguments, function(name) {\n\t        $http[name] = function(url, config) {\n\t          return $http(extend(config || {}, {\n\t            method: name,\n\t            url: url\n\t          }));\n\t        };\n\t      });\n\t    }\n\n\n\t    function createShortMethodsWithData(name) {\n\t      forEach(arguments, function(name) {\n\t        $http[name] = function(url, data, config) {\n\t          return $http(extend(config || {}, {\n\t            method: name,\n\t            url: url,\n\t            data: data\n\t          }));\n\t        };\n\t      });\n\t    }\n\n\n\t    /**\n\t     * Makes the request.\n\t     *\n\t     * !!! ACCESSES CLOSURE VARS:\n\t     * $httpBackend, defaults, $log, $rootScope, defaultCache, $http.pendingRequests\n\t     */\n\t    function sendReq(config, reqData) {\n\t      var deferred = $q.defer(),\n\t          promise = deferred.promise,\n\t          cache,\n\t          cachedResp,\n\t          reqHeaders = config.headers,\n\t          url = buildUrl(config.url, config.params);\n\n\t      $http.pendingRequests.push(config);\n\t      promise.then(removePendingReq, removePendingReq);\n\n\n\t      if ((config.cache || defaults.cache) && config.cache !== false &&\n\t          (config.method === 'GET' || config.method === 'JSONP')) {\n\t        cache = isObject(config.cache) ? config.cache\n\t              : isObject(defaults.cache) ? defaults.cache\n\t              : defaultCache;\n\t      }\n\n\t      if (cache) {\n\t        cachedResp = cache.get(url);\n\t        if (isDefined(cachedResp)) {\n\t          if (isPromiseLike(cachedResp)) {\n\t            // cached request has already been sent, but there is no response yet\n\t            cachedResp.then(resolvePromiseWithResult, resolvePromiseWithResult);\n\t          } else {\n\t            // serving from cache\n\t            if (isArray(cachedResp)) {\n\t              resolvePromise(cachedResp[1], cachedResp[0], shallowCopy(cachedResp[2]), cachedResp[3]);\n\t            } else {\n\t              resolvePromise(cachedResp, 200, {}, 'OK');\n\t            }\n\t          }\n\t        } else {\n\t          // put the promise for the non-transformed response into cache as a placeholder\n\t          cache.put(url, promise);\n\t        }\n\t      }\n\n\n\t      // if we won't have the response in cache, set the xsrf headers and\n\t      // send the request to the backend\n\t      if (isUndefined(cachedResp)) {\n\t        var xsrfValue = urlIsSameOrigin(config.url)\n\t            ? $browser.cookies()[config.xsrfCookieName || defaults.xsrfCookieName]\n\t            : undefined;\n\t        if (xsrfValue) {\n\t          reqHeaders[(config.xsrfHeaderName || defaults.xsrfHeaderName)] = xsrfValue;\n\t        }\n\n\t        $httpBackend(config.method, url, reqData, done, reqHeaders, config.timeout,\n\t            config.withCredentials, config.responseType);\n\t      }\n\n\t      return promise;\n\n\n\t      /**\n\t       * Callback registered to $httpBackend():\n\t       *  - caches the response if desired\n\t       *  - resolves the raw $http promise\n\t       *  - calls $apply\n\t       */\n\t      function done(status, response, headersString, statusText) {\n\t        if (cache) {\n\t          if (isSuccess(status)) {\n\t            cache.put(url, [status, response, parseHeaders(headersString), statusText]);\n\t          } else {\n\t            // remove promise from the cache\n\t            cache.remove(url);\n\t          }\n\t        }\n\n\t        function resolveHttpPromise() {\n\t          resolvePromise(response, status, headersString, statusText);\n\t        }\n\n\t        if (useApplyAsync) {\n\t          $rootScope.$applyAsync(resolveHttpPromise);\n\t        } else {\n\t          resolveHttpPromise();\n\t          if (!$rootScope.$$phase) $rootScope.$apply();\n\t        }\n\t      }\n\n\n\t      /**\n\t       * Resolves the raw $http promise.\n\t       */\n\t      function resolvePromise(response, status, headers, statusText) {\n\t        // normalize internal statuses to 0\n\t        status = Math.max(status, 0);\n\n\t        (isSuccess(status) ? deferred.resolve : deferred.reject)({\n\t          data: response,\n\t          status: status,\n\t          headers: headersGetter(headers),\n\t          config: config,\n\t          statusText: statusText\n\t        });\n\t      }\n\n\t      function resolvePromiseWithResult(result) {\n\t        resolvePromise(result.data, result.status, shallowCopy(result.headers()), result.statusText);\n\t      }\n\n\t      function removePendingReq() {\n\t        var idx = $http.pendingRequests.indexOf(config);\n\t        if (idx !== -1) $http.pendingRequests.splice(idx, 1);\n\t      }\n\t    }\n\n\n\t    function buildUrl(url, params) {\n\t      if (!params) return url;\n\t      var parts = [];\n\t      forEachSorted(params, function(value, key) {\n\t        if (value === null || isUndefined(value)) return;\n\t        if (!isArray(value)) value = [value];\n\n\t        forEach(value, function(v) {\n\t          if (isObject(v)) {\n\t            if (isDate(v)) {\n\t              v = v.toISOString();\n\t            } else {\n\t              v = toJson(v);\n\t            }\n\t          }\n\t          parts.push(encodeUriQuery(key) + '=' +\n\t                     encodeUriQuery(v));\n\t        });\n\t      });\n\t      if (parts.length > 0) {\n\t        url += ((url.indexOf('?') == -1) ? '?' : '&') + parts.join('&');\n\t      }\n\t      return url;\n\t    }\n\t  }];\n\t}\n\n\tfunction createXhr() {\n\t    return new window.XMLHttpRequest();\n\t}\n\n\t/**\n\t * @ngdoc service\n\t * @name $httpBackend\n\t * @requires $window\n\t * @requires $document\n\t *\n\t * @description\n\t * HTTP backend used by the {@link ng.$http service} that delegates to\n\t * XMLHttpRequest object or JSONP and deals with browser incompatibilities.\n\t *\n\t * You should never need to use this service directly, instead use the higher-level abstractions:\n\t * {@link ng.$http $http} or {@link ngResource.$resource $resource}.\n\t *\n\t * During testing this implementation is swapped with {@link ngMock.$httpBackend mock\n\t * $httpBackend} which can be trained with responses.\n\t */\n\tfunction $HttpBackendProvider() {\n\t  this.$get = ['$browser', '$window', '$document', function($browser, $window, $document) {\n\t    return createHttpBackend($browser, createXhr, $browser.defer, $window.angular.callbacks, $document[0]);\n\t  }];\n\t}\n\n\tfunction createHttpBackend($browser, createXhr, $browserDefer, callbacks, rawDocument) {\n\t  // TODO(vojta): fix the signature\n\t  return function(method, url, post, callback, headers, timeout, withCredentials, responseType) {\n\t    $browser.$$incOutstandingRequestCount();\n\t    url = url || $browser.url();\n\n\t    if (lowercase(method) == 'jsonp') {\n\t      var callbackId = '_' + (callbacks.counter++).toString(36);\n\t      callbacks[callbackId] = function(data) {\n\t        callbacks[callbackId].data = data;\n\t        callbacks[callbackId].called = true;\n\t      };\n\n\t      var jsonpDone = jsonpReq(url.replace('JSON_CALLBACK', 'angular.callbacks.' + callbackId),\n\t          callbackId, function(status, text) {\n\t        completeRequest(callback, status, callbacks[callbackId].data, \"\", text);\n\t        callbacks[callbackId] = noop;\n\t      });\n\t    } else {\n\n\t      var xhr = createXhr();\n\n\t      xhr.open(method, url, true);\n\t      forEach(headers, function(value, key) {\n\t        if (isDefined(value)) {\n\t            xhr.setRequestHeader(key, value);\n\t        }\n\t      });\n\n\t      xhr.onload = function requestLoaded() {\n\t        var statusText = xhr.statusText || '';\n\n\t        // responseText is the old-school way of retrieving response (supported by IE8 & 9)\n\t        // response/responseType properties were introduced in XHR Level2 spec (supported by IE10)\n\t        var response = ('response' in xhr) ? xhr.response : xhr.responseText;\n\n\t        // normalize IE9 bug (http://bugs.jquery.com/ticket/1450)\n\t        var status = xhr.status === 1223 ? 204 : xhr.status;\n\n\t        // fix status code when it is 0 (0 status is undocumented).\n\t        // Occurs when accessing file resources or on Android 4.1 stock browser\n\t        // while retrieving files from application cache.\n\t        if (status === 0) {\n\t          status = response ? 200 : urlResolve(url).protocol == 'file' ? 404 : 0;\n\t        }\n\n\t        completeRequest(callback,\n\t            status,\n\t            response,\n\t            xhr.getAllResponseHeaders(),\n\t            statusText);\n\t      };\n\n\t      var requestError = function() {\n\t        // The response is always empty\n\t        // See https://xhr.spec.whatwg.org/#request-error-steps and https://fetch.spec.whatwg.org/#concept-network-error\n\t        completeRequest(callback, -1, null, null, '');\n\t      };\n\n\t      xhr.onerror = requestError;\n\t      xhr.onabort = requestError;\n\n\t      if (withCredentials) {\n\t        xhr.withCredentials = true;\n\t      }\n\n\t      if (responseType) {\n\t        try {\n\t          xhr.responseType = responseType;\n\t        } catch (e) {\n\t          // WebKit added support for the json responseType value on 09/03/2013\n\t          // https://bugs.webkit.org/show_bug.cgi?id=73648. Versions of Safari prior to 7 are\n\t          // known to throw when setting the value \"json\" as the response type. Other older\n\t          // browsers implementing the responseType\n\t          //\n\t          // The json response type can be ignored if not supported, because JSON payloads are\n\t          // parsed on the client-side regardless.\n\t          if (responseType !== 'json') {\n\t            throw e;\n\t          }\n\t        }\n\t      }\n\n\t      xhr.send(post || null);\n\t    }\n\n\t    if (timeout > 0) {\n\t      var timeoutId = $browserDefer(timeoutRequest, timeout);\n\t    } else if (isPromiseLike(timeout)) {\n\t      timeout.then(timeoutRequest);\n\t    }\n\n\n\t    function timeoutRequest() {\n\t      jsonpDone && jsonpDone();\n\t      xhr && xhr.abort();\n\t    }\n\n\t    function completeRequest(callback, status, response, headersString, statusText) {\n\t      // cancel timeout and subsequent timeout promise resolution\n\t      if (timeoutId !== undefined) {\n\t        $browserDefer.cancel(timeoutId);\n\t      }\n\t      jsonpDone = xhr = null;\n\n\t      callback(status, response, headersString, statusText);\n\t      $browser.$$completeOutstandingRequest(noop);\n\t    }\n\t  };\n\n\t  function jsonpReq(url, callbackId, done) {\n\t    // we can't use jQuery/jqLite here because jQuery does crazy shit with script elements, e.g.:\n\t    // - fetches local scripts via XHR and evals them\n\t    // - adds and immediately removes script elements from the document\n\t    var script = rawDocument.createElement('script'), callback = null;\n\t    script.type = \"text/javascript\";\n\t    script.src = url;\n\t    script.async = true;\n\n\t    callback = function(event) {\n\t      removeEventListenerFn(script, \"load\", callback);\n\t      removeEventListenerFn(script, \"error\", callback);\n\t      rawDocument.body.removeChild(script);\n\t      script = null;\n\t      var status = -1;\n\t      var text = \"unknown\";\n\n\t      if (event) {\n\t        if (event.type === \"load\" && !callbacks[callbackId].called) {\n\t          event = { type: \"error\" };\n\t        }\n\t        text = event.type;\n\t        status = event.type === \"error\" ? 404 : 200;\n\t      }\n\n\t      if (done) {\n\t        done(status, text);\n\t      }\n\t    };\n\n\t    addEventListenerFn(script, \"load\", callback);\n\t    addEventListenerFn(script, \"error\", callback);\n\t    rawDocument.body.appendChild(script);\n\t    return callback;\n\t  }\n\t}\n\n\tvar $interpolateMinErr = minErr('$interpolate');\n\n\t/**\n\t * @ngdoc provider\n\t * @name $interpolateProvider\n\t *\n\t * @description\n\t *\n\t * Used for configuring the interpolation markup. Defaults to `{{` and `}}`.\n\t *\n\t * @example\n\t<example module=\"customInterpolationApp\">\n\t<file name=\"index.html\">\n\t<script>\n\t  var customInterpolationApp = angular.module('customInterpolationApp', []);\n\n\t  customInterpolationApp.config(function($interpolateProvider) {\n\t    $interpolateProvider.startSymbol('//');\n\t    $interpolateProvider.endSymbol('//');\n\t  });\n\n\n\t  customInterpolationApp.controller('DemoController', function() {\n\t      this.label = \"This binding is brought you by // interpolation symbols.\";\n\t  });\n\t</script>\n\t<div ng-app=\"App\" ng-controller=\"DemoController as demo\">\n\t    //demo.label//\n\t</div>\n\t</file>\n\t<file name=\"protractor.js\" type=\"protractor\">\n\t  it('should interpolate binding with custom symbols', function() {\n\t    expect(element(by.binding('demo.label')).getText()).toBe('This binding is brought you by // interpolation symbols.');\n\t  });\n\t</file>\n\t</example>\n\t */\n\tfunction $InterpolateProvider() {\n\t  var startSymbol = '{{';\n\t  var endSymbol = '}}';\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $interpolateProvider#startSymbol\n\t   * @description\n\t   * Symbol to denote start of expression in the interpolated string. Defaults to `{{`.\n\t   *\n\t   * @param {string=} value new value to set the starting symbol to.\n\t   * @returns {string|self} Returns the symbol when used as getter and self if used as setter.\n\t   */\n\t  this.startSymbol = function(value) {\n\t    if (value) {\n\t      startSymbol = value;\n\t      return this;\n\t    } else {\n\t      return startSymbol;\n\t    }\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $interpolateProvider#endSymbol\n\t   * @description\n\t   * Symbol to denote the end of expression in the interpolated string. Defaults to `}}`.\n\t   *\n\t   * @param {string=} value new value to set the ending symbol to.\n\t   * @returns {string|self} Returns the symbol when used as getter and self if used as setter.\n\t   */\n\t  this.endSymbol = function(value) {\n\t    if (value) {\n\t      endSymbol = value;\n\t      return this;\n\t    } else {\n\t      return endSymbol;\n\t    }\n\t  };\n\n\n\t  this.$get = ['$parse', '$exceptionHandler', '$sce', function($parse, $exceptionHandler, $sce) {\n\t    var startSymbolLength = startSymbol.length,\n\t        endSymbolLength = endSymbol.length,\n\t        escapedStartRegexp = new RegExp(startSymbol.replace(/./g, escape), 'g'),\n\t        escapedEndRegexp = new RegExp(endSymbol.replace(/./g, escape), 'g');\n\n\t    function escape(ch) {\n\t      return '\\\\\\\\\\\\' + ch;\n\t    }\n\n\t    /**\n\t     * @ngdoc service\n\t     * @name $interpolate\n\t     * @kind function\n\t     *\n\t     * @requires $parse\n\t     * @requires $sce\n\t     *\n\t     * @description\n\t     *\n\t     * Compiles a string with markup into an interpolation function. This service is used by the\n\t     * HTML {@link ng.$compile $compile} service for data binding. See\n\t     * {@link ng.$interpolateProvider $interpolateProvider} for configuring the\n\t     * interpolation markup.\n\t     *\n\t     *\n\t     * ```js\n\t     *   var $interpolate = ...; // injected\n\t     *   var exp = $interpolate('Hello {{name | uppercase}}!');\n\t     *   expect(exp({name:'Angular'}).toEqual('Hello ANGULAR!');\n\t     * ```\n\t     *\n\t     * `$interpolate` takes an optional fourth argument, `allOrNothing`. If `allOrNothing` is\n\t     * `true`, the interpolation function will return `undefined` unless all embedded expressions\n\t     * evaluate to a value other than `undefined`.\n\t     *\n\t     * ```js\n\t     *   var $interpolate = ...; // injected\n\t     *   var context = {greeting: 'Hello', name: undefined };\n\t     *\n\t     *   // default \"forgiving\" mode\n\t     *   var exp = $interpolate('{{greeting}} {{name}}!');\n\t     *   expect(exp(context)).toEqual('Hello !');\n\t     *\n\t     *   // \"allOrNothing\" mode\n\t     *   exp = $interpolate('{{greeting}} {{name}}!', false, null, true);\n\t     *   expect(exp(context)).toBeUndefined();\n\t     *   context.name = 'Angular';\n\t     *   expect(exp(context)).toEqual('Hello Angular!');\n\t     * ```\n\t     *\n\t     * `allOrNothing` is useful for interpolating URLs. `ngSrc` and `ngSrcset` use this behavior.\n\t     *\n\t     * ####Escaped Interpolation\n\t     * $interpolate provides a mechanism for escaping interpolation markers. Start and end markers\n\t     * can be escaped by preceding each of their characters with a REVERSE SOLIDUS U+005C (backslash).\n\t     * It will be rendered as a regular start/end marker, and will not be interpreted as an expression\n\t     * or binding.\n\t     *\n\t     * This enables web-servers to prevent script injection attacks and defacing attacks, to some\n\t     * degree, while also enabling code examples to work without relying on the\n\t     * {@link ng.directive:ngNonBindable ngNonBindable} directive.\n\t     *\n\t     * **For security purposes, it is strongly encouraged that web servers escape user-supplied data,\n\t     * replacing angle brackets (&lt;, &gt;) with &amp;lt; and &amp;gt; respectively, and replacing all\n\t     * interpolation start/end markers with their escaped counterparts.**\n\t     *\n\t     * Escaped interpolation markers are only replaced with the actual interpolation markers in rendered\n\t     * output when the $interpolate service processes the text. So, for HTML elements interpolated\n\t     * by {@link ng.$compile $compile}, or otherwise interpolated with the `mustHaveExpression` parameter\n\t     * set to `true`, the interpolated text must contain an unescaped interpolation expression. As such,\n\t     * this is typically useful only when user-data is used in rendering a template from the server, or\n\t     * when otherwise untrusted data is used by a directive.\n\t     *\n\t     * <example>\n\t     *  <file name=\"index.html\">\n\t     *    <div ng-init=\"username='A user'\">\n\t     *      <p ng-init=\"apptitle='Escaping demo'\">{{apptitle}}: \\{\\{ username = \"defaced value\"; \\}\\}\n\t     *        </p>\n\t     *      <p><strong>{{username}}</strong> attempts to inject code which will deface the\n\t     *        application, but fails to accomplish their task, because the server has correctly\n\t     *        escaped the interpolation start/end markers with REVERSE SOLIDUS U+005C (backslash)\n\t     *        characters.</p>\n\t     *      <p>Instead, the result of the attempted script injection is visible, and can be removed\n\t     *        from the database by an administrator.</p>\n\t     *    </div>\n\t     *  </file>\n\t     * </example>\n\t     *\n\t     * @param {string} text The text with markup to interpolate.\n\t     * @param {boolean=} mustHaveExpression if set to true then the interpolation string must have\n\t     *    embedded expression in order to return an interpolation function. Strings with no\n\t     *    embedded expression will return null for the interpolation function.\n\t     * @param {string=} trustedContext when provided, the returned function passes the interpolated\n\t     *    result through {@link ng.$sce#getTrusted $sce.getTrusted(interpolatedResult,\n\t     *    trustedContext)} before returning it.  Refer to the {@link ng.$sce $sce} service that\n\t     *    provides Strict Contextual Escaping for details.\n\t     * @param {boolean=} allOrNothing if `true`, then the returned function returns undefined\n\t     *    unless all embedded expressions evaluate to a value other than `undefined`.\n\t     * @returns {function(context)} an interpolation function which is used to compute the\n\t     *    interpolated string. The function has these parameters:\n\t     *\n\t     * - `context`: evaluation context for all expressions embedded in the interpolated text\n\t     */\n\t    function $interpolate(text, mustHaveExpression, trustedContext, allOrNothing) {\n\t      allOrNothing = !!allOrNothing;\n\t      var startIndex,\n\t          endIndex,\n\t          index = 0,\n\t          expressions = [],\n\t          parseFns = [],\n\t          textLength = text.length,\n\t          exp,\n\t          concat = [],\n\t          expressionPositions = [];\n\n\t      while (index < textLength) {\n\t        if (((startIndex = text.indexOf(startSymbol, index)) != -1) &&\n\t             ((endIndex = text.indexOf(endSymbol, startIndex + startSymbolLength)) != -1)) {\n\t          if (index !== startIndex) {\n\t            concat.push(unescapeText(text.substring(index, startIndex)));\n\t          }\n\t          exp = text.substring(startIndex + startSymbolLength, endIndex);\n\t          expressions.push(exp);\n\t          parseFns.push($parse(exp, parseStringifyInterceptor));\n\t          index = endIndex + endSymbolLength;\n\t          expressionPositions.push(concat.length);\n\t          concat.push('');\n\t        } else {\n\t          // we did not find an interpolation, so we have to add the remainder to the separators array\n\t          if (index !== textLength) {\n\t            concat.push(unescapeText(text.substring(index)));\n\t          }\n\t          break;\n\t        }\n\t      }\n\n\t      // Concatenating expressions makes it hard to reason about whether some combination of\n\t      // concatenated values are unsafe to use and could easily lead to XSS.  By requiring that a\n\t      // single expression be used for iframe[src], object[src], etc., we ensure that the value\n\t      // that's used is assigned or constructed by some JS code somewhere that is more testable or\n\t      // make it obvious that you bound the value to some user controlled value.  This helps reduce\n\t      // the load when auditing for XSS issues.\n\t      if (trustedContext && concat.length > 1) {\n\t          throw $interpolateMinErr('noconcat',\n\t              \"Error while interpolating: {0}\\nStrict Contextual Escaping disallows \" +\n\t              \"interpolations that concatenate multiple expressions when a trusted value is \" +\n\t              \"required.  See http://docs.angularjs.org/api/ng.$sce\", text);\n\t      }\n\n\t      if (!mustHaveExpression || expressions.length) {\n\t        var compute = function(values) {\n\t          for (var i = 0, ii = expressions.length; i < ii; i++) {\n\t            if (allOrNothing && isUndefined(values[i])) return;\n\t            concat[expressionPositions[i]] = values[i];\n\t          }\n\t          return concat.join('');\n\t        };\n\n\t        var getValue = function(value) {\n\t          return trustedContext ?\n\t            $sce.getTrusted(trustedContext, value) :\n\t            $sce.valueOf(value);\n\t        };\n\n\t        var stringify = function(value) {\n\t          if (value == null) { // null || undefined\n\t            return '';\n\t          }\n\t          switch (typeof value) {\n\t            case 'string':\n\t              break;\n\t            case 'number':\n\t              value = '' + value;\n\t              break;\n\t            default:\n\t              value = toJson(value);\n\t          }\n\n\t          return value;\n\t        };\n\n\t        return extend(function interpolationFn(context) {\n\t            var i = 0;\n\t            var ii = expressions.length;\n\t            var values = new Array(ii);\n\n\t            try {\n\t              for (; i < ii; i++) {\n\t                values[i] = parseFns[i](context);\n\t              }\n\n\t              return compute(values);\n\t            } catch (err) {\n\t              var newErr = $interpolateMinErr('interr', \"Can't interpolate: {0}\\n{1}\", text,\n\t                  err.toString());\n\t              $exceptionHandler(newErr);\n\t            }\n\n\t          }, {\n\t          // all of these properties are undocumented for now\n\t          exp: text, //just for compatibility with regular watchers created via $watch\n\t          expressions: expressions,\n\t          $$watchDelegate: function(scope, listener, objectEquality) {\n\t            var lastValue;\n\t            return scope.$watchGroup(parseFns, function interpolateFnWatcher(values, oldValues) {\n\t              var currValue = compute(values);\n\t              if (isFunction(listener)) {\n\t                listener.call(this, currValue, values !== oldValues ? lastValue : currValue, scope);\n\t              }\n\t              lastValue = currValue;\n\t            }, objectEquality);\n\t          }\n\t        });\n\t      }\n\n\t      function unescapeText(text) {\n\t        return text.replace(escapedStartRegexp, startSymbol).\n\t          replace(escapedEndRegexp, endSymbol);\n\t      }\n\n\t      function parseStringifyInterceptor(value) {\n\t        try {\n\t          value = getValue(value);\n\t          return allOrNothing && !isDefined(value) ? value : stringify(value);\n\t        } catch (err) {\n\t          var newErr = $interpolateMinErr('interr', \"Can't interpolate: {0}\\n{1}\", text,\n\t            err.toString());\n\t          $exceptionHandler(newErr);\n\t        }\n\t      }\n\t    }\n\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $interpolate#startSymbol\n\t     * @description\n\t     * Symbol to denote the start of expression in the interpolated string. Defaults to `{{`.\n\t     *\n\t     * Use {@link ng.$interpolateProvider#startSymbol `$interpolateProvider.startSymbol`} to change\n\t     * the symbol.\n\t     *\n\t     * @returns {string} start symbol.\n\t     */\n\t    $interpolate.startSymbol = function() {\n\t      return startSymbol;\n\t    };\n\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $interpolate#endSymbol\n\t     * @description\n\t     * Symbol to denote the end of expression in the interpolated string. Defaults to `}}`.\n\t     *\n\t     * Use {@link ng.$interpolateProvider#endSymbol `$interpolateProvider.endSymbol`} to change\n\t     * the symbol.\n\t     *\n\t     * @returns {string} end symbol.\n\t     */\n\t    $interpolate.endSymbol = function() {\n\t      return endSymbol;\n\t    };\n\n\t    return $interpolate;\n\t  }];\n\t}\n\n\tfunction $IntervalProvider() {\n\t  this.$get = ['$rootScope', '$window', '$q', '$$q',\n\t       function($rootScope,   $window,   $q,   $$q) {\n\t    var intervals = {};\n\n\n\t     /**\n\t      * @ngdoc service\n\t      * @name $interval\n\t      *\n\t      * @description\n\t      * Angular's wrapper for `window.setInterval`. The `fn` function is executed every `delay`\n\t      * milliseconds.\n\t      *\n\t      * The return value of registering an interval function is a promise. This promise will be\n\t      * notified upon each tick of the interval, and will be resolved after `count` iterations, or\n\t      * run indefinitely if `count` is not defined. The value of the notification will be the\n\t      * number of iterations that have run.\n\t      * To cancel an interval, call `$interval.cancel(promise)`.\n\t      *\n\t      * In tests you can use {@link ngMock.$interval#flush `$interval.flush(millis)`} to\n\t      * move forward by `millis` milliseconds and trigger any functions scheduled to run in that\n\t      * time.\n\t      *\n\t      * <div class=\"alert alert-warning\">\n\t      * **Note**: Intervals created by this service must be explicitly destroyed when you are finished\n\t      * with them.  In particular they are not automatically destroyed when a controller's scope or a\n\t      * directive's element are destroyed.\n\t      * You should take this into consideration and make sure to always cancel the interval at the\n\t      * appropriate moment.  See the example below for more details on how and when to do this.\n\t      * </div>\n\t      *\n\t      * @param {function()} fn A function that should be called repeatedly.\n\t      * @param {number} delay Number of milliseconds between each function call.\n\t      * @param {number=} [count=0] Number of times to repeat. If not set, or 0, will repeat\n\t      *   indefinitely.\n\t      * @param {boolean=} [invokeApply=true] If set to `false` skips model dirty checking, otherwise\n\t      *   will invoke `fn` within the {@link ng.$rootScope.Scope#$apply $apply} block.\n\t      * @returns {promise} A promise which will be notified on each iteration.\n\t      *\n\t      * @example\n\t      * <example module=\"intervalExample\">\n\t      * <file name=\"index.html\">\n\t      *   <script>\n\t      *     angular.module('intervalExample', [])\n\t      *       .controller('ExampleController', ['$scope', '$interval',\n\t      *         function($scope, $interval) {\n\t      *           $scope.format = 'M/d/yy h:mm:ss a';\n\t      *           $scope.blood_1 = 100;\n\t      *           $scope.blood_2 = 120;\n\t      *\n\t      *           var stop;\n\t      *           $scope.fight = function() {\n\t      *             // Don't start a new fight if we are already fighting\n\t      *             if ( angular.isDefined(stop) ) return;\n\t      *\n\t      *             stop = $interval(function() {\n\t      *               if ($scope.blood_1 > 0 && $scope.blood_2 > 0) {\n\t      *                 $scope.blood_1 = $scope.blood_1 - 3;\n\t      *                 $scope.blood_2 = $scope.blood_2 - 4;\n\t      *               } else {\n\t      *                 $scope.stopFight();\n\t      *               }\n\t      *             }, 100);\n\t      *           };\n\t      *\n\t      *           $scope.stopFight = function() {\n\t      *             if (angular.isDefined(stop)) {\n\t      *               $interval.cancel(stop);\n\t      *               stop = undefined;\n\t      *             }\n\t      *           };\n\t      *\n\t      *           $scope.resetFight = function() {\n\t      *             $scope.blood_1 = 100;\n\t      *             $scope.blood_2 = 120;\n\t      *           };\n\t      *\n\t      *           $scope.$on('$destroy', function() {\n\t      *             // Make sure that the interval is destroyed too\n\t      *             $scope.stopFight();\n\t      *           });\n\t      *         }])\n\t      *       // Register the 'myCurrentTime' directive factory method.\n\t      *       // We inject $interval and dateFilter service since the factory method is DI.\n\t      *       .directive('myCurrentTime', ['$interval', 'dateFilter',\n\t      *         function($interval, dateFilter) {\n\t      *           // return the directive link function. (compile function not needed)\n\t      *           return function(scope, element, attrs) {\n\t      *             var format,  // date format\n\t      *                 stopTime; // so that we can cancel the time updates\n\t      *\n\t      *             // used to update the UI\n\t      *             function updateTime() {\n\t      *               element.text(dateFilter(new Date(), format));\n\t      *             }\n\t      *\n\t      *             // watch the expression, and update the UI on change.\n\t      *             scope.$watch(attrs.myCurrentTime, function(value) {\n\t      *               format = value;\n\t      *               updateTime();\n\t      *             });\n\t      *\n\t      *             stopTime = $interval(updateTime, 1000);\n\t      *\n\t      *             // listen on DOM destroy (removal) event, and cancel the next UI update\n\t      *             // to prevent updating time after the DOM element was removed.\n\t      *             element.on('$destroy', function() {\n\t      *               $interval.cancel(stopTime);\n\t      *             });\n\t      *           }\n\t      *         }]);\n\t      *   </script>\n\t      *\n\t      *   <div>\n\t      *     <div ng-controller=\"ExampleController\">\n\t      *       Date format: <input ng-model=\"format\"> <hr/>\n\t      *       Current time is: <span my-current-time=\"format\"></span>\n\t      *       <hr/>\n\t      *       Blood 1 : <font color='red'>{{blood_1}}</font>\n\t      *       Blood 2 : <font color='red'>{{blood_2}}</font>\n\t      *       <button type=\"button\" data-ng-click=\"fight()\">Fight</button>\n\t      *       <button type=\"button\" data-ng-click=\"stopFight()\">StopFight</button>\n\t      *       <button type=\"button\" data-ng-click=\"resetFight()\">resetFight</button>\n\t      *     </div>\n\t      *   </div>\n\t      *\n\t      * </file>\n\t      * </example>\n\t      */\n\t    function interval(fn, delay, count, invokeApply) {\n\t      var setInterval = $window.setInterval,\n\t          clearInterval = $window.clearInterval,\n\t          iteration = 0,\n\t          skipApply = (isDefined(invokeApply) && !invokeApply),\n\t          deferred = (skipApply ? $$q : $q).defer(),\n\t          promise = deferred.promise;\n\n\t      count = isDefined(count) ? count : 0;\n\n\t      promise.then(null, null, fn);\n\n\t      promise.$$intervalId = setInterval(function tick() {\n\t        deferred.notify(iteration++);\n\n\t        if (count > 0 && iteration >= count) {\n\t          deferred.resolve(iteration);\n\t          clearInterval(promise.$$intervalId);\n\t          delete intervals[promise.$$intervalId];\n\t        }\n\n\t        if (!skipApply) $rootScope.$apply();\n\n\t      }, delay);\n\n\t      intervals[promise.$$intervalId] = deferred;\n\n\t      return promise;\n\t    }\n\n\n\t     /**\n\t      * @ngdoc method\n\t      * @name $interval#cancel\n\t      *\n\t      * @description\n\t      * Cancels a task associated with the `promise`.\n\t      *\n\t      * @param {promise} promise returned by the `$interval` function.\n\t      * @returns {boolean} Returns `true` if the task was successfully canceled.\n\t      */\n\t    interval.cancel = function(promise) {\n\t      if (promise && promise.$$intervalId in intervals) {\n\t        intervals[promise.$$intervalId].reject('canceled');\n\t        $window.clearInterval(promise.$$intervalId);\n\t        delete intervals[promise.$$intervalId];\n\t        return true;\n\t      }\n\t      return false;\n\t    };\n\n\t    return interval;\n\t  }];\n\t}\n\n\t/**\n\t * @ngdoc service\n\t * @name $locale\n\t *\n\t * @description\n\t * $locale service provides localization rules for various Angular components. As of right now the\n\t * only public api is:\n\t *\n\t * * `id` – `{string}` – locale id formatted as `languageId-countryId` (e.g. `en-us`)\n\t */\n\tfunction $LocaleProvider() {\n\t  this.$get = function() {\n\t    return {\n\t      id: 'en-us',\n\n\t      NUMBER_FORMATS: {\n\t        DECIMAL_SEP: '.',\n\t        GROUP_SEP: ',',\n\t        PATTERNS: [\n\t          { // Decimal Pattern\n\t            minInt: 1,\n\t            minFrac: 0,\n\t            maxFrac: 3,\n\t            posPre: '',\n\t            posSuf: '',\n\t            negPre: '-',\n\t            negSuf: '',\n\t            gSize: 3,\n\t            lgSize: 3\n\t          },{ //Currency Pattern\n\t            minInt: 1,\n\t            minFrac: 2,\n\t            maxFrac: 2,\n\t            posPre: '\\u00A4',\n\t            posSuf: '',\n\t            negPre: '(\\u00A4',\n\t            negSuf: ')',\n\t            gSize: 3,\n\t            lgSize: 3\n\t          }\n\t        ],\n\t        CURRENCY_SYM: '$'\n\t      },\n\n\t      DATETIME_FORMATS: {\n\t        MONTH:\n\t            'January,February,March,April,May,June,July,August,September,October,November,December'\n\t            .split(','),\n\t        SHORTMONTH:  'Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec'.split(','),\n\t        DAY: 'Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday'.split(','),\n\t        SHORTDAY: 'Sun,Mon,Tue,Wed,Thu,Fri,Sat'.split(','),\n\t        AMPMS: ['AM','PM'],\n\t        medium: 'MMM d, y h:mm:ss a',\n\t        'short': 'M/d/yy h:mm a',\n\t        fullDate: 'EEEE, MMMM d, y',\n\t        longDate: 'MMMM d, y',\n\t        mediumDate: 'MMM d, y',\n\t        shortDate: 'M/d/yy',\n\t        mediumTime: 'h:mm:ss a',\n\t        shortTime: 'h:mm a',\n\t        ERANAMES: [\n\t          \"Before Christ\",\n\t          \"Anno Domini\"\n\t        ],\n\t        ERAS: [\n\t          \"BC\",\n\t          \"AD\"\n\t        ]\n\t      },\n\n\t      pluralCat: function(num) {\n\t        if (num === 1) {\n\t          return 'one';\n\t        }\n\t        return 'other';\n\t      }\n\t    };\n\t  };\n\t}\n\n\tvar PATH_MATCH = /^([^\\?#]*)(\\?([^#]*))?(#(.*))?$/,\n\t    DEFAULT_PORTS = {'http': 80, 'https': 443, 'ftp': 21};\n\tvar $locationMinErr = minErr('$location');\n\n\n\t/**\n\t * Encode path using encodeUriSegment, ignoring forward slashes\n\t *\n\t * @param {string} path Path to encode\n\t * @returns {string}\n\t */\n\tfunction encodePath(path) {\n\t  var segments = path.split('/'),\n\t      i = segments.length;\n\n\t  while (i--) {\n\t    segments[i] = encodeUriSegment(segments[i]);\n\t  }\n\n\t  return segments.join('/');\n\t}\n\n\tfunction parseAbsoluteUrl(absoluteUrl, locationObj) {\n\t  var parsedUrl = urlResolve(absoluteUrl);\n\n\t  locationObj.$$protocol = parsedUrl.protocol;\n\t  locationObj.$$host = parsedUrl.hostname;\n\t  locationObj.$$port = int(parsedUrl.port) || DEFAULT_PORTS[parsedUrl.protocol] || null;\n\t}\n\n\n\tfunction parseAppUrl(relativeUrl, locationObj) {\n\t  var prefixed = (relativeUrl.charAt(0) !== '/');\n\t  if (prefixed) {\n\t    relativeUrl = '/' + relativeUrl;\n\t  }\n\t  var match = urlResolve(relativeUrl);\n\t  locationObj.$$path = decodeURIComponent(prefixed && match.pathname.charAt(0) === '/' ?\n\t      match.pathname.substring(1) : match.pathname);\n\t  locationObj.$$search = parseKeyValue(match.search);\n\t  locationObj.$$hash = decodeURIComponent(match.hash);\n\n\t  // make sure path starts with '/';\n\t  if (locationObj.$$path && locationObj.$$path.charAt(0) != '/') {\n\t    locationObj.$$path = '/' + locationObj.$$path;\n\t  }\n\t}\n\n\n\t/**\n\t *\n\t * @param {string} begin\n\t * @param {string} whole\n\t * @returns {string} returns text from whole after begin or undefined if it does not begin with\n\t *                   expected string.\n\t */\n\tfunction beginsWith(begin, whole) {\n\t  if (whole.indexOf(begin) === 0) {\n\t    return whole.substr(begin.length);\n\t  }\n\t}\n\n\n\tfunction stripHash(url) {\n\t  var index = url.indexOf('#');\n\t  return index == -1 ? url : url.substr(0, index);\n\t}\n\n\tfunction trimEmptyHash(url) {\n\t  return url.replace(/(#.+)|#$/, '$1');\n\t}\n\n\n\tfunction stripFile(url) {\n\t  return url.substr(0, stripHash(url).lastIndexOf('/') + 1);\n\t}\n\n\t/* return the server only (scheme://host:port) */\n\tfunction serverBase(url) {\n\t  return url.substring(0, url.indexOf('/', url.indexOf('//') + 2));\n\t}\n\n\n\t/**\n\t * LocationHtml5Url represents an url\n\t * This object is exposed as $location service when HTML5 mode is enabled and supported\n\t *\n\t * @constructor\n\t * @param {string} appBase application base URL\n\t * @param {string} basePrefix url path prefix\n\t */\n\tfunction LocationHtml5Url(appBase, basePrefix) {\n\t  this.$$html5 = true;\n\t  basePrefix = basePrefix || '';\n\t  var appBaseNoFile = stripFile(appBase);\n\t  parseAbsoluteUrl(appBase, this);\n\n\n\t  /**\n\t   * Parse given html5 (regular) url string into properties\n\t   * @param {string} url HTML5 url\n\t   * @private\n\t   */\n\t  this.$$parse = function(url) {\n\t    var pathUrl = beginsWith(appBaseNoFile, url);\n\t    if (!isString(pathUrl)) {\n\t      throw $locationMinErr('ipthprfx', 'Invalid url \"{0}\", missing path prefix \"{1}\".', url,\n\t          appBaseNoFile);\n\t    }\n\n\t    parseAppUrl(pathUrl, this);\n\n\t    if (!this.$$path) {\n\t      this.$$path = '/';\n\t    }\n\n\t    this.$$compose();\n\t  };\n\n\t  /**\n\t   * Compose url and update `absUrl` property\n\t   * @private\n\t   */\n\t  this.$$compose = function() {\n\t    var search = toKeyValue(this.$$search),\n\t        hash = this.$$hash ? '#' + encodeUriSegment(this.$$hash) : '';\n\n\t    this.$$url = encodePath(this.$$path) + (search ? '?' + search : '') + hash;\n\t    this.$$absUrl = appBaseNoFile + this.$$url.substr(1); // first char is always '/'\n\t  };\n\n\t  this.$$parseLinkUrl = function(url, relHref) {\n\t    if (relHref && relHref[0] === '#') {\n\t      // special case for links to hash fragments:\n\t      // keep the old url and only replace the hash fragment\n\t      this.hash(relHref.slice(1));\n\t      return true;\n\t    }\n\t    var appUrl, prevAppUrl;\n\t    var rewrittenUrl;\n\n\t    if ((appUrl = beginsWith(appBase, url)) !== undefined) {\n\t      prevAppUrl = appUrl;\n\t      if ((appUrl = beginsWith(basePrefix, appUrl)) !== undefined) {\n\t        rewrittenUrl = appBaseNoFile + (beginsWith('/', appUrl) || appUrl);\n\t      } else {\n\t        rewrittenUrl = appBase + prevAppUrl;\n\t      }\n\t    } else if ((appUrl = beginsWith(appBaseNoFile, url)) !== undefined) {\n\t      rewrittenUrl = appBaseNoFile + appUrl;\n\t    } else if (appBaseNoFile == url + '/') {\n\t      rewrittenUrl = appBaseNoFile;\n\t    }\n\t    if (rewrittenUrl) {\n\t      this.$$parse(rewrittenUrl);\n\t    }\n\t    return !!rewrittenUrl;\n\t  };\n\t}\n\n\n\t/**\n\t * LocationHashbangUrl represents url\n\t * This object is exposed as $location service when developer doesn't opt into html5 mode.\n\t * It also serves as the base class for html5 mode fallback on legacy browsers.\n\t *\n\t * @constructor\n\t * @param {string} appBase application base URL\n\t * @param {string} hashPrefix hashbang prefix\n\t */\n\tfunction LocationHashbangUrl(appBase, hashPrefix) {\n\t  var appBaseNoFile = stripFile(appBase);\n\n\t  parseAbsoluteUrl(appBase, this);\n\n\n\t  /**\n\t   * Parse given hashbang url into properties\n\t   * @param {string} url Hashbang url\n\t   * @private\n\t   */\n\t  this.$$parse = function(url) {\n\t    var withoutBaseUrl = beginsWith(appBase, url) || beginsWith(appBaseNoFile, url);\n\t    var withoutHashUrl;\n\n\t    if (withoutBaseUrl.charAt(0) === '#') {\n\n\t      // The rest of the url starts with a hash so we have\n\t      // got either a hashbang path or a plain hash fragment\n\t      withoutHashUrl = beginsWith(hashPrefix, withoutBaseUrl);\n\t      if (isUndefined(withoutHashUrl)) {\n\t        // There was no hashbang prefix so we just have a hash fragment\n\t        withoutHashUrl = withoutBaseUrl;\n\t      }\n\n\t    } else {\n\t      // There was no hashbang path nor hash fragment:\n\t      // If we are in HTML5 mode we use what is left as the path;\n\t      // Otherwise we ignore what is left\n\t      withoutHashUrl = this.$$html5 ? withoutBaseUrl : '';\n\t    }\n\n\t    parseAppUrl(withoutHashUrl, this);\n\n\t    this.$$path = removeWindowsDriveName(this.$$path, withoutHashUrl, appBase);\n\n\t    this.$$compose();\n\n\t    /*\n\t     * In Windows, on an anchor node on documents loaded from\n\t     * the filesystem, the browser will return a pathname\n\t     * prefixed with the drive name ('/C:/path') when a\n\t     * pathname without a drive is set:\n\t     *  * a.setAttribute('href', '/foo')\n\t     *   * a.pathname === '/C:/foo' //true\n\t     *\n\t     * Inside of Angular, we're always using pathnames that\n\t     * do not include drive names for routing.\n\t     */\n\t    function removeWindowsDriveName(path, url, base) {\n\t      /*\n\t      Matches paths for file protocol on windows,\n\t      such as /C:/foo/bar, and captures only /foo/bar.\n\t      */\n\t      var windowsFilePathExp = /^\\/[A-Z]:(\\/.*)/;\n\n\t      var firstPathSegmentMatch;\n\n\t      //Get the relative path from the input URL.\n\t      if (url.indexOf(base) === 0) {\n\t        url = url.replace(base, '');\n\t      }\n\n\t      // The input URL intentionally contains a first path segment that ends with a colon.\n\t      if (windowsFilePathExp.exec(url)) {\n\t        return path;\n\t      }\n\n\t      firstPathSegmentMatch = windowsFilePathExp.exec(path);\n\t      return firstPathSegmentMatch ? firstPathSegmentMatch[1] : path;\n\t    }\n\t  };\n\n\t  /**\n\t   * Compose hashbang url and update `absUrl` property\n\t   * @private\n\t   */\n\t  this.$$compose = function() {\n\t    var search = toKeyValue(this.$$search),\n\t        hash = this.$$hash ? '#' + encodeUriSegment(this.$$hash) : '';\n\n\t    this.$$url = encodePath(this.$$path) + (search ? '?' + search : '') + hash;\n\t    this.$$absUrl = appBase + (this.$$url ? hashPrefix + this.$$url : '');\n\t  };\n\n\t  this.$$parseLinkUrl = function(url, relHref) {\n\t    if (stripHash(appBase) == stripHash(url)) {\n\t      this.$$parse(url);\n\t      return true;\n\t    }\n\t    return false;\n\t  };\n\t}\n\n\n\t/**\n\t * LocationHashbangUrl represents url\n\t * This object is exposed as $location service when html5 history api is enabled but the browser\n\t * does not support it.\n\t *\n\t * @constructor\n\t * @param {string} appBase application base URL\n\t * @param {string} hashPrefix hashbang prefix\n\t */\n\tfunction LocationHashbangInHtml5Url(appBase, hashPrefix) {\n\t  this.$$html5 = true;\n\t  LocationHashbangUrl.apply(this, arguments);\n\n\t  var appBaseNoFile = stripFile(appBase);\n\n\t  this.$$parseLinkUrl = function(url, relHref) {\n\t    if (relHref && relHref[0] === '#') {\n\t      // special case for links to hash fragments:\n\t      // keep the old url and only replace the hash fragment\n\t      this.hash(relHref.slice(1));\n\t      return true;\n\t    }\n\n\t    var rewrittenUrl;\n\t    var appUrl;\n\n\t    if (appBase == stripHash(url)) {\n\t      rewrittenUrl = url;\n\t    } else if ((appUrl = beginsWith(appBaseNoFile, url))) {\n\t      rewrittenUrl = appBase + hashPrefix + appUrl;\n\t    } else if (appBaseNoFile === url + '/') {\n\t      rewrittenUrl = appBaseNoFile;\n\t    }\n\t    if (rewrittenUrl) {\n\t      this.$$parse(rewrittenUrl);\n\t    }\n\t    return !!rewrittenUrl;\n\t  };\n\n\t  this.$$compose = function() {\n\t    var search = toKeyValue(this.$$search),\n\t        hash = this.$$hash ? '#' + encodeUriSegment(this.$$hash) : '';\n\n\t    this.$$url = encodePath(this.$$path) + (search ? '?' + search : '') + hash;\n\t    // include hashPrefix in $$absUrl when $$url is empty so IE8 & 9 do not reload page because of removal of '#'\n\t    this.$$absUrl = appBase + hashPrefix + this.$$url;\n\t  };\n\n\t}\n\n\n\tvar locationPrototype = {\n\n\t  /**\n\t   * Are we in html5 mode?\n\t   * @private\n\t   */\n\t  $$html5: false,\n\n\t  /**\n\t   * Has any change been replacing?\n\t   * @private\n\t   */\n\t  $$replace: false,\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $location#absUrl\n\t   *\n\t   * @description\n\t   * This method is getter only.\n\t   *\n\t   * Return full url representation with all segments encoded according to rules specified in\n\t   * [RFC 3986](http://www.ietf.org/rfc/rfc3986.txt).\n\t   *\n\t   *\n\t   * ```js\n\t   * // given url http://example.com/#/some/path?foo=bar&baz=xoxo\n\t   * var absUrl = $location.absUrl();\n\t   * // => \"http://example.com/#/some/path?foo=bar&baz=xoxo\"\n\t   * ```\n\t   *\n\t   * @return {string} full url\n\t   */\n\t  absUrl: locationGetter('$$absUrl'),\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $location#url\n\t   *\n\t   * @description\n\t   * This method is getter / setter.\n\t   *\n\t   * Return url (e.g. `/path?a=b#hash`) when called without any parameter.\n\t   *\n\t   * Change path, search and hash, when called with parameter and return `$location`.\n\t   *\n\t   *\n\t   * ```js\n\t   * // given url http://example.com/#/some/path?foo=bar&baz=xoxo\n\t   * var url = $location.url();\n\t   * // => \"/some/path?foo=bar&baz=xoxo\"\n\t   * ```\n\t   *\n\t   * @param {string=} url New url without base prefix (e.g. `/path?a=b#hash`)\n\t   * @return {string} url\n\t   */\n\t  url: function(url) {\n\t    if (isUndefined(url))\n\t      return this.$$url;\n\n\t    var match = PATH_MATCH.exec(url);\n\t    if (match[1] || url === '') this.path(decodeURIComponent(match[1]));\n\t    if (match[2] || match[1] || url === '') this.search(match[3] || '');\n\t    this.hash(match[5] || '');\n\n\t    return this;\n\t  },\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $location#protocol\n\t   *\n\t   * @description\n\t   * This method is getter only.\n\t   *\n\t   * Return protocol of current url.\n\t   *\n\t   *\n\t   * ```js\n\t   * // given url http://example.com/#/some/path?foo=bar&baz=xoxo\n\t   * var protocol = $location.protocol();\n\t   * // => \"http\"\n\t   * ```\n\t   *\n\t   * @return {string} protocol of current url\n\t   */\n\t  protocol: locationGetter('$$protocol'),\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $location#host\n\t   *\n\t   * @description\n\t   * This method is getter only.\n\t   *\n\t   * Return host of current url.\n\t   *\n\t   *\n\t   * ```js\n\t   * // given url http://example.com/#/some/path?foo=bar&baz=xoxo\n\t   * var host = $location.host();\n\t   * // => \"example.com\"\n\t   * ```\n\t   *\n\t   * @return {string} host of current url.\n\t   */\n\t  host: locationGetter('$$host'),\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $location#port\n\t   *\n\t   * @description\n\t   * This method is getter only.\n\t   *\n\t   * Return port of current url.\n\t   *\n\t   *\n\t   * ```js\n\t   * // given url http://example.com/#/some/path?foo=bar&baz=xoxo\n\t   * var port = $location.port();\n\t   * // => 80\n\t   * ```\n\t   *\n\t   * @return {Number} port\n\t   */\n\t  port: locationGetter('$$port'),\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $location#path\n\t   *\n\t   * @description\n\t   * This method is getter / setter.\n\t   *\n\t   * Return path of current url when called without any parameter.\n\t   *\n\t   * Change path when called with parameter and return `$location`.\n\t   *\n\t   * Note: Path should always begin with forward slash (/), this method will add the forward slash\n\t   * if it is missing.\n\t   *\n\t   *\n\t   * ```js\n\t   * // given url http://example.com/#/some/path?foo=bar&baz=xoxo\n\t   * var path = $location.path();\n\t   * // => \"/some/path\"\n\t   * ```\n\t   *\n\t   * @param {(string|number)=} path New path\n\t   * @return {string} path\n\t   */\n\t  path: locationGetterSetter('$$path', function(path) {\n\t    path = path !== null ? path.toString() : '';\n\t    return path.charAt(0) == '/' ? path : '/' + path;\n\t  }),\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $location#search\n\t   *\n\t   * @description\n\t   * This method is getter / setter.\n\t   *\n\t   * Return search part (as object) of current url when called without any parameter.\n\t   *\n\t   * Change search part when called with parameter and return `$location`.\n\t   *\n\t   *\n\t   * ```js\n\t   * // given url http://example.com/#/some/path?foo=bar&baz=xoxo\n\t   * var searchObject = $location.search();\n\t   * // => {foo: 'bar', baz: 'xoxo'}\n\t   *\n\t   * // set foo to 'yipee'\n\t   * $location.search('foo', 'yipee');\n\t   * // $location.search() => {foo: 'yipee', baz: 'xoxo'}\n\t   * ```\n\t   *\n\t   * @param {string|Object.<string>|Object.<Array.<string>>} search New search params - string or\n\t   * hash object.\n\t   *\n\t   * When called with a single argument the method acts as a setter, setting the `search` component\n\t   * of `$location` to the specified value.\n\t   *\n\t   * If the argument is a hash object containing an array of values, these values will be encoded\n\t   * as duplicate search parameters in the url.\n\t   *\n\t   * @param {(string|Number|Array<string>|boolean)=} paramValue If `search` is a string or number, then `paramValue`\n\t   * will override only a single search property.\n\t   *\n\t   * If `paramValue` is an array, it will override the property of the `search` component of\n\t   * `$location` specified via the first argument.\n\t   *\n\t   * If `paramValue` is `null`, the property specified via the first argument will be deleted.\n\t   *\n\t   * If `paramValue` is `true`, the property specified via the first argument will be added with no\n\t   * value nor trailing equal sign.\n\t   *\n\t   * @return {Object} If called with no arguments returns the parsed `search` object. If called with\n\t   * one or more arguments returns `$location` object itself.\n\t   */\n\t  search: function(search, paramValue) {\n\t    switch (arguments.length) {\n\t      case 0:\n\t        return this.$$search;\n\t      case 1:\n\t        if (isString(search) || isNumber(search)) {\n\t          search = search.toString();\n\t          this.$$search = parseKeyValue(search);\n\t        } else if (isObject(search)) {\n\t          search = copy(search, {});\n\t          // remove object undefined or null properties\n\t          forEach(search, function(value, key) {\n\t            if (value == null) delete search[key];\n\t          });\n\n\t          this.$$search = search;\n\t        } else {\n\t          throw $locationMinErr('isrcharg',\n\t              'The first argument of the `$location#search()` call must be a string or an object.');\n\t        }\n\t        break;\n\t      default:\n\t        if (isUndefined(paramValue) || paramValue === null) {\n\t          delete this.$$search[search];\n\t        } else {\n\t          this.$$search[search] = paramValue;\n\t        }\n\t    }\n\n\t    this.$$compose();\n\t    return this;\n\t  },\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $location#hash\n\t   *\n\t   * @description\n\t   * This method is getter / setter.\n\t   *\n\t   * Return hash fragment when called without any parameter.\n\t   *\n\t   * Change hash fragment when called with parameter and return `$location`.\n\t   *\n\t   *\n\t   * ```js\n\t   * // given url http://example.com/#/some/path?foo=bar&baz=xoxo#hashValue\n\t   * var hash = $location.hash();\n\t   * // => \"hashValue\"\n\t   * ```\n\t   *\n\t   * @param {(string|number)=} hash New hash fragment\n\t   * @return {string} hash\n\t   */\n\t  hash: locationGetterSetter('$$hash', function(hash) {\n\t    return hash !== null ? hash.toString() : '';\n\t  }),\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $location#replace\n\t   *\n\t   * @description\n\t   * If called, all changes to $location during current `$digest` will be replacing current history\n\t   * record, instead of adding new one.\n\t   */\n\t  replace: function() {\n\t    this.$$replace = true;\n\t    return this;\n\t  }\n\t};\n\n\tforEach([LocationHashbangInHtml5Url, LocationHashbangUrl, LocationHtml5Url], function(Location) {\n\t  Location.prototype = Object.create(locationPrototype);\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $location#state\n\t   *\n\t   * @description\n\t   * This method is getter / setter.\n\t   *\n\t   * Return the history state object when called without any parameter.\n\t   *\n\t   * Change the history state object when called with one parameter and return `$location`.\n\t   * The state object is later passed to `pushState` or `replaceState`.\n\t   *\n\t   * NOTE: This method is supported only in HTML5 mode and only in browsers supporting\n\t   * the HTML5 History API (i.e. methods `pushState` and `replaceState`). If you need to support\n\t   * older browsers (like IE9 or Android < 4.0), don't use this method.\n\t   *\n\t   * @param {object=} state State object for pushState or replaceState\n\t   * @return {object} state\n\t   */\n\t  Location.prototype.state = function(state) {\n\t    if (!arguments.length)\n\t      return this.$$state;\n\n\t    if (Location !== LocationHtml5Url || !this.$$html5) {\n\t      throw $locationMinErr('nostate', 'History API state support is available only ' +\n\t        'in HTML5 mode and only in browsers supporting HTML5 History API');\n\t    }\n\t    // The user might modify `stateObject` after invoking `$location.state(stateObject)`\n\t    // but we're changing the $$state reference to $browser.state() during the $digest\n\t    // so the modification window is narrow.\n\t    this.$$state = isUndefined(state) ? null : state;\n\n\t    return this;\n\t  };\n\t});\n\n\n\tfunction locationGetter(property) {\n\t  return function() {\n\t    return this[property];\n\t  };\n\t}\n\n\n\tfunction locationGetterSetter(property, preprocess) {\n\t  return function(value) {\n\t    if (isUndefined(value))\n\t      return this[property];\n\n\t    this[property] = preprocess(value);\n\t    this.$$compose();\n\n\t    return this;\n\t  };\n\t}\n\n\n\t/**\n\t * @ngdoc service\n\t * @name $location\n\t *\n\t * @requires $rootElement\n\t *\n\t * @description\n\t * The $location service parses the URL in the browser address bar (based on the\n\t * [window.location](https://developer.mozilla.org/en/window.location)) and makes the URL\n\t * available to your application. Changes to the URL in the address bar are reflected into\n\t * $location service and changes to $location are reflected into the browser address bar.\n\t *\n\t * **The $location service:**\n\t *\n\t * - Exposes the current URL in the browser address bar, so you can\n\t *   - Watch and observe the URL.\n\t *   - Change the URL.\n\t * - Synchronizes the URL with the browser when the user\n\t *   - Changes the address bar.\n\t *   - Clicks the back or forward button (or clicks a History link).\n\t *   - Clicks on a link.\n\t * - Represents the URL object as a set of methods (protocol, host, port, path, search, hash).\n\t *\n\t * For more information see {@link guide/$location Developer Guide: Using $location}\n\t */\n\n\t/**\n\t * @ngdoc provider\n\t * @name $locationProvider\n\t * @description\n\t * Use the `$locationProvider` to configure how the application deep linking paths are stored.\n\t */\n\tfunction $LocationProvider() {\n\t  var hashPrefix = '',\n\t      html5Mode = {\n\t        enabled: false,\n\t        requireBase: true,\n\t        rewriteLinks: true\n\t      };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $locationProvider#hashPrefix\n\t   * @description\n\t   * @param {string=} prefix Prefix for hash part (containing path and search)\n\t   * @returns {*} current value if used as getter or itself (chaining) if used as setter\n\t   */\n\t  this.hashPrefix = function(prefix) {\n\t    if (isDefined(prefix)) {\n\t      hashPrefix = prefix;\n\t      return this;\n\t    } else {\n\t      return hashPrefix;\n\t    }\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $locationProvider#html5Mode\n\t   * @description\n\t   * @param {(boolean|Object)=} mode If boolean, sets `html5Mode.enabled` to value.\n\t   *   If object, sets `enabled`, `requireBase` and `rewriteLinks` to respective values. Supported\n\t   *   properties:\n\t   *   - **enabled** – `{boolean}` – (default: false) If true, will rely on `history.pushState` to\n\t   *     change urls where supported. Will fall back to hash-prefixed paths in browsers that do not\n\t   *     support `pushState`.\n\t   *   - **requireBase** - `{boolean}` - (default: `true`) When html5Mode is enabled, specifies\n\t   *     whether or not a <base> tag is required to be present. If `enabled` and `requireBase` are\n\t   *     true, and a base tag is not present, an error will be thrown when `$location` is injected.\n\t   *     See the {@link guide/$location $location guide for more information}\n\t   *   - **rewriteLinks** - `{boolean}` - (default: `true`) When html5Mode is enabled,\n\t   *     enables/disables url rewriting for relative links.\n\t   *\n\t   * @returns {Object} html5Mode object if used as getter or itself (chaining) if used as setter\n\t   */\n\t  this.html5Mode = function(mode) {\n\t    if (isBoolean(mode)) {\n\t      html5Mode.enabled = mode;\n\t      return this;\n\t    } else if (isObject(mode)) {\n\n\t      if (isBoolean(mode.enabled)) {\n\t        html5Mode.enabled = mode.enabled;\n\t      }\n\n\t      if (isBoolean(mode.requireBase)) {\n\t        html5Mode.requireBase = mode.requireBase;\n\t      }\n\n\t      if (isBoolean(mode.rewriteLinks)) {\n\t        html5Mode.rewriteLinks = mode.rewriteLinks;\n\t      }\n\n\t      return this;\n\t    } else {\n\t      return html5Mode;\n\t    }\n\t  };\n\n\t  /**\n\t   * @ngdoc event\n\t   * @name $location#$locationChangeStart\n\t   * @eventType broadcast on root scope\n\t   * @description\n\t   * Broadcasted before a URL will change.\n\t   *\n\t   * This change can be prevented by calling\n\t   * `preventDefault` method of the event. See {@link ng.$rootScope.Scope#$on} for more\n\t   * details about event object. Upon successful change\n\t   * {@link ng.$location#$locationChangeSuccess $locationChangeSuccess} is fired.\n\t   *\n\t   * The `newState` and `oldState` parameters may be defined only in HTML5 mode and when\n\t   * the browser supports the HTML5 History API.\n\t   *\n\t   * @param {Object} angularEvent Synthetic event object.\n\t   * @param {string} newUrl New URL\n\t   * @param {string=} oldUrl URL that was before it was changed.\n\t   * @param {string=} newState New history state object\n\t   * @param {string=} oldState History state object that was before it was changed.\n\t   */\n\n\t  /**\n\t   * @ngdoc event\n\t   * @name $location#$locationChangeSuccess\n\t   * @eventType broadcast on root scope\n\t   * @description\n\t   * Broadcasted after a URL was changed.\n\t   *\n\t   * The `newState` and `oldState` parameters may be defined only in HTML5 mode and when\n\t   * the browser supports the HTML5 History API.\n\t   *\n\t   * @param {Object} angularEvent Synthetic event object.\n\t   * @param {string} newUrl New URL\n\t   * @param {string=} oldUrl URL that was before it was changed.\n\t   * @param {string=} newState New history state object\n\t   * @param {string=} oldState History state object that was before it was changed.\n\t   */\n\n\t  this.$get = ['$rootScope', '$browser', '$sniffer', '$rootElement', '$window',\n\t      function($rootScope, $browser, $sniffer, $rootElement, $window) {\n\t    var $location,\n\t        LocationMode,\n\t        baseHref = $browser.baseHref(), // if base[href] is undefined, it defaults to ''\n\t        initialUrl = $browser.url(),\n\t        appBase;\n\n\t    if (html5Mode.enabled) {\n\t      if (!baseHref && html5Mode.requireBase) {\n\t        throw $locationMinErr('nobase',\n\t          \"$location in HTML5 mode requires a <base> tag to be present!\");\n\t      }\n\t      appBase = serverBase(initialUrl) + (baseHref || '/');\n\t      LocationMode = $sniffer.history ? LocationHtml5Url : LocationHashbangInHtml5Url;\n\t    } else {\n\t      appBase = stripHash(initialUrl);\n\t      LocationMode = LocationHashbangUrl;\n\t    }\n\t    $location = new LocationMode(appBase, '#' + hashPrefix);\n\t    $location.$$parseLinkUrl(initialUrl, initialUrl);\n\n\t    $location.$$state = $browser.state();\n\n\t    var IGNORE_URI_REGEXP = /^\\s*(javascript|mailto):/i;\n\n\t    function setBrowserUrlWithFallback(url, replace, state) {\n\t      var oldUrl = $location.url();\n\t      var oldState = $location.$$state;\n\t      try {\n\t        $browser.url(url, replace, state);\n\n\t        // Make sure $location.state() returns referentially identical (not just deeply equal)\n\t        // state object; this makes possible quick checking if the state changed in the digest\n\t        // loop. Checking deep equality would be too expensive.\n\t        $location.$$state = $browser.state();\n\t      } catch (e) {\n\t        // Restore old values if pushState fails\n\t        $location.url(oldUrl);\n\t        $location.$$state = oldState;\n\n\t        throw e;\n\t      }\n\t    }\n\n\t    $rootElement.on('click', function(event) {\n\t      // TODO(vojta): rewrite link when opening in new tab/window (in legacy browser)\n\t      // currently we open nice url link and redirect then\n\n\t      if (!html5Mode.rewriteLinks || event.ctrlKey || event.metaKey || event.shiftKey || event.which == 2 || event.button == 2) return;\n\n\t      var elm = jqLite(event.target);\n\n\t      // traverse the DOM up to find first A tag\n\t      while (nodeName_(elm[0]) !== 'a') {\n\t        // ignore rewriting if no A tag (reached root element, or no parent - removed from document)\n\t        if (elm[0] === $rootElement[0] || !(elm = elm.parent())[0]) return;\n\t      }\n\n\t      var absHref = elm.prop('href');\n\t      // get the actual href attribute - see\n\t      // http://msdn.microsoft.com/en-us/library/ie/dd347148(v=vs.85).aspx\n\t      var relHref = elm.attr('href') || elm.attr('xlink:href');\n\n\t      if (isObject(absHref) && absHref.toString() === '[object SVGAnimatedString]') {\n\t        // SVGAnimatedString.animVal should be identical to SVGAnimatedString.baseVal, unless during\n\t        // an animation.\n\t        absHref = urlResolve(absHref.animVal).href;\n\t      }\n\n\t      // Ignore when url is started with javascript: or mailto:\n\t      if (IGNORE_URI_REGEXP.test(absHref)) return;\n\n\t      if (absHref && !elm.attr('target') && !event.isDefaultPrevented()) {\n\t        if ($location.$$parseLinkUrl(absHref, relHref)) {\n\t          // We do a preventDefault for all urls that are part of the angular application,\n\t          // in html5mode and also without, so that we are able to abort navigation without\n\t          // getting double entries in the location history.\n\t          event.preventDefault();\n\t          // update location manually\n\t          if ($location.absUrl() != $browser.url()) {\n\t            $rootScope.$apply();\n\t            // hack to work around FF6 bug 684208 when scenario runner clicks on links\n\t            $window.angular['ff-684208-preventDefault'] = true;\n\t          }\n\t        }\n\t      }\n\t    });\n\n\n\t    // rewrite hashbang url <> html5 url\n\t    if (trimEmptyHash($location.absUrl()) != trimEmptyHash(initialUrl)) {\n\t      $browser.url($location.absUrl(), true);\n\t    }\n\n\t    var initializing = true;\n\n\t    // update $location when $browser url changes\n\t    $browser.onUrlChange(function(newUrl, newState) {\n\t      $rootScope.$evalAsync(function() {\n\t        var oldUrl = $location.absUrl();\n\t        var oldState = $location.$$state;\n\t        var defaultPrevented;\n\n\t        $location.$$parse(newUrl);\n\t        $location.$$state = newState;\n\n\t        defaultPrevented = $rootScope.$broadcast('$locationChangeStart', newUrl, oldUrl,\n\t            newState, oldState).defaultPrevented;\n\n\t        // if the location was changed by a `$locationChangeStart` handler then stop\n\t        // processing this location change\n\t        if ($location.absUrl() !== newUrl) return;\n\n\t        if (defaultPrevented) {\n\t          $location.$$parse(oldUrl);\n\t          $location.$$state = oldState;\n\t          setBrowserUrlWithFallback(oldUrl, false, oldState);\n\t        } else {\n\t          initializing = false;\n\t          afterLocationChange(oldUrl, oldState);\n\t        }\n\t      });\n\t      if (!$rootScope.$$phase) $rootScope.$digest();\n\t    });\n\n\t    // update browser\n\t    $rootScope.$watch(function $locationWatch() {\n\t      var oldUrl = trimEmptyHash($browser.url());\n\t      var newUrl = trimEmptyHash($location.absUrl());\n\t      var oldState = $browser.state();\n\t      var currentReplace = $location.$$replace;\n\t      var urlOrStateChanged = oldUrl !== newUrl ||\n\t        ($location.$$html5 && $sniffer.history && oldState !== $location.$$state);\n\n\t      if (initializing || urlOrStateChanged) {\n\t        initializing = false;\n\n\t        $rootScope.$evalAsync(function() {\n\t          var newUrl = $location.absUrl();\n\t          var defaultPrevented = $rootScope.$broadcast('$locationChangeStart', newUrl, oldUrl,\n\t              $location.$$state, oldState).defaultPrevented;\n\n\t          // if the location was changed by a `$locationChangeStart` handler then stop\n\t          // processing this location change\n\t          if ($location.absUrl() !== newUrl) return;\n\n\t          if (defaultPrevented) {\n\t            $location.$$parse(oldUrl);\n\t            $location.$$state = oldState;\n\t          } else {\n\t            if (urlOrStateChanged) {\n\t              setBrowserUrlWithFallback(newUrl, currentReplace,\n\t                                        oldState === $location.$$state ? null : $location.$$state);\n\t            }\n\t            afterLocationChange(oldUrl, oldState);\n\t          }\n\t        });\n\t      }\n\n\t      $location.$$replace = false;\n\n\t      // we don't need to return anything because $evalAsync will make the digest loop dirty when\n\t      // there is a change\n\t    });\n\n\t    return $location;\n\n\t    function afterLocationChange(oldUrl, oldState) {\n\t      $rootScope.$broadcast('$locationChangeSuccess', $location.absUrl(), oldUrl,\n\t        $location.$$state, oldState);\n\t    }\n\t}];\n\t}\n\n\t/**\n\t * @ngdoc service\n\t * @name $log\n\t * @requires $window\n\t *\n\t * @description\n\t * Simple service for logging. Default implementation safely writes the message\n\t * into the browser's console (if present).\n\t *\n\t * The main purpose of this service is to simplify debugging and troubleshooting.\n\t *\n\t * The default is to log `debug` messages. You can use\n\t * {@link ng.$logProvider ng.$logProvider#debugEnabled} to change this.\n\t *\n\t * @example\n\t   <example module=\"logExample\">\n\t     <file name=\"script.js\">\n\t       angular.module('logExample', [])\n\t         .controller('LogController', ['$scope', '$log', function($scope, $log) {\n\t           $scope.$log = $log;\n\t           $scope.message = 'Hello World!';\n\t         }]);\n\t     </file>\n\t     <file name=\"index.html\">\n\t       <div ng-controller=\"LogController\">\n\t         <p>Reload this page with open console, enter text and hit the log button...</p>\n\t         Message:\n\t         <input type=\"text\" ng-model=\"message\"/>\n\t         <button ng-click=\"$log.log(message)\">log</button>\n\t         <button ng-click=\"$log.warn(message)\">warn</button>\n\t         <button ng-click=\"$log.info(message)\">info</button>\n\t         <button ng-click=\"$log.error(message)\">error</button>\n\t         <button ng-click=\"$log.debug(message)\">debug</button>\n\t       </div>\n\t     </file>\n\t   </example>\n\t */\n\n\t/**\n\t * @ngdoc provider\n\t * @name $logProvider\n\t * @description\n\t * Use the `$logProvider` to configure how the application logs messages\n\t */\n\tfunction $LogProvider() {\n\t  var debug = true,\n\t      self = this;\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $logProvider#debugEnabled\n\t   * @description\n\t   * @param {boolean=} flag enable or disable debug level messages\n\t   * @returns {*} current value if used as getter or itself (chaining) if used as setter\n\t   */\n\t  this.debugEnabled = function(flag) {\n\t    if (isDefined(flag)) {\n\t      debug = flag;\n\t    return this;\n\t    } else {\n\t      return debug;\n\t    }\n\t  };\n\n\t  this.$get = ['$window', function($window) {\n\t    return {\n\t      /**\n\t       * @ngdoc method\n\t       * @name $log#log\n\t       *\n\t       * @description\n\t       * Write a log message\n\t       */\n\t      log: consoleLog('log'),\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $log#info\n\t       *\n\t       * @description\n\t       * Write an information message\n\t       */\n\t      info: consoleLog('info'),\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $log#warn\n\t       *\n\t       * @description\n\t       * Write a warning message\n\t       */\n\t      warn: consoleLog('warn'),\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $log#error\n\t       *\n\t       * @description\n\t       * Write an error message\n\t       */\n\t      error: consoleLog('error'),\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $log#debug\n\t       *\n\t       * @description\n\t       * Write a debug message\n\t       */\n\t      debug: (function() {\n\t        var fn = consoleLog('debug');\n\n\t        return function() {\n\t          if (debug) {\n\t            fn.apply(self, arguments);\n\t          }\n\t        };\n\t      }())\n\t    };\n\n\t    function formatError(arg) {\n\t      if (arg instanceof Error) {\n\t        if (arg.stack) {\n\t          arg = (arg.message && arg.stack.indexOf(arg.message) === -1)\n\t              ? 'Error: ' + arg.message + '\\n' + arg.stack\n\t              : arg.stack;\n\t        } else if (arg.sourceURL) {\n\t          arg = arg.message + '\\n' + arg.sourceURL + ':' + arg.line;\n\t        }\n\t      }\n\t      return arg;\n\t    }\n\n\t    function consoleLog(type) {\n\t      var console = $window.console || {},\n\t          logFn = console[type] || console.log || noop,\n\t          hasApply = false;\n\n\t      // Note: reading logFn.apply throws an error in IE11 in IE8 document mode.\n\t      // The reason behind this is that console.log has type \"object\" in IE8...\n\t      try {\n\t        hasApply = !!logFn.apply;\n\t      } catch (e) {}\n\n\t      if (hasApply) {\n\t        return function() {\n\t          var args = [];\n\t          forEach(arguments, function(arg) {\n\t            args.push(formatError(arg));\n\t          });\n\t          return logFn.apply(console, args);\n\t        };\n\t      }\n\n\t      // we are IE which either doesn't have window.console => this is noop and we do nothing,\n\t      // or we are IE where console.log doesn't have apply so we log at least first 2 args\n\t      return function(arg1, arg2) {\n\t        logFn(arg1, arg2 == null ? '' : arg2);\n\t      };\n\t    }\n\t  }];\n\t}\n\n\t/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\n\t *     Any commits to this file should be reviewed with security in mind.  *\n\t *   Changes to this file can potentially create security vulnerabilities. *\n\t *          An approval from 2 Core members with history of modifying      *\n\t *                         this file is required.                          *\n\t *                                                                         *\n\t *  Does the change somehow allow for arbitrary javascript to be executed? *\n\t *    Or allows for someone to change the prototype of built-in objects?   *\n\t *     Or gives undesired access to variables likes document or window?    *\n\t * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */\n\n\tvar $parseMinErr = minErr('$parse');\n\n\t// Sandboxing Angular Expressions\n\t// ------------------------------\n\t// Angular expressions are generally considered safe because these expressions only have direct\n\t// access to `$scope` and locals. However, one can obtain the ability to execute arbitrary JS code by\n\t// obtaining a reference to native JS functions such as the Function constructor.\n\t//\n\t// As an example, consider the following Angular expression:\n\t//\n\t//   {}.toString.constructor('alert(\"evil JS code\")')\n\t//\n\t// This sandboxing technique is not perfect and doesn't aim to be. The goal is to prevent exploits\n\t// against the expression language, but not to prevent exploits that were enabled by exposing\n\t// sensitive JavaScript or browser APIs on Scope. Exposing such objects on a Scope is never a good\n\t// practice and therefore we are not even trying to protect against interaction with an object\n\t// explicitly exposed in this way.\n\t//\n\t// In general, it is not possible to access a Window object from an angular expression unless a\n\t// window or some DOM object that has a reference to window is published onto a Scope.\n\t// Similarly we prevent invocations of function known to be dangerous, as well as assignments to\n\t// native objects.\n\t//\n\t// See https://docs.angularjs.org/guide/security\n\n\n\tfunction ensureSafeMemberName(name, fullExpression) {\n\t  if (name === \"__defineGetter__\" || name === \"__defineSetter__\"\n\t      || name === \"__lookupGetter__\" || name === \"__lookupSetter__\"\n\t      || name === \"__proto__\") {\n\t    throw $parseMinErr('isecfld',\n\t        'Attempting to access a disallowed field in Angular expressions! '\n\t        + 'Expression: {0}', fullExpression);\n\t  }\n\t  return name;\n\t}\n\n\tfunction ensureSafeObject(obj, fullExpression) {\n\t  // nifty check if obj is Function that is fast and works across iframes and other contexts\n\t  if (obj) {\n\t    if (obj.constructor === obj) {\n\t      throw $parseMinErr('isecfn',\n\t          'Referencing Function in Angular expressions is disallowed! Expression: {0}',\n\t          fullExpression);\n\t    } else if (// isWindow(obj)\n\t        obj.window === obj) {\n\t      throw $parseMinErr('isecwindow',\n\t          'Referencing the Window in Angular expressions is disallowed! Expression: {0}',\n\t          fullExpression);\n\t    } else if (// isElement(obj)\n\t        obj.children && (obj.nodeName || (obj.prop && obj.attr && obj.find))) {\n\t      throw $parseMinErr('isecdom',\n\t          'Referencing DOM nodes in Angular expressions is disallowed! Expression: {0}',\n\t          fullExpression);\n\t    } else if (// block Object so that we can't get hold of dangerous Object.* methods\n\t        obj === Object) {\n\t      throw $parseMinErr('isecobj',\n\t          'Referencing Object in Angular expressions is disallowed! Expression: {0}',\n\t          fullExpression);\n\t    }\n\t  }\n\t  return obj;\n\t}\n\n\tvar CALL = Function.prototype.call;\n\tvar APPLY = Function.prototype.apply;\n\tvar BIND = Function.prototype.bind;\n\n\tfunction ensureSafeFunction(obj, fullExpression) {\n\t  if (obj) {\n\t    if (obj.constructor === obj) {\n\t      throw $parseMinErr('isecfn',\n\t        'Referencing Function in Angular expressions is disallowed! Expression: {0}',\n\t        fullExpression);\n\t    } else if (obj === CALL || obj === APPLY || obj === BIND) {\n\t      throw $parseMinErr('isecff',\n\t        'Referencing call, apply or bind in Angular expressions is disallowed! Expression: {0}',\n\t        fullExpression);\n\t    }\n\t  }\n\t}\n\n\t//Keyword constants\n\tvar CONSTANTS = createMap();\n\tforEach({\n\t  'null': function() { return null; },\n\t  'true': function() { return true; },\n\t  'false': function() { return false; },\n\t  'undefined': function() {}\n\t}, function(constantGetter, name) {\n\t  constantGetter.constant = constantGetter.literal = constantGetter.sharedGetter = true;\n\t  CONSTANTS[name] = constantGetter;\n\t});\n\n\t//Not quite a constant, but can be lex/parsed the same\n\tCONSTANTS['this'] = function(self) { return self; };\n\tCONSTANTS['this'].sharedGetter = true;\n\n\n\t//Operators - will be wrapped by binaryFn/unaryFn/assignment/filter\n\tvar OPERATORS = extend(createMap(), {\n\t    '+':function(self, locals, a, b) {\n\t      a=a(self, locals); b=b(self, locals);\n\t      if (isDefined(a)) {\n\t        if (isDefined(b)) {\n\t          return a + b;\n\t        }\n\t        return a;\n\t      }\n\t      return isDefined(b) ? b : undefined;},\n\t    '-':function(self, locals, a, b) {\n\t          a=a(self, locals); b=b(self, locals);\n\t          return (isDefined(a) ? a : 0) - (isDefined(b) ? b : 0);\n\t        },\n\t    '*':function(self, locals, a, b) {return a(self, locals) * b(self, locals);},\n\t    '/':function(self, locals, a, b) {return a(self, locals) / b(self, locals);},\n\t    '%':function(self, locals, a, b) {return a(self, locals) % b(self, locals);},\n\t    '===':function(self, locals, a, b) {return a(self, locals) === b(self, locals);},\n\t    '!==':function(self, locals, a, b) {return a(self, locals) !== b(self, locals);},\n\t    '==':function(self, locals, a, b) {return a(self, locals) == b(self, locals);},\n\t    '!=':function(self, locals, a, b) {return a(self, locals) != b(self, locals);},\n\t    '<':function(self, locals, a, b) {return a(self, locals) < b(self, locals);},\n\t    '>':function(self, locals, a, b) {return a(self, locals) > b(self, locals);},\n\t    '<=':function(self, locals, a, b) {return a(self, locals) <= b(self, locals);},\n\t    '>=':function(self, locals, a, b) {return a(self, locals) >= b(self, locals);},\n\t    '&&':function(self, locals, a, b) {return a(self, locals) && b(self, locals);},\n\t    '||':function(self, locals, a, b) {return a(self, locals) || b(self, locals);},\n\t    '!':function(self, locals, a) {return !a(self, locals);},\n\n\t    //Tokenized as operators but parsed as assignment/filters\n\t    '=':true,\n\t    '|':true\n\t});\n\tvar ESCAPE = {\"n\":\"\\n\", \"f\":\"\\f\", \"r\":\"\\r\", \"t\":\"\\t\", \"v\":\"\\v\", \"'\":\"'\", '\"':'\"'};\n\n\n\t/////////////////////////////////////////\n\n\n\t/**\n\t * @constructor\n\t */\n\tvar Lexer = function(options) {\n\t  this.options = options;\n\t};\n\n\tLexer.prototype = {\n\t  constructor: Lexer,\n\n\t  lex: function(text) {\n\t    this.text = text;\n\t    this.index = 0;\n\t    this.tokens = [];\n\n\t    while (this.index < this.text.length) {\n\t      var ch = this.text.charAt(this.index);\n\t      if (ch === '\"' || ch === \"'\") {\n\t        this.readString(ch);\n\t      } else if (this.isNumber(ch) || ch === '.' && this.isNumber(this.peek())) {\n\t        this.readNumber();\n\t      } else if (this.isIdent(ch)) {\n\t        this.readIdent();\n\t      } else if (this.is(ch, '(){}[].,;:?')) {\n\t        this.tokens.push({index: this.index, text: ch});\n\t        this.index++;\n\t      } else if (this.isWhitespace(ch)) {\n\t        this.index++;\n\t      } else {\n\t        var ch2 = ch + this.peek();\n\t        var ch3 = ch2 + this.peek(2);\n\t        var op1 = OPERATORS[ch];\n\t        var op2 = OPERATORS[ch2];\n\t        var op3 = OPERATORS[ch3];\n\t        if (op1 || op2 || op3) {\n\t          var token = op3 ? ch3 : (op2 ? ch2 : ch);\n\t          this.tokens.push({index: this.index, text: token, operator: true});\n\t          this.index += token.length;\n\t        } else {\n\t          this.throwError('Unexpected next character ', this.index, this.index + 1);\n\t        }\n\t      }\n\t    }\n\t    return this.tokens;\n\t  },\n\n\t  is: function(ch, chars) {\n\t    return chars.indexOf(ch) !== -1;\n\t  },\n\n\t  peek: function(i) {\n\t    var num = i || 1;\n\t    return (this.index + num < this.text.length) ? this.text.charAt(this.index + num) : false;\n\t  },\n\n\t  isNumber: function(ch) {\n\t    return ('0' <= ch && ch <= '9') && typeof ch === \"string\";\n\t  },\n\n\t  isWhitespace: function(ch) {\n\t    // IE treats non-breaking space as \\u00A0\n\t    return (ch === ' ' || ch === '\\r' || ch === '\\t' ||\n\t            ch === '\\n' || ch === '\\v' || ch === '\\u00A0');\n\t  },\n\n\t  isIdent: function(ch) {\n\t    return ('a' <= ch && ch <= 'z' ||\n\t            'A' <= ch && ch <= 'Z' ||\n\t            '_' === ch || ch === '$');\n\t  },\n\n\t  isExpOperator: function(ch) {\n\t    return (ch === '-' || ch === '+' || this.isNumber(ch));\n\t  },\n\n\t  throwError: function(error, start, end) {\n\t    end = end || this.index;\n\t    var colStr = (isDefined(start)\n\t            ? 's ' + start +  '-' + this.index + ' [' + this.text.substring(start, end) + ']'\n\t            : ' ' + end);\n\t    throw $parseMinErr('lexerr', 'Lexer Error: {0} at column{1} in expression [{2}].',\n\t        error, colStr, this.text);\n\t  },\n\n\t  readNumber: function() {\n\t    var number = '';\n\t    var start = this.index;\n\t    while (this.index < this.text.length) {\n\t      var ch = lowercase(this.text.charAt(this.index));\n\t      if (ch == '.' || this.isNumber(ch)) {\n\t        number += ch;\n\t      } else {\n\t        var peekCh = this.peek();\n\t        if (ch == 'e' && this.isExpOperator(peekCh)) {\n\t          number += ch;\n\t        } else if (this.isExpOperator(ch) &&\n\t            peekCh && this.isNumber(peekCh) &&\n\t            number.charAt(number.length - 1) == 'e') {\n\t          number += ch;\n\t        } else if (this.isExpOperator(ch) &&\n\t            (!peekCh || !this.isNumber(peekCh)) &&\n\t            number.charAt(number.length - 1) == 'e') {\n\t          this.throwError('Invalid exponent');\n\t        } else {\n\t          break;\n\t        }\n\t      }\n\t      this.index++;\n\t    }\n\t    this.tokens.push({\n\t      index: start,\n\t      text: number,\n\t      constant: true,\n\t      value: Number(number)\n\t    });\n\t  },\n\n\t  readIdent: function() {\n\t    var start = this.index;\n\t    while (this.index < this.text.length) {\n\t      var ch = this.text.charAt(this.index);\n\t      if (!(this.isIdent(ch) || this.isNumber(ch))) {\n\t        break;\n\t      }\n\t      this.index++;\n\t    }\n\t    this.tokens.push({\n\t      index: start,\n\t      text: this.text.slice(start, this.index),\n\t      identifier: true\n\t    });\n\t  },\n\n\t  readString: function(quote) {\n\t    var start = this.index;\n\t    this.index++;\n\t    var string = '';\n\t    var rawString = quote;\n\t    var escape = false;\n\t    while (this.index < this.text.length) {\n\t      var ch = this.text.charAt(this.index);\n\t      rawString += ch;\n\t      if (escape) {\n\t        if (ch === 'u') {\n\t          var hex = this.text.substring(this.index + 1, this.index + 5);\n\t          if (!hex.match(/[\\da-f]{4}/i))\n\t            this.throwError('Invalid unicode escape [\\\\u' + hex + ']');\n\t          this.index += 4;\n\t          string += String.fromCharCode(parseInt(hex, 16));\n\t        } else {\n\t          var rep = ESCAPE[ch];\n\t          string = string + (rep || ch);\n\t        }\n\t        escape = false;\n\t      } else if (ch === '\\\\') {\n\t        escape = true;\n\t      } else if (ch === quote) {\n\t        this.index++;\n\t        this.tokens.push({\n\t          index: start,\n\t          text: rawString,\n\t          constant: true,\n\t          value: string\n\t        });\n\t        return;\n\t      } else {\n\t        string += ch;\n\t      }\n\t      this.index++;\n\t    }\n\t    this.throwError('Unterminated quote', start);\n\t  }\n\t};\n\n\n\tfunction isConstant(exp) {\n\t  return exp.constant;\n\t}\n\n\t/**\n\t * @constructor\n\t */\n\tvar Parser = function(lexer, $filter, options) {\n\t  this.lexer = lexer;\n\t  this.$filter = $filter;\n\t  this.options = options;\n\t};\n\n\tParser.ZERO = extend(function() {\n\t  return 0;\n\t}, {\n\t  sharedGetter: true,\n\t  constant: true\n\t});\n\n\tParser.prototype = {\n\t  constructor: Parser,\n\n\t  parse: function(text) {\n\t    this.text = text;\n\t    this.tokens = this.lexer.lex(text);\n\n\t    var value = this.statements();\n\n\t    if (this.tokens.length !== 0) {\n\t      this.throwError('is an unexpected token', this.tokens[0]);\n\t    }\n\n\t    value.literal = !!value.literal;\n\t    value.constant = !!value.constant;\n\n\t    return value;\n\t  },\n\n\t  primary: function() {\n\t    var primary;\n\t    if (this.expect('(')) {\n\t      primary = this.filterChain();\n\t      this.consume(')');\n\t    } else if (this.expect('[')) {\n\t      primary = this.arrayDeclaration();\n\t    } else if (this.expect('{')) {\n\t      primary = this.object();\n\t    } else if (this.peek().identifier && this.peek().text in CONSTANTS) {\n\t      primary = CONSTANTS[this.consume().text];\n\t    } else if (this.peek().identifier) {\n\t      primary = this.identifier();\n\t    } else if (this.peek().constant) {\n\t      primary = this.constant();\n\t    } else {\n\t      this.throwError('not a primary expression', this.peek());\n\t    }\n\n\t    var next, context;\n\t    while ((next = this.expect('(', '[', '.'))) {\n\t      if (next.text === '(') {\n\t        primary = this.functionCall(primary, context);\n\t        context = null;\n\t      } else if (next.text === '[') {\n\t        context = primary;\n\t        primary = this.objectIndex(primary);\n\t      } else if (next.text === '.') {\n\t        context = primary;\n\t        primary = this.fieldAccess(primary);\n\t      } else {\n\t        this.throwError('IMPOSSIBLE');\n\t      }\n\t    }\n\t    return primary;\n\t  },\n\n\t  throwError: function(msg, token) {\n\t    throw $parseMinErr('syntax',\n\t        'Syntax Error: Token \\'{0}\\' {1} at column {2} of the expression [{3}] starting at [{4}].',\n\t          token.text, msg, (token.index + 1), this.text, this.text.substring(token.index));\n\t  },\n\n\t  peekToken: function() {\n\t    if (this.tokens.length === 0)\n\t      throw $parseMinErr('ueoe', 'Unexpected end of expression: {0}', this.text);\n\t    return this.tokens[0];\n\t  },\n\n\t  peek: function(e1, e2, e3, e4) {\n\t    return this.peekAhead(0, e1, e2, e3, e4);\n\t  },\n\t  peekAhead: function(i, e1, e2, e3, e4) {\n\t    if (this.tokens.length > i) {\n\t      var token = this.tokens[i];\n\t      var t = token.text;\n\t      if (t === e1 || t === e2 || t === e3 || t === e4 ||\n\t          (!e1 && !e2 && !e3 && !e4)) {\n\t        return token;\n\t      }\n\t    }\n\t    return false;\n\t  },\n\n\t  expect: function(e1, e2, e3, e4) {\n\t    var token = this.peek(e1, e2, e3, e4);\n\t    if (token) {\n\t      this.tokens.shift();\n\t      return token;\n\t    }\n\t    return false;\n\t  },\n\n\t  consume: function(e1) {\n\t    if (this.tokens.length === 0) {\n\t      throw $parseMinErr('ueoe', 'Unexpected end of expression: {0}', this.text);\n\t    }\n\n\t    var token = this.expect(e1);\n\t    if (!token) {\n\t      this.throwError('is unexpected, expecting [' + e1 + ']', this.peek());\n\t    }\n\t    return token;\n\t  },\n\n\t  unaryFn: function(op, right) {\n\t    var fn = OPERATORS[op];\n\t    return extend(function $parseUnaryFn(self, locals) {\n\t      return fn(self, locals, right);\n\t    }, {\n\t      constant:right.constant,\n\t      inputs: [right]\n\t    });\n\t  },\n\n\t  binaryFn: function(left, op, right, isBranching) {\n\t    var fn = OPERATORS[op];\n\t    return extend(function $parseBinaryFn(self, locals) {\n\t      return fn(self, locals, left, right);\n\t    }, {\n\t      constant: left.constant && right.constant,\n\t      inputs: !isBranching && [left, right]\n\t    });\n\t  },\n\n\t  identifier: function() {\n\t    var id = this.consume().text;\n\n\t    //Continue reading each `.identifier` unless it is a method invocation\n\t    while (this.peek('.') && this.peekAhead(1).identifier && !this.peekAhead(2, '(')) {\n\t      id += this.consume().text + this.consume().text;\n\t    }\n\n\t    return getterFn(id, this.options, this.text);\n\t  },\n\n\t  constant: function() {\n\t    var value = this.consume().value;\n\n\t    return extend(function $parseConstant() {\n\t      return value;\n\t    }, {\n\t      constant: true,\n\t      literal: true\n\t    });\n\t  },\n\n\t  statements: function() {\n\t    var statements = [];\n\t    while (true) {\n\t      if (this.tokens.length > 0 && !this.peek('}', ')', ';', ']'))\n\t        statements.push(this.filterChain());\n\t      if (!this.expect(';')) {\n\t        // optimize for the common case where there is only one statement.\n\t        // TODO(size): maybe we should not support multiple statements?\n\t        return (statements.length === 1)\n\t            ? statements[0]\n\t            : function $parseStatements(self, locals) {\n\t                var value;\n\t                for (var i = 0, ii = statements.length; i < ii; i++) {\n\t                  value = statements[i](self, locals);\n\t                }\n\t                return value;\n\t              };\n\t      }\n\t    }\n\t  },\n\n\t  filterChain: function() {\n\t    var left = this.expression();\n\t    var token;\n\t    while ((token = this.expect('|'))) {\n\t      left = this.filter(left);\n\t    }\n\t    return left;\n\t  },\n\n\t  filter: function(inputFn) {\n\t    var fn = this.$filter(this.consume().text);\n\t    var argsFn;\n\t    var args;\n\n\t    if (this.peek(':')) {\n\t      argsFn = [];\n\t      args = []; // we can safely reuse the array\n\t      while (this.expect(':')) {\n\t        argsFn.push(this.expression());\n\t      }\n\t    }\n\n\t    var inputs = [inputFn].concat(argsFn || []);\n\n\t    return extend(function $parseFilter(self, locals) {\n\t      var input = inputFn(self, locals);\n\t      if (args) {\n\t        args[0] = input;\n\n\t        var i = argsFn.length;\n\t        while (i--) {\n\t          args[i + 1] = argsFn[i](self, locals);\n\t        }\n\n\t        return fn.apply(undefined, args);\n\t      }\n\n\t      return fn(input);\n\t    }, {\n\t      constant: !fn.$stateful && inputs.every(isConstant),\n\t      inputs: !fn.$stateful && inputs\n\t    });\n\t  },\n\n\t  expression: function() {\n\t    return this.assignment();\n\t  },\n\n\t  assignment: function() {\n\t    var left = this.ternary();\n\t    var right;\n\t    var token;\n\t    if ((token = this.expect('='))) {\n\t      if (!left.assign) {\n\t        this.throwError('implies assignment but [' +\n\t            this.text.substring(0, token.index) + '] can not be assigned to', token);\n\t      }\n\t      right = this.ternary();\n\t      return extend(function $parseAssignment(scope, locals) {\n\t        return left.assign(scope, right(scope, locals), locals);\n\t      }, {\n\t        inputs: [left, right]\n\t      });\n\t    }\n\t    return left;\n\t  },\n\n\t  ternary: function() {\n\t    var left = this.logicalOR();\n\t    var middle;\n\t    var token;\n\t    if ((token = this.expect('?'))) {\n\t      middle = this.assignment();\n\t      if (this.consume(':')) {\n\t        var right = this.assignment();\n\n\t        return extend(function $parseTernary(self, locals) {\n\t          return left(self, locals) ? middle(self, locals) : right(self, locals);\n\t        }, {\n\t          constant: left.constant && middle.constant && right.constant\n\t        });\n\t      }\n\t    }\n\n\t    return left;\n\t  },\n\n\t  logicalOR: function() {\n\t    var left = this.logicalAND();\n\t    var token;\n\t    while ((token = this.expect('||'))) {\n\t      left = this.binaryFn(left, token.text, this.logicalAND(), true);\n\t    }\n\t    return left;\n\t  },\n\n\t  logicalAND: function() {\n\t    var left = this.equality();\n\t    var token;\n\t    while ((token = this.expect('&&'))) {\n\t      left = this.binaryFn(left, token.text, this.equality(), true);\n\t    }\n\t    return left;\n\t  },\n\n\t  equality: function() {\n\t    var left = this.relational();\n\t    var token;\n\t    while ((token = this.expect('==','!=','===','!=='))) {\n\t      left = this.binaryFn(left, token.text, this.relational());\n\t    }\n\t    return left;\n\t  },\n\n\t  relational: function() {\n\t    var left = this.additive();\n\t    var token;\n\t    while ((token = this.expect('<', '>', '<=', '>='))) {\n\t      left = this.binaryFn(left, token.text, this.additive());\n\t    }\n\t    return left;\n\t  },\n\n\t  additive: function() {\n\t    var left = this.multiplicative();\n\t    var token;\n\t    while ((token = this.expect('+','-'))) {\n\t      left = this.binaryFn(left, token.text, this.multiplicative());\n\t    }\n\t    return left;\n\t  },\n\n\t  multiplicative: function() {\n\t    var left = this.unary();\n\t    var token;\n\t    while ((token = this.expect('*','/','%'))) {\n\t      left = this.binaryFn(left, token.text, this.unary());\n\t    }\n\t    return left;\n\t  },\n\n\t  unary: function() {\n\t    var token;\n\t    if (this.expect('+')) {\n\t      return this.primary();\n\t    } else if ((token = this.expect('-'))) {\n\t      return this.binaryFn(Parser.ZERO, token.text, this.unary());\n\t    } else if ((token = this.expect('!'))) {\n\t      return this.unaryFn(token.text, this.unary());\n\t    } else {\n\t      return this.primary();\n\t    }\n\t  },\n\n\t  fieldAccess: function(object) {\n\t    var getter = this.identifier();\n\n\t    return extend(function $parseFieldAccess(scope, locals, self) {\n\t      var o = self || object(scope, locals);\n\t      return (o == null) ? undefined : getter(o);\n\t    }, {\n\t      assign: function(scope, value, locals) {\n\t        var o = object(scope, locals);\n\t        if (!o) object.assign(scope, o = {}, locals);\n\t        return getter.assign(o, value);\n\t      }\n\t    });\n\t  },\n\n\t  objectIndex: function(obj) {\n\t    var expression = this.text;\n\n\t    var indexFn = this.expression();\n\t    this.consume(']');\n\n\t    return extend(function $parseObjectIndex(self, locals) {\n\t      var o = obj(self, locals),\n\t          i = indexFn(self, locals),\n\t          v;\n\n\t      ensureSafeMemberName(i, expression);\n\t      if (!o) return undefined;\n\t      v = ensureSafeObject(o[i], expression);\n\t      return v;\n\t    }, {\n\t      assign: function(self, value, locals) {\n\t        var key = ensureSafeMemberName(indexFn(self, locals), expression);\n\t        // prevent overwriting of Function.constructor which would break ensureSafeObject check\n\t        var o = ensureSafeObject(obj(self, locals), expression);\n\t        if (!o) obj.assign(self, o = {}, locals);\n\t        return o[key] = value;\n\t      }\n\t    });\n\t  },\n\n\t  functionCall: function(fnGetter, contextGetter) {\n\t    var argsFn = [];\n\t    if (this.peekToken().text !== ')') {\n\t      do {\n\t        argsFn.push(this.expression());\n\t      } while (this.expect(','));\n\t    }\n\t    this.consume(')');\n\n\t    var expressionText = this.text;\n\t    // we can safely reuse the array across invocations\n\t    var args = argsFn.length ? [] : null;\n\n\t    return function $parseFunctionCall(scope, locals) {\n\t      var context = contextGetter ? contextGetter(scope, locals) : isDefined(contextGetter) ? undefined : scope;\n\t      var fn = fnGetter(scope, locals, context) || noop;\n\n\t      if (args) {\n\t        var i = argsFn.length;\n\t        while (i--) {\n\t          args[i] = ensureSafeObject(argsFn[i](scope, locals), expressionText);\n\t        }\n\t      }\n\n\t      ensureSafeObject(context, expressionText);\n\t      ensureSafeFunction(fn, expressionText);\n\n\t      // IE doesn't have apply for some native functions\n\t      var v = fn.apply\n\t            ? fn.apply(context, args)\n\t            : fn(args[0], args[1], args[2], args[3], args[4]);\n\n\t      if (args) {\n\t        // Free-up the memory (arguments of the last function call).\n\t        args.length = 0;\n\t      }\n\n\t      return ensureSafeObject(v, expressionText);\n\t      };\n\t  },\n\n\t  // This is used with json array declaration\n\t  arrayDeclaration: function() {\n\t    var elementFns = [];\n\t    if (this.peekToken().text !== ']') {\n\t      do {\n\t        if (this.peek(']')) {\n\t          // Support trailing commas per ES5.1.\n\t          break;\n\t        }\n\t        elementFns.push(this.expression());\n\t      } while (this.expect(','));\n\t    }\n\t    this.consume(']');\n\n\t    return extend(function $parseArrayLiteral(self, locals) {\n\t      var array = [];\n\t      for (var i = 0, ii = elementFns.length; i < ii; i++) {\n\t        array.push(elementFns[i](self, locals));\n\t      }\n\t      return array;\n\t    }, {\n\t      literal: true,\n\t      constant: elementFns.every(isConstant),\n\t      inputs: elementFns\n\t    });\n\t  },\n\n\t  object: function() {\n\t    var keys = [], valueFns = [];\n\t    if (this.peekToken().text !== '}') {\n\t      do {\n\t        if (this.peek('}')) {\n\t          // Support trailing commas per ES5.1.\n\t          break;\n\t        }\n\t        var token = this.consume();\n\t        if (token.constant) {\n\t          keys.push(token.value);\n\t        } else if (token.identifier) {\n\t          keys.push(token.text);\n\t        } else {\n\t          this.throwError(\"invalid key\", token);\n\t        }\n\t        this.consume(':');\n\t        valueFns.push(this.expression());\n\t      } while (this.expect(','));\n\t    }\n\t    this.consume('}');\n\n\t    return extend(function $parseObjectLiteral(self, locals) {\n\t      var object = {};\n\t      for (var i = 0, ii = valueFns.length; i < ii; i++) {\n\t        object[keys[i]] = valueFns[i](self, locals);\n\t      }\n\t      return object;\n\t    }, {\n\t      literal: true,\n\t      constant: valueFns.every(isConstant),\n\t      inputs: valueFns\n\t    });\n\t  }\n\t};\n\n\n\t//////////////////////////////////////////////////\n\t// Parser helper functions\n\t//////////////////////////////////////////////////\n\n\tfunction setter(obj, locals, path, setValue, fullExp) {\n\t  ensureSafeObject(obj, fullExp);\n\t  ensureSafeObject(locals, fullExp);\n\n\t  var element = path.split('.'), key;\n\t  for (var i = 0; element.length > 1; i++) {\n\t    key = ensureSafeMemberName(element.shift(), fullExp);\n\t    var propertyObj = (i === 0 && locals && locals[key]) || obj[key];\n\t    if (!propertyObj) {\n\t      propertyObj = {};\n\t      obj[key] = propertyObj;\n\t    }\n\t    obj = ensureSafeObject(propertyObj, fullExp);\n\t  }\n\t  key = ensureSafeMemberName(element.shift(), fullExp);\n\t  ensureSafeObject(obj[key], fullExp);\n\t  obj[key] = setValue;\n\t  return setValue;\n\t}\n\n\tvar getterFnCacheDefault = createMap();\n\tvar getterFnCacheExpensive = createMap();\n\n\tfunction isPossiblyDangerousMemberName(name) {\n\t  return name == 'constructor';\n\t}\n\n\t/**\n\t * Implementation of the \"Black Hole\" variant from:\n\t * - http://jsperf.com/angularjs-parse-getter/4\n\t * - http://jsperf.com/path-evaluation-simplified/7\n\t */\n\tfunction cspSafeGetterFn(key0, key1, key2, key3, key4, fullExp, expensiveChecks) {\n\t  ensureSafeMemberName(key0, fullExp);\n\t  ensureSafeMemberName(key1, fullExp);\n\t  ensureSafeMemberName(key2, fullExp);\n\t  ensureSafeMemberName(key3, fullExp);\n\t  ensureSafeMemberName(key4, fullExp);\n\t  var eso = function(o) {\n\t    return ensureSafeObject(o, fullExp);\n\t  };\n\t  var eso0 = (expensiveChecks || isPossiblyDangerousMemberName(key0)) ? eso : identity;\n\t  var eso1 = (expensiveChecks || isPossiblyDangerousMemberName(key1)) ? eso : identity;\n\t  var eso2 = (expensiveChecks || isPossiblyDangerousMemberName(key2)) ? eso : identity;\n\t  var eso3 = (expensiveChecks || isPossiblyDangerousMemberName(key3)) ? eso : identity;\n\t  var eso4 = (expensiveChecks || isPossiblyDangerousMemberName(key4)) ? eso : identity;\n\n\t  return function cspSafeGetter(scope, locals) {\n\t    var pathVal = (locals && locals.hasOwnProperty(key0)) ? locals : scope;\n\n\t    if (pathVal == null) return pathVal;\n\t    pathVal = eso0(pathVal[key0]);\n\n\t    if (!key1) return pathVal;\n\t    if (pathVal == null) return undefined;\n\t    pathVal = eso1(pathVal[key1]);\n\n\t    if (!key2) return pathVal;\n\t    if (pathVal == null) return undefined;\n\t    pathVal = eso2(pathVal[key2]);\n\n\t    if (!key3) return pathVal;\n\t    if (pathVal == null) return undefined;\n\t    pathVal = eso3(pathVal[key3]);\n\n\t    if (!key4) return pathVal;\n\t    if (pathVal == null) return undefined;\n\t    pathVal = eso4(pathVal[key4]);\n\n\t    return pathVal;\n\t  };\n\t}\n\n\tfunction getterFnWithEnsureSafeObject(fn, fullExpression) {\n\t  return function(s, l) {\n\t    return fn(s, l, ensureSafeObject, fullExpression);\n\t  };\n\t}\n\n\tfunction getterFn(path, options, fullExp) {\n\t  var expensiveChecks = options.expensiveChecks;\n\t  var getterFnCache = (expensiveChecks ? getterFnCacheExpensive : getterFnCacheDefault);\n\t  var fn = getterFnCache[path];\n\t  if (fn) return fn;\n\n\n\t  var pathKeys = path.split('.'),\n\t      pathKeysLength = pathKeys.length;\n\n\t  // http://jsperf.com/angularjs-parse-getter/6\n\t  if (options.csp) {\n\t    if (pathKeysLength < 6) {\n\t      fn = cspSafeGetterFn(pathKeys[0], pathKeys[1], pathKeys[2], pathKeys[3], pathKeys[4], fullExp, expensiveChecks);\n\t    } else {\n\t      fn = function cspSafeGetter(scope, locals) {\n\t        var i = 0, val;\n\t        do {\n\t          val = cspSafeGetterFn(pathKeys[i++], pathKeys[i++], pathKeys[i++], pathKeys[i++],\n\t                                pathKeys[i++], fullExp, expensiveChecks)(scope, locals);\n\n\t          locals = undefined; // clear after first iteration\n\t          scope = val;\n\t        } while (i < pathKeysLength);\n\t        return val;\n\t      };\n\t    }\n\t  } else {\n\t    var code = '';\n\t    if (expensiveChecks) {\n\t      code += 's = eso(s, fe);\\nl = eso(l, fe);\\n';\n\t    }\n\t    var needsEnsureSafeObject = expensiveChecks;\n\t    forEach(pathKeys, function(key, index) {\n\t      ensureSafeMemberName(key, fullExp);\n\t      var lookupJs = (index\n\t                      // we simply dereference 's' on any .dot notation\n\t                      ? 's'\n\t                      // but if we are first then we check locals first, and if so read it first\n\t                      : '((l&&l.hasOwnProperty(\"' + key + '\"))?l:s)') + '.' + key;\n\t      if (expensiveChecks || isPossiblyDangerousMemberName(key)) {\n\t        lookupJs = 'eso(' + lookupJs + ', fe)';\n\t        needsEnsureSafeObject = true;\n\t      }\n\t      code += 'if(s == null) return undefined;\\n' +\n\t              's=' + lookupJs + ';\\n';\n\t    });\n\t    code += 'return s;';\n\n\t    /* jshint -W054 */\n\t    var evaledFnGetter = new Function('s', 'l', 'eso', 'fe', code); // s=scope, l=locals, eso=ensureSafeObject\n\t    /* jshint +W054 */\n\t    evaledFnGetter.toString = valueFn(code);\n\t    if (needsEnsureSafeObject) {\n\t      evaledFnGetter = getterFnWithEnsureSafeObject(evaledFnGetter, fullExp);\n\t    }\n\t    fn = evaledFnGetter;\n\t  }\n\n\t  fn.sharedGetter = true;\n\t  fn.assign = function(self, value, locals) {\n\t    return setter(self, locals, path, value, path);\n\t  };\n\t  getterFnCache[path] = fn;\n\t  return fn;\n\t}\n\n\tvar objectValueOf = Object.prototype.valueOf;\n\n\tfunction getValueOf(value) {\n\t  return isFunction(value.valueOf) ? value.valueOf() : objectValueOf.call(value);\n\t}\n\n\t///////////////////////////////////\n\n\t/**\n\t * @ngdoc service\n\t * @name $parse\n\t * @kind function\n\t *\n\t * @description\n\t *\n\t * Converts Angular {@link guide/expression expression} into a function.\n\t *\n\t * ```js\n\t *   var getter = $parse('user.name');\n\t *   var setter = getter.assign;\n\t *   var context = {user:{name:'angular'}};\n\t *   var locals = {user:{name:'local'}};\n\t *\n\t *   expect(getter(context)).toEqual('angular');\n\t *   setter(context, 'newValue');\n\t *   expect(context.user.name).toEqual('newValue');\n\t *   expect(getter(context, locals)).toEqual('local');\n\t * ```\n\t *\n\t *\n\t * @param {string} expression String expression to compile.\n\t * @returns {function(context, locals)} a function which represents the compiled expression:\n\t *\n\t *    * `context` – `{object}` – an object against which any expressions embedded in the strings\n\t *      are evaluated against (typically a scope object).\n\t *    * `locals` – `{object=}` – local variables context object, useful for overriding values in\n\t *      `context`.\n\t *\n\t *    The returned function also has the following properties:\n\t *      * `literal` – `{boolean}` – whether the expression's top-level node is a JavaScript\n\t *        literal.\n\t *      * `constant` – `{boolean}` – whether the expression is made entirely of JavaScript\n\t *        constant literals.\n\t *      * `assign` – `{?function(context, value)}` – if the expression is assignable, this will be\n\t *        set to a function to change its value on the given context.\n\t *\n\t */\n\n\n\t/**\n\t * @ngdoc provider\n\t * @name $parseProvider\n\t *\n\t * @description\n\t * `$parseProvider` can be used for configuring the default behavior of the {@link ng.$parse $parse}\n\t *  service.\n\t */\n\tfunction $ParseProvider() {\n\t  var cacheDefault = createMap();\n\t  var cacheExpensive = createMap();\n\n\n\n\t  this.$get = ['$filter', '$sniffer', function($filter, $sniffer) {\n\t    var $parseOptions = {\n\t          csp: $sniffer.csp,\n\t          expensiveChecks: false\n\t        },\n\t        $parseOptionsExpensive = {\n\t          csp: $sniffer.csp,\n\t          expensiveChecks: true\n\t        };\n\n\t    function wrapSharedExpression(exp) {\n\t      var wrapped = exp;\n\n\t      if (exp.sharedGetter) {\n\t        wrapped = function $parseWrapper(self, locals) {\n\t          return exp(self, locals);\n\t        };\n\t        wrapped.literal = exp.literal;\n\t        wrapped.constant = exp.constant;\n\t        wrapped.assign = exp.assign;\n\t      }\n\n\t      return wrapped;\n\t    }\n\n\t    return function $parse(exp, interceptorFn, expensiveChecks) {\n\t      var parsedExpression, oneTime, cacheKey;\n\n\t      switch (typeof exp) {\n\t        case 'string':\n\t          cacheKey = exp = exp.trim();\n\n\t          var cache = (expensiveChecks ? cacheExpensive : cacheDefault);\n\t          parsedExpression = cache[cacheKey];\n\n\t          if (!parsedExpression) {\n\t            if (exp.charAt(0) === ':' && exp.charAt(1) === ':') {\n\t              oneTime = true;\n\t              exp = exp.substring(2);\n\t            }\n\n\t            var parseOptions = expensiveChecks ? $parseOptionsExpensive : $parseOptions;\n\t            var lexer = new Lexer(parseOptions);\n\t            var parser = new Parser(lexer, $filter, parseOptions);\n\t            parsedExpression = parser.parse(exp);\n\n\t            if (parsedExpression.constant) {\n\t              parsedExpression.$$watchDelegate = constantWatchDelegate;\n\t            } else if (oneTime) {\n\t              //oneTime is not part of the exp passed to the Parser so we may have to\n\t              //wrap the parsedExpression before adding a $$watchDelegate\n\t              parsedExpression = wrapSharedExpression(parsedExpression);\n\t              parsedExpression.$$watchDelegate = parsedExpression.literal ?\n\t                oneTimeLiteralWatchDelegate : oneTimeWatchDelegate;\n\t            } else if (parsedExpression.inputs) {\n\t              parsedExpression.$$watchDelegate = inputsWatchDelegate;\n\t            }\n\n\t            cache[cacheKey] = parsedExpression;\n\t          }\n\t          return addInterceptor(parsedExpression, interceptorFn);\n\n\t        case 'function':\n\t          return addInterceptor(exp, interceptorFn);\n\n\t        default:\n\t          return addInterceptor(noop, interceptorFn);\n\t      }\n\t    };\n\n\t    function collectExpressionInputs(inputs, list) {\n\t      for (var i = 0, ii = inputs.length; i < ii; i++) {\n\t        var input = inputs[i];\n\t        if (!input.constant) {\n\t          if (input.inputs) {\n\t            collectExpressionInputs(input.inputs, list);\n\t          } else if (list.indexOf(input) === -1) { // TODO(perf) can we do better?\n\t            list.push(input);\n\t          }\n\t        }\n\t      }\n\n\t      return list;\n\t    }\n\n\t    function expressionInputDirtyCheck(newValue, oldValueOfValue) {\n\n\t      if (newValue == null || oldValueOfValue == null) { // null/undefined\n\t        return newValue === oldValueOfValue;\n\t      }\n\n\t      if (typeof newValue === 'object') {\n\n\t        // attempt to convert the value to a primitive type\n\t        // TODO(docs): add a note to docs that by implementing valueOf even objects and arrays can\n\t        //             be cheaply dirty-checked\n\t        newValue = getValueOf(newValue);\n\n\t        if (typeof newValue === 'object') {\n\t          // objects/arrays are not supported - deep-watching them would be too expensive\n\t          return false;\n\t        }\n\n\t        // fall-through to the primitive equality check\n\t      }\n\n\t      //Primitive or NaN\n\t      return newValue === oldValueOfValue || (newValue !== newValue && oldValueOfValue !== oldValueOfValue);\n\t    }\n\n\t    function inputsWatchDelegate(scope, listener, objectEquality, parsedExpression) {\n\t      var inputExpressions = parsedExpression.$$inputs ||\n\t                    (parsedExpression.$$inputs = collectExpressionInputs(parsedExpression.inputs, []));\n\n\t      var lastResult;\n\n\t      if (inputExpressions.length === 1) {\n\t        var oldInputValue = expressionInputDirtyCheck; // init to something unique so that equals check fails\n\t        inputExpressions = inputExpressions[0];\n\t        return scope.$watch(function expressionInputWatch(scope) {\n\t          var newInputValue = inputExpressions(scope);\n\t          if (!expressionInputDirtyCheck(newInputValue, oldInputValue)) {\n\t            lastResult = parsedExpression(scope);\n\t            oldInputValue = newInputValue && getValueOf(newInputValue);\n\t          }\n\t          return lastResult;\n\t        }, listener, objectEquality);\n\t      }\n\n\t      var oldInputValueOfValues = [];\n\t      for (var i = 0, ii = inputExpressions.length; i < ii; i++) {\n\t        oldInputValueOfValues[i] = expressionInputDirtyCheck; // init to something unique so that equals check fails\n\t      }\n\n\t      return scope.$watch(function expressionInputsWatch(scope) {\n\t        var changed = false;\n\n\t        for (var i = 0, ii = inputExpressions.length; i < ii; i++) {\n\t          var newInputValue = inputExpressions[i](scope);\n\t          if (changed || (changed = !expressionInputDirtyCheck(newInputValue, oldInputValueOfValues[i]))) {\n\t            oldInputValueOfValues[i] = newInputValue && getValueOf(newInputValue);\n\t          }\n\t        }\n\n\t        if (changed) {\n\t          lastResult = parsedExpression(scope);\n\t        }\n\n\t        return lastResult;\n\t      }, listener, objectEquality);\n\t    }\n\n\t    function oneTimeWatchDelegate(scope, listener, objectEquality, parsedExpression) {\n\t      var unwatch, lastValue;\n\t      return unwatch = scope.$watch(function oneTimeWatch(scope) {\n\t        return parsedExpression(scope);\n\t      }, function oneTimeListener(value, old, scope) {\n\t        lastValue = value;\n\t        if (isFunction(listener)) {\n\t          listener.apply(this, arguments);\n\t        }\n\t        if (isDefined(value)) {\n\t          scope.$$postDigest(function() {\n\t            if (isDefined(lastValue)) {\n\t              unwatch();\n\t            }\n\t          });\n\t        }\n\t      }, objectEquality);\n\t    }\n\n\t    function oneTimeLiteralWatchDelegate(scope, listener, objectEquality, parsedExpression) {\n\t      var unwatch, lastValue;\n\t      return unwatch = scope.$watch(function oneTimeWatch(scope) {\n\t        return parsedExpression(scope);\n\t      }, function oneTimeListener(value, old, scope) {\n\t        lastValue = value;\n\t        if (isFunction(listener)) {\n\t          listener.call(this, value, old, scope);\n\t        }\n\t        if (isAllDefined(value)) {\n\t          scope.$$postDigest(function() {\n\t            if (isAllDefined(lastValue)) unwatch();\n\t          });\n\t        }\n\t      }, objectEquality);\n\n\t      function isAllDefined(value) {\n\t        var allDefined = true;\n\t        forEach(value, function(val) {\n\t          if (!isDefined(val)) allDefined = false;\n\t        });\n\t        return allDefined;\n\t      }\n\t    }\n\n\t    function constantWatchDelegate(scope, listener, objectEquality, parsedExpression) {\n\t      var unwatch;\n\t      return unwatch = scope.$watch(function constantWatch(scope) {\n\t        return parsedExpression(scope);\n\t      }, function constantListener(value, old, scope) {\n\t        if (isFunction(listener)) {\n\t          listener.apply(this, arguments);\n\t        }\n\t        unwatch();\n\t      }, objectEquality);\n\t    }\n\n\t    function addInterceptor(parsedExpression, interceptorFn) {\n\t      if (!interceptorFn) return parsedExpression;\n\t      var watchDelegate = parsedExpression.$$watchDelegate;\n\n\t      var regularWatch =\n\t          watchDelegate !== oneTimeLiteralWatchDelegate &&\n\t          watchDelegate !== oneTimeWatchDelegate;\n\n\t      var fn = regularWatch ? function regularInterceptedExpression(scope, locals) {\n\t        var value = parsedExpression(scope, locals);\n\t        return interceptorFn(value, scope, locals);\n\t      } : function oneTimeInterceptedExpression(scope, locals) {\n\t        var value = parsedExpression(scope, locals);\n\t        var result = interceptorFn(value, scope, locals);\n\t        // we only return the interceptor's result if the\n\t        // initial value is defined (for bind-once)\n\t        return isDefined(value) ? result : value;\n\t      };\n\n\t      // Propagate $$watchDelegates other then inputsWatchDelegate\n\t      if (parsedExpression.$$watchDelegate &&\n\t          parsedExpression.$$watchDelegate !== inputsWatchDelegate) {\n\t        fn.$$watchDelegate = parsedExpression.$$watchDelegate;\n\t      } else if (!interceptorFn.$stateful) {\n\t        // If there is an interceptor, but no watchDelegate then treat the interceptor like\n\t        // we treat filters - it is assumed to be a pure function unless flagged with $stateful\n\t        fn.$$watchDelegate = inputsWatchDelegate;\n\t        fn.inputs = [parsedExpression];\n\t      }\n\n\t      return fn;\n\t    }\n\t  }];\n\t}\n\n\t/**\n\t * @ngdoc service\n\t * @name $q\n\t * @requires $rootScope\n\t *\n\t * @description\n\t * A service that helps you run functions asynchronously, and use their return values (or exceptions)\n\t * when they are done processing.\n\t *\n\t * This is an implementation of promises/deferred objects inspired by\n\t * [Kris Kowal's Q](https://github.com/kriskowal/q).\n\t *\n\t * $q can be used in two fashions --- one which is more similar to Kris Kowal's Q or jQuery's Deferred\n\t * implementations, and the other which resembles ES6 promises to some degree.\n\t *\n\t * # $q constructor\n\t *\n\t * The streamlined ES6 style promise is essentially just using $q as a constructor which takes a `resolver`\n\t * function as the first argument. This is similar to the native Promise implementation from ES6 Harmony,\n\t * see [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise).\n\t *\n\t * While the constructor-style use is supported, not all of the supporting methods from ES6 Harmony promises are\n\t * available yet.\n\t *\n\t * It can be used like so:\n\t *\n\t * ```js\n\t *   // for the purpose of this example let's assume that variables `$q` and `okToGreet`\n\t *   // are available in the current lexical scope (they could have been injected or passed in).\n\t *\n\t *   function asyncGreet(name) {\n\t *     // perform some asynchronous operation, resolve or reject the promise when appropriate.\n\t *     return $q(function(resolve, reject) {\n\t *       setTimeout(function() {\n\t *         if (okToGreet(name)) {\n\t *           resolve('Hello, ' + name + '!');\n\t *         } else {\n\t *           reject('Greeting ' + name + ' is not allowed.');\n\t *         }\n\t *       }, 1000);\n\t *     });\n\t *   }\n\t *\n\t *   var promise = asyncGreet('Robin Hood');\n\t *   promise.then(function(greeting) {\n\t *     alert('Success: ' + greeting);\n\t *   }, function(reason) {\n\t *     alert('Failed: ' + reason);\n\t *   });\n\t * ```\n\t *\n\t * Note: progress/notify callbacks are not currently supported via the ES6-style interface.\n\t *\n\t * However, the more traditional CommonJS-style usage is still available, and documented below.\n\t *\n\t * [The CommonJS Promise proposal](http://wiki.commonjs.org/wiki/Promises) describes a promise as an\n\t * interface for interacting with an object that represents the result of an action that is\n\t * performed asynchronously, and may or may not be finished at any given point in time.\n\t *\n\t * From the perspective of dealing with error handling, deferred and promise APIs are to\n\t * asynchronous programming what `try`, `catch` and `throw` keywords are to synchronous programming.\n\t *\n\t * ```js\n\t *   // for the purpose of this example let's assume that variables `$q` and `okToGreet`\n\t *   // are available in the current lexical scope (they could have been injected or passed in).\n\t *\n\t *   function asyncGreet(name) {\n\t *     var deferred = $q.defer();\n\t *\n\t *     setTimeout(function() {\n\t *       deferred.notify('About to greet ' + name + '.');\n\t *\n\t *       if (okToGreet(name)) {\n\t *         deferred.resolve('Hello, ' + name + '!');\n\t *       } else {\n\t *         deferred.reject('Greeting ' + name + ' is not allowed.');\n\t *       }\n\t *     }, 1000);\n\t *\n\t *     return deferred.promise;\n\t *   }\n\t *\n\t *   var promise = asyncGreet('Robin Hood');\n\t *   promise.then(function(greeting) {\n\t *     alert('Success: ' + greeting);\n\t *   }, function(reason) {\n\t *     alert('Failed: ' + reason);\n\t *   }, function(update) {\n\t *     alert('Got notification: ' + update);\n\t *   });\n\t * ```\n\t *\n\t * At first it might not be obvious why this extra complexity is worth the trouble. The payoff\n\t * comes in the way of guarantees that promise and deferred APIs make, see\n\t * https://github.com/kriskowal/uncommonjs/blob/master/promises/specification.md.\n\t *\n\t * Additionally the promise api allows for composition that is very hard to do with the\n\t * traditional callback ([CPS](http://en.wikipedia.org/wiki/Continuation-passing_style)) approach.\n\t * For more on this please see the [Q documentation](https://github.com/kriskowal/q) especially the\n\t * section on serial or parallel joining of promises.\n\t *\n\t * # The Deferred API\n\t *\n\t * A new instance of deferred is constructed by calling `$q.defer()`.\n\t *\n\t * The purpose of the deferred object is to expose the associated Promise instance as well as APIs\n\t * that can be used for signaling the successful or unsuccessful completion, as well as the status\n\t * of the task.\n\t *\n\t * **Methods**\n\t *\n\t * - `resolve(value)` – resolves the derived promise with the `value`. If the value is a rejection\n\t *   constructed via `$q.reject`, the promise will be rejected instead.\n\t * - `reject(reason)` – rejects the derived promise with the `reason`. This is equivalent to\n\t *   resolving it with a rejection constructed via `$q.reject`.\n\t * - `notify(value)` - provides updates on the status of the promise's execution. This may be called\n\t *   multiple times before the promise is either resolved or rejected.\n\t *\n\t * **Properties**\n\t *\n\t * - promise – `{Promise}` – promise object associated with this deferred.\n\t *\n\t *\n\t * # The Promise API\n\t *\n\t * A new promise instance is created when a deferred instance is created and can be retrieved by\n\t * calling `deferred.promise`.\n\t *\n\t * The purpose of the promise object is to allow for interested parties to get access to the result\n\t * of the deferred task when it completes.\n\t *\n\t * **Methods**\n\t *\n\t * - `then(successCallback, errorCallback, notifyCallback)` – regardless of when the promise was or\n\t *   will be resolved or rejected, `then` calls one of the success or error callbacks asynchronously\n\t *   as soon as the result is available. The callbacks are called with a single argument: the result\n\t *   or rejection reason. Additionally, the notify callback may be called zero or more times to\n\t *   provide a progress indication, before the promise is resolved or rejected.\n\t *\n\t *   This method *returns a new promise* which is resolved or rejected via the return value of the\n\t *   `successCallback`, `errorCallback`. It also notifies via the return value of the\n\t *   `notifyCallback` method. The promise cannot be resolved or rejected from the notifyCallback\n\t *   method.\n\t *\n\t * - `catch(errorCallback)` – shorthand for `promise.then(null, errorCallback)`\n\t *\n\t * - `finally(callback, notifyCallback)` – allows you to observe either the fulfillment or rejection of a promise,\n\t *   but to do so without modifying the final value. This is useful to release resources or do some\n\t *   clean-up that needs to be done whether the promise was rejected or resolved. See the [full\n\t *   specification](https://github.com/kriskowal/q/wiki/API-Reference#promisefinallycallback) for\n\t *   more information.\n\t *\n\t * # Chaining promises\n\t *\n\t * Because calling the `then` method of a promise returns a new derived promise, it is easily\n\t * possible to create a chain of promises:\n\t *\n\t * ```js\n\t *   promiseB = promiseA.then(function(result) {\n\t *     return result + 1;\n\t *   });\n\t *\n\t *   // promiseB will be resolved immediately after promiseA is resolved and its value\n\t *   // will be the result of promiseA incremented by 1\n\t * ```\n\t *\n\t * It is possible to create chains of any length and since a promise can be resolved with another\n\t * promise (which will defer its resolution further), it is possible to pause/defer resolution of\n\t * the promises at any point in the chain. This makes it possible to implement powerful APIs like\n\t * $http's response interceptors.\n\t *\n\t *\n\t * # Differences between Kris Kowal's Q and $q\n\t *\n\t *  There are two main differences:\n\t *\n\t * - $q is integrated with the {@link ng.$rootScope.Scope} Scope model observation\n\t *   mechanism in angular, which means faster propagation of resolution or rejection into your\n\t *   models and avoiding unnecessary browser repaints, which would result in flickering UI.\n\t * - Q has many more features than $q, but that comes at a cost of bytes. $q is tiny, but contains\n\t *   all the important functionality needed for common async tasks.\n\t *\n\t *  # Testing\n\t *\n\t *  ```js\n\t *    it('should simulate promise', inject(function($q, $rootScope) {\n\t *      var deferred = $q.defer();\n\t *      var promise = deferred.promise;\n\t *      var resolvedValue;\n\t *\n\t *      promise.then(function(value) { resolvedValue = value; });\n\t *      expect(resolvedValue).toBeUndefined();\n\t *\n\t *      // Simulate resolving of promise\n\t *      deferred.resolve(123);\n\t *      // Note that the 'then' function does not get called synchronously.\n\t *      // This is because we want the promise API to always be async, whether or not\n\t *      // it got called synchronously or asynchronously.\n\t *      expect(resolvedValue).toBeUndefined();\n\t *\n\t *      // Propagate promise resolution to 'then' functions using $apply().\n\t *      $rootScope.$apply();\n\t *      expect(resolvedValue).toEqual(123);\n\t *    }));\n\t *  ```\n\t *\n\t * @param {function(function, function)} resolver Function which is responsible for resolving or\n\t *   rejecting the newly created promise. The first parameter is a function which resolves the\n\t *   promise, the second parameter is a function which rejects the promise.\n\t *\n\t * @returns {Promise} The newly created promise.\n\t */\n\tfunction $QProvider() {\n\n\t  this.$get = ['$rootScope', '$exceptionHandler', function($rootScope, $exceptionHandler) {\n\t    return qFactory(function(callback) {\n\t      $rootScope.$evalAsync(callback);\n\t    }, $exceptionHandler);\n\t  }];\n\t}\n\n\tfunction $$QProvider() {\n\t  this.$get = ['$browser', '$exceptionHandler', function($browser, $exceptionHandler) {\n\t    return qFactory(function(callback) {\n\t      $browser.defer(callback);\n\t    }, $exceptionHandler);\n\t  }];\n\t}\n\n\t/**\n\t * Constructs a promise manager.\n\t *\n\t * @param {function(function)} nextTick Function for executing functions in the next turn.\n\t * @param {function(...*)} exceptionHandler Function into which unexpected exceptions are passed for\n\t *     debugging purposes.\n\t * @returns {object} Promise manager.\n\t */\n\tfunction qFactory(nextTick, exceptionHandler) {\n\t  var $qMinErr = minErr('$q', TypeError);\n\t  function callOnce(self, resolveFn, rejectFn) {\n\t    var called = false;\n\t    function wrap(fn) {\n\t      return function(value) {\n\t        if (called) return;\n\t        called = true;\n\t        fn.call(self, value);\n\t      };\n\t    }\n\n\t    return [wrap(resolveFn), wrap(rejectFn)];\n\t  }\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name ng.$q#defer\n\t   * @kind function\n\t   *\n\t   * @description\n\t   * Creates a `Deferred` object which represents a task which will finish in the future.\n\t   *\n\t   * @returns {Deferred} Returns a new instance of deferred.\n\t   */\n\t  var defer = function() {\n\t    return new Deferred();\n\t  };\n\n\t  function Promise() {\n\t    this.$$state = { status: 0 };\n\t  }\n\n\t  Promise.prototype = {\n\t    then: function(onFulfilled, onRejected, progressBack) {\n\t      var result = new Deferred();\n\n\t      this.$$state.pending = this.$$state.pending || [];\n\t      this.$$state.pending.push([result, onFulfilled, onRejected, progressBack]);\n\t      if (this.$$state.status > 0) scheduleProcessQueue(this.$$state);\n\n\t      return result.promise;\n\t    },\n\n\t    \"catch\": function(callback) {\n\t      return this.then(null, callback);\n\t    },\n\n\t    \"finally\": function(callback, progressBack) {\n\t      return this.then(function(value) {\n\t        return handleCallback(value, true, callback);\n\t      }, function(error) {\n\t        return handleCallback(error, false, callback);\n\t      }, progressBack);\n\t    }\n\t  };\n\n\t  //Faster, more basic than angular.bind http://jsperf.com/angular-bind-vs-custom-vs-native\n\t  function simpleBind(context, fn) {\n\t    return function(value) {\n\t      fn.call(context, value);\n\t    };\n\t  }\n\n\t  function processQueue(state) {\n\t    var fn, promise, pending;\n\n\t    pending = state.pending;\n\t    state.processScheduled = false;\n\t    state.pending = undefined;\n\t    for (var i = 0, ii = pending.length; i < ii; ++i) {\n\t      promise = pending[i][0];\n\t      fn = pending[i][state.status];\n\t      try {\n\t        if (isFunction(fn)) {\n\t          promise.resolve(fn(state.value));\n\t        } else if (state.status === 1) {\n\t          promise.resolve(state.value);\n\t        } else {\n\t          promise.reject(state.value);\n\t        }\n\t      } catch (e) {\n\t        promise.reject(e);\n\t        exceptionHandler(e);\n\t      }\n\t    }\n\t  }\n\n\t  function scheduleProcessQueue(state) {\n\t    if (state.processScheduled || !state.pending) return;\n\t    state.processScheduled = true;\n\t    nextTick(function() { processQueue(state); });\n\t  }\n\n\t  function Deferred() {\n\t    this.promise = new Promise();\n\t    //Necessary to support unbound execution :/\n\t    this.resolve = simpleBind(this, this.resolve);\n\t    this.reject = simpleBind(this, this.reject);\n\t    this.notify = simpleBind(this, this.notify);\n\t  }\n\n\t  Deferred.prototype = {\n\t    resolve: function(val) {\n\t      if (this.promise.$$state.status) return;\n\t      if (val === this.promise) {\n\t        this.$$reject($qMinErr(\n\t          'qcycle',\n\t          \"Expected promise to be resolved with value other than itself '{0}'\",\n\t          val));\n\t      } else {\n\t        this.$$resolve(val);\n\t      }\n\n\t    },\n\n\t    $$resolve: function(val) {\n\t      var then, fns;\n\n\t      fns = callOnce(this, this.$$resolve, this.$$reject);\n\t      try {\n\t        if ((isObject(val) || isFunction(val))) then = val && val.then;\n\t        if (isFunction(then)) {\n\t          this.promise.$$state.status = -1;\n\t          then.call(val, fns[0], fns[1], this.notify);\n\t        } else {\n\t          this.promise.$$state.value = val;\n\t          this.promise.$$state.status = 1;\n\t          scheduleProcessQueue(this.promise.$$state);\n\t        }\n\t      } catch (e) {\n\t        fns[1](e);\n\t        exceptionHandler(e);\n\t      }\n\t    },\n\n\t    reject: function(reason) {\n\t      if (this.promise.$$state.status) return;\n\t      this.$$reject(reason);\n\t    },\n\n\t    $$reject: function(reason) {\n\t      this.promise.$$state.value = reason;\n\t      this.promise.$$state.status = 2;\n\t      scheduleProcessQueue(this.promise.$$state);\n\t    },\n\n\t    notify: function(progress) {\n\t      var callbacks = this.promise.$$state.pending;\n\n\t      if ((this.promise.$$state.status <= 0) && callbacks && callbacks.length) {\n\t        nextTick(function() {\n\t          var callback, result;\n\t          for (var i = 0, ii = callbacks.length; i < ii; i++) {\n\t            result = callbacks[i][0];\n\t            callback = callbacks[i][3];\n\t            try {\n\t              result.notify(isFunction(callback) ? callback(progress) : progress);\n\t            } catch (e) {\n\t              exceptionHandler(e);\n\t            }\n\t          }\n\t        });\n\t      }\n\t    }\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $q#reject\n\t   * @kind function\n\t   *\n\t   * @description\n\t   * Creates a promise that is resolved as rejected with the specified `reason`. This api should be\n\t   * used to forward rejection in a chain of promises. If you are dealing with the last promise in\n\t   * a promise chain, you don't need to worry about it.\n\t   *\n\t   * When comparing deferreds/promises to the familiar behavior of try/catch/throw, think of\n\t   * `reject` as the `throw` keyword in JavaScript. This also means that if you \"catch\" an error via\n\t   * a promise error callback and you want to forward the error to the promise derived from the\n\t   * current promise, you have to \"rethrow\" the error by returning a rejection constructed via\n\t   * `reject`.\n\t   *\n\t   * ```js\n\t   *   promiseB = promiseA.then(function(result) {\n\t   *     // success: do something and resolve promiseB\n\t   *     //          with the old or a new result\n\t   *     return result;\n\t   *   }, function(reason) {\n\t   *     // error: handle the error if possible and\n\t   *     //        resolve promiseB with newPromiseOrValue,\n\t   *     //        otherwise forward the rejection to promiseB\n\t   *     if (canHandle(reason)) {\n\t   *      // handle the error and recover\n\t   *      return newPromiseOrValue;\n\t   *     }\n\t   *     return $q.reject(reason);\n\t   *   });\n\t   * ```\n\t   *\n\t   * @param {*} reason Constant, message, exception or an object representing the rejection reason.\n\t   * @returns {Promise} Returns a promise that was already resolved as rejected with the `reason`.\n\t   */\n\t  var reject = function(reason) {\n\t    var result = new Deferred();\n\t    result.reject(reason);\n\t    return result.promise;\n\t  };\n\n\t  var makePromise = function makePromise(value, resolved) {\n\t    var result = new Deferred();\n\t    if (resolved) {\n\t      result.resolve(value);\n\t    } else {\n\t      result.reject(value);\n\t    }\n\t    return result.promise;\n\t  };\n\n\t  var handleCallback = function handleCallback(value, isResolved, callback) {\n\t    var callbackOutput = null;\n\t    try {\n\t      if (isFunction(callback)) callbackOutput = callback();\n\t    } catch (e) {\n\t      return makePromise(e, false);\n\t    }\n\t    if (isPromiseLike(callbackOutput)) {\n\t      return callbackOutput.then(function() {\n\t        return makePromise(value, isResolved);\n\t      }, function(error) {\n\t        return makePromise(error, false);\n\t      });\n\t    } else {\n\t      return makePromise(value, isResolved);\n\t    }\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $q#when\n\t   * @kind function\n\t   *\n\t   * @description\n\t   * Wraps an object that might be a value or a (3rd party) then-able promise into a $q promise.\n\t   * This is useful when you are dealing with an object that might or might not be a promise, or if\n\t   * the promise comes from a source that can't be trusted.\n\t   *\n\t   * @param {*} value Value or a promise\n\t   * @returns {Promise} Returns a promise of the passed value or promise\n\t   */\n\n\n\t  var when = function(value, callback, errback, progressBack) {\n\t    var result = new Deferred();\n\t    result.resolve(value);\n\t    return result.promise.then(callback, errback, progressBack);\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $q#all\n\t   * @kind function\n\t   *\n\t   * @description\n\t   * Combines multiple promises into a single promise that is resolved when all of the input\n\t   * promises are resolved.\n\t   *\n\t   * @param {Array.<Promise>|Object.<Promise>} promises An array or hash of promises.\n\t   * @returns {Promise} Returns a single promise that will be resolved with an array/hash of values,\n\t   *   each value corresponding to the promise at the same index/key in the `promises` array/hash.\n\t   *   If any of the promises is resolved with a rejection, this resulting promise will be rejected\n\t   *   with the same rejection value.\n\t   */\n\n\t  function all(promises) {\n\t    var deferred = new Deferred(),\n\t        counter = 0,\n\t        results = isArray(promises) ? [] : {};\n\n\t    forEach(promises, function(promise, key) {\n\t      counter++;\n\t      when(promise).then(function(value) {\n\t        if (results.hasOwnProperty(key)) return;\n\t        results[key] = value;\n\t        if (!(--counter)) deferred.resolve(results);\n\t      }, function(reason) {\n\t        if (results.hasOwnProperty(key)) return;\n\t        deferred.reject(reason);\n\t      });\n\t    });\n\n\t    if (counter === 0) {\n\t      deferred.resolve(results);\n\t    }\n\n\t    return deferred.promise;\n\t  }\n\n\t  var $Q = function Q(resolver) {\n\t    if (!isFunction(resolver)) {\n\t      throw $qMinErr('norslvr', \"Expected resolverFn, got '{0}'\", resolver);\n\t    }\n\n\t    if (!(this instanceof Q)) {\n\t      // More useful when $Q is the Promise itself.\n\t      return new Q(resolver);\n\t    }\n\n\t    var deferred = new Deferred();\n\n\t    function resolveFn(value) {\n\t      deferred.resolve(value);\n\t    }\n\n\t    function rejectFn(reason) {\n\t      deferred.reject(reason);\n\t    }\n\n\t    resolver(resolveFn, rejectFn);\n\n\t    return deferred.promise;\n\t  };\n\n\t  $Q.defer = defer;\n\t  $Q.reject = reject;\n\t  $Q.when = when;\n\t  $Q.all = all;\n\n\t  return $Q;\n\t}\n\n\tfunction $$RAFProvider() { //rAF\n\t  this.$get = ['$window', '$timeout', function($window, $timeout) {\n\t    var requestAnimationFrame = $window.requestAnimationFrame ||\n\t                                $window.webkitRequestAnimationFrame;\n\n\t    var cancelAnimationFrame = $window.cancelAnimationFrame ||\n\t                               $window.webkitCancelAnimationFrame ||\n\t                               $window.webkitCancelRequestAnimationFrame;\n\n\t    var rafSupported = !!requestAnimationFrame;\n\t    var raf = rafSupported\n\t      ? function(fn) {\n\t          var id = requestAnimationFrame(fn);\n\t          return function() {\n\t            cancelAnimationFrame(id);\n\t          };\n\t        }\n\t      : function(fn) {\n\t          var timer = $timeout(fn, 16.66, false); // 1000 / 60 = 16.666\n\t          return function() {\n\t            $timeout.cancel(timer);\n\t          };\n\t        };\n\n\t    raf.supported = rafSupported;\n\n\t    return raf;\n\t  }];\n\t}\n\n\t/**\n\t * DESIGN NOTES\n\t *\n\t * The design decisions behind the scope are heavily favored for speed and memory consumption.\n\t *\n\t * The typical use of scope is to watch the expressions, which most of the time return the same\n\t * value as last time so we optimize the operation.\n\t *\n\t * Closures construction is expensive in terms of speed as well as memory:\n\t *   - No closures, instead use prototypical inheritance for API\n\t *   - Internal state needs to be stored on scope directly, which means that private state is\n\t *     exposed as $$____ properties\n\t *\n\t * Loop operations are optimized by using while(count--) { ... }\n\t *   - this means that in order to keep the same order of execution as addition we have to add\n\t *     items to the array at the beginning (unshift) instead of at the end (push)\n\t *\n\t * Child scopes are created and removed often\n\t *   - Using an array would be slow since inserts in middle are expensive so we use linked list\n\t *\n\t * There are few watches then a lot of observers. This is why you don't want the observer to be\n\t * implemented in the same way as watch. Watch requires return of initialization function which\n\t * are expensive to construct.\n\t */\n\n\n\t/**\n\t * @ngdoc provider\n\t * @name $rootScopeProvider\n\t * @description\n\t *\n\t * Provider for the $rootScope service.\n\t */\n\n\t/**\n\t * @ngdoc method\n\t * @name $rootScopeProvider#digestTtl\n\t * @description\n\t *\n\t * Sets the number of `$digest` iterations the scope should attempt to execute before giving up and\n\t * assuming that the model is unstable.\n\t *\n\t * The current default is 10 iterations.\n\t *\n\t * In complex applications it's possible that the dependencies between `$watch`s will result in\n\t * several digest iterations. However if an application needs more than the default 10 digest\n\t * iterations for its model to stabilize then you should investigate what is causing the model to\n\t * continuously change during the digest.\n\t *\n\t * Increasing the TTL could have performance implications, so you should not change it without\n\t * proper justification.\n\t *\n\t * @param {number} limit The number of digest iterations.\n\t */\n\n\n\t/**\n\t * @ngdoc service\n\t * @name $rootScope\n\t * @description\n\t *\n\t * Every application has a single root {@link ng.$rootScope.Scope scope}.\n\t * All other scopes are descendant scopes of the root scope. Scopes provide separation\n\t * between the model and the view, via a mechanism for watching the model for changes.\n\t * They also provide an event emission/broadcast and subscription facility. See the\n\t * {@link guide/scope developer guide on scopes}.\n\t */\n\tfunction $RootScopeProvider() {\n\t  var TTL = 10;\n\t  var $rootScopeMinErr = minErr('$rootScope');\n\t  var lastDirtyWatch = null;\n\t  var applyAsyncId = null;\n\n\t  this.digestTtl = function(value) {\n\t    if (arguments.length) {\n\t      TTL = value;\n\t    }\n\t    return TTL;\n\t  };\n\n\t  function createChildScopeClass(parent) {\n\t    function ChildScope() {\n\t      this.$$watchers = this.$$nextSibling =\n\t          this.$$childHead = this.$$childTail = null;\n\t      this.$$listeners = {};\n\t      this.$$listenerCount = {};\n\t      this.$$watchersCount = 0;\n\t      this.$id = nextUid();\n\t      this.$$ChildScope = null;\n\t    }\n\t    ChildScope.prototype = parent;\n\t    return ChildScope;\n\t  }\n\n\t  this.$get = ['$injector', '$exceptionHandler', '$parse', '$browser',\n\t      function($injector, $exceptionHandler, $parse, $browser) {\n\n\t    function destroyChildScope($event) {\n\t        $event.currentScope.$$destroyed = true;\n\t    }\n\n\t    /**\n\t     * @ngdoc type\n\t     * @name $rootScope.Scope\n\t     *\n\t     * @description\n\t     * A root scope can be retrieved using the {@link ng.$rootScope $rootScope} key from the\n\t     * {@link auto.$injector $injector}. Child scopes are created using the\n\t     * {@link ng.$rootScope.Scope#$new $new()} method. (Most scopes are created automatically when\n\t     * compiled HTML template is executed.)\n\t     *\n\t     * Here is a simple scope snippet to show how you can interact with the scope.\n\t     * ```html\n\t     * <file src=\"./test/ng/rootScopeSpec.js\" tag=\"docs1\" />\n\t     * ```\n\t     *\n\t     * # Inheritance\n\t     * A scope can inherit from a parent scope, as in this example:\n\t     * ```js\n\t         var parent = $rootScope;\n\t         var child = parent.$new();\n\n\t         parent.salutation = \"Hello\";\n\t         expect(child.salutation).toEqual('Hello');\n\n\t         child.salutation = \"Welcome\";\n\t         expect(child.salutation).toEqual('Welcome');\n\t         expect(parent.salutation).toEqual('Hello');\n\t     * ```\n\t     *\n\t     * When interacting with `Scope` in tests, additional helper methods are available on the\n\t     * instances of `Scope` type. See {@link ngMock.$rootScope.Scope ngMock Scope} for additional\n\t     * details.\n\t     *\n\t     *\n\t     * @param {Object.<string, function()>=} providers Map of service factory which need to be\n\t     *                                       provided for the current scope. Defaults to {@link ng}.\n\t     * @param {Object.<string, *>=} instanceCache Provides pre-instantiated services which should\n\t     *                              append/override services provided by `providers`. This is handy\n\t     *                              when unit-testing and having the need to override a default\n\t     *                              service.\n\t     * @returns {Object} Newly created scope.\n\t     *\n\t     */\n\t    function Scope() {\n\t      this.$id = nextUid();\n\t      this.$$phase = this.$parent = this.$$watchers =\n\t                     this.$$nextSibling = this.$$prevSibling =\n\t                     this.$$childHead = this.$$childTail = null;\n\t      this.$root = this;\n\t      this.$$destroyed = false;\n\t      this.$$listeners = {};\n\t      this.$$listenerCount = {};\n\t      this.$$isolateBindings = null;\n\t    }\n\n\t    /**\n\t     * @ngdoc property\n\t     * @name $rootScope.Scope#$id\n\t     *\n\t     * @description\n\t     * Unique scope ID (monotonically increasing) useful for debugging.\n\t     */\n\n\t     /**\n\t      * @ngdoc property\n\t      * @name $rootScope.Scope#$parent\n\t      *\n\t      * @description\n\t      * Reference to the parent scope.\n\t      */\n\n\t      /**\n\t       * @ngdoc property\n\t       * @name $rootScope.Scope#$root\n\t       *\n\t       * @description\n\t       * Reference to the root scope.\n\t       */\n\n\t    Scope.prototype = {\n\t      constructor: Scope,\n\t      /**\n\t       * @ngdoc method\n\t       * @name $rootScope.Scope#$new\n\t       * @kind function\n\t       *\n\t       * @description\n\t       * Creates a new child {@link ng.$rootScope.Scope scope}.\n\t       *\n\t       * The parent scope will propagate the {@link ng.$rootScope.Scope#$digest $digest()} event.\n\t       * The scope can be removed from the scope hierarchy using {@link ng.$rootScope.Scope#$destroy $destroy()}.\n\t       *\n\t       * {@link ng.$rootScope.Scope#$destroy $destroy()} must be called on a scope when it is\n\t       * desired for the scope and its child scopes to be permanently detached from the parent and\n\t       * thus stop participating in model change detection and listener notification by invoking.\n\t       *\n\t       * @param {boolean} isolate If true, then the scope does not prototypically inherit from the\n\t       *         parent scope. The scope is isolated, as it can not see parent scope properties.\n\t       *         When creating widgets, it is useful for the widget to not accidentally read parent\n\t       *         state.\n\t       *\n\t       * @param {Scope} [parent=this] The {@link ng.$rootScope.Scope `Scope`} that will be the `$parent`\n\t       *                              of the newly created scope. Defaults to `this` scope if not provided.\n\t       *                              This is used when creating a transclude scope to correctly place it\n\t       *                              in the scope hierarchy while maintaining the correct prototypical\n\t       *                              inheritance.\n\t       *\n\t       * @returns {Object} The newly created child scope.\n\t       *\n\t       */\n\t      $new: function(isolate, parent) {\n\t        var child;\n\n\t        parent = parent || this;\n\n\t        if (isolate) {\n\t          child = new Scope();\n\t          child.$root = this.$root;\n\t        } else {\n\t          // Only create a child scope class if somebody asks for one,\n\t          // but cache it to allow the VM to optimize lookups.\n\t          if (!this.$$ChildScope) {\n\t            this.$$ChildScope = createChildScopeClass(this);\n\t          }\n\t          child = new this.$$ChildScope();\n\t        }\n\t        child.$parent = parent;\n\t        child.$$prevSibling = parent.$$childTail;\n\t        if (parent.$$childHead) {\n\t          parent.$$childTail.$$nextSibling = child;\n\t          parent.$$childTail = child;\n\t        } else {\n\t          parent.$$childHead = parent.$$childTail = child;\n\t        }\n\n\t        // When the new scope is not isolated or we inherit from `this`, and\n\t        // the parent scope is destroyed, the property `$$destroyed` is inherited\n\t        // prototypically. In all other cases, this property needs to be set\n\t        // when the parent scope is destroyed.\n\t        // The listener needs to be added after the parent is set\n\t        if (isolate || parent != this) child.$on('$destroy', destroyChildScope);\n\n\t        return child;\n\t      },\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $rootScope.Scope#$watch\n\t       * @kind function\n\t       *\n\t       * @description\n\t       * Registers a `listener` callback to be executed whenever the `watchExpression` changes.\n\t       *\n\t       * - The `watchExpression` is called on every call to {@link ng.$rootScope.Scope#$digest\n\t       *   $digest()} and should return the value that will be watched. (Since\n\t       *   {@link ng.$rootScope.Scope#$digest $digest()} reruns when it detects changes the\n\t       *   `watchExpression` can execute multiple times per\n\t       *   {@link ng.$rootScope.Scope#$digest $digest()} and should be idempotent.)\n\t       * - The `listener` is called only when the value from the current `watchExpression` and the\n\t       *   previous call to `watchExpression` are not equal (with the exception of the initial run,\n\t       *   see below). Inequality is determined according to reference inequality,\n\t       *   [strict comparison](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Comparison_Operators)\n\t       *    via the `!==` Javascript operator, unless `objectEquality == true`\n\t       *   (see next point)\n\t       * - When `objectEquality == true`, inequality of the `watchExpression` is determined\n\t       *   according to the {@link angular.equals} function. To save the value of the object for\n\t       *   later comparison, the {@link angular.copy} function is used. This therefore means that\n\t       *   watching complex objects will have adverse memory and performance implications.\n\t       * - The watch `listener` may change the model, which may trigger other `listener`s to fire.\n\t       *   This is achieved by rerunning the watchers until no changes are detected. The rerun\n\t       *   iteration limit is 10 to prevent an infinite loop deadlock.\n\t       *\n\t       *\n\t       * If you want to be notified whenever {@link ng.$rootScope.Scope#$digest $digest} is called,\n\t       * you can register a `watchExpression` function with no `listener`. (Since `watchExpression`\n\t       * can execute multiple times per {@link ng.$rootScope.Scope#$digest $digest} cycle when a\n\t       * change is detected, be prepared for multiple calls to your listener.)\n\t       *\n\t       * After a watcher is registered with the scope, the `listener` fn is called asynchronously\n\t       * (via {@link ng.$rootScope.Scope#$evalAsync $evalAsync}) to initialize the\n\t       * watcher. In rare cases, this is undesirable because the listener is called when the result\n\t       * of `watchExpression` didn't change. To detect this scenario within the `listener` fn, you\n\t       * can compare the `newVal` and `oldVal`. If these two values are identical (`===`) then the\n\t       * listener was called due to initialization.\n\t       *\n\t       *\n\t       *\n\t       * # Example\n\t       * ```js\n\t           // let's assume that scope was dependency injected as the $rootScope\n\t           var scope = $rootScope;\n\t           scope.name = 'misko';\n\t           scope.counter = 0;\n\n\t           expect(scope.counter).toEqual(0);\n\t           scope.$watch('name', function(newValue, oldValue) {\n\t             scope.counter = scope.counter + 1;\n\t           });\n\t           expect(scope.counter).toEqual(0);\n\n\t           scope.$digest();\n\t           // the listener is always called during the first $digest loop after it was registered\n\t           expect(scope.counter).toEqual(1);\n\n\t           scope.$digest();\n\t           // but now it will not be called unless the value changes\n\t           expect(scope.counter).toEqual(1);\n\n\t           scope.name = 'adam';\n\t           scope.$digest();\n\t           expect(scope.counter).toEqual(2);\n\n\n\n\t           // Using a function as a watchExpression\n\t           var food;\n\t           scope.foodCounter = 0;\n\t           expect(scope.foodCounter).toEqual(0);\n\t           scope.$watch(\n\t             // This function returns the value being watched. It is called for each turn of the $digest loop\n\t             function() { return food; },\n\t             // This is the change listener, called when the value returned from the above function changes\n\t             function(newValue, oldValue) {\n\t               if ( newValue !== oldValue ) {\n\t                 // Only increment the counter if the value changed\n\t                 scope.foodCounter = scope.foodCounter + 1;\n\t               }\n\t             }\n\t           );\n\t           // No digest has been run so the counter will be zero\n\t           expect(scope.foodCounter).toEqual(0);\n\n\t           // Run the digest but since food has not changed count will still be zero\n\t           scope.$digest();\n\t           expect(scope.foodCounter).toEqual(0);\n\n\t           // Update food and run digest.  Now the counter will increment\n\t           food = 'cheeseburger';\n\t           scope.$digest();\n\t           expect(scope.foodCounter).toEqual(1);\n\n\t       * ```\n\t       *\n\t       *\n\t       *\n\t       * @param {(function()|string)} watchExpression Expression that is evaluated on each\n\t       *    {@link ng.$rootScope.Scope#$digest $digest} cycle. A change in the return value triggers\n\t       *    a call to the `listener`.\n\t       *\n\t       *    - `string`: Evaluated as {@link guide/expression expression}\n\t       *    - `function(scope)`: called with current `scope` as a parameter.\n\t       * @param {function(newVal, oldVal, scope)} listener Callback called whenever the value\n\t       *    of `watchExpression` changes.\n\t       *\n\t       *    - `newVal` contains the current value of the `watchExpression`\n\t       *    - `oldVal` contains the previous value of the `watchExpression`\n\t       *    - `scope` refers to the current scope\n\t       * @param {boolean=} objectEquality Compare for object equality using {@link angular.equals} instead of\n\t       *     comparing for reference equality.\n\t       * @returns {function()} Returns a deregistration function for this listener.\n\t       */\n\t      $watch: function(watchExp, listener, objectEquality) {\n\t        var get = $parse(watchExp);\n\n\t        if (get.$$watchDelegate) {\n\t          return get.$$watchDelegate(this, listener, objectEquality, get);\n\t        }\n\t        var scope = this,\n\t            array = scope.$$watchers,\n\t            watcher = {\n\t              fn: listener,\n\t              last: initWatchVal,\n\t              get: get,\n\t              exp: watchExp,\n\t              eq: !!objectEquality\n\t            };\n\n\t        lastDirtyWatch = null;\n\n\t        if (!isFunction(listener)) {\n\t          watcher.fn = noop;\n\t        }\n\n\t        if (!array) {\n\t          array = scope.$$watchers = [];\n\t        }\n\t        // we use unshift since we use a while loop in $digest for speed.\n\t        // the while loop reads in reverse order.\n\t        array.unshift(watcher);\n\n\t        return function deregisterWatch() {\n\t          arrayRemove(array, watcher);\n\t          lastDirtyWatch = null;\n\t        };\n\t      },\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $rootScope.Scope#$watchGroup\n\t       * @kind function\n\t       *\n\t       * @description\n\t       * A variant of {@link ng.$rootScope.Scope#$watch $watch()} where it watches an array of `watchExpressions`.\n\t       * If any one expression in the collection changes the `listener` is executed.\n\t       *\n\t       * - The items in the `watchExpressions` array are observed via standard $watch operation and are examined on every\n\t       *   call to $digest() to see if any items changes.\n\t       * - The `listener` is called whenever any expression in the `watchExpressions` array changes.\n\t       *\n\t       * @param {Array.<string|Function(scope)>} watchExpressions Array of expressions that will be individually\n\t       * watched using {@link ng.$rootScope.Scope#$watch $watch()}\n\t       *\n\t       * @param {function(newValues, oldValues, scope)} listener Callback called whenever the return value of any\n\t       *    expression in `watchExpressions` changes\n\t       *    The `newValues` array contains the current values of the `watchExpressions`, with the indexes matching\n\t       *    those of `watchExpression`\n\t       *    and the `oldValues` array contains the previous values of the `watchExpressions`, with the indexes matching\n\t       *    those of `watchExpression`\n\t       *    The `scope` refers to the current scope.\n\t       * @returns {function()} Returns a de-registration function for all listeners.\n\t       */\n\t      $watchGroup: function(watchExpressions, listener) {\n\t        var oldValues = new Array(watchExpressions.length);\n\t        var newValues = new Array(watchExpressions.length);\n\t        var deregisterFns = [];\n\t        var self = this;\n\t        var changeReactionScheduled = false;\n\t        var firstRun = true;\n\n\t        if (!watchExpressions.length) {\n\t          // No expressions means we call the listener ASAP\n\t          var shouldCall = true;\n\t          self.$evalAsync(function() {\n\t            if (shouldCall) listener(newValues, newValues, self);\n\t          });\n\t          return function deregisterWatchGroup() {\n\t            shouldCall = false;\n\t          };\n\t        }\n\n\t        if (watchExpressions.length === 1) {\n\t          // Special case size of one\n\t          return this.$watch(watchExpressions[0], function watchGroupAction(value, oldValue, scope) {\n\t            newValues[0] = value;\n\t            oldValues[0] = oldValue;\n\t            listener(newValues, (value === oldValue) ? newValues : oldValues, scope);\n\t          });\n\t        }\n\n\t        forEach(watchExpressions, function(expr, i) {\n\t          var unwatchFn = self.$watch(expr, function watchGroupSubAction(value, oldValue) {\n\t            newValues[i] = value;\n\t            oldValues[i] = oldValue;\n\t            if (!changeReactionScheduled) {\n\t              changeReactionScheduled = true;\n\t              self.$evalAsync(watchGroupAction);\n\t            }\n\t          });\n\t          deregisterFns.push(unwatchFn);\n\t        });\n\n\t        function watchGroupAction() {\n\t          changeReactionScheduled = false;\n\n\t          if (firstRun) {\n\t            firstRun = false;\n\t            listener(newValues, newValues, self);\n\t          } else {\n\t            listener(newValues, oldValues, self);\n\t          }\n\t        }\n\n\t        return function deregisterWatchGroup() {\n\t          while (deregisterFns.length) {\n\t            deregisterFns.shift()();\n\t          }\n\t        };\n\t      },\n\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $rootScope.Scope#$watchCollection\n\t       * @kind function\n\t       *\n\t       * @description\n\t       * Shallow watches the properties of an object and fires whenever any of the properties change\n\t       * (for arrays, this implies watching the array items; for object maps, this implies watching\n\t       * the properties). If a change is detected, the `listener` callback is fired.\n\t       *\n\t       * - The `obj` collection is observed via standard $watch operation and is examined on every\n\t       *   call to $digest() to see if any items have been added, removed, or moved.\n\t       * - The `listener` is called whenever anything within the `obj` has changed. Examples include\n\t       *   adding, removing, and moving items belonging to an object or array.\n\t       *\n\t       *\n\t       * # Example\n\t       * ```js\n\t          $scope.names = ['igor', 'matias', 'misko', 'james'];\n\t          $scope.dataCount = 4;\n\n\t          $scope.$watchCollection('names', function(newNames, oldNames) {\n\t            $scope.dataCount = newNames.length;\n\t          });\n\n\t          expect($scope.dataCount).toEqual(4);\n\t          $scope.$digest();\n\n\t          //still at 4 ... no changes\n\t          expect($scope.dataCount).toEqual(4);\n\n\t          $scope.names.pop();\n\t          $scope.$digest();\n\n\t          //now there's been a change\n\t          expect($scope.dataCount).toEqual(3);\n\t       * ```\n\t       *\n\t       *\n\t       * @param {string|function(scope)} obj Evaluated as {@link guide/expression expression}. The\n\t       *    expression value should evaluate to an object or an array which is observed on each\n\t       *    {@link ng.$rootScope.Scope#$digest $digest} cycle. Any shallow change within the\n\t       *    collection will trigger a call to the `listener`.\n\t       *\n\t       * @param {function(newCollection, oldCollection, scope)} listener a callback function called\n\t       *    when a change is detected.\n\t       *    - The `newCollection` object is the newly modified data obtained from the `obj` expression\n\t       *    - The `oldCollection` object is a copy of the former collection data.\n\t       *      Due to performance considerations, the`oldCollection` value is computed only if the\n\t       *      `listener` function declares two or more arguments.\n\t       *    - The `scope` argument refers to the current scope.\n\t       *\n\t       * @returns {function()} Returns a de-registration function for this listener. When the\n\t       *    de-registration function is executed, the internal watch operation is terminated.\n\t       */\n\t      $watchCollection: function(obj, listener) {\n\t        $watchCollectionInterceptor.$stateful = true;\n\n\t        var self = this;\n\t        // the current value, updated on each dirty-check run\n\t        var newValue;\n\t        // a shallow copy of the newValue from the last dirty-check run,\n\t        // updated to match newValue during dirty-check run\n\t        var oldValue;\n\t        // a shallow copy of the newValue from when the last change happened\n\t        var veryOldValue;\n\t        // only track veryOldValue if the listener is asking for it\n\t        var trackVeryOldValue = (listener.length > 1);\n\t        var changeDetected = 0;\n\t        var changeDetector = $parse(obj, $watchCollectionInterceptor);\n\t        var internalArray = [];\n\t        var internalObject = {};\n\t        var initRun = true;\n\t        var oldLength = 0;\n\n\t        function $watchCollectionInterceptor(_value) {\n\t          newValue = _value;\n\t          var newLength, key, bothNaN, newItem, oldItem;\n\n\t          // If the new value is undefined, then return undefined as the watch may be a one-time watch\n\t          if (isUndefined(newValue)) return;\n\n\t          if (!isObject(newValue)) { // if primitive\n\t            if (oldValue !== newValue) {\n\t              oldValue = newValue;\n\t              changeDetected++;\n\t            }\n\t          } else if (isArrayLike(newValue)) {\n\t            if (oldValue !== internalArray) {\n\t              // we are transitioning from something which was not an array into array.\n\t              oldValue = internalArray;\n\t              oldLength = oldValue.length = 0;\n\t              changeDetected++;\n\t            }\n\n\t            newLength = newValue.length;\n\n\t            if (oldLength !== newLength) {\n\t              // if lengths do not match we need to trigger change notification\n\t              changeDetected++;\n\t              oldValue.length = oldLength = newLength;\n\t            }\n\t            // copy the items to oldValue and look for changes.\n\t            for (var i = 0; i < newLength; i++) {\n\t              oldItem = oldValue[i];\n\t              newItem = newValue[i];\n\n\t              bothNaN = (oldItem !== oldItem) && (newItem !== newItem);\n\t              if (!bothNaN && (oldItem !== newItem)) {\n\t                changeDetected++;\n\t                oldValue[i] = newItem;\n\t              }\n\t            }\n\t          } else {\n\t            if (oldValue !== internalObject) {\n\t              // we are transitioning from something which was not an object into object.\n\t              oldValue = internalObject = {};\n\t              oldLength = 0;\n\t              changeDetected++;\n\t            }\n\t            // copy the items to oldValue and look for changes.\n\t            newLength = 0;\n\t            for (key in newValue) {\n\t              if (newValue.hasOwnProperty(key)) {\n\t                newLength++;\n\t                newItem = newValue[key];\n\t                oldItem = oldValue[key];\n\n\t                if (key in oldValue) {\n\t                  bothNaN = (oldItem !== oldItem) && (newItem !== newItem);\n\t                  if (!bothNaN && (oldItem !== newItem)) {\n\t                    changeDetected++;\n\t                    oldValue[key] = newItem;\n\t                  }\n\t                } else {\n\t                  oldLength++;\n\t                  oldValue[key] = newItem;\n\t                  changeDetected++;\n\t                }\n\t              }\n\t            }\n\t            if (oldLength > newLength) {\n\t              // we used to have more keys, need to find them and destroy them.\n\t              changeDetected++;\n\t              for (key in oldValue) {\n\t                if (!newValue.hasOwnProperty(key)) {\n\t                  oldLength--;\n\t                  delete oldValue[key];\n\t                }\n\t              }\n\t            }\n\t          }\n\t          return changeDetected;\n\t        }\n\n\t        function $watchCollectionAction() {\n\t          if (initRun) {\n\t            initRun = false;\n\t            listener(newValue, newValue, self);\n\t          } else {\n\t            listener(newValue, veryOldValue, self);\n\t          }\n\n\t          // make a copy for the next time a collection is changed\n\t          if (trackVeryOldValue) {\n\t            if (!isObject(newValue)) {\n\t              //primitive\n\t              veryOldValue = newValue;\n\t            } else if (isArrayLike(newValue)) {\n\t              veryOldValue = new Array(newValue.length);\n\t              for (var i = 0; i < newValue.length; i++) {\n\t                veryOldValue[i] = newValue[i];\n\t              }\n\t            } else { // if object\n\t              veryOldValue = {};\n\t              for (var key in newValue) {\n\t                if (hasOwnProperty.call(newValue, key)) {\n\t                  veryOldValue[key] = newValue[key];\n\t                }\n\t              }\n\t            }\n\t          }\n\t        }\n\n\t        return this.$watch(changeDetector, $watchCollectionAction);\n\t      },\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $rootScope.Scope#$digest\n\t       * @kind function\n\t       *\n\t       * @description\n\t       * Processes all of the {@link ng.$rootScope.Scope#$watch watchers} of the current scope and\n\t       * its children. Because a {@link ng.$rootScope.Scope#$watch watcher}'s listener can change\n\t       * the model, the `$digest()` keeps calling the {@link ng.$rootScope.Scope#$watch watchers}\n\t       * until no more listeners are firing. This means that it is possible to get into an infinite\n\t       * loop. This function will throw `'Maximum iteration limit exceeded.'` if the number of\n\t       * iterations exceeds 10.\n\t       *\n\t       * Usually, you don't call `$digest()` directly in\n\t       * {@link ng.directive:ngController controllers} or in\n\t       * {@link ng.$compileProvider#directive directives}.\n\t       * Instead, you should call {@link ng.$rootScope.Scope#$apply $apply()} (typically from within\n\t       * a {@link ng.$compileProvider#directive directive}), which will force a `$digest()`.\n\t       *\n\t       * If you want to be notified whenever `$digest()` is called,\n\t       * you can register a `watchExpression` function with\n\t       * {@link ng.$rootScope.Scope#$watch $watch()} with no `listener`.\n\t       *\n\t       * In unit tests, you may need to call `$digest()` to simulate the scope life cycle.\n\t       *\n\t       * # Example\n\t       * ```js\n\t           var scope = ...;\n\t           scope.name = 'misko';\n\t           scope.counter = 0;\n\n\t           expect(scope.counter).toEqual(0);\n\t           scope.$watch('name', function(newValue, oldValue) {\n\t             scope.counter = scope.counter + 1;\n\t           });\n\t           expect(scope.counter).toEqual(0);\n\n\t           scope.$digest();\n\t           // the listener is always called during the first $digest loop after it was registered\n\t           expect(scope.counter).toEqual(1);\n\n\t           scope.$digest();\n\t           // but now it will not be called unless the value changes\n\t           expect(scope.counter).toEqual(1);\n\n\t           scope.name = 'adam';\n\t           scope.$digest();\n\t           expect(scope.counter).toEqual(2);\n\t       * ```\n\t       *\n\t       */\n\t      $digest: function() {\n\t        var watch, value, last,\n\t            watchers,\n\t            length,\n\t            dirty, ttl = TTL,\n\t            next, current, target = this,\n\t            watchLog = [],\n\t            logIdx, logMsg, asyncTask;\n\n\t        beginPhase('$digest');\n\t        // Check for changes to browser url that happened in sync before the call to $digest\n\t        $browser.$$checkUrlChange();\n\n\t        if (this === $rootScope && applyAsyncId !== null) {\n\t          // If this is the root scope, and $applyAsync has scheduled a deferred $apply(), then\n\t          // cancel the scheduled $apply and flush the queue of expressions to be evaluated.\n\t          $browser.defer.cancel(applyAsyncId);\n\t          flushApplyAsync();\n\t        }\n\n\t        lastDirtyWatch = null;\n\n\t        do { // \"while dirty\" loop\n\t          dirty = false;\n\t          current = target;\n\n\t          while (asyncQueue.length) {\n\t            try {\n\t              asyncTask = asyncQueue.shift();\n\t              asyncTask.scope.$eval(asyncTask.expression, asyncTask.locals);\n\t            } catch (e) {\n\t              $exceptionHandler(e);\n\t            }\n\t            lastDirtyWatch = null;\n\t          }\n\n\t          traverseScopesLoop:\n\t          do { // \"traverse the scopes\" loop\n\t            if ((watchers = current.$$watchers)) {\n\t              // process our watches\n\t              length = watchers.length;\n\t              while (length--) {\n\t                try {\n\t                  watch = watchers[length];\n\t                  // Most common watches are on primitives, in which case we can short\n\t                  // circuit it with === operator, only when === fails do we use .equals\n\t                  if (watch) {\n\t                    if ((value = watch.get(current)) !== (last = watch.last) &&\n\t                        !(watch.eq\n\t                            ? equals(value, last)\n\t                            : (typeof value === 'number' && typeof last === 'number'\n\t                               && isNaN(value) && isNaN(last)))) {\n\t                      dirty = true;\n\t                      lastDirtyWatch = watch;\n\t                      watch.last = watch.eq ? copy(value, null) : value;\n\t                      watch.fn(value, ((last === initWatchVal) ? value : last), current);\n\t                      if (ttl < 5) {\n\t                        logIdx = 4 - ttl;\n\t                        if (!watchLog[logIdx]) watchLog[logIdx] = [];\n\t                        watchLog[logIdx].push({\n\t                          msg: isFunction(watch.exp) ? 'fn: ' + (watch.exp.name || watch.exp.toString()) : watch.exp,\n\t                          newVal: value,\n\t                          oldVal: last\n\t                        });\n\t                      }\n\t                    } else if (watch === lastDirtyWatch) {\n\t                      // If the most recently dirty watcher is now clean, short circuit since the remaining watchers\n\t                      // have already been tested.\n\t                      dirty = false;\n\t                      break traverseScopesLoop;\n\t                    }\n\t                  }\n\t                } catch (e) {\n\t                  $exceptionHandler(e);\n\t                }\n\t              }\n\t            }\n\n\t            // Insanity Warning: scope depth-first traversal\n\t            // yes, this code is a bit crazy, but it works and we have tests to prove it!\n\t            // this piece should be kept in sync with the traversal in $broadcast\n\t            if (!(next = (current.$$childHead ||\n\t                (current !== target && current.$$nextSibling)))) {\n\t              while (current !== target && !(next = current.$$nextSibling)) {\n\t                current = current.$parent;\n\t              }\n\t            }\n\t          } while ((current = next));\n\n\t          // `break traverseScopesLoop;` takes us to here\n\n\t          if ((dirty || asyncQueue.length) && !(ttl--)) {\n\t            clearPhase();\n\t            throw $rootScopeMinErr('infdig',\n\t                '{0} $digest() iterations reached. Aborting!\\n' +\n\t                'Watchers fired in the last 5 iterations: {1}',\n\t                TTL, watchLog);\n\t          }\n\n\t        } while (dirty || asyncQueue.length);\n\n\t        clearPhase();\n\n\t        while (postDigestQueue.length) {\n\t          try {\n\t            postDigestQueue.shift()();\n\t          } catch (e) {\n\t            $exceptionHandler(e);\n\t          }\n\t        }\n\t      },\n\n\n\t      /**\n\t       * @ngdoc event\n\t       * @name $rootScope.Scope#$destroy\n\t       * @eventType broadcast on scope being destroyed\n\t       *\n\t       * @description\n\t       * Broadcasted when a scope and its children are being destroyed.\n\t       *\n\t       * Note that, in AngularJS, there is also a `$destroy` jQuery event, which can be used to\n\t       * clean up DOM bindings before an element is removed from the DOM.\n\t       */\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $rootScope.Scope#$destroy\n\t       * @kind function\n\t       *\n\t       * @description\n\t       * Removes the current scope (and all of its children) from the parent scope. Removal implies\n\t       * that calls to {@link ng.$rootScope.Scope#$digest $digest()} will no longer\n\t       * propagate to the current scope and its children. Removal also implies that the current\n\t       * scope is eligible for garbage collection.\n\t       *\n\t       * The `$destroy()` is usually used by directives such as\n\t       * {@link ng.directive:ngRepeat ngRepeat} for managing the\n\t       * unrolling of the loop.\n\t       *\n\t       * Just before a scope is destroyed, a `$destroy` event is broadcasted on this scope.\n\t       * Application code can register a `$destroy` event handler that will give it a chance to\n\t       * perform any necessary cleanup.\n\t       *\n\t       * Note that, in AngularJS, there is also a `$destroy` jQuery event, which can be used to\n\t       * clean up DOM bindings before an element is removed from the DOM.\n\t       */\n\t      $destroy: function() {\n\t        // we can't destroy the root scope or a scope that has been already destroyed\n\t        if (this.$$destroyed) return;\n\t        var parent = this.$parent;\n\n\t        this.$broadcast('$destroy');\n\t        this.$$destroyed = true;\n\t        if (this === $rootScope) return;\n\n\t        for (var eventName in this.$$listenerCount) {\n\t          decrementListenerCount(this, this.$$listenerCount[eventName], eventName);\n\t        }\n\n\t        // sever all the references to parent scopes (after this cleanup, the current scope should\n\t        // not be retained by any of our references and should be eligible for garbage collection)\n\t        if (parent.$$childHead == this) parent.$$childHead = this.$$nextSibling;\n\t        if (parent.$$childTail == this) parent.$$childTail = this.$$prevSibling;\n\t        if (this.$$prevSibling) this.$$prevSibling.$$nextSibling = this.$$nextSibling;\n\t        if (this.$$nextSibling) this.$$nextSibling.$$prevSibling = this.$$prevSibling;\n\n\t        // Disable listeners, watchers and apply/digest methods\n\t        this.$destroy = this.$digest = this.$apply = this.$evalAsync = this.$applyAsync = noop;\n\t        this.$on = this.$watch = this.$watchGroup = function() { return noop; };\n\t        this.$$listeners = {};\n\n\t        // All of the code below is bogus code that works around V8's memory leak via optimized code\n\t        // and inline caches.\n\t        //\n\t        // see:\n\t        // - https://code.google.com/p/v8/issues/detail?id=2073#c26\n\t        // - https://github.com/angular/angular.js/issues/6794#issuecomment-38648909\n\t        // - https://github.com/angular/angular.js/issues/1313#issuecomment-10378451\n\n\t        this.$parent = this.$$nextSibling = this.$$prevSibling = this.$$childHead =\n\t            this.$$childTail = this.$root = this.$$watchers = null;\n\t      },\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $rootScope.Scope#$eval\n\t       * @kind function\n\t       *\n\t       * @description\n\t       * Executes the `expression` on the current scope and returns the result. Any exceptions in\n\t       * the expression are propagated (uncaught). This is useful when evaluating Angular\n\t       * expressions.\n\t       *\n\t       * # Example\n\t       * ```js\n\t           var scope = ng.$rootScope.Scope();\n\t           scope.a = 1;\n\t           scope.b = 2;\n\n\t           expect(scope.$eval('a+b')).toEqual(3);\n\t           expect(scope.$eval(function(scope){ return scope.a + scope.b; })).toEqual(3);\n\t       * ```\n\t       *\n\t       * @param {(string|function())=} expression An angular expression to be executed.\n\t       *\n\t       *    - `string`: execute using the rules as defined in  {@link guide/expression expression}.\n\t       *    - `function(scope)`: execute the function with the current `scope` parameter.\n\t       *\n\t       * @param {(object)=} locals Local variables object, useful for overriding values in scope.\n\t       * @returns {*} The result of evaluating the expression.\n\t       */\n\t      $eval: function(expr, locals) {\n\t        return $parse(expr)(this, locals);\n\t      },\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $rootScope.Scope#$evalAsync\n\t       * @kind function\n\t       *\n\t       * @description\n\t       * Executes the expression on the current scope at a later point in time.\n\t       *\n\t       * The `$evalAsync` makes no guarantees as to when the `expression` will be executed, only\n\t       * that:\n\t       *\n\t       *   - it will execute after the function that scheduled the evaluation (preferably before DOM\n\t       *     rendering).\n\t       *   - at least one {@link ng.$rootScope.Scope#$digest $digest cycle} will be performed after\n\t       *     `expression` execution.\n\t       *\n\t       * Any exceptions from the execution of the expression are forwarded to the\n\t       * {@link ng.$exceptionHandler $exceptionHandler} service.\n\t       *\n\t       * __Note:__ if this function is called outside of a `$digest` cycle, a new `$digest` cycle\n\t       * will be scheduled. However, it is encouraged to always call code that changes the model\n\t       * from within an `$apply` call. That includes code evaluated via `$evalAsync`.\n\t       *\n\t       * @param {(string|function())=} expression An angular expression to be executed.\n\t       *\n\t       *    - `string`: execute using the rules as defined in {@link guide/expression expression}.\n\t       *    - `function(scope)`: execute the function with the current `scope` parameter.\n\t       *\n\t       * @param {(object)=} locals Local variables object, useful for overriding values in scope.\n\t       */\n\t      $evalAsync: function(expr, locals) {\n\t        // if we are outside of an $digest loop and this is the first time we are scheduling async\n\t        // task also schedule async auto-flush\n\t        if (!$rootScope.$$phase && !asyncQueue.length) {\n\t          $browser.defer(function() {\n\t            if (asyncQueue.length) {\n\t              $rootScope.$digest();\n\t            }\n\t          });\n\t        }\n\n\t        asyncQueue.push({scope: this, expression: expr, locals: locals});\n\t      },\n\n\t      $$postDigest: function(fn) {\n\t        postDigestQueue.push(fn);\n\t      },\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $rootScope.Scope#$apply\n\t       * @kind function\n\t       *\n\t       * @description\n\t       * `$apply()` is used to execute an expression in angular from outside of the angular\n\t       * framework. (For example from browser DOM events, setTimeout, XHR or third party libraries).\n\t       * Because we are calling into the angular framework we need to perform proper scope life\n\t       * cycle of {@link ng.$exceptionHandler exception handling},\n\t       * {@link ng.$rootScope.Scope#$digest executing watches}.\n\t       *\n\t       * ## Life cycle\n\t       *\n\t       * # Pseudo-Code of `$apply()`\n\t       * ```js\n\t           function $apply(expr) {\n\t             try {\n\t               return $eval(expr);\n\t             } catch (e) {\n\t               $exceptionHandler(e);\n\t             } finally {\n\t               $root.$digest();\n\t             }\n\t           }\n\t       * ```\n\t       *\n\t       *\n\t       * Scope's `$apply()` method transitions through the following stages:\n\t       *\n\t       * 1. The {@link guide/expression expression} is executed using the\n\t       *    {@link ng.$rootScope.Scope#$eval $eval()} method.\n\t       * 2. Any exceptions from the execution of the expression are forwarded to the\n\t       *    {@link ng.$exceptionHandler $exceptionHandler} service.\n\t       * 3. The {@link ng.$rootScope.Scope#$watch watch} listeners are fired immediately after the\n\t       *    expression was executed using the {@link ng.$rootScope.Scope#$digest $digest()} method.\n\t       *\n\t       *\n\t       * @param {(string|function())=} exp An angular expression to be executed.\n\t       *\n\t       *    - `string`: execute using the rules as defined in {@link guide/expression expression}.\n\t       *    - `function(scope)`: execute the function with current `scope` parameter.\n\t       *\n\t       * @returns {*} The result of evaluating the expression.\n\t       */\n\t      $apply: function(expr) {\n\t        try {\n\t          beginPhase('$apply');\n\t          return this.$eval(expr);\n\t        } catch (e) {\n\t          $exceptionHandler(e);\n\t        } finally {\n\t          clearPhase();\n\t          try {\n\t            $rootScope.$digest();\n\t          } catch (e) {\n\t            $exceptionHandler(e);\n\t            throw e;\n\t          }\n\t        }\n\t      },\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $rootScope.Scope#$applyAsync\n\t       * @kind function\n\t       *\n\t       * @description\n\t       * Schedule the invocation of $apply to occur at a later time. The actual time difference\n\t       * varies across browsers, but is typically around ~10 milliseconds.\n\t       *\n\t       * This can be used to queue up multiple expressions which need to be evaluated in the same\n\t       * digest.\n\t       *\n\t       * @param {(string|function())=} exp An angular expression to be executed.\n\t       *\n\t       *    - `string`: execute using the rules as defined in {@link guide/expression expression}.\n\t       *    - `function(scope)`: execute the function with current `scope` parameter.\n\t       */\n\t      $applyAsync: function(expr) {\n\t        var scope = this;\n\t        expr && applyAsyncQueue.push($applyAsyncExpression);\n\t        scheduleApplyAsync();\n\n\t        function $applyAsyncExpression() {\n\t          scope.$eval(expr);\n\t        }\n\t      },\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $rootScope.Scope#$on\n\t       * @kind function\n\t       *\n\t       * @description\n\t       * Listens on events of a given type. See {@link ng.$rootScope.Scope#$emit $emit} for\n\t       * discussion of event life cycle.\n\t       *\n\t       * The event listener function format is: `function(event, args...)`. The `event` object\n\t       * passed into the listener has the following attributes:\n\t       *\n\t       *   - `targetScope` - `{Scope}`: the scope on which the event was `$emit`-ed or\n\t       *     `$broadcast`-ed.\n\t       *   - `currentScope` - `{Scope}`: the scope that is currently handling the event. Once the\n\t       *     event propagates through the scope hierarchy, this property is set to null.\n\t       *   - `name` - `{string}`: name of the event.\n\t       *   - `stopPropagation` - `{function=}`: calling `stopPropagation` function will cancel\n\t       *     further event propagation (available only for events that were `$emit`-ed).\n\t       *   - `preventDefault` - `{function}`: calling `preventDefault` sets `defaultPrevented` flag\n\t       *     to true.\n\t       *   - `defaultPrevented` - `{boolean}`: true if `preventDefault` was called.\n\t       *\n\t       * @param {string} name Event name to listen on.\n\t       * @param {function(event, ...args)} listener Function to call when the event is emitted.\n\t       * @returns {function()} Returns a deregistration function for this listener.\n\t       */\n\t      $on: function(name, listener) {\n\t        var namedListeners = this.$$listeners[name];\n\t        if (!namedListeners) {\n\t          this.$$listeners[name] = namedListeners = [];\n\t        }\n\t        namedListeners.push(listener);\n\n\t        var current = this;\n\t        do {\n\t          if (!current.$$listenerCount[name]) {\n\t            current.$$listenerCount[name] = 0;\n\t          }\n\t          current.$$listenerCount[name]++;\n\t        } while ((current = current.$parent));\n\n\t        var self = this;\n\t        return function() {\n\t          var indexOfListener = namedListeners.indexOf(listener);\n\t          if (indexOfListener !== -1) {\n\t            namedListeners[indexOfListener] = null;\n\t            decrementListenerCount(self, 1, name);\n\t          }\n\t        };\n\t      },\n\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $rootScope.Scope#$emit\n\t       * @kind function\n\t       *\n\t       * @description\n\t       * Dispatches an event `name` upwards through the scope hierarchy notifying the\n\t       * registered {@link ng.$rootScope.Scope#$on} listeners.\n\t       *\n\t       * The event life cycle starts at the scope on which `$emit` was called. All\n\t       * {@link ng.$rootScope.Scope#$on listeners} listening for `name` event on this scope get\n\t       * notified. Afterwards, the event traverses upwards toward the root scope and calls all\n\t       * registered listeners along the way. The event will stop propagating if one of the listeners\n\t       * cancels it.\n\t       *\n\t       * Any exception emitted from the {@link ng.$rootScope.Scope#$on listeners} will be passed\n\t       * onto the {@link ng.$exceptionHandler $exceptionHandler} service.\n\t       *\n\t       * @param {string} name Event name to emit.\n\t       * @param {...*} args Optional one or more arguments which will be passed onto the event listeners.\n\t       * @return {Object} Event object (see {@link ng.$rootScope.Scope#$on}).\n\t       */\n\t      $emit: function(name, args) {\n\t        var empty = [],\n\t            namedListeners,\n\t            scope = this,\n\t            stopPropagation = false,\n\t            event = {\n\t              name: name,\n\t              targetScope: scope,\n\t              stopPropagation: function() {stopPropagation = true;},\n\t              preventDefault: function() {\n\t                event.defaultPrevented = true;\n\t              },\n\t              defaultPrevented: false\n\t            },\n\t            listenerArgs = concat([event], arguments, 1),\n\t            i, length;\n\n\t        do {\n\t          namedListeners = scope.$$listeners[name] || empty;\n\t          event.currentScope = scope;\n\t          for (i = 0, length = namedListeners.length; i < length; i++) {\n\n\t            // if listeners were deregistered, defragment the array\n\t            if (!namedListeners[i]) {\n\t              namedListeners.splice(i, 1);\n\t              i--;\n\t              length--;\n\t              continue;\n\t            }\n\t            try {\n\t              //allow all listeners attached to the current scope to run\n\t              namedListeners[i].apply(null, listenerArgs);\n\t            } catch (e) {\n\t              $exceptionHandler(e);\n\t            }\n\t          }\n\t          //if any listener on the current scope stops propagation, prevent bubbling\n\t          if (stopPropagation) {\n\t            event.currentScope = null;\n\t            return event;\n\t          }\n\t          //traverse upwards\n\t          scope = scope.$parent;\n\t        } while (scope);\n\n\t        event.currentScope = null;\n\n\t        return event;\n\t      },\n\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $rootScope.Scope#$broadcast\n\t       * @kind function\n\t       *\n\t       * @description\n\t       * Dispatches an event `name` downwards to all child scopes (and their children) notifying the\n\t       * registered {@link ng.$rootScope.Scope#$on} listeners.\n\t       *\n\t       * The event life cycle starts at the scope on which `$broadcast` was called. All\n\t       * {@link ng.$rootScope.Scope#$on listeners} listening for `name` event on this scope get\n\t       * notified. Afterwards, the event propagates to all direct and indirect scopes of the current\n\t       * scope and calls all registered listeners along the way. The event cannot be canceled.\n\t       *\n\t       * Any exception emitted from the {@link ng.$rootScope.Scope#$on listeners} will be passed\n\t       * onto the {@link ng.$exceptionHandler $exceptionHandler} service.\n\t       *\n\t       * @param {string} name Event name to broadcast.\n\t       * @param {...*} args Optional one or more arguments which will be passed onto the event listeners.\n\t       * @return {Object} Event object, see {@link ng.$rootScope.Scope#$on}\n\t       */\n\t      $broadcast: function(name, args) {\n\t        var target = this,\n\t            current = target,\n\t            next = target,\n\t            event = {\n\t              name: name,\n\t              targetScope: target,\n\t              preventDefault: function() {\n\t                event.defaultPrevented = true;\n\t              },\n\t              defaultPrevented: false\n\t            };\n\n\t        if (!target.$$listenerCount[name]) return event;\n\n\t        var listenerArgs = concat([event], arguments, 1),\n\t            listeners, i, length;\n\n\t        //down while you can, then up and next sibling or up and next sibling until back at root\n\t        while ((current = next)) {\n\t          event.currentScope = current;\n\t          listeners = current.$$listeners[name] || [];\n\t          for (i = 0, length = listeners.length; i < length; i++) {\n\t            // if listeners were deregistered, defragment the array\n\t            if (!listeners[i]) {\n\t              listeners.splice(i, 1);\n\t              i--;\n\t              length--;\n\t              continue;\n\t            }\n\n\t            try {\n\t              listeners[i].apply(null, listenerArgs);\n\t            } catch (e) {\n\t              $exceptionHandler(e);\n\t            }\n\t          }\n\n\t          // Insanity Warning: scope depth-first traversal\n\t          // yes, this code is a bit crazy, but it works and we have tests to prove it!\n\t          // this piece should be kept in sync with the traversal in $digest\n\t          // (though it differs due to having the extra check for $$listenerCount)\n\t          if (!(next = ((current.$$listenerCount[name] && current.$$childHead) ||\n\t              (current !== target && current.$$nextSibling)))) {\n\t            while (current !== target && !(next = current.$$nextSibling)) {\n\t              current = current.$parent;\n\t            }\n\t          }\n\t        }\n\n\t        event.currentScope = null;\n\t        return event;\n\t      }\n\t    };\n\n\t    var $rootScope = new Scope();\n\n\t    //The internal queues. Expose them on the $rootScope for debugging/testing purposes.\n\t    var asyncQueue = $rootScope.$$asyncQueue = [];\n\t    var postDigestQueue = $rootScope.$$postDigestQueue = [];\n\t    var applyAsyncQueue = $rootScope.$$applyAsyncQueue = [];\n\n\t    return $rootScope;\n\n\n\t    function beginPhase(phase) {\n\t      if ($rootScope.$$phase) {\n\t        throw $rootScopeMinErr('inprog', '{0} already in progress', $rootScope.$$phase);\n\t      }\n\n\t      $rootScope.$$phase = phase;\n\t    }\n\n\t    function clearPhase() {\n\t      $rootScope.$$phase = null;\n\t    }\n\n\n\t    function decrementListenerCount(current, count, name) {\n\t      do {\n\t        current.$$listenerCount[name] -= count;\n\n\t        if (current.$$listenerCount[name] === 0) {\n\t          delete current.$$listenerCount[name];\n\t        }\n\t      } while ((current = current.$parent));\n\t    }\n\n\t    /**\n\t     * function used as an initial value for watchers.\n\t     * because it's unique we can easily tell it apart from other values\n\t     */\n\t    function initWatchVal() {}\n\n\t    function flushApplyAsync() {\n\t      while (applyAsyncQueue.length) {\n\t        try {\n\t          applyAsyncQueue.shift()();\n\t        } catch (e) {\n\t          $exceptionHandler(e);\n\t        }\n\t      }\n\t      applyAsyncId = null;\n\t    }\n\n\t    function scheduleApplyAsync() {\n\t      if (applyAsyncId === null) {\n\t        applyAsyncId = $browser.defer(function() {\n\t          $rootScope.$apply(flushApplyAsync);\n\t        });\n\t      }\n\t    }\n\t  }];\n\t}\n\n\t/**\n\t * @description\n\t * Private service to sanitize uris for links and images. Used by $compile and $sanitize.\n\t */\n\tfunction $$SanitizeUriProvider() {\n\t  var aHrefSanitizationWhitelist = /^\\s*(https?|ftp|mailto|tel|file):/,\n\t    imgSrcSanitizationWhitelist = /^\\s*((https?|ftp|file|blob):|data:image\\/)/;\n\n\t  /**\n\t   * @description\n\t   * Retrieves or overrides the default regular expression that is used for whitelisting of safe\n\t   * urls during a[href] sanitization.\n\t   *\n\t   * The sanitization is a security measure aimed at prevent XSS attacks via html links.\n\t   *\n\t   * Any url about to be assigned to a[href] via data-binding is first normalized and turned into\n\t   * an absolute url. Afterwards, the url is matched against the `aHrefSanitizationWhitelist`\n\t   * regular expression. If a match is found, the original url is written into the dom. Otherwise,\n\t   * the absolute url is prefixed with `'unsafe:'` string and only then is it written into the DOM.\n\t   *\n\t   * @param {RegExp=} regexp New regexp to whitelist urls with.\n\t   * @returns {RegExp|ng.$compileProvider} Current RegExp if called without value or self for\n\t   *    chaining otherwise.\n\t   */\n\t  this.aHrefSanitizationWhitelist = function(regexp) {\n\t    if (isDefined(regexp)) {\n\t      aHrefSanitizationWhitelist = regexp;\n\t      return this;\n\t    }\n\t    return aHrefSanitizationWhitelist;\n\t  };\n\n\n\t  /**\n\t   * @description\n\t   * Retrieves or overrides the default regular expression that is used for whitelisting of safe\n\t   * urls during img[src] sanitization.\n\t   *\n\t   * The sanitization is a security measure aimed at prevent XSS attacks via html links.\n\t   *\n\t   * Any url about to be assigned to img[src] via data-binding is first normalized and turned into\n\t   * an absolute url. Afterwards, the url is matched against the `imgSrcSanitizationWhitelist`\n\t   * regular expression. If a match is found, the original url is written into the dom. Otherwise,\n\t   * the absolute url is prefixed with `'unsafe:'` string and only then is it written into the DOM.\n\t   *\n\t   * @param {RegExp=} regexp New regexp to whitelist urls with.\n\t   * @returns {RegExp|ng.$compileProvider} Current RegExp if called without value or self for\n\t   *    chaining otherwise.\n\t   */\n\t  this.imgSrcSanitizationWhitelist = function(regexp) {\n\t    if (isDefined(regexp)) {\n\t      imgSrcSanitizationWhitelist = regexp;\n\t      return this;\n\t    }\n\t    return imgSrcSanitizationWhitelist;\n\t  };\n\n\t  this.$get = function() {\n\t    return function sanitizeUri(uri, isImage) {\n\t      var regex = isImage ? imgSrcSanitizationWhitelist : aHrefSanitizationWhitelist;\n\t      var normalizedVal;\n\t      normalizedVal = urlResolve(uri).href;\n\t      if (normalizedVal !== '' && !normalizedVal.match(regex)) {\n\t        return 'unsafe:' + normalizedVal;\n\t      }\n\t      return uri;\n\t    };\n\t  };\n\t}\n\n\t/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\n\t *     Any commits to this file should be reviewed with security in mind.  *\n\t *   Changes to this file can potentially create security vulnerabilities. *\n\t *          An approval from 2 Core members with history of modifying      *\n\t *                         this file is required.                          *\n\t *                                                                         *\n\t *  Does the change somehow allow for arbitrary javascript to be executed? *\n\t *    Or allows for someone to change the prototype of built-in objects?   *\n\t *     Or gives undesired access to variables likes document or window?    *\n\t * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */\n\n\tvar $sceMinErr = minErr('$sce');\n\n\tvar SCE_CONTEXTS = {\n\t  HTML: 'html',\n\t  CSS: 'css',\n\t  URL: 'url',\n\t  // RESOURCE_URL is a subtype of URL used in contexts where a privileged resource is sourced from a\n\t  // url.  (e.g. ng-include, script src, templateUrl)\n\t  RESOURCE_URL: 'resourceUrl',\n\t  JS: 'js'\n\t};\n\n\t// Helper functions follow.\n\n\tfunction adjustMatcher(matcher) {\n\t  if (matcher === 'self') {\n\t    return matcher;\n\t  } else if (isString(matcher)) {\n\t    // Strings match exactly except for 2 wildcards - '*' and '**'.\n\t    // '*' matches any character except those from the set ':/.?&'.\n\t    // '**' matches any character (like .* in a RegExp).\n\t    // More than 2 *'s raises an error as it's ill defined.\n\t    if (matcher.indexOf('***') > -1) {\n\t      throw $sceMinErr('iwcard',\n\t          'Illegal sequence *** in string matcher.  String: {0}', matcher);\n\t    }\n\t    matcher = escapeForRegexp(matcher).\n\t                  replace('\\\\*\\\\*', '.*').\n\t                  replace('\\\\*', '[^:/.?&;]*');\n\t    return new RegExp('^' + matcher + '$');\n\t  } else if (isRegExp(matcher)) {\n\t    // The only other type of matcher allowed is a Regexp.\n\t    // Match entire URL / disallow partial matches.\n\t    // Flags are reset (i.e. no global, ignoreCase or multiline)\n\t    return new RegExp('^' + matcher.source + '$');\n\t  } else {\n\t    throw $sceMinErr('imatcher',\n\t        'Matchers may only be \"self\", string patterns or RegExp objects');\n\t  }\n\t}\n\n\n\tfunction adjustMatchers(matchers) {\n\t  var adjustedMatchers = [];\n\t  if (isDefined(matchers)) {\n\t    forEach(matchers, function(matcher) {\n\t      adjustedMatchers.push(adjustMatcher(matcher));\n\t    });\n\t  }\n\t  return adjustedMatchers;\n\t}\n\n\n\t/**\n\t * @ngdoc service\n\t * @name $sceDelegate\n\t * @kind function\n\t *\n\t * @description\n\t *\n\t * `$sceDelegate` is a service that is used by the `$sce` service to provide {@link ng.$sce Strict\n\t * Contextual Escaping (SCE)} services to AngularJS.\n\t *\n\t * Typically, you would configure or override the {@link ng.$sceDelegate $sceDelegate} instead of\n\t * the `$sce` service to customize the way Strict Contextual Escaping works in AngularJS.  This is\n\t * because, while the `$sce` provides numerous shorthand methods, etc., you really only need to\n\t * override 3 core functions (`trustAs`, `getTrusted` and `valueOf`) to replace the way things\n\t * work because `$sce` delegates to `$sceDelegate` for these operations.\n\t *\n\t * Refer {@link ng.$sceDelegateProvider $sceDelegateProvider} to configure this service.\n\t *\n\t * The default instance of `$sceDelegate` should work out of the box with little pain.  While you\n\t * can override it completely to change the behavior of `$sce`, the common case would\n\t * involve configuring the {@link ng.$sceDelegateProvider $sceDelegateProvider} instead by setting\n\t * your own whitelists and blacklists for trusting URLs used for loading AngularJS resources such as\n\t * templates.  Refer {@link ng.$sceDelegateProvider#resourceUrlWhitelist\n\t * $sceDelegateProvider.resourceUrlWhitelist} and {@link\n\t * ng.$sceDelegateProvider#resourceUrlBlacklist $sceDelegateProvider.resourceUrlBlacklist}\n\t */\n\n\t/**\n\t * @ngdoc provider\n\t * @name $sceDelegateProvider\n\t * @description\n\t *\n\t * The `$sceDelegateProvider` provider allows developers to configure the {@link ng.$sceDelegate\n\t * $sceDelegate} service.  This allows one to get/set the whitelists and blacklists used to ensure\n\t * that the URLs used for sourcing Angular templates are safe.  Refer {@link\n\t * ng.$sceDelegateProvider#resourceUrlWhitelist $sceDelegateProvider.resourceUrlWhitelist} and\n\t * {@link ng.$sceDelegateProvider#resourceUrlBlacklist $sceDelegateProvider.resourceUrlBlacklist}\n\t *\n\t * For the general details about this service in Angular, read the main page for {@link ng.$sce\n\t * Strict Contextual Escaping (SCE)}.\n\t *\n\t * **Example**:  Consider the following case. <a name=\"example\"></a>\n\t *\n\t * - your app is hosted at url `http://myapp.example.com/`\n\t * - but some of your templates are hosted on other domains you control such as\n\t *   `http://srv01.assets.example.com/`,  `http://srv02.assets.example.com/`, etc.\n\t * - and you have an open redirect at `http://myapp.example.com/clickThru?...`.\n\t *\n\t * Here is what a secure configuration for this scenario might look like:\n\t *\n\t * ```\n\t *  angular.module('myApp', []).config(function($sceDelegateProvider) {\n\t *    $sceDelegateProvider.resourceUrlWhitelist([\n\t *      // Allow same origin resource loads.\n\t *      'self',\n\t *      // Allow loading from our assets domain.  Notice the difference between * and **.\n\t *      'http://srv*.assets.example.com/**'\n\t *    ]);\n\t *\n\t *    // The blacklist overrides the whitelist so the open redirect here is blocked.\n\t *    $sceDelegateProvider.resourceUrlBlacklist([\n\t *      'http://myapp.example.com/clickThru**'\n\t *    ]);\n\t *  });\n\t * ```\n\t */\n\n\tfunction $SceDelegateProvider() {\n\t  this.SCE_CONTEXTS = SCE_CONTEXTS;\n\n\t  // Resource URLs can also be trusted by policy.\n\t  var resourceUrlWhitelist = ['self'],\n\t      resourceUrlBlacklist = [];\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $sceDelegateProvider#resourceUrlWhitelist\n\t   * @kind function\n\t   *\n\t   * @param {Array=} whitelist When provided, replaces the resourceUrlWhitelist with the value\n\t   *     provided.  This must be an array or null.  A snapshot of this array is used so further\n\t   *     changes to the array are ignored.\n\t   *\n\t   *     Follow {@link ng.$sce#resourceUrlPatternItem this link} for a description of the items\n\t   *     allowed in this array.\n\t   *\n\t   *     Note: **an empty whitelist array will block all URLs**!\n\t   *\n\t   * @return {Array} the currently set whitelist array.\n\t   *\n\t   * The **default value** when no whitelist has been explicitly set is `['self']` allowing only\n\t   * same origin resource requests.\n\t   *\n\t   * @description\n\t   * Sets/Gets the whitelist of trusted resource URLs.\n\t   */\n\t  this.resourceUrlWhitelist = function(value) {\n\t    if (arguments.length) {\n\t      resourceUrlWhitelist = adjustMatchers(value);\n\t    }\n\t    return resourceUrlWhitelist;\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $sceDelegateProvider#resourceUrlBlacklist\n\t   * @kind function\n\t   *\n\t   * @param {Array=} blacklist When provided, replaces the resourceUrlBlacklist with the value\n\t   *     provided.  This must be an array or null.  A snapshot of this array is used so further\n\t   *     changes to the array are ignored.\n\t   *\n\t   *     Follow {@link ng.$sce#resourceUrlPatternItem this link} for a description of the items\n\t   *     allowed in this array.\n\t   *\n\t   *     The typical usage for the blacklist is to **block\n\t   *     [open redirects](http://cwe.mitre.org/data/definitions/601.html)** served by your domain as\n\t   *     these would otherwise be trusted but actually return content from the redirected domain.\n\t   *\n\t   *     Finally, **the blacklist overrides the whitelist** and has the final say.\n\t   *\n\t   * @return {Array} the currently set blacklist array.\n\t   *\n\t   * The **default value** when no whitelist has been explicitly set is the empty array (i.e. there\n\t   * is no blacklist.)\n\t   *\n\t   * @description\n\t   * Sets/Gets the blacklist of trusted resource URLs.\n\t   */\n\n\t  this.resourceUrlBlacklist = function(value) {\n\t    if (arguments.length) {\n\t      resourceUrlBlacklist = adjustMatchers(value);\n\t    }\n\t    return resourceUrlBlacklist;\n\t  };\n\n\t  this.$get = ['$injector', function($injector) {\n\n\t    var htmlSanitizer = function htmlSanitizer(html) {\n\t      throw $sceMinErr('unsafe', 'Attempting to use an unsafe value in a safe context.');\n\t    };\n\n\t    if ($injector.has('$sanitize')) {\n\t      htmlSanitizer = $injector.get('$sanitize');\n\t    }\n\n\n\t    function matchUrl(matcher, parsedUrl) {\n\t      if (matcher === 'self') {\n\t        return urlIsSameOrigin(parsedUrl);\n\t      } else {\n\t        // definitely a regex.  See adjustMatchers()\n\t        return !!matcher.exec(parsedUrl.href);\n\t      }\n\t    }\n\n\t    function isResourceUrlAllowedByPolicy(url) {\n\t      var parsedUrl = urlResolve(url.toString());\n\t      var i, n, allowed = false;\n\t      // Ensure that at least one item from the whitelist allows this url.\n\t      for (i = 0, n = resourceUrlWhitelist.length; i < n; i++) {\n\t        if (matchUrl(resourceUrlWhitelist[i], parsedUrl)) {\n\t          allowed = true;\n\t          break;\n\t        }\n\t      }\n\t      if (allowed) {\n\t        // Ensure that no item from the blacklist blocked this url.\n\t        for (i = 0, n = resourceUrlBlacklist.length; i < n; i++) {\n\t          if (matchUrl(resourceUrlBlacklist[i], parsedUrl)) {\n\t            allowed = false;\n\t            break;\n\t          }\n\t        }\n\t      }\n\t      return allowed;\n\t    }\n\n\t    function generateHolderType(Base) {\n\t      var holderType = function TrustedValueHolderType(trustedValue) {\n\t        this.$$unwrapTrustedValue = function() {\n\t          return trustedValue;\n\t        };\n\t      };\n\t      if (Base) {\n\t        holderType.prototype = new Base();\n\t      }\n\t      holderType.prototype.valueOf = function sceValueOf() {\n\t        return this.$$unwrapTrustedValue();\n\t      };\n\t      holderType.prototype.toString = function sceToString() {\n\t        return this.$$unwrapTrustedValue().toString();\n\t      };\n\t      return holderType;\n\t    }\n\n\t    var trustedValueHolderBase = generateHolderType(),\n\t        byType = {};\n\n\t    byType[SCE_CONTEXTS.HTML] = generateHolderType(trustedValueHolderBase);\n\t    byType[SCE_CONTEXTS.CSS] = generateHolderType(trustedValueHolderBase);\n\t    byType[SCE_CONTEXTS.URL] = generateHolderType(trustedValueHolderBase);\n\t    byType[SCE_CONTEXTS.JS] = generateHolderType(trustedValueHolderBase);\n\t    byType[SCE_CONTEXTS.RESOURCE_URL] = generateHolderType(byType[SCE_CONTEXTS.URL]);\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sceDelegate#trustAs\n\t     *\n\t     * @description\n\t     * Returns an object that is trusted by angular for use in specified strict\n\t     * contextual escaping contexts (such as ng-bind-html, ng-include, any src\n\t     * attribute interpolation, any dom event binding attribute interpolation\n\t     * such as for onclick,  etc.) that uses the provided value.\n\t     * See {@link ng.$sce $sce} for enabling strict contextual escaping.\n\t     *\n\t     * @param {string} type The kind of context in which this value is safe for use.  e.g. url,\n\t     *   resourceUrl, html, js and css.\n\t     * @param {*} value The value that that should be considered trusted/safe.\n\t     * @returns {*} A value that can be used to stand in for the provided `value` in places\n\t     * where Angular expects a $sce.trustAs() return value.\n\t     */\n\t    function trustAs(type, trustedValue) {\n\t      var Constructor = (byType.hasOwnProperty(type) ? byType[type] : null);\n\t      if (!Constructor) {\n\t        throw $sceMinErr('icontext',\n\t            'Attempted to trust a value in invalid context. Context: {0}; Value: {1}',\n\t            type, trustedValue);\n\t      }\n\t      if (trustedValue === null || trustedValue === undefined || trustedValue === '') {\n\t        return trustedValue;\n\t      }\n\t      // All the current contexts in SCE_CONTEXTS happen to be strings.  In order to avoid trusting\n\t      // mutable objects, we ensure here that the value passed in is actually a string.\n\t      if (typeof trustedValue !== 'string') {\n\t        throw $sceMinErr('itype',\n\t            'Attempted to trust a non-string value in a content requiring a string: Context: {0}',\n\t            type);\n\t      }\n\t      return new Constructor(trustedValue);\n\t    }\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sceDelegate#valueOf\n\t     *\n\t     * @description\n\t     * If the passed parameter had been returned by a prior call to {@link ng.$sceDelegate#trustAs\n\t     * `$sceDelegate.trustAs`}, returns the value that had been passed to {@link\n\t     * ng.$sceDelegate#trustAs `$sceDelegate.trustAs`}.\n\t     *\n\t     * If the passed parameter is not a value that had been returned by {@link\n\t     * ng.$sceDelegate#trustAs `$sceDelegate.trustAs`}, returns it as-is.\n\t     *\n\t     * @param {*} value The result of a prior {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs`}\n\t     *      call or anything else.\n\t     * @returns {*} The `value` that was originally provided to {@link ng.$sceDelegate#trustAs\n\t     *     `$sceDelegate.trustAs`} if `value` is the result of such a call.  Otherwise, returns\n\t     *     `value` unchanged.\n\t     */\n\t    function valueOf(maybeTrusted) {\n\t      if (maybeTrusted instanceof trustedValueHolderBase) {\n\t        return maybeTrusted.$$unwrapTrustedValue();\n\t      } else {\n\t        return maybeTrusted;\n\t      }\n\t    }\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sceDelegate#getTrusted\n\t     *\n\t     * @description\n\t     * Takes the result of a {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs`} call and\n\t     * returns the originally supplied value if the queried context type is a supertype of the\n\t     * created type.  If this condition isn't satisfied, throws an exception.\n\t     *\n\t     * @param {string} type The kind of context in which this value is to be used.\n\t     * @param {*} maybeTrusted The result of a prior {@link ng.$sceDelegate#trustAs\n\t     *     `$sceDelegate.trustAs`} call.\n\t     * @returns {*} The value the was originally provided to {@link ng.$sceDelegate#trustAs\n\t     *     `$sceDelegate.trustAs`} if valid in this context.  Otherwise, throws an exception.\n\t     */\n\t    function getTrusted(type, maybeTrusted) {\n\t      if (maybeTrusted === null || maybeTrusted === undefined || maybeTrusted === '') {\n\t        return maybeTrusted;\n\t      }\n\t      var constructor = (byType.hasOwnProperty(type) ? byType[type] : null);\n\t      if (constructor && maybeTrusted instanceof constructor) {\n\t        return maybeTrusted.$$unwrapTrustedValue();\n\t      }\n\t      // If we get here, then we may only take one of two actions.\n\t      // 1. sanitize the value for the requested type, or\n\t      // 2. throw an exception.\n\t      if (type === SCE_CONTEXTS.RESOURCE_URL) {\n\t        if (isResourceUrlAllowedByPolicy(maybeTrusted)) {\n\t          return maybeTrusted;\n\t        } else {\n\t          throw $sceMinErr('insecurl',\n\t              'Blocked loading resource from url not allowed by $sceDelegate policy.  URL: {0}',\n\t              maybeTrusted.toString());\n\t        }\n\t      } else if (type === SCE_CONTEXTS.HTML) {\n\t        return htmlSanitizer(maybeTrusted);\n\t      }\n\t      throw $sceMinErr('unsafe', 'Attempting to use an unsafe value in a safe context.');\n\t    }\n\n\t    return { trustAs: trustAs,\n\t             getTrusted: getTrusted,\n\t             valueOf: valueOf };\n\t  }];\n\t}\n\n\n\t/**\n\t * @ngdoc provider\n\t * @name $sceProvider\n\t * @description\n\t *\n\t * The $sceProvider provider allows developers to configure the {@link ng.$sce $sce} service.\n\t * -   enable/disable Strict Contextual Escaping (SCE) in a module\n\t * -   override the default implementation with a custom delegate\n\t *\n\t * Read more about {@link ng.$sce Strict Contextual Escaping (SCE)}.\n\t */\n\n\t/* jshint maxlen: false*/\n\n\t/**\n\t * @ngdoc service\n\t * @name $sce\n\t * @kind function\n\t *\n\t * @description\n\t *\n\t * `$sce` is a service that provides Strict Contextual Escaping services to AngularJS.\n\t *\n\t * # Strict Contextual Escaping\n\t *\n\t * Strict Contextual Escaping (SCE) is a mode in which AngularJS requires bindings in certain\n\t * contexts to result in a value that is marked as safe to use for that context.  One example of\n\t * such a context is binding arbitrary html controlled by the user via `ng-bind-html`.  We refer\n\t * to these contexts as privileged or SCE contexts.\n\t *\n\t * As of version 1.2, Angular ships with SCE enabled by default.\n\t *\n\t * Note:  When enabled (the default), IE<11 in quirks mode is not supported.  In this mode, IE<11 allow\n\t * one to execute arbitrary javascript by the use of the expression() syntax.  Refer\n\t * <http://blogs.msdn.com/b/ie/archive/2008/10/16/ending-expressions.aspx> to learn more about them.\n\t * You can ensure your document is in standards mode and not quirks mode by adding `<!doctype html>`\n\t * to the top of your HTML document.\n\t *\n\t * SCE assists in writing code in way that (a) is secure by default and (b) makes auditing for\n\t * security vulnerabilities such as XSS, clickjacking, etc. a lot easier.\n\t *\n\t * Here's an example of a binding in a privileged context:\n\t *\n\t * ```\n\t * <input ng-model=\"userHtml\">\n\t * <div ng-bind-html=\"userHtml\"></div>\n\t * ```\n\t *\n\t * Notice that `ng-bind-html` is bound to `userHtml` controlled by the user.  With SCE\n\t * disabled, this application allows the user to render arbitrary HTML into the DIV.\n\t * In a more realistic example, one may be rendering user comments, blog articles, etc. via\n\t * bindings.  (HTML is just one example of a context where rendering user controlled input creates\n\t * security vulnerabilities.)\n\t *\n\t * For the case of HTML, you might use a library, either on the client side, or on the server side,\n\t * to sanitize unsafe HTML before binding to the value and rendering it in the document.\n\t *\n\t * How would you ensure that every place that used these types of bindings was bound to a value that\n\t * was sanitized by your library (or returned as safe for rendering by your server?)  How can you\n\t * ensure that you didn't accidentally delete the line that sanitized the value, or renamed some\n\t * properties/fields and forgot to update the binding to the sanitized value?\n\t *\n\t * To be secure by default, you want to ensure that any such bindings are disallowed unless you can\n\t * determine that something explicitly says it's safe to use a value for binding in that\n\t * context.  You can then audit your code (a simple grep would do) to ensure that this is only done\n\t * for those values that you can easily tell are safe - because they were received from your server,\n\t * sanitized by your library, etc.  You can organize your codebase to help with this - perhaps\n\t * allowing only the files in a specific directory to do this.  Ensuring that the internal API\n\t * exposed by that code doesn't markup arbitrary values as safe then becomes a more manageable task.\n\t *\n\t * In the case of AngularJS' SCE service, one uses {@link ng.$sce#trustAs $sce.trustAs}\n\t * (and shorthand methods such as {@link ng.$sce#trustAsHtml $sce.trustAsHtml}, etc.) to\n\t * obtain values that will be accepted by SCE / privileged contexts.\n\t *\n\t *\n\t * ## How does it work?\n\t *\n\t * In privileged contexts, directives and code will bind to the result of {@link ng.$sce#getTrusted\n\t * $sce.getTrusted(context, value)} rather than to the value directly.  Directives use {@link\n\t * ng.$sce#parseAs $sce.parseAs} rather than `$parse` to watch attribute bindings, which performs the\n\t * {@link ng.$sce#getTrusted $sce.getTrusted} behind the scenes on non-constant literals.\n\t *\n\t * As an example, {@link ng.directive:ngBindHtml ngBindHtml} uses {@link\n\t * ng.$sce#parseAsHtml $sce.parseAsHtml(binding expression)}.  Here's the actual code (slightly\n\t * simplified):\n\t *\n\t * ```\n\t * var ngBindHtmlDirective = ['$sce', function($sce) {\n\t *   return function(scope, element, attr) {\n\t *     scope.$watch($sce.parseAsHtml(attr.ngBindHtml), function(value) {\n\t *       element.html(value || '');\n\t *     });\n\t *   };\n\t * }];\n\t * ```\n\t *\n\t * ## Impact on loading templates\n\t *\n\t * This applies both to the {@link ng.directive:ngInclude `ng-include`} directive as well as\n\t * `templateUrl`'s specified by {@link guide/directive directives}.\n\t *\n\t * By default, Angular only loads templates from the same domain and protocol as the application\n\t * document.  This is done by calling {@link ng.$sce#getTrustedResourceUrl\n\t * $sce.getTrustedResourceUrl} on the template URL.  To load templates from other domains and/or\n\t * protocols, you may either either {@link ng.$sceDelegateProvider#resourceUrlWhitelist whitelist\n\t * them} or {@link ng.$sce#trustAsResourceUrl wrap it} into a trusted value.\n\t *\n\t * *Please note*:\n\t * The browser's\n\t * [Same Origin Policy](https://code.google.com/p/browsersec/wiki/Part2#Same-origin_policy_for_XMLHttpRequest)\n\t * and [Cross-Origin Resource Sharing (CORS)](http://www.w3.org/TR/cors/)\n\t * policy apply in addition to this and may further restrict whether the template is successfully\n\t * loaded.  This means that without the right CORS policy, loading templates from a different domain\n\t * won't work on all browsers.  Also, loading templates from `file://` URL does not work on some\n\t * browsers.\n\t *\n\t * ## This feels like too much overhead\n\t *\n\t * It's important to remember that SCE only applies to interpolation expressions.\n\t *\n\t * If your expressions are constant literals, they're automatically trusted and you don't need to\n\t * call `$sce.trustAs` on them (remember to include the `ngSanitize` module) (e.g.\n\t * `<div ng-bind-html=\"'<b>implicitly trusted</b>'\"></div>`) just works.\n\t *\n\t * Additionally, `a[href]` and `img[src]` automatically sanitize their URLs and do not pass them\n\t * through {@link ng.$sce#getTrusted $sce.getTrusted}.  SCE doesn't play a role here.\n\t *\n\t * The included {@link ng.$sceDelegate $sceDelegate} comes with sane defaults to allow you to load\n\t * templates in `ng-include` from your application's domain without having to even know about SCE.\n\t * It blocks loading templates from other domains or loading templates over http from an https\n\t * served document.  You can change these by setting your own custom {@link\n\t * ng.$sceDelegateProvider#resourceUrlWhitelist whitelists} and {@link\n\t * ng.$sceDelegateProvider#resourceUrlBlacklist blacklists} for matching such URLs.\n\t *\n\t * This significantly reduces the overhead.  It is far easier to pay the small overhead and have an\n\t * application that's secure and can be audited to verify that with much more ease than bolting\n\t * security onto an application later.\n\t *\n\t * <a name=\"contexts\"></a>\n\t * ## What trusted context types are supported?\n\t *\n\t * | Context             | Notes          |\n\t * |---------------------|----------------|\n\t * | `$sce.HTML`         | For HTML that's safe to source into the application.  The {@link ng.directive:ngBindHtml ngBindHtml} directive uses this context for bindings. If an unsafe value is encountered and the {@link ngSanitize $sanitize} module is present this will sanitize the value instead of throwing an error. |\n\t * | `$sce.CSS`          | For CSS that's safe to source into the application.  Currently unused.  Feel free to use it in your own directives. |\n\t * | `$sce.URL`          | For URLs that are safe to follow as links.  Currently unused (`<a href=` and `<img src=` sanitize their urls and don't constitute an SCE context. |\n\t * | `$sce.RESOURCE_URL` | For URLs that are not only safe to follow as links, but whose contents are also safe to include in your application.  Examples include `ng-include`, `src` / `ngSrc` bindings for tags other than `IMG` (e.g. `IFRAME`, `OBJECT`, etc.)  <br><br>Note that `$sce.RESOURCE_URL` makes a stronger statement about the URL than `$sce.URL` does and therefore contexts requiring values trusted for `$sce.RESOURCE_URL` can be used anywhere that values trusted for `$sce.URL` are required. |\n\t * | `$sce.JS`           | For JavaScript that is safe to execute in your application's context.  Currently unused.  Feel free to use it in your own directives. |\n\t *\n\t * ## Format of items in {@link ng.$sceDelegateProvider#resourceUrlWhitelist resourceUrlWhitelist}/{@link ng.$sceDelegateProvider#resourceUrlBlacklist Blacklist} <a name=\"resourceUrlPatternItem\"></a>\n\t *\n\t *  Each element in these arrays must be one of the following:\n\t *\n\t *  - **'self'**\n\t *    - The special **string**, `'self'`, can be used to match against all URLs of the **same\n\t *      domain** as the application document using the **same protocol**.\n\t *  - **String** (except the special value `'self'`)\n\t *    - The string is matched against the full *normalized / absolute URL* of the resource\n\t *      being tested (substring matches are not good enough.)\n\t *    - There are exactly **two wildcard sequences** - `*` and `**`.  All other characters\n\t *      match themselves.\n\t *    - `*`: matches zero or more occurrences of any character other than one of the following 6\n\t *      characters: '`:`', '`/`', '`.`', '`?`', '`&`' and ';'.  It's a useful wildcard for use\n\t *      in a whitelist.\n\t *    - `**`: matches zero or more occurrences of *any* character.  As such, it's not\n\t *      not appropriate to use in for a scheme, domain, etc. as it would match too much.  (e.g.\n\t *      http://**.example.com/ would match http://evil.com/?ignore=.example.com/ and that might\n\t *      not have been the intention.)  Its usage at the very end of the path is ok.  (e.g.\n\t *      http://foo.example.com/templates/**).\n\t *  - **RegExp** (*see caveat below*)\n\t *    - *Caveat*:  While regular expressions are powerful and offer great flexibility,  their syntax\n\t *      (and all the inevitable escaping) makes them *harder to maintain*.  It's easy to\n\t *      accidentally introduce a bug when one updates a complex expression (imho, all regexes should\n\t *      have good test coverage.).  For instance, the use of `.` in the regex is correct only in a\n\t *      small number of cases.  A `.` character in the regex used when matching the scheme or a\n\t *      subdomain could be matched against a `:` or literal `.` that was likely not intended.   It\n\t *      is highly recommended to use the string patterns and only fall back to regular expressions\n\t *      if they as a last resort.\n\t *    - The regular expression must be an instance of RegExp (i.e. not a string.)  It is\n\t *      matched against the **entire** *normalized / absolute URL* of the resource being tested\n\t *      (even when the RegExp did not have the `^` and `$` codes.)  In addition, any flags\n\t *      present on the RegExp (such as multiline, global, ignoreCase) are ignored.\n\t *    - If you are generating your JavaScript from some other templating engine (not\n\t *      recommended, e.g. in issue [#4006](https://github.com/angular/angular.js/issues/4006)),\n\t *      remember to escape your regular expression (and be aware that you might need more than\n\t *      one level of escaping depending on your templating engine and the way you interpolated\n\t *      the value.)  Do make use of your platform's escaping mechanism as it might be good\n\t *      enough before coding your own.  e.g. Ruby has\n\t *      [Regexp.escape(str)](http://www.ruby-doc.org/core-2.0.0/Regexp.html#method-c-escape)\n\t *      and Python has [re.escape](http://docs.python.org/library/re.html#re.escape).\n\t *      Javascript lacks a similar built in function for escaping.  Take a look at Google\n\t *      Closure library's [goog.string.regExpEscape(s)](\n\t *      http://docs.closure-library.googlecode.com/git/closure_goog_string_string.js.source.html#line962).\n\t *\n\t * Refer {@link ng.$sceDelegateProvider $sceDelegateProvider} for an example.\n\t *\n\t * ## Show me an example using SCE.\n\t *\n\t * <example module=\"mySceApp\" deps=\"angular-sanitize.js\">\n\t * <file name=\"index.html\">\n\t *   <div ng-controller=\"AppController as myCtrl\">\n\t *     <i ng-bind-html=\"myCtrl.explicitlyTrustedHtml\" id=\"explicitlyTrustedHtml\"></i><br><br>\n\t *     <b>User comments</b><br>\n\t *     By default, HTML that isn't explicitly trusted (e.g. Alice's comment) is sanitized when\n\t *     $sanitize is available.  If $sanitize isn't available, this results in an error instead of an\n\t *     exploit.\n\t *     <div class=\"well\">\n\t *       <div ng-repeat=\"userComment in myCtrl.userComments\">\n\t *         <b>{{userComment.name}}</b>:\n\t *         <span ng-bind-html=\"userComment.htmlComment\" class=\"htmlComment\"></span>\n\t *         <br>\n\t *       </div>\n\t *     </div>\n\t *   </div>\n\t * </file>\n\t *\n\t * <file name=\"script.js\">\n\t *   angular.module('mySceApp', ['ngSanitize'])\n\t *     .controller('AppController', ['$http', '$templateCache', '$sce',\n\t *       function($http, $templateCache, $sce) {\n\t *         var self = this;\n\t *         $http.get(\"test_data.json\", {cache: $templateCache}).success(function(userComments) {\n\t *           self.userComments = userComments;\n\t *         });\n\t *         self.explicitlyTrustedHtml = $sce.trustAsHtml(\n\t *             '<span onmouseover=\"this.textContent=&quot;Explicitly trusted HTML bypasses ' +\n\t *             'sanitization.&quot;\">Hover over this text.</span>');\n\t *       }]);\n\t * </file>\n\t *\n\t * <file name=\"test_data.json\">\n\t * [\n\t *   { \"name\": \"Alice\",\n\t *     \"htmlComment\":\n\t *         \"<span onmouseover='this.textContent=\\\"PWN3D!\\\"'>Is <i>anyone</i> reading this?</span>\"\n\t *   },\n\t *   { \"name\": \"Bob\",\n\t *     \"htmlComment\": \"<i>Yes!</i>  Am I the only other one?\"\n\t *   }\n\t * ]\n\t * </file>\n\t *\n\t * <file name=\"protractor.js\" type=\"protractor\">\n\t *   describe('SCE doc demo', function() {\n\t *     it('should sanitize untrusted values', function() {\n\t *       expect(element.all(by.css('.htmlComment')).first().getInnerHtml())\n\t *           .toBe('<span>Is <i>anyone</i> reading this?</span>');\n\t *     });\n\t *\n\t *     it('should NOT sanitize explicitly trusted values', function() {\n\t *       expect(element(by.id('explicitlyTrustedHtml')).getInnerHtml()).toBe(\n\t *           '<span onmouseover=\"this.textContent=&quot;Explicitly trusted HTML bypasses ' +\n\t *           'sanitization.&quot;\">Hover over this text.</span>');\n\t *     });\n\t *   });\n\t * </file>\n\t * </example>\n\t *\n\t *\n\t *\n\t * ## Can I disable SCE completely?\n\t *\n\t * Yes, you can.  However, this is strongly discouraged.  SCE gives you a lot of security benefits\n\t * for little coding overhead.  It will be much harder to take an SCE disabled application and\n\t * either secure it on your own or enable SCE at a later stage.  It might make sense to disable SCE\n\t * for cases where you have a lot of existing code that was written before SCE was introduced and\n\t * you're migrating them a module at a time.\n\t *\n\t * That said, here's how you can completely disable SCE:\n\t *\n\t * ```\n\t * angular.module('myAppWithSceDisabledmyApp', []).config(function($sceProvider) {\n\t *   // Completely disable SCE.  For demonstration purposes only!\n\t *   // Do not use in new projects.\n\t *   $sceProvider.enabled(false);\n\t * });\n\t * ```\n\t *\n\t */\n\t/* jshint maxlen: 100 */\n\n\tfunction $SceProvider() {\n\t  var enabled = true;\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $sceProvider#enabled\n\t   * @kind function\n\t   *\n\t   * @param {boolean=} value If provided, then enables/disables SCE.\n\t   * @return {boolean} true if SCE is enabled, false otherwise.\n\t   *\n\t   * @description\n\t   * Enables/disables SCE and returns the current value.\n\t   */\n\t  this.enabled = function(value) {\n\t    if (arguments.length) {\n\t      enabled = !!value;\n\t    }\n\t    return enabled;\n\t  };\n\n\n\t  /* Design notes on the default implementation for SCE.\n\t   *\n\t   * The API contract for the SCE delegate\n\t   * -------------------------------------\n\t   * The SCE delegate object must provide the following 3 methods:\n\t   *\n\t   * - trustAs(contextEnum, value)\n\t   *     This method is used to tell the SCE service that the provided value is OK to use in the\n\t   *     contexts specified by contextEnum.  It must return an object that will be accepted by\n\t   *     getTrusted() for a compatible contextEnum and return this value.\n\t   *\n\t   * - valueOf(value)\n\t   *     For values that were not produced by trustAs(), return them as is.  For values that were\n\t   *     produced by trustAs(), return the corresponding input value to trustAs.  Basically, if\n\t   *     trustAs is wrapping the given values into some type, this operation unwraps it when given\n\t   *     such a value.\n\t   *\n\t   * - getTrusted(contextEnum, value)\n\t   *     This function should return the a value that is safe to use in the context specified by\n\t   *     contextEnum or throw and exception otherwise.\n\t   *\n\t   * NOTE: This contract deliberately does NOT state that values returned by trustAs() must be\n\t   * opaque or wrapped in some holder object.  That happens to be an implementation detail.  For\n\t   * instance, an implementation could maintain a registry of all trusted objects by context.  In\n\t   * such a case, trustAs() would return the same object that was passed in.  getTrusted() would\n\t   * return the same object passed in if it was found in the registry under a compatible context or\n\t   * throw an exception otherwise.  An implementation might only wrap values some of the time based\n\t   * on some criteria.  getTrusted() might return a value and not throw an exception for special\n\t   * constants or objects even if not wrapped.  All such implementations fulfill this contract.\n\t   *\n\t   *\n\t   * A note on the inheritance model for SCE contexts\n\t   * ------------------------------------------------\n\t   * I've used inheritance and made RESOURCE_URL wrapped types a subtype of URL wrapped types.  This\n\t   * is purely an implementation details.\n\t   *\n\t   * The contract is simply this:\n\t   *\n\t   *     getTrusted($sce.RESOURCE_URL, value) succeeding implies that getTrusted($sce.URL, value)\n\t   *     will also succeed.\n\t   *\n\t   * Inheritance happens to capture this in a natural way.  In some future, we\n\t   * may not use inheritance anymore.  That is OK because no code outside of\n\t   * sce.js and sceSpecs.js would need to be aware of this detail.\n\t   */\n\n\t  this.$get = ['$parse', '$sceDelegate', function(\n\t                $parse,   $sceDelegate) {\n\t    // Prereq: Ensure that we're not running in IE<11 quirks mode.  In that mode, IE < 11 allow\n\t    // the \"expression(javascript expression)\" syntax which is insecure.\n\t    if (enabled && msie < 8) {\n\t      throw $sceMinErr('iequirks',\n\t        'Strict Contextual Escaping does not support Internet Explorer version < 11 in quirks ' +\n\t        'mode.  You can fix this by adding the text <!doctype html> to the top of your HTML ' +\n\t        'document.  See http://docs.angularjs.org/api/ng.$sce for more information.');\n\t    }\n\n\t    var sce = shallowCopy(SCE_CONTEXTS);\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sce#isEnabled\n\t     * @kind function\n\t     *\n\t     * @return {Boolean} true if SCE is enabled, false otherwise.  If you want to set the value, you\n\t     * have to do it at module config time on {@link ng.$sceProvider $sceProvider}.\n\t     *\n\t     * @description\n\t     * Returns a boolean indicating if SCE is enabled.\n\t     */\n\t    sce.isEnabled = function() {\n\t      return enabled;\n\t    };\n\t    sce.trustAs = $sceDelegate.trustAs;\n\t    sce.getTrusted = $sceDelegate.getTrusted;\n\t    sce.valueOf = $sceDelegate.valueOf;\n\n\t    if (!enabled) {\n\t      sce.trustAs = sce.getTrusted = function(type, value) { return value; };\n\t      sce.valueOf = identity;\n\t    }\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sce#parseAs\n\t     *\n\t     * @description\n\t     * Converts Angular {@link guide/expression expression} into a function.  This is like {@link\n\t     * ng.$parse $parse} and is identical when the expression is a literal constant.  Otherwise, it\n\t     * wraps the expression in a call to {@link ng.$sce#getTrusted $sce.getTrusted(*type*,\n\t     * *result*)}\n\t     *\n\t     * @param {string} type The kind of SCE context in which this result will be used.\n\t     * @param {string} expression String expression to compile.\n\t     * @returns {function(context, locals)} a function which represents the compiled expression:\n\t     *\n\t     *    * `context` – `{object}` – an object against which any expressions embedded in the strings\n\t     *      are evaluated against (typically a scope object).\n\t     *    * `locals` – `{object=}` – local variables context object, useful for overriding values in\n\t     *      `context`.\n\t     */\n\t    sce.parseAs = function sceParseAs(type, expr) {\n\t      var parsed = $parse(expr);\n\t      if (parsed.literal && parsed.constant) {\n\t        return parsed;\n\t      } else {\n\t        return $parse(expr, function(value) {\n\t          return sce.getTrusted(type, value);\n\t        });\n\t      }\n\t    };\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sce#trustAs\n\t     *\n\t     * @description\n\t     * Delegates to {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs`}.  As such,\n\t     * returns an object that is trusted by angular for use in specified strict contextual\n\t     * escaping contexts (such as ng-bind-html, ng-include, any src attribute\n\t     * interpolation, any dom event binding attribute interpolation such as for onclick,  etc.)\n\t     * that uses the provided value.  See * {@link ng.$sce $sce} for enabling strict contextual\n\t     * escaping.\n\t     *\n\t     * @param {string} type The kind of context in which this value is safe for use.  e.g. url,\n\t     *   resource_url, html, js and css.\n\t     * @param {*} value The value that that should be considered trusted/safe.\n\t     * @returns {*} A value that can be used to stand in for the provided `value` in places\n\t     * where Angular expects a $sce.trustAs() return value.\n\t     */\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sce#trustAsHtml\n\t     *\n\t     * @description\n\t     * Shorthand method.  `$sce.trustAsHtml(value)` →\n\t     *     {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs($sce.HTML, value)`}\n\t     *\n\t     * @param {*} value The value to trustAs.\n\t     * @returns {*} An object that can be passed to {@link ng.$sce#getTrustedHtml\n\t     *     $sce.getTrustedHtml(value)} to obtain the original value.  (privileged directives\n\t     *     only accept expressions that are either literal constants or are the\n\t     *     return value of {@link ng.$sce#trustAs $sce.trustAs}.)\n\t     */\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sce#trustAsUrl\n\t     *\n\t     * @description\n\t     * Shorthand method.  `$sce.trustAsUrl(value)` →\n\t     *     {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs($sce.URL, value)`}\n\t     *\n\t     * @param {*} value The value to trustAs.\n\t     * @returns {*} An object that can be passed to {@link ng.$sce#getTrustedUrl\n\t     *     $sce.getTrustedUrl(value)} to obtain the original value.  (privileged directives\n\t     *     only accept expressions that are either literal constants or are the\n\t     *     return value of {@link ng.$sce#trustAs $sce.trustAs}.)\n\t     */\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sce#trustAsResourceUrl\n\t     *\n\t     * @description\n\t     * Shorthand method.  `$sce.trustAsResourceUrl(value)` →\n\t     *     {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs($sce.RESOURCE_URL, value)`}\n\t     *\n\t     * @param {*} value The value to trustAs.\n\t     * @returns {*} An object that can be passed to {@link ng.$sce#getTrustedResourceUrl\n\t     *     $sce.getTrustedResourceUrl(value)} to obtain the original value.  (privileged directives\n\t     *     only accept expressions that are either literal constants or are the return\n\t     *     value of {@link ng.$sce#trustAs $sce.trustAs}.)\n\t     */\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sce#trustAsJs\n\t     *\n\t     * @description\n\t     * Shorthand method.  `$sce.trustAsJs(value)` →\n\t     *     {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs($sce.JS, value)`}\n\t     *\n\t     * @param {*} value The value to trustAs.\n\t     * @returns {*} An object that can be passed to {@link ng.$sce#getTrustedJs\n\t     *     $sce.getTrustedJs(value)} to obtain the original value.  (privileged directives\n\t     *     only accept expressions that are either literal constants or are the\n\t     *     return value of {@link ng.$sce#trustAs $sce.trustAs}.)\n\t     */\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sce#getTrusted\n\t     *\n\t     * @description\n\t     * Delegates to {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted`}.  As such,\n\t     * takes the result of a {@link ng.$sce#trustAs `$sce.trustAs`}() call and returns the\n\t     * originally supplied value if the queried context type is a supertype of the created type.\n\t     * If this condition isn't satisfied, throws an exception.\n\t     *\n\t     * @param {string} type The kind of context in which this value is to be used.\n\t     * @param {*} maybeTrusted The result of a prior {@link ng.$sce#trustAs `$sce.trustAs`}\n\t     *                         call.\n\t     * @returns {*} The value the was originally provided to\n\t     *              {@link ng.$sce#trustAs `$sce.trustAs`} if valid in this context.\n\t     *              Otherwise, throws an exception.\n\t     */\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sce#getTrustedHtml\n\t     *\n\t     * @description\n\t     * Shorthand method.  `$sce.getTrustedHtml(value)` →\n\t     *     {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.HTML, value)`}\n\t     *\n\t     * @param {*} value The value to pass to `$sce.getTrusted`.\n\t     * @returns {*} The return value of `$sce.getTrusted($sce.HTML, value)`\n\t     */\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sce#getTrustedCss\n\t     *\n\t     * @description\n\t     * Shorthand method.  `$sce.getTrustedCss(value)` →\n\t     *     {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.CSS, value)`}\n\t     *\n\t     * @param {*} value The value to pass to `$sce.getTrusted`.\n\t     * @returns {*} The return value of `$sce.getTrusted($sce.CSS, value)`\n\t     */\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sce#getTrustedUrl\n\t     *\n\t     * @description\n\t     * Shorthand method.  `$sce.getTrustedUrl(value)` →\n\t     *     {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.URL, value)`}\n\t     *\n\t     * @param {*} value The value to pass to `$sce.getTrusted`.\n\t     * @returns {*} The return value of `$sce.getTrusted($sce.URL, value)`\n\t     */\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sce#getTrustedResourceUrl\n\t     *\n\t     * @description\n\t     * Shorthand method.  `$sce.getTrustedResourceUrl(value)` →\n\t     *     {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.RESOURCE_URL, value)`}\n\t     *\n\t     * @param {*} value The value to pass to `$sceDelegate.getTrusted`.\n\t     * @returns {*} The return value of `$sce.getTrusted($sce.RESOURCE_URL, value)`\n\t     */\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sce#getTrustedJs\n\t     *\n\t     * @description\n\t     * Shorthand method.  `$sce.getTrustedJs(value)` →\n\t     *     {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.JS, value)`}\n\t     *\n\t     * @param {*} value The value to pass to `$sce.getTrusted`.\n\t     * @returns {*} The return value of `$sce.getTrusted($sce.JS, value)`\n\t     */\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sce#parseAsHtml\n\t     *\n\t     * @description\n\t     * Shorthand method.  `$sce.parseAsHtml(expression string)` →\n\t     *     {@link ng.$sce#parseAs `$sce.parseAs($sce.HTML, value)`}\n\t     *\n\t     * @param {string} expression String expression to compile.\n\t     * @returns {function(context, locals)} a function which represents the compiled expression:\n\t     *\n\t     *    * `context` – `{object}` – an object against which any expressions embedded in the strings\n\t     *      are evaluated against (typically a scope object).\n\t     *    * `locals` – `{object=}` – local variables context object, useful for overriding values in\n\t     *      `context`.\n\t     */\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sce#parseAsCss\n\t     *\n\t     * @description\n\t     * Shorthand method.  `$sce.parseAsCss(value)` →\n\t     *     {@link ng.$sce#parseAs `$sce.parseAs($sce.CSS, value)`}\n\t     *\n\t     * @param {string} expression String expression to compile.\n\t     * @returns {function(context, locals)} a function which represents the compiled expression:\n\t     *\n\t     *    * `context` – `{object}` – an object against which any expressions embedded in the strings\n\t     *      are evaluated against (typically a scope object).\n\t     *    * `locals` – `{object=}` – local variables context object, useful for overriding values in\n\t     *      `context`.\n\t     */\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sce#parseAsUrl\n\t     *\n\t     * @description\n\t     * Shorthand method.  `$sce.parseAsUrl(value)` →\n\t     *     {@link ng.$sce#parseAs `$sce.parseAs($sce.URL, value)`}\n\t     *\n\t     * @param {string} expression String expression to compile.\n\t     * @returns {function(context, locals)} a function which represents the compiled expression:\n\t     *\n\t     *    * `context` – `{object}` – an object against which any expressions embedded in the strings\n\t     *      are evaluated against (typically a scope object).\n\t     *    * `locals` – `{object=}` – local variables context object, useful for overriding values in\n\t     *      `context`.\n\t     */\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sce#parseAsResourceUrl\n\t     *\n\t     * @description\n\t     * Shorthand method.  `$sce.parseAsResourceUrl(value)` →\n\t     *     {@link ng.$sce#parseAs `$sce.parseAs($sce.RESOURCE_URL, value)`}\n\t     *\n\t     * @param {string} expression String expression to compile.\n\t     * @returns {function(context, locals)} a function which represents the compiled expression:\n\t     *\n\t     *    * `context` – `{object}` – an object against which any expressions embedded in the strings\n\t     *      are evaluated against (typically a scope object).\n\t     *    * `locals` – `{object=}` – local variables context object, useful for overriding values in\n\t     *      `context`.\n\t     */\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sce#parseAsJs\n\t     *\n\t     * @description\n\t     * Shorthand method.  `$sce.parseAsJs(value)` →\n\t     *     {@link ng.$sce#parseAs `$sce.parseAs($sce.JS, value)`}\n\t     *\n\t     * @param {string} expression String expression to compile.\n\t     * @returns {function(context, locals)} a function which represents the compiled expression:\n\t     *\n\t     *    * `context` – `{object}` – an object against which any expressions embedded in the strings\n\t     *      are evaluated against (typically a scope object).\n\t     *    * `locals` – `{object=}` – local variables context object, useful for overriding values in\n\t     *      `context`.\n\t     */\n\n\t    // Shorthand delegations.\n\t    var parse = sce.parseAs,\n\t        getTrusted = sce.getTrusted,\n\t        trustAs = sce.trustAs;\n\n\t    forEach(SCE_CONTEXTS, function(enumValue, name) {\n\t      var lName = lowercase(name);\n\t      sce[camelCase(\"parse_as_\" + lName)] = function(expr) {\n\t        return parse(enumValue, expr);\n\t      };\n\t      sce[camelCase(\"get_trusted_\" + lName)] = function(value) {\n\t        return getTrusted(enumValue, value);\n\t      };\n\t      sce[camelCase(\"trust_as_\" + lName)] = function(value) {\n\t        return trustAs(enumValue, value);\n\t      };\n\t    });\n\n\t    return sce;\n\t  }];\n\t}\n\n\t/**\n\t * !!! This is an undocumented \"private\" service !!!\n\t *\n\t * @name $sniffer\n\t * @requires $window\n\t * @requires $document\n\t *\n\t * @property {boolean} history Does the browser support html5 history api ?\n\t * @property {boolean} transitions Does the browser support CSS transition events ?\n\t * @property {boolean} animations Does the browser support CSS animation events ?\n\t *\n\t * @description\n\t * This is very simple implementation of testing browser's features.\n\t */\n\tfunction $SnifferProvider() {\n\t  this.$get = ['$window', '$document', function($window, $document) {\n\t    var eventSupport = {},\n\t        android =\n\t          int((/android (\\d+)/.exec(lowercase(($window.navigator || {}).userAgent)) || [])[1]),\n\t        boxee = /Boxee/i.test(($window.navigator || {}).userAgent),\n\t        document = $document[0] || {},\n\t        vendorPrefix,\n\t        vendorRegex = /^(Moz|webkit|ms)(?=[A-Z])/,\n\t        bodyStyle = document.body && document.body.style,\n\t        transitions = false,\n\t        animations = false,\n\t        match;\n\n\t    if (bodyStyle) {\n\t      for (var prop in bodyStyle) {\n\t        if (match = vendorRegex.exec(prop)) {\n\t          vendorPrefix = match[0];\n\t          vendorPrefix = vendorPrefix.substr(0, 1).toUpperCase() + vendorPrefix.substr(1);\n\t          break;\n\t        }\n\t      }\n\n\t      if (!vendorPrefix) {\n\t        vendorPrefix = ('WebkitOpacity' in bodyStyle) && 'webkit';\n\t      }\n\n\t      transitions = !!(('transition' in bodyStyle) || (vendorPrefix + 'Transition' in bodyStyle));\n\t      animations  = !!(('animation' in bodyStyle) || (vendorPrefix + 'Animation' in bodyStyle));\n\n\t      if (android && (!transitions ||  !animations)) {\n\t        transitions = isString(document.body.style.webkitTransition);\n\t        animations = isString(document.body.style.webkitAnimation);\n\t      }\n\t    }\n\n\n\t    return {\n\t      // Android has history.pushState, but it does not update location correctly\n\t      // so let's not use the history API at all.\n\t      // http://code.google.com/p/android/issues/detail?id=17471\n\t      // https://github.com/angular/angular.js/issues/904\n\n\t      // older webkit browser (533.9) on Boxee box has exactly the same problem as Android has\n\t      // so let's not use the history API also\n\t      // We are purposefully using `!(android < 4)` to cover the case when `android` is undefined\n\t      // jshint -W018\n\t      history: !!($window.history && $window.history.pushState && !(android < 4) && !boxee),\n\t      // jshint +W018\n\t      hasEvent: function(event) {\n\t        // IE9 implements 'input' event it's so fubared that we rather pretend that it doesn't have\n\t        // it. In particular the event is not fired when backspace or delete key are pressed or\n\t        // when cut operation is performed.\n\t        // IE10+ implements 'input' event but it erroneously fires under various situations,\n\t        // e.g. when placeholder changes, or a form is focused.\n\t        if (event === 'input' && msie <= 11) return false;\n\n\t        if (isUndefined(eventSupport[event])) {\n\t          var divElm = document.createElement('div');\n\t          eventSupport[event] = 'on' + event in divElm;\n\t        }\n\n\t        return eventSupport[event];\n\t      },\n\t      csp: csp(),\n\t      vendorPrefix: vendorPrefix,\n\t      transitions: transitions,\n\t      animations: animations,\n\t      android: android\n\t    };\n\t  }];\n\t}\n\n\tvar $compileMinErr = minErr('$compile');\n\n\t/**\n\t * @ngdoc service\n\t * @name $templateRequest\n\t *\n\t * @description\n\t * The `$templateRequest` service downloads the provided template using `$http` and, upon success,\n\t * stores the contents inside of `$templateCache`. If the HTTP request fails or the response data\n\t * of the HTTP request is empty, a `$compile` error will be thrown (the exception can be thwarted\n\t * by setting the 2nd parameter of the function to true).\n\t *\n\t * @param {string} tpl The HTTP request template URL\n\t * @param {boolean=} ignoreRequestError Whether or not to ignore the exception when the request fails or the template is empty\n\t *\n\t * @return {Promise} the HTTP Promise for the given.\n\t *\n\t * @property {number} totalPendingRequests total amount of pending template requests being downloaded.\n\t */\n\tfunction $TemplateRequestProvider() {\n\t  this.$get = ['$templateCache', '$http', '$q', function($templateCache, $http, $q) {\n\t    function handleRequestFn(tpl, ignoreRequestError) {\n\t      handleRequestFn.totalPendingRequests++;\n\n\t      var transformResponse = $http.defaults && $http.defaults.transformResponse;\n\n\t      if (isArray(transformResponse)) {\n\t        transformResponse = transformResponse.filter(function(transformer) {\n\t          return transformer !== defaultHttpResponseTransform;\n\t        });\n\t      } else if (transformResponse === defaultHttpResponseTransform) {\n\t        transformResponse = null;\n\t      }\n\n\t      var httpOptions = {\n\t        cache: $templateCache,\n\t        transformResponse: transformResponse\n\t      };\n\n\t      return $http.get(tpl, httpOptions)\n\t        ['finally'](function() {\n\t          handleRequestFn.totalPendingRequests--;\n\t        })\n\t        .then(function(response) {\n\t          return response.data;\n\t        }, handleError);\n\n\t      function handleError(resp) {\n\t        if (!ignoreRequestError) {\n\t          throw $compileMinErr('tpload', 'Failed to load template: {0}', tpl);\n\t        }\n\t        return $q.reject(resp);\n\t      }\n\t    }\n\n\t    handleRequestFn.totalPendingRequests = 0;\n\n\t    return handleRequestFn;\n\t  }];\n\t}\n\n\tfunction $$TestabilityProvider() {\n\t  this.$get = ['$rootScope', '$browser', '$location',\n\t       function($rootScope,   $browser,   $location) {\n\n\t    /**\n\t     * @name $testability\n\t     *\n\t     * @description\n\t     * The private $$testability service provides a collection of methods for use when debugging\n\t     * or by automated test and debugging tools.\n\t     */\n\t    var testability = {};\n\n\t    /**\n\t     * @name $$testability#findBindings\n\t     *\n\t     * @description\n\t     * Returns an array of elements that are bound (via ng-bind or {{}})\n\t     * to expressions matching the input.\n\t     *\n\t     * @param {Element} element The element root to search from.\n\t     * @param {string} expression The binding expression to match.\n\t     * @param {boolean} opt_exactMatch If true, only returns exact matches\n\t     *     for the expression. Filters and whitespace are ignored.\n\t     */\n\t    testability.findBindings = function(element, expression, opt_exactMatch) {\n\t      var bindings = element.getElementsByClassName('ng-binding');\n\t      var matches = [];\n\t      forEach(bindings, function(binding) {\n\t        var dataBinding = angular.element(binding).data('$binding');\n\t        if (dataBinding) {\n\t          forEach(dataBinding, function(bindingName) {\n\t            if (opt_exactMatch) {\n\t              var matcher = new RegExp('(^|\\\\s)' + escapeForRegexp(expression) + '(\\\\s|\\\\||$)');\n\t              if (matcher.test(bindingName)) {\n\t                matches.push(binding);\n\t              }\n\t            } else {\n\t              if (bindingName.indexOf(expression) != -1) {\n\t                matches.push(binding);\n\t              }\n\t            }\n\t          });\n\t        }\n\t      });\n\t      return matches;\n\t    };\n\n\t    /**\n\t     * @name $$testability#findModels\n\t     *\n\t     * @description\n\t     * Returns an array of elements that are two-way found via ng-model to\n\t     * expressions matching the input.\n\t     *\n\t     * @param {Element} element The element root to search from.\n\t     * @param {string} expression The model expression to match.\n\t     * @param {boolean} opt_exactMatch If true, only returns exact matches\n\t     *     for the expression.\n\t     */\n\t    testability.findModels = function(element, expression, opt_exactMatch) {\n\t      var prefixes = ['ng-', 'data-ng-', 'ng\\\\:'];\n\t      for (var p = 0; p < prefixes.length; ++p) {\n\t        var attributeEquals = opt_exactMatch ? '=' : '*=';\n\t        var selector = '[' + prefixes[p] + 'model' + attributeEquals + '\"' + expression + '\"]';\n\t        var elements = element.querySelectorAll(selector);\n\t        if (elements.length) {\n\t          return elements;\n\t        }\n\t      }\n\t    };\n\n\t    /**\n\t     * @name $$testability#getLocation\n\t     *\n\t     * @description\n\t     * Shortcut for getting the location in a browser agnostic way. Returns\n\t     *     the path, search, and hash. (e.g. /path?a=b#hash)\n\t     */\n\t    testability.getLocation = function() {\n\t      return $location.url();\n\t    };\n\n\t    /**\n\t     * @name $$testability#setLocation\n\t     *\n\t     * @description\n\t     * Shortcut for navigating to a location without doing a full page reload.\n\t     *\n\t     * @param {string} url The location url (path, search and hash,\n\t     *     e.g. /path?a=b#hash) to go to.\n\t     */\n\t    testability.setLocation = function(url) {\n\t      if (url !== $location.url()) {\n\t        $location.url(url);\n\t        $rootScope.$digest();\n\t      }\n\t    };\n\n\t    /**\n\t     * @name $$testability#whenStable\n\t     *\n\t     * @description\n\t     * Calls the callback when $timeout and $http requests are completed.\n\t     *\n\t     * @param {function} callback\n\t     */\n\t    testability.whenStable = function(callback) {\n\t      $browser.notifyWhenNoOutstandingRequests(callback);\n\t    };\n\n\t    return testability;\n\t  }];\n\t}\n\n\tfunction $TimeoutProvider() {\n\t  this.$get = ['$rootScope', '$browser', '$q', '$$q', '$exceptionHandler',\n\t       function($rootScope,   $browser,   $q,   $$q,   $exceptionHandler) {\n\t    var deferreds = {};\n\n\n\t     /**\n\t      * @ngdoc service\n\t      * @name $timeout\n\t      *\n\t      * @description\n\t      * Angular's wrapper for `window.setTimeout`. The `fn` function is wrapped into a try/catch\n\t      * block and delegates any exceptions to\n\t      * {@link ng.$exceptionHandler $exceptionHandler} service.\n\t      *\n\t      * The return value of registering a timeout function is a promise, which will be resolved when\n\t      * the timeout is reached and the timeout function is executed.\n\t      *\n\t      * To cancel a timeout request, call `$timeout.cancel(promise)`.\n\t      *\n\t      * In tests you can use {@link ngMock.$timeout `$timeout.flush()`} to\n\t      * synchronously flush the queue of deferred functions.\n\t      *\n\t      * @param {function()} fn A function, whose execution should be delayed.\n\t      * @param {number=} [delay=0] Delay in milliseconds.\n\t      * @param {boolean=} [invokeApply=true] If set to `false` skips model dirty checking, otherwise\n\t      *   will invoke `fn` within the {@link ng.$rootScope.Scope#$apply $apply} block.\n\t      * @returns {Promise} Promise that will be resolved when the timeout is reached. The value this\n\t      *   promise will be resolved with is the return value of the `fn` function.\n\t      *\n\t      */\n\t    function timeout(fn, delay, invokeApply) {\n\t      var skipApply = (isDefined(invokeApply) && !invokeApply),\n\t          deferred = (skipApply ? $$q : $q).defer(),\n\t          promise = deferred.promise,\n\t          timeoutId;\n\n\t      timeoutId = $browser.defer(function() {\n\t        try {\n\t          deferred.resolve(fn());\n\t        } catch (e) {\n\t          deferred.reject(e);\n\t          $exceptionHandler(e);\n\t        }\n\t        finally {\n\t          delete deferreds[promise.$$timeoutId];\n\t        }\n\n\t        if (!skipApply) $rootScope.$apply();\n\t      }, delay);\n\n\t      promise.$$timeoutId = timeoutId;\n\t      deferreds[timeoutId] = deferred;\n\n\t      return promise;\n\t    }\n\n\n\t     /**\n\t      * @ngdoc method\n\t      * @name $timeout#cancel\n\t      *\n\t      * @description\n\t      * Cancels a task associated with the `promise`. As a result of this, the promise will be\n\t      * resolved with a rejection.\n\t      *\n\t      * @param {Promise=} promise Promise returned by the `$timeout` function.\n\t      * @returns {boolean} Returns `true` if the task hasn't executed yet and was successfully\n\t      *   canceled.\n\t      */\n\t    timeout.cancel = function(promise) {\n\t      if (promise && promise.$$timeoutId in deferreds) {\n\t        deferreds[promise.$$timeoutId].reject('canceled');\n\t        delete deferreds[promise.$$timeoutId];\n\t        return $browser.defer.cancel(promise.$$timeoutId);\n\t      }\n\t      return false;\n\t    };\n\n\t    return timeout;\n\t  }];\n\t}\n\n\t// NOTE:  The usage of window and document instead of $window and $document here is\n\t// deliberate.  This service depends on the specific behavior of anchor nodes created by the\n\t// browser (resolving and parsing URLs) that is unlikely to be provided by mock objects and\n\t// cause us to break tests.  In addition, when the browser resolves a URL for XHR, it\n\t// doesn't know about mocked locations and resolves URLs to the real document - which is\n\t// exactly the behavior needed here.  There is little value is mocking these out for this\n\t// service.\n\tvar urlParsingNode = document.createElement(\"a\");\n\tvar originUrl = urlResolve(window.location.href);\n\n\n\t/**\n\t *\n\t * Implementation Notes for non-IE browsers\n\t * ----------------------------------------\n\t * Assigning a URL to the href property of an anchor DOM node, even one attached to the DOM,\n\t * results both in the normalizing and parsing of the URL.  Normalizing means that a relative\n\t * URL will be resolved into an absolute URL in the context of the application document.\n\t * Parsing means that the anchor node's host, hostname, protocol, port, pathname and related\n\t * properties are all populated to reflect the normalized URL.  This approach has wide\n\t * compatibility - Safari 1+, Mozilla 1+, Opera 7+,e etc.  See\n\t * http://www.aptana.com/reference/html/api/HTMLAnchorElement.html\n\t *\n\t * Implementation Notes for IE\n\t * ---------------------------\n\t * IE >= 8 and <= 10 normalizes the URL when assigned to the anchor node similar to the other\n\t * browsers.  However, the parsed components will not be set if the URL assigned did not specify\n\t * them.  (e.g. if you assign a.href = \"foo\", then a.protocol, a.host, etc. will be empty.)  We\n\t * work around that by performing the parsing in a 2nd step by taking a previously normalized\n\t * URL (e.g. by assigning to a.href) and assigning it a.href again.  This correctly populates the\n\t * properties such as protocol, hostname, port, etc.\n\t *\n\t * IE7 does not normalize the URL when assigned to an anchor node.  (Apparently, it does, if one\n\t * uses the inner HTML approach to assign the URL as part of an HTML snippet -\n\t * http://stackoverflow.com/a/472729)  However, setting img[src] does normalize the URL.\n\t * Unfortunately, setting img[src] to something like \"javascript:foo\" on IE throws an exception.\n\t * Since the primary usage for normalizing URLs is to sanitize such URLs, we can't use that\n\t * method and IE < 8 is unsupported.\n\t *\n\t * References:\n\t *   http://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement\n\t *   http://www.aptana.com/reference/html/api/HTMLAnchorElement.html\n\t *   http://url.spec.whatwg.org/#urlutils\n\t *   https://github.com/angular/angular.js/pull/2902\n\t *   http://james.padolsey.com/javascript/parsing-urls-with-the-dom/\n\t *\n\t * @kind function\n\t * @param {string} url The URL to be parsed.\n\t * @description Normalizes and parses a URL.\n\t * @returns {object} Returns the normalized URL as a dictionary.\n\t *\n\t *   | member name   | Description    |\n\t *   |---------------|----------------|\n\t *   | href          | A normalized version of the provided URL if it was not an absolute URL |\n\t *   | protocol      | The protocol including the trailing colon                              |\n\t *   | host          | The host and port (if the port is non-default) of the normalizedUrl    |\n\t *   | search        | The search params, minus the question mark                             |\n\t *   | hash          | The hash string, minus the hash symbol\n\t *   | hostname      | The hostname\n\t *   | port          | The port, without \":\"\n\t *   | pathname      | The pathname, beginning with \"/\"\n\t *\n\t */\n\tfunction urlResolve(url) {\n\t  var href = url;\n\n\t  if (msie) {\n\t    // Normalize before parse.  Refer Implementation Notes on why this is\n\t    // done in two steps on IE.\n\t    urlParsingNode.setAttribute(\"href\", href);\n\t    href = urlParsingNode.href;\n\t  }\n\n\t  urlParsingNode.setAttribute('href', href);\n\n\t  // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n\t  return {\n\t    href: urlParsingNode.href,\n\t    protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n\t    host: urlParsingNode.host,\n\t    search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n\t    hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n\t    hostname: urlParsingNode.hostname,\n\t    port: urlParsingNode.port,\n\t    pathname: (urlParsingNode.pathname.charAt(0) === '/')\n\t      ? urlParsingNode.pathname\n\t      : '/' + urlParsingNode.pathname\n\t  };\n\t}\n\n\t/**\n\t * Parse a request URL and determine whether this is a same-origin request as the application document.\n\t *\n\t * @param {string|object} requestUrl The url of the request as a string that will be resolved\n\t * or a parsed URL object.\n\t * @returns {boolean} Whether the request is for the same origin as the application document.\n\t */\n\tfunction urlIsSameOrigin(requestUrl) {\n\t  var parsed = (isString(requestUrl)) ? urlResolve(requestUrl) : requestUrl;\n\t  return (parsed.protocol === originUrl.protocol &&\n\t          parsed.host === originUrl.host);\n\t}\n\n\t/**\n\t * @ngdoc service\n\t * @name $window\n\t *\n\t * @description\n\t * A reference to the browser's `window` object. While `window`\n\t * is globally available in JavaScript, it causes testability problems, because\n\t * it is a global variable. In angular we always refer to it through the\n\t * `$window` service, so it may be overridden, removed or mocked for testing.\n\t *\n\t * Expressions, like the one defined for the `ngClick` directive in the example\n\t * below, are evaluated with respect to the current scope.  Therefore, there is\n\t * no risk of inadvertently coding in a dependency on a global value in such an\n\t * expression.\n\t *\n\t * @example\n\t   <example module=\"windowExample\">\n\t     <file name=\"index.html\">\n\t       <script>\n\t         angular.module('windowExample', [])\n\t           .controller('ExampleController', ['$scope', '$window', function($scope, $window) {\n\t             $scope.greeting = 'Hello, World!';\n\t             $scope.doGreeting = function(greeting) {\n\t               $window.alert(greeting);\n\t             };\n\t           }]);\n\t       </script>\n\t       <div ng-controller=\"ExampleController\">\n\t         <input type=\"text\" ng-model=\"greeting\" />\n\t         <button ng-click=\"doGreeting(greeting)\">ALERT</button>\n\t       </div>\n\t     </file>\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t      it('should display the greeting in the input box', function() {\n\t       element(by.model('greeting')).sendKeys('Hello, E2E Tests');\n\t       // If we click the button it will block the test runner\n\t       // element(':button').click();\n\t      });\n\t     </file>\n\t   </example>\n\t */\n\tfunction $WindowProvider() {\n\t  this.$get = valueFn(window);\n\t}\n\n\t/* global currencyFilter: true,\n\t dateFilter: true,\n\t filterFilter: true,\n\t jsonFilter: true,\n\t limitToFilter: true,\n\t lowercaseFilter: true,\n\t numberFilter: true,\n\t orderByFilter: true,\n\t uppercaseFilter: true,\n\t */\n\n\t/**\n\t * @ngdoc provider\n\t * @name $filterProvider\n\t * @description\n\t *\n\t * Filters are just functions which transform input to an output. However filters need to be\n\t * Dependency Injected. To achieve this a filter definition consists of a factory function which is\n\t * annotated with dependencies and is responsible for creating a filter function.\n\t *\n\t * ```js\n\t *   // Filter registration\n\t *   function MyModule($provide, $filterProvider) {\n\t *     // create a service to demonstrate injection (not always needed)\n\t *     $provide.value('greet', function(name){\n\t *       return 'Hello ' + name + '!';\n\t *     });\n\t *\n\t *     // register a filter factory which uses the\n\t *     // greet service to demonstrate DI.\n\t *     $filterProvider.register('greet', function(greet){\n\t *       // return the filter function which uses the greet service\n\t *       // to generate salutation\n\t *       return function(text) {\n\t *         // filters need to be forgiving so check input validity\n\t *         return text && greet(text) || text;\n\t *       };\n\t *     });\n\t *   }\n\t * ```\n\t *\n\t * The filter function is registered with the `$injector` under the filter name suffix with\n\t * `Filter`.\n\t *\n\t * ```js\n\t *   it('should be the same instance', inject(\n\t *     function($filterProvider) {\n\t *       $filterProvider.register('reverse', function(){\n\t *         return ...;\n\t *       });\n\t *     },\n\t *     function($filter, reverseFilter) {\n\t *       expect($filter('reverse')).toBe(reverseFilter);\n\t *     });\n\t * ```\n\t *\n\t *\n\t * For more information about how angular filters work, and how to create your own filters, see\n\t * {@link guide/filter Filters} in the Angular Developer Guide.\n\t */\n\n\t/**\n\t * @ngdoc service\n\t * @name $filter\n\t * @kind function\n\t * @description\n\t * Filters are used for formatting data displayed to the user.\n\t *\n\t * The general syntax in templates is as follows:\n\t *\n\t *         {{ expression [| filter_name[:parameter_value] ... ] }}\n\t *\n\t * @param {String} name Name of the filter function to retrieve\n\t * @return {Function} the filter function\n\t * @example\n\t   <example name=\"$filter\" module=\"filterExample\">\n\t     <file name=\"index.html\">\n\t       <div ng-controller=\"MainCtrl\">\n\t        <h3>{{ originalText }}</h3>\n\t        <h3>{{ filteredText }}</h3>\n\t       </div>\n\t     </file>\n\n\t     <file name=\"script.js\">\n\t      angular.module('filterExample', [])\n\t      .controller('MainCtrl', function($scope, $filter) {\n\t        $scope.originalText = 'hello';\n\t        $scope.filteredText = $filter('uppercase')($scope.originalText);\n\t      });\n\t     </file>\n\t   </example>\n\t  */\n\t$FilterProvider.$inject = ['$provide'];\n\tfunction $FilterProvider($provide) {\n\t  var suffix = 'Filter';\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $filterProvider#register\n\t   * @param {string|Object} name Name of the filter function, or an object map of filters where\n\t   *    the keys are the filter names and the values are the filter factories.\n\t   * @returns {Object} Registered filter instance, or if a map of filters was provided then a map\n\t   *    of the registered filter instances.\n\t   */\n\t  function register(name, factory) {\n\t    if (isObject(name)) {\n\t      var filters = {};\n\t      forEach(name, function(filter, key) {\n\t        filters[key] = register(key, filter);\n\t      });\n\t      return filters;\n\t    } else {\n\t      return $provide.factory(name + suffix, factory);\n\t    }\n\t  }\n\t  this.register = register;\n\n\t  this.$get = ['$injector', function($injector) {\n\t    return function(name) {\n\t      return $injector.get(name + suffix);\n\t    };\n\t  }];\n\n\t  ////////////////////////////////////////\n\n\t  /* global\n\t    currencyFilter: false,\n\t    dateFilter: false,\n\t    filterFilter: false,\n\t    jsonFilter: false,\n\t    limitToFilter: false,\n\t    lowercaseFilter: false,\n\t    numberFilter: false,\n\t    orderByFilter: false,\n\t    uppercaseFilter: false,\n\t  */\n\n\t  register('currency', currencyFilter);\n\t  register('date', dateFilter);\n\t  register('filter', filterFilter);\n\t  register('json', jsonFilter);\n\t  register('limitTo', limitToFilter);\n\t  register('lowercase', lowercaseFilter);\n\t  register('number', numberFilter);\n\t  register('orderBy', orderByFilter);\n\t  register('uppercase', uppercaseFilter);\n\t}\n\n\t/**\n\t * @ngdoc filter\n\t * @name filter\n\t * @kind function\n\t *\n\t * @description\n\t * Selects a subset of items from `array` and returns it as a new array.\n\t *\n\t * @param {Array} array The source array.\n\t * @param {string|Object|function()} expression The predicate to be used for selecting items from\n\t *   `array`.\n\t *\n\t *   Can be one of:\n\t *\n\t *   - `string`: The string is used for matching against the contents of the `array`. All strings or\n\t *     objects with string properties in `array` that match this string will be returned. This also\n\t *     applies to nested object properties.\n\t *     The predicate can be negated by prefixing the string with `!`.\n\t *\n\t *   - `Object`: A pattern object can be used to filter specific properties on objects contained\n\t *     by `array`. For example `{name:\"M\", phone:\"1\"}` predicate will return an array of items\n\t *     which have property `name` containing \"M\" and property `phone` containing \"1\". A special\n\t *     property name `$` can be used (as in `{$:\"text\"}`) to accept a match against any\n\t *     property of the object or its nested object properties. That's equivalent to the simple\n\t *     substring match with a `string` as described above. The predicate can be negated by prefixing\n\t *     the string with `!`.\n\t *     For example `{name: \"!M\"}` predicate will return an array of items which have property `name`\n\t *     not containing \"M\".\n\t *\n\t *     Note that a named property will match properties on the same level only, while the special\n\t *     `$` property will match properties on the same level or deeper. E.g. an array item like\n\t *     `{name: {first: 'John', last: 'Doe'}}` will **not** be matched by `{name: 'John'}`, but\n\t *     **will** be matched by `{$: 'John'}`.\n\t *\n\t *   - `function(value, index)`: A predicate function can be used to write arbitrary filters. The\n\t *     function is called for each element of `array`. The final result is an array of those\n\t *     elements that the predicate returned true for.\n\t *\n\t * @param {function(actual, expected)|true|undefined} comparator Comparator which is used in\n\t *     determining if the expected value (from the filter expression) and actual value (from\n\t *     the object in the array) should be considered a match.\n\t *\n\t *   Can be one of:\n\t *\n\t *   - `function(actual, expected)`:\n\t *     The function will be given the object value and the predicate value to compare and\n\t *     should return true if both values should be considered equal.\n\t *\n\t *   - `true`: A shorthand for `function(actual, expected) { return angular.equals(actual, expected)}`.\n\t *     This is essentially strict comparison of expected and actual.\n\t *\n\t *   - `false|undefined`: A short hand for a function which will look for a substring match in case\n\t *     insensitive way.\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t       <div ng-init=\"friends = [{name:'John', phone:'555-1276'},\n\t                                {name:'Mary', phone:'800-BIG-MARY'},\n\t                                {name:'Mike', phone:'555-4321'},\n\t                                {name:'Adam', phone:'555-5678'},\n\t                                {name:'Julie', phone:'555-8765'},\n\t                                {name:'Juliette', phone:'555-5678'}]\"></div>\n\n\t       Search: <input ng-model=\"searchText\">\n\t       <table id=\"searchTextResults\">\n\t         <tr><th>Name</th><th>Phone</th></tr>\n\t         <tr ng-repeat=\"friend in friends | filter:searchText\">\n\t           <td>{{friend.name}}</td>\n\t           <td>{{friend.phone}}</td>\n\t         </tr>\n\t       </table>\n\t       <hr>\n\t       Any: <input ng-model=\"search.$\"> <br>\n\t       Name only <input ng-model=\"search.name\"><br>\n\t       Phone only <input ng-model=\"search.phone\"><br>\n\t       Equality <input type=\"checkbox\" ng-model=\"strict\"><br>\n\t       <table id=\"searchObjResults\">\n\t         <tr><th>Name</th><th>Phone</th></tr>\n\t         <tr ng-repeat=\"friendObj in friends | filter:search:strict\">\n\t           <td>{{friendObj.name}}</td>\n\t           <td>{{friendObj.phone}}</td>\n\t         </tr>\n\t       </table>\n\t     </file>\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t       var expectFriendNames = function(expectedNames, key) {\n\t         element.all(by.repeater(key + ' in friends').column(key + '.name')).then(function(arr) {\n\t           arr.forEach(function(wd, i) {\n\t             expect(wd.getText()).toMatch(expectedNames[i]);\n\t           });\n\t         });\n\t       };\n\n\t       it('should search across all fields when filtering with a string', function() {\n\t         var searchText = element(by.model('searchText'));\n\t         searchText.clear();\n\t         searchText.sendKeys('m');\n\t         expectFriendNames(['Mary', 'Mike', 'Adam'], 'friend');\n\n\t         searchText.clear();\n\t         searchText.sendKeys('76');\n\t         expectFriendNames(['John', 'Julie'], 'friend');\n\t       });\n\n\t       it('should search in specific fields when filtering with a predicate object', function() {\n\t         var searchAny = element(by.model('search.$'));\n\t         searchAny.clear();\n\t         searchAny.sendKeys('i');\n\t         expectFriendNames(['Mary', 'Mike', 'Julie', 'Juliette'], 'friendObj');\n\t       });\n\t       it('should use a equal comparison when comparator is true', function() {\n\t         var searchName = element(by.model('search.name'));\n\t         var strict = element(by.model('strict'));\n\t         searchName.clear();\n\t         searchName.sendKeys('Julie');\n\t         strict.click();\n\t         expectFriendNames(['Julie'], 'friendObj');\n\t       });\n\t     </file>\n\t   </example>\n\t */\n\tfunction filterFilter() {\n\t  return function(array, expression, comparator) {\n\t    if (!isArray(array)) return array;\n\n\t    var predicateFn;\n\t    var matchAgainstAnyProp;\n\n\t    switch (typeof expression) {\n\t      case 'function':\n\t        predicateFn = expression;\n\t        break;\n\t      case 'boolean':\n\t      case 'number':\n\t      case 'string':\n\t        matchAgainstAnyProp = true;\n\t        //jshint -W086\n\t      case 'object':\n\t        //jshint +W086\n\t        predicateFn = createPredicateFn(expression, comparator, matchAgainstAnyProp);\n\t        break;\n\t      default:\n\t        return array;\n\t    }\n\n\t    return array.filter(predicateFn);\n\t  };\n\t}\n\n\t// Helper functions for `filterFilter`\n\tfunction createPredicateFn(expression, comparator, matchAgainstAnyProp) {\n\t  var shouldMatchPrimitives = isObject(expression) && ('$' in expression);\n\t  var predicateFn;\n\n\t  if (comparator === true) {\n\t    comparator = equals;\n\t  } else if (!isFunction(comparator)) {\n\t    comparator = function(actual, expected) {\n\t      if (isObject(actual) || isObject(expected)) {\n\t        // Prevent an object to be considered equal to a string like `'[object'`\n\t        return false;\n\t      }\n\n\t      actual = lowercase('' + actual);\n\t      expected = lowercase('' + expected);\n\t      return actual.indexOf(expected) !== -1;\n\t    };\n\t  }\n\n\t  predicateFn = function(item) {\n\t    if (shouldMatchPrimitives && !isObject(item)) {\n\t      return deepCompare(item, expression.$, comparator, false);\n\t    }\n\t    return deepCompare(item, expression, comparator, matchAgainstAnyProp);\n\t  };\n\n\t  return predicateFn;\n\t}\n\n\tfunction deepCompare(actual, expected, comparator, matchAgainstAnyProp, dontMatchWholeObject) {\n\t  var actualType = (actual !== null) ? typeof actual : 'null';\n\t  var expectedType = (expected !== null) ? typeof expected : 'null';\n\n\t  if ((expectedType === 'string') && (expected.charAt(0) === '!')) {\n\t    return !deepCompare(actual, expected.substring(1), comparator, matchAgainstAnyProp);\n\t  } else if (isArray(actual)) {\n\t    // In case `actual` is an array, consider it a match\n\t    // if ANY of it's items matches `expected`\n\t    return actual.some(function(item) {\n\t      return deepCompare(item, expected, comparator, matchAgainstAnyProp);\n\t    });\n\t  }\n\n\t  switch (actualType) {\n\t    case 'object':\n\t      var key;\n\t      if (matchAgainstAnyProp) {\n\t        for (key in actual) {\n\t          if ((key.charAt(0) !== '$') && deepCompare(actual[key], expected, comparator, true)) {\n\t            return true;\n\t          }\n\t        }\n\t        return dontMatchWholeObject ? false : deepCompare(actual, expected, comparator, false);\n\t      } else if (expectedType === 'object') {\n\t        for (key in expected) {\n\t          var expectedVal = expected[key];\n\t          if (isFunction(expectedVal) || isUndefined(expectedVal)) {\n\t            continue;\n\t          }\n\n\t          var matchAnyProperty = key === '$';\n\t          var actualVal = matchAnyProperty ? actual : actual[key];\n\t          if (!deepCompare(actualVal, expectedVal, comparator, matchAnyProperty, matchAnyProperty)) {\n\t            return false;\n\t          }\n\t        }\n\t        return true;\n\t      } else {\n\t        return comparator(actual, expected);\n\t      }\n\t      break;\n\t    case 'function':\n\t      return false;\n\t    default:\n\t      return comparator(actual, expected);\n\t  }\n\t}\n\n\t/**\n\t * @ngdoc filter\n\t * @name currency\n\t * @kind function\n\t *\n\t * @description\n\t * Formats a number as a currency (ie $1,234.56). When no currency symbol is provided, default\n\t * symbol for current locale is used.\n\t *\n\t * @param {number} amount Input to filter.\n\t * @param {string=} symbol Currency symbol or identifier to be displayed.\n\t * @param {number=} fractionSize Number of decimal places to round the amount to, defaults to default max fraction size for current locale\n\t * @returns {string} Formatted number.\n\t *\n\t *\n\t * @example\n\t   <example module=\"currencyExample\">\n\t     <file name=\"index.html\">\n\t       <script>\n\t         angular.module('currencyExample', [])\n\t           .controller('ExampleController', ['$scope', function($scope) {\n\t             $scope.amount = 1234.56;\n\t           }]);\n\t       </script>\n\t       <div ng-controller=\"ExampleController\">\n\t         <input type=\"number\" ng-model=\"amount\"> <br>\n\t         default currency symbol ($): <span id=\"currency-default\">{{amount | currency}}</span><br>\n\t         custom currency identifier (USD$): <span id=\"currency-custom\">{{amount | currency:\"USD$\"}}</span>\n\t         no fractions (0): <span id=\"currency-no-fractions\">{{amount | currency:\"USD$\":0}}</span>\n\t       </div>\n\t     </file>\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t       it('should init with 1234.56', function() {\n\t         expect(element(by.id('currency-default')).getText()).toBe('$1,234.56');\n\t         expect(element(by.id('currency-custom')).getText()).toBe('USD$1,234.56');\n\t         expect(element(by.id('currency-no-fractions')).getText()).toBe('USD$1,235');\n\t       });\n\t       it('should update', function() {\n\t         if (browser.params.browser == 'safari') {\n\t           // Safari does not understand the minus key. See\n\t           // https://github.com/angular/protractor/issues/481\n\t           return;\n\t         }\n\t         element(by.model('amount')).clear();\n\t         element(by.model('amount')).sendKeys('-1234');\n\t         expect(element(by.id('currency-default')).getText()).toBe('($1,234.00)');\n\t         expect(element(by.id('currency-custom')).getText()).toBe('(USD$1,234.00)');\n\t         expect(element(by.id('currency-no-fractions')).getText()).toBe('(USD$1,234)');\n\t       });\n\t     </file>\n\t   </example>\n\t */\n\tcurrencyFilter.$inject = ['$locale'];\n\tfunction currencyFilter($locale) {\n\t  var formats = $locale.NUMBER_FORMATS;\n\t  return function(amount, currencySymbol, fractionSize) {\n\t    if (isUndefined(currencySymbol)) {\n\t      currencySymbol = formats.CURRENCY_SYM;\n\t    }\n\n\t    if (isUndefined(fractionSize)) {\n\t      fractionSize = formats.PATTERNS[1].maxFrac;\n\t    }\n\n\t    // if null or undefined pass it through\n\t    return (amount == null)\n\t        ? amount\n\t        : formatNumber(amount, formats.PATTERNS[1], formats.GROUP_SEP, formats.DECIMAL_SEP, fractionSize).\n\t            replace(/\\u00A4/g, currencySymbol);\n\t  };\n\t}\n\n\t/**\n\t * @ngdoc filter\n\t * @name number\n\t * @kind function\n\t *\n\t * @description\n\t * Formats a number as text.\n\t *\n\t * If the input is not a number an empty string is returned.\n\t *\n\t * @param {number|string} number Number to format.\n\t * @param {(number|string)=} fractionSize Number of decimal places to round the number to.\n\t * If this is not provided then the fraction size is computed from the current locale's number\n\t * formatting pattern. In the case of the default locale, it will be 3.\n\t * @returns {string} Number rounded to decimalPlaces and places a “,” after each third digit.\n\t *\n\t * @example\n\t   <example module=\"numberFilterExample\">\n\t     <file name=\"index.html\">\n\t       <script>\n\t         angular.module('numberFilterExample', [])\n\t           .controller('ExampleController', ['$scope', function($scope) {\n\t             $scope.val = 1234.56789;\n\t           }]);\n\t       </script>\n\t       <div ng-controller=\"ExampleController\">\n\t         Enter number: <input ng-model='val'><br>\n\t         Default formatting: <span id='number-default'>{{val | number}}</span><br>\n\t         No fractions: <span>{{val | number:0}}</span><br>\n\t         Negative number: <span>{{-val | number:4}}</span>\n\t       </div>\n\t     </file>\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t       it('should format numbers', function() {\n\t         expect(element(by.id('number-default')).getText()).toBe('1,234.568');\n\t         expect(element(by.binding('val | number:0')).getText()).toBe('1,235');\n\t         expect(element(by.binding('-val | number:4')).getText()).toBe('-1,234.5679');\n\t       });\n\n\t       it('should update', function() {\n\t         element(by.model('val')).clear();\n\t         element(by.model('val')).sendKeys('3374.333');\n\t         expect(element(by.id('number-default')).getText()).toBe('3,374.333');\n\t         expect(element(by.binding('val | number:0')).getText()).toBe('3,374');\n\t         expect(element(by.binding('-val | number:4')).getText()).toBe('-3,374.3330');\n\t      });\n\t     </file>\n\t   </example>\n\t */\n\n\n\tnumberFilter.$inject = ['$locale'];\n\tfunction numberFilter($locale) {\n\t  var formats = $locale.NUMBER_FORMATS;\n\t  return function(number, fractionSize) {\n\n\t    // if null or undefined pass it through\n\t    return (number == null)\n\t        ? number\n\t        : formatNumber(number, formats.PATTERNS[0], formats.GROUP_SEP, formats.DECIMAL_SEP,\n\t                       fractionSize);\n\t  };\n\t}\n\n\tvar DECIMAL_SEP = '.';\n\tfunction formatNumber(number, pattern, groupSep, decimalSep, fractionSize) {\n\t  if (!isFinite(number) || isObject(number)) return '';\n\n\t  var isNegative = number < 0;\n\t  number = Math.abs(number);\n\t  var numStr = number + '',\n\t      formatedText = '',\n\t      parts = [];\n\n\t  var hasExponent = false;\n\t  if (numStr.indexOf('e') !== -1) {\n\t    var match = numStr.match(/([\\d\\.]+)e(-?)(\\d+)/);\n\t    if (match && match[2] == '-' && match[3] > fractionSize + 1) {\n\t      number = 0;\n\t    } else {\n\t      formatedText = numStr;\n\t      hasExponent = true;\n\t    }\n\t  }\n\n\t  if (!hasExponent) {\n\t    var fractionLen = (numStr.split(DECIMAL_SEP)[1] || '').length;\n\n\t    // determine fractionSize if it is not specified\n\t    if (isUndefined(fractionSize)) {\n\t      fractionSize = Math.min(Math.max(pattern.minFrac, fractionLen), pattern.maxFrac);\n\t    }\n\n\t    // safely round numbers in JS without hitting imprecisions of floating-point arithmetics\n\t    // inspired by:\n\t    // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/round\n\t    number = +(Math.round(+(number.toString() + 'e' + fractionSize)).toString() + 'e' + -fractionSize);\n\n\t    var fraction = ('' + number).split(DECIMAL_SEP);\n\t    var whole = fraction[0];\n\t    fraction = fraction[1] || '';\n\n\t    var i, pos = 0,\n\t        lgroup = pattern.lgSize,\n\t        group = pattern.gSize;\n\n\t    if (whole.length >= (lgroup + group)) {\n\t      pos = whole.length - lgroup;\n\t      for (i = 0; i < pos; i++) {\n\t        if ((pos - i) % group === 0 && i !== 0) {\n\t          formatedText += groupSep;\n\t        }\n\t        formatedText += whole.charAt(i);\n\t      }\n\t    }\n\n\t    for (i = pos; i < whole.length; i++) {\n\t      if ((whole.length - i) % lgroup === 0 && i !== 0) {\n\t        formatedText += groupSep;\n\t      }\n\t      formatedText += whole.charAt(i);\n\t    }\n\n\t    // format fraction part.\n\t    while (fraction.length < fractionSize) {\n\t      fraction += '0';\n\t    }\n\n\t    if (fractionSize && fractionSize !== \"0\") formatedText += decimalSep + fraction.substr(0, fractionSize);\n\t  } else {\n\t    if (fractionSize > 0 && number < 1) {\n\t      formatedText = number.toFixed(fractionSize);\n\t      number = parseFloat(formatedText);\n\t    }\n\t  }\n\n\t  if (number === 0) {\n\t    isNegative = false;\n\t  }\n\n\t  parts.push(isNegative ? pattern.negPre : pattern.posPre,\n\t             formatedText,\n\t             isNegative ? pattern.negSuf : pattern.posSuf);\n\t  return parts.join('');\n\t}\n\n\tfunction padNumber(num, digits, trim) {\n\t  var neg = '';\n\t  if (num < 0) {\n\t    neg =  '-';\n\t    num = -num;\n\t  }\n\t  num = '' + num;\n\t  while (num.length < digits) num = '0' + num;\n\t  if (trim)\n\t    num = num.substr(num.length - digits);\n\t  return neg + num;\n\t}\n\n\n\tfunction dateGetter(name, size, offset, trim) {\n\t  offset = offset || 0;\n\t  return function(date) {\n\t    var value = date['get' + name]();\n\t    if (offset > 0 || value > -offset)\n\t      value += offset;\n\t    if (value === 0 && offset == -12) value = 12;\n\t    return padNumber(value, size, trim);\n\t  };\n\t}\n\n\tfunction dateStrGetter(name, shortForm) {\n\t  return function(date, formats) {\n\t    var value = date['get' + name]();\n\t    var get = uppercase(shortForm ? ('SHORT' + name) : name);\n\n\t    return formats[get][value];\n\t  };\n\t}\n\n\tfunction timeZoneGetter(date) {\n\t  var zone = -1 * date.getTimezoneOffset();\n\t  var paddedZone = (zone >= 0) ? \"+\" : \"\";\n\n\t  paddedZone += padNumber(Math[zone > 0 ? 'floor' : 'ceil'](zone / 60), 2) +\n\t                padNumber(Math.abs(zone % 60), 2);\n\n\t  return paddedZone;\n\t}\n\n\tfunction getFirstThursdayOfYear(year) {\n\t    // 0 = index of January\n\t    var dayOfWeekOnFirst = (new Date(year, 0, 1)).getDay();\n\t    // 4 = index of Thursday (+1 to account for 1st = 5)\n\t    // 11 = index of *next* Thursday (+1 account for 1st = 12)\n\t    return new Date(year, 0, ((dayOfWeekOnFirst <= 4) ? 5 : 12) - dayOfWeekOnFirst);\n\t}\n\n\tfunction getThursdayThisWeek(datetime) {\n\t    return new Date(datetime.getFullYear(), datetime.getMonth(),\n\t      // 4 = index of Thursday\n\t      datetime.getDate() + (4 - datetime.getDay()));\n\t}\n\n\tfunction weekGetter(size) {\n\t   return function(date) {\n\t      var firstThurs = getFirstThursdayOfYear(date.getFullYear()),\n\t         thisThurs = getThursdayThisWeek(date);\n\n\t      var diff = +thisThurs - +firstThurs,\n\t         result = 1 + Math.round(diff / 6.048e8); // 6.048e8 ms per week\n\n\t      return padNumber(result, size);\n\t   };\n\t}\n\n\tfunction ampmGetter(date, formats) {\n\t  return date.getHours() < 12 ? formats.AMPMS[0] : formats.AMPMS[1];\n\t}\n\n\tfunction eraGetter(date, formats) {\n\t  return date.getFullYear() <= 0 ? formats.ERAS[0] : formats.ERAS[1];\n\t}\n\n\tfunction longEraGetter(date, formats) {\n\t  return date.getFullYear() <= 0 ? formats.ERANAMES[0] : formats.ERANAMES[1];\n\t}\n\n\tvar DATE_FORMATS = {\n\t  yyyy: dateGetter('FullYear', 4),\n\t    yy: dateGetter('FullYear', 2, 0, true),\n\t     y: dateGetter('FullYear', 1),\n\t  MMMM: dateStrGetter('Month'),\n\t   MMM: dateStrGetter('Month', true),\n\t    MM: dateGetter('Month', 2, 1),\n\t     M: dateGetter('Month', 1, 1),\n\t    dd: dateGetter('Date', 2),\n\t     d: dateGetter('Date', 1),\n\t    HH: dateGetter('Hours', 2),\n\t     H: dateGetter('Hours', 1),\n\t    hh: dateGetter('Hours', 2, -12),\n\t     h: dateGetter('Hours', 1, -12),\n\t    mm: dateGetter('Minutes', 2),\n\t     m: dateGetter('Minutes', 1),\n\t    ss: dateGetter('Seconds', 2),\n\t     s: dateGetter('Seconds', 1),\n\t     // while ISO 8601 requires fractions to be prefixed with `.` or `,`\n\t     // we can be just safely rely on using `sss` since we currently don't support single or two digit fractions\n\t   sss: dateGetter('Milliseconds', 3),\n\t  EEEE: dateStrGetter('Day'),\n\t   EEE: dateStrGetter('Day', true),\n\t     a: ampmGetter,\n\t     Z: timeZoneGetter,\n\t    ww: weekGetter(2),\n\t     w: weekGetter(1),\n\t     G: eraGetter,\n\t     GG: eraGetter,\n\t     GGG: eraGetter,\n\t     GGGG: longEraGetter\n\t};\n\n\tvar DATE_FORMATS_SPLIT = /((?:[^yMdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,\n\t    NUMBER_STRING = /^\\-?\\d+$/;\n\n\t/**\n\t * @ngdoc filter\n\t * @name date\n\t * @kind function\n\t *\n\t * @description\n\t *   Formats `date` to a string based on the requested `format`.\n\t *\n\t *   `format` string can be composed of the following elements:\n\t *\n\t *   * `'yyyy'`: 4 digit representation of year (e.g. AD 1 => 0001, AD 2010 => 2010)\n\t *   * `'yy'`: 2 digit representation of year, padded (00-99). (e.g. AD 2001 => 01, AD 2010 => 10)\n\t *   * `'y'`: 1 digit representation of year, e.g. (AD 1 => 1, AD 199 => 199)\n\t *   * `'MMMM'`: Month in year (January-December)\n\t *   * `'MMM'`: Month in year (Jan-Dec)\n\t *   * `'MM'`: Month in year, padded (01-12)\n\t *   * `'M'`: Month in year (1-12)\n\t *   * `'dd'`: Day in month, padded (01-31)\n\t *   * `'d'`: Day in month (1-31)\n\t *   * `'EEEE'`: Day in Week,(Sunday-Saturday)\n\t *   * `'EEE'`: Day in Week, (Sun-Sat)\n\t *   * `'HH'`: Hour in day, padded (00-23)\n\t *   * `'H'`: Hour in day (0-23)\n\t *   * `'hh'`: Hour in AM/PM, padded (01-12)\n\t *   * `'h'`: Hour in AM/PM, (1-12)\n\t *   * `'mm'`: Minute in hour, padded (00-59)\n\t *   * `'m'`: Minute in hour (0-59)\n\t *   * `'ss'`: Second in minute, padded (00-59)\n\t *   * `'s'`: Second in minute (0-59)\n\t *   * `'sss'`: Millisecond in second, padded (000-999)\n\t *   * `'a'`: AM/PM marker\n\t *   * `'Z'`: 4 digit (+sign) representation of the timezone offset (-1200-+1200)\n\t *   * `'ww'`: Week of year, padded (00-53). Week 01 is the week with the first Thursday of the year\n\t *   * `'w'`: Week of year (0-53). Week 1 is the week with the first Thursday of the year\n\t *   * `'G'`, `'GG'`, `'GGG'`: The abbreviated form of the era string (e.g. 'AD')\n\t *   * `'GGGG'`: The long form of the era string (e.g. 'Anno Domini')\n\t *\n\t *   `format` string can also be one of the following predefined\n\t *   {@link guide/i18n localizable formats}:\n\t *\n\t *   * `'medium'`: equivalent to `'MMM d, y h:mm:ss a'` for en_US locale\n\t *     (e.g. Sep 3, 2010 12:05:08 PM)\n\t *   * `'short'`: equivalent to `'M/d/yy h:mm a'` for en_US  locale (e.g. 9/3/10 12:05 PM)\n\t *   * `'fullDate'`: equivalent to `'EEEE, MMMM d, y'` for en_US  locale\n\t *     (e.g. Friday, September 3, 2010)\n\t *   * `'longDate'`: equivalent to `'MMMM d, y'` for en_US  locale (e.g. September 3, 2010)\n\t *   * `'mediumDate'`: equivalent to `'MMM d, y'` for en_US  locale (e.g. Sep 3, 2010)\n\t *   * `'shortDate'`: equivalent to `'M/d/yy'` for en_US locale (e.g. 9/3/10)\n\t *   * `'mediumTime'`: equivalent to `'h:mm:ss a'` for en_US locale (e.g. 12:05:08 PM)\n\t *   * `'shortTime'`: equivalent to `'h:mm a'` for en_US locale (e.g. 12:05 PM)\n\t *\n\t *   `format` string can contain literal values. These need to be escaped by surrounding with single quotes (e.g.\n\t *   `\"h 'in the morning'\"`). In order to output a single quote, escape it - i.e., two single quotes in a sequence\n\t *   (e.g. `\"h 'o''clock'\"`).\n\t *\n\t * @param {(Date|number|string)} date Date to format either as Date object, milliseconds (string or\n\t *    number) or various ISO 8601 datetime string formats (e.g. yyyy-MM-ddTHH:mm:ss.sssZ and its\n\t *    shorter versions like yyyy-MM-ddTHH:mmZ, yyyy-MM-dd or yyyyMMddTHHmmssZ). If no timezone is\n\t *    specified in the string input, the time is considered to be in the local timezone.\n\t * @param {string=} format Formatting rules (see Description). If not specified,\n\t *    `mediumDate` is used.\n\t * @param {string=} timezone Timezone to be used for formatting. Right now, only `'UTC'` is supported.\n\t *    If not specified, the timezone of the browser will be used.\n\t * @returns {string} Formatted string or the input if input is not recognized as date/millis.\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t       <span ng-non-bindable>{{1288323623006 | date:'medium'}}</span>:\n\t           <span>{{1288323623006 | date:'medium'}}</span><br>\n\t       <span ng-non-bindable>{{1288323623006 | date:'yyyy-MM-dd HH:mm:ss Z'}}</span>:\n\t          <span>{{1288323623006 | date:'yyyy-MM-dd HH:mm:ss Z'}}</span><br>\n\t       <span ng-non-bindable>{{1288323623006 | date:'MM/dd/yyyy @ h:mma'}}</span>:\n\t          <span>{{'1288323623006' | date:'MM/dd/yyyy @ h:mma'}}</span><br>\n\t       <span ng-non-bindable>{{1288323623006 | date:\"MM/dd/yyyy 'at' h:mma\"}}</span>:\n\t          <span>{{'1288323623006' | date:\"MM/dd/yyyy 'at' h:mma\"}}</span><br>\n\t     </file>\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t       it('should format date', function() {\n\t         expect(element(by.binding(\"1288323623006 | date:'medium'\")).getText()).\n\t            toMatch(/Oct 2\\d, 2010 \\d{1,2}:\\d{2}:\\d{2} (AM|PM)/);\n\t         expect(element(by.binding(\"1288323623006 | date:'yyyy-MM-dd HH:mm:ss Z'\")).getText()).\n\t            toMatch(/2010\\-10\\-2\\d \\d{2}:\\d{2}:\\d{2} (\\-|\\+)?\\d{4}/);\n\t         expect(element(by.binding(\"'1288323623006' | date:'MM/dd/yyyy @ h:mma'\")).getText()).\n\t            toMatch(/10\\/2\\d\\/2010 @ \\d{1,2}:\\d{2}(AM|PM)/);\n\t         expect(element(by.binding(\"'1288323623006' | date:\\\"MM/dd/yyyy 'at' h:mma\\\"\")).getText()).\n\t            toMatch(/10\\/2\\d\\/2010 at \\d{1,2}:\\d{2}(AM|PM)/);\n\t       });\n\t     </file>\n\t   </example>\n\t */\n\tdateFilter.$inject = ['$locale'];\n\tfunction dateFilter($locale) {\n\n\n\t  var R_ISO8601_STR = /^(\\d{4})-?(\\d\\d)-?(\\d\\d)(?:T(\\d\\d)(?::?(\\d\\d)(?::?(\\d\\d)(?:\\.(\\d+))?)?)?(Z|([+-])(\\d\\d):?(\\d\\d))?)?$/;\n\t                     // 1        2       3         4          5          6          7          8  9     10      11\n\t  function jsonStringToDate(string) {\n\t    var match;\n\t    if (match = string.match(R_ISO8601_STR)) {\n\t      var date = new Date(0),\n\t          tzHour = 0,\n\t          tzMin  = 0,\n\t          dateSetter = match[8] ? date.setUTCFullYear : date.setFullYear,\n\t          timeSetter = match[8] ? date.setUTCHours : date.setHours;\n\n\t      if (match[9]) {\n\t        tzHour = int(match[9] + match[10]);\n\t        tzMin = int(match[9] + match[11]);\n\t      }\n\t      dateSetter.call(date, int(match[1]), int(match[2]) - 1, int(match[3]));\n\t      var h = int(match[4] || 0) - tzHour;\n\t      var m = int(match[5] || 0) - tzMin;\n\t      var s = int(match[6] || 0);\n\t      var ms = Math.round(parseFloat('0.' + (match[7] || 0)) * 1000);\n\t      timeSetter.call(date, h, m, s, ms);\n\t      return date;\n\t    }\n\t    return string;\n\t  }\n\n\n\t  return function(date, format, timezone) {\n\t    var text = '',\n\t        parts = [],\n\t        fn, match;\n\n\t    format = format || 'mediumDate';\n\t    format = $locale.DATETIME_FORMATS[format] || format;\n\t    if (isString(date)) {\n\t      date = NUMBER_STRING.test(date) ? int(date) : jsonStringToDate(date);\n\t    }\n\n\t    if (isNumber(date)) {\n\t      date = new Date(date);\n\t    }\n\n\t    if (!isDate(date)) {\n\t      return date;\n\t    }\n\n\t    while (format) {\n\t      match = DATE_FORMATS_SPLIT.exec(format);\n\t      if (match) {\n\t        parts = concat(parts, match, 1);\n\t        format = parts.pop();\n\t      } else {\n\t        parts.push(format);\n\t        format = null;\n\t      }\n\t    }\n\n\t    if (timezone && timezone === 'UTC') {\n\t      date = new Date(date.getTime());\n\t      date.setMinutes(date.getMinutes() + date.getTimezoneOffset());\n\t    }\n\t    forEach(parts, function(value) {\n\t      fn = DATE_FORMATS[value];\n\t      text += fn ? fn(date, $locale.DATETIME_FORMATS)\n\t                 : value.replace(/(^'|'$)/g, '').replace(/''/g, \"'\");\n\t    });\n\n\t    return text;\n\t  };\n\t}\n\n\n\t/**\n\t * @ngdoc filter\n\t * @name json\n\t * @kind function\n\t *\n\t * @description\n\t *   Allows you to convert a JavaScript object into JSON string.\n\t *\n\t *   This filter is mostly useful for debugging. When using the double curly {{value}} notation\n\t *   the binding is automatically converted to JSON.\n\t *\n\t * @param {*} object Any JavaScript object (including arrays and primitive types) to filter.\n\t * @param {number=} spacing The number of spaces to use per indentation, defaults to 2.\n\t * @returns {string} JSON string.\n\t *\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t       <pre id=\"default-spacing\">{{ {'name':'value'} | json }}</pre>\n\t       <pre id=\"custom-spacing\">{{ {'name':'value'} | json:4 }}</pre>\n\t     </file>\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t       it('should jsonify filtered objects', function() {\n\t         expect(element(by.id('default-spacing')).getText()).toMatch(/\\{\\n  \"name\": ?\"value\"\\n}/);\n\t         expect(element(by.id('custom-spacing')).getText()).toMatch(/\\{\\n    \"name\": ?\"value\"\\n}/);\n\t       });\n\t     </file>\n\t   </example>\n\t *\n\t */\n\tfunction jsonFilter() {\n\t  return function(object, spacing) {\n\t    if (isUndefined(spacing)) {\n\t        spacing = 2;\n\t    }\n\t    return toJson(object, spacing);\n\t  };\n\t}\n\n\n\t/**\n\t * @ngdoc filter\n\t * @name lowercase\n\t * @kind function\n\t * @description\n\t * Converts string to lowercase.\n\t * @see angular.lowercase\n\t */\n\tvar lowercaseFilter = valueFn(lowercase);\n\n\n\t/**\n\t * @ngdoc filter\n\t * @name uppercase\n\t * @kind function\n\t * @description\n\t * Converts string to uppercase.\n\t * @see angular.uppercase\n\t */\n\tvar uppercaseFilter = valueFn(uppercase);\n\n\t/**\n\t * @ngdoc filter\n\t * @name limitTo\n\t * @kind function\n\t *\n\t * @description\n\t * Creates a new array or string containing only a specified number of elements. The elements\n\t * are taken from either the beginning or the end of the source array, string or number, as specified by\n\t * the value and sign (positive or negative) of `limit`. If a number is used as input, it is\n\t * converted to a string.\n\t *\n\t * @param {Array|string|number} input Source array, string or number to be limited.\n\t * @param {string|number} limit The length of the returned array or string. If the `limit` number\n\t *     is positive, `limit` number of items from the beginning of the source array/string are copied.\n\t *     If the number is negative, `limit` number  of items from the end of the source array/string\n\t *     are copied. The `limit` will be trimmed if it exceeds `array.length`\n\t * @returns {Array|string} A new sub-array or substring of length `limit` or less if input array\n\t *     had less than `limit` elements.\n\t *\n\t * @example\n\t   <example module=\"limitToExample\">\n\t     <file name=\"index.html\">\n\t       <script>\n\t         angular.module('limitToExample', [])\n\t           .controller('ExampleController', ['$scope', function($scope) {\n\t             $scope.numbers = [1,2,3,4,5,6,7,8,9];\n\t             $scope.letters = \"abcdefghi\";\n\t             $scope.longNumber = 2345432342;\n\t             $scope.numLimit = 3;\n\t             $scope.letterLimit = 3;\n\t             $scope.longNumberLimit = 3;\n\t           }]);\n\t       </script>\n\t       <div ng-controller=\"ExampleController\">\n\t         Limit {{numbers}} to: <input type=\"number\" step=\"1\" ng-model=\"numLimit\">\n\t         <p>Output numbers: {{ numbers | limitTo:numLimit }}</p>\n\t         Limit {{letters}} to: <input type=\"number\" step=\"1\" ng-model=\"letterLimit\">\n\t         <p>Output letters: {{ letters | limitTo:letterLimit }}</p>\n\t         Limit {{longNumber}} to: <input type=\"number\" step=\"1\" ng-model=\"longNumberLimit\">\n\t         <p>Output long number: {{ longNumber | limitTo:longNumberLimit }}</p>\n\t       </div>\n\t     </file>\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t       var numLimitInput = element(by.model('numLimit'));\n\t       var letterLimitInput = element(by.model('letterLimit'));\n\t       var longNumberLimitInput = element(by.model('longNumberLimit'));\n\t       var limitedNumbers = element(by.binding('numbers | limitTo:numLimit'));\n\t       var limitedLetters = element(by.binding('letters | limitTo:letterLimit'));\n\t       var limitedLongNumber = element(by.binding('longNumber | limitTo:longNumberLimit'));\n\n\t       it('should limit the number array to first three items', function() {\n\t         expect(numLimitInput.getAttribute('value')).toBe('3');\n\t         expect(letterLimitInput.getAttribute('value')).toBe('3');\n\t         expect(longNumberLimitInput.getAttribute('value')).toBe('3');\n\t         expect(limitedNumbers.getText()).toEqual('Output numbers: [1,2,3]');\n\t         expect(limitedLetters.getText()).toEqual('Output letters: abc');\n\t         expect(limitedLongNumber.getText()).toEqual('Output long number: 234');\n\t       });\n\n\t       // There is a bug in safari and protractor that doesn't like the minus key\n\t       // it('should update the output when -3 is entered', function() {\n\t       //   numLimitInput.clear();\n\t       //   numLimitInput.sendKeys('-3');\n\t       //   letterLimitInput.clear();\n\t       //   letterLimitInput.sendKeys('-3');\n\t       //   longNumberLimitInput.clear();\n\t       //   longNumberLimitInput.sendKeys('-3');\n\t       //   expect(limitedNumbers.getText()).toEqual('Output numbers: [7,8,9]');\n\t       //   expect(limitedLetters.getText()).toEqual('Output letters: ghi');\n\t       //   expect(limitedLongNumber.getText()).toEqual('Output long number: 342');\n\t       // });\n\n\t       it('should not exceed the maximum size of input array', function() {\n\t         numLimitInput.clear();\n\t         numLimitInput.sendKeys('100');\n\t         letterLimitInput.clear();\n\t         letterLimitInput.sendKeys('100');\n\t         longNumberLimitInput.clear();\n\t         longNumberLimitInput.sendKeys('100');\n\t         expect(limitedNumbers.getText()).toEqual('Output numbers: [1,2,3,4,5,6,7,8,9]');\n\t         expect(limitedLetters.getText()).toEqual('Output letters: abcdefghi');\n\t         expect(limitedLongNumber.getText()).toEqual('Output long number: 2345432342');\n\t       });\n\t     </file>\n\t   </example>\n\t*/\n\tfunction limitToFilter() {\n\t  return function(input, limit) {\n\t    if (isNumber(input)) input = input.toString();\n\t    if (!isArray(input) && !isString(input)) return input;\n\n\t    if (Math.abs(Number(limit)) === Infinity) {\n\t      limit = Number(limit);\n\t    } else {\n\t      limit = int(limit);\n\t    }\n\n\t    //NaN check on limit\n\t    if (limit) {\n\t      return limit > 0 ? input.slice(0, limit) : input.slice(limit);\n\t    } else {\n\t      return isString(input) ? \"\" : [];\n\t    }\n\t  };\n\t}\n\n\t/**\n\t * @ngdoc filter\n\t * @name orderBy\n\t * @kind function\n\t *\n\t * @description\n\t * Orders a specified `array` by the `expression` predicate. It is ordered alphabetically\n\t * for strings and numerically for numbers. Note: if you notice numbers are not being sorted\n\t * correctly, make sure they are actually being saved as numbers and not strings.\n\t *\n\t * @param {Array} array The array to sort.\n\t * @param {function(*)|string|Array.<(function(*)|string)>=} expression A predicate to be\n\t *    used by the comparator to determine the order of elements.\n\t *\n\t *    Can be one of:\n\t *\n\t *    - `function`: Getter function. The result of this function will be sorted using the\n\t *      `<`, `=`, `>` operator.\n\t *    - `string`: An Angular expression. The result of this expression is used to compare elements\n\t *      (for example `name` to sort by a property called `name` or `name.substr(0, 3)` to sort by\n\t *      3 first characters of a property called `name`). The result of a constant expression\n\t *      is interpreted as a property name to be used in comparisons (for example `\"special name\"`\n\t *      to sort object by the value of their `special name` property). An expression can be\n\t *      optionally prefixed with `+` or `-` to control ascending or descending sort order\n\t *      (for example, `+name` or `-name`). If no property is provided, (e.g. `'+'`) then the array\n\t *      element itself is used to compare where sorting.\n\t *    - `Array`: An array of function or string predicates. The first predicate in the array\n\t *      is used for sorting, but when two items are equivalent, the next predicate is used.\n\t *\n\t *    If the predicate is missing or empty then it defaults to `'+'`.\n\t *\n\t * @param {boolean=} reverse Reverse the order of the array.\n\t * @returns {Array} Sorted copy of the source array.\n\t *\n\t *\n\t * @example\n\t * The example below demonstrates a simple ngRepeat, where the data is sorted\n\t * by age in descending order (predicate is set to `'-age'`).\n\t * `reverse` is not set, which means it defaults to `false`.\n\t   <example module=\"orderByExample\">\n\t     <file name=\"index.html\">\n\t       <script>\n\t         angular.module('orderByExample', [])\n\t           .controller('ExampleController', ['$scope', function($scope) {\n\t             $scope.friends =\n\t                 [{name:'John', phone:'555-1212', age:10},\n\t                  {name:'Mary', phone:'555-9876', age:19},\n\t                  {name:'Mike', phone:'555-4321', age:21},\n\t                  {name:'Adam', phone:'555-5678', age:35},\n\t                  {name:'Julie', phone:'555-8765', age:29}];\n\t           }]);\n\t       </script>\n\t       <div ng-controller=\"ExampleController\">\n\t         <table class=\"friend\">\n\t           <tr>\n\t             <th>Name</th>\n\t             <th>Phone Number</th>\n\t             <th>Age</th>\n\t           </tr>\n\t           <tr ng-repeat=\"friend in friends | orderBy:'-age'\">\n\t             <td>{{friend.name}}</td>\n\t             <td>{{friend.phone}}</td>\n\t             <td>{{friend.age}}</td>\n\t           </tr>\n\t         </table>\n\t       </div>\n\t     </file>\n\t   </example>\n\t *\n\t * The predicate and reverse parameters can be controlled dynamically through scope properties,\n\t * as shown in the next example.\n\t * @example\n\t   <example module=\"orderByExample\">\n\t     <file name=\"index.html\">\n\t       <script>\n\t         angular.module('orderByExample', [])\n\t           .controller('ExampleController', ['$scope', function($scope) {\n\t             $scope.friends =\n\t                 [{name:'John', phone:'555-1212', age:10},\n\t                  {name:'Mary', phone:'555-9876', age:19},\n\t                  {name:'Mike', phone:'555-4321', age:21},\n\t                  {name:'Adam', phone:'555-5678', age:35},\n\t                  {name:'Julie', phone:'555-8765', age:29}];\n\t             $scope.predicate = '-age';\n\t           }]);\n\t       </script>\n\t       <div ng-controller=\"ExampleController\">\n\t         <pre>Sorting predicate = {{predicate}}; reverse = {{reverse}}</pre>\n\t         <hr/>\n\t         [ <a href=\"\" ng-click=\"predicate=''\">unsorted</a> ]\n\t         <table class=\"friend\">\n\t           <tr>\n\t             <th><a href=\"\" ng-click=\"predicate = 'name'; reverse=false\">Name</a>\n\t                 (<a href=\"\" ng-click=\"predicate = '-name'; reverse=false\">^</a>)</th>\n\t             <th><a href=\"\" ng-click=\"predicate = 'phone'; reverse=!reverse\">Phone Number</a></th>\n\t             <th><a href=\"\" ng-click=\"predicate = 'age'; reverse=!reverse\">Age</a></th>\n\t           </tr>\n\t           <tr ng-repeat=\"friend in friends | orderBy:predicate:reverse\">\n\t             <td>{{friend.name}}</td>\n\t             <td>{{friend.phone}}</td>\n\t             <td>{{friend.age}}</td>\n\t           </tr>\n\t         </table>\n\t       </div>\n\t     </file>\n\t   </example>\n\t *\n\t * It's also possible to call the orderBy filter manually, by injecting `$filter`, retrieving the\n\t * filter routine with `$filter('orderBy')`, and calling the returned filter routine with the\n\t * desired parameters.\n\t *\n\t * Example:\n\t *\n\t * @example\n\t  <example module=\"orderByExample\">\n\t    <file name=\"index.html\">\n\t      <div ng-controller=\"ExampleController\">\n\t        <table class=\"friend\">\n\t          <tr>\n\t            <th><a href=\"\" ng-click=\"reverse=false;order('name', false)\">Name</a>\n\t              (<a href=\"\" ng-click=\"order('-name',false)\">^</a>)</th>\n\t            <th><a href=\"\" ng-click=\"reverse=!reverse;order('phone', reverse)\">Phone Number</a></th>\n\t            <th><a href=\"\" ng-click=\"reverse=!reverse;order('age',reverse)\">Age</a></th>\n\t          </tr>\n\t          <tr ng-repeat=\"friend in friends\">\n\t            <td>{{friend.name}}</td>\n\t            <td>{{friend.phone}}</td>\n\t            <td>{{friend.age}}</td>\n\t          </tr>\n\t        </table>\n\t      </div>\n\t    </file>\n\n\t    <file name=\"script.js\">\n\t      angular.module('orderByExample', [])\n\t        .controller('ExampleController', ['$scope', '$filter', function($scope, $filter) {\n\t          var orderBy = $filter('orderBy');\n\t          $scope.friends = [\n\t            { name: 'John',    phone: '555-1212',    age: 10 },\n\t            { name: 'Mary',    phone: '555-9876',    age: 19 },\n\t            { name: 'Mike',    phone: '555-4321',    age: 21 },\n\t            { name: 'Adam',    phone: '555-5678',    age: 35 },\n\t            { name: 'Julie',   phone: '555-8765',    age: 29 }\n\t          ];\n\t          $scope.order = function(predicate, reverse) {\n\t            $scope.friends = orderBy($scope.friends, predicate, reverse);\n\t          };\n\t          $scope.order('-age',false);\n\t        }]);\n\t    </file>\n\t</example>\n\t */\n\torderByFilter.$inject = ['$parse'];\n\tfunction orderByFilter($parse) {\n\t  return function(array, sortPredicate, reverseOrder) {\n\t    if (!(isArrayLike(array))) return array;\n\t    sortPredicate = isArray(sortPredicate) ? sortPredicate : [sortPredicate];\n\t    if (sortPredicate.length === 0) { sortPredicate = ['+']; }\n\t    sortPredicate = sortPredicate.map(function(predicate) {\n\t      var descending = false, get = predicate || identity;\n\t      if (isString(predicate)) {\n\t        if ((predicate.charAt(0) == '+' || predicate.charAt(0) == '-')) {\n\t          descending = predicate.charAt(0) == '-';\n\t          predicate = predicate.substring(1);\n\t        }\n\t        if (predicate === '') {\n\t          // Effectively no predicate was passed so we compare identity\n\t          return reverseComparator(compare, descending);\n\t        }\n\t        get = $parse(predicate);\n\t        if (get.constant) {\n\t          var key = get();\n\t          return reverseComparator(function(a, b) {\n\t            return compare(a[key], b[key]);\n\t          }, descending);\n\t        }\n\t      }\n\t      return reverseComparator(function(a, b) {\n\t        return compare(get(a),get(b));\n\t      }, descending);\n\t    });\n\t    return slice.call(array).sort(reverseComparator(comparator, reverseOrder));\n\n\t    function comparator(o1, o2) {\n\t      for (var i = 0; i < sortPredicate.length; i++) {\n\t        var comp = sortPredicate[i](o1, o2);\n\t        if (comp !== 0) return comp;\n\t      }\n\t      return 0;\n\t    }\n\t    function reverseComparator(comp, descending) {\n\t      return descending\n\t          ? function(a, b) {return comp(b,a);}\n\t          : comp;\n\t    }\n\n\t    function isPrimitive(value) {\n\t      switch (typeof value) {\n\t        case 'number': /* falls through */\n\t        case 'boolean': /* falls through */\n\t        case 'string':\n\t          return true;\n\t        default:\n\t          return false;\n\t      }\n\t    }\n\n\t    function objectToString(value) {\n\t      if (value === null) return 'null';\n\t      if (typeof value.valueOf === 'function') {\n\t        value = value.valueOf();\n\t        if (isPrimitive(value)) return value;\n\t      }\n\t      if (typeof value.toString === 'function') {\n\t        value = value.toString();\n\t        if (isPrimitive(value)) return value;\n\t      }\n\t      return '';\n\t    }\n\n\t    function compare(v1, v2) {\n\t      var t1 = typeof v1;\n\t      var t2 = typeof v2;\n\t      if (t1 === t2 && t1 === \"object\") {\n\t        v1 = objectToString(v1);\n\t        v2 = objectToString(v2);\n\t      }\n\t      if (t1 === t2) {\n\t        if (t1 === \"string\") {\n\t           v1 = v1.toLowerCase();\n\t           v2 = v2.toLowerCase();\n\t        }\n\t        if (v1 === v2) return 0;\n\t        return v1 < v2 ? -1 : 1;\n\t      } else {\n\t        return t1 < t2 ? -1 : 1;\n\t      }\n\t    }\n\t  };\n\t}\n\n\tfunction ngDirective(directive) {\n\t  if (isFunction(directive)) {\n\t    directive = {\n\t      link: directive\n\t    };\n\t  }\n\t  directive.restrict = directive.restrict || 'AC';\n\t  return valueFn(directive);\n\t}\n\n\t/**\n\t * @ngdoc directive\n\t * @name a\n\t * @restrict E\n\t *\n\t * @description\n\t * Modifies the default behavior of the html A tag so that the default action is prevented when\n\t * the href attribute is empty.\n\t *\n\t * This change permits the easy creation of action links with the `ngClick` directive\n\t * without changing the location or causing page reloads, e.g.:\n\t * `<a href=\"\" ng-click=\"list.addItem()\">Add Item</a>`\n\t */\n\tvar htmlAnchorDirective = valueFn({\n\t  restrict: 'E',\n\t  compile: function(element, attr) {\n\t    if (!attr.href && !attr.xlinkHref && !attr.name) {\n\t      return function(scope, element) {\n\t        // If the linked element is not an anchor tag anymore, do nothing\n\t        if (element[0].nodeName.toLowerCase() !== 'a') return;\n\n\t        // SVGAElement does not use the href attribute, but rather the 'xlinkHref' attribute.\n\t        var href = toString.call(element.prop('href')) === '[object SVGAnimatedString]' ?\n\t                   'xlink:href' : 'href';\n\t        element.on('click', function(event) {\n\t          // if we have no href url, then don't navigate anywhere.\n\t          if (!element.attr(href)) {\n\t            event.preventDefault();\n\t          }\n\t        });\n\t      };\n\t    }\n\t  }\n\t});\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngHref\n\t * @restrict A\n\t * @priority 99\n\t *\n\t * @description\n\t * Using Angular markup like `{{hash}}` in an href attribute will\n\t * make the link go to the wrong URL if the user clicks it before\n\t * Angular has a chance to replace the `{{hash}}` markup with its\n\t * value. Until Angular replaces the markup the link will be broken\n\t * and will most likely return a 404 error. The `ngHref` directive\n\t * solves this problem.\n\t *\n\t * The wrong way to write it:\n\t * ```html\n\t * <a href=\"http://www.gravatar.com/avatar/{{hash}}\">link1</a>\n\t * ```\n\t *\n\t * The correct way to write it:\n\t * ```html\n\t * <a ng-href=\"http://www.gravatar.com/avatar/{{hash}}\">link1</a>\n\t * ```\n\t *\n\t * @element A\n\t * @param {template} ngHref any string which can contain `{{}}` markup.\n\t *\n\t * @example\n\t * This example shows various combinations of `href`, `ng-href` and `ng-click` attributes\n\t * in links and their different behaviors:\n\t    <example>\n\t      <file name=\"index.html\">\n\t        <input ng-model=\"value\" /><br />\n\t        <a id=\"link-1\" href ng-click=\"value = 1\">link 1</a> (link, don't reload)<br />\n\t        <a id=\"link-2\" href=\"\" ng-click=\"value = 2\">link 2</a> (link, don't reload)<br />\n\t        <a id=\"link-3\" ng-href=\"/{{'123'}}\">link 3</a> (link, reload!)<br />\n\t        <a id=\"link-4\" href=\"\" name=\"xx\" ng-click=\"value = 4\">anchor</a> (link, don't reload)<br />\n\t        <a id=\"link-5\" name=\"xxx\" ng-click=\"value = 5\">anchor</a> (no link)<br />\n\t        <a id=\"link-6\" ng-href=\"{{value}}\">link</a> (link, change location)\n\t      </file>\n\t      <file name=\"protractor.js\" type=\"protractor\">\n\t        it('should execute ng-click but not reload when href without value', function() {\n\t          element(by.id('link-1')).click();\n\t          expect(element(by.model('value')).getAttribute('value')).toEqual('1');\n\t          expect(element(by.id('link-1')).getAttribute('href')).toBe('');\n\t        });\n\n\t        it('should execute ng-click but not reload when href empty string', function() {\n\t          element(by.id('link-2')).click();\n\t          expect(element(by.model('value')).getAttribute('value')).toEqual('2');\n\t          expect(element(by.id('link-2')).getAttribute('href')).toBe('');\n\t        });\n\n\t        it('should execute ng-click and change url when ng-href specified', function() {\n\t          expect(element(by.id('link-3')).getAttribute('href')).toMatch(/\\/123$/);\n\n\t          element(by.id('link-3')).click();\n\n\t          // At this point, we navigate away from an Angular page, so we need\n\t          // to use browser.driver to get the base webdriver.\n\n\t          browser.wait(function() {\n\t            return browser.driver.getCurrentUrl().then(function(url) {\n\t              return url.match(/\\/123$/);\n\t            });\n\t          }, 5000, 'page should navigate to /123');\n\t        });\n\n\t        xit('should execute ng-click but not reload when href empty string and name specified', function() {\n\t          element(by.id('link-4')).click();\n\t          expect(element(by.model('value')).getAttribute('value')).toEqual('4');\n\t          expect(element(by.id('link-4')).getAttribute('href')).toBe('');\n\t        });\n\n\t        it('should execute ng-click but not reload when no href but name specified', function() {\n\t          element(by.id('link-5')).click();\n\t          expect(element(by.model('value')).getAttribute('value')).toEqual('5');\n\t          expect(element(by.id('link-5')).getAttribute('href')).toBe(null);\n\t        });\n\n\t        it('should only change url when only ng-href', function() {\n\t          element(by.model('value')).clear();\n\t          element(by.model('value')).sendKeys('6');\n\t          expect(element(by.id('link-6')).getAttribute('href')).toMatch(/\\/6$/);\n\n\t          element(by.id('link-6')).click();\n\n\t          // At this point, we navigate away from an Angular page, so we need\n\t          // to use browser.driver to get the base webdriver.\n\t          browser.wait(function() {\n\t            return browser.driver.getCurrentUrl().then(function(url) {\n\t              return url.match(/\\/6$/);\n\t            });\n\t          }, 5000, 'page should navigate to /6');\n\t        });\n\t      </file>\n\t    </example>\n\t */\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngSrc\n\t * @restrict A\n\t * @priority 99\n\t *\n\t * @description\n\t * Using Angular markup like `{{hash}}` in a `src` attribute doesn't\n\t * work right: The browser will fetch from the URL with the literal\n\t * text `{{hash}}` until Angular replaces the expression inside\n\t * `{{hash}}`. The `ngSrc` directive solves this problem.\n\t *\n\t * The buggy way to write it:\n\t * ```html\n\t * <img src=\"http://www.gravatar.com/avatar/{{hash}}\"/>\n\t * ```\n\t *\n\t * The correct way to write it:\n\t * ```html\n\t * <img ng-src=\"http://www.gravatar.com/avatar/{{hash}}\"/>\n\t * ```\n\t *\n\t * @element IMG\n\t * @param {template} ngSrc any string which can contain `{{}}` markup.\n\t */\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngSrcset\n\t * @restrict A\n\t * @priority 99\n\t *\n\t * @description\n\t * Using Angular markup like `{{hash}}` in a `srcset` attribute doesn't\n\t * work right: The browser will fetch from the URL with the literal\n\t * text `{{hash}}` until Angular replaces the expression inside\n\t * `{{hash}}`. The `ngSrcset` directive solves this problem.\n\t *\n\t * The buggy way to write it:\n\t * ```html\n\t * <img srcset=\"http://www.gravatar.com/avatar/{{hash}} 2x\"/>\n\t * ```\n\t *\n\t * The correct way to write it:\n\t * ```html\n\t * <img ng-srcset=\"http://www.gravatar.com/avatar/{{hash}} 2x\"/>\n\t * ```\n\t *\n\t * @element IMG\n\t * @param {template} ngSrcset any string which can contain `{{}}` markup.\n\t */\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngDisabled\n\t * @restrict A\n\t * @priority 100\n\t *\n\t * @description\n\t *\n\t * This directive sets the `disabled` attribute on the element if the\n\t * {@link guide/expression expression} inside `ngDisabled` evaluates to truthy.\n\t *\n\t * A special directive is necessary because we cannot use interpolation inside the `disabled`\n\t * attribute.  The following example would make the button enabled on Chrome/Firefox\n\t * but not on older IEs:\n\t *\n\t * ```html\n\t * <!-- See below for an example of ng-disabled being used correctly -->\n\t * <div ng-init=\"isDisabled = false\">\n\t *  <button disabled=\"{{isDisabled}}\">Disabled</button>\n\t * </div>\n\t * ```\n\t *\n\t * This is because the HTML specification does not require browsers to preserve the values of\n\t * boolean attributes such as `disabled` (Their presence means true and their absence means false.)\n\t * If we put an Angular interpolation expression into such an attribute then the\n\t * binding information would be lost when the browser removes the attribute.\n\t *\n\t * @example\n\t    <example>\n\t      <file name=\"index.html\">\n\t        Click me to toggle: <input type=\"checkbox\" ng-model=\"checked\"><br/>\n\t        <button ng-model=\"button\" ng-disabled=\"checked\">Button</button>\n\t      </file>\n\t      <file name=\"protractor.js\" type=\"protractor\">\n\t        it('should toggle button', function() {\n\t          expect(element(by.css('button')).getAttribute('disabled')).toBeFalsy();\n\t          element(by.model('checked')).click();\n\t          expect(element(by.css('button')).getAttribute('disabled')).toBeTruthy();\n\t        });\n\t      </file>\n\t    </example>\n\t *\n\t * @element INPUT\n\t * @param {expression} ngDisabled If the {@link guide/expression expression} is truthy,\n\t *     then the `disabled` attribute will be set on the element\n\t */\n\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngChecked\n\t * @restrict A\n\t * @priority 100\n\t *\n\t * @description\n\t * The HTML specification does not require browsers to preserve the values of boolean attributes\n\t * such as checked. (Their presence means true and their absence means false.)\n\t * If we put an Angular interpolation expression into such an attribute then the\n\t * binding information would be lost when the browser removes the attribute.\n\t * The `ngChecked` directive solves this problem for the `checked` attribute.\n\t * This complementary directive is not removed by the browser and so provides\n\t * a permanent reliable place to store the binding information.\n\t * @example\n\t    <example>\n\t      <file name=\"index.html\">\n\t        Check me to check both: <input type=\"checkbox\" ng-model=\"master\"><br/>\n\t        <input id=\"checkSlave\" type=\"checkbox\" ng-checked=\"master\">\n\t      </file>\n\t      <file name=\"protractor.js\" type=\"protractor\">\n\t        it('should check both checkBoxes', function() {\n\t          expect(element(by.id('checkSlave')).getAttribute('checked')).toBeFalsy();\n\t          element(by.model('master')).click();\n\t          expect(element(by.id('checkSlave')).getAttribute('checked')).toBeTruthy();\n\t        });\n\t      </file>\n\t    </example>\n\t *\n\t * @element INPUT\n\t * @param {expression} ngChecked If the {@link guide/expression expression} is truthy,\n\t *     then special attribute \"checked\" will be set on the element\n\t */\n\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngReadonly\n\t * @restrict A\n\t * @priority 100\n\t *\n\t * @description\n\t * The HTML specification does not require browsers to preserve the values of boolean attributes\n\t * such as readonly. (Their presence means true and their absence means false.)\n\t * If we put an Angular interpolation expression into such an attribute then the\n\t * binding information would be lost when the browser removes the attribute.\n\t * The `ngReadonly` directive solves this problem for the `readonly` attribute.\n\t * This complementary directive is not removed by the browser and so provides\n\t * a permanent reliable place to store the binding information.\n\t * @example\n\t    <example>\n\t      <file name=\"index.html\">\n\t        Check me to make text readonly: <input type=\"checkbox\" ng-model=\"checked\"><br/>\n\t        <input type=\"text\" ng-readonly=\"checked\" value=\"I'm Angular\"/>\n\t      </file>\n\t      <file name=\"protractor.js\" type=\"protractor\">\n\t        it('should toggle readonly attr', function() {\n\t          expect(element(by.css('[type=\"text\"]')).getAttribute('readonly')).toBeFalsy();\n\t          element(by.model('checked')).click();\n\t          expect(element(by.css('[type=\"text\"]')).getAttribute('readonly')).toBeTruthy();\n\t        });\n\t      </file>\n\t    </example>\n\t *\n\t * @element INPUT\n\t * @param {expression} ngReadonly If the {@link guide/expression expression} is truthy,\n\t *     then special attribute \"readonly\" will be set on the element\n\t */\n\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngSelected\n\t * @restrict A\n\t * @priority 100\n\t *\n\t * @description\n\t * The HTML specification does not require browsers to preserve the values of boolean attributes\n\t * such as selected. (Their presence means true and their absence means false.)\n\t * If we put an Angular interpolation expression into such an attribute then the\n\t * binding information would be lost when the browser removes the attribute.\n\t * The `ngSelected` directive solves this problem for the `selected` attribute.\n\t * This complementary directive is not removed by the browser and so provides\n\t * a permanent reliable place to store the binding information.\n\t *\n\t * @example\n\t    <example>\n\t      <file name=\"index.html\">\n\t        Check me to select: <input type=\"checkbox\" ng-model=\"selected\"><br/>\n\t        <select>\n\t          <option>Hello!</option>\n\t          <option id=\"greet\" ng-selected=\"selected\">Greetings!</option>\n\t        </select>\n\t      </file>\n\t      <file name=\"protractor.js\" type=\"protractor\">\n\t        it('should select Greetings!', function() {\n\t          expect(element(by.id('greet')).getAttribute('selected')).toBeFalsy();\n\t          element(by.model('selected')).click();\n\t          expect(element(by.id('greet')).getAttribute('selected')).toBeTruthy();\n\t        });\n\t      </file>\n\t    </example>\n\t *\n\t * @element OPTION\n\t * @param {expression} ngSelected If the {@link guide/expression expression} is truthy,\n\t *     then special attribute \"selected\" will be set on the element\n\t */\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngOpen\n\t * @restrict A\n\t * @priority 100\n\t *\n\t * @description\n\t * The HTML specification does not require browsers to preserve the values of boolean attributes\n\t * such as open. (Their presence means true and their absence means false.)\n\t * If we put an Angular interpolation expression into such an attribute then the\n\t * binding information would be lost when the browser removes the attribute.\n\t * The `ngOpen` directive solves this problem for the `open` attribute.\n\t * This complementary directive is not removed by the browser and so provides\n\t * a permanent reliable place to store the binding information.\n\t * @example\n\t     <example>\n\t       <file name=\"index.html\">\n\t         Check me check multiple: <input type=\"checkbox\" ng-model=\"open\"><br/>\n\t         <details id=\"details\" ng-open=\"open\">\n\t            <summary>Show/Hide me</summary>\n\t         </details>\n\t       </file>\n\t       <file name=\"protractor.js\" type=\"protractor\">\n\t         it('should toggle open', function() {\n\t           expect(element(by.id('details')).getAttribute('open')).toBeFalsy();\n\t           element(by.model('open')).click();\n\t           expect(element(by.id('details')).getAttribute('open')).toBeTruthy();\n\t         });\n\t       </file>\n\t     </example>\n\t *\n\t * @element DETAILS\n\t * @param {expression} ngOpen If the {@link guide/expression expression} is truthy,\n\t *     then special attribute \"open\" will be set on the element\n\t */\n\n\tvar ngAttributeAliasDirectives = {};\n\n\n\t// boolean attrs are evaluated\n\tforEach(BOOLEAN_ATTR, function(propName, attrName) {\n\t  // binding to multiple is not supported\n\t  if (propName == \"multiple\") return;\n\n\t  var normalized = directiveNormalize('ng-' + attrName);\n\t  ngAttributeAliasDirectives[normalized] = function() {\n\t    return {\n\t      restrict: 'A',\n\t      priority: 100,\n\t      link: function(scope, element, attr) {\n\t        scope.$watch(attr[normalized], function ngBooleanAttrWatchAction(value) {\n\t          attr.$set(attrName, !!value);\n\t        });\n\t      }\n\t    };\n\t  };\n\t});\n\n\t// aliased input attrs are evaluated\n\tforEach(ALIASED_ATTR, function(htmlAttr, ngAttr) {\n\t  ngAttributeAliasDirectives[ngAttr] = function() {\n\t    return {\n\t      priority: 100,\n\t      link: function(scope, element, attr) {\n\t        //special case ngPattern when a literal regular expression value\n\t        //is used as the expression (this way we don't have to watch anything).\n\t        if (ngAttr === \"ngPattern\" && attr.ngPattern.charAt(0) == \"/\") {\n\t          var match = attr.ngPattern.match(REGEX_STRING_REGEXP);\n\t          if (match) {\n\t            attr.$set(\"ngPattern\", new RegExp(match[1], match[2]));\n\t            return;\n\t          }\n\t        }\n\n\t        scope.$watch(attr[ngAttr], function ngAttrAliasWatchAction(value) {\n\t          attr.$set(ngAttr, value);\n\t        });\n\t      }\n\t    };\n\t  };\n\t});\n\n\t// ng-src, ng-srcset, ng-href are interpolated\n\tforEach(['src', 'srcset', 'href'], function(attrName) {\n\t  var normalized = directiveNormalize('ng-' + attrName);\n\t  ngAttributeAliasDirectives[normalized] = function() {\n\t    return {\n\t      priority: 99, // it needs to run after the attributes are interpolated\n\t      link: function(scope, element, attr) {\n\t        var propName = attrName,\n\t            name = attrName;\n\n\t        if (attrName === 'href' &&\n\t            toString.call(element.prop('href')) === '[object SVGAnimatedString]') {\n\t          name = 'xlinkHref';\n\t          attr.$attr[name] = 'xlink:href';\n\t          propName = null;\n\t        }\n\n\t        attr.$observe(normalized, function(value) {\n\t          if (!value) {\n\t            if (attrName === 'href') {\n\t              attr.$set(name, null);\n\t            }\n\t            return;\n\t          }\n\n\t          attr.$set(name, value);\n\n\t          // on IE, if \"ng:src\" directive declaration is used and \"src\" attribute doesn't exist\n\t          // then calling element.setAttribute('src', 'foo') doesn't do anything, so we need\n\t          // to set the property as well to achieve the desired effect.\n\t          // we use attr[attrName] value since $set can sanitize the url.\n\t          if (msie && propName) element.prop(propName, attr[name]);\n\t        });\n\t      }\n\t    };\n\t  };\n\t});\n\n\t/* global -nullFormCtrl, -SUBMITTED_CLASS, addSetValidityMethod: true\n\t */\n\tvar nullFormCtrl = {\n\t  $addControl: noop,\n\t  $$renameControl: nullFormRenameControl,\n\t  $removeControl: noop,\n\t  $setValidity: noop,\n\t  $setDirty: noop,\n\t  $setPristine: noop,\n\t  $setSubmitted: noop\n\t},\n\tSUBMITTED_CLASS = 'ng-submitted';\n\n\tfunction nullFormRenameControl(control, name) {\n\t  control.$name = name;\n\t}\n\n\t/**\n\t * @ngdoc type\n\t * @name form.FormController\n\t *\n\t * @property {boolean} $pristine True if user has not interacted with the form yet.\n\t * @property {boolean} $dirty True if user has already interacted with the form.\n\t * @property {boolean} $valid True if all of the containing forms and controls are valid.\n\t * @property {boolean} $invalid True if at least one containing control or form is invalid.\n\t * @property {boolean} $submitted True if user has submitted the form even if its invalid.\n\t *\n\t * @property {Object} $error Is an object hash, containing references to controls or\n\t *  forms with failing validators, where:\n\t *\n\t *  - keys are validation tokens (error names),\n\t *  - values are arrays of controls or forms that have a failing validator for given error name.\n\t *\n\t *  Built-in validation tokens:\n\t *\n\t *  - `email`\n\t *  - `max`\n\t *  - `maxlength`\n\t *  - `min`\n\t *  - `minlength`\n\t *  - `number`\n\t *  - `pattern`\n\t *  - `required`\n\t *  - `url`\n\t *  - `date`\n\t *  - `datetimelocal`\n\t *  - `time`\n\t *  - `week`\n\t *  - `month`\n\t *\n\t * @description\n\t * `FormController` keeps track of all its controls and nested forms as well as the state of them,\n\t * such as being valid/invalid or dirty/pristine.\n\t *\n\t * Each {@link ng.directive:form form} directive creates an instance\n\t * of `FormController`.\n\t *\n\t */\n\t//asks for $scope to fool the BC controller module\n\tFormController.$inject = ['$element', '$attrs', '$scope', '$animate', '$interpolate'];\n\tfunction FormController(element, attrs, $scope, $animate, $interpolate) {\n\t  var form = this,\n\t      controls = [];\n\n\t  var parentForm = form.$$parentForm = element.parent().controller('form') || nullFormCtrl;\n\n\t  // init state\n\t  form.$error = {};\n\t  form.$$success = {};\n\t  form.$pending = undefined;\n\t  form.$name = $interpolate(attrs.name || attrs.ngForm || '')($scope);\n\t  form.$dirty = false;\n\t  form.$pristine = true;\n\t  form.$valid = true;\n\t  form.$invalid = false;\n\t  form.$submitted = false;\n\n\t  parentForm.$addControl(form);\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name form.FormController#$rollbackViewValue\n\t   *\n\t   * @description\n\t   * Rollback all form controls pending updates to the `$modelValue`.\n\t   *\n\t   * Updates may be pending by a debounced event or because the input is waiting for a some future\n\t   * event defined in `ng-model-options`. This method is typically needed by the reset button of\n\t   * a form that uses `ng-model-options` to pend updates.\n\t   */\n\t  form.$rollbackViewValue = function() {\n\t    forEach(controls, function(control) {\n\t      control.$rollbackViewValue();\n\t    });\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name form.FormController#$commitViewValue\n\t   *\n\t   * @description\n\t   * Commit all form controls pending updates to the `$modelValue`.\n\t   *\n\t   * Updates may be pending by a debounced event or because the input is waiting for a some future\n\t   * event defined in `ng-model-options`. This method is rarely needed as `NgModelController`\n\t   * usually handles calling this in response to input events.\n\t   */\n\t  form.$commitViewValue = function() {\n\t    forEach(controls, function(control) {\n\t      control.$commitViewValue();\n\t    });\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name form.FormController#$addControl\n\t   *\n\t   * @description\n\t   * Register a control with the form.\n\t   *\n\t   * Input elements using ngModelController do this automatically when they are linked.\n\t   */\n\t  form.$addControl = function(control) {\n\t    // Breaking change - before, inputs whose name was \"hasOwnProperty\" were quietly ignored\n\t    // and not added to the scope.  Now we throw an error.\n\t    assertNotHasOwnProperty(control.$name, 'input');\n\t    controls.push(control);\n\n\t    if (control.$name) {\n\t      form[control.$name] = control;\n\t    }\n\t  };\n\n\t  // Private API: rename a form control\n\t  form.$$renameControl = function(control, newName) {\n\t    var oldName = control.$name;\n\n\t    if (form[oldName] === control) {\n\t      delete form[oldName];\n\t    }\n\t    form[newName] = control;\n\t    control.$name = newName;\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name form.FormController#$removeControl\n\t   *\n\t   * @description\n\t   * Deregister a control from the form.\n\t   *\n\t   * Input elements using ngModelController do this automatically when they are destroyed.\n\t   */\n\t  form.$removeControl = function(control) {\n\t    if (control.$name && form[control.$name] === control) {\n\t      delete form[control.$name];\n\t    }\n\t    forEach(form.$pending, function(value, name) {\n\t      form.$setValidity(name, null, control);\n\t    });\n\t    forEach(form.$error, function(value, name) {\n\t      form.$setValidity(name, null, control);\n\t    });\n\t    forEach(form.$$success, function(value, name) {\n\t      form.$setValidity(name, null, control);\n\t    });\n\n\t    arrayRemove(controls, control);\n\t  };\n\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name form.FormController#$setValidity\n\t   *\n\t   * @description\n\t   * Sets the validity of a form control.\n\t   *\n\t   * This method will also propagate to parent forms.\n\t   */\n\t  addSetValidityMethod({\n\t    ctrl: this,\n\t    $element: element,\n\t    set: function(object, property, controller) {\n\t      var list = object[property];\n\t      if (!list) {\n\t        object[property] = [controller];\n\t      } else {\n\t        var index = list.indexOf(controller);\n\t        if (index === -1) {\n\t          list.push(controller);\n\t        }\n\t      }\n\t    },\n\t    unset: function(object, property, controller) {\n\t      var list = object[property];\n\t      if (!list) {\n\t        return;\n\t      }\n\t      arrayRemove(list, controller);\n\t      if (list.length === 0) {\n\t        delete object[property];\n\t      }\n\t    },\n\t    parentForm: parentForm,\n\t    $animate: $animate\n\t  });\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name form.FormController#$setDirty\n\t   *\n\t   * @description\n\t   * Sets the form to a dirty state.\n\t   *\n\t   * This method can be called to add the 'ng-dirty' class and set the form to a dirty\n\t   * state (ng-dirty class). This method will also propagate to parent forms.\n\t   */\n\t  form.$setDirty = function() {\n\t    $animate.removeClass(element, PRISTINE_CLASS);\n\t    $animate.addClass(element, DIRTY_CLASS);\n\t    form.$dirty = true;\n\t    form.$pristine = false;\n\t    parentForm.$setDirty();\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name form.FormController#$setPristine\n\t   *\n\t   * @description\n\t   * Sets the form to its pristine state.\n\t   *\n\t   * This method can be called to remove the 'ng-dirty' class and set the form to its pristine\n\t   * state (ng-pristine class). This method will also propagate to all the controls contained\n\t   * in this form.\n\t   *\n\t   * Setting a form back to a pristine state is often useful when we want to 'reuse' a form after\n\t   * saving or resetting it.\n\t   */\n\t  form.$setPristine = function() {\n\t    $animate.setClass(element, PRISTINE_CLASS, DIRTY_CLASS + ' ' + SUBMITTED_CLASS);\n\t    form.$dirty = false;\n\t    form.$pristine = true;\n\t    form.$submitted = false;\n\t    forEach(controls, function(control) {\n\t      control.$setPristine();\n\t    });\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name form.FormController#$setUntouched\n\t   *\n\t   * @description\n\t   * Sets the form to its untouched state.\n\t   *\n\t   * This method can be called to remove the 'ng-touched' class and set the form controls to their\n\t   * untouched state (ng-untouched class).\n\t   *\n\t   * Setting a form controls back to their untouched state is often useful when setting the form\n\t   * back to its pristine state.\n\t   */\n\t  form.$setUntouched = function() {\n\t    forEach(controls, function(control) {\n\t      control.$setUntouched();\n\t    });\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name form.FormController#$setSubmitted\n\t   *\n\t   * @description\n\t   * Sets the form to its submitted state.\n\t   */\n\t  form.$setSubmitted = function() {\n\t    $animate.addClass(element, SUBMITTED_CLASS);\n\t    form.$submitted = true;\n\t    parentForm.$setSubmitted();\n\t  };\n\t}\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngForm\n\t * @restrict EAC\n\t *\n\t * @description\n\t * Nestable alias of {@link ng.directive:form `form`} directive. HTML\n\t * does not allow nesting of form elements. It is useful to nest forms, for example if the validity of a\n\t * sub-group of controls needs to be determined.\n\t *\n\t * Note: the purpose of `ngForm` is to group controls,\n\t * but not to be a replacement for the `<form>` tag with all of its capabilities\n\t * (e.g. posting to the server, ...).\n\t *\n\t * @param {string=} ngForm|name Name of the form. If specified, the form controller will be published into\n\t *                       related scope, under this name.\n\t *\n\t */\n\n\t /**\n\t * @ngdoc directive\n\t * @name form\n\t * @restrict E\n\t *\n\t * @description\n\t * Directive that instantiates\n\t * {@link form.FormController FormController}.\n\t *\n\t * If the `name` attribute is specified, the form controller is published onto the current scope under\n\t * this name.\n\t *\n\t * # Alias: {@link ng.directive:ngForm `ngForm`}\n\t *\n\t * In Angular, forms can be nested. This means that the outer form is valid when all of the child\n\t * forms are valid as well. However, browsers do not allow nesting of `<form>` elements, so\n\t * Angular provides the {@link ng.directive:ngForm `ngForm`} directive which behaves identically to\n\t * `<form>` but can be nested.  This allows you to have nested forms, which is very useful when\n\t * using Angular validation directives in forms that are dynamically generated using the\n\t * {@link ng.directive:ngRepeat `ngRepeat`} directive. Since you cannot dynamically generate the `name`\n\t * attribute of input elements using interpolation, you have to wrap each set of repeated inputs in an\n\t * `ngForm` directive and nest these in an outer `form` element.\n\t *\n\t *\n\t * # CSS classes\n\t *  - `ng-valid` is set if the form is valid.\n\t *  - `ng-invalid` is set if the form is invalid.\n\t *  - `ng-pristine` is set if the form is pristine.\n\t *  - `ng-dirty` is set if the form is dirty.\n\t *  - `ng-submitted` is set if the form was submitted.\n\t *\n\t * Keep in mind that ngAnimate can detect each of these classes when added and removed.\n\t *\n\t *\n\t * # Submitting a form and preventing the default action\n\t *\n\t * Since the role of forms in client-side Angular applications is different than in classical\n\t * roundtrip apps, it is desirable for the browser not to translate the form submission into a full\n\t * page reload that sends the data to the server. Instead some javascript logic should be triggered\n\t * to handle the form submission in an application-specific way.\n\t *\n\t * For this reason, Angular prevents the default action (form submission to the server) unless the\n\t * `<form>` element has an `action` attribute specified.\n\t *\n\t * You can use one of the following two ways to specify what javascript method should be called when\n\t * a form is submitted:\n\t *\n\t * - {@link ng.directive:ngSubmit ngSubmit} directive on the form element\n\t * - {@link ng.directive:ngClick ngClick} directive on the first\n\t  *  button or input field of type submit (input[type=submit])\n\t *\n\t * To prevent double execution of the handler, use only one of the {@link ng.directive:ngSubmit ngSubmit}\n\t * or {@link ng.directive:ngClick ngClick} directives.\n\t * This is because of the following form submission rules in the HTML specification:\n\t *\n\t * - If a form has only one input field then hitting enter in this field triggers form submit\n\t * (`ngSubmit`)\n\t * - if a form has 2+ input fields and no buttons or input[type=submit] then hitting enter\n\t * doesn't trigger submit\n\t * - if a form has one or more input fields and one or more buttons or input[type=submit] then\n\t * hitting enter in any of the input fields will trigger the click handler on the *first* button or\n\t * input[type=submit] (`ngClick`) *and* a submit handler on the enclosing form (`ngSubmit`)\n\t *\n\t * Any pending `ngModelOptions` changes will take place immediately when an enclosing form is\n\t * submitted. Note that `ngClick` events will occur before the model is updated. Use `ngSubmit`\n\t * to have access to the updated model.\n\t *\n\t * ## Animation Hooks\n\t *\n\t * Animations in ngForm are triggered when any of the associated CSS classes are added and removed.\n\t * These classes are: `.ng-pristine`, `.ng-dirty`, `.ng-invalid` and `.ng-valid` as well as any\n\t * other validations that are performed within the form. Animations in ngForm are similar to how\n\t * they work in ngClass and animations can be hooked into using CSS transitions, keyframes as well\n\t * as JS animations.\n\t *\n\t * The following example shows a simple way to utilize CSS transitions to style a form element\n\t * that has been rendered as invalid after it has been validated:\n\t *\n\t * <pre>\n\t * //be sure to include ngAnimate as a module to hook into more\n\t * //advanced animations\n\t * .my-form {\n\t *   transition:0.5s linear all;\n\t *   background: white;\n\t * }\n\t * .my-form.ng-invalid {\n\t *   background: red;\n\t *   color:white;\n\t * }\n\t * </pre>\n\t *\n\t * @example\n\t    <example deps=\"angular-animate.js\" animations=\"true\" fixBase=\"true\" module=\"formExample\">\n\t      <file name=\"index.html\">\n\t       <script>\n\t         angular.module('formExample', [])\n\t           .controller('FormController', ['$scope', function($scope) {\n\t             $scope.userType = 'guest';\n\t           }]);\n\t       </script>\n\t       <style>\n\t        .my-form {\n\t          -webkit-transition:all linear 0.5s;\n\t          transition:all linear 0.5s;\n\t          background: transparent;\n\t        }\n\t        .my-form.ng-invalid {\n\t          background: red;\n\t        }\n\t       </style>\n\t       <form name=\"myForm\" ng-controller=\"FormController\" class=\"my-form\">\n\t         userType: <input name=\"input\" ng-model=\"userType\" required>\n\t         <span class=\"error\" ng-show=\"myForm.input.$error.required\">Required!</span><br>\n\t         <tt>userType = {{userType}}</tt><br>\n\t         <tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br>\n\t         <tt>myForm.input.$error = {{myForm.input.$error}}</tt><br>\n\t         <tt>myForm.$valid = {{myForm.$valid}}</tt><br>\n\t         <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br>\n\t        </form>\n\t      </file>\n\t      <file name=\"protractor.js\" type=\"protractor\">\n\t        it('should initialize to model', function() {\n\t          var userType = element(by.binding('userType'));\n\t          var valid = element(by.binding('myForm.input.$valid'));\n\n\t          expect(userType.getText()).toContain('guest');\n\t          expect(valid.getText()).toContain('true');\n\t        });\n\n\t        it('should be invalid if empty', function() {\n\t          var userType = element(by.binding('userType'));\n\t          var valid = element(by.binding('myForm.input.$valid'));\n\t          var userInput = element(by.model('userType'));\n\n\t          userInput.clear();\n\t          userInput.sendKeys('');\n\n\t          expect(userType.getText()).toEqual('userType =');\n\t          expect(valid.getText()).toContain('false');\n\t        });\n\t      </file>\n\t    </example>\n\t *\n\t * @param {string=} name Name of the form. If specified, the form controller will be published into\n\t *                       related scope, under this name.\n\t */\n\tvar formDirectiveFactory = function(isNgForm) {\n\t  return ['$timeout', function($timeout) {\n\t    var formDirective = {\n\t      name: 'form',\n\t      restrict: isNgForm ? 'EAC' : 'E',\n\t      controller: FormController,\n\t      compile: function ngFormCompile(formElement, attr) {\n\t        // Setup initial state of the control\n\t        formElement.addClass(PRISTINE_CLASS).addClass(VALID_CLASS);\n\n\t        var nameAttr = attr.name ? 'name' : (isNgForm && attr.ngForm ? 'ngForm' : false);\n\n\t        return {\n\t          pre: function ngFormPreLink(scope, formElement, attr, controller) {\n\t            // if `action` attr is not present on the form, prevent the default action (submission)\n\t            if (!('action' in attr)) {\n\t              // we can't use jq events because if a form is destroyed during submission the default\n\t              // action is not prevented. see #1238\n\t              //\n\t              // IE 9 is not affected because it doesn't fire a submit event and try to do a full\n\t              // page reload if the form was destroyed by submission of the form via a click handler\n\t              // on a button in the form. Looks like an IE9 specific bug.\n\t              var handleFormSubmission = function(event) {\n\t                scope.$apply(function() {\n\t                  controller.$commitViewValue();\n\t                  controller.$setSubmitted();\n\t                });\n\n\t                event.preventDefault();\n\t              };\n\n\t              addEventListenerFn(formElement[0], 'submit', handleFormSubmission);\n\n\t              // unregister the preventDefault listener so that we don't not leak memory but in a\n\t              // way that will achieve the prevention of the default action.\n\t              formElement.on('$destroy', function() {\n\t                $timeout(function() {\n\t                  removeEventListenerFn(formElement[0], 'submit', handleFormSubmission);\n\t                }, 0, false);\n\t              });\n\t            }\n\n\t            var parentFormCtrl = controller.$$parentForm;\n\n\t            if (nameAttr) {\n\t              setter(scope, null, controller.$name, controller, controller.$name);\n\t              attr.$observe(nameAttr, function(newValue) {\n\t                if (controller.$name === newValue) return;\n\t                setter(scope, null, controller.$name, undefined, controller.$name);\n\t                parentFormCtrl.$$renameControl(controller, newValue);\n\t                setter(scope, null, controller.$name, controller, controller.$name);\n\t              });\n\t            }\n\t            formElement.on('$destroy', function() {\n\t              parentFormCtrl.$removeControl(controller);\n\t              if (nameAttr) {\n\t                setter(scope, null, attr[nameAttr], undefined, controller.$name);\n\t              }\n\t              extend(controller, nullFormCtrl); //stop propagating child destruction handlers upwards\n\t            });\n\t          }\n\t        };\n\t      }\n\t    };\n\n\t    return formDirective;\n\t  }];\n\t};\n\n\tvar formDirective = formDirectiveFactory();\n\tvar ngFormDirective = formDirectiveFactory(true);\n\n\t/* global VALID_CLASS: false,\n\t  INVALID_CLASS: false,\n\t  PRISTINE_CLASS: false,\n\t  DIRTY_CLASS: false,\n\t  UNTOUCHED_CLASS: false,\n\t  TOUCHED_CLASS: false,\n\t  $ngModelMinErr: false,\n\t*/\n\n\t// Regex code is obtained from SO: https://stackoverflow.com/questions/3143070/javascript-regex-iso-datetime#answer-3143231\n\tvar ISO_DATE_REGEXP = /\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d:[0-5]\\d\\.\\d+([+-][0-2]\\d:[0-5]\\d|Z)/;\n\tvar URL_REGEXP = /^(ftp|http|https):\\/\\/(\\w+:{0,1}\\w*@)?(\\S+)(:[0-9]+)?(\\/|\\/([\\w#!:.?+=&%@!\\-\\/]))?$/;\n\tvar EMAIL_REGEXP = /^[a-z0-9!#$%&'*+\\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i;\n\tvar NUMBER_REGEXP = /^\\s*(\\-|\\+)?(\\d+|(\\d*(\\.\\d*)))\\s*$/;\n\tvar DATE_REGEXP = /^(\\d{4})-(\\d{2})-(\\d{2})$/;\n\tvar DATETIMELOCAL_REGEXP = /^(\\d{4})-(\\d\\d)-(\\d\\d)T(\\d\\d):(\\d\\d)(?::(\\d\\d)(\\.\\d{1,3})?)?$/;\n\tvar WEEK_REGEXP = /^(\\d{4})-W(\\d\\d)$/;\n\tvar MONTH_REGEXP = /^(\\d{4})-(\\d\\d)$/;\n\tvar TIME_REGEXP = /^(\\d\\d):(\\d\\d)(?::(\\d\\d)(\\.\\d{1,3})?)?$/;\n\n\tvar inputType = {\n\n\t  /**\n\t   * @ngdoc input\n\t   * @name input[text]\n\t   *\n\t   * @description\n\t   * Standard HTML text input with angular data binding, inherited by most of the `input` elements.\n\t   *\n\t   *\n\t   * @param {string} ngModel Assignable angular expression to data-bind to.\n\t   * @param {string=} name Property name of the form under which the control is published.\n\t   * @param {string=} required Adds `required` validation error key if the value is not entered.\n\t   * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to\n\t   *    the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of\n\t   *    `required` when you want to data-bind to the `required` attribute.\n\t   * @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than\n\t   *    minlength.\n\t   * @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than\n\t   *    maxlength. Setting the attribute to a negative or non-numeric value, allows view values of\n\t   *    any length.\n\t   * @param {string=} pattern Similar to `ngPattern` except that the attribute value is the actual string\n\t   *    that contains the regular expression body that will be converted to a regular expression\n\t   *    as in the ngPattern directive.\n\t   * @param {string=} ngPattern Sets `pattern` validation error key if the ngModel value does not match\n\t   *    a RegExp found by evaluating the Angular expression given in the attribute value.\n\t   *    If the expression evaluates to a RegExp object then this is used directly.\n\t   *    If the expression is a string then it will be converted to a RegExp after wrapping it in `^` and `$`\n\t   *    characters. For instance, `\"abc\"` will be converted to `new RegExp('^abc$')`.\n\t   * @param {string=} ngChange Angular expression to be executed when input changes due to user\n\t   *    interaction with the input element.\n\t   * @param {boolean=} [ngTrim=true] If set to false Angular will not automatically trim the input.\n\t   *    This parameter is ignored for input[type=password] controls, which will never trim the\n\t   *    input.\n\t   *\n\t   * @example\n\t      <example name=\"text-input-directive\" module=\"textInputExample\">\n\t        <file name=\"index.html\">\n\t         <script>\n\t           angular.module('textInputExample', [])\n\t             .controller('ExampleController', ['$scope', function($scope) {\n\t               $scope.example = {\n\t                 text: 'guest',\n\t                 word: /^\\s*\\w*\\s*$/\n\t               };\n\t             }]);\n\t         </script>\n\t         <form name=\"myForm\" ng-controller=\"ExampleController\">\n\t           Single word: <input type=\"text\" name=\"input\" ng-model=\"example.text\"\n\t                               ng-pattern=\"example.word\" required ng-trim=\"false\">\n\t           <span class=\"error\" ng-show=\"myForm.input.$error.required\">\n\t             Required!</span>\n\t           <span class=\"error\" ng-show=\"myForm.input.$error.pattern\">\n\t             Single word only!</span>\n\n\t           <tt>text = {{example.text}}</tt><br/>\n\t           <tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>\n\t           <tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>\n\t           <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>\n\t           <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>\n\t          </form>\n\t        </file>\n\t        <file name=\"protractor.js\" type=\"protractor\">\n\t          var text = element(by.binding('example.text'));\n\t          var valid = element(by.binding('myForm.input.$valid'));\n\t          var input = element(by.model('example.text'));\n\n\t          it('should initialize to model', function() {\n\t            expect(text.getText()).toContain('guest');\n\t            expect(valid.getText()).toContain('true');\n\t          });\n\n\t          it('should be invalid if empty', function() {\n\t            input.clear();\n\t            input.sendKeys('');\n\n\t            expect(text.getText()).toEqual('text =');\n\t            expect(valid.getText()).toContain('false');\n\t          });\n\n\t          it('should be invalid if multi word', function() {\n\t            input.clear();\n\t            input.sendKeys('hello world');\n\n\t            expect(valid.getText()).toContain('false');\n\t          });\n\t        </file>\n\t      </example>\n\t   */\n\t  'text': textInputType,\n\n\t    /**\n\t     * @ngdoc input\n\t     * @name input[date]\n\t     *\n\t     * @description\n\t     * Input with date validation and transformation. In browsers that do not yet support\n\t     * the HTML5 date input, a text element will be used. In that case, text must be entered in a valid ISO-8601\n\t     * date format (yyyy-MM-dd), for example: `2009-01-06`. Since many\n\t     * modern browsers do not yet support this input type, it is important to provide cues to users on the\n\t     * expected input format via a placeholder or label.\n\t     *\n\t     * The model must always be a Date object, otherwise Angular will throw an error.\n\t     * Invalid `Date` objects (dates whose `getTime()` is `NaN`) will be rendered as an empty string.\n\t     *\n\t     * The timezone to be used to read/write the `Date` instance in the model can be defined using\n\t     * {@link ng.directive:ngModelOptions ngModelOptions}. By default, this is the timezone of the browser.\n\t     *\n\t     * @param {string} ngModel Assignable angular expression to data-bind to.\n\t     * @param {string=} name Property name of the form under which the control is published.\n\t     * @param {string=} min Sets the `min` validation error key if the value entered is less than `min`. This must be a\n\t     * valid ISO date string (yyyy-MM-dd).\n\t     * @param {string=} max Sets the `max` validation error key if the value entered is greater than `max`. This must be\n\t     * a valid ISO date string (yyyy-MM-dd).\n\t     * @param {string=} required Sets `required` validation error key if the value is not entered.\n\t     * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to\n\t     *    the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of\n\t     *    `required` when you want to data-bind to the `required` attribute.\n\t     * @param {string=} ngChange Angular expression to be executed when input changes due to user\n\t     *    interaction with the input element.\n\t     *\n\t     * @example\n\t     <example name=\"date-input-directive\" module=\"dateInputExample\">\n\t     <file name=\"index.html\">\n\t       <script>\n\t          angular.module('dateInputExample', [])\n\t            .controller('DateController', ['$scope', function($scope) {\n\t              $scope.example = {\n\t                value: new Date(2013, 9, 22)\n\t              };\n\t            }]);\n\t       </script>\n\t       <form name=\"myForm\" ng-controller=\"DateController as dateCtrl\">\n\t          Pick a date in 2013:\n\t          <input type=\"date\" id=\"exampleInput\" name=\"input\" ng-model=\"example.value\"\n\t              placeholder=\"yyyy-MM-dd\" min=\"2013-01-01\" max=\"2013-12-31\" required />\n\t          <span class=\"error\" ng-show=\"myForm.input.$error.required\">\n\t              Required!</span>\n\t          <span class=\"error\" ng-show=\"myForm.input.$error.date\">\n\t              Not a valid date!</span>\n\t           <tt>value = {{example.value | date: \"yyyy-MM-dd\"}}</tt><br/>\n\t           <tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>\n\t           <tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>\n\t           <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>\n\t           <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>\n\t       </form>\n\t     </file>\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t        var value = element(by.binding('example.value | date: \"yyyy-MM-dd\"'));\n\t        var valid = element(by.binding('myForm.input.$valid'));\n\t        var input = element(by.model('example.value'));\n\n\t        // currently protractor/webdriver does not support\n\t        // sending keys to all known HTML5 input controls\n\t        // for various browsers (see https://github.com/angular/protractor/issues/562).\n\t        function setInput(val) {\n\t          // set the value of the element and force validation.\n\t          var scr = \"var ipt = document.getElementById('exampleInput'); \" +\n\t          \"ipt.value = '\" + val + \"';\" +\n\t          \"angular.element(ipt).scope().$apply(function(s) { s.myForm[ipt.name].$setViewValue('\" + val + \"'); });\";\n\t          browser.executeScript(scr);\n\t        }\n\n\t        it('should initialize to model', function() {\n\t          expect(value.getText()).toContain('2013-10-22');\n\t          expect(valid.getText()).toContain('myForm.input.$valid = true');\n\t        });\n\n\t        it('should be invalid if empty', function() {\n\t          setInput('');\n\t          expect(value.getText()).toEqual('value =');\n\t          expect(valid.getText()).toContain('myForm.input.$valid = false');\n\t        });\n\n\t        it('should be invalid if over max', function() {\n\t          setInput('2015-01-01');\n\t          expect(value.getText()).toContain('');\n\t          expect(valid.getText()).toContain('myForm.input.$valid = false');\n\t        });\n\t     </file>\n\t     </example>\n\t     */\n\t  'date': createDateInputType('date', DATE_REGEXP,\n\t         createDateParser(DATE_REGEXP, ['yyyy', 'MM', 'dd']),\n\t         'yyyy-MM-dd'),\n\n\t   /**\n\t    * @ngdoc input\n\t    * @name input[datetime-local]\n\t    *\n\t    * @description\n\t    * Input with datetime validation and transformation. In browsers that do not yet support\n\t    * the HTML5 date input, a text element will be used. In that case, the text must be entered in a valid ISO-8601\n\t    * local datetime format (yyyy-MM-ddTHH:mm:ss), for example: `2010-12-28T14:57:00`.\n\t    *\n\t    * The model must always be a Date object, otherwise Angular will throw an error.\n\t    * Invalid `Date` objects (dates whose `getTime()` is `NaN`) will be rendered as an empty string.\n\t    *\n\t    * The timezone to be used to read/write the `Date` instance in the model can be defined using\n\t    * {@link ng.directive:ngModelOptions ngModelOptions}. By default, this is the timezone of the browser.\n\t    *\n\t    * @param {string} ngModel Assignable angular expression to data-bind to.\n\t    * @param {string=} name Property name of the form under which the control is published.\n\t    * @param {string=} min Sets the `min` validation error key if the value entered is less than `min`. This must be a\n\t    * valid ISO datetime format (yyyy-MM-ddTHH:mm:ss).\n\t    * @param {string=} max Sets the `max` validation error key if the value entered is greater than `max`. This must be\n\t    * a valid ISO datetime format (yyyy-MM-ddTHH:mm:ss).\n\t    * @param {string=} required Sets `required` validation error key if the value is not entered.\n\t    * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to\n\t    *    the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of\n\t    *    `required` when you want to data-bind to the `required` attribute.\n\t    * @param {string=} ngChange Angular expression to be executed when input changes due to user\n\t    *    interaction with the input element.\n\t    *\n\t    * @example\n\t    <example name=\"datetimelocal-input-directive\" module=\"dateExample\">\n\t    <file name=\"index.html\">\n\t      <script>\n\t        angular.module('dateExample', [])\n\t          .controller('DateController', ['$scope', function($scope) {\n\t            $scope.example = {\n\t              value: new Date(2010, 11, 28, 14, 57)\n\t            };\n\t          }]);\n\t      </script>\n\t      <form name=\"myForm\" ng-controller=\"DateController as dateCtrl\">\n\t        Pick a date between in 2013:\n\t        <input type=\"datetime-local\" id=\"exampleInput\" name=\"input\" ng-model=\"example.value\"\n\t            placeholder=\"yyyy-MM-ddTHH:mm:ss\" min=\"2001-01-01T00:00:00\" max=\"2013-12-31T00:00:00\" required />\n\t        <span class=\"error\" ng-show=\"myForm.input.$error.required\">\n\t            Required!</span>\n\t        <span class=\"error\" ng-show=\"myForm.input.$error.datetimelocal\">\n\t            Not a valid date!</span>\n\t        <tt>value = {{example.value | date: \"yyyy-MM-ddTHH:mm:ss\"}}</tt><br/>\n\t        <tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>\n\t        <tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>\n\t        <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>\n\t        <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>\n\t      </form>\n\t    </file>\n\t    <file name=\"protractor.js\" type=\"protractor\">\n\t      var value = element(by.binding('example.value | date: \"yyyy-MM-ddTHH:mm:ss\"'));\n\t      var valid = element(by.binding('myForm.input.$valid'));\n\t      var input = element(by.model('example.value'));\n\n\t      // currently protractor/webdriver does not support\n\t      // sending keys to all known HTML5 input controls\n\t      // for various browsers (https://github.com/angular/protractor/issues/562).\n\t      function setInput(val) {\n\t        // set the value of the element and force validation.\n\t        var scr = \"var ipt = document.getElementById('exampleInput'); \" +\n\t        \"ipt.value = '\" + val + \"';\" +\n\t        \"angular.element(ipt).scope().$apply(function(s) { s.myForm[ipt.name].$setViewValue('\" + val + \"'); });\";\n\t        browser.executeScript(scr);\n\t      }\n\n\t      it('should initialize to model', function() {\n\t        expect(value.getText()).toContain('2010-12-28T14:57:00');\n\t        expect(valid.getText()).toContain('myForm.input.$valid = true');\n\t      });\n\n\t      it('should be invalid if empty', function() {\n\t        setInput('');\n\t        expect(value.getText()).toEqual('value =');\n\t        expect(valid.getText()).toContain('myForm.input.$valid = false');\n\t      });\n\n\t      it('should be invalid if over max', function() {\n\t        setInput('2015-01-01T23:59:00');\n\t        expect(value.getText()).toContain('');\n\t        expect(valid.getText()).toContain('myForm.input.$valid = false');\n\t      });\n\t    </file>\n\t    </example>\n\t    */\n\t  'datetime-local': createDateInputType('datetimelocal', DATETIMELOCAL_REGEXP,\n\t      createDateParser(DATETIMELOCAL_REGEXP, ['yyyy', 'MM', 'dd', 'HH', 'mm', 'ss', 'sss']),\n\t      'yyyy-MM-ddTHH:mm:ss.sss'),\n\n\t  /**\n\t   * @ngdoc input\n\t   * @name input[time]\n\t   *\n\t   * @description\n\t   * Input with time validation and transformation. In browsers that do not yet support\n\t   * the HTML5 date input, a text element will be used. In that case, the text must be entered in a valid ISO-8601\n\t   * local time format (HH:mm:ss), for example: `14:57:00`. Model must be a Date object. This binding will always output a\n\t   * Date object to the model of January 1, 1970, or local date `new Date(1970, 0, 1, HH, mm, ss)`.\n\t   *\n\t   * The model must always be a Date object, otherwise Angular will throw an error.\n\t   * Invalid `Date` objects (dates whose `getTime()` is `NaN`) will be rendered as an empty string.\n\t   *\n\t   * The timezone to be used to read/write the `Date` instance in the model can be defined using\n\t   * {@link ng.directive:ngModelOptions ngModelOptions}. By default, this is the timezone of the browser.\n\t   *\n\t   * @param {string} ngModel Assignable angular expression to data-bind to.\n\t   * @param {string=} name Property name of the form under which the control is published.\n\t   * @param {string=} min Sets the `min` validation error key if the value entered is less than `min`. This must be a\n\t   * valid ISO time format (HH:mm:ss).\n\t   * @param {string=} max Sets the `max` validation error key if the value entered is greater than `max`. This must be a\n\t   * valid ISO time format (HH:mm:ss).\n\t   * @param {string=} required Sets `required` validation error key if the value is not entered.\n\t   * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to\n\t   *    the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of\n\t   *    `required` when you want to data-bind to the `required` attribute.\n\t   * @param {string=} ngChange Angular expression to be executed when input changes due to user\n\t   *    interaction with the input element.\n\t   *\n\t   * @example\n\t   <example name=\"time-input-directive\" module=\"timeExample\">\n\t   <file name=\"index.html\">\n\t     <script>\n\t      angular.module('timeExample', [])\n\t        .controller('DateController', ['$scope', function($scope) {\n\t          $scope.example = {\n\t            value: new Date(1970, 0, 1, 14, 57, 0)\n\t          };\n\t        }]);\n\t     </script>\n\t     <form name=\"myForm\" ng-controller=\"DateController as dateCtrl\">\n\t        Pick a between 8am and 5pm:\n\t        <input type=\"time\" id=\"exampleInput\" name=\"input\" ng-model=\"example.value\"\n\t            placeholder=\"HH:mm:ss\" min=\"08:00:00\" max=\"17:00:00\" required />\n\t        <span class=\"error\" ng-show=\"myForm.input.$error.required\">\n\t            Required!</span>\n\t        <span class=\"error\" ng-show=\"myForm.input.$error.time\">\n\t            Not a valid date!</span>\n\t        <tt>value = {{example.value | date: \"HH:mm:ss\"}}</tt><br/>\n\t        <tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>\n\t        <tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>\n\t        <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>\n\t        <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>\n\t     </form>\n\t   </file>\n\t   <file name=\"protractor.js\" type=\"protractor\">\n\t      var value = element(by.binding('example.value | date: \"HH:mm:ss\"'));\n\t      var valid = element(by.binding('myForm.input.$valid'));\n\t      var input = element(by.model('example.value'));\n\n\t      // currently protractor/webdriver does not support\n\t      // sending keys to all known HTML5 input controls\n\t      // for various browsers (https://github.com/angular/protractor/issues/562).\n\t      function setInput(val) {\n\t        // set the value of the element and force validation.\n\t        var scr = \"var ipt = document.getElementById('exampleInput'); \" +\n\t        \"ipt.value = '\" + val + \"';\" +\n\t        \"angular.element(ipt).scope().$apply(function(s) { s.myForm[ipt.name].$setViewValue('\" + val + \"'); });\";\n\t        browser.executeScript(scr);\n\t      }\n\n\t      it('should initialize to model', function() {\n\t        expect(value.getText()).toContain('14:57:00');\n\t        expect(valid.getText()).toContain('myForm.input.$valid = true');\n\t      });\n\n\t      it('should be invalid if empty', function() {\n\t        setInput('');\n\t        expect(value.getText()).toEqual('value =');\n\t        expect(valid.getText()).toContain('myForm.input.$valid = false');\n\t      });\n\n\t      it('should be invalid if over max', function() {\n\t        setInput('23:59:00');\n\t        expect(value.getText()).toContain('');\n\t        expect(valid.getText()).toContain('myForm.input.$valid = false');\n\t      });\n\t   </file>\n\t   </example>\n\t   */\n\t  'time': createDateInputType('time', TIME_REGEXP,\n\t      createDateParser(TIME_REGEXP, ['HH', 'mm', 'ss', 'sss']),\n\t     'HH:mm:ss.sss'),\n\n\t   /**\n\t    * @ngdoc input\n\t    * @name input[week]\n\t    *\n\t    * @description\n\t    * Input with week-of-the-year validation and transformation to Date. In browsers that do not yet support\n\t    * the HTML5 week input, a text element will be used. In that case, the text must be entered in a valid ISO-8601\n\t    * week format (yyyy-W##), for example: `2013-W02`.\n\t    *\n\t    * The model must always be a Date object, otherwise Angular will throw an error.\n\t    * Invalid `Date` objects (dates whose `getTime()` is `NaN`) will be rendered as an empty string.\n\t    *\n\t    * The timezone to be used to read/write the `Date` instance in the model can be defined using\n\t    * {@link ng.directive:ngModelOptions ngModelOptions}. By default, this is the timezone of the browser.\n\t    *\n\t    * @param {string} ngModel Assignable angular expression to data-bind to.\n\t    * @param {string=} name Property name of the form under which the control is published.\n\t    * @param {string=} min Sets the `min` validation error key if the value entered is less than `min`. This must be a\n\t    * valid ISO week format (yyyy-W##).\n\t    * @param {string=} max Sets the `max` validation error key if the value entered is greater than `max`. This must be\n\t    * a valid ISO week format (yyyy-W##).\n\t    * @param {string=} required Sets `required` validation error key if the value is not entered.\n\t    * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to\n\t    *    the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of\n\t    *    `required` when you want to data-bind to the `required` attribute.\n\t    * @param {string=} ngChange Angular expression to be executed when input changes due to user\n\t    *    interaction with the input element.\n\t    *\n\t    * @example\n\t    <example name=\"week-input-directive\" module=\"weekExample\">\n\t    <file name=\"index.html\">\n\t      <script>\n\t      angular.module('weekExample', [])\n\t        .controller('DateController', ['$scope', function($scope) {\n\t          $scope.example = {\n\t            value: new Date(2013, 0, 3)\n\t          };\n\t        }]);\n\t      </script>\n\t      <form name=\"myForm\" ng-controller=\"DateController as dateCtrl\">\n\t        Pick a date between in 2013:\n\t        <input id=\"exampleInput\" type=\"week\" name=\"input\" ng-model=\"example.value\"\n\t            placeholder=\"YYYY-W##\" min=\"2012-W32\" max=\"2013-W52\" required />\n\t        <span class=\"error\" ng-show=\"myForm.input.$error.required\">\n\t            Required!</span>\n\t        <span class=\"error\" ng-show=\"myForm.input.$error.week\">\n\t            Not a valid date!</span>\n\t        <tt>value = {{example.value | date: \"yyyy-Www\"}}</tt><br/>\n\t        <tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>\n\t        <tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>\n\t        <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>\n\t        <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>\n\t      </form>\n\t    </file>\n\t    <file name=\"protractor.js\" type=\"protractor\">\n\t      var value = element(by.binding('example.value | date: \"yyyy-Www\"'));\n\t      var valid = element(by.binding('myForm.input.$valid'));\n\t      var input = element(by.model('example.value'));\n\n\t      // currently protractor/webdriver does not support\n\t      // sending keys to all known HTML5 input controls\n\t      // for various browsers (https://github.com/angular/protractor/issues/562).\n\t      function setInput(val) {\n\t        // set the value of the element and force validation.\n\t        var scr = \"var ipt = document.getElementById('exampleInput'); \" +\n\t        \"ipt.value = '\" + val + \"';\" +\n\t        \"angular.element(ipt).scope().$apply(function(s) { s.myForm[ipt.name].$setViewValue('\" + val + \"'); });\";\n\t        browser.executeScript(scr);\n\t      }\n\n\t      it('should initialize to model', function() {\n\t        expect(value.getText()).toContain('2013-W01');\n\t        expect(valid.getText()).toContain('myForm.input.$valid = true');\n\t      });\n\n\t      it('should be invalid if empty', function() {\n\t        setInput('');\n\t        expect(value.getText()).toEqual('value =');\n\t        expect(valid.getText()).toContain('myForm.input.$valid = false');\n\t      });\n\n\t      it('should be invalid if over max', function() {\n\t        setInput('2015-W01');\n\t        expect(value.getText()).toContain('');\n\t        expect(valid.getText()).toContain('myForm.input.$valid = false');\n\t      });\n\t    </file>\n\t    </example>\n\t    */\n\t  'week': createDateInputType('week', WEEK_REGEXP, weekParser, 'yyyy-Www'),\n\n\t  /**\n\t   * @ngdoc input\n\t   * @name input[month]\n\t   *\n\t   * @description\n\t   * Input with month validation and transformation. In browsers that do not yet support\n\t   * the HTML5 month input, a text element will be used. In that case, the text must be entered in a valid ISO-8601\n\t   * month format (yyyy-MM), for example: `2009-01`.\n\t   *\n\t   * The model must always be a Date object, otherwise Angular will throw an error.\n\t   * Invalid `Date` objects (dates whose `getTime()` is `NaN`) will be rendered as an empty string.\n\t   * If the model is not set to the first of the month, the next view to model update will set it\n\t   * to the first of the month.\n\t   *\n\t   * The timezone to be used to read/write the `Date` instance in the model can be defined using\n\t   * {@link ng.directive:ngModelOptions ngModelOptions}. By default, this is the timezone of the browser.\n\t   *\n\t   * @param {string} ngModel Assignable angular expression to data-bind to.\n\t   * @param {string=} name Property name of the form under which the control is published.\n\t   * @param {string=} min Sets the `min` validation error key if the value entered is less than `min`. This must be\n\t   * a valid ISO month format (yyyy-MM).\n\t   * @param {string=} max Sets the `max` validation error key if the value entered is greater than `max`. This must\n\t   * be a valid ISO month format (yyyy-MM).\n\t   * @param {string=} required Sets `required` validation error key if the value is not entered.\n\t   * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to\n\t   *    the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of\n\t   *    `required` when you want to data-bind to the `required` attribute.\n\t   * @param {string=} ngChange Angular expression to be executed when input changes due to user\n\t   *    interaction with the input element.\n\t   *\n\t   * @example\n\t   <example name=\"month-input-directive\" module=\"monthExample\">\n\t   <file name=\"index.html\">\n\t     <script>\n\t      angular.module('monthExample', [])\n\t        .controller('DateController', ['$scope', function($scope) {\n\t          $scope.example = {\n\t            value: new Date(2013, 9, 1)\n\t          };\n\t        }]);\n\t     </script>\n\t     <form name=\"myForm\" ng-controller=\"DateController as dateCtrl\">\n\t       Pick a month in 2013:\n\t       <input id=\"exampleInput\" type=\"month\" name=\"input\" ng-model=\"example.value\"\n\t          placeholder=\"yyyy-MM\" min=\"2013-01\" max=\"2013-12\" required />\n\t       <span class=\"error\" ng-show=\"myForm.input.$error.required\">\n\t          Required!</span>\n\t       <span class=\"error\" ng-show=\"myForm.input.$error.month\">\n\t          Not a valid month!</span>\n\t       <tt>value = {{example.value | date: \"yyyy-MM\"}}</tt><br/>\n\t       <tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>\n\t       <tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>\n\t       <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>\n\t       <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>\n\t     </form>\n\t   </file>\n\t   <file name=\"protractor.js\" type=\"protractor\">\n\t      var value = element(by.binding('example.value | date: \"yyyy-MM\"'));\n\t      var valid = element(by.binding('myForm.input.$valid'));\n\t      var input = element(by.model('example.value'));\n\n\t      // currently protractor/webdriver does not support\n\t      // sending keys to all known HTML5 input controls\n\t      // for various browsers (https://github.com/angular/protractor/issues/562).\n\t      function setInput(val) {\n\t        // set the value of the element and force validation.\n\t        var scr = \"var ipt = document.getElementById('exampleInput'); \" +\n\t        \"ipt.value = '\" + val + \"';\" +\n\t        \"angular.element(ipt).scope().$apply(function(s) { s.myForm[ipt.name].$setViewValue('\" + val + \"'); });\";\n\t        browser.executeScript(scr);\n\t      }\n\n\t      it('should initialize to model', function() {\n\t        expect(value.getText()).toContain('2013-10');\n\t        expect(valid.getText()).toContain('myForm.input.$valid = true');\n\t      });\n\n\t      it('should be invalid if empty', function() {\n\t        setInput('');\n\t        expect(value.getText()).toEqual('value =');\n\t        expect(valid.getText()).toContain('myForm.input.$valid = false');\n\t      });\n\n\t      it('should be invalid if over max', function() {\n\t        setInput('2015-01');\n\t        expect(value.getText()).toContain('');\n\t        expect(valid.getText()).toContain('myForm.input.$valid = false');\n\t      });\n\t   </file>\n\t   </example>\n\t   */\n\t  'month': createDateInputType('month', MONTH_REGEXP,\n\t     createDateParser(MONTH_REGEXP, ['yyyy', 'MM']),\n\t     'yyyy-MM'),\n\n\t  /**\n\t   * @ngdoc input\n\t   * @name input[number]\n\t   *\n\t   * @description\n\t   * Text input with number validation and transformation. Sets the `number` validation\n\t   * error if not a valid number.\n\t   *\n\t   * The model must always be a number, otherwise Angular will throw an error.\n\t   *\n\t   * @param {string} ngModel Assignable angular expression to data-bind to.\n\t   * @param {string=} name Property name of the form under which the control is published.\n\t   * @param {string=} min Sets the `min` validation error key if the value entered is less than `min`.\n\t   * @param {string=} max Sets the `max` validation error key if the value entered is greater than `max`.\n\t   * @param {string=} required Sets `required` validation error key if the value is not entered.\n\t   * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to\n\t   *    the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of\n\t   *    `required` when you want to data-bind to the `required` attribute.\n\t   * @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than\n\t   *    minlength.\n\t   * @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than\n\t   *    maxlength. Setting the attribute to a negative or non-numeric value, allows view values of\n\t   *    any length.\n\t   * @param {string=} pattern Similar to `ngPattern` except that the attribute value is the actual string\n\t   *    that contains the regular expression body that will be converted to a regular expression\n\t   *    as in the ngPattern directive.\n\t   * @param {string=} ngPattern Sets `pattern` validation error key if the ngModel value does not match\n\t   *    a RegExp found by evaluating the Angular expression given in the attribute value.\n\t   *    If the expression evaluates to a RegExp object then this is used directly.\n\t   *    If the expression is a string then it will be converted to a RegExp after wrapping it in `^` and `$`\n\t   *    characters. For instance, `\"abc\"` will be converted to `new RegExp('^abc$')`.\n\t   * @param {string=} ngChange Angular expression to be executed when input changes due to user\n\t   *    interaction with the input element.\n\t   *\n\t   * @example\n\t      <example name=\"number-input-directive\" module=\"numberExample\">\n\t        <file name=\"index.html\">\n\t         <script>\n\t           angular.module('numberExample', [])\n\t             .controller('ExampleController', ['$scope', function($scope) {\n\t               $scope.example = {\n\t                 value: 12\n\t               };\n\t             }]);\n\t         </script>\n\t         <form name=\"myForm\" ng-controller=\"ExampleController\">\n\t           Number: <input type=\"number\" name=\"input\" ng-model=\"example.value\"\n\t                          min=\"0\" max=\"99\" required>\n\t           <span class=\"error\" ng-show=\"myForm.input.$error.required\">\n\t             Required!</span>\n\t           <span class=\"error\" ng-show=\"myForm.input.$error.number\">\n\t             Not valid number!</span>\n\t           <tt>value = {{example.value}}</tt><br/>\n\t           <tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>\n\t           <tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>\n\t           <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>\n\t           <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>\n\t          </form>\n\t        </file>\n\t        <file name=\"protractor.js\" type=\"protractor\">\n\t          var value = element(by.binding('example.value'));\n\t          var valid = element(by.binding('myForm.input.$valid'));\n\t          var input = element(by.model('example.value'));\n\n\t          it('should initialize to model', function() {\n\t            expect(value.getText()).toContain('12');\n\t            expect(valid.getText()).toContain('true');\n\t          });\n\n\t          it('should be invalid if empty', function() {\n\t            input.clear();\n\t            input.sendKeys('');\n\t            expect(value.getText()).toEqual('value =');\n\t            expect(valid.getText()).toContain('false');\n\t          });\n\n\t          it('should be invalid if over max', function() {\n\t            input.clear();\n\t            input.sendKeys('123');\n\t            expect(value.getText()).toEqual('value =');\n\t            expect(valid.getText()).toContain('false');\n\t          });\n\t        </file>\n\t      </example>\n\t   */\n\t  'number': numberInputType,\n\n\n\t  /**\n\t   * @ngdoc input\n\t   * @name input[url]\n\t   *\n\t   * @description\n\t   * Text input with URL validation. Sets the `url` validation error key if the content is not a\n\t   * valid URL.\n\t   *\n\t   * <div class=\"alert alert-warning\">\n\t   * **Note:** `input[url]` uses a regex to validate urls that is derived from the regex\n\t   * used in Chromium. If you need stricter validation, you can use `ng-pattern` or modify\n\t   * the built-in validators (see the {@link guide/forms Forms guide})\n\t   * </div>\n\t   *\n\t   * @param {string} ngModel Assignable angular expression to data-bind to.\n\t   * @param {string=} name Property name of the form under which the control is published.\n\t   * @param {string=} required Sets `required` validation error key if the value is not entered.\n\t   * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to\n\t   *    the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of\n\t   *    `required` when you want to data-bind to the `required` attribute.\n\t   * @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than\n\t   *    minlength.\n\t   * @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than\n\t   *    maxlength. Setting the attribute to a negative or non-numeric value, allows view values of\n\t   *    any length.\n\t   * @param {string=} pattern Similar to `ngPattern` except that the attribute value is the actual string\n\t   *    that contains the regular expression body that will be converted to a regular expression\n\t   *    as in the ngPattern directive.\n\t   * @param {string=} ngPattern Sets `pattern` validation error key if the ngModel value does not match\n\t   *    a RegExp found by evaluating the Angular expression given in the attribute value.\n\t   *    If the expression evaluates to a RegExp object then this is used directly.\n\t   *    If the expression is a string then it will be converted to a RegExp after wrapping it in `^` and `$`\n\t   *    characters. For instance, `\"abc\"` will be converted to `new RegExp('^abc$')`.\n\t   * @param {string=} ngChange Angular expression to be executed when input changes due to user\n\t   *    interaction with the input element.\n\t   *\n\t   * @example\n\t      <example name=\"url-input-directive\" module=\"urlExample\">\n\t        <file name=\"index.html\">\n\t         <script>\n\t           angular.module('urlExample', [])\n\t             .controller('ExampleController', ['$scope', function($scope) {\n\t               $scope.url = {\n\t                 text: 'http://google.com'\n\t               };\n\t             }]);\n\t         </script>\n\t         <form name=\"myForm\" ng-controller=\"ExampleController\">\n\t           URL: <input type=\"url\" name=\"input\" ng-model=\"url.text\" required>\n\t           <span class=\"error\" ng-show=\"myForm.input.$error.required\">\n\t             Required!</span>\n\t           <span class=\"error\" ng-show=\"myForm.input.$error.url\">\n\t             Not valid url!</span>\n\t           <tt>text = {{url.text}}</tt><br/>\n\t           <tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>\n\t           <tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>\n\t           <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>\n\t           <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>\n\t           <tt>myForm.$error.url = {{!!myForm.$error.url}}</tt><br/>\n\t          </form>\n\t        </file>\n\t        <file name=\"protractor.js\" type=\"protractor\">\n\t          var text = element(by.binding('url.text'));\n\t          var valid = element(by.binding('myForm.input.$valid'));\n\t          var input = element(by.model('url.text'));\n\n\t          it('should initialize to model', function() {\n\t            expect(text.getText()).toContain('http://google.com');\n\t            expect(valid.getText()).toContain('true');\n\t          });\n\n\t          it('should be invalid if empty', function() {\n\t            input.clear();\n\t            input.sendKeys('');\n\n\t            expect(text.getText()).toEqual('text =');\n\t            expect(valid.getText()).toContain('false');\n\t          });\n\n\t          it('should be invalid if not url', function() {\n\t            input.clear();\n\t            input.sendKeys('box');\n\n\t            expect(valid.getText()).toContain('false');\n\t          });\n\t        </file>\n\t      </example>\n\t   */\n\t  'url': urlInputType,\n\n\n\t  /**\n\t   * @ngdoc input\n\t   * @name input[email]\n\t   *\n\t   * @description\n\t   * Text input with email validation. Sets the `email` validation error key if not a valid email\n\t   * address.\n\t   *\n\t   * <div class=\"alert alert-warning\">\n\t   * **Note:** `input[email]` uses a regex to validate email addresses that is derived from the regex\n\t   * used in Chromium. If you need stricter validation (e.g. requiring a top-level domain), you can\n\t   * use `ng-pattern` or modify the built-in validators (see the {@link guide/forms Forms guide})\n\t   * </div>\n\t   *\n\t   * @param {string} ngModel Assignable angular expression to data-bind to.\n\t   * @param {string=} name Property name of the form under which the control is published.\n\t   * @param {string=} required Sets `required` validation error key if the value is not entered.\n\t   * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to\n\t   *    the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of\n\t   *    `required` when you want to data-bind to the `required` attribute.\n\t   * @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than\n\t   *    minlength.\n\t   * @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than\n\t   *    maxlength. Setting the attribute to a negative or non-numeric value, allows view values of\n\t   *    any length.\n\t   * @param {string=} pattern Similar to `ngPattern` except that the attribute value is the actual string\n\t   *    that contains the regular expression body that will be converted to a regular expression\n\t   *    as in the ngPattern directive.\n\t   * @param {string=} ngPattern Sets `pattern` validation error key if the ngModel value does not match\n\t   *    a RegExp found by evaluating the Angular expression given in the attribute value.\n\t   *    If the expression evaluates to a RegExp object then this is used directly.\n\t   *    If the expression is a string then it will be converted to a RegExp after wrapping it in `^` and `$`\n\t   *    characters. For instance, `\"abc\"` will be converted to `new RegExp('^abc$')`.\n\t   * @param {string=} ngChange Angular expression to be executed when input changes due to user\n\t   *    interaction with the input element.\n\t   *\n\t   * @example\n\t      <example name=\"email-input-directive\" module=\"emailExample\">\n\t        <file name=\"index.html\">\n\t         <script>\n\t           angular.module('emailExample', [])\n\t             .controller('ExampleController', ['$scope', function($scope) {\n\t               $scope.email = {\n\t                 text: 'me@example.com'\n\t               };\n\t             }]);\n\t         </script>\n\t           <form name=\"myForm\" ng-controller=\"ExampleController\">\n\t             Email: <input type=\"email\" name=\"input\" ng-model=\"email.text\" required>\n\t             <span class=\"error\" ng-show=\"myForm.input.$error.required\">\n\t               Required!</span>\n\t             <span class=\"error\" ng-show=\"myForm.input.$error.email\">\n\t               Not valid email!</span>\n\t             <tt>text = {{email.text}}</tt><br/>\n\t             <tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>\n\t             <tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>\n\t             <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>\n\t             <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>\n\t             <tt>myForm.$error.email = {{!!myForm.$error.email}}</tt><br/>\n\t           </form>\n\t         </file>\n\t        <file name=\"protractor.js\" type=\"protractor\">\n\t          var text = element(by.binding('email.text'));\n\t          var valid = element(by.binding('myForm.input.$valid'));\n\t          var input = element(by.model('email.text'));\n\n\t          it('should initialize to model', function() {\n\t            expect(text.getText()).toContain('me@example.com');\n\t            expect(valid.getText()).toContain('true');\n\t          });\n\n\t          it('should be invalid if empty', function() {\n\t            input.clear();\n\t            input.sendKeys('');\n\t            expect(text.getText()).toEqual('text =');\n\t            expect(valid.getText()).toContain('false');\n\t          });\n\n\t          it('should be invalid if not email', function() {\n\t            input.clear();\n\t            input.sendKeys('xxx');\n\n\t            expect(valid.getText()).toContain('false');\n\t          });\n\t        </file>\n\t      </example>\n\t   */\n\t  'email': emailInputType,\n\n\n\t  /**\n\t   * @ngdoc input\n\t   * @name input[radio]\n\t   *\n\t   * @description\n\t   * HTML radio button.\n\t   *\n\t   * @param {string} ngModel Assignable angular expression to data-bind to.\n\t   * @param {string} value The value to which the expression should be set when selected.\n\t   * @param {string=} name Property name of the form under which the control is published.\n\t   * @param {string=} ngChange Angular expression to be executed when input changes due to user\n\t   *    interaction with the input element.\n\t   * @param {string} ngValue Angular expression which sets the value to which the expression should\n\t   *    be set when selected.\n\t   *\n\t   * @example\n\t      <example name=\"radio-input-directive\" module=\"radioExample\">\n\t        <file name=\"index.html\">\n\t         <script>\n\t           angular.module('radioExample', [])\n\t             .controller('ExampleController', ['$scope', function($scope) {\n\t               $scope.color = {\n\t                 name: 'blue'\n\t               };\n\t               $scope.specialValue = {\n\t                 \"id\": \"12345\",\n\t                 \"value\": \"green\"\n\t               };\n\t             }]);\n\t         </script>\n\t         <form name=\"myForm\" ng-controller=\"ExampleController\">\n\t           <input type=\"radio\" ng-model=\"color.name\" value=\"red\">  Red <br/>\n\t           <input type=\"radio\" ng-model=\"color.name\" ng-value=\"specialValue\"> Green <br/>\n\t           <input type=\"radio\" ng-model=\"color.name\" value=\"blue\"> Blue <br/>\n\t           <tt>color = {{color.name | json}}</tt><br/>\n\t          </form>\n\t          Note that `ng-value=\"specialValue\"` sets radio item's value to be the value of `$scope.specialValue`.\n\t        </file>\n\t        <file name=\"protractor.js\" type=\"protractor\">\n\t          it('should change state', function() {\n\t            var color = element(by.binding('color.name'));\n\n\t            expect(color.getText()).toContain('blue');\n\n\t            element.all(by.model('color.name')).get(0).click();\n\n\t            expect(color.getText()).toContain('red');\n\t          });\n\t        </file>\n\t      </example>\n\t   */\n\t  'radio': radioInputType,\n\n\n\t  /**\n\t   * @ngdoc input\n\t   * @name input[checkbox]\n\t   *\n\t   * @description\n\t   * HTML checkbox.\n\t   *\n\t   * @param {string} ngModel Assignable angular expression to data-bind to.\n\t   * @param {string=} name Property name of the form under which the control is published.\n\t   * @param {expression=} ngTrueValue The value to which the expression should be set when selected.\n\t   * @param {expression=} ngFalseValue The value to which the expression should be set when not selected.\n\t   * @param {string=} ngChange Angular expression to be executed when input changes due to user\n\t   *    interaction with the input element.\n\t   *\n\t   * @example\n\t      <example name=\"checkbox-input-directive\" module=\"checkboxExample\">\n\t        <file name=\"index.html\">\n\t         <script>\n\t           angular.module('checkboxExample', [])\n\t             .controller('ExampleController', ['$scope', function($scope) {\n\t               $scope.checkboxModel = {\n\t                value1 : true,\n\t                value2 : 'YES'\n\t              };\n\t             }]);\n\t         </script>\n\t         <form name=\"myForm\" ng-controller=\"ExampleController\">\n\t           Value1: <input type=\"checkbox\" ng-model=\"checkboxModel.value1\"> <br/>\n\t           Value2: <input type=\"checkbox\" ng-model=\"checkboxModel.value2\"\n\t                          ng-true-value=\"'YES'\" ng-false-value=\"'NO'\"> <br/>\n\t           <tt>value1 = {{checkboxModel.value1}}</tt><br/>\n\t           <tt>value2 = {{checkboxModel.value2}}</tt><br/>\n\t          </form>\n\t        </file>\n\t        <file name=\"protractor.js\" type=\"protractor\">\n\t          it('should change state', function() {\n\t            var value1 = element(by.binding('checkboxModel.value1'));\n\t            var value2 = element(by.binding('checkboxModel.value2'));\n\n\t            expect(value1.getText()).toContain('true');\n\t            expect(value2.getText()).toContain('YES');\n\n\t            element(by.model('checkboxModel.value1')).click();\n\t            element(by.model('checkboxModel.value2')).click();\n\n\t            expect(value1.getText()).toContain('false');\n\t            expect(value2.getText()).toContain('NO');\n\t          });\n\t        </file>\n\t      </example>\n\t   */\n\t  'checkbox': checkboxInputType,\n\n\t  'hidden': noop,\n\t  'button': noop,\n\t  'submit': noop,\n\t  'reset': noop,\n\t  'file': noop\n\t};\n\n\tfunction stringBasedInputType(ctrl) {\n\t  ctrl.$formatters.push(function(value) {\n\t    return ctrl.$isEmpty(value) ? value : value.toString();\n\t  });\n\t}\n\n\tfunction textInputType(scope, element, attr, ctrl, $sniffer, $browser) {\n\t  baseInputType(scope, element, attr, ctrl, $sniffer, $browser);\n\t  stringBasedInputType(ctrl);\n\t}\n\n\tfunction baseInputType(scope, element, attr, ctrl, $sniffer, $browser) {\n\t  var type = lowercase(element[0].type);\n\n\t  // In composition mode, users are still inputing intermediate text buffer,\n\t  // hold the listener until composition is done.\n\t  // More about composition events: https://developer.mozilla.org/en-US/docs/Web/API/CompositionEvent\n\t  if (!$sniffer.android) {\n\t    var composing = false;\n\n\t    element.on('compositionstart', function(data) {\n\t      composing = true;\n\t    });\n\n\t    element.on('compositionend', function() {\n\t      composing = false;\n\t      listener();\n\t    });\n\t  }\n\n\t  var listener = function(ev) {\n\t    if (timeout) {\n\t      $browser.defer.cancel(timeout);\n\t      timeout = null;\n\t    }\n\t    if (composing) return;\n\t    var value = element.val(),\n\t        event = ev && ev.type;\n\n\t    // By default we will trim the value\n\t    // If the attribute ng-trim exists we will avoid trimming\n\t    // If input type is 'password', the value is never trimmed\n\t    if (type !== 'password' && (!attr.ngTrim || attr.ngTrim !== 'false')) {\n\t      value = trim(value);\n\t    }\n\n\t    // If a control is suffering from bad input (due to native validators), browsers discard its\n\t    // value, so it may be necessary to revalidate (by calling $setViewValue again) even if the\n\t    // control's value is the same empty value twice in a row.\n\t    if (ctrl.$viewValue !== value || (value === '' && ctrl.$$hasNativeValidators)) {\n\t      ctrl.$setViewValue(value, event);\n\t    }\n\t  };\n\n\t  // if the browser does support \"input\" event, we are fine - except on IE9 which doesn't fire the\n\t  // input event on backspace, delete or cut\n\t  if ($sniffer.hasEvent('input')) {\n\t    element.on('input', listener);\n\t  } else {\n\t    var timeout;\n\n\t    var deferListener = function(ev, input, origValue) {\n\t      if (!timeout) {\n\t        timeout = $browser.defer(function() {\n\t          timeout = null;\n\t          if (!input || input.value !== origValue) {\n\t            listener(ev);\n\t          }\n\t        });\n\t      }\n\t    };\n\n\t    element.on('keydown', function(event) {\n\t      var key = event.keyCode;\n\n\t      // ignore\n\t      //    command            modifiers                   arrows\n\t      if (key === 91 || (15 < key && key < 19) || (37 <= key && key <= 40)) return;\n\n\t      deferListener(event, this, this.value);\n\t    });\n\n\t    // if user modifies input value using context menu in IE, we need \"paste\" and \"cut\" events to catch it\n\t    if ($sniffer.hasEvent('paste')) {\n\t      element.on('paste cut', deferListener);\n\t    }\n\t  }\n\n\t  // if user paste into input using mouse on older browser\n\t  // or form autocomplete on newer browser, we need \"change\" event to catch it\n\t  element.on('change', listener);\n\n\t  ctrl.$render = function() {\n\t    element.val(ctrl.$isEmpty(ctrl.$viewValue) ? '' : ctrl.$viewValue);\n\t  };\n\t}\n\n\tfunction weekParser(isoWeek, existingDate) {\n\t  if (isDate(isoWeek)) {\n\t    return isoWeek;\n\t  }\n\n\t  if (isString(isoWeek)) {\n\t    WEEK_REGEXP.lastIndex = 0;\n\t    var parts = WEEK_REGEXP.exec(isoWeek);\n\t    if (parts) {\n\t      var year = +parts[1],\n\t          week = +parts[2],\n\t          hours = 0,\n\t          minutes = 0,\n\t          seconds = 0,\n\t          milliseconds = 0,\n\t          firstThurs = getFirstThursdayOfYear(year),\n\t          addDays = (week - 1) * 7;\n\n\t      if (existingDate) {\n\t        hours = existingDate.getHours();\n\t        minutes = existingDate.getMinutes();\n\t        seconds = existingDate.getSeconds();\n\t        milliseconds = existingDate.getMilliseconds();\n\t      }\n\n\t      return new Date(year, 0, firstThurs.getDate() + addDays, hours, minutes, seconds, milliseconds);\n\t    }\n\t  }\n\n\t  return NaN;\n\t}\n\n\tfunction createDateParser(regexp, mapping) {\n\t  return function(iso, date) {\n\t    var parts, map;\n\n\t    if (isDate(iso)) {\n\t      return iso;\n\t    }\n\n\t    if (isString(iso)) {\n\t      // When a date is JSON'ified to wraps itself inside of an extra\n\t      // set of double quotes. This makes the date parsing code unable\n\t      // to match the date string and parse it as a date.\n\t      if (iso.charAt(0) == '\"' && iso.charAt(iso.length - 1) == '\"') {\n\t        iso = iso.substring(1, iso.length - 1);\n\t      }\n\t      if (ISO_DATE_REGEXP.test(iso)) {\n\t        return new Date(iso);\n\t      }\n\t      regexp.lastIndex = 0;\n\t      parts = regexp.exec(iso);\n\n\t      if (parts) {\n\t        parts.shift();\n\t        if (date) {\n\t          map = {\n\t            yyyy: date.getFullYear(),\n\t            MM: date.getMonth() + 1,\n\t            dd: date.getDate(),\n\t            HH: date.getHours(),\n\t            mm: date.getMinutes(),\n\t            ss: date.getSeconds(),\n\t            sss: date.getMilliseconds() / 1000\n\t          };\n\t        } else {\n\t          map = { yyyy: 1970, MM: 1, dd: 1, HH: 0, mm: 0, ss: 0, sss: 0 };\n\t        }\n\n\t        forEach(parts, function(part, index) {\n\t          if (index < mapping.length) {\n\t            map[mapping[index]] = +part;\n\t          }\n\t        });\n\t        return new Date(map.yyyy, map.MM - 1, map.dd, map.HH, map.mm, map.ss || 0, map.sss * 1000 || 0);\n\t      }\n\t    }\n\n\t    return NaN;\n\t  };\n\t}\n\n\tfunction createDateInputType(type, regexp, parseDate, format) {\n\t  return function dynamicDateInputType(scope, element, attr, ctrl, $sniffer, $browser, $filter) {\n\t    badInputChecker(scope, element, attr, ctrl);\n\t    baseInputType(scope, element, attr, ctrl, $sniffer, $browser);\n\t    var timezone = ctrl && ctrl.$options && ctrl.$options.timezone;\n\t    var previousDate;\n\n\t    ctrl.$$parserName = type;\n\t    ctrl.$parsers.push(function(value) {\n\t      if (ctrl.$isEmpty(value)) return null;\n\t      if (regexp.test(value)) {\n\t        // Note: We cannot read ctrl.$modelValue, as there might be a different\n\t        // parser/formatter in the processing chain so that the model\n\t        // contains some different data format!\n\t        var parsedDate = parseDate(value, previousDate);\n\t        if (timezone === 'UTC') {\n\t          parsedDate.setMinutes(parsedDate.getMinutes() - parsedDate.getTimezoneOffset());\n\t        }\n\t        return parsedDate;\n\t      }\n\t      return undefined;\n\t    });\n\n\t    ctrl.$formatters.push(function(value) {\n\t      if (value && !isDate(value)) {\n\t        throw $ngModelMinErr('datefmt', 'Expected `{0}` to be a date', value);\n\t      }\n\t      if (isValidDate(value)) {\n\t        previousDate = value;\n\t        if (previousDate && timezone === 'UTC') {\n\t          var timezoneOffset = 60000 * previousDate.getTimezoneOffset();\n\t          previousDate = new Date(previousDate.getTime() + timezoneOffset);\n\t        }\n\t        return $filter('date')(value, format, timezone);\n\t      } else {\n\t        previousDate = null;\n\t        return '';\n\t      }\n\t    });\n\n\t    if (isDefined(attr.min) || attr.ngMin) {\n\t      var minVal;\n\t      ctrl.$validators.min = function(value) {\n\t        return !isValidDate(value) || isUndefined(minVal) || parseDate(value) >= minVal;\n\t      };\n\t      attr.$observe('min', function(val) {\n\t        minVal = parseObservedDateValue(val);\n\t        ctrl.$validate();\n\t      });\n\t    }\n\n\t    if (isDefined(attr.max) || attr.ngMax) {\n\t      var maxVal;\n\t      ctrl.$validators.max = function(value) {\n\t        return !isValidDate(value) || isUndefined(maxVal) || parseDate(value) <= maxVal;\n\t      };\n\t      attr.$observe('max', function(val) {\n\t        maxVal = parseObservedDateValue(val);\n\t        ctrl.$validate();\n\t      });\n\t    }\n\n\t    function isValidDate(value) {\n\t      // Invalid Date: getTime() returns NaN\n\t      return value && !(value.getTime && value.getTime() !== value.getTime());\n\t    }\n\n\t    function parseObservedDateValue(val) {\n\t      return isDefined(val) ? (isDate(val) ? val : parseDate(val)) : undefined;\n\t    }\n\t  };\n\t}\n\n\tfunction badInputChecker(scope, element, attr, ctrl) {\n\t  var node = element[0];\n\t  var nativeValidation = ctrl.$$hasNativeValidators = isObject(node.validity);\n\t  if (nativeValidation) {\n\t    ctrl.$parsers.push(function(value) {\n\t      var validity = element.prop(VALIDITY_STATE_PROPERTY) || {};\n\t      // Detect bug in FF35 for input[email] (https://bugzilla.mozilla.org/show_bug.cgi?id=1064430):\n\t      // - also sets validity.badInput (should only be validity.typeMismatch).\n\t      // - see http://www.whatwg.org/specs/web-apps/current-work/multipage/forms.html#e-mail-state-(type=email)\n\t      // - can ignore this case as we can still read out the erroneous email...\n\t      return validity.badInput && !validity.typeMismatch ? undefined : value;\n\t    });\n\t  }\n\t}\n\n\tfunction numberInputType(scope, element, attr, ctrl, $sniffer, $browser) {\n\t  badInputChecker(scope, element, attr, ctrl);\n\t  baseInputType(scope, element, attr, ctrl, $sniffer, $browser);\n\n\t  ctrl.$$parserName = 'number';\n\t  ctrl.$parsers.push(function(value) {\n\t    if (ctrl.$isEmpty(value))      return null;\n\t    if (NUMBER_REGEXP.test(value)) return parseFloat(value);\n\t    return undefined;\n\t  });\n\n\t  ctrl.$formatters.push(function(value) {\n\t    if (!ctrl.$isEmpty(value)) {\n\t      if (!isNumber(value)) {\n\t        throw $ngModelMinErr('numfmt', 'Expected `{0}` to be a number', value);\n\t      }\n\t      value = value.toString();\n\t    }\n\t    return value;\n\t  });\n\n\t  if (isDefined(attr.min) || attr.ngMin) {\n\t    var minVal;\n\t    ctrl.$validators.min = function(value) {\n\t      return ctrl.$isEmpty(value) || isUndefined(minVal) || value >= minVal;\n\t    };\n\n\t    attr.$observe('min', function(val) {\n\t      if (isDefined(val) && !isNumber(val)) {\n\t        val = parseFloat(val, 10);\n\t      }\n\t      minVal = isNumber(val) && !isNaN(val) ? val : undefined;\n\t      // TODO(matsko): implement validateLater to reduce number of validations\n\t      ctrl.$validate();\n\t    });\n\t  }\n\n\t  if (isDefined(attr.max) || attr.ngMax) {\n\t    var maxVal;\n\t    ctrl.$validators.max = function(value) {\n\t      return ctrl.$isEmpty(value) || isUndefined(maxVal) || value <= maxVal;\n\t    };\n\n\t    attr.$observe('max', function(val) {\n\t      if (isDefined(val) && !isNumber(val)) {\n\t        val = parseFloat(val, 10);\n\t      }\n\t      maxVal = isNumber(val) && !isNaN(val) ? val : undefined;\n\t      // TODO(matsko): implement validateLater to reduce number of validations\n\t      ctrl.$validate();\n\t    });\n\t  }\n\t}\n\n\tfunction urlInputType(scope, element, attr, ctrl, $sniffer, $browser) {\n\t  // Note: no badInputChecker here by purpose as `url` is only a validation\n\t  // in browsers, i.e. we can always read out input.value even if it is not valid!\n\t  baseInputType(scope, element, attr, ctrl, $sniffer, $browser);\n\t  stringBasedInputType(ctrl);\n\n\t  ctrl.$$parserName = 'url';\n\t  ctrl.$validators.url = function(modelValue, viewValue) {\n\t    var value = modelValue || viewValue;\n\t    return ctrl.$isEmpty(value) || URL_REGEXP.test(value);\n\t  };\n\t}\n\n\tfunction emailInputType(scope, element, attr, ctrl, $sniffer, $browser) {\n\t  // Note: no badInputChecker here by purpose as `url` is only a validation\n\t  // in browsers, i.e. we can always read out input.value even if it is not valid!\n\t  baseInputType(scope, element, attr, ctrl, $sniffer, $browser);\n\t  stringBasedInputType(ctrl);\n\n\t  ctrl.$$parserName = 'email';\n\t  ctrl.$validators.email = function(modelValue, viewValue) {\n\t    var value = modelValue || viewValue;\n\t    return ctrl.$isEmpty(value) || EMAIL_REGEXP.test(value);\n\t  };\n\t}\n\n\tfunction radioInputType(scope, element, attr, ctrl) {\n\t  // make the name unique, if not defined\n\t  if (isUndefined(attr.name)) {\n\t    element.attr('name', nextUid());\n\t  }\n\n\t  var listener = function(ev) {\n\t    if (element[0].checked) {\n\t      ctrl.$setViewValue(attr.value, ev && ev.type);\n\t    }\n\t  };\n\n\t  element.on('click', listener);\n\n\t  ctrl.$render = function() {\n\t    var value = attr.value;\n\t    element[0].checked = (value == ctrl.$viewValue);\n\t  };\n\n\t  attr.$observe('value', ctrl.$render);\n\t}\n\n\tfunction parseConstantExpr($parse, context, name, expression, fallback) {\n\t  var parseFn;\n\t  if (isDefined(expression)) {\n\t    parseFn = $parse(expression);\n\t    if (!parseFn.constant) {\n\t      throw minErr('ngModel')('constexpr', 'Expected constant expression for `{0}`, but saw ' +\n\t                                   '`{1}`.', name, expression);\n\t    }\n\t    return parseFn(context);\n\t  }\n\t  return fallback;\n\t}\n\n\tfunction checkboxInputType(scope, element, attr, ctrl, $sniffer, $browser, $filter, $parse) {\n\t  var trueValue = parseConstantExpr($parse, scope, 'ngTrueValue', attr.ngTrueValue, true);\n\t  var falseValue = parseConstantExpr($parse, scope, 'ngFalseValue', attr.ngFalseValue, false);\n\n\t  var listener = function(ev) {\n\t    ctrl.$setViewValue(element[0].checked, ev && ev.type);\n\t  };\n\n\t  element.on('click', listener);\n\n\t  ctrl.$render = function() {\n\t    element[0].checked = ctrl.$viewValue;\n\t  };\n\n\t  // Override the standard `$isEmpty` because the $viewValue of an empty checkbox is always set to `false`\n\t  // This is because of the parser below, which compares the `$modelValue` with `trueValue` to convert\n\t  // it to a boolean.\n\t  ctrl.$isEmpty = function(value) {\n\t    return value === false;\n\t  };\n\n\t  ctrl.$formatters.push(function(value) {\n\t    return equals(value, trueValue);\n\t  });\n\n\t  ctrl.$parsers.push(function(value) {\n\t    return value ? trueValue : falseValue;\n\t  });\n\t}\n\n\n\t/**\n\t * @ngdoc directive\n\t * @name textarea\n\t * @restrict E\n\t *\n\t * @description\n\t * HTML textarea element control with angular data-binding. The data-binding and validation\n\t * properties of this element are exactly the same as those of the\n\t * {@link ng.directive:input input element}.\n\t *\n\t * @param {string} ngModel Assignable angular expression to data-bind to.\n\t * @param {string=} name Property name of the form under which the control is published.\n\t * @param {string=} required Sets `required` validation error key if the value is not entered.\n\t * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to\n\t *    the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of\n\t *    `required` when you want to data-bind to the `required` attribute.\n\t * @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than\n\t *    minlength.\n\t * @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than\n\t *    maxlength. Setting the attribute to a negative or non-numeric value, allows view values of any\n\t *    length.\n\t * @param {string=} ngPattern Sets `pattern` validation error key if the value does not match the\n\t *    RegExp pattern expression. Expected value is `/regexp/` for inline patterns or `regexp` for\n\t *    patterns defined as scope expressions.\n\t * @param {string=} ngChange Angular expression to be executed when input changes due to user\n\t *    interaction with the input element.\n\t * @param {boolean=} [ngTrim=true] If set to false Angular will not automatically trim the input.\n\t */\n\n\n\t/**\n\t * @ngdoc directive\n\t * @name input\n\t * @restrict E\n\t *\n\t * @description\n\t * HTML input element control. When used together with {@link ngModel `ngModel`}, it provides data-binding,\n\t * input state control, and validation.\n\t * Input control follows HTML5 input types and polyfills the HTML5 validation behavior for older browsers.\n\t *\n\t * <div class=\"alert alert-warning\">\n\t * **Note:** Not every feature offered is available for all input types.\n\t * Specifically, data binding and event handling via `ng-model` is unsupported for `input[file]`.\n\t * </div>\n\t *\n\t * @param {string} ngModel Assignable angular expression to data-bind to.\n\t * @param {string=} name Property name of the form under which the control is published.\n\t * @param {string=} required Sets `required` validation error key if the value is not entered.\n\t * @param {boolean=} ngRequired Sets `required` attribute if set to true\n\t * @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than\n\t *    minlength.\n\t * @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than\n\t *    maxlength. Setting the attribute to a negative or non-numeric value, allows view values of any\n\t *    length.\n\t * @param {string=} ngPattern Sets `pattern` validation error key if the value does not match the\n\t *    RegExp pattern expression. Expected value is `/regexp/` for inline patterns or `regexp` for\n\t *    patterns defined as scope expressions.\n\t * @param {string=} ngChange Angular expression to be executed when input changes due to user\n\t *    interaction with the input element.\n\t * @param {boolean=} [ngTrim=true] If set to false Angular will not automatically trim the input.\n\t *    This parameter is ignored for input[type=password] controls, which will never trim the\n\t *    input.\n\t *\n\t * @example\n\t    <example name=\"input-directive\" module=\"inputExample\">\n\t      <file name=\"index.html\">\n\t       <script>\n\t          angular.module('inputExample', [])\n\t            .controller('ExampleController', ['$scope', function($scope) {\n\t              $scope.user = {name: 'guest', last: 'visitor'};\n\t            }]);\n\t       </script>\n\t       <div ng-controller=\"ExampleController\">\n\t         <form name=\"myForm\">\n\t           User name: <input type=\"text\" name=\"userName\" ng-model=\"user.name\" required>\n\t           <span class=\"error\" ng-show=\"myForm.userName.$error.required\">\n\t             Required!</span><br>\n\t           Last name: <input type=\"text\" name=\"lastName\" ng-model=\"user.last\"\n\t             ng-minlength=\"3\" ng-maxlength=\"10\">\n\t           <span class=\"error\" ng-show=\"myForm.lastName.$error.minlength\">\n\t             Too short!</span>\n\t           <span class=\"error\" ng-show=\"myForm.lastName.$error.maxlength\">\n\t             Too long!</span><br>\n\t         </form>\n\t         <hr>\n\t         <tt>user = {{user}}</tt><br/>\n\t         <tt>myForm.userName.$valid = {{myForm.userName.$valid}}</tt><br>\n\t         <tt>myForm.userName.$error = {{myForm.userName.$error}}</tt><br>\n\t         <tt>myForm.lastName.$valid = {{myForm.lastName.$valid}}</tt><br>\n\t         <tt>myForm.lastName.$error = {{myForm.lastName.$error}}</tt><br>\n\t         <tt>myForm.$valid = {{myForm.$valid}}</tt><br>\n\t         <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br>\n\t         <tt>myForm.$error.minlength = {{!!myForm.$error.minlength}}</tt><br>\n\t         <tt>myForm.$error.maxlength = {{!!myForm.$error.maxlength}}</tt><br>\n\t       </div>\n\t      </file>\n\t      <file name=\"protractor.js\" type=\"protractor\">\n\t        var user = element(by.exactBinding('user'));\n\t        var userNameValid = element(by.binding('myForm.userName.$valid'));\n\t        var lastNameValid = element(by.binding('myForm.lastName.$valid'));\n\t        var lastNameError = element(by.binding('myForm.lastName.$error'));\n\t        var formValid = element(by.binding('myForm.$valid'));\n\t        var userNameInput = element(by.model('user.name'));\n\t        var userLastInput = element(by.model('user.last'));\n\n\t        it('should initialize to model', function() {\n\t          expect(user.getText()).toContain('{\"name\":\"guest\",\"last\":\"visitor\"}');\n\t          expect(userNameValid.getText()).toContain('true');\n\t          expect(formValid.getText()).toContain('true');\n\t        });\n\n\t        it('should be invalid if empty when required', function() {\n\t          userNameInput.clear();\n\t          userNameInput.sendKeys('');\n\n\t          expect(user.getText()).toContain('{\"last\":\"visitor\"}');\n\t          expect(userNameValid.getText()).toContain('false');\n\t          expect(formValid.getText()).toContain('false');\n\t        });\n\n\t        it('should be valid if empty when min length is set', function() {\n\t          userLastInput.clear();\n\t          userLastInput.sendKeys('');\n\n\t          expect(user.getText()).toContain('{\"name\":\"guest\",\"last\":\"\"}');\n\t          expect(lastNameValid.getText()).toContain('true');\n\t          expect(formValid.getText()).toContain('true');\n\t        });\n\n\t        it('should be invalid if less than required min length', function() {\n\t          userLastInput.clear();\n\t          userLastInput.sendKeys('xx');\n\n\t          expect(user.getText()).toContain('{\"name\":\"guest\"}');\n\t          expect(lastNameValid.getText()).toContain('false');\n\t          expect(lastNameError.getText()).toContain('minlength');\n\t          expect(formValid.getText()).toContain('false');\n\t        });\n\n\t        it('should be invalid if longer than max length', function() {\n\t          userLastInput.clear();\n\t          userLastInput.sendKeys('some ridiculously long name');\n\n\t          expect(user.getText()).toContain('{\"name\":\"guest\"}');\n\t          expect(lastNameValid.getText()).toContain('false');\n\t          expect(lastNameError.getText()).toContain('maxlength');\n\t          expect(formValid.getText()).toContain('false');\n\t        });\n\t      </file>\n\t    </example>\n\t */\n\tvar inputDirective = ['$browser', '$sniffer', '$filter', '$parse',\n\t    function($browser, $sniffer, $filter, $parse) {\n\t  return {\n\t    restrict: 'E',\n\t    require: ['?ngModel'],\n\t    link: {\n\t      pre: function(scope, element, attr, ctrls) {\n\t        if (ctrls[0]) {\n\t          (inputType[lowercase(attr.type)] || inputType.text)(scope, element, attr, ctrls[0], $sniffer,\n\t                                                              $browser, $filter, $parse);\n\t        }\n\t      }\n\t    }\n\t  };\n\t}];\n\n\n\n\tvar CONSTANT_VALUE_REGEXP = /^(true|false|\\d+)$/;\n\t/**\n\t * @ngdoc directive\n\t * @name ngValue\n\t *\n\t * @description\n\t * Binds the given expression to the value of `<option>` or {@link input[radio] `input[radio]`},\n\t * so that when the element is selected, the {@link ngModel `ngModel`} of that element is set to\n\t * the bound value.\n\t *\n\t * `ngValue` is useful when dynamically generating lists of radio buttons using\n\t * {@link ngRepeat `ngRepeat`}, as shown below.\n\t *\n\t * Likewise, `ngValue` can be used to generate `<option>` elements for\n\t * the {@link select `select`} element. In that case however, only strings are supported\n\t * for the `value `attribute, so the resulting `ngModel` will always be a string.\n\t * Support for `select` models with non-string values is available via `ngOptions`.\n\t *\n\t * @element input\n\t * @param {string=} ngValue angular expression, whose value will be bound to the `value` attribute\n\t *   of the `input` element\n\t *\n\t * @example\n\t    <example name=\"ngValue-directive\" module=\"valueExample\">\n\t      <file name=\"index.html\">\n\t       <script>\n\t          angular.module('valueExample', [])\n\t            .controller('ExampleController', ['$scope', function($scope) {\n\t              $scope.names = ['pizza', 'unicorns', 'robots'];\n\t              $scope.my = { favorite: 'unicorns' };\n\t            }]);\n\t       </script>\n\t        <form ng-controller=\"ExampleController\">\n\t          <h2>Which is your favorite?</h2>\n\t            <label ng-repeat=\"name in names\" for=\"{{name}}\">\n\t              {{name}}\n\t              <input type=\"radio\"\n\t                     ng-model=\"my.favorite\"\n\t                     ng-value=\"name\"\n\t                     id=\"{{name}}\"\n\t                     name=\"favorite\">\n\t            </label>\n\t          <div>You chose {{my.favorite}}</div>\n\t        </form>\n\t      </file>\n\t      <file name=\"protractor.js\" type=\"protractor\">\n\t        var favorite = element(by.binding('my.favorite'));\n\n\t        it('should initialize to model', function() {\n\t          expect(favorite.getText()).toContain('unicorns');\n\t        });\n\t        it('should bind the values to the inputs', function() {\n\t          element.all(by.model('my.favorite')).get(0).click();\n\t          expect(favorite.getText()).toContain('pizza');\n\t        });\n\t      </file>\n\t    </example>\n\t */\n\tvar ngValueDirective = function() {\n\t  return {\n\t    restrict: 'A',\n\t    priority: 100,\n\t    compile: function(tpl, tplAttr) {\n\t      if (CONSTANT_VALUE_REGEXP.test(tplAttr.ngValue)) {\n\t        return function ngValueConstantLink(scope, elm, attr) {\n\t          attr.$set('value', scope.$eval(attr.ngValue));\n\t        };\n\t      } else {\n\t        return function ngValueLink(scope, elm, attr) {\n\t          scope.$watch(attr.ngValue, function valueWatchAction(value) {\n\t            attr.$set('value', value);\n\t          });\n\t        };\n\t      }\n\t    }\n\t  };\n\t};\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngBind\n\t * @restrict AC\n\t *\n\t * @description\n\t * The `ngBind` attribute tells Angular to replace the text content of the specified HTML element\n\t * with the value of a given expression, and to update the text content when the value of that\n\t * expression changes.\n\t *\n\t * Typically, you don't use `ngBind` directly, but instead you use the double curly markup like\n\t * `{{ expression }}` which is similar but less verbose.\n\t *\n\t * It is preferable to use `ngBind` instead of `{{ expression }}` if a template is momentarily\n\t * displayed by the browser in its raw state before Angular compiles it. Since `ngBind` is an\n\t * element attribute, it makes the bindings invisible to the user while the page is loading.\n\t *\n\t * An alternative solution to this problem would be using the\n\t * {@link ng.directive:ngCloak ngCloak} directive.\n\t *\n\t *\n\t * @element ANY\n\t * @param {expression} ngBind {@link guide/expression Expression} to evaluate.\n\t *\n\t * @example\n\t * Enter a name in the Live Preview text box; the greeting below the text box changes instantly.\n\t   <example module=\"bindExample\">\n\t     <file name=\"index.html\">\n\t       <script>\n\t         angular.module('bindExample', [])\n\t           .controller('ExampleController', ['$scope', function($scope) {\n\t             $scope.name = 'Whirled';\n\t           }]);\n\t       </script>\n\t       <div ng-controller=\"ExampleController\">\n\t         Enter name: <input type=\"text\" ng-model=\"name\"><br>\n\t         Hello <span ng-bind=\"name\"></span>!\n\t       </div>\n\t     </file>\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t       it('should check ng-bind', function() {\n\t         var nameInput = element(by.model('name'));\n\n\t         expect(element(by.binding('name')).getText()).toBe('Whirled');\n\t         nameInput.clear();\n\t         nameInput.sendKeys('world');\n\t         expect(element(by.binding('name')).getText()).toBe('world');\n\t       });\n\t     </file>\n\t   </example>\n\t */\n\tvar ngBindDirective = ['$compile', function($compile) {\n\t  return {\n\t    restrict: 'AC',\n\t    compile: function ngBindCompile(templateElement) {\n\t      $compile.$$addBindingClass(templateElement);\n\t      return function ngBindLink(scope, element, attr) {\n\t        $compile.$$addBindingInfo(element, attr.ngBind);\n\t        element = element[0];\n\t        scope.$watch(attr.ngBind, function ngBindWatchAction(value) {\n\t          element.textContent = value === undefined ? '' : value;\n\t        });\n\t      };\n\t    }\n\t  };\n\t}];\n\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngBindTemplate\n\t *\n\t * @description\n\t * The `ngBindTemplate` directive specifies that the element\n\t * text content should be replaced with the interpolation of the template\n\t * in the `ngBindTemplate` attribute.\n\t * Unlike `ngBind`, the `ngBindTemplate` can contain multiple `{{` `}}`\n\t * expressions. This directive is needed since some HTML elements\n\t * (such as TITLE and OPTION) cannot contain SPAN elements.\n\t *\n\t * @element ANY\n\t * @param {string} ngBindTemplate template of form\n\t *   <tt>{{</tt> <tt>expression</tt> <tt>}}</tt> to eval.\n\t *\n\t * @example\n\t * Try it here: enter text in text box and watch the greeting change.\n\t   <example module=\"bindExample\">\n\t     <file name=\"index.html\">\n\t       <script>\n\t         angular.module('bindExample', [])\n\t           .controller('ExampleController', ['$scope', function($scope) {\n\t             $scope.salutation = 'Hello';\n\t             $scope.name = 'World';\n\t           }]);\n\t       </script>\n\t       <div ng-controller=\"ExampleController\">\n\t        Salutation: <input type=\"text\" ng-model=\"salutation\"><br>\n\t        Name: <input type=\"text\" ng-model=\"name\"><br>\n\t        <pre ng-bind-template=\"{{salutation}} {{name}}!\"></pre>\n\t       </div>\n\t     </file>\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t       it('should check ng-bind', function() {\n\t         var salutationElem = element(by.binding('salutation'));\n\t         var salutationInput = element(by.model('salutation'));\n\t         var nameInput = element(by.model('name'));\n\n\t         expect(salutationElem.getText()).toBe('Hello World!');\n\n\t         salutationInput.clear();\n\t         salutationInput.sendKeys('Greetings');\n\t         nameInput.clear();\n\t         nameInput.sendKeys('user');\n\n\t         expect(salutationElem.getText()).toBe('Greetings user!');\n\t       });\n\t     </file>\n\t   </example>\n\t */\n\tvar ngBindTemplateDirective = ['$interpolate', '$compile', function($interpolate, $compile) {\n\t  return {\n\t    compile: function ngBindTemplateCompile(templateElement) {\n\t      $compile.$$addBindingClass(templateElement);\n\t      return function ngBindTemplateLink(scope, element, attr) {\n\t        var interpolateFn = $interpolate(element.attr(attr.$attr.ngBindTemplate));\n\t        $compile.$$addBindingInfo(element, interpolateFn.expressions);\n\t        element = element[0];\n\t        attr.$observe('ngBindTemplate', function(value) {\n\t          element.textContent = value === undefined ? '' : value;\n\t        });\n\t      };\n\t    }\n\t  };\n\t}];\n\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngBindHtml\n\t *\n\t * @description\n\t * Evaluates the expression and inserts the resulting HTML into the element in a secure way. By default,\n\t * the resulting HTML content will be sanitized using the {@link ngSanitize.$sanitize $sanitize} service.\n\t * To utilize this functionality, ensure that `$sanitize` is available, for example, by including {@link\n\t * ngSanitize} in your module's dependencies (not in core Angular). In order to use {@link ngSanitize}\n\t * in your module's dependencies, you need to include \"angular-sanitize.js\" in your application.\n\t *\n\t * You may also bypass sanitization for values you know are safe. To do so, bind to\n\t * an explicitly trusted value via {@link ng.$sce#trustAsHtml $sce.trustAsHtml}.  See the example\n\t * under {@link ng.$sce#show-me-an-example-using-sce- Strict Contextual Escaping (SCE)}.\n\t *\n\t * Note: If a `$sanitize` service is unavailable and the bound value isn't explicitly trusted, you\n\t * will have an exception (instead of an exploit.)\n\t *\n\t * @element ANY\n\t * @param {expression} ngBindHtml {@link guide/expression Expression} to evaluate.\n\t *\n\t * @example\n\n\t   <example module=\"bindHtmlExample\" deps=\"angular-sanitize.js\">\n\t     <file name=\"index.html\">\n\t       <div ng-controller=\"ExampleController\">\n\t        <p ng-bind-html=\"myHTML\"></p>\n\t       </div>\n\t     </file>\n\n\t     <file name=\"script.js\">\n\t       angular.module('bindHtmlExample', ['ngSanitize'])\n\t         .controller('ExampleController', ['$scope', function($scope) {\n\t           $scope.myHTML =\n\t              'I am an <code>HTML</code>string with ' +\n\t              '<a href=\"#\">links!</a> and other <em>stuff</em>';\n\t         }]);\n\t     </file>\n\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t       it('should check ng-bind-html', function() {\n\t         expect(element(by.binding('myHTML')).getText()).toBe(\n\t             'I am an HTMLstring with links! and other stuff');\n\t       });\n\t     </file>\n\t   </example>\n\t */\n\tvar ngBindHtmlDirective = ['$sce', '$parse', '$compile', function($sce, $parse, $compile) {\n\t  return {\n\t    restrict: 'A',\n\t    compile: function ngBindHtmlCompile(tElement, tAttrs) {\n\t      var ngBindHtmlGetter = $parse(tAttrs.ngBindHtml);\n\t      var ngBindHtmlWatch = $parse(tAttrs.ngBindHtml, function getStringValue(value) {\n\t        return (value || '').toString();\n\t      });\n\t      $compile.$$addBindingClass(tElement);\n\n\t      return function ngBindHtmlLink(scope, element, attr) {\n\t        $compile.$$addBindingInfo(element, attr.ngBindHtml);\n\n\t        scope.$watch(ngBindHtmlWatch, function ngBindHtmlWatchAction() {\n\t          // we re-evaluate the expr because we want a TrustedValueHolderType\n\t          // for $sce, not a string\n\t          element.html($sce.getTrustedHtml(ngBindHtmlGetter(scope)) || '');\n\t        });\n\t      };\n\t    }\n\t  };\n\t}];\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngChange\n\t *\n\t * @description\n\t * Evaluate the given expression when the user changes the input.\n\t * The expression is evaluated immediately, unlike the JavaScript onchange event\n\t * which only triggers at the end of a change (usually, when the user leaves the\n\t * form element or presses the return key).\n\t *\n\t * The `ngChange` expression is only evaluated when a change in the input value causes\n\t * a new value to be committed to the model.\n\t *\n\t * It will not be evaluated:\n\t * * if the value returned from the `$parsers` transformation pipeline has not changed\n\t * * if the input has continued to be invalid since the model will stay `null`\n\t * * if the model is changed programmatically and not by a change to the input value\n\t *\n\t *\n\t * Note, this directive requires `ngModel` to be present.\n\t *\n\t * @element input\n\t * @param {expression} ngChange {@link guide/expression Expression} to evaluate upon change\n\t * in input value.\n\t *\n\t * @example\n\t * <example name=\"ngChange-directive\" module=\"changeExample\">\n\t *   <file name=\"index.html\">\n\t *     <script>\n\t *       angular.module('changeExample', [])\n\t *         .controller('ExampleController', ['$scope', function($scope) {\n\t *           $scope.counter = 0;\n\t *           $scope.change = function() {\n\t *             $scope.counter++;\n\t *           };\n\t *         }]);\n\t *     </script>\n\t *     <div ng-controller=\"ExampleController\">\n\t *       <input type=\"checkbox\" ng-model=\"confirmed\" ng-change=\"change()\" id=\"ng-change-example1\" />\n\t *       <input type=\"checkbox\" ng-model=\"confirmed\" id=\"ng-change-example2\" />\n\t *       <label for=\"ng-change-example2\">Confirmed</label><br />\n\t *       <tt>debug = {{confirmed}}</tt><br/>\n\t *       <tt>counter = {{counter}}</tt><br/>\n\t *     </div>\n\t *   </file>\n\t *   <file name=\"protractor.js\" type=\"protractor\">\n\t *     var counter = element(by.binding('counter'));\n\t *     var debug = element(by.binding('confirmed'));\n\t *\n\t *     it('should evaluate the expression if changing from view', function() {\n\t *       expect(counter.getText()).toContain('0');\n\t *\n\t *       element(by.id('ng-change-example1')).click();\n\t *\n\t *       expect(counter.getText()).toContain('1');\n\t *       expect(debug.getText()).toContain('true');\n\t *     });\n\t *\n\t *     it('should not evaluate the expression if changing from model', function() {\n\t *       element(by.id('ng-change-example2')).click();\n\n\t *       expect(counter.getText()).toContain('0');\n\t *       expect(debug.getText()).toContain('true');\n\t *     });\n\t *   </file>\n\t * </example>\n\t */\n\tvar ngChangeDirective = valueFn({\n\t  restrict: 'A',\n\t  require: 'ngModel',\n\t  link: function(scope, element, attr, ctrl) {\n\t    ctrl.$viewChangeListeners.push(function() {\n\t      scope.$eval(attr.ngChange);\n\t    });\n\t  }\n\t});\n\n\tfunction classDirective(name, selector) {\n\t  name = 'ngClass' + name;\n\t  return ['$animate', function($animate) {\n\t    return {\n\t      restrict: 'AC',\n\t      link: function(scope, element, attr) {\n\t        var oldVal;\n\n\t        scope.$watch(attr[name], ngClassWatchAction, true);\n\n\t        attr.$observe('class', function(value) {\n\t          ngClassWatchAction(scope.$eval(attr[name]));\n\t        });\n\n\n\t        if (name !== 'ngClass') {\n\t          scope.$watch('$index', function($index, old$index) {\n\t            // jshint bitwise: false\n\t            var mod = $index & 1;\n\t            if (mod !== (old$index & 1)) {\n\t              var classes = arrayClasses(scope.$eval(attr[name]));\n\t              mod === selector ?\n\t                addClasses(classes) :\n\t                removeClasses(classes);\n\t            }\n\t          });\n\t        }\n\n\t        function addClasses(classes) {\n\t          var newClasses = digestClassCounts(classes, 1);\n\t          attr.$addClass(newClasses);\n\t        }\n\n\t        function removeClasses(classes) {\n\t          var newClasses = digestClassCounts(classes, -1);\n\t          attr.$removeClass(newClasses);\n\t        }\n\n\t        function digestClassCounts(classes, count) {\n\t          var classCounts = element.data('$classCounts') || {};\n\t          var classesToUpdate = [];\n\t          forEach(classes, function(className) {\n\t            if (count > 0 || classCounts[className]) {\n\t              classCounts[className] = (classCounts[className] || 0) + count;\n\t              if (classCounts[className] === +(count > 0)) {\n\t                classesToUpdate.push(className);\n\t              }\n\t            }\n\t          });\n\t          element.data('$classCounts', classCounts);\n\t          return classesToUpdate.join(' ');\n\t        }\n\n\t        function updateClasses(oldClasses, newClasses) {\n\t          var toAdd = arrayDifference(newClasses, oldClasses);\n\t          var toRemove = arrayDifference(oldClasses, newClasses);\n\t          toAdd = digestClassCounts(toAdd, 1);\n\t          toRemove = digestClassCounts(toRemove, -1);\n\t          if (toAdd && toAdd.length) {\n\t            $animate.addClass(element, toAdd);\n\t          }\n\t          if (toRemove && toRemove.length) {\n\t            $animate.removeClass(element, toRemove);\n\t          }\n\t        }\n\n\t        function ngClassWatchAction(newVal) {\n\t          if (selector === true || scope.$index % 2 === selector) {\n\t            var newClasses = arrayClasses(newVal || []);\n\t            if (!oldVal) {\n\t              addClasses(newClasses);\n\t            } else if (!equals(newVal,oldVal)) {\n\t              var oldClasses = arrayClasses(oldVal);\n\t              updateClasses(oldClasses, newClasses);\n\t            }\n\t          }\n\t          oldVal = shallowCopy(newVal);\n\t        }\n\t      }\n\t    };\n\n\t    function arrayDifference(tokens1, tokens2) {\n\t      var values = [];\n\n\t      outer:\n\t      for (var i = 0; i < tokens1.length; i++) {\n\t        var token = tokens1[i];\n\t        for (var j = 0; j < tokens2.length; j++) {\n\t          if (token == tokens2[j]) continue outer;\n\t        }\n\t        values.push(token);\n\t      }\n\t      return values;\n\t    }\n\n\t    function arrayClasses(classVal) {\n\t      if (isArray(classVal)) {\n\t        return classVal;\n\t      } else if (isString(classVal)) {\n\t        return classVal.split(' ');\n\t      } else if (isObject(classVal)) {\n\t        var classes = [];\n\t        forEach(classVal, function(v, k) {\n\t          if (v) {\n\t            classes = classes.concat(k.split(' '));\n\t          }\n\t        });\n\t        return classes;\n\t      }\n\t      return classVal;\n\t    }\n\t  }];\n\t}\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngClass\n\t * @restrict AC\n\t *\n\t * @description\n\t * The `ngClass` directive allows you to dynamically set CSS classes on an HTML element by databinding\n\t * an expression that represents all classes to be added.\n\t *\n\t * The directive operates in three different ways, depending on which of three types the expression\n\t * evaluates to:\n\t *\n\t * 1. If the expression evaluates to a string, the string should be one or more space-delimited class\n\t * names.\n\t *\n\t * 2. If the expression evaluates to an array, each element of the array should be a string that is\n\t * one or more space-delimited class names.\n\t *\n\t * 3. If the expression evaluates to an object, then for each key-value pair of the\n\t * object with a truthy value the corresponding key is used as a class name.\n\t *\n\t * The directive won't add duplicate classes if a particular class was already set.\n\t *\n\t * When the expression changes, the previously added classes are removed and only then the\n\t * new classes are added.\n\t *\n\t * @animations\n\t * **add** - happens just before the class is applied to the elements\n\t *\n\t * **remove** - happens just before the class is removed from the element\n\t *\n\t * @element ANY\n\t * @param {expression} ngClass {@link guide/expression Expression} to eval. The result\n\t *   of the evaluation can be a string representing space delimited class\n\t *   names, an array, or a map of class names to boolean values. In the case of a map, the\n\t *   names of the properties whose values are truthy will be added as css classes to the\n\t *   element.\n\t *\n\t * @example Example that demonstrates basic bindings via ngClass directive.\n\t   <example>\n\t     <file name=\"index.html\">\n\t       <p ng-class=\"{strike: deleted, bold: important, red: error}\">Map Syntax Example</p>\n\t       <input type=\"checkbox\" ng-model=\"deleted\"> deleted (apply \"strike\" class)<br>\n\t       <input type=\"checkbox\" ng-model=\"important\"> important (apply \"bold\" class)<br>\n\t       <input type=\"checkbox\" ng-model=\"error\"> error (apply \"red\" class)\n\t       <hr>\n\t       <p ng-class=\"style\">Using String Syntax</p>\n\t       <input type=\"text\" ng-model=\"style\" placeholder=\"Type: bold strike red\">\n\t       <hr>\n\t       <p ng-class=\"[style1, style2, style3]\">Using Array Syntax</p>\n\t       <input ng-model=\"style1\" placeholder=\"Type: bold, strike or red\"><br>\n\t       <input ng-model=\"style2\" placeholder=\"Type: bold, strike or red\"><br>\n\t       <input ng-model=\"style3\" placeholder=\"Type: bold, strike or red\"><br>\n\t     </file>\n\t     <file name=\"style.css\">\n\t       .strike {\n\t         text-decoration: line-through;\n\t       }\n\t       .bold {\n\t           font-weight: bold;\n\t       }\n\t       .red {\n\t           color: red;\n\t       }\n\t     </file>\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t       var ps = element.all(by.css('p'));\n\n\t       it('should let you toggle the class', function() {\n\n\t         expect(ps.first().getAttribute('class')).not.toMatch(/bold/);\n\t         expect(ps.first().getAttribute('class')).not.toMatch(/red/);\n\n\t         element(by.model('important')).click();\n\t         expect(ps.first().getAttribute('class')).toMatch(/bold/);\n\n\t         element(by.model('error')).click();\n\t         expect(ps.first().getAttribute('class')).toMatch(/red/);\n\t       });\n\n\t       it('should let you toggle string example', function() {\n\t         expect(ps.get(1).getAttribute('class')).toBe('');\n\t         element(by.model('style')).clear();\n\t         element(by.model('style')).sendKeys('red');\n\t         expect(ps.get(1).getAttribute('class')).toBe('red');\n\t       });\n\n\t       it('array example should have 3 classes', function() {\n\t         expect(ps.last().getAttribute('class')).toBe('');\n\t         element(by.model('style1')).sendKeys('bold');\n\t         element(by.model('style2')).sendKeys('strike');\n\t         element(by.model('style3')).sendKeys('red');\n\t         expect(ps.last().getAttribute('class')).toBe('bold strike red');\n\t       });\n\t     </file>\n\t   </example>\n\n\t   ## Animations\n\n\t   The example below demonstrates how to perform animations using ngClass.\n\n\t   <example module=\"ngAnimate\" deps=\"angular-animate.js\" animations=\"true\">\n\t     <file name=\"index.html\">\n\t      <input id=\"setbtn\" type=\"button\" value=\"set\" ng-click=\"myVar='my-class'\">\n\t      <input id=\"clearbtn\" type=\"button\" value=\"clear\" ng-click=\"myVar=''\">\n\t      <br>\n\t      <span class=\"base-class\" ng-class=\"myVar\">Sample Text</span>\n\t     </file>\n\t     <file name=\"style.css\">\n\t       .base-class {\n\t         -webkit-transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;\n\t         transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;\n\t       }\n\n\t       .base-class.my-class {\n\t         color: red;\n\t         font-size:3em;\n\t       }\n\t     </file>\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t       it('should check ng-class', function() {\n\t         expect(element(by.css('.base-class')).getAttribute('class')).not.\n\t           toMatch(/my-class/);\n\n\t         element(by.id('setbtn')).click();\n\n\t         expect(element(by.css('.base-class')).getAttribute('class')).\n\t           toMatch(/my-class/);\n\n\t         element(by.id('clearbtn')).click();\n\n\t         expect(element(by.css('.base-class')).getAttribute('class')).not.\n\t           toMatch(/my-class/);\n\t       });\n\t     </file>\n\t   </example>\n\n\n\t   ## ngClass and pre-existing CSS3 Transitions/Animations\n\t   The ngClass directive still supports CSS3 Transitions/Animations even if they do not follow the ngAnimate CSS naming structure.\n\t   Upon animation ngAnimate will apply supplementary CSS classes to track the start and end of an animation, but this will not hinder\n\t   any pre-existing CSS transitions already on the element. To get an idea of what happens during a class-based animation, be sure\n\t   to view the step by step details of {@link ng.$animate#addClass $animate.addClass} and\n\t   {@link ng.$animate#removeClass $animate.removeClass}.\n\t */\n\tvar ngClassDirective = classDirective('', true);\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngClassOdd\n\t * @restrict AC\n\t *\n\t * @description\n\t * The `ngClassOdd` and `ngClassEven` directives work exactly as\n\t * {@link ng.directive:ngClass ngClass}, except they work in\n\t * conjunction with `ngRepeat` and take effect only on odd (even) rows.\n\t *\n\t * This directive can be applied only within the scope of an\n\t * {@link ng.directive:ngRepeat ngRepeat}.\n\t *\n\t * @element ANY\n\t * @param {expression} ngClassOdd {@link guide/expression Expression} to eval. The result\n\t *   of the evaluation can be a string representing space delimited class names or an array.\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t        <ol ng-init=\"names=['John', 'Mary', 'Cate', 'Suz']\">\n\t          <li ng-repeat=\"name in names\">\n\t           <span ng-class-odd=\"'odd'\" ng-class-even=\"'even'\">\n\t             {{name}}\n\t           </span>\n\t          </li>\n\t        </ol>\n\t     </file>\n\t     <file name=\"style.css\">\n\t       .odd {\n\t         color: red;\n\t       }\n\t       .even {\n\t         color: blue;\n\t       }\n\t     </file>\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t       it('should check ng-class-odd and ng-class-even', function() {\n\t         expect(element(by.repeater('name in names').row(0).column('name')).getAttribute('class')).\n\t           toMatch(/odd/);\n\t         expect(element(by.repeater('name in names').row(1).column('name')).getAttribute('class')).\n\t           toMatch(/even/);\n\t       });\n\t     </file>\n\t   </example>\n\t */\n\tvar ngClassOddDirective = classDirective('Odd', 0);\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngClassEven\n\t * @restrict AC\n\t *\n\t * @description\n\t * The `ngClassOdd` and `ngClassEven` directives work exactly as\n\t * {@link ng.directive:ngClass ngClass}, except they work in\n\t * conjunction with `ngRepeat` and take effect only on odd (even) rows.\n\t *\n\t * This directive can be applied only within the scope of an\n\t * {@link ng.directive:ngRepeat ngRepeat}.\n\t *\n\t * @element ANY\n\t * @param {expression} ngClassEven {@link guide/expression Expression} to eval. The\n\t *   result of the evaluation can be a string representing space delimited class names or an array.\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t        <ol ng-init=\"names=['John', 'Mary', 'Cate', 'Suz']\">\n\t          <li ng-repeat=\"name in names\">\n\t           <span ng-class-odd=\"'odd'\" ng-class-even=\"'even'\">\n\t             {{name}} &nbsp; &nbsp; &nbsp;\n\t           </span>\n\t          </li>\n\t        </ol>\n\t     </file>\n\t     <file name=\"style.css\">\n\t       .odd {\n\t         color: red;\n\t       }\n\t       .even {\n\t         color: blue;\n\t       }\n\t     </file>\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t       it('should check ng-class-odd and ng-class-even', function() {\n\t         expect(element(by.repeater('name in names').row(0).column('name')).getAttribute('class')).\n\t           toMatch(/odd/);\n\t         expect(element(by.repeater('name in names').row(1).column('name')).getAttribute('class')).\n\t           toMatch(/even/);\n\t       });\n\t     </file>\n\t   </example>\n\t */\n\tvar ngClassEvenDirective = classDirective('Even', 1);\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngCloak\n\t * @restrict AC\n\t *\n\t * @description\n\t * The `ngCloak` directive is used to prevent the Angular html template from being briefly\n\t * displayed by the browser in its raw (uncompiled) form while your application is loading. Use this\n\t * directive to avoid the undesirable flicker effect caused by the html template display.\n\t *\n\t * The directive can be applied to the `<body>` element, but the preferred usage is to apply\n\t * multiple `ngCloak` directives to small portions of the page to permit progressive rendering\n\t * of the browser view.\n\t *\n\t * `ngCloak` works in cooperation with the following css rule embedded within `angular.js` and\n\t * `angular.min.js`.\n\t * For CSP mode please add `angular-csp.css` to your html file (see {@link ng.directive:ngCsp ngCsp}).\n\t *\n\t * ```css\n\t * [ng\\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak {\n\t *   display: none !important;\n\t * }\n\t * ```\n\t *\n\t * When this css rule is loaded by the browser, all html elements (including their children) that\n\t * are tagged with the `ngCloak` directive are hidden. When Angular encounters this directive\n\t * during the compilation of the template it deletes the `ngCloak` element attribute, making\n\t * the compiled element visible.\n\t *\n\t * For the best result, the `angular.js` script must be loaded in the head section of the html\n\t * document; alternatively, the css rule above must be included in the external stylesheet of the\n\t * application.\n\t *\n\t * Legacy browsers, like IE7, do not provide attribute selector support (added in CSS 2.1) so they\n\t * cannot match the `[ng\\:cloak]` selector. To work around this limitation, you must add the css\n\t * class `ng-cloak` in addition to the `ngCloak` directive as shown in the example below.\n\t *\n\t * @element ANY\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t        <div id=\"template1\" ng-cloak>{{ 'hello' }}</div>\n\t        <div id=\"template2\" ng-cloak class=\"ng-cloak\">{{ 'hello IE7' }}</div>\n\t     </file>\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t       it('should remove the template directive and css class', function() {\n\t         expect($('#template1').getAttribute('ng-cloak')).\n\t           toBeNull();\n\t         expect($('#template2').getAttribute('ng-cloak')).\n\t           toBeNull();\n\t       });\n\t     </file>\n\t   </example>\n\t *\n\t */\n\tvar ngCloakDirective = ngDirective({\n\t  compile: function(element, attr) {\n\t    attr.$set('ngCloak', undefined);\n\t    element.removeClass('ng-cloak');\n\t  }\n\t});\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngController\n\t *\n\t * @description\n\t * The `ngController` directive attaches a controller class to the view. This is a key aspect of how angular\n\t * supports the principles behind the Model-View-Controller design pattern.\n\t *\n\t * MVC components in angular:\n\t *\n\t * * Model — Models are the properties of a scope; scopes are attached to the DOM where scope properties\n\t *   are accessed through bindings.\n\t * * View — The template (HTML with data bindings) that is rendered into the View.\n\t * * Controller — The `ngController` directive specifies a Controller class; the class contains business\n\t *   logic behind the application to decorate the scope with functions and values\n\t *\n\t * Note that you can also attach controllers to the DOM by declaring it in a route definition\n\t * via the {@link ngRoute.$route $route} service. A common mistake is to declare the controller\n\t * again using `ng-controller` in the template itself.  This will cause the controller to be attached\n\t * and executed twice.\n\t *\n\t * @element ANY\n\t * @scope\n\t * @priority 500\n\t * @param {expression} ngController Name of a constructor function registered with the current\n\t * {@link ng.$controllerProvider $controllerProvider} or an {@link guide/expression expression}\n\t * that on the current scope evaluates to a constructor function.\n\t *\n\t * The controller instance can be published into a scope property by specifying\n\t * `ng-controller=\"as propertyName\"`.\n\t *\n\t * If the current `$controllerProvider` is configured to use globals (via\n\t * {@link ng.$controllerProvider#allowGlobals `$controllerProvider.allowGlobals()` }), this may\n\t * also be the name of a globally accessible constructor function (not recommended).\n\t *\n\t * @example\n\t * Here is a simple form for editing user contact information. Adding, removing, clearing, and\n\t * greeting are methods declared on the controller (see source tab). These methods can\n\t * easily be called from the angular markup. Any changes to the data are automatically reflected\n\t * in the View without the need for a manual update.\n\t *\n\t * Two different declaration styles are included below:\n\t *\n\t * * one binds methods and properties directly onto the controller using `this`:\n\t * `ng-controller=\"SettingsController1 as settings\"`\n\t * * one injects `$scope` into the controller:\n\t * `ng-controller=\"SettingsController2\"`\n\t *\n\t * The second option is more common in the Angular community, and is generally used in boilerplates\n\t * and in this guide. However, there are advantages to binding properties directly to the controller\n\t * and avoiding scope.\n\t *\n\t * * Using `controller as` makes it obvious which controller you are accessing in the template when\n\t * multiple controllers apply to an element.\n\t * * If you are writing your controllers as classes you have easier access to the properties and\n\t * methods, which will appear on the scope, from inside the controller code.\n\t * * Since there is always a `.` in the bindings, you don't have to worry about prototypal\n\t * inheritance masking primitives.\n\t *\n\t * This example demonstrates the `controller as` syntax.\n\t *\n\t * <example name=\"ngControllerAs\" module=\"controllerAsExample\">\n\t *   <file name=\"index.html\">\n\t *    <div id=\"ctrl-as-exmpl\" ng-controller=\"SettingsController1 as settings\">\n\t *      Name: <input type=\"text\" ng-model=\"settings.name\"/>\n\t *      [ <a href=\"\" ng-click=\"settings.greet()\">greet</a> ]<br/>\n\t *      Contact:\n\t *      <ul>\n\t *        <li ng-repeat=\"contact in settings.contacts\">\n\t *          <select ng-model=\"contact.type\">\n\t *             <option>phone</option>\n\t *             <option>email</option>\n\t *          </select>\n\t *          <input type=\"text\" ng-model=\"contact.value\"/>\n\t *          [ <a href=\"\" ng-click=\"settings.clearContact(contact)\">clear</a>\n\t *          | <a href=\"\" ng-click=\"settings.removeContact(contact)\">X</a> ]\n\t *        </li>\n\t *        <li>[ <a href=\"\" ng-click=\"settings.addContact()\">add</a> ]</li>\n\t *     </ul>\n\t *    </div>\n\t *   </file>\n\t *   <file name=\"app.js\">\n\t *    angular.module('controllerAsExample', [])\n\t *      .controller('SettingsController1', SettingsController1);\n\t *\n\t *    function SettingsController1() {\n\t *      this.name = \"John Smith\";\n\t *      this.contacts = [\n\t *        {type: 'phone', value: '408 555 1212'},\n\t *        {type: 'email', value: 'john.smith@example.org'} ];\n\t *    }\n\t *\n\t *    SettingsController1.prototype.greet = function() {\n\t *      alert(this.name);\n\t *    };\n\t *\n\t *    SettingsController1.prototype.addContact = function() {\n\t *      this.contacts.push({type: 'email', value: 'yourname@example.org'});\n\t *    };\n\t *\n\t *    SettingsController1.prototype.removeContact = function(contactToRemove) {\n\t *     var index = this.contacts.indexOf(contactToRemove);\n\t *      this.contacts.splice(index, 1);\n\t *    };\n\t *\n\t *    SettingsController1.prototype.clearContact = function(contact) {\n\t *      contact.type = 'phone';\n\t *      contact.value = '';\n\t *    };\n\t *   </file>\n\t *   <file name=\"protractor.js\" type=\"protractor\">\n\t *     it('should check controller as', function() {\n\t *       var container = element(by.id('ctrl-as-exmpl'));\n\t *         expect(container.element(by.model('settings.name'))\n\t *           .getAttribute('value')).toBe('John Smith');\n\t *\n\t *       var firstRepeat =\n\t *           container.element(by.repeater('contact in settings.contacts').row(0));\n\t *       var secondRepeat =\n\t *           container.element(by.repeater('contact in settings.contacts').row(1));\n\t *\n\t *       expect(firstRepeat.element(by.model('contact.value')).getAttribute('value'))\n\t *           .toBe('408 555 1212');\n\t *\n\t *       expect(secondRepeat.element(by.model('contact.value')).getAttribute('value'))\n\t *           .toBe('john.smith@example.org');\n\t *\n\t *       firstRepeat.element(by.linkText('clear')).click();\n\t *\n\t *       expect(firstRepeat.element(by.model('contact.value')).getAttribute('value'))\n\t *           .toBe('');\n\t *\n\t *       container.element(by.linkText('add')).click();\n\t *\n\t *       expect(container.element(by.repeater('contact in settings.contacts').row(2))\n\t *           .element(by.model('contact.value'))\n\t *           .getAttribute('value'))\n\t *           .toBe('yourname@example.org');\n\t *     });\n\t *   </file>\n\t * </example>\n\t *\n\t * This example demonstrates the \"attach to `$scope`\" style of controller.\n\t *\n\t * <example name=\"ngController\" module=\"controllerExample\">\n\t *  <file name=\"index.html\">\n\t *   <div id=\"ctrl-exmpl\" ng-controller=\"SettingsController2\">\n\t *     Name: <input type=\"text\" ng-model=\"name\"/>\n\t *     [ <a href=\"\" ng-click=\"greet()\">greet</a> ]<br/>\n\t *     Contact:\n\t *     <ul>\n\t *       <li ng-repeat=\"contact in contacts\">\n\t *         <select ng-model=\"contact.type\">\n\t *            <option>phone</option>\n\t *            <option>email</option>\n\t *         </select>\n\t *         <input type=\"text\" ng-model=\"contact.value\"/>\n\t *         [ <a href=\"\" ng-click=\"clearContact(contact)\">clear</a>\n\t *         | <a href=\"\" ng-click=\"removeContact(contact)\">X</a> ]\n\t *       </li>\n\t *       <li>[ <a href=\"\" ng-click=\"addContact()\">add</a> ]</li>\n\t *    </ul>\n\t *   </div>\n\t *  </file>\n\t *  <file name=\"app.js\">\n\t *   angular.module('controllerExample', [])\n\t *     .controller('SettingsController2', ['$scope', SettingsController2]);\n\t *\n\t *   function SettingsController2($scope) {\n\t *     $scope.name = \"John Smith\";\n\t *     $scope.contacts = [\n\t *       {type:'phone', value:'408 555 1212'},\n\t *       {type:'email', value:'john.smith@example.org'} ];\n\t *\n\t *     $scope.greet = function() {\n\t *       alert($scope.name);\n\t *     };\n\t *\n\t *     $scope.addContact = function() {\n\t *       $scope.contacts.push({type:'email', value:'yourname@example.org'});\n\t *     };\n\t *\n\t *     $scope.removeContact = function(contactToRemove) {\n\t *       var index = $scope.contacts.indexOf(contactToRemove);\n\t *       $scope.contacts.splice(index, 1);\n\t *     };\n\t *\n\t *     $scope.clearContact = function(contact) {\n\t *       contact.type = 'phone';\n\t *       contact.value = '';\n\t *     };\n\t *   }\n\t *  </file>\n\t *  <file name=\"protractor.js\" type=\"protractor\">\n\t *    it('should check controller', function() {\n\t *      var container = element(by.id('ctrl-exmpl'));\n\t *\n\t *      expect(container.element(by.model('name'))\n\t *          .getAttribute('value')).toBe('John Smith');\n\t *\n\t *      var firstRepeat =\n\t *          container.element(by.repeater('contact in contacts').row(0));\n\t *      var secondRepeat =\n\t *          container.element(by.repeater('contact in contacts').row(1));\n\t *\n\t *      expect(firstRepeat.element(by.model('contact.value')).getAttribute('value'))\n\t *          .toBe('408 555 1212');\n\t *      expect(secondRepeat.element(by.model('contact.value')).getAttribute('value'))\n\t *          .toBe('john.smith@example.org');\n\t *\n\t *      firstRepeat.element(by.linkText('clear')).click();\n\t *\n\t *      expect(firstRepeat.element(by.model('contact.value')).getAttribute('value'))\n\t *          .toBe('');\n\t *\n\t *      container.element(by.linkText('add')).click();\n\t *\n\t *      expect(container.element(by.repeater('contact in contacts').row(2))\n\t *          .element(by.model('contact.value'))\n\t *          .getAttribute('value'))\n\t *          .toBe('yourname@example.org');\n\t *    });\n\t *  </file>\n\t *</example>\n\n\t */\n\tvar ngControllerDirective = [function() {\n\t  return {\n\t    restrict: 'A',\n\t    scope: true,\n\t    controller: '@',\n\t    priority: 500\n\t  };\n\t}];\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngCsp\n\t *\n\t * @element html\n\t * @description\n\t * Enables [CSP (Content Security Policy)](https://developer.mozilla.org/en/Security/CSP) support.\n\t *\n\t * This is necessary when developing things like Google Chrome Extensions or Universal Windows Apps.\n\t *\n\t * CSP forbids apps to use `eval` or `Function(string)` generated functions (among other things).\n\t * For Angular to be CSP compatible there are only two things that we need to do differently:\n\t *\n\t * - don't use `Function` constructor to generate optimized value getters\n\t * - don't inject custom stylesheet into the document\n\t *\n\t * AngularJS uses `Function(string)` generated functions as a speed optimization. Applying the `ngCsp`\n\t * directive will cause Angular to use CSP compatibility mode. When this mode is on AngularJS will\n\t * evaluate all expressions up to 30% slower than in non-CSP mode, but no security violations will\n\t * be raised.\n\t *\n\t * CSP forbids JavaScript to inline stylesheet rules. In non CSP mode Angular automatically\n\t * includes some CSS rules (e.g. {@link ng.directive:ngCloak ngCloak}).\n\t * To make those directives work in CSP mode, include the `angular-csp.css` manually.\n\t *\n\t * Angular tries to autodetect if CSP is active and automatically turn on the CSP-safe mode. This\n\t * autodetection however triggers a CSP error to be logged in the console:\n\t *\n\t * ```\n\t * Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of\n\t * script in the following Content Security Policy directive: \"default-src 'self'\". Note that\n\t * 'script-src' was not explicitly set, so 'default-src' is used as a fallback.\n\t * ```\n\t *\n\t * This error is harmless but annoying. To prevent the error from showing up, put the `ngCsp`\n\t * directive on the root element of the application or on the `angular.js` script tag, whichever\n\t * appears first in the html document.\n\t *\n\t * *Note: This directive is only available in the `ng-csp` and `data-ng-csp` attribute form.*\n\t *\n\t * @example\n\t * This example shows how to apply the `ngCsp` directive to the `html` tag.\n\t   ```html\n\t     <!doctype html>\n\t     <html ng-app ng-csp>\n\t     ...\n\t     ...\n\t     </html>\n\t   ```\n\t  * @example\n\t      // Note: the suffix `.csp` in the example name triggers\n\t      // csp mode in our http server!\n\t      <example name=\"example.csp\" module=\"cspExample\" ng-csp=\"true\">\n\t        <file name=\"index.html\">\n\t          <div ng-controller=\"MainController as ctrl\">\n\t            <div>\n\t              <button ng-click=\"ctrl.inc()\" id=\"inc\">Increment</button>\n\t              <span id=\"counter\">\n\t                {{ctrl.counter}}\n\t              </span>\n\t            </div>\n\n\t            <div>\n\t              <button ng-click=\"ctrl.evil()\" id=\"evil\">Evil</button>\n\t              <span id=\"evilError\">\n\t                {{ctrl.evilError}}\n\t              </span>\n\t            </div>\n\t          </div>\n\t        </file>\n\t        <file name=\"script.js\">\n\t           angular.module('cspExample', [])\n\t             .controller('MainController', function() {\n\t                this.counter = 0;\n\t                this.inc = function() {\n\t                  this.counter++;\n\t                };\n\t                this.evil = function() {\n\t                  // jshint evil:true\n\t                  try {\n\t                    eval('1+2');\n\t                  } catch (e) {\n\t                    this.evilError = e.message;\n\t                  }\n\t                };\n\t              });\n\t        </file>\n\t        <file name=\"protractor.js\" type=\"protractor\">\n\t          var util, webdriver;\n\n\t          var incBtn = element(by.id('inc'));\n\t          var counter = element(by.id('counter'));\n\t          var evilBtn = element(by.id('evil'));\n\t          var evilError = element(by.id('evilError'));\n\n\t          function getAndClearSevereErrors() {\n\t            return browser.manage().logs().get('browser').then(function(browserLog) {\n\t              return browserLog.filter(function(logEntry) {\n\t                return logEntry.level.value > webdriver.logging.Level.WARNING.value;\n\t              });\n\t            });\n\t          }\n\n\t          function clearErrors() {\n\t            getAndClearSevereErrors();\n\t          }\n\n\t          function expectNoErrors() {\n\t            getAndClearSevereErrors().then(function(filteredLog) {\n\t              expect(filteredLog.length).toEqual(0);\n\t              if (filteredLog.length) {\n\t                console.log('browser console errors: ' + util.inspect(filteredLog));\n\t              }\n\t            });\n\t          }\n\n\t          function expectError(regex) {\n\t            getAndClearSevereErrors().then(function(filteredLog) {\n\t              var found = false;\n\t              filteredLog.forEach(function(log) {\n\t                if (log.message.match(regex)) {\n\t                  found = true;\n\t                }\n\t              });\n\t              if (!found) {\n\t                throw new Error('expected an error that matches ' + regex);\n\t              }\n\t            });\n\t          }\n\n\t          beforeEach(function() {\n\t            util = require('util');\n\t            webdriver = require('protractor/node_modules/selenium-webdriver');\n\t          });\n\n\t          // For now, we only test on Chrome,\n\t          // as Safari does not load the page with Protractor's injected scripts,\n\t          // and Firefox webdriver always disables content security policy (#6358)\n\t          if (browser.params.browser !== 'chrome') {\n\t            return;\n\t          }\n\n\t          it('should not report errors when the page is loaded', function() {\n\t            // clear errors so we are not dependent on previous tests\n\t            clearErrors();\n\t            // Need to reload the page as the page is already loaded when\n\t            // we come here\n\t            browser.driver.getCurrentUrl().then(function(url) {\n\t              browser.get(url);\n\t            });\n\t            expectNoErrors();\n\t          });\n\n\t          it('should evaluate expressions', function() {\n\t            expect(counter.getText()).toEqual('0');\n\t            incBtn.click();\n\t            expect(counter.getText()).toEqual('1');\n\t            expectNoErrors();\n\t          });\n\n\t          it('should throw and report an error when using \"eval\"', function() {\n\t            evilBtn.click();\n\t            expect(evilError.getText()).toMatch(/Content Security Policy/);\n\t            expectError(/Content Security Policy/);\n\t          });\n\t        </file>\n\t      </example>\n\t  */\n\n\t// ngCsp is not implemented as a proper directive any more, because we need it be processed while we\n\t// bootstrap the system (before $parse is instantiated), for this reason we just have\n\t// the csp.isActive() fn that looks for ng-csp attribute anywhere in the current doc\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngClick\n\t *\n\t * @description\n\t * The ngClick directive allows you to specify custom behavior when\n\t * an element is clicked.\n\t *\n\t * @element ANY\n\t * @priority 0\n\t * @param {expression} ngClick {@link guide/expression Expression} to evaluate upon\n\t * click. ({@link guide/expression#-event- Event object is available as `$event`})\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t      <button ng-click=\"count = count + 1\" ng-init=\"count=0\">\n\t        Increment\n\t      </button>\n\t      <span>\n\t        count: {{count}}\n\t      </span>\n\t     </file>\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t       it('should check ng-click', function() {\n\t         expect(element(by.binding('count')).getText()).toMatch('0');\n\t         element(by.css('button')).click();\n\t         expect(element(by.binding('count')).getText()).toMatch('1');\n\t       });\n\t     </file>\n\t   </example>\n\t */\n\t/*\n\t * A collection of directives that allows creation of custom event handlers that are defined as\n\t * angular expressions and are compiled and executed within the current scope.\n\t */\n\tvar ngEventDirectives = {};\n\n\t// For events that might fire synchronously during DOM manipulation\n\t// we need to execute their event handlers asynchronously using $evalAsync,\n\t// so that they are not executed in an inconsistent state.\n\tvar forceAsyncEvents = {\n\t  'blur': true,\n\t  'focus': true\n\t};\n\tforEach(\n\t  'click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste'.split(' '),\n\t  function(eventName) {\n\t    var directiveName = directiveNormalize('ng-' + eventName);\n\t    ngEventDirectives[directiveName] = ['$parse', '$rootScope', function($parse, $rootScope) {\n\t      return {\n\t        restrict: 'A',\n\t        compile: function($element, attr) {\n\t          // We expose the powerful $event object on the scope that provides access to the Window,\n\t          // etc. that isn't protected by the fast paths in $parse.  We explicitly request better\n\t          // checks at the cost of speed since event handler expressions are not executed as\n\t          // frequently as regular change detection.\n\t          var fn = $parse(attr[directiveName], /* interceptorFn */ null, /* expensiveChecks */ true);\n\t          return function ngEventHandler(scope, element) {\n\t            element.on(eventName, function(event) {\n\t              var callback = function() {\n\t                fn(scope, {$event:event});\n\t              };\n\t              if (forceAsyncEvents[eventName] && $rootScope.$$phase) {\n\t                scope.$evalAsync(callback);\n\t              } else {\n\t                scope.$apply(callback);\n\t              }\n\t            });\n\t          };\n\t        }\n\t      };\n\t    }];\n\t  }\n\t);\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngDblclick\n\t *\n\t * @description\n\t * The `ngDblclick` directive allows you to specify custom behavior on a dblclick event.\n\t *\n\t * @element ANY\n\t * @priority 0\n\t * @param {expression} ngDblclick {@link guide/expression Expression} to evaluate upon\n\t * a dblclick. (The Event object is available as `$event`)\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t      <button ng-dblclick=\"count = count + 1\" ng-init=\"count=0\">\n\t        Increment (on double click)\n\t      </button>\n\t      count: {{count}}\n\t     </file>\n\t   </example>\n\t */\n\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngMousedown\n\t *\n\t * @description\n\t * The ngMousedown directive allows you to specify custom behavior on mousedown event.\n\t *\n\t * @element ANY\n\t * @priority 0\n\t * @param {expression} ngMousedown {@link guide/expression Expression} to evaluate upon\n\t * mousedown. ({@link guide/expression#-event- Event object is available as `$event`})\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t      <button ng-mousedown=\"count = count + 1\" ng-init=\"count=0\">\n\t        Increment (on mouse down)\n\t      </button>\n\t      count: {{count}}\n\t     </file>\n\t   </example>\n\t */\n\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngMouseup\n\t *\n\t * @description\n\t * Specify custom behavior on mouseup event.\n\t *\n\t * @element ANY\n\t * @priority 0\n\t * @param {expression} ngMouseup {@link guide/expression Expression} to evaluate upon\n\t * mouseup. ({@link guide/expression#-event- Event object is available as `$event`})\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t      <button ng-mouseup=\"count = count + 1\" ng-init=\"count=0\">\n\t        Increment (on mouse up)\n\t      </button>\n\t      count: {{count}}\n\t     </file>\n\t   </example>\n\t */\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngMouseover\n\t *\n\t * @description\n\t * Specify custom behavior on mouseover event.\n\t *\n\t * @element ANY\n\t * @priority 0\n\t * @param {expression} ngMouseover {@link guide/expression Expression} to evaluate upon\n\t * mouseover. ({@link guide/expression#-event- Event object is available as `$event`})\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t      <button ng-mouseover=\"count = count + 1\" ng-init=\"count=0\">\n\t        Increment (when mouse is over)\n\t      </button>\n\t      count: {{count}}\n\t     </file>\n\t   </example>\n\t */\n\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngMouseenter\n\t *\n\t * @description\n\t * Specify custom behavior on mouseenter event.\n\t *\n\t * @element ANY\n\t * @priority 0\n\t * @param {expression} ngMouseenter {@link guide/expression Expression} to evaluate upon\n\t * mouseenter. ({@link guide/expression#-event- Event object is available as `$event`})\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t      <button ng-mouseenter=\"count = count + 1\" ng-init=\"count=0\">\n\t        Increment (when mouse enters)\n\t      </button>\n\t      count: {{count}}\n\t     </file>\n\t   </example>\n\t */\n\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngMouseleave\n\t *\n\t * @description\n\t * Specify custom behavior on mouseleave event.\n\t *\n\t * @element ANY\n\t * @priority 0\n\t * @param {expression} ngMouseleave {@link guide/expression Expression} to evaluate upon\n\t * mouseleave. ({@link guide/expression#-event- Event object is available as `$event`})\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t      <button ng-mouseleave=\"count = count + 1\" ng-init=\"count=0\">\n\t        Increment (when mouse leaves)\n\t      </button>\n\t      count: {{count}}\n\t     </file>\n\t   </example>\n\t */\n\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngMousemove\n\t *\n\t * @description\n\t * Specify custom behavior on mousemove event.\n\t *\n\t * @element ANY\n\t * @priority 0\n\t * @param {expression} ngMousemove {@link guide/expression Expression} to evaluate upon\n\t * mousemove. ({@link guide/expression#-event- Event object is available as `$event`})\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t      <button ng-mousemove=\"count = count + 1\" ng-init=\"count=0\">\n\t        Increment (when mouse moves)\n\t      </button>\n\t      count: {{count}}\n\t     </file>\n\t   </example>\n\t */\n\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngKeydown\n\t *\n\t * @description\n\t * Specify custom behavior on keydown event.\n\t *\n\t * @element ANY\n\t * @priority 0\n\t * @param {expression} ngKeydown {@link guide/expression Expression} to evaluate upon\n\t * keydown. (Event object is available as `$event` and can be interrogated for keyCode, altKey, etc.)\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t      <input ng-keydown=\"count = count + 1\" ng-init=\"count=0\">\n\t      key down count: {{count}}\n\t     </file>\n\t   </example>\n\t */\n\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngKeyup\n\t *\n\t * @description\n\t * Specify custom behavior on keyup event.\n\t *\n\t * @element ANY\n\t * @priority 0\n\t * @param {expression} ngKeyup {@link guide/expression Expression} to evaluate upon\n\t * keyup. (Event object is available as `$event` and can be interrogated for keyCode, altKey, etc.)\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t       <p>Typing in the input box below updates the key count</p>\n\t       <input ng-keyup=\"count = count + 1\" ng-init=\"count=0\"> key up count: {{count}}\n\n\t       <p>Typing in the input box below updates the keycode</p>\n\t       <input ng-keyup=\"event=$event\">\n\t       <p>event keyCode: {{ event.keyCode }}</p>\n\t       <p>event altKey: {{ event.altKey }}</p>\n\t     </file>\n\t   </example>\n\t */\n\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngKeypress\n\t *\n\t * @description\n\t * Specify custom behavior on keypress event.\n\t *\n\t * @element ANY\n\t * @param {expression} ngKeypress {@link guide/expression Expression} to evaluate upon\n\t * keypress. ({@link guide/expression#-event- Event object is available as `$event`}\n\t * and can be interrogated for keyCode, altKey, etc.)\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t      <input ng-keypress=\"count = count + 1\" ng-init=\"count=0\">\n\t      key press count: {{count}}\n\t     </file>\n\t   </example>\n\t */\n\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngSubmit\n\t *\n\t * @description\n\t * Enables binding angular expressions to onsubmit events.\n\t *\n\t * Additionally it prevents the default action (which for form means sending the request to the\n\t * server and reloading the current page), but only if the form does not contain `action`,\n\t * `data-action`, or `x-action` attributes.\n\t *\n\t * <div class=\"alert alert-warning\">\n\t * **Warning:** Be careful not to cause \"double-submission\" by using both the `ngClick` and\n\t * `ngSubmit` handlers together. See the\n\t * {@link form#submitting-a-form-and-preventing-the-default-action `form` directive documentation}\n\t * for a detailed discussion of when `ngSubmit` may be triggered.\n\t * </div>\n\t *\n\t * @element form\n\t * @priority 0\n\t * @param {expression} ngSubmit {@link guide/expression Expression} to eval.\n\t * ({@link guide/expression#-event- Event object is available as `$event`})\n\t *\n\t * @example\n\t   <example module=\"submitExample\">\n\t     <file name=\"index.html\">\n\t      <script>\n\t        angular.module('submitExample', [])\n\t          .controller('ExampleController', ['$scope', function($scope) {\n\t            $scope.list = [];\n\t            $scope.text = 'hello';\n\t            $scope.submit = function() {\n\t              if ($scope.text) {\n\t                $scope.list.push(this.text);\n\t                $scope.text = '';\n\t              }\n\t            };\n\t          }]);\n\t      </script>\n\t      <form ng-submit=\"submit()\" ng-controller=\"ExampleController\">\n\t        Enter text and hit enter:\n\t        <input type=\"text\" ng-model=\"text\" name=\"text\" />\n\t        <input type=\"submit\" id=\"submit\" value=\"Submit\" />\n\t        <pre>list={{list}}</pre>\n\t      </form>\n\t     </file>\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t       it('should check ng-submit', function() {\n\t         expect(element(by.binding('list')).getText()).toBe('list=[]');\n\t         element(by.css('#submit')).click();\n\t         expect(element(by.binding('list')).getText()).toContain('hello');\n\t         expect(element(by.model('text')).getAttribute('value')).toBe('');\n\t       });\n\t       it('should ignore empty strings', function() {\n\t         expect(element(by.binding('list')).getText()).toBe('list=[]');\n\t         element(by.css('#submit')).click();\n\t         element(by.css('#submit')).click();\n\t         expect(element(by.binding('list')).getText()).toContain('hello');\n\t        });\n\t     </file>\n\t   </example>\n\t */\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngFocus\n\t *\n\t * @description\n\t * Specify custom behavior on focus event.\n\t *\n\t * Note: As the `focus` event is executed synchronously when calling `input.focus()`\n\t * AngularJS executes the expression using `scope.$evalAsync` if the event is fired\n\t * during an `$apply` to ensure a consistent state.\n\t *\n\t * @element window, input, select, textarea, a\n\t * @priority 0\n\t * @param {expression} ngFocus {@link guide/expression Expression} to evaluate upon\n\t * focus. ({@link guide/expression#-event- Event object is available as `$event`})\n\t *\n\t * @example\n\t * See {@link ng.directive:ngClick ngClick}\n\t */\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngBlur\n\t *\n\t * @description\n\t * Specify custom behavior on blur event.\n\t *\n\t * A [blur event](https://developer.mozilla.org/en-US/docs/Web/Events/blur) fires when\n\t * an element has lost focus.\n\t *\n\t * Note: As the `blur` event is executed synchronously also during DOM manipulations\n\t * (e.g. removing a focussed input),\n\t * AngularJS executes the expression using `scope.$evalAsync` if the event is fired\n\t * during an `$apply` to ensure a consistent state.\n\t *\n\t * @element window, input, select, textarea, a\n\t * @priority 0\n\t * @param {expression} ngBlur {@link guide/expression Expression} to evaluate upon\n\t * blur. ({@link guide/expression#-event- Event object is available as `$event`})\n\t *\n\t * @example\n\t * See {@link ng.directive:ngClick ngClick}\n\t */\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngCopy\n\t *\n\t * @description\n\t * Specify custom behavior on copy event.\n\t *\n\t * @element window, input, select, textarea, a\n\t * @priority 0\n\t * @param {expression} ngCopy {@link guide/expression Expression} to evaluate upon\n\t * copy. ({@link guide/expression#-event- Event object is available as `$event`})\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t      <input ng-copy=\"copied=true\" ng-init=\"copied=false; value='copy me'\" ng-model=\"value\">\n\t      copied: {{copied}}\n\t     </file>\n\t   </example>\n\t */\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngCut\n\t *\n\t * @description\n\t * Specify custom behavior on cut event.\n\t *\n\t * @element window, input, select, textarea, a\n\t * @priority 0\n\t * @param {expression} ngCut {@link guide/expression Expression} to evaluate upon\n\t * cut. ({@link guide/expression#-event- Event object is available as `$event`})\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t      <input ng-cut=\"cut=true\" ng-init=\"cut=false; value='cut me'\" ng-model=\"value\">\n\t      cut: {{cut}}\n\t     </file>\n\t   </example>\n\t */\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngPaste\n\t *\n\t * @description\n\t * Specify custom behavior on paste event.\n\t *\n\t * @element window, input, select, textarea, a\n\t * @priority 0\n\t * @param {expression} ngPaste {@link guide/expression Expression} to evaluate upon\n\t * paste. ({@link guide/expression#-event- Event object is available as `$event`})\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t      <input ng-paste=\"paste=true\" ng-init=\"paste=false\" placeholder='paste here'>\n\t      pasted: {{paste}}\n\t     </file>\n\t   </example>\n\t */\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngIf\n\t * @restrict A\n\t *\n\t * @description\n\t * The `ngIf` directive removes or recreates a portion of the DOM tree based on an\n\t * {expression}. If the expression assigned to `ngIf` evaluates to a false\n\t * value then the element is removed from the DOM, otherwise a clone of the\n\t * element is reinserted into the DOM.\n\t *\n\t * `ngIf` differs from `ngShow` and `ngHide` in that `ngIf` completely removes and recreates the\n\t * element in the DOM rather than changing its visibility via the `display` css property.  A common\n\t * case when this difference is significant is when using css selectors that rely on an element's\n\t * position within the DOM, such as the `:first-child` or `:last-child` pseudo-classes.\n\t *\n\t * Note that when an element is removed using `ngIf` its scope is destroyed and a new scope\n\t * is created when the element is restored.  The scope created within `ngIf` inherits from\n\t * its parent scope using\n\t * [prototypal inheritance](https://github.com/angular/angular.js/wiki/Understanding-Scopes#javascript-prototypal-inheritance).\n\t * An important implication of this is if `ngModel` is used within `ngIf` to bind to\n\t * a javascript primitive defined in the parent scope. In this case any modifications made to the\n\t * variable within the child scope will override (hide) the value in the parent scope.\n\t *\n\t * Also, `ngIf` recreates elements using their compiled state. An example of this behavior\n\t * is if an element's class attribute is directly modified after it's compiled, using something like\n\t * jQuery's `.addClass()` method, and the element is later removed. When `ngIf` recreates the element\n\t * the added class will be lost because the original compiled state is used to regenerate the element.\n\t *\n\t * Additionally, you can provide animations via the `ngAnimate` module to animate the `enter`\n\t * and `leave` effects.\n\t *\n\t * @animations\n\t * enter - happens just after the `ngIf` contents change and a new DOM element is created and injected into the `ngIf` container\n\t * leave - happens just before the `ngIf` contents are removed from the DOM\n\t *\n\t * @element ANY\n\t * @scope\n\t * @priority 600\n\t * @param {expression} ngIf If the {@link guide/expression expression} is falsy then\n\t *     the element is removed from the DOM tree. If it is truthy a copy of the compiled\n\t *     element is added to the DOM tree.\n\t *\n\t * @example\n\t  <example module=\"ngAnimate\" deps=\"angular-animate.js\" animations=\"true\">\n\t    <file name=\"index.html\">\n\t      Click me: <input type=\"checkbox\" ng-model=\"checked\" ng-init=\"checked=true\" /><br/>\n\t      Show when checked:\n\t      <span ng-if=\"checked\" class=\"animate-if\">\n\t        This is removed when the checkbox is unchecked.\n\t      </span>\n\t    </file>\n\t    <file name=\"animations.css\">\n\t      .animate-if {\n\t        background:white;\n\t        border:1px solid black;\n\t        padding:10px;\n\t      }\n\n\t      .animate-if.ng-enter, .animate-if.ng-leave {\n\t        -webkit-transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;\n\t        transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;\n\t      }\n\n\t      .animate-if.ng-enter,\n\t      .animate-if.ng-leave.ng-leave-active {\n\t        opacity:0;\n\t      }\n\n\t      .animate-if.ng-leave,\n\t      .animate-if.ng-enter.ng-enter-active {\n\t        opacity:1;\n\t      }\n\t    </file>\n\t  </example>\n\t */\n\tvar ngIfDirective = ['$animate', function($animate) {\n\t  return {\n\t    multiElement: true,\n\t    transclude: 'element',\n\t    priority: 600,\n\t    terminal: true,\n\t    restrict: 'A',\n\t    $$tlb: true,\n\t    link: function($scope, $element, $attr, ctrl, $transclude) {\n\t        var block, childScope, previousElements;\n\t        $scope.$watch($attr.ngIf, function ngIfWatchAction(value) {\n\n\t          if (value) {\n\t            if (!childScope) {\n\t              $transclude(function(clone, newScope) {\n\t                childScope = newScope;\n\t                clone[clone.length++] = document.createComment(' end ngIf: ' + $attr.ngIf + ' ');\n\t                // Note: We only need the first/last node of the cloned nodes.\n\t                // However, we need to keep the reference to the jqlite wrapper as it might be changed later\n\t                // by a directive with templateUrl when its template arrives.\n\t                block = {\n\t                  clone: clone\n\t                };\n\t                $animate.enter(clone, $element.parent(), $element);\n\t              });\n\t            }\n\t          } else {\n\t            if (previousElements) {\n\t              previousElements.remove();\n\t              previousElements = null;\n\t            }\n\t            if (childScope) {\n\t              childScope.$destroy();\n\t              childScope = null;\n\t            }\n\t            if (block) {\n\t              previousElements = getBlockNodes(block.clone);\n\t              $animate.leave(previousElements).then(function() {\n\t                previousElements = null;\n\t              });\n\t              block = null;\n\t            }\n\t          }\n\t        });\n\t    }\n\t  };\n\t}];\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngInclude\n\t * @restrict ECA\n\t *\n\t * @description\n\t * Fetches, compiles and includes an external HTML fragment.\n\t *\n\t * By default, the template URL is restricted to the same domain and protocol as the\n\t * application document. This is done by calling {@link $sce#getTrustedResourceUrl\n\t * $sce.getTrustedResourceUrl} on it. To load templates from other domains or protocols\n\t * you may either {@link ng.$sceDelegateProvider#resourceUrlWhitelist whitelist them} or\n\t * {@link $sce#trustAsResourceUrl wrap them} as trusted values. Refer to Angular's {@link\n\t * ng.$sce Strict Contextual Escaping}.\n\t *\n\t * In addition, the browser's\n\t * [Same Origin Policy](https://code.google.com/p/browsersec/wiki/Part2#Same-origin_policy_for_XMLHttpRequest)\n\t * and [Cross-Origin Resource Sharing (CORS)](http://www.w3.org/TR/cors/)\n\t * policy may further restrict whether the template is successfully loaded.\n\t * For example, `ngInclude` won't work for cross-domain requests on all browsers and for `file://`\n\t * access on some browsers.\n\t *\n\t * @animations\n\t * enter - animation is used to bring new content into the browser.\n\t * leave - animation is used to animate existing content away.\n\t *\n\t * The enter and leave animation occur concurrently.\n\t *\n\t * @scope\n\t * @priority 400\n\t *\n\t * @param {string} ngInclude|src angular expression evaluating to URL. If the source is a string constant,\n\t *                 make sure you wrap it in **single** quotes, e.g. `src=\"'myPartialTemplate.html'\"`.\n\t * @param {string=} onload Expression to evaluate when a new partial is loaded.\n\t *\n\t * @param {string=} autoscroll Whether `ngInclude` should call {@link ng.$anchorScroll\n\t *                  $anchorScroll} to scroll the viewport after the content is loaded.\n\t *\n\t *                  - If the attribute is not set, disable scrolling.\n\t *                  - If the attribute is set without value, enable scrolling.\n\t *                  - Otherwise enable scrolling only if the expression evaluates to truthy value.\n\t *\n\t * @example\n\t  <example module=\"includeExample\" deps=\"angular-animate.js\" animations=\"true\">\n\t    <file name=\"index.html\">\n\t     <div ng-controller=\"ExampleController\">\n\t       <select ng-model=\"template\" ng-options=\"t.name for t in templates\">\n\t        <option value=\"\">(blank)</option>\n\t       </select>\n\t       url of the template: <code>{{template.url}}</code>\n\t       <hr/>\n\t       <div class=\"slide-animate-container\">\n\t         <div class=\"slide-animate\" ng-include=\"template.url\"></div>\n\t       </div>\n\t     </div>\n\t    </file>\n\t    <file name=\"script.js\">\n\t      angular.module('includeExample', ['ngAnimate'])\n\t        .controller('ExampleController', ['$scope', function($scope) {\n\t          $scope.templates =\n\t            [ { name: 'template1.html', url: 'template1.html'},\n\t              { name: 'template2.html', url: 'template2.html'} ];\n\t          $scope.template = $scope.templates[0];\n\t        }]);\n\t     </file>\n\t    <file name=\"template1.html\">\n\t      Content of template1.html\n\t    </file>\n\t    <file name=\"template2.html\">\n\t      Content of template2.html\n\t    </file>\n\t    <file name=\"animations.css\">\n\t      .slide-animate-container {\n\t        position:relative;\n\t        background:white;\n\t        border:1px solid black;\n\t        height:40px;\n\t        overflow:hidden;\n\t      }\n\n\t      .slide-animate {\n\t        padding:10px;\n\t      }\n\n\t      .slide-animate.ng-enter, .slide-animate.ng-leave {\n\t        -webkit-transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;\n\t        transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;\n\n\t        position:absolute;\n\t        top:0;\n\t        left:0;\n\t        right:0;\n\t        bottom:0;\n\t        display:block;\n\t        padding:10px;\n\t      }\n\n\t      .slide-animate.ng-enter {\n\t        top:-50px;\n\t      }\n\t      .slide-animate.ng-enter.ng-enter-active {\n\t        top:0;\n\t      }\n\n\t      .slide-animate.ng-leave {\n\t        top:0;\n\t      }\n\t      .slide-animate.ng-leave.ng-leave-active {\n\t        top:50px;\n\t      }\n\t    </file>\n\t    <file name=\"protractor.js\" type=\"protractor\">\n\t      var templateSelect = element(by.model('template'));\n\t      var includeElem = element(by.css('[ng-include]'));\n\n\t      it('should load template1.html', function() {\n\t        expect(includeElem.getText()).toMatch(/Content of template1.html/);\n\t      });\n\n\t      it('should load template2.html', function() {\n\t        if (browser.params.browser == 'firefox') {\n\t          // Firefox can't handle using selects\n\t          // See https://github.com/angular/protractor/issues/480\n\t          return;\n\t        }\n\t        templateSelect.click();\n\t        templateSelect.all(by.css('option')).get(2).click();\n\t        expect(includeElem.getText()).toMatch(/Content of template2.html/);\n\t      });\n\n\t      it('should change to blank', function() {\n\t        if (browser.params.browser == 'firefox') {\n\t          // Firefox can't handle using selects\n\t          return;\n\t        }\n\t        templateSelect.click();\n\t        templateSelect.all(by.css('option')).get(0).click();\n\t        expect(includeElem.isPresent()).toBe(false);\n\t      });\n\t    </file>\n\t  </example>\n\t */\n\n\n\t/**\n\t * @ngdoc event\n\t * @name ngInclude#$includeContentRequested\n\t * @eventType emit on the scope ngInclude was declared in\n\t * @description\n\t * Emitted every time the ngInclude content is requested.\n\t *\n\t * @param {Object} angularEvent Synthetic event object.\n\t * @param {String} src URL of content to load.\n\t */\n\n\n\t/**\n\t * @ngdoc event\n\t * @name ngInclude#$includeContentLoaded\n\t * @eventType emit on the current ngInclude scope\n\t * @description\n\t * Emitted every time the ngInclude content is reloaded.\n\t *\n\t * @param {Object} angularEvent Synthetic event object.\n\t * @param {String} src URL of content to load.\n\t */\n\n\n\t/**\n\t * @ngdoc event\n\t * @name ngInclude#$includeContentError\n\t * @eventType emit on the scope ngInclude was declared in\n\t * @description\n\t * Emitted when a template HTTP request yields an erroneous response (status < 200 || status > 299)\n\t *\n\t * @param {Object} angularEvent Synthetic event object.\n\t * @param {String} src URL of content to load.\n\t */\n\tvar ngIncludeDirective = ['$templateRequest', '$anchorScroll', '$animate', '$sce',\n\t                  function($templateRequest,   $anchorScroll,   $animate,   $sce) {\n\t  return {\n\t    restrict: 'ECA',\n\t    priority: 400,\n\t    terminal: true,\n\t    transclude: 'element',\n\t    controller: angular.noop,\n\t    compile: function(element, attr) {\n\t      var srcExp = attr.ngInclude || attr.src,\n\t          onloadExp = attr.onload || '',\n\t          autoScrollExp = attr.autoscroll;\n\n\t      return function(scope, $element, $attr, ctrl, $transclude) {\n\t        var changeCounter = 0,\n\t            currentScope,\n\t            previousElement,\n\t            currentElement;\n\n\t        var cleanupLastIncludeContent = function() {\n\t          if (previousElement) {\n\t            previousElement.remove();\n\t            previousElement = null;\n\t          }\n\t          if (currentScope) {\n\t            currentScope.$destroy();\n\t            currentScope = null;\n\t          }\n\t          if (currentElement) {\n\t            $animate.leave(currentElement).then(function() {\n\t              previousElement = null;\n\t            });\n\t            previousElement = currentElement;\n\t            currentElement = null;\n\t          }\n\t        };\n\n\t        scope.$watch($sce.parseAsResourceUrl(srcExp), function ngIncludeWatchAction(src) {\n\t          var afterAnimation = function() {\n\t            if (isDefined(autoScrollExp) && (!autoScrollExp || scope.$eval(autoScrollExp))) {\n\t              $anchorScroll();\n\t            }\n\t          };\n\t          var thisChangeId = ++changeCounter;\n\n\t          if (src) {\n\t            //set the 2nd param to true to ignore the template request error so that the inner\n\t            //contents and scope can be cleaned up.\n\t            $templateRequest(src, true).then(function(response) {\n\t              if (thisChangeId !== changeCounter) return;\n\t              var newScope = scope.$new();\n\t              ctrl.template = response;\n\n\t              // Note: This will also link all children of ng-include that were contained in the original\n\t              // html. If that content contains controllers, ... they could pollute/change the scope.\n\t              // However, using ng-include on an element with additional content does not make sense...\n\t              // Note: We can't remove them in the cloneAttchFn of $transclude as that\n\t              // function is called before linking the content, which would apply child\n\t              // directives to non existing elements.\n\t              var clone = $transclude(newScope, function(clone) {\n\t                cleanupLastIncludeContent();\n\t                $animate.enter(clone, null, $element).then(afterAnimation);\n\t              });\n\n\t              currentScope = newScope;\n\t              currentElement = clone;\n\n\t              currentScope.$emit('$includeContentLoaded', src);\n\t              scope.$eval(onloadExp);\n\t            }, function() {\n\t              if (thisChangeId === changeCounter) {\n\t                cleanupLastIncludeContent();\n\t                scope.$emit('$includeContentError', src);\n\t              }\n\t            });\n\t            scope.$emit('$includeContentRequested', src);\n\t          } else {\n\t            cleanupLastIncludeContent();\n\t            ctrl.template = null;\n\t          }\n\t        });\n\t      };\n\t    }\n\t  };\n\t}];\n\n\t// This directive is called during the $transclude call of the first `ngInclude` directive.\n\t// It will replace and compile the content of the element with the loaded template.\n\t// We need this directive so that the element content is already filled when\n\t// the link function of another directive on the same element as ngInclude\n\t// is called.\n\tvar ngIncludeFillContentDirective = ['$compile',\n\t  function($compile) {\n\t    return {\n\t      restrict: 'ECA',\n\t      priority: -400,\n\t      require: 'ngInclude',\n\t      link: function(scope, $element, $attr, ctrl) {\n\t        if (/SVG/.test($element[0].toString())) {\n\t          // WebKit: https://bugs.webkit.org/show_bug.cgi?id=135698 --- SVG elements do not\n\t          // support innerHTML, so detect this here and try to generate the contents\n\t          // specially.\n\t          $element.empty();\n\t          $compile(jqLiteBuildFragment(ctrl.template, document).childNodes)(scope,\n\t              function namespaceAdaptedClone(clone) {\n\t            $element.append(clone);\n\t          }, {futureParentElement: $element});\n\t          return;\n\t        }\n\n\t        $element.html(ctrl.template);\n\t        $compile($element.contents())(scope);\n\t      }\n\t    };\n\t  }];\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngInit\n\t * @restrict AC\n\t *\n\t * @description\n\t * The `ngInit` directive allows you to evaluate an expression in the\n\t * current scope.\n\t *\n\t * <div class=\"alert alert-error\">\n\t * The only appropriate use of `ngInit` is for aliasing special properties of\n\t * {@link ng.directive:ngRepeat `ngRepeat`}, as seen in the demo below. Besides this case, you\n\t * should use {@link guide/controller controllers} rather than `ngInit`\n\t * to initialize values on a scope.\n\t * </div>\n\t * <div class=\"alert alert-warning\">\n\t * **Note**: If you have assignment in `ngInit` along with {@link ng.$filter `$filter`}, make\n\t * sure you have parenthesis for correct precedence:\n\t * <pre class=\"prettyprint\">\n\t * `<div ng-init=\"test1 = (data | orderBy:'name')\"></div>`\n\t * </pre>\n\t * </div>\n\t *\n\t * @priority 450\n\t *\n\t * @element ANY\n\t * @param {expression} ngInit {@link guide/expression Expression} to eval.\n\t *\n\t * @example\n\t   <example module=\"initExample\">\n\t     <file name=\"index.html\">\n\t   <script>\n\t     angular.module('initExample', [])\n\t       .controller('ExampleController', ['$scope', function($scope) {\n\t         $scope.list = [['a', 'b'], ['c', 'd']];\n\t       }]);\n\t   </script>\n\t   <div ng-controller=\"ExampleController\">\n\t     <div ng-repeat=\"innerList in list\" ng-init=\"outerIndex = $index\">\n\t       <div ng-repeat=\"value in innerList\" ng-init=\"innerIndex = $index\">\n\t          <span class=\"example-init\">list[ {{outerIndex}} ][ {{innerIndex}} ] = {{value}};</span>\n\t       </div>\n\t     </div>\n\t   </div>\n\t     </file>\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t       it('should alias index positions', function() {\n\t         var elements = element.all(by.css('.example-init'));\n\t         expect(elements.get(0).getText()).toBe('list[ 0 ][ 0 ] = a;');\n\t         expect(elements.get(1).getText()).toBe('list[ 0 ][ 1 ] = b;');\n\t         expect(elements.get(2).getText()).toBe('list[ 1 ][ 0 ] = c;');\n\t         expect(elements.get(3).getText()).toBe('list[ 1 ][ 1 ] = d;');\n\t       });\n\t     </file>\n\t   </example>\n\t */\n\tvar ngInitDirective = ngDirective({\n\t  priority: 450,\n\t  compile: function() {\n\t    return {\n\t      pre: function(scope, element, attrs) {\n\t        scope.$eval(attrs.ngInit);\n\t      }\n\t    };\n\t  }\n\t});\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngList\n\t *\n\t * @description\n\t * Text input that converts between a delimited string and an array of strings. The default\n\t * delimiter is a comma followed by a space - equivalent to `ng-list=\", \"`. You can specify a custom\n\t * delimiter as the value of the `ngList` attribute - for example, `ng-list=\" | \"`.\n\t *\n\t * The behaviour of the directive is affected by the use of the `ngTrim` attribute.\n\t * * If `ngTrim` is set to `\"false\"` then whitespace around both the separator and each\n\t *   list item is respected. This implies that the user of the directive is responsible for\n\t *   dealing with whitespace but also allows you to use whitespace as a delimiter, such as a\n\t *   tab or newline character.\n\t * * Otherwise whitespace around the delimiter is ignored when splitting (although it is respected\n\t *   when joining the list items back together) and whitespace around each list item is stripped\n\t *   before it is added to the model.\n\t *\n\t * ### Example with Validation\n\t *\n\t * <example name=\"ngList-directive\" module=\"listExample\">\n\t *   <file name=\"app.js\">\n\t *      angular.module('listExample', [])\n\t *        .controller('ExampleController', ['$scope', function($scope) {\n\t *          $scope.names = ['morpheus', 'neo', 'trinity'];\n\t *        }]);\n\t *   </file>\n\t *   <file name=\"index.html\">\n\t *    <form name=\"myForm\" ng-controller=\"ExampleController\">\n\t *      List: <input name=\"namesInput\" ng-model=\"names\" ng-list required>\n\t *      <span class=\"error\" ng-show=\"myForm.namesInput.$error.required\">\n\t *        Required!</span>\n\t *      <br>\n\t *      <tt>names = {{names}}</tt><br/>\n\t *      <tt>myForm.namesInput.$valid = {{myForm.namesInput.$valid}}</tt><br/>\n\t *      <tt>myForm.namesInput.$error = {{myForm.namesInput.$error}}</tt><br/>\n\t *      <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>\n\t *      <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>\n\t *     </form>\n\t *   </file>\n\t *   <file name=\"protractor.js\" type=\"protractor\">\n\t *     var listInput = element(by.model('names'));\n\t *     var names = element(by.exactBinding('names'));\n\t *     var valid = element(by.binding('myForm.namesInput.$valid'));\n\t *     var error = element(by.css('span.error'));\n\t *\n\t *     it('should initialize to model', function() {\n\t *       expect(names.getText()).toContain('[\"morpheus\",\"neo\",\"trinity\"]');\n\t *       expect(valid.getText()).toContain('true');\n\t *       expect(error.getCssValue('display')).toBe('none');\n\t *     });\n\t *\n\t *     it('should be invalid if empty', function() {\n\t *       listInput.clear();\n\t *       listInput.sendKeys('');\n\t *\n\t *       expect(names.getText()).toContain('');\n\t *       expect(valid.getText()).toContain('false');\n\t *       expect(error.getCssValue('display')).not.toBe('none');\n\t *     });\n\t *   </file>\n\t * </example>\n\t *\n\t * ### Example - splitting on whitespace\n\t * <example name=\"ngList-directive-newlines\">\n\t *   <file name=\"index.html\">\n\t *    <textarea ng-model=\"list\" ng-list=\"&#10;\" ng-trim=\"false\"></textarea>\n\t *    <pre>{{ list | json }}</pre>\n\t *   </file>\n\t *   <file name=\"protractor.js\" type=\"protractor\">\n\t *     it(\"should split the text by newlines\", function() {\n\t *       var listInput = element(by.model('list'));\n\t *       var output = element(by.binding('list | json'));\n\t *       listInput.sendKeys('abc\\ndef\\nghi');\n\t *       expect(output.getText()).toContain('[\\n  \"abc\",\\n  \"def\",\\n  \"ghi\"\\n]');\n\t *     });\n\t *   </file>\n\t * </example>\n\t *\n\t * @element input\n\t * @param {string=} ngList optional delimiter that should be used to split the value.\n\t */\n\tvar ngListDirective = function() {\n\t  return {\n\t    restrict: 'A',\n\t    priority: 100,\n\t    require: 'ngModel',\n\t    link: function(scope, element, attr, ctrl) {\n\t      // We want to control whitespace trimming so we use this convoluted approach\n\t      // to access the ngList attribute, which doesn't pre-trim the attribute\n\t      var ngList = element.attr(attr.$attr.ngList) || ', ';\n\t      var trimValues = attr.ngTrim !== 'false';\n\t      var separator = trimValues ? trim(ngList) : ngList;\n\n\t      var parse = function(viewValue) {\n\t        // If the viewValue is invalid (say required but empty) it will be `undefined`\n\t        if (isUndefined(viewValue)) return;\n\n\t        var list = [];\n\n\t        if (viewValue) {\n\t          forEach(viewValue.split(separator), function(value) {\n\t            if (value) list.push(trimValues ? trim(value) : value);\n\t          });\n\t        }\n\n\t        return list;\n\t      };\n\n\t      ctrl.$parsers.push(parse);\n\t      ctrl.$formatters.push(function(value) {\n\t        if (isArray(value)) {\n\t          return value.join(ngList);\n\t        }\n\n\t        return undefined;\n\t      });\n\n\t      // Override the standard $isEmpty because an empty array means the input is empty.\n\t      ctrl.$isEmpty = function(value) {\n\t        return !value || !value.length;\n\t      };\n\t    }\n\t  };\n\t};\n\n\t/* global VALID_CLASS: true,\n\t  INVALID_CLASS: true,\n\t  PRISTINE_CLASS: true,\n\t  DIRTY_CLASS: true,\n\t  UNTOUCHED_CLASS: true,\n\t  TOUCHED_CLASS: true,\n\t*/\n\n\tvar VALID_CLASS = 'ng-valid',\n\t    INVALID_CLASS = 'ng-invalid',\n\t    PRISTINE_CLASS = 'ng-pristine',\n\t    DIRTY_CLASS = 'ng-dirty',\n\t    UNTOUCHED_CLASS = 'ng-untouched',\n\t    TOUCHED_CLASS = 'ng-touched',\n\t    PENDING_CLASS = 'ng-pending';\n\n\n\tvar $ngModelMinErr = new minErr('ngModel');\n\n\t/**\n\t * @ngdoc type\n\t * @name ngModel.NgModelController\n\t *\n\t * @property {string} $viewValue Actual string value in the view.\n\t * @property {*} $modelValue The value in the model that the control is bound to.\n\t * @property {Array.<Function>} $parsers Array of functions to execute, as a pipeline, whenever\n\t       the control reads value from the DOM. The functions are called in array order, each passing\n\t       its return value through to the next. The last return value is forwarded to the\n\t       {@link ngModel.NgModelController#$validators `$validators`} collection.\n\n\tParsers are used to sanitize / convert the {@link ngModel.NgModelController#$viewValue\n\t`$viewValue`}.\n\n\tReturning `undefined` from a parser means a parse error occurred. In that case,\n\tno {@link ngModel.NgModelController#$validators `$validators`} will run and the `ngModel`\n\twill be set to `undefined` unless {@link ngModelOptions `ngModelOptions.allowInvalid`}\n\tis set to `true`. The parse error is stored in `ngModel.$error.parse`.\n\n\t *\n\t * @property {Array.<Function>} $formatters Array of functions to execute, as a pipeline, whenever\n\t       the model value changes. The functions are called in reverse array order, each passing the value through to the\n\t       next. The last return value is used as the actual DOM value.\n\t       Used to format / convert values for display in the control.\n\t * ```js\n\t * function formatter(value) {\n\t *   if (value) {\n\t *     return value.toUpperCase();\n\t *   }\n\t * }\n\t * ngModel.$formatters.push(formatter);\n\t * ```\n\t *\n\t * @property {Object.<string, function>} $validators A collection of validators that are applied\n\t *      whenever the model value changes. The key value within the object refers to the name of the\n\t *      validator while the function refers to the validation operation. The validation operation is\n\t *      provided with the model value as an argument and must return a true or false value depending\n\t *      on the response of that validation.\n\t *\n\t * ```js\n\t * ngModel.$validators.validCharacters = function(modelValue, viewValue) {\n\t *   var value = modelValue || viewValue;\n\t *   return /[0-9]+/.test(value) &&\n\t *          /[a-z]+/.test(value) &&\n\t *          /[A-Z]+/.test(value) &&\n\t *          /\\W+/.test(value);\n\t * };\n\t * ```\n\t *\n\t * @property {Object.<string, function>} $asyncValidators A collection of validations that are expected to\n\t *      perform an asynchronous validation (e.g. a HTTP request). The validation function that is provided\n\t *      is expected to return a promise when it is run during the model validation process. Once the promise\n\t *      is delivered then the validation status will be set to true when fulfilled and false when rejected.\n\t *      When the asynchronous validators are triggered, each of the validators will run in parallel and the model\n\t *      value will only be updated once all validators have been fulfilled. As long as an asynchronous validator\n\t *      is unfulfilled, its key will be added to the controllers `$pending` property. Also, all asynchronous validators\n\t *      will only run once all synchronous validators have passed.\n\t *\n\t * Please note that if $http is used then it is important that the server returns a success HTTP response code\n\t * in order to fulfill the validation and a status level of `4xx` in order to reject the validation.\n\t *\n\t * ```js\n\t * ngModel.$asyncValidators.uniqueUsername = function(modelValue, viewValue) {\n\t *   var value = modelValue || viewValue;\n\t *\n\t *   // Lookup user by username\n\t *   return $http.get('/api/users/' + value).\n\t *      then(function resolved() {\n\t *        //username exists, this means validation fails\n\t *        return $q.reject('exists');\n\t *      }, function rejected() {\n\t *        //username does not exist, therefore this validation passes\n\t *        return true;\n\t *      });\n\t * };\n\t * ```\n\t *\n\t * @property {Array.<Function>} $viewChangeListeners Array of functions to execute whenever the\n\t *     view value has changed. It is called with no arguments, and its return value is ignored.\n\t *     This can be used in place of additional $watches against the model value.\n\t *\n\t * @property {Object} $error An object hash with all failing validator ids as keys.\n\t * @property {Object} $pending An object hash with all pending validator ids as keys.\n\t *\n\t * @property {boolean} $untouched True if control has not lost focus yet.\n\t * @property {boolean} $touched True if control has lost focus.\n\t * @property {boolean} $pristine True if user has not interacted with the control yet.\n\t * @property {boolean} $dirty True if user has already interacted with the control.\n\t * @property {boolean} $valid True if there is no error.\n\t * @property {boolean} $invalid True if at least one error on the control.\n\t * @property {string} $name The name attribute of the control.\n\t *\n\t * @description\n\t *\n\t * `NgModelController` provides API for the {@link ngModel `ngModel`} directive.\n\t * The controller contains services for data-binding, validation, CSS updates, and value formatting\n\t * and parsing. It purposefully does not contain any logic which deals with DOM rendering or\n\t * listening to DOM events.\n\t * Such DOM related logic should be provided by other directives which make use of\n\t * `NgModelController` for data-binding to control elements.\n\t * Angular provides this DOM logic for most {@link input `input`} elements.\n\t * At the end of this page you can find a {@link ngModel.NgModelController#custom-control-example\n\t * custom control example} that uses `ngModelController` to bind to `contenteditable` elements.\n\t *\n\t * @example\n\t * ### Custom Control Example\n\t * This example shows how to use `NgModelController` with a custom control to achieve\n\t * data-binding. Notice how different directives (`contenteditable`, `ng-model`, and `required`)\n\t * collaborate together to achieve the desired result.\n\t *\n\t * `contenteditable` is an HTML5 attribute, which tells the browser to let the element\n\t * contents be edited in place by the user.\n\t *\n\t * We are using the {@link ng.service:$sce $sce} service here and include the {@link ngSanitize $sanitize}\n\t * module to automatically remove \"bad\" content like inline event listener (e.g. `<span onclick=\"...\">`).\n\t * However, as we are using `$sce` the model can still decide to provide unsafe content if it marks\n\t * that content using the `$sce` service.\n\t *\n\t * <example name=\"NgModelController\" module=\"customControl\" deps=\"angular-sanitize.js\">\n\t    <file name=\"style.css\">\n\t      [contenteditable] {\n\t        border: 1px solid black;\n\t        background-color: white;\n\t        min-height: 20px;\n\t      }\n\n\t      .ng-invalid {\n\t        border: 1px solid red;\n\t      }\n\n\t    </file>\n\t    <file name=\"script.js\">\n\t      angular.module('customControl', ['ngSanitize']).\n\t        directive('contenteditable', ['$sce', function($sce) {\n\t          return {\n\t            restrict: 'A', // only activate on element attribute\n\t            require: '?ngModel', // get a hold of NgModelController\n\t            link: function(scope, element, attrs, ngModel) {\n\t              if (!ngModel) return; // do nothing if no ng-model\n\n\t              // Specify how UI should be updated\n\t              ngModel.$render = function() {\n\t                element.html($sce.getTrustedHtml(ngModel.$viewValue || ''));\n\t              };\n\n\t              // Listen for change events to enable binding\n\t              element.on('blur keyup change', function() {\n\t                scope.$evalAsync(read);\n\t              });\n\t              read(); // initialize\n\n\t              // Write data to the model\n\t              function read() {\n\t                var html = element.html();\n\t                // When we clear the content editable the browser leaves a <br> behind\n\t                // If strip-br attribute is provided then we strip this out\n\t                if ( attrs.stripBr && html == '<br>' ) {\n\t                  html = '';\n\t                }\n\t                ngModel.$setViewValue(html);\n\t              }\n\t            }\n\t          };\n\t        }]);\n\t    </file>\n\t    <file name=\"index.html\">\n\t      <form name=\"myForm\">\n\t       <div contenteditable\n\t            name=\"myWidget\" ng-model=\"userContent\"\n\t            strip-br=\"true\"\n\t            required>Change me!</div>\n\t        <span ng-show=\"myForm.myWidget.$error.required\">Required!</span>\n\t       <hr>\n\t       <textarea ng-model=\"userContent\"></textarea>\n\t      </form>\n\t    </file>\n\t    <file name=\"protractor.js\" type=\"protractor\">\n\t    it('should data-bind and become invalid', function() {\n\t      if (browser.params.browser == 'safari' || browser.params.browser == 'firefox') {\n\t        // SafariDriver can't handle contenteditable\n\t        // and Firefox driver can't clear contenteditables very well\n\t        return;\n\t      }\n\t      var contentEditable = element(by.css('[contenteditable]'));\n\t      var content = 'Change me!';\n\n\t      expect(contentEditable.getText()).toEqual(content);\n\n\t      contentEditable.clear();\n\t      contentEditable.sendKeys(protractor.Key.BACK_SPACE);\n\t      expect(contentEditable.getText()).toEqual('');\n\t      expect(contentEditable.getAttribute('class')).toMatch(/ng-invalid-required/);\n\t    });\n\t    </file>\n\t * </example>\n\t *\n\t *\n\t */\n\tvar NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$parse', '$animate', '$timeout', '$rootScope', '$q', '$interpolate',\n\t    function($scope, $exceptionHandler, $attr, $element, $parse, $animate, $timeout, $rootScope, $q, $interpolate) {\n\t  this.$viewValue = Number.NaN;\n\t  this.$modelValue = Number.NaN;\n\t  this.$$rawModelValue = undefined; // stores the parsed modelValue / model set from scope regardless of validity.\n\t  this.$validators = {};\n\t  this.$asyncValidators = {};\n\t  this.$parsers = [];\n\t  this.$formatters = [];\n\t  this.$viewChangeListeners = [];\n\t  this.$untouched = true;\n\t  this.$touched = false;\n\t  this.$pristine = true;\n\t  this.$dirty = false;\n\t  this.$valid = true;\n\t  this.$invalid = false;\n\t  this.$error = {}; // keep invalid keys here\n\t  this.$$success = {}; // keep valid keys here\n\t  this.$pending = undefined; // keep pending keys here\n\t  this.$name = $interpolate($attr.name || '', false)($scope);\n\n\n\t  var parsedNgModel = $parse($attr.ngModel),\n\t      parsedNgModelAssign = parsedNgModel.assign,\n\t      ngModelGet = parsedNgModel,\n\t      ngModelSet = parsedNgModelAssign,\n\t      pendingDebounce = null,\n\t      parserValid,\n\t      ctrl = this;\n\n\t  this.$$setOptions = function(options) {\n\t    ctrl.$options = options;\n\t    if (options && options.getterSetter) {\n\t      var invokeModelGetter = $parse($attr.ngModel + '()'),\n\t          invokeModelSetter = $parse($attr.ngModel + '($$$p)');\n\n\t      ngModelGet = function($scope) {\n\t        var modelValue = parsedNgModel($scope);\n\t        if (isFunction(modelValue)) {\n\t          modelValue = invokeModelGetter($scope);\n\t        }\n\t        return modelValue;\n\t      };\n\t      ngModelSet = function($scope, newValue) {\n\t        if (isFunction(parsedNgModel($scope))) {\n\t          invokeModelSetter($scope, {$$$p: ctrl.$modelValue});\n\t        } else {\n\t          parsedNgModelAssign($scope, ctrl.$modelValue);\n\t        }\n\t      };\n\t    } else if (!parsedNgModel.assign) {\n\t      throw $ngModelMinErr('nonassign', \"Expression '{0}' is non-assignable. Element: {1}\",\n\t          $attr.ngModel, startingTag($element));\n\t    }\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name ngModel.NgModelController#$render\n\t   *\n\t   * @description\n\t   * Called when the view needs to be updated. It is expected that the user of the ng-model\n\t   * directive will implement this method.\n\t   *\n\t   * The `$render()` method is invoked in the following situations:\n\t   *\n\t   * * `$rollbackViewValue()` is called.  If we are rolling back the view value to the last\n\t   *   committed value then `$render()` is called to update the input control.\n\t   * * The value referenced by `ng-model` is changed programmatically and both the `$modelValue` and\n\t   *   the `$viewValue` are different to last time.\n\t   *\n\t   * Since `ng-model` does not do a deep watch, `$render()` is only invoked if the values of\n\t   * `$modelValue` and `$viewValue` are actually different to their previous value. If `$modelValue`\n\t   * or `$viewValue` are objects (rather than a string or number) then `$render()` will not be\n\t   * invoked if you only change a property on the objects.\n\t   */\n\t  this.$render = noop;\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name ngModel.NgModelController#$isEmpty\n\t   *\n\t   * @description\n\t   * This is called when we need to determine if the value of an input is empty.\n\t   *\n\t   * For instance, the required directive does this to work out if the input has data or not.\n\t   *\n\t   * The default `$isEmpty` function checks whether the value is `undefined`, `''`, `null` or `NaN`.\n\t   *\n\t   * You can override this for input directives whose concept of being empty is different to the\n\t   * default. The `checkboxInputType` directive does this because in its case a value of `false`\n\t   * implies empty.\n\t   *\n\t   * @param {*} value The value of the input to check for emptiness.\n\t   * @returns {boolean} True if `value` is \"empty\".\n\t   */\n\t  this.$isEmpty = function(value) {\n\t    return isUndefined(value) || value === '' || value === null || value !== value;\n\t  };\n\n\t  var parentForm = $element.inheritedData('$formController') || nullFormCtrl,\n\t      currentValidationRunId = 0;\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name ngModel.NgModelController#$setValidity\n\t   *\n\t   * @description\n\t   * Change the validity state, and notify the form.\n\t   *\n\t   * This method can be called within $parsers/$formatters or a custom validation implementation.\n\t   * However, in most cases it should be sufficient to use the `ngModel.$validators` and\n\t   * `ngModel.$asyncValidators` collections which will call `$setValidity` automatically.\n\t   *\n\t   * @param {string} validationErrorKey Name of the validator. The `validationErrorKey` will be assigned\n\t   *        to either `$error[validationErrorKey]` or `$pending[validationErrorKey]`\n\t   *        (for unfulfilled `$asyncValidators`), so that it is available for data-binding.\n\t   *        The `validationErrorKey` should be in camelCase and will get converted into dash-case\n\t   *        for class name. Example: `myError` will result in `ng-valid-my-error` and `ng-invalid-my-error`\n\t   *        class and can be bound to as  `{{someForm.someControl.$error.myError}}` .\n\t   * @param {boolean} isValid Whether the current state is valid (true), invalid (false), pending (undefined),\n\t   *                          or skipped (null). Pending is used for unfulfilled `$asyncValidators`.\n\t   *                          Skipped is used by Angular when validators do not run because of parse errors and\n\t   *                          when `$asyncValidators` do not run because any of the `$validators` failed.\n\t   */\n\t  addSetValidityMethod({\n\t    ctrl: this,\n\t    $element: $element,\n\t    set: function(object, property) {\n\t      object[property] = true;\n\t    },\n\t    unset: function(object, property) {\n\t      delete object[property];\n\t    },\n\t    parentForm: parentForm,\n\t    $animate: $animate\n\t  });\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name ngModel.NgModelController#$setPristine\n\t   *\n\t   * @description\n\t   * Sets the control to its pristine state.\n\t   *\n\t   * This method can be called to remove the `ng-dirty` class and set the control to its pristine\n\t   * state (`ng-pristine` class). A model is considered to be pristine when the control\n\t   * has not been changed from when first compiled.\n\t   */\n\t  this.$setPristine = function() {\n\t    ctrl.$dirty = false;\n\t    ctrl.$pristine = true;\n\t    $animate.removeClass($element, DIRTY_CLASS);\n\t    $animate.addClass($element, PRISTINE_CLASS);\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name ngModel.NgModelController#$setDirty\n\t   *\n\t   * @description\n\t   * Sets the control to its dirty state.\n\t   *\n\t   * This method can be called to remove the `ng-pristine` class and set the control to its dirty\n\t   * state (`ng-dirty` class). A model is considered to be dirty when the control has been changed\n\t   * from when first compiled.\n\t   */\n\t  this.$setDirty = function() {\n\t    ctrl.$dirty = true;\n\t    ctrl.$pristine = false;\n\t    $animate.removeClass($element, PRISTINE_CLASS);\n\t    $animate.addClass($element, DIRTY_CLASS);\n\t    parentForm.$setDirty();\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name ngModel.NgModelController#$setUntouched\n\t   *\n\t   * @description\n\t   * Sets the control to its untouched state.\n\t   *\n\t   * This method can be called to remove the `ng-touched` class and set the control to its\n\t   * untouched state (`ng-untouched` class). Upon compilation, a model is set as untouched\n\t   * by default, however this function can be used to restore that state if the model has\n\t   * already been touched by the user.\n\t   */\n\t  this.$setUntouched = function() {\n\t    ctrl.$touched = false;\n\t    ctrl.$untouched = true;\n\t    $animate.setClass($element, UNTOUCHED_CLASS, TOUCHED_CLASS);\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name ngModel.NgModelController#$setTouched\n\t   *\n\t   * @description\n\t   * Sets the control to its touched state.\n\t   *\n\t   * This method can be called to remove the `ng-untouched` class and set the control to its\n\t   * touched state (`ng-touched` class). A model is considered to be touched when the user has\n\t   * first focused the control element and then shifted focus away from the control (blur event).\n\t   */\n\t  this.$setTouched = function() {\n\t    ctrl.$touched = true;\n\t    ctrl.$untouched = false;\n\t    $animate.setClass($element, TOUCHED_CLASS, UNTOUCHED_CLASS);\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name ngModel.NgModelController#$rollbackViewValue\n\t   *\n\t   * @description\n\t   * Cancel an update and reset the input element's value to prevent an update to the `$modelValue`,\n\t   * which may be caused by a pending debounced event or because the input is waiting for a some\n\t   * future event.\n\t   *\n\t   * If you have an input that uses `ng-model-options` to set up debounced events or events such\n\t   * as blur you can have a situation where there is a period when the `$viewValue`\n\t   * is out of synch with the ngModel's `$modelValue`.\n\t   *\n\t   * In this case, you can run into difficulties if you try to update the ngModel's `$modelValue`\n\t   * programmatically before these debounced/future events have resolved/occurred, because Angular's\n\t   * dirty checking mechanism is not able to tell whether the model has actually changed or not.\n\t   *\n\t   * The `$rollbackViewValue()` method should be called before programmatically changing the model of an\n\t   * input which may have such events pending. This is important in order to make sure that the\n\t   * input field will be updated with the new model value and any pending operations are cancelled.\n\t   *\n\t   * <example name=\"ng-model-cancel-update\" module=\"cancel-update-example\">\n\t   *   <file name=\"app.js\">\n\t   *     angular.module('cancel-update-example', [])\n\t   *\n\t   *     .controller('CancelUpdateController', ['$scope', function($scope) {\n\t   *       $scope.resetWithCancel = function(e) {\n\t   *         if (e.keyCode == 27) {\n\t   *           $scope.myForm.myInput1.$rollbackViewValue();\n\t   *           $scope.myValue = '';\n\t   *         }\n\t   *       };\n\t   *       $scope.resetWithoutCancel = function(e) {\n\t   *         if (e.keyCode == 27) {\n\t   *           $scope.myValue = '';\n\t   *         }\n\t   *       };\n\t   *     }]);\n\t   *   </file>\n\t   *   <file name=\"index.html\">\n\t   *     <div ng-controller=\"CancelUpdateController\">\n\t   *       <p>Try typing something in each input.  See that the model only updates when you\n\t   *          blur off the input.\n\t   *        </p>\n\t   *        <p>Now see what happens if you start typing then press the Escape key</p>\n\t   *\n\t   *       <form name=\"myForm\" ng-model-options=\"{ updateOn: 'blur' }\">\n\t   *         <p>With $rollbackViewValue()</p>\n\t   *         <input name=\"myInput1\" ng-model=\"myValue\" ng-keydown=\"resetWithCancel($event)\"><br/>\n\t   *         myValue: \"{{ myValue }}\"\n\t   *\n\t   *         <p>Without $rollbackViewValue()</p>\n\t   *         <input name=\"myInput2\" ng-model=\"myValue\" ng-keydown=\"resetWithoutCancel($event)\"><br/>\n\t   *         myValue: \"{{ myValue }}\"\n\t   *       </form>\n\t   *     </div>\n\t   *   </file>\n\t   * </example>\n\t   */\n\t  this.$rollbackViewValue = function() {\n\t    $timeout.cancel(pendingDebounce);\n\t    ctrl.$viewValue = ctrl.$$lastCommittedViewValue;\n\t    ctrl.$render();\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name ngModel.NgModelController#$validate\n\t   *\n\t   * @description\n\t   * Runs each of the registered validators (first synchronous validators and then\n\t   * asynchronous validators).\n\t   * If the validity changes to invalid, the model will be set to `undefined`,\n\t   * unless {@link ngModelOptions `ngModelOptions.allowInvalid`} is `true`.\n\t   * If the validity changes to valid, it will set the model to the last available valid\n\t   * modelValue, i.e. either the last parsed value or the last value set from the scope.\n\t   */\n\t  this.$validate = function() {\n\t    // ignore $validate before model is initialized\n\t    if (isNumber(ctrl.$modelValue) && isNaN(ctrl.$modelValue)) {\n\t      return;\n\t    }\n\n\t    var viewValue = ctrl.$$lastCommittedViewValue;\n\t    // Note: we use the $$rawModelValue as $modelValue might have been\n\t    // set to undefined during a view -> model update that found validation\n\t    // errors. We can't parse the view here, since that could change\n\t    // the model although neither viewValue nor the model on the scope changed\n\t    var modelValue = ctrl.$$rawModelValue;\n\n\t    var prevValid = ctrl.$valid;\n\t    var prevModelValue = ctrl.$modelValue;\n\n\t    var allowInvalid = ctrl.$options && ctrl.$options.allowInvalid;\n\n\t    ctrl.$$runValidators(modelValue, viewValue, function(allValid) {\n\t      // If there was no change in validity, don't update the model\n\t      // This prevents changing an invalid modelValue to undefined\n\t      if (!allowInvalid && prevValid !== allValid) {\n\t        // Note: Don't check ctrl.$valid here, as we could have\n\t        // external validators (e.g. calculated on the server),\n\t        // that just call $setValidity and need the model value\n\t        // to calculate their validity.\n\t        ctrl.$modelValue = allValid ? modelValue : undefined;\n\n\t        if (ctrl.$modelValue !== prevModelValue) {\n\t          ctrl.$$writeModelToScope();\n\t        }\n\t      }\n\t    });\n\n\t  };\n\n\t  this.$$runValidators = function(modelValue, viewValue, doneCallback) {\n\t    currentValidationRunId++;\n\t    var localValidationRunId = currentValidationRunId;\n\n\t    // check parser error\n\t    if (!processParseErrors()) {\n\t      validationDone(false);\n\t      return;\n\t    }\n\t    if (!processSyncValidators()) {\n\t      validationDone(false);\n\t      return;\n\t    }\n\t    processAsyncValidators();\n\n\t    function processParseErrors() {\n\t      var errorKey = ctrl.$$parserName || 'parse';\n\t      if (parserValid === undefined) {\n\t        setValidity(errorKey, null);\n\t      } else {\n\t        if (!parserValid) {\n\t          forEach(ctrl.$validators, function(v, name) {\n\t            setValidity(name, null);\n\t          });\n\t          forEach(ctrl.$asyncValidators, function(v, name) {\n\t            setValidity(name, null);\n\t          });\n\t        }\n\t        // Set the parse error last, to prevent unsetting it, should a $validators key == parserName\n\t        setValidity(errorKey, parserValid);\n\t        return parserValid;\n\t      }\n\t      return true;\n\t    }\n\n\t    function processSyncValidators() {\n\t      var syncValidatorsValid = true;\n\t      forEach(ctrl.$validators, function(validator, name) {\n\t        var result = validator(modelValue, viewValue);\n\t        syncValidatorsValid = syncValidatorsValid && result;\n\t        setValidity(name, result);\n\t      });\n\t      if (!syncValidatorsValid) {\n\t        forEach(ctrl.$asyncValidators, function(v, name) {\n\t          setValidity(name, null);\n\t        });\n\t        return false;\n\t      }\n\t      return true;\n\t    }\n\n\t    function processAsyncValidators() {\n\t      var validatorPromises = [];\n\t      var allValid = true;\n\t      forEach(ctrl.$asyncValidators, function(validator, name) {\n\t        var promise = validator(modelValue, viewValue);\n\t        if (!isPromiseLike(promise)) {\n\t          throw $ngModelMinErr(\"$asyncValidators\",\n\t            \"Expected asynchronous validator to return a promise but got '{0}' instead.\", promise);\n\t        }\n\t        setValidity(name, undefined);\n\t        validatorPromises.push(promise.then(function() {\n\t          setValidity(name, true);\n\t        }, function(error) {\n\t          allValid = false;\n\t          setValidity(name, false);\n\t        }));\n\t      });\n\t      if (!validatorPromises.length) {\n\t        validationDone(true);\n\t      } else {\n\t        $q.all(validatorPromises).then(function() {\n\t          validationDone(allValid);\n\t        }, noop);\n\t      }\n\t    }\n\n\t    function setValidity(name, isValid) {\n\t      if (localValidationRunId === currentValidationRunId) {\n\t        ctrl.$setValidity(name, isValid);\n\t      }\n\t    }\n\n\t    function validationDone(allValid) {\n\t      if (localValidationRunId === currentValidationRunId) {\n\n\t        doneCallback(allValid);\n\t      }\n\t    }\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name ngModel.NgModelController#$commitViewValue\n\t   *\n\t   * @description\n\t   * Commit a pending update to the `$modelValue`.\n\t   *\n\t   * Updates may be pending by a debounced event or because the input is waiting for a some future\n\t   * event defined in `ng-model-options`. this method is rarely needed as `NgModelController`\n\t   * usually handles calling this in response to input events.\n\t   */\n\t  this.$commitViewValue = function() {\n\t    var viewValue = ctrl.$viewValue;\n\n\t    $timeout.cancel(pendingDebounce);\n\n\t    // If the view value has not changed then we should just exit, except in the case where there is\n\t    // a native validator on the element. In this case the validation state may have changed even though\n\t    // the viewValue has stayed empty.\n\t    if (ctrl.$$lastCommittedViewValue === viewValue && (viewValue !== '' || !ctrl.$$hasNativeValidators)) {\n\t      return;\n\t    }\n\t    ctrl.$$lastCommittedViewValue = viewValue;\n\n\t    // change to dirty\n\t    if (ctrl.$pristine) {\n\t      this.$setDirty();\n\t    }\n\t    this.$$parseAndValidate();\n\t  };\n\n\t  this.$$parseAndValidate = function() {\n\t    var viewValue = ctrl.$$lastCommittedViewValue;\n\t    var modelValue = viewValue;\n\t    parserValid = isUndefined(modelValue) ? undefined : true;\n\n\t    if (parserValid) {\n\t      for (var i = 0; i < ctrl.$parsers.length; i++) {\n\t        modelValue = ctrl.$parsers[i](modelValue);\n\t        if (isUndefined(modelValue)) {\n\t          parserValid = false;\n\t          break;\n\t        }\n\t      }\n\t    }\n\t    if (isNumber(ctrl.$modelValue) && isNaN(ctrl.$modelValue)) {\n\t      // ctrl.$modelValue has not been touched yet...\n\t      ctrl.$modelValue = ngModelGet($scope);\n\t    }\n\t    var prevModelValue = ctrl.$modelValue;\n\t    var allowInvalid = ctrl.$options && ctrl.$options.allowInvalid;\n\t    ctrl.$$rawModelValue = modelValue;\n\n\t    if (allowInvalid) {\n\t      ctrl.$modelValue = modelValue;\n\t      writeToModelIfNeeded();\n\t    }\n\n\t    // Pass the $$lastCommittedViewValue here, because the cached viewValue might be out of date.\n\t    // This can happen if e.g. $setViewValue is called from inside a parser\n\t    ctrl.$$runValidators(modelValue, ctrl.$$lastCommittedViewValue, function(allValid) {\n\t      if (!allowInvalid) {\n\t        // Note: Don't check ctrl.$valid here, as we could have\n\t        // external validators (e.g. calculated on the server),\n\t        // that just call $setValidity and need the model value\n\t        // to calculate their validity.\n\t        ctrl.$modelValue = allValid ? modelValue : undefined;\n\t        writeToModelIfNeeded();\n\t      }\n\t    });\n\n\t    function writeToModelIfNeeded() {\n\t      if (ctrl.$modelValue !== prevModelValue) {\n\t        ctrl.$$writeModelToScope();\n\t      }\n\t    }\n\t  };\n\n\t  this.$$writeModelToScope = function() {\n\t    ngModelSet($scope, ctrl.$modelValue);\n\t    forEach(ctrl.$viewChangeListeners, function(listener) {\n\t      try {\n\t        listener();\n\t      } catch (e) {\n\t        $exceptionHandler(e);\n\t      }\n\t    });\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name ngModel.NgModelController#$setViewValue\n\t   *\n\t   * @description\n\t   * Update the view value.\n\t   *\n\t   * This method should be called when an input directive want to change the view value; typically,\n\t   * this is done from within a DOM event handler.\n\t   *\n\t   * For example {@link ng.directive:input input} calls it when the value of the input changes and\n\t   * {@link ng.directive:select select} calls it when an option is selected.\n\t   *\n\t   * If the new `value` is an object (rather than a string or a number), we should make a copy of the\n\t   * object before passing it to `$setViewValue`.  This is because `ngModel` does not perform a deep\n\t   * watch of objects, it only looks for a change of identity. If you only change the property of\n\t   * the object then ngModel will not realise that the object has changed and will not invoke the\n\t   * `$parsers` and `$validators` pipelines.\n\t   *\n\t   * For this reason, you should not change properties of the copy once it has been passed to\n\t   * `$setViewValue`. Otherwise you may cause the model value on the scope to change incorrectly.\n\t   *\n\t   * When this method is called, the new `value` will be staged for committing through the `$parsers`\n\t   * and `$validators` pipelines. If there are no special {@link ngModelOptions} specified then the staged\n\t   * value sent directly for processing, finally to be applied to `$modelValue` and then the\n\t   * **expression** specified in the `ng-model` attribute.\n\t   *\n\t   * Lastly, all the registered change listeners, in the `$viewChangeListeners` list, are called.\n\t   *\n\t   * In case the {@link ng.directive:ngModelOptions ngModelOptions} directive is used with `updateOn`\n\t   * and the `default` trigger is not listed, all those actions will remain pending until one of the\n\t   * `updateOn` events is triggered on the DOM element.\n\t   * All these actions will be debounced if the {@link ng.directive:ngModelOptions ngModelOptions}\n\t   * directive is used with a custom debounce for this particular event.\n\t   *\n\t   * Note that calling this function does not trigger a `$digest`.\n\t   *\n\t   * @param {string} value Value from the view.\n\t   * @param {string} trigger Event that triggered the update.\n\t   */\n\t  this.$setViewValue = function(value, trigger) {\n\t    ctrl.$viewValue = value;\n\t    if (!ctrl.$options || ctrl.$options.updateOnDefault) {\n\t      ctrl.$$debounceViewValueCommit(trigger);\n\t    }\n\t  };\n\n\t  this.$$debounceViewValueCommit = function(trigger) {\n\t    var debounceDelay = 0,\n\t        options = ctrl.$options,\n\t        debounce;\n\n\t    if (options && isDefined(options.debounce)) {\n\t      debounce = options.debounce;\n\t      if (isNumber(debounce)) {\n\t        debounceDelay = debounce;\n\t      } else if (isNumber(debounce[trigger])) {\n\t        debounceDelay = debounce[trigger];\n\t      } else if (isNumber(debounce['default'])) {\n\t        debounceDelay = debounce['default'];\n\t      }\n\t    }\n\n\t    $timeout.cancel(pendingDebounce);\n\t    if (debounceDelay) {\n\t      pendingDebounce = $timeout(function() {\n\t        ctrl.$commitViewValue();\n\t      }, debounceDelay);\n\t    } else if ($rootScope.$$phase) {\n\t      ctrl.$commitViewValue();\n\t    } else {\n\t      $scope.$apply(function() {\n\t        ctrl.$commitViewValue();\n\t      });\n\t    }\n\t  };\n\n\t  // model -> value\n\t  // Note: we cannot use a normal scope.$watch as we want to detect the following:\n\t  // 1. scope value is 'a'\n\t  // 2. user enters 'b'\n\t  // 3. ng-change kicks in and reverts scope value to 'a'\n\t  //    -> scope value did not change since the last digest as\n\t  //       ng-change executes in apply phase\n\t  // 4. view should be changed back to 'a'\n\t  $scope.$watch(function ngModelWatch() {\n\t    var modelValue = ngModelGet($scope);\n\n\t    // if scope model value and ngModel value are out of sync\n\t    // TODO(perf): why not move this to the action fn?\n\t    if (modelValue !== ctrl.$modelValue) {\n\t      ctrl.$modelValue = ctrl.$$rawModelValue = modelValue;\n\t      parserValid = undefined;\n\n\t      var formatters = ctrl.$formatters,\n\t          idx = formatters.length;\n\n\t      var viewValue = modelValue;\n\t      while (idx--) {\n\t        viewValue = formatters[idx](viewValue);\n\t      }\n\t      if (ctrl.$viewValue !== viewValue) {\n\t        ctrl.$viewValue = ctrl.$$lastCommittedViewValue = viewValue;\n\t        ctrl.$render();\n\n\t        ctrl.$$runValidators(modelValue, viewValue, noop);\n\t      }\n\t    }\n\n\t    return modelValue;\n\t  });\n\t}];\n\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngModel\n\t *\n\t * @element input\n\t * @priority 1\n\t *\n\t * @description\n\t * The `ngModel` directive binds an `input`,`select`, `textarea` (or custom form control) to a\n\t * property on the scope using {@link ngModel.NgModelController NgModelController},\n\t * which is created and exposed by this directive.\n\t *\n\t * `ngModel` is responsible for:\n\t *\n\t * - Binding the view into the model, which other directives such as `input`, `textarea` or `select`\n\t *   require.\n\t * - Providing validation behavior (i.e. required, number, email, url).\n\t * - Keeping the state of the control (valid/invalid, dirty/pristine, touched/untouched, validation errors).\n\t * - Setting related css classes on the element (`ng-valid`, `ng-invalid`, `ng-dirty`, `ng-pristine`, `ng-touched`, `ng-untouched`) including animations.\n\t * - Registering the control with its parent {@link ng.directive:form form}.\n\t *\n\t * Note: `ngModel` will try to bind to the property given by evaluating the expression on the\n\t * current scope. If the property doesn't already exist on this scope, it will be created\n\t * implicitly and added to the scope.\n\t *\n\t * For best practices on using `ngModel`, see:\n\t *\n\t *  - [Understanding Scopes](https://github.com/angular/angular.js/wiki/Understanding-Scopes)\n\t *\n\t * For basic examples, how to use `ngModel`, see:\n\t *\n\t *  - {@link ng.directive:input input}\n\t *    - {@link input[text] text}\n\t *    - {@link input[checkbox] checkbox}\n\t *    - {@link input[radio] radio}\n\t *    - {@link input[number] number}\n\t *    - {@link input[email] email}\n\t *    - {@link input[url] url}\n\t *    - {@link input[date] date}\n\t *    - {@link input[datetime-local] datetime-local}\n\t *    - {@link input[time] time}\n\t *    - {@link input[month] month}\n\t *    - {@link input[week] week}\n\t *  - {@link ng.directive:select select}\n\t *  - {@link ng.directive:textarea textarea}\n\t *\n\t * # CSS classes\n\t * The following CSS classes are added and removed on the associated input/select/textarea element\n\t * depending on the validity of the model.\n\t *\n\t *  - `ng-valid`: the model is valid\n\t *  - `ng-invalid`: the model is invalid\n\t *  - `ng-valid-[key]`: for each valid key added by `$setValidity`\n\t *  - `ng-invalid-[key]`: for each invalid key added by `$setValidity`\n\t *  - `ng-pristine`: the control hasn't been interacted with yet\n\t *  - `ng-dirty`: the control has been interacted with\n\t *  - `ng-touched`: the control has been blurred\n\t *  - `ng-untouched`: the control hasn't been blurred\n\t *  - `ng-pending`: any `$asyncValidators` are unfulfilled\n\t *\n\t * Keep in mind that ngAnimate can detect each of these classes when added and removed.\n\t *\n\t * ## Animation Hooks\n\t *\n\t * Animations within models are triggered when any of the associated CSS classes are added and removed\n\t * on the input element which is attached to the model. These classes are: `.ng-pristine`, `.ng-dirty`,\n\t * `.ng-invalid` and `.ng-valid` as well as any other validations that are performed on the model itself.\n\t * The animations that are triggered within ngModel are similar to how they work in ngClass and\n\t * animations can be hooked into using CSS transitions, keyframes as well as JS animations.\n\t *\n\t * The following example shows a simple way to utilize CSS transitions to style an input element\n\t * that has been rendered as invalid after it has been validated:\n\t *\n\t * <pre>\n\t * //be sure to include ngAnimate as a module to hook into more\n\t * //advanced animations\n\t * .my-input {\n\t *   transition:0.5s linear all;\n\t *   background: white;\n\t * }\n\t * .my-input.ng-invalid {\n\t *   background: red;\n\t *   color:white;\n\t * }\n\t * </pre>\n\t *\n\t * @example\n\t * <example deps=\"angular-animate.js\" animations=\"true\" fixBase=\"true\" module=\"inputExample\">\n\t     <file name=\"index.html\">\n\t       <script>\n\t        angular.module('inputExample', [])\n\t          .controller('ExampleController', ['$scope', function($scope) {\n\t            $scope.val = '1';\n\t          }]);\n\t       </script>\n\t       <style>\n\t         .my-input {\n\t           -webkit-transition:all linear 0.5s;\n\t           transition:all linear 0.5s;\n\t           background: transparent;\n\t         }\n\t         .my-input.ng-invalid {\n\t           color:white;\n\t           background: red;\n\t         }\n\t       </style>\n\t       Update input to see transitions when valid/invalid.\n\t       Integer is a valid value.\n\t       <form name=\"testForm\" ng-controller=\"ExampleController\">\n\t         <input ng-model=\"val\" ng-pattern=\"/^\\d+$/\" name=\"anim\" class=\"my-input\" />\n\t       </form>\n\t     </file>\n\t * </example>\n\t *\n\t * ## Binding to a getter/setter\n\t *\n\t * Sometimes it's helpful to bind `ngModel` to a getter/setter function.  A getter/setter is a\n\t * function that returns a representation of the model when called with zero arguments, and sets\n\t * the internal state of a model when called with an argument. It's sometimes useful to use this\n\t * for models that have an internal representation that's different than what the model exposes\n\t * to the view.\n\t *\n\t * <div class=\"alert alert-success\">\n\t * **Best Practice:** It's best to keep getters fast because Angular is likely to call them more\n\t * frequently than other parts of your code.\n\t * </div>\n\t *\n\t * You use this behavior by adding `ng-model-options=\"{ getterSetter: true }\"` to an element that\n\t * has `ng-model` attached to it. You can also add `ng-model-options=\"{ getterSetter: true }\"` to\n\t * a `<form>`, which will enable this behavior for all `<input>`s within it. See\n\t * {@link ng.directive:ngModelOptions `ngModelOptions`} for more.\n\t *\n\t * The following example shows how to use `ngModel` with a getter/setter:\n\t *\n\t * @example\n\t * <example name=\"ngModel-getter-setter\" module=\"getterSetterExample\">\n\t     <file name=\"index.html\">\n\t       <div ng-controller=\"ExampleController\">\n\t         <form name=\"userForm\">\n\t           Name:\n\t           <input type=\"text\" name=\"userName\"\n\t                  ng-model=\"user.name\"\n\t                  ng-model-options=\"{ getterSetter: true }\" />\n\t         </form>\n\t         <pre>user.name = <span ng-bind=\"user.name()\"></span></pre>\n\t       </div>\n\t     </file>\n\t     <file name=\"app.js\">\n\t       angular.module('getterSetterExample', [])\n\t         .controller('ExampleController', ['$scope', function($scope) {\n\t           var _name = 'Brian';\n\t           $scope.user = {\n\t             name: function(newName) {\n\t               if (angular.isDefined(newName)) {\n\t                 _name = newName;\n\t               }\n\t               return _name;\n\t             }\n\t           };\n\t         }]);\n\t     </file>\n\t * </example>\n\t */\n\tvar ngModelDirective = ['$rootScope', function($rootScope) {\n\t  return {\n\t    restrict: 'A',\n\t    require: ['ngModel', '^?form', '^?ngModelOptions'],\n\t    controller: NgModelController,\n\t    // Prelink needs to run before any input directive\n\t    // so that we can set the NgModelOptions in NgModelController\n\t    // before anyone else uses it.\n\t    priority: 1,\n\t    compile: function ngModelCompile(element) {\n\t      // Setup initial state of the control\n\t      element.addClass(PRISTINE_CLASS).addClass(UNTOUCHED_CLASS).addClass(VALID_CLASS);\n\n\t      return {\n\t        pre: function ngModelPreLink(scope, element, attr, ctrls) {\n\t          var modelCtrl = ctrls[0],\n\t              formCtrl = ctrls[1] || nullFormCtrl;\n\n\t          modelCtrl.$$setOptions(ctrls[2] && ctrls[2].$options);\n\n\t          // notify others, especially parent forms\n\t          formCtrl.$addControl(modelCtrl);\n\n\t          attr.$observe('name', function(newValue) {\n\t            if (modelCtrl.$name !== newValue) {\n\t              formCtrl.$$renameControl(modelCtrl, newValue);\n\t            }\n\t          });\n\n\t          scope.$on('$destroy', function() {\n\t            formCtrl.$removeControl(modelCtrl);\n\t          });\n\t        },\n\t        post: function ngModelPostLink(scope, element, attr, ctrls) {\n\t          var modelCtrl = ctrls[0];\n\t          if (modelCtrl.$options && modelCtrl.$options.updateOn) {\n\t            element.on(modelCtrl.$options.updateOn, function(ev) {\n\t              modelCtrl.$$debounceViewValueCommit(ev && ev.type);\n\t            });\n\t          }\n\n\t          element.on('blur', function(ev) {\n\t            if (modelCtrl.$touched) return;\n\n\t            if ($rootScope.$$phase) {\n\t              scope.$evalAsync(modelCtrl.$setTouched);\n\t            } else {\n\t              scope.$apply(modelCtrl.$setTouched);\n\t            }\n\t          });\n\t        }\n\t      };\n\t    }\n\t  };\n\t}];\n\n\tvar DEFAULT_REGEXP = /(\\s+|^)default(\\s+|$)/;\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngModelOptions\n\t *\n\t * @description\n\t * Allows tuning how model updates are done. Using `ngModelOptions` you can specify a custom list of\n\t * events that will trigger a model update and/or a debouncing delay so that the actual update only\n\t * takes place when a timer expires; this timer will be reset after another change takes place.\n\t *\n\t * Given the nature of `ngModelOptions`, the value displayed inside input fields in the view might\n\t * be different than the value in the actual model. This means that if you update the model you\n\t * should also invoke {@link ngModel.NgModelController `$rollbackViewValue`} on the relevant input field in\n\t * order to make sure it is synchronized with the model and that any debounced action is canceled.\n\t *\n\t * The easiest way to reference the control's {@link ngModel.NgModelController `$rollbackViewValue`}\n\t * method is by making sure the input is placed inside a form that has a `name` attribute. This is\n\t * important because `form` controllers are published to the related scope under the name in their\n\t * `name` attribute.\n\t *\n\t * Any pending changes will take place immediately when an enclosing form is submitted via the\n\t * `submit` event. Note that `ngClick` events will occur before the model is updated. Use `ngSubmit`\n\t * to have access to the updated model.\n\t *\n\t * `ngModelOptions` has an effect on the element it's declared on and its descendants.\n\t *\n\t * @param {Object} ngModelOptions options to apply to the current model. Valid keys are:\n\t *   - `updateOn`: string specifying which event should the input be bound to. You can set several\n\t *     events using an space delimited list. There is a special event called `default` that\n\t *     matches the default events belonging of the control.\n\t *   - `debounce`: integer value which contains the debounce model update value in milliseconds. A\n\t *     value of 0 triggers an immediate update. If an object is supplied instead, you can specify a\n\t *     custom value for each event. For example:\n\t *     `ng-model-options=\"{ updateOn: 'default blur', debounce: {'default': 500, 'blur': 0} }\"`\n\t *   - `allowInvalid`: boolean value which indicates that the model can be set with values that did\n\t *     not validate correctly instead of the default behavior of setting the model to undefined.\n\t *   - `getterSetter`: boolean value which determines whether or not to treat functions bound to\n\t       `ngModel` as getters/setters.\n\t *   - `timezone`: Defines the timezone to be used to read/write the `Date` instance in the model for\n\t *     `<input type=\"date\">`, `<input type=\"time\">`, ... . Right now, the only supported value is `'UTC'`,\n\t *     otherwise the default timezone of the browser will be used.\n\t *\n\t * @example\n\n\t  The following example shows how to override immediate updates. Changes on the inputs within the\n\t  form will update the model only when the control loses focus (blur event). If `escape` key is\n\t  pressed while the input field is focused, the value is reset to the value in the current model.\n\n\t  <example name=\"ngModelOptions-directive-blur\" module=\"optionsExample\">\n\t    <file name=\"index.html\">\n\t      <div ng-controller=\"ExampleController\">\n\t        <form name=\"userForm\">\n\t          Name:\n\t          <input type=\"text\" name=\"userName\"\n\t                 ng-model=\"user.name\"\n\t                 ng-model-options=\"{ updateOn: 'blur' }\"\n\t                 ng-keyup=\"cancel($event)\" /><br />\n\n\t          Other data:\n\t          <input type=\"text\" ng-model=\"user.data\" /><br />\n\t        </form>\n\t        <pre>user.name = <span ng-bind=\"user.name\"></span></pre>\n\t      </div>\n\t    </file>\n\t    <file name=\"app.js\">\n\t      angular.module('optionsExample', [])\n\t        .controller('ExampleController', ['$scope', function($scope) {\n\t          $scope.user = { name: 'say', data: '' };\n\n\t          $scope.cancel = function(e) {\n\t            if (e.keyCode == 27) {\n\t              $scope.userForm.userName.$rollbackViewValue();\n\t            }\n\t          };\n\t        }]);\n\t    </file>\n\t    <file name=\"protractor.js\" type=\"protractor\">\n\t      var model = element(by.binding('user.name'));\n\t      var input = element(by.model('user.name'));\n\t      var other = element(by.model('user.data'));\n\n\t      it('should allow custom events', function() {\n\t        input.sendKeys(' hello');\n\t        input.click();\n\t        expect(model.getText()).toEqual('say');\n\t        other.click();\n\t        expect(model.getText()).toEqual('say hello');\n\t      });\n\n\t      it('should $rollbackViewValue when model changes', function() {\n\t        input.sendKeys(' hello');\n\t        expect(input.getAttribute('value')).toEqual('say hello');\n\t        input.sendKeys(protractor.Key.ESCAPE);\n\t        expect(input.getAttribute('value')).toEqual('say');\n\t        other.click();\n\t        expect(model.getText()).toEqual('say');\n\t      });\n\t    </file>\n\t  </example>\n\n\t  This one shows how to debounce model changes. Model will be updated only 1 sec after last change.\n\t  If the `Clear` button is pressed, any debounced action is canceled and the value becomes empty.\n\n\t  <example name=\"ngModelOptions-directive-debounce\" module=\"optionsExample\">\n\t    <file name=\"index.html\">\n\t      <div ng-controller=\"ExampleController\">\n\t        <form name=\"userForm\">\n\t          Name:\n\t          <input type=\"text\" name=\"userName\"\n\t                 ng-model=\"user.name\"\n\t                 ng-model-options=\"{ debounce: 1000 }\" />\n\t          <button ng-click=\"userForm.userName.$rollbackViewValue(); user.name=''\">Clear</button><br />\n\t        </form>\n\t        <pre>user.name = <span ng-bind=\"user.name\"></span></pre>\n\t      </div>\n\t    </file>\n\t    <file name=\"app.js\">\n\t      angular.module('optionsExample', [])\n\t        .controller('ExampleController', ['$scope', function($scope) {\n\t          $scope.user = { name: 'say' };\n\t        }]);\n\t    </file>\n\t  </example>\n\n\t  This one shows how to bind to getter/setters:\n\n\t  <example name=\"ngModelOptions-directive-getter-setter\" module=\"getterSetterExample\">\n\t    <file name=\"index.html\">\n\t      <div ng-controller=\"ExampleController\">\n\t        <form name=\"userForm\">\n\t          Name:\n\t          <input type=\"text\" name=\"userName\"\n\t                 ng-model=\"user.name\"\n\t                 ng-model-options=\"{ getterSetter: true }\" />\n\t        </form>\n\t        <pre>user.name = <span ng-bind=\"user.name()\"></span></pre>\n\t      </div>\n\t    </file>\n\t    <file name=\"app.js\">\n\t      angular.module('getterSetterExample', [])\n\t        .controller('ExampleController', ['$scope', function($scope) {\n\t          var _name = 'Brian';\n\t          $scope.user = {\n\t            name: function(newName) {\n\t              return angular.isDefined(newName) ? (_name = newName) : _name;\n\t            }\n\t          };\n\t        }]);\n\t    </file>\n\t  </example>\n\t */\n\tvar ngModelOptionsDirective = function() {\n\t  return {\n\t    restrict: 'A',\n\t    controller: ['$scope', '$attrs', function($scope, $attrs) {\n\t      var that = this;\n\t      this.$options = $scope.$eval($attrs.ngModelOptions);\n\t      // Allow adding/overriding bound events\n\t      if (this.$options.updateOn !== undefined) {\n\t        this.$options.updateOnDefault = false;\n\t        // extract \"default\" pseudo-event from list of events that can trigger a model update\n\t        this.$options.updateOn = trim(this.$options.updateOn.replace(DEFAULT_REGEXP, function() {\n\t          that.$options.updateOnDefault = true;\n\t          return ' ';\n\t        }));\n\t      } else {\n\t        this.$options.updateOnDefault = true;\n\t      }\n\t    }]\n\t  };\n\t};\n\n\n\n\t// helper methods\n\tfunction addSetValidityMethod(context) {\n\t  var ctrl = context.ctrl,\n\t      $element = context.$element,\n\t      classCache = {},\n\t      set = context.set,\n\t      unset = context.unset,\n\t      parentForm = context.parentForm,\n\t      $animate = context.$animate;\n\n\t  classCache[INVALID_CLASS] = !(classCache[VALID_CLASS] = $element.hasClass(VALID_CLASS));\n\n\t  ctrl.$setValidity = setValidity;\n\n\t  function setValidity(validationErrorKey, state, controller) {\n\t    if (state === undefined) {\n\t      createAndSet('$pending', validationErrorKey, controller);\n\t    } else {\n\t      unsetAndCleanup('$pending', validationErrorKey, controller);\n\t    }\n\t    if (!isBoolean(state)) {\n\t      unset(ctrl.$error, validationErrorKey, controller);\n\t      unset(ctrl.$$success, validationErrorKey, controller);\n\t    } else {\n\t      if (state) {\n\t        unset(ctrl.$error, validationErrorKey, controller);\n\t        set(ctrl.$$success, validationErrorKey, controller);\n\t      } else {\n\t        set(ctrl.$error, validationErrorKey, controller);\n\t        unset(ctrl.$$success, validationErrorKey, controller);\n\t      }\n\t    }\n\t    if (ctrl.$pending) {\n\t      cachedToggleClass(PENDING_CLASS, true);\n\t      ctrl.$valid = ctrl.$invalid = undefined;\n\t      toggleValidationCss('', null);\n\t    } else {\n\t      cachedToggleClass(PENDING_CLASS, false);\n\t      ctrl.$valid = isObjectEmpty(ctrl.$error);\n\t      ctrl.$invalid = !ctrl.$valid;\n\t      toggleValidationCss('', ctrl.$valid);\n\t    }\n\n\t    // re-read the state as the set/unset methods could have\n\t    // combined state in ctrl.$error[validationError] (used for forms),\n\t    // where setting/unsetting only increments/decrements the value,\n\t    // and does not replace it.\n\t    var combinedState;\n\t    if (ctrl.$pending && ctrl.$pending[validationErrorKey]) {\n\t      combinedState = undefined;\n\t    } else if (ctrl.$error[validationErrorKey]) {\n\t      combinedState = false;\n\t    } else if (ctrl.$$success[validationErrorKey]) {\n\t      combinedState = true;\n\t    } else {\n\t      combinedState = null;\n\t    }\n\n\t    toggleValidationCss(validationErrorKey, combinedState);\n\t    parentForm.$setValidity(validationErrorKey, combinedState, ctrl);\n\t  }\n\n\t  function createAndSet(name, value, controller) {\n\t    if (!ctrl[name]) {\n\t      ctrl[name] = {};\n\t    }\n\t    set(ctrl[name], value, controller);\n\t  }\n\n\t  function unsetAndCleanup(name, value, controller) {\n\t    if (ctrl[name]) {\n\t      unset(ctrl[name], value, controller);\n\t    }\n\t    if (isObjectEmpty(ctrl[name])) {\n\t      ctrl[name] = undefined;\n\t    }\n\t  }\n\n\t  function cachedToggleClass(className, switchValue) {\n\t    if (switchValue && !classCache[className]) {\n\t      $animate.addClass($element, className);\n\t      classCache[className] = true;\n\t    } else if (!switchValue && classCache[className]) {\n\t      $animate.removeClass($element, className);\n\t      classCache[className] = false;\n\t    }\n\t  }\n\n\t  function toggleValidationCss(validationErrorKey, isValid) {\n\t    validationErrorKey = validationErrorKey ? '-' + snake_case(validationErrorKey, '-') : '';\n\n\t    cachedToggleClass(VALID_CLASS + validationErrorKey, isValid === true);\n\t    cachedToggleClass(INVALID_CLASS + validationErrorKey, isValid === false);\n\t  }\n\t}\n\n\tfunction isObjectEmpty(obj) {\n\t  if (obj) {\n\t    for (var prop in obj) {\n\t      return false;\n\t    }\n\t  }\n\t  return true;\n\t}\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngNonBindable\n\t * @restrict AC\n\t * @priority 1000\n\t *\n\t * @description\n\t * The `ngNonBindable` directive tells Angular not to compile or bind the contents of the current\n\t * DOM element. This is useful if the element contains what appears to be Angular directives and\n\t * bindings but which should be ignored by Angular. This could be the case if you have a site that\n\t * displays snippets of code, for instance.\n\t *\n\t * @element ANY\n\t *\n\t * @example\n\t * In this example there are two locations where a simple interpolation binding (`{{}}`) is present,\n\t * but the one wrapped in `ngNonBindable` is left alone.\n\t *\n\t * @example\n\t    <example>\n\t      <file name=\"index.html\">\n\t        <div>Normal: {{1 + 2}}</div>\n\t        <div ng-non-bindable>Ignored: {{1 + 2}}</div>\n\t      </file>\n\t      <file name=\"protractor.js\" type=\"protractor\">\n\t       it('should check ng-non-bindable', function() {\n\t         expect(element(by.binding('1 + 2')).getText()).toContain('3');\n\t         expect(element.all(by.css('div')).last().getText()).toMatch(/1 \\+ 2/);\n\t       });\n\t      </file>\n\t    </example>\n\t */\n\tvar ngNonBindableDirective = ngDirective({ terminal: true, priority: 1000 });\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngPluralize\n\t * @restrict EA\n\t *\n\t * @description\n\t * `ngPluralize` is a directive that displays messages according to en-US localization rules.\n\t * These rules are bundled with angular.js, but can be overridden\n\t * (see {@link guide/i18n Angular i18n} dev guide). You configure ngPluralize directive\n\t * by specifying the mappings between\n\t * [plural categories](http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html)\n\t * and the strings to be displayed.\n\t *\n\t * # Plural categories and explicit number rules\n\t * There are two\n\t * [plural categories](http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html)\n\t * in Angular's default en-US locale: \"one\" and \"other\".\n\t *\n\t * While a plural category may match many numbers (for example, in en-US locale, \"other\" can match\n\t * any number that is not 1), an explicit number rule can only match one number. For example, the\n\t * explicit number rule for \"3\" matches the number 3. There are examples of plural categories\n\t * and explicit number rules throughout the rest of this documentation.\n\t *\n\t * # Configuring ngPluralize\n\t * You configure ngPluralize by providing 2 attributes: `count` and `when`.\n\t * You can also provide an optional attribute, `offset`.\n\t *\n\t * The value of the `count` attribute can be either a string or an {@link guide/expression\n\t * Angular expression}; these are evaluated on the current scope for its bound value.\n\t *\n\t * The `when` attribute specifies the mappings between plural categories and the actual\n\t * string to be displayed. The value of the attribute should be a JSON object.\n\t *\n\t * The following example shows how to configure ngPluralize:\n\t *\n\t * ```html\n\t * <ng-pluralize count=\"personCount\"\n\t                 when=\"{'0': 'Nobody is viewing.',\n\t *                      'one': '1 person is viewing.',\n\t *                      'other': '{} people are viewing.'}\">\n\t * </ng-pluralize>\n\t *```\n\t *\n\t * In the example, `\"0: Nobody is viewing.\"` is an explicit number rule. If you did not\n\t * specify this rule, 0 would be matched to the \"other\" category and \"0 people are viewing\"\n\t * would be shown instead of \"Nobody is viewing\". You can specify an explicit number rule for\n\t * other numbers, for example 12, so that instead of showing \"12 people are viewing\", you can\n\t * show \"a dozen people are viewing\".\n\t *\n\t * You can use a set of closed braces (`{}`) as a placeholder for the number that you want substituted\n\t * into pluralized strings. In the previous example, Angular will replace `{}` with\n\t * <span ng-non-bindable>`{{personCount}}`</span>. The closed braces `{}` is a placeholder\n\t * for <span ng-non-bindable>{{numberExpression}}</span>.\n\t *\n\t * # Configuring ngPluralize with offset\n\t * The `offset` attribute allows further customization of pluralized text, which can result in\n\t * a better user experience. For example, instead of the message \"4 people are viewing this document\",\n\t * you might display \"John, Kate and 2 others are viewing this document\".\n\t * The offset attribute allows you to offset a number by any desired value.\n\t * Let's take a look at an example:\n\t *\n\t * ```html\n\t * <ng-pluralize count=\"personCount\" offset=2\n\t *               when=\"{'0': 'Nobody is viewing.',\n\t *                      '1': '{{person1}} is viewing.',\n\t *                      '2': '{{person1}} and {{person2}} are viewing.',\n\t *                      'one': '{{person1}}, {{person2}} and one other person are viewing.',\n\t *                      'other': '{{person1}}, {{person2}} and {} other people are viewing.'}\">\n\t * </ng-pluralize>\n\t * ```\n\t *\n\t * Notice that we are still using two plural categories(one, other), but we added\n\t * three explicit number rules 0, 1 and 2.\n\t * When one person, perhaps John, views the document, \"John is viewing\" will be shown.\n\t * When three people view the document, no explicit number rule is found, so\n\t * an offset of 2 is taken off 3, and Angular uses 1 to decide the plural category.\n\t * In this case, plural category 'one' is matched and \"John, Mary and one other person are viewing\"\n\t * is shown.\n\t *\n\t * Note that when you specify offsets, you must provide explicit number rules for\n\t * numbers from 0 up to and including the offset. If you use an offset of 3, for example,\n\t * you must provide explicit number rules for 0, 1, 2 and 3. You must also provide plural strings for\n\t * plural categories \"one\" and \"other\".\n\t *\n\t * @param {string|expression} count The variable to be bound to.\n\t * @param {string} when The mapping between plural category to its corresponding strings.\n\t * @param {number=} offset Offset to deduct from the total number.\n\t *\n\t * @example\n\t    <example module=\"pluralizeExample\">\n\t      <file name=\"index.html\">\n\t        <script>\n\t          angular.module('pluralizeExample', [])\n\t            .controller('ExampleController', ['$scope', function($scope) {\n\t              $scope.person1 = 'Igor';\n\t              $scope.person2 = 'Misko';\n\t              $scope.personCount = 1;\n\t            }]);\n\t        </script>\n\t        <div ng-controller=\"ExampleController\">\n\t          Person 1:<input type=\"text\" ng-model=\"person1\" value=\"Igor\" /><br/>\n\t          Person 2:<input type=\"text\" ng-model=\"person2\" value=\"Misko\" /><br/>\n\t          Number of People:<input type=\"text\" ng-model=\"personCount\" value=\"1\" /><br/>\n\n\t          <!--- Example with simple pluralization rules for en locale --->\n\t          Without Offset:\n\t          <ng-pluralize count=\"personCount\"\n\t                        when=\"{'0': 'Nobody is viewing.',\n\t                               'one': '1 person is viewing.',\n\t                               'other': '{} people are viewing.'}\">\n\t          </ng-pluralize><br>\n\n\t          <!--- Example with offset --->\n\t          With Offset(2):\n\t          <ng-pluralize count=\"personCount\" offset=2\n\t                        when=\"{'0': 'Nobody is viewing.',\n\t                               '1': '{{person1}} is viewing.',\n\t                               '2': '{{person1}} and {{person2}} are viewing.',\n\t                               'one': '{{person1}}, {{person2}} and one other person are viewing.',\n\t                               'other': '{{person1}}, {{person2}} and {} other people are viewing.'}\">\n\t          </ng-pluralize>\n\t        </div>\n\t      </file>\n\t      <file name=\"protractor.js\" type=\"protractor\">\n\t        it('should show correct pluralized string', function() {\n\t          var withoutOffset = element.all(by.css('ng-pluralize')).get(0);\n\t          var withOffset = element.all(by.css('ng-pluralize')).get(1);\n\t          var countInput = element(by.model('personCount'));\n\n\t          expect(withoutOffset.getText()).toEqual('1 person is viewing.');\n\t          expect(withOffset.getText()).toEqual('Igor is viewing.');\n\n\t          countInput.clear();\n\t          countInput.sendKeys('0');\n\n\t          expect(withoutOffset.getText()).toEqual('Nobody is viewing.');\n\t          expect(withOffset.getText()).toEqual('Nobody is viewing.');\n\n\t          countInput.clear();\n\t          countInput.sendKeys('2');\n\n\t          expect(withoutOffset.getText()).toEqual('2 people are viewing.');\n\t          expect(withOffset.getText()).toEqual('Igor and Misko are viewing.');\n\n\t          countInput.clear();\n\t          countInput.sendKeys('3');\n\n\t          expect(withoutOffset.getText()).toEqual('3 people are viewing.');\n\t          expect(withOffset.getText()).toEqual('Igor, Misko and one other person are viewing.');\n\n\t          countInput.clear();\n\t          countInput.sendKeys('4');\n\n\t          expect(withoutOffset.getText()).toEqual('4 people are viewing.');\n\t          expect(withOffset.getText()).toEqual('Igor, Misko and 2 other people are viewing.');\n\t        });\n\t        it('should show data-bound names', function() {\n\t          var withOffset = element.all(by.css('ng-pluralize')).get(1);\n\t          var personCount = element(by.model('personCount'));\n\t          var person1 = element(by.model('person1'));\n\t          var person2 = element(by.model('person2'));\n\t          personCount.clear();\n\t          personCount.sendKeys('4');\n\t          person1.clear();\n\t          person1.sendKeys('Di');\n\t          person2.clear();\n\t          person2.sendKeys('Vojta');\n\t          expect(withOffset.getText()).toEqual('Di, Vojta and 2 other people are viewing.');\n\t        });\n\t      </file>\n\t    </example>\n\t */\n\tvar ngPluralizeDirective = ['$locale', '$interpolate', function($locale, $interpolate) {\n\t  var BRACE = /{}/g,\n\t      IS_WHEN = /^when(Minus)?(.+)$/;\n\n\t  return {\n\t    restrict: 'EA',\n\t    link: function(scope, element, attr) {\n\t      var numberExp = attr.count,\n\t          whenExp = attr.$attr.when && element.attr(attr.$attr.when), // we have {{}} in attrs\n\t          offset = attr.offset || 0,\n\t          whens = scope.$eval(whenExp) || {},\n\t          whensExpFns = {},\n\t          startSymbol = $interpolate.startSymbol(),\n\t          endSymbol = $interpolate.endSymbol(),\n\t          braceReplacement = startSymbol + numberExp + '-' + offset + endSymbol,\n\t          watchRemover = angular.noop,\n\t          lastCount;\n\n\t      forEach(attr, function(expression, attributeName) {\n\t        var tmpMatch = IS_WHEN.exec(attributeName);\n\t        if (tmpMatch) {\n\t          var whenKey = (tmpMatch[1] ? '-' : '') + lowercase(tmpMatch[2]);\n\t          whens[whenKey] = element.attr(attr.$attr[attributeName]);\n\t        }\n\t      });\n\t      forEach(whens, function(expression, key) {\n\t        whensExpFns[key] = $interpolate(expression.replace(BRACE, braceReplacement));\n\n\t      });\n\n\t      scope.$watch(numberExp, function ngPluralizeWatchAction(newVal) {\n\t        var count = parseFloat(newVal);\n\t        var countIsNaN = isNaN(count);\n\n\t        if (!countIsNaN && !(count in whens)) {\n\t          // If an explicit number rule such as 1, 2, 3... is defined, just use it.\n\t          // Otherwise, check it against pluralization rules in $locale service.\n\t          count = $locale.pluralCat(count - offset);\n\t        }\n\n\t        // If both `count` and `lastCount` are NaN, we don't need to re-register a watch.\n\t        // In JS `NaN !== NaN`, so we have to exlicitly check.\n\t        if ((count !== lastCount) && !(countIsNaN && isNaN(lastCount))) {\n\t          watchRemover();\n\t          watchRemover = scope.$watch(whensExpFns[count], updateElementText);\n\t          lastCount = count;\n\t        }\n\t      });\n\n\t      function updateElementText(newText) {\n\t        element.text(newText || '');\n\t      }\n\t    }\n\t  };\n\t}];\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngRepeat\n\t *\n\t * @description\n\t * The `ngRepeat` directive instantiates a template once per item from a collection. Each template\n\t * instance gets its own scope, where the given loop variable is set to the current collection item,\n\t * and `$index` is set to the item index or key.\n\t *\n\t * Special properties are exposed on the local scope of each template instance, including:\n\t *\n\t * | Variable  | Type            | Details                                                                     |\n\t * |-----------|-----------------|-----------------------------------------------------------------------------|\n\t * | `$index`  | {@type number}  | iterator offset of the repeated element (0..length-1)                       |\n\t * | `$first`  | {@type boolean} | true if the repeated element is first in the iterator.                      |\n\t * | `$middle` | {@type boolean} | true if the repeated element is between the first and last in the iterator. |\n\t * | `$last`   | {@type boolean} | true if the repeated element is last in the iterator.                       |\n\t * | `$even`   | {@type boolean} | true if the iterator position `$index` is even (otherwise false).           |\n\t * | `$odd`    | {@type boolean} | true if the iterator position `$index` is odd (otherwise false).            |\n\t *\n\t * Creating aliases for these properties is possible with {@link ng.directive:ngInit `ngInit`}.\n\t * This may be useful when, for instance, nesting ngRepeats.\n\t *\n\t * # Iterating over object properties\n\t *\n\t * It is possible to get `ngRepeat` to iterate over the properties of an object using the following\n\t * syntax:\n\t *\n\t * ```js\n\t * <div ng-repeat=\"(key, value) in myObj\"> ... </div>\n\t * ```\n\t *\n\t * You need to be aware that the JavaScript specification does not define what order\n\t * it will return the keys for an object. In order to have a guaranteed deterministic order\n\t * for the keys, Angular versions up to and including 1.3 **sort the keys alphabetically**.\n\t *\n\t * If this is not desired, the recommended workaround is to convert your object into an array\n\t * that is sorted into the order that you prefer before providing it to `ngRepeat`.  You could\n\t * do this with a filter such as [toArrayFilter](http://ngmodules.org/modules/angular-toArrayFilter)\n\t * or implement a `$watch` on the object yourself.\n\t *\n\t * In version 1.4 we will remove the sorting, since it seems that browsers generally follow the\n\t * strategy of providing keys in the order in which they were defined, although there are exceptions\n\t * when keys are deleted and reinstated.\n\t *\n\t *\n\t * # Tracking and Duplicates\n\t *\n\t * When the contents of the collection change, `ngRepeat` makes the corresponding changes to the DOM:\n\t *\n\t * * When an item is added, a new instance of the template is added to the DOM.\n\t * * When an item is removed, its template instance is removed from the DOM.\n\t * * When items are reordered, their respective templates are reordered in the DOM.\n\t *\n\t * By default, `ngRepeat` does not allow duplicate items in arrays. This is because when\n\t * there are duplicates, it is not possible to maintain a one-to-one mapping between collection\n\t * items and DOM elements.\n\t *\n\t * If you do need to repeat duplicate items, you can substitute the default tracking behavior\n\t * with your own using the `track by` expression.\n\t *\n\t * For example, you may track items by the index of each item in the collection, using the\n\t * special scope property `$index`:\n\t * ```html\n\t *    <div ng-repeat=\"n in [42, 42, 43, 43] track by $index\">\n\t *      {{n}}\n\t *    </div>\n\t * ```\n\t *\n\t * You may use arbitrary expressions in `track by`, including references to custom functions\n\t * on the scope:\n\t * ```html\n\t *    <div ng-repeat=\"n in [42, 42, 43, 43] track by myTrackingFunction(n)\">\n\t *      {{n}}\n\t *    </div>\n\t * ```\n\t *\n\t * If you are working with objects that have an identifier property, you can track\n\t * by the identifier instead of the whole object. Should you reload your data later, `ngRepeat`\n\t * will not have to rebuild the DOM elements for items it has already rendered, even if the\n\t * JavaScript objects in the collection have been substituted for new ones:\n\t * ```html\n\t *    <div ng-repeat=\"model in collection track by model.id\">\n\t *      {{model.name}}\n\t *    </div>\n\t * ```\n\t *\n\t * When no `track by` expression is provided, it is equivalent to tracking by the built-in\n\t * `$id` function, which tracks items by their identity:\n\t * ```html\n\t *    <div ng-repeat=\"obj in collection track by $id(obj)\">\n\t *      {{obj.prop}}\n\t *    </div>\n\t * ```\n\t *\n\t * # Special repeat start and end points\n\t * To repeat a series of elements instead of just one parent element, ngRepeat (as well as other ng directives) supports extending\n\t * the range of the repeater by defining explicit start and end points by using **ng-repeat-start** and **ng-repeat-end** respectively.\n\t * The **ng-repeat-start** directive works the same as **ng-repeat**, but will repeat all the HTML code (including the tag it's defined on)\n\t * up to and including the ending HTML tag where **ng-repeat-end** is placed.\n\t *\n\t * The example below makes use of this feature:\n\t * ```html\n\t *   <header ng-repeat-start=\"item in items\">\n\t *     Header {{ item }}\n\t *   </header>\n\t *   <div class=\"body\">\n\t *     Body {{ item }}\n\t *   </div>\n\t *   <footer ng-repeat-end>\n\t *     Footer {{ item }}\n\t *   </footer>\n\t * ```\n\t *\n\t * And with an input of {@type ['A','B']} for the items variable in the example above, the output will evaluate to:\n\t * ```html\n\t *   <header>\n\t *     Header A\n\t *   </header>\n\t *   <div class=\"body\">\n\t *     Body A\n\t *   </div>\n\t *   <footer>\n\t *     Footer A\n\t *   </footer>\n\t *   <header>\n\t *     Header B\n\t *   </header>\n\t *   <div class=\"body\">\n\t *     Body B\n\t *   </div>\n\t *   <footer>\n\t *     Footer B\n\t *   </footer>\n\t * ```\n\t *\n\t * The custom start and end points for ngRepeat also support all other HTML directive syntax flavors provided in AngularJS (such\n\t * as **data-ng-repeat-start**, **x-ng-repeat-start** and **ng:repeat-start**).\n\t *\n\t * @animations\n\t * **.enter** - when a new item is added to the list or when an item is revealed after a filter\n\t *\n\t * **.leave** - when an item is removed from the list or when an item is filtered out\n\t *\n\t * **.move** - when an adjacent item is filtered out causing a reorder or when the item contents are reordered\n\t *\n\t * @element ANY\n\t * @scope\n\t * @priority 1000\n\t * @param {repeat_expression} ngRepeat The expression indicating how to enumerate a collection. These\n\t *   formats are currently supported:\n\t *\n\t *   * `variable in expression` – where variable is the user defined loop variable and `expression`\n\t *     is a scope expression giving the collection to enumerate.\n\t *\n\t *     For example: `album in artist.albums`.\n\t *\n\t *   * `(key, value) in expression` – where `key` and `value` can be any user defined identifiers,\n\t *     and `expression` is the scope expression giving the collection to enumerate.\n\t *\n\t *     For example: `(name, age) in {'adam':10, 'amalie':12}`.\n\t *\n\t *   * `variable in expression track by tracking_expression` – You can also provide an optional tracking expression\n\t *     which can be used to associate the objects in the collection with the DOM elements. If no tracking expression\n\t *     is specified, ng-repeat associates elements by identity. It is an error to have\n\t *     more than one tracking expression value resolve to the same key. (This would mean that two distinct objects are\n\t *     mapped to the same DOM element, which is not possible.)  If filters are used in the expression, they should be\n\t *     applied before the tracking expression.\n\t *\n\t *     For example: `item in items` is equivalent to `item in items track by $id(item)`. This implies that the DOM elements\n\t *     will be associated by item identity in the array.\n\t *\n\t *     For example: `item in items track by $id(item)`. A built in `$id()` function can be used to assign a unique\n\t *     `$$hashKey` property to each item in the array. This property is then used as a key to associated DOM elements\n\t *     with the corresponding item in the array by identity. Moving the same object in array would move the DOM\n\t *     element in the same way in the DOM.\n\t *\n\t *     For example: `item in items track by item.id` is a typical pattern when the items come from the database. In this\n\t *     case the object identity does not matter. Two objects are considered equivalent as long as their `id`\n\t *     property is same.\n\t *\n\t *     For example: `item in items | filter:searchText track by item.id` is a pattern that might be used to apply a filter\n\t *     to items in conjunction with a tracking expression.\n\t *\n\t *   * `variable in expression as alias_expression` – You can also provide an optional alias expression which will then store the\n\t *     intermediate results of the repeater after the filters have been applied. Typically this is used to render a special message\n\t *     when a filter is active on the repeater, but the filtered result set is empty.\n\t *\n\t *     For example: `item in items | filter:x as results` will store the fragment of the repeated items as `results`, but only after\n\t *     the items have been processed through the filter.\n\t *\n\t * @example\n\t * This example initializes the scope to a list of names and\n\t * then uses `ngRepeat` to display every person:\n\t  <example module=\"ngAnimate\" deps=\"angular-animate.js\" animations=\"true\">\n\t    <file name=\"index.html\">\n\t      <div ng-init=\"friends = [\n\t        {name:'John', age:25, gender:'boy'},\n\t        {name:'Jessie', age:30, gender:'girl'},\n\t        {name:'Johanna', age:28, gender:'girl'},\n\t        {name:'Joy', age:15, gender:'girl'},\n\t        {name:'Mary', age:28, gender:'girl'},\n\t        {name:'Peter', age:95, gender:'boy'},\n\t        {name:'Sebastian', age:50, gender:'boy'},\n\t        {name:'Erika', age:27, gender:'girl'},\n\t        {name:'Patrick', age:40, gender:'boy'},\n\t        {name:'Samantha', age:60, gender:'girl'}\n\t      ]\">\n\t        I have {{friends.length}} friends. They are:\n\t        <input type=\"search\" ng-model=\"q\" placeholder=\"filter friends...\" />\n\t        <ul class=\"example-animate-container\">\n\t          <li class=\"animate-repeat\" ng-repeat=\"friend in friends | filter:q as results\">\n\t            [{{$index + 1}}] {{friend.name}} who is {{friend.age}} years old.\n\t          </li>\n\t          <li class=\"animate-repeat\" ng-if=\"results.length == 0\">\n\t            <strong>No results found...</strong>\n\t          </li>\n\t        </ul>\n\t      </div>\n\t    </file>\n\t    <file name=\"animations.css\">\n\t      .example-animate-container {\n\t        background:white;\n\t        border:1px solid black;\n\t        list-style:none;\n\t        margin:0;\n\t        padding:0 10px;\n\t      }\n\n\t      .animate-repeat {\n\t        line-height:40px;\n\t        list-style:none;\n\t        box-sizing:border-box;\n\t      }\n\n\t      .animate-repeat.ng-move,\n\t      .animate-repeat.ng-enter,\n\t      .animate-repeat.ng-leave {\n\t        -webkit-transition:all linear 0.5s;\n\t        transition:all linear 0.5s;\n\t      }\n\n\t      .animate-repeat.ng-leave.ng-leave-active,\n\t      .animate-repeat.ng-move,\n\t      .animate-repeat.ng-enter {\n\t        opacity:0;\n\t        max-height:0;\n\t      }\n\n\t      .animate-repeat.ng-leave,\n\t      .animate-repeat.ng-move.ng-move-active,\n\t      .animate-repeat.ng-enter.ng-enter-active {\n\t        opacity:1;\n\t        max-height:40px;\n\t      }\n\t    </file>\n\t    <file name=\"protractor.js\" type=\"protractor\">\n\t      var friends = element.all(by.repeater('friend in friends'));\n\n\t      it('should render initial data set', function() {\n\t        expect(friends.count()).toBe(10);\n\t        expect(friends.get(0).getText()).toEqual('[1] John who is 25 years old.');\n\t        expect(friends.get(1).getText()).toEqual('[2] Jessie who is 30 years old.');\n\t        expect(friends.last().getText()).toEqual('[10] Samantha who is 60 years old.');\n\t        expect(element(by.binding('friends.length')).getText())\n\t            .toMatch(\"I have 10 friends. They are:\");\n\t      });\n\n\t       it('should update repeater when filter predicate changes', function() {\n\t         expect(friends.count()).toBe(10);\n\n\t         element(by.model('q')).sendKeys('ma');\n\n\t         expect(friends.count()).toBe(2);\n\t         expect(friends.get(0).getText()).toEqual('[1] Mary who is 28 years old.');\n\t         expect(friends.last().getText()).toEqual('[2] Samantha who is 60 years old.');\n\t       });\n\t      </file>\n\t    </example>\n\t */\n\tvar ngRepeatDirective = ['$parse', '$animate', function($parse, $animate) {\n\t  var NG_REMOVED = '$$NG_REMOVED';\n\t  var ngRepeatMinErr = minErr('ngRepeat');\n\n\t  var updateScope = function(scope, index, valueIdentifier, value, keyIdentifier, key, arrayLength) {\n\t    // TODO(perf): generate setters to shave off ~40ms or 1-1.5%\n\t    scope[valueIdentifier] = value;\n\t    if (keyIdentifier) scope[keyIdentifier] = key;\n\t    scope.$index = index;\n\t    scope.$first = (index === 0);\n\t    scope.$last = (index === (arrayLength - 1));\n\t    scope.$middle = !(scope.$first || scope.$last);\n\t    // jshint bitwise: false\n\t    scope.$odd = !(scope.$even = (index&1) === 0);\n\t    // jshint bitwise: true\n\t  };\n\n\t  var getBlockStart = function(block) {\n\t    return block.clone[0];\n\t  };\n\n\t  var getBlockEnd = function(block) {\n\t    return block.clone[block.clone.length - 1];\n\t  };\n\n\n\t  return {\n\t    restrict: 'A',\n\t    multiElement: true,\n\t    transclude: 'element',\n\t    priority: 1000,\n\t    terminal: true,\n\t    $$tlb: true,\n\t    compile: function ngRepeatCompile($element, $attr) {\n\t      var expression = $attr.ngRepeat;\n\t      var ngRepeatEndComment = document.createComment(' end ngRepeat: ' + expression + ' ');\n\n\t      var match = expression.match(/^\\s*([\\s\\S]+?)\\s+in\\s+([\\s\\S]+?)(?:\\s+as\\s+([\\s\\S]+?))?(?:\\s+track\\s+by\\s+([\\s\\S]+?))?\\s*$/);\n\n\t      if (!match) {\n\t        throw ngRepeatMinErr('iexp', \"Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.\",\n\t            expression);\n\t      }\n\n\t      var lhs = match[1];\n\t      var rhs = match[2];\n\t      var aliasAs = match[3];\n\t      var trackByExp = match[4];\n\n\t      match = lhs.match(/^(?:(\\s*[\\$\\w]+)|\\(\\s*([\\$\\w]+)\\s*,\\s*([\\$\\w]+)\\s*\\))$/);\n\n\t      if (!match) {\n\t        throw ngRepeatMinErr('iidexp', \"'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.\",\n\t            lhs);\n\t      }\n\t      var valueIdentifier = match[3] || match[1];\n\t      var keyIdentifier = match[2];\n\n\t      if (aliasAs && (!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(aliasAs) ||\n\t          /^(null|undefined|this|\\$index|\\$first|\\$middle|\\$last|\\$even|\\$odd|\\$parent|\\$root|\\$id)$/.test(aliasAs))) {\n\t        throw ngRepeatMinErr('badident', \"alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.\",\n\t          aliasAs);\n\t      }\n\n\t      var trackByExpGetter, trackByIdExpFn, trackByIdArrayFn, trackByIdObjFn;\n\t      var hashFnLocals = {$id: hashKey};\n\n\t      if (trackByExp) {\n\t        trackByExpGetter = $parse(trackByExp);\n\t      } else {\n\t        trackByIdArrayFn = function(key, value) {\n\t          return hashKey(value);\n\t        };\n\t        trackByIdObjFn = function(key) {\n\t          return key;\n\t        };\n\t      }\n\n\t      return function ngRepeatLink($scope, $element, $attr, ctrl, $transclude) {\n\n\t        if (trackByExpGetter) {\n\t          trackByIdExpFn = function(key, value, index) {\n\t            // assign key, value, and $index to the locals so that they can be used in hash functions\n\t            if (keyIdentifier) hashFnLocals[keyIdentifier] = key;\n\t            hashFnLocals[valueIdentifier] = value;\n\t            hashFnLocals.$index = index;\n\t            return trackByExpGetter($scope, hashFnLocals);\n\t          };\n\t        }\n\n\t        // Store a list of elements from previous run. This is a hash where key is the item from the\n\t        // iterator, and the value is objects with following properties.\n\t        //   - scope: bound scope\n\t        //   - element: previous element.\n\t        //   - index: position\n\t        //\n\t        // We are using no-proto object so that we don't need to guard against inherited props via\n\t        // hasOwnProperty.\n\t        var lastBlockMap = createMap();\n\n\t        //watch props\n\t        $scope.$watchCollection(rhs, function ngRepeatAction(collection) {\n\t          var index, length,\n\t              previousNode = $element[0],     // node that cloned nodes should be inserted after\n\t                                              // initialized to the comment node anchor\n\t              nextNode,\n\t              // Same as lastBlockMap but it has the current state. It will become the\n\t              // lastBlockMap on the next iteration.\n\t              nextBlockMap = createMap(),\n\t              collectionLength,\n\t              key, value, // key/value of iteration\n\t              trackById,\n\t              trackByIdFn,\n\t              collectionKeys,\n\t              block,       // last object information {scope, element, id}\n\t              nextBlockOrder,\n\t              elementsToRemove;\n\n\t          if (aliasAs) {\n\t            $scope[aliasAs] = collection;\n\t          }\n\n\t          if (isArrayLike(collection)) {\n\t            collectionKeys = collection;\n\t            trackByIdFn = trackByIdExpFn || trackByIdArrayFn;\n\t          } else {\n\t            trackByIdFn = trackByIdExpFn || trackByIdObjFn;\n\t            // if object, extract keys, sort them and use to determine order of iteration over obj props\n\t            collectionKeys = [];\n\t            for (var itemKey in collection) {\n\t              if (collection.hasOwnProperty(itemKey) && itemKey.charAt(0) != '$') {\n\t                collectionKeys.push(itemKey);\n\t              }\n\t            }\n\t            collectionKeys.sort();\n\t          }\n\n\t          collectionLength = collectionKeys.length;\n\t          nextBlockOrder = new Array(collectionLength);\n\n\t          // locate existing items\n\t          for (index = 0; index < collectionLength; index++) {\n\t            key = (collection === collectionKeys) ? index : collectionKeys[index];\n\t            value = collection[key];\n\t            trackById = trackByIdFn(key, value, index);\n\t            if (lastBlockMap[trackById]) {\n\t              // found previously seen block\n\t              block = lastBlockMap[trackById];\n\t              delete lastBlockMap[trackById];\n\t              nextBlockMap[trackById] = block;\n\t              nextBlockOrder[index] = block;\n\t            } else if (nextBlockMap[trackById]) {\n\t              // if collision detected. restore lastBlockMap and throw an error\n\t              forEach(nextBlockOrder, function(block) {\n\t                if (block && block.scope) lastBlockMap[block.id] = block;\n\t              });\n\t              throw ngRepeatMinErr('dupes',\n\t                  \"Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}\",\n\t                  expression, trackById, value);\n\t            } else {\n\t              // new never before seen block\n\t              nextBlockOrder[index] = {id: trackById, scope: undefined, clone: undefined};\n\t              nextBlockMap[trackById] = true;\n\t            }\n\t          }\n\n\t          // remove leftover items\n\t          for (var blockKey in lastBlockMap) {\n\t            block = lastBlockMap[blockKey];\n\t            elementsToRemove = getBlockNodes(block.clone);\n\t            $animate.leave(elementsToRemove);\n\t            if (elementsToRemove[0].parentNode) {\n\t              // if the element was not removed yet because of pending animation, mark it as deleted\n\t              // so that we can ignore it later\n\t              for (index = 0, length = elementsToRemove.length; index < length; index++) {\n\t                elementsToRemove[index][NG_REMOVED] = true;\n\t              }\n\t            }\n\t            block.scope.$destroy();\n\t          }\n\n\t          // we are not using forEach for perf reasons (trying to avoid #call)\n\t          for (index = 0; index < collectionLength; index++) {\n\t            key = (collection === collectionKeys) ? index : collectionKeys[index];\n\t            value = collection[key];\n\t            block = nextBlockOrder[index];\n\n\t            if (block.scope) {\n\t              // if we have already seen this object, then we need to reuse the\n\t              // associated scope/element\n\n\t              nextNode = previousNode;\n\n\t              // skip nodes that are already pending removal via leave animation\n\t              do {\n\t                nextNode = nextNode.nextSibling;\n\t              } while (nextNode && nextNode[NG_REMOVED]);\n\n\t              if (getBlockStart(block) != nextNode) {\n\t                // existing item which got moved\n\t                $animate.move(getBlockNodes(block.clone), null, jqLite(previousNode));\n\t              }\n\t              previousNode = getBlockEnd(block);\n\t              updateScope(block.scope, index, valueIdentifier, value, keyIdentifier, key, collectionLength);\n\t            } else {\n\t              // new item which we don't know about\n\t              $transclude(function ngRepeatTransclude(clone, scope) {\n\t                block.scope = scope;\n\t                // http://jsperf.com/clone-vs-createcomment\n\t                var endNode = ngRepeatEndComment.cloneNode(false);\n\t                clone[clone.length++] = endNode;\n\n\t                // TODO(perf): support naked previousNode in `enter` to avoid creation of jqLite wrapper?\n\t                $animate.enter(clone, null, jqLite(previousNode));\n\t                previousNode = endNode;\n\t                // Note: We only need the first/last node of the cloned nodes.\n\t                // However, we need to keep the reference to the jqlite wrapper as it might be changed later\n\t                // by a directive with templateUrl when its template arrives.\n\t                block.clone = clone;\n\t                nextBlockMap[block.id] = block;\n\t                updateScope(block.scope, index, valueIdentifier, value, keyIdentifier, key, collectionLength);\n\t              });\n\t            }\n\t          }\n\t          lastBlockMap = nextBlockMap;\n\t        });\n\t      };\n\t    }\n\t  };\n\t}];\n\n\tvar NG_HIDE_CLASS = 'ng-hide';\n\tvar NG_HIDE_IN_PROGRESS_CLASS = 'ng-hide-animate';\n\t/**\n\t * @ngdoc directive\n\t * @name ngShow\n\t *\n\t * @description\n\t * The `ngShow` directive shows or hides the given HTML element based on the expression\n\t * provided to the `ngShow` attribute. The element is shown or hidden by removing or adding\n\t * the `.ng-hide` CSS class onto the element. The `.ng-hide` CSS class is predefined\n\t * in AngularJS and sets the display style to none (using an !important flag).\n\t * For CSP mode please add `angular-csp.css` to your html file (see {@link ng.directive:ngCsp ngCsp}).\n\t *\n\t * ```html\n\t * <!-- when $scope.myValue is truthy (element is visible) -->\n\t * <div ng-show=\"myValue\"></div>\n\t *\n\t * <!-- when $scope.myValue is falsy (element is hidden) -->\n\t * <div ng-show=\"myValue\" class=\"ng-hide\"></div>\n\t * ```\n\t *\n\t * When the `ngShow` expression evaluates to a falsy value then the `.ng-hide` CSS class is added to the class\n\t * attribute on the element causing it to become hidden. When truthy, the `.ng-hide` CSS class is removed\n\t * from the element causing the element not to appear hidden.\n\t *\n\t * ## Why is !important used?\n\t *\n\t * You may be wondering why !important is used for the `.ng-hide` CSS class. This is because the `.ng-hide` selector\n\t * can be easily overridden by heavier selectors. For example, something as simple\n\t * as changing the display style on a HTML list item would make hidden elements appear visible.\n\t * This also becomes a bigger issue when dealing with CSS frameworks.\n\t *\n\t * By using !important, the show and hide behavior will work as expected despite any clash between CSS selector\n\t * specificity (when !important isn't used with any conflicting styles). If a developer chooses to override the\n\t * styling to change how to hide an element then it is just a matter of using !important in their own CSS code.\n\t *\n\t * ### Overriding `.ng-hide`\n\t *\n\t * By default, the `.ng-hide` class will style the element with `display: none!important`. If you wish to change\n\t * the hide behavior with ngShow/ngHide then this can be achieved by restating the styles for the `.ng-hide`\n\t * class CSS. Note that the selector that needs to be used is actually `.ng-hide:not(.ng-hide-animate)` to cope\n\t * with extra animation classes that can be added.\n\t *\n\t * ```css\n\t * .ng-hide:not(.ng-hide-animate) {\n\t *   /&#42; this is just another form of hiding an element &#42;/\n\t *   display: block!important;\n\t *   position: absolute;\n\t *   top: -9999px;\n\t *   left: -9999px;\n\t * }\n\t * ```\n\t *\n\t * By default you don't need to override in CSS anything and the animations will work around the display style.\n\t *\n\t * ## A note about animations with `ngShow`\n\t *\n\t * Animations in ngShow/ngHide work with the show and hide events that are triggered when the directive expression\n\t * is true and false. This system works like the animation system present with ngClass except that\n\t * you must also include the !important flag to override the display property\n\t * so that you can perform an animation when the element is hidden during the time of the animation.\n\t *\n\t * ```css\n\t * //\n\t * //a working example can be found at the bottom of this page\n\t * //\n\t * .my-element.ng-hide-add, .my-element.ng-hide-remove {\n\t *   /&#42; this is required as of 1.3x to properly\n\t *      apply all styling in a show/hide animation &#42;/\n\t *   transition: 0s linear all;\n\t * }\n\t *\n\t * .my-element.ng-hide-add-active,\n\t * .my-element.ng-hide-remove-active {\n\t *   /&#42; the transition is defined in the active class &#42;/\n\t *   transition: 1s linear all;\n\t * }\n\t *\n\t * .my-element.ng-hide-add { ... }\n\t * .my-element.ng-hide-add.ng-hide-add-active { ... }\n\t * .my-element.ng-hide-remove { ... }\n\t * .my-element.ng-hide-remove.ng-hide-remove-active { ... }\n\t * ```\n\t *\n\t * Keep in mind that, as of AngularJS version 1.3.0-beta.11, there is no need to change the display\n\t * property to block during animation states--ngAnimate will handle the style toggling automatically for you.\n\t *\n\t * @animations\n\t * addClass: `.ng-hide` - happens after the `ngShow` expression evaluates to a truthy value and the just before contents are set to visible\n\t * removeClass: `.ng-hide` - happens after the `ngShow` expression evaluates to a non truthy value and just before the contents are set to hidden\n\t *\n\t * @element ANY\n\t * @param {expression} ngShow If the {@link guide/expression expression} is truthy\n\t *     then the element is shown or hidden respectively.\n\t *\n\t * @example\n\t  <example module=\"ngAnimate\" deps=\"angular-animate.js\" animations=\"true\">\n\t    <file name=\"index.html\">\n\t      Click me: <input type=\"checkbox\" ng-model=\"checked\"><br/>\n\t      <div>\n\t        Show:\n\t        <div class=\"check-element animate-show\" ng-show=\"checked\">\n\t          <span class=\"glyphicon glyphicon-thumbs-up\"></span> I show up when your checkbox is checked.\n\t        </div>\n\t      </div>\n\t      <div>\n\t        Hide:\n\t        <div class=\"check-element animate-show\" ng-hide=\"checked\">\n\t          <span class=\"glyphicon glyphicon-thumbs-down\"></span> I hide when your checkbox is checked.\n\t        </div>\n\t      </div>\n\t    </file>\n\t    <file name=\"glyphicons.css\">\n\t      @import url(../../components/bootstrap-3.1.1/css/bootstrap.css);\n\t    </file>\n\t    <file name=\"animations.css\">\n\t      .animate-show {\n\t        line-height: 20px;\n\t        opacity: 1;\n\t        padding: 10px;\n\t        border: 1px solid black;\n\t        background: white;\n\t      }\n\n\t      .animate-show.ng-hide-add.ng-hide-add-active,\n\t      .animate-show.ng-hide-remove.ng-hide-remove-active {\n\t        -webkit-transition: all linear 0.5s;\n\t        transition: all linear 0.5s;\n\t      }\n\n\t      .animate-show.ng-hide {\n\t        line-height: 0;\n\t        opacity: 0;\n\t        padding: 0 10px;\n\t      }\n\n\t      .check-element {\n\t        padding: 10px;\n\t        border: 1px solid black;\n\t        background: white;\n\t      }\n\t    </file>\n\t    <file name=\"protractor.js\" type=\"protractor\">\n\t      var thumbsUp = element(by.css('span.glyphicon-thumbs-up'));\n\t      var thumbsDown = element(by.css('span.glyphicon-thumbs-down'));\n\n\t      it('should check ng-show / ng-hide', function() {\n\t        expect(thumbsUp.isDisplayed()).toBeFalsy();\n\t        expect(thumbsDown.isDisplayed()).toBeTruthy();\n\n\t        element(by.model('checked')).click();\n\n\t        expect(thumbsUp.isDisplayed()).toBeTruthy();\n\t        expect(thumbsDown.isDisplayed()).toBeFalsy();\n\t      });\n\t    </file>\n\t  </example>\n\t */\n\tvar ngShowDirective = ['$animate', function($animate) {\n\t  return {\n\t    restrict: 'A',\n\t    multiElement: true,\n\t    link: function(scope, element, attr) {\n\t      scope.$watch(attr.ngShow, function ngShowWatchAction(value) {\n\t        // we're adding a temporary, animation-specific class for ng-hide since this way\n\t        // we can control when the element is actually displayed on screen without having\n\t        // to have a global/greedy CSS selector that breaks when other animations are run.\n\t        // Read: https://github.com/angular/angular.js/issues/9103#issuecomment-58335845\n\t        $animate[value ? 'removeClass' : 'addClass'](element, NG_HIDE_CLASS, {\n\t          tempClasses: NG_HIDE_IN_PROGRESS_CLASS\n\t        });\n\t      });\n\t    }\n\t  };\n\t}];\n\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngHide\n\t *\n\t * @description\n\t * The `ngHide` directive shows or hides the given HTML element based on the expression\n\t * provided to the `ngHide` attribute. The element is shown or hidden by removing or adding\n\t * the `ng-hide` CSS class onto the element. The `.ng-hide` CSS class is predefined\n\t * in AngularJS and sets the display style to none (using an !important flag).\n\t * For CSP mode please add `angular-csp.css` to your html file (see {@link ng.directive:ngCsp ngCsp}).\n\t *\n\t * ```html\n\t * <!-- when $scope.myValue is truthy (element is hidden) -->\n\t * <div ng-hide=\"myValue\" class=\"ng-hide\"></div>\n\t *\n\t * <!-- when $scope.myValue is falsy (element is visible) -->\n\t * <div ng-hide=\"myValue\"></div>\n\t * ```\n\t *\n\t * When the `ngHide` expression evaluates to a truthy value then the `.ng-hide` CSS class is added to the class\n\t * attribute on the element causing it to become hidden. When falsy, the `.ng-hide` CSS class is removed\n\t * from the element causing the element not to appear hidden.\n\t *\n\t * ## Why is !important used?\n\t *\n\t * You may be wondering why !important is used for the `.ng-hide` CSS class. This is because the `.ng-hide` selector\n\t * can be easily overridden by heavier selectors. For example, something as simple\n\t * as changing the display style on a HTML list item would make hidden elements appear visible.\n\t * This also becomes a bigger issue when dealing with CSS frameworks.\n\t *\n\t * By using !important, the show and hide behavior will work as expected despite any clash between CSS selector\n\t * specificity (when !important isn't used with any conflicting styles). If a developer chooses to override the\n\t * styling to change how to hide an element then it is just a matter of using !important in their own CSS code.\n\t *\n\t * ### Overriding `.ng-hide`\n\t *\n\t * By default, the `.ng-hide` class will style the element with `display: none!important`. If you wish to change\n\t * the hide behavior with ngShow/ngHide then this can be achieved by restating the styles for the `.ng-hide`\n\t * class in CSS:\n\t *\n\t * ```css\n\t * .ng-hide {\n\t *   /&#42; this is just another form of hiding an element &#42;/\n\t *   display: block!important;\n\t *   position: absolute;\n\t *   top: -9999px;\n\t *   left: -9999px;\n\t * }\n\t * ```\n\t *\n\t * By default you don't need to override in CSS anything and the animations will work around the display style.\n\t *\n\t * ## A note about animations with `ngHide`\n\t *\n\t * Animations in ngShow/ngHide work with the show and hide events that are triggered when the directive expression\n\t * is true and false. This system works like the animation system present with ngClass, except that the `.ng-hide`\n\t * CSS class is added and removed for you instead of your own CSS class.\n\t *\n\t * ```css\n\t * //\n\t * //a working example can be found at the bottom of this page\n\t * //\n\t * .my-element.ng-hide-add, .my-element.ng-hide-remove {\n\t *   transition: 0.5s linear all;\n\t * }\n\t *\n\t * .my-element.ng-hide-add { ... }\n\t * .my-element.ng-hide-add.ng-hide-add-active { ... }\n\t * .my-element.ng-hide-remove { ... }\n\t * .my-element.ng-hide-remove.ng-hide-remove-active { ... }\n\t * ```\n\t *\n\t * Keep in mind that, as of AngularJS version 1.3.0-beta.11, there is no need to change the display\n\t * property to block during animation states--ngAnimate will handle the style toggling automatically for you.\n\t *\n\t * @animations\n\t * removeClass: `.ng-hide` - happens after the `ngHide` expression evaluates to a truthy value and just before the contents are set to hidden\n\t * addClass: `.ng-hide` - happens after the `ngHide` expression evaluates to a non truthy value and just before the contents are set to visible\n\t *\n\t * @element ANY\n\t * @param {expression} ngHide If the {@link guide/expression expression} is truthy then\n\t *     the element is shown or hidden respectively.\n\t *\n\t * @example\n\t  <example module=\"ngAnimate\" deps=\"angular-animate.js\" animations=\"true\">\n\t    <file name=\"index.html\">\n\t      Click me: <input type=\"checkbox\" ng-model=\"checked\"><br/>\n\t      <div>\n\t        Show:\n\t        <div class=\"check-element animate-hide\" ng-show=\"checked\">\n\t          <span class=\"glyphicon glyphicon-thumbs-up\"></span> I show up when your checkbox is checked.\n\t        </div>\n\t      </div>\n\t      <div>\n\t        Hide:\n\t        <div class=\"check-element animate-hide\" ng-hide=\"checked\">\n\t          <span class=\"glyphicon glyphicon-thumbs-down\"></span> I hide when your checkbox is checked.\n\t        </div>\n\t      </div>\n\t    </file>\n\t    <file name=\"glyphicons.css\">\n\t      @import url(../../components/bootstrap-3.1.1/css/bootstrap.css);\n\t    </file>\n\t    <file name=\"animations.css\">\n\t      .animate-hide {\n\t        -webkit-transition: all linear 0.5s;\n\t        transition: all linear 0.5s;\n\t        line-height: 20px;\n\t        opacity: 1;\n\t        padding: 10px;\n\t        border: 1px solid black;\n\t        background: white;\n\t      }\n\n\t      .animate-hide.ng-hide {\n\t        line-height: 0;\n\t        opacity: 0;\n\t        padding: 0 10px;\n\t      }\n\n\t      .check-element {\n\t        padding: 10px;\n\t        border: 1px solid black;\n\t        background: white;\n\t      }\n\t    </file>\n\t    <file name=\"protractor.js\" type=\"protractor\">\n\t      var thumbsUp = element(by.css('span.glyphicon-thumbs-up'));\n\t      var thumbsDown = element(by.css('span.glyphicon-thumbs-down'));\n\n\t      it('should check ng-show / ng-hide', function() {\n\t        expect(thumbsUp.isDisplayed()).toBeFalsy();\n\t        expect(thumbsDown.isDisplayed()).toBeTruthy();\n\n\t        element(by.model('checked')).click();\n\n\t        expect(thumbsUp.isDisplayed()).toBeTruthy();\n\t        expect(thumbsDown.isDisplayed()).toBeFalsy();\n\t      });\n\t    </file>\n\t  </example>\n\t */\n\tvar ngHideDirective = ['$animate', function($animate) {\n\t  return {\n\t    restrict: 'A',\n\t    multiElement: true,\n\t    link: function(scope, element, attr) {\n\t      scope.$watch(attr.ngHide, function ngHideWatchAction(value) {\n\t        // The comment inside of the ngShowDirective explains why we add and\n\t        // remove a temporary class for the show/hide animation\n\t        $animate[value ? 'addClass' : 'removeClass'](element,NG_HIDE_CLASS, {\n\t          tempClasses: NG_HIDE_IN_PROGRESS_CLASS\n\t        });\n\t      });\n\t    }\n\t  };\n\t}];\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngStyle\n\t * @restrict AC\n\t *\n\t * @description\n\t * The `ngStyle` directive allows you to set CSS style on an HTML element conditionally.\n\t *\n\t * @element ANY\n\t * @param {expression} ngStyle\n\t *\n\t * {@link guide/expression Expression} which evals to an\n\t * object whose keys are CSS style names and values are corresponding values for those CSS\n\t * keys.\n\t *\n\t * Since some CSS style names are not valid keys for an object, they must be quoted.\n\t * See the 'background-color' style in the example below.\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t        <input type=\"button\" value=\"set color\" ng-click=\"myStyle={color:'red'}\">\n\t        <input type=\"button\" value=\"set background\" ng-click=\"myStyle={'background-color':'blue'}\">\n\t        <input type=\"button\" value=\"clear\" ng-click=\"myStyle={}\">\n\t        <br/>\n\t        <span ng-style=\"myStyle\">Sample Text</span>\n\t        <pre>myStyle={{myStyle}}</pre>\n\t     </file>\n\t     <file name=\"style.css\">\n\t       span {\n\t         color: black;\n\t       }\n\t     </file>\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t       var colorSpan = element(by.css('span'));\n\n\t       it('should check ng-style', function() {\n\t         expect(colorSpan.getCssValue('color')).toBe('rgba(0, 0, 0, 1)');\n\t         element(by.css('input[value=\\'set color\\']')).click();\n\t         expect(colorSpan.getCssValue('color')).toBe('rgba(255, 0, 0, 1)');\n\t         element(by.css('input[value=clear]')).click();\n\t         expect(colorSpan.getCssValue('color')).toBe('rgba(0, 0, 0, 1)');\n\t       });\n\t     </file>\n\t   </example>\n\t */\n\tvar ngStyleDirective = ngDirective(function(scope, element, attr) {\n\t  scope.$watchCollection(attr.ngStyle, function ngStyleWatchAction(newStyles, oldStyles) {\n\t    if (oldStyles && (newStyles !== oldStyles)) {\n\t      forEach(oldStyles, function(val, style) { element.css(style, '');});\n\t    }\n\t    if (newStyles) element.css(newStyles);\n\t  });\n\t});\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngSwitch\n\t * @restrict EA\n\t *\n\t * @description\n\t * The `ngSwitch` directive is used to conditionally swap DOM structure on your template based on a scope expression.\n\t * Elements within `ngSwitch` but without `ngSwitchWhen` or `ngSwitchDefault` directives will be preserved at the location\n\t * as specified in the template.\n\t *\n\t * The directive itself works similar to ngInclude, however, instead of downloading template code (or loading it\n\t * from the template cache), `ngSwitch` simply chooses one of the nested elements and makes it visible based on which element\n\t * matches the value obtained from the evaluated expression. In other words, you define a container element\n\t * (where you place the directive), place an expression on the **`on=\"...\"` attribute**\n\t * (or the **`ng-switch=\"...\"` attribute**), define any inner elements inside of the directive and place\n\t * a when attribute per element. The when attribute is used to inform ngSwitch which element to display when the on\n\t * expression is evaluated. If a matching expression is not found via a when attribute then an element with the default\n\t * attribute is displayed.\n\t *\n\t * <div class=\"alert alert-info\">\n\t * Be aware that the attribute values to match against cannot be expressions. They are interpreted\n\t * as literal string values to match against.\n\t * For example, **`ng-switch-when=\"someVal\"`** will match against the string `\"someVal\"` not against the\n\t * value of the expression `$scope.someVal`.\n\t * </div>\n\n\t * @animations\n\t * enter - happens after the ngSwitch contents change and the matched child element is placed inside the container\n\t * leave - happens just after the ngSwitch contents change and just before the former contents are removed from the DOM\n\t *\n\t * @usage\n\t *\n\t * ```\n\t * <ANY ng-switch=\"expression\">\n\t *   <ANY ng-switch-when=\"matchValue1\">...</ANY>\n\t *   <ANY ng-switch-when=\"matchValue2\">...</ANY>\n\t *   <ANY ng-switch-default>...</ANY>\n\t * </ANY>\n\t * ```\n\t *\n\t *\n\t * @scope\n\t * @priority 1200\n\t * @param {*} ngSwitch|on expression to match against <tt>ng-switch-when</tt>.\n\t * On child elements add:\n\t *\n\t * * `ngSwitchWhen`: the case statement to match against. If match then this\n\t *   case will be displayed. If the same match appears multiple times, all the\n\t *   elements will be displayed.\n\t * * `ngSwitchDefault`: the default case when no other case match. If there\n\t *   are multiple default cases, all of them will be displayed when no other\n\t *   case match.\n\t *\n\t *\n\t * @example\n\t  <example module=\"switchExample\" deps=\"angular-animate.js\" animations=\"true\">\n\t    <file name=\"index.html\">\n\t      <div ng-controller=\"ExampleController\">\n\t        <select ng-model=\"selection\" ng-options=\"item for item in items\">\n\t        </select>\n\t        <tt>selection={{selection}}</tt>\n\t        <hr/>\n\t        <div class=\"animate-switch-container\"\n\t          ng-switch on=\"selection\">\n\t            <div class=\"animate-switch\" ng-switch-when=\"settings\">Settings Div</div>\n\t            <div class=\"animate-switch\" ng-switch-when=\"home\">Home Span</div>\n\t            <div class=\"animate-switch\" ng-switch-default>default</div>\n\t        </div>\n\t      </div>\n\t    </file>\n\t    <file name=\"script.js\">\n\t      angular.module('switchExample', ['ngAnimate'])\n\t        .controller('ExampleController', ['$scope', function($scope) {\n\t          $scope.items = ['settings', 'home', 'other'];\n\t          $scope.selection = $scope.items[0];\n\t        }]);\n\t    </file>\n\t    <file name=\"animations.css\">\n\t      .animate-switch-container {\n\t        position:relative;\n\t        background:white;\n\t        border:1px solid black;\n\t        height:40px;\n\t        overflow:hidden;\n\t      }\n\n\t      .animate-switch {\n\t        padding:10px;\n\t      }\n\n\t      .animate-switch.ng-animate {\n\t        -webkit-transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;\n\t        transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;\n\n\t        position:absolute;\n\t        top:0;\n\t        left:0;\n\t        right:0;\n\t        bottom:0;\n\t      }\n\n\t      .animate-switch.ng-leave.ng-leave-active,\n\t      .animate-switch.ng-enter {\n\t        top:-50px;\n\t      }\n\t      .animate-switch.ng-leave,\n\t      .animate-switch.ng-enter.ng-enter-active {\n\t        top:0;\n\t      }\n\t    </file>\n\t    <file name=\"protractor.js\" type=\"protractor\">\n\t      var switchElem = element(by.css('[ng-switch]'));\n\t      var select = element(by.model('selection'));\n\n\t      it('should start in settings', function() {\n\t        expect(switchElem.getText()).toMatch(/Settings Div/);\n\t      });\n\t      it('should change to home', function() {\n\t        select.all(by.css('option')).get(1).click();\n\t        expect(switchElem.getText()).toMatch(/Home Span/);\n\t      });\n\t      it('should select default', function() {\n\t        select.all(by.css('option')).get(2).click();\n\t        expect(switchElem.getText()).toMatch(/default/);\n\t      });\n\t    </file>\n\t  </example>\n\t */\n\tvar ngSwitchDirective = ['$animate', function($animate) {\n\t  return {\n\t    restrict: 'EA',\n\t    require: 'ngSwitch',\n\n\t    // asks for $scope to fool the BC controller module\n\t    controller: ['$scope', function ngSwitchController() {\n\t     this.cases = {};\n\t    }],\n\t    link: function(scope, element, attr, ngSwitchController) {\n\t      var watchExpr = attr.ngSwitch || attr.on,\n\t          selectedTranscludes = [],\n\t          selectedElements = [],\n\t          previousLeaveAnimations = [],\n\t          selectedScopes = [];\n\n\t      var spliceFactory = function(array, index) {\n\t          return function() { array.splice(index, 1); };\n\t      };\n\n\t      scope.$watch(watchExpr, function ngSwitchWatchAction(value) {\n\t        var i, ii;\n\t        for (i = 0, ii = previousLeaveAnimations.length; i < ii; ++i) {\n\t          $animate.cancel(previousLeaveAnimations[i]);\n\t        }\n\t        previousLeaveAnimations.length = 0;\n\n\t        for (i = 0, ii = selectedScopes.length; i < ii; ++i) {\n\t          var selected = getBlockNodes(selectedElements[i].clone);\n\t          selectedScopes[i].$destroy();\n\t          var promise = previousLeaveAnimations[i] = $animate.leave(selected);\n\t          promise.then(spliceFactory(previousLeaveAnimations, i));\n\t        }\n\n\t        selectedElements.length = 0;\n\t        selectedScopes.length = 0;\n\n\t        if ((selectedTranscludes = ngSwitchController.cases['!' + value] || ngSwitchController.cases['?'])) {\n\t          forEach(selectedTranscludes, function(selectedTransclude) {\n\t            selectedTransclude.transclude(function(caseElement, selectedScope) {\n\t              selectedScopes.push(selectedScope);\n\t              var anchor = selectedTransclude.element;\n\t              caseElement[caseElement.length++] = document.createComment(' end ngSwitchWhen: ');\n\t              var block = { clone: caseElement };\n\n\t              selectedElements.push(block);\n\t              $animate.enter(caseElement, anchor.parent(), anchor);\n\t            });\n\t          });\n\t        }\n\t      });\n\t    }\n\t  };\n\t}];\n\n\tvar ngSwitchWhenDirective = ngDirective({\n\t  transclude: 'element',\n\t  priority: 1200,\n\t  require: '^ngSwitch',\n\t  multiElement: true,\n\t  link: function(scope, element, attrs, ctrl, $transclude) {\n\t    ctrl.cases['!' + attrs.ngSwitchWhen] = (ctrl.cases['!' + attrs.ngSwitchWhen] || []);\n\t    ctrl.cases['!' + attrs.ngSwitchWhen].push({ transclude: $transclude, element: element });\n\t  }\n\t});\n\n\tvar ngSwitchDefaultDirective = ngDirective({\n\t  transclude: 'element',\n\t  priority: 1200,\n\t  require: '^ngSwitch',\n\t  multiElement: true,\n\t  link: function(scope, element, attr, ctrl, $transclude) {\n\t    ctrl.cases['?'] = (ctrl.cases['?'] || []);\n\t    ctrl.cases['?'].push({ transclude: $transclude, element: element });\n\t   }\n\t});\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngTransclude\n\t * @restrict EAC\n\t *\n\t * @description\n\t * Directive that marks the insertion point for the transcluded DOM of the nearest parent directive that uses transclusion.\n\t *\n\t * Any existing content of the element that this directive is placed on will be removed before the transcluded content is inserted.\n\t *\n\t * @element ANY\n\t *\n\t * @example\n\t   <example module=\"transcludeExample\">\n\t     <file name=\"index.html\">\n\t       <script>\n\t         angular.module('transcludeExample', [])\n\t          .directive('pane', function(){\n\t             return {\n\t               restrict: 'E',\n\t               transclude: true,\n\t               scope: { title:'@' },\n\t               template: '<div style=\"border: 1px solid black;\">' +\n\t                           '<div style=\"background-color: gray\">{{title}}</div>' +\n\t                           '<ng-transclude></ng-transclude>' +\n\t                         '</div>'\n\t             };\n\t         })\n\t         .controller('ExampleController', ['$scope', function($scope) {\n\t           $scope.title = 'Lorem Ipsum';\n\t           $scope.text = 'Neque porro quisquam est qui dolorem ipsum quia dolor...';\n\t         }]);\n\t       </script>\n\t       <div ng-controller=\"ExampleController\">\n\t         <input ng-model=\"title\"> <br/>\n\t         <textarea ng-model=\"text\"></textarea> <br/>\n\t         <pane title=\"{{title}}\">{{text}}</pane>\n\t       </div>\n\t     </file>\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t        it('should have transcluded', function() {\n\t          var titleElement = element(by.model('title'));\n\t          titleElement.clear();\n\t          titleElement.sendKeys('TITLE');\n\t          var textElement = element(by.model('text'));\n\t          textElement.clear();\n\t          textElement.sendKeys('TEXT');\n\t          expect(element(by.binding('title')).getText()).toEqual('TITLE');\n\t          expect(element(by.binding('text')).getText()).toEqual('TEXT');\n\t        });\n\t     </file>\n\t   </example>\n\t *\n\t */\n\tvar ngTranscludeDirective = ngDirective({\n\t  restrict: 'EAC',\n\t  link: function($scope, $element, $attrs, controller, $transclude) {\n\t    if (!$transclude) {\n\t      throw minErr('ngTransclude')('orphan',\n\t       'Illegal use of ngTransclude directive in the template! ' +\n\t       'No parent directive that requires a transclusion found. ' +\n\t       'Element: {0}',\n\t       startingTag($element));\n\t    }\n\n\t    $transclude(function(clone) {\n\t      $element.empty();\n\t      $element.append(clone);\n\t    });\n\t  }\n\t});\n\n\t/**\n\t * @ngdoc directive\n\t * @name script\n\t * @restrict E\n\t *\n\t * @description\n\t * Load the content of a `<script>` element into {@link ng.$templateCache `$templateCache`}, so that the\n\t * template can be used by {@link ng.directive:ngInclude `ngInclude`},\n\t * {@link ngRoute.directive:ngView `ngView`}, or {@link guide/directive directives}. The type of the\n\t * `<script>` element must be specified as `text/ng-template`, and a cache name for the template must be\n\t * assigned through the element's `id`, which can then be used as a directive's `templateUrl`.\n\t *\n\t * @param {string} type Must be set to `'text/ng-template'`.\n\t * @param {string} id Cache name of the template.\n\t *\n\t * @example\n\t  <example>\n\t    <file name=\"index.html\">\n\t      <script type=\"text/ng-template\" id=\"/tpl.html\">\n\t        Content of the template.\n\t      </script>\n\n\t      <a ng-click=\"currentTpl='/tpl.html'\" id=\"tpl-link\">Load inlined template</a>\n\t      <div id=\"tpl-content\" ng-include src=\"currentTpl\"></div>\n\t    </file>\n\t    <file name=\"protractor.js\" type=\"protractor\">\n\t      it('should load template defined inside script tag', function() {\n\t        element(by.css('#tpl-link')).click();\n\t        expect(element(by.css('#tpl-content')).getText()).toMatch(/Content of the template/);\n\t      });\n\t    </file>\n\t  </example>\n\t */\n\tvar scriptDirective = ['$templateCache', function($templateCache) {\n\t  return {\n\t    restrict: 'E',\n\t    terminal: true,\n\t    compile: function(element, attr) {\n\t      if (attr.type == 'text/ng-template') {\n\t        var templateUrl = attr.id,\n\t            text = element[0].text;\n\n\t        $templateCache.put(templateUrl, text);\n\t      }\n\t    }\n\t  };\n\t}];\n\n\tvar ngOptionsMinErr = minErr('ngOptions');\n\t/**\n\t * @ngdoc directive\n\t * @name select\n\t * @restrict E\n\t *\n\t * @description\n\t * HTML `SELECT` element with angular data-binding.\n\t *\n\t * # `ngOptions`\n\t *\n\t * The `ngOptions` attribute can be used to dynamically generate a list of `<option>`\n\t * elements for the `<select>` element using the array or object obtained by evaluating the\n\t * `ngOptions` comprehension expression.\n\t *\n\t * In many cases, `ngRepeat` can be used on `<option>` elements instead of `ngOptions` to achieve a\n\t * similar result. However, `ngOptions` provides some benefits such as reducing memory and\n\t * increasing speed by not creating a new scope for each repeated instance, as well as providing\n\t * more flexibility in how the `<select>`'s model is assigned via the `select` **`as`** part of the\n\t * comprehension expression. `ngOptions` should be used when the `<select>` model needs to be bound\n\t *  to a non-string value. This is because an option element can only be bound to string values at\n\t * present.\n\t *\n\t * When an item in the `<select>` menu is selected, the array element or object property\n\t * represented by the selected option will be bound to the model identified by the `ngModel`\n\t * directive.\n\t *\n\t * Optionally, a single hard-coded `<option>` element, with the value set to an empty string, can\n\t * be nested into the `<select>` element. This element will then represent the `null` or \"not selected\"\n\t * option. See example below for demonstration.\n\t *\n\t * <div class=\"alert alert-warning\">\n\t * **Note:** `ngModel` compares by reference, not value. This is important when binding to an\n\t * array of objects. See an example [in this jsfiddle](http://jsfiddle.net/qWzTb/).\n\t * </div>\n\t *\n\t * ## `select` **`as`**\n\t *\n\t * Using `select` **`as`** will bind the result of the `select` expression to the model, but\n\t * the value of the `<select>` and `<option>` html elements will be either the index (for array data sources)\n\t * or property name (for object data sources) of the value within the collection. If a **`track by`** expression\n\t * is used, the result of that expression will be set as the value of the `option` and `select` elements.\n\t *\n\t *\n\t * ### `select` **`as`** and **`track by`**\n\t *\n\t * <div class=\"alert alert-warning\">\n\t * Do not use `select` **`as`** and **`track by`** in the same expression. They are not designed to work together.\n\t * </div>\n\t *\n\t * Consider the following example:\n\t *\n\t * ```html\n\t * <select ng-options=\"item.subItem as item.label for item in values track by item.id\" ng-model=\"selected\">\n\t * ```\n\t *\n\t * ```js\n\t * $scope.values = [{\n\t *   id: 1,\n\t *   label: 'aLabel',\n\t *   subItem: { name: 'aSubItem' }\n\t * }, {\n\t *   id: 2,\n\t *   label: 'bLabel',\n\t *   subItem: { name: 'bSubItem' }\n\t * }];\n\t *\n\t * $scope.selected = { name: 'aSubItem' };\n\t * ```\n\t *\n\t * With the purpose of preserving the selection, the **`track by`** expression is always applied to the element\n\t * of the data source (to `item` in this example). To calculate whether an element is selected, we do the\n\t * following:\n\t *\n\t * 1. Apply **`track by`** to the elements in the array. In the example: `[1, 2]`\n\t * 2. Apply **`track by`** to the already selected value in `ngModel`.\n\t *    In the example: this is not possible as **`track by`** refers to `item.id`, but the selected\n\t *    value from `ngModel` is `{name: 'aSubItem'}`, so the **`track by`** expression is applied to\n\t *    a wrong object, the selected element can't be found, `<select>` is always reset to the \"not\n\t *    selected\" option.\n\t *\n\t *\n\t * @param {string} ngModel Assignable angular expression to data-bind to.\n\t * @param {string=} name Property name of the form under which the control is published.\n\t * @param {string=} required The control is considered valid only if value is entered.\n\t * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to\n\t *    the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of\n\t *    `required` when you want to data-bind to the `required` attribute.\n\t * @param {comprehension_expression=} ngOptions in one of the following forms:\n\t *\n\t *   * for array data sources:\n\t *     * `label` **`for`** `value` **`in`** `array`\n\t *     * `select` **`as`** `label` **`for`** `value` **`in`** `array`\n\t *     * `label` **`group by`** `group` **`for`** `value` **`in`** `array`\n\t *     * `label` **`group by`** `group` **`for`** `value` **`in`** `array` **`track by`** `trackexpr`\n\t *     * `label` **`for`** `value` **`in`** `array` | orderBy:`orderexpr` **`track by`** `trackexpr`\n\t *        (for including a filter with `track by`)\n\t *   * for object data sources:\n\t *     * `label` **`for (`**`key` **`,`** `value`**`) in`** `object`\n\t *     * `select` **`as`** `label` **`for (`**`key` **`,`** `value`**`) in`** `object`\n\t *     * `label` **`group by`** `group` **`for (`**`key`**`,`** `value`**`) in`** `object`\n\t *     * `select` **`as`** `label` **`group by`** `group`\n\t *         **`for` `(`**`key`**`,`** `value`**`) in`** `object`\n\t *\n\t * Where:\n\t *\n\t *   * `array` / `object`: an expression which evaluates to an array / object to iterate over.\n\t *   * `value`: local variable which will refer to each item in the `array` or each property value\n\t *      of `object` during iteration.\n\t *   * `key`: local variable which will refer to a property name in `object` during iteration.\n\t *   * `label`: The result of this expression will be the label for `<option>` element. The\n\t *     `expression` will most likely refer to the `value` variable (e.g. `value.propertyName`).\n\t *   * `select`: The result of this expression will be bound to the model of the parent `<select>`\n\t *      element. If not specified, `select` expression will default to `value`.\n\t *   * `group`: The result of this expression will be used to group options using the `<optgroup>`\n\t *      DOM element.\n\t *   * `trackexpr`: Used when working with an array of objects. The result of this expression will be\n\t *      used to identify the objects in the array. The `trackexpr` will most likely refer to the\n\t *     `value` variable (e.g. `value.propertyName`). With this the selection is preserved\n\t *      even when the options are recreated (e.g. reloaded from the server).\n\t *\n\t * @example\n\t    <example module=\"selectExample\">\n\t      <file name=\"index.html\">\n\t        <script>\n\t        angular.module('selectExample', [])\n\t          .controller('ExampleController', ['$scope', function($scope) {\n\t            $scope.colors = [\n\t              {name:'black', shade:'dark'},\n\t              {name:'white', shade:'light'},\n\t              {name:'red', shade:'dark'},\n\t              {name:'blue', shade:'dark'},\n\t              {name:'yellow', shade:'light'}\n\t            ];\n\t            $scope.myColor = $scope.colors[2]; // red\n\t          }]);\n\t        </script>\n\t        <div ng-controller=\"ExampleController\">\n\t          <ul>\n\t            <li ng-repeat=\"color in colors\">\n\t              Name: <input ng-model=\"color.name\">\n\t              [<a href ng-click=\"colors.splice($index, 1)\">X</a>]\n\t            </li>\n\t            <li>\n\t              [<a href ng-click=\"colors.push({})\">add</a>]\n\t            </li>\n\t          </ul>\n\t          <hr/>\n\t          Color (null not allowed):\n\t          <select ng-model=\"myColor\" ng-options=\"color.name for color in colors\"></select><br>\n\n\t          Color (null allowed):\n\t          <span  class=\"nullable\">\n\t            <select ng-model=\"myColor\" ng-options=\"color.name for color in colors\">\n\t              <option value=\"\">-- choose color --</option>\n\t            </select>\n\t          </span><br/>\n\n\t          Color grouped by shade:\n\t          <select ng-model=\"myColor\" ng-options=\"color.name group by color.shade for color in colors\">\n\t          </select><br/>\n\n\n\t          Select <a href ng-click=\"myColor = { name:'not in list', shade: 'other' }\">bogus</a>.<br>\n\t          <hr/>\n\t          Currently selected: {{ {selected_color:myColor} }}\n\t          <div style=\"border:solid 1px black; height:20px\"\n\t               ng-style=\"{'background-color':myColor.name}\">\n\t          </div>\n\t        </div>\n\t      </file>\n\t      <file name=\"protractor.js\" type=\"protractor\">\n\t         it('should check ng-options', function() {\n\t           expect(element(by.binding('{selected_color:myColor}')).getText()).toMatch('red');\n\t           element.all(by.model('myColor')).first().click();\n\t           element.all(by.css('select[ng-model=\"myColor\"] option')).first().click();\n\t           expect(element(by.binding('{selected_color:myColor}')).getText()).toMatch('black');\n\t           element(by.css('.nullable select[ng-model=\"myColor\"]')).click();\n\t           element.all(by.css('.nullable select[ng-model=\"myColor\"] option')).first().click();\n\t           expect(element(by.binding('{selected_color:myColor}')).getText()).toMatch('null');\n\t         });\n\t      </file>\n\t    </example>\n\t */\n\n\tvar ngOptionsDirective = valueFn({\n\t  restrict: 'A',\n\t  terminal: true\n\t});\n\n\t// jshint maxlen: false\n\tvar selectDirective = ['$compile', '$parse', function($compile,   $parse) {\n\t                         //000011111111110000000000022222222220000000000000000000003333333333000000000000004444444444444440000000005555555555555550000000666666666666666000000000000000777777777700000000000000000008888888888\n\t  var NG_OPTIONS_REGEXP = /^\\s*([\\s\\S]+?)(?:\\s+as\\s+([\\s\\S]+?))?(?:\\s+group\\s+by\\s+([\\s\\S]+?))?\\s+for\\s+(?:([\\$\\w][\\$\\w]*)|(?:\\(\\s*([\\$\\w][\\$\\w]*)\\s*,\\s*([\\$\\w][\\$\\w]*)\\s*\\)))\\s+in\\s+([\\s\\S]+?)(?:\\s+track\\s+by\\s+([\\s\\S]+?))?$/,\n\t      nullModelCtrl = {$setViewValue: noop};\n\t// jshint maxlen: 100\n\n\t  return {\n\t    restrict: 'E',\n\t    require: ['select', '?ngModel'],\n\t    controller: ['$element', '$scope', '$attrs', function($element, $scope, $attrs) {\n\t      var self = this,\n\t          optionsMap = {},\n\t          ngModelCtrl = nullModelCtrl,\n\t          nullOption,\n\t          unknownOption;\n\n\n\t      self.databound = $attrs.ngModel;\n\n\n\t      self.init = function(ngModelCtrl_, nullOption_, unknownOption_) {\n\t        ngModelCtrl = ngModelCtrl_;\n\t        nullOption = nullOption_;\n\t        unknownOption = unknownOption_;\n\t      };\n\n\n\t      self.addOption = function(value, element) {\n\t        assertNotHasOwnProperty(value, '\"option value\"');\n\t        optionsMap[value] = true;\n\n\t        if (ngModelCtrl.$viewValue == value) {\n\t          $element.val(value);\n\t          if (unknownOption.parent()) unknownOption.remove();\n\t        }\n\t        // Workaround for https://code.google.com/p/chromium/issues/detail?id=381459\n\t        // Adding an <option selected=\"selected\"> element to a <select required=\"required\"> should\n\t        // automatically select the new element\n\t        if (element && element[0].hasAttribute('selected')) {\n\t          element[0].selected = true;\n\t        }\n\t      };\n\n\n\t      self.removeOption = function(value) {\n\t        if (this.hasOption(value)) {\n\t          delete optionsMap[value];\n\t          if (ngModelCtrl.$viewValue === value) {\n\t            this.renderUnknownOption(value);\n\t          }\n\t        }\n\t      };\n\n\n\t      self.renderUnknownOption = function(val) {\n\t        var unknownVal = '? ' + hashKey(val) + ' ?';\n\t        unknownOption.val(unknownVal);\n\t        $element.prepend(unknownOption);\n\t        $element.val(unknownVal);\n\t        unknownOption.prop('selected', true); // needed for IE\n\t      };\n\n\n\t      self.hasOption = function(value) {\n\t        return optionsMap.hasOwnProperty(value);\n\t      };\n\n\t      $scope.$on('$destroy', function() {\n\t        // disable unknown option so that we don't do work when the whole select is being destroyed\n\t        self.renderUnknownOption = noop;\n\t      });\n\t    }],\n\n\t    link: function(scope, element, attr, ctrls) {\n\t      // if ngModel is not defined, we don't need to do anything\n\t      if (!ctrls[1]) return;\n\n\t      var selectCtrl = ctrls[0],\n\t          ngModelCtrl = ctrls[1],\n\t          multiple = attr.multiple,\n\t          optionsExp = attr.ngOptions,\n\t          nullOption = false, // if false, user will not be able to select it (used by ngOptions)\n\t          emptyOption,\n\t          renderScheduled = false,\n\t          // we can't just jqLite('<option>') since jqLite is not smart enough\n\t          // to create it in <select> and IE barfs otherwise.\n\t          optionTemplate = jqLite(document.createElement('option')),\n\t          optGroupTemplate =jqLite(document.createElement('optgroup')),\n\t          unknownOption = optionTemplate.clone();\n\n\t      // find \"null\" option\n\t      for (var i = 0, children = element.children(), ii = children.length; i < ii; i++) {\n\t        if (children[i].value === '') {\n\t          emptyOption = nullOption = children.eq(i);\n\t          break;\n\t        }\n\t      }\n\n\t      selectCtrl.init(ngModelCtrl, nullOption, unknownOption);\n\n\t      // required validator\n\t      if (multiple) {\n\t        ngModelCtrl.$isEmpty = function(value) {\n\t          return !value || value.length === 0;\n\t        };\n\t      }\n\n\t      if (optionsExp) setupAsOptions(scope, element, ngModelCtrl);\n\t      else if (multiple) setupAsMultiple(scope, element, ngModelCtrl);\n\t      else setupAsSingle(scope, element, ngModelCtrl, selectCtrl);\n\n\n\t      ////////////////////////////\n\n\n\n\t      function setupAsSingle(scope, selectElement, ngModelCtrl, selectCtrl) {\n\t        ngModelCtrl.$render = function() {\n\t          var viewValue = ngModelCtrl.$viewValue;\n\n\t          if (selectCtrl.hasOption(viewValue)) {\n\t            if (unknownOption.parent()) unknownOption.remove();\n\t            selectElement.val(viewValue);\n\t            if (viewValue === '') emptyOption.prop('selected', true); // to make IE9 happy\n\t          } else {\n\t            if (isUndefined(viewValue) && emptyOption) {\n\t              selectElement.val('');\n\t            } else {\n\t              selectCtrl.renderUnknownOption(viewValue);\n\t            }\n\t          }\n\t        };\n\n\t        selectElement.on('change', function() {\n\t          scope.$apply(function() {\n\t            if (unknownOption.parent()) unknownOption.remove();\n\t            ngModelCtrl.$setViewValue(selectElement.val());\n\t          });\n\t        });\n\t      }\n\n\t      function setupAsMultiple(scope, selectElement, ctrl) {\n\t        var lastView;\n\t        ctrl.$render = function() {\n\t          var items = new HashMap(ctrl.$viewValue);\n\t          forEach(selectElement.find('option'), function(option) {\n\t            option.selected = isDefined(items.get(option.value));\n\t          });\n\t        };\n\n\t        // we have to do it on each watch since ngModel watches reference, but\n\t        // we need to work of an array, so we need to see if anything was inserted/removed\n\t        scope.$watch(function selectMultipleWatch() {\n\t          if (!equals(lastView, ctrl.$viewValue)) {\n\t            lastView = shallowCopy(ctrl.$viewValue);\n\t            ctrl.$render();\n\t          }\n\t        });\n\n\t        selectElement.on('change', function() {\n\t          scope.$apply(function() {\n\t            var array = [];\n\t            forEach(selectElement.find('option'), function(option) {\n\t              if (option.selected) {\n\t                array.push(option.value);\n\t              }\n\t            });\n\t            ctrl.$setViewValue(array);\n\t          });\n\t        });\n\t      }\n\n\t      function setupAsOptions(scope, selectElement, ctrl) {\n\t        var match;\n\n\t        if (!(match = optionsExp.match(NG_OPTIONS_REGEXP))) {\n\t          throw ngOptionsMinErr('iexp',\n\t            \"Expected expression in form of \" +\n\t            \"'_select_ (as _label_)? for (_key_,)?_value_ in _collection_'\" +\n\t            \" but got '{0}'. Element: {1}\",\n\t            optionsExp, startingTag(selectElement));\n\t        }\n\n\t        var displayFn = $parse(match[2] || match[1]),\n\t            valueName = match[4] || match[6],\n\t            selectAs = / as /.test(match[0]) && match[1],\n\t            selectAsFn = selectAs ? $parse(selectAs) : null,\n\t            keyName = match[5],\n\t            groupByFn = $parse(match[3] || ''),\n\t            valueFn = $parse(match[2] ? match[1] : valueName),\n\t            valuesFn = $parse(match[7]),\n\t            track = match[8],\n\t            trackFn = track ? $parse(match[8]) : null,\n\t            trackKeysCache = {},\n\t            // This is an array of array of existing option groups in DOM.\n\t            // We try to reuse these if possible\n\t            // - optionGroupsCache[0] is the options with no option group\n\t            // - optionGroupsCache[?][0] is the parent: either the SELECT or OPTGROUP element\n\t            optionGroupsCache = [[{element: selectElement, label:''}]],\n\t            //re-usable object to represent option's locals\n\t            locals = {};\n\n\t        if (nullOption) {\n\t          // compile the element since there might be bindings in it\n\t          $compile(nullOption)(scope);\n\n\t          // remove the class, which is added automatically because we recompile the element and it\n\t          // becomes the compilation root\n\t          nullOption.removeClass('ng-scope');\n\n\t          // we need to remove it before calling selectElement.empty() because otherwise IE will\n\t          // remove the label from the element. wtf?\n\t          nullOption.remove();\n\t        }\n\n\t        // clear contents, we'll add what's needed based on the model\n\t        selectElement.empty();\n\n\t        selectElement.on('change', selectionChanged);\n\n\t        ctrl.$render = render;\n\n\t        scope.$watchCollection(valuesFn, scheduleRendering);\n\t        scope.$watchCollection(getLabels, scheduleRendering);\n\n\t        if (multiple) {\n\t          scope.$watchCollection(function() { return ctrl.$modelValue; }, scheduleRendering);\n\t        }\n\n\t        // ------------------------------------------------------------------ //\n\n\t        function callExpression(exprFn, key, value) {\n\t          locals[valueName] = value;\n\t          if (keyName) locals[keyName] = key;\n\t          return exprFn(scope, locals);\n\t        }\n\n\t        function selectionChanged() {\n\t          scope.$apply(function() {\n\t            var collection = valuesFn(scope) || [];\n\t            var viewValue;\n\t            if (multiple) {\n\t              viewValue = [];\n\t              forEach(selectElement.val(), function(selectedKey) {\n\t                  selectedKey = trackFn ? trackKeysCache[selectedKey] : selectedKey;\n\t                viewValue.push(getViewValue(selectedKey, collection[selectedKey]));\n\t              });\n\t            } else {\n\t              var selectedKey = trackFn ? trackKeysCache[selectElement.val()] : selectElement.val();\n\t              viewValue = getViewValue(selectedKey, collection[selectedKey]);\n\t            }\n\t            ctrl.$setViewValue(viewValue);\n\t            render();\n\t          });\n\t        }\n\n\t        function getViewValue(key, value) {\n\t          if (key === '?') {\n\t            return undefined;\n\t          } else if (key === '') {\n\t            return null;\n\t          } else {\n\t            var viewValueFn = selectAsFn ? selectAsFn : valueFn;\n\t            return callExpression(viewValueFn, key, value);\n\t          }\n\t        }\n\n\t        function getLabels() {\n\t          var values = valuesFn(scope);\n\t          var toDisplay;\n\t          if (values && isArray(values)) {\n\t            toDisplay = new Array(values.length);\n\t            for (var i = 0, ii = values.length; i < ii; i++) {\n\t              toDisplay[i] = callExpression(displayFn, i, values[i]);\n\t            }\n\t            return toDisplay;\n\t          } else if (values) {\n\t            // TODO: Add a test for this case\n\t            toDisplay = {};\n\t            for (var prop in values) {\n\t              if (values.hasOwnProperty(prop)) {\n\t                toDisplay[prop] = callExpression(displayFn, prop, values[prop]);\n\t              }\n\t            }\n\t          }\n\t          return toDisplay;\n\t        }\n\n\t        function createIsSelectedFn(viewValue) {\n\t          var selectedSet;\n\t          if (multiple) {\n\t            if (trackFn && isArray(viewValue)) {\n\n\t              selectedSet = new HashMap([]);\n\t              for (var trackIndex = 0; trackIndex < viewValue.length; trackIndex++) {\n\t                // tracking by key\n\t                selectedSet.put(callExpression(trackFn, null, viewValue[trackIndex]), true);\n\t              }\n\t            } else {\n\t              selectedSet = new HashMap(viewValue);\n\t            }\n\t          } else if (trackFn) {\n\t            viewValue = callExpression(trackFn, null, viewValue);\n\t          }\n\n\t          return function isSelected(key, value) {\n\t            var compareValueFn;\n\t            if (trackFn) {\n\t              compareValueFn = trackFn;\n\t            } else if (selectAsFn) {\n\t              compareValueFn = selectAsFn;\n\t            } else {\n\t              compareValueFn = valueFn;\n\t            }\n\n\t            if (multiple) {\n\t              return isDefined(selectedSet.remove(callExpression(compareValueFn, key, value)));\n\t            } else {\n\t              return viewValue === callExpression(compareValueFn, key, value);\n\t            }\n\t          };\n\t        }\n\n\t        function scheduleRendering() {\n\t          if (!renderScheduled) {\n\t            scope.$$postDigest(render);\n\t            renderScheduled = true;\n\t          }\n\t        }\n\n\t        /**\n\t         * A new labelMap is created with each render.\n\t         * This function is called for each existing option with added=false,\n\t         * and each new option with added=true.\n\t         * - Labels that are passed to this method twice,\n\t         * (once with added=true and once with added=false) will end up with a value of 0, and\n\t         * will cause no change to happen to the corresponding option.\n\t         * - Labels that are passed to this method only once with added=false will end up with a\n\t         * value of -1 and will eventually be passed to selectCtrl.removeOption()\n\t         * - Labels that are passed to this method only once with added=true will end up with a\n\t         * value of 1 and will eventually be passed to selectCtrl.addOption()\n\t        */\n\t        function updateLabelMap(labelMap, label, added) {\n\t          labelMap[label] = labelMap[label] || 0;\n\t          labelMap[label] += (added ? 1 : -1);\n\t        }\n\n\t        function render() {\n\t          renderScheduled = false;\n\n\t          // Temporary location for the option groups before we render them\n\t          var optionGroups = {'':[]},\n\t              optionGroupNames = [''],\n\t              optionGroupName,\n\t              optionGroup,\n\t              option,\n\t              existingParent, existingOptions, existingOption,\n\t              viewValue = ctrl.$viewValue,\n\t              values = valuesFn(scope) || [],\n\t              keys = keyName ? sortedKeys(values) : values,\n\t              key,\n\t              value,\n\t              groupLength, length,\n\t              groupIndex, index,\n\t              labelMap = {},\n\t              selected,\n\t              isSelected = createIsSelectedFn(viewValue),\n\t              anySelected = false,\n\t              lastElement,\n\t              element,\n\t              label,\n\t              optionId;\n\n\t          trackKeysCache = {};\n\n\t          // We now build up the list of options we need (we merge later)\n\t          for (index = 0; length = keys.length, index < length; index++) {\n\t            key = index;\n\t            if (keyName) {\n\t              key = keys[index];\n\t              if (key.charAt(0) === '$') continue;\n\t            }\n\t            value = values[key];\n\n\t            optionGroupName = callExpression(groupByFn, key, value) || '';\n\t            if (!(optionGroup = optionGroups[optionGroupName])) {\n\t              optionGroup = optionGroups[optionGroupName] = [];\n\t              optionGroupNames.push(optionGroupName);\n\t            }\n\n\t            selected = isSelected(key, value);\n\t            anySelected = anySelected || selected;\n\n\t            label = callExpression(displayFn, key, value); // what will be seen by the user\n\n\t            // doing displayFn(scope, locals) || '' overwrites zero values\n\t            label = isDefined(label) ? label : '';\n\t            optionId = trackFn ? trackFn(scope, locals) : (keyName ? keys[index] : index);\n\t            if (trackFn) {\n\t              trackKeysCache[optionId] = key;\n\t            }\n\n\t            optionGroup.push({\n\t              // either the index into array or key from object\n\t              id: optionId,\n\t              label: label,\n\t              selected: selected                   // determine if we should be selected\n\t            });\n\t          }\n\t          if (!multiple) {\n\t            if (nullOption || viewValue === null) {\n\t              // insert null option if we have a placeholder, or the model is null\n\t              optionGroups[''].unshift({id:'', label:'', selected:!anySelected});\n\t            } else if (!anySelected) {\n\t              // option could not be found, we have to insert the undefined item\n\t              optionGroups[''].unshift({id:'?', label:'', selected:true});\n\t            }\n\t          }\n\n\t          // Now we need to update the list of DOM nodes to match the optionGroups we computed above\n\t          for (groupIndex = 0, groupLength = optionGroupNames.length;\n\t               groupIndex < groupLength;\n\t               groupIndex++) {\n\t            // current option group name or '' if no group\n\t            optionGroupName = optionGroupNames[groupIndex];\n\n\t            // list of options for that group. (first item has the parent)\n\t            optionGroup = optionGroups[optionGroupName];\n\n\t            if (optionGroupsCache.length <= groupIndex) {\n\t              // we need to grow the optionGroups\n\t              existingParent = {\n\t                element: optGroupTemplate.clone().attr('label', optionGroupName),\n\t                label: optionGroup.label\n\t              };\n\t              existingOptions = [existingParent];\n\t              optionGroupsCache.push(existingOptions);\n\t              selectElement.append(existingParent.element);\n\t            } else {\n\t              existingOptions = optionGroupsCache[groupIndex];\n\t              existingParent = existingOptions[0];  // either SELECT (no group) or OPTGROUP element\n\n\t              // update the OPTGROUP label if not the same.\n\t              if (existingParent.label != optionGroupName) {\n\t                existingParent.element.attr('label', existingParent.label = optionGroupName);\n\t              }\n\t            }\n\n\t            lastElement = null;  // start at the beginning\n\t            for (index = 0, length = optionGroup.length; index < length; index++) {\n\t              option = optionGroup[index];\n\t              if ((existingOption = existingOptions[index + 1])) {\n\t                // reuse elements\n\t                lastElement = existingOption.element;\n\t                if (existingOption.label !== option.label) {\n\t                  updateLabelMap(labelMap, existingOption.label, false);\n\t                  updateLabelMap(labelMap, option.label, true);\n\t                  lastElement.text(existingOption.label = option.label);\n\t                  lastElement.prop('label', existingOption.label);\n\t                }\n\t                if (existingOption.id !== option.id) {\n\t                  lastElement.val(existingOption.id = option.id);\n\t                }\n\t                // lastElement.prop('selected') provided by jQuery has side-effects\n\t                if (lastElement[0].selected !== option.selected) {\n\t                  lastElement.prop('selected', (existingOption.selected = option.selected));\n\t                  if (msie) {\n\t                    // See #7692\n\t                    // The selected item wouldn't visually update on IE without this.\n\t                    // Tested on Win7: IE9, IE10 and IE11. Future IEs should be tested as well\n\t                    lastElement.prop('selected', existingOption.selected);\n\t                  }\n\t                }\n\t              } else {\n\t                // grow elements\n\n\t                // if it's a null option\n\t                if (option.id === '' && nullOption) {\n\t                  // put back the pre-compiled element\n\t                  element = nullOption;\n\t                } else {\n\t                  // jQuery(v1.4.2) Bug: We should be able to chain the method calls, but\n\t                  // in this version of jQuery on some browser the .text() returns a string\n\t                  // rather then the element.\n\t                  (element = optionTemplate.clone())\n\t                      .val(option.id)\n\t                      .prop('selected', option.selected)\n\t                      .attr('selected', option.selected)\n\t                      .prop('label', option.label)\n\t                      .text(option.label);\n\t                }\n\n\t                existingOptions.push(existingOption = {\n\t                    element: element,\n\t                    label: option.label,\n\t                    id: option.id,\n\t                    selected: option.selected\n\t                });\n\t                updateLabelMap(labelMap, option.label, true);\n\t                if (lastElement) {\n\t                  lastElement.after(element);\n\t                } else {\n\t                  existingParent.element.append(element);\n\t                }\n\t                lastElement = element;\n\t              }\n\t            }\n\t            // remove any excessive OPTIONs in a group\n\t            index++; // increment since the existingOptions[0] is parent element not OPTION\n\t            while (existingOptions.length > index) {\n\t              option = existingOptions.pop();\n\t              updateLabelMap(labelMap, option.label, false);\n\t              option.element.remove();\n\t            }\n\t          }\n\t          // remove any excessive OPTGROUPs from select\n\t          while (optionGroupsCache.length > groupIndex) {\n\t            // remove all the labels in the option group\n\t            optionGroup = optionGroupsCache.pop();\n\t            for (index = 1; index < optionGroup.length; ++index) {\n\t              updateLabelMap(labelMap, optionGroup[index].label, false);\n\t            }\n\t            optionGroup[0].element.remove();\n\t          }\n\t          forEach(labelMap, function(count, label) {\n\t            if (count > 0) {\n\t              selectCtrl.addOption(label);\n\t            } else if (count < 0) {\n\t              selectCtrl.removeOption(label);\n\t            }\n\t          });\n\t        }\n\t      }\n\t    }\n\t  };\n\t}];\n\n\tvar optionDirective = ['$interpolate', function($interpolate) {\n\t  var nullSelectCtrl = {\n\t    addOption: noop,\n\t    removeOption: noop\n\t  };\n\n\t  return {\n\t    restrict: 'E',\n\t    priority: 100,\n\t    compile: function(element, attr) {\n\t      if (isUndefined(attr.value)) {\n\t        var interpolateFn = $interpolate(element.text(), true);\n\t        if (!interpolateFn) {\n\t          attr.$set('value', element.text());\n\t        }\n\t      }\n\n\t      return function(scope, element, attr) {\n\t        var selectCtrlName = '$selectController',\n\t            parent = element.parent(),\n\t            selectCtrl = parent.data(selectCtrlName) ||\n\t              parent.parent().data(selectCtrlName); // in case we are in optgroup\n\n\t        if (!selectCtrl || !selectCtrl.databound) {\n\t          selectCtrl = nullSelectCtrl;\n\t        }\n\n\t        if (interpolateFn) {\n\t          scope.$watch(interpolateFn, function interpolateWatchAction(newVal, oldVal) {\n\t            attr.$set('value', newVal);\n\t            if (oldVal !== newVal) {\n\t              selectCtrl.removeOption(oldVal);\n\t            }\n\t            selectCtrl.addOption(newVal, element);\n\t          });\n\t        } else {\n\t          selectCtrl.addOption(attr.value, element);\n\t        }\n\n\t        element.on('$destroy', function() {\n\t          selectCtrl.removeOption(attr.value);\n\t        });\n\t      };\n\t    }\n\t  };\n\t}];\n\n\tvar styleDirective = valueFn({\n\t  restrict: 'E',\n\t  terminal: false\n\t});\n\n\tvar requiredDirective = function() {\n\t  return {\n\t    restrict: 'A',\n\t    require: '?ngModel',\n\t    link: function(scope, elm, attr, ctrl) {\n\t      if (!ctrl) return;\n\t      attr.required = true; // force truthy in case we are on non input element\n\n\t      ctrl.$validators.required = function(modelValue, viewValue) {\n\t        return !attr.required || !ctrl.$isEmpty(viewValue);\n\t      };\n\n\t      attr.$observe('required', function() {\n\t        ctrl.$validate();\n\t      });\n\t    }\n\t  };\n\t};\n\n\n\tvar patternDirective = function() {\n\t  return {\n\t    restrict: 'A',\n\t    require: '?ngModel',\n\t    link: function(scope, elm, attr, ctrl) {\n\t      if (!ctrl) return;\n\n\t      var regexp, patternExp = attr.ngPattern || attr.pattern;\n\t      attr.$observe('pattern', function(regex) {\n\t        if (isString(regex) && regex.length > 0) {\n\t          regex = new RegExp('^' + regex + '$');\n\t        }\n\n\t        if (regex && !regex.test) {\n\t          throw minErr('ngPattern')('noregexp',\n\t            'Expected {0} to be a RegExp but was {1}. Element: {2}', patternExp,\n\t            regex, startingTag(elm));\n\t        }\n\n\t        regexp = regex || undefined;\n\t        ctrl.$validate();\n\t      });\n\n\t      ctrl.$validators.pattern = function(value) {\n\t        return ctrl.$isEmpty(value) || isUndefined(regexp) || regexp.test(value);\n\t      };\n\t    }\n\t  };\n\t};\n\n\n\tvar maxlengthDirective = function() {\n\t  return {\n\t    restrict: 'A',\n\t    require: '?ngModel',\n\t    link: function(scope, elm, attr, ctrl) {\n\t      if (!ctrl) return;\n\n\t      var maxlength = -1;\n\t      attr.$observe('maxlength', function(value) {\n\t        var intVal = int(value);\n\t        maxlength = isNaN(intVal) ? -1 : intVal;\n\t        ctrl.$validate();\n\t      });\n\t      ctrl.$validators.maxlength = function(modelValue, viewValue) {\n\t        return (maxlength < 0) || ctrl.$isEmpty(viewValue) || (viewValue.length <= maxlength);\n\t      };\n\t    }\n\t  };\n\t};\n\n\tvar minlengthDirective = function() {\n\t  return {\n\t    restrict: 'A',\n\t    require: '?ngModel',\n\t    link: function(scope, elm, attr, ctrl) {\n\t      if (!ctrl) return;\n\n\t      var minlength = 0;\n\t      attr.$observe('minlength', function(value) {\n\t        minlength = int(value) || 0;\n\t        ctrl.$validate();\n\t      });\n\t      ctrl.$validators.minlength = function(modelValue, viewValue) {\n\t        return ctrl.$isEmpty(viewValue) || viewValue.length >= minlength;\n\t      };\n\t    }\n\t  };\n\t};\n\n\t  if (window.angular.bootstrap) {\n\t    //AngularJS is already loaded, so we can return here...\n\t    console.log('WARNING: Tried to load angular more than once.');\n\t    return;\n\t  }\n\n\t  //try to bind to jquery now so that one can write jqLite(document).ready()\n\t  //but we will rebind on bootstrap again.\n\t  bindJQuery();\n\n\t  publishExternalAPI(angular);\n\n\t  jqLite(document).ready(function() {\n\t    angularInit(document, bootstrap);\n\t  });\n\n\t})(window, document);\n\n\t!window.angular.$$csp() && window.angular.element(document).find('head').prepend('<style type=\"text/css\">@charset \"UTF-8\";[ng\\\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\\\:form{display:block;}</style>');\n\n/***/ },\n/* 10 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/*\r\n\t\tMIT License http://www.opensource.org/licenses/mit-license.php\r\n\t\tAuthor Tobias Koppers @sokra\r\n\t*/\r\n\t// css base code, injected by the css-loader\r\n\t// \r\n\tmodule.exports = function() {\r\n\t\tvar list = [];\r\n\r\n\t\t// return the list of modules as css string\r\n\t\tlist.toString = function toString() {\r\n\t\t\tvar result = [];\r\n\t\t\tfor(var i = 0; i < this.length; i++) {\r\n\t\t\t\tvar item = this[i];\r\n\t\t\t\tif(item[2]) {\r\n\t\t\t\t\tresult.push(\"@media \" + item[2] + \"{\" + item[1] + \"}\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\tresult.push(item[1]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn result.join(\"\");\r\n\t\t};\r\n\r\n\t\t// import a list of modules into the list\r\n\t\tlist.i = function(modules, mediaQuery) {\r\n\t\t\tif(typeof modules === \"string\")\r\n\t\t\t\tmodules = [[null, modules, \"\"]];\r\n\t\t\tvar alreadyImportedModules = {};\r\n\t\t\tfor(var i = 0; i < this.length; i++) {\r\n\t\t\t\tvar id = this[i][0];\r\n\t\t\t\tif(typeof id === \"number\")\r\n\t\t\t\t\talreadyImportedModules[id] = true;\r\n\t\t\t}\r\n\t\t\tfor(var i = 0; i < modules.length; i++) {\r\n\t\t\t\tvar item = modules[i];\r\n\t\t\t\t// skip already imported module\r\n\t\t\t\t// this implementation is not 100% perfect for weird media query combinations\r\n\t\t\t\t//  when a module is imported multiple times with different media queries.\r\n\t\t\t\t//  I hope this will never occur (Hey this way we have smaller bundles)\r\n\t\t\t\tif(typeof item[0] !== \"number\" || !alreadyImportedModules[item[0]]) {\r\n\t\t\t\t\tif(mediaQuery && !item[2]) {\r\n\t\t\t\t\t\titem[2] = mediaQuery;\r\n\t\t\t\t\t} else if(mediaQuery) {\r\n\t\t\t\t\t\titem[2] = \"(\" + item[2] + \") and (\" + mediaQuery + \")\";\r\n\t\t\t\t\t}\r\n\t\t\t\t\tlist.push(item);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\t\treturn list;\r\n\t};\r\n\n\n/***/ }\n/******/ ]);"
  },
  {
    "path": "Part2/app/core/bootstrap.js",
    "content": "/*jshint browser:true */\n'use strict';\n\nrequire('./vendor.js')();\nvar appModule = require('../index');\n\nangular.element(document).ready(function () {\n  angular.bootstrap(document, [appModule.name], {\n    //strictDi: true\n  });\n});"
  },
  {
    "path": "Part2/app/core/vendor.js",
    "content": "module.exports = function () {\n  /* Styles */\n  require('../index.scss');\n  require('../../node_modules/mdi/css/materialdesignicons.min.css');\n\n  /* JS */\n  global.$ = global.jQuery = require('jquery');\n  require('velocity-animate');\n  require('angular');\n  global.moment = require('moment');\n  require('node-lumx');\n};"
  },
  {
    "path": "Part2/app/index.html",
    "content": "<!doctype html>\n<html lang=\"en\">\n<head>\n  <meta charset=\"UTF-8\">\n  <title>Webpack Angular Part 2</title>\n</head>\n<body>\n\n<p>Angular is working: {{1 + 1 === 2}}</p>\n\n<p class=\"fs-headline\">Icons: <i class=\"mdi mdi-twitter\"></i> @Sh_McK</p>\n\n<script src=\"bundle.js\"></script>\n</body>\n</html>"
  },
  {
    "path": "Part2/app/index.js",
    "content": "'use strict';\n\nmodule.exports = angular.module('app', [\n  'lumx'\n]);"
  },
  {
    "path": "Part2/app/index.scss",
    "content": "@import '../node_modules/node-lumx/dist/scss/_lumx.scss';\n"
  },
  {
    "path": "Part2/package.json",
    "content": "{\n  \"name\": \"WebpackAngular\",\n  \"version\": \"0.4.0\",\n  \"description\": \"Webpack Angular Demo: Setup\",\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"start\": \"node node_modules/.bin/webpack-dev-server --content-base app --hot\",\n    \"start-win\": \"node_modules\\\\.bin\\\\webpack-dev-server.cmd -—content-base app --hot\"\n  },\n  \"author\": \"Shawn McKay <me@shmck.com\",\n  \"license\": \"ISC\",\n  \"dependencies\": {\n    \"angular\": \"1.4.8\",\n    \"bourbon\": \"4.2.6\",\n    \"jquery\": \"2.2.0\",\n    \"moment\": \"2.11.1\",\n    \"node-lumx\": \"1.0.0\",\n    \"mdi\": \"1.4.57\",\n    \"velocity-animate\": \"1.2.3\"\n  },\n  \"devDependencies\": {\n    \"babel-core\": \"6.4.0\",\n    \"babel-loader\": \"6.2.1\",\n    \"babel-preset-es2015\": \"6.3.13\",\n    \"bower-webpack-plugin\": \"0.1.9\",\n    \"css-loader\": \"0.23.1\",\n    \"file-loader\": \"0.8.5\",\n    \"imports-loader\": \"0.6.5\",\n    \"jshint\": \"2.9.1\",\n    \"jshint-loader\": \"0.8.3\",\n    \"ng-annotate-loader\": \"0.1.0\",\n    \"node-sass\": \"3.4.2\",\n    \"sass-loader\": \"3.1.2\",\n    \"style-loader\": \"0.13.0\",\n    \"url-loader\": \"0.5.7\",\n    \"webpack\": \"1.12.11\",\n    \"webpack-dev-server\": \"1.14.1\"\n  }\n}\n"
  },
  {
    "path": "Part2/webpack.config.js",
    "content": "'use strict';\n\nvar webpack = require('webpack'),\n  path = require('path'),\n  APP = __dirname + '/app';\n\nmodule.exports = {\n  context: APP,\n  entry: {\n    app: ['webpack/hot/dev-server', './core/bootstrap.js']\n  },\n  output: {\n    path: APP,\n    filename: 'bundle.js'\n  },\n  module: {\n    loaders: [\n      {\n        test: /\\.scss$/,\n        loader: \"style!css!sass\"\n      },\n      {\n        test: /\\.css$/,\n        loader: \"style!css\"\n      },\n      {\n        test: /\\.js$/,\n        loader: 'ng-annotate!babel?presets[]=es2015!jshint',\n        exclude: /node_modules|bower_components/\n      },\n      {\n        test: /\\.(woff|woff2|ttf|eot|svg)(\\?]?.*)?$/,\n        loader : 'file-loader?name=res/[name].[ext]?[hash]'\n      }\n    ]\n  },\n  plugins: [\n    new webpack.HotModuleReplacementPlugin()\n  ]\n};\n"
  },
  {
    "path": "Part3/.jshintrc",
    "content": "{\n  \"esnext\": true,\n  \"node\": true,\n  \"globals\": {\n    \"angular\": true,\n    \"console\": true\n  }\n}"
  },
  {
    "path": "Part3/README.md",
    "content": "#####Part 3\n# 6 Ways to use Webpack Require with Angular\n\nFor some reason, Webpack & Angular reminds me of late 90s Acne commercials.\n\n> It keeps your code: clean, clear & under control\n\nWhat a terrible way to start a blog post, but I'll stick with it. No regrets.\n \n In [Part 1](http://shmck.com/webpack-angular-part-1) & [Part 2](http://shmck.com/webpack-angular-part-2) we prepared setting up the project, all for this moment. Let's take advantage of using Webpack & Angular for creating modular code.\n\n## What is Required\n\nIn this demo we'll keep it simple and make a navbar directive, looking at the different ways of using `require`. \n\n### 1. require('module').name\n\nFirst of all, we'll need a module for handling our layout directives.\n\n/app/core/layout.js\n\n```js\nexport default angular.module('app.layout', [])\n```\n\nWe can simply require the layout by its `(path).name`, allowing us to change module names at any time.\nJust make the loaded module a dependency.\n\n/app/index.js\n\n```js\nmodule.exports = angular.module('app', [\n  /* 3rd party */\n  'lumx',\n  /* modules */\n  require('./core/layout').name\n]);\n```\n\n### 2. Modular Directive Names\n\nThis makes it easy to change directive names in separate files with ease.\n\nLet's start by setting up the navbar template.\n\n/app/core/nav/nav.html\n\n```html\n<header class=\"header bgc-light-blue-600\" ng-cloak>\n<!-- Get the app info and put it in the navbar on the left -->\n  <h1 class=\"main-logo\">\n    <a href=\"/\" class=\"main-logo__link\" lx-ripple=\"white\">\n      <span class=\"main-nav--title\">{{::nav.app.title}} </span>\n      <span class=\"main-nav--version\">v{{::nav.app.version}}</span>\n    </a>\n  </h1>\n<!-- Loop over the links and add them to the navbar on the right -->\n  <nav class=\"main-nav main-nav--lap-and-up\">\n    <ul>\n      <li ng-repeat=\"n in nav.app.links\">\n        <a href=\"{{::n.link}}\" class=\"main-nav__link\" lx-ripple=\"white\">\n          {{::n.text}}</a>\n      </li>\n    </ul>\n  </nav>\n</header>\n```\n\nAdd some style: \n\n/app/core/nav/nav.scss\n\n```scss\n.header {\n  position: fixed;\n  top: 0;\n  right: 0;\n  left: 0;\n  z-index: 999;\n  height: 60px;\n  padding: 12px;\n  color: white;\n  background-color: #4fc1e9;\n  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);\n}\n```\n\nFor the full `nav.scss` file, get it on [Github](https://github.com/ShMcK/WebpackAngularDemos/blob/master/Part3/app/core/nav/nav.scss). This is a short/ugly version.\n\nNext add the directive & controller. Don't be confused, in this case my controller uses ES6 classes.\n\n/app/core/nav/nav.js\n\n```js\nclass NavCtrl {\n  constructor() {\n    this.app = {\n      title: 'Module Loaders',\n      version: '0.3.0',\n      links: [{\n        text: 'Webpack',\n        link: 'http://webpack.github.io'\n      }, {\n        text: 'Require.js',\n        link: 'http://requirejs.org/'\n      }, {\n        text: 'Jspm',\n        link: 'http://jspm.io/'\n      }]\n    };\n  }\n}\nexport default () => {\n  require('./nav.scss');  // load styles for the component\n  return {\n    controller: NavCtrl,\n    controllerAs: 'nav',\n    templateUrl: './core/nav/nav.html'\n  };\n};\n```\n\nNotice the directive was never named. You really only need to name it once, on its angular.module.\n\n/app/core/layout.js\n\n```js\nexport default angular.module('app.layout', [])\n  .directive('lumxNavbar', require('./nav/nav'));\n```\n\nThis way, name changes remain very flexible even between files. \n\nAdd the directive to `index.html` and you should be able to see our working navbar.\n\n/app/index.html\n\n```html\n<body>\n<lumx-navbar></lumx-navbar>\n<!-- ... -->\n```\n\nNice!\n\n### 3. require(templates)\n\nThis `lumxNavbar` templateUrl doesn't allow us to move things around very much. And the path is already getting long: `app/core/nav/nav.html`.\n\nWe can simplify this with the [`raw-loader`](https://github.com/webpack/raw-loader). Install it as a dev dependency.\n\n`npm install -D raw-loader`\n\nAdd another loader to our `app/webpack.config.js` file.\n\n```js\n{\n    test: /\\.html/,\n    loader: 'raw'\n}\n```\nNote: Restart the webpack-dev-server for any config changes to take effect.\nAnd now we can require html files using relative paths, this makes it much easier to move folders around.\n\n/app/core/nav/nav.js\n\n```js\n/* old templateUrl: './core/nav/nav.html' */\ntemplate: require('./nav.html')\n```\n\n### 4. require(json)\n\nBy now you're probably getting the hang of loaders. Just to be sure, let's load some json, get the [`json-loader`](https://github.com/webpack/json-loader).\n\n`npm install -D json-loader`\n\nAdd it to the `webpack.config.js`.\n\n//webpack.config.js\n\n```js\n{\n    test: /\\.json/,\n    loader: 'json'\n}\n```\n\nWe can put all of our main data into an `index.json` file, so when we make frequent navbar changes in the future, we won't have to dive into the nested `/app/core/nav/nav`.\n\n/app/index.json\n\n```json\n{\n  \"title\": \"Module Loaders\",\n  \"version\": \"0.3.0\",\n  \"links\": [{\n    \"text\": \"Webpack\",\n    \"link\": \"http://webpack.github.io\"\n  }, {\n    \"text\": \"Require.js\",\n    \"link\": \"http://requirejs.org/\"\n  }, {\n    \"text\": \"Jspm\",\n    \"link\": \"http://jspm.io/\"\n  }]\n}\n```\n\nLet's require this file in `nav.js`\n\n/app/core/nav/nav.js\n\n```js\nclass NavCtrl {\n  constructor() {\n    this.app = require('../../index.json');\n  }\n}\n```\n\n \nBut what if we move the `nav` folder around? Wouldn't an absolute path to `app/index.json` be more useful?\n\nLuckily, with webpack we can use both.\n\n### 5. require(absolute & || relative paths)\n\nA relative path points to files relative to the current directory.\n```\nparent.js\n└── file.js\n    └── folder\n            └──child.js\n```\n- Parent `../parent.js`\n- At the same level `./file.js`\n- Nested `./folder/child.js`\n\nBut if you want to move the `folder` or `child.js` around, the path will break. \n\nSometimes a relative path is best, but other times it's better to use an absolute path.\n\nTo use absolute paths with Webpack, we must first tell `webpack.config` our absolute root.\n\n/app/webpack.config.js\n\n```js\nmodule.exports = {\n  /* ... */\n  resolve: {\n    root: __dirname + '/app'\n  }\n};\n```\n\nNow we can point to our `index.json` file in a much cleaner way.\nNote: Again, you'll have to restart the webpack-dev-server for any config changes to take effect. \n\n```js\nclass NavCtrl {\n  constructor() {\n    /* old this.app = require('../../index.json'); */\n    this.app = require('index.json');\n  }\n}\n```\n\n### 6. if (condition) { require('module') }\n\nSay we want to run some angular optimizations, but only during production. Normally this would require a separate code base, but with Webpack we can nest modules within if statements.\n\nFor example, with ES6 modules, we can only `import` files at the top of the file. They cannot be wrapped in any blocks. Webpack's require is much more flexible.\n\nThe goal: if (mode === production) { load production optimizations }.\n\n/app/core/config/production.js\n\n```js\nexport default (appModule) => {\n  appModule.config(($compileProvider, $httpProvider) => {\n    /* less watchers from console debugging: https://docs.angularjs.org/guide/production */\n    $compileProvider.debugInfoEnabled(false); \n    /* process multiple responses @ same time: https://docs.angularjs.org/api/ng/provider/$httpProvider */\n    $httpProvider.useApplyAsync(true);\n  });\n};\n```\n\nHere we're loading the root `appModule` and providing it with some config optimizations.\n\nLet's put in an if(){} statement to load `production.js` only when we are using production mode.\n\n/app/core/bootstrap.js\n```js\nrequire('./vendor.js')();\nvar appModule = require('../index');\nif (MODE.production) { // jshint ignore:line\n  require('./config/production')(appModule);\n}\nangular.element(document).ready(() => {\n  angular.bootstrap(document, [appModule.name], {\n    //strictDi: true\n  });\n});\n```\n\nNotice a few optimizations using MODE.production. But where does MODE come from? We can let webpack know.\n\n/app/webpack.config.js\n\n```js\nmodule.exports = {\n/* ... */\nplugins: [\n    new webpack.DefinePlugin({\n      MODE: {\n        production: process.env.NODE_ENV === 'production'\n      }\n    })\n  ]\n}\n```\n\nProduction mode can now be called when declare the `NODE_ENV=production`.\n \n```shell\nNODE_ENV=production node node_modules/.bin/webpack-dev-server --content-base app\n```\n\nThis method can also be used for loading `angular-mocks` during `MODE.test`, etc.\n\n## Conclusion\n \nWebpack's require gives you a lot more flexibility for building modular apps.\n\nAgain, check out the codebase on [Github](https://github.com/ShMcK/WebpackAngularDemos).\n  \nIf you have any suggestions or other uses, post a comment below."
  },
  {
    "path": "Part3/app/bundle.js",
    "content": "/******/ (function(modules) { // webpackBootstrap\n/******/ \tvar parentHotUpdateCallback = this[\"webpackHotUpdate\"];\n/******/ \tthis[\"webpackHotUpdate\"] = \r\n/******/ \tfunction webpackHotUpdateCallback(chunkId, moreModules) { // eslint-disable-line no-unused-vars\r\n/******/ \t\thotAddUpdateChunk(chunkId, moreModules);\r\n/******/ \t\tif(parentHotUpdateCallback) parentHotUpdateCallback(chunkId, moreModules);\r\n/******/ \t}\r\n/******/ \t\r\n/******/ \tfunction hotDownloadUpdateChunk(chunkId) { // eslint-disable-line no-unused-vars\r\n/******/ \t\tvar head = document.getElementsByTagName(\"head\")[0];\r\n/******/ \t\tvar script = document.createElement(\"script\");\r\n/******/ \t\tscript.type = \"text/javascript\";\r\n/******/ \t\tscript.charset = \"utf-8\";\r\n/******/ \t\tscript.src = __webpack_require__.p + \"\" + chunkId + \".\" + hotCurrentHash + \".hot-update.js\";\r\n/******/ \t\thead.appendChild(script);\r\n/******/ \t}\r\n/******/ \t\r\n/******/ \tfunction hotDownloadManifest(callback) { // eslint-disable-line no-unused-vars\r\n/******/ \t\tif(typeof XMLHttpRequest === \"undefined\")\r\n/******/ \t\t\treturn callback(new Error(\"No browser support\"));\r\n/******/ \t\ttry {\r\n/******/ \t\t\tvar request = new XMLHttpRequest();\r\n/******/ \t\t\tvar requestPath = __webpack_require__.p + \"\" + hotCurrentHash + \".hot-update.json\";\r\n/******/ \t\t\trequest.open(\"GET\", requestPath, true);\r\n/******/ \t\t\trequest.timeout = 10000;\r\n/******/ \t\t\trequest.send(null);\r\n/******/ \t\t} catch(err) {\r\n/******/ \t\t\treturn callback(err);\r\n/******/ \t\t}\r\n/******/ \t\trequest.onreadystatechange = function() {\r\n/******/ \t\t\tif(request.readyState !== 4) return;\r\n/******/ \t\t\tif(request.status === 0) {\r\n/******/ \t\t\t\t// timeout\r\n/******/ \t\t\t\tcallback(new Error(\"Manifest request to \" + requestPath + \" timed out.\"));\r\n/******/ \t\t\t} else if(request.status === 404) {\r\n/******/ \t\t\t\t// no update available\r\n/******/ \t\t\t\tcallback();\r\n/******/ \t\t\t} else if(request.status !== 200 && request.status !== 304) {\r\n/******/ \t\t\t\t// other failure\r\n/******/ \t\t\t\tcallback(new Error(\"Manifest request to \" + requestPath + \" failed.\"));\r\n/******/ \t\t\t} else {\r\n/******/ \t\t\t\t// success\r\n/******/ \t\t\t\ttry {\r\n/******/ \t\t\t\t\tvar update = JSON.parse(request.responseText);\r\n/******/ \t\t\t\t} catch(e) {\r\n/******/ \t\t\t\t\tcallback(e);\r\n/******/ \t\t\t\t\treturn;\r\n/******/ \t\t\t\t}\r\n/******/ \t\t\t\tcallback(null, update);\r\n/******/ \t\t\t}\r\n/******/ \t\t};\r\n/******/ \t}\r\n\n/******/ \t\r\n/******/ \t\r\n/******/ \tvar hotApplyOnUpdate = true;\r\n/******/ \tvar hotCurrentHash = \"b8eb5959fe55904cb3e1\"; // eslint-disable-line no-unused-vars\r\n/******/ \tvar hotCurrentModuleData = {};\r\n/******/ \tvar hotCurrentParents = []; // eslint-disable-line no-unused-vars\r\n/******/ \t\r\n/******/ \tfunction hotCreateRequire(moduleId) { // eslint-disable-line no-unused-vars\r\n/******/ \t\tvar me = installedModules[moduleId];\r\n/******/ \t\tif(!me) return __webpack_require__;\r\n/******/ \t\tvar fn = function(request) {\r\n/******/ \t\t\tif(me.hot.active) {\r\n/******/ \t\t\t\tif(installedModules[request]) {\r\n/******/ \t\t\t\t\tif(installedModules[request].parents.indexOf(moduleId) < 0)\r\n/******/ \t\t\t\t\t\tinstalledModules[request].parents.push(moduleId);\r\n/******/ \t\t\t\t\tif(me.children.indexOf(request) < 0)\r\n/******/ \t\t\t\t\t\tme.children.push(request);\r\n/******/ \t\t\t\t} else hotCurrentParents = [moduleId];\r\n/******/ \t\t\t} else {\r\n/******/ \t\t\t\tconsole.warn(\"[HMR] unexpected require(\" + request + \") from disposed module \" + moduleId);\r\n/******/ \t\t\t\thotCurrentParents = [];\r\n/******/ \t\t\t}\r\n/******/ \t\t\treturn __webpack_require__(request);\r\n/******/ \t\t};\r\n/******/ \t\tfor(var name in __webpack_require__) {\r\n/******/ \t\t\tif(Object.prototype.hasOwnProperty.call(__webpack_require__, name)) {\r\n/******/ \t\t\t\tfn[name] = __webpack_require__[name];\r\n/******/ \t\t\t}\r\n/******/ \t\t}\r\n/******/ \t\tfn.e = function(chunkId, callback) {\r\n/******/ \t\t\tif(hotStatus === \"ready\")\r\n/******/ \t\t\t\thotSetStatus(\"prepare\");\r\n/******/ \t\t\thotChunksLoading++;\r\n/******/ \t\t\t__webpack_require__.e(chunkId, function() {\r\n/******/ \t\t\t\ttry {\r\n/******/ \t\t\t\t\tcallback.call(null, fn);\r\n/******/ \t\t\t\t} finally {\r\n/******/ \t\t\t\t\tfinishChunkLoading();\r\n/******/ \t\t\t\t}\r\n/******/ \t\r\n/******/ \t\t\t\tfunction finishChunkLoading() {\r\n/******/ \t\t\t\t\thotChunksLoading--;\r\n/******/ \t\t\t\t\tif(hotStatus === \"prepare\") {\r\n/******/ \t\t\t\t\t\tif(!hotWaitingFilesMap[chunkId]) {\r\n/******/ \t\t\t\t\t\t\thotEnsureUpdateChunk(chunkId);\r\n/******/ \t\t\t\t\t\t}\r\n/******/ \t\t\t\t\t\tif(hotChunksLoading === 0 && hotWaitingFiles === 0) {\r\n/******/ \t\t\t\t\t\t\thotUpdateDownloaded();\r\n/******/ \t\t\t\t\t\t}\r\n/******/ \t\t\t\t\t}\r\n/******/ \t\t\t\t}\r\n/******/ \t\t\t});\r\n/******/ \t\t};\r\n/******/ \t\treturn fn;\r\n/******/ \t}\r\n/******/ \t\r\n/******/ \tfunction hotCreateModule(moduleId) { // eslint-disable-line no-unused-vars\r\n/******/ \t\tvar hot = {\r\n/******/ \t\t\t// private stuff\r\n/******/ \t\t\t_acceptedDependencies: {},\r\n/******/ \t\t\t_declinedDependencies: {},\r\n/******/ \t\t\t_selfAccepted: false,\r\n/******/ \t\t\t_selfDeclined: false,\r\n/******/ \t\t\t_disposeHandlers: [],\r\n/******/ \t\r\n/******/ \t\t\t// Module API\r\n/******/ \t\t\tactive: true,\r\n/******/ \t\t\taccept: function(dep, callback) {\r\n/******/ \t\t\t\tif(typeof dep === \"undefined\")\r\n/******/ \t\t\t\t\thot._selfAccepted = true;\r\n/******/ \t\t\t\telse if(typeof dep === \"function\")\r\n/******/ \t\t\t\t\thot._selfAccepted = dep;\r\n/******/ \t\t\t\telse if(typeof dep === \"object\")\r\n/******/ \t\t\t\t\tfor(var i = 0; i < dep.length; i++)\r\n/******/ \t\t\t\t\t\thot._acceptedDependencies[dep[i]] = callback;\r\n/******/ \t\t\t\telse\r\n/******/ \t\t\t\t\thot._acceptedDependencies[dep] = callback;\r\n/******/ \t\t\t},\r\n/******/ \t\t\tdecline: function(dep) {\r\n/******/ \t\t\t\tif(typeof dep === \"undefined\")\r\n/******/ \t\t\t\t\thot._selfDeclined = true;\r\n/******/ \t\t\t\telse if(typeof dep === \"number\")\r\n/******/ \t\t\t\t\thot._declinedDependencies[dep] = true;\r\n/******/ \t\t\t\telse\r\n/******/ \t\t\t\t\tfor(var i = 0; i < dep.length; i++)\r\n/******/ \t\t\t\t\t\thot._declinedDependencies[dep[i]] = true;\r\n/******/ \t\t\t},\r\n/******/ \t\t\tdispose: function(callback) {\r\n/******/ \t\t\t\thot._disposeHandlers.push(callback);\r\n/******/ \t\t\t},\r\n/******/ \t\t\taddDisposeHandler: function(callback) {\r\n/******/ \t\t\t\thot._disposeHandlers.push(callback);\r\n/******/ \t\t\t},\r\n/******/ \t\t\tremoveDisposeHandler: function(callback) {\r\n/******/ \t\t\t\tvar idx = hot._disposeHandlers.indexOf(callback);\r\n/******/ \t\t\t\tif(idx >= 0) hot._disposeHandlers.splice(idx, 1);\r\n/******/ \t\t\t},\r\n/******/ \t\r\n/******/ \t\t\t// Management API\r\n/******/ \t\t\tcheck: hotCheck,\r\n/******/ \t\t\tapply: hotApply,\r\n/******/ \t\t\tstatus: function(l) {\r\n/******/ \t\t\t\tif(!l) return hotStatus;\r\n/******/ \t\t\t\thotStatusHandlers.push(l);\r\n/******/ \t\t\t},\r\n/******/ \t\t\taddStatusHandler: function(l) {\r\n/******/ \t\t\t\thotStatusHandlers.push(l);\r\n/******/ \t\t\t},\r\n/******/ \t\t\tremoveStatusHandler: function(l) {\r\n/******/ \t\t\t\tvar idx = hotStatusHandlers.indexOf(l);\r\n/******/ \t\t\t\tif(idx >= 0) hotStatusHandlers.splice(idx, 1);\r\n/******/ \t\t\t},\r\n/******/ \t\r\n/******/ \t\t\t//inherit from previous dispose call\r\n/******/ \t\t\tdata: hotCurrentModuleData[moduleId]\r\n/******/ \t\t};\r\n/******/ \t\treturn hot;\r\n/******/ \t}\r\n/******/ \t\r\n/******/ \tvar hotStatusHandlers = [];\r\n/******/ \tvar hotStatus = \"idle\";\r\n/******/ \t\r\n/******/ \tfunction hotSetStatus(newStatus) {\r\n/******/ \t\thotStatus = newStatus;\r\n/******/ \t\tfor(var i = 0; i < hotStatusHandlers.length; i++)\r\n/******/ \t\t\thotStatusHandlers[i].call(null, newStatus);\r\n/******/ \t}\r\n/******/ \t\r\n/******/ \t// while downloading\r\n/******/ \tvar hotWaitingFiles = 0;\r\n/******/ \tvar hotChunksLoading = 0;\r\n/******/ \tvar hotWaitingFilesMap = {};\r\n/******/ \tvar hotRequestedFilesMap = {};\r\n/******/ \tvar hotAvailibleFilesMap = {};\r\n/******/ \tvar hotCallback;\r\n/******/ \t\r\n/******/ \t// The update info\r\n/******/ \tvar hotUpdate, hotUpdateNewHash;\r\n/******/ \t\r\n/******/ \tfunction toModuleId(id) {\r\n/******/ \t\tvar isNumber = (+id) + \"\" === id;\r\n/******/ \t\treturn isNumber ? +id : id;\r\n/******/ \t}\r\n/******/ \t\r\n/******/ \tfunction hotCheck(apply, callback) {\r\n/******/ \t\tif(hotStatus !== \"idle\") throw new Error(\"check() is only allowed in idle status\");\r\n/******/ \t\tif(typeof apply === \"function\") {\r\n/******/ \t\t\thotApplyOnUpdate = false;\r\n/******/ \t\t\tcallback = apply;\r\n/******/ \t\t} else {\r\n/******/ \t\t\thotApplyOnUpdate = apply;\r\n/******/ \t\t\tcallback = callback || function(err) {\r\n/******/ \t\t\t\tif(err) throw err;\r\n/******/ \t\t\t};\r\n/******/ \t\t}\r\n/******/ \t\thotSetStatus(\"check\");\r\n/******/ \t\thotDownloadManifest(function(err, update) {\r\n/******/ \t\t\tif(err) return callback(err);\r\n/******/ \t\t\tif(!update) {\r\n/******/ \t\t\t\thotSetStatus(\"idle\");\r\n/******/ \t\t\t\tcallback(null, null);\r\n/******/ \t\t\t\treturn;\r\n/******/ \t\t\t}\r\n/******/ \t\r\n/******/ \t\t\thotRequestedFilesMap = {};\r\n/******/ \t\t\thotAvailibleFilesMap = {};\r\n/******/ \t\t\thotWaitingFilesMap = {};\r\n/******/ \t\t\tfor(var i = 0; i < update.c.length; i++)\r\n/******/ \t\t\t\thotAvailibleFilesMap[update.c[i]] = true;\r\n/******/ \t\t\thotUpdateNewHash = update.h;\r\n/******/ \t\r\n/******/ \t\t\thotSetStatus(\"prepare\");\r\n/******/ \t\t\thotCallback = callback;\r\n/******/ \t\t\thotUpdate = {};\r\n/******/ \t\t\tvar chunkId = 0;\r\n/******/ \t\t\t{ // eslint-disable-line no-lone-blocks\r\n/******/ \t\t\t\t/*globals chunkId */\r\n/******/ \t\t\t\thotEnsureUpdateChunk(chunkId);\r\n/******/ \t\t\t}\r\n/******/ \t\t\tif(hotStatus === \"prepare\" && hotChunksLoading === 0 && hotWaitingFiles === 0) {\r\n/******/ \t\t\t\thotUpdateDownloaded();\r\n/******/ \t\t\t}\r\n/******/ \t\t});\r\n/******/ \t}\r\n/******/ \t\r\n/******/ \tfunction hotAddUpdateChunk(chunkId, moreModules) { // eslint-disable-line no-unused-vars\r\n/******/ \t\tif(!hotAvailibleFilesMap[chunkId] || !hotRequestedFilesMap[chunkId])\r\n/******/ \t\t\treturn;\r\n/******/ \t\thotRequestedFilesMap[chunkId] = false;\r\n/******/ \t\tfor(var moduleId in moreModules) {\r\n/******/ \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\r\n/******/ \t\t\t\thotUpdate[moduleId] = moreModules[moduleId];\r\n/******/ \t\t\t}\r\n/******/ \t\t}\r\n/******/ \t\tif(--hotWaitingFiles === 0 && hotChunksLoading === 0) {\r\n/******/ \t\t\thotUpdateDownloaded();\r\n/******/ \t\t}\r\n/******/ \t}\r\n/******/ \t\r\n/******/ \tfunction hotEnsureUpdateChunk(chunkId) {\r\n/******/ \t\tif(!hotAvailibleFilesMap[chunkId]) {\r\n/******/ \t\t\thotWaitingFilesMap[chunkId] = true;\r\n/******/ \t\t} else {\r\n/******/ \t\t\thotRequestedFilesMap[chunkId] = true;\r\n/******/ \t\t\thotWaitingFiles++;\r\n/******/ \t\t\thotDownloadUpdateChunk(chunkId);\r\n/******/ \t\t}\r\n/******/ \t}\r\n/******/ \t\r\n/******/ \tfunction hotUpdateDownloaded() {\r\n/******/ \t\thotSetStatus(\"ready\");\r\n/******/ \t\tvar callback = hotCallback;\r\n/******/ \t\thotCallback = null;\r\n/******/ \t\tif(!callback) return;\r\n/******/ \t\tif(hotApplyOnUpdate) {\r\n/******/ \t\t\thotApply(hotApplyOnUpdate, callback);\r\n/******/ \t\t} else {\r\n/******/ \t\t\tvar outdatedModules = [];\r\n/******/ \t\t\tfor(var id in hotUpdate) {\r\n/******/ \t\t\t\tif(Object.prototype.hasOwnProperty.call(hotUpdate, id)) {\r\n/******/ \t\t\t\t\toutdatedModules.push(toModuleId(id));\r\n/******/ \t\t\t\t}\r\n/******/ \t\t\t}\r\n/******/ \t\t\tcallback(null, outdatedModules);\r\n/******/ \t\t}\r\n/******/ \t}\r\n/******/ \t\r\n/******/ \tfunction hotApply(options, callback) {\r\n/******/ \t\tif(hotStatus !== \"ready\") throw new Error(\"apply() is only allowed in ready status\");\r\n/******/ \t\tif(typeof options === \"function\") {\r\n/******/ \t\t\tcallback = options;\r\n/******/ \t\t\toptions = {};\r\n/******/ \t\t} else if(options && typeof options === \"object\") {\r\n/******/ \t\t\tcallback = callback || function(err) {\r\n/******/ \t\t\t\tif(err) throw err;\r\n/******/ \t\t\t};\r\n/******/ \t\t} else {\r\n/******/ \t\t\toptions = {};\r\n/******/ \t\t\tcallback = callback || function(err) {\r\n/******/ \t\t\t\tif(err) throw err;\r\n/******/ \t\t\t};\r\n/******/ \t\t}\r\n/******/ \t\r\n/******/ \t\tfunction getAffectedStuff(module) {\r\n/******/ \t\t\tvar outdatedModules = [module];\r\n/******/ \t\t\tvar outdatedDependencies = {};\r\n/******/ \t\r\n/******/ \t\t\tvar queue = outdatedModules.slice();\r\n/******/ \t\t\twhile(queue.length > 0) {\r\n/******/ \t\t\t\tvar moduleId = queue.pop();\r\n/******/ \t\t\t\tvar module = installedModules[moduleId];\r\n/******/ \t\t\t\tif(!module || module.hot._selfAccepted)\r\n/******/ \t\t\t\t\tcontinue;\r\n/******/ \t\t\t\tif(module.hot._selfDeclined) {\r\n/******/ \t\t\t\t\treturn new Error(\"Aborted because of self decline: \" + moduleId);\r\n/******/ \t\t\t\t}\r\n/******/ \t\t\t\tif(moduleId === 0) {\r\n/******/ \t\t\t\t\treturn;\r\n/******/ \t\t\t\t}\r\n/******/ \t\t\t\tfor(var i = 0; i < module.parents.length; i++) {\r\n/******/ \t\t\t\t\tvar parentId = module.parents[i];\r\n/******/ \t\t\t\t\tvar parent = installedModules[parentId];\r\n/******/ \t\t\t\t\tif(parent.hot._declinedDependencies[moduleId]) {\r\n/******/ \t\t\t\t\t\treturn new Error(\"Aborted because of declined dependency: \" + moduleId + \" in \" + parentId);\r\n/******/ \t\t\t\t\t}\r\n/******/ \t\t\t\t\tif(outdatedModules.indexOf(parentId) >= 0) continue;\r\n/******/ \t\t\t\t\tif(parent.hot._acceptedDependencies[moduleId]) {\r\n/******/ \t\t\t\t\t\tif(!outdatedDependencies[parentId])\r\n/******/ \t\t\t\t\t\t\toutdatedDependencies[parentId] = [];\r\n/******/ \t\t\t\t\t\taddAllToSet(outdatedDependencies[parentId], [moduleId]);\r\n/******/ \t\t\t\t\t\tcontinue;\r\n/******/ \t\t\t\t\t}\r\n/******/ \t\t\t\t\tdelete outdatedDependencies[parentId];\r\n/******/ \t\t\t\t\toutdatedModules.push(parentId);\r\n/******/ \t\t\t\t\tqueue.push(parentId);\r\n/******/ \t\t\t\t}\r\n/******/ \t\t\t}\r\n/******/ \t\r\n/******/ \t\t\treturn [outdatedModules, outdatedDependencies];\r\n/******/ \t\t}\r\n/******/ \t\r\n/******/ \t\tfunction addAllToSet(a, b) {\r\n/******/ \t\t\tfor(var i = 0; i < b.length; i++) {\r\n/******/ \t\t\t\tvar item = b[i];\r\n/******/ \t\t\t\tif(a.indexOf(item) < 0)\r\n/******/ \t\t\t\t\ta.push(item);\r\n/******/ \t\t\t}\r\n/******/ \t\t}\r\n/******/ \t\r\n/******/ \t\t// at begin all updates modules are outdated\r\n/******/ \t\t// the \"outdated\" status can propagate to parents if they don't accept the children\r\n/******/ \t\tvar outdatedDependencies = {};\r\n/******/ \t\tvar outdatedModules = [];\r\n/******/ \t\tvar appliedUpdate = {};\r\n/******/ \t\tfor(var id in hotUpdate) {\r\n/******/ \t\t\tif(Object.prototype.hasOwnProperty.call(hotUpdate, id)) {\r\n/******/ \t\t\t\tvar moduleId = toModuleId(id);\r\n/******/ \t\t\t\tvar result = getAffectedStuff(moduleId);\r\n/******/ \t\t\t\tif(!result) {\r\n/******/ \t\t\t\t\tif(options.ignoreUnaccepted)\r\n/******/ \t\t\t\t\t\tcontinue;\r\n/******/ \t\t\t\t\thotSetStatus(\"abort\");\r\n/******/ \t\t\t\t\treturn callback(new Error(\"Aborted because \" + moduleId + \" is not accepted\"));\r\n/******/ \t\t\t\t}\r\n/******/ \t\t\t\tif(result instanceof Error) {\r\n/******/ \t\t\t\t\thotSetStatus(\"abort\");\r\n/******/ \t\t\t\t\treturn callback(result);\r\n/******/ \t\t\t\t}\r\n/******/ \t\t\t\tappliedUpdate[moduleId] = hotUpdate[moduleId];\r\n/******/ \t\t\t\taddAllToSet(outdatedModules, result[0]);\r\n/******/ \t\t\t\tfor(var moduleId in result[1]) {\r\n/******/ \t\t\t\t\tif(Object.prototype.hasOwnProperty.call(result[1], moduleId)) {\r\n/******/ \t\t\t\t\t\tif(!outdatedDependencies[moduleId])\r\n/******/ \t\t\t\t\t\t\toutdatedDependencies[moduleId] = [];\r\n/******/ \t\t\t\t\t\taddAllToSet(outdatedDependencies[moduleId], result[1][moduleId]);\r\n/******/ \t\t\t\t\t}\r\n/******/ \t\t\t\t}\r\n/******/ \t\t\t}\r\n/******/ \t\t}\r\n/******/ \t\r\n/******/ \t\t// Store self accepted outdated modules to require them later by the module system\r\n/******/ \t\tvar outdatedSelfAcceptedModules = [];\r\n/******/ \t\tfor(var i = 0; i < outdatedModules.length; i++) {\r\n/******/ \t\t\tvar moduleId = outdatedModules[i];\r\n/******/ \t\t\tif(installedModules[moduleId] && installedModules[moduleId].hot._selfAccepted)\r\n/******/ \t\t\t\toutdatedSelfAcceptedModules.push({\r\n/******/ \t\t\t\t\tmodule: moduleId,\r\n/******/ \t\t\t\t\terrorHandler: installedModules[moduleId].hot._selfAccepted\r\n/******/ \t\t\t\t});\r\n/******/ \t\t}\r\n/******/ \t\r\n/******/ \t\t// Now in \"dispose\" phase\r\n/******/ \t\thotSetStatus(\"dispose\");\r\n/******/ \t\tvar queue = outdatedModules.slice();\r\n/******/ \t\twhile(queue.length > 0) {\r\n/******/ \t\t\tvar moduleId = queue.pop();\r\n/******/ \t\t\tvar module = installedModules[moduleId];\r\n/******/ \t\t\tif(!module) continue;\r\n/******/ \t\r\n/******/ \t\t\tvar data = {};\r\n/******/ \t\r\n/******/ \t\t\t// Call dispose handlers\r\n/******/ \t\t\tvar disposeHandlers = module.hot._disposeHandlers;\r\n/******/ \t\t\tfor(var j = 0; j < disposeHandlers.length; j++) {\r\n/******/ \t\t\t\tvar cb = disposeHandlers[j];\r\n/******/ \t\t\t\tcb(data);\r\n/******/ \t\t\t}\r\n/******/ \t\t\thotCurrentModuleData[moduleId] = data;\r\n/******/ \t\r\n/******/ \t\t\t// disable module (this disables requires from this module)\r\n/******/ \t\t\tmodule.hot.active = false;\r\n/******/ \t\r\n/******/ \t\t\t// remove module from cache\r\n/******/ \t\t\tdelete installedModules[moduleId];\r\n/******/ \t\r\n/******/ \t\t\t// remove \"parents\" references from all children\r\n/******/ \t\t\tfor(var j = 0; j < module.children.length; j++) {\r\n/******/ \t\t\t\tvar child = installedModules[module.children[j]];\r\n/******/ \t\t\t\tif(!child) continue;\r\n/******/ \t\t\t\tvar idx = child.parents.indexOf(moduleId);\r\n/******/ \t\t\t\tif(idx >= 0) {\r\n/******/ \t\t\t\t\tchild.parents.splice(idx, 1);\r\n/******/ \t\t\t\t}\r\n/******/ \t\t\t}\r\n/******/ \t\t}\r\n/******/ \t\r\n/******/ \t\t// remove outdated dependency from module children\r\n/******/ \t\tfor(var moduleId in outdatedDependencies) {\r\n/******/ \t\t\tif(Object.prototype.hasOwnProperty.call(outdatedDependencies, moduleId)) {\r\n/******/ \t\t\t\tvar module = installedModules[moduleId];\r\n/******/ \t\t\t\tvar moduleOutdatedDependencies = outdatedDependencies[moduleId];\r\n/******/ \t\t\t\tfor(var j = 0; j < moduleOutdatedDependencies.length; j++) {\r\n/******/ \t\t\t\t\tvar dependency = moduleOutdatedDependencies[j];\r\n/******/ \t\t\t\t\tvar idx = module.children.indexOf(dependency);\r\n/******/ \t\t\t\t\tif(idx >= 0) module.children.splice(idx, 1);\r\n/******/ \t\t\t\t}\r\n/******/ \t\t\t}\r\n/******/ \t\t}\r\n/******/ \t\r\n/******/ \t\t// Not in \"apply\" phase\r\n/******/ \t\thotSetStatus(\"apply\");\r\n/******/ \t\r\n/******/ \t\thotCurrentHash = hotUpdateNewHash;\r\n/******/ \t\r\n/******/ \t\t// insert new code\r\n/******/ \t\tfor(var moduleId in appliedUpdate) {\r\n/******/ \t\t\tif(Object.prototype.hasOwnProperty.call(appliedUpdate, moduleId)) {\r\n/******/ \t\t\t\tmodules[moduleId] = appliedUpdate[moduleId];\r\n/******/ \t\t\t}\r\n/******/ \t\t}\r\n/******/ \t\r\n/******/ \t\t// call accept handlers\r\n/******/ \t\tvar error = null;\r\n/******/ \t\tfor(var moduleId in outdatedDependencies) {\r\n/******/ \t\t\tif(Object.prototype.hasOwnProperty.call(outdatedDependencies, moduleId)) {\r\n/******/ \t\t\t\tvar module = installedModules[moduleId];\r\n/******/ \t\t\t\tvar moduleOutdatedDependencies = outdatedDependencies[moduleId];\r\n/******/ \t\t\t\tvar callbacks = [];\r\n/******/ \t\t\t\tfor(var i = 0; i < moduleOutdatedDependencies.length; i++) {\r\n/******/ \t\t\t\t\tvar dependency = moduleOutdatedDependencies[i];\r\n/******/ \t\t\t\t\tvar cb = module.hot._acceptedDependencies[dependency];\r\n/******/ \t\t\t\t\tif(callbacks.indexOf(cb) >= 0) continue;\r\n/******/ \t\t\t\t\tcallbacks.push(cb);\r\n/******/ \t\t\t\t}\r\n/******/ \t\t\t\tfor(var i = 0; i < callbacks.length; i++) {\r\n/******/ \t\t\t\t\tvar cb = callbacks[i];\r\n/******/ \t\t\t\t\ttry {\r\n/******/ \t\t\t\t\t\tcb(outdatedDependencies);\r\n/******/ \t\t\t\t\t} catch(err) {\r\n/******/ \t\t\t\t\t\tif(!error)\r\n/******/ \t\t\t\t\t\t\terror = err;\r\n/******/ \t\t\t\t\t}\r\n/******/ \t\t\t\t}\r\n/******/ \t\t\t}\r\n/******/ \t\t}\r\n/******/ \t\r\n/******/ \t\t// Load self accepted modules\r\n/******/ \t\tfor(var i = 0; i < outdatedSelfAcceptedModules.length; i++) {\r\n/******/ \t\t\tvar item = outdatedSelfAcceptedModules[i];\r\n/******/ \t\t\tvar moduleId = item.module;\r\n/******/ \t\t\thotCurrentParents = [moduleId];\r\n/******/ \t\t\ttry {\r\n/******/ \t\t\t\t__webpack_require__(moduleId);\r\n/******/ \t\t\t} catch(err) {\r\n/******/ \t\t\t\tif(typeof item.errorHandler === \"function\") {\r\n/******/ \t\t\t\t\ttry {\r\n/******/ \t\t\t\t\t\titem.errorHandler(err);\r\n/******/ \t\t\t\t\t} catch(err) {\r\n/******/ \t\t\t\t\t\tif(!error)\r\n/******/ \t\t\t\t\t\t\terror = err;\r\n/******/ \t\t\t\t\t}\r\n/******/ \t\t\t\t} else if(!error)\r\n/******/ \t\t\t\t\terror = err;\r\n/******/ \t\t\t}\r\n/******/ \t\t}\r\n/******/ \t\r\n/******/ \t\t// handle errors in accept handlers and self accepted module load\r\n/******/ \t\tif(error) {\r\n/******/ \t\t\thotSetStatus(\"fail\");\r\n/******/ \t\t\treturn callback(error);\r\n/******/ \t\t}\r\n/******/ \t\r\n/******/ \t\thotSetStatus(\"idle\");\r\n/******/ \t\tcallback(null, outdatedModules);\r\n/******/ \t}\r\n\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\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\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\texports: {},\n/******/ \t\t\tid: moduleId,\n/******/ \t\t\tloaded: false,\n/******/ \t\t\thot: hotCreateModule(moduleId),\n/******/ \t\t\tparents: hotCurrentParents,\n/******/ \t\t\tchildren: []\n/******/ \t\t};\n\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, hotCreateRequire(moduleId));\n\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.loaded = true;\n\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n\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// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n\n/******/ \t// __webpack_hash__\n/******/ \t__webpack_require__.h = function() { return hotCurrentHash; };\n\n/******/ \t// Load entry module and return exports\n/******/ \treturn hotCreateRequire(0)(0);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(1);\n\tmodule.exports = __webpack_require__(3);\n\n\n/***/ },\n/* 1 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/*\r\n\t\tMIT License http://www.opensource.org/licenses/mit-license.php\r\n\t\tAuthor Tobias Koppers @sokra\r\n\t*/\r\n\t/*globals window __webpack_hash__ */\r\n\tif(true) {\r\n\t\tvar lastData;\r\n\t\tvar upToDate = function upToDate() {\r\n\t\t\treturn lastData.indexOf(__webpack_require__.h()) >= 0;\r\n\t\t};\r\n\t\tvar check = function check() {\r\n\t\t\tmodule.hot.check(true, function(err, updatedModules) {\r\n\t\t\t\tif(err) {\r\n\t\t\t\t\tif(module.hot.status() in {\r\n\t\t\t\t\t\t\tabort: 1,\r\n\t\t\t\t\t\t\tfail: 1\r\n\t\t\t\t\t\t}) {\r\n\t\t\t\t\t\tconsole.warn(\"[HMR] Cannot apply update. Need to do a full reload!\");\r\n\t\t\t\t\t\tconsole.warn(\"[HMR] \" + err.stack || err.message);\r\n\t\t\t\t\t\twindow.location.reload();\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tconsole.warn(\"[HMR] Update failed: \" + err.stack || err.message);\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif(!updatedModules) {\r\n\t\t\t\t\tconsole.warn(\"[HMR] Cannot find update. Need to do a full reload!\");\r\n\t\t\t\t\tconsole.warn(\"[HMR] (Probably because of restarting the webpack-dev-server)\");\r\n\t\t\t\t\twindow.location.reload();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif(!upToDate()) {\r\n\t\t\t\t\tcheck();\r\n\t\t\t\t}\r\n\r\n\t\t\t\t__webpack_require__(2)(updatedModules, updatedModules);\r\n\r\n\t\t\t\tif(upToDate()) {\r\n\t\t\t\t\tconsole.log(\"[HMR] App is up to date.\");\r\n\t\t\t\t}\r\n\r\n\t\t\t});\r\n\t\t};\r\n\t\tvar addEventListener = window.addEventListener ? function(eventName, listener) {\r\n\t\t\twindow.addEventListener(eventName, listener, false);\r\n\t\t} : function(eventName, listener) {\r\n\t\t\twindow.attachEvent(\"on\" + eventName, listener);\r\n\t\t};\r\n\t\taddEventListener(\"message\", function(event) {\r\n\t\t\tif(typeof event.data === \"string\" && event.data.indexOf(\"webpackHotUpdate\") === 0) {\r\n\t\t\t\tlastData = event.data;\r\n\t\t\t\tif(!upToDate() && module.hot.status() === \"idle\") {\r\n\t\t\t\t\tconsole.log(\"[HMR] Checking for updates on the server...\");\r\n\t\t\t\t\tcheck();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tconsole.log(\"[HMR] Waiting for update signal from WDS...\");\r\n\t} else {\r\n\t\tthrow new Error(\"[HMR] Hot Module Replacement is disabled.\");\r\n\t}\r\n\n\n/***/ },\n/* 2 */\n/***/ function(module, exports) {\n\n\t/*\r\n\t\tMIT License http://www.opensource.org/licenses/mit-license.php\r\n\t\tAuthor Tobias Koppers @sokra\r\n\t*/\r\n\tmodule.exports = function(updatedModules, renewedModules) {\r\n\t\tvar unacceptedModules = updatedModules.filter(function(moduleId) {\r\n\t\t\treturn renewedModules && renewedModules.indexOf(moduleId) < 0;\r\n\t\t});\r\n\r\n\t\tif(unacceptedModules.length > 0) {\r\n\t\t\tconsole.warn(\"[HMR] The following modules couldn't be hot updated: (They would need a full reload!)\");\r\n\t\t\tunacceptedModules.forEach(function(moduleId) {\r\n\t\t\t\tconsole.warn(\"[HMR]  - \" + moduleId);\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tif(!renewedModules || renewedModules.length === 0) {\r\n\t\t\tconsole.log(\"[HMR] Nothing hot updated.\");\r\n\t\t} else {\r\n\t\t\tconsole.log(\"[HMR] Updated modules:\");\r\n\t\t\trenewedModules.forEach(function(moduleId) {\r\n\t\t\t\tconsole.log(\"[HMR]  - \" + moduleId);\r\n\t\t\t});\r\n\t\t}\r\n\t};\r\n\n\n/***/ },\n/* 3 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/*jshint browser:true */\n\t'use strict';\n\n\t__webpack_require__(4)();\n\tvar appModule = __webpack_require__(123);\n\n\tif (false) {\n\t  // jshint ignore:line\n\t  require('./config/production')(appModule);\n\t}\n\n\tangular.element(document).ready(function () {\n\t  angular.bootstrap(document, [appModule.name], {\n\t    //strictDi: true\n\t  });\n\t});\n\n/***/ },\n/* 4 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {'use strict';\n\n\tmodule.exports = function () {\n\t  /* Styles */\n\t  __webpack_require__(5);\n\t  __webpack_require__(9);\n\t  __webpack_require__(17);\n\t  /* JS */\n\t  global.$ = global.jQuery = __webpack_require__(19);\n\t  __webpack_require__(20);\n\t  __webpack_require__(21);\n\t  global.moment = __webpack_require__(23);\n\t  __webpack_require__(122);\n\t};\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 5 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// style-loader: Adds some css to the DOM by adding a <style> tag\n\n\t// load the styles\n\tvar content = __webpack_require__(6);\n\tif(typeof content === 'string') content = [[module.id, content, '']];\n\t// add the styles to the DOM\n\tvar update = __webpack_require__(8)(content, {});\n\tif(content.locals) module.exports = content.locals;\n\t// Hot Module Replacement\n\tif(true) {\n\t\t// When the styles change, update the <style> tags\n\t\tif(!content.locals) {\n\t\t\tmodule.hot.accept(6, function() {\n\t\t\t\tvar newContent = __webpack_require__(6);\n\t\t\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\t\t\t\tupdate(newContent);\n\t\t\t});\n\t\t}\n\t\t// When the module is disposed, remove the <style> tags\n\t\tmodule.hot.dispose(function() { update(); });\n\t}\n\n/***/ },\n/* 6 */\n/***/ function(module, exports, __webpack_require__) {\n\n\texports = module.exports = __webpack_require__(7)();\n\t// imports\n\n\n\t// module\n\texports.push([module.id, \"\", \"\"]);\n\n\t// exports\n\n\n/***/ },\n/* 7 */\n/***/ function(module, exports) {\n\n\t/*\r\n\t\tMIT License http://www.opensource.org/licenses/mit-license.php\r\n\t\tAuthor Tobias Koppers @sokra\r\n\t*/\r\n\t// css base code, injected by the css-loader\r\n\tmodule.exports = function() {\r\n\t\tvar list = [];\r\n\r\n\t\t// return the list of modules as css string\r\n\t\tlist.toString = function toString() {\r\n\t\t\tvar result = [];\r\n\t\t\tfor(var i = 0; i < this.length; i++) {\r\n\t\t\t\tvar item = this[i];\r\n\t\t\t\tif(item[2]) {\r\n\t\t\t\t\tresult.push(\"@media \" + item[2] + \"{\" + item[1] + \"}\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\tresult.push(item[1]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn result.join(\"\");\r\n\t\t};\r\n\r\n\t\t// import a list of modules into the list\r\n\t\tlist.i = function(modules, mediaQuery) {\r\n\t\t\tif(typeof modules === \"string\")\r\n\t\t\t\tmodules = [[null, modules, \"\"]];\r\n\t\t\tvar alreadyImportedModules = {};\r\n\t\t\tfor(var i = 0; i < this.length; i++) {\r\n\t\t\t\tvar id = this[i][0];\r\n\t\t\t\tif(typeof id === \"number\")\r\n\t\t\t\t\talreadyImportedModules[id] = true;\r\n\t\t\t}\r\n\t\t\tfor(i = 0; i < modules.length; i++) {\r\n\t\t\t\tvar item = modules[i];\r\n\t\t\t\t// skip already imported module\r\n\t\t\t\t// this implementation is not 100% perfect for weird media query combinations\r\n\t\t\t\t//  when a module is imported multiple times with different media queries.\r\n\t\t\t\t//  I hope this will never occur (Hey this way we have smaller bundles)\r\n\t\t\t\tif(typeof item[0] !== \"number\" || !alreadyImportedModules[item[0]]) {\r\n\t\t\t\t\tif(mediaQuery && !item[2]) {\r\n\t\t\t\t\t\titem[2] = mediaQuery;\r\n\t\t\t\t\t} else if(mediaQuery) {\r\n\t\t\t\t\t\titem[2] = \"(\" + item[2] + \") and (\" + mediaQuery + \")\";\r\n\t\t\t\t\t}\r\n\t\t\t\t\tlist.push(item);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\t\treturn list;\r\n\t};\r\n\n\n/***/ },\n/* 8 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/*\r\n\t\tMIT License http://www.opensource.org/licenses/mit-license.php\r\n\t\tAuthor Tobias Koppers @sokra\r\n\t*/\r\n\tvar stylesInDom = {},\r\n\t\tmemoize = function(fn) {\r\n\t\t\tvar memo;\r\n\t\t\treturn function () {\r\n\t\t\t\tif (typeof memo === \"undefined\") memo = fn.apply(this, arguments);\r\n\t\t\t\treturn memo;\r\n\t\t\t};\r\n\t\t},\r\n\t\tisOldIE = memoize(function() {\r\n\t\t\treturn /msie [6-9]\\b/.test(window.navigator.userAgent.toLowerCase());\r\n\t\t}),\r\n\t\tgetHeadElement = memoize(function () {\r\n\t\t\treturn document.head || document.getElementsByTagName(\"head\")[0];\r\n\t\t}),\r\n\t\tsingletonElement = null,\r\n\t\tsingletonCounter = 0,\r\n\t\tstyleElementsInsertedAtTop = [];\r\n\r\n\tmodule.exports = function(list, options) {\r\n\t\tif(false) {\r\n\t\t\tif(typeof document !== \"object\") throw new Error(\"The style-loader cannot be used in a non-browser environment\");\r\n\t\t}\r\n\r\n\t\toptions = options || {};\r\n\t\t// Force single-tag solution on IE6-9, which has a hard limit on the # of <style>\r\n\t\t// tags it will allow on a page\r\n\t\tif (typeof options.singleton === \"undefined\") options.singleton = isOldIE();\r\n\r\n\t\t// By default, add <style> tags to the bottom of <head>.\r\n\t\tif (typeof options.insertAt === \"undefined\") options.insertAt = \"bottom\";\r\n\r\n\t\tvar styles = listToStyles(list);\r\n\t\taddStylesToDom(styles, options);\r\n\r\n\t\treturn function update(newList) {\r\n\t\t\tvar mayRemove = [];\r\n\t\t\tfor(var i = 0; i < styles.length; i++) {\r\n\t\t\t\tvar item = styles[i];\r\n\t\t\t\tvar domStyle = stylesInDom[item.id];\r\n\t\t\t\tdomStyle.refs--;\r\n\t\t\t\tmayRemove.push(domStyle);\r\n\t\t\t}\r\n\t\t\tif(newList) {\r\n\t\t\t\tvar newStyles = listToStyles(newList);\r\n\t\t\t\taddStylesToDom(newStyles, options);\r\n\t\t\t}\r\n\t\t\tfor(var i = 0; i < mayRemove.length; i++) {\r\n\t\t\t\tvar domStyle = mayRemove[i];\r\n\t\t\t\tif(domStyle.refs === 0) {\r\n\t\t\t\t\tfor(var j = 0; j < domStyle.parts.length; j++)\r\n\t\t\t\t\t\tdomStyle.parts[j]();\r\n\t\t\t\t\tdelete stylesInDom[domStyle.id];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\t}\r\n\r\n\tfunction addStylesToDom(styles, options) {\r\n\t\tfor(var i = 0; i < styles.length; i++) {\r\n\t\t\tvar item = styles[i];\r\n\t\t\tvar domStyle = stylesInDom[item.id];\r\n\t\t\tif(domStyle) {\r\n\t\t\t\tdomStyle.refs++;\r\n\t\t\t\tfor(var j = 0; j < domStyle.parts.length; j++) {\r\n\t\t\t\t\tdomStyle.parts[j](item.parts[j]);\r\n\t\t\t\t}\r\n\t\t\t\tfor(; j < item.parts.length; j++) {\r\n\t\t\t\t\tdomStyle.parts.push(addStyle(item.parts[j], options));\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tvar parts = [];\r\n\t\t\t\tfor(var j = 0; j < item.parts.length; j++) {\r\n\t\t\t\t\tparts.push(addStyle(item.parts[j], options));\r\n\t\t\t\t}\r\n\t\t\t\tstylesInDom[item.id] = {id: item.id, refs: 1, parts: parts};\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tfunction listToStyles(list) {\r\n\t\tvar styles = [];\r\n\t\tvar newStyles = {};\r\n\t\tfor(var i = 0; i < list.length; i++) {\r\n\t\t\tvar item = list[i];\r\n\t\t\tvar id = item[0];\r\n\t\t\tvar css = item[1];\r\n\t\t\tvar media = item[2];\r\n\t\t\tvar sourceMap = item[3];\r\n\t\t\tvar part = {css: css, media: media, sourceMap: sourceMap};\r\n\t\t\tif(!newStyles[id])\r\n\t\t\t\tstyles.push(newStyles[id] = {id: id, parts: [part]});\r\n\t\t\telse\r\n\t\t\t\tnewStyles[id].parts.push(part);\r\n\t\t}\r\n\t\treturn styles;\r\n\t}\r\n\r\n\tfunction insertStyleElement(options, styleElement) {\r\n\t\tvar head = getHeadElement();\r\n\t\tvar lastStyleElementInsertedAtTop = styleElementsInsertedAtTop[styleElementsInsertedAtTop.length - 1];\r\n\t\tif (options.insertAt === \"top\") {\r\n\t\t\tif(!lastStyleElementInsertedAtTop) {\r\n\t\t\t\thead.insertBefore(styleElement, head.firstChild);\r\n\t\t\t} else if(lastStyleElementInsertedAtTop.nextSibling) {\r\n\t\t\t\thead.insertBefore(styleElement, lastStyleElementInsertedAtTop.nextSibling);\r\n\t\t\t} else {\r\n\t\t\t\thead.appendChild(styleElement);\r\n\t\t\t}\r\n\t\t\tstyleElementsInsertedAtTop.push(styleElement);\r\n\t\t} else if (options.insertAt === \"bottom\") {\r\n\t\t\thead.appendChild(styleElement);\r\n\t\t} else {\r\n\t\t\tthrow new Error(\"Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.\");\r\n\t\t}\r\n\t}\r\n\r\n\tfunction removeStyleElement(styleElement) {\r\n\t\tstyleElement.parentNode.removeChild(styleElement);\r\n\t\tvar idx = styleElementsInsertedAtTop.indexOf(styleElement);\r\n\t\tif(idx >= 0) {\r\n\t\t\tstyleElementsInsertedAtTop.splice(idx, 1);\r\n\t\t}\r\n\t}\r\n\r\n\tfunction createStyleElement(options) {\r\n\t\tvar styleElement = document.createElement(\"style\");\r\n\t\tstyleElement.type = \"text/css\";\r\n\t\tinsertStyleElement(options, styleElement);\r\n\t\treturn styleElement;\r\n\t}\r\n\r\n\tfunction createLinkElement(options) {\r\n\t\tvar linkElement = document.createElement(\"link\");\r\n\t\tlinkElement.rel = \"stylesheet\";\r\n\t\tinsertStyleElement(options, linkElement);\r\n\t\treturn linkElement;\r\n\t}\r\n\r\n\tfunction addStyle(obj, options) {\r\n\t\tvar styleElement, update, remove;\r\n\r\n\t\tif (options.singleton) {\r\n\t\t\tvar styleIndex = singletonCounter++;\r\n\t\t\tstyleElement = singletonElement || (singletonElement = createStyleElement(options));\r\n\t\t\tupdate = applyToSingletonTag.bind(null, styleElement, styleIndex, false);\r\n\t\t\tremove = applyToSingletonTag.bind(null, styleElement, styleIndex, true);\r\n\t\t} else if(obj.sourceMap &&\r\n\t\t\ttypeof URL === \"function\" &&\r\n\t\t\ttypeof URL.createObjectURL === \"function\" &&\r\n\t\t\ttypeof URL.revokeObjectURL === \"function\" &&\r\n\t\t\ttypeof Blob === \"function\" &&\r\n\t\t\ttypeof btoa === \"function\") {\r\n\t\t\tstyleElement = createLinkElement(options);\r\n\t\t\tupdate = updateLink.bind(null, styleElement);\r\n\t\t\tremove = function() {\r\n\t\t\t\tremoveStyleElement(styleElement);\r\n\t\t\t\tif(styleElement.href)\r\n\t\t\t\t\tURL.revokeObjectURL(styleElement.href);\r\n\t\t\t};\r\n\t\t} else {\r\n\t\t\tstyleElement = createStyleElement(options);\r\n\t\t\tupdate = applyToTag.bind(null, styleElement);\r\n\t\t\tremove = function() {\r\n\t\t\t\tremoveStyleElement(styleElement);\r\n\t\t\t};\r\n\t\t}\r\n\r\n\t\tupdate(obj);\r\n\r\n\t\treturn function updateStyle(newObj) {\r\n\t\t\tif(newObj) {\r\n\t\t\t\tif(newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap)\r\n\t\t\t\t\treturn;\r\n\t\t\t\tupdate(obj = newObj);\r\n\t\t\t} else {\r\n\t\t\t\tremove();\r\n\t\t\t}\r\n\t\t};\r\n\t}\r\n\r\n\tvar replaceText = (function () {\r\n\t\tvar textStore = [];\r\n\r\n\t\treturn function (index, replacement) {\r\n\t\t\ttextStore[index] = replacement;\r\n\t\t\treturn textStore.filter(Boolean).join('\\n');\r\n\t\t};\r\n\t})();\r\n\r\n\tfunction applyToSingletonTag(styleElement, index, remove, obj) {\r\n\t\tvar css = remove ? \"\" : obj.css;\r\n\r\n\t\tif (styleElement.styleSheet) {\r\n\t\t\tstyleElement.styleSheet.cssText = replaceText(index, css);\r\n\t\t} else {\r\n\t\t\tvar cssNode = document.createTextNode(css);\r\n\t\t\tvar childNodes = styleElement.childNodes;\r\n\t\t\tif (childNodes[index]) styleElement.removeChild(childNodes[index]);\r\n\t\t\tif (childNodes.length) {\r\n\t\t\t\tstyleElement.insertBefore(cssNode, childNodes[index]);\r\n\t\t\t} else {\r\n\t\t\t\tstyleElement.appendChild(cssNode);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tfunction applyToTag(styleElement, obj) {\r\n\t\tvar css = obj.css;\r\n\t\tvar media = obj.media;\r\n\t\tvar sourceMap = obj.sourceMap;\r\n\r\n\t\tif(media) {\r\n\t\t\tstyleElement.setAttribute(\"media\", media)\r\n\t\t}\r\n\r\n\t\tif(styleElement.styleSheet) {\r\n\t\t\tstyleElement.styleSheet.cssText = css;\r\n\t\t} else {\r\n\t\t\twhile(styleElement.firstChild) {\r\n\t\t\t\tstyleElement.removeChild(styleElement.firstChild);\r\n\t\t\t}\r\n\t\t\tstyleElement.appendChild(document.createTextNode(css));\r\n\t\t}\r\n\t}\r\n\r\n\tfunction updateLink(linkElement, obj) {\r\n\t\tvar css = obj.css;\r\n\t\tvar media = obj.media;\r\n\t\tvar sourceMap = obj.sourceMap;\r\n\r\n\t\tif(sourceMap) {\r\n\t\t\t// http://stackoverflow.com/a/26603875\r\n\t\t\tcss += \"\\n/*# sourceMappingURL=data:application/json;base64,\" + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + \" */\";\r\n\t\t}\r\n\r\n\t\tvar blob = new Blob([css], { type: \"text/css\" });\r\n\r\n\t\tvar oldSrc = linkElement.href;\r\n\r\n\t\tlinkElement.href = URL.createObjectURL(blob);\r\n\r\n\t\tif(oldSrc)\r\n\t\t\tURL.revokeObjectURL(oldSrc);\r\n\t}\r\n\n\n/***/ },\n/* 9 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// style-loader: Adds some css to the DOM by adding a <style> tag\n\n\t// load the styles\n\tvar content = __webpack_require__(10);\n\tif(typeof content === 'string') content = [[module.id, content, '']];\n\t// add the styles to the DOM\n\tvar update = __webpack_require__(8)(content, {});\n\tif(content.locals) module.exports = content.locals;\n\t// Hot Module Replacement\n\tif(true) {\n\t\t// When the styles change, update the <style> tags\n\t\tif(!content.locals) {\n\t\t\tmodule.hot.accept(10, function() {\n\t\t\t\tvar newContent = __webpack_require__(10);\n\t\t\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\t\t\t\tupdate(newContent);\n\t\t\t});\n\t\t}\n\t\t// When the module is disposed, remove the <style> tags\n\t\tmodule.hot.dispose(function() { update(); });\n\t}\n\n/***/ },\n/* 10 */\n/***/ function(module, exports, __webpack_require__) {\n\n\texports = module.exports = __webpack_require__(7)();\n\t// imports\n\n\n\t// module\n\texports.push([module.id, \"/* MaterialDesignIcons.com */@font-face{font-family:\\\"Material Design Icons\\\";src:url(\" + __webpack_require__(11) + \");src:url(\" + __webpack_require__(12) + \"?#iefix&v=1.4.57) format(\\\"embedded-opentype\\\"),url(\" + __webpack_require__(13) + \") format(\\\"woff2\\\"),url(\" + __webpack_require__(14) + \") format(\\\"woff\\\"),url(\" + __webpack_require__(15) + \") format(\\\"truetype\\\"),url(\" + __webpack_require__(16) + \"#materialdesigniconsregular) format(\\\"svg\\\");font-weight:normal;font-style:normal}.mdi{display:inline-block;font:normal normal normal 24px/1 \\\"Material Design Icons\\\";font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;transform:translate(0, 0)}.mdi-access-point:before{content:\\\"\\\\F101\\\"}.mdi-access-point-network:before{content:\\\"\\\\F102\\\"}.mdi-account:before{content:\\\"\\\\F103\\\"}.mdi-account-alert:before{content:\\\"\\\\F104\\\"}.mdi-account-box:before{content:\\\"\\\\F105\\\"}.mdi-account-box-outline:before{content:\\\"\\\\F106\\\"}.mdi-account-check:before{content:\\\"\\\\F107\\\"}.mdi-account-circle:before{content:\\\"\\\\F108\\\"}.mdi-account-convert:before{content:\\\"\\\\F109\\\"}.mdi-account-key:before{content:\\\"\\\\F10A\\\"}.mdi-account-location:before{content:\\\"\\\\F10B\\\"}.mdi-account-minus:before{content:\\\"\\\\F10C\\\"}.mdi-account-multiple:before{content:\\\"\\\\F10D\\\"}.mdi-account-multiple-outline:before{content:\\\"\\\\F10E\\\"}.mdi-account-multiple-plus:before{content:\\\"\\\\F10F\\\"}.mdi-account-network:before{content:\\\"\\\\F110\\\"}.mdi-account-off:before{content:\\\"\\\\F111\\\"}.mdi-account-outline:before{content:\\\"\\\\F112\\\"}.mdi-account-plus:before{content:\\\"\\\\F113\\\"}.mdi-account-remove:before{content:\\\"\\\\F114\\\"}.mdi-account-search:before{content:\\\"\\\\F115\\\"}.mdi-account-star:before{content:\\\"\\\\F116\\\"}.mdi-account-star-variant:before{content:\\\"\\\\F117\\\"}.mdi-account-switch:before{content:\\\"\\\\F118\\\"}.mdi-adjust:before{content:\\\"\\\\F119\\\"}.mdi-air-conditioner:before{content:\\\"\\\\F11A\\\"}.mdi-airballoon:before{content:\\\"\\\\F11B\\\"}.mdi-airplane:before{content:\\\"\\\\F11C\\\"}.mdi-airplane-off:before{content:\\\"\\\\F11D\\\"}.mdi-airplay:before{content:\\\"\\\\F11E\\\"}.mdi-alarm:before{content:\\\"\\\\F11F\\\"}.mdi-alarm-check:before{content:\\\"\\\\F120\\\"}.mdi-alarm-multiple:before{content:\\\"\\\\F121\\\"}.mdi-alarm-off:before{content:\\\"\\\\F122\\\"}.mdi-alarm-plus:before{content:\\\"\\\\F123\\\"}.mdi-album:before{content:\\\"\\\\F124\\\"}.mdi-alert:before{content:\\\"\\\\F125\\\"}.mdi-alert-box:before{content:\\\"\\\\F126\\\"}.mdi-alert-circle:before{content:\\\"\\\\F127\\\"}.mdi-alert-octagon:before{content:\\\"\\\\F128\\\"}.mdi-alert-outline:before{content:\\\"\\\\F129\\\"}.mdi-alpha:before{content:\\\"\\\\F12A\\\"}.mdi-alphabetical:before{content:\\\"\\\\F12B\\\"}.mdi-amazon:before{content:\\\"\\\\F12C\\\"}.mdi-amazon-clouddrive:before{content:\\\"\\\\F12D\\\"}.mdi-ambulance:before{content:\\\"\\\\F12E\\\"}.mdi-anchor:before{content:\\\"\\\\F12F\\\"}.mdi-android:before{content:\\\"\\\\F130\\\"}.mdi-android-debug-bridge:before{content:\\\"\\\\F131\\\"}.mdi-android-studio:before{content:\\\"\\\\F132\\\"}.mdi-apple:before{content:\\\"\\\\F133\\\"}.mdi-apple-finder:before{content:\\\"\\\\F134\\\"}.mdi-apple-ios:before{content:\\\"\\\\F135\\\"}.mdi-apple-mobileme:before{content:\\\"\\\\F136\\\"}.mdi-apple-safari:before{content:\\\"\\\\F137\\\"}.mdi-appnet:before{content:\\\"\\\\F138\\\"}.mdi-apps:before{content:\\\"\\\\F139\\\"}.mdi-archive:before{content:\\\"\\\\F13A\\\"}.mdi-arrange-bring-forward:before{content:\\\"\\\\F13B\\\"}.mdi-arrange-bring-to-front:before{content:\\\"\\\\F13C\\\"}.mdi-arrange-send-backward:before{content:\\\"\\\\F13D\\\"}.mdi-arrange-send-to-back:before{content:\\\"\\\\F13E\\\"}.mdi-arrow-all:before{content:\\\"\\\\F13F\\\"}.mdi-arrow-bottom-drop-circle:before{content:\\\"\\\\F140\\\"}.mdi-arrow-bottom-left:before{content:\\\"\\\\F141\\\"}.mdi-arrow-bottom-right:before{content:\\\"\\\\F142\\\"}.mdi-arrow-collapse:before{content:\\\"\\\\F143\\\"}.mdi-arrow-down:before{content:\\\"\\\\F144\\\"}.mdi-arrow-down-bold:before{content:\\\"\\\\F145\\\"}.mdi-arrow-down-bold-circle:before{content:\\\"\\\\F146\\\"}.mdi-arrow-down-bold-circle-outline:before{content:\\\"\\\\F147\\\"}.mdi-arrow-down-bold-hexagon-outline:before{content:\\\"\\\\F148\\\"}.mdi-arrow-expand:before{content:\\\"\\\\F149\\\"}.mdi-arrow-left:before{content:\\\"\\\\F14A\\\"}.mdi-arrow-left-bold:before{content:\\\"\\\\F14B\\\"}.mdi-arrow-left-bold-circle:before{content:\\\"\\\\F14C\\\"}.mdi-arrow-left-bold-circle-outline:before{content:\\\"\\\\F14D\\\"}.mdi-arrow-left-bold-hexagon-outline:before{content:\\\"\\\\F14E\\\"}.mdi-arrow-right:before{content:\\\"\\\\F14F\\\"}.mdi-arrow-right-bold:before{content:\\\"\\\\F150\\\"}.mdi-arrow-right-bold-circle:before{content:\\\"\\\\F151\\\"}.mdi-arrow-right-bold-circle-outline:before{content:\\\"\\\\F152\\\"}.mdi-arrow-right-bold-hexagon-outline:before{content:\\\"\\\\F153\\\"}.mdi-arrow-top-left:before{content:\\\"\\\\F154\\\"}.mdi-arrow-top-right:before{content:\\\"\\\\F155\\\"}.mdi-arrow-up:before{content:\\\"\\\\F156\\\"}.mdi-arrow-up-bold:before{content:\\\"\\\\F157\\\"}.mdi-arrow-up-bold-circle:before{content:\\\"\\\\F158\\\"}.mdi-arrow-up-bold-circle-outline:before{content:\\\"\\\\F159\\\"}.mdi-arrow-up-bold-hexagon-outline:before{content:\\\"\\\\F15A\\\"}.mdi-assistant:before{content:\\\"\\\\F15B\\\"}.mdi-at:before{content:\\\"\\\\F15C\\\"}.mdi-attachment:before{content:\\\"\\\\F15D\\\"}.mdi-audiobook:before{content:\\\"\\\\F15E\\\"}.mdi-auto-fix:before{content:\\\"\\\\F15F\\\"}.mdi-auto-upload:before{content:\\\"\\\\F160\\\"}.mdi-autorenew:before{content:\\\"\\\\F161\\\"}.mdi-av-timer:before{content:\\\"\\\\F162\\\"}.mdi-baby:before{content:\\\"\\\\F163\\\"}.mdi-backburger:before{content:\\\"\\\\F164\\\"}.mdi-backspace:before{content:\\\"\\\\F165\\\"}.mdi-backup-restore:before{content:\\\"\\\\F166\\\"}.mdi-bank:before{content:\\\"\\\\F167\\\"}.mdi-barcode:before{content:\\\"\\\\F168\\\"}.mdi-barcode-scan:before{content:\\\"\\\\F169\\\"}.mdi-barley:before{content:\\\"\\\\F16A\\\"}.mdi-barrel:before{content:\\\"\\\\F16B\\\"}.mdi-basecamp:before{content:\\\"\\\\F16C\\\"}.mdi-basket:before{content:\\\"\\\\F16D\\\"}.mdi-basket-fill:before{content:\\\"\\\\F16E\\\"}.mdi-basket-unfill:before{content:\\\"\\\\F16F\\\"}.mdi-battery:before{content:\\\"\\\\F170\\\"}.mdi-battery-10:before{content:\\\"\\\\F171\\\"}.mdi-battery-20:before{content:\\\"\\\\F172\\\"}.mdi-battery-30:before{content:\\\"\\\\F173\\\"}.mdi-battery-40:before{content:\\\"\\\\F174\\\"}.mdi-battery-50:before{content:\\\"\\\\F175\\\"}.mdi-battery-60:before{content:\\\"\\\\F176\\\"}.mdi-battery-70:before{content:\\\"\\\\F177\\\"}.mdi-battery-80:before{content:\\\"\\\\F178\\\"}.mdi-battery-90:before{content:\\\"\\\\F179\\\"}.mdi-battery-alert:before{content:\\\"\\\\F17A\\\"}.mdi-battery-charging:before{content:\\\"\\\\F17B\\\"}.mdi-battery-charging-100:before{content:\\\"\\\\F17C\\\"}.mdi-battery-charging-20:before{content:\\\"\\\\F17D\\\"}.mdi-battery-charging-30:before{content:\\\"\\\\F17E\\\"}.mdi-battery-charging-40:before{content:\\\"\\\\F17F\\\"}.mdi-battery-charging-60:before{content:\\\"\\\\F180\\\"}.mdi-battery-charging-80:before{content:\\\"\\\\F181\\\"}.mdi-battery-charging-90:before{content:\\\"\\\\F182\\\"}.mdi-battery-minus:before{content:\\\"\\\\F183\\\"}.mdi-battery-negative:before{content:\\\"\\\\F184\\\"}.mdi-battery-outline:before{content:\\\"\\\\F185\\\"}.mdi-battery-plus:before{content:\\\"\\\\F186\\\"}.mdi-battery-positive:before{content:\\\"\\\\F187\\\"}.mdi-battery-unknown:before{content:\\\"\\\\F188\\\"}.mdi-beach:before{content:\\\"\\\\F189\\\"}.mdi-beaker:before{content:\\\"\\\\F18A\\\"}.mdi-beaker-empty:before{content:\\\"\\\\F18B\\\"}.mdi-beaker-empty-outline:before{content:\\\"\\\\F18C\\\"}.mdi-beaker-outline:before{content:\\\"\\\\F18D\\\"}.mdi-beats:before{content:\\\"\\\\F18E\\\"}.mdi-beer:before{content:\\\"\\\\F18F\\\"}.mdi-behance:before{content:\\\"\\\\F190\\\"}.mdi-bell:before{content:\\\"\\\\F191\\\"}.mdi-bell-off:before{content:\\\"\\\\F192\\\"}.mdi-bell-outline:before{content:\\\"\\\\F193\\\"}.mdi-bell-plus:before{content:\\\"\\\\F194\\\"}.mdi-bell-ring:before{content:\\\"\\\\F195\\\"}.mdi-bell-ring-outline:before{content:\\\"\\\\F196\\\"}.mdi-bell-sleep:before{content:\\\"\\\\F197\\\"}.mdi-beta:before{content:\\\"\\\\F198\\\"}.mdi-bike:before{content:\\\"\\\\F199\\\"}.mdi-bing:before{content:\\\"\\\\F19A\\\"}.mdi-binoculars:before{content:\\\"\\\\F19B\\\"}.mdi-bio:before{content:\\\"\\\\F19C\\\"}.mdi-biohazard:before{content:\\\"\\\\F19D\\\"}.mdi-bitbucket:before{content:\\\"\\\\F19E\\\"}.mdi-black-mesa:before{content:\\\"\\\\F19F\\\"}.mdi-blackberry:before{content:\\\"\\\\F1A0\\\"}.mdi-blender:before{content:\\\"\\\\F1A1\\\"}.mdi-blinds:before{content:\\\"\\\\F1A2\\\"}.mdi-block-helper:before{content:\\\"\\\\F1A3\\\"}.mdi-blogger:before{content:\\\"\\\\F1A4\\\"}.mdi-bluetooth:before{content:\\\"\\\\F1A5\\\"}.mdi-bluetooth-audio:before{content:\\\"\\\\F1A6\\\"}.mdi-bluetooth-connect:before{content:\\\"\\\\F1A7\\\"}.mdi-bluetooth-off:before{content:\\\"\\\\F1A8\\\"}.mdi-bluetooth-settings:before{content:\\\"\\\\F1A9\\\"}.mdi-bluetooth-transfer:before{content:\\\"\\\\F1AA\\\"}.mdi-blur:before{content:\\\"\\\\F1AB\\\"}.mdi-blur-linear:before{content:\\\"\\\\F1AC\\\"}.mdi-blur-off:before{content:\\\"\\\\F1AD\\\"}.mdi-blur-radial:before{content:\\\"\\\\F1AE\\\"}.mdi-bone:before{content:\\\"\\\\F1AF\\\"}.mdi-book:before{content:\\\"\\\\F1B0\\\"}.mdi-book-multiple:before{content:\\\"\\\\F1B1\\\"}.mdi-book-multiple-variant:before{content:\\\"\\\\F1B2\\\"}.mdi-book-open:before{content:\\\"\\\\F1B3\\\"}.mdi-book-open-variant:before{content:\\\"\\\\F1B4\\\"}.mdi-book-variant:before{content:\\\"\\\\F1B5\\\"}.mdi-bookmark:before{content:\\\"\\\\F1B6\\\"}.mdi-bookmark-check:before{content:\\\"\\\\F1B7\\\"}.mdi-bookmark-music:before{content:\\\"\\\\F1B8\\\"}.mdi-bookmark-outline:before{content:\\\"\\\\F1B9\\\"}.mdi-bookmark-outline-plus:before{content:\\\"\\\\F1BA\\\"}.mdi-bookmark-plus:before{content:\\\"\\\\F1BB\\\"}.mdi-bookmark-remove:before{content:\\\"\\\\F1BC\\\"}.mdi-border-all:before{content:\\\"\\\\F1BD\\\"}.mdi-border-bottom:before{content:\\\"\\\\F1BE\\\"}.mdi-border-color:before{content:\\\"\\\\F1BF\\\"}.mdi-border-horizontal:before{content:\\\"\\\\F1C0\\\"}.mdi-border-inside:before{content:\\\"\\\\F1C1\\\"}.mdi-border-left:before{content:\\\"\\\\F1C2\\\"}.mdi-border-none:before{content:\\\"\\\\F1C3\\\"}.mdi-border-outside:before{content:\\\"\\\\F1C4\\\"}.mdi-border-right:before{content:\\\"\\\\F1C5\\\"}.mdi-border-style:before{content:\\\"\\\\F1C6\\\"}.mdi-border-top:before{content:\\\"\\\\F1C7\\\"}.mdi-border-vertical:before{content:\\\"\\\\F1C8\\\"}.mdi-bowling:before{content:\\\"\\\\F1C9\\\"}.mdi-box:before{content:\\\"\\\\F1CA\\\"}.mdi-box-cutter:before{content:\\\"\\\\F1CB\\\"}.mdi-briefcase:before{content:\\\"\\\\F1CC\\\"}.mdi-briefcase-check:before{content:\\\"\\\\F1CD\\\"}.mdi-briefcase-download:before{content:\\\"\\\\F1CE\\\"}.mdi-briefcase-upload:before{content:\\\"\\\\F1CF\\\"}.mdi-brightness-1:before{content:\\\"\\\\F1D0\\\"}.mdi-brightness-2:before{content:\\\"\\\\F1D1\\\"}.mdi-brightness-3:before{content:\\\"\\\\F1D2\\\"}.mdi-brightness-4:before{content:\\\"\\\\F1D3\\\"}.mdi-brightness-5:before{content:\\\"\\\\F1D4\\\"}.mdi-brightness-6:before{content:\\\"\\\\F1D5\\\"}.mdi-brightness-7:before{content:\\\"\\\\F1D6\\\"}.mdi-brightness-auto:before{content:\\\"\\\\F1D7\\\"}.mdi-broom:before{content:\\\"\\\\F1D8\\\"}.mdi-brush:before{content:\\\"\\\\F1D9\\\"}.mdi-bug:before{content:\\\"\\\\F1DA\\\"}.mdi-bulletin-board:before{content:\\\"\\\\F1DB\\\"}.mdi-bullhorn:before{content:\\\"\\\\F1DC\\\"}.mdi-bus:before{content:\\\"\\\\F1DD\\\"}.mdi-cached:before{content:\\\"\\\\F1DE\\\"}.mdi-cake:before{content:\\\"\\\\F1DF\\\"}.mdi-cake-layered:before{content:\\\"\\\\F1E0\\\"}.mdi-cake-variant:before{content:\\\"\\\\F1E1\\\"}.mdi-calculator:before{content:\\\"\\\\F1E2\\\"}.mdi-calendar:before{content:\\\"\\\\F1E3\\\"}.mdi-calendar-blank:before{content:\\\"\\\\F1E4\\\"}.mdi-calendar-check:before{content:\\\"\\\\F1E5\\\"}.mdi-calendar-clock:before{content:\\\"\\\\F1E6\\\"}.mdi-calendar-multiple:before{content:\\\"\\\\F1E7\\\"}.mdi-calendar-multiple-check:before{content:\\\"\\\\F1E8\\\"}.mdi-calendar-plus:before{content:\\\"\\\\F1E9\\\"}.mdi-calendar-remove:before{content:\\\"\\\\F1EA\\\"}.mdi-calendar-text:before{content:\\\"\\\\F1EB\\\"}.mdi-calendar-today:before{content:\\\"\\\\F1EC\\\"}.mdi-call-made:before{content:\\\"\\\\F1ED\\\"}.mdi-call-merge:before{content:\\\"\\\\F1EE\\\"}.mdi-call-missed:before{content:\\\"\\\\F1EF\\\"}.mdi-call-received:before{content:\\\"\\\\F1F0\\\"}.mdi-call-split:before{content:\\\"\\\\F1F1\\\"}.mdi-camcorder:before{content:\\\"\\\\F1F2\\\"}.mdi-camcorder-box:before{content:\\\"\\\\F1F3\\\"}.mdi-camcorder-box-off:before{content:\\\"\\\\F1F4\\\"}.mdi-camcorder-off:before{content:\\\"\\\\F1F5\\\"}.mdi-camera:before{content:\\\"\\\\F1F6\\\"}.mdi-camera-enhance:before{content:\\\"\\\\F1F7\\\"}.mdi-camera-front:before{content:\\\"\\\\F1F8\\\"}.mdi-camera-front-variant:before{content:\\\"\\\\F1F9\\\"}.mdi-camera-iris:before{content:\\\"\\\\F1FA\\\"}.mdi-camera-party-mode:before{content:\\\"\\\\F1FB\\\"}.mdi-camera-rear:before{content:\\\"\\\\F1FC\\\"}.mdi-camera-rear-variant:before{content:\\\"\\\\F1FD\\\"}.mdi-camera-switch:before{content:\\\"\\\\F1FE\\\"}.mdi-camera-timer:before{content:\\\"\\\\F1FF\\\"}.mdi-candycane:before{content:\\\"\\\\F200\\\"}.mdi-car:before{content:\\\"\\\\F201\\\"}.mdi-car-battery:before{content:\\\"\\\\F202\\\"}.mdi-car-connected:before{content:\\\"\\\\F203\\\"}.mdi-car-wash:before{content:\\\"\\\\F204\\\"}.mdi-carrot:before{content:\\\"\\\\F205\\\"}.mdi-cart:before{content:\\\"\\\\F206\\\"}.mdi-cart-outline:before{content:\\\"\\\\F207\\\"}.mdi-cart-plus:before{content:\\\"\\\\F208\\\"}.mdi-case-sensitive-alt:before{content:\\\"\\\\F209\\\"}.mdi-cash:before{content:\\\"\\\\F20A\\\"}.mdi-cash-100:before{content:\\\"\\\\F20B\\\"}.mdi-cash-multiple:before{content:\\\"\\\\F20C\\\"}.mdi-cash-usd:before{content:\\\"\\\\F20D\\\"}.mdi-cast:before{content:\\\"\\\\F20E\\\"}.mdi-cast-connected:before{content:\\\"\\\\F20F\\\"}.mdi-castle:before{content:\\\"\\\\F210\\\"}.mdi-cat:before{content:\\\"\\\\F211\\\"}.mdi-cellphone:before{content:\\\"\\\\F212\\\"}.mdi-cellphone-android:before{content:\\\"\\\\F213\\\"}.mdi-cellphone-basic:before{content:\\\"\\\\F214\\\"}.mdi-cellphone-dock:before{content:\\\"\\\\F215\\\"}.mdi-cellphone-iphone:before{content:\\\"\\\\F216\\\"}.mdi-cellphone-link:before{content:\\\"\\\\F217\\\"}.mdi-cellphone-link-off:before{content:\\\"\\\\F218\\\"}.mdi-cellphone-settings:before{content:\\\"\\\\F219\\\"}.mdi-certificate:before{content:\\\"\\\\F21A\\\"}.mdi-chair-school:before{content:\\\"\\\\F21B\\\"}.mdi-chart-arc:before{content:\\\"\\\\F21C\\\"}.mdi-chart-areaspline:before{content:\\\"\\\\F21D\\\"}.mdi-chart-bar:before{content:\\\"\\\\F21E\\\"}.mdi-chart-histogram:before{content:\\\"\\\\F21F\\\"}.mdi-chart-line:before{content:\\\"\\\\F220\\\"}.mdi-chart-pie:before{content:\\\"\\\\F221\\\"}.mdi-check:before{content:\\\"\\\\F222\\\"}.mdi-check-all:before{content:\\\"\\\\F223\\\"}.mdi-checkbox-blank:before{content:\\\"\\\\F224\\\"}.mdi-checkbox-blank-circle:before{content:\\\"\\\\F225\\\"}.mdi-checkbox-blank-circle-outline:before{content:\\\"\\\\F226\\\"}.mdi-checkbox-blank-outline:before{content:\\\"\\\\F227\\\"}.mdi-checkbox-marked:before{content:\\\"\\\\F228\\\"}.mdi-checkbox-marked-circle:before{content:\\\"\\\\F229\\\"}.mdi-checkbox-marked-circle-outline:before{content:\\\"\\\\F22A\\\"}.mdi-checkbox-marked-outline:before{content:\\\"\\\\F22B\\\"}.mdi-checkbox-multiple-blank:before{content:\\\"\\\\F22C\\\"}.mdi-checkbox-multiple-blank-outline:before{content:\\\"\\\\F22D\\\"}.mdi-checkbox-multiple-marked:before{content:\\\"\\\\F22E\\\"}.mdi-checkbox-multiple-marked-outline:before{content:\\\"\\\\F22F\\\"}.mdi-checkerboard:before{content:\\\"\\\\F230\\\"}.mdi-chemical-weapon:before{content:\\\"\\\\F231\\\"}.mdi-chevron-double-down:before{content:\\\"\\\\F232\\\"}.mdi-chevron-double-left:before{content:\\\"\\\\F233\\\"}.mdi-chevron-double-right:before{content:\\\"\\\\F234\\\"}.mdi-chevron-double-up:before{content:\\\"\\\\F235\\\"}.mdi-chevron-down:before{content:\\\"\\\\F236\\\"}.mdi-chevron-left:before{content:\\\"\\\\F237\\\"}.mdi-chevron-right:before{content:\\\"\\\\F238\\\"}.mdi-chevron-up:before{content:\\\"\\\\F239\\\"}.mdi-church:before{content:\\\"\\\\F23A\\\"}.mdi-cisco-webex:before{content:\\\"\\\\F23B\\\"}.mdi-city:before{content:\\\"\\\\F23C\\\"}.mdi-clipboard:before{content:\\\"\\\\F23D\\\"}.mdi-clipboard-account:before{content:\\\"\\\\F23E\\\"}.mdi-clipboard-alert:before{content:\\\"\\\\F23F\\\"}.mdi-clipboard-arrow-down:before{content:\\\"\\\\F240\\\"}.mdi-clipboard-arrow-left:before{content:\\\"\\\\F241\\\"}.mdi-clipboard-check:before{content:\\\"\\\\F242\\\"}.mdi-clipboard-outline:before{content:\\\"\\\\F243\\\"}.mdi-clipboard-text:before{content:\\\"\\\\F244\\\"}.mdi-clippy:before{content:\\\"\\\\F245\\\"}.mdi-clock:before{content:\\\"\\\\F246\\\"}.mdi-clock-end:before{content:\\\"\\\\F247\\\"}.mdi-clock-fast:before{content:\\\"\\\\F248\\\"}.mdi-clock-in:before{content:\\\"\\\\F249\\\"}.mdi-clock-out:before{content:\\\"\\\\F24A\\\"}.mdi-clock-start:before{content:\\\"\\\\F24B\\\"}.mdi-close:before{content:\\\"\\\\F24C\\\"}.mdi-close-box:before{content:\\\"\\\\F24D\\\"}.mdi-close-box-outline:before{content:\\\"\\\\F24E\\\"}.mdi-close-circle:before{content:\\\"\\\\F24F\\\"}.mdi-close-circle-outline:before{content:\\\"\\\\F250\\\"}.mdi-close-network:before{content:\\\"\\\\F251\\\"}.mdi-close-octagon:before{content:\\\"\\\\F252\\\"}.mdi-close-octagon-outline:before{content:\\\"\\\\F253\\\"}.mdi-closed-caption:before{content:\\\"\\\\F254\\\"}.mdi-cloud:before{content:\\\"\\\\F255\\\"}.mdi-cloud-check:before{content:\\\"\\\\F256\\\"}.mdi-cloud-circle:before{content:\\\"\\\\F257\\\"}.mdi-cloud-download:before{content:\\\"\\\\F258\\\"}.mdi-cloud-outline:before{content:\\\"\\\\F259\\\"}.mdi-cloud-outline-off:before{content:\\\"\\\\F25A\\\"}.mdi-cloud-print:before{content:\\\"\\\\F25B\\\"}.mdi-cloud-print-outline:before{content:\\\"\\\\F25C\\\"}.mdi-cloud-upload:before{content:\\\"\\\\F25D\\\"}.mdi-code-array:before{content:\\\"\\\\F25E\\\"}.mdi-code-braces:before{content:\\\"\\\\F25F\\\"}.mdi-code-brackets:before{content:\\\"\\\\F260\\\"}.mdi-code-equal:before{content:\\\"\\\\F261\\\"}.mdi-code-greater-than:before{content:\\\"\\\\F262\\\"}.mdi-code-greater-than-or-equal:before{content:\\\"\\\\F263\\\"}.mdi-code-less-than:before{content:\\\"\\\\F264\\\"}.mdi-code-less-than-or-equal:before{content:\\\"\\\\F265\\\"}.mdi-code-not-equal:before{content:\\\"\\\\F266\\\"}.mdi-code-not-equal-variant:before{content:\\\"\\\\F267\\\"}.mdi-code-parentheses:before{content:\\\"\\\\F268\\\"}.mdi-code-string:before{content:\\\"\\\\F269\\\"}.mdi-code-tags:before{content:\\\"\\\\F26A\\\"}.mdi-codepen:before{content:\\\"\\\\F26B\\\"}.mdi-coffee:before{content:\\\"\\\\F26C\\\"}.mdi-coffee-to-go:before{content:\\\"\\\\F26D\\\"}.mdi-coin:before{content:\\\"\\\\F26E\\\"}.mdi-color-helper:before{content:\\\"\\\\F26F\\\"}.mdi-comment:before{content:\\\"\\\\F270\\\"}.mdi-comment-account:before{content:\\\"\\\\F271\\\"}.mdi-comment-account-outline:before{content:\\\"\\\\F272\\\"}.mdi-comment-alert:before{content:\\\"\\\\F273\\\"}.mdi-comment-alert-outline:before{content:\\\"\\\\F274\\\"}.mdi-comment-check:before{content:\\\"\\\\F275\\\"}.mdi-comment-check-outline:before{content:\\\"\\\\F276\\\"}.mdi-comment-multiple-outline:before{content:\\\"\\\\F277\\\"}.mdi-comment-outline:before{content:\\\"\\\\F278\\\"}.mdi-comment-plus-outline:before{content:\\\"\\\\F279\\\"}.mdi-comment-processing:before{content:\\\"\\\\F27A\\\"}.mdi-comment-processing-outline:before{content:\\\"\\\\F27B\\\"}.mdi-comment-question-outline:before{content:\\\"\\\\F27C\\\"}.mdi-comment-remove-outline:before{content:\\\"\\\\F27D\\\"}.mdi-comment-text:before{content:\\\"\\\\F27E\\\"}.mdi-comment-text-outline:before{content:\\\"\\\\F27F\\\"}.mdi-compare:before{content:\\\"\\\\F280\\\"}.mdi-compass:before{content:\\\"\\\\F281\\\"}.mdi-compass-outline:before{content:\\\"\\\\F282\\\"}.mdi-console:before{content:\\\"\\\\F283\\\"}.mdi-contact-mail:before{content:\\\"\\\\F284\\\"}.mdi-content-copy:before{content:\\\"\\\\F285\\\"}.mdi-content-cut:before{content:\\\"\\\\F286\\\"}.mdi-content-duplicate:before{content:\\\"\\\\F287\\\"}.mdi-content-paste:before{content:\\\"\\\\F288\\\"}.mdi-content-save:before{content:\\\"\\\\F289\\\"}.mdi-content-save-all:before{content:\\\"\\\\F28A\\\"}.mdi-contrast:before{content:\\\"\\\\F28B\\\"}.mdi-contrast-box:before{content:\\\"\\\\F28C\\\"}.mdi-contrast-circle:before{content:\\\"\\\\F28D\\\"}.mdi-cookie:before{content:\\\"\\\\F28E\\\"}.mdi-cow:before{content:\\\"\\\\F28F\\\"}.mdi-credit-card:before{content:\\\"\\\\F290\\\"}.mdi-credit-card-multiple:before{content:\\\"\\\\F291\\\"}.mdi-credit-card-scan:before{content:\\\"\\\\F292\\\"}.mdi-crop:before{content:\\\"\\\\F293\\\"}.mdi-crop-free:before{content:\\\"\\\\F294\\\"}.mdi-crop-landscape:before{content:\\\"\\\\F295\\\"}.mdi-crop-portrait:before{content:\\\"\\\\F296\\\"}.mdi-crop-square:before{content:\\\"\\\\F297\\\"}.mdi-crosshairs:before{content:\\\"\\\\F298\\\"}.mdi-crosshairs-gps:before{content:\\\"\\\\F299\\\"}.mdi-crown:before{content:\\\"\\\\F29A\\\"}.mdi-cube:before{content:\\\"\\\\F29B\\\"}.mdi-cube-outline:before{content:\\\"\\\\F29C\\\"}.mdi-cube-send:before{content:\\\"\\\\F29D\\\"}.mdi-cube-unfolded:before{content:\\\"\\\\F29E\\\"}.mdi-cup:before{content:\\\"\\\\F29F\\\"}.mdi-cup-water:before{content:\\\"\\\\F2A0\\\"}.mdi-currency-btc:before{content:\\\"\\\\F2A1\\\"}.mdi-currency-eur:before{content:\\\"\\\\F2A2\\\"}.mdi-currency-gbp:before{content:\\\"\\\\F2A3\\\"}.mdi-currency-inr:before{content:\\\"\\\\F2A4\\\"}.mdi-currency-ngn:before{content:\\\"\\\\F2A5\\\"}.mdi-currency-rub:before{content:\\\"\\\\F2A6\\\"}.mdi-currency-try:before{content:\\\"\\\\F2A7\\\"}.mdi-currency-usd:before{content:\\\"\\\\F2A8\\\"}.mdi-cursor-default:before{content:\\\"\\\\F2A9\\\"}.mdi-cursor-default-outline:before{content:\\\"\\\\F2AA\\\"}.mdi-cursor-move:before{content:\\\"\\\\F2AB\\\"}.mdi-cursor-pointer:before{content:\\\"\\\\F2AC\\\"}.mdi-database:before{content:\\\"\\\\F2AD\\\"}.mdi-database-minus:before{content:\\\"\\\\F2AE\\\"}.mdi-database-plus:before{content:\\\"\\\\F2AF\\\"}.mdi-debug-step-into:before{content:\\\"\\\\F2B0\\\"}.mdi-debug-step-out:before{content:\\\"\\\\F2B1\\\"}.mdi-debug-step-over:before{content:\\\"\\\\F2B2\\\"}.mdi-decimal-decrease:before{content:\\\"\\\\F2B3\\\"}.mdi-decimal-increase:before{content:\\\"\\\\F2B4\\\"}.mdi-delete:before{content:\\\"\\\\F2B5\\\"}.mdi-delete-variant:before{content:\\\"\\\\F2B6\\\"}.mdi-delta:before{content:\\\"\\\\F2B7\\\"}.mdi-deskphone:before{content:\\\"\\\\F2B8\\\"}.mdi-desktop-mac:before{content:\\\"\\\\F2B9\\\"}.mdi-desktop-tower:before{content:\\\"\\\\F2BA\\\"}.mdi-details:before{content:\\\"\\\\F2BB\\\"}.mdi-deviantart:before{content:\\\"\\\\F2BC\\\"}.mdi-diamond:before{content:\\\"\\\\F2BD\\\"}.mdi-dice:before{content:\\\"\\\\F2BE\\\"}.mdi-dice-1:before{content:\\\"\\\\F2BF\\\"}.mdi-dice-2:before{content:\\\"\\\\F2C0\\\"}.mdi-dice-3:before{content:\\\"\\\\F2C1\\\"}.mdi-dice-4:before{content:\\\"\\\\F2C2\\\"}.mdi-dice-5:before{content:\\\"\\\\F2C3\\\"}.mdi-dice-6:before{content:\\\"\\\\F2C4\\\"}.mdi-directions:before{content:\\\"\\\\F2C5\\\"}.mdi-disk-alert:before{content:\\\"\\\\F2C6\\\"}.mdi-disqus:before{content:\\\"\\\\F2C7\\\"}.mdi-disqus-outline:before{content:\\\"\\\\F2C8\\\"}.mdi-division:before{content:\\\"\\\\F2C9\\\"}.mdi-division-box:before{content:\\\"\\\\F2CA\\\"}.mdi-dns:before{content:\\\"\\\\F2CB\\\"}.mdi-domain:before{content:\\\"\\\\F2CC\\\"}.mdi-dots-horizontal:before{content:\\\"\\\\F2CD\\\"}.mdi-dots-vertical:before{content:\\\"\\\\F2CE\\\"}.mdi-download:before{content:\\\"\\\\F2CF\\\"}.mdi-drag:before{content:\\\"\\\\F2D0\\\"}.mdi-drag-horizontal:before{content:\\\"\\\\F2D1\\\"}.mdi-drag-vertical:before{content:\\\"\\\\F2D2\\\"}.mdi-drawing:before{content:\\\"\\\\F2D3\\\"}.mdi-drawing-box:before{content:\\\"\\\\F2D4\\\"}.mdi-dribbble:before{content:\\\"\\\\F2D5\\\"}.mdi-dribbble-box:before{content:\\\"\\\\F2D6\\\"}.mdi-drone:before{content:\\\"\\\\F2D7\\\"}.mdi-dropbox:before{content:\\\"\\\\F2D8\\\"}.mdi-drupal:before{content:\\\"\\\\F2D9\\\"}.mdi-duck:before{content:\\\"\\\\F2DA\\\"}.mdi-dumbbell:before{content:\\\"\\\\F2DB\\\"}.mdi-earth:before{content:\\\"\\\\F2DC\\\"}.mdi-earth-off:before{content:\\\"\\\\F2DD\\\"}.mdi-edge:before{content:\\\"\\\\F2DE\\\"}.mdi-eject:before{content:\\\"\\\\F2DF\\\"}.mdi-elevation-decline:before{content:\\\"\\\\F2E0\\\"}.mdi-elevation-rise:before{content:\\\"\\\\F2E1\\\"}.mdi-elevator:before{content:\\\"\\\\F2E2\\\"}.mdi-email:before{content:\\\"\\\\F2E3\\\"}.mdi-email-open:before{content:\\\"\\\\F2E4\\\"}.mdi-email-outline:before{content:\\\"\\\\F2E5\\\"}.mdi-email-secure:before{content:\\\"\\\\F2E6\\\"}.mdi-emoticon:before{content:\\\"\\\\F2E7\\\"}.mdi-emoticon-cool:before{content:\\\"\\\\F2E8\\\"}.mdi-emoticon-devil:before{content:\\\"\\\\F2E9\\\"}.mdi-emoticon-happy:before{content:\\\"\\\\F2EA\\\"}.mdi-emoticon-neutral:before{content:\\\"\\\\F2EB\\\"}.mdi-emoticon-poop:before{content:\\\"\\\\F2EC\\\"}.mdi-emoticon-sad:before{content:\\\"\\\\F2ED\\\"}.mdi-emoticon-tongue:before{content:\\\"\\\\F2EE\\\"}.mdi-engine:before{content:\\\"\\\\F2EF\\\"}.mdi-engine-outline:before{content:\\\"\\\\F2F0\\\"}.mdi-equal:before{content:\\\"\\\\F2F1\\\"}.mdi-equal-box:before{content:\\\"\\\\F2F2\\\"}.mdi-eraser:before{content:\\\"\\\\F2F3\\\"}.mdi-escalator:before{content:\\\"\\\\F2F4\\\"}.mdi-ethernet:before{content:\\\"\\\\F2F5\\\"}.mdi-ethernet-cable:before{content:\\\"\\\\F2F6\\\"}.mdi-ethernet-cable-off:before{content:\\\"\\\\F2F7\\\"}.mdi-etsy:before{content:\\\"\\\\F2F8\\\"}.mdi-evernote:before{content:\\\"\\\\F2F9\\\"}.mdi-exclamation:before{content:\\\"\\\\F2FA\\\"}.mdi-exit-to-app:before{content:\\\"\\\\F2FB\\\"}.mdi-export:before{content:\\\"\\\\F2FC\\\"}.mdi-eye:before{content:\\\"\\\\F2FD\\\"}.mdi-eye-off:before{content:\\\"\\\\F2FE\\\"}.mdi-eyedropper:before{content:\\\"\\\\F2FF\\\"}.mdi-eyedropper-variant:before{content:\\\"\\\\F300\\\"}.mdi-facebook:before{content:\\\"\\\\F301\\\"}.mdi-facebook-box:before{content:\\\"\\\\F302\\\"}.mdi-facebook-messenger:before{content:\\\"\\\\F303\\\"}.mdi-factory:before{content:\\\"\\\\F304\\\"}.mdi-fan:before{content:\\\"\\\\F305\\\"}.mdi-fast-forward:before{content:\\\"\\\\F306\\\"}.mdi-fax:before{content:\\\"\\\\F307\\\"}.mdi-ferry:before{content:\\\"\\\\F308\\\"}.mdi-file:before{content:\\\"\\\\F309\\\"}.mdi-file-chart:before{content:\\\"\\\\F30A\\\"}.mdi-file-check:before{content:\\\"\\\\F30B\\\"}.mdi-file-cloud:before{content:\\\"\\\\F30C\\\"}.mdi-file-delimited:before{content:\\\"\\\\F30D\\\"}.mdi-file-document:before{content:\\\"\\\\F30E\\\"}.mdi-file-document-box:before{content:\\\"\\\\F30F\\\"}.mdi-file-excel:before{content:\\\"\\\\F310\\\"}.mdi-file-excel-box:before{content:\\\"\\\\F311\\\"}.mdi-file-export:before{content:\\\"\\\\F312\\\"}.mdi-file-find:before{content:\\\"\\\\F313\\\"}.mdi-file-image:before{content:\\\"\\\\F314\\\"}.mdi-file-import:before{content:\\\"\\\\F315\\\"}.mdi-file-lock:before{content:\\\"\\\\F316\\\"}.mdi-file-multiple:before{content:\\\"\\\\F317\\\"}.mdi-file-music:before{content:\\\"\\\\F318\\\"}.mdi-file-outline:before{content:\\\"\\\\F319\\\"}.mdi-file-pdf:before{content:\\\"\\\\F31A\\\"}.mdi-file-pdf-box:before{content:\\\"\\\\F31B\\\"}.mdi-file-powerpoint:before{content:\\\"\\\\F31C\\\"}.mdi-file-powerpoint-box:before{content:\\\"\\\\F31D\\\"}.mdi-file-presentation-box:before{content:\\\"\\\\F31E\\\"}.mdi-file-send:before{content:\\\"\\\\F31F\\\"}.mdi-file-video:before{content:\\\"\\\\F320\\\"}.mdi-file-word:before{content:\\\"\\\\F321\\\"}.mdi-file-word-box:before{content:\\\"\\\\F322\\\"}.mdi-file-xml:before{content:\\\"\\\\F323\\\"}.mdi-film:before{content:\\\"\\\\F324\\\"}.mdi-filmstrip:before{content:\\\"\\\\F325\\\"}.mdi-filmstrip-off:before{content:\\\"\\\\F326\\\"}.mdi-filter:before{content:\\\"\\\\F327\\\"}.mdi-filter-outline:before{content:\\\"\\\\F328\\\"}.mdi-filter-remove:before{content:\\\"\\\\F329\\\"}.mdi-filter-remove-outline:before{content:\\\"\\\\F32A\\\"}.mdi-filter-variant:before{content:\\\"\\\\F32B\\\"}.mdi-fingerprint:before{content:\\\"\\\\F32C\\\"}.mdi-fire:before{content:\\\"\\\\F32D\\\"}.mdi-firefox:before{content:\\\"\\\\F32E\\\"}.mdi-fish:before{content:\\\"\\\\F32F\\\"}.mdi-flag:before{content:\\\"\\\\F330\\\"}.mdi-flag-checkered:before{content:\\\"\\\\F331\\\"}.mdi-flag-outline:before{content:\\\"\\\\F332\\\"}.mdi-flag-outline-variant:before{content:\\\"\\\\F333\\\"}.mdi-flag-triangle:before{content:\\\"\\\\F334\\\"}.mdi-flag-variant:before{content:\\\"\\\\F335\\\"}.mdi-flash:before{content:\\\"\\\\F336\\\"}.mdi-flash-auto:before{content:\\\"\\\\F337\\\"}.mdi-flash-off:before{content:\\\"\\\\F338\\\"}.mdi-flashlight:before{content:\\\"\\\\F339\\\"}.mdi-flashlight-off:before{content:\\\"\\\\F33A\\\"}.mdi-flattr:before{content:\\\"\\\\F33B\\\"}.mdi-flip-to-back:before{content:\\\"\\\\F33C\\\"}.mdi-flip-to-front:before{content:\\\"\\\\F33D\\\"}.mdi-floppy:before{content:\\\"\\\\F33E\\\"}.mdi-flower:before{content:\\\"\\\\F33F\\\"}.mdi-folder:before{content:\\\"\\\\F340\\\"}.mdi-folder-account:before{content:\\\"\\\\F341\\\"}.mdi-folder-download:before{content:\\\"\\\\F342\\\"}.mdi-folder-google-drive:before{content:\\\"\\\\F343\\\"}.mdi-folder-image:before{content:\\\"\\\\F344\\\"}.mdi-folder-lock:before{content:\\\"\\\\F345\\\"}.mdi-folder-lock-open:before{content:\\\"\\\\F346\\\"}.mdi-folder-move:before{content:\\\"\\\\F347\\\"}.mdi-folder-multiple:before{content:\\\"\\\\F348\\\"}.mdi-folder-multiple-image:before{content:\\\"\\\\F349\\\"}.mdi-folder-multiple-outline:before{content:\\\"\\\\F34A\\\"}.mdi-folder-outline:before{content:\\\"\\\\F34B\\\"}.mdi-folder-plus:before{content:\\\"\\\\F34C\\\"}.mdi-folder-remove:before{content:\\\"\\\\F34D\\\"}.mdi-folder-upload:before{content:\\\"\\\\F34E\\\"}.mdi-food:before{content:\\\"\\\\F34F\\\"}.mdi-food-apple:before{content:\\\"\\\\F350\\\"}.mdi-food-variant:before{content:\\\"\\\\F351\\\"}.mdi-football:before{content:\\\"\\\\F352\\\"}.mdi-football-australian:before{content:\\\"\\\\F353\\\"}.mdi-football-helmet:before{content:\\\"\\\\F354\\\"}.mdi-format-align-center:before{content:\\\"\\\\F355\\\"}.mdi-format-align-justify:before{content:\\\"\\\\F356\\\"}.mdi-format-align-left:before{content:\\\"\\\\F357\\\"}.mdi-format-align-right:before{content:\\\"\\\\F358\\\"}.mdi-format-bold:before{content:\\\"\\\\F359\\\"}.mdi-format-clear:before{content:\\\"\\\\F35A\\\"}.mdi-format-color-fill:before{content:\\\"\\\\F35B\\\"}.mdi-format-float-center:before{content:\\\"\\\\F35C\\\"}.mdi-format-float-left:before{content:\\\"\\\\F35D\\\"}.mdi-format-float-none:before{content:\\\"\\\\F35E\\\"}.mdi-format-float-right:before{content:\\\"\\\\F35F\\\"}.mdi-format-header-1:before{content:\\\"\\\\F360\\\"}.mdi-format-header-2:before{content:\\\"\\\\F361\\\"}.mdi-format-header-3:before{content:\\\"\\\\F362\\\"}.mdi-format-header-4:before{content:\\\"\\\\F363\\\"}.mdi-format-header-5:before{content:\\\"\\\\F364\\\"}.mdi-format-header-6:before{content:\\\"\\\\F365\\\"}.mdi-format-header-decrease:before{content:\\\"\\\\F366\\\"}.mdi-format-header-equal:before{content:\\\"\\\\F367\\\"}.mdi-format-header-increase:before{content:\\\"\\\\F368\\\"}.mdi-format-header-pound:before{content:\\\"\\\\F369\\\"}.mdi-format-indent-decrease:before{content:\\\"\\\\F36A\\\"}.mdi-format-indent-increase:before{content:\\\"\\\\F36B\\\"}.mdi-format-italic:before{content:\\\"\\\\F36C\\\"}.mdi-format-line-spacing:before{content:\\\"\\\\F36D\\\"}.mdi-format-list-bulleted:before{content:\\\"\\\\F36E\\\"}.mdi-format-list-bulleted-type:before{content:\\\"\\\\F36F\\\"}.mdi-format-list-numbers:before{content:\\\"\\\\F370\\\"}.mdi-format-paint:before{content:\\\"\\\\F371\\\"}.mdi-format-paragraph:before{content:\\\"\\\\F372\\\"}.mdi-format-quote:before{content:\\\"\\\\F373\\\"}.mdi-format-size:before{content:\\\"\\\\F374\\\"}.mdi-format-strikethrough:before{content:\\\"\\\\F375\\\"}.mdi-format-strikethrough-variant:before{content:\\\"\\\\F376\\\"}.mdi-format-subscript:before{content:\\\"\\\\F377\\\"}.mdi-format-superscript:before{content:\\\"\\\\F378\\\"}.mdi-format-text:before{content:\\\"\\\\F379\\\"}.mdi-format-textdirection-l-to-r:before{content:\\\"\\\\F37A\\\"}.mdi-format-textdirection-r-to-l:before{content:\\\"\\\\F37B\\\"}.mdi-format-underline:before{content:\\\"\\\\F37C\\\"}.mdi-format-wrap-inline:before{content:\\\"\\\\F37D\\\"}.mdi-format-wrap-square:before{content:\\\"\\\\F37E\\\"}.mdi-format-wrap-tight:before{content:\\\"\\\\F37F\\\"}.mdi-format-wrap-top-bottom:before{content:\\\"\\\\F380\\\"}.mdi-forum:before{content:\\\"\\\\F381\\\"}.mdi-forward:before{content:\\\"\\\\F382\\\"}.mdi-foursquare:before{content:\\\"\\\\F383\\\"}.mdi-fridge:before{content:\\\"\\\\F384\\\"}.mdi-fridge-filled:before{content:\\\"\\\\F385\\\"}.mdi-fridge-filled-bottom:before{content:\\\"\\\\F386\\\"}.mdi-fridge-filled-top:before{content:\\\"\\\\F387\\\"}.mdi-fullscreen:before{content:\\\"\\\\F388\\\"}.mdi-fullscreen-exit:before{content:\\\"\\\\F389\\\"}.mdi-function:before{content:\\\"\\\\F38A\\\"}.mdi-gamepad:before{content:\\\"\\\\F38B\\\"}.mdi-gamepad-variant:before{content:\\\"\\\\F38C\\\"}.mdi-gas-station:before{content:\\\"\\\\F38D\\\"}.mdi-gate:before{content:\\\"\\\\F38E\\\"}.mdi-gauge:before{content:\\\"\\\\F38F\\\"}.mdi-gavel:before{content:\\\"\\\\F390\\\"}.mdi-gender-female:before{content:\\\"\\\\F391\\\"}.mdi-gender-male:before{content:\\\"\\\\F392\\\"}.mdi-gender-male-female:before{content:\\\"\\\\F393\\\"}.mdi-gender-transgender:before{content:\\\"\\\\F394\\\"}.mdi-ghost:before{content:\\\"\\\\F395\\\"}.mdi-gift:before{content:\\\"\\\\F396\\\"}.mdi-git:before{content:\\\"\\\\F397\\\"}.mdi-github-box:before{content:\\\"\\\\F398\\\"}.mdi-github-circle:before{content:\\\"\\\\F399\\\"}.mdi-glass-flute:before{content:\\\"\\\\F39A\\\"}.mdi-glass-mug:before{content:\\\"\\\\F39B\\\"}.mdi-glass-stange:before{content:\\\"\\\\F39C\\\"}.mdi-glass-tulip:before{content:\\\"\\\\F39D\\\"}.mdi-glasses:before{content:\\\"\\\\F39E\\\"}.mdi-gmail:before{content:\\\"\\\\F39F\\\"}.mdi-google:before{content:\\\"\\\\F3A0\\\"}.mdi-google-cardboard:before{content:\\\"\\\\F3A1\\\"}.mdi-google-chrome:before{content:\\\"\\\\F3A2\\\"}.mdi-google-circles:before{content:\\\"\\\\F3A3\\\"}.mdi-google-circles-communities:before{content:\\\"\\\\F3A4\\\"}.mdi-google-circles-extended:before{content:\\\"\\\\F3A5\\\"}.mdi-google-circles-group:before{content:\\\"\\\\F3A6\\\"}.mdi-google-controller:before{content:\\\"\\\\F3A7\\\"}.mdi-google-controller-off:before{content:\\\"\\\\F3A8\\\"}.mdi-google-drive:before{content:\\\"\\\\F3A9\\\"}.mdi-google-earth:before{content:\\\"\\\\F3AA\\\"}.mdi-google-glass:before{content:\\\"\\\\F3AB\\\"}.mdi-google-nearby:before{content:\\\"\\\\F3AC\\\"}.mdi-google-pages:before{content:\\\"\\\\F3AD\\\"}.mdi-google-physical-web:before{content:\\\"\\\\F3AE\\\"}.mdi-google-play:before{content:\\\"\\\\F3AF\\\"}.mdi-google-plus:before{content:\\\"\\\\F3B0\\\"}.mdi-google-plus-box:before{content:\\\"\\\\F3B1\\\"}.mdi-google-translate:before{content:\\\"\\\\F3B2\\\"}.mdi-google-wallet:before{content:\\\"\\\\F3B3\\\"}.mdi-grid:before{content:\\\"\\\\F3B4\\\"}.mdi-grid-off:before{content:\\\"\\\\F3B5\\\"}.mdi-group:before{content:\\\"\\\\F3B6\\\"}.mdi-guitar:before{content:\\\"\\\\F3B7\\\"}.mdi-guitar-pick:before{content:\\\"\\\\F3B8\\\"}.mdi-guitar-pick-outline:before{content:\\\"\\\\F3B9\\\"}.mdi-hand-pointing-right:before{content:\\\"\\\\F3BA\\\"}.mdi-hanger:before{content:\\\"\\\\F3BB\\\"}.mdi-hangouts:before{content:\\\"\\\\F3BC\\\"}.mdi-harddisk:before{content:\\\"\\\\F3BD\\\"}.mdi-headphones:before{content:\\\"\\\\F3BE\\\"}.mdi-headphones-box:before{content:\\\"\\\\F3BF\\\"}.mdi-headphones-settings:before{content:\\\"\\\\F3C0\\\"}.mdi-headset:before{content:\\\"\\\\F3C1\\\"}.mdi-headset-dock:before{content:\\\"\\\\F3C2\\\"}.mdi-headset-off:before{content:\\\"\\\\F3C3\\\"}.mdi-heart:before{content:\\\"\\\\F3C4\\\"}.mdi-heart-box:before{content:\\\"\\\\F3C5\\\"}.mdi-heart-box-outline:before{content:\\\"\\\\F3C6\\\"}.mdi-heart-broken:before{content:\\\"\\\\F3C7\\\"}.mdi-heart-outline:before{content:\\\"\\\\F3C8\\\"}.mdi-help:before{content:\\\"\\\\F3C9\\\"}.mdi-help-circle:before{content:\\\"\\\\F3CA\\\"}.mdi-hexagon:before{content:\\\"\\\\F3CB\\\"}.mdi-hexagon-outline:before{content:\\\"\\\\F3CC\\\"}.mdi-history:before{content:\\\"\\\\F3CD\\\"}.mdi-hololens:before{content:\\\"\\\\F3CE\\\"}.mdi-home:before{content:\\\"\\\\F3CF\\\"}.mdi-home-modern:before{content:\\\"\\\\F3D0\\\"}.mdi-home-variant:before{content:\\\"\\\\F3D1\\\"}.mdi-hops:before{content:\\\"\\\\F3D2\\\"}.mdi-hospital:before{content:\\\"\\\\F3D3\\\"}.mdi-hospital-building:before{content:\\\"\\\\F3D4\\\"}.mdi-hospital-marker:before{content:\\\"\\\\F3D5\\\"}.mdi-hotel:before{content:\\\"\\\\F3D6\\\"}.mdi-houzz:before{content:\\\"\\\\F3D7\\\"}.mdi-houzz-box:before{content:\\\"\\\\F3D8\\\"}.mdi-human:before{content:\\\"\\\\F3D9\\\"}.mdi-human-child:before{content:\\\"\\\\F3DA\\\"}.mdi-human-male-female:before{content:\\\"\\\\F3DB\\\"}.mdi-image:before{content:\\\"\\\\F3DC\\\"}.mdi-image-album:before{content:\\\"\\\\F3DD\\\"}.mdi-image-area:before{content:\\\"\\\\F3DE\\\"}.mdi-image-area-close:before{content:\\\"\\\\F3DF\\\"}.mdi-image-broken:before{content:\\\"\\\\F3E0\\\"}.mdi-image-broken-variant:before{content:\\\"\\\\F3E1\\\"}.mdi-image-filter:before{content:\\\"\\\\F3E2\\\"}.mdi-image-filter-black-white:before{content:\\\"\\\\F3E3\\\"}.mdi-image-filter-center-focus:before{content:\\\"\\\\F3E4\\\"}.mdi-image-filter-center-focus-weak:before{content:\\\"\\\\F3E5\\\"}.mdi-image-filter-drama:before{content:\\\"\\\\F3E6\\\"}.mdi-image-filter-frames:before{content:\\\"\\\\F3E7\\\"}.mdi-image-filter-hdr:before{content:\\\"\\\\F3E8\\\"}.mdi-image-filter-none:before{content:\\\"\\\\F3E9\\\"}.mdi-image-filter-tilt-shift:before{content:\\\"\\\\F3EA\\\"}.mdi-image-filter-vintage:before{content:\\\"\\\\F3EB\\\"}.mdi-image-multiple:before{content:\\\"\\\\F3EC\\\"}.mdi-import:before{content:\\\"\\\\F3ED\\\"}.mdi-inbox:before{content:\\\"\\\\F3EE\\\"}.mdi-information:before{content:\\\"\\\\F3EF\\\"}.mdi-information-outline:before{content:\\\"\\\\F3F0\\\"}.mdi-instagram:before{content:\\\"\\\\F3F1\\\"}.mdi-instapaper:before{content:\\\"\\\\F3F2\\\"}.mdi-internet-explorer:before{content:\\\"\\\\F3F3\\\"}.mdi-invert-colors:before{content:\\\"\\\\F3F4\\\"}.mdi-jeepney:before{content:\\\"\\\\F3F5\\\"}.mdi-jira:before{content:\\\"\\\\F3F6\\\"}.mdi-jsfiddle:before{content:\\\"\\\\F3F7\\\"}.mdi-keg:before{content:\\\"\\\\F3F8\\\"}.mdi-key:before{content:\\\"\\\\F3F9\\\"}.mdi-key-change:before{content:\\\"\\\\F3FA\\\"}.mdi-key-minus:before{content:\\\"\\\\F3FB\\\"}.mdi-key-plus:before{content:\\\"\\\\F3FC\\\"}.mdi-key-remove:before{content:\\\"\\\\F3FD\\\"}.mdi-key-variant:before{content:\\\"\\\\F3FE\\\"}.mdi-keyboard:before{content:\\\"\\\\F3FF\\\"}.mdi-keyboard-backspace:before{content:\\\"\\\\F400\\\"}.mdi-keyboard-caps:before{content:\\\"\\\\F401\\\"}.mdi-keyboard-close:before{content:\\\"\\\\F402\\\"}.mdi-keyboard-off:before{content:\\\"\\\\F403\\\"}.mdi-keyboard-return:before{content:\\\"\\\\F404\\\"}.mdi-keyboard-tab:before{content:\\\"\\\\F405\\\"}.mdi-keyboard-variant:before{content:\\\"\\\\F406\\\"}.mdi-label:before{content:\\\"\\\\F407\\\"}.mdi-label-outline:before{content:\\\"\\\\F408\\\"}.mdi-lan:before{content:\\\"\\\\F409\\\"}.mdi-lan-connect:before{content:\\\"\\\\F40A\\\"}.mdi-lan-disconnect:before{content:\\\"\\\\F40B\\\"}.mdi-lan-pending:before{content:\\\"\\\\F40C\\\"}.mdi-language-csharp:before{content:\\\"\\\\F40D\\\"}.mdi-language-css3:before{content:\\\"\\\\F40E\\\"}.mdi-language-html5:before{content:\\\"\\\\F40F\\\"}.mdi-language-javascript:before{content:\\\"\\\\F410\\\"}.mdi-language-php:before{content:\\\"\\\\F411\\\"}.mdi-language-python:before{content:\\\"\\\\F412\\\"}.mdi-language-python-text:before{content:\\\"\\\\F413\\\"}.mdi-laptop:before{content:\\\"\\\\F414\\\"}.mdi-laptop-chromebook:before{content:\\\"\\\\F415\\\"}.mdi-laptop-mac:before{content:\\\"\\\\F416\\\"}.mdi-laptop-windows:before{content:\\\"\\\\F417\\\"}.mdi-lastfm:before{content:\\\"\\\\F418\\\"}.mdi-launch:before{content:\\\"\\\\F419\\\"}.mdi-layers:before{content:\\\"\\\\F41A\\\"}.mdi-layers-off:before{content:\\\"\\\\F41B\\\"}.mdi-leaf:before{content:\\\"\\\\F41C\\\"}.mdi-led-off:before{content:\\\"\\\\F41D\\\"}.mdi-led-on:before{content:\\\"\\\\F41E\\\"}.mdi-led-outline:before{content:\\\"\\\\F41F\\\"}.mdi-led-variant-off:before{content:\\\"\\\\F420\\\"}.mdi-led-variant-on:before{content:\\\"\\\\F421\\\"}.mdi-led-variant-outline:before{content:\\\"\\\\F422\\\"}.mdi-library:before{content:\\\"\\\\F423\\\"}.mdi-library-books:before{content:\\\"\\\\F424\\\"}.mdi-library-music:before{content:\\\"\\\\F425\\\"}.mdi-library-plus:before{content:\\\"\\\\F426\\\"}.mdi-lightbulb:before{content:\\\"\\\\F427\\\"}.mdi-lightbulb-outline:before{content:\\\"\\\\F428\\\"}.mdi-link:before{content:\\\"\\\\F429\\\"}.mdi-link-off:before{content:\\\"\\\\F42A\\\"}.mdi-link-variant:before{content:\\\"\\\\F42B\\\"}.mdi-link-variant-off:before{content:\\\"\\\\F42C\\\"}.mdi-linkedin:before{content:\\\"\\\\F42D\\\"}.mdi-linkedin-box:before{content:\\\"\\\\F42E\\\"}.mdi-linux:before{content:\\\"\\\\F42F\\\"}.mdi-lock:before{content:\\\"\\\\F430\\\"}.mdi-lock-open:before{content:\\\"\\\\F431\\\"}.mdi-lock-open-outline:before{content:\\\"\\\\F432\\\"}.mdi-lock-outline:before{content:\\\"\\\\F433\\\"}.mdi-login:before{content:\\\"\\\\F434\\\"}.mdi-logout:before{content:\\\"\\\\F435\\\"}.mdi-looks:before{content:\\\"\\\\F436\\\"}.mdi-loupe:before{content:\\\"\\\\F437\\\"}.mdi-lumx:before{content:\\\"\\\\F438\\\"}.mdi-magnet:before{content:\\\"\\\\F439\\\"}.mdi-magnet-on:before{content:\\\"\\\\F43A\\\"}.mdi-magnify:before{content:\\\"\\\\F43B\\\"}.mdi-magnify-minus:before{content:\\\"\\\\F43C\\\"}.mdi-magnify-plus:before{content:\\\"\\\\F43D\\\"}.mdi-mail-ru:before{content:\\\"\\\\F43E\\\"}.mdi-map:before{content:\\\"\\\\F43F\\\"}.mdi-map-marker:before{content:\\\"\\\\F440\\\"}.mdi-map-marker-circle:before{content:\\\"\\\\F441\\\"}.mdi-map-marker-multiple:before{content:\\\"\\\\F442\\\"}.mdi-map-marker-off:before{content:\\\"\\\\F443\\\"}.mdi-map-marker-radius:before{content:\\\"\\\\F444\\\"}.mdi-margin:before{content:\\\"\\\\F445\\\"}.mdi-markdown:before{content:\\\"\\\\F446\\\"}.mdi-marker-check:before{content:\\\"\\\\F447\\\"}.mdi-martini:before{content:\\\"\\\\F448\\\"}.mdi-material-ui:before{content:\\\"\\\\F449\\\"}.mdi-math-compass:before{content:\\\"\\\\F44A\\\"}.mdi-maxcdn:before{content:\\\"\\\\F44B\\\"}.mdi-medium:before{content:\\\"\\\\F44C\\\"}.mdi-memory:before{content:\\\"\\\\F44D\\\"}.mdi-menu:before{content:\\\"\\\\F44E\\\"}.mdi-menu-down:before{content:\\\"\\\\F44F\\\"}.mdi-menu-left:before{content:\\\"\\\\F450\\\"}.mdi-menu-right:before{content:\\\"\\\\F451\\\"}.mdi-menu-up:before{content:\\\"\\\\F452\\\"}.mdi-message:before{content:\\\"\\\\F453\\\"}.mdi-message-alert:before{content:\\\"\\\\F454\\\"}.mdi-message-draw:before{content:\\\"\\\\F455\\\"}.mdi-message-image:before{content:\\\"\\\\F456\\\"}.mdi-message-outline:before{content:\\\"\\\\F457\\\"}.mdi-message-processing:before{content:\\\"\\\\F458\\\"}.mdi-message-reply:before{content:\\\"\\\\F459\\\"}.mdi-message-reply-text:before{content:\\\"\\\\F45A\\\"}.mdi-message-text:before{content:\\\"\\\\F45B\\\"}.mdi-message-text-outline:before{content:\\\"\\\\F45C\\\"}.mdi-message-video:before{content:\\\"\\\\F45D\\\"}.mdi-microphone:before{content:\\\"\\\\F45E\\\"}.mdi-microphone-off:before{content:\\\"\\\\F45F\\\"}.mdi-microphone-outline:before{content:\\\"\\\\F460\\\"}.mdi-microphone-settings:before{content:\\\"\\\\F461\\\"}.mdi-microphone-variant:before{content:\\\"\\\\F462\\\"}.mdi-microphone-variant-off:before{content:\\\"\\\\F463\\\"}.mdi-microsoft:before{content:\\\"\\\\F464\\\"}.mdi-minus:before{content:\\\"\\\\F465\\\"}.mdi-minus-box:before{content:\\\"\\\\F466\\\"}.mdi-minus-circle:before{content:\\\"\\\\F467\\\"}.mdi-minus-circle-outline:before{content:\\\"\\\\F468\\\"}.mdi-minus-network:before{content:\\\"\\\\F469\\\"}.mdi-monitor:before{content:\\\"\\\\F46A\\\"}.mdi-monitor-multiple:before{content:\\\"\\\\F46B\\\"}.mdi-more:before{content:\\\"\\\\F46C\\\"}.mdi-motorbike:before{content:\\\"\\\\F46D\\\"}.mdi-mouse:before{content:\\\"\\\\F46E\\\"}.mdi-mouse-off:before{content:\\\"\\\\F46F\\\"}.mdi-mouse-variant:before{content:\\\"\\\\F470\\\"}.mdi-mouse-variant-off:before{content:\\\"\\\\F471\\\"}.mdi-movie:before{content:\\\"\\\\F472\\\"}.mdi-multiplication:before{content:\\\"\\\\F473\\\"}.mdi-multiplication-box:before{content:\\\"\\\\F474\\\"}.mdi-music-box:before{content:\\\"\\\\F475\\\"}.mdi-music-box-outline:before{content:\\\"\\\\F476\\\"}.mdi-music-circle:before{content:\\\"\\\\F477\\\"}.mdi-music-note:before{content:\\\"\\\\F478\\\"}.mdi-music-note-eighth:before{content:\\\"\\\\F479\\\"}.mdi-music-note-half:before{content:\\\"\\\\F47A\\\"}.mdi-music-note-off:before{content:\\\"\\\\F47B\\\"}.mdi-music-note-quarter:before{content:\\\"\\\\F47C\\\"}.mdi-music-note-sixteenth:before{content:\\\"\\\\F47D\\\"}.mdi-music-note-whole:before{content:\\\"\\\\F47E\\\"}.mdi-nature:before{content:\\\"\\\\F47F\\\"}.mdi-nature-people:before{content:\\\"\\\\F480\\\"}.mdi-navigation:before{content:\\\"\\\\F481\\\"}.mdi-needle:before{content:\\\"\\\\F482\\\"}.mdi-nest-protect:before{content:\\\"\\\\F483\\\"}.mdi-nest-thermostat:before{content:\\\"\\\\F484\\\"}.mdi-newspaper:before{content:\\\"\\\\F485\\\"}.mdi-nfc:before{content:\\\"\\\\F486\\\"}.mdi-nfc-tap:before{content:\\\"\\\\F487\\\"}.mdi-nfc-variant:before{content:\\\"\\\\F488\\\"}.mdi-nodejs:before{content:\\\"\\\\F489\\\"}.mdi-note:before{content:\\\"\\\\F48A\\\"}.mdi-note-outline:before{content:\\\"\\\\F48B\\\"}.mdi-note-plus:before{content:\\\"\\\\F48C\\\"}.mdi-note-plus-outline:before{content:\\\"\\\\F48D\\\"}.mdi-note-text:before{content:\\\"\\\\F48E\\\"}.mdi-notification-clear-all:before{content:\\\"\\\\F48F\\\"}.mdi-numeric:before{content:\\\"\\\\F490\\\"}.mdi-numeric-0-box:before{content:\\\"\\\\F491\\\"}.mdi-numeric-0-box-multiple-outline:before{content:\\\"\\\\F492\\\"}.mdi-numeric-0-box-outline:before{content:\\\"\\\\F493\\\"}.mdi-numeric-1-box:before{content:\\\"\\\\F494\\\"}.mdi-numeric-1-box-multiple-outline:before{content:\\\"\\\\F495\\\"}.mdi-numeric-1-box-outline:before{content:\\\"\\\\F496\\\"}.mdi-numeric-2-box:before{content:\\\"\\\\F497\\\"}.mdi-numeric-2-box-multiple-outline:before{content:\\\"\\\\F498\\\"}.mdi-numeric-2-box-outline:before{content:\\\"\\\\F499\\\"}.mdi-numeric-3-box:before{content:\\\"\\\\F49A\\\"}.mdi-numeric-3-box-multiple-outline:before{content:\\\"\\\\F49B\\\"}.mdi-numeric-3-box-outline:before{content:\\\"\\\\F49C\\\"}.mdi-numeric-4-box:before{content:\\\"\\\\F49D\\\"}.mdi-numeric-4-box-multiple-outline:before{content:\\\"\\\\F49E\\\"}.mdi-numeric-4-box-outline:before{content:\\\"\\\\F49F\\\"}.mdi-numeric-5-box:before{content:\\\"\\\\F4A0\\\"}.mdi-numeric-5-box-multiple-outline:before{content:\\\"\\\\F4A1\\\"}.mdi-numeric-5-box-outline:before{content:\\\"\\\\F4A2\\\"}.mdi-numeric-6-box:before{content:\\\"\\\\F4A3\\\"}.mdi-numeric-6-box-multiple-outline:before{content:\\\"\\\\F4A4\\\"}.mdi-numeric-6-box-outline:before{content:\\\"\\\\F4A5\\\"}.mdi-numeric-7-box:before{content:\\\"\\\\F4A6\\\"}.mdi-numeric-7-box-multiple-outline:before{content:\\\"\\\\F4A7\\\"}.mdi-numeric-7-box-outline:before{content:\\\"\\\\F4A8\\\"}.mdi-numeric-8-box:before{content:\\\"\\\\F4A9\\\"}.mdi-numeric-8-box-multiple-outline:before{content:\\\"\\\\F4AA\\\"}.mdi-numeric-8-box-outline:before{content:\\\"\\\\F4AB\\\"}.mdi-numeric-9-box:before{content:\\\"\\\\F4AC\\\"}.mdi-numeric-9-box-multiple-outline:before{content:\\\"\\\\F4AD\\\"}.mdi-numeric-9-box-outline:before{content:\\\"\\\\F4AE\\\"}.mdi-numeric-9-plus-box:before{content:\\\"\\\\F4AF\\\"}.mdi-numeric-9-plus-box-multiple-outline:before{content:\\\"\\\\F4B0\\\"}.mdi-numeric-9-plus-box-outline:before{content:\\\"\\\\F4B1\\\"}.mdi-nutrition:before{content:\\\"\\\\F4B2\\\"}.mdi-octagon:before{content:\\\"\\\\F4B3\\\"}.mdi-octagon-outline:before{content:\\\"\\\\F4B4\\\"}.mdi-odnoklassniki:before{content:\\\"\\\\F4B5\\\"}.mdi-office:before{content:\\\"\\\\F4B6\\\"}.mdi-oil:before{content:\\\"\\\\F4B7\\\"}.mdi-oil-temperature:before{content:\\\"\\\\F4B8\\\"}.mdi-omega:before{content:\\\"\\\\F4B9\\\"}.mdi-onedrive:before{content:\\\"\\\\F4BA\\\"}.mdi-open-in-app:before{content:\\\"\\\\F4BB\\\"}.mdi-open-in-new:before{content:\\\"\\\\F4BC\\\"}.mdi-opera:before{content:\\\"\\\\F4BD\\\"}.mdi-ornament:before{content:\\\"\\\\F4BE\\\"}.mdi-ornament-variant:before{content:\\\"\\\\F4BF\\\"}.mdi-outbox:before{content:\\\"\\\\F4C0\\\"}.mdi-owl:before{content:\\\"\\\\F4C1\\\"}.mdi-package:before{content:\\\"\\\\F4C2\\\"}.mdi-package-down:before{content:\\\"\\\\F4C3\\\"}.mdi-package-up:before{content:\\\"\\\\F4C4\\\"}.mdi-package-variant:before{content:\\\"\\\\F4C5\\\"}.mdi-package-variant-closed:before{content:\\\"\\\\F4C6\\\"}.mdi-palette:before{content:\\\"\\\\F4C7\\\"}.mdi-palette-advanced:before{content:\\\"\\\\F4C8\\\"}.mdi-panda:before{content:\\\"\\\\F4C9\\\"}.mdi-pandora:before{content:\\\"\\\\F4CA\\\"}.mdi-panorama:before{content:\\\"\\\\F4CB\\\"}.mdi-panorama-fisheye:before{content:\\\"\\\\F4CC\\\"}.mdi-panorama-horizontal:before{content:\\\"\\\\F4CD\\\"}.mdi-panorama-vertical:before{content:\\\"\\\\F4CE\\\"}.mdi-panorama-wide-angle:before{content:\\\"\\\\F4CF\\\"}.mdi-paper-cut-vertical:before{content:\\\"\\\\F4D0\\\"}.mdi-paperclip:before{content:\\\"\\\\F4D1\\\"}.mdi-parking:before{content:\\\"\\\\F4D2\\\"}.mdi-pause:before{content:\\\"\\\\F4D3\\\"}.mdi-pause-circle:before{content:\\\"\\\\F4D4\\\"}.mdi-pause-circle-outline:before{content:\\\"\\\\F4D5\\\"}.mdi-pause-octagon:before{content:\\\"\\\\F4D6\\\"}.mdi-pause-octagon-outline:before{content:\\\"\\\\F4D7\\\"}.mdi-paw:before{content:\\\"\\\\F4D8\\\"}.mdi-pen:before{content:\\\"\\\\F4D9\\\"}.mdi-pencil:before{content:\\\"\\\\F4DA\\\"}.mdi-pencil-box:before{content:\\\"\\\\F4DB\\\"}.mdi-pencil-box-outline:before{content:\\\"\\\\F4DC\\\"}.mdi-pencil-lock:before{content:\\\"\\\\F4DD\\\"}.mdi-pencil-off:before{content:\\\"\\\\F4DE\\\"}.mdi-percent:before{content:\\\"\\\\F4DF\\\"}.mdi-pharmacy:before{content:\\\"\\\\F4E0\\\"}.mdi-phone:before{content:\\\"\\\\F4E1\\\"}.mdi-phone-bluetooth:before{content:\\\"\\\\F4E2\\\"}.mdi-phone-forward:before{content:\\\"\\\\F4E3\\\"}.mdi-phone-hangup:before{content:\\\"\\\\F4E4\\\"}.mdi-phone-in-talk:before{content:\\\"\\\\F4E5\\\"}.mdi-phone-incoming:before{content:\\\"\\\\F4E6\\\"}.mdi-phone-locked:before{content:\\\"\\\\F4E7\\\"}.mdi-phone-log:before{content:\\\"\\\\F4E8\\\"}.mdi-phone-missed:before{content:\\\"\\\\F4E9\\\"}.mdi-phone-outgoing:before{content:\\\"\\\\F4EA\\\"}.mdi-phone-paused:before{content:\\\"\\\\F4EB\\\"}.mdi-phone-settings:before{content:\\\"\\\\F4EC\\\"}.mdi-phone-voip:before{content:\\\"\\\\F4ED\\\"}.mdi-pi:before{content:\\\"\\\\F4EE\\\"}.mdi-pi-box:before{content:\\\"\\\\F4EF\\\"}.mdi-pig:before{content:\\\"\\\\F4F0\\\"}.mdi-pill:before{content:\\\"\\\\F4F1\\\"}.mdi-pin:before{content:\\\"\\\\F4F2\\\"}.mdi-pin-off:before{content:\\\"\\\\F4F3\\\"}.mdi-pine-tree:before{content:\\\"\\\\F4F4\\\"}.mdi-pine-tree-box:before{content:\\\"\\\\F4F5\\\"}.mdi-pinterest:before{content:\\\"\\\\F4F6\\\"}.mdi-pinterest-box:before{content:\\\"\\\\F4F7\\\"}.mdi-pizza:before{content:\\\"\\\\F4F8\\\"}.mdi-play:before{content:\\\"\\\\F4F9\\\"}.mdi-play-box-outline:before{content:\\\"\\\\F4FA\\\"}.mdi-play-circle:before{content:\\\"\\\\F4FB\\\"}.mdi-play-circle-outline:before{content:\\\"\\\\F4FC\\\"}.mdi-play-pause:before{content:\\\"\\\\F4FD\\\"}.mdi-play-protected-content:before{content:\\\"\\\\F4FE\\\"}.mdi-playlist-minus:before{content:\\\"\\\\F4FF\\\"}.mdi-playlist-play:before{content:\\\"\\\\F500\\\"}.mdi-playlist-plus:before{content:\\\"\\\\F501\\\"}.mdi-playlist-remove:before{content:\\\"\\\\F502\\\"}.mdi-playstation:before{content:\\\"\\\\F503\\\"}.mdi-plus:before{content:\\\"\\\\F504\\\"}.mdi-plus-box:before{content:\\\"\\\\F505\\\"}.mdi-plus-circle:before{content:\\\"\\\\F506\\\"}.mdi-plus-circle-multiple-outline:before{content:\\\"\\\\F507\\\"}.mdi-plus-circle-outline:before{content:\\\"\\\\F508\\\"}.mdi-plus-network:before{content:\\\"\\\\F509\\\"}.mdi-plus-one:before{content:\\\"\\\\F50A\\\"}.mdi-pocket:before{content:\\\"\\\\F50B\\\"}.mdi-pokeball:before{content:\\\"\\\\F50C\\\"}.mdi-polaroid:before{content:\\\"\\\\F50D\\\"}.mdi-poll:before{content:\\\"\\\\F50E\\\"}.mdi-poll-box:before{content:\\\"\\\\F50F\\\"}.mdi-polymer:before{content:\\\"\\\\F510\\\"}.mdi-popcorn:before{content:\\\"\\\\F511\\\"}.mdi-pound:before{content:\\\"\\\\F512\\\"}.mdi-pound-box:before{content:\\\"\\\\F513\\\"}.mdi-power:before{content:\\\"\\\\F514\\\"}.mdi-power-settings:before{content:\\\"\\\\F515\\\"}.mdi-power-socket:before{content:\\\"\\\\F516\\\"}.mdi-presentation:before{content:\\\"\\\\F517\\\"}.mdi-presentation-play:before{content:\\\"\\\\F518\\\"}.mdi-printer:before{content:\\\"\\\\F519\\\"}.mdi-printer-3d:before{content:\\\"\\\\F51A\\\"}.mdi-printer-alert:before{content:\\\"\\\\F51B\\\"}.mdi-professional-hexagon:before{content:\\\"\\\\F51C\\\"}.mdi-projector:before{content:\\\"\\\\F51D\\\"}.mdi-projector-screen:before{content:\\\"\\\\F51E\\\"}.mdi-pulse:before{content:\\\"\\\\F51F\\\"}.mdi-puzzle:before{content:\\\"\\\\F520\\\"}.mdi-qrcode:before{content:\\\"\\\\F521\\\"}.mdi-qrcode-scan:before{content:\\\"\\\\F522\\\"}.mdi-quadcopter:before{content:\\\"\\\\F523\\\"}.mdi-quality-high:before{content:\\\"\\\\F524\\\"}.mdi-quicktime:before{content:\\\"\\\\F525\\\"}.mdi-radar:before{content:\\\"\\\\F526\\\"}.mdi-radiator:before{content:\\\"\\\\F527\\\"}.mdi-radio:before{content:\\\"\\\\F528\\\"}.mdi-radio-handheld:before{content:\\\"\\\\F529\\\"}.mdi-radio-tower:before{content:\\\"\\\\F52A\\\"}.mdi-radioactive:before{content:\\\"\\\\F52B\\\"}.mdi-radiobox-blank:before{content:\\\"\\\\F52C\\\"}.mdi-radiobox-marked:before{content:\\\"\\\\F52D\\\"}.mdi-raspberrypi:before{content:\\\"\\\\F52E\\\"}.mdi-ray-end:before{content:\\\"\\\\F52F\\\"}.mdi-ray-end-arrow:before{content:\\\"\\\\F530\\\"}.mdi-ray-start:before{content:\\\"\\\\F531\\\"}.mdi-ray-start-arrow:before{content:\\\"\\\\F532\\\"}.mdi-ray-start-end:before{content:\\\"\\\\F533\\\"}.mdi-ray-vertex:before{content:\\\"\\\\F534\\\"}.mdi-rdio:before{content:\\\"\\\\F535\\\"}.mdi-read:before{content:\\\"\\\\F536\\\"}.mdi-readability:before{content:\\\"\\\\F537\\\"}.mdi-receipt:before{content:\\\"\\\\F538\\\"}.mdi-record:before{content:\\\"\\\\F539\\\"}.mdi-record-rec:before{content:\\\"\\\\F53A\\\"}.mdi-recycle:before{content:\\\"\\\\F53B\\\"}.mdi-reddit:before{content:\\\"\\\\F53C\\\"}.mdi-redo:before{content:\\\"\\\\F53D\\\"}.mdi-redo-variant:before{content:\\\"\\\\F53E\\\"}.mdi-refresh:before{content:\\\"\\\\F53F\\\"}.mdi-regex:before{content:\\\"\\\\F540\\\"}.mdi-relative-scale:before{content:\\\"\\\\F541\\\"}.mdi-reload:before{content:\\\"\\\\F542\\\"}.mdi-remote:before{content:\\\"\\\\F543\\\"}.mdi-rename-box:before{content:\\\"\\\\F544\\\"}.mdi-repeat:before{content:\\\"\\\\F545\\\"}.mdi-repeat-off:before{content:\\\"\\\\F546\\\"}.mdi-repeat-once:before{content:\\\"\\\\F547\\\"}.mdi-replay:before{content:\\\"\\\\F548\\\"}.mdi-reply:before{content:\\\"\\\\F549\\\"}.mdi-reply-all:before{content:\\\"\\\\F54A\\\"}.mdi-reproduction:before{content:\\\"\\\\F54B\\\"}.mdi-resize-bottom-right:before{content:\\\"\\\\F54C\\\"}.mdi-responsive:before{content:\\\"\\\\F54D\\\"}.mdi-rewind:before{content:\\\"\\\\F54E\\\"}.mdi-ribbon:before{content:\\\"\\\\F54F\\\"}.mdi-road:before{content:\\\"\\\\F550\\\"}.mdi-road-variant:before{content:\\\"\\\\F551\\\"}.mdi-rocket:before{content:\\\"\\\\F552\\\"}.mdi-rotate-3d:before{content:\\\"\\\\F553\\\"}.mdi-rotate-left:before{content:\\\"\\\\F554\\\"}.mdi-rotate-left-variant:before{content:\\\"\\\\F555\\\"}.mdi-rotate-right:before{content:\\\"\\\\F556\\\"}.mdi-rotate-right-variant:before{content:\\\"\\\\F557\\\"}.mdi-router-wireless:before{content:\\\"\\\\F558\\\"}.mdi-routes:before{content:\\\"\\\\F559\\\"}.mdi-rss:before{content:\\\"\\\\F55A\\\"}.mdi-rss-box:before{content:\\\"\\\\F55B\\\"}.mdi-ruler:before{content:\\\"\\\\F55C\\\"}.mdi-run:before{content:\\\"\\\\F55D\\\"}.mdi-sale:before{content:\\\"\\\\F55E\\\"}.mdi-satellite:before{content:\\\"\\\\F55F\\\"}.mdi-satellite-variant:before{content:\\\"\\\\F560\\\"}.mdi-scale:before{content:\\\"\\\\F561\\\"}.mdi-scale-bathroom:before{content:\\\"\\\\F562\\\"}.mdi-school:before{content:\\\"\\\\F563\\\"}.mdi-screen-rotation:before{content:\\\"\\\\F564\\\"}.mdi-screen-rotation-lock:before{content:\\\"\\\\F565\\\"}.mdi-screwdriver:before{content:\\\"\\\\F566\\\"}.mdi-script:before{content:\\\"\\\\F567\\\"}.mdi-sd:before{content:\\\"\\\\F568\\\"}.mdi-seal:before{content:\\\"\\\\F569\\\"}.mdi-seat-flat:before{content:\\\"\\\\F56A\\\"}.mdi-seat-flat-angled:before{content:\\\"\\\\F56B\\\"}.mdi-seat-individual-suite:before{content:\\\"\\\\F56C\\\"}.mdi-seat-legroom-extra:before{content:\\\"\\\\F56D\\\"}.mdi-seat-legroom-normal:before{content:\\\"\\\\F56E\\\"}.mdi-seat-legroom-reduced:before{content:\\\"\\\\F56F\\\"}.mdi-seat-recline-extra:before{content:\\\"\\\\F570\\\"}.mdi-seat-recline-normal:before{content:\\\"\\\\F571\\\"}.mdi-security:before{content:\\\"\\\\F572\\\"}.mdi-security-network:before{content:\\\"\\\\F573\\\"}.mdi-select:before{content:\\\"\\\\F574\\\"}.mdi-select-all:before{content:\\\"\\\\F575\\\"}.mdi-select-inverse:before{content:\\\"\\\\F576\\\"}.mdi-select-off:before{content:\\\"\\\\F577\\\"}.mdi-selection:before{content:\\\"\\\\F578\\\"}.mdi-send:before{content:\\\"\\\\F579\\\"}.mdi-server:before{content:\\\"\\\\F57A\\\"}.mdi-server-minus:before{content:\\\"\\\\F57B\\\"}.mdi-server-network:before{content:\\\"\\\\F57C\\\"}.mdi-server-network-off:before{content:\\\"\\\\F57D\\\"}.mdi-server-off:before{content:\\\"\\\\F57E\\\"}.mdi-server-plus:before{content:\\\"\\\\F57F\\\"}.mdi-server-remove:before{content:\\\"\\\\F580\\\"}.mdi-server-security:before{content:\\\"\\\\F581\\\"}.mdi-settings:before{content:\\\"\\\\F582\\\"}.mdi-settings-box:before{content:\\\"\\\\F583\\\"}.mdi-shape-plus:before{content:\\\"\\\\F584\\\"}.mdi-share:before{content:\\\"\\\\F585\\\"}.mdi-share-variant:before{content:\\\"\\\\F586\\\"}.mdi-shield:before{content:\\\"\\\\F587\\\"}.mdi-shield-outline:before{content:\\\"\\\\F588\\\"}.mdi-shopping:before{content:\\\"\\\\F589\\\"}.mdi-shopping-music:before{content:\\\"\\\\F58A\\\"}.mdi-shredder:before{content:\\\"\\\\F58B\\\"}.mdi-shuffle:before{content:\\\"\\\\F58C\\\"}.mdi-shuffle-disabled:before{content:\\\"\\\\F58D\\\"}.mdi-shuffle-variant:before{content:\\\"\\\\F58E\\\"}.mdi-sigma:before{content:\\\"\\\\F58F\\\"}.mdi-sign-caution:before{content:\\\"\\\\F590\\\"}.mdi-signal:before{content:\\\"\\\\F591\\\"}.mdi-silverware:before{content:\\\"\\\\F592\\\"}.mdi-silverware-fork:before{content:\\\"\\\\F593\\\"}.mdi-silverware-spoon:before{content:\\\"\\\\F594\\\"}.mdi-silverware-variant:before{content:\\\"\\\\F595\\\"}.mdi-sim:before{content:\\\"\\\\F596\\\"}.mdi-sim-alert:before{content:\\\"\\\\F597\\\"}.mdi-sim-off:before{content:\\\"\\\\F598\\\"}.mdi-sitemap:before{content:\\\"\\\\F599\\\"}.mdi-skip-backward:before{content:\\\"\\\\F59A\\\"}.mdi-skip-forward:before{content:\\\"\\\\F59B\\\"}.mdi-skip-next:before{content:\\\"\\\\F59C\\\"}.mdi-skip-previous:before{content:\\\"\\\\F59D\\\"}.mdi-skype:before{content:\\\"\\\\F59E\\\"}.mdi-skype-business:before{content:\\\"\\\\F59F\\\"}.mdi-slack:before{content:\\\"\\\\F5A0\\\"}.mdi-sleep:before{content:\\\"\\\\F5A1\\\"}.mdi-sleep-off:before{content:\\\"\\\\F5A2\\\"}.mdi-smoking:before{content:\\\"\\\\F5A3\\\"}.mdi-smoking-off:before{content:\\\"\\\\F5A4\\\"}.mdi-snapchat:before{content:\\\"\\\\F5A5\\\"}.mdi-snowman:before{content:\\\"\\\\F5A6\\\"}.mdi-sofa:before{content:\\\"\\\\F5A7\\\"}.mdi-sort:before{content:\\\"\\\\F5A8\\\"}.mdi-sort-alphabetical:before{content:\\\"\\\\F5A9\\\"}.mdi-sort-ascending:before{content:\\\"\\\\F5AA\\\"}.mdi-sort-descending:before{content:\\\"\\\\F5AB\\\"}.mdi-sort-numeric:before{content:\\\"\\\\F5AC\\\"}.mdi-sort-variant:before{content:\\\"\\\\F5AD\\\"}.mdi-soundcloud:before{content:\\\"\\\\F5AE\\\"}.mdi-source-fork:before{content:\\\"\\\\F5AF\\\"}.mdi-source-pull:before{content:\\\"\\\\F5B0\\\"}.mdi-speaker:before{content:\\\"\\\\F5B1\\\"}.mdi-speaker-off:before{content:\\\"\\\\F5B2\\\"}.mdi-speedometer:before{content:\\\"\\\\F5B3\\\"}.mdi-spellcheck:before{content:\\\"\\\\F5B4\\\"}.mdi-spotify:before{content:\\\"\\\\F5B5\\\"}.mdi-spotlight:before{content:\\\"\\\\F5B6\\\"}.mdi-spotlight-beam:before{content:\\\"\\\\F5B7\\\"}.mdi-square-inc:before{content:\\\"\\\\F5B8\\\"}.mdi-square-inc-cash:before{content:\\\"\\\\F5B9\\\"}.mdi-stackoverflow:before{content:\\\"\\\\F5BA\\\"}.mdi-stairs:before{content:\\\"\\\\F5BB\\\"}.mdi-star:before{content:\\\"\\\\F5BC\\\"}.mdi-star-circle:before{content:\\\"\\\\F5BD\\\"}.mdi-star-half:before{content:\\\"\\\\F5BE\\\"}.mdi-star-off:before{content:\\\"\\\\F5BF\\\"}.mdi-star-outline:before{content:\\\"\\\\F5C0\\\"}.mdi-steam:before{content:\\\"\\\\F5C1\\\"}.mdi-steering:before{content:\\\"\\\\F5C2\\\"}.mdi-step-backward:before{content:\\\"\\\\F5C3\\\"}.mdi-step-backward-2:before{content:\\\"\\\\F5C4\\\"}.mdi-step-forward:before{content:\\\"\\\\F5C5\\\"}.mdi-step-forward-2:before{content:\\\"\\\\F5C6\\\"}.mdi-stethoscope:before{content:\\\"\\\\F5C7\\\"}.mdi-stocking:before{content:\\\"\\\\F5C8\\\"}.mdi-stop:before{content:\\\"\\\\F5C9\\\"}.mdi-store:before{content:\\\"\\\\F5CA\\\"}.mdi-store-24-hour:before{content:\\\"\\\\F5CB\\\"}.mdi-stove:before{content:\\\"\\\\F5CC\\\"}.mdi-subway:before{content:\\\"\\\\F5CD\\\"}.mdi-sunglasses:before{content:\\\"\\\\F5CE\\\"}.mdi-swap-horizontal:before{content:\\\"\\\\F5CF\\\"}.mdi-swap-vertical:before{content:\\\"\\\\F5D0\\\"}.mdi-swim:before{content:\\\"\\\\F5D1\\\"}.mdi-switch:before{content:\\\"\\\\F5D2\\\"}.mdi-sword:before{content:\\\"\\\\F5D3\\\"}.mdi-sync:before{content:\\\"\\\\F5D4\\\"}.mdi-sync-alert:before{content:\\\"\\\\F5D5\\\"}.mdi-sync-off:before{content:\\\"\\\\F5D6\\\"}.mdi-tab:before{content:\\\"\\\\F5D7\\\"}.mdi-tab-unselected:before{content:\\\"\\\\F5D8\\\"}.mdi-table:before{content:\\\"\\\\F5D9\\\"}.mdi-table-column-plus-after:before{content:\\\"\\\\F5DA\\\"}.mdi-table-column-plus-before:before{content:\\\"\\\\F5DB\\\"}.mdi-table-column-remove:before{content:\\\"\\\\F5DC\\\"}.mdi-table-column-width:before{content:\\\"\\\\F5DD\\\"}.mdi-table-edit:before{content:\\\"\\\\F5DE\\\"}.mdi-table-large:before{content:\\\"\\\\F5DF\\\"}.mdi-table-row-height:before{content:\\\"\\\\F5E0\\\"}.mdi-table-row-plus-after:before{content:\\\"\\\\F5E1\\\"}.mdi-table-row-plus-before:before{content:\\\"\\\\F5E2\\\"}.mdi-table-row-remove:before{content:\\\"\\\\F5E3\\\"}.mdi-tablet:before{content:\\\"\\\\F5E4\\\"}.mdi-tablet-android:before{content:\\\"\\\\F5E5\\\"}.mdi-tablet-ipad:before{content:\\\"\\\\F5E6\\\"}.mdi-tag:before{content:\\\"\\\\F5E7\\\"}.mdi-tag-faces:before{content:\\\"\\\\F5E8\\\"}.mdi-tag-multiple:before{content:\\\"\\\\F5E9\\\"}.mdi-tag-outline:before{content:\\\"\\\\F5EA\\\"}.mdi-tag-text-outline:before{content:\\\"\\\\F5EB\\\"}.mdi-target:before{content:\\\"\\\\F5EC\\\"}.mdi-taxi:before{content:\\\"\\\\F5ED\\\"}.mdi-teamviewer:before{content:\\\"\\\\F5EE\\\"}.mdi-telegram:before{content:\\\"\\\\F5EF\\\"}.mdi-television:before{content:\\\"\\\\F5F0\\\"}.mdi-television-guide:before{content:\\\"\\\\F5F1\\\"}.mdi-temperature-celsius:before{content:\\\"\\\\F5F2\\\"}.mdi-temperature-fahrenheit:before{content:\\\"\\\\F5F3\\\"}.mdi-temperature-kelvin:before{content:\\\"\\\\F5F4\\\"}.mdi-tennis:before{content:\\\"\\\\F5F5\\\"}.mdi-tent:before{content:\\\"\\\\F5F6\\\"}.mdi-terrain:before{content:\\\"\\\\F5F7\\\"}.mdi-text-to-speech:before{content:\\\"\\\\F5F8\\\"}.mdi-text-to-speech-off:before{content:\\\"\\\\F5F9\\\"}.mdi-texture:before{content:\\\"\\\\F5FA\\\"}.mdi-theater:before{content:\\\"\\\\F5FB\\\"}.mdi-theme-light-dark:before{content:\\\"\\\\F5FC\\\"}.mdi-thermometer:before{content:\\\"\\\\F5FD\\\"}.mdi-thermometer-lines:before{content:\\\"\\\\F5FE\\\"}.mdi-thumb-down:before{content:\\\"\\\\F5FF\\\"}.mdi-thumb-down-outline:before{content:\\\"\\\\F600\\\"}.mdi-thumb-up:before{content:\\\"\\\\F601\\\"}.mdi-thumb-up-outline:before{content:\\\"\\\\F602\\\"}.mdi-thumbs-up-down:before{content:\\\"\\\\F603\\\"}.mdi-ticket:before{content:\\\"\\\\F604\\\"}.mdi-ticket-account:before{content:\\\"\\\\F605\\\"}.mdi-ticket-confirmation:before{content:\\\"\\\\F606\\\"}.mdi-tie:before{content:\\\"\\\\F607\\\"}.mdi-timelapse:before{content:\\\"\\\\F608\\\"}.mdi-timer:before{content:\\\"\\\\F609\\\"}.mdi-timer-10:before{content:\\\"\\\\F60A\\\"}.mdi-timer-3:before{content:\\\"\\\\F60B\\\"}.mdi-timer-off:before{content:\\\"\\\\F60C\\\"}.mdi-timer-sand:before{content:\\\"\\\\F60D\\\"}.mdi-timetable:before{content:\\\"\\\\F60E\\\"}.mdi-toggle-switch:before{content:\\\"\\\\F60F\\\"}.mdi-toggle-switch-off:before{content:\\\"\\\\F610\\\"}.mdi-tooltip:before{content:\\\"\\\\F611\\\"}.mdi-tooltip-edit:before{content:\\\"\\\\F612\\\"}.mdi-tooltip-image:before{content:\\\"\\\\F613\\\"}.mdi-tooltip-outline:before{content:\\\"\\\\F614\\\"}.mdi-tooltip-outline-plus:before{content:\\\"\\\\F615\\\"}.mdi-tooltip-text:before{content:\\\"\\\\F616\\\"}.mdi-tor:before{content:\\\"\\\\F617\\\"}.mdi-traffic-light:before{content:\\\"\\\\F618\\\"}.mdi-train:before{content:\\\"\\\\F619\\\"}.mdi-tram:before{content:\\\"\\\\F61A\\\"}.mdi-transcribe:before{content:\\\"\\\\F61B\\\"}.mdi-transcribe-close:before{content:\\\"\\\\F61C\\\"}.mdi-transfer:before{content:\\\"\\\\F61D\\\"}.mdi-tree:before{content:\\\"\\\\F61E\\\"}.mdi-trello:before{content:\\\"\\\\F61F\\\"}.mdi-trending-down:before{content:\\\"\\\\F620\\\"}.mdi-trending-neutral:before{content:\\\"\\\\F621\\\"}.mdi-trending-up:before{content:\\\"\\\\F622\\\"}.mdi-triangle:before{content:\\\"\\\\F623\\\"}.mdi-triangle-outline:before{content:\\\"\\\\F624\\\"}.mdi-trophy:before{content:\\\"\\\\F625\\\"}.mdi-trophy-award:before{content:\\\"\\\\F626\\\"}.mdi-trophy-outline:before{content:\\\"\\\\F627\\\"}.mdi-trophy-variant:before{content:\\\"\\\\F628\\\"}.mdi-trophy-variant-outline:before{content:\\\"\\\\F629\\\"}.mdi-truck:before{content:\\\"\\\\F62A\\\"}.mdi-truck-delivery:before{content:\\\"\\\\F62B\\\"}.mdi-tshirt-crew:before{content:\\\"\\\\F62C\\\"}.mdi-tshirt-v:before{content:\\\"\\\\F62D\\\"}.mdi-tumblr:before{content:\\\"\\\\F62E\\\"}.mdi-tumblr-reblog:before{content:\\\"\\\\F62F\\\"}.mdi-twitch:before{content:\\\"\\\\F630\\\"}.mdi-twitter:before{content:\\\"\\\\F631\\\"}.mdi-twitter-box:before{content:\\\"\\\\F632\\\"}.mdi-twitter-circle:before{content:\\\"\\\\F633\\\"}.mdi-twitter-retweet:before{content:\\\"\\\\F634\\\"}.mdi-ubuntu:before{content:\\\"\\\\F635\\\"}.mdi-umbraco:before{content:\\\"\\\\F636\\\"}.mdi-umbrella:before{content:\\\"\\\\F637\\\"}.mdi-umbrella-outline:before{content:\\\"\\\\F638\\\"}.mdi-undo:before{content:\\\"\\\\F639\\\"}.mdi-undo-variant:before{content:\\\"\\\\F63A\\\"}.mdi-unfold-less:before{content:\\\"\\\\F63B\\\"}.mdi-unfold-more:before{content:\\\"\\\\F63C\\\"}.mdi-ungroup:before{content:\\\"\\\\F63D\\\"}.mdi-untappd:before{content:\\\"\\\\F63E\\\"}.mdi-upload:before{content:\\\"\\\\F63F\\\"}.mdi-usb:before{content:\\\"\\\\F640\\\"}.mdi-vector-arrange-above:before{content:\\\"\\\\F641\\\"}.mdi-vector-arrange-below:before{content:\\\"\\\\F642\\\"}.mdi-vector-circle:before{content:\\\"\\\\F643\\\"}.mdi-vector-circle-variant:before{content:\\\"\\\\F644\\\"}.mdi-vector-combine:before{content:\\\"\\\\F645\\\"}.mdi-vector-curve:before{content:\\\"\\\\F646\\\"}.mdi-vector-difference:before{content:\\\"\\\\F647\\\"}.mdi-vector-difference-ab:before{content:\\\"\\\\F648\\\"}.mdi-vector-difference-ba:before{content:\\\"\\\\F649\\\"}.mdi-vector-intersection:before{content:\\\"\\\\F64A\\\"}.mdi-vector-line:before{content:\\\"\\\\F64B\\\"}.mdi-vector-point:before{content:\\\"\\\\F64C\\\"}.mdi-vector-polygon:before{content:\\\"\\\\F64D\\\"}.mdi-vector-polyline:before{content:\\\"\\\\F64E\\\"}.mdi-vector-selection:before{content:\\\"\\\\F64F\\\"}.mdi-vector-square:before{content:\\\"\\\\F650\\\"}.mdi-vector-triangle:before{content:\\\"\\\\F651\\\"}.mdi-vector-union:before{content:\\\"\\\\F652\\\"}.mdi-verified:before{content:\\\"\\\\F653\\\"}.mdi-vibrate:before{content:\\\"\\\\F654\\\"}.mdi-video:before{content:\\\"\\\\F655\\\"}.mdi-video-off:before{content:\\\"\\\\F656\\\"}.mdi-video-switch:before{content:\\\"\\\\F657\\\"}.mdi-view-agenda:before{content:\\\"\\\\F658\\\"}.mdi-view-array:before{content:\\\"\\\\F659\\\"}.mdi-view-carousel:before{content:\\\"\\\\F65A\\\"}.mdi-view-column:before{content:\\\"\\\\F65B\\\"}.mdi-view-dashboard:before{content:\\\"\\\\F65C\\\"}.mdi-view-day:before{content:\\\"\\\\F65D\\\"}.mdi-view-grid:before{content:\\\"\\\\F65E\\\"}.mdi-view-headline:before{content:\\\"\\\\F65F\\\"}.mdi-view-list:before{content:\\\"\\\\F660\\\"}.mdi-view-module:before{content:\\\"\\\\F661\\\"}.mdi-view-quilt:before{content:\\\"\\\\F662\\\"}.mdi-view-stream:before{content:\\\"\\\\F663\\\"}.mdi-view-week:before{content:\\\"\\\\F664\\\"}.mdi-vimeo:before{content:\\\"\\\\F665\\\"}.mdi-vine:before{content:\\\"\\\\F666\\\"}.mdi-vk:before{content:\\\"\\\\F667\\\"}.mdi-vk-box:before{content:\\\"\\\\F668\\\"}.mdi-vk-circle:before{content:\\\"\\\\F669\\\"}.mdi-voicemail:before{content:\\\"\\\\F66A\\\"}.mdi-volume-high:before{content:\\\"\\\\F66B\\\"}.mdi-volume-low:before{content:\\\"\\\\F66C\\\"}.mdi-volume-medium:before{content:\\\"\\\\F66D\\\"}.mdi-volume-off:before{content:\\\"\\\\F66E\\\"}.mdi-vpn:before{content:\\\"\\\\F66F\\\"}.mdi-walk:before{content:\\\"\\\\F670\\\"}.mdi-wallet:before{content:\\\"\\\\F671\\\"}.mdi-wallet-giftcard:before{content:\\\"\\\\F672\\\"}.mdi-wallet-membership:before{content:\\\"\\\\F673\\\"}.mdi-wallet-travel:before{content:\\\"\\\\F674\\\"}.mdi-wan:before{content:\\\"\\\\F675\\\"}.mdi-watch:before{content:\\\"\\\\F676\\\"}.mdi-watch-export:before{content:\\\"\\\\F677\\\"}.mdi-watch-import:before{content:\\\"\\\\F678\\\"}.mdi-water:before{content:\\\"\\\\F679\\\"}.mdi-water-off:before{content:\\\"\\\\F67A\\\"}.mdi-water-percent:before{content:\\\"\\\\F67B\\\"}.mdi-water-pump:before{content:\\\"\\\\F67C\\\"}.mdi-weather-cloudy:before{content:\\\"\\\\F67D\\\"}.mdi-weather-fog:before{content:\\\"\\\\F67E\\\"}.mdi-weather-hail:before{content:\\\"\\\\F67F\\\"}.mdi-weather-lightning:before{content:\\\"\\\\F680\\\"}.mdi-weather-night:before{content:\\\"\\\\F681\\\"}.mdi-weather-partlycloudy:before{content:\\\"\\\\F682\\\"}.mdi-weather-pouring:before{content:\\\"\\\\F683\\\"}.mdi-weather-rainy:before{content:\\\"\\\\F684\\\"}.mdi-weather-snowy:before{content:\\\"\\\\F685\\\"}.mdi-weather-sunny:before{content:\\\"\\\\F686\\\"}.mdi-weather-sunset:before{content:\\\"\\\\F687\\\"}.mdi-weather-sunset-down:before{content:\\\"\\\\F688\\\"}.mdi-weather-sunset-up:before{content:\\\"\\\\F689\\\"}.mdi-weather-windy:before{content:\\\"\\\\F68A\\\"}.mdi-weather-windy-variant:before{content:\\\"\\\\F68B\\\"}.mdi-web:before{content:\\\"\\\\F68C\\\"}.mdi-webcam:before{content:\\\"\\\\F68D\\\"}.mdi-weight:before{content:\\\"\\\\F68E\\\"}.mdi-weight-kilogram:before{content:\\\"\\\\F68F\\\"}.mdi-whatsapp:before{content:\\\"\\\\F690\\\"}.mdi-wheelchair-accessibility:before{content:\\\"\\\\F691\\\"}.mdi-white-balance-auto:before{content:\\\"\\\\F692\\\"}.mdi-white-balance-incandescent:before{content:\\\"\\\\F693\\\"}.mdi-white-balance-irradescent:before{content:\\\"\\\\F694\\\"}.mdi-white-balance-sunny:before{content:\\\"\\\\F695\\\"}.mdi-wifi:before{content:\\\"\\\\F696\\\"}.mdi-wifi-off:before{content:\\\"\\\\F697\\\"}.mdi-wii:before{content:\\\"\\\\F698\\\"}.mdi-wikipedia:before{content:\\\"\\\\F699\\\"}.mdi-window-close:before{content:\\\"\\\\F69A\\\"}.mdi-window-closed:before{content:\\\"\\\\F69B\\\"}.mdi-window-maximize:before{content:\\\"\\\\F69C\\\"}.mdi-window-minimize:before{content:\\\"\\\\F69D\\\"}.mdi-window-open:before{content:\\\"\\\\F69E\\\"}.mdi-window-restore:before{content:\\\"\\\\F69F\\\"}.mdi-windows:before{content:\\\"\\\\F6A0\\\"}.mdi-wordpress:before{content:\\\"\\\\F6A1\\\"}.mdi-worker:before{content:\\\"\\\\F6A2\\\"}.mdi-wrap:before{content:\\\"\\\\F6A3\\\"}.mdi-wrench:before{content:\\\"\\\\F6A4\\\"}.mdi-wunderlist:before{content:\\\"\\\\F6A5\\\"}.mdi-xbox:before{content:\\\"\\\\F6A6\\\"}.mdi-xbox-controller:before{content:\\\"\\\\F6A7\\\"}.mdi-xbox-controller-off:before{content:\\\"\\\\F6A8\\\"}.mdi-xda:before{content:\\\"\\\\F6A9\\\"}.mdi-xing:before{content:\\\"\\\\F6AA\\\"}.mdi-xing-box:before{content:\\\"\\\\F6AB\\\"}.mdi-xing-circle:before{content:\\\"\\\\F6AC\\\"}.mdi-xml:before{content:\\\"\\\\F6AD\\\"}.mdi-yeast:before{content:\\\"\\\\F6AE\\\"}.mdi-yelp:before{content:\\\"\\\\F6AF\\\"}.mdi-youtube-play:before{content:\\\"\\\\F6B0\\\"}.mdi-zip-box:before{content:\\\"\\\\F6B1\\\"}.mdi-18px{font-size:18px}.mdi-24px{font-size:24px}.mdi-36px{font-size:36px}.mdi-48px{font-size:48px}.mdi-dark{color:rgba(0,0,0,0.54)}.mdi-dark.mdi-inactive{color:rgba(0,0,0,0.26)}.mdi-light{color:#fff}.mdi-light.mdi-inactive{color:rgba(255,255,255,0.3)}\\n/*# sourceMappingURL=materialdesignicons.min.css.map */\\n\", \"\"]);\n\n\t// exports\n\n\n/***/ },\n/* 11 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = __webpack_require__.p + \"res/materialdesignicons-webfont.eot?ed840d794dc7ea1c6a53363d73f72509\";\n\n/***/ },\n/* 12 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = __webpack_require__.p + \"res/materialdesignicons-webfont.eot?ed840d794dc7ea1c6a53363d73f72509\";\n\n/***/ },\n/* 13 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = __webpack_require__.p + \"res/materialdesignicons-webfont.woff2?380a87ac162f7313bdc7556fcca4fd38\";\n\n/***/ },\n/* 14 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = __webpack_require__.p + \"res/materialdesignicons-webfont.woff?489a5d51dc8059afea165fe93f5b48e5\";\n\n/***/ },\n/* 15 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = __webpack_require__.p + \"res/materialdesignicons-webfont.ttf?246a512d70416108683f9f190d3dd1a6\";\n\n/***/ },\n/* 16 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = __webpack_require__.p + \"res/materialdesignicons-webfont.svg?527080c4652828659a7b92516393c016\";\n\n/***/ },\n/* 17 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// style-loader: Adds some css to the DOM by adding a <style> tag\n\n\t// load the styles\n\tvar content = __webpack_require__(18);\n\tif(typeof content === 'string') content = [[module.id, content, '']];\n\t// add the styles to the DOM\n\tvar update = __webpack_require__(8)(content, {});\n\tif(content.locals) module.exports = content.locals;\n\t// Hot Module Replacement\n\tif(true) {\n\t\t// When the styles change, update the <style> tags\n\t\tif(!content.locals) {\n\t\t\tmodule.hot.accept(18, function() {\n\t\t\t\tvar newContent = __webpack_require__(18);\n\t\t\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\t\t\t\tupdate(newContent);\n\t\t\t});\n\t\t}\n\t\t// When the module is disposed, remove the <style> tags\n\t\tmodule.hot.dispose(function() { update(); });\n\t}\n\n/***/ },\n/* 18 */\n/***/ function(module, exports, __webpack_require__) {\n\n\texports = module.exports = __webpack_require__(7)();\n\t// imports\n\n\n\t// module\n\texports.push([module.id, \"@charset \\\"UTF-8\\\";\\n/*! normalize.css v3.0.2 | MIT License | git.io/normalize */\\n/**\\n * 1. Set default font family to sans-serif.\\n * 2. Prevent iOS text size adjust after orientation change, without disabling\\n *    user zoom.\\n */\\nhtml {\\n  font-family: sans-serif;\\n  /* 1 */\\n  -ms-text-size-adjust: 100%;\\n  /* 2 */\\n  -webkit-text-size-adjust: 100%;\\n  /* 2 */ }\\n\\n/**\\n * Remove default margin.\\n */\\nbody {\\n  margin: 0; }\\n\\n/* HTML5 display definitions\\n   ========================================================================== */\\n/**\\n * Correct `block` display not defined for any HTML5 element in IE 8/9.\\n * Correct `block` display not defined for `details` or `summary` in IE 10/11\\n * and Firefox.\\n * Correct `block` display not defined for `main` in IE 11.\\n */\\narticle,\\naside,\\ndetails,\\nfigcaption,\\nfigure,\\nfooter,\\nheader,\\nhgroup,\\nmain,\\nmenu,\\nnav,\\nsection,\\nsummary {\\n  display: block; }\\n\\n/**\\n * 1. Correct `inline-block` display not defined in IE 8/9.\\n * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.\\n */\\naudio,\\ncanvas,\\nprogress,\\nvideo {\\n  display: inline-block;\\n  /* 1 */\\n  vertical-align: baseline;\\n  /* 2 */ }\\n\\n/**\\n * Prevent modern browsers from displaying `audio` without controls.\\n * Remove excess height in iOS 5 devices.\\n */\\naudio:not([controls]) {\\n  display: none;\\n  height: 0; }\\n\\n/**\\n * Address `[hidden]` styling not present in IE 8/9/10.\\n * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.\\n */\\n[hidden],\\ntemplate {\\n  display: none; }\\n\\n/* Links\\n   ========================================================================== */\\n/**\\n * Remove the gray background color from active links in IE 10.\\n */\\na {\\n  background-color: transparent; }\\n\\n/**\\n * Improve readability when focused and also mouse hovered in all browsers.\\n */\\na:active,\\na:hover {\\n  outline: 0; }\\n\\n/* Text-level semantics\\n   ========================================================================== */\\n/**\\n * Address styling not present in IE 8/9/10/11, Safari, and Chrome.\\n */\\nabbr[title] {\\n  border-bottom: 1px dotted; }\\n\\n/**\\n * Address style set to `bolder` in Firefox 4+, Safari, and Chrome.\\n */\\nb,\\nstrong {\\n  font-weight: bold; }\\n\\n/**\\n * Address styling not present in Safari and Chrome.\\n */\\ndfn {\\n  font-style: italic; }\\n\\n/**\\n * Address variable `h1` font-size and margin within `section` and `article`\\n * contexts in Firefox 4+, Safari, and Chrome.\\n */\\nh1 {\\n  font-size: 2em;\\n  margin: 0.67em 0; }\\n\\n/**\\n * Address styling not present in IE 8/9.\\n */\\nmark {\\n  background: #ff0;\\n  color: #000; }\\n\\n/**\\n * Address inconsistent and variable font size in all browsers.\\n */\\nsmall {\\n  font-size: 80%; }\\n\\n/**\\n * Prevent `sub` and `sup` affecting `line-height` in all browsers.\\n */\\nsub,\\nsup {\\n  font-size: 75%;\\n  line-height: 0;\\n  position: relative;\\n  vertical-align: baseline; }\\n\\nsup {\\n  top: -0.5em; }\\n\\nsub {\\n  bottom: -0.25em; }\\n\\n/* Embedded content\\n   ========================================================================== */\\n/**\\n * Remove border when inside `a` element in IE 8/9/10.\\n */\\nimg {\\n  border: 0; }\\n\\n/**\\n * Correct overflow not hidden in IE 9/10/11.\\n */\\nsvg:not(:root) {\\n  overflow: hidden; }\\n\\n/* Grouping content\\n   ========================================================================== */\\n/**\\n * Address margin not present in IE 8/9 and Safari.\\n */\\nfigure {\\n  margin: 1em 40px; }\\n\\n/**\\n * Address differences between Firefox and other browsers.\\n */\\nhr {\\n  -moz-box-sizing: content-box;\\n  box-sizing: content-box;\\n  height: 0; }\\n\\n/**\\n * Contain overflow in all browsers.\\n */\\npre {\\n  overflow: auto; }\\n\\n/**\\n * Address odd `em`-unit font size rendering in all browsers.\\n */\\ncode,\\nkbd,\\npre,\\nsamp {\\n  font-family: monospace, monospace;\\n  font-size: 1em; }\\n\\n/* Forms\\n   ========================================================================== */\\n/**\\n * Known limitation: by default, Chrome and Safari on OS X allow very limited\\n * styling of `select`, unless a `border` property is set.\\n */\\n/**\\n * 1. Correct color not being inherited.\\n *    Known issue: affects color of disabled elements.\\n * 2. Correct font properties not being inherited.\\n * 3. Address margins set differently in Firefox 4+, Safari, and Chrome.\\n */\\nbutton,\\ninput,\\noptgroup,\\nselect,\\ntextarea {\\n  color: inherit;\\n  /* 1 */\\n  font: inherit;\\n  /* 2 */\\n  margin: 0;\\n  /* 3 */ }\\n\\n/**\\n * Address `overflow` set to `hidden` in IE 8/9/10/11.\\n */\\nbutton {\\n  overflow: visible; }\\n\\n/**\\n * Address inconsistent `text-transform` inheritance for `button` and `select`.\\n * All other form control elements do not inherit `text-transform` values.\\n * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.\\n * Correct `select` style inheritance in Firefox.\\n */\\nbutton,\\nselect {\\n  text-transform: none; }\\n\\n/**\\n * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`\\n *    and `video` controls.\\n * 2. Correct inability to style clickable `input` types in iOS.\\n * 3. Improve usability and consistency of cursor style between image-type\\n *    `input` and others.\\n */\\nbutton,\\nhtml input[type=\\\"button\\\"],\\ninput[type=\\\"reset\\\"],\\ninput[type=\\\"submit\\\"] {\\n  -webkit-appearance: button;\\n  /* 2 */\\n  cursor: pointer;\\n  /* 3 */ }\\n\\n/**\\n * Re-set default cursor for disabled elements.\\n */\\nbutton[disabled],\\nhtml input[disabled] {\\n  cursor: default; }\\n\\n/**\\n * Remove inner padding and border in Firefox 4+.\\n */\\nbutton::-moz-focus-inner,\\ninput::-moz-focus-inner {\\n  border: 0;\\n  padding: 0; }\\n\\n/**\\n * Address Firefox 4+ setting `line-height` on `input` using `!important` in\\n * the UA stylesheet.\\n */\\ninput {\\n  line-height: normal; }\\n\\n/**\\n * It's recommended that you don't attempt to style these elements.\\n * Firefox's implementation doesn't respect box-sizing, padding, or width.\\n *\\n * 1. Address box sizing set to `content-box` in IE 8/9/10.\\n * 2. Remove excess padding in IE 8/9/10.\\n */\\ninput[type=\\\"checkbox\\\"],\\ninput[type=\\\"radio\\\"] {\\n  box-sizing: border-box;\\n  /* 1 */\\n  padding: 0;\\n  /* 2 */ }\\n\\n/**\\n * Fix the cursor style for Chrome's increment/decrement buttons. For certain\\n * `font-size` values of the `input`, it causes the cursor style of the\\n * decrement button to change from `default` to `text`.\\n */\\ninput[type=\\\"number\\\"]::-webkit-inner-spin-button,\\ninput[type=\\\"number\\\"]::-webkit-outer-spin-button {\\n  height: auto; }\\n\\n/**\\n * 1. Address `appearance` set to `searchfield` in Safari and Chrome.\\n * 2. Address `box-sizing` set to `border-box` in Safari and Chrome\\n *    (include `-moz` to future-proof).\\n */\\ninput[type=\\\"search\\\"] {\\n  -webkit-appearance: textfield;\\n  /* 1 */\\n  -moz-box-sizing: content-box;\\n  -webkit-box-sizing: content-box;\\n  /* 2 */\\n  box-sizing: content-box; }\\n\\n/**\\n * Remove inner padding and search cancel button in Safari and Chrome on OS X.\\n * Safari (but not Chrome) clips the cancel button when the search input has\\n * padding (and `textfield` appearance).\\n */\\ninput[type=\\\"search\\\"]::-webkit-search-cancel-button,\\ninput[type=\\\"search\\\"]::-webkit-search-decoration {\\n  -webkit-appearance: none; }\\n\\n/**\\n * Define consistent border, margin, and padding.\\n */\\nfieldset {\\n  border: 1px solid #c0c0c0;\\n  margin: 0 2px;\\n  padding: 0.35em 0.625em 0.75em; }\\n\\n/**\\n * 1. Correct `color` not being inherited in IE 8/9/10/11.\\n * 2. Remove padding so people aren't caught out if they zero out fieldsets.\\n */\\nlegend {\\n  border: 0;\\n  /* 1 */\\n  padding: 0;\\n  /* 2 */ }\\n\\n/**\\n * Remove default vertical scrollbar in IE 8/9/10/11.\\n */\\ntextarea {\\n  overflow: auto; }\\n\\n/**\\n * Don't inherit the `font-weight` (applied by a rule above).\\n * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.\\n */\\noptgroup {\\n  font-weight: bold; }\\n\\n/* Tables\\n   ========================================================================== */\\n/**\\n * Remove most spacing between table cells.\\n */\\ntable {\\n  border-collapse: collapse;\\n  border-spacing: 0; }\\n\\ntd,\\nth {\\n  padding: 0; }\\n\\nhtml {\\n  -webkit-box-sizing: border-box;\\n  -moz-box-sizing: border-box;\\n  box-sizing: border-box; }\\n\\n*, *:before, *:after {\\n  -webkit-box-sizing: inherit;\\n  -moz-box-sizing: inherit;\\n  box-sizing: inherit; }\\n\\nbody,\\nh1, h2, h3, h4, h5, h6,\\np, blockquote, pre,\\ndl, dd, ol, ul,\\nform, fieldset, legend,\\nfigure,\\ntable, th, td, caption,\\nhr {\\n  margin: 0;\\n  padding: 0; }\\n\\nabbr[title],\\ndfn[title] {\\n  cursor: help; }\\n\\nu,\\nins {\\n  text-decoration: none; }\\n\\nins {\\n  border-bottom: 1px solid; }\\n\\nhtml {\\n  font-size: 1em;\\n  line-height: 1.5;\\n  background-color: #EEEEEE;\\n  color: rgba(0, 0, 0, 0.87);\\n  min-height: 100%;\\n  -webkit-text-size-adjust: 100%;\\n  -ms-text-size-adjust: 100%;\\n  -moz-osx-font-smoothing: grayscale;\\n  -webkit-font-smoothing: antialiased; }\\n\\n/**\\n * 1. Fluid images for responsive purposes.\\n * 2. Offset `alt` text from surrounding copy.\\n */\\nimg {\\n  display: block;\\n  max-width: 100%;\\n  font-style: italic; }\\n\\n/**\\n * 1. Google Maps breaks if `max-width: 100%` acts upon it; use their selector\\n *    to remove the effects.\\n * 2. If a `width` and/or `height` attribute have been explicitly defined, let’s\\n *    not make the image fluid.\\n */\\n.gm-style img,\\nimg[width],\\nimg[height] {\\n  max-width: none; }\\n\\n.paragraph h1, .paragraph h2, .paragraph h3, .paragraph h4, .paragraph h5, .paragraph h6,\\n.paragraph ul, .paragraph ol, .paragraph dl,\\n.paragraph blockquote, .paragraph p, .paragraph address,\\n.paragraph table,\\n.paragraph fieldset, .paragraph figure,\\n.paragraph pre {\\n  margin-bottom: 24px; }\\n\\n.paragraph ul, .paragraph ol, .paragraph dd {\\n  margin-left: 48px; }\\n\\n.paragraph p:last-child,\\n.paragraph ul:last-child {\\n  margin-bottom: 0; }\\n\\n.paragraph a {\\n  color: #3F51B5;\\n  text-decoration: none; }\\n  .paragraph a:hover {\\n    text-decoration: underline; }\\n\\n.fs-caption,\\n.checkbox__help,\\n.radio-button__help,\\n.switch__help {\\n  font-size: 12px;\\n  font-size: 0.75rem;\\n  font-weight: 400;\\n  line-height: 20px; }\\n\\n@media screen and (max-width: 1023px) {\\n  .fs-body-1,\\n  .fs-body-2 {\\n    font-size: 14px;\\n    font-size: 0.875rem; } }\\n\\n@media screen and (min-width: 1024px) {\\n  .fs-body-1,\\n  .fs-body-2 {\\n    font-size: 13px;\\n    font-size: 0.8125rem; } }\\n\\n.fs-body-1 {\\n  font-weight: 400;\\n  line-height: 20px; }\\n\\n.fs-body-2 {\\n  font-weight: 500;\\n  line-height: 24px; }\\n\\n.fs-subhead {\\n  font-weight: 400;\\n  line-height: 24px; }\\n  @media screen and (max-width: 1023px) {\\n    .fs-subhead {\\n      font-size: 16px;\\n      font-size: 1rem; } }\\n  @media screen and (min-width: 1024px) {\\n    .fs-subhead {\\n      font-size: 15px;\\n      font-size: 0.9375rem; } }\\n\\n.fs-title {\\n  font-size: 20px;\\n  font-size: 1.25rem;\\n  font-weight: 500;\\n  line-height: 28px; }\\n\\n.fs-headline {\\n  font-size: 24px;\\n  font-size: 1.5rem;\\n  font-weight: 400;\\n  line-height: 32px; }\\n\\n.fs-display-1 {\\n  font-size: 34px;\\n  font-size: 2.125rem;\\n  font-weight: 400;\\n  line-height: 40px; }\\n\\n.fs-display-2 {\\n  font-size: 45px;\\n  font-size: 2.8125rem;\\n  font-weight: 400;\\n  line-height: 48px;\\n  letter-spacing: -1px; }\\n\\n.fs-display-3 {\\n  font-size: 56px;\\n  font-size: 3.5rem;\\n  font-weight: 400;\\n  line-height: 64px;\\n  letter-spacing: -2px; }\\n\\n.fs-display-4 {\\n  font-size: 112px;\\n  font-size: 7rem;\\n  font-weight: 300;\\n  line-height: 128px;\\n  letter-spacing: -5px; }\\n\\n.tc-red-500 {\\n  color: #F44336 !important; }\\n\\n.tc-pink-500 {\\n  color: #E91E63 !important; }\\n\\n.tc-purple-500 {\\n  color: #9C27B0 !important; }\\n\\n.tc-deep-purple-500 {\\n  color: #673AB7 !important; }\\n\\n.tc-indigo-500 {\\n  color: #3F51B5 !important; }\\n\\n.tc-blue-500 {\\n  color: #2196F3 !important; }\\n\\n.tc-light-blue-500 {\\n  color: #00BCD4 !important; }\\n\\n.tc-teal-500 {\\n  color: #009688 !important; }\\n\\n.tc-green-500 {\\n  color: #4CAF50 !important; }\\n\\n.tc-light-green-500 {\\n  color: #8BC34A !important; }\\n\\n.tc-lime-500 {\\n  color: #CDDC39 !important; }\\n\\n.tc-yellow-500 {\\n  color: #FFEB3B !important; }\\n\\n.tc-amber-500 {\\n  color: #FFC107 !important; }\\n\\n.tc-orange-500 {\\n  color: #FF9800 !important; }\\n\\n.tc-deep-orange-500 {\\n  color: #FF5722 !important; }\\n\\n.tc-brown-500 {\\n  color: #795548 !important; }\\n\\n.tc-grey-500 {\\n  color: #9E9E9E !important; }\\n\\n.tc-blue-grey-500 {\\n  color: #607D8B !important; }\\n\\n.tc-red-50 {\\n  color: #FFEBEE !important; }\\n\\n.tc-pink-50 {\\n  color: #FCE4EC !important; }\\n\\n.tc-purple-50 {\\n  color: #F3E5F5 !important; }\\n\\n.tc-deep-purple-50 {\\n  color: #EDE7F6 !important; }\\n\\n.tc-indigo-50 {\\n  color: #E8EAF6 !important; }\\n\\n.tc-blue-50 {\\n  color: #E3F2FD !important; }\\n\\n.tc-light-blue-50 {\\n  color: #E0F7FA !important; }\\n\\n.tc-teal-50 {\\n  color: #E0F2F1 !important; }\\n\\n.tc-green-50 {\\n  color: #E8F5E9 !important; }\\n\\n.tc-light-green-50 {\\n  color: #F1F8E9 !important; }\\n\\n.tc-lime-50 {\\n  color: #F9FBE7 !important; }\\n\\n.tc-yellow-50 {\\n  color: #FFFDE7 !important; }\\n\\n.tc-amber-50 {\\n  color: #FFF8E1 !important; }\\n\\n.tc-orange-50 {\\n  color: #FFF3E0 !important; }\\n\\n.tc-deep-orange-50 {\\n  color: #FBE9E7 !important; }\\n\\n.tc-brown-50 {\\n  color: #EFEBE9 !important; }\\n\\n.tc-grey-50 {\\n  color: #FAFAFA !important; }\\n\\n.tc-blue-grey-50 {\\n  color: #ECEFF1 !important; }\\n\\n.tc-red-100 {\\n  color: #FFCDD2 !important; }\\n\\n.tc-pink-100 {\\n  color: #F8BBD0 !important; }\\n\\n.tc-purple-100 {\\n  color: #E1BEE7 !important; }\\n\\n.tc-deep-purple-100 {\\n  color: #D1C4E9 !important; }\\n\\n.tc-indigo-100 {\\n  color: #C5CAE9 !important; }\\n\\n.tc-blue-100 {\\n  color: #BBDEFB !important; }\\n\\n.tc-light-blue-100 {\\n  color: #B2EBF2 !important; }\\n\\n.tc-teal-100 {\\n  color: #B2DFDB !important; }\\n\\n.tc-green-100 {\\n  color: #C8E6C9 !important; }\\n\\n.tc-light-green-100 {\\n  color: #DCEDC8 !important; }\\n\\n.tc-lime-100 {\\n  color: #F0F4C3 !important; }\\n\\n.tc-yellow-100 {\\n  color: #FFF9C4 !important; }\\n\\n.tc-amber-100 {\\n  color: #FFECB3 !important; }\\n\\n.tc-orange-100 {\\n  color: #FFE0B2 !important; }\\n\\n.tc-deep-orange-100 {\\n  color: #FFCCBC !important; }\\n\\n.tc-brown-100 {\\n  color: #D7CCC8 !important; }\\n\\n.tc-grey-100 {\\n  color: #F5F5F5 !important; }\\n\\n.tc-blue-grey-100 {\\n  color: #CFD8DC !important; }\\n\\n.tc-red-200 {\\n  color: #EF9A9A !important; }\\n\\n.tc-pink-200 {\\n  color: #F48FB1 !important; }\\n\\n.tc-purple-200 {\\n  color: #CE93D8 !important; }\\n\\n.tc-deep-purple-200 {\\n  color: #B39DDB !important; }\\n\\n.tc-indigo-200 {\\n  color: #9FA8DA !important; }\\n\\n.tc-blue-200 {\\n  color: #90CAF9 !important; }\\n\\n.tc-light-blue-200 {\\n  color: #80DEEA !important; }\\n\\n.tc-teal-200 {\\n  color: #80CBC4 !important; }\\n\\n.tc-green-200 {\\n  color: #A5D6A7 !important; }\\n\\n.tc-light-green-200 {\\n  color: #C5E1A5 !important; }\\n\\n.tc-lime-200 {\\n  color: #E6EE9C !important; }\\n\\n.tc-yellow-200 {\\n  color: #FFF59D !important; }\\n\\n.tc-amber-200 {\\n  color: #FFE082 !important; }\\n\\n.tc-orange-200 {\\n  color: #FFCC80 !important; }\\n\\n.tc-deep-orange-200 {\\n  color: #FFAB91 !important; }\\n\\n.tc-brown-200 {\\n  color: #BCAAA4 !important; }\\n\\n.tc-grey-200 {\\n  color: #EEEEEE !important; }\\n\\n.tc-blue-grey-200 {\\n  color: #B0BEC5 !important; }\\n\\n.tc-red-300 {\\n  color: #E57373 !important; }\\n\\n.tc-pink-300 {\\n  color: #F06292 !important; }\\n\\n.tc-purple-300 {\\n  color: #BA68C8 !important; }\\n\\n.tc-deep-purple-300 {\\n  color: #9575CD !important; }\\n\\n.tc-indigo-300 {\\n  color: #7986CB !important; }\\n\\n.tc-blue-300 {\\n  color: #64B5F6 !important; }\\n\\n.tc-light-blue-300 {\\n  color: #4DD0E1 !important; }\\n\\n.tc-teal-300 {\\n  color: #4DB6AC !important; }\\n\\n.tc-green-300 {\\n  color: #81C784 !important; }\\n\\n.tc-light-green-300 {\\n  color: #AED581 !important; }\\n\\n.tc-lime-300 {\\n  color: #DCE775 !important; }\\n\\n.tc-yellow-300 {\\n  color: #FFF176 !important; }\\n\\n.tc-amber-300 {\\n  color: #FFD54F !important; }\\n\\n.tc-orange-300 {\\n  color: #FFB74D !important; }\\n\\n.tc-deep-orange-300 {\\n  color: #FF8A65 !important; }\\n\\n.tc-brown-300 {\\n  color: #A1887F !important; }\\n\\n.tc-grey-300 {\\n  color: #E0E0E0 !important; }\\n\\n.tc-blue-grey-300 {\\n  color: #90A4AE !important; }\\n\\n.tc-red-400 {\\n  color: #EF5350 !important; }\\n\\n.tc-pink-400 {\\n  color: #EC407A !important; }\\n\\n.tc-purple-400 {\\n  color: #AB47BC !important; }\\n\\n.tc-deep-purple-400 {\\n  color: #7E57C2 !important; }\\n\\n.tc-indigo-400 {\\n  color: #5C6BC0 !important; }\\n\\n.tc-blue-400 {\\n  color: #42A5F5 !important; }\\n\\n.tc-light-blue-400 {\\n  color: #26C6DA !important; }\\n\\n.tc-teal-400 {\\n  color: #26A69A !important; }\\n\\n.tc-green-400 {\\n  color: #66BB6A !important; }\\n\\n.tc-light-green-400 {\\n  color: #9CCC65 !important; }\\n\\n.tc-lime-400 {\\n  color: #D4E157 !important; }\\n\\n.tc-yellow-400 {\\n  color: #FFEE58 !important; }\\n\\n.tc-amber-400 {\\n  color: #FFCA28 !important; }\\n\\n.tc-orange-400 {\\n  color: #FFA726 !important; }\\n\\n.tc-deep-orange-400 {\\n  color: #FF7043 !important; }\\n\\n.tc-brown-400 {\\n  color: #8D6E63 !important; }\\n\\n.tc-grey-400 {\\n  color: #BDBDBD !important; }\\n\\n.tc-blue-grey-400 {\\n  color: #78909C !important; }\\n\\n.tc-red-500 {\\n  color: #F44336 !important; }\\n\\n.tc-pink-500 {\\n  color: #E91E63 !important; }\\n\\n.tc-purple-500 {\\n  color: #9C27B0 !important; }\\n\\n.tc-deep-purple-500 {\\n  color: #673AB7 !important; }\\n\\n.tc-indigo-500 {\\n  color: #3F51B5 !important; }\\n\\n.tc-blue-500 {\\n  color: #2196F3 !important; }\\n\\n.tc-light-blue-500 {\\n  color: #00BCD4 !important; }\\n\\n.tc-teal-500 {\\n  color: #009688 !important; }\\n\\n.tc-green-500 {\\n  color: #4CAF50 !important; }\\n\\n.tc-light-green-500 {\\n  color: #8BC34A !important; }\\n\\n.tc-lime-500 {\\n  color: #CDDC39 !important; }\\n\\n.tc-yellow-500 {\\n  color: #FFEB3B !important; }\\n\\n.tc-amber-500 {\\n  color: #FFC107 !important; }\\n\\n.tc-orange-500 {\\n  color: #FF9800 !important; }\\n\\n.tc-deep-orange-500 {\\n  color: #FF5722 !important; }\\n\\n.tc-brown-500 {\\n  color: #795548 !important; }\\n\\n.tc-grey-500 {\\n  color: #9E9E9E !important; }\\n\\n.tc-blue-grey-500 {\\n  color: #607D8B !important; }\\n\\n.tc-red-600 {\\n  color: #E53935 !important; }\\n\\n.tc-pink-600 {\\n  color: #D81B60 !important; }\\n\\n.tc-purple-600 {\\n  color: #8E24AA !important; }\\n\\n.tc-deep-purple-600 {\\n  color: #5E35B1 !important; }\\n\\n.tc-indigo-600 {\\n  color: #3949AB !important; }\\n\\n.tc-blue-600 {\\n  color: #1E88E5 !important; }\\n\\n.tc-light-blue-600 {\\n  color: #00ACC1 !important; }\\n\\n.tc-teal-600 {\\n  color: #00897B !important; }\\n\\n.tc-green-600 {\\n  color: #43A047 !important; }\\n\\n.tc-light-green-600 {\\n  color: #7CB342 !important; }\\n\\n.tc-lime-600 {\\n  color: #C0CA33 !important; }\\n\\n.tc-yellow-600 {\\n  color: #FDD835 !important; }\\n\\n.tc-amber-600 {\\n  color: #FFB300 !important; }\\n\\n.tc-orange-600 {\\n  color: #FB8C00 !important; }\\n\\n.tc-deep-orange-600 {\\n  color: #F4511E !important; }\\n\\n.tc-brown-600 {\\n  color: #6D4C41 !important; }\\n\\n.tc-grey-600 {\\n  color: #757575 !important; }\\n\\n.tc-blue-grey-600 {\\n  color: #546E7A !important; }\\n\\n.tc-red-700 {\\n  color: #D32F2F !important; }\\n\\n.tc-pink-700 {\\n  color: #C2185B !important; }\\n\\n.tc-purple-700 {\\n  color: #7B1FA2 !important; }\\n\\n.tc-deep-purple-700 {\\n  color: #512DA8 !important; }\\n\\n.tc-indigo-700 {\\n  color: #303F9F !important; }\\n\\n.tc-blue-700 {\\n  color: #1976D2 !important; }\\n\\n.tc-light-blue-700 {\\n  color: #0097A7 !important; }\\n\\n.tc-teal-700 {\\n  color: #00796B !important; }\\n\\n.tc-green-700 {\\n  color: #388E3C !important; }\\n\\n.tc-light-green-700 {\\n  color: #689F38 !important; }\\n\\n.tc-lime-700 {\\n  color: #AFB42B !important; }\\n\\n.tc-yellow-700 {\\n  color: #FBC02D !important; }\\n\\n.tc-amber-700 {\\n  color: #FFA000 !important; }\\n\\n.tc-orange-700 {\\n  color: #F57C00 !important; }\\n\\n.tc-deep-orange-700 {\\n  color: #E64A19 !important; }\\n\\n.tc-brown-700 {\\n  color: #5D4037 !important; }\\n\\n.tc-grey-700 {\\n  color: #616161 !important; }\\n\\n.tc-blue-grey-700 {\\n  color: #455A64 !important; }\\n\\n.tc-red-800 {\\n  color: #C62828 !important; }\\n\\n.tc-pink-800 {\\n  color: #AD1457 !important; }\\n\\n.tc-purple-800 {\\n  color: #6A1B9A !important; }\\n\\n.tc-deep-purple-800 {\\n  color: #4527A0 !important; }\\n\\n.tc-indigo-800 {\\n  color: #283593 !important; }\\n\\n.tc-blue-800 {\\n  color: #1565C0 !important; }\\n\\n.tc-light-blue-800 {\\n  color: #00838F !important; }\\n\\n.tc-teal-800 {\\n  color: #00695C !important; }\\n\\n.tc-green-800 {\\n  color: #2E7D32 !important; }\\n\\n.tc-light-green-800 {\\n  color: #558B2F !important; }\\n\\n.tc-lime-800 {\\n  color: #9E9D24 !important; }\\n\\n.tc-yellow-800 {\\n  color: #F9A825 !important; }\\n\\n.tc-amber-800 {\\n  color: #FF8F00 !important; }\\n\\n.tc-orange-800 {\\n  color: #EF6C00 !important; }\\n\\n.tc-deep-orange-800 {\\n  color: #D84315 !important; }\\n\\n.tc-brown-800 {\\n  color: #4E342E !important; }\\n\\n.tc-grey-800 {\\n  color: #424242 !important; }\\n\\n.tc-blue-grey-800 {\\n  color: #37474F !important; }\\n\\n.tc-red-900 {\\n  color: #B71C1C !important; }\\n\\n.tc-pink-900 {\\n  color: #880E4F !important; }\\n\\n.tc-purple-900 {\\n  color: #4A148C !important; }\\n\\n.tc-deep-purple-900 {\\n  color: #311B92 !important; }\\n\\n.tc-indigo-900 {\\n  color: #1A237E !important; }\\n\\n.tc-blue-900 {\\n  color: #0D47A1 !important; }\\n\\n.tc-light-blue-900 {\\n  color: #006064 !important; }\\n\\n.tc-teal-900 {\\n  color: #004D40 !important; }\\n\\n.tc-green-900 {\\n  color: #1B5E20 !important; }\\n\\n.tc-light-green-900 {\\n  color: #33691E !important; }\\n\\n.tc-lime-900 {\\n  color: #827717 !important; }\\n\\n.tc-yellow-900 {\\n  color: #F57F17 !important; }\\n\\n.tc-amber-900 {\\n  color: #FF6F00 !important; }\\n\\n.tc-orange-900 {\\n  color: #E65100 !important; }\\n\\n.tc-deep-orange-900 {\\n  color: #BF360C !important; }\\n\\n.tc-brown-900 {\\n  color: #3E2723 !important; }\\n\\n.tc-grey-900 {\\n  color: #212121 !important; }\\n\\n.tc-blue-grey-900 {\\n  color: #263238 !important; }\\n\\n.tc-red-A100 {\\n  color: #FF8A80 !important; }\\n\\n.tc-pink-A100 {\\n  color: #FF80AB !important; }\\n\\n.tc-purple-A100 {\\n  color: #EA80FC !important; }\\n\\n.tc-deep-purple-A100 {\\n  color: #B388FF !important; }\\n\\n.tc-indigo-A100 {\\n  color: #8C9EFF !important; }\\n\\n.tc-blue-A100 {\\n  color: #82B1FF !important; }\\n\\n.tc-light-blue-A100 {\\n  color: #84FFFF !important; }\\n\\n.tc-teal-A100 {\\n  color: #A7FFEB !important; }\\n\\n.tc-green-A100 {\\n  color: #B9F6CA !important; }\\n\\n.tc-light-green-A100 {\\n  color: #CCFF90 !important; }\\n\\n.tc-lime-A100 {\\n  color: #F4FF81 !important; }\\n\\n.tc-yellow-A100 {\\n  color: #FFFF8D !important; }\\n\\n.tc-amber-A100 {\\n  color: #FFE57F !important; }\\n\\n.tc-orange-A100 {\\n  color: #FFD180 !important; }\\n\\n.tc-deep-orange-A100 {\\n  color: #FF9E80 !important; }\\n\\n.tc-red-A200 {\\n  color: #FF5252 !important; }\\n\\n.tc-pink-A200 {\\n  color: #FF4081 !important; }\\n\\n.tc-purple-A200 {\\n  color: #E040FB !important; }\\n\\n.tc-deep-purple-A200 {\\n  color: #7C4DFF !important; }\\n\\n.tc-indigo-A200 {\\n  color: #536DFE !important; }\\n\\n.tc-blue-A200 {\\n  color: #448AFF !important; }\\n\\n.tc-light-blue-A200 {\\n  color: #18FFFF !important; }\\n\\n.tc-teal-A200 {\\n  color: #64FFDA !important; }\\n\\n.tc-green-A200 {\\n  color: #69F0AE !important; }\\n\\n.tc-light-green-A200 {\\n  color: #B2FF59 !important; }\\n\\n.tc-lime-A200 {\\n  color: #EEFF41 !important; }\\n\\n.tc-yellow-A200 {\\n  color: #FFFF00 !important; }\\n\\n.tc-amber-A200 {\\n  color: #FFD740 !important; }\\n\\n.tc-orange-A200 {\\n  color: #FFAB40 !important; }\\n\\n.tc-deep-orange-A200 {\\n  color: #FF6E40 !important; }\\n\\n.tc-red-A400 {\\n  color: #FF1744 !important; }\\n\\n.tc-pink-A400 {\\n  color: #F50057 !important; }\\n\\n.tc-purple-A400 {\\n  color: #D500F9 !important; }\\n\\n.tc-deep-purple-A400 {\\n  color: #651FFF !important; }\\n\\n.tc-indigo-A400 {\\n  color: #3D5AFE !important; }\\n\\n.tc-blue-A400 {\\n  color: #2979FF !important; }\\n\\n.tc-light-blue-A400 {\\n  color: #00E5FF !important; }\\n\\n.tc-teal-A400 {\\n  color: #1DE9B6 !important; }\\n\\n.tc-green-A400 {\\n  color: #00E676 !important; }\\n\\n.tc-light-green-A400 {\\n  color: #76FF03 !important; }\\n\\n.tc-lime-A400 {\\n  color: #C6FF00 !important; }\\n\\n.tc-yellow-A400 {\\n  color: #FFEA00 !important; }\\n\\n.tc-amber-A400 {\\n  color: #FFC400 !important; }\\n\\n.tc-orange-A400 {\\n  color: #FF9100 !important; }\\n\\n.tc-deep-orange-A400 {\\n  color: #FF3D00 !important; }\\n\\n.tc-red-A700 {\\n  color: #D50000 !important; }\\n\\n.tc-pink-A700 {\\n  color: #C51162 !important; }\\n\\n.tc-purple-A700 {\\n  color: #AA00FF !important; }\\n\\n.tc-deep-purple-A700 {\\n  color: #6200EA !important; }\\n\\n.tc-indigo-A700 {\\n  color: #304FFE !important; }\\n\\n.tc-blue-A700 {\\n  color: #2962FF !important; }\\n\\n.tc-light-blue-A700 {\\n  color: #00B8D4 !important; }\\n\\n.tc-teal-A700 {\\n  color: #00BFA5 !important; }\\n\\n.tc-green-A700 {\\n  color: #00C853 !important; }\\n\\n.tc-light-green-A700 {\\n  color: #64DD17 !important; }\\n\\n.tc-lime-A700 {\\n  color: #AEEA00 !important; }\\n\\n.tc-yellow-A700 {\\n  color: #FFD600 !important; }\\n\\n.tc-amber-A700 {\\n  color: #FFAB00 !important; }\\n\\n.tc-orange-A700 {\\n  color: #FF6D00 !important; }\\n\\n.tc-deep-orange-A700 {\\n  color: #DD2C00 !important; }\\n\\n.tc-black {\\n  color: #000000 !important; }\\n\\n.tc-black-1 {\\n  color: rgba(0, 0, 0, 0.87) !important; }\\n\\n.tc-black-2 {\\n  color: rgba(0, 0, 0, 0.54) !important; }\\n\\n.tc-black-3 {\\n  color: rgba(0, 0, 0, 0.26) !important; }\\n\\n.tc-black-4 {\\n  color: rgba(0, 0, 0, 0.12) !important; }\\n\\n.tc-white {\\n  color: #FFFFFF !important; }\\n\\n.tc-white-1 {\\n  color: #FFFFFF !important; }\\n\\n.tc-white-2 {\\n  color: rgba(255, 255, 255, 0.7) !important; }\\n\\n.tc-white-3 {\\n  color: rgba(255, 255, 255, 0.3) !important; }\\n\\n.tc-white-4 {\\n  color: rgba(255, 255, 255, 0.12) !important; }\\n\\n.bgc-red-500 {\\n  background-color: #F44336 !important; }\\n\\n.bgc-pink-500 {\\n  background-color: #E91E63 !important; }\\n\\n.bgc-purple-500 {\\n  background-color: #9C27B0 !important; }\\n\\n.bgc-deep-purple-500 {\\n  background-color: #673AB7 !important; }\\n\\n.bgc-indigo-500 {\\n  background-color: #3F51B5 !important; }\\n\\n.bgc-blue-500 {\\n  background-color: #2196F3 !important; }\\n\\n.bgc-light-blue-500 {\\n  background-color: #00BCD4 !important; }\\n\\n.bgc-teal-500 {\\n  background-color: #009688 !important; }\\n\\n.bgc-green-500 {\\n  background-color: #4CAF50 !important; }\\n\\n.bgc-light-green-500 {\\n  background-color: #8BC34A !important; }\\n\\n.bgc-lime-500 {\\n  background-color: #CDDC39 !important; }\\n\\n.bgc-yellow-500 {\\n  background-color: #FFEB3B !important; }\\n\\n.bgc-amber-500 {\\n  background-color: #FFC107 !important; }\\n\\n.bgc-orange-500 {\\n  background-color: #FF9800 !important; }\\n\\n.bgc-deep-orange-500 {\\n  background-color: #FF5722 !important; }\\n\\n.bgc-brown-500 {\\n  background-color: #795548 !important; }\\n\\n.bgc-grey-500 {\\n  background-color: #9E9E9E !important; }\\n\\n.bgc-blue-grey-500 {\\n  background-color: #607D8B !important; }\\n\\n.bgc-red-50 {\\n  background-color: #FFEBEE !important; }\\n\\n.bgc-pink-50 {\\n  background-color: #FCE4EC !important; }\\n\\n.bgc-purple-50 {\\n  background-color: #F3E5F5 !important; }\\n\\n.bgc-deep-purple-50 {\\n  background-color: #EDE7F6 !important; }\\n\\n.bgc-indigo-50 {\\n  background-color: #E8EAF6 !important; }\\n\\n.bgc-blue-50 {\\n  background-color: #E3F2FD !important; }\\n\\n.bgc-light-blue-50 {\\n  background-color: #E0F7FA !important; }\\n\\n.bgc-teal-50 {\\n  background-color: #E0F2F1 !important; }\\n\\n.bgc-green-50 {\\n  background-color: #E8F5E9 !important; }\\n\\n.bgc-light-green-50 {\\n  background-color: #F1F8E9 !important; }\\n\\n.bgc-lime-50 {\\n  background-color: #F9FBE7 !important; }\\n\\n.bgc-yellow-50 {\\n  background-color: #FFFDE7 !important; }\\n\\n.bgc-amber-50 {\\n  background-color: #FFF8E1 !important; }\\n\\n.bgc-orange-50 {\\n  background-color: #FFF3E0 !important; }\\n\\n.bgc-deep-orange-50 {\\n  background-color: #FBE9E7 !important; }\\n\\n.bgc-brown-50 {\\n  background-color: #EFEBE9 !important; }\\n\\n.bgc-grey-50 {\\n  background-color: #FAFAFA !important; }\\n\\n.bgc-blue-grey-50 {\\n  background-color: #ECEFF1 !important; }\\n\\n.bgc-red-100 {\\n  background-color: #FFCDD2 !important; }\\n\\n.bgc-pink-100 {\\n  background-color: #F8BBD0 !important; }\\n\\n.bgc-purple-100 {\\n  background-color: #E1BEE7 !important; }\\n\\n.bgc-deep-purple-100 {\\n  background-color: #D1C4E9 !important; }\\n\\n.bgc-indigo-100 {\\n  background-color: #C5CAE9 !important; }\\n\\n.bgc-blue-100 {\\n  background-color: #BBDEFB !important; }\\n\\n.bgc-light-blue-100 {\\n  background-color: #B2EBF2 !important; }\\n\\n.bgc-teal-100 {\\n  background-color: #B2DFDB !important; }\\n\\n.bgc-green-100 {\\n  background-color: #C8E6C9 !important; }\\n\\n.bgc-light-green-100 {\\n  background-color: #DCEDC8 !important; }\\n\\n.bgc-lime-100 {\\n  background-color: #F0F4C3 !important; }\\n\\n.bgc-yellow-100 {\\n  background-color: #FFF9C4 !important; }\\n\\n.bgc-amber-100 {\\n  background-color: #FFECB3 !important; }\\n\\n.bgc-orange-100 {\\n  background-color: #FFE0B2 !important; }\\n\\n.bgc-deep-orange-100 {\\n  background-color: #FFCCBC !important; }\\n\\n.bgc-brown-100 {\\n  background-color: #D7CCC8 !important; }\\n\\n.bgc-grey-100 {\\n  background-color: #F5F5F5 !important; }\\n\\n.bgc-blue-grey-100 {\\n  background-color: #CFD8DC !important; }\\n\\n.bgc-red-200 {\\n  background-color: #EF9A9A !important; }\\n\\n.bgc-pink-200 {\\n  background-color: #F48FB1 !important; }\\n\\n.bgc-purple-200 {\\n  background-color: #CE93D8 !important; }\\n\\n.bgc-deep-purple-200 {\\n  background-color: #B39DDB !important; }\\n\\n.bgc-indigo-200 {\\n  background-color: #9FA8DA !important; }\\n\\n.bgc-blue-200 {\\n  background-color: #90CAF9 !important; }\\n\\n.bgc-light-blue-200 {\\n  background-color: #80DEEA !important; }\\n\\n.bgc-teal-200 {\\n  background-color: #80CBC4 !important; }\\n\\n.bgc-green-200 {\\n  background-color: #A5D6A7 !important; }\\n\\n.bgc-light-green-200 {\\n  background-color: #C5E1A5 !important; }\\n\\n.bgc-lime-200 {\\n  background-color: #E6EE9C !important; }\\n\\n.bgc-yellow-200 {\\n  background-color: #FFF59D !important; }\\n\\n.bgc-amber-200 {\\n  background-color: #FFE082 !important; }\\n\\n.bgc-orange-200 {\\n  background-color: #FFCC80 !important; }\\n\\n.bgc-deep-orange-200 {\\n  background-color: #FFAB91 !important; }\\n\\n.bgc-brown-200 {\\n  background-color: #BCAAA4 !important; }\\n\\n.bgc-grey-200 {\\n  background-color: #EEEEEE !important; }\\n\\n.bgc-blue-grey-200 {\\n  background-color: #B0BEC5 !important; }\\n\\n.bgc-red-300 {\\n  background-color: #E57373 !important; }\\n\\n.bgc-pink-300 {\\n  background-color: #F06292 !important; }\\n\\n.bgc-purple-300 {\\n  background-color: #BA68C8 !important; }\\n\\n.bgc-deep-purple-300 {\\n  background-color: #9575CD !important; }\\n\\n.bgc-indigo-300 {\\n  background-color: #7986CB !important; }\\n\\n.bgc-blue-300 {\\n  background-color: #64B5F6 !important; }\\n\\n.bgc-light-blue-300 {\\n  background-color: #4DD0E1 !important; }\\n\\n.bgc-teal-300 {\\n  background-color: #4DB6AC !important; }\\n\\n.bgc-green-300 {\\n  background-color: #81C784 !important; }\\n\\n.bgc-light-green-300 {\\n  background-color: #AED581 !important; }\\n\\n.bgc-lime-300 {\\n  background-color: #DCE775 !important; }\\n\\n.bgc-yellow-300 {\\n  background-color: #FFF176 !important; }\\n\\n.bgc-amber-300 {\\n  background-color: #FFD54F !important; }\\n\\n.bgc-orange-300 {\\n  background-color: #FFB74D !important; }\\n\\n.bgc-deep-orange-300 {\\n  background-color: #FF8A65 !important; }\\n\\n.bgc-brown-300 {\\n  background-color: #A1887F !important; }\\n\\n.bgc-grey-300 {\\n  background-color: #E0E0E0 !important; }\\n\\n.bgc-blue-grey-300 {\\n  background-color: #90A4AE !important; }\\n\\n.bgc-red-400 {\\n  background-color: #EF5350 !important; }\\n\\n.bgc-pink-400 {\\n  background-color: #EC407A !important; }\\n\\n.bgc-purple-400 {\\n  background-color: #AB47BC !important; }\\n\\n.bgc-deep-purple-400 {\\n  background-color: #7E57C2 !important; }\\n\\n.bgc-indigo-400 {\\n  background-color: #5C6BC0 !important; }\\n\\n.bgc-blue-400 {\\n  background-color: #42A5F5 !important; }\\n\\n.bgc-light-blue-400 {\\n  background-color: #26C6DA !important; }\\n\\n.bgc-teal-400 {\\n  background-color: #26A69A !important; }\\n\\n.bgc-green-400 {\\n  background-color: #66BB6A !important; }\\n\\n.bgc-light-green-400 {\\n  background-color: #9CCC65 !important; }\\n\\n.bgc-lime-400 {\\n  background-color: #D4E157 !important; }\\n\\n.bgc-yellow-400 {\\n  background-color: #FFEE58 !important; }\\n\\n.bgc-amber-400 {\\n  background-color: #FFCA28 !important; }\\n\\n.bgc-orange-400 {\\n  background-color: #FFA726 !important; }\\n\\n.bgc-deep-orange-400 {\\n  background-color: #FF7043 !important; }\\n\\n.bgc-brown-400 {\\n  background-color: #8D6E63 !important; }\\n\\n.bgc-grey-400 {\\n  background-color: #BDBDBD !important; }\\n\\n.bgc-blue-grey-400 {\\n  background-color: #78909C !important; }\\n\\n.bgc-red-500 {\\n  background-color: #F44336 !important; }\\n\\n.bgc-pink-500 {\\n  background-color: #E91E63 !important; }\\n\\n.bgc-purple-500 {\\n  background-color: #9C27B0 !important; }\\n\\n.bgc-deep-purple-500 {\\n  background-color: #673AB7 !important; }\\n\\n.bgc-indigo-500 {\\n  background-color: #3F51B5 !important; }\\n\\n.bgc-blue-500 {\\n  background-color: #2196F3 !important; }\\n\\n.bgc-light-blue-500 {\\n  background-color: #00BCD4 !important; }\\n\\n.bgc-teal-500 {\\n  background-color: #009688 !important; }\\n\\n.bgc-green-500 {\\n  background-color: #4CAF50 !important; }\\n\\n.bgc-light-green-500 {\\n  background-color: #8BC34A !important; }\\n\\n.bgc-lime-500 {\\n  background-color: #CDDC39 !important; }\\n\\n.bgc-yellow-500 {\\n  background-color: #FFEB3B !important; }\\n\\n.bgc-amber-500 {\\n  background-color: #FFC107 !important; }\\n\\n.bgc-orange-500 {\\n  background-color: #FF9800 !important; }\\n\\n.bgc-deep-orange-500 {\\n  background-color: #FF5722 !important; }\\n\\n.bgc-brown-500 {\\n  background-color: #795548 !important; }\\n\\n.bgc-grey-500 {\\n  background-color: #9E9E9E !important; }\\n\\n.bgc-blue-grey-500 {\\n  background-color: #607D8B !important; }\\n\\n.bgc-red-600 {\\n  background-color: #E53935 !important; }\\n\\n.bgc-pink-600 {\\n  background-color: #D81B60 !important; }\\n\\n.bgc-purple-600 {\\n  background-color: #8E24AA !important; }\\n\\n.bgc-deep-purple-600 {\\n  background-color: #5E35B1 !important; }\\n\\n.bgc-indigo-600 {\\n  background-color: #3949AB !important; }\\n\\n.bgc-blue-600 {\\n  background-color: #1E88E5 !important; }\\n\\n.bgc-light-blue-600 {\\n  background-color: #00ACC1 !important; }\\n\\n.bgc-teal-600 {\\n  background-color: #00897B !important; }\\n\\n.bgc-green-600 {\\n  background-color: #43A047 !important; }\\n\\n.bgc-light-green-600 {\\n  background-color: #7CB342 !important; }\\n\\n.bgc-lime-600 {\\n  background-color: #C0CA33 !important; }\\n\\n.bgc-yellow-600 {\\n  background-color: #FDD835 !important; }\\n\\n.bgc-amber-600 {\\n  background-color: #FFB300 !important; }\\n\\n.bgc-orange-600 {\\n  background-color: #FB8C00 !important; }\\n\\n.bgc-deep-orange-600 {\\n  background-color: #F4511E !important; }\\n\\n.bgc-brown-600 {\\n  background-color: #6D4C41 !important; }\\n\\n.bgc-grey-600 {\\n  background-color: #757575 !important; }\\n\\n.bgc-blue-grey-600 {\\n  background-color: #546E7A !important; }\\n\\n.bgc-red-700 {\\n  background-color: #D32F2F !important; }\\n\\n.bgc-pink-700 {\\n  background-color: #C2185B !important; }\\n\\n.bgc-purple-700 {\\n  background-color: #7B1FA2 !important; }\\n\\n.bgc-deep-purple-700 {\\n  background-color: #512DA8 !important; }\\n\\n.bgc-indigo-700 {\\n  background-color: #303F9F !important; }\\n\\n.bgc-blue-700 {\\n  background-color: #1976D2 !important; }\\n\\n.bgc-light-blue-700 {\\n  background-color: #0097A7 !important; }\\n\\n.bgc-teal-700 {\\n  background-color: #00796B !important; }\\n\\n.bgc-green-700 {\\n  background-color: #388E3C !important; }\\n\\n.bgc-light-green-700 {\\n  background-color: #689F38 !important; }\\n\\n.bgc-lime-700 {\\n  background-color: #AFB42B !important; }\\n\\n.bgc-yellow-700 {\\n  background-color: #FBC02D !important; }\\n\\n.bgc-amber-700 {\\n  background-color: #FFA000 !important; }\\n\\n.bgc-orange-700 {\\n  background-color: #F57C00 !important; }\\n\\n.bgc-deep-orange-700 {\\n  background-color: #E64A19 !important; }\\n\\n.bgc-brown-700 {\\n  background-color: #5D4037 !important; }\\n\\n.bgc-grey-700 {\\n  background-color: #616161 !important; }\\n\\n.bgc-blue-grey-700 {\\n  background-color: #455A64 !important; }\\n\\n.bgc-red-800 {\\n  background-color: #C62828 !important; }\\n\\n.bgc-pink-800 {\\n  background-color: #AD1457 !important; }\\n\\n.bgc-purple-800 {\\n  background-color: #6A1B9A !important; }\\n\\n.bgc-deep-purple-800 {\\n  background-color: #4527A0 !important; }\\n\\n.bgc-indigo-800 {\\n  background-color: #283593 !important; }\\n\\n.bgc-blue-800 {\\n  background-color: #1565C0 !important; }\\n\\n.bgc-light-blue-800 {\\n  background-color: #00838F !important; }\\n\\n.bgc-teal-800 {\\n  background-color: #00695C !important; }\\n\\n.bgc-green-800 {\\n  background-color: #2E7D32 !important; }\\n\\n.bgc-light-green-800 {\\n  background-color: #558B2F !important; }\\n\\n.bgc-lime-800 {\\n  background-color: #9E9D24 !important; }\\n\\n.bgc-yellow-800 {\\n  background-color: #F9A825 !important; }\\n\\n.bgc-amber-800 {\\n  background-color: #FF8F00 !important; }\\n\\n.bgc-orange-800 {\\n  background-color: #EF6C00 !important; }\\n\\n.bgc-deep-orange-800 {\\n  background-color: #D84315 !important; }\\n\\n.bgc-brown-800 {\\n  background-color: #4E342E !important; }\\n\\n.bgc-grey-800 {\\n  background-color: #424242 !important; }\\n\\n.bgc-blue-grey-800 {\\n  background-color: #37474F !important; }\\n\\n.bgc-red-900 {\\n  background-color: #B71C1C !important; }\\n\\n.bgc-pink-900 {\\n  background-color: #880E4F !important; }\\n\\n.bgc-purple-900 {\\n  background-color: #4A148C !important; }\\n\\n.bgc-deep-purple-900 {\\n  background-color: #311B92 !important; }\\n\\n.bgc-indigo-900 {\\n  background-color: #1A237E !important; }\\n\\n.bgc-blue-900 {\\n  background-color: #0D47A1 !important; }\\n\\n.bgc-light-blue-900 {\\n  background-color: #006064 !important; }\\n\\n.bgc-teal-900 {\\n  background-color: #004D40 !important; }\\n\\n.bgc-green-900 {\\n  background-color: #1B5E20 !important; }\\n\\n.bgc-light-green-900 {\\n  background-color: #33691E !important; }\\n\\n.bgc-lime-900 {\\n  background-color: #827717 !important; }\\n\\n.bgc-yellow-900 {\\n  background-color: #F57F17 !important; }\\n\\n.bgc-amber-900 {\\n  background-color: #FF6F00 !important; }\\n\\n.bgc-orange-900 {\\n  background-color: #E65100 !important; }\\n\\n.bgc-deep-orange-900 {\\n  background-color: #BF360C !important; }\\n\\n.bgc-brown-900 {\\n  background-color: #3E2723 !important; }\\n\\n.bgc-grey-900 {\\n  background-color: #212121 !important; }\\n\\n.bgc-blue-grey-900 {\\n  background-color: #263238 !important; }\\n\\n.bgc-red-A100 {\\n  background-color: #FF8A80 !important; }\\n\\n.bgc-pink-A100 {\\n  background-color: #FF80AB !important; }\\n\\n.bgc-purple-A100 {\\n  background-color: #EA80FC !important; }\\n\\n.bgc-deep-purple-A100 {\\n  background-color: #B388FF !important; }\\n\\n.bgc-indigo-A100 {\\n  background-color: #8C9EFF !important; }\\n\\n.bgc-blue-A100 {\\n  background-color: #82B1FF !important; }\\n\\n.bgc-light-blue-A100 {\\n  background-color: #84FFFF !important; }\\n\\n.bgc-teal-A100 {\\n  background-color: #A7FFEB !important; }\\n\\n.bgc-green-A100 {\\n  background-color: #B9F6CA !important; }\\n\\n.bgc-light-green-A100 {\\n  background-color: #CCFF90 !important; }\\n\\n.bgc-lime-A100 {\\n  background-color: #F4FF81 !important; }\\n\\n.bgc-yellow-A100 {\\n  background-color: #FFFF8D !important; }\\n\\n.bgc-amber-A100 {\\n  background-color: #FFE57F !important; }\\n\\n.bgc-orange-A100 {\\n  background-color: #FFD180 !important; }\\n\\n.bgc-deep-orange-A100 {\\n  background-color: #FF9E80 !important; }\\n\\n.bgc-red-A200 {\\n  background-color: #FF5252 !important; }\\n\\n.bgc-pink-A200 {\\n  background-color: #FF4081 !important; }\\n\\n.bgc-purple-A200 {\\n  background-color: #E040FB !important; }\\n\\n.bgc-deep-purple-A200 {\\n  background-color: #7C4DFF !important; }\\n\\n.bgc-indigo-A200 {\\n  background-color: #536DFE !important; }\\n\\n.bgc-blue-A200 {\\n  background-color: #448AFF !important; }\\n\\n.bgc-light-blue-A200 {\\n  background-color: #18FFFF !important; }\\n\\n.bgc-teal-A200 {\\n  background-color: #64FFDA !important; }\\n\\n.bgc-green-A200 {\\n  background-color: #69F0AE !important; }\\n\\n.bgc-light-green-A200 {\\n  background-color: #B2FF59 !important; }\\n\\n.bgc-lime-A200 {\\n  background-color: #EEFF41 !important; }\\n\\n.bgc-yellow-A200 {\\n  background-color: #FFFF00 !important; }\\n\\n.bgc-amber-A200 {\\n  background-color: #FFD740 !important; }\\n\\n.bgc-orange-A200 {\\n  background-color: #FFAB40 !important; }\\n\\n.bgc-deep-orange-A200 {\\n  background-color: #FF6E40 !important; }\\n\\n.bgc-red-A400 {\\n  background-color: #FF1744 !important; }\\n\\n.bgc-pink-A400 {\\n  background-color: #F50057 !important; }\\n\\n.bgc-purple-A400 {\\n  background-color: #D500F9 !important; }\\n\\n.bgc-deep-purple-A400 {\\n  background-color: #651FFF !important; }\\n\\n.bgc-indigo-A400 {\\n  background-color: #3D5AFE !important; }\\n\\n.bgc-blue-A400 {\\n  background-color: #2979FF !important; }\\n\\n.bgc-light-blue-A400 {\\n  background-color: #00E5FF !important; }\\n\\n.bgc-teal-A400 {\\n  background-color: #1DE9B6 !important; }\\n\\n.bgc-green-A400 {\\n  background-color: #00E676 !important; }\\n\\n.bgc-light-green-A400 {\\n  background-color: #76FF03 !important; }\\n\\n.bgc-lime-A400 {\\n  background-color: #C6FF00 !important; }\\n\\n.bgc-yellow-A400 {\\n  background-color: #FFEA00 !important; }\\n\\n.bgc-amber-A400 {\\n  background-color: #FFC400 !important; }\\n\\n.bgc-orange-A400 {\\n  background-color: #FF9100 !important; }\\n\\n.bgc-deep-orange-A400 {\\n  background-color: #FF3D00 !important; }\\n\\n.bgc-red-A700 {\\n  background-color: #D50000 !important; }\\n\\n.bgc-pink-A700 {\\n  background-color: #C51162 !important; }\\n\\n.bgc-purple-A700 {\\n  background-color: #AA00FF !important; }\\n\\n.bgc-deep-purple-A700 {\\n  background-color: #6200EA !important; }\\n\\n.bgc-indigo-A700 {\\n  background-color: #304FFE !important; }\\n\\n.bgc-blue-A700 {\\n  background-color: #2962FF !important; }\\n\\n.bgc-light-blue-A700 {\\n  background-color: #00B8D4 !important; }\\n\\n.bgc-teal-A700 {\\n  background-color: #00BFA5 !important; }\\n\\n.bgc-green-A700 {\\n  background-color: #00C853 !important; }\\n\\n.bgc-light-green-A700 {\\n  background-color: #64DD17 !important; }\\n\\n.bgc-lime-A700 {\\n  background-color: #AEEA00 !important; }\\n\\n.bgc-yellow-A700 {\\n  background-color: #FFD600 !important; }\\n\\n.bgc-amber-A700 {\\n  background-color: #FFAB00 !important; }\\n\\n.bgc-orange-A700 {\\n  background-color: #FF6D00 !important; }\\n\\n.bgc-deep-orange-A700 {\\n  background-color: #DD2C00 !important; }\\n\\n.bgc-black {\\n  background-color: #000000 !important; }\\n\\n.bgc-black-1 {\\n  background-color: rgba(0, 0, 0, 0.87) !important; }\\n\\n.bgc-black-2 {\\n  background-color: rgba(0, 0, 0, 0.54) !important; }\\n\\n.bgc-black-3 {\\n  background-color: rgba(0, 0, 0, 0.26) !important; }\\n\\n.bgc-black-4 {\\n  background-color: rgba(0, 0, 0, 0.12) !important; }\\n\\n.bgc-white {\\n  background-color: #FFFFFF !important; }\\n\\n.bgc-white-1 {\\n  background-color: #FFFFFF !important; }\\n\\n.bgc-white-2 {\\n  background-color: rgba(255, 255, 255, 0.7) !important; }\\n\\n.bgc-white-3 {\\n  background-color: rgba(255, 255, 255, 0.3) !important; }\\n\\n.bgc-white-4 {\\n  background-color: rgba(255, 255, 255, 0.12) !important; }\\n\\n.zero-whole {\\n  width: 0 !important; }\\n\\n.one-whole {\\n  width: 100% !important; }\\n\\n.one-half,\\n.two-quarters,\\n.three-sixths,\\n.four-eighths,\\n.five-tenths,\\n.six-twelfths {\\n  width: 50% !important; }\\n\\n.one-third,\\n.two-sixths,\\n.three-ninths,\\n.four-twelfths {\\n  width: 33.3333333% !important; }\\n\\n.two-thirds,\\n.four-sixths,\\n.six-ninths,\\n.eight-twelfths {\\n  width: 66.6666666% !important; }\\n\\n.one-quarter,\\n.two-eighths,\\n.three-twelfths {\\n  width: 25% !important; }\\n\\n.three-quarters,\\n.six-eighths,\\n.nine-twelfths {\\n  width: 75% !important; }\\n\\n.one-fifth,\\n.two-tenths {\\n  width: 20% !important; }\\n\\n.two-fifths,\\n.four-tenths {\\n  width: 40% !important; }\\n\\n.three-fifths,\\n.six-tenths {\\n  width: 60% !important; }\\n\\n.four-fifths,\\n.eight-tenths {\\n  width: 80% !important; }\\n\\n.one-sixth,\\n.two-twelfths {\\n  width: 16.6666666% !important; }\\n\\n.five-sixths,\\n.ten-twelfths {\\n  width: 83.3333333% !important; }\\n\\n.one-eighth {\\n  width: 12.5% !important; }\\n\\n.three-eighths {\\n  width: 37.5% !important; }\\n\\n.five-eighths {\\n  width: 62.5% !important; }\\n\\n.seven-eighths {\\n  width: 87.5% !important; }\\n\\n.one-ninth {\\n  width: 11.1111111% !important; }\\n\\n.two-ninths {\\n  width: 22.2222222% !important; }\\n\\n.four-ninths {\\n  width: 44.4444444% !important; }\\n\\n.five-ninths {\\n  width: 55.5555555% !important; }\\n\\n.seven-ninths {\\n  width: 77.7777777% !important; }\\n\\n.eight-ninths {\\n  width: 88.8888888% !important; }\\n\\n.one-tenth {\\n  width: 10% !important; }\\n\\n.three-tenths {\\n  width: 30% !important; }\\n\\n.seven-tenths {\\n  width: 70% !important; }\\n\\n.nine-tenths {\\n  width: 90% !important; }\\n\\n.one-twelfth {\\n  width: 8.3333333% !important; }\\n\\n.five-twelfths {\\n  width: 41.6666666% !important; }\\n\\n.seven-twelfths {\\n  width: 58.3333333% !important; }\\n\\n.eleven-twelfths {\\n  width: 91.6666666% !important; }\\n\\n.m {\\n  margin: 8px !important; }\\n\\n.mt {\\n  margin-top: 8px !important; }\\n\\n.mr {\\n  margin-right: 8px !important; }\\n\\n.mb {\\n  margin-bottom: 8px !important; }\\n\\n.ml {\\n  margin-left: 8px !important; }\\n\\n.mh {\\n  margin-right: 8px !important;\\n  margin-left: 8px !important; }\\n\\n.mv {\\n  margin-top: 8px !important;\\n  margin-bottom: 8px !important; }\\n\\n.m- {\\n  margin: 4px !important; }\\n\\n.mt- {\\n  margin-top: 4px !important; }\\n\\n.mr- {\\n  margin-right: 4px !important; }\\n\\n.mb- {\\n  margin-bottom: 4px !important; }\\n\\n.ml- {\\n  margin-left: 4px !important; }\\n\\n.mh- {\\n  margin-right: 4px !important;\\n  margin-left: 4px !important; }\\n\\n.mv- {\\n  margin-top: 4px !important;\\n  margin-bottom: 4px !important; }\\n\\n.m\\\\+ {\\n  margin: 16px !important; }\\n\\n.mt\\\\+ {\\n  margin-top: 16px !important; }\\n\\n.mr\\\\+ {\\n  margin-right: 16px !important; }\\n\\n.mb\\\\+ {\\n  margin-bottom: 16px !important; }\\n\\n.ml\\\\+ {\\n  margin-left: 16px !important; }\\n\\n.mh\\\\+ {\\n  margin-right: 16px !important;\\n  margin-left: 16px !important; }\\n\\n.mv\\\\+ {\\n  margin-top: 16px !important;\\n  margin-bottom: 16px !important; }\\n\\n.m\\\\+\\\\+ {\\n  margin: 24px !important; }\\n\\n.mt\\\\+\\\\+ {\\n  margin-top: 24px !important; }\\n\\n.mr\\\\+\\\\+ {\\n  margin-right: 24px !important; }\\n\\n.mb\\\\+\\\\+ {\\n  margin-bottom: 24px !important; }\\n\\n.ml\\\\+\\\\+ {\\n  margin-left: 24px !important; }\\n\\n.mh\\\\+\\\\+ {\\n  margin-right: 24px !important;\\n  margin-left: 24px !important; }\\n\\n.mv\\\\+\\\\+ {\\n  margin-top: 24px !important;\\n  margin-bottom: 24px !important; }\\n\\n.m\\\\+\\\\+\\\\+ {\\n  margin: 32px !important; }\\n\\n.mt\\\\+\\\\+\\\\+ {\\n  margin-top: 32px !important; }\\n\\n.mr\\\\+\\\\+\\\\+ {\\n  margin-right: 32px !important; }\\n\\n.mb\\\\+\\\\+\\\\+ {\\n  margin-bottom: 32px !important; }\\n\\n.ml\\\\+\\\\+\\\\+ {\\n  margin-left: 32px !important; }\\n\\n.mh\\\\+\\\\+\\\\+ {\\n  margin-right: 32px !important;\\n  margin-left: 32px !important; }\\n\\n.mv\\\\+\\\\+\\\\+ {\\n  margin-top: 32px !important;\\n  margin-bottom: 32px !important; }\\n\\n.m0 {\\n  margin: 0 !important; }\\n\\n.mt0 {\\n  margin-top: 0 !important; }\\n\\n.mr0 {\\n  margin-right: 0 !important; }\\n\\n.mb0 {\\n  margin-bottom: 0 !important; }\\n\\n.ml0 {\\n  margin-left: 0 !important; }\\n\\n.mh0 {\\n  margin-right: 0 !important;\\n  margin-left: 0 !important; }\\n\\n.mv0 {\\n  margin-top: 0 !important;\\n  margin-bottom: 0 !important; }\\n\\n.p {\\n  padding: 8px !important; }\\n\\n.pt {\\n  padding-top: 8px !important; }\\n\\n.pr {\\n  padding-right: 8px !important; }\\n\\n.pb {\\n  padding-bottom: 8px !important; }\\n\\n.pl {\\n  padding-left: 8px !important; }\\n\\n.ph {\\n  padding-right: 8px !important;\\n  padding-left: 8px !important; }\\n\\n.pv {\\n  padding-top: 8px !important;\\n  padding-bottom: 8px !important; }\\n\\n.p- {\\n  padding: 4px !important; }\\n\\n.pt- {\\n  padding-top: 4px !important; }\\n\\n.pr- {\\n  padding-right: 4px !important; }\\n\\n.pb- {\\n  padding-bottom: 4px !important; }\\n\\n.pl- {\\n  padding-left: 4px !important; }\\n\\n.ph- {\\n  padding-right: 4px !important;\\n  padding-left: 4px !important; }\\n\\n.pv- {\\n  padding-top: 4px !important;\\n  padding-bottom: 4px !important; }\\n\\n.p\\\\+ {\\n  padding: 16px !important; }\\n\\n.pt\\\\+ {\\n  padding-top: 16px !important; }\\n\\n.pr\\\\+ {\\n  padding-right: 16px !important; }\\n\\n.pb\\\\+ {\\n  padding-bottom: 16px !important; }\\n\\n.pl\\\\+ {\\n  padding-left: 16px !important; }\\n\\n.ph\\\\+ {\\n  padding-right: 16px !important;\\n  padding-left: 16px !important; }\\n\\n.pv\\\\+ {\\n  padding-top: 16px !important;\\n  padding-bottom: 16px !important; }\\n\\n.p\\\\+\\\\+ {\\n  padding: 24px !important; }\\n\\n.pt\\\\+\\\\+ {\\n  padding-top: 24px !important; }\\n\\n.pr\\\\+\\\\+ {\\n  padding-right: 24px !important; }\\n\\n.pb\\\\+\\\\+ {\\n  padding-bottom: 24px !important; }\\n\\n.pl\\\\+\\\\+ {\\n  padding-left: 24px !important; }\\n\\n.ph\\\\+\\\\+ {\\n  padding-right: 24px !important;\\n  padding-left: 24px !important; }\\n\\n.pv\\\\+\\\\+ {\\n  padding-top: 24px !important;\\n  padding-bottom: 24px !important; }\\n\\n.p\\\\+\\\\+\\\\+ {\\n  padding: 32px !important; }\\n\\n.pt\\\\+\\\\+\\\\+ {\\n  padding-top: 32px !important; }\\n\\n.pr\\\\+\\\\+\\\\+ {\\n  padding-right: 32px !important; }\\n\\n.pb\\\\+\\\\+\\\\+ {\\n  padding-bottom: 32px !important; }\\n\\n.pl\\\\+\\\\+\\\\+ {\\n  padding-left: 32px !important; }\\n\\n.ph\\\\+\\\\+\\\\+ {\\n  padding-right: 32px !important;\\n  padding-left: 32px !important; }\\n\\n.pv\\\\+\\\\+\\\\+ {\\n  padding-top: 32px !important;\\n  padding-bottom: 32px !important; }\\n\\n.p0 {\\n  padding: 0 !important; }\\n\\n.pt0 {\\n  padding-top: 0 !important; }\\n\\n.pr0 {\\n  padding-right: 0 !important; }\\n\\n.pb0 {\\n  padding-bottom: 0 !important; }\\n\\n.pl0 {\\n  padding-left: 0 !important; }\\n\\n.ph0 {\\n  padding-right: 0 !important;\\n  padding-left: 0 !important; }\\n\\n.pv0 {\\n  padding-top: 0 !important;\\n  padding-bottom: 0 !important; }\\n\\n.clearfix::after {\\n  clear: both;\\n  content: \\\"\\\";\\n  display: table; }\\n\\n.float-right {\\n  float: right !important; }\\n\\n.float-left {\\n  float: left  !important; }\\n\\n.float-none {\\n  float: none  !important; }\\n\\n.text-left {\\n  text-align: left   !important; }\\n\\n.text-center {\\n  text-align: center !important; }\\n\\n.text-right {\\n  text-align: right  !important; }\\n\\n.display-block {\\n  display: block; }\\n\\n.visuallyhidden,\\n.checkbox__input,\\n.radio-button__input,\\n.switch__input {\\n  border: 0 !important;\\n  clip: rect(0 0 0 0) !important;\\n  height: 1px !important;\\n  margin: -1px !important;\\n  overflow: hidden !important;\\n  padding: 0 !important;\\n  position: absolute !important;\\n  width: 1px !important; }\\n\\n@-webkit-keyframes jelly {\\n  0% {\\n    -webkit-transform: matrix3d(0.7, 0, 0, 0, 0, 0.7, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.7, 0, 0, 0, 0, 0.7, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  2.083333% {\\n    -webkit-transform: matrix3d(0.75266, 0, 0, 0, 0, 0.76342, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.75266, 0, 0, 0, 0, 0.76342, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  4.166667% {\\n    -webkit-transform: matrix3d(0.81071, 0, 0, 0, 0, 0.84545, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.81071, 0, 0, 0, 0, 0.84545, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  6.25% {\\n    -webkit-transform: matrix3d(0.86808, 0, 0, 0, 0, 0.9286, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.86808, 0, 0, 0, 0, 0.9286, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  8.333333% {\\n    -webkit-transform: matrix3d(0.92038, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.92038, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  10.416667% {\\n    -webkit-transform: matrix3d(0.96482, 0, 0, 0, 0, 1.05202, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.96482, 0, 0, 0, 0, 1.05202, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  12.5% {\\n    -webkit-transform: matrix3d(1, 0, 0, 0, 0, 1.08204, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1, 0, 0, 0, 0, 1.08204, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  14.583333% {\\n    -webkit-transform: matrix3d(1.02563, 0, 0, 0, 0, 1.09149, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.02563, 0, 0, 0, 0, 1.09149, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  16.666667% {\\n    -webkit-transform: matrix3d(1.04227, 0, 0, 0, 0, 1.08453, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.04227, 0, 0, 0, 0, 1.08453, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  18.75% {\\n    -webkit-transform: matrix3d(1.05102, 0, 0, 0, 0, 1.06666, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.05102, 0, 0, 0, 0, 1.06666, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  20.833333% {\\n    -webkit-transform: matrix3d(1.05334, 0, 0, 0, 0, 1.04355, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.05334, 0, 0, 0, 0, 1.04355, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  22.916667% {\\n    -webkit-transform: matrix3d(1.05078, 0, 0, 0, 0, 1.02012, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.05078, 0, 0, 0, 0, 1.02012, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  25% {\\n    -webkit-transform: matrix3d(1.04487, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.04487, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  27.083333% {\\n    -webkit-transform: matrix3d(1.03699, 0, 0, 0, 0, 0.98534, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.03699, 0, 0, 0, 0, 0.98534, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  29.166667% {\\n    -webkit-transform: matrix3d(1.02831, 0, 0, 0, 0, 0.97688, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.02831, 0, 0, 0, 0, 0.97688, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  31.25% {\\n    -webkit-transform: matrix3d(1.01973, 0, 0, 0, 0, 0.97422, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.01973, 0, 0, 0, 0, 0.97422, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  33.333333% {\\n    -webkit-transform: matrix3d(1.01191, 0, 0, 0, 0, 0.97618, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.01191, 0, 0, 0, 0, 0.97618, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  35.416667% {\\n    -webkit-transform: matrix3d(1.00526, 0, 0, 0, 0, 0.98122, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.00526, 0, 0, 0, 0, 0.98122, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  37.5% {\\n    -webkit-transform: matrix3d(1, 0, 0, 0, 0, 0.98773, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1, 0, 0, 0, 0, 0.98773, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  39.583333% {\\n    -webkit-transform: matrix3d(0.99617, 0, 0, 0, 0, 0.99433, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.99617, 0, 0, 0, 0, 0.99433, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  41.666667% {\\n    -webkit-transform: matrix3d(0.99368, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.99368, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  43.75% {\\n    -webkit-transform: matrix3d(0.99237, 0, 0, 0, 0, 1.00413, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.99237, 0, 0, 0, 0, 1.00413, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  45.833333% {\\n    -webkit-transform: matrix3d(0.99202, 0, 0, 0, 0, 1.00651, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.99202, 0, 0, 0, 0, 1.00651, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  47.916667% {\\n    -webkit-transform: matrix3d(0.99241, 0, 0, 0, 0, 1.00726, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.99241, 0, 0, 0, 0, 1.00726, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  50% {\\n    -webkit-transform: matrix3d(0.99329, 0, 0, 0, 0, 1.00671, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.99329, 0, 0, 0, 0, 1.00671, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  52.083333% {\\n    -webkit-transform: matrix3d(0.99447, 0, 0, 0, 0, 1.00529, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.99447, 0, 0, 0, 0, 1.00529, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  54.166667% {\\n    -webkit-transform: matrix3d(0.99577, 0, 0, 0, 0, 1.00346, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.99577, 0, 0, 0, 0, 1.00346, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  56.25% {\\n    -webkit-transform: matrix3d(0.99705, 0, 0, 0, 0, 1.0016, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.99705, 0, 0, 0, 0, 1.0016, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  58.333333% {\\n    -webkit-transform: matrix3d(0.99822, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.99822, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  60.416667% {\\n    -webkit-transform: matrix3d(0.99921, 0, 0, 0, 0, 0.99884, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.99921, 0, 0, 0, 0, 0.99884, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  62.5% {\\n    -webkit-transform: matrix3d(1, 0, 0, 0, 0, 0.99816, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1, 0, 0, 0, 0, 0.99816, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  64.583333% {\\n    -webkit-transform: matrix3d(1.00057, 0, 0, 0, 0, 0.99795, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.00057, 0, 0, 0, 0, 0.99795, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  66.666667% {\\n    -webkit-transform: matrix3d(1.00095, 0, 0, 0, 0, 0.99811, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.00095, 0, 0, 0, 0, 0.99811, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  68.75% {\\n    -webkit-transform: matrix3d(1.00114, 0, 0, 0, 0, 0.99851, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.00114, 0, 0, 0, 0, 0.99851, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  70.833333% {\\n    -webkit-transform: matrix3d(1.00119, 0, 0, 0, 0, 0.99903, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.00119, 0, 0, 0, 0, 0.99903, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  72.916667% {\\n    -webkit-transform: matrix3d(1.00114, 0, 0, 0, 0, 0.99955, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.00114, 0, 0, 0, 0, 0.99955, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  75% {\\n    -webkit-transform: matrix3d(1.001, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.001, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  77.083333% {\\n    -webkit-transform: matrix3d(1.00083, 0, 0, 0, 0, 1.00033, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.00083, 0, 0, 0, 0, 1.00033, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  79.166667% {\\n    -webkit-transform: matrix3d(1.00063, 0, 0, 0, 0, 1.00052, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.00063, 0, 0, 0, 0, 1.00052, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  81.25% {\\n    -webkit-transform: matrix3d(1.00044, 0, 0, 0, 0, 1.00058, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.00044, 0, 0, 0, 0, 1.00058, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  83.333333% {\\n    -webkit-transform: matrix3d(1.00027, 0, 0, 0, 0, 1.00053, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.00027, 0, 0, 0, 0, 1.00053, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  85.416667% {\\n    -webkit-transform: matrix3d(1.00012, 0, 0, 0, 0, 1.00042, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.00012, 0, 0, 0, 0, 1.00042, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  87.5% {\\n    -webkit-transform: matrix3d(1, 0, 0, 0, 0, 1.00027, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1, 0, 0, 0, 0, 1.00027, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  89.583333% {\\n    -webkit-transform: matrix3d(0.99991, 0, 0, 0, 0, 1.00013, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.99991, 0, 0, 0, 0, 1.00013, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  91.666667% {\\n    -webkit-transform: matrix3d(0.99986, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.99986, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  93.75% {\\n    -webkit-transform: matrix3d(0.99983, 0, 0, 0, 0, 0.99991, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.99983, 0, 0, 0, 0, 0.99991, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  95.833333% {\\n    -webkit-transform: matrix3d(0.99982, 0, 0, 0, 0, 0.99985, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.99982, 0, 0, 0, 0, 0.99985, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  97.916667% {\\n    -webkit-transform: matrix3d(0.99983, 0, 0, 0, 0, 0.99984, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.99983, 0, 0, 0, 0, 0.99984, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  100% {\\n    -webkit-transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); } }\\n\\n@-moz-keyframes jelly {\\n  0% {\\n    -webkit-transform: matrix3d(0.7, 0, 0, 0, 0, 0.7, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.7, 0, 0, 0, 0, 0.7, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  2.083333% {\\n    -webkit-transform: matrix3d(0.75266, 0, 0, 0, 0, 0.76342, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.75266, 0, 0, 0, 0, 0.76342, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  4.166667% {\\n    -webkit-transform: matrix3d(0.81071, 0, 0, 0, 0, 0.84545, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.81071, 0, 0, 0, 0, 0.84545, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  6.25% {\\n    -webkit-transform: matrix3d(0.86808, 0, 0, 0, 0, 0.9286, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.86808, 0, 0, 0, 0, 0.9286, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  8.333333% {\\n    -webkit-transform: matrix3d(0.92038, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.92038, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  10.416667% {\\n    -webkit-transform: matrix3d(0.96482, 0, 0, 0, 0, 1.05202, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.96482, 0, 0, 0, 0, 1.05202, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  12.5% {\\n    -webkit-transform: matrix3d(1, 0, 0, 0, 0, 1.08204, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1, 0, 0, 0, 0, 1.08204, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  14.583333% {\\n    -webkit-transform: matrix3d(1.02563, 0, 0, 0, 0, 1.09149, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.02563, 0, 0, 0, 0, 1.09149, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  16.666667% {\\n    -webkit-transform: matrix3d(1.04227, 0, 0, 0, 0, 1.08453, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.04227, 0, 0, 0, 0, 1.08453, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  18.75% {\\n    -webkit-transform: matrix3d(1.05102, 0, 0, 0, 0, 1.06666, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.05102, 0, 0, 0, 0, 1.06666, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  20.833333% {\\n    -webkit-transform: matrix3d(1.05334, 0, 0, 0, 0, 1.04355, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.05334, 0, 0, 0, 0, 1.04355, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  22.916667% {\\n    -webkit-transform: matrix3d(1.05078, 0, 0, 0, 0, 1.02012, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.05078, 0, 0, 0, 0, 1.02012, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  25% {\\n    -webkit-transform: matrix3d(1.04487, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.04487, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  27.083333% {\\n    -webkit-transform: matrix3d(1.03699, 0, 0, 0, 0, 0.98534, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.03699, 0, 0, 0, 0, 0.98534, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  29.166667% {\\n    -webkit-transform: matrix3d(1.02831, 0, 0, 0, 0, 0.97688, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.02831, 0, 0, 0, 0, 0.97688, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  31.25% {\\n    -webkit-transform: matrix3d(1.01973, 0, 0, 0, 0, 0.97422, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.01973, 0, 0, 0, 0, 0.97422, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  33.333333% {\\n    -webkit-transform: matrix3d(1.01191, 0, 0, 0, 0, 0.97618, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.01191, 0, 0, 0, 0, 0.97618, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  35.416667% {\\n    -webkit-transform: matrix3d(1.00526, 0, 0, 0, 0, 0.98122, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.00526, 0, 0, 0, 0, 0.98122, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  37.5% {\\n    -webkit-transform: matrix3d(1, 0, 0, 0, 0, 0.98773, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1, 0, 0, 0, 0, 0.98773, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  39.583333% {\\n    -webkit-transform: matrix3d(0.99617, 0, 0, 0, 0, 0.99433, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.99617, 0, 0, 0, 0, 0.99433, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  41.666667% {\\n    -webkit-transform: matrix3d(0.99368, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.99368, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  43.75% {\\n    -webkit-transform: matrix3d(0.99237, 0, 0, 0, 0, 1.00413, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.99237, 0, 0, 0, 0, 1.00413, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  45.833333% {\\n    -webkit-transform: matrix3d(0.99202, 0, 0, 0, 0, 1.00651, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.99202, 0, 0, 0, 0, 1.00651, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  47.916667% {\\n    -webkit-transform: matrix3d(0.99241, 0, 0, 0, 0, 1.00726, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.99241, 0, 0, 0, 0, 1.00726, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  50% {\\n    -webkit-transform: matrix3d(0.99329, 0, 0, 0, 0, 1.00671, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.99329, 0, 0, 0, 0, 1.00671, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  52.083333% {\\n    -webkit-transform: matrix3d(0.99447, 0, 0, 0, 0, 1.00529, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.99447, 0, 0, 0, 0, 1.00529, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  54.166667% {\\n    -webkit-transform: matrix3d(0.99577, 0, 0, 0, 0, 1.00346, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.99577, 0, 0, 0, 0, 1.00346, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  56.25% {\\n    -webkit-transform: matrix3d(0.99705, 0, 0, 0, 0, 1.0016, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.99705, 0, 0, 0, 0, 1.0016, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  58.333333% {\\n    -webkit-transform: matrix3d(0.99822, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.99822, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  60.416667% {\\n    -webkit-transform: matrix3d(0.99921, 0, 0, 0, 0, 0.99884, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.99921, 0, 0, 0, 0, 0.99884, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  62.5% {\\n    -webkit-transform: matrix3d(1, 0, 0, 0, 0, 0.99816, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1, 0, 0, 0, 0, 0.99816, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  64.583333% {\\n    -webkit-transform: matrix3d(1.00057, 0, 0, 0, 0, 0.99795, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.00057, 0, 0, 0, 0, 0.99795, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  66.666667% {\\n    -webkit-transform: matrix3d(1.00095, 0, 0, 0, 0, 0.99811, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.00095, 0, 0, 0, 0, 0.99811, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  68.75% {\\n    -webkit-transform: matrix3d(1.00114, 0, 0, 0, 0, 0.99851, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.00114, 0, 0, 0, 0, 0.99851, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  70.833333% {\\n    -webkit-transform: matrix3d(1.00119, 0, 0, 0, 0, 0.99903, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.00119, 0, 0, 0, 0, 0.99903, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  72.916667% {\\n    -webkit-transform: matrix3d(1.00114, 0, 0, 0, 0, 0.99955, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.00114, 0, 0, 0, 0, 0.99955, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  75% {\\n    -webkit-transform: matrix3d(1.001, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.001, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  77.083333% {\\n    -webkit-transform: matrix3d(1.00083, 0, 0, 0, 0, 1.00033, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.00083, 0, 0, 0, 0, 1.00033, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  79.166667% {\\n    -webkit-transform: matrix3d(1.00063, 0, 0, 0, 0, 1.00052, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.00063, 0, 0, 0, 0, 1.00052, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  81.25% {\\n    -webkit-transform: matrix3d(1.00044, 0, 0, 0, 0, 1.00058, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.00044, 0, 0, 0, 0, 1.00058, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  83.333333% {\\n    -webkit-transform: matrix3d(1.00027, 0, 0, 0, 0, 1.00053, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.00027, 0, 0, 0, 0, 1.00053, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  85.416667% {\\n    -webkit-transform: matrix3d(1.00012, 0, 0, 0, 0, 1.00042, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.00012, 0, 0, 0, 0, 1.00042, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  87.5% {\\n    -webkit-transform: matrix3d(1, 0, 0, 0, 0, 1.00027, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1, 0, 0, 0, 0, 1.00027, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  89.583333% {\\n    -webkit-transform: matrix3d(0.99991, 0, 0, 0, 0, 1.00013, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.99991, 0, 0, 0, 0, 1.00013, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  91.666667% {\\n    -webkit-transform: matrix3d(0.99986, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.99986, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  93.75% {\\n    -webkit-transform: matrix3d(0.99983, 0, 0, 0, 0, 0.99991, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.99983, 0, 0, 0, 0, 0.99991, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  95.833333% {\\n    -webkit-transform: matrix3d(0.99982, 0, 0, 0, 0, 0.99985, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.99982, 0, 0, 0, 0, 0.99985, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  97.916667% {\\n    -webkit-transform: matrix3d(0.99983, 0, 0, 0, 0, 0.99984, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.99983, 0, 0, 0, 0, 0.99984, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  100% {\\n    -webkit-transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); } }\\n\\n@keyframes jelly {\\n  0% {\\n    -webkit-transform: matrix3d(0.7, 0, 0, 0, 0, 0.7, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.7, 0, 0, 0, 0, 0.7, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  2.083333% {\\n    -webkit-transform: matrix3d(0.75266, 0, 0, 0, 0, 0.76342, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.75266, 0, 0, 0, 0, 0.76342, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  4.166667% {\\n    -webkit-transform: matrix3d(0.81071, 0, 0, 0, 0, 0.84545, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.81071, 0, 0, 0, 0, 0.84545, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  6.25% {\\n    -webkit-transform: matrix3d(0.86808, 0, 0, 0, 0, 0.9286, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.86808, 0, 0, 0, 0, 0.9286, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  8.333333% {\\n    -webkit-transform: matrix3d(0.92038, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.92038, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  10.416667% {\\n    -webkit-transform: matrix3d(0.96482, 0, 0, 0, 0, 1.05202, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.96482, 0, 0, 0, 0, 1.05202, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  12.5% {\\n    -webkit-transform: matrix3d(1, 0, 0, 0, 0, 1.08204, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1, 0, 0, 0, 0, 1.08204, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  14.583333% {\\n    -webkit-transform: matrix3d(1.02563, 0, 0, 0, 0, 1.09149, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.02563, 0, 0, 0, 0, 1.09149, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  16.666667% {\\n    -webkit-transform: matrix3d(1.04227, 0, 0, 0, 0, 1.08453, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.04227, 0, 0, 0, 0, 1.08453, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  18.75% {\\n    -webkit-transform: matrix3d(1.05102, 0, 0, 0, 0, 1.06666, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.05102, 0, 0, 0, 0, 1.06666, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  20.833333% {\\n    -webkit-transform: matrix3d(1.05334, 0, 0, 0, 0, 1.04355, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.05334, 0, 0, 0, 0, 1.04355, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  22.916667% {\\n    -webkit-transform: matrix3d(1.05078, 0, 0, 0, 0, 1.02012, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.05078, 0, 0, 0, 0, 1.02012, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  25% {\\n    -webkit-transform: matrix3d(1.04487, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.04487, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  27.083333% {\\n    -webkit-transform: matrix3d(1.03699, 0, 0, 0, 0, 0.98534, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.03699, 0, 0, 0, 0, 0.98534, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  29.166667% {\\n    -webkit-transform: matrix3d(1.02831, 0, 0, 0, 0, 0.97688, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.02831, 0, 0, 0, 0, 0.97688, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  31.25% {\\n    -webkit-transform: matrix3d(1.01973, 0, 0, 0, 0, 0.97422, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.01973, 0, 0, 0, 0, 0.97422, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  33.333333% {\\n    -webkit-transform: matrix3d(1.01191, 0, 0, 0, 0, 0.97618, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.01191, 0, 0, 0, 0, 0.97618, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  35.416667% {\\n    -webkit-transform: matrix3d(1.00526, 0, 0, 0, 0, 0.98122, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.00526, 0, 0, 0, 0, 0.98122, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  37.5% {\\n    -webkit-transform: matrix3d(1, 0, 0, 0, 0, 0.98773, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1, 0, 0, 0, 0, 0.98773, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  39.583333% {\\n    -webkit-transform: matrix3d(0.99617, 0, 0, 0, 0, 0.99433, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.99617, 0, 0, 0, 0, 0.99433, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  41.666667% {\\n    -webkit-transform: matrix3d(0.99368, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.99368, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  43.75% {\\n    -webkit-transform: matrix3d(0.99237, 0, 0, 0, 0, 1.00413, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.99237, 0, 0, 0, 0, 1.00413, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  45.833333% {\\n    -webkit-transform: matrix3d(0.99202, 0, 0, 0, 0, 1.00651, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.99202, 0, 0, 0, 0, 1.00651, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  47.916667% {\\n    -webkit-transform: matrix3d(0.99241, 0, 0, 0, 0, 1.00726, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.99241, 0, 0, 0, 0, 1.00726, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  50% {\\n    -webkit-transform: matrix3d(0.99329, 0, 0, 0, 0, 1.00671, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.99329, 0, 0, 0, 0, 1.00671, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  52.083333% {\\n    -webkit-transform: matrix3d(0.99447, 0, 0, 0, 0, 1.00529, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.99447, 0, 0, 0, 0, 1.00529, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  54.166667% {\\n    -webkit-transform: matrix3d(0.99577, 0, 0, 0, 0, 1.00346, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.99577, 0, 0, 0, 0, 1.00346, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  56.25% {\\n    -webkit-transform: matrix3d(0.99705, 0, 0, 0, 0, 1.0016, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.99705, 0, 0, 0, 0, 1.0016, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  58.333333% {\\n    -webkit-transform: matrix3d(0.99822, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.99822, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  60.416667% {\\n    -webkit-transform: matrix3d(0.99921, 0, 0, 0, 0, 0.99884, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.99921, 0, 0, 0, 0, 0.99884, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  62.5% {\\n    -webkit-transform: matrix3d(1, 0, 0, 0, 0, 0.99816, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1, 0, 0, 0, 0, 0.99816, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  64.583333% {\\n    -webkit-transform: matrix3d(1.00057, 0, 0, 0, 0, 0.99795, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.00057, 0, 0, 0, 0, 0.99795, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  66.666667% {\\n    -webkit-transform: matrix3d(1.00095, 0, 0, 0, 0, 0.99811, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.00095, 0, 0, 0, 0, 0.99811, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  68.75% {\\n    -webkit-transform: matrix3d(1.00114, 0, 0, 0, 0, 0.99851, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.00114, 0, 0, 0, 0, 0.99851, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  70.833333% {\\n    -webkit-transform: matrix3d(1.00119, 0, 0, 0, 0, 0.99903, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.00119, 0, 0, 0, 0, 0.99903, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  72.916667% {\\n    -webkit-transform: matrix3d(1.00114, 0, 0, 0, 0, 0.99955, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.00114, 0, 0, 0, 0, 0.99955, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  75% {\\n    -webkit-transform: matrix3d(1.001, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.001, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  77.083333% {\\n    -webkit-transform: matrix3d(1.00083, 0, 0, 0, 0, 1.00033, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.00083, 0, 0, 0, 0, 1.00033, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  79.166667% {\\n    -webkit-transform: matrix3d(1.00063, 0, 0, 0, 0, 1.00052, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.00063, 0, 0, 0, 0, 1.00052, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  81.25% {\\n    -webkit-transform: matrix3d(1.00044, 0, 0, 0, 0, 1.00058, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.00044, 0, 0, 0, 0, 1.00058, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  83.333333% {\\n    -webkit-transform: matrix3d(1.00027, 0, 0, 0, 0, 1.00053, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.00027, 0, 0, 0, 0, 1.00053, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  85.416667% {\\n    -webkit-transform: matrix3d(1.00012, 0, 0, 0, 0, 1.00042, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1.00012, 0, 0, 0, 0, 1.00042, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  87.5% {\\n    -webkit-transform: matrix3d(1, 0, 0, 0, 0, 1.00027, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1, 0, 0, 0, 0, 1.00027, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  89.583333% {\\n    -webkit-transform: matrix3d(0.99991, 0, 0, 0, 0, 1.00013, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.99991, 0, 0, 0, 0, 1.00013, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  91.666667% {\\n    -webkit-transform: matrix3d(0.99986, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.99986, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  93.75% {\\n    -webkit-transform: matrix3d(0.99983, 0, 0, 0, 0, 0.99991, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.99983, 0, 0, 0, 0, 0.99991, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  95.833333% {\\n    -webkit-transform: matrix3d(0.99982, 0, 0, 0, 0, 0.99985, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.99982, 0, 0, 0, 0, 0.99985, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  97.916667% {\\n    -webkit-transform: matrix3d(0.99983, 0, 0, 0, 0, 0.99984, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(0.99983, 0, 0, 0, 0, 0.99984, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }\\n  100% {\\n    -webkit-transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\\n    transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); } }\\n\\n@-webkit-keyframes ripple {\\n  100% {\\n    opacity: 0;\\n    -webkit-transform: scale(2.5); } }\\n\\n@-moz-keyframes ripple {\\n  100% {\\n    opacity: 0;\\n    -moz-transform: scale(2.5); } }\\n\\n@keyframes ripple {\\n  100% {\\n    opacity: 0;\\n    -webkit-transform: scale(2.5);\\n    -moz-transform: scale(2.5);\\n    -ms-transform: scale(2.5);\\n    -o-transform: scale(2.5);\\n    transform: scale(2.5); } }\\n\\n@-webkit-keyframes spin {\\n  0% {\\n    -webkit-transform: rotate(0deg); }\\n  100% {\\n    -webkit-transform: rotate(359deg); } }\\n\\n@-moz-keyframes spin {\\n  0% {\\n    -moz-transform: rotate(0deg); }\\n  100% {\\n    -moz-transform: rotate(359deg); } }\\n\\n@keyframes spin {\\n  0% {\\n    -webkit-transform: rotate(0deg);\\n    -moz-transform: rotate(0deg);\\n    -ms-transform: rotate(0deg);\\n    -o-transform: rotate(0deg);\\n    transform: rotate(0deg); }\\n  100% {\\n    -webkit-transform: rotate(359deg);\\n    -moz-transform: rotate(359deg);\\n    -ms-transform: rotate(359deg);\\n    -o-transform: rotate(359deg);\\n    transform: rotate(359deg); } }\\n\\n.bare-list,\\n.dropdown-menu ul,\\n.list,\\n.tabs__links {\\n  margin: 0;\\n  padding: 0;\\n  list-style: none; }\\n\\n.divider {\\n  height: 1px; }\\n\\n.divider--dark {\\n  background-color: rgba(0, 0, 0, 0.12); }\\n\\n.divider--light {\\n  background-color: rgba(255, 255, 255, 0.12); }\\n\\n.z-depth1 {\\n  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); }\\n\\n.z-depth2 {\\n  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4); }\\n\\n.z-depth3 {\\n  box-shadow: 0 9px 18px rgba(0, 0, 0, 0.5); }\\n\\n.btn {\\n  z-index: 2;\\n  display: inline-block;\\n  vertical-align: top;\\n  margin: 0;\\n  padding: 0;\\n  border: none;\\n  border-radius: 2px;\\n  background-color: transparent;\\n  font-weight: 400;\\n  text-align: center;\\n  text-transform: uppercase;\\n  cursor: pointer; }\\n  .btn, .btn:hover, .btn:active, .btn:focus {\\n    text-decoration: none;\\n    outline: none; }\\n  .btn::-moz-focus-inner {\\n    border: 0;\\n    padding: 0; }\\n  .btn .ripple {\\n    z-index: -1; }\\n\\n.btn--xs {\\n  padding-left: 10px;\\n  padding-right: 10px;\\n  font-size: 11px;\\n  font-size: 0.6875rem;\\n  line-height: 24px; }\\n\\n.btn--s {\\n  padding-left: 12px;\\n  padding-right: 12px;\\n  font-size: 11px;\\n  font-size: 0.6875rem;\\n  line-height: 30px; }\\n\\n.btn--m {\\n  padding-left: 14px;\\n  padding-right: 14px;\\n  font-size: 13px;\\n  font-size: 0.8125rem;\\n  line-height: 36px; }\\n\\n.btn--l {\\n  padding-left: 16px;\\n  padding-right: 16px;\\n  font-size: 14px;\\n  font-size: 0.875rem;\\n  line-height: 40px; }\\n\\n.btn--xl {\\n  padding-left: 26px;\\n  padding-right: 26px;\\n  font-size: 16px;\\n  font-size: 1rem;\\n  line-height: 56px; }\\n\\n.btn[disabled],\\n.btn--is-disabled {\\n  box-shadow: none !important;\\n  cursor: not-allowed;\\n  color: rgba(0, 0, 0, 0.26) !important; }\\n  .btn[disabled].btn--raised, .btn[disabled].btn--fab,\\n  .btn--is-disabled.btn--raised,\\n  .btn--is-disabled.btn--fab {\\n    background-color: #E0E0E0 !important; }\\n\\n.btn--flat.btn--red,\\n.btn--icon.btn--red {\\n  color: #F44336; }\\n  .btn--flat.btn--red .ripple,\\n  .btn--icon.btn--red .ripple {\\n    background-color: #F44336; }\\n\\n.btn--flat.btn--pink,\\n.btn--icon.btn--pink {\\n  color: #E91E63; }\\n  .btn--flat.btn--pink .ripple,\\n  .btn--icon.btn--pink .ripple {\\n    background-color: #E91E63; }\\n\\n.btn--flat.btn--purple,\\n.btn--icon.btn--purple {\\n  color: #9C27B0; }\\n  .btn--flat.btn--purple .ripple,\\n  .btn--icon.btn--purple .ripple {\\n    background-color: #9C27B0; }\\n\\n.btn--flat.btn--deep-purple,\\n.btn--icon.btn--deep-purple {\\n  color: #673AB7; }\\n  .btn--flat.btn--deep-purple .ripple,\\n  .btn--icon.btn--deep-purple .ripple {\\n    background-color: #673AB7; }\\n\\n.btn--flat.btn--indigo,\\n.btn--icon.btn--indigo {\\n  color: #3F51B5; }\\n  .btn--flat.btn--indigo .ripple,\\n  .btn--icon.btn--indigo .ripple {\\n    background-color: #3F51B5; }\\n\\n.btn--flat.btn--blue,\\n.btn--icon.btn--blue {\\n  color: #2196F3; }\\n  .btn--flat.btn--blue .ripple,\\n  .btn--icon.btn--blue .ripple {\\n    background-color: #2196F3; }\\n\\n.btn--flat.btn--light-blue,\\n.btn--icon.btn--light-blue {\\n  color: #00BCD4; }\\n  .btn--flat.btn--light-blue .ripple,\\n  .btn--icon.btn--light-blue .ripple {\\n    background-color: #00BCD4; }\\n\\n.btn--flat.btn--teal,\\n.btn--icon.btn--teal {\\n  color: #009688; }\\n  .btn--flat.btn--teal .ripple,\\n  .btn--icon.btn--teal .ripple {\\n    background-color: #009688; }\\n\\n.btn--flat.btn--green,\\n.btn--icon.btn--green {\\n  color: #4CAF50; }\\n  .btn--flat.btn--green .ripple,\\n  .btn--icon.btn--green .ripple {\\n    background-color: #4CAF50; }\\n\\n.btn--flat.btn--light-green,\\n.btn--icon.btn--light-green {\\n  color: #8BC34A; }\\n  .btn--flat.btn--light-green .ripple,\\n  .btn--icon.btn--light-green .ripple {\\n    background-color: #8BC34A; }\\n\\n.btn--flat.btn--lime,\\n.btn--icon.btn--lime {\\n  color: #CDDC39; }\\n  .btn--flat.btn--lime .ripple,\\n  .btn--icon.btn--lime .ripple {\\n    background-color: #CDDC39; }\\n\\n.btn--flat.btn--yellow,\\n.btn--icon.btn--yellow {\\n  color: #FFEB3B; }\\n  .btn--flat.btn--yellow .ripple,\\n  .btn--icon.btn--yellow .ripple {\\n    background-color: #FFEB3B; }\\n\\n.btn--flat.btn--amber,\\n.btn--icon.btn--amber {\\n  color: #FFC107; }\\n  .btn--flat.btn--amber .ripple,\\n  .btn--icon.btn--amber .ripple {\\n    background-color: #FFC107; }\\n\\n.btn--flat.btn--orange,\\n.btn--icon.btn--orange {\\n  color: #FF9800; }\\n  .btn--flat.btn--orange .ripple,\\n  .btn--icon.btn--orange .ripple {\\n    background-color: #FF9800; }\\n\\n.btn--flat.btn--deep-orange,\\n.btn--icon.btn--deep-orange {\\n  color: #FF5722; }\\n  .btn--flat.btn--deep-orange .ripple,\\n  .btn--icon.btn--deep-orange .ripple {\\n    background-color: #FF5722; }\\n\\n.btn--flat.btn--brown,\\n.btn--icon.btn--brown {\\n  color: #795548; }\\n  .btn--flat.btn--brown .ripple,\\n  .btn--icon.btn--brown .ripple {\\n    background-color: #795548; }\\n\\n.btn--flat.btn--grey,\\n.btn--icon.btn--grey {\\n  color: #9E9E9E; }\\n  .btn--flat.btn--grey .ripple,\\n  .btn--icon.btn--grey .ripple {\\n    background-color: #9E9E9E; }\\n\\n.btn--flat.btn--blue-grey,\\n.btn--icon.btn--blue-grey {\\n  color: #607D8B; }\\n  .btn--flat.btn--blue-grey .ripple,\\n  .btn--icon.btn--blue-grey .ripple {\\n    background-color: #607D8B; }\\n\\n.btn--flat.btn--black,\\n.btn--icon.btn--black {\\n  color: #000000; }\\n  .btn--flat.btn--black .ripple,\\n  .btn--icon.btn--black .ripple {\\n    background-color: #000000; }\\n\\n.btn--flat.btn--white,\\n.btn--icon.btn--white {\\n  color: #FFFFFF; }\\n  .btn--flat.btn--white .ripple,\\n  .btn--icon.btn--white .ripple {\\n    background-color: #FFFFFF; }\\n\\n.btn--raised,\\n.btn--fab {\\n  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);\\n  -webkit-transition-property: box-shadow;\\n  -moz-transition-property: box-shadow;\\n  transition-property: box-shadow;\\n  -webkit-transition-duration: 0.2s;\\n  -moz-transition-duration: 0.2s;\\n  transition-duration: 0.2s; }\\n  .btn--raised:hover,\\n  .btn--fab:hover {\\n    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4); }\\n\\n.btn--raised.btn--red,\\n.btn--fab.btn--red {\\n  color: #FFFFFF;\\n  background-color: #F44336; }\\n  .btn--raised.btn--red .ripple,\\n  .btn--fab.btn--red .ripple {\\n    background-color: #290502; }\\n\\n.btn--raised.btn--pink,\\n.btn--fab.btn--pink {\\n  color: #FFFFFF;\\n  background-color: #E91E63; }\\n  .btn--raised.btn--pink .ripple,\\n  .btn--fab.btn--pink .ripple {\\n    background-color: #070103; }\\n\\n.btn--raised.btn--purple,\\n.btn--fab.btn--purple {\\n  color: #FFFFFF;\\n  background-color: #9C27B0; }\\n  .btn--raised.btn--purple .ripple,\\n  .btn--fab.btn--purple .ripple {\\n    background-color: black; }\\n\\n.btn--raised.btn--deep-purple,\\n.btn--fab.btn--deep-purple {\\n  color: #FFFFFF;\\n  background-color: #673AB7; }\\n  .btn--raised.btn--deep-purple .ripple,\\n  .btn--fab.btn--deep-purple .ripple {\\n    background-color: black; }\\n\\n.btn--raised.btn--indigo,\\n.btn--fab.btn--indigo {\\n  color: #FFFFFF;\\n  background-color: #3F51B5; }\\n  .btn--raised.btn--indigo .ripple,\\n  .btn--fab.btn--indigo .ripple {\\n    background-color: black; }\\n\\n.btn--raised.btn--blue,\\n.btn--fab.btn--blue {\\n  color: #FFFFFF;\\n  background-color: #2196F3; }\\n  .btn--raised.btn--blue .ripple,\\n  .btn--fab.btn--blue .ripple {\\n    background-color: #010c14; }\\n\\n.btn--raised.btn--light-blue,\\n.btn--fab.btn--light-blue {\\n  color: #FFFFFF;\\n  background-color: #00BCD4; }\\n  .btn--raised.btn--light-blue .ripple,\\n  .btn--fab.btn--light-blue .ripple {\\n    background-color: black; }\\n\\n.btn--raised.btn--teal,\\n.btn--fab.btn--teal {\\n  color: #FFFFFF;\\n  background-color: #009688; }\\n  .btn--raised.btn--teal .ripple,\\n  .btn--fab.btn--teal .ripple {\\n    background-color: black; }\\n\\n.btn--raised.btn--green,\\n.btn--fab.btn--green {\\n  color: #FFFFFF;\\n  background-color: #4CAF50; }\\n  .btn--raised.btn--green .ripple,\\n  .btn--fab.btn--green .ripple {\\n    background-color: black; }\\n\\n.btn--raised.btn--light-green,\\n.btn--fab.btn--light-green {\\n  color: #FFFFFF;\\n  background-color: #8BC34A; }\\n  .btn--raised.btn--light-green .ripple,\\n  .btn--fab.btn--light-green .ripple {\\n    background-color: #070b03; }\\n\\n.btn--raised.btn--lime,\\n.btn--fab.btn--lime {\\n  color: #FFFFFF;\\n  background-color: #CDDC39; }\\n  .btn--raised.btn--lime .ripple,\\n  .btn--fab.btn--lime .ripple {\\n    background-color: #111303; }\\n\\n.btn--raised.btn--yellow,\\n.btn--fab.btn--yellow {\\n  color: #FFFFFF;\\n  background-color: #FFEB3B; }\\n  .btn--raised.btn--yellow .ripple,\\n  .btn--fab.btn--yellow .ripple {\\n    background-color: #3b3500; }\\n\\n.btn--raised.btn--amber,\\n.btn--fab.btn--amber {\\n  color: #FFFFFF;\\n  background-color: #FFC107; }\\n  .btn--raised.btn--amber .ripple,\\n  .btn--fab.btn--amber .ripple {\\n    background-color: #070500; }\\n\\n.btn--raised.btn--orange,\\n.btn--fab.btn--orange {\\n  color: #FFFFFF;\\n  background-color: #FF9800; }\\n  .btn--raised.btn--orange .ripple,\\n  .btn--fab.btn--orange .ripple {\\n    background-color: black; }\\n\\n.btn--raised.btn--deep-orange,\\n.btn--fab.btn--deep-orange {\\n  color: #FFFFFF;\\n  background-color: #FF5722; }\\n  .btn--raised.btn--deep-orange .ripple,\\n  .btn--fab.btn--deep-orange .ripple {\\n    background-color: #220800; }\\n\\n.btn--raised.btn--brown,\\n.btn--fab.btn--brown {\\n  color: #FFFFFF;\\n  background-color: #795548; }\\n  .btn--raised.btn--brown .ripple,\\n  .btn--fab.btn--brown .ripple {\\n    background-color: black; }\\n\\n.btn--raised.btn--grey,\\n.btn--fab.btn--grey {\\n  color: #FFFFFF;\\n  background-color: #9E9E9E; }\\n  .btn--raised.btn--grey .ripple,\\n  .btn--fab.btn--grey .ripple {\\n    background-color: #1f1f1f; }\\n\\n.btn--raised.btn--blue-grey,\\n.btn--fab.btn--blue-grey {\\n  color: #FFFFFF;\\n  background-color: #607D8B; }\\n  .btn--raised.btn--blue-grey .ripple,\\n  .btn--fab.btn--blue-grey .ripple {\\n    background-color: black; }\\n\\n.btn--raised.btn--black,\\n.btn--fab.btn--black {\\n  color: #FFFFFF;\\n  background-color: #000000; }\\n  .btn--raised.btn--black .ripple,\\n  .btn--fab.btn--black .ripple {\\n    background-color: black; }\\n\\n.btn--raised.btn--white,\\n.btn--fab.btn--white {\\n  color: rgba(0, 0, 0, 0.87);\\n  background-color: #FFFFFF; }\\n  .btn--raised.btn--white .ripple,\\n  .btn--fab.btn--white .ripple {\\n    background-color: gray; }\\n\\n.btn--icon,\\n.btn--fab {\\n  border-radius: 50%; }\\n\\n.btn--icon.btn--xs,\\n.btn--fab.btn--xs {\\n  height: 24px;\\n  width: 24px;\\n  padding: 0; }\\n  .btn--icon.btn--xs .mdi,\\n  .btn--fab.btn--xs .mdi {\\n    vertical-align: top;\\n    line-height: 24px; }\\n\\n.btn--icon.btn--xs {\\n  font-size: 13px;\\n  font-size: 0.8125rem; }\\n\\n.btn--fab.btn--xs {\\n  font-size: 15px;\\n  font-size: 0.9375rem; }\\n\\n.btn--icon.btn--s,\\n.btn--fab.btn--s {\\n  height: 30px;\\n  width: 30px;\\n  padding: 0; }\\n  .btn--icon.btn--s .mdi,\\n  .btn--fab.btn--s .mdi {\\n    vertical-align: top;\\n    line-height: 30px; }\\n\\n.btn--icon.btn--s {\\n  font-size: 15px;\\n  font-size: 0.9375rem; }\\n\\n.btn--fab.btn--s {\\n  font-size: 15px;\\n  font-size: 0.9375rem; }\\n\\n.btn--icon.btn--m,\\n.btn--fab.btn--m {\\n  height: 36px;\\n  width: 36px;\\n  padding: 0; }\\n  .btn--icon.btn--m .mdi,\\n  .btn--fab.btn--m .mdi {\\n    vertical-align: top;\\n    line-height: 36px; }\\n\\n.btn--icon.btn--m {\\n  font-size: 20px;\\n  font-size: 1.25rem; }\\n\\n.btn--fab.btn--m {\\n  font-size: 17px;\\n  font-size: 1.0625rem; }\\n\\n.btn--icon.btn--l,\\n.btn--fab.btn--l {\\n  height: 40px;\\n  width: 40px;\\n  padding: 0; }\\n  .btn--icon.btn--l .mdi,\\n  .btn--fab.btn--l .mdi {\\n    vertical-align: top;\\n    line-height: 40px; }\\n\\n.btn--icon.btn--l {\\n  font-size: 24px;\\n  font-size: 1.5rem; }\\n\\n.btn--fab.btn--l {\\n  font-size: 18px;\\n  font-size: 1.125rem; }\\n\\n.btn--icon.btn--xl,\\n.btn--fab.btn--xl {\\n  height: 56px;\\n  width: 56px;\\n  padding: 0; }\\n  .btn--icon.btn--xl .mdi,\\n  .btn--fab.btn--xl .mdi {\\n    vertical-align: top;\\n    line-height: 56px; }\\n\\n.btn--icon.btn--xl {\\n  font-size: 28px;\\n  font-size: 1.75rem; }\\n\\n.btn--fab.btn--xl {\\n  font-size: 20px;\\n  font-size: 1.25rem; }\\n\\n.card {\\n  border-radius: 2px;\\n  background-color: #FFFFFF;\\n  overflow: hidden;\\n  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); }\\n\\n.card__img--top {\\n  position: relative; }\\n  .card__img--top span, .card__img--top strong,\\n  .card__img--top h1, .card__img--top h2, .card__img--top h3, .card__img--top h4, .card__img--top h5, .card__img--top h6 {\\n    position: absolute;\\n    right: 16px;\\n    bottom: 16px;\\n    left: 16px; }\\n\\n.card__img--left img {\\n  max-height: 100%; }\\n\\n.card__actions {\\n  padding: 8px;\\n  border-top: 1px solid rgba(0, 0, 0, 0.12); }\\n\\n.checkbox__input:not(:checked) + .checkbox__label:before {\\n  -webkit-transform: scale(1);\\n  -moz-transform: scale(1);\\n  -ms-transform: scale(1);\\n  -o-transform: scale(1);\\n  transform: scale(1); }\\n\\n.checkbox__input:not(:checked) + .checkbox__label:after {\\n  -webkit-transform: scale(0);\\n  -moz-transform: scale(0);\\n  -ms-transform: scale(0);\\n  -o-transform: scale(0);\\n  transform: scale(0); }\\n\\n.checkbox__input:checked + .checkbox__label:before {\\n  -webkit-transform: scale(0);\\n  -moz-transform: scale(0);\\n  -ms-transform: scale(0);\\n  -o-transform: scale(0);\\n  transform: scale(0); }\\n\\n.checkbox__input:checked + .checkbox__label:after {\\n  -webkit-transform: scale(1);\\n  -moz-transform: scale(1);\\n  -ms-transform: scale(1);\\n  -o-transform: scale(1);\\n  transform: scale(1); }\\n\\n.checkbox__input[disabled] + .checkbox__label {\\n  cursor: not-allowed; }\\n  .checkbox__input[disabled] + .checkbox__label:before, .checkbox__input[disabled] + .checkbox__label:after {\\n    color: rgba(0, 0, 0, 0.26); }\\n\\n.checkbox__label {\\n  display: block;\\n  position: relative;\\n  padding-left: 32px;\\n  font-weight: 400;\\n  line-height: 24px;\\n  cursor: pointer;\\n  -webkit-user-select: none;\\n  -moz-user-select: none;\\n  -ms-user-select: none;\\n  user-select: none; }\\n  .checkbox__label:before, .checkbox__label:after {\\n    font-family: MaterialDesignIcons;\\n    font-weight: 400;\\n    font-style: normal;\\n    speak: none;\\n    text-decoration: inherit;\\n    text-transform: none;\\n    text-rendering: optimizeLegibility;\\n    -webkit-font-smoothing: antialiased;\\n    -moz-osx-font-smoothing: grayscale;\\n    position: absolute;\\n    top: 0;\\n    left: 0;\\n    font-size: 24px;\\n    font-size: 1.5rem;\\n    line-height: 24px;\\n    -webkit-transition-property: -webkit-transform;\\n    -moz-transition-property: -moz-transform;\\n    transition-property: transform;\\n    -webkit-transition-duration: 0.2s;\\n    -moz-transition-duration: 0.2s;\\n    transition-duration: 0.2s; }\\n  .checkbox__label:before {\\n    content: '\\\\F1C5'; }\\n  .checkbox__label:after {\\n    content: '\\\\F1CA';\\n    color: #009688; }\\n\\n.checkbox__help {\\n  display: block;\\n  padding-left: 32px;\\n  color: rgba(0, 0, 0, 0.54);\\n  text-align: left; }\\n\\n.data-table-container {\\n  position: relative;\\n  width: 100%;\\n  overflow-x: auto;\\n  overflow-y: hidden;\\n  -webkit-overflow-scrolling: touch; }\\n\\n.data-table {\\n  width: 100%;\\n  margin: 0; }\\n  .data-table > thead > tr > th,\\n  .data-table > tbody > tr > td {\\n    height: 64px;\\n    padding: 8px 16px; }\\n  .data-table > thead > tr > th {\\n    font-weight: 400;\\n    text-align: left; }\\n\\n.data-table--has-primary > thead > tr > th:first-child,\\n.data-table--has-primary > tbody > tr > td:first-child {\\n  width: 104px;\\n  padding-left: 32px;\\n  padding-right: 32px; }\\n\\n.data-table--has-primary > tbody > tr > td:first-child img,\\n.data-table--has-primary > tbody > tr > td:first-child .thumbnail {\\n  border-radius: 50%;\\n  overflow: hidden; }\\n\\n.data-table--has-primary > thead > tr > th:nth-child(2),\\n.data-table--has-primary > tbody > tr > td:nth-child(2) {\\n  padding-left: 0; }\\n\\n.data-table--has-secondary > thead > tr > th:last-child,\\n.data-table--has-secondary > tbody > tr > td:last-child {\\n  padding: 0 8px;\\n  width: 56px; }\\n\\n.data-table__clickable-row {\\n  cursor: pointer; }\\n  .data-table__clickable-row:hover {\\n    background-color: #F5F5F5; }\\n\\n.lx-date-filter {\\n  position: fixed;\\n  top: 0;\\n  right: 0;\\n  bottom: 0;\\n  left: 0;\\n  z-index: 999;\\n  background-color: rgba(0, 0, 0, 0.6);\\n  opacity: 0;\\n  -webkit-transition-property: opacity;\\n  -moz-transition-property: opacity;\\n  transition-property: opacity;\\n  -webkit-transition-duration: 0.6s;\\n  -moz-transition-duration: 0.6s;\\n  transition-duration: 0.6s;\\n  -webkit-transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);\\n  -moz-transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);\\n  transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1); }\\n\\n.lx-date-filter--is-shown {\\n  opacity: 1; }\\n\\n.lx-date-input,\\n.lx-date-input input {\\n  cursor: pointer !important; }\\n\\n.lx-date-picker {\\n  display: none;\\n  position: fixed;\\n  top: 32px;\\n  left: 50%;\\n  z-index: 1000;\\n  width: 280px;\\n  margin-left: -140px;\\n  background-color: #FFFFFF;\\n  opacity: 0;\\n  box-shadow: 0 9px 18px rgba(0, 0, 0, 0.5);\\n  -webkit-transform: translateY(-50px);\\n  -moz-transform: translateY(-50px);\\n  -ms-transform: translateY(-50px);\\n  -o-transform: translateY(-50px);\\n  transform: translateY(-50px);\\n  -webkit-transition-property: opacity, -webkit-transform;\\n  -moz-transition-property: opacity, -moz-transform;\\n  transition-property: opacity, transform;\\n  -webkit-transition-duration: 0.6s;\\n  -moz-transition-duration: 0.6s;\\n  transition-duration: 0.6s;\\n  -webkit-transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);\\n  -moz-transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);\\n  transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1); }\\n\\n.lx-date-picker--is-shown {\\n  opacity: 1;\\n  -webkit-transform: translateY(0);\\n  -moz-transform: translateY(0);\\n  -ms-transform: translateY(0);\\n  -o-transform: translateY(0);\\n  transform: translateY(0); }\\n\\n.lx-date-picker__current-day-of-week {\\n  background-color: #00796B; }\\n  .lx-date-picker__current-day-of-week span {\\n    display: block;\\n    font-size: 14px;\\n    font-size: 0.875rem;\\n    color: #FFFFFF;\\n    line-height: 32px;\\n    text-align: center;\\n    text-transform: capitalize; }\\n\\n.lx-date-picker__current-date {\\n  padding: 8px 0;\\n  background-color: #009688; }\\n  .lx-date-picker__current-date span,\\n  .lx-date-picker__current-date strong,\\n  .lx-date-picker__current-date a {\\n    display: block;\\n    font-weight: 400;\\n    text-align: center; }\\n  .lx-date-picker__current-date span,\\n  .lx-date-picker__current-date a {\\n    font-size: 24px;\\n    font-size: 1.5rem;\\n    line-height: 32px; }\\n  .lx-date-picker__current-date span {\\n    text-transform: uppercase; }\\n  .lx-date-picker__current-date strong {\\n    font-size: 60px;\\n    font-size: 3.75rem;\\n    line-height: 1; }\\n  .lx-date-picker__current-date a {\\n    cursor: pointer;\\n    font-style: normal; }\\n\\n.lx-date-picker__nav {\\n  position: relative; }\\n  .lx-date-picker__nav span {\\n    display: block;\\n    font-size: 14px;\\n    font-size: 0.875rem;\\n    font-weight: 500;\\n    line-height: 40px;\\n    text-align: center;\\n    text-transform: capitalize; }\\n  .lx-date-picker__nav button {\\n    position: absolute !important;\\n    top: 8px; }\\n    .lx-date-picker__nav button:first-child {\\n      left: 16px; }\\n    .lx-date-picker__nav button:last-child {\\n      right: 16px; }\\n\\n.lx-date-picker__days-of-week {\\n  padding: 0 16px; }\\n  .lx-date-picker__days-of-week span {\\n    display: inline-block;\\n    vertical-align: top;\\n    width: 14.28571%;\\n    font-size: 12px;\\n    font-size: 0.75rem;\\n    font-weight: 400;\\n    color: rgba(0, 0, 0, 0.54);\\n    line-height: 24px;\\n    text-align: center;\\n    text-transform: uppercase; }\\n\\n.lx-date-picker__days {\\n  padding: 0 16px; }\\n\\n.lx-date-picker__day {\\n  display: inline-block;\\n  vertical-align: top;\\n  width: 14.28571%;\\n  padding: 4px 0; }\\n  .lx-date-picker__day a {\\n    display: block;\\n    height: 32px;\\n    width: 32px;\\n    margin: 0 auto;\\n    border-radius: 50%;\\n    font-size: 12px;\\n    font-size: 0.75rem;\\n    font-weight: 400;\\n    line-height: 32px;\\n    text-align: center; }\\n\\n.lx-date-picker__day--is-today a {\\n  font-weight: 500;\\n  color: #00796B; }\\n\\n.lx-date-picker__day a:hover,\\n.lx-date-picker__day--is-selected a {\\n  cursor: pointer;\\n  background-color: #009688;\\n  color: #FFFFFF; }\\n\\n.lx-date-picker__year-selector {\\n  position: relative;\\n  overflow-x: hidden;\\n  overflow-y: auto;\\n  -webkit-overflow-scrolling: touch; }\\n\\n.lx-date-picker__year {\\n  display: block;\\n  cursor: pointer; }\\n  .lx-date-picker__year span {\\n    display: block;\\n    height: 65px;\\n    width: 65px;\\n    margin: 0 auto;\\n    border-radius: 50%;\\n    font-size: 16px;\\n    font-size: 1rem;\\n    line-height: 65px;\\n    text-align: center; }\\n\\n.lx-date-picker__year:hover span {\\n  color: #00796B; }\\n\\n.lx-date-picker__year--is-active span {\\n  background-color: #009688;\\n  color: #FFFFFF !important; }\\n\\n.lx-date-picker__actions {\\n  padding: 8px;\\n  border-top: 1px solid rgba(0, 0, 0, 0.12);\\n  text-align: center; }\\n\\n.dialog-filter {\\n  position: fixed;\\n  top: 0;\\n  right: 0;\\n  bottom: 0;\\n  left: 0;\\n  z-index: 999;\\n  background-color: rgba(0, 0, 0, 0.6);\\n  opacity: 0;\\n  -webkit-transition-property: opacity;\\n  -moz-transition-property: opacity;\\n  transition-property: opacity;\\n  -webkit-transition-duration: 0.6s;\\n  -moz-transition-duration: 0.6s;\\n  transition-duration: 0.6s;\\n  -webkit-transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);\\n  -moz-transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);\\n  transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1); }\\n\\n.dialog-filter--is-shown {\\n  opacity: 1; }\\n\\n.dialog {\\n  display: none;\\n  position: fixed;\\n  top: 32px;\\n  left: 50%;\\n  z-index: 1000;\\n  background-color: #FFFFFF;\\n  opacity: 0;\\n  box-shadow: 0 9px 18px rgba(0, 0, 0, 0.5);\\n  -webkit-transform: translateY(-50px);\\n  -moz-transform: translateY(-50px);\\n  -ms-transform: translateY(-50px);\\n  -o-transform: translateY(-50px);\\n  transform: translateY(-50px);\\n  -webkit-transition-property: opacity, -webkit-transform;\\n  -moz-transition-property: opacity, -moz-transform;\\n  transition-property: opacity, transform;\\n  -webkit-transition-duration: 0.6s;\\n  -moz-transition-duration: 0.6s;\\n  transition-duration: 0.6s;\\n  -webkit-transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);\\n  -moz-transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);\\n  transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1); }\\n\\n.dialog--alert {\\n  width: 400px;\\n  margin-left: -200px; }\\n\\n@media screen and (min-width: 1024px) {\\n  .dialog--l {\\n    width: 800px;\\n    margin-left: -400px; } }\\n\\n@media screen and (max-width: 1023px) {\\n  .dialog--l {\\n    width: 80%;\\n    margin-left: -40%; } }\\n\\n.dialog--is-shown {\\n  opacity: 1;\\n  -webkit-transform: translateY(0);\\n  -moz-transform: translateY(0);\\n  -ms-transform: translateY(0);\\n  -o-transform: translateY(0);\\n  transform: translateY(0); }\\n\\n.dialog--is-fixed {\\n  bottom: 32px; }\\n  .dialog--is-fixed .dialog__header {\\n    position: absolute;\\n    top: 0;\\n    right: 0;\\n    left: 0; }\\n  .dialog--is-fixed .dialog__scrollable {\\n    position: absolute;\\n    right: 0;\\n    left: 0;\\n    overflow-x: hidden;\\n    overflow-y: auto; }\\n  .dialog--is-fixed .dialog__actions {\\n    position: absolute;\\n    right: 0;\\n    bottom: 0;\\n    left: 0;\\n    border-top: 1px solid rgba(0, 0, 0, 0.12); }\\n\\n.dialog__actions {\\n  padding: 8px 16px;\\n  text-align: right; }\\n\\n.dropdown {\\n  position: relative;\\n  display: inline-block;\\n  vertical-align: top; }\\n\\n.dropdown-menu {\\n  position: absolute;\\n  z-index: 1000;\\n  border-radius: 2px;\\n  background-color: #FFFFFF;\\n  text-align: left;\\n  opacity: 0;\\n  overflow: hidden;\\n  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); }\\n  .dropdown-menu ul > li {\\n    position: relative; }\\n\\n.dropdown__menu--is-dropped .dropdown-menu__content {\\n  opacity: 1; }\\n\\n.dropdown-menu__content {\\n  padding: 8px 0;\\n  opacity: 0;\\n  -webkit-transition-property: opacity;\\n  -moz-transition-property: opacity;\\n  transition-property: opacity;\\n  -webkit-transition-duration: 0.2s;\\n  -moz-transition-duration: 0.2s;\\n  transition-duration: 0.2s; }\\n\\n.dropdown-divider {\\n  height: 1px;\\n  margin-top: 8px;\\n  margin-bottom: 8px;\\n  background-color: rgba(0, 0, 0, 0.12); }\\n\\n.dropdown-link {\\n  display: block;\\n  height: 32px;\\n  padding: 0 16px;\\n  cursor: pointer;\\n  font-size: 14px;\\n  font-size: 0.875rem;\\n  color: rgba(0, 0, 0, 0.87);\\n  line-height: 32px;\\n  text-decoration: none;\\n  white-space: nowrap; }\\n  .dropdown-link:not(.dropdown-link--is-header):hover {\\n    background-color: #EEEEEE; }\\n\\n.dropdown-link--is-header {\\n  color: rgba(0, 0, 0, 0.26);\\n  cursor: default; }\\n\\n.fab {\\n  display: inline-block;\\n  vertical-align: top;\\n  position: relative; }\\n  .fab:hover .fab__primary .mdi:first-child {\\n    -webkit-transform: scale(0);\\n    -moz-transform: scale(0);\\n    -ms-transform: scale(0);\\n    -o-transform: scale(0);\\n    transform: scale(0); }\\n  .fab:hover .fab__primary .mdi:last-child {\\n    -webkit-transform: scale(1);\\n    -moz-transform: scale(1);\\n    -ms-transform: scale(1);\\n    -o-transform: scale(1);\\n    transform: scale(1); }\\n  .fab:hover .fab__actions {\\n    pointer-events: auto; }\\n    .fab:hover .fab__actions .btn {\\n      -webkit-transform: scale(1);\\n      -moz-transform: scale(1);\\n      -ms-transform: scale(1);\\n      -o-transform: scale(1);\\n      transform: scale(1); }\\n\\n.fab__primary .mdi {\\n  position: absolute;\\n  top: 0;\\n  right: 0;\\n  bottom: 0;\\n  left: 0;\\n  -webkit-transition-property: -webkit-transform;\\n  -moz-transition-property: -moz-transform;\\n  transition-property: transform;\\n  -webkit-transition-duration: 0.2s;\\n  -moz-transition-duration: 0.2s;\\n  transition-duration: 0.2s; }\\n  .fab__primary .mdi:last-child {\\n    -webkit-transform: scale(0);\\n    -moz-transform: scale(0);\\n    -ms-transform: scale(0);\\n    -o-transform: scale(0);\\n    transform: scale(0); }\\n\\n.fab__actions {\\n  z-index: 999;\\n  pointer-events: none; }\\n  .fab__actions .btn {\\n    display: block;\\n    -webkit-transform: scale(0);\\n    -moz-transform: scale(0);\\n    -ms-transform: scale(0);\\n    -o-transform: scale(0);\\n    transform: scale(0);\\n    -webkit-transition-property: -webkit-transform;\\n    -moz-transition-property: -moz-transform;\\n    transition-property: transform;\\n    -webkit-transition-duration: 0.2s;\\n    -moz-transition-duration: 0.2s;\\n    transition-duration: 0.2s; }\\n\\n.fab__actions--up .btn:nth-child(1),\\n.fab__actions--left .btn:nth-child(1) {\\n  -webkit-transition-delay: 0.2s;\\n  -moz-transition-delay: 0.2s;\\n  transition-delay: 0.2s; }\\n\\n.fab__actions--up .btn:nth-child(2),\\n.fab__actions--left .btn:nth-child(2) {\\n  -webkit-transition-delay: 0.1s;\\n  -moz-transition-delay: 0.1s;\\n  transition-delay: 0.1s; }\\n\\n.fab__actions--up .btn:nth-child(3),\\n.fab__actions--left .btn:nth-child(3) {\\n  -webkit-transition-delay: 0.06667s;\\n  -moz-transition-delay: 0.06667s;\\n  transition-delay: 0.06667s; }\\n\\n.fab__actions--up .btn:nth-child(4),\\n.fab__actions--left .btn:nth-child(4) {\\n  -webkit-transition-delay: 0.05s;\\n  -moz-transition-delay: 0.05s;\\n  transition-delay: 0.05s; }\\n\\n.fab__actions--up .btn:nth-child(5),\\n.fab__actions--left .btn:nth-child(5) {\\n  -webkit-transition-delay: 0.04s;\\n  -moz-transition-delay: 0.04s;\\n  transition-delay: 0.04s; }\\n\\n.fab__actions--up .btn:nth-child(6),\\n.fab__actions--left .btn:nth-child(6) {\\n  -webkit-transition-delay: 0.03333s;\\n  -moz-transition-delay: 0.03333s;\\n  transition-delay: 0.03333s; }\\n\\n.fab__actions--up .btn:nth-child(7),\\n.fab__actions--left .btn:nth-child(7) {\\n  -webkit-transition-delay: 0.02857s;\\n  -moz-transition-delay: 0.02857s;\\n  transition-delay: 0.02857s; }\\n\\n.fab__actions--up .btn:nth-child(8),\\n.fab__actions--left .btn:nth-child(8) {\\n  -webkit-transition-delay: 0.025s;\\n  -moz-transition-delay: 0.025s;\\n  transition-delay: 0.025s; }\\n\\n.fab__actions--up .btn:nth-child(9),\\n.fab__actions--left .btn:nth-child(9) {\\n  -webkit-transition-delay: 0.02222s;\\n  -moz-transition-delay: 0.02222s;\\n  transition-delay: 0.02222s; }\\n\\n.fab__actions--up .btn:nth-child(10),\\n.fab__actions--left .btn:nth-child(10) {\\n  -webkit-transition-delay: 0.02s;\\n  -moz-transition-delay: 0.02s;\\n  transition-delay: 0.02s; }\\n\\n.fab__actions--down .btn:nth-child(1),\\n.fab__actions--right .btn:nth-child(1) {\\n  -webkit-transition-delay: 0.05s;\\n  -moz-transition-delay: 0.05s;\\n  transition-delay: 0.05s; }\\n\\n.fab__actions--down .btn:nth-child(2),\\n.fab__actions--right .btn:nth-child(2) {\\n  -webkit-transition-delay: 0.1s;\\n  -moz-transition-delay: 0.1s;\\n  transition-delay: 0.1s; }\\n\\n.fab__actions--down .btn:nth-child(3),\\n.fab__actions--right .btn:nth-child(3) {\\n  -webkit-transition-delay: 0.15s;\\n  -moz-transition-delay: 0.15s;\\n  transition-delay: 0.15s; }\\n\\n.fab__actions--down .btn:nth-child(4),\\n.fab__actions--right .btn:nth-child(4) {\\n  -webkit-transition-delay: 0.2s;\\n  -moz-transition-delay: 0.2s;\\n  transition-delay: 0.2s; }\\n\\n.fab__actions--down .btn:nth-child(5),\\n.fab__actions--right .btn:nth-child(5) {\\n  -webkit-transition-delay: 0.25s;\\n  -moz-transition-delay: 0.25s;\\n  transition-delay: 0.25s; }\\n\\n.fab__actions--down .btn:nth-child(6),\\n.fab__actions--right .btn:nth-child(6) {\\n  -webkit-transition-delay: 0.3s;\\n  -moz-transition-delay: 0.3s;\\n  transition-delay: 0.3s; }\\n\\n.fab__actions--down .btn:nth-child(7),\\n.fab__actions--right .btn:nth-child(7) {\\n  -webkit-transition-delay: 0.35s;\\n  -moz-transition-delay: 0.35s;\\n  transition-delay: 0.35s; }\\n\\n.fab__actions--down .btn:nth-child(8),\\n.fab__actions--right .btn:nth-child(8) {\\n  -webkit-transition-delay: 0.4s;\\n  -moz-transition-delay: 0.4s;\\n  transition-delay: 0.4s; }\\n\\n.fab__actions--down .btn:nth-child(9),\\n.fab__actions--right .btn:nth-child(9) {\\n  -webkit-transition-delay: 0.45s;\\n  -moz-transition-delay: 0.45s;\\n  transition-delay: 0.45s; }\\n\\n.fab__actions--down .btn:nth-child(10),\\n.fab__actions--right .btn:nth-child(10) {\\n  -webkit-transition-delay: 0.5s;\\n  -moz-transition-delay: 0.5s;\\n  transition-delay: 0.5s; }\\n\\n.fab__actions--left,\\n.fab__actions--right {\\n  white-space: nowrap; }\\n  .fab__actions--left .btn,\\n  .fab__actions--right .btn {\\n    display: inline-block; }\\n\\n.fab__actions--up {\\n  position: absolute;\\n  bottom: 56px;\\n  left: 7px; }\\n  .fab__actions--up .btn {\\n    margin-bottom: 8px; }\\n\\n.fab__actions--down {\\n  position: absolute;\\n  top: 56px;\\n  left: 7px; }\\n  .fab__actions--down .btn {\\n    margin-top: 8px; }\\n\\n.fab__actions--left {\\n  position: absolute;\\n  right: 56px;\\n  bottom: 7px; }\\n  .fab__actions--left .btn {\\n    margin-right: 8px; }\\n\\n.fab__actions--right {\\n  position: absolute;\\n  bottom: 7px;\\n  left: 56px; }\\n  .fab__actions--right .btn {\\n    margin-left: 8px; }\\n\\n.input-file {\\n  position: relative;\\n  padding-top: 32px;\\n  padding-bottom: 8px; }\\n  .input-file:before, .input-file:after {\\n    content: ''; }\\n  .input-file:before {\\n    position: absolute;\\n    right: 0;\\n    bottom: 7px;\\n    left: 0;\\n    height: 1px;\\n    border-bottom: 1px solid rgba(0, 0, 0, 0.12); }\\n  .input-file:after {\\n    position: absolute;\\n    right: 0;\\n    bottom: 6px;\\n    left: 0;\\n    height: 2px;\\n    background-color: #2196F3;\\n    -webkit-transform: scale(0);\\n    -moz-transform: scale(0);\\n    -ms-transform: scale(0);\\n    -o-transform: scale(0);\\n    transform: scale(0);\\n    -webkit-transition-property: -webkit-transform;\\n    -moz-transition-property: -moz-transform;\\n    transition-property: transform;\\n    -webkit-transition-duration: 0.6s;\\n    -moz-transition-duration: 0.6s;\\n    transition-duration: 0.6s;\\n    -webkit-transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);\\n    -moz-transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);\\n    transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1); }\\n\\n.input-file--is-active .input-file__label {\\n  -webkit-transform: scale(0.75) translateY(0);\\n  -moz-transform: scale(0.75) translateY(0);\\n  -ms-transform: scale(0.75) translateY(0);\\n  -o-transform: scale(0.75) translateY(0);\\n  transform: scale(0.75) translateY(0); }\\n\\n.input-file--is-active .input-file__filename {\\n  opacity: 1; }\\n\\n.input-file--is-focused:after {\\n  -webkit-transform: scale(1);\\n  -moz-transform: scale(1);\\n  -ms-transform: scale(1);\\n  -o-transform: scale(1);\\n  transform: scale(1); }\\n\\n.input-file--is-focused .input-file__label {\\n  color: #2196F3; }\\n\\n.input-file__label {\\n  display: block;\\n  position: absolute;\\n  top: 8px;\\n  left: 0;\\n  color: rgba(0, 0, 0, 0.26);\\n  line-height: 32px;\\n  pointer-events: none;\\n  -webkit-transform: translateY(24px);\\n  -moz-transform: translateY(24px);\\n  -ms-transform: translateY(24px);\\n  -o-transform: translateY(24px);\\n  transform: translateY(24px);\\n  -webkit-transform-origin: bottom left;\\n  -moz-transform-origin: bottom left;\\n  -ms-transform-origin: bottom left;\\n  -o-transform-origin: bottom left;\\n  transform-origin: bottom left;\\n  -webkit-transition-property: -webkit-transform, color;\\n  -moz-transition-property: -moz-transform, color;\\n  transition-property: transform, color;\\n  -webkit-transition-duration: 0.4s;\\n  -moz-transition-duration: 0.4s;\\n  transition-duration: 0.4s;\\n  -webkit-transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);\\n  -moz-transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);\\n  transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1); }\\n\\n.input-file__filename {\\n  display: block;\\n  height: 32px;\\n  width: 100%;\\n  overflow: hidden;\\n  opacity: 0;\\n  line-height: 32px;\\n  text-overflow: ellipsis;\\n  white-space: nowrap; }\\n\\n.input-file__input {\\n  position: absolute;\\n  top: 32px;\\n  left: 0;\\n  height: 32px;\\n  width: 100%;\\n  opacity: 0;\\n  cursor: pointer; }\\n\\n@media screen and (min-width: 1024px) {\\n  [flex-container] {\\n    display: -webkit-box;\\n    display: -moz-box;\\n    display: box;\\n    display: -webkit-flex;\\n    display: -moz-flex;\\n    display: -ms-flexbox;\\n    display: flex; } }\\n\\n@media screen and (min-width: 1024px) {\\n  [flex-container=\\\"row\\\"] {\\n    -webkit-box-orient: horizontal;\\n    -moz-box-orient: horizontal;\\n    box-orient: horizontal;\\n    -webkit-box-direction: normal;\\n    -moz-box-direction: normal;\\n    box-direction: normal;\\n    -webkit-flex-direction: row;\\n    -moz-flex-direction: row;\\n    flex-direction: row;\\n    -ms-flex-direction: row; } }\\n\\n@media screen and (min-width: 1024px) {\\n  [flex-container=\\\"column\\\"] {\\n    -webkit-box-orient: vertical;\\n    -moz-box-orient: vertical;\\n    box-orient: vertical;\\n    -webkit-box-direction: normal;\\n    -moz-box-direction: normal;\\n    box-direction: normal;\\n    -webkit-flex-direction: column;\\n    -moz-flex-direction: column;\\n    flex-direction: column;\\n    -ms-flex-direction: column; } }\\n\\n@media screen and (min-width: 1024px) {\\n  [flex-align=\\\"center\\\"],\\n  [flex-align=\\\"center center\\\"],\\n  [flex-align=\\\"center start\\\"],\\n  [flex-align=\\\"center end\\\"] {\\n    -webkit-box-pack: center;\\n    -moz-box-pack: center;\\n    box-pack: center;\\n    -webkit-justify-content: center;\\n    -moz-justify-content: center;\\n    -ms-justify-content: center;\\n    -o-justify-content: center;\\n    justify-content: center;\\n    -ms-flex-pack: center; } }\\n\\n@media screen and (min-width: 1024px) {\\n  [flex-align=\\\"end\\\"],\\n  [flex-align=\\\"end center\\\"],\\n  [flex-align=\\\"end start\\\"],\\n  [flex-align=\\\"end end\\\"] {\\n    -webkit-box-pack: end;\\n    -moz-box-pack: end;\\n    box-pack: end;\\n    -webkit-justify-content: flex-end;\\n    -moz-justify-content: flex-end;\\n    -ms-justify-content: flex-end;\\n    -o-justify-content: flex-end;\\n    justify-content: flex-end;\\n    -ms-flex-pack: end; } }\\n\\n@media screen and (min-width: 1024px) {\\n  [flex-align=\\\"space-around\\\"],\\n  [flex-align=\\\"space-around center\\\"],\\n  [flex-align=\\\"space-around start\\\"],\\n  [flex-align=\\\"space-around end\\\"] {\\n    -webkit-box-pack: distribute;\\n    -moz-box-pack: distribute;\\n    box-pack: distribute;\\n    -webkit-justify-content: space-around;\\n    -moz-justify-content: space-around;\\n    -ms-justify-content: space-around;\\n    -o-justify-content: space-around;\\n    justify-content: space-around;\\n    -ms-flex-pack: distribute; } }\\n\\n@media screen and (min-width: 1024px) {\\n  [flex-align=\\\"space-between\\\"],\\n  [flex-align=\\\"space-between center\\\"],\\n  [flex-align=\\\"space-between start\\\"],\\n  [flex-align=\\\"space-between end\\\"] {\\n    -webkit-box-pack: justify;\\n    -moz-box-pack: justify;\\n    box-pack: justify;\\n    -webkit-justify-content: space-between;\\n    -moz-justify-content: space-between;\\n    -ms-justify-content: space-between;\\n    -o-justify-content: space-between;\\n    justify-content: space-between;\\n    -ms-flex-pack: justify; } }\\n\\n@media screen and (min-width: 1024px) {\\n  [flex-align=\\\"center center\\\"],\\n  [flex-align=\\\"start center\\\"],\\n  [flex-align=\\\"end center\\\"],\\n  [flex-align=\\\"space-between center\\\"],\\n  [flex-align=\\\"space-around center\\\"] {\\n    -webkit-box-align: center;\\n    -moz-box-align: center;\\n    box-align: center;\\n    -webkit-align-items: center;\\n    -moz-align-items: center;\\n    -ms-align-items: center;\\n    -o-align-items: center;\\n    align-items: center;\\n    -ms-flex-align: center; } }\\n\\n@media screen and (min-width: 1024px) {\\n  [flex-align=\\\"center start\\\"],\\n  [flex-align=\\\"start start\\\"],\\n  [flex-align=\\\"end start\\\"],\\n  [flex-align=\\\"space-between start\\\"],\\n  [flex-align=\\\"space-around start\\\"] {\\n    -webkit-box-align: start;\\n    -moz-box-align: start;\\n    box-align: start;\\n    -webkit-align-items: flex-start;\\n    -moz-align-items: flex-start;\\n    -ms-align-items: flex-start;\\n    -o-align-items: flex-start;\\n    align-items: flex-start;\\n    -ms-flex-align: start; } }\\n\\n@media screen and (min-width: 1024px) {\\n  [flex-align=\\\"center end\\\"],\\n  [flex-align=\\\"start end\\\"],\\n  [flex-align=\\\"end end\\\"],\\n  [flex-align=\\\"space-between end\\\"],\\n  [flex-align=\\\"space-around end\\\"] {\\n    -webkit-box-align: end;\\n    -moz-box-align: end;\\n    box-align: end;\\n    -webkit-align-items: flex-end;\\n    -moz-align-items: flex-end;\\n    -ms-align-items: flex-end;\\n    -o-align-items: flex-end;\\n    align-items: flex-end;\\n    -ms-flex-align: end; } }\\n\\n@media screen and (min-width: 1024px) {\\n  [flex-gutter=\\\"8\\\"] {\\n    margin: 0 -4px; } }\\n\\n@media screen and (max-width: 1023px) {\\n  [flex-gutter=\\\"8\\\"] > [flex-item] {\\n    margin-bottom: 8px; } }\\n\\n@media screen and (min-width: 1024px) {\\n  [flex-gutter=\\\"8\\\"] > [flex-item] {\\n    padding: 0 4px; } }\\n\\n@media screen and (min-width: 1024px) {\\n  [flex-gutter=\\\"16\\\"] {\\n    margin: 0 -8px; } }\\n\\n@media screen and (max-width: 1023px) {\\n  [flex-gutter=\\\"16\\\"] > [flex-item] {\\n    margin-bottom: 16px; } }\\n\\n@media screen and (min-width: 1024px) {\\n  [flex-gutter=\\\"16\\\"] > [flex-item] {\\n    padding: 0 8px; } }\\n\\n@media screen and (min-width: 1024px) {\\n  [flex-gutter=\\\"24\\\"] {\\n    margin: 0 -12px; } }\\n\\n@media screen and (max-width: 1023px) {\\n  [flex-gutter=\\\"24\\\"] > [flex-item] {\\n    margin-bottom: 24px; } }\\n\\n@media screen and (min-width: 1024px) {\\n  [flex-gutter=\\\"24\\\"] > [flex-item] {\\n    padding: 0 12px; } }\\n\\n@media screen and (min-width: 1024px) {\\n  [flex-gutter=\\\"32\\\"] {\\n    margin: 0 -16px; } }\\n\\n@media screen and (max-width: 1023px) {\\n  [flex-gutter=\\\"32\\\"] > [flex-item] {\\n    margin-bottom: 32px; } }\\n\\n@media screen and (min-width: 1024px) {\\n  [flex-gutter=\\\"32\\\"] > [flex-item] {\\n    padding: 0 16px; } }\\n\\n@media screen and (min-width: 1024px) {\\n  [flex-item] {\\n    position: relative;\\n    -webkit-box-flex: 1;\\n    -moz-box-flex: 1;\\n    box-flex: 1;\\n    -webkit-flex: 1;\\n    -moz-flex: 1;\\n    -ms-flex: 1;\\n    flex: 1; } }\\n\\n@media screen and (min-width: 1024px) {\\n  [flex-container=\\\"row\\\"] > [flex-item=\\\"1\\\"] {\\n    flex: 0 0 8.33333%;\\n    max-width: 8.33333%; } }\\n\\n@media screen and (min-width: 1024px) {\\n  [flex-container=\\\"column\\\"] > [flex-item=\\\"1\\\"] {\\n    flex: 0 0 8.33333%;\\n    max-height: 8.33333%; } }\\n\\n@media screen and (min-width: 1024px) {\\n  [flex-container=\\\"row\\\"] > [flex-item=\\\"2\\\"] {\\n    flex: 0 0 16.66667%;\\n    max-width: 16.66667%; } }\\n\\n@media screen and (min-width: 1024px) {\\n  [flex-container=\\\"column\\\"] > [flex-item=\\\"2\\\"] {\\n    flex: 0 0 16.66667%;\\n    max-height: 16.66667%; } }\\n\\n@media screen and (min-width: 1024px) {\\n  [flex-container=\\\"row\\\"] > [flex-item=\\\"3\\\"] {\\n    flex: 0 0 25%;\\n    max-width: 25%; } }\\n\\n@media screen and (min-width: 1024px) {\\n  [flex-container=\\\"column\\\"] > [flex-item=\\\"3\\\"] {\\n    flex: 0 0 25%;\\n    max-height: 25%; } }\\n\\n@media screen and (min-width: 1024px) {\\n  [flex-container=\\\"row\\\"] > [flex-item=\\\"4\\\"] {\\n    flex: 0 0 33.33333%;\\n    max-width: 33.33333%; } }\\n\\n@media screen and (min-width: 1024px) {\\n  [flex-container=\\\"column\\\"] > [flex-item=\\\"4\\\"] {\\n    flex: 0 0 33.33333%;\\n    max-height: 33.33333%; } }\\n\\n@media screen and (min-width: 1024px) {\\n  [flex-container=\\\"row\\\"] > [flex-item=\\\"5\\\"] {\\n    flex: 0 0 41.66667%;\\n    max-width: 41.66667%; } }\\n\\n@media screen and (min-width: 1024px) {\\n  [flex-container=\\\"column\\\"] > [flex-item=\\\"5\\\"] {\\n    flex: 0 0 41.66667%;\\n    max-height: 41.66667%; } }\\n\\n@media screen and (min-width: 1024px) {\\n  [flex-container=\\\"row\\\"] > [flex-item=\\\"6\\\"] {\\n    flex: 0 0 50%;\\n    max-width: 50%; } }\\n\\n@media screen and (min-width: 1024px) {\\n  [flex-container=\\\"column\\\"] > [flex-item=\\\"6\\\"] {\\n    flex: 0 0 50%;\\n    max-height: 50%; } }\\n\\n@media screen and (min-width: 1024px) {\\n  [flex-container=\\\"row\\\"] > [flex-item=\\\"7\\\"] {\\n    flex: 0 0 58.33333%;\\n    max-width: 58.33333%; } }\\n\\n@media screen and (min-width: 1024px) {\\n  [flex-container=\\\"column\\\"] > [flex-item=\\\"7\\\"] {\\n    flex: 0 0 58.33333%;\\n    max-height: 58.33333%; } }\\n\\n@media screen and (min-width: 1024px) {\\n  [flex-container=\\\"row\\\"] > [flex-item=\\\"8\\\"] {\\n    flex: 0 0 66.66667%;\\n    max-width: 66.66667%; } }\\n\\n@media screen and (min-width: 1024px) {\\n  [flex-container=\\\"column\\\"] > [flex-item=\\\"8\\\"] {\\n    flex: 0 0 66.66667%;\\n    max-height: 66.66667%; } }\\n\\n@media screen and (min-width: 1024px) {\\n  [flex-container=\\\"row\\\"] > [flex-item=\\\"9\\\"] {\\n    flex: 0 0 75%;\\n    max-width: 75%; } }\\n\\n@media screen and (min-width: 1024px) {\\n  [flex-container=\\\"column\\\"] > [flex-item=\\\"9\\\"] {\\n    flex: 0 0 75%;\\n    max-height: 75%; } }\\n\\n@media screen and (min-width: 1024px) {\\n  [flex-container=\\\"row\\\"] > [flex-item=\\\"10\\\"] {\\n    flex: 0 0 83.33333%;\\n    max-width: 83.33333%; } }\\n\\n@media screen and (min-width: 1024px) {\\n  [flex-container=\\\"column\\\"] > [flex-item=\\\"10\\\"] {\\n    flex: 0 0 83.33333%;\\n    max-height: 83.33333%; } }\\n\\n@media screen and (min-width: 1024px) {\\n  [flex-container=\\\"row\\\"] > [flex-item=\\\"11\\\"] {\\n    flex: 0 0 91.66667%;\\n    max-width: 91.66667%; } }\\n\\n@media screen and (min-width: 1024px) {\\n  [flex-container=\\\"column\\\"] > [flex-item=\\\"11\\\"] {\\n    flex: 0 0 91.66667%;\\n    max-height: 91.66667%; } }\\n\\n@media screen and (min-width: 1024px) {\\n  [flex-container=\\\"row\\\"] > [flex-item=\\\"12\\\"] {\\n    flex: 0 0 100%;\\n    max-width: 100%; } }\\n\\n@media screen and (min-width: 1024px) {\\n  [flex-container=\\\"column\\\"] > [flex-item=\\\"12\\\"] {\\n    flex: 0 0 100%;\\n    max-height: 100%; } }\\n\\n@media screen and (min-width: 1024px) {\\n  [flex-item-align=\\\"center\\\"] {\\n    -webkit-align-self: center;\\n    -moz-align-self: center;\\n    align-self: center;\\n    -ms-flex-item-align: center; } }\\n\\n@media screen and (min-width: 1024px) {\\n  [flex-item-align=\\\"start\\\"] {\\n    -webkit-align-self: flex-start;\\n    -moz-align-self: flex-start;\\n    align-self: flex-start;\\n    -ms-flex-item-align: start; } }\\n\\n@media screen and (min-width: 1024px) {\\n  [flex-item-align=\\\"end\\\"] {\\n    -webkit-align-self: flex-end;\\n    -moz-align-self: flex-end;\\n    align-self: flex-end;\\n    -ms-flex-item-align: end; } }\\n\\n@media screen and (min-width: 1024px) {\\n  [flex-item-order=\\\"1\\\"] {\\n    -webkit-box-ordinal-group: 1;\\n    -moz-box-ordinal-group: 1;\\n    box-ordinal-group: 1;\\n    -webkit-order: 1;\\n    -moz-order: 1;\\n    order: 1;\\n    -ms-flex-order: 1; } }\\n\\n@media screen and (min-width: 1024px) {\\n  [flex-item-order=\\\"2\\\"] {\\n    -webkit-box-ordinal-group: 2;\\n    -moz-box-ordinal-group: 2;\\n    box-ordinal-group: 2;\\n    -webkit-order: 2;\\n    -moz-order: 2;\\n    order: 2;\\n    -ms-flex-order: 2; } }\\n\\n@media screen and (min-width: 1024px) {\\n  [flex-item-order=\\\"3\\\"] {\\n    -webkit-box-ordinal-group: 3;\\n    -moz-box-ordinal-group: 3;\\n    box-ordinal-group: 3;\\n    -webkit-order: 3;\\n    -moz-order: 3;\\n    order: 3;\\n    -ms-flex-order: 3; } }\\n\\n@media screen and (min-width: 1024px) {\\n  [flex-item-order=\\\"4\\\"] {\\n    -webkit-box-ordinal-group: 4;\\n    -moz-box-ordinal-group: 4;\\n    box-ordinal-group: 4;\\n    -webkit-order: 4;\\n    -moz-order: 4;\\n    order: 4;\\n    -ms-flex-order: 4; } }\\n\\n@media screen and (min-width: 1024px) {\\n  [flex-item-order=\\\"5\\\"] {\\n    -webkit-box-ordinal-group: 5;\\n    -moz-box-ordinal-group: 5;\\n    box-ordinal-group: 5;\\n    -webkit-order: 5;\\n    -moz-order: 5;\\n    order: 5;\\n    -ms-flex-order: 5; } }\\n\\n@media screen and (min-width: 1024px) {\\n  [flex-item-order=\\\"6\\\"] {\\n    -webkit-box-ordinal-group: 6;\\n    -moz-box-ordinal-group: 6;\\n    box-ordinal-group: 6;\\n    -webkit-order: 6;\\n    -moz-order: 6;\\n    order: 6;\\n    -ms-flex-order: 6; } }\\n\\n@media screen and (min-width: 1024px) {\\n  [flex-item-order=\\\"7\\\"] {\\n    -webkit-box-ordinal-group: 7;\\n    -moz-box-ordinal-group: 7;\\n    box-ordinal-group: 7;\\n    -webkit-order: 7;\\n    -moz-order: 7;\\n    order: 7;\\n    -ms-flex-order: 7; } }\\n\\n@media screen and (min-width: 1024px) {\\n  [flex-item-order=\\\"8\\\"] {\\n    -webkit-box-ordinal-group: 8;\\n    -moz-box-ordinal-group: 8;\\n    box-ordinal-group: 8;\\n    -webkit-order: 8;\\n    -moz-order: 8;\\n    order: 8;\\n    -ms-flex-order: 8; } }\\n\\n@media screen and (min-width: 1024px) {\\n  [flex-item-order=\\\"9\\\"] {\\n    -webkit-box-ordinal-group: 9;\\n    -moz-box-ordinal-group: 9;\\n    box-ordinal-group: 9;\\n    -webkit-order: 9;\\n    -moz-order: 9;\\n    order: 9;\\n    -ms-flex-order: 9; } }\\n\\n@media screen and (min-width: 1024px) {\\n  [flex-item-order=\\\"10\\\"] {\\n    -webkit-box-ordinal-group: 10;\\n    -moz-box-ordinal-group: 10;\\n    box-ordinal-group: 10;\\n    -webkit-order: 10;\\n    -moz-order: 10;\\n    order: 10;\\n    -ms-flex-order: 10; } }\\n\\n@media screen and (min-width: 1024px) {\\n  [flex-item-order=\\\"11\\\"] {\\n    -webkit-box-ordinal-group: 11;\\n    -moz-box-ordinal-group: 11;\\n    box-ordinal-group: 11;\\n    -webkit-order: 11;\\n    -moz-order: 11;\\n    order: 11;\\n    -ms-flex-order: 11; } }\\n\\n@media screen and (min-width: 1024px) {\\n  [flex-item-order=\\\"12\\\"] {\\n    -webkit-box-ordinal-group: 12;\\n    -moz-box-ordinal-group: 12;\\n    box-ordinal-group: 12;\\n    -webkit-order: 12;\\n    -moz-order: 12;\\n    order: 12;\\n    -ms-flex-order: 12; } }\\n\\n.icon {\\n  vertical-align: top;\\n  text-align: center; }\\n\\n.icon--s {\\n  height: 24px;\\n  width: 24px;\\n  line-height: 24px !important; }\\n  .icon--s.icon--circled {\\n    font-size: 10px;\\n    font-size: 0.625rem; }\\n  .icon--s.icon--flat {\\n    font-size: 18px;\\n    font-size: 1.125rem; }\\n\\n.icon--l {\\n  height: 40px;\\n  width: 40px;\\n  line-height: 40px !important; }\\n  .icon--l.icon--circled {\\n    font-size: 18px;\\n    font-size: 1.125rem; }\\n  .icon--l.icon--flat {\\n    font-size: 22px;\\n    font-size: 1.375rem; }\\n\\n.icon--circled.icon--red {\\n  color: #FFFFFF;\\n  background-color: #F44336; }\\n\\n.icon--flat.icon--red {\\n  color: #F44336; }\\n\\n.icon--circled.icon--pink {\\n  color: #FFFFFF;\\n  background-color: #E91E63; }\\n\\n.icon--flat.icon--pink {\\n  color: #E91E63; }\\n\\n.icon--circled.icon--purple {\\n  color: #FFFFFF;\\n  background-color: #9C27B0; }\\n\\n.icon--flat.icon--purple {\\n  color: #9C27B0; }\\n\\n.icon--circled.icon--deep-purple {\\n  color: #FFFFFF;\\n  background-color: #673AB7; }\\n\\n.icon--flat.icon--deep-purple {\\n  color: #673AB7; }\\n\\n.icon--circled.icon--indigo {\\n  color: #FFFFFF;\\n  background-color: #3F51B5; }\\n\\n.icon--flat.icon--indigo {\\n  color: #3F51B5; }\\n\\n.icon--circled.icon--blue {\\n  color: #FFFFFF;\\n  background-color: #2196F3; }\\n\\n.icon--flat.icon--blue {\\n  color: #2196F3; }\\n\\n.icon--circled.icon--light-blue {\\n  color: #FFFFFF;\\n  background-color: #00BCD4; }\\n\\n.icon--flat.icon--light-blue {\\n  color: #00BCD4; }\\n\\n.icon--circled.icon--teal {\\n  color: #FFFFFF;\\n  background-color: #009688; }\\n\\n.icon--flat.icon--teal {\\n  color: #009688; }\\n\\n.icon--circled.icon--green {\\n  color: #FFFFFF;\\n  background-color: #4CAF50; }\\n\\n.icon--flat.icon--green {\\n  color: #4CAF50; }\\n\\n.icon--circled.icon--light-green {\\n  color: #FFFFFF;\\n  background-color: #8BC34A; }\\n\\n.icon--flat.icon--light-green {\\n  color: #8BC34A; }\\n\\n.icon--circled.icon--lime {\\n  color: #FFFFFF;\\n  background-color: #CDDC39; }\\n\\n.icon--flat.icon--lime {\\n  color: #CDDC39; }\\n\\n.icon--circled.icon--yellow {\\n  color: #FFFFFF;\\n  background-color: #FFEB3B; }\\n\\n.icon--flat.icon--yellow {\\n  color: #FFEB3B; }\\n\\n.icon--circled.icon--amber {\\n  color: #FFFFFF;\\n  background-color: #FFC107; }\\n\\n.icon--flat.icon--amber {\\n  color: #FFC107; }\\n\\n.icon--circled.icon--orange {\\n  color: #FFFFFF;\\n  background-color: #FF9800; }\\n\\n.icon--flat.icon--orange {\\n  color: #FF9800; }\\n\\n.icon--circled.icon--deep-orange {\\n  color: #FFFFFF;\\n  background-color: #FF5722; }\\n\\n.icon--flat.icon--deep-orange {\\n  color: #FF5722; }\\n\\n.icon--circled.icon--brown {\\n  color: #FFFFFF;\\n  background-color: #795548; }\\n\\n.icon--flat.icon--brown {\\n  color: #795548; }\\n\\n.icon--circled.icon--grey {\\n  color: #FFFFFF;\\n  background-color: #9E9E9E; }\\n\\n.icon--flat.icon--grey {\\n  color: #9E9E9E; }\\n\\n.icon--circled.icon--blue-grey {\\n  color: #FFFFFF;\\n  background-color: #607D8B; }\\n\\n.icon--flat.icon--blue-grey {\\n  color: #607D8B; }\\n\\n.icon--circled.icon--black {\\n  color: #FFFFFF;\\n  background-color: #000000; }\\n\\n.icon--flat.icon--black {\\n  color: #000000; }\\n\\n.icon--circled.icon--white {\\n  color: #FFFFFF;\\n  background-color: #FFFFFF; }\\n\\n.icon--flat.icon--white {\\n  color: #FFFFFF; }\\n\\n.icon--circled {\\n  border-radius: 50%; }\\n\\n.list-row {\\n  position: relative;\\n  padding: 0 16px; }\\n\\n.list-row--has-primary > .list-content-tile {\\n  margin-left: 56px; }\\n\\n.list-row--has-secondary > .list-content-tile {\\n  margin-right: 32px; }\\n\\n.list-row--has-separator:after {\\n  content: '';\\n  position: absolute;\\n  right: 0;\\n  bottom: 0;\\n  left: 0;\\n  height: 1px;\\n  border-bottom: 1px solid rgba(0, 0, 0, 0.12); }\\n\\n.list-row--has-separator:last-child:after {\\n  border-bottom: none; }\\n\\n.list-row--has-primary.list-row--has-separator:after {\\n  left: 72px; }\\n\\n.list-row--is-clickable {\\n  cursor: pointer; }\\n\\n.list-row--is-clickable:hover,\\n.list-row--is-active {\\n  background-color: #F5F5F5; }\\n\\n.list-primary-tile {\\n  position: absolute;\\n  top: 50%;\\n  left: 16px;\\n  margin-top: -20px; }\\n\\n.list-primary-tile__img {\\n  height: 40px;\\n  width: 40px;\\n  border-radius: 50%; }\\n\\n.list-content-tile {\\n  padding: 16px 0; }\\n  .list-content-tile strong,\\n  .list-content-tile span {\\n    display: block; }\\n  .list-content-tile strong {\\n    font-weight: 400; }\\n  .list-content-tile span {\\n    font-size: 14px;\\n    font-size: 0.875rem;\\n    color: rgba(0, 0, 0, 0.54); }\\n\\n.list-content-tile--one-line strong {\\n  line-height: 1; }\\n\\n.list-row--has-primary > .list-content-tile--one-line strong {\\n  line-height: 24px; }\\n\\n.list-content-tile--two-lines strong,\\n.list-content-tile--two-lines span {\\n  line-height: 20px; }\\n\\n.list-secondary-tile {\\n  position: absolute;\\n  top: 50%;\\n  right: 16px;\\n  -webkit-transform: translateY(-50%);\\n  -moz-transform: translateY(-50%);\\n  -ms-transform: translateY(-50%);\\n  -o-transform: translateY(-50%);\\n  transform: translateY(-50%); }\\n\\n.list-divider {\\n  height: 1px;\\n  margin-top: 8px;\\n  margin-bottom: 8px;\\n  background-color: rgba(0, 0, 0, 0.12); }\\n\\n.list-divider--is-pushed {\\n  margin-left: 72px; }\\n\\n.list-subheader {\\n  padding: 16px;\\n  font-size: 14px;\\n  font-size: 0.875rem;\\n  font-weight: 500;\\n  color: rgba(0, 0, 0, 0.54);\\n  line-height: 16px; }\\n\\n.list-subheader--is-pushed {\\n  margin-left: 56px; }\\n\\n.notification {\\n  position: fixed;\\n  right: 24px;\\n  bottom: 24px;\\n  z-index: 1001;\\n  max-width: 300px;\\n  padding: 16px 24px;\\n  border-radius: 2px;\\n  background-color: #323232;\\n  cursor: pointer;\\n  -webkit-animation: jelly 1000ms linear both;\\n  -moz-animation: jelly 1000ms linear both;\\n  animation: jelly 1000ms linear both;\\n  -webkit-transition: margin-bottom 0.2s ease-in-out;\\n  -moz-transition: margin-bottom 0.2s ease-in-out;\\n  transition: margin-bottom 0.2s ease-in-out; }\\n\\n.notification__content {\\n  display: block;\\n  font-size: 14px;\\n  font-size: 0.875rem;\\n  color: #FFFFFF;\\n  line-height: 20px; }\\n\\n.notification--has-icon .notification__content {\\n  padding-left: 32px; }\\n\\n.notification__icon {\\n  position: absolute;\\n  top: 16px;\\n  left: 24px;\\n  font-size: 14px;\\n  font-size: 0.875rem;\\n  color: #FFFFFF;\\n  line-height: 20px !important; }\\n\\n.notification--red .notification__icon {\\n  color: #F44336; }\\n\\n.notification--pink .notification__icon {\\n  color: #E91E63; }\\n\\n.notification--purple .notification__icon {\\n  color: #9C27B0; }\\n\\n.notification--deep-purple .notification__icon {\\n  color: #673AB7; }\\n\\n.notification--indigo .notification__icon {\\n  color: #3F51B5; }\\n\\n.notification--blue .notification__icon {\\n  color: #2196F3; }\\n\\n.notification--light-blue .notification__icon {\\n  color: #00BCD4; }\\n\\n.notification--teal .notification__icon {\\n  color: #009688; }\\n\\n.notification--green .notification__icon {\\n  color: #4CAF50; }\\n\\n.notification--light-green .notification__icon {\\n  color: #8BC34A; }\\n\\n.notification--lime .notification__icon {\\n  color: #CDDC39; }\\n\\n.notification--yellow .notification__icon {\\n  color: #FFEB3B; }\\n\\n.notification--amber .notification__icon {\\n  color: #FFC107; }\\n\\n.notification--orange .notification__icon {\\n  color: #FF9800; }\\n\\n.notification--deep-orange .notification__icon {\\n  color: #FF5722; }\\n\\n.notification--brown .notification__icon {\\n  color: #795548; }\\n\\n.notification--grey .notification__icon {\\n  color: #9E9E9E; }\\n\\n.notification--blue-grey .notification__icon {\\n  color: #607D8B; }\\n\\n.notification--black .notification__icon {\\n  color: #000000; }\\n\\n.notification--white .notification__icon {\\n  color: #FFFFFF; }\\n\\n.progress-circular {\\n  position: absolute;\\n  top: 50%;\\n  left: 50%;\\n  z-index: 999;\\n  height: 100px;\\n  width: 100px;\\n  margin-top: -50px;\\n  margin-left: -50px; }\\n\\n.progress-circular--is-shown .progress-circular__path {\\n  stroke-width: 6; }\\n\\n.progress-circular__svg {\\n  position: relative;\\n  height: 100px;\\n  width: 100px;\\n  -webkit-animation: spin 2s linear infinite;\\n  -moz-animation: spin 2s linear infinite;\\n  animation: spin 2s linear infinite; }\\n\\n.progress-circular__path {\\n  stroke-width: 0;\\n  stroke-dasharray: 1,200;\\n  stroke-dashoffset: 0;\\n  stroke-linecap: round;\\n  -webkit-animation: circular 1.5s ease-in-out infinite;\\n  -moz-animation: circular 1.5s ease-in-out infinite;\\n  animation: circular 1.5s ease-in-out infinite;\\n  -webkit-transition-property: stroke-width;\\n  -moz-transition-property: stroke-width;\\n  transition-property: stroke-width;\\n  -webkit-transition-duration: 0.4s;\\n  -moz-transition-duration: 0.4s;\\n  transition-duration: 0.4s; }\\n\\n@-webkit-keyframes circular {\\n  0% {\\n    stroke-dasharray: 1,200;\\n    stroke-dashoffset: 0; }\\n  50% {\\n    stroke-dasharray: 89,200;\\n    stroke-dashoffset: -35; }\\n  100% {\\n    stroke-dasharray: 89,200;\\n    stroke-dashoffset: -124; } }\\n\\n@-moz-keyframes circular {\\n  0% {\\n    stroke-dasharray: 1,200;\\n    stroke-dashoffset: 0; }\\n  50% {\\n    stroke-dasharray: 89,200;\\n    stroke-dashoffset: -35; }\\n  100% {\\n    stroke-dasharray: 89,200;\\n    stroke-dashoffset: -124; } }\\n\\n@keyframes circular {\\n  0% {\\n    stroke-dasharray: 1,200;\\n    stroke-dashoffset: 0; }\\n  50% {\\n    stroke-dasharray: 89,200;\\n    stroke-dashoffset: -35; }\\n  100% {\\n    stroke-dasharray: 89,200;\\n    stroke-dashoffset: -124; } }\\n\\n.progress-linear {\\n  position: absolute;\\n  right: 0;\\n  bottom: 0;\\n  left: 0;\\n  z-index: 999;\\n  height: 4px;\\n  overflow: hidden;\\n  -webkit-transform: scale(1, 0);\\n  -moz-transform: scale(1, 0);\\n  -ms-transform: scale(1, 0);\\n  -o-transform: scale(1, 0);\\n  transform: scale(1, 0);\\n  -webkit-transition-property: -webkit-transform;\\n  -moz-transition-property: -moz-transform;\\n  transition-property: transform;\\n  -webkit-transition-duration: 0.4s;\\n  -moz-transition-duration: 0.4s;\\n  transition-duration: 0.4s;\\n  -webkit-transform-origin: bottom center;\\n  -moz-transform-origin: bottom center;\\n  -ms-transform-origin: bottom center;\\n  -o-transform-origin: bottom center;\\n  transform-origin: bottom center; }\\n\\n.progress-linear--is-shown {\\n  -webkit-transform: none;\\n  -moz-transform: none;\\n  -ms-transform: none;\\n  -o-transform: none;\\n  transform: none; }\\n\\n.progress-linear__background {\\n  position: absolute;\\n  top: 0;\\n  right: 0;\\n  bottom: 0;\\n  left: 0;\\n  opacity: 0.4; }\\n\\n.progress-linear__bar {\\n  -webkit-transform: scale(1) translateX(50%);\\n  -moz-transform: scale(1) translateX(50%);\\n  -ms-transform: scale(1) translateX(50%);\\n  -o-transform: scale(1) translateX(50%);\\n  transform: scale(1) translateX(50%); }\\n\\n.progress-linear__bar--first {\\n  position: absolute;\\n  top: -12px;\\n  height: 24px;\\n  width: 100%;\\n  -webkit-animation: bar1 2s linear infinite;\\n  -moz-animation: bar1 2s linear infinite;\\n  animation: bar1 2s linear infinite; }\\n\\n.progress-linear__bar--second {\\n  position: absolute;\\n  top: -48px;\\n  height: 96px;\\n  width: 100%;\\n  -webkit-animation: bar2 2s linear infinite;\\n  -moz-animation: bar2 2s linear infinite;\\n  animation: bar2 2s linear infinite; }\\n\\n@-webkit-keyframes bar1 {\\n  0% {\\n    -webkit-transform: scale(0.5) translateX(-150%); }\\n  37.5% {\\n    -webkit-transform: scale(0.75) translateX(0%); }\\n  75% {\\n    -webkit-transform: scale(0.5) translateX(150%); }\\n  100% {\\n    -webkit-transform: scale(0.5) translateX(150%); } }\\n\\n@-moz-keyframes bar1 {\\n  0% {\\n    -moz-transform: scale(0.5) translateX(-150%); }\\n  37.5% {\\n    -moz-transform: scale(0.75) translateX(0%); }\\n  75% {\\n    -moz-transform: scale(0.5) translateX(150%); }\\n  100% {\\n    -moz-transform: scale(0.5) translateX(150%); } }\\n\\n@keyframes bar1 {\\n  0% {\\n    -webkit-transform: scale(0.5) translateX(-150%);\\n    -moz-transform: scale(0.5) translateX(-150%);\\n    -ms-transform: scale(0.5) translateX(-150%);\\n    -o-transform: scale(0.5) translateX(-150%);\\n    transform: scale(0.5) translateX(-150%); }\\n  37.5% {\\n    -webkit-transform: scale(0.75) translateX(0%);\\n    -moz-transform: scale(0.75) translateX(0%);\\n    -ms-transform: scale(0.75) translateX(0%);\\n    -o-transform: scale(0.75) translateX(0%);\\n    transform: scale(0.75) translateX(0%); }\\n  75% {\\n    -webkit-transform: scale(0.5) translateX(150%);\\n    -moz-transform: scale(0.5) translateX(150%);\\n    -ms-transform: scale(0.5) translateX(150%);\\n    -o-transform: scale(0.5) translateX(150%);\\n    transform: scale(0.5) translateX(150%); }\\n  100% {\\n    -webkit-transform: scale(0.5) translateX(150%);\\n    -moz-transform: scale(0.5) translateX(150%);\\n    -ms-transform: scale(0.5) translateX(150%);\\n    -o-transform: scale(0.5) translateX(150%);\\n    transform: scale(0.5) translateX(150%); } }\\n\\n@-webkit-keyframes bar2 {\\n  0% {\\n    -webkit-transform: scale(0.5) translateX(-250%); }\\n  40% {\\n    -webkit-transform: scale(0.5) translateX(-250%); }\\n  55% {\\n    -webkit-transform: scale(0.5) translateX(-150%); }\\n  70% {\\n    -webkit-transform: scale(0.5) translateX(-50%); }\\n  85% {\\n    -webkit-transform: scale(0.25) translateX(150%); }\\n  100% {\\n    -webkit-transform: scale(0.25) translateX(250%); } }\\n\\n@-moz-keyframes bar2 {\\n  0% {\\n    -moz-transform: scale(0.5) translateX(-250%); }\\n  40% {\\n    -moz-transform: scale(0.5) translateX(-250%); }\\n  55% {\\n    -moz-transform: scale(0.5) translateX(-150%); }\\n  70% {\\n    -moz-transform: scale(0.5) translateX(-50%); }\\n  85% {\\n    -moz-transform: scale(0.25) translateX(150%); }\\n  100% {\\n    -moz-transform: scale(0.25) translateX(250%); } }\\n\\n@keyframes bar2 {\\n  0% {\\n    -webkit-transform: scale(0.5) translateX(-250%);\\n    -moz-transform: scale(0.5) translateX(-250%);\\n    -ms-transform: scale(0.5) translateX(-250%);\\n    -o-transform: scale(0.5) translateX(-250%);\\n    transform: scale(0.5) translateX(-250%); }\\n  40% {\\n    -webkit-transform: scale(0.5) translateX(-250%);\\n    -moz-transform: scale(0.5) translateX(-250%);\\n    -ms-transform: scale(0.5) translateX(-250%);\\n    -o-transform: scale(0.5) translateX(-250%);\\n    transform: scale(0.5) translateX(-250%); }\\n  55% {\\n    -webkit-transform: scale(0.5) translateX(-150%);\\n    -moz-transform: scale(0.5) translateX(-150%);\\n    -ms-transform: scale(0.5) translateX(-150%);\\n    -o-transform: scale(0.5) translateX(-150%);\\n    transform: scale(0.5) translateX(-150%); }\\n  70% {\\n    -webkit-transform: scale(0.5) translateX(-50%);\\n    -moz-transform: scale(0.5) translateX(-50%);\\n    -ms-transform: scale(0.5) translateX(-50%);\\n    -o-transform: scale(0.5) translateX(-50%);\\n    transform: scale(0.5) translateX(-50%); }\\n  85% {\\n    -webkit-transform: scale(0.25) translateX(150%);\\n    -moz-transform: scale(0.25) translateX(150%);\\n    -ms-transform: scale(0.25) translateX(150%);\\n    -o-transform: scale(0.25) translateX(150%);\\n    transform: scale(0.25) translateX(150%); }\\n  100% {\\n    -webkit-transform: scale(0.25) translateX(250%);\\n    -moz-transform: scale(0.25) translateX(250%);\\n    -ms-transform: scale(0.25) translateX(250%);\\n    -o-transform: scale(0.25) translateX(250%);\\n    transform: scale(0.25) translateX(250%); } }\\n\\n.radio-group .radio-button {\\n  margin-bottom: 8px; }\\n\\n.radio-button__input:not(:checked) + .radio-button__label:before {\\n  -webkit-transform: scale(1);\\n  -moz-transform: scale(1);\\n  -ms-transform: scale(1);\\n  -o-transform: scale(1);\\n  transform: scale(1); }\\n\\n.radio-button__input:not(:checked) + .radio-button__label:after {\\n  -webkit-transform: scale(0);\\n  -moz-transform: scale(0);\\n  -ms-transform: scale(0);\\n  -o-transform: scale(0);\\n  transform: scale(0); }\\n\\n.radio-button__input:checked + .radio-button__label:before {\\n  -webkit-transform: scale(0);\\n  -moz-transform: scale(0);\\n  -ms-transform: scale(0);\\n  -o-transform: scale(0);\\n  transform: scale(0); }\\n\\n.radio-button__input:checked + .radio-button__label:after {\\n  -webkit-transform: scale(1);\\n  -moz-transform: scale(1);\\n  -ms-transform: scale(1);\\n  -o-transform: scale(1);\\n  transform: scale(1); }\\n\\n.radio-button__input[disabled] + .radio-button__label {\\n  cursor: not-allowed; }\\n  .radio-button__input[disabled] + .radio-button__label:before, .radio-button__input[disabled] + .radio-button__label:after {\\n    color: rgba(0, 0, 0, 0.26); }\\n\\n.radio-button__label {\\n  display: block;\\n  position: relative;\\n  padding-left: 32px;\\n  font-weight: 400;\\n  line-height: 24px;\\n  cursor: pointer; }\\n  .radio-button__label:before, .radio-button__label:after {\\n    font-family: MaterialDesignIcons;\\n    font-weight: 400;\\n    font-style: normal;\\n    speak: none;\\n    text-decoration: inherit;\\n    text-transform: none;\\n    text-rendering: optimizeLegibility;\\n    -webkit-font-smoothing: antialiased;\\n    -moz-osx-font-smoothing: grayscale;\\n    position: absolute;\\n    top: 0;\\n    left: 0;\\n    font-size: 24px;\\n    font-size: 1.5rem;\\n    line-height: 24px;\\n    -webkit-transition-property: -webkit-transform;\\n    -moz-transition-property: -moz-transform;\\n    transition-property: transform;\\n    -webkit-transition-duration: 0.2s;\\n    -moz-transition-duration: 0.2s;\\n    transition-duration: 0.2s; }\\n  .radio-button__label:before {\\n    content: '\\\\F392'; }\\n  .radio-button__label:after {\\n    content: '\\\\F393';\\n    color: #009688; }\\n\\n.radio-button__help {\\n  display: block;\\n  padding-left: 32px;\\n  color: rgba(0, 0, 0, 0.54);\\n  text-align: left; }\\n\\n.ripple {\\n  display: block;\\n  position: absolute;\\n  border-radius: 100%;\\n  opacity: 0.3;\\n  -webkit-transform: scale(0);\\n  -moz-transform: scale(0);\\n  -ms-transform: scale(0);\\n  -o-transform: scale(0);\\n  transform: scale(0);\\n  pointer-events: none; }\\n\\n.ripple--is-animated {\\n  -webkit-animation: ripple 0.65s linear;\\n  -moz-animation: ripple 0.65s linear;\\n  animation: ripple 0.65s linear; }\\n\\n@media screen and (max-width: 1023px) {\\n  .scrollbar-container {\\n    overflow: auto;\\n    -webkit-overflow-scrolling: touch; } }\\n\\n@media screen and (min-width: 1024px) {\\n  .scrollbar-container {\\n    position: relative;\\n    overflow: hidden; } }\\n\\n.scrollbar-container:hover .scrollbar-y-axis__handle,\\n.scrollbar-y-axis--is-dragging .scrollbar-y-axis__handle {\\n  opacity: 1; }\\n\\n.scrollbar-y-axis {\\n  position: absolute;\\n  top: 0;\\n  right: 0;\\n  width: 10px; }\\n  .scrollbar-y-axis:before {\\n    content: '';\\n    position: absolute;\\n    top: 0;\\n    right: 0;\\n    bottom: 0;\\n    left: 0;\\n    background-color: rgba(255, 255, 255, 0.6);\\n    opacity: 0;\\n    -webkit-transition-property: opacity;\\n    -moz-transition-property: opacity;\\n    transition-property: opacity;\\n    -webkit-transition-duration: 0.2s;\\n    -moz-transition-duration: 0.2s;\\n    transition-duration: 0.2s; }\\n\\n.scrollbar-y-axis:hover:before,\\n.scrollbar-y-axis--is-dragging:before {\\n  opacity: 1; }\\n\\n.scrollbar-y-axis__handle {\\n  position: absolute;\\n  top: 0;\\n  left: 2px;\\n  width: 6px;\\n  border-radius: 3px;\\n  background-color: rgba(0, 0, 0, 0.4);\\n  opacity: 0;\\n  -webkit-transition-property: opacity;\\n  -moz-transition-property: opacity;\\n  transition-property: opacity;\\n  -webkit-transition-duration: 0.2s;\\n  -moz-transition-duration: 0.2s;\\n  transition-duration: 0.2s; }\\n\\n.search-filter {\\n  position: relative;\\n  overflow: hidden; }\\n\\n.search-filter--is-closed {\\n  width: 40px; }\\n\\n.search-filter--is-focused .search-filter__cancel {\\n  -webkit-transform: translateX(0);\\n  -moz-transform: translateX(0);\\n  -ms-transform: translateX(0);\\n  -o-transform: translateX(0);\\n  transform: translateX(0); }\\n\\n.search-filter--dark-theme .search-filter__label {\\n  color: #FFFFFF; }\\n\\n.search-filter--dark-theme .search-filter__input {\\n  color: #FFFFFF; }\\n\\n.search-filter--dark-theme .search-filter__cancel {\\n  color: #FFFFFF; }\\n\\n.search-filter--light-theme .search-filter__label {\\n  color: rgba(0, 0, 0, 0.87); }\\n\\n.search-filter--light-theme .search-filter__input {\\n  color: rgba(0, 0, 0, 0.87); }\\n\\n.search-filter--light-theme .search-filter__cancel {\\n  color: rgba(0, 0, 0, 0.87); }\\n\\n.search-filter__container {\\n  position: relative;\\n  height: 40px;\\n  width: 240px;\\n  padding: 0 40px 0 56px; }\\n\\n.search-filter__label {\\n  position: absolute;\\n  top: 0;\\n  left: 0;\\n  height: 40px;\\n  width: 40px;\\n  font-size: 24px;\\n  font-size: 1.5rem;\\n  cursor: pointer; }\\n  .search-filter__label .mdi {\\n    position: absolute;\\n    top: 9px;\\n    left: 8px; }\\n\\n.search-filter__input {\\n  display: block;\\n  height: 40px;\\n  width: 100%;\\n  margin: 0;\\n  padding: 0;\\n  border: none;\\n  outline: none;\\n  background: none; }\\n  .search-filter__input::-webkit-input-placeholder {\\n    color: rgba(0, 0, 0, 0.26); }\\n    .search-filter--dark-theme .search-filter__input::-webkit-input-placeholder {\\n      color: rgba(255, 255, 255, 0.7); }\\n  .search-filter__input::-moz-placeholder {\\n    color: rgba(0, 0, 0, 0.26); }\\n    .search-filter--dark-theme .search-filter__input::-moz-placeholder {\\n      color: rgba(255, 255, 255, 0.7); }\\n  .search-filter__input:-moz-placeholder {\\n    color: rgba(0, 0, 0, 0.26); }\\n    .search-filter--dark-theme .search-filter__input:-moz-placeholder {\\n      color: rgba(255, 255, 255, 0.7); }\\n  .search-filter__input:-ms-input-placeholder {\\n    color: rgba(0, 0, 0, 0.26); }\\n    .search-filter--dark-theme .search-filter__input:-ms-input-placeholder {\\n      color: rgba(255, 255, 255, 0.7); }\\n\\n.search-filter__cancel {\\n  position: absolute;\\n  top: 0;\\n  right: 0;\\n  height: 40px;\\n  width: 40px;\\n  font-size: 24px;\\n  font-size: 1.5rem;\\n  text-align: center;\\n  cursor: pointer;\\n  -webkit-transform: translateX(40px);\\n  -moz-transform: translateX(40px);\\n  -ms-transform: translateX(40px);\\n  -o-transform: translateX(40px);\\n  transform: translateX(40px);\\n  -webkit-transition-property: -webkit-transform;\\n  -moz-transition-property: -moz-transform;\\n  transition-property: transform;\\n  -webkit-transition-duration: 0.4s;\\n  -moz-transition-duration: 0.4s;\\n  transition-duration: 0.4s;\\n  -webkit-transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);\\n  -moz-transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);\\n  transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1); }\\n  .search-filter__cancel .mdi {\\n    line-height: 40px; }\\n\\n.lx-select {\\n  position: relative;\\n  margin-top: 32px;\\n  padding-bottom: 8px; }\\n  .lx-select:before {\\n    content: '';\\n    position: absolute;\\n    right: 0;\\n    bottom: 7px;\\n    left: 0;\\n    height: 1px;\\n    border-bottom: 1px solid rgba(0, 0, 0, 0.12); }\\n  .lx-select .dropdown {\\n    display: block; }\\n\\n.lx-select__floating-label {\\n  color: rgba(0, 0, 0, 0.26);\\n  position: absolute;\\n  top: -20px;\\n  left: 0;\\n  -webkit-transform: scale(0.75);\\n  -moz-transform: scale(0.75);\\n  -ms-transform: scale(0.75);\\n  -o-transform: scale(0.75);\\n  transform: scale(0.75);\\n  -webkit-transform-origin: bottom left;\\n  -moz-transform-origin: bottom left;\\n  -ms-transform-origin: bottom left;\\n  -o-transform-origin: bottom left;\\n  transform-origin: bottom left; }\\n\\n.lx-select__selected {\\n  position: relative;\\n  padding-right: 24px;\\n  cursor: pointer;\\n  white-space: nowrap; }\\n  .lx-select__selected:after {\\n    font-family: MaterialDesignIcons;\\n    font-weight: 400;\\n    font-style: normal;\\n    speak: none;\\n    text-decoration: inherit;\\n    text-transform: none;\\n    text-rendering: optimizeLegibility;\\n    -webkit-font-smoothing: antialiased;\\n    -moz-osx-font-smoothing: grayscale;\\n    content: '\\\\F30B';\\n    position: absolute;\\n    right: 8px;\\n    bottom: 8px;\\n    font-size: 14px;\\n    font-size: 0.875rem;\\n    color: rgba(0, 0, 0, 0.26);\\n    line-height: 16px; }\\n  .lx-select__selected:hover .lx-select__close {\\n    opacity: 1; }\\n  .lx-select__selected .ripple {\\n    background-color: #9E9E9E; }\\n\\n.lx-select__selected--is-unique {\\n  line-height: 32px; }\\n\\n.lx-select__selected--is-multiple {\\n  padding-top: 6px;\\n  padding-bottom: 2px; }\\n\\n.lx-select__selected--placeholder {\\n  padding-top: 0 !important;\\n  color: rgba(0, 0, 0, 0.26);\\n  line-height: 32px !important; }\\n\\n.lx-select__close {\\n  display: block;\\n  position: absolute;\\n  top: 8px;\\n  right: 24px;\\n  opacity: 0;\\n  line-height: 32px;\\n  -webkit-transition-property: opacity, color;\\n  -moz-transition-property: opacity, color;\\n  transition-property: opacity, color;\\n  -webkit-transition-duration: 0.2s;\\n  -moz-transition-duration: 0.2s;\\n  transition-duration: 0.2s; }\\n  .lx-select__close:hover {\\n    color: #F44336; }\\n\\n.lx-select__tag {\\n  position: relative;\\n  float: left;\\n  margin-right: 4px;\\n  margin-bottom: 4px;\\n  padding: 0 4px;\\n  border-radius: 2px;\\n  background-color: #F5F5F5;\\n  font-size: 13px;\\n  font-size: 0.8125rem;\\n  line-height: 20px;\\n  -webkit-user-select: none;\\n  -moz-user-select: none;\\n  -ms-user-select: none;\\n  user-select: none; }\\n  .lx-select__tag:last-child {\\n    margin-right: 0; }\\n\\n.lx-select__choices {\\n  margin-left: -16px;\\n  margin-top: -12px; }\\n  .lx-select__choices .dropdown-menu__content {\\n    padding-top: 0; }\\n\\n.lx-select__choice--is-multiple {\\n  position: relative;\\n  padding-left: 40px; }\\n  .lx-select__choice--is-multiple:before, .lx-select__choice--is-multiple:after {\\n    font-family: MaterialDesignIcons;\\n    font-weight: 400;\\n    font-style: normal;\\n    speak: none;\\n    text-decoration: inherit;\\n    text-transform: none;\\n    text-rendering: optimizeLegibility;\\n    -webkit-font-smoothing: antialiased;\\n    -moz-osx-font-smoothing: grayscale;\\n    position: absolute;\\n    top: 0;\\n    left: 16px;\\n    font-size: 18px;\\n    font-size: 1.125rem;\\n    line-height: 32px;\\n    -webkit-transition-property: -webkit-transform;\\n    -moz-transition-property: -moz-transform;\\n    transition-property: transform;\\n    -webkit-transition-duration: 0.2s;\\n    -moz-transition-duration: 0.2s;\\n    transition-duration: 0.2s; }\\n  .lx-select__choice--is-multiple:before {\\n    content: '\\\\F1C5';\\n    -webkit-transform: scale(1);\\n    -moz-transform: scale(1);\\n    -ms-transform: scale(1);\\n    -o-transform: scale(1);\\n    transform: scale(1); }\\n  .lx-select__choice--is-multiple:after {\\n    content: '\\\\F1CA';\\n    -webkit-transform: scale(0);\\n    -moz-transform: scale(0);\\n    -ms-transform: scale(0);\\n    -o-transform: scale(0);\\n    transform: scale(0);\\n    color: #009688; }\\n\\n.lx-select__choice--is-selected:before {\\n  -webkit-transform: scale(0);\\n  -moz-transform: scale(0);\\n  -ms-transform: scale(0);\\n  -o-transform: scale(0);\\n  transform: scale(0); }\\n\\n.lx-select__choice--is-selected:after {\\n  -webkit-transform: scale(1);\\n  -moz-transform: scale(1);\\n  -ms-transform: scale(1);\\n  -o-transform: scale(1);\\n  transform: scale(1); }\\n\\n.lx-select__help {\\n  height: 32px;\\n  padding: 0 16px;\\n  font-size: 14px;\\n  font-size: 0.875rem;\\n  color: rgba(0, 0, 0, 0.26);\\n  line-height: 32px;\\n  white-space: nowrap; }\\n\\n.lx-select__loader {\\n  height: 32px;\\n  line-height: 32px;\\n  text-align: center; }\\n  .lx-select__loader .mdi {\\n    -webkit-animation: spin 1.5s linear infinite;\\n    -moz-animation: spin 1.5s linear infinite;\\n    animation: spin 1.5s linear infinite; }\\n\\n.lx-select__chosen {\\n  display: block;\\n  min-height: 56px;\\n  padding: 0 40px 0 16px;\\n  border-bottom: 1px solid rgba(0, 0, 0, 0.12);\\n  line-height: 56px; }\\n\\n.lx-select__chosen--is-multiple {\\n  padding-top: 18px;\\n  padding-bottom: 14px; }\\n  .lx-select__chosen--is-multiple::after {\\n    clear: both;\\n    content: \\\"\\\";\\n    display: table; }\\n\\n.lx-select__filter {\\n  padding: 8px;\\n  margin-bottom: 8px;\\n  border-bottom: 1px solid rgba(0, 0, 0, 0.12); }\\n\\n/*------------------------------------*   #OBJECTS-SWITCH\\n\\\\*------------------------------------*/\\n.switch__input:not(:checked) + .switch__label:before {\\n  background-color: rgba(0, 0, 0, 0.26); }\\n\\n.switch__input:not(:checked) + .switch__label:after {\\n  background-color: #FAFAFA; }\\n\\n.switch__input:checked + .switch__label:before {\\n  background-color: rgba(0, 150, 136, 0.5); }\\n\\n.switch__input:checked + .switch__label:after {\\n  background-color: #009688;\\n  -webkit-transform: translateX(15px);\\n  -moz-transform: translateX(15px);\\n  -ms-transform: translateX(15px);\\n  -o-transform: translateX(15px);\\n  transform: translateX(15px); }\\n\\n.switch__input[disabled] + .switch__label {\\n  cursor: not-allowed; }\\n  .switch__input[disabled] + .switch__label:before {\\n    background-color: rgba(0, 0, 0, 0.12); }\\n  .switch__input[disabled] + .switch__label:after {\\n    background-color: #BDBDBD; }\\n\\n.switch__label {\\n  display: block;\\n  position: relative;\\n  padding-left: 45px;\\n  font-weight: 400;\\n  line-height: 24px;\\n  cursor: pointer;\\n  -webkit-user-select: none;\\n  -moz-user-select: none;\\n  -ms-user-select: none;\\n  user-select: none; }\\n  .switch__label:before {\\n    content: '';\\n    position: absolute;\\n    top: 5px;\\n    left: 0;\\n    z-index: 1;\\n    height: 14px;\\n    width: 35px;\\n    border-radius: 7px;\\n    -webkit-transition-property: background-color;\\n    -moz-transition-property: background-color;\\n    transition-property: background-color;\\n    -webkit-transition-duration: 0.2s;\\n    -moz-transition-duration: 0.2s;\\n    transition-duration: 0.2s; }\\n  .switch__label:after {\\n    content: '';\\n    position: absolute;\\n    top: 2px;\\n    left: 0;\\n    z-index: 2;\\n    display: block;\\n    height: 20px;\\n    width: 20px;\\n    border-radius: 50%;\\n    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);\\n    -webkit-transition-property: background-color, -webkit-transform;\\n    -moz-transition-property: background-color, -moz-transform;\\n    transition-property: background-color, transform;\\n    -webkit-transition-duration: 0.2s;\\n    -moz-transition-duration: 0.2s;\\n    transition-duration: 0.2s; }\\n\\n.switch__help {\\n  display: block;\\n  padding-left: 45px;\\n  color: rgba(0, 0, 0, 0.54);\\n  text-align: left; }\\n\\n.tabs {\\n  position: relative; }\\n  .tabs:after {\\n    content: '';\\n    position: absolute;\\n    top: 47px;\\n    right: 0;\\n    left: 0;\\n    height: 1px; }\\n\\n.tabs--theme-light:after {\\n  background-color: rgba(255, 255, 255, 0.7); }\\n\\n.tabs--theme-light .tabs-link {\\n  color: rgba(255, 255, 255, 0.7); }\\n\\n.tabs--theme-light .tabs-link:hover,\\n.tabs--theme-light .tabs-link--is-active {\\n  color: #FFFFFF !important; }\\n\\n.tabs--theme-dark:after {\\n  background-color: rgba(0, 0, 0, 0.12); }\\n\\n.tabs--theme-dark .tabs-link {\\n  color: rgba(0, 0, 0, 0.54); }\\n\\n.tabs--layout-full .tabs__links {\\n  display: table;\\n  table-layout: fixed;\\n  width: 100%;\\n  text-align: center; }\\n  .tabs--layout-full .tabs__links li {\\n    display: table-cell; }\\n\\n.tabs--layout-inline .tabs__links li {\\n  display: inline-block;\\n  vertical-align: top; }\\n\\n@media screen and (max-width: 480px) {\\n  .tabs--layout-inline .tabs-link {\\n    padding-left: 12px;\\n    padding-right: 12px; } }\\n\\n@media screen and (min-width: 481px) {\\n  .tabs--layout-inline .tabs-link {\\n    padding-left: 24px;\\n    padding-right: 24px; } }\\n\\n.tabs--no-divider:after {\\n  display: none; }\\n\\n.tabs__links {\\n  position: relative; }\\n\\n.tabs__indicator {\\n  position: absolute;\\n  top: 46px;\\n  right: 0;\\n  left: 0;\\n  z-index: 1;\\n  height: 2px; }\\n\\n.tabs-link {\\n  display: block;\\n  height: 48px;\\n  cursor: pointer;\\n  font-weight: 500;\\n  line-height: 48px;\\n  text-align: center;\\n  text-transform: uppercase;\\n  -webkit-transition-property: color;\\n  -moz-transition-property: color;\\n  transition-property: color;\\n  -webkit-transition-duration: 0.2s;\\n  -moz-transition-duration: 0.2s;\\n  transition-duration: 0.2s; }\\n  @media screen and (max-width: 1023px) {\\n    .tabs-link {\\n      font-size: 14px;\\n      font-size: 0.875rem; } }\\n  @media screen and (min-width: 1024px) {\\n    .tabs-link {\\n      font-size: 13px;\\n      font-size: 0.8125rem; } }\\n  .tabs-link .mdi {\\n    font-size: 24px;\\n    font-size: 1.5rem;\\n    line-height: 48px; }\\n\\n.text-field {\\n  position: relative;\\n  padding-top: 32px;\\n  padding-bottom: 8px; }\\n  .text-field:before, .text-field:after {\\n    content: ''; }\\n  .text-field:before {\\n    position: absolute;\\n    right: 0;\\n    bottom: 7px;\\n    left: 0;\\n    height: 1px;\\n    border-bottom: 1px solid rgba(0, 0, 0, 0.12); }\\n  .text-field:after {\\n    position: absolute;\\n    right: 0;\\n    bottom: 6px;\\n    left: 0;\\n    height: 2px;\\n    background-color: #2196F3;\\n    -webkit-transform: scale(0);\\n    -moz-transform: scale(0);\\n    -ms-transform: scale(0);\\n    -o-transform: scale(0);\\n    transform: scale(0);\\n    -webkit-transition-property: -webkit-transform;\\n    -moz-transition-property: -moz-transform;\\n    transition-property: transform;\\n    -webkit-transition-duration: 0.6s;\\n    -moz-transition-duration: 0.6s;\\n    transition-duration: 0.6s;\\n    -webkit-transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);\\n    -moz-transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);\\n    transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1); }\\n\\n.text-field--is-active .text-field__label {\\n  -webkit-transform: scale(0.75) translateY(0);\\n  -moz-transform: scale(0.75) translateY(0);\\n  -ms-transform: scale(0.75) translateY(0);\\n  -o-transform: scale(0.75) translateY(0);\\n  transform: scale(0.75) translateY(0); }\\n\\n.text-field--is-focused:after {\\n  -webkit-transform: scale(1);\\n  -moz-transform: scale(1);\\n  -ms-transform: scale(1);\\n  -o-transform: scale(1);\\n  transform: scale(1); }\\n\\n.text-field--is-focused .text-field__label {\\n  color: #2196F3; }\\n\\n.text-field--is-focused.text-field--dark-theme .text-field__label {\\n  color: #2196F3; }\\n\\n.text-field--is-disabled:before {\\n  border-bottom-style: dashed; }\\n\\n.text-field--is-disabled .text-field__input {\\n  color: rgba(0, 0, 0, 0.26);\\n  cursor: not-allowed; }\\n\\n.text-field--is-disabled.text-field--dark-theme .text-field__input {\\n  color: rgba(255, 255, 255, 0.3); }\\n\\n.text-field--has-error:after {\\n  background-color: #F44336;\\n  -webkit-transform: scale(1);\\n  -moz-transform: scale(1);\\n  -ms-transform: scale(1);\\n  -o-transform: scale(1);\\n  transform: scale(1); }\\n\\n.text-field--has-error .text-field__label {\\n  color: #F44336; }\\n\\n.text-field--has-error.text-field--dark-theme .text-field__label {\\n  color: #F44336; }\\n\\n.text-field--fixed-label {\\n  padding-top: 8px; }\\n  .text-field--fixed-label .text-field__label {\\n    -webkit-transform: none;\\n    -moz-transform: none;\\n    -ms-transform: none;\\n    -o-transform: none;\\n    transform: none; }\\n  .text-field--fixed-label.text-field--is-focused .text-field__label {\\n    color: rgba(0, 0, 0, 0.26); }\\n  .text-field--fixed-label.text-field--dark-theme.text-field--is-focused .text-field__label {\\n    color: rgba(255, 255, 255, 0.3); }\\n\\n.text-field--label-hidden .text-field__label {\\n  display: none; }\\n\\n.text-field--is-valid .text-field__label {\\n  color: #4CAF50; }\\n\\n.text-field--is-valid:after {\\n  background-color: #4CAF50;\\n  -webkit-transform: scale(1);\\n  -moz-transform: scale(1);\\n  -ms-transform: scale(1);\\n  -o-transform: scale(1);\\n  transform: scale(1); }\\n\\n.text-field--is-valid.text-field--dark-theme .text-field__label {\\n  color: #4CAF50; }\\n\\n.text-field--dark-theme:before {\\n  border-color: rgba(255, 255, 255, 0.3); }\\n\\n.text-field--with-icon {\\n  margin-left: 64px; }\\n\\n.text-field__label {\\n  display: block;\\n  position: absolute;\\n  top: 8px;\\n  left: 0;\\n  color: rgba(0, 0, 0, 0.26);\\n  line-height: 32px;\\n  pointer-events: none;\\n  -webkit-transform: translateY(24px);\\n  -moz-transform: translateY(24px);\\n  -ms-transform: translateY(24px);\\n  -o-transform: translateY(24px);\\n  transform: translateY(24px);\\n  -webkit-transform-origin: bottom left;\\n  -moz-transform-origin: bottom left;\\n  -ms-transform-origin: bottom left;\\n  -o-transform-origin: bottom left;\\n  transform-origin: bottom left;\\n  -webkit-transition-property: -webkit-transform, color;\\n  -moz-transition-property: -moz-transform, color;\\n  transition-property: transform, color;\\n  -webkit-transition-duration: 0.4s;\\n  -moz-transition-duration: 0.4s;\\n  transition-duration: 0.4s;\\n  -webkit-transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);\\n  -moz-transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);\\n  transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1); }\\n  .text-field--dark-theme .text-field__label {\\n    color: rgba(255, 255, 255, 0.3); }\\n\\n.text-field__input {\\n  display: block;\\n  width: 100%;\\n  margin: 0;\\n  padding: 0;\\n  border: none;\\n  overflow: hidden;\\n  resize: none;\\n  font-weight: 400;\\n  cursor: text;\\n  background-color: transparent;\\n  -webkit-appearance: none;\\n  -moz-appearance: none;\\n  -ms-appearance: none;\\n  -o-appearance: none;\\n  appearance: none; }\\n  .text-field__input:focus {\\n    outline: none; }\\n  .text-field--dark-theme .text-field__input {\\n    color: #FFFFFF; }\\n\\ninput.text-field__input {\\n  height: 32px;\\n  line-height: 32px; }\\n\\ntextarea.text-field__input {\\n  height: 24px;\\n  margin: 4px 0; }\\n\\n.text-field__icon {\\n  position: absolute;\\n  top: 2px;\\n  left: -68px;\\n  height: 44px;\\n  width: 48px;\\n  line-height: 44px;\\n  font-size: 24px;\\n  font-size: 1.5rem;\\n  color: rgba(0, 0, 0, 0.54);\\n  text-align: center;\\n  -webkit-transition-property: color;\\n  -moz-transition-property: color;\\n  transition-property: color;\\n  -webkit-transition-duration: 0.4s;\\n  -moz-transition-duration: 0.4s;\\n  transition-duration: 0.4s;\\n  -webkit-transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);\\n  -moz-transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);\\n  transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1); }\\n  .text-field--dark-theme .text-field__icon {\\n    color: #FFFFFF; }\\n  .text-field--is-focused .text-field__icon {\\n    color: #2196F3; }\\n  .text-field--has-error .text-field__icon {\\n    color: #F44336; }\\n\\n.toolbar {\\n  display: -webkit-box;\\n  display: -moz-box;\\n  display: box;\\n  display: -webkit-flex;\\n  display: -moz-flex;\\n  display: -ms-flexbox;\\n  display: flex;\\n  -webkit-box-orient: horizontal;\\n  -moz-box-orient: horizontal;\\n  box-orient: horizontal;\\n  -webkit-box-direction: normal;\\n  -moz-box-direction: normal;\\n  box-direction: normal;\\n  -webkit-flex-direction: row;\\n  -moz-flex-direction: row;\\n  flex-direction: row;\\n  -ms-flex-direction: row;\\n  padding: 0 16px; }\\n  @media screen and (max-width: 1023px) {\\n    .toolbar {\\n      height: 56px;\\n      padding-top: 8px;\\n      padding-bottom: 8px; } }\\n  @media screen and (min-width: 1024px) {\\n    .toolbar {\\n      height: 64px;\\n      padding-top: 12px;\\n      padding-bottom: 12px; } }\\n\\n.toolbar__left {\\n  display: -webkit-box;\\n  display: -moz-box;\\n  display: box;\\n  display: -webkit-flex;\\n  display: -moz-flex;\\n  display: -ms-flexbox;\\n  display: flex;\\n  -webkit-box-orient: horizontal;\\n  -moz-box-orient: horizontal;\\n  box-orient: horizontal;\\n  -webkit-box-direction: normal;\\n  -moz-box-direction: normal;\\n  box-direction: normal;\\n  -webkit-flex-direction: row;\\n  -moz-flex-direction: row;\\n  flex-direction: row;\\n  -ms-flex-direction: row; }\\n\\n.toolbar__right {\\n  display: -webkit-box;\\n  display: -moz-box;\\n  display: box;\\n  display: -webkit-flex;\\n  display: -moz-flex;\\n  display: -ms-flexbox;\\n  display: flex;\\n  -webkit-box-orient: horizontal;\\n  -moz-box-orient: horizontal;\\n  box-orient: horizontal;\\n  -webkit-box-direction: normal;\\n  -moz-box-direction: normal;\\n  box-direction: normal;\\n  -webkit-flex-direction: row;\\n  -moz-flex-direction: row;\\n  flex-direction: row;\\n  -ms-flex-direction: row;\\n  -webkit-box-pack: end;\\n  -moz-box-pack: end;\\n  box-pack: end;\\n  -webkit-justify-content: flex-end;\\n  -moz-justify-content: flex-end;\\n  -ms-justify-content: flex-end;\\n  -o-justify-content: flex-end;\\n  justify-content: flex-end;\\n  -ms-flex-pack: end;\\n  -webkit-box-align: center;\\n  -moz-box-align: center;\\n  box-align: center;\\n  -webkit-align-items: center;\\n  -moz-align-items: center;\\n  -ms-align-items: center;\\n  -o-align-items: center;\\n  align-items: center;\\n  -ms-flex-align: center; }\\n\\n.toolbar__label {\\n  -webkit-box-flex: 1;\\n  -moz-box-flex: 1;\\n  box-flex: 1;\\n  -webkit-flex: 1;\\n  -moz-flex: 1;\\n  -ms-flex: 1;\\n  flex: 1;\\n  line-height: 40px; }\\n\\n.tooltip {\\n  position: absolute;\\n  z-index: 999;\\n  border-radius: 2px;\\n  opacity: 0;\\n  overflow: hidden;\\n  pointer-events: none;\\n  -webkit-transition-property: opacity, -webkit-transform;\\n  -moz-transition-property: opacity, -moz-transform;\\n  transition-property: opacity, transform;\\n  -webkit-transition-duration: 0.6s;\\n  -moz-transition-duration: 0.6s;\\n  transition-duration: 0.6s;\\n  -webkit-transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);\\n  -moz-transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);\\n  transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1); }\\n\\n.tooltip--is-active {\\n  opacity: 1; }\\n  .tooltip--is-active.tooltip--top {\\n    -webkit-transform: translateY(-8px);\\n    -moz-transform: translateY(-8px);\\n    -ms-transform: translateY(-8px);\\n    -o-transform: translateY(-8px);\\n    transform: translateY(-8px); }\\n  .tooltip--is-active.tooltip--bottom {\\n    -webkit-transform: translateY(8px);\\n    -moz-transform: translateY(8px);\\n    -ms-transform: translateY(8px);\\n    -o-transform: translateY(8px);\\n    transform: translateY(8px); }\\n  .tooltip--is-active.tooltip--left {\\n    -webkit-transform: translateX(-8px);\\n    -moz-transform: translateX(-8px);\\n    -ms-transform: translateX(-8px);\\n    -o-transform: translateX(-8px);\\n    transform: translateX(-8px); }\\n  .tooltip--is-active.tooltip--right {\\n    -webkit-transform: translateX(8px);\\n    -moz-transform: translateX(8px);\\n    -ms-transform: translateX(8px);\\n    -o-transform: translateX(8px);\\n    transform: translateX(8px); }\\n\\n.tooltip__background {\\n  position: absolute;\\n  top: 0;\\n  right: 0;\\n  bottom: 0;\\n  left: 0;\\n  z-index: -1;\\n  border-radius: 50%;\\n  -webkit-transform: scale(0) translateY(50%);\\n  -moz-transform: scale(0) translateY(50%);\\n  -ms-transform: scale(0) translateY(50%);\\n  -o-transform: scale(0) translateY(50%);\\n  transform: scale(0) translateY(50%);\\n  -webkit-transition-property: -webkit-transform;\\n  -moz-transition-property: -moz-transform;\\n  transition-property: transform;\\n  -webkit-transition-duration: 0.6s;\\n  -moz-transition-duration: 0.6s;\\n  transition-duration: 0.6s;\\n  -webkit-transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);\\n  -moz-transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);\\n  transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1); }\\n\\n.tooltip__label {\\n  display: block;\\n  padding: 0 8px;\\n  font-size: 11px;\\n  font-size: 0.6875rem;\\n  line-height: 22px;\\n  white-space: nowrap; }\\n\\n.tooltip--black .tooltip__background {\\n  background-color: #757575; }\\n\\n.tooltip--black .tooltip__label {\\n  color: #FFFFFF; }\\n\\n.tooltip--white .tooltip__background {\\n  background-color: #EEEEEE; }\\n\\n.tooltip--white .tooltip__label {\\n  color: rgba(0, 0, 0, 0.87); }\\n\\n.tooltip--top .tooltip__background {\\n  -webkit-transform: scale(0) translateY(50%);\\n  -moz-transform: scale(0) translateY(50%);\\n  -ms-transform: scale(0) translateY(50%);\\n  -o-transform: scale(0) translateY(50%);\\n  transform: scale(0) translateY(50%);\\n  -webkit-transform-origin: center bottom;\\n  -moz-transform-origin: center bottom;\\n  -ms-transform-origin: center bottom;\\n  -o-transform-origin: center bottom;\\n  transform-origin: center bottom; }\\n\\n.tooltip--top.tooltip--is-active .tooltip__background {\\n  -webkit-transform: scale(3) translateY(50%);\\n  -moz-transform: scale(3) translateY(50%);\\n  -ms-transform: scale(3) translateY(50%);\\n  -o-transform: scale(3) translateY(50%);\\n  transform: scale(3) translateY(50%); }\\n\\n.tooltip--bottom .tooltip__background {\\n  -webkit-transform: scale(0) translateY(-50%);\\n  -moz-transform: scale(0) translateY(-50%);\\n  -ms-transform: scale(0) translateY(-50%);\\n  -o-transform: scale(0) translateY(-50%);\\n  transform: scale(0) translateY(-50%);\\n  -webkit-transform-origin: center top;\\n  -moz-transform-origin: center top;\\n  -ms-transform-origin: center top;\\n  -o-transform-origin: center top;\\n  transform-origin: center top; }\\n\\n.tooltip--bottom.tooltip--is-active .tooltip__background {\\n  -webkit-transform: scale(3) translateY(-50%);\\n  -moz-transform: scale(3) translateY(-50%);\\n  -ms-transform: scale(3) translateY(-50%);\\n  -o-transform: scale(3) translateY(-50%);\\n  transform: scale(3) translateY(-50%); }\\n\\n.tooltip--left .tooltip__background {\\n  -webkit-transform: scale(0) translateX(50%);\\n  -moz-transform: scale(0) translateX(50%);\\n  -ms-transform: scale(0) translateX(50%);\\n  -o-transform: scale(0) translateX(50%);\\n  transform: scale(0) translateX(50%);\\n  -webkit-transform-origin: right center;\\n  -moz-transform-origin: right center;\\n  -ms-transform-origin: right center;\\n  -o-transform-origin: right center;\\n  transform-origin: right center; }\\n\\n.tooltip--left.tooltip--is-active .tooltip__background {\\n  -webkit-transform: scale(3) translateX(50%);\\n  -moz-transform: scale(3) translateX(50%);\\n  -ms-transform: scale(3) translateX(50%);\\n  -o-transform: scale(3) translateX(50%);\\n  transform: scale(3) translateX(50%); }\\n\\n.tooltip--right .tooltip__background {\\n  -webkit-transform: scale(0) translateX(-50%);\\n  -moz-transform: scale(0) translateX(-50%);\\n  -ms-transform: scale(0) translateX(-50%);\\n  -o-transform: scale(0) translateX(-50%);\\n  transform: scale(0) translateX(-50%);\\n  -webkit-transform-origin: left center;\\n  -moz-transform-origin: left center;\\n  -ms-transform-origin: left center;\\n  -o-transform-origin: left center;\\n  transform-origin: left center; }\\n\\n.tooltip--right.tooltip--is-active .tooltip__background {\\n  -webkit-transform: scale(3) translateX(-50%);\\n  -moz-transform: scale(3) translateX(-50%);\\n  -ms-transform: scale(3) translateX(-50%);\\n  -o-transform: scale(3) translateX(-50%);\\n  transform: scale(3) translateX(-50%); }\\n\", \"\"]);\n\n\t// exports\n\n\n/***/ },\n/* 19 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!\n\t * jQuery JavaScript Library v2.2.0\n\t * http://jquery.com/\n\t *\n\t * Includes Sizzle.js\n\t * http://sizzlejs.com/\n\t *\n\t * Copyright jQuery Foundation and other contributors\n\t * Released under the MIT license\n\t * http://jquery.org/license\n\t *\n\t * Date: 2016-01-08T20:02Z\n\t */\n\n\t(function( global, factory ) {\n\n\t\tif ( typeof module === \"object\" && typeof module.exports === \"object\" ) {\n\t\t\t// For CommonJS and CommonJS-like environments where a proper `window`\n\t\t\t// is present, execute the factory and get jQuery.\n\t\t\t// For environments that do not have a `window` with a `document`\n\t\t\t// (such as Node.js), expose a factory as module.exports.\n\t\t\t// This accentuates the need for the creation of a real `window`.\n\t\t\t// e.g. var jQuery = require(\"jquery\")(window);\n\t\t\t// See ticket #14549 for more info.\n\t\t\tmodule.exports = global.document ?\n\t\t\t\tfactory( global, true ) :\n\t\t\t\tfunction( w ) {\n\t\t\t\t\tif ( !w.document ) {\n\t\t\t\t\t\tthrow new Error( \"jQuery requires a window with a document\" );\n\t\t\t\t\t}\n\t\t\t\t\treturn factory( w );\n\t\t\t\t};\n\t\t} else {\n\t\t\tfactory( global );\n\t\t}\n\n\t// Pass this if window is not defined yet\n\t}(typeof window !== \"undefined\" ? window : this, function( window, noGlobal ) {\n\n\t// Support: Firefox 18+\n\t// Can't be in strict mode, several libs including ASP.NET trace\n\t// the stack via arguments.caller.callee and Firefox dies if\n\t// you try to trace through \"use strict\" call chains. (#13335)\n\t//\"use strict\";\n\tvar arr = [];\n\n\tvar document = window.document;\n\n\tvar slice = arr.slice;\n\n\tvar concat = arr.concat;\n\n\tvar push = arr.push;\n\n\tvar indexOf = arr.indexOf;\n\n\tvar class2type = {};\n\n\tvar toString = class2type.toString;\n\n\tvar hasOwn = class2type.hasOwnProperty;\n\n\tvar support = {};\n\n\n\n\tvar\n\t\tversion = \"2.2.0\",\n\n\t\t// Define a local copy of jQuery\n\t\tjQuery = function( selector, context ) {\n\n\t\t\t// The jQuery object is actually just the init constructor 'enhanced'\n\t\t\t// Need init if jQuery is called (just allow error to be thrown if not included)\n\t\t\treturn new jQuery.fn.init( selector, context );\n\t\t},\n\n\t\t// Support: Android<4.1\n\t\t// Make sure we trim BOM and NBSP\n\t\trtrim = /^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g,\n\n\t\t// Matches dashed string for camelizing\n\t\trmsPrefix = /^-ms-/,\n\t\trdashAlpha = /-([\\da-z])/gi,\n\n\t\t// Used by jQuery.camelCase as callback to replace()\n\t\tfcamelCase = function( all, letter ) {\n\t\t\treturn letter.toUpperCase();\n\t\t};\n\n\tjQuery.fn = jQuery.prototype = {\n\n\t\t// The current version of jQuery being used\n\t\tjquery: version,\n\n\t\tconstructor: jQuery,\n\n\t\t// Start with an empty selector\n\t\tselector: \"\",\n\n\t\t// The default length of a jQuery object is 0\n\t\tlength: 0,\n\n\t\ttoArray: function() {\n\t\t\treturn slice.call( this );\n\t\t},\n\n\t\t// Get the Nth element in the matched element set OR\n\t\t// Get the whole matched element set as a clean array\n\t\tget: function( num ) {\n\t\t\treturn num != null ?\n\n\t\t\t\t// Return just the one element from the set\n\t\t\t\t( num < 0 ? this[ num + this.length ] : this[ num ] ) :\n\n\t\t\t\t// Return all the elements in a clean array\n\t\t\t\tslice.call( this );\n\t\t},\n\n\t\t// Take an array of elements and push it onto the stack\n\t\t// (returning the new matched element set)\n\t\tpushStack: function( elems ) {\n\n\t\t\t// Build a new jQuery matched element set\n\t\t\tvar ret = jQuery.merge( this.constructor(), elems );\n\n\t\t\t// Add the old object onto the stack (as a reference)\n\t\t\tret.prevObject = this;\n\t\t\tret.context = this.context;\n\n\t\t\t// Return the newly-formed element set\n\t\t\treturn ret;\n\t\t},\n\n\t\t// Execute a callback for every element in the matched set.\n\t\teach: function( callback ) {\n\t\t\treturn jQuery.each( this, callback );\n\t\t},\n\n\t\tmap: function( callback ) {\n\t\t\treturn this.pushStack( jQuery.map( this, function( elem, i ) {\n\t\t\t\treturn callback.call( elem, i, elem );\n\t\t\t} ) );\n\t\t},\n\n\t\tslice: function() {\n\t\t\treturn this.pushStack( slice.apply( this, arguments ) );\n\t\t},\n\n\t\tfirst: function() {\n\t\t\treturn this.eq( 0 );\n\t\t},\n\n\t\tlast: function() {\n\t\t\treturn this.eq( -1 );\n\t\t},\n\n\t\teq: function( i ) {\n\t\t\tvar len = this.length,\n\t\t\t\tj = +i + ( i < 0 ? len : 0 );\n\t\t\treturn this.pushStack( j >= 0 && j < len ? [ this[ j ] ] : [] );\n\t\t},\n\n\t\tend: function() {\n\t\t\treturn this.prevObject || this.constructor();\n\t\t},\n\n\t\t// For internal use only.\n\t\t// Behaves like an Array's method, not like a jQuery method.\n\t\tpush: push,\n\t\tsort: arr.sort,\n\t\tsplice: arr.splice\n\t};\n\n\tjQuery.extend = jQuery.fn.extend = function() {\n\t\tvar options, name, src, copy, copyIsArray, clone,\n\t\t\ttarget = arguments[ 0 ] || {},\n\t\t\ti = 1,\n\t\t\tlength = arguments.length,\n\t\t\tdeep = false;\n\n\t\t// Handle a deep copy situation\n\t\tif ( typeof target === \"boolean\" ) {\n\t\t\tdeep = target;\n\n\t\t\t// Skip the boolean and the target\n\t\t\ttarget = arguments[ i ] || {};\n\t\t\ti++;\n\t\t}\n\n\t\t// Handle case when target is a string or something (possible in deep copy)\n\t\tif ( typeof target !== \"object\" && !jQuery.isFunction( target ) ) {\n\t\t\ttarget = {};\n\t\t}\n\n\t\t// Extend jQuery itself if only one argument is passed\n\t\tif ( i === length ) {\n\t\t\ttarget = this;\n\t\t\ti--;\n\t\t}\n\n\t\tfor ( ; i < length; i++ ) {\n\n\t\t\t// Only deal with non-null/undefined values\n\t\t\tif ( ( options = arguments[ i ] ) != null ) {\n\n\t\t\t\t// Extend the base object\n\t\t\t\tfor ( name in options ) {\n\t\t\t\t\tsrc = target[ name ];\n\t\t\t\t\tcopy = options[ name ];\n\n\t\t\t\t\t// Prevent never-ending loop\n\t\t\t\t\tif ( target === copy ) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Recurse if we're merging plain objects or arrays\n\t\t\t\t\tif ( deep && copy && ( jQuery.isPlainObject( copy ) ||\n\t\t\t\t\t\t( copyIsArray = jQuery.isArray( copy ) ) ) ) {\n\n\t\t\t\t\t\tif ( copyIsArray ) {\n\t\t\t\t\t\t\tcopyIsArray = false;\n\t\t\t\t\t\t\tclone = src && jQuery.isArray( src ) ? src : [];\n\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tclone = src && jQuery.isPlainObject( src ) ? src : {};\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Never move original objects, clone them\n\t\t\t\t\t\ttarget[ name ] = jQuery.extend( deep, clone, copy );\n\n\t\t\t\t\t// Don't bring in undefined values\n\t\t\t\t\t} else if ( copy !== undefined ) {\n\t\t\t\t\t\ttarget[ name ] = copy;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Return the modified object\n\t\treturn target;\n\t};\n\n\tjQuery.extend( {\n\n\t\t// Unique for each copy of jQuery on the page\n\t\texpando: \"jQuery\" + ( version + Math.random() ).replace( /\\D/g, \"\" ),\n\n\t\t// Assume jQuery is ready without the ready module\n\t\tisReady: true,\n\n\t\terror: function( msg ) {\n\t\t\tthrow new Error( msg );\n\t\t},\n\n\t\tnoop: function() {},\n\n\t\tisFunction: function( obj ) {\n\t\t\treturn jQuery.type( obj ) === \"function\";\n\t\t},\n\n\t\tisArray: Array.isArray,\n\n\t\tisWindow: function( obj ) {\n\t\t\treturn obj != null && obj === obj.window;\n\t\t},\n\n\t\tisNumeric: function( obj ) {\n\n\t\t\t// parseFloat NaNs numeric-cast false positives (null|true|false|\"\")\n\t\t\t// ...but misinterprets leading-number strings, particularly hex literals (\"0x...\")\n\t\t\t// subtraction forces infinities to NaN\n\t\t\t// adding 1 corrects loss of precision from parseFloat (#15100)\n\t\t\tvar realStringObj = obj && obj.toString();\n\t\t\treturn !jQuery.isArray( obj ) && ( realStringObj - parseFloat( realStringObj ) + 1 ) >= 0;\n\t\t},\n\n\t\tisPlainObject: function( obj ) {\n\n\t\t\t// Not plain objects:\n\t\t\t// - Any object or value whose internal [[Class]] property is not \"[object Object]\"\n\t\t\t// - DOM nodes\n\t\t\t// - window\n\t\t\tif ( jQuery.type( obj ) !== \"object\" || obj.nodeType || jQuery.isWindow( obj ) ) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ( obj.constructor &&\n\t\t\t\t\t!hasOwn.call( obj.constructor.prototype, \"isPrototypeOf\" ) ) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t// If the function hasn't returned already, we're confident that\n\t\t\t// |obj| is a plain object, created by {} or constructed with new Object\n\t\t\treturn true;\n\t\t},\n\n\t\tisEmptyObject: function( obj ) {\n\t\t\tvar name;\n\t\t\tfor ( name in obj ) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t},\n\n\t\ttype: function( obj ) {\n\t\t\tif ( obj == null ) {\n\t\t\t\treturn obj + \"\";\n\t\t\t}\n\n\t\t\t// Support: Android<4.0, iOS<6 (functionish RegExp)\n\t\t\treturn typeof obj === \"object\" || typeof obj === \"function\" ?\n\t\t\t\tclass2type[ toString.call( obj ) ] || \"object\" :\n\t\t\t\ttypeof obj;\n\t\t},\n\n\t\t// Evaluates a script in a global context\n\t\tglobalEval: function( code ) {\n\t\t\tvar script,\n\t\t\t\tindirect = eval;\n\n\t\t\tcode = jQuery.trim( code );\n\n\t\t\tif ( code ) {\n\n\t\t\t\t// If the code includes a valid, prologue position\n\t\t\t\t// strict mode pragma, execute code by injecting a\n\t\t\t\t// script tag into the document.\n\t\t\t\tif ( code.indexOf( \"use strict\" ) === 1 ) {\n\t\t\t\t\tscript = document.createElement( \"script\" );\n\t\t\t\t\tscript.text = code;\n\t\t\t\t\tdocument.head.appendChild( script ).parentNode.removeChild( script );\n\t\t\t\t} else {\n\n\t\t\t\t\t// Otherwise, avoid the DOM node creation, insertion\n\t\t\t\t\t// and removal by using an indirect global eval\n\n\t\t\t\t\tindirect( code );\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\t// Convert dashed to camelCase; used by the css and data modules\n\t\t// Support: IE9-11+\n\t\t// Microsoft forgot to hump their vendor prefix (#9572)\n\t\tcamelCase: function( string ) {\n\t\t\treturn string.replace( rmsPrefix, \"ms-\" ).replace( rdashAlpha, fcamelCase );\n\t\t},\n\n\t\tnodeName: function( elem, name ) {\n\t\t\treturn elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();\n\t\t},\n\n\t\teach: function( obj, callback ) {\n\t\t\tvar length, i = 0;\n\n\t\t\tif ( isArrayLike( obj ) ) {\n\t\t\t\tlength = obj.length;\n\t\t\t\tfor ( ; i < length; i++ ) {\n\t\t\t\t\tif ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tfor ( i in obj ) {\n\t\t\t\t\tif ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn obj;\n\t\t},\n\n\t\t// Support: Android<4.1\n\t\ttrim: function( text ) {\n\t\t\treturn text == null ?\n\t\t\t\t\"\" :\n\t\t\t\t( text + \"\" ).replace( rtrim, \"\" );\n\t\t},\n\n\t\t// results is for internal usage only\n\t\tmakeArray: function( arr, results ) {\n\t\t\tvar ret = results || [];\n\n\t\t\tif ( arr != null ) {\n\t\t\t\tif ( isArrayLike( Object( arr ) ) ) {\n\t\t\t\t\tjQuery.merge( ret,\n\t\t\t\t\t\ttypeof arr === \"string\" ?\n\t\t\t\t\t\t[ arr ] : arr\n\t\t\t\t\t);\n\t\t\t\t} else {\n\t\t\t\t\tpush.call( ret, arr );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn ret;\n\t\t},\n\n\t\tinArray: function( elem, arr, i ) {\n\t\t\treturn arr == null ? -1 : indexOf.call( arr, elem, i );\n\t\t},\n\n\t\tmerge: function( first, second ) {\n\t\t\tvar len = +second.length,\n\t\t\t\tj = 0,\n\t\t\t\ti = first.length;\n\n\t\t\tfor ( ; j < len; j++ ) {\n\t\t\t\tfirst[ i++ ] = second[ j ];\n\t\t\t}\n\n\t\t\tfirst.length = i;\n\n\t\t\treturn first;\n\t\t},\n\n\t\tgrep: function( elems, callback, invert ) {\n\t\t\tvar callbackInverse,\n\t\t\t\tmatches = [],\n\t\t\t\ti = 0,\n\t\t\t\tlength = elems.length,\n\t\t\t\tcallbackExpect = !invert;\n\n\t\t\t// Go through the array, only saving the items\n\t\t\t// that pass the validator function\n\t\t\tfor ( ; i < length; i++ ) {\n\t\t\t\tcallbackInverse = !callback( elems[ i ], i );\n\t\t\t\tif ( callbackInverse !== callbackExpect ) {\n\t\t\t\t\tmatches.push( elems[ i ] );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn matches;\n\t\t},\n\n\t\t// arg is for internal usage only\n\t\tmap: function( elems, callback, arg ) {\n\t\t\tvar length, value,\n\t\t\t\ti = 0,\n\t\t\t\tret = [];\n\n\t\t\t// Go through the array, translating each of the items to their new values\n\t\t\tif ( isArrayLike( elems ) ) {\n\t\t\t\tlength = elems.length;\n\t\t\t\tfor ( ; i < length; i++ ) {\n\t\t\t\t\tvalue = callback( elems[ i ], i, arg );\n\n\t\t\t\t\tif ( value != null ) {\n\t\t\t\t\t\tret.push( value );\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t// Go through every key on the object,\n\t\t\t} else {\n\t\t\t\tfor ( i in elems ) {\n\t\t\t\t\tvalue = callback( elems[ i ], i, arg );\n\n\t\t\t\t\tif ( value != null ) {\n\t\t\t\t\t\tret.push( value );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Flatten any nested arrays\n\t\t\treturn concat.apply( [], ret );\n\t\t},\n\n\t\t// A global GUID counter for objects\n\t\tguid: 1,\n\n\t\t// Bind a function to a context, optionally partially applying any\n\t\t// arguments.\n\t\tproxy: function( fn, context ) {\n\t\t\tvar tmp, args, proxy;\n\n\t\t\tif ( typeof context === \"string\" ) {\n\t\t\t\ttmp = fn[ context ];\n\t\t\t\tcontext = fn;\n\t\t\t\tfn = tmp;\n\t\t\t}\n\n\t\t\t// Quick check to determine if target is callable, in the spec\n\t\t\t// this throws a TypeError, but we will just return undefined.\n\t\t\tif ( !jQuery.isFunction( fn ) ) {\n\t\t\t\treturn undefined;\n\t\t\t}\n\n\t\t\t// Simulated bind\n\t\t\targs = slice.call( arguments, 2 );\n\t\t\tproxy = function() {\n\t\t\t\treturn fn.apply( context || this, args.concat( slice.call( arguments ) ) );\n\t\t\t};\n\n\t\t\t// Set the guid of unique handler to the same of original handler, so it can be removed\n\t\t\tproxy.guid = fn.guid = fn.guid || jQuery.guid++;\n\n\t\t\treturn proxy;\n\t\t},\n\n\t\tnow: Date.now,\n\n\t\t// jQuery.support is not used in Core but other projects attach their\n\t\t// properties to it so it needs to exist.\n\t\tsupport: support\n\t} );\n\n\t// JSHint would error on this code due to the Symbol not being defined in ES5.\n\t// Defining this global in .jshintrc would create a danger of using the global\n\t// unguarded in another place, it seems safer to just disable JSHint for these\n\t// three lines.\n\t/* jshint ignore: start */\n\tif ( typeof Symbol === \"function\" ) {\n\t\tjQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ];\n\t}\n\t/* jshint ignore: end */\n\n\t// Populate the class2type map\n\tjQuery.each( \"Boolean Number String Function Array Date RegExp Object Error Symbol\".split( \" \" ),\n\tfunction( i, name ) {\n\t\tclass2type[ \"[object \" + name + \"]\" ] = name.toLowerCase();\n\t} );\n\n\tfunction isArrayLike( obj ) {\n\n\t\t// Support: iOS 8.2 (not reproducible in simulator)\n\t\t// `in` check used to prevent JIT error (gh-2145)\n\t\t// hasOwn isn't used here due to false negatives\n\t\t// regarding Nodelist length in IE\n\t\tvar length = !!obj && \"length\" in obj && obj.length,\n\t\t\ttype = jQuery.type( obj );\n\n\t\tif ( type === \"function\" || jQuery.isWindow( obj ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn type === \"array\" || length === 0 ||\n\t\t\ttypeof length === \"number\" && length > 0 && ( length - 1 ) in obj;\n\t}\n\tvar Sizzle =\n\t/*!\n\t * Sizzle CSS Selector Engine v2.2.1\n\t * http://sizzlejs.com/\n\t *\n\t * Copyright jQuery Foundation and other contributors\n\t * Released under the MIT license\n\t * http://jquery.org/license\n\t *\n\t * Date: 2015-10-17\n\t */\n\t(function( window ) {\n\n\tvar i,\n\t\tsupport,\n\t\tExpr,\n\t\tgetText,\n\t\tisXML,\n\t\ttokenize,\n\t\tcompile,\n\t\tselect,\n\t\toutermostContext,\n\t\tsortInput,\n\t\thasDuplicate,\n\n\t\t// Local document vars\n\t\tsetDocument,\n\t\tdocument,\n\t\tdocElem,\n\t\tdocumentIsHTML,\n\t\trbuggyQSA,\n\t\trbuggyMatches,\n\t\tmatches,\n\t\tcontains,\n\n\t\t// Instance-specific data\n\t\texpando = \"sizzle\" + 1 * new Date(),\n\t\tpreferredDoc = window.document,\n\t\tdirruns = 0,\n\t\tdone = 0,\n\t\tclassCache = createCache(),\n\t\ttokenCache = createCache(),\n\t\tcompilerCache = createCache(),\n\t\tsortOrder = function( a, b ) {\n\t\t\tif ( a === b ) {\n\t\t\t\thasDuplicate = true;\n\t\t\t}\n\t\t\treturn 0;\n\t\t},\n\n\t\t// General-purpose constants\n\t\tMAX_NEGATIVE = 1 << 31,\n\n\t\t// Instance methods\n\t\thasOwn = ({}).hasOwnProperty,\n\t\tarr = [],\n\t\tpop = arr.pop,\n\t\tpush_native = arr.push,\n\t\tpush = arr.push,\n\t\tslice = arr.slice,\n\t\t// Use a stripped-down indexOf as it's faster than native\n\t\t// http://jsperf.com/thor-indexof-vs-for/5\n\t\tindexOf = function( list, elem ) {\n\t\t\tvar i = 0,\n\t\t\t\tlen = list.length;\n\t\t\tfor ( ; i < len; i++ ) {\n\t\t\t\tif ( list[i] === elem ) {\n\t\t\t\t\treturn i;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn -1;\n\t\t},\n\n\t\tbooleans = \"checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped\",\n\n\t\t// Regular expressions\n\n\t\t// http://www.w3.org/TR/css3-selectors/#whitespace\n\t\twhitespace = \"[\\\\x20\\\\t\\\\r\\\\n\\\\f]\",\n\n\t\t// http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier\n\t\tidentifier = \"(?:\\\\\\\\.|[\\\\w-]|[^\\\\x00-\\\\xa0])+\",\n\n\t\t// Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors\n\t\tattributes = \"\\\\[\" + whitespace + \"*(\" + identifier + \")(?:\" + whitespace +\n\t\t\t// Operator (capture 2)\n\t\t\t\"*([*^$|!~]?=)\" + whitespace +\n\t\t\t// \"Attribute values must be CSS identifiers [capture 5] or strings [capture 3 or capture 4]\"\n\t\t\t\"*(?:'((?:\\\\\\\\.|[^\\\\\\\\'])*)'|\\\"((?:\\\\\\\\.|[^\\\\\\\\\\\"])*)\\\"|(\" + identifier + \"))|)\" + whitespace +\n\t\t\t\"*\\\\]\",\n\n\t\tpseudos = \":(\" + identifier + \")(?:\\\\((\" +\n\t\t\t// To reduce the number of selectors needing tokenize in the preFilter, prefer arguments:\n\t\t\t// 1. quoted (capture 3; capture 4 or capture 5)\n\t\t\t\"('((?:\\\\\\\\.|[^\\\\\\\\'])*)'|\\\"((?:\\\\\\\\.|[^\\\\\\\\\\\"])*)\\\")|\" +\n\t\t\t// 2. simple (capture 6)\n\t\t\t\"((?:\\\\\\\\.|[^\\\\\\\\()[\\\\]]|\" + attributes + \")*)|\" +\n\t\t\t// 3. anything else (capture 2)\n\t\t\t\".*\" +\n\t\t\t\")\\\\)|)\",\n\n\t\t// Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter\n\t\trwhitespace = new RegExp( whitespace + \"+\", \"g\" ),\n\t\trtrim = new RegExp( \"^\" + whitespace + \"+|((?:^|[^\\\\\\\\])(?:\\\\\\\\.)*)\" + whitespace + \"+$\", \"g\" ),\n\n\t\trcomma = new RegExp( \"^\" + whitespace + \"*,\" + whitespace + \"*\" ),\n\t\trcombinators = new RegExp( \"^\" + whitespace + \"*([>+~]|\" + whitespace + \")\" + whitespace + \"*\" ),\n\n\t\trattributeQuotes = new RegExp( \"=\" + whitespace + \"*([^\\\\]'\\\"]*?)\" + whitespace + \"*\\\\]\", \"g\" ),\n\n\t\trpseudo = new RegExp( pseudos ),\n\t\tridentifier = new RegExp( \"^\" + identifier + \"$\" ),\n\n\t\tmatchExpr = {\n\t\t\t\"ID\": new RegExp( \"^#(\" + identifier + \")\" ),\n\t\t\t\"CLASS\": new RegExp( \"^\\\\.(\" + identifier + \")\" ),\n\t\t\t\"TAG\": new RegExp( \"^(\" + identifier + \"|[*])\" ),\n\t\t\t\"ATTR\": new RegExp( \"^\" + attributes ),\n\t\t\t\"PSEUDO\": new RegExp( \"^\" + pseudos ),\n\t\t\t\"CHILD\": new RegExp( \"^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\\\(\" + whitespace +\n\t\t\t\t\"*(even|odd|(([+-]|)(\\\\d*)n|)\" + whitespace + \"*(?:([+-]|)\" + whitespace +\n\t\t\t\t\"*(\\\\d+)|))\" + whitespace + \"*\\\\)|)\", \"i\" ),\n\t\t\t\"bool\": new RegExp( \"^(?:\" + booleans + \")$\", \"i\" ),\n\t\t\t// For use in libraries implementing .is()\n\t\t\t// We use this for POS matching in `select`\n\t\t\t\"needsContext\": new RegExp( \"^\" + whitespace + \"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\\\(\" +\n\t\t\t\twhitespace + \"*((?:-\\\\d)?\\\\d*)\" + whitespace + \"*\\\\)|)(?=[^-]|$)\", \"i\" )\n\t\t},\n\n\t\trinputs = /^(?:input|select|textarea|button)$/i,\n\t\trheader = /^h\\d$/i,\n\n\t\trnative = /^[^{]+\\{\\s*\\[native \\w/,\n\n\t\t// Easily-parseable/retrievable ID or TAG or CLASS selectors\n\t\trquickExpr = /^(?:#([\\w-]+)|(\\w+)|\\.([\\w-]+))$/,\n\n\t\trsibling = /[+~]/,\n\t\trescape = /'|\\\\/g,\n\n\t\t// CSS escapes http://www.w3.org/TR/CSS21/syndata.html#escaped-characters\n\t\trunescape = new RegExp( \"\\\\\\\\([\\\\da-f]{1,6}\" + whitespace + \"?|(\" + whitespace + \")|.)\", \"ig\" ),\n\t\tfunescape = function( _, escaped, escapedWhitespace ) {\n\t\t\tvar high = \"0x\" + escaped - 0x10000;\n\t\t\t// NaN means non-codepoint\n\t\t\t// Support: Firefox<24\n\t\t\t// Workaround erroneous numeric interpretation of +\"0x\"\n\t\t\treturn high !== high || escapedWhitespace ?\n\t\t\t\tescaped :\n\t\t\t\thigh < 0 ?\n\t\t\t\t\t// BMP codepoint\n\t\t\t\t\tString.fromCharCode( high + 0x10000 ) :\n\t\t\t\t\t// Supplemental Plane codepoint (surrogate pair)\n\t\t\t\t\tString.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 );\n\t\t},\n\n\t\t// Used for iframes\n\t\t// See setDocument()\n\t\t// Removing the function wrapper causes a \"Permission Denied\"\n\t\t// error in IE\n\t\tunloadHandler = function() {\n\t\t\tsetDocument();\n\t\t};\n\n\t// Optimize for push.apply( _, NodeList )\n\ttry {\n\t\tpush.apply(\n\t\t\t(arr = slice.call( preferredDoc.childNodes )),\n\t\t\tpreferredDoc.childNodes\n\t\t);\n\t\t// Support: Android<4.0\n\t\t// Detect silently failing push.apply\n\t\tarr[ preferredDoc.childNodes.length ].nodeType;\n\t} catch ( e ) {\n\t\tpush = { apply: arr.length ?\n\n\t\t\t// Leverage slice if possible\n\t\t\tfunction( target, els ) {\n\t\t\t\tpush_native.apply( target, slice.call(els) );\n\t\t\t} :\n\n\t\t\t// Support: IE<9\n\t\t\t// Otherwise append directly\n\t\t\tfunction( target, els ) {\n\t\t\t\tvar j = target.length,\n\t\t\t\t\ti = 0;\n\t\t\t\t// Can't trust NodeList.length\n\t\t\t\twhile ( (target[j++] = els[i++]) ) {}\n\t\t\t\ttarget.length = j - 1;\n\t\t\t}\n\t\t};\n\t}\n\n\tfunction Sizzle( selector, context, results, seed ) {\n\t\tvar m, i, elem, nid, nidselect, match, groups, newSelector,\n\t\t\tnewContext = context && context.ownerDocument,\n\n\t\t\t// nodeType defaults to 9, since context defaults to document\n\t\t\tnodeType = context ? context.nodeType : 9;\n\n\t\tresults = results || [];\n\n\t\t// Return early from calls with invalid selector or context\n\t\tif ( typeof selector !== \"string\" || !selector ||\n\t\t\tnodeType !== 1 && nodeType !== 9 && nodeType !== 11 ) {\n\n\t\t\treturn results;\n\t\t}\n\n\t\t// Try to shortcut find operations (as opposed to filters) in HTML documents\n\t\tif ( !seed ) {\n\n\t\t\tif ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) {\n\t\t\t\tsetDocument( context );\n\t\t\t}\n\t\t\tcontext = context || document;\n\n\t\t\tif ( documentIsHTML ) {\n\n\t\t\t\t// If the selector is sufficiently simple, try using a \"get*By*\" DOM method\n\t\t\t\t// (excepting DocumentFragment context, where the methods don't exist)\n\t\t\t\tif ( nodeType !== 11 && (match = rquickExpr.exec( selector )) ) {\n\n\t\t\t\t\t// ID selector\n\t\t\t\t\tif ( (m = match[1]) ) {\n\n\t\t\t\t\t\t// Document context\n\t\t\t\t\t\tif ( nodeType === 9 ) {\n\t\t\t\t\t\t\tif ( (elem = context.getElementById( m )) ) {\n\n\t\t\t\t\t\t\t\t// Support: IE, Opera, Webkit\n\t\t\t\t\t\t\t\t// TODO: identify versions\n\t\t\t\t\t\t\t\t// getElementById can match elements by name instead of ID\n\t\t\t\t\t\t\t\tif ( elem.id === m ) {\n\t\t\t\t\t\t\t\t\tresults.push( elem );\n\t\t\t\t\t\t\t\t\treturn results;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\treturn results;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Element context\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t// Support: IE, Opera, Webkit\n\t\t\t\t\t\t\t// TODO: identify versions\n\t\t\t\t\t\t\t// getElementById can match elements by name instead of ID\n\t\t\t\t\t\t\tif ( newContext && (elem = newContext.getElementById( m )) &&\n\t\t\t\t\t\t\t\tcontains( context, elem ) &&\n\t\t\t\t\t\t\t\telem.id === m ) {\n\n\t\t\t\t\t\t\t\tresults.push( elem );\n\t\t\t\t\t\t\t\treturn results;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t// Type selector\n\t\t\t\t\t} else if ( match[2] ) {\n\t\t\t\t\t\tpush.apply( results, context.getElementsByTagName( selector ) );\n\t\t\t\t\t\treturn results;\n\n\t\t\t\t\t// Class selector\n\t\t\t\t\t} else if ( (m = match[3]) && support.getElementsByClassName &&\n\t\t\t\t\t\tcontext.getElementsByClassName ) {\n\n\t\t\t\t\t\tpush.apply( results, context.getElementsByClassName( m ) );\n\t\t\t\t\t\treturn results;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Take advantage of querySelectorAll\n\t\t\t\tif ( support.qsa &&\n\t\t\t\t\t!compilerCache[ selector + \" \" ] &&\n\t\t\t\t\t(!rbuggyQSA || !rbuggyQSA.test( selector )) ) {\n\n\t\t\t\t\tif ( nodeType !== 1 ) {\n\t\t\t\t\t\tnewContext = context;\n\t\t\t\t\t\tnewSelector = selector;\n\n\t\t\t\t\t// qSA looks outside Element context, which is not what we want\n\t\t\t\t\t// Thanks to Andrew Dupont for this workaround technique\n\t\t\t\t\t// Support: IE <=8\n\t\t\t\t\t// Exclude object elements\n\t\t\t\t\t} else if ( context.nodeName.toLowerCase() !== \"object\" ) {\n\n\t\t\t\t\t\t// Capture the context ID, setting it first if necessary\n\t\t\t\t\t\tif ( (nid = context.getAttribute( \"id\" )) ) {\n\t\t\t\t\t\t\tnid = nid.replace( rescape, \"\\\\$&\" );\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcontext.setAttribute( \"id\", (nid = expando) );\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Prefix every selector in the list\n\t\t\t\t\t\tgroups = tokenize( selector );\n\t\t\t\t\t\ti = groups.length;\n\t\t\t\t\t\tnidselect = ridentifier.test( nid ) ? \"#\" + nid : \"[id='\" + nid + \"']\";\n\t\t\t\t\t\twhile ( i-- ) {\n\t\t\t\t\t\t\tgroups[i] = nidselect + \" \" + toSelector( groups[i] );\n\t\t\t\t\t\t}\n\t\t\t\t\t\tnewSelector = groups.join( \",\" );\n\n\t\t\t\t\t\t// Expand context for sibling selectors\n\t\t\t\t\t\tnewContext = rsibling.test( selector ) && testContext( context.parentNode ) ||\n\t\t\t\t\t\t\tcontext;\n\t\t\t\t\t}\n\n\t\t\t\t\tif ( newSelector ) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tpush.apply( results,\n\t\t\t\t\t\t\t\tnewContext.querySelectorAll( newSelector )\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\treturn results;\n\t\t\t\t\t\t} catch ( qsaError ) {\n\t\t\t\t\t\t} finally {\n\t\t\t\t\t\t\tif ( nid === expando ) {\n\t\t\t\t\t\t\t\tcontext.removeAttribute( \"id\" );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// All others\n\t\treturn select( selector.replace( rtrim, \"$1\" ), context, results, seed );\n\t}\n\n\t/**\n\t * Create key-value caches of limited size\n\t * @returns {function(string, object)} Returns the Object data after storing it on itself with\n\t *\tproperty name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength)\n\t *\tdeleting the oldest entry\n\t */\n\tfunction createCache() {\n\t\tvar keys = [];\n\n\t\tfunction cache( key, value ) {\n\t\t\t// Use (key + \" \") to avoid collision with native prototype properties (see Issue #157)\n\t\t\tif ( keys.push( key + \" \" ) > Expr.cacheLength ) {\n\t\t\t\t// Only keep the most recent entries\n\t\t\t\tdelete cache[ keys.shift() ];\n\t\t\t}\n\t\t\treturn (cache[ key + \" \" ] = value);\n\t\t}\n\t\treturn cache;\n\t}\n\n\t/**\n\t * Mark a function for special use by Sizzle\n\t * @param {Function} fn The function to mark\n\t */\n\tfunction markFunction( fn ) {\n\t\tfn[ expando ] = true;\n\t\treturn fn;\n\t}\n\n\t/**\n\t * Support testing using an element\n\t * @param {Function} fn Passed the created div and expects a boolean result\n\t */\n\tfunction assert( fn ) {\n\t\tvar div = document.createElement(\"div\");\n\n\t\ttry {\n\t\t\treturn !!fn( div );\n\t\t} catch (e) {\n\t\t\treturn false;\n\t\t} finally {\n\t\t\t// Remove from its parent by default\n\t\t\tif ( div.parentNode ) {\n\t\t\t\tdiv.parentNode.removeChild( div );\n\t\t\t}\n\t\t\t// release memory in IE\n\t\t\tdiv = null;\n\t\t}\n\t}\n\n\t/**\n\t * Adds the same handler for all of the specified attrs\n\t * @param {String} attrs Pipe-separated list of attributes\n\t * @param {Function} handler The method that will be applied\n\t */\n\tfunction addHandle( attrs, handler ) {\n\t\tvar arr = attrs.split(\"|\"),\n\t\t\ti = arr.length;\n\n\t\twhile ( i-- ) {\n\t\t\tExpr.attrHandle[ arr[i] ] = handler;\n\t\t}\n\t}\n\n\t/**\n\t * Checks document order of two siblings\n\t * @param {Element} a\n\t * @param {Element} b\n\t * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b\n\t */\n\tfunction siblingCheck( a, b ) {\n\t\tvar cur = b && a,\n\t\t\tdiff = cur && a.nodeType === 1 && b.nodeType === 1 &&\n\t\t\t\t( ~b.sourceIndex || MAX_NEGATIVE ) -\n\t\t\t\t( ~a.sourceIndex || MAX_NEGATIVE );\n\n\t\t// Use IE sourceIndex if available on both nodes\n\t\tif ( diff ) {\n\t\t\treturn diff;\n\t\t}\n\n\t\t// Check if b follows a\n\t\tif ( cur ) {\n\t\t\twhile ( (cur = cur.nextSibling) ) {\n\t\t\t\tif ( cur === b ) {\n\t\t\t\t\treturn -1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn a ? 1 : -1;\n\t}\n\n\t/**\n\t * Returns a function to use in pseudos for input types\n\t * @param {String} type\n\t */\n\tfunction createInputPseudo( type ) {\n\t\treturn function( elem ) {\n\t\t\tvar name = elem.nodeName.toLowerCase();\n\t\t\treturn name === \"input\" && elem.type === type;\n\t\t};\n\t}\n\n\t/**\n\t * Returns a function to use in pseudos for buttons\n\t * @param {String} type\n\t */\n\tfunction createButtonPseudo( type ) {\n\t\treturn function( elem ) {\n\t\t\tvar name = elem.nodeName.toLowerCase();\n\t\t\treturn (name === \"input\" || name === \"button\") && elem.type === type;\n\t\t};\n\t}\n\n\t/**\n\t * Returns a function to use in pseudos for positionals\n\t * @param {Function} fn\n\t */\n\tfunction createPositionalPseudo( fn ) {\n\t\treturn markFunction(function( argument ) {\n\t\t\targument = +argument;\n\t\t\treturn markFunction(function( seed, matches ) {\n\t\t\t\tvar j,\n\t\t\t\t\tmatchIndexes = fn( [], seed.length, argument ),\n\t\t\t\t\ti = matchIndexes.length;\n\n\t\t\t\t// Match elements found at the specified indexes\n\t\t\t\twhile ( i-- ) {\n\t\t\t\t\tif ( seed[ (j = matchIndexes[i]) ] ) {\n\t\t\t\t\t\tseed[j] = !(matches[j] = seed[j]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\t}\n\n\t/**\n\t * Checks a node for validity as a Sizzle context\n\t * @param {Element|Object=} context\n\t * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value\n\t */\n\tfunction testContext( context ) {\n\t\treturn context && typeof context.getElementsByTagName !== \"undefined\" && context;\n\t}\n\n\t// Expose support vars for convenience\n\tsupport = Sizzle.support = {};\n\n\t/**\n\t * Detects XML nodes\n\t * @param {Element|Object} elem An element or a document\n\t * @returns {Boolean} True iff elem is a non-HTML XML node\n\t */\n\tisXML = Sizzle.isXML = function( elem ) {\n\t\t// documentElement is verified for cases where it doesn't yet exist\n\t\t// (such as loading iframes in IE - #4833)\n\t\tvar documentElement = elem && (elem.ownerDocument || elem).documentElement;\n\t\treturn documentElement ? documentElement.nodeName !== \"HTML\" : false;\n\t};\n\n\t/**\n\t * Sets document-related variables once based on the current document\n\t * @param {Element|Object} [doc] An element or document object to use to set the document\n\t * @returns {Object} Returns the current document\n\t */\n\tsetDocument = Sizzle.setDocument = function( node ) {\n\t\tvar hasCompare, parent,\n\t\t\tdoc = node ? node.ownerDocument || node : preferredDoc;\n\n\t\t// Return early if doc is invalid or already selected\n\t\tif ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) {\n\t\t\treturn document;\n\t\t}\n\n\t\t// Update global variables\n\t\tdocument = doc;\n\t\tdocElem = document.documentElement;\n\t\tdocumentIsHTML = !isXML( document );\n\n\t\t// Support: IE 9-11, Edge\n\t\t// Accessing iframe documents after unload throws \"permission denied\" errors (jQuery #13936)\n\t\tif ( (parent = document.defaultView) && parent.top !== parent ) {\n\t\t\t// Support: IE 11\n\t\t\tif ( parent.addEventListener ) {\n\t\t\t\tparent.addEventListener( \"unload\", unloadHandler, false );\n\n\t\t\t// Support: IE 9 - 10 only\n\t\t\t} else if ( parent.attachEvent ) {\n\t\t\t\tparent.attachEvent( \"onunload\", unloadHandler );\n\t\t\t}\n\t\t}\n\n\t\t/* Attributes\n\t\t---------------------------------------------------------------------- */\n\n\t\t// Support: IE<8\n\t\t// Verify that getAttribute really returns attributes and not properties\n\t\t// (excepting IE8 booleans)\n\t\tsupport.attributes = assert(function( div ) {\n\t\t\tdiv.className = \"i\";\n\t\t\treturn !div.getAttribute(\"className\");\n\t\t});\n\n\t\t/* getElement(s)By*\n\t\t---------------------------------------------------------------------- */\n\n\t\t// Check if getElementsByTagName(\"*\") returns only elements\n\t\tsupport.getElementsByTagName = assert(function( div ) {\n\t\t\tdiv.appendChild( document.createComment(\"\") );\n\t\t\treturn !div.getElementsByTagName(\"*\").length;\n\t\t});\n\n\t\t// Support: IE<9\n\t\tsupport.getElementsByClassName = rnative.test( document.getElementsByClassName );\n\n\t\t// Support: IE<10\n\t\t// Check if getElementById returns elements by name\n\t\t// The broken getElementById methods don't pick up programatically-set names,\n\t\t// so use a roundabout getElementsByName test\n\t\tsupport.getById = assert(function( div ) {\n\t\t\tdocElem.appendChild( div ).id = expando;\n\t\t\treturn !document.getElementsByName || !document.getElementsByName( expando ).length;\n\t\t});\n\n\t\t// ID find and filter\n\t\tif ( support.getById ) {\n\t\t\tExpr.find[\"ID\"] = function( id, context ) {\n\t\t\t\tif ( typeof context.getElementById !== \"undefined\" && documentIsHTML ) {\n\t\t\t\t\tvar m = context.getElementById( id );\n\t\t\t\t\treturn m ? [ m ] : [];\n\t\t\t\t}\n\t\t\t};\n\t\t\tExpr.filter[\"ID\"] = function( id ) {\n\t\t\t\tvar attrId = id.replace( runescape, funescape );\n\t\t\t\treturn function( elem ) {\n\t\t\t\t\treturn elem.getAttribute(\"id\") === attrId;\n\t\t\t\t};\n\t\t\t};\n\t\t} else {\n\t\t\t// Support: IE6/7\n\t\t\t// getElementById is not reliable as a find shortcut\n\t\t\tdelete Expr.find[\"ID\"];\n\n\t\t\tExpr.filter[\"ID\"] =  function( id ) {\n\t\t\t\tvar attrId = id.replace( runescape, funescape );\n\t\t\t\treturn function( elem ) {\n\t\t\t\t\tvar node = typeof elem.getAttributeNode !== \"undefined\" &&\n\t\t\t\t\t\telem.getAttributeNode(\"id\");\n\t\t\t\t\treturn node && node.value === attrId;\n\t\t\t\t};\n\t\t\t};\n\t\t}\n\n\t\t// Tag\n\t\tExpr.find[\"TAG\"] = support.getElementsByTagName ?\n\t\t\tfunction( tag, context ) {\n\t\t\t\tif ( typeof context.getElementsByTagName !== \"undefined\" ) {\n\t\t\t\t\treturn context.getElementsByTagName( tag );\n\n\t\t\t\t// DocumentFragment nodes don't have gEBTN\n\t\t\t\t} else if ( support.qsa ) {\n\t\t\t\t\treturn context.querySelectorAll( tag );\n\t\t\t\t}\n\t\t\t} :\n\n\t\t\tfunction( tag, context ) {\n\t\t\t\tvar elem,\n\t\t\t\t\ttmp = [],\n\t\t\t\t\ti = 0,\n\t\t\t\t\t// By happy coincidence, a (broken) gEBTN appears on DocumentFragment nodes too\n\t\t\t\t\tresults = context.getElementsByTagName( tag );\n\n\t\t\t\t// Filter out possible comments\n\t\t\t\tif ( tag === \"*\" ) {\n\t\t\t\t\twhile ( (elem = results[i++]) ) {\n\t\t\t\t\t\tif ( elem.nodeType === 1 ) {\n\t\t\t\t\t\t\ttmp.push( elem );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\treturn tmp;\n\t\t\t\t}\n\t\t\t\treturn results;\n\t\t\t};\n\n\t\t// Class\n\t\tExpr.find[\"CLASS\"] = support.getElementsByClassName && function( className, context ) {\n\t\t\tif ( typeof context.getElementsByClassName !== \"undefined\" && documentIsHTML ) {\n\t\t\t\treturn context.getElementsByClassName( className );\n\t\t\t}\n\t\t};\n\n\t\t/* QSA/matchesSelector\n\t\t---------------------------------------------------------------------- */\n\n\t\t// QSA and matchesSelector support\n\n\t\t// matchesSelector(:active) reports false when true (IE9/Opera 11.5)\n\t\trbuggyMatches = [];\n\n\t\t// qSa(:focus) reports false when true (Chrome 21)\n\t\t// We allow this because of a bug in IE8/9 that throws an error\n\t\t// whenever `document.activeElement` is accessed on an iframe\n\t\t// So, we allow :focus to pass through QSA all the time to avoid the IE error\n\t\t// See http://bugs.jquery.com/ticket/13378\n\t\trbuggyQSA = [];\n\n\t\tif ( (support.qsa = rnative.test( document.querySelectorAll )) ) {\n\t\t\t// Build QSA regex\n\t\t\t// Regex strategy adopted from Diego Perini\n\t\t\tassert(function( div ) {\n\t\t\t\t// Select is set to empty string on purpose\n\t\t\t\t// This is to test IE's treatment of not explicitly\n\t\t\t\t// setting a boolean content attribute,\n\t\t\t\t// since its presence should be enough\n\t\t\t\t// http://bugs.jquery.com/ticket/12359\n\t\t\t\tdocElem.appendChild( div ).innerHTML = \"<a id='\" + expando + \"'></a>\" +\n\t\t\t\t\t\"<select id='\" + expando + \"-\\r\\\\' msallowcapture=''>\" +\n\t\t\t\t\t\"<option selected=''></option></select>\";\n\n\t\t\t\t// Support: IE8, Opera 11-12.16\n\t\t\t\t// Nothing should be selected when empty strings follow ^= or $= or *=\n\t\t\t\t// The test attribute must be unknown in Opera but \"safe\" for WinRT\n\t\t\t\t// http://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section\n\t\t\t\tif ( div.querySelectorAll(\"[msallowcapture^='']\").length ) {\n\t\t\t\t\trbuggyQSA.push( \"[*^$]=\" + whitespace + \"*(?:''|\\\"\\\")\" );\n\t\t\t\t}\n\n\t\t\t\t// Support: IE8\n\t\t\t\t// Boolean attributes and \"value\" are not treated correctly\n\t\t\t\tif ( !div.querySelectorAll(\"[selected]\").length ) {\n\t\t\t\t\trbuggyQSA.push( \"\\\\[\" + whitespace + \"*(?:value|\" + booleans + \")\" );\n\t\t\t\t}\n\n\t\t\t\t// Support: Chrome<29, Android<4.4, Safari<7.0+, iOS<7.0+, PhantomJS<1.9.8+\n\t\t\t\tif ( !div.querySelectorAll( \"[id~=\" + expando + \"-]\" ).length ) {\n\t\t\t\t\trbuggyQSA.push(\"~=\");\n\t\t\t\t}\n\n\t\t\t\t// Webkit/Opera - :checked should return selected option elements\n\t\t\t\t// http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked\n\t\t\t\t// IE8 throws error here and will not see later tests\n\t\t\t\tif ( !div.querySelectorAll(\":checked\").length ) {\n\t\t\t\t\trbuggyQSA.push(\":checked\");\n\t\t\t\t}\n\n\t\t\t\t// Support: Safari 8+, iOS 8+\n\t\t\t\t// https://bugs.webkit.org/show_bug.cgi?id=136851\n\t\t\t\t// In-page `selector#id sibing-combinator selector` fails\n\t\t\t\tif ( !div.querySelectorAll( \"a#\" + expando + \"+*\" ).length ) {\n\t\t\t\t\trbuggyQSA.push(\".#.+[+~]\");\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tassert(function( div ) {\n\t\t\t\t// Support: Windows 8 Native Apps\n\t\t\t\t// The type and name attributes are restricted during .innerHTML assignment\n\t\t\t\tvar input = document.createElement(\"input\");\n\t\t\t\tinput.setAttribute( \"type\", \"hidden\" );\n\t\t\t\tdiv.appendChild( input ).setAttribute( \"name\", \"D\" );\n\n\t\t\t\t// Support: IE8\n\t\t\t\t// Enforce case-sensitivity of name attribute\n\t\t\t\tif ( div.querySelectorAll(\"[name=d]\").length ) {\n\t\t\t\t\trbuggyQSA.push( \"name\" + whitespace + \"*[*^$|!~]?=\" );\n\t\t\t\t}\n\n\t\t\t\t// FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled)\n\t\t\t\t// IE8 throws error here and will not see later tests\n\t\t\t\tif ( !div.querySelectorAll(\":enabled\").length ) {\n\t\t\t\t\trbuggyQSA.push( \":enabled\", \":disabled\" );\n\t\t\t\t}\n\n\t\t\t\t// Opera 10-11 does not throw on post-comma invalid pseudos\n\t\t\t\tdiv.querySelectorAll(\"*,:x\");\n\t\t\t\trbuggyQSA.push(\",.*:\");\n\t\t\t});\n\t\t}\n\n\t\tif ( (support.matchesSelector = rnative.test( (matches = docElem.matches ||\n\t\t\tdocElem.webkitMatchesSelector ||\n\t\t\tdocElem.mozMatchesSelector ||\n\t\t\tdocElem.oMatchesSelector ||\n\t\t\tdocElem.msMatchesSelector) )) ) {\n\n\t\t\tassert(function( div ) {\n\t\t\t\t// Check to see if it's possible to do matchesSelector\n\t\t\t\t// on a disconnected node (IE 9)\n\t\t\t\tsupport.disconnectedMatch = matches.call( div, \"div\" );\n\n\t\t\t\t// This should fail with an exception\n\t\t\t\t// Gecko does not error, returns false instead\n\t\t\t\tmatches.call( div, \"[s!='']:x\" );\n\t\t\t\trbuggyMatches.push( \"!=\", pseudos );\n\t\t\t});\n\t\t}\n\n\t\trbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join(\"|\") );\n\t\trbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join(\"|\") );\n\n\t\t/* Contains\n\t\t---------------------------------------------------------------------- */\n\t\thasCompare = rnative.test( docElem.compareDocumentPosition );\n\n\t\t// Element contains another\n\t\t// Purposefully self-exclusive\n\t\t// As in, an element does not contain itself\n\t\tcontains = hasCompare || rnative.test( docElem.contains ) ?\n\t\t\tfunction( a, b ) {\n\t\t\t\tvar adown = a.nodeType === 9 ? a.documentElement : a,\n\t\t\t\t\tbup = b && b.parentNode;\n\t\t\t\treturn a === bup || !!( bup && bup.nodeType === 1 && (\n\t\t\t\t\tadown.contains ?\n\t\t\t\t\t\tadown.contains( bup ) :\n\t\t\t\t\t\ta.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16\n\t\t\t\t));\n\t\t\t} :\n\t\t\tfunction( a, b ) {\n\t\t\t\tif ( b ) {\n\t\t\t\t\twhile ( (b = b.parentNode) ) {\n\t\t\t\t\t\tif ( b === a ) {\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t};\n\n\t\t/* Sorting\n\t\t---------------------------------------------------------------------- */\n\n\t\t// Document order sorting\n\t\tsortOrder = hasCompare ?\n\t\tfunction( a, b ) {\n\n\t\t\t// Flag for duplicate removal\n\t\t\tif ( a === b ) {\n\t\t\t\thasDuplicate = true;\n\t\t\t\treturn 0;\n\t\t\t}\n\n\t\t\t// Sort on method existence if only one input has compareDocumentPosition\n\t\t\tvar compare = !a.compareDocumentPosition - !b.compareDocumentPosition;\n\t\t\tif ( compare ) {\n\t\t\t\treturn compare;\n\t\t\t}\n\n\t\t\t// Calculate position if both inputs belong to the same document\n\t\t\tcompare = ( a.ownerDocument || a ) === ( b.ownerDocument || b ) ?\n\t\t\t\ta.compareDocumentPosition( b ) :\n\n\t\t\t\t// Otherwise we know they are disconnected\n\t\t\t\t1;\n\n\t\t\t// Disconnected nodes\n\t\t\tif ( compare & 1 ||\n\t\t\t\t(!support.sortDetached && b.compareDocumentPosition( a ) === compare) ) {\n\n\t\t\t\t// Choose the first element that is related to our preferred document\n\t\t\t\tif ( a === document || a.ownerDocument === preferredDoc && contains(preferredDoc, a) ) {\n\t\t\t\t\treturn -1;\n\t\t\t\t}\n\t\t\t\tif ( b === document || b.ownerDocument === preferredDoc && contains(preferredDoc, b) ) {\n\t\t\t\t\treturn 1;\n\t\t\t\t}\n\n\t\t\t\t// Maintain original order\n\t\t\t\treturn sortInput ?\n\t\t\t\t\t( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) :\n\t\t\t\t\t0;\n\t\t\t}\n\n\t\t\treturn compare & 4 ? -1 : 1;\n\t\t} :\n\t\tfunction( a, b ) {\n\t\t\t// Exit early if the nodes are identical\n\t\t\tif ( a === b ) {\n\t\t\t\thasDuplicate = true;\n\t\t\t\treturn 0;\n\t\t\t}\n\n\t\t\tvar cur,\n\t\t\t\ti = 0,\n\t\t\t\taup = a.parentNode,\n\t\t\t\tbup = b.parentNode,\n\t\t\t\tap = [ a ],\n\t\t\t\tbp = [ b ];\n\n\t\t\t// Parentless nodes are either documents or disconnected\n\t\t\tif ( !aup || !bup ) {\n\t\t\t\treturn a === document ? -1 :\n\t\t\t\t\tb === document ? 1 :\n\t\t\t\t\taup ? -1 :\n\t\t\t\t\tbup ? 1 :\n\t\t\t\t\tsortInput ?\n\t\t\t\t\t( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) :\n\t\t\t\t\t0;\n\n\t\t\t// If the nodes are siblings, we can do a quick check\n\t\t\t} else if ( aup === bup ) {\n\t\t\t\treturn siblingCheck( a, b );\n\t\t\t}\n\n\t\t\t// Otherwise we need full lists of their ancestors for comparison\n\t\t\tcur = a;\n\t\t\twhile ( (cur = cur.parentNode) ) {\n\t\t\t\tap.unshift( cur );\n\t\t\t}\n\t\t\tcur = b;\n\t\t\twhile ( (cur = cur.parentNode) ) {\n\t\t\t\tbp.unshift( cur );\n\t\t\t}\n\n\t\t\t// Walk down the tree looking for a discrepancy\n\t\t\twhile ( ap[i] === bp[i] ) {\n\t\t\t\ti++;\n\t\t\t}\n\n\t\t\treturn i ?\n\t\t\t\t// Do a sibling check if the nodes have a common ancestor\n\t\t\t\tsiblingCheck( ap[i], bp[i] ) :\n\n\t\t\t\t// Otherwise nodes in our document sort first\n\t\t\t\tap[i] === preferredDoc ? -1 :\n\t\t\t\tbp[i] === preferredDoc ? 1 :\n\t\t\t\t0;\n\t\t};\n\n\t\treturn document;\n\t};\n\n\tSizzle.matches = function( expr, elements ) {\n\t\treturn Sizzle( expr, null, null, elements );\n\t};\n\n\tSizzle.matchesSelector = function( elem, expr ) {\n\t\t// Set document vars if needed\n\t\tif ( ( elem.ownerDocument || elem ) !== document ) {\n\t\t\tsetDocument( elem );\n\t\t}\n\n\t\t// Make sure that attribute selectors are quoted\n\t\texpr = expr.replace( rattributeQuotes, \"='$1']\" );\n\n\t\tif ( support.matchesSelector && documentIsHTML &&\n\t\t\t!compilerCache[ expr + \" \" ] &&\n\t\t\t( !rbuggyMatches || !rbuggyMatches.test( expr ) ) &&\n\t\t\t( !rbuggyQSA     || !rbuggyQSA.test( expr ) ) ) {\n\n\t\t\ttry {\n\t\t\t\tvar ret = matches.call( elem, expr );\n\n\t\t\t\t// IE 9's matchesSelector returns false on disconnected nodes\n\t\t\t\tif ( ret || support.disconnectedMatch ||\n\t\t\t\t\t\t// As well, disconnected nodes are said to be in a document\n\t\t\t\t\t\t// fragment in IE 9\n\t\t\t\t\t\telem.document && elem.document.nodeType !== 11 ) {\n\t\t\t\t\treturn ret;\n\t\t\t\t}\n\t\t\t} catch (e) {}\n\t\t}\n\n\t\treturn Sizzle( expr, document, null, [ elem ] ).length > 0;\n\t};\n\n\tSizzle.contains = function( context, elem ) {\n\t\t// Set document vars if needed\n\t\tif ( ( context.ownerDocument || context ) !== document ) {\n\t\t\tsetDocument( context );\n\t\t}\n\t\treturn contains( context, elem );\n\t};\n\n\tSizzle.attr = function( elem, name ) {\n\t\t// Set document vars if needed\n\t\tif ( ( elem.ownerDocument || elem ) !== document ) {\n\t\t\tsetDocument( elem );\n\t\t}\n\n\t\tvar fn = Expr.attrHandle[ name.toLowerCase() ],\n\t\t\t// Don't get fooled by Object.prototype properties (jQuery #13807)\n\t\t\tval = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ?\n\t\t\t\tfn( elem, name, !documentIsHTML ) :\n\t\t\t\tundefined;\n\n\t\treturn val !== undefined ?\n\t\t\tval :\n\t\t\tsupport.attributes || !documentIsHTML ?\n\t\t\t\telem.getAttribute( name ) :\n\t\t\t\t(val = elem.getAttributeNode(name)) && val.specified ?\n\t\t\t\t\tval.value :\n\t\t\t\t\tnull;\n\t};\n\n\tSizzle.error = function( msg ) {\n\t\tthrow new Error( \"Syntax error, unrecognized expression: \" + msg );\n\t};\n\n\t/**\n\t * Document sorting and removing duplicates\n\t * @param {ArrayLike} results\n\t */\n\tSizzle.uniqueSort = function( results ) {\n\t\tvar elem,\n\t\t\tduplicates = [],\n\t\t\tj = 0,\n\t\t\ti = 0;\n\n\t\t// Unless we *know* we can detect duplicates, assume their presence\n\t\thasDuplicate = !support.detectDuplicates;\n\t\tsortInput = !support.sortStable && results.slice( 0 );\n\t\tresults.sort( sortOrder );\n\n\t\tif ( hasDuplicate ) {\n\t\t\twhile ( (elem = results[i++]) ) {\n\t\t\t\tif ( elem === results[ i ] ) {\n\t\t\t\t\tj = duplicates.push( i );\n\t\t\t\t}\n\t\t\t}\n\t\t\twhile ( j-- ) {\n\t\t\t\tresults.splice( duplicates[ j ], 1 );\n\t\t\t}\n\t\t}\n\n\t\t// Clear input after sorting to release objects\n\t\t// See https://github.com/jquery/sizzle/pull/225\n\t\tsortInput = null;\n\n\t\treturn results;\n\t};\n\n\t/**\n\t * Utility function for retrieving the text value of an array of DOM nodes\n\t * @param {Array|Element} elem\n\t */\n\tgetText = Sizzle.getText = function( elem ) {\n\t\tvar node,\n\t\t\tret = \"\",\n\t\t\ti = 0,\n\t\t\tnodeType = elem.nodeType;\n\n\t\tif ( !nodeType ) {\n\t\t\t// If no nodeType, this is expected to be an array\n\t\t\twhile ( (node = elem[i++]) ) {\n\t\t\t\t// Do not traverse comment nodes\n\t\t\t\tret += getText( node );\n\t\t\t}\n\t\t} else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) {\n\t\t\t// Use textContent for elements\n\t\t\t// innerText usage removed for consistency of new lines (jQuery #11153)\n\t\t\tif ( typeof elem.textContent === \"string\" ) {\n\t\t\t\treturn elem.textContent;\n\t\t\t} else {\n\t\t\t\t// Traverse its children\n\t\t\t\tfor ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {\n\t\t\t\t\tret += getText( elem );\n\t\t\t\t}\n\t\t\t}\n\t\t} else if ( nodeType === 3 || nodeType === 4 ) {\n\t\t\treturn elem.nodeValue;\n\t\t}\n\t\t// Do not include comment or processing instruction nodes\n\n\t\treturn ret;\n\t};\n\n\tExpr = Sizzle.selectors = {\n\n\t\t// Can be adjusted by the user\n\t\tcacheLength: 50,\n\n\t\tcreatePseudo: markFunction,\n\n\t\tmatch: matchExpr,\n\n\t\tattrHandle: {},\n\n\t\tfind: {},\n\n\t\trelative: {\n\t\t\t\">\": { dir: \"parentNode\", first: true },\n\t\t\t\" \": { dir: \"parentNode\" },\n\t\t\t\"+\": { dir: \"previousSibling\", first: true },\n\t\t\t\"~\": { dir: \"previousSibling\" }\n\t\t},\n\n\t\tpreFilter: {\n\t\t\t\"ATTR\": function( match ) {\n\t\t\t\tmatch[1] = match[1].replace( runescape, funescape );\n\n\t\t\t\t// Move the given value to match[3] whether quoted or unquoted\n\t\t\t\tmatch[3] = ( match[3] || match[4] || match[5] || \"\" ).replace( runescape, funescape );\n\n\t\t\t\tif ( match[2] === \"~=\" ) {\n\t\t\t\t\tmatch[3] = \" \" + match[3] + \" \";\n\t\t\t\t}\n\n\t\t\t\treturn match.slice( 0, 4 );\n\t\t\t},\n\n\t\t\t\"CHILD\": function( match ) {\n\t\t\t\t/* matches from matchExpr[\"CHILD\"]\n\t\t\t\t\t1 type (only|nth|...)\n\t\t\t\t\t2 what (child|of-type)\n\t\t\t\t\t3 argument (even|odd|\\d*|\\d*n([+-]\\d+)?|...)\n\t\t\t\t\t4 xn-component of xn+y argument ([+-]?\\d*n|)\n\t\t\t\t\t5 sign of xn-component\n\t\t\t\t\t6 x of xn-component\n\t\t\t\t\t7 sign of y-component\n\t\t\t\t\t8 y of y-component\n\t\t\t\t*/\n\t\t\t\tmatch[1] = match[1].toLowerCase();\n\n\t\t\t\tif ( match[1].slice( 0, 3 ) === \"nth\" ) {\n\t\t\t\t\t// nth-* requires argument\n\t\t\t\t\tif ( !match[3] ) {\n\t\t\t\t\t\tSizzle.error( match[0] );\n\t\t\t\t\t}\n\n\t\t\t\t\t// numeric x and y parameters for Expr.filter.CHILD\n\t\t\t\t\t// remember that false/true cast respectively to 0/1\n\t\t\t\t\tmatch[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === \"even\" || match[3] === \"odd\" ) );\n\t\t\t\t\tmatch[5] = +( ( match[7] + match[8] ) || match[3] === \"odd\" );\n\n\t\t\t\t// other types prohibit arguments\n\t\t\t\t} else if ( match[3] ) {\n\t\t\t\t\tSizzle.error( match[0] );\n\t\t\t\t}\n\n\t\t\t\treturn match;\n\t\t\t},\n\n\t\t\t\"PSEUDO\": function( match ) {\n\t\t\t\tvar excess,\n\t\t\t\t\tunquoted = !match[6] && match[2];\n\n\t\t\t\tif ( matchExpr[\"CHILD\"].test( match[0] ) ) {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\n\t\t\t\t// Accept quoted arguments as-is\n\t\t\t\tif ( match[3] ) {\n\t\t\t\t\tmatch[2] = match[4] || match[5] || \"\";\n\n\t\t\t\t// Strip excess characters from unquoted arguments\n\t\t\t\t} else if ( unquoted && rpseudo.test( unquoted ) &&\n\t\t\t\t\t// Get excess from tokenize (recursively)\n\t\t\t\t\t(excess = tokenize( unquoted, true )) &&\n\t\t\t\t\t// advance to the next closing parenthesis\n\t\t\t\t\t(excess = unquoted.indexOf( \")\", unquoted.length - excess ) - unquoted.length) ) {\n\n\t\t\t\t\t// excess is a negative index\n\t\t\t\t\tmatch[0] = match[0].slice( 0, excess );\n\t\t\t\t\tmatch[2] = unquoted.slice( 0, excess );\n\t\t\t\t}\n\n\t\t\t\t// Return only captures needed by the pseudo filter method (type and argument)\n\t\t\t\treturn match.slice( 0, 3 );\n\t\t\t}\n\t\t},\n\n\t\tfilter: {\n\n\t\t\t\"TAG\": function( nodeNameSelector ) {\n\t\t\t\tvar nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase();\n\t\t\t\treturn nodeNameSelector === \"*\" ?\n\t\t\t\t\tfunction() { return true; } :\n\t\t\t\t\tfunction( elem ) {\n\t\t\t\t\t\treturn elem.nodeName && elem.nodeName.toLowerCase() === nodeName;\n\t\t\t\t\t};\n\t\t\t},\n\n\t\t\t\"CLASS\": function( className ) {\n\t\t\t\tvar pattern = classCache[ className + \" \" ];\n\n\t\t\t\treturn pattern ||\n\t\t\t\t\t(pattern = new RegExp( \"(^|\" + whitespace + \")\" + className + \"(\" + whitespace + \"|$)\" )) &&\n\t\t\t\t\tclassCache( className, function( elem ) {\n\t\t\t\t\t\treturn pattern.test( typeof elem.className === \"string\" && elem.className || typeof elem.getAttribute !== \"undefined\" && elem.getAttribute(\"class\") || \"\" );\n\t\t\t\t\t});\n\t\t\t},\n\n\t\t\t\"ATTR\": function( name, operator, check ) {\n\t\t\t\treturn function( elem ) {\n\t\t\t\t\tvar result = Sizzle.attr( elem, name );\n\n\t\t\t\t\tif ( result == null ) {\n\t\t\t\t\t\treturn operator === \"!=\";\n\t\t\t\t\t}\n\t\t\t\t\tif ( !operator ) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\n\t\t\t\t\tresult += \"\";\n\n\t\t\t\t\treturn operator === \"=\" ? result === check :\n\t\t\t\t\t\toperator === \"!=\" ? result !== check :\n\t\t\t\t\t\toperator === \"^=\" ? check && result.indexOf( check ) === 0 :\n\t\t\t\t\t\toperator === \"*=\" ? check && result.indexOf( check ) > -1 :\n\t\t\t\t\t\toperator === \"$=\" ? check && result.slice( -check.length ) === check :\n\t\t\t\t\t\toperator === \"~=\" ? ( \" \" + result.replace( rwhitespace, \" \" ) + \" \" ).indexOf( check ) > -1 :\n\t\t\t\t\t\toperator === \"|=\" ? result === check || result.slice( 0, check.length + 1 ) === check + \"-\" :\n\t\t\t\t\t\tfalse;\n\t\t\t\t};\n\t\t\t},\n\n\t\t\t\"CHILD\": function( type, what, argument, first, last ) {\n\t\t\t\tvar simple = type.slice( 0, 3 ) !== \"nth\",\n\t\t\t\t\tforward = type.slice( -4 ) !== \"last\",\n\t\t\t\t\tofType = what === \"of-type\";\n\n\t\t\t\treturn first === 1 && last === 0 ?\n\n\t\t\t\t\t// Shortcut for :nth-*(n)\n\t\t\t\t\tfunction( elem ) {\n\t\t\t\t\t\treturn !!elem.parentNode;\n\t\t\t\t\t} :\n\n\t\t\t\t\tfunction( elem, context, xml ) {\n\t\t\t\t\t\tvar cache, uniqueCache, outerCache, node, nodeIndex, start,\n\t\t\t\t\t\t\tdir = simple !== forward ? \"nextSibling\" : \"previousSibling\",\n\t\t\t\t\t\t\tparent = elem.parentNode,\n\t\t\t\t\t\t\tname = ofType && elem.nodeName.toLowerCase(),\n\t\t\t\t\t\t\tuseCache = !xml && !ofType,\n\t\t\t\t\t\t\tdiff = false;\n\n\t\t\t\t\t\tif ( parent ) {\n\n\t\t\t\t\t\t\t// :(first|last|only)-(child|of-type)\n\t\t\t\t\t\t\tif ( simple ) {\n\t\t\t\t\t\t\t\twhile ( dir ) {\n\t\t\t\t\t\t\t\t\tnode = elem;\n\t\t\t\t\t\t\t\t\twhile ( (node = node[ dir ]) ) {\n\t\t\t\t\t\t\t\t\t\tif ( ofType ?\n\t\t\t\t\t\t\t\t\t\t\tnode.nodeName.toLowerCase() === name :\n\t\t\t\t\t\t\t\t\t\t\tnode.nodeType === 1 ) {\n\n\t\t\t\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t// Reverse direction for :only-* (if we haven't yet done so)\n\t\t\t\t\t\t\t\t\tstart = dir = type === \"only\" && !start && \"nextSibling\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tstart = [ forward ? parent.firstChild : parent.lastChild ];\n\n\t\t\t\t\t\t\t// non-xml :nth-child(...) stores cache data on `parent`\n\t\t\t\t\t\t\tif ( forward && useCache ) {\n\n\t\t\t\t\t\t\t\t// Seek `elem` from a previously-cached index\n\n\t\t\t\t\t\t\t\t// ...in a gzip-friendly way\n\t\t\t\t\t\t\t\tnode = parent;\n\t\t\t\t\t\t\t\touterCache = node[ expando ] || (node[ expando ] = {});\n\n\t\t\t\t\t\t\t\t// Support: IE <9 only\n\t\t\t\t\t\t\t\t// Defend against cloned attroperties (jQuery gh-1709)\n\t\t\t\t\t\t\t\tuniqueCache = outerCache[ node.uniqueID ] ||\n\t\t\t\t\t\t\t\t\t(outerCache[ node.uniqueID ] = {});\n\n\t\t\t\t\t\t\t\tcache = uniqueCache[ type ] || [];\n\t\t\t\t\t\t\t\tnodeIndex = cache[ 0 ] === dirruns && cache[ 1 ];\n\t\t\t\t\t\t\t\tdiff = nodeIndex && cache[ 2 ];\n\t\t\t\t\t\t\t\tnode = nodeIndex && parent.childNodes[ nodeIndex ];\n\n\t\t\t\t\t\t\t\twhile ( (node = ++nodeIndex && node && node[ dir ] ||\n\n\t\t\t\t\t\t\t\t\t// Fallback to seeking `elem` from the start\n\t\t\t\t\t\t\t\t\t(diff = nodeIndex = 0) || start.pop()) ) {\n\n\t\t\t\t\t\t\t\t\t// When found, cache indexes on `parent` and break\n\t\t\t\t\t\t\t\t\tif ( node.nodeType === 1 && ++diff && node === elem ) {\n\t\t\t\t\t\t\t\t\t\tuniqueCache[ type ] = [ dirruns, nodeIndex, diff ];\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t// Use previously-cached element index if available\n\t\t\t\t\t\t\t\tif ( useCache ) {\n\t\t\t\t\t\t\t\t\t// ...in a gzip-friendly way\n\t\t\t\t\t\t\t\t\tnode = elem;\n\t\t\t\t\t\t\t\t\touterCache = node[ expando ] || (node[ expando ] = {});\n\n\t\t\t\t\t\t\t\t\t// Support: IE <9 only\n\t\t\t\t\t\t\t\t\t// Defend against cloned attroperties (jQuery gh-1709)\n\t\t\t\t\t\t\t\t\tuniqueCache = outerCache[ node.uniqueID ] ||\n\t\t\t\t\t\t\t\t\t\t(outerCache[ node.uniqueID ] = {});\n\n\t\t\t\t\t\t\t\t\tcache = uniqueCache[ type ] || [];\n\t\t\t\t\t\t\t\t\tnodeIndex = cache[ 0 ] === dirruns && cache[ 1 ];\n\t\t\t\t\t\t\t\t\tdiff = nodeIndex;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t// xml :nth-child(...)\n\t\t\t\t\t\t\t\t// or :nth-last-child(...) or :nth(-last)?-of-type(...)\n\t\t\t\t\t\t\t\tif ( diff === false ) {\n\t\t\t\t\t\t\t\t\t// Use the same loop as above to seek `elem` from the start\n\t\t\t\t\t\t\t\t\twhile ( (node = ++nodeIndex && node && node[ dir ] ||\n\t\t\t\t\t\t\t\t\t\t(diff = nodeIndex = 0) || start.pop()) ) {\n\n\t\t\t\t\t\t\t\t\t\tif ( ( ofType ?\n\t\t\t\t\t\t\t\t\t\t\tnode.nodeName.toLowerCase() === name :\n\t\t\t\t\t\t\t\t\t\t\tnode.nodeType === 1 ) &&\n\t\t\t\t\t\t\t\t\t\t\t++diff ) {\n\n\t\t\t\t\t\t\t\t\t\t\t// Cache the index of each encountered element\n\t\t\t\t\t\t\t\t\t\t\tif ( useCache ) {\n\t\t\t\t\t\t\t\t\t\t\t\touterCache = node[ expando ] || (node[ expando ] = {});\n\n\t\t\t\t\t\t\t\t\t\t\t\t// Support: IE <9 only\n\t\t\t\t\t\t\t\t\t\t\t\t// Defend against cloned attroperties (jQuery gh-1709)\n\t\t\t\t\t\t\t\t\t\t\t\tuniqueCache = outerCache[ node.uniqueID ] ||\n\t\t\t\t\t\t\t\t\t\t\t\t\t(outerCache[ node.uniqueID ] = {});\n\n\t\t\t\t\t\t\t\t\t\t\t\tuniqueCache[ type ] = [ dirruns, diff ];\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\tif ( node === elem ) {\n\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// Incorporate the offset, then check against cycle size\n\t\t\t\t\t\t\tdiff -= last;\n\t\t\t\t\t\t\treturn diff === first || ( diff % first === 0 && diff / first >= 0 );\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t},\n\n\t\t\t\"PSEUDO\": function( pseudo, argument ) {\n\t\t\t\t// pseudo-class names are case-insensitive\n\t\t\t\t// http://www.w3.org/TR/selectors/#pseudo-classes\n\t\t\t\t// Prioritize by case sensitivity in case custom pseudos are added with uppercase letters\n\t\t\t\t// Remember that setFilters inherits from pseudos\n\t\t\t\tvar args,\n\t\t\t\t\tfn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] ||\n\t\t\t\t\t\tSizzle.error( \"unsupported pseudo: \" + pseudo );\n\n\t\t\t\t// The user may use createPseudo to indicate that\n\t\t\t\t// arguments are needed to create the filter function\n\t\t\t\t// just as Sizzle does\n\t\t\t\tif ( fn[ expando ] ) {\n\t\t\t\t\treturn fn( argument );\n\t\t\t\t}\n\n\t\t\t\t// But maintain support for old signatures\n\t\t\t\tif ( fn.length > 1 ) {\n\t\t\t\t\targs = [ pseudo, pseudo, \"\", argument ];\n\t\t\t\t\treturn Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ?\n\t\t\t\t\t\tmarkFunction(function( seed, matches ) {\n\t\t\t\t\t\t\tvar idx,\n\t\t\t\t\t\t\t\tmatched = fn( seed, argument ),\n\t\t\t\t\t\t\t\ti = matched.length;\n\t\t\t\t\t\t\twhile ( i-- ) {\n\t\t\t\t\t\t\t\tidx = indexOf( seed, matched[i] );\n\t\t\t\t\t\t\t\tseed[ idx ] = !( matches[ idx ] = matched[i] );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}) :\n\t\t\t\t\t\tfunction( elem ) {\n\t\t\t\t\t\t\treturn fn( elem, 0, args );\n\t\t\t\t\t\t};\n\t\t\t\t}\n\n\t\t\t\treturn fn;\n\t\t\t}\n\t\t},\n\n\t\tpseudos: {\n\t\t\t// Potentially complex pseudos\n\t\t\t\"not\": markFunction(function( selector ) {\n\t\t\t\t// Trim the selector passed to compile\n\t\t\t\t// to avoid treating leading and trailing\n\t\t\t\t// spaces as combinators\n\t\t\t\tvar input = [],\n\t\t\t\t\tresults = [],\n\t\t\t\t\tmatcher = compile( selector.replace( rtrim, \"$1\" ) );\n\n\t\t\t\treturn matcher[ expando ] ?\n\t\t\t\t\tmarkFunction(function( seed, matches, context, xml ) {\n\t\t\t\t\t\tvar elem,\n\t\t\t\t\t\t\tunmatched = matcher( seed, null, xml, [] ),\n\t\t\t\t\t\t\ti = seed.length;\n\n\t\t\t\t\t\t// Match elements unmatched by `matcher`\n\t\t\t\t\t\twhile ( i-- ) {\n\t\t\t\t\t\t\tif ( (elem = unmatched[i]) ) {\n\t\t\t\t\t\t\t\tseed[i] = !(matches[i] = elem);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}) :\n\t\t\t\t\tfunction( elem, context, xml ) {\n\t\t\t\t\t\tinput[0] = elem;\n\t\t\t\t\t\tmatcher( input, null, xml, results );\n\t\t\t\t\t\t// Don't keep the element (issue #299)\n\t\t\t\t\t\tinput[0] = null;\n\t\t\t\t\t\treturn !results.pop();\n\t\t\t\t\t};\n\t\t\t}),\n\n\t\t\t\"has\": markFunction(function( selector ) {\n\t\t\t\treturn function( elem ) {\n\t\t\t\t\treturn Sizzle( selector, elem ).length > 0;\n\t\t\t\t};\n\t\t\t}),\n\n\t\t\t\"contains\": markFunction(function( text ) {\n\t\t\t\ttext = text.replace( runescape, funescape );\n\t\t\t\treturn function( elem ) {\n\t\t\t\t\treturn ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1;\n\t\t\t\t};\n\t\t\t}),\n\n\t\t\t// \"Whether an element is represented by a :lang() selector\n\t\t\t// is based solely on the element's language value\n\t\t\t// being equal to the identifier C,\n\t\t\t// or beginning with the identifier C immediately followed by \"-\".\n\t\t\t// The matching of C against the element's language value is performed case-insensitively.\n\t\t\t// The identifier C does not have to be a valid language name.\"\n\t\t\t// http://www.w3.org/TR/selectors/#lang-pseudo\n\t\t\t\"lang\": markFunction( function( lang ) {\n\t\t\t\t// lang value must be a valid identifier\n\t\t\t\tif ( !ridentifier.test(lang || \"\") ) {\n\t\t\t\t\tSizzle.error( \"unsupported lang: \" + lang );\n\t\t\t\t}\n\t\t\t\tlang = lang.replace( runescape, funescape ).toLowerCase();\n\t\t\t\treturn function( elem ) {\n\t\t\t\t\tvar elemLang;\n\t\t\t\t\tdo {\n\t\t\t\t\t\tif ( (elemLang = documentIsHTML ?\n\t\t\t\t\t\t\telem.lang :\n\t\t\t\t\t\t\telem.getAttribute(\"xml:lang\") || elem.getAttribute(\"lang\")) ) {\n\n\t\t\t\t\t\t\telemLang = elemLang.toLowerCase();\n\t\t\t\t\t\t\treturn elemLang === lang || elemLang.indexOf( lang + \"-\" ) === 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t} while ( (elem = elem.parentNode) && elem.nodeType === 1 );\n\t\t\t\t\treturn false;\n\t\t\t\t};\n\t\t\t}),\n\n\t\t\t// Miscellaneous\n\t\t\t\"target\": function( elem ) {\n\t\t\t\tvar hash = window.location && window.location.hash;\n\t\t\t\treturn hash && hash.slice( 1 ) === elem.id;\n\t\t\t},\n\n\t\t\t\"root\": function( elem ) {\n\t\t\t\treturn elem === docElem;\n\t\t\t},\n\n\t\t\t\"focus\": function( elem ) {\n\t\t\t\treturn elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex);\n\t\t\t},\n\n\t\t\t// Boolean properties\n\t\t\t\"enabled\": function( elem ) {\n\t\t\t\treturn elem.disabled === false;\n\t\t\t},\n\n\t\t\t\"disabled\": function( elem ) {\n\t\t\t\treturn elem.disabled === true;\n\t\t\t},\n\n\t\t\t\"checked\": function( elem ) {\n\t\t\t\t// In CSS3, :checked should return both checked and selected elements\n\t\t\t\t// http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked\n\t\t\t\tvar nodeName = elem.nodeName.toLowerCase();\n\t\t\t\treturn (nodeName === \"input\" && !!elem.checked) || (nodeName === \"option\" && !!elem.selected);\n\t\t\t},\n\n\t\t\t\"selected\": function( elem ) {\n\t\t\t\t// Accessing this property makes selected-by-default\n\t\t\t\t// options in Safari work properly\n\t\t\t\tif ( elem.parentNode ) {\n\t\t\t\t\telem.parentNode.selectedIndex;\n\t\t\t\t}\n\n\t\t\t\treturn elem.selected === true;\n\t\t\t},\n\n\t\t\t// Contents\n\t\t\t\"empty\": function( elem ) {\n\t\t\t\t// http://www.w3.org/TR/selectors/#empty-pseudo\n\t\t\t\t// :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5),\n\t\t\t\t//   but not by others (comment: 8; processing instruction: 7; etc.)\n\t\t\t\t// nodeType < 6 works because attributes (2) do not appear as children\n\t\t\t\tfor ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {\n\t\t\t\t\tif ( elem.nodeType < 6 ) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t},\n\n\t\t\t\"parent\": function( elem ) {\n\t\t\t\treturn !Expr.pseudos[\"empty\"]( elem );\n\t\t\t},\n\n\t\t\t// Element/input types\n\t\t\t\"header\": function( elem ) {\n\t\t\t\treturn rheader.test( elem.nodeName );\n\t\t\t},\n\n\t\t\t\"input\": function( elem ) {\n\t\t\t\treturn rinputs.test( elem.nodeName );\n\t\t\t},\n\n\t\t\t\"button\": function( elem ) {\n\t\t\t\tvar name = elem.nodeName.toLowerCase();\n\t\t\t\treturn name === \"input\" && elem.type === \"button\" || name === \"button\";\n\t\t\t},\n\n\t\t\t\"text\": function( elem ) {\n\t\t\t\tvar attr;\n\t\t\t\treturn elem.nodeName.toLowerCase() === \"input\" &&\n\t\t\t\t\telem.type === \"text\" &&\n\n\t\t\t\t\t// Support: IE<8\n\t\t\t\t\t// New HTML5 attribute values (e.g., \"search\") appear with elem.type === \"text\"\n\t\t\t\t\t( (attr = elem.getAttribute(\"type\")) == null || attr.toLowerCase() === \"text\" );\n\t\t\t},\n\n\t\t\t// Position-in-collection\n\t\t\t\"first\": createPositionalPseudo(function() {\n\t\t\t\treturn [ 0 ];\n\t\t\t}),\n\n\t\t\t\"last\": createPositionalPseudo(function( matchIndexes, length ) {\n\t\t\t\treturn [ length - 1 ];\n\t\t\t}),\n\n\t\t\t\"eq\": createPositionalPseudo(function( matchIndexes, length, argument ) {\n\t\t\t\treturn [ argument < 0 ? argument + length : argument ];\n\t\t\t}),\n\n\t\t\t\"even\": createPositionalPseudo(function( matchIndexes, length ) {\n\t\t\t\tvar i = 0;\n\t\t\t\tfor ( ; i < length; i += 2 ) {\n\t\t\t\t\tmatchIndexes.push( i );\n\t\t\t\t}\n\t\t\t\treturn matchIndexes;\n\t\t\t}),\n\n\t\t\t\"odd\": createPositionalPseudo(function( matchIndexes, length ) {\n\t\t\t\tvar i = 1;\n\t\t\t\tfor ( ; i < length; i += 2 ) {\n\t\t\t\t\tmatchIndexes.push( i );\n\t\t\t\t}\n\t\t\t\treturn matchIndexes;\n\t\t\t}),\n\n\t\t\t\"lt\": createPositionalPseudo(function( matchIndexes, length, argument ) {\n\t\t\t\tvar i = argument < 0 ? argument + length : argument;\n\t\t\t\tfor ( ; --i >= 0; ) {\n\t\t\t\t\tmatchIndexes.push( i );\n\t\t\t\t}\n\t\t\t\treturn matchIndexes;\n\t\t\t}),\n\n\t\t\t\"gt\": createPositionalPseudo(function( matchIndexes, length, argument ) {\n\t\t\t\tvar i = argument < 0 ? argument + length : argument;\n\t\t\t\tfor ( ; ++i < length; ) {\n\t\t\t\t\tmatchIndexes.push( i );\n\t\t\t\t}\n\t\t\t\treturn matchIndexes;\n\t\t\t})\n\t\t}\n\t};\n\n\tExpr.pseudos[\"nth\"] = Expr.pseudos[\"eq\"];\n\n\t// Add button/input type pseudos\n\tfor ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) {\n\t\tExpr.pseudos[ i ] = createInputPseudo( i );\n\t}\n\tfor ( i in { submit: true, reset: true } ) {\n\t\tExpr.pseudos[ i ] = createButtonPseudo( i );\n\t}\n\n\t// Easy API for creating new setFilters\n\tfunction setFilters() {}\n\tsetFilters.prototype = Expr.filters = Expr.pseudos;\n\tExpr.setFilters = new setFilters();\n\n\ttokenize = Sizzle.tokenize = function( selector, parseOnly ) {\n\t\tvar matched, match, tokens, type,\n\t\t\tsoFar, groups, preFilters,\n\t\t\tcached = tokenCache[ selector + \" \" ];\n\n\t\tif ( cached ) {\n\t\t\treturn parseOnly ? 0 : cached.slice( 0 );\n\t\t}\n\n\t\tsoFar = selector;\n\t\tgroups = [];\n\t\tpreFilters = Expr.preFilter;\n\n\t\twhile ( soFar ) {\n\n\t\t\t// Comma and first run\n\t\t\tif ( !matched || (match = rcomma.exec( soFar )) ) {\n\t\t\t\tif ( match ) {\n\t\t\t\t\t// Don't consume trailing commas as valid\n\t\t\t\t\tsoFar = soFar.slice( match[0].length ) || soFar;\n\t\t\t\t}\n\t\t\t\tgroups.push( (tokens = []) );\n\t\t\t}\n\n\t\t\tmatched = false;\n\n\t\t\t// Combinators\n\t\t\tif ( (match = rcombinators.exec( soFar )) ) {\n\t\t\t\tmatched = match.shift();\n\t\t\t\ttokens.push({\n\t\t\t\t\tvalue: matched,\n\t\t\t\t\t// Cast descendant combinators to space\n\t\t\t\t\ttype: match[0].replace( rtrim, \" \" )\n\t\t\t\t});\n\t\t\t\tsoFar = soFar.slice( matched.length );\n\t\t\t}\n\n\t\t\t// Filters\n\t\t\tfor ( type in Expr.filter ) {\n\t\t\t\tif ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] ||\n\t\t\t\t\t(match = preFilters[ type ]( match ))) ) {\n\t\t\t\t\tmatched = match.shift();\n\t\t\t\t\ttokens.push({\n\t\t\t\t\t\tvalue: matched,\n\t\t\t\t\t\ttype: type,\n\t\t\t\t\t\tmatches: match\n\t\t\t\t\t});\n\t\t\t\t\tsoFar = soFar.slice( matched.length );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( !matched ) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t// Return the length of the invalid excess\n\t\t// if we're just parsing\n\t\t// Otherwise, throw an error or return tokens\n\t\treturn parseOnly ?\n\t\t\tsoFar.length :\n\t\t\tsoFar ?\n\t\t\t\tSizzle.error( selector ) :\n\t\t\t\t// Cache the tokens\n\t\t\t\ttokenCache( selector, groups ).slice( 0 );\n\t};\n\n\tfunction toSelector( tokens ) {\n\t\tvar i = 0,\n\t\t\tlen = tokens.length,\n\t\t\tselector = \"\";\n\t\tfor ( ; i < len; i++ ) {\n\t\t\tselector += tokens[i].value;\n\t\t}\n\t\treturn selector;\n\t}\n\n\tfunction addCombinator( matcher, combinator, base ) {\n\t\tvar dir = combinator.dir,\n\t\t\tcheckNonElements = base && dir === \"parentNode\",\n\t\t\tdoneName = done++;\n\n\t\treturn combinator.first ?\n\t\t\t// Check against closest ancestor/preceding element\n\t\t\tfunction( elem, context, xml ) {\n\t\t\t\twhile ( (elem = elem[ dir ]) ) {\n\t\t\t\t\tif ( elem.nodeType === 1 || checkNonElements ) {\n\t\t\t\t\t\treturn matcher( elem, context, xml );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} :\n\n\t\t\t// Check against all ancestor/preceding elements\n\t\t\tfunction( elem, context, xml ) {\n\t\t\t\tvar oldCache, uniqueCache, outerCache,\n\t\t\t\t\tnewCache = [ dirruns, doneName ];\n\n\t\t\t\t// We can't set arbitrary data on XML nodes, so they don't benefit from combinator caching\n\t\t\t\tif ( xml ) {\n\t\t\t\t\twhile ( (elem = elem[ dir ]) ) {\n\t\t\t\t\t\tif ( elem.nodeType === 1 || checkNonElements ) {\n\t\t\t\t\t\t\tif ( matcher( elem, context, xml ) ) {\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\twhile ( (elem = elem[ dir ]) ) {\n\t\t\t\t\t\tif ( elem.nodeType === 1 || checkNonElements ) {\n\t\t\t\t\t\t\touterCache = elem[ expando ] || (elem[ expando ] = {});\n\n\t\t\t\t\t\t\t// Support: IE <9 only\n\t\t\t\t\t\t\t// Defend against cloned attroperties (jQuery gh-1709)\n\t\t\t\t\t\t\tuniqueCache = outerCache[ elem.uniqueID ] || (outerCache[ elem.uniqueID ] = {});\n\n\t\t\t\t\t\t\tif ( (oldCache = uniqueCache[ dir ]) &&\n\t\t\t\t\t\t\t\toldCache[ 0 ] === dirruns && oldCache[ 1 ] === doneName ) {\n\n\t\t\t\t\t\t\t\t// Assign to newCache so results back-propagate to previous elements\n\t\t\t\t\t\t\t\treturn (newCache[ 2 ] = oldCache[ 2 ]);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t// Reuse newcache so results back-propagate to previous elements\n\t\t\t\t\t\t\t\tuniqueCache[ dir ] = newCache;\n\n\t\t\t\t\t\t\t\t// A match means we're done; a fail means we have to keep checking\n\t\t\t\t\t\t\t\tif ( (newCache[ 2 ] = matcher( elem, context, xml )) ) {\n\t\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t};\n\t}\n\n\tfunction elementMatcher( matchers ) {\n\t\treturn matchers.length > 1 ?\n\t\t\tfunction( elem, context, xml ) {\n\t\t\t\tvar i = matchers.length;\n\t\t\t\twhile ( i-- ) {\n\t\t\t\t\tif ( !matchers[i]( elem, context, xml ) ) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t} :\n\t\t\tmatchers[0];\n\t}\n\n\tfunction multipleContexts( selector, contexts, results ) {\n\t\tvar i = 0,\n\t\t\tlen = contexts.length;\n\t\tfor ( ; i < len; i++ ) {\n\t\t\tSizzle( selector, contexts[i], results );\n\t\t}\n\t\treturn results;\n\t}\n\n\tfunction condense( unmatched, map, filter, context, xml ) {\n\t\tvar elem,\n\t\t\tnewUnmatched = [],\n\t\t\ti = 0,\n\t\t\tlen = unmatched.length,\n\t\t\tmapped = map != null;\n\n\t\tfor ( ; i < len; i++ ) {\n\t\t\tif ( (elem = unmatched[i]) ) {\n\t\t\t\tif ( !filter || filter( elem, context, xml ) ) {\n\t\t\t\t\tnewUnmatched.push( elem );\n\t\t\t\t\tif ( mapped ) {\n\t\t\t\t\t\tmap.push( i );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn newUnmatched;\n\t}\n\n\tfunction setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {\n\t\tif ( postFilter && !postFilter[ expando ] ) {\n\t\t\tpostFilter = setMatcher( postFilter );\n\t\t}\n\t\tif ( postFinder && !postFinder[ expando ] ) {\n\t\t\tpostFinder = setMatcher( postFinder, postSelector );\n\t\t}\n\t\treturn markFunction(function( seed, results, context, xml ) {\n\t\t\tvar temp, i, elem,\n\t\t\t\tpreMap = [],\n\t\t\t\tpostMap = [],\n\t\t\t\tpreexisting = results.length,\n\n\t\t\t\t// Get initial elements from seed or context\n\t\t\t\telems = seed || multipleContexts( selector || \"*\", context.nodeType ? [ context ] : context, [] ),\n\n\t\t\t\t// Prefilter to get matcher input, preserving a map for seed-results synchronization\n\t\t\t\tmatcherIn = preFilter && ( seed || !selector ) ?\n\t\t\t\t\tcondense( elems, preMap, preFilter, context, xml ) :\n\t\t\t\t\telems,\n\n\t\t\t\tmatcherOut = matcher ?\n\t\t\t\t\t// If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results,\n\t\t\t\t\tpostFinder || ( seed ? preFilter : preexisting || postFilter ) ?\n\n\t\t\t\t\t\t// ...intermediate processing is necessary\n\t\t\t\t\t\t[] :\n\n\t\t\t\t\t\t// ...otherwise use results directly\n\t\t\t\t\t\tresults :\n\t\t\t\t\tmatcherIn;\n\n\t\t\t// Find primary matches\n\t\t\tif ( matcher ) {\n\t\t\t\tmatcher( matcherIn, matcherOut, context, xml );\n\t\t\t}\n\n\t\t\t// Apply postFilter\n\t\t\tif ( postFilter ) {\n\t\t\t\ttemp = condense( matcherOut, postMap );\n\t\t\t\tpostFilter( temp, [], context, xml );\n\n\t\t\t\t// Un-match failing elements by moving them back to matcherIn\n\t\t\t\ti = temp.length;\n\t\t\t\twhile ( i-- ) {\n\t\t\t\t\tif ( (elem = temp[i]) ) {\n\t\t\t\t\t\tmatcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( seed ) {\n\t\t\t\tif ( postFinder || preFilter ) {\n\t\t\t\t\tif ( postFinder ) {\n\t\t\t\t\t\t// Get the final matcherOut by condensing this intermediate into postFinder contexts\n\t\t\t\t\t\ttemp = [];\n\t\t\t\t\t\ti = matcherOut.length;\n\t\t\t\t\t\twhile ( i-- ) {\n\t\t\t\t\t\t\tif ( (elem = matcherOut[i]) ) {\n\t\t\t\t\t\t\t\t// Restore matcherIn since elem is not yet a final match\n\t\t\t\t\t\t\t\ttemp.push( (matcherIn[i] = elem) );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpostFinder( null, (matcherOut = []), temp, xml );\n\t\t\t\t\t}\n\n\t\t\t\t\t// Move matched elements from seed to results to keep them synchronized\n\t\t\t\t\ti = matcherOut.length;\n\t\t\t\t\twhile ( i-- ) {\n\t\t\t\t\t\tif ( (elem = matcherOut[i]) &&\n\t\t\t\t\t\t\t(temp = postFinder ? indexOf( seed, elem ) : preMap[i]) > -1 ) {\n\n\t\t\t\t\t\t\tseed[temp] = !(results[temp] = elem);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t// Add elements to results, through postFinder if defined\n\t\t\t} else {\n\t\t\t\tmatcherOut = condense(\n\t\t\t\t\tmatcherOut === results ?\n\t\t\t\t\t\tmatcherOut.splice( preexisting, matcherOut.length ) :\n\t\t\t\t\t\tmatcherOut\n\t\t\t\t);\n\t\t\t\tif ( postFinder ) {\n\t\t\t\t\tpostFinder( null, results, matcherOut, xml );\n\t\t\t\t} else {\n\t\t\t\t\tpush.apply( results, matcherOut );\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n\n\tfunction matcherFromTokens( tokens ) {\n\t\tvar checkContext, matcher, j,\n\t\t\tlen = tokens.length,\n\t\t\tleadingRelative = Expr.relative[ tokens[0].type ],\n\t\t\timplicitRelative = leadingRelative || Expr.relative[\" \"],\n\t\t\ti = leadingRelative ? 1 : 0,\n\n\t\t\t// The foundational matcher ensures that elements are reachable from top-level context(s)\n\t\t\tmatchContext = addCombinator( function( elem ) {\n\t\t\t\treturn elem === checkContext;\n\t\t\t}, implicitRelative, true ),\n\t\t\tmatchAnyContext = addCombinator( function( elem ) {\n\t\t\t\treturn indexOf( checkContext, elem ) > -1;\n\t\t\t}, implicitRelative, true ),\n\t\t\tmatchers = [ function( elem, context, xml ) {\n\t\t\t\tvar ret = ( !leadingRelative && ( xml || context !== outermostContext ) ) || (\n\t\t\t\t\t(checkContext = context).nodeType ?\n\t\t\t\t\t\tmatchContext( elem, context, xml ) :\n\t\t\t\t\t\tmatchAnyContext( elem, context, xml ) );\n\t\t\t\t// Avoid hanging onto element (issue #299)\n\t\t\t\tcheckContext = null;\n\t\t\t\treturn ret;\n\t\t\t} ];\n\n\t\tfor ( ; i < len; i++ ) {\n\t\t\tif ( (matcher = Expr.relative[ tokens[i].type ]) ) {\n\t\t\t\tmatchers = [ addCombinator(elementMatcher( matchers ), matcher) ];\n\t\t\t} else {\n\t\t\t\tmatcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches );\n\n\t\t\t\t// Return special upon seeing a positional matcher\n\t\t\t\tif ( matcher[ expando ] ) {\n\t\t\t\t\t// Find the next relative operator (if any) for proper handling\n\t\t\t\t\tj = ++i;\n\t\t\t\t\tfor ( ; j < len; j++ ) {\n\t\t\t\t\t\tif ( Expr.relative[ tokens[j].type ] ) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\treturn setMatcher(\n\t\t\t\t\t\ti > 1 && elementMatcher( matchers ),\n\t\t\t\t\t\ti > 1 && toSelector(\n\t\t\t\t\t\t\t// If the preceding token was a descendant combinator, insert an implicit any-element `*`\n\t\t\t\t\t\t\ttokens.slice( 0, i - 1 ).concat({ value: tokens[ i - 2 ].type === \" \" ? \"*\" : \"\" })\n\t\t\t\t\t\t).replace( rtrim, \"$1\" ),\n\t\t\t\t\t\tmatcher,\n\t\t\t\t\t\ti < j && matcherFromTokens( tokens.slice( i, j ) ),\n\t\t\t\t\t\tj < len && matcherFromTokens( (tokens = tokens.slice( j )) ),\n\t\t\t\t\t\tj < len && toSelector( tokens )\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t\tmatchers.push( matcher );\n\t\t\t}\n\t\t}\n\n\t\treturn elementMatcher( matchers );\n\t}\n\n\tfunction matcherFromGroupMatchers( elementMatchers, setMatchers ) {\n\t\tvar bySet = setMatchers.length > 0,\n\t\t\tbyElement = elementMatchers.length > 0,\n\t\t\tsuperMatcher = function( seed, context, xml, results, outermost ) {\n\t\t\t\tvar elem, j, matcher,\n\t\t\t\t\tmatchedCount = 0,\n\t\t\t\t\ti = \"0\",\n\t\t\t\t\tunmatched = seed && [],\n\t\t\t\t\tsetMatched = [],\n\t\t\t\t\tcontextBackup = outermostContext,\n\t\t\t\t\t// We must always have either seed elements or outermost context\n\t\t\t\t\telems = seed || byElement && Expr.find[\"TAG\"]( \"*\", outermost ),\n\t\t\t\t\t// Use integer dirruns iff this is the outermost matcher\n\t\t\t\t\tdirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1),\n\t\t\t\t\tlen = elems.length;\n\n\t\t\t\tif ( outermost ) {\n\t\t\t\t\toutermostContext = context === document || context || outermost;\n\t\t\t\t}\n\n\t\t\t\t// Add elements passing elementMatchers directly to results\n\t\t\t\t// Support: IE<9, Safari\n\t\t\t\t// Tolerate NodeList properties (IE: \"length\"; Safari: <number>) matching elements by id\n\t\t\t\tfor ( ; i !== len && (elem = elems[i]) != null; i++ ) {\n\t\t\t\t\tif ( byElement && elem ) {\n\t\t\t\t\t\tj = 0;\n\t\t\t\t\t\tif ( !context && elem.ownerDocument !== document ) {\n\t\t\t\t\t\t\tsetDocument( elem );\n\t\t\t\t\t\t\txml = !documentIsHTML;\n\t\t\t\t\t\t}\n\t\t\t\t\t\twhile ( (matcher = elementMatchers[j++]) ) {\n\t\t\t\t\t\t\tif ( matcher( elem, context || document, xml) ) {\n\t\t\t\t\t\t\t\tresults.push( elem );\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif ( outermost ) {\n\t\t\t\t\t\t\tdirruns = dirrunsUnique;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// Track unmatched elements for set filters\n\t\t\t\t\tif ( bySet ) {\n\t\t\t\t\t\t// They will have gone through all possible matchers\n\t\t\t\t\t\tif ( (elem = !matcher && elem) ) {\n\t\t\t\t\t\t\tmatchedCount--;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Lengthen the array for every element, matched or not\n\t\t\t\t\t\tif ( seed ) {\n\t\t\t\t\t\t\tunmatched.push( elem );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// `i` is now the count of elements visited above, and adding it to `matchedCount`\n\t\t\t\t// makes the latter nonnegative.\n\t\t\t\tmatchedCount += i;\n\n\t\t\t\t// Apply set filters to unmatched elements\n\t\t\t\t// NOTE: This can be skipped if there are no unmatched elements (i.e., `matchedCount`\n\t\t\t\t// equals `i`), unless we didn't visit _any_ elements in the above loop because we have\n\t\t\t\t// no element matchers and no seed.\n\t\t\t\t// Incrementing an initially-string \"0\" `i` allows `i` to remain a string only in that\n\t\t\t\t// case, which will result in a \"00\" `matchedCount` that differs from `i` but is also\n\t\t\t\t// numerically zero.\n\t\t\t\tif ( bySet && i !== matchedCount ) {\n\t\t\t\t\tj = 0;\n\t\t\t\t\twhile ( (matcher = setMatchers[j++]) ) {\n\t\t\t\t\t\tmatcher( unmatched, setMatched, context, xml );\n\t\t\t\t\t}\n\n\t\t\t\t\tif ( seed ) {\n\t\t\t\t\t\t// Reintegrate element matches to eliminate the need for sorting\n\t\t\t\t\t\tif ( matchedCount > 0 ) {\n\t\t\t\t\t\t\twhile ( i-- ) {\n\t\t\t\t\t\t\t\tif ( !(unmatched[i] || setMatched[i]) ) {\n\t\t\t\t\t\t\t\t\tsetMatched[i] = pop.call( results );\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Discard index placeholder values to get only actual matches\n\t\t\t\t\t\tsetMatched = condense( setMatched );\n\t\t\t\t\t}\n\n\t\t\t\t\t// Add matches to results\n\t\t\t\t\tpush.apply( results, setMatched );\n\n\t\t\t\t\t// Seedless set matches succeeding multiple successful matchers stipulate sorting\n\t\t\t\t\tif ( outermost && !seed && setMatched.length > 0 &&\n\t\t\t\t\t\t( matchedCount + setMatchers.length ) > 1 ) {\n\n\t\t\t\t\t\tSizzle.uniqueSort( results );\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Override manipulation of globals by nested matchers\n\t\t\t\tif ( outermost ) {\n\t\t\t\t\tdirruns = dirrunsUnique;\n\t\t\t\t\toutermostContext = contextBackup;\n\t\t\t\t}\n\n\t\t\t\treturn unmatched;\n\t\t\t};\n\n\t\treturn bySet ?\n\t\t\tmarkFunction( superMatcher ) :\n\t\t\tsuperMatcher;\n\t}\n\n\tcompile = Sizzle.compile = function( selector, match /* Internal Use Only */ ) {\n\t\tvar i,\n\t\t\tsetMatchers = [],\n\t\t\telementMatchers = [],\n\t\t\tcached = compilerCache[ selector + \" \" ];\n\n\t\tif ( !cached ) {\n\t\t\t// Generate a function of recursive functions that can be used to check each element\n\t\t\tif ( !match ) {\n\t\t\t\tmatch = tokenize( selector );\n\t\t\t}\n\t\t\ti = match.length;\n\t\t\twhile ( i-- ) {\n\t\t\t\tcached = matcherFromTokens( match[i] );\n\t\t\t\tif ( cached[ expando ] ) {\n\t\t\t\t\tsetMatchers.push( cached );\n\t\t\t\t} else {\n\t\t\t\t\telementMatchers.push( cached );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Cache the compiled function\n\t\t\tcached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) );\n\n\t\t\t// Save selector and tokenization\n\t\t\tcached.selector = selector;\n\t\t}\n\t\treturn cached;\n\t};\n\n\t/**\n\t * A low-level selection function that works with Sizzle's compiled\n\t *  selector functions\n\t * @param {String|Function} selector A selector or a pre-compiled\n\t *  selector function built with Sizzle.compile\n\t * @param {Element} context\n\t * @param {Array} [results]\n\t * @param {Array} [seed] A set of elements to match against\n\t */\n\tselect = Sizzle.select = function( selector, context, results, seed ) {\n\t\tvar i, tokens, token, type, find,\n\t\t\tcompiled = typeof selector === \"function\" && selector,\n\t\t\tmatch = !seed && tokenize( (selector = compiled.selector || selector) );\n\n\t\tresults = results || [];\n\n\t\t// Try to minimize operations if there is only one selector in the list and no seed\n\t\t// (the latter of which guarantees us context)\n\t\tif ( match.length === 1 ) {\n\n\t\t\t// Reduce context if the leading compound selector is an ID\n\t\t\ttokens = match[0] = match[0].slice( 0 );\n\t\t\tif ( tokens.length > 2 && (token = tokens[0]).type === \"ID\" &&\n\t\t\t\t\tsupport.getById && context.nodeType === 9 && documentIsHTML &&\n\t\t\t\t\tExpr.relative[ tokens[1].type ] ) {\n\n\t\t\t\tcontext = ( Expr.find[\"ID\"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0];\n\t\t\t\tif ( !context ) {\n\t\t\t\t\treturn results;\n\n\t\t\t\t// Precompiled matchers will still verify ancestry, so step up a level\n\t\t\t\t} else if ( compiled ) {\n\t\t\t\t\tcontext = context.parentNode;\n\t\t\t\t}\n\n\t\t\t\tselector = selector.slice( tokens.shift().value.length );\n\t\t\t}\n\n\t\t\t// Fetch a seed set for right-to-left matching\n\t\t\ti = matchExpr[\"needsContext\"].test( selector ) ? 0 : tokens.length;\n\t\t\twhile ( i-- ) {\n\t\t\t\ttoken = tokens[i];\n\n\t\t\t\t// Abort if we hit a combinator\n\t\t\t\tif ( Expr.relative[ (type = token.type) ] ) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif ( (find = Expr.find[ type ]) ) {\n\t\t\t\t\t// Search, expanding context for leading sibling combinators\n\t\t\t\t\tif ( (seed = find(\n\t\t\t\t\t\ttoken.matches[0].replace( runescape, funescape ),\n\t\t\t\t\t\trsibling.test( tokens[0].type ) && testContext( context.parentNode ) || context\n\t\t\t\t\t)) ) {\n\n\t\t\t\t\t\t// If seed is empty or no tokens remain, we can return early\n\t\t\t\t\t\ttokens.splice( i, 1 );\n\t\t\t\t\t\tselector = seed.length && toSelector( tokens );\n\t\t\t\t\t\tif ( !selector ) {\n\t\t\t\t\t\t\tpush.apply( results, seed );\n\t\t\t\t\t\t\treturn results;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Compile and execute a filtering function if one is not provided\n\t\t// Provide `match` to avoid retokenization if we modified the selector above\n\t\t( compiled || compile( selector, match ) )(\n\t\t\tseed,\n\t\t\tcontext,\n\t\t\t!documentIsHTML,\n\t\t\tresults,\n\t\t\t!context || rsibling.test( selector ) && testContext( context.parentNode ) || context\n\t\t);\n\t\treturn results;\n\t};\n\n\t// One-time assignments\n\n\t// Sort stability\n\tsupport.sortStable = expando.split(\"\").sort( sortOrder ).join(\"\") === expando;\n\n\t// Support: Chrome 14-35+\n\t// Always assume duplicates if they aren't passed to the comparison function\n\tsupport.detectDuplicates = !!hasDuplicate;\n\n\t// Initialize against the default document\n\tsetDocument();\n\n\t// Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27)\n\t// Detached nodes confoundingly follow *each other*\n\tsupport.sortDetached = assert(function( div1 ) {\n\t\t// Should return 1, but returns 4 (following)\n\t\treturn div1.compareDocumentPosition( document.createElement(\"div\") ) & 1;\n\t});\n\n\t// Support: IE<8\n\t// Prevent attribute/property \"interpolation\"\n\t// http://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx\n\tif ( !assert(function( div ) {\n\t\tdiv.innerHTML = \"<a href='#'></a>\";\n\t\treturn div.firstChild.getAttribute(\"href\") === \"#\" ;\n\t}) ) {\n\t\taddHandle( \"type|href|height|width\", function( elem, name, isXML ) {\n\t\t\tif ( !isXML ) {\n\t\t\t\treturn elem.getAttribute( name, name.toLowerCase() === \"type\" ? 1 : 2 );\n\t\t\t}\n\t\t});\n\t}\n\n\t// Support: IE<9\n\t// Use defaultValue in place of getAttribute(\"value\")\n\tif ( !support.attributes || !assert(function( div ) {\n\t\tdiv.innerHTML = \"<input/>\";\n\t\tdiv.firstChild.setAttribute( \"value\", \"\" );\n\t\treturn div.firstChild.getAttribute( \"value\" ) === \"\";\n\t}) ) {\n\t\taddHandle( \"value\", function( elem, name, isXML ) {\n\t\t\tif ( !isXML && elem.nodeName.toLowerCase() === \"input\" ) {\n\t\t\t\treturn elem.defaultValue;\n\t\t\t}\n\t\t});\n\t}\n\n\t// Support: IE<9\n\t// Use getAttributeNode to fetch booleans when getAttribute lies\n\tif ( !assert(function( div ) {\n\t\treturn div.getAttribute(\"disabled\") == null;\n\t}) ) {\n\t\taddHandle( booleans, function( elem, name, isXML ) {\n\t\t\tvar val;\n\t\t\tif ( !isXML ) {\n\t\t\t\treturn elem[ name ] === true ? name.toLowerCase() :\n\t\t\t\t\t\t(val = elem.getAttributeNode( name )) && val.specified ?\n\t\t\t\t\t\tval.value :\n\t\t\t\t\tnull;\n\t\t\t}\n\t\t});\n\t}\n\n\treturn Sizzle;\n\n\t})( window );\n\n\n\n\tjQuery.find = Sizzle;\n\tjQuery.expr = Sizzle.selectors;\n\tjQuery.expr[ \":\" ] = jQuery.expr.pseudos;\n\tjQuery.uniqueSort = jQuery.unique = Sizzle.uniqueSort;\n\tjQuery.text = Sizzle.getText;\n\tjQuery.isXMLDoc = Sizzle.isXML;\n\tjQuery.contains = Sizzle.contains;\n\n\n\n\tvar dir = function( elem, dir, until ) {\n\t\tvar matched = [],\n\t\t\ttruncate = until !== undefined;\n\n\t\twhile ( ( elem = elem[ dir ] ) && elem.nodeType !== 9 ) {\n\t\t\tif ( elem.nodeType === 1 ) {\n\t\t\t\tif ( truncate && jQuery( elem ).is( until ) ) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tmatched.push( elem );\n\t\t\t}\n\t\t}\n\t\treturn matched;\n\t};\n\n\n\tvar siblings = function( n, elem ) {\n\t\tvar matched = [];\n\n\t\tfor ( ; n; n = n.nextSibling ) {\n\t\t\tif ( n.nodeType === 1 && n !== elem ) {\n\t\t\t\tmatched.push( n );\n\t\t\t}\n\t\t}\n\n\t\treturn matched;\n\t};\n\n\n\tvar rneedsContext = jQuery.expr.match.needsContext;\n\n\tvar rsingleTag = ( /^<([\\w-]+)\\s*\\/?>(?:<\\/\\1>|)$/ );\n\n\n\n\tvar risSimple = /^.[^:#\\[\\.,]*$/;\n\n\t// Implement the identical functionality for filter and not\n\tfunction winnow( elements, qualifier, not ) {\n\t\tif ( jQuery.isFunction( qualifier ) ) {\n\t\t\treturn jQuery.grep( elements, function( elem, i ) {\n\t\t\t\t/* jshint -W018 */\n\t\t\t\treturn !!qualifier.call( elem, i, elem ) !== not;\n\t\t\t} );\n\n\t\t}\n\n\t\tif ( qualifier.nodeType ) {\n\t\t\treturn jQuery.grep( elements, function( elem ) {\n\t\t\t\treturn ( elem === qualifier ) !== not;\n\t\t\t} );\n\n\t\t}\n\n\t\tif ( typeof qualifier === \"string\" ) {\n\t\t\tif ( risSimple.test( qualifier ) ) {\n\t\t\t\treturn jQuery.filter( qualifier, elements, not );\n\t\t\t}\n\n\t\t\tqualifier = jQuery.filter( qualifier, elements );\n\t\t}\n\n\t\treturn jQuery.grep( elements, function( elem ) {\n\t\t\treturn ( indexOf.call( qualifier, elem ) > -1 ) !== not;\n\t\t} );\n\t}\n\n\tjQuery.filter = function( expr, elems, not ) {\n\t\tvar elem = elems[ 0 ];\n\n\t\tif ( not ) {\n\t\t\texpr = \":not(\" + expr + \")\";\n\t\t}\n\n\t\treturn elems.length === 1 && elem.nodeType === 1 ?\n\t\t\tjQuery.find.matchesSelector( elem, expr ) ? [ elem ] : [] :\n\t\t\tjQuery.find.matches( expr, jQuery.grep( elems, function( elem ) {\n\t\t\t\treturn elem.nodeType === 1;\n\t\t\t} ) );\n\t};\n\n\tjQuery.fn.extend( {\n\t\tfind: function( selector ) {\n\t\t\tvar i,\n\t\t\t\tlen = this.length,\n\t\t\t\tret = [],\n\t\t\t\tself = this;\n\n\t\t\tif ( typeof selector !== \"string\" ) {\n\t\t\t\treturn this.pushStack( jQuery( selector ).filter( function() {\n\t\t\t\t\tfor ( i = 0; i < len; i++ ) {\n\t\t\t\t\t\tif ( jQuery.contains( self[ i ], this ) ) {\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} ) );\n\t\t\t}\n\n\t\t\tfor ( i = 0; i < len; i++ ) {\n\t\t\t\tjQuery.find( selector, self[ i ], ret );\n\t\t\t}\n\n\t\t\t// Needed because $( selector, context ) becomes $( context ).find( selector )\n\t\t\tret = this.pushStack( len > 1 ? jQuery.unique( ret ) : ret );\n\t\t\tret.selector = this.selector ? this.selector + \" \" + selector : selector;\n\t\t\treturn ret;\n\t\t},\n\t\tfilter: function( selector ) {\n\t\t\treturn this.pushStack( winnow( this, selector || [], false ) );\n\t\t},\n\t\tnot: function( selector ) {\n\t\t\treturn this.pushStack( winnow( this, selector || [], true ) );\n\t\t},\n\t\tis: function( selector ) {\n\t\t\treturn !!winnow(\n\t\t\t\tthis,\n\n\t\t\t\t// If this is a positional/relative selector, check membership in the returned set\n\t\t\t\t// so $(\"p:first\").is(\"p:last\") won't return true for a doc with two \"p\".\n\t\t\t\ttypeof selector === \"string\" && rneedsContext.test( selector ) ?\n\t\t\t\t\tjQuery( selector ) :\n\t\t\t\t\tselector || [],\n\t\t\t\tfalse\n\t\t\t).length;\n\t\t}\n\t} );\n\n\n\t// Initialize a jQuery object\n\n\n\t// A central reference to the root jQuery(document)\n\tvar rootjQuery,\n\n\t\t// A simple way to check for HTML strings\n\t\t// Prioritize #id over <tag> to avoid XSS via location.hash (#9521)\n\t\t// Strict HTML recognition (#11290: must start with <)\n\t\trquickExpr = /^(?:\\s*(<[\\w\\W]+>)[^>]*|#([\\w-]*))$/,\n\n\t\tinit = jQuery.fn.init = function( selector, context, root ) {\n\t\t\tvar match, elem;\n\n\t\t\t// HANDLE: $(\"\"), $(null), $(undefined), $(false)\n\t\t\tif ( !selector ) {\n\t\t\t\treturn this;\n\t\t\t}\n\n\t\t\t// Method init() accepts an alternate rootjQuery\n\t\t\t// so migrate can support jQuery.sub (gh-2101)\n\t\t\troot = root || rootjQuery;\n\n\t\t\t// Handle HTML strings\n\t\t\tif ( typeof selector === \"string\" ) {\n\t\t\t\tif ( selector[ 0 ] === \"<\" &&\n\t\t\t\t\tselector[ selector.length - 1 ] === \">\" &&\n\t\t\t\t\tselector.length >= 3 ) {\n\n\t\t\t\t\t// Assume that strings that start and end with <> are HTML and skip the regex check\n\t\t\t\t\tmatch = [ null, selector, null ];\n\n\t\t\t\t} else {\n\t\t\t\t\tmatch = rquickExpr.exec( selector );\n\t\t\t\t}\n\n\t\t\t\t// Match html or make sure no context is specified for #id\n\t\t\t\tif ( match && ( match[ 1 ] || !context ) ) {\n\n\t\t\t\t\t// HANDLE: $(html) -> $(array)\n\t\t\t\t\tif ( match[ 1 ] ) {\n\t\t\t\t\t\tcontext = context instanceof jQuery ? context[ 0 ] : context;\n\n\t\t\t\t\t\t// Option to run scripts is true for back-compat\n\t\t\t\t\t\t// Intentionally let the error be thrown if parseHTML is not present\n\t\t\t\t\t\tjQuery.merge( this, jQuery.parseHTML(\n\t\t\t\t\t\t\tmatch[ 1 ],\n\t\t\t\t\t\t\tcontext && context.nodeType ? context.ownerDocument || context : document,\n\t\t\t\t\t\t\ttrue\n\t\t\t\t\t\t) );\n\n\t\t\t\t\t\t// HANDLE: $(html, props)\n\t\t\t\t\t\tif ( rsingleTag.test( match[ 1 ] ) && jQuery.isPlainObject( context ) ) {\n\t\t\t\t\t\t\tfor ( match in context ) {\n\n\t\t\t\t\t\t\t\t// Properties of context are called as methods if possible\n\t\t\t\t\t\t\t\tif ( jQuery.isFunction( this[ match ] ) ) {\n\t\t\t\t\t\t\t\t\tthis[ match ]( context[ match ] );\n\n\t\t\t\t\t\t\t\t// ...and otherwise set as attributes\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tthis.attr( match, context[ match ] );\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\treturn this;\n\n\t\t\t\t\t// HANDLE: $(#id)\n\t\t\t\t\t} else {\n\t\t\t\t\t\telem = document.getElementById( match[ 2 ] );\n\n\t\t\t\t\t\t// Support: Blackberry 4.6\n\t\t\t\t\t\t// gEBID returns nodes no longer in the document (#6963)\n\t\t\t\t\t\tif ( elem && elem.parentNode ) {\n\n\t\t\t\t\t\t\t// Inject the element directly into the jQuery object\n\t\t\t\t\t\t\tthis.length = 1;\n\t\t\t\t\t\t\tthis[ 0 ] = elem;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tthis.context = document;\n\t\t\t\t\t\tthis.selector = selector;\n\t\t\t\t\t\treturn this;\n\t\t\t\t\t}\n\n\t\t\t\t// HANDLE: $(expr, $(...))\n\t\t\t\t} else if ( !context || context.jquery ) {\n\t\t\t\t\treturn ( context || root ).find( selector );\n\n\t\t\t\t// HANDLE: $(expr, context)\n\t\t\t\t// (which is just equivalent to: $(context).find(expr)\n\t\t\t\t} else {\n\t\t\t\t\treturn this.constructor( context ).find( selector );\n\t\t\t\t}\n\n\t\t\t// HANDLE: $(DOMElement)\n\t\t\t} else if ( selector.nodeType ) {\n\t\t\t\tthis.context = this[ 0 ] = selector;\n\t\t\t\tthis.length = 1;\n\t\t\t\treturn this;\n\n\t\t\t// HANDLE: $(function)\n\t\t\t// Shortcut for document ready\n\t\t\t} else if ( jQuery.isFunction( selector ) ) {\n\t\t\t\treturn root.ready !== undefined ?\n\t\t\t\t\troot.ready( selector ) :\n\n\t\t\t\t\t// Execute immediately if ready is not present\n\t\t\t\t\tselector( jQuery );\n\t\t\t}\n\n\t\t\tif ( selector.selector !== undefined ) {\n\t\t\t\tthis.selector = selector.selector;\n\t\t\t\tthis.context = selector.context;\n\t\t\t}\n\n\t\t\treturn jQuery.makeArray( selector, this );\n\t\t};\n\n\t// Give the init function the jQuery prototype for later instantiation\n\tinit.prototype = jQuery.fn;\n\n\t// Initialize central reference\n\trootjQuery = jQuery( document );\n\n\n\tvar rparentsprev = /^(?:parents|prev(?:Until|All))/,\n\n\t\t// Methods guaranteed to produce a unique set when starting from a unique set\n\t\tguaranteedUnique = {\n\t\t\tchildren: true,\n\t\t\tcontents: true,\n\t\t\tnext: true,\n\t\t\tprev: true\n\t\t};\n\n\tjQuery.fn.extend( {\n\t\thas: function( target ) {\n\t\t\tvar targets = jQuery( target, this ),\n\t\t\t\tl = targets.length;\n\n\t\t\treturn this.filter( function() {\n\t\t\t\tvar i = 0;\n\t\t\t\tfor ( ; i < l; i++ ) {\n\t\t\t\t\tif ( jQuery.contains( this, targets[ i ] ) ) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} );\n\t\t},\n\n\t\tclosest: function( selectors, context ) {\n\t\t\tvar cur,\n\t\t\t\ti = 0,\n\t\t\t\tl = this.length,\n\t\t\t\tmatched = [],\n\t\t\t\tpos = rneedsContext.test( selectors ) || typeof selectors !== \"string\" ?\n\t\t\t\t\tjQuery( selectors, context || this.context ) :\n\t\t\t\t\t0;\n\n\t\t\tfor ( ; i < l; i++ ) {\n\t\t\t\tfor ( cur = this[ i ]; cur && cur !== context; cur = cur.parentNode ) {\n\n\t\t\t\t\t// Always skip document fragments\n\t\t\t\t\tif ( cur.nodeType < 11 && ( pos ?\n\t\t\t\t\t\tpos.index( cur ) > -1 :\n\n\t\t\t\t\t\t// Don't pass non-elements to Sizzle\n\t\t\t\t\t\tcur.nodeType === 1 &&\n\t\t\t\t\t\t\tjQuery.find.matchesSelector( cur, selectors ) ) ) {\n\n\t\t\t\t\t\tmatched.push( cur );\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn this.pushStack( matched.length > 1 ? jQuery.uniqueSort( matched ) : matched );\n\t\t},\n\n\t\t// Determine the position of an element within the set\n\t\tindex: function( elem ) {\n\n\t\t\t// No argument, return index in parent\n\t\t\tif ( !elem ) {\n\t\t\t\treturn ( this[ 0 ] && this[ 0 ].parentNode ) ? this.first().prevAll().length : -1;\n\t\t\t}\n\n\t\t\t// Index in selector\n\t\t\tif ( typeof elem === \"string\" ) {\n\t\t\t\treturn indexOf.call( jQuery( elem ), this[ 0 ] );\n\t\t\t}\n\n\t\t\t// Locate the position of the desired element\n\t\t\treturn indexOf.call( this,\n\n\t\t\t\t// If it receives a jQuery object, the first element is used\n\t\t\t\telem.jquery ? elem[ 0 ] : elem\n\t\t\t);\n\t\t},\n\n\t\tadd: function( selector, context ) {\n\t\t\treturn this.pushStack(\n\t\t\t\tjQuery.uniqueSort(\n\t\t\t\t\tjQuery.merge( this.get(), jQuery( selector, context ) )\n\t\t\t\t)\n\t\t\t);\n\t\t},\n\n\t\taddBack: function( selector ) {\n\t\t\treturn this.add( selector == null ?\n\t\t\t\tthis.prevObject : this.prevObject.filter( selector )\n\t\t\t);\n\t\t}\n\t} );\n\n\tfunction sibling( cur, dir ) {\n\t\twhile ( ( cur = cur[ dir ] ) && cur.nodeType !== 1 ) {}\n\t\treturn cur;\n\t}\n\n\tjQuery.each( {\n\t\tparent: function( elem ) {\n\t\t\tvar parent = elem.parentNode;\n\t\t\treturn parent && parent.nodeType !== 11 ? parent : null;\n\t\t},\n\t\tparents: function( elem ) {\n\t\t\treturn dir( elem, \"parentNode\" );\n\t\t},\n\t\tparentsUntil: function( elem, i, until ) {\n\t\t\treturn dir( elem, \"parentNode\", until );\n\t\t},\n\t\tnext: function( elem ) {\n\t\t\treturn sibling( elem, \"nextSibling\" );\n\t\t},\n\t\tprev: function( elem ) {\n\t\t\treturn sibling( elem, \"previousSibling\" );\n\t\t},\n\t\tnextAll: function( elem ) {\n\t\t\treturn dir( elem, \"nextSibling\" );\n\t\t},\n\t\tprevAll: function( elem ) {\n\t\t\treturn dir( elem, \"previousSibling\" );\n\t\t},\n\t\tnextUntil: function( elem, i, until ) {\n\t\t\treturn dir( elem, \"nextSibling\", until );\n\t\t},\n\t\tprevUntil: function( elem, i, until ) {\n\t\t\treturn dir( elem, \"previousSibling\", until );\n\t\t},\n\t\tsiblings: function( elem ) {\n\t\t\treturn siblings( ( elem.parentNode || {} ).firstChild, elem );\n\t\t},\n\t\tchildren: function( elem ) {\n\t\t\treturn siblings( elem.firstChild );\n\t\t},\n\t\tcontents: function( elem ) {\n\t\t\treturn elem.contentDocument || jQuery.merge( [], elem.childNodes );\n\t\t}\n\t}, function( name, fn ) {\n\t\tjQuery.fn[ name ] = function( until, selector ) {\n\t\t\tvar matched = jQuery.map( this, fn, until );\n\n\t\t\tif ( name.slice( -5 ) !== \"Until\" ) {\n\t\t\t\tselector = until;\n\t\t\t}\n\n\t\t\tif ( selector && typeof selector === \"string\" ) {\n\t\t\t\tmatched = jQuery.filter( selector, matched );\n\t\t\t}\n\n\t\t\tif ( this.length > 1 ) {\n\n\t\t\t\t// Remove duplicates\n\t\t\t\tif ( !guaranteedUnique[ name ] ) {\n\t\t\t\t\tjQuery.uniqueSort( matched );\n\t\t\t\t}\n\n\t\t\t\t// Reverse order for parents* and prev-derivatives\n\t\t\t\tif ( rparentsprev.test( name ) ) {\n\t\t\t\t\tmatched.reverse();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn this.pushStack( matched );\n\t\t};\n\t} );\n\tvar rnotwhite = ( /\\S+/g );\n\n\n\n\t// Convert String-formatted options into Object-formatted ones\n\tfunction createOptions( options ) {\n\t\tvar object = {};\n\t\tjQuery.each( options.match( rnotwhite ) || [], function( _, flag ) {\n\t\t\tobject[ flag ] = true;\n\t\t} );\n\t\treturn object;\n\t}\n\n\t/*\n\t * Create a callback list using the following parameters:\n\t *\n\t *\toptions: an optional list of space-separated options that will change how\n\t *\t\t\tthe callback list behaves or a more traditional option object\n\t *\n\t * By default a callback list will act like an event callback list and can be\n\t * \"fired\" multiple times.\n\t *\n\t * Possible options:\n\t *\n\t *\tonce:\t\t\twill ensure the callback list can only be fired once (like a Deferred)\n\t *\n\t *\tmemory:\t\t\twill keep track of previous values and will call any callback added\n\t *\t\t\t\t\tafter the list has been fired right away with the latest \"memorized\"\n\t *\t\t\t\t\tvalues (like a Deferred)\n\t *\n\t *\tunique:\t\t\twill ensure a callback can only be added once (no duplicate in the list)\n\t *\n\t *\tstopOnFalse:\tinterrupt callings when a callback returns false\n\t *\n\t */\n\tjQuery.Callbacks = function( options ) {\n\n\t\t// Convert options from String-formatted to Object-formatted if needed\n\t\t// (we check in cache first)\n\t\toptions = typeof options === \"string\" ?\n\t\t\tcreateOptions( options ) :\n\t\t\tjQuery.extend( {}, options );\n\n\t\tvar // Flag to know if list is currently firing\n\t\t\tfiring,\n\n\t\t\t// Last fire value for non-forgettable lists\n\t\t\tmemory,\n\n\t\t\t// Flag to know if list was already fired\n\t\t\tfired,\n\n\t\t\t// Flag to prevent firing\n\t\t\tlocked,\n\n\t\t\t// Actual callback list\n\t\t\tlist = [],\n\n\t\t\t// Queue of execution data for repeatable lists\n\t\t\tqueue = [],\n\n\t\t\t// Index of currently firing callback (modified by add/remove as needed)\n\t\t\tfiringIndex = -1,\n\n\t\t\t// Fire callbacks\n\t\t\tfire = function() {\n\n\t\t\t\t// Enforce single-firing\n\t\t\t\tlocked = options.once;\n\n\t\t\t\t// Execute callbacks for all pending executions,\n\t\t\t\t// respecting firingIndex overrides and runtime changes\n\t\t\t\tfired = firing = true;\n\t\t\t\tfor ( ; queue.length; firingIndex = -1 ) {\n\t\t\t\t\tmemory = queue.shift();\n\t\t\t\t\twhile ( ++firingIndex < list.length ) {\n\n\t\t\t\t\t\t// Run callback and check for early termination\n\t\t\t\t\t\tif ( list[ firingIndex ].apply( memory[ 0 ], memory[ 1 ] ) === false &&\n\t\t\t\t\t\t\toptions.stopOnFalse ) {\n\n\t\t\t\t\t\t\t// Jump to end and forget the data so .add doesn't re-fire\n\t\t\t\t\t\t\tfiringIndex = list.length;\n\t\t\t\t\t\t\tmemory = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Forget the data if we're done with it\n\t\t\t\tif ( !options.memory ) {\n\t\t\t\t\tmemory = false;\n\t\t\t\t}\n\n\t\t\t\tfiring = false;\n\n\t\t\t\t// Clean up if we're done firing for good\n\t\t\t\tif ( locked ) {\n\n\t\t\t\t\t// Keep an empty list if we have data for future add calls\n\t\t\t\t\tif ( memory ) {\n\t\t\t\t\t\tlist = [];\n\n\t\t\t\t\t// Otherwise, this object is spent\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlist = \"\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\n\t\t\t// Actual Callbacks object\n\t\t\tself = {\n\n\t\t\t\t// Add a callback or a collection of callbacks to the list\n\t\t\t\tadd: function() {\n\t\t\t\t\tif ( list ) {\n\n\t\t\t\t\t\t// If we have memory from a past run, we should fire after adding\n\t\t\t\t\t\tif ( memory && !firing ) {\n\t\t\t\t\t\t\tfiringIndex = list.length - 1;\n\t\t\t\t\t\t\tqueue.push( memory );\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t( function add( args ) {\n\t\t\t\t\t\t\tjQuery.each( args, function( _, arg ) {\n\t\t\t\t\t\t\t\tif ( jQuery.isFunction( arg ) ) {\n\t\t\t\t\t\t\t\t\tif ( !options.unique || !self.has( arg ) ) {\n\t\t\t\t\t\t\t\t\t\tlist.push( arg );\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else if ( arg && arg.length && jQuery.type( arg ) !== \"string\" ) {\n\n\t\t\t\t\t\t\t\t\t// Inspect recursively\n\t\t\t\t\t\t\t\t\tadd( arg );\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t} )( arguments );\n\n\t\t\t\t\t\tif ( memory && !firing ) {\n\t\t\t\t\t\t\tfire();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\treturn this;\n\t\t\t\t},\n\n\t\t\t\t// Remove a callback from the list\n\t\t\t\tremove: function() {\n\t\t\t\t\tjQuery.each( arguments, function( _, arg ) {\n\t\t\t\t\t\tvar index;\n\t\t\t\t\t\twhile ( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) {\n\t\t\t\t\t\t\tlist.splice( index, 1 );\n\n\t\t\t\t\t\t\t// Handle firing indexes\n\t\t\t\t\t\t\tif ( index <= firingIndex ) {\n\t\t\t\t\t\t\t\tfiringIndex--;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} );\n\t\t\t\t\treturn this;\n\t\t\t\t},\n\n\t\t\t\t// Check if a given callback is in the list.\n\t\t\t\t// If no argument is given, return whether or not list has callbacks attached.\n\t\t\t\thas: function( fn ) {\n\t\t\t\t\treturn fn ?\n\t\t\t\t\t\tjQuery.inArray( fn, list ) > -1 :\n\t\t\t\t\t\tlist.length > 0;\n\t\t\t\t},\n\n\t\t\t\t// Remove all callbacks from the list\n\t\t\t\tempty: function() {\n\t\t\t\t\tif ( list ) {\n\t\t\t\t\t\tlist = [];\n\t\t\t\t\t}\n\t\t\t\t\treturn this;\n\t\t\t\t},\n\n\t\t\t\t// Disable .fire and .add\n\t\t\t\t// Abort any current/pending executions\n\t\t\t\t// Clear all callbacks and values\n\t\t\t\tdisable: function() {\n\t\t\t\t\tlocked = queue = [];\n\t\t\t\t\tlist = memory = \"\";\n\t\t\t\t\treturn this;\n\t\t\t\t},\n\t\t\t\tdisabled: function() {\n\t\t\t\t\treturn !list;\n\t\t\t\t},\n\n\t\t\t\t// Disable .fire\n\t\t\t\t// Also disable .add unless we have memory (since it would have no effect)\n\t\t\t\t// Abort any pending executions\n\t\t\t\tlock: function() {\n\t\t\t\t\tlocked = queue = [];\n\t\t\t\t\tif ( !memory ) {\n\t\t\t\t\t\tlist = memory = \"\";\n\t\t\t\t\t}\n\t\t\t\t\treturn this;\n\t\t\t\t},\n\t\t\t\tlocked: function() {\n\t\t\t\t\treturn !!locked;\n\t\t\t\t},\n\n\t\t\t\t// Call all callbacks with the given context and arguments\n\t\t\t\tfireWith: function( context, args ) {\n\t\t\t\t\tif ( !locked ) {\n\t\t\t\t\t\targs = args || [];\n\t\t\t\t\t\targs = [ context, args.slice ? args.slice() : args ];\n\t\t\t\t\t\tqueue.push( args );\n\t\t\t\t\t\tif ( !firing ) {\n\t\t\t\t\t\t\tfire();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\treturn this;\n\t\t\t\t},\n\n\t\t\t\t// Call all the callbacks with the given arguments\n\t\t\t\tfire: function() {\n\t\t\t\t\tself.fireWith( this, arguments );\n\t\t\t\t\treturn this;\n\t\t\t\t},\n\n\t\t\t\t// To know if the callbacks have already been called at least once\n\t\t\t\tfired: function() {\n\t\t\t\t\treturn !!fired;\n\t\t\t\t}\n\t\t\t};\n\n\t\treturn self;\n\t};\n\n\n\tjQuery.extend( {\n\n\t\tDeferred: function( func ) {\n\t\t\tvar tuples = [\n\n\t\t\t\t\t// action, add listener, listener list, final state\n\t\t\t\t\t[ \"resolve\", \"done\", jQuery.Callbacks( \"once memory\" ), \"resolved\" ],\n\t\t\t\t\t[ \"reject\", \"fail\", jQuery.Callbacks( \"once memory\" ), \"rejected\" ],\n\t\t\t\t\t[ \"notify\", \"progress\", jQuery.Callbacks( \"memory\" ) ]\n\t\t\t\t],\n\t\t\t\tstate = \"pending\",\n\t\t\t\tpromise = {\n\t\t\t\t\tstate: function() {\n\t\t\t\t\t\treturn state;\n\t\t\t\t\t},\n\t\t\t\t\talways: function() {\n\t\t\t\t\t\tdeferred.done( arguments ).fail( arguments );\n\t\t\t\t\t\treturn this;\n\t\t\t\t\t},\n\t\t\t\t\tthen: function( /* fnDone, fnFail, fnProgress */ ) {\n\t\t\t\t\t\tvar fns = arguments;\n\t\t\t\t\t\treturn jQuery.Deferred( function( newDefer ) {\n\t\t\t\t\t\t\tjQuery.each( tuples, function( i, tuple ) {\n\t\t\t\t\t\t\t\tvar fn = jQuery.isFunction( fns[ i ] ) && fns[ i ];\n\n\t\t\t\t\t\t\t\t// deferred[ done | fail | progress ] for forwarding actions to newDefer\n\t\t\t\t\t\t\t\tdeferred[ tuple[ 1 ] ]( function() {\n\t\t\t\t\t\t\t\t\tvar returned = fn && fn.apply( this, arguments );\n\t\t\t\t\t\t\t\t\tif ( returned && jQuery.isFunction( returned.promise ) ) {\n\t\t\t\t\t\t\t\t\t\treturned.promise()\n\t\t\t\t\t\t\t\t\t\t\t.progress( newDefer.notify )\n\t\t\t\t\t\t\t\t\t\t\t.done( newDefer.resolve )\n\t\t\t\t\t\t\t\t\t\t\t.fail( newDefer.reject );\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tnewDefer[ tuple[ 0 ] + \"With\" ](\n\t\t\t\t\t\t\t\t\t\t\tthis === promise ? newDefer.promise() : this,\n\t\t\t\t\t\t\t\t\t\t\tfn ? [ returned ] : arguments\n\t\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t\tfns = null;\n\t\t\t\t\t\t} ).promise();\n\t\t\t\t\t},\n\n\t\t\t\t\t// Get a promise for this deferred\n\t\t\t\t\t// If obj is provided, the promise aspect is added to the object\n\t\t\t\t\tpromise: function( obj ) {\n\t\t\t\t\t\treturn obj != null ? jQuery.extend( obj, promise ) : promise;\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tdeferred = {};\n\n\t\t\t// Keep pipe for back-compat\n\t\t\tpromise.pipe = promise.then;\n\n\t\t\t// Add list-specific methods\n\t\t\tjQuery.each( tuples, function( i, tuple ) {\n\t\t\t\tvar list = tuple[ 2 ],\n\t\t\t\t\tstateString = tuple[ 3 ];\n\n\t\t\t\t// promise[ done | fail | progress ] = list.add\n\t\t\t\tpromise[ tuple[ 1 ] ] = list.add;\n\n\t\t\t\t// Handle state\n\t\t\t\tif ( stateString ) {\n\t\t\t\t\tlist.add( function() {\n\n\t\t\t\t\t\t// state = [ resolved | rejected ]\n\t\t\t\t\t\tstate = stateString;\n\n\t\t\t\t\t// [ reject_list | resolve_list ].disable; progress_list.lock\n\t\t\t\t\t}, tuples[ i ^ 1 ][ 2 ].disable, tuples[ 2 ][ 2 ].lock );\n\t\t\t\t}\n\n\t\t\t\t// deferred[ resolve | reject | notify ]\n\t\t\t\tdeferred[ tuple[ 0 ] ] = function() {\n\t\t\t\t\tdeferred[ tuple[ 0 ] + \"With\" ]( this === deferred ? promise : this, arguments );\n\t\t\t\t\treturn this;\n\t\t\t\t};\n\t\t\t\tdeferred[ tuple[ 0 ] + \"With\" ] = list.fireWith;\n\t\t\t} );\n\n\t\t\t// Make the deferred a promise\n\t\t\tpromise.promise( deferred );\n\n\t\t\t// Call given func if any\n\t\t\tif ( func ) {\n\t\t\t\tfunc.call( deferred, deferred );\n\t\t\t}\n\n\t\t\t// All done!\n\t\t\treturn deferred;\n\t\t},\n\n\t\t// Deferred helper\n\t\twhen: function( subordinate /* , ..., subordinateN */ ) {\n\t\t\tvar i = 0,\n\t\t\t\tresolveValues = slice.call( arguments ),\n\t\t\t\tlength = resolveValues.length,\n\n\t\t\t\t// the count of uncompleted subordinates\n\t\t\t\tremaining = length !== 1 ||\n\t\t\t\t\t( subordinate && jQuery.isFunction( subordinate.promise ) ) ? length : 0,\n\n\t\t\t\t// the master Deferred.\n\t\t\t\t// If resolveValues consist of only a single Deferred, just use that.\n\t\t\t\tdeferred = remaining === 1 ? subordinate : jQuery.Deferred(),\n\n\t\t\t\t// Update function for both resolve and progress values\n\t\t\t\tupdateFunc = function( i, contexts, values ) {\n\t\t\t\t\treturn function( value ) {\n\t\t\t\t\t\tcontexts[ i ] = this;\n\t\t\t\t\t\tvalues[ i ] = arguments.length > 1 ? slice.call( arguments ) : value;\n\t\t\t\t\t\tif ( values === progressValues ) {\n\t\t\t\t\t\t\tdeferred.notifyWith( contexts, values );\n\t\t\t\t\t\t} else if ( !( --remaining ) ) {\n\t\t\t\t\t\t\tdeferred.resolveWith( contexts, values );\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t},\n\n\t\t\t\tprogressValues, progressContexts, resolveContexts;\n\n\t\t\t// Add listeners to Deferred subordinates; treat others as resolved\n\t\t\tif ( length > 1 ) {\n\t\t\t\tprogressValues = new Array( length );\n\t\t\t\tprogressContexts = new Array( length );\n\t\t\t\tresolveContexts = new Array( length );\n\t\t\t\tfor ( ; i < length; i++ ) {\n\t\t\t\t\tif ( resolveValues[ i ] && jQuery.isFunction( resolveValues[ i ].promise ) ) {\n\t\t\t\t\t\tresolveValues[ i ].promise()\n\t\t\t\t\t\t\t.progress( updateFunc( i, progressContexts, progressValues ) )\n\t\t\t\t\t\t\t.done( updateFunc( i, resolveContexts, resolveValues ) )\n\t\t\t\t\t\t\t.fail( deferred.reject );\n\t\t\t\t\t} else {\n\t\t\t\t\t\t--remaining;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// If we're not waiting on anything, resolve the master\n\t\t\tif ( !remaining ) {\n\t\t\t\tdeferred.resolveWith( resolveContexts, resolveValues );\n\t\t\t}\n\n\t\t\treturn deferred.promise();\n\t\t}\n\t} );\n\n\n\t// The deferred used on DOM ready\n\tvar readyList;\n\n\tjQuery.fn.ready = function( fn ) {\n\n\t\t// Add the callback\n\t\tjQuery.ready.promise().done( fn );\n\n\t\treturn this;\n\t};\n\n\tjQuery.extend( {\n\n\t\t// Is the DOM ready to be used? Set to true once it occurs.\n\t\tisReady: false,\n\n\t\t// A counter to track how many items to wait for before\n\t\t// the ready event fires. See #6781\n\t\treadyWait: 1,\n\n\t\t// Hold (or release) the ready event\n\t\tholdReady: function( hold ) {\n\t\t\tif ( hold ) {\n\t\t\t\tjQuery.readyWait++;\n\t\t\t} else {\n\t\t\t\tjQuery.ready( true );\n\t\t\t}\n\t\t},\n\n\t\t// Handle when the DOM is ready\n\t\tready: function( wait ) {\n\n\t\t\t// Abort if there are pending holds or we're already ready\n\t\t\tif ( wait === true ? --jQuery.readyWait : jQuery.isReady ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Remember that the DOM is ready\n\t\t\tjQuery.isReady = true;\n\n\t\t\t// If a normal DOM Ready event fired, decrement, and wait if need be\n\t\t\tif ( wait !== true && --jQuery.readyWait > 0 ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// If there are functions bound, to execute\n\t\t\treadyList.resolveWith( document, [ jQuery ] );\n\n\t\t\t// Trigger any bound ready events\n\t\t\tif ( jQuery.fn.triggerHandler ) {\n\t\t\t\tjQuery( document ).triggerHandler( \"ready\" );\n\t\t\t\tjQuery( document ).off( \"ready\" );\n\t\t\t}\n\t\t}\n\t} );\n\n\t/**\n\t * The ready event handler and self cleanup method\n\t */\n\tfunction completed() {\n\t\tdocument.removeEventListener( \"DOMContentLoaded\", completed );\n\t\twindow.removeEventListener( \"load\", completed );\n\t\tjQuery.ready();\n\t}\n\n\tjQuery.ready.promise = function( obj ) {\n\t\tif ( !readyList ) {\n\n\t\t\treadyList = jQuery.Deferred();\n\n\t\t\t// Catch cases where $(document).ready() is called\n\t\t\t// after the browser event has already occurred.\n\t\t\t// Support: IE9-10 only\n\t\t\t// Older IE sometimes signals \"interactive\" too soon\n\t\t\tif ( document.readyState === \"complete\" ||\n\t\t\t\t( document.readyState !== \"loading\" && !document.documentElement.doScroll ) ) {\n\n\t\t\t\t// Handle it asynchronously to allow scripts the opportunity to delay ready\n\t\t\t\twindow.setTimeout( jQuery.ready );\n\n\t\t\t} else {\n\n\t\t\t\t// Use the handy event callback\n\t\t\t\tdocument.addEventListener( \"DOMContentLoaded\", completed );\n\n\t\t\t\t// A fallback to window.onload, that will always work\n\t\t\t\twindow.addEventListener( \"load\", completed );\n\t\t\t}\n\t\t}\n\t\treturn readyList.promise( obj );\n\t};\n\n\t// Kick off the DOM ready check even if the user does not\n\tjQuery.ready.promise();\n\n\n\n\n\t// Multifunctional method to get and set values of a collection\n\t// The value/s can optionally be executed if it's a function\n\tvar access = function( elems, fn, key, value, chainable, emptyGet, raw ) {\n\t\tvar i = 0,\n\t\t\tlen = elems.length,\n\t\t\tbulk = key == null;\n\n\t\t// Sets many values\n\t\tif ( jQuery.type( key ) === \"object\" ) {\n\t\t\tchainable = true;\n\t\t\tfor ( i in key ) {\n\t\t\t\taccess( elems, fn, i, key[ i ], true, emptyGet, raw );\n\t\t\t}\n\n\t\t// Sets one value\n\t\t} else if ( value !== undefined ) {\n\t\t\tchainable = true;\n\n\t\t\tif ( !jQuery.isFunction( value ) ) {\n\t\t\t\traw = true;\n\t\t\t}\n\n\t\t\tif ( bulk ) {\n\n\t\t\t\t// Bulk operations run against the entire set\n\t\t\t\tif ( raw ) {\n\t\t\t\t\tfn.call( elems, value );\n\t\t\t\t\tfn = null;\n\n\t\t\t\t// ...except when executing function values\n\t\t\t\t} else {\n\t\t\t\t\tbulk = fn;\n\t\t\t\t\tfn = function( elem, key, value ) {\n\t\t\t\t\t\treturn bulk.call( jQuery( elem ), value );\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( fn ) {\n\t\t\t\tfor ( ; i < len; i++ ) {\n\t\t\t\t\tfn(\n\t\t\t\t\t\telems[ i ], key, raw ?\n\t\t\t\t\t\tvalue :\n\t\t\t\t\t\tvalue.call( elems[ i ], i, fn( elems[ i ], key ) )\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn chainable ?\n\t\t\telems :\n\n\t\t\t// Gets\n\t\t\tbulk ?\n\t\t\t\tfn.call( elems ) :\n\t\t\t\tlen ? fn( elems[ 0 ], key ) : emptyGet;\n\t};\n\tvar acceptData = function( owner ) {\n\n\t\t// Accepts only:\n\t\t//  - Node\n\t\t//    - Node.ELEMENT_NODE\n\t\t//    - Node.DOCUMENT_NODE\n\t\t//  - Object\n\t\t//    - Any\n\t\t/* jshint -W018 */\n\t\treturn owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType );\n\t};\n\n\n\n\n\tfunction Data() {\n\t\tthis.expando = jQuery.expando + Data.uid++;\n\t}\n\n\tData.uid = 1;\n\n\tData.prototype = {\n\n\t\tregister: function( owner, initial ) {\n\t\t\tvar value = initial || {};\n\n\t\t\t// If it is a node unlikely to be stringify-ed or looped over\n\t\t\t// use plain assignment\n\t\t\tif ( owner.nodeType ) {\n\t\t\t\towner[ this.expando ] = value;\n\n\t\t\t// Otherwise secure it in a non-enumerable, non-writable property\n\t\t\t// configurability must be true to allow the property to be\n\t\t\t// deleted with the delete operator\n\t\t\t} else {\n\t\t\t\tObject.defineProperty( owner, this.expando, {\n\t\t\t\t\tvalue: value,\n\t\t\t\t\twritable: true,\n\t\t\t\t\tconfigurable: true\n\t\t\t\t} );\n\t\t\t}\n\t\t\treturn owner[ this.expando ];\n\t\t},\n\t\tcache: function( owner ) {\n\n\t\t\t// We can accept data for non-element nodes in modern browsers,\n\t\t\t// but we should not, see #8335.\n\t\t\t// Always return an empty object.\n\t\t\tif ( !acceptData( owner ) ) {\n\t\t\t\treturn {};\n\t\t\t}\n\n\t\t\t// Check if the owner object already has a cache\n\t\t\tvar value = owner[ this.expando ];\n\n\t\t\t// If not, create one\n\t\t\tif ( !value ) {\n\t\t\t\tvalue = {};\n\n\t\t\t\t// We can accept data for non-element nodes in modern browsers,\n\t\t\t\t// but we should not, see #8335.\n\t\t\t\t// Always return an empty object.\n\t\t\t\tif ( acceptData( owner ) ) {\n\n\t\t\t\t\t// If it is a node unlikely to be stringify-ed or looped over\n\t\t\t\t\t// use plain assignment\n\t\t\t\t\tif ( owner.nodeType ) {\n\t\t\t\t\t\towner[ this.expando ] = value;\n\n\t\t\t\t\t// Otherwise secure it in a non-enumerable property\n\t\t\t\t\t// configurable must be true to allow the property to be\n\t\t\t\t\t// deleted when data is removed\n\t\t\t\t\t} else {\n\t\t\t\t\t\tObject.defineProperty( owner, this.expando, {\n\t\t\t\t\t\t\tvalue: value,\n\t\t\t\t\t\t\tconfigurable: true\n\t\t\t\t\t\t} );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn value;\n\t\t},\n\t\tset: function( owner, data, value ) {\n\t\t\tvar prop,\n\t\t\t\tcache = this.cache( owner );\n\n\t\t\t// Handle: [ owner, key, value ] args\n\t\t\tif ( typeof data === \"string\" ) {\n\t\t\t\tcache[ data ] = value;\n\n\t\t\t// Handle: [ owner, { properties } ] args\n\t\t\t} else {\n\n\t\t\t\t// Copy the properties one-by-one to the cache object\n\t\t\t\tfor ( prop in data ) {\n\t\t\t\t\tcache[ prop ] = data[ prop ];\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn cache;\n\t\t},\n\t\tget: function( owner, key ) {\n\t\t\treturn key === undefined ?\n\t\t\t\tthis.cache( owner ) :\n\t\t\t\towner[ this.expando ] && owner[ this.expando ][ key ];\n\t\t},\n\t\taccess: function( owner, key, value ) {\n\t\t\tvar stored;\n\n\t\t\t// In cases where either:\n\t\t\t//\n\t\t\t//   1. No key was specified\n\t\t\t//   2. A string key was specified, but no value provided\n\t\t\t//\n\t\t\t// Take the \"read\" path and allow the get method to determine\n\t\t\t// which value to return, respectively either:\n\t\t\t//\n\t\t\t//   1. The entire cache object\n\t\t\t//   2. The data stored at the key\n\t\t\t//\n\t\t\tif ( key === undefined ||\n\t\t\t\t\t( ( key && typeof key === \"string\" ) && value === undefined ) ) {\n\n\t\t\t\tstored = this.get( owner, key );\n\n\t\t\t\treturn stored !== undefined ?\n\t\t\t\t\tstored : this.get( owner, jQuery.camelCase( key ) );\n\t\t\t}\n\n\t\t\t// When the key is not a string, or both a key and value\n\t\t\t// are specified, set or extend (existing objects) with either:\n\t\t\t//\n\t\t\t//   1. An object of properties\n\t\t\t//   2. A key and value\n\t\t\t//\n\t\t\tthis.set( owner, key, value );\n\n\t\t\t// Since the \"set\" path can have two possible entry points\n\t\t\t// return the expected data based on which path was taken[*]\n\t\t\treturn value !== undefined ? value : key;\n\t\t},\n\t\tremove: function( owner, key ) {\n\t\t\tvar i, name, camel,\n\t\t\t\tcache = owner[ this.expando ];\n\n\t\t\tif ( cache === undefined ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif ( key === undefined ) {\n\t\t\t\tthis.register( owner );\n\n\t\t\t} else {\n\n\t\t\t\t// Support array or space separated string of keys\n\t\t\t\tif ( jQuery.isArray( key ) ) {\n\n\t\t\t\t\t// If \"name\" is an array of keys...\n\t\t\t\t\t// When data is initially created, via (\"key\", \"val\") signature,\n\t\t\t\t\t// keys will be converted to camelCase.\n\t\t\t\t\t// Since there is no way to tell _how_ a key was added, remove\n\t\t\t\t\t// both plain key and camelCase key. #12786\n\t\t\t\t\t// This will only penalize the array argument path.\n\t\t\t\t\tname = key.concat( key.map( jQuery.camelCase ) );\n\t\t\t\t} else {\n\t\t\t\t\tcamel = jQuery.camelCase( key );\n\n\t\t\t\t\t// Try the string as a key before any manipulation\n\t\t\t\t\tif ( key in cache ) {\n\t\t\t\t\t\tname = [ key, camel ];\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\t// If a key with the spaces exists, use it.\n\t\t\t\t\t\t// Otherwise, create an array by matching non-whitespace\n\t\t\t\t\t\tname = camel;\n\t\t\t\t\t\tname = name in cache ?\n\t\t\t\t\t\t\t[ name ] : ( name.match( rnotwhite ) || [] );\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\ti = name.length;\n\n\t\t\t\twhile ( i-- ) {\n\t\t\t\t\tdelete cache[ name[ i ] ];\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Remove the expando if there's no more data\n\t\t\tif ( key === undefined || jQuery.isEmptyObject( cache ) ) {\n\n\t\t\t\t// Support: Chrome <= 35-45+\n\t\t\t\t// Webkit & Blink performance suffers when deleting properties\n\t\t\t\t// from DOM nodes, so set to undefined instead\n\t\t\t\t// https://code.google.com/p/chromium/issues/detail?id=378607\n\t\t\t\tif ( owner.nodeType ) {\n\t\t\t\t\towner[ this.expando ] = undefined;\n\t\t\t\t} else {\n\t\t\t\t\tdelete owner[ this.expando ];\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\thasData: function( owner ) {\n\t\t\tvar cache = owner[ this.expando ];\n\t\t\treturn cache !== undefined && !jQuery.isEmptyObject( cache );\n\t\t}\n\t};\n\tvar dataPriv = new Data();\n\n\tvar dataUser = new Data();\n\n\n\n\t//\tImplementation Summary\n\t//\n\t//\t1. Enforce API surface and semantic compatibility with 1.9.x branch\n\t//\t2. Improve the module's maintainability by reducing the storage\n\t//\t\tpaths to a single mechanism.\n\t//\t3. Use the same single mechanism to support \"private\" and \"user\" data.\n\t//\t4. _Never_ expose \"private\" data to user code (TODO: Drop _data, _removeData)\n\t//\t5. Avoid exposing implementation details on user objects (eg. expando properties)\n\t//\t6. Provide a clear path for implementation upgrade to WeakMap in 2014\n\n\tvar rbrace = /^(?:\\{[\\w\\W]*\\}|\\[[\\w\\W]*\\])$/,\n\t\trmultiDash = /[A-Z]/g;\n\n\tfunction dataAttr( elem, key, data ) {\n\t\tvar name;\n\n\t\t// If nothing was found internally, try to fetch any\n\t\t// data from the HTML5 data-* attribute\n\t\tif ( data === undefined && elem.nodeType === 1 ) {\n\t\t\tname = \"data-\" + key.replace( rmultiDash, \"-$&\" ).toLowerCase();\n\t\t\tdata = elem.getAttribute( name );\n\n\t\t\tif ( typeof data === \"string\" ) {\n\t\t\t\ttry {\n\t\t\t\t\tdata = data === \"true\" ? true :\n\t\t\t\t\t\tdata === \"false\" ? false :\n\t\t\t\t\t\tdata === \"null\" ? null :\n\n\t\t\t\t\t\t// Only convert to a number if it doesn't change the string\n\t\t\t\t\t\t+data + \"\" === data ? +data :\n\t\t\t\t\t\trbrace.test( data ) ? jQuery.parseJSON( data ) :\n\t\t\t\t\t\tdata;\n\t\t\t\t} catch ( e ) {}\n\n\t\t\t\t// Make sure we set the data so it isn't changed later\n\t\t\t\tdataUser.set( elem, key, data );\n\t\t\t} else {\n\t\t\t\tdata = undefined;\n\t\t\t}\n\t\t}\n\t\treturn data;\n\t}\n\n\tjQuery.extend( {\n\t\thasData: function( elem ) {\n\t\t\treturn dataUser.hasData( elem ) || dataPriv.hasData( elem );\n\t\t},\n\n\t\tdata: function( elem, name, data ) {\n\t\t\treturn dataUser.access( elem, name, data );\n\t\t},\n\n\t\tremoveData: function( elem, name ) {\n\t\t\tdataUser.remove( elem, name );\n\t\t},\n\n\t\t// TODO: Now that all calls to _data and _removeData have been replaced\n\t\t// with direct calls to dataPriv methods, these can be deprecated.\n\t\t_data: function( elem, name, data ) {\n\t\t\treturn dataPriv.access( elem, name, data );\n\t\t},\n\n\t\t_removeData: function( elem, name ) {\n\t\t\tdataPriv.remove( elem, name );\n\t\t}\n\t} );\n\n\tjQuery.fn.extend( {\n\t\tdata: function( key, value ) {\n\t\t\tvar i, name, data,\n\t\t\t\telem = this[ 0 ],\n\t\t\t\tattrs = elem && elem.attributes;\n\n\t\t\t// Gets all values\n\t\t\tif ( key === undefined ) {\n\t\t\t\tif ( this.length ) {\n\t\t\t\t\tdata = dataUser.get( elem );\n\n\t\t\t\t\tif ( elem.nodeType === 1 && !dataPriv.get( elem, \"hasDataAttrs\" ) ) {\n\t\t\t\t\t\ti = attrs.length;\n\t\t\t\t\t\twhile ( i-- ) {\n\n\t\t\t\t\t\t\t// Support: IE11+\n\t\t\t\t\t\t\t// The attrs elements can be null (#14894)\n\t\t\t\t\t\t\tif ( attrs[ i ] ) {\n\t\t\t\t\t\t\t\tname = attrs[ i ].name;\n\t\t\t\t\t\t\t\tif ( name.indexOf( \"data-\" ) === 0 ) {\n\t\t\t\t\t\t\t\t\tname = jQuery.camelCase( name.slice( 5 ) );\n\t\t\t\t\t\t\t\t\tdataAttr( elem, name, data[ name ] );\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdataPriv.set( elem, \"hasDataAttrs\", true );\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn data;\n\t\t\t}\n\n\t\t\t// Sets multiple values\n\t\t\tif ( typeof key === \"object\" ) {\n\t\t\t\treturn this.each( function() {\n\t\t\t\t\tdataUser.set( this, key );\n\t\t\t\t} );\n\t\t\t}\n\n\t\t\treturn access( this, function( value ) {\n\t\t\t\tvar data, camelKey;\n\n\t\t\t\t// The calling jQuery object (element matches) is not empty\n\t\t\t\t// (and therefore has an element appears at this[ 0 ]) and the\n\t\t\t\t// `value` parameter was not undefined. An empty jQuery object\n\t\t\t\t// will result in `undefined` for elem = this[ 0 ] which will\n\t\t\t\t// throw an exception if an attempt to read a data cache is made.\n\t\t\t\tif ( elem && value === undefined ) {\n\n\t\t\t\t\t// Attempt to get data from the cache\n\t\t\t\t\t// with the key as-is\n\t\t\t\t\tdata = dataUser.get( elem, key ) ||\n\n\t\t\t\t\t\t// Try to find dashed key if it exists (gh-2779)\n\t\t\t\t\t\t// This is for 2.2.x only\n\t\t\t\t\t\tdataUser.get( elem, key.replace( rmultiDash, \"-$&\" ).toLowerCase() );\n\n\t\t\t\t\tif ( data !== undefined ) {\n\t\t\t\t\t\treturn data;\n\t\t\t\t\t}\n\n\t\t\t\t\tcamelKey = jQuery.camelCase( key );\n\n\t\t\t\t\t// Attempt to get data from the cache\n\t\t\t\t\t// with the key camelized\n\t\t\t\t\tdata = dataUser.get( elem, camelKey );\n\t\t\t\t\tif ( data !== undefined ) {\n\t\t\t\t\t\treturn data;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Attempt to \"discover\" the data in\n\t\t\t\t\t// HTML5 custom data-* attrs\n\t\t\t\t\tdata = dataAttr( elem, camelKey, undefined );\n\t\t\t\t\tif ( data !== undefined ) {\n\t\t\t\t\t\treturn data;\n\t\t\t\t\t}\n\n\t\t\t\t\t// We tried really hard, but the data doesn't exist.\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t// Set the data...\n\t\t\t\tcamelKey = jQuery.camelCase( key );\n\t\t\t\tthis.each( function() {\n\n\t\t\t\t\t// First, attempt to store a copy or reference of any\n\t\t\t\t\t// data that might've been store with a camelCased key.\n\t\t\t\t\tvar data = dataUser.get( this, camelKey );\n\n\t\t\t\t\t// For HTML5 data-* attribute interop, we have to\n\t\t\t\t\t// store property names with dashes in a camelCase form.\n\t\t\t\t\t// This might not apply to all properties...*\n\t\t\t\t\tdataUser.set( this, camelKey, value );\n\n\t\t\t\t\t// *... In the case of properties that might _actually_\n\t\t\t\t\t// have dashes, we need to also store a copy of that\n\t\t\t\t\t// unchanged property.\n\t\t\t\t\tif ( key.indexOf( \"-\" ) > -1 && data !== undefined ) {\n\t\t\t\t\t\tdataUser.set( this, key, value );\n\t\t\t\t\t}\n\t\t\t\t} );\n\t\t\t}, null, value, arguments.length > 1, null, true );\n\t\t},\n\n\t\tremoveData: function( key ) {\n\t\t\treturn this.each( function() {\n\t\t\t\tdataUser.remove( this, key );\n\t\t\t} );\n\t\t}\n\t} );\n\n\n\tjQuery.extend( {\n\t\tqueue: function( elem, type, data ) {\n\t\t\tvar queue;\n\n\t\t\tif ( elem ) {\n\t\t\t\ttype = ( type || \"fx\" ) + \"queue\";\n\t\t\t\tqueue = dataPriv.get( elem, type );\n\n\t\t\t\t// Speed up dequeue by getting out quickly if this is just a lookup\n\t\t\t\tif ( data ) {\n\t\t\t\t\tif ( !queue || jQuery.isArray( data ) ) {\n\t\t\t\t\t\tqueue = dataPriv.access( elem, type, jQuery.makeArray( data ) );\n\t\t\t\t\t} else {\n\t\t\t\t\t\tqueue.push( data );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn queue || [];\n\t\t\t}\n\t\t},\n\n\t\tdequeue: function( elem, type ) {\n\t\t\ttype = type || \"fx\";\n\n\t\t\tvar queue = jQuery.queue( elem, type ),\n\t\t\t\tstartLength = queue.length,\n\t\t\t\tfn = queue.shift(),\n\t\t\t\thooks = jQuery._queueHooks( elem, type ),\n\t\t\t\tnext = function() {\n\t\t\t\t\tjQuery.dequeue( elem, type );\n\t\t\t\t};\n\n\t\t\t// If the fx queue is dequeued, always remove the progress sentinel\n\t\t\tif ( fn === \"inprogress\" ) {\n\t\t\t\tfn = queue.shift();\n\t\t\t\tstartLength--;\n\t\t\t}\n\n\t\t\tif ( fn ) {\n\n\t\t\t\t// Add a progress sentinel to prevent the fx queue from being\n\t\t\t\t// automatically dequeued\n\t\t\t\tif ( type === \"fx\" ) {\n\t\t\t\t\tqueue.unshift( \"inprogress\" );\n\t\t\t\t}\n\n\t\t\t\t// Clear up the last queue stop function\n\t\t\t\tdelete hooks.stop;\n\t\t\t\tfn.call( elem, next, hooks );\n\t\t\t}\n\n\t\t\tif ( !startLength && hooks ) {\n\t\t\t\thooks.empty.fire();\n\t\t\t}\n\t\t},\n\n\t\t// Not public - generate a queueHooks object, or return the current one\n\t\t_queueHooks: function( elem, type ) {\n\t\t\tvar key = type + \"queueHooks\";\n\t\t\treturn dataPriv.get( elem, key ) || dataPriv.access( elem, key, {\n\t\t\t\tempty: jQuery.Callbacks( \"once memory\" ).add( function() {\n\t\t\t\t\tdataPriv.remove( elem, [ type + \"queue\", key ] );\n\t\t\t\t} )\n\t\t\t} );\n\t\t}\n\t} );\n\n\tjQuery.fn.extend( {\n\t\tqueue: function( type, data ) {\n\t\t\tvar setter = 2;\n\n\t\t\tif ( typeof type !== \"string\" ) {\n\t\t\t\tdata = type;\n\t\t\t\ttype = \"fx\";\n\t\t\t\tsetter--;\n\t\t\t}\n\n\t\t\tif ( arguments.length < setter ) {\n\t\t\t\treturn jQuery.queue( this[ 0 ], type );\n\t\t\t}\n\n\t\t\treturn data === undefined ?\n\t\t\t\tthis :\n\t\t\t\tthis.each( function() {\n\t\t\t\t\tvar queue = jQuery.queue( this, type, data );\n\n\t\t\t\t\t// Ensure a hooks for this queue\n\t\t\t\t\tjQuery._queueHooks( this, type );\n\n\t\t\t\t\tif ( type === \"fx\" && queue[ 0 ] !== \"inprogress\" ) {\n\t\t\t\t\t\tjQuery.dequeue( this, type );\n\t\t\t\t\t}\n\t\t\t\t} );\n\t\t},\n\t\tdequeue: function( type ) {\n\t\t\treturn this.each( function() {\n\t\t\t\tjQuery.dequeue( this, type );\n\t\t\t} );\n\t\t},\n\t\tclearQueue: function( type ) {\n\t\t\treturn this.queue( type || \"fx\", [] );\n\t\t},\n\n\t\t// Get a promise resolved when queues of a certain type\n\t\t// are emptied (fx is the type by default)\n\t\tpromise: function( type, obj ) {\n\t\t\tvar tmp,\n\t\t\t\tcount = 1,\n\t\t\t\tdefer = jQuery.Deferred(),\n\t\t\t\telements = this,\n\t\t\t\ti = this.length,\n\t\t\t\tresolve = function() {\n\t\t\t\t\tif ( !( --count ) ) {\n\t\t\t\t\t\tdefer.resolveWith( elements, [ elements ] );\n\t\t\t\t\t}\n\t\t\t\t};\n\n\t\t\tif ( typeof type !== \"string\" ) {\n\t\t\t\tobj = type;\n\t\t\t\ttype = undefined;\n\t\t\t}\n\t\t\ttype = type || \"fx\";\n\n\t\t\twhile ( i-- ) {\n\t\t\t\ttmp = dataPriv.get( elements[ i ], type + \"queueHooks\" );\n\t\t\t\tif ( tmp && tmp.empty ) {\n\t\t\t\t\tcount++;\n\t\t\t\t\ttmp.empty.add( resolve );\n\t\t\t\t}\n\t\t\t}\n\t\t\tresolve();\n\t\t\treturn defer.promise( obj );\n\t\t}\n\t} );\n\tvar pnum = ( /[+-]?(?:\\d*\\.|)\\d+(?:[eE][+-]?\\d+|)/ ).source;\n\n\tvar rcssNum = new RegExp( \"^(?:([+-])=|)(\" + pnum + \")([a-z%]*)$\", \"i\" );\n\n\n\tvar cssExpand = [ \"Top\", \"Right\", \"Bottom\", \"Left\" ];\n\n\tvar isHidden = function( elem, el ) {\n\n\t\t\t// isHidden might be called from jQuery#filter function;\n\t\t\t// in that case, element will be second argument\n\t\t\telem = el || elem;\n\t\t\treturn jQuery.css( elem, \"display\" ) === \"none\" ||\n\t\t\t\t!jQuery.contains( elem.ownerDocument, elem );\n\t\t};\n\n\n\n\tfunction adjustCSS( elem, prop, valueParts, tween ) {\n\t\tvar adjusted,\n\t\t\tscale = 1,\n\t\t\tmaxIterations = 20,\n\t\t\tcurrentValue = tween ?\n\t\t\t\tfunction() { return tween.cur(); } :\n\t\t\t\tfunction() { return jQuery.css( elem, prop, \"\" ); },\n\t\t\tinitial = currentValue(),\n\t\t\tunit = valueParts && valueParts[ 3 ] || ( jQuery.cssNumber[ prop ] ? \"\" : \"px\" ),\n\n\t\t\t// Starting value computation is required for potential unit mismatches\n\t\t\tinitialInUnit = ( jQuery.cssNumber[ prop ] || unit !== \"px\" && +initial ) &&\n\t\t\t\trcssNum.exec( jQuery.css( elem, prop ) );\n\n\t\tif ( initialInUnit && initialInUnit[ 3 ] !== unit ) {\n\n\t\t\t// Trust units reported by jQuery.css\n\t\t\tunit = unit || initialInUnit[ 3 ];\n\n\t\t\t// Make sure we update the tween properties later on\n\t\t\tvalueParts = valueParts || [];\n\n\t\t\t// Iteratively approximate from a nonzero starting point\n\t\t\tinitialInUnit = +initial || 1;\n\n\t\t\tdo {\n\n\t\t\t\t// If previous iteration zeroed out, double until we get *something*.\n\t\t\t\t// Use string for doubling so we don't accidentally see scale as unchanged below\n\t\t\t\tscale = scale || \".5\";\n\n\t\t\t\t// Adjust and apply\n\t\t\t\tinitialInUnit = initialInUnit / scale;\n\t\t\t\tjQuery.style( elem, prop, initialInUnit + unit );\n\n\t\t\t// Update scale, tolerating zero or NaN from tween.cur()\n\t\t\t// Break the loop if scale is unchanged or perfect, or if we've just had enough.\n\t\t\t} while (\n\t\t\t\tscale !== ( scale = currentValue() / initial ) && scale !== 1 && --maxIterations\n\t\t\t);\n\t\t}\n\n\t\tif ( valueParts ) {\n\t\t\tinitialInUnit = +initialInUnit || +initial || 0;\n\n\t\t\t// Apply relative offset (+=/-=) if specified\n\t\t\tadjusted = valueParts[ 1 ] ?\n\t\t\t\tinitialInUnit + ( valueParts[ 1 ] + 1 ) * valueParts[ 2 ] :\n\t\t\t\t+valueParts[ 2 ];\n\t\t\tif ( tween ) {\n\t\t\t\ttween.unit = unit;\n\t\t\t\ttween.start = initialInUnit;\n\t\t\t\ttween.end = adjusted;\n\t\t\t}\n\t\t}\n\t\treturn adjusted;\n\t}\n\tvar rcheckableType = ( /^(?:checkbox|radio)$/i );\n\n\tvar rtagName = ( /<([\\w:-]+)/ );\n\n\tvar rscriptType = ( /^$|\\/(?:java|ecma)script/i );\n\n\n\n\t// We have to close these tags to support XHTML (#13200)\n\tvar wrapMap = {\n\n\t\t// Support: IE9\n\t\toption: [ 1, \"<select multiple='multiple'>\", \"</select>\" ],\n\n\t\t// XHTML parsers do not magically insert elements in the\n\t\t// same way that tag soup parsers do. So we cannot shorten\n\t\t// this by omitting <tbody> or other required elements.\n\t\tthead: [ 1, \"<table>\", \"</table>\" ],\n\t\tcol: [ 2, \"<table><colgroup>\", \"</colgroup></table>\" ],\n\t\ttr: [ 2, \"<table><tbody>\", \"</tbody></table>\" ],\n\t\ttd: [ 3, \"<table><tbody><tr>\", \"</tr></tbody></table>\" ],\n\n\t\t_default: [ 0, \"\", \"\" ]\n\t};\n\n\t// Support: IE9\n\twrapMap.optgroup = wrapMap.option;\n\n\twrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;\n\twrapMap.th = wrapMap.td;\n\n\n\tfunction getAll( context, tag ) {\n\n\t\t// Support: IE9-11+\n\t\t// Use typeof to avoid zero-argument method invocation on host objects (#15151)\n\t\tvar ret = typeof context.getElementsByTagName !== \"undefined\" ?\n\t\t\t\tcontext.getElementsByTagName( tag || \"*\" ) :\n\t\t\t\ttypeof context.querySelectorAll !== \"undefined\" ?\n\t\t\t\t\tcontext.querySelectorAll( tag || \"*\" ) :\n\t\t\t\t[];\n\n\t\treturn tag === undefined || tag && jQuery.nodeName( context, tag ) ?\n\t\t\tjQuery.merge( [ context ], ret ) :\n\t\t\tret;\n\t}\n\n\n\t// Mark scripts as having already been evaluated\n\tfunction setGlobalEval( elems, refElements ) {\n\t\tvar i = 0,\n\t\t\tl = elems.length;\n\n\t\tfor ( ; i < l; i++ ) {\n\t\t\tdataPriv.set(\n\t\t\t\telems[ i ],\n\t\t\t\t\"globalEval\",\n\t\t\t\t!refElements || dataPriv.get( refElements[ i ], \"globalEval\" )\n\t\t\t);\n\t\t}\n\t}\n\n\n\tvar rhtml = /<|&#?\\w+;/;\n\n\tfunction buildFragment( elems, context, scripts, selection, ignored ) {\n\t\tvar elem, tmp, tag, wrap, contains, j,\n\t\t\tfragment = context.createDocumentFragment(),\n\t\t\tnodes = [],\n\t\t\ti = 0,\n\t\t\tl = elems.length;\n\n\t\tfor ( ; i < l; i++ ) {\n\t\t\telem = elems[ i ];\n\n\t\t\tif ( elem || elem === 0 ) {\n\n\t\t\t\t// Add nodes directly\n\t\t\t\tif ( jQuery.type( elem ) === \"object\" ) {\n\n\t\t\t\t\t// Support: Android<4.1, PhantomJS<2\n\t\t\t\t\t// push.apply(_, arraylike) throws on ancient WebKit\n\t\t\t\t\tjQuery.merge( nodes, elem.nodeType ? [ elem ] : elem );\n\n\t\t\t\t// Convert non-html into a text node\n\t\t\t\t} else if ( !rhtml.test( elem ) ) {\n\t\t\t\t\tnodes.push( context.createTextNode( elem ) );\n\n\t\t\t\t// Convert html into DOM nodes\n\t\t\t\t} else {\n\t\t\t\t\ttmp = tmp || fragment.appendChild( context.createElement( \"div\" ) );\n\n\t\t\t\t\t// Deserialize a standard representation\n\t\t\t\t\ttag = ( rtagName.exec( elem ) || [ \"\", \"\" ] )[ 1 ].toLowerCase();\n\t\t\t\t\twrap = wrapMap[ tag ] || wrapMap._default;\n\t\t\t\t\ttmp.innerHTML = wrap[ 1 ] + jQuery.htmlPrefilter( elem ) + wrap[ 2 ];\n\n\t\t\t\t\t// Descend through wrappers to the right content\n\t\t\t\t\tj = wrap[ 0 ];\n\t\t\t\t\twhile ( j-- ) {\n\t\t\t\t\t\ttmp = tmp.lastChild;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Support: Android<4.1, PhantomJS<2\n\t\t\t\t\t// push.apply(_, arraylike) throws on ancient WebKit\n\t\t\t\t\tjQuery.merge( nodes, tmp.childNodes );\n\n\t\t\t\t\t// Remember the top-level container\n\t\t\t\t\ttmp = fragment.firstChild;\n\n\t\t\t\t\t// Ensure the created nodes are orphaned (#12392)\n\t\t\t\t\ttmp.textContent = \"\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Remove wrapper from fragment\n\t\tfragment.textContent = \"\";\n\n\t\ti = 0;\n\t\twhile ( ( elem = nodes[ i++ ] ) ) {\n\n\t\t\t// Skip elements already in the context collection (trac-4087)\n\t\t\tif ( selection && jQuery.inArray( elem, selection ) > -1 ) {\n\t\t\t\tif ( ignored ) {\n\t\t\t\t\tignored.push( elem );\n\t\t\t\t}\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tcontains = jQuery.contains( elem.ownerDocument, elem );\n\n\t\t\t// Append to fragment\n\t\t\ttmp = getAll( fragment.appendChild( elem ), \"script\" );\n\n\t\t\t// Preserve script evaluation history\n\t\t\tif ( contains ) {\n\t\t\t\tsetGlobalEval( tmp );\n\t\t\t}\n\n\t\t\t// Capture executables\n\t\t\tif ( scripts ) {\n\t\t\t\tj = 0;\n\t\t\t\twhile ( ( elem = tmp[ j++ ] ) ) {\n\t\t\t\t\tif ( rscriptType.test( elem.type || \"\" ) ) {\n\t\t\t\t\t\tscripts.push( elem );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn fragment;\n\t}\n\n\n\t( function() {\n\t\tvar fragment = document.createDocumentFragment(),\n\t\t\tdiv = fragment.appendChild( document.createElement( \"div\" ) ),\n\t\t\tinput = document.createElement( \"input\" );\n\n\t\t// Support: Android 4.0-4.3, Safari<=5.1\n\t\t// Check state lost if the name is set (#11217)\n\t\t// Support: Windows Web Apps (WWA)\n\t\t// `name` and `type` must use .setAttribute for WWA (#14901)\n\t\tinput.setAttribute( \"type\", \"radio\" );\n\t\tinput.setAttribute( \"checked\", \"checked\" );\n\t\tinput.setAttribute( \"name\", \"t\" );\n\n\t\tdiv.appendChild( input );\n\n\t\t// Support: Safari<=5.1, Android<4.2\n\t\t// Older WebKit doesn't clone checked state correctly in fragments\n\t\tsupport.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked;\n\n\t\t// Support: IE<=11+\n\t\t// Make sure textarea (and checkbox) defaultValue is properly cloned\n\t\tdiv.innerHTML = \"<textarea>x</textarea>\";\n\t\tsupport.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue;\n\t} )();\n\n\n\tvar\n\t\trkeyEvent = /^key/,\n\t\trmouseEvent = /^(?:mouse|pointer|contextmenu|drag|drop)|click/,\n\t\trtypenamespace = /^([^.]*)(?:\\.(.+)|)/;\n\n\tfunction returnTrue() {\n\t\treturn true;\n\t}\n\n\tfunction returnFalse() {\n\t\treturn false;\n\t}\n\n\t// Support: IE9\n\t// See #13393 for more info\n\tfunction safeActiveElement() {\n\t\ttry {\n\t\t\treturn document.activeElement;\n\t\t} catch ( err ) { }\n\t}\n\n\tfunction on( elem, types, selector, data, fn, one ) {\n\t\tvar origFn, type;\n\n\t\t// Types can be a map of types/handlers\n\t\tif ( typeof types === \"object\" ) {\n\n\t\t\t// ( types-Object, selector, data )\n\t\t\tif ( typeof selector !== \"string\" ) {\n\n\t\t\t\t// ( types-Object, data )\n\t\t\t\tdata = data || selector;\n\t\t\t\tselector = undefined;\n\t\t\t}\n\t\t\tfor ( type in types ) {\n\t\t\t\ton( elem, type, selector, data, types[ type ], one );\n\t\t\t}\n\t\t\treturn elem;\n\t\t}\n\n\t\tif ( data == null && fn == null ) {\n\n\t\t\t// ( types, fn )\n\t\t\tfn = selector;\n\t\t\tdata = selector = undefined;\n\t\t} else if ( fn == null ) {\n\t\t\tif ( typeof selector === \"string\" ) {\n\n\t\t\t\t// ( types, selector, fn )\n\t\t\t\tfn = data;\n\t\t\t\tdata = undefined;\n\t\t\t} else {\n\n\t\t\t\t// ( types, data, fn )\n\t\t\t\tfn = data;\n\t\t\t\tdata = selector;\n\t\t\t\tselector = undefined;\n\t\t\t}\n\t\t}\n\t\tif ( fn === false ) {\n\t\t\tfn = returnFalse;\n\t\t} else if ( !fn ) {\n\t\t\treturn this;\n\t\t}\n\n\t\tif ( one === 1 ) {\n\t\t\torigFn = fn;\n\t\t\tfn = function( event ) {\n\n\t\t\t\t// Can use an empty set, since event contains the info\n\t\t\t\tjQuery().off( event );\n\t\t\t\treturn origFn.apply( this, arguments );\n\t\t\t};\n\n\t\t\t// Use same guid so caller can remove using origFn\n\t\t\tfn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ );\n\t\t}\n\t\treturn elem.each( function() {\n\t\t\tjQuery.event.add( this, types, fn, data, selector );\n\t\t} );\n\t}\n\n\t/*\n\t * Helper functions for managing events -- not part of the public interface.\n\t * Props to Dean Edwards' addEvent library for many of the ideas.\n\t */\n\tjQuery.event = {\n\n\t\tglobal: {},\n\n\t\tadd: function( elem, types, handler, data, selector ) {\n\n\t\t\tvar handleObjIn, eventHandle, tmp,\n\t\t\t\tevents, t, handleObj,\n\t\t\t\tspecial, handlers, type, namespaces, origType,\n\t\t\t\telemData = dataPriv.get( elem );\n\n\t\t\t// Don't attach events to noData or text/comment nodes (but allow plain objects)\n\t\t\tif ( !elemData ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Caller can pass in an object of custom data in lieu of the handler\n\t\t\tif ( handler.handler ) {\n\t\t\t\thandleObjIn = handler;\n\t\t\t\thandler = handleObjIn.handler;\n\t\t\t\tselector = handleObjIn.selector;\n\t\t\t}\n\n\t\t\t// Make sure that the handler has a unique ID, used to find/remove it later\n\t\t\tif ( !handler.guid ) {\n\t\t\t\thandler.guid = jQuery.guid++;\n\t\t\t}\n\n\t\t\t// Init the element's event structure and main handler, if this is the first\n\t\t\tif ( !( events = elemData.events ) ) {\n\t\t\t\tevents = elemData.events = {};\n\t\t\t}\n\t\t\tif ( !( eventHandle = elemData.handle ) ) {\n\t\t\t\teventHandle = elemData.handle = function( e ) {\n\n\t\t\t\t\t// Discard the second event of a jQuery.event.trigger() and\n\t\t\t\t\t// when an event is called after a page has unloaded\n\t\t\t\t\treturn typeof jQuery !== \"undefined\" && jQuery.event.triggered !== e.type ?\n\t\t\t\t\t\tjQuery.event.dispatch.apply( elem, arguments ) : undefined;\n\t\t\t\t};\n\t\t\t}\n\n\t\t\t// Handle multiple events separated by a space\n\t\t\ttypes = ( types || \"\" ).match( rnotwhite ) || [ \"\" ];\n\t\t\tt = types.length;\n\t\t\twhile ( t-- ) {\n\t\t\t\ttmp = rtypenamespace.exec( types[ t ] ) || [];\n\t\t\t\ttype = origType = tmp[ 1 ];\n\t\t\t\tnamespaces = ( tmp[ 2 ] || \"\" ).split( \".\" ).sort();\n\n\t\t\t\t// There *must* be a type, no attaching namespace-only handlers\n\t\t\t\tif ( !type ) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t// If event changes its type, use the special event handlers for the changed type\n\t\t\t\tspecial = jQuery.event.special[ type ] || {};\n\n\t\t\t\t// If selector defined, determine special event api type, otherwise given type\n\t\t\t\ttype = ( selector ? special.delegateType : special.bindType ) || type;\n\n\t\t\t\t// Update special based on newly reset type\n\t\t\t\tspecial = jQuery.event.special[ type ] || {};\n\n\t\t\t\t// handleObj is passed to all event handlers\n\t\t\t\thandleObj = jQuery.extend( {\n\t\t\t\t\ttype: type,\n\t\t\t\t\torigType: origType,\n\t\t\t\t\tdata: data,\n\t\t\t\t\thandler: handler,\n\t\t\t\t\tguid: handler.guid,\n\t\t\t\t\tselector: selector,\n\t\t\t\t\tneedsContext: selector && jQuery.expr.match.needsContext.test( selector ),\n\t\t\t\t\tnamespace: namespaces.join( \".\" )\n\t\t\t\t}, handleObjIn );\n\n\t\t\t\t// Init the event handler queue if we're the first\n\t\t\t\tif ( !( handlers = events[ type ] ) ) {\n\t\t\t\t\thandlers = events[ type ] = [];\n\t\t\t\t\thandlers.delegateCount = 0;\n\n\t\t\t\t\t// Only use addEventListener if the special events handler returns false\n\t\t\t\t\tif ( !special.setup ||\n\t\t\t\t\t\tspecial.setup.call( elem, data, namespaces, eventHandle ) === false ) {\n\n\t\t\t\t\t\tif ( elem.addEventListener ) {\n\t\t\t\t\t\t\telem.addEventListener( type, eventHandle );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ( special.add ) {\n\t\t\t\t\tspecial.add.call( elem, handleObj );\n\n\t\t\t\t\tif ( !handleObj.handler.guid ) {\n\t\t\t\t\t\thandleObj.handler.guid = handler.guid;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Add to the element's handler list, delegates in front\n\t\t\t\tif ( selector ) {\n\t\t\t\t\thandlers.splice( handlers.delegateCount++, 0, handleObj );\n\t\t\t\t} else {\n\t\t\t\t\thandlers.push( handleObj );\n\t\t\t\t}\n\n\t\t\t\t// Keep track of which events have ever been used, for event optimization\n\t\t\t\tjQuery.event.global[ type ] = true;\n\t\t\t}\n\n\t\t},\n\n\t\t// Detach an event or set of events from an element\n\t\tremove: function( elem, types, handler, selector, mappedTypes ) {\n\n\t\t\tvar j, origCount, tmp,\n\t\t\t\tevents, t, handleObj,\n\t\t\t\tspecial, handlers, type, namespaces, origType,\n\t\t\t\telemData = dataPriv.hasData( elem ) && dataPriv.get( elem );\n\n\t\t\tif ( !elemData || !( events = elemData.events ) ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Once for each type.namespace in types; type may be omitted\n\t\t\ttypes = ( types || \"\" ).match( rnotwhite ) || [ \"\" ];\n\t\t\tt = types.length;\n\t\t\twhile ( t-- ) {\n\t\t\t\ttmp = rtypenamespace.exec( types[ t ] ) || [];\n\t\t\t\ttype = origType = tmp[ 1 ];\n\t\t\t\tnamespaces = ( tmp[ 2 ] || \"\" ).split( \".\" ).sort();\n\n\t\t\t\t// Unbind all events (on this namespace, if provided) for the element\n\t\t\t\tif ( !type ) {\n\t\t\t\t\tfor ( type in events ) {\n\t\t\t\t\t\tjQuery.event.remove( elem, type + types[ t ], handler, selector, true );\n\t\t\t\t\t}\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tspecial = jQuery.event.special[ type ] || {};\n\t\t\t\ttype = ( selector ? special.delegateType : special.bindType ) || type;\n\t\t\t\thandlers = events[ type ] || [];\n\t\t\t\ttmp = tmp[ 2 ] &&\n\t\t\t\t\tnew RegExp( \"(^|\\\\.)\" + namespaces.join( \"\\\\.(?:.*\\\\.|)\" ) + \"(\\\\.|$)\" );\n\n\t\t\t\t// Remove matching events\n\t\t\t\torigCount = j = handlers.length;\n\t\t\t\twhile ( j-- ) {\n\t\t\t\t\thandleObj = handlers[ j ];\n\n\t\t\t\t\tif ( ( mappedTypes || origType === handleObj.origType ) &&\n\t\t\t\t\t\t( !handler || handler.guid === handleObj.guid ) &&\n\t\t\t\t\t\t( !tmp || tmp.test( handleObj.namespace ) ) &&\n\t\t\t\t\t\t( !selector || selector === handleObj.selector ||\n\t\t\t\t\t\t\tselector === \"**\" && handleObj.selector ) ) {\n\t\t\t\t\t\thandlers.splice( j, 1 );\n\n\t\t\t\t\t\tif ( handleObj.selector ) {\n\t\t\t\t\t\t\thandlers.delegateCount--;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif ( special.remove ) {\n\t\t\t\t\t\t\tspecial.remove.call( elem, handleObj );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Remove generic event handler if we removed something and no more handlers exist\n\t\t\t\t// (avoids potential for endless recursion during removal of special event handlers)\n\t\t\t\tif ( origCount && !handlers.length ) {\n\t\t\t\t\tif ( !special.teardown ||\n\t\t\t\t\t\tspecial.teardown.call( elem, namespaces, elemData.handle ) === false ) {\n\n\t\t\t\t\t\tjQuery.removeEvent( elem, type, elemData.handle );\n\t\t\t\t\t}\n\n\t\t\t\t\tdelete events[ type ];\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Remove data and the expando if it's no longer used\n\t\t\tif ( jQuery.isEmptyObject( events ) ) {\n\t\t\t\tdataPriv.remove( elem, \"handle events\" );\n\t\t\t}\n\t\t},\n\n\t\tdispatch: function( event ) {\n\n\t\t\t// Make a writable jQuery.Event from the native event object\n\t\t\tevent = jQuery.event.fix( event );\n\n\t\t\tvar i, j, ret, matched, handleObj,\n\t\t\t\thandlerQueue = [],\n\t\t\t\targs = slice.call( arguments ),\n\t\t\t\thandlers = ( dataPriv.get( this, \"events\" ) || {} )[ event.type ] || [],\n\t\t\t\tspecial = jQuery.event.special[ event.type ] || {};\n\n\t\t\t// Use the fix-ed jQuery.Event rather than the (read-only) native event\n\t\t\targs[ 0 ] = event;\n\t\t\tevent.delegateTarget = this;\n\n\t\t\t// Call the preDispatch hook for the mapped type, and let it bail if desired\n\t\t\tif ( special.preDispatch && special.preDispatch.call( this, event ) === false ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Determine handlers\n\t\t\thandlerQueue = jQuery.event.handlers.call( this, event, handlers );\n\n\t\t\t// Run delegates first; they may want to stop propagation beneath us\n\t\t\ti = 0;\n\t\t\twhile ( ( matched = handlerQueue[ i++ ] ) && !event.isPropagationStopped() ) {\n\t\t\t\tevent.currentTarget = matched.elem;\n\n\t\t\t\tj = 0;\n\t\t\t\twhile ( ( handleObj = matched.handlers[ j++ ] ) &&\n\t\t\t\t\t!event.isImmediatePropagationStopped() ) {\n\n\t\t\t\t\t// Triggered event must either 1) have no namespace, or 2) have namespace(s)\n\t\t\t\t\t// a subset or equal to those in the bound event (both can have no namespace).\n\t\t\t\t\tif ( !event.rnamespace || event.rnamespace.test( handleObj.namespace ) ) {\n\n\t\t\t\t\t\tevent.handleObj = handleObj;\n\t\t\t\t\t\tevent.data = handleObj.data;\n\n\t\t\t\t\t\tret = ( ( jQuery.event.special[ handleObj.origType ] || {} ).handle ||\n\t\t\t\t\t\t\thandleObj.handler ).apply( matched.elem, args );\n\n\t\t\t\t\t\tif ( ret !== undefined ) {\n\t\t\t\t\t\t\tif ( ( event.result = ret ) === false ) {\n\t\t\t\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\t\t\t\tevent.stopPropagation();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Call the postDispatch hook for the mapped type\n\t\t\tif ( special.postDispatch ) {\n\t\t\t\tspecial.postDispatch.call( this, event );\n\t\t\t}\n\n\t\t\treturn event.result;\n\t\t},\n\n\t\thandlers: function( event, handlers ) {\n\t\t\tvar i, matches, sel, handleObj,\n\t\t\t\thandlerQueue = [],\n\t\t\t\tdelegateCount = handlers.delegateCount,\n\t\t\t\tcur = event.target;\n\n\t\t\t// Support (at least): Chrome, IE9\n\t\t\t// Find delegate handlers\n\t\t\t// Black-hole SVG <use> instance trees (#13180)\n\t\t\t//\n\t\t\t// Support: Firefox<=42+\n\t\t\t// Avoid non-left-click in FF but don't block IE radio events (#3861, gh-2343)\n\t\t\tif ( delegateCount && cur.nodeType &&\n\t\t\t\t( event.type !== \"click\" || isNaN( event.button ) || event.button < 1 ) ) {\n\n\t\t\t\tfor ( ; cur !== this; cur = cur.parentNode || this ) {\n\n\t\t\t\t\t// Don't check non-elements (#13208)\n\t\t\t\t\t// Don't process clicks on disabled elements (#6911, #8165, #11382, #11764)\n\t\t\t\t\tif ( cur.nodeType === 1 && ( cur.disabled !== true || event.type !== \"click\" ) ) {\n\t\t\t\t\t\tmatches = [];\n\t\t\t\t\t\tfor ( i = 0; i < delegateCount; i++ ) {\n\t\t\t\t\t\t\thandleObj = handlers[ i ];\n\n\t\t\t\t\t\t\t// Don't conflict with Object.prototype properties (#13203)\n\t\t\t\t\t\t\tsel = handleObj.selector + \" \";\n\n\t\t\t\t\t\t\tif ( matches[ sel ] === undefined ) {\n\t\t\t\t\t\t\t\tmatches[ sel ] = handleObj.needsContext ?\n\t\t\t\t\t\t\t\t\tjQuery( sel, this ).index( cur ) > -1 :\n\t\t\t\t\t\t\t\t\tjQuery.find( sel, this, null, [ cur ] ).length;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif ( matches[ sel ] ) {\n\t\t\t\t\t\t\t\tmatches.push( handleObj );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif ( matches.length ) {\n\t\t\t\t\t\t\thandlerQueue.push( { elem: cur, handlers: matches } );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Add the remaining (directly-bound) handlers\n\t\t\tif ( delegateCount < handlers.length ) {\n\t\t\t\thandlerQueue.push( { elem: this, handlers: handlers.slice( delegateCount ) } );\n\t\t\t}\n\n\t\t\treturn handlerQueue;\n\t\t},\n\n\t\t// Includes some event props shared by KeyEvent and MouseEvent\n\t\tprops: ( \"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase \" +\n\t\t\t\"metaKey relatedTarget shiftKey target timeStamp view which\" ).split( \" \" ),\n\n\t\tfixHooks: {},\n\n\t\tkeyHooks: {\n\t\t\tprops: \"char charCode key keyCode\".split( \" \" ),\n\t\t\tfilter: function( event, original ) {\n\n\t\t\t\t// Add which for key events\n\t\t\t\tif ( event.which == null ) {\n\t\t\t\t\tevent.which = original.charCode != null ? original.charCode : original.keyCode;\n\t\t\t\t}\n\n\t\t\t\treturn event;\n\t\t\t}\n\t\t},\n\n\t\tmouseHooks: {\n\t\t\tprops: ( \"button buttons clientX clientY offsetX offsetY pageX pageY \" +\n\t\t\t\t\"screenX screenY toElement\" ).split( \" \" ),\n\t\t\tfilter: function( event, original ) {\n\t\t\t\tvar eventDoc, doc, body,\n\t\t\t\t\tbutton = original.button;\n\n\t\t\t\t// Calculate pageX/Y if missing and clientX/Y available\n\t\t\t\tif ( event.pageX == null && original.clientX != null ) {\n\t\t\t\t\teventDoc = event.target.ownerDocument || document;\n\t\t\t\t\tdoc = eventDoc.documentElement;\n\t\t\t\t\tbody = eventDoc.body;\n\n\t\t\t\t\tevent.pageX = original.clientX +\n\t\t\t\t\t\t( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) -\n\t\t\t\t\t\t( doc && doc.clientLeft || body && body.clientLeft || 0 );\n\t\t\t\t\tevent.pageY = original.clientY +\n\t\t\t\t\t\t( doc && doc.scrollTop  || body && body.scrollTop  || 0 ) -\n\t\t\t\t\t\t( doc && doc.clientTop  || body && body.clientTop  || 0 );\n\t\t\t\t}\n\n\t\t\t\t// Add which for click: 1 === left; 2 === middle; 3 === right\n\t\t\t\t// Note: button is not normalized, so don't use it\n\t\t\t\tif ( !event.which && button !== undefined ) {\n\t\t\t\t\tevent.which = ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) );\n\t\t\t\t}\n\n\t\t\t\treturn event;\n\t\t\t}\n\t\t},\n\n\t\tfix: function( event ) {\n\t\t\tif ( event[ jQuery.expando ] ) {\n\t\t\t\treturn event;\n\t\t\t}\n\n\t\t\t// Create a writable copy of the event object and normalize some properties\n\t\t\tvar i, prop, copy,\n\t\t\t\ttype = event.type,\n\t\t\t\toriginalEvent = event,\n\t\t\t\tfixHook = this.fixHooks[ type ];\n\n\t\t\tif ( !fixHook ) {\n\t\t\t\tthis.fixHooks[ type ] = fixHook =\n\t\t\t\t\trmouseEvent.test( type ) ? this.mouseHooks :\n\t\t\t\t\trkeyEvent.test( type ) ? this.keyHooks :\n\t\t\t\t\t{};\n\t\t\t}\n\t\t\tcopy = fixHook.props ? this.props.concat( fixHook.props ) : this.props;\n\n\t\t\tevent = new jQuery.Event( originalEvent );\n\n\t\t\ti = copy.length;\n\t\t\twhile ( i-- ) {\n\t\t\t\tprop = copy[ i ];\n\t\t\t\tevent[ prop ] = originalEvent[ prop ];\n\t\t\t}\n\n\t\t\t// Support: Cordova 2.5 (WebKit) (#13255)\n\t\t\t// All events should have a target; Cordova deviceready doesn't\n\t\t\tif ( !event.target ) {\n\t\t\t\tevent.target = document;\n\t\t\t}\n\n\t\t\t// Support: Safari 6.0+, Chrome<28\n\t\t\t// Target should not be a text node (#504, #13143)\n\t\t\tif ( event.target.nodeType === 3 ) {\n\t\t\t\tevent.target = event.target.parentNode;\n\t\t\t}\n\n\t\t\treturn fixHook.filter ? fixHook.filter( event, originalEvent ) : event;\n\t\t},\n\n\t\tspecial: {\n\t\t\tload: {\n\n\t\t\t\t// Prevent triggered image.load events from bubbling to window.load\n\t\t\t\tnoBubble: true\n\t\t\t},\n\t\t\tfocus: {\n\n\t\t\t\t// Fire native event if possible so blur/focus sequence is correct\n\t\t\t\ttrigger: function() {\n\t\t\t\t\tif ( this !== safeActiveElement() && this.focus ) {\n\t\t\t\t\t\tthis.focus();\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tdelegateType: \"focusin\"\n\t\t\t},\n\t\t\tblur: {\n\t\t\t\ttrigger: function() {\n\t\t\t\t\tif ( this === safeActiveElement() && this.blur ) {\n\t\t\t\t\t\tthis.blur();\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tdelegateType: \"focusout\"\n\t\t\t},\n\t\t\tclick: {\n\n\t\t\t\t// For checkbox, fire native event so checked state will be right\n\t\t\t\ttrigger: function() {\n\t\t\t\t\tif ( this.type === \"checkbox\" && this.click && jQuery.nodeName( this, \"input\" ) ) {\n\t\t\t\t\t\tthis.click();\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t},\n\n\t\t\t\t// For cross-browser consistency, don't fire native .click() on links\n\t\t\t\t_default: function( event ) {\n\t\t\t\t\treturn jQuery.nodeName( event.target, \"a\" );\n\t\t\t\t}\n\t\t\t},\n\n\t\t\tbeforeunload: {\n\t\t\t\tpostDispatch: function( event ) {\n\n\t\t\t\t\t// Support: Firefox 20+\n\t\t\t\t\t// Firefox doesn't alert if the returnValue field is not set.\n\t\t\t\t\tif ( event.result !== undefined && event.originalEvent ) {\n\t\t\t\t\t\tevent.originalEvent.returnValue = event.result;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t};\n\n\tjQuery.removeEvent = function( elem, type, handle ) {\n\n\t\t// This \"if\" is needed for plain objects\n\t\tif ( elem.removeEventListener ) {\n\t\t\telem.removeEventListener( type, handle );\n\t\t}\n\t};\n\n\tjQuery.Event = function( src, props ) {\n\n\t\t// Allow instantiation without the 'new' keyword\n\t\tif ( !( this instanceof jQuery.Event ) ) {\n\t\t\treturn new jQuery.Event( src, props );\n\t\t}\n\n\t\t// Event object\n\t\tif ( src && src.type ) {\n\t\t\tthis.originalEvent = src;\n\t\t\tthis.type = src.type;\n\n\t\t\t// Events bubbling up the document may have been marked as prevented\n\t\t\t// by a handler lower down the tree; reflect the correct value.\n\t\t\tthis.isDefaultPrevented = src.defaultPrevented ||\n\t\t\t\t\tsrc.defaultPrevented === undefined &&\n\n\t\t\t\t\t// Support: Android<4.0\n\t\t\t\t\tsrc.returnValue === false ?\n\t\t\t\treturnTrue :\n\t\t\t\treturnFalse;\n\n\t\t// Event type\n\t\t} else {\n\t\t\tthis.type = src;\n\t\t}\n\n\t\t// Put explicitly provided properties onto the event object\n\t\tif ( props ) {\n\t\t\tjQuery.extend( this, props );\n\t\t}\n\n\t\t// Create a timestamp if incoming event doesn't have one\n\t\tthis.timeStamp = src && src.timeStamp || jQuery.now();\n\n\t\t// Mark it as fixed\n\t\tthis[ jQuery.expando ] = true;\n\t};\n\n\t// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding\n\t// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html\n\tjQuery.Event.prototype = {\n\t\tconstructor: jQuery.Event,\n\t\tisDefaultPrevented: returnFalse,\n\t\tisPropagationStopped: returnFalse,\n\t\tisImmediatePropagationStopped: returnFalse,\n\n\t\tpreventDefault: function() {\n\t\t\tvar e = this.originalEvent;\n\n\t\t\tthis.isDefaultPrevented = returnTrue;\n\n\t\t\tif ( e ) {\n\t\t\t\te.preventDefault();\n\t\t\t}\n\t\t},\n\t\tstopPropagation: function() {\n\t\t\tvar e = this.originalEvent;\n\n\t\t\tthis.isPropagationStopped = returnTrue;\n\n\t\t\tif ( e ) {\n\t\t\t\te.stopPropagation();\n\t\t\t}\n\t\t},\n\t\tstopImmediatePropagation: function() {\n\t\t\tvar e = this.originalEvent;\n\n\t\t\tthis.isImmediatePropagationStopped = returnTrue;\n\n\t\t\tif ( e ) {\n\t\t\t\te.stopImmediatePropagation();\n\t\t\t}\n\n\t\t\tthis.stopPropagation();\n\t\t}\n\t};\n\n\t// Create mouseenter/leave events using mouseover/out and event-time checks\n\t// so that event delegation works in jQuery.\n\t// Do the same for pointerenter/pointerleave and pointerover/pointerout\n\t//\n\t// Support: Safari 7 only\n\t// Safari sends mouseenter too often; see:\n\t// https://code.google.com/p/chromium/issues/detail?id=470258\n\t// for the description of the bug (it existed in older Chrome versions as well).\n\tjQuery.each( {\n\t\tmouseenter: \"mouseover\",\n\t\tmouseleave: \"mouseout\",\n\t\tpointerenter: \"pointerover\",\n\t\tpointerleave: \"pointerout\"\n\t}, function( orig, fix ) {\n\t\tjQuery.event.special[ orig ] = {\n\t\t\tdelegateType: fix,\n\t\t\tbindType: fix,\n\n\t\t\thandle: function( event ) {\n\t\t\t\tvar ret,\n\t\t\t\t\ttarget = this,\n\t\t\t\t\trelated = event.relatedTarget,\n\t\t\t\t\thandleObj = event.handleObj;\n\n\t\t\t\t// For mouseenter/leave call the handler if related is outside the target.\n\t\t\t\t// NB: No relatedTarget if the mouse left/entered the browser window\n\t\t\t\tif ( !related || ( related !== target && !jQuery.contains( target, related ) ) ) {\n\t\t\t\t\tevent.type = handleObj.origType;\n\t\t\t\t\tret = handleObj.handler.apply( this, arguments );\n\t\t\t\t\tevent.type = fix;\n\t\t\t\t}\n\t\t\t\treturn ret;\n\t\t\t}\n\t\t};\n\t} );\n\n\tjQuery.fn.extend( {\n\t\ton: function( types, selector, data, fn ) {\n\t\t\treturn on( this, types, selector, data, fn );\n\t\t},\n\t\tone: function( types, selector, data, fn ) {\n\t\t\treturn on( this, types, selector, data, fn, 1 );\n\t\t},\n\t\toff: function( types, selector, fn ) {\n\t\t\tvar handleObj, type;\n\t\t\tif ( types && types.preventDefault && types.handleObj ) {\n\n\t\t\t\t// ( event )  dispatched jQuery.Event\n\t\t\t\thandleObj = types.handleObj;\n\t\t\t\tjQuery( types.delegateTarget ).off(\n\t\t\t\t\thandleObj.namespace ?\n\t\t\t\t\t\thandleObj.origType + \".\" + handleObj.namespace :\n\t\t\t\t\t\thandleObj.origType,\n\t\t\t\t\thandleObj.selector,\n\t\t\t\t\thandleObj.handler\n\t\t\t\t);\n\t\t\t\treturn this;\n\t\t\t}\n\t\t\tif ( typeof types === \"object\" ) {\n\n\t\t\t\t// ( types-object [, selector] )\n\t\t\t\tfor ( type in types ) {\n\t\t\t\t\tthis.off( type, selector, types[ type ] );\n\t\t\t\t}\n\t\t\t\treturn this;\n\t\t\t}\n\t\t\tif ( selector === false || typeof selector === \"function\" ) {\n\n\t\t\t\t// ( types [, fn] )\n\t\t\t\tfn = selector;\n\t\t\t\tselector = undefined;\n\t\t\t}\n\t\t\tif ( fn === false ) {\n\t\t\t\tfn = returnFalse;\n\t\t\t}\n\t\t\treturn this.each( function() {\n\t\t\t\tjQuery.event.remove( this, types, fn, selector );\n\t\t\t} );\n\t\t}\n\t} );\n\n\n\tvar\n\t\trxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\\w:-]+)[^>]*)\\/>/gi,\n\n\t\t// Support: IE 10-11, Edge 10240+\n\t\t// In IE/Edge using regex groups here causes severe slowdowns.\n\t\t// See https://connect.microsoft.com/IE/feedback/details/1736512/\n\t\trnoInnerhtml = /<script|<style|<link/i,\n\n\t\t// checked=\"checked\" or checked\n\t\trchecked = /checked\\s*(?:[^=]|=\\s*.checked.)/i,\n\t\trscriptTypeMasked = /^true\\/(.*)/,\n\t\trcleanScript = /^\\s*<!(?:\\[CDATA\\[|--)|(?:\\]\\]|--)>\\s*$/g;\n\n\tfunction manipulationTarget( elem, content ) {\n\t\tif ( jQuery.nodeName( elem, \"table\" ) &&\n\t\t\tjQuery.nodeName( content.nodeType !== 11 ? content : content.firstChild, \"tr\" ) ) {\n\n\t\t\treturn elem.getElementsByTagName( \"tbody\" )[ 0 ] || elem;\n\t\t}\n\n\t\treturn elem;\n\t}\n\n\t// Replace/restore the type attribute of script elements for safe DOM manipulation\n\tfunction disableScript( elem ) {\n\t\telem.type = ( elem.getAttribute( \"type\" ) !== null ) + \"/\" + elem.type;\n\t\treturn elem;\n\t}\n\tfunction restoreScript( elem ) {\n\t\tvar match = rscriptTypeMasked.exec( elem.type );\n\n\t\tif ( match ) {\n\t\t\telem.type = match[ 1 ];\n\t\t} else {\n\t\t\telem.removeAttribute( \"type\" );\n\t\t}\n\n\t\treturn elem;\n\t}\n\n\tfunction cloneCopyEvent( src, dest ) {\n\t\tvar i, l, type, pdataOld, pdataCur, udataOld, udataCur, events;\n\n\t\tif ( dest.nodeType !== 1 ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// 1. Copy private data: events, handlers, etc.\n\t\tif ( dataPriv.hasData( src ) ) {\n\t\t\tpdataOld = dataPriv.access( src );\n\t\t\tpdataCur = dataPriv.set( dest, pdataOld );\n\t\t\tevents = pdataOld.events;\n\n\t\t\tif ( events ) {\n\t\t\t\tdelete pdataCur.handle;\n\t\t\t\tpdataCur.events = {};\n\n\t\t\t\tfor ( type in events ) {\n\t\t\t\t\tfor ( i = 0, l = events[ type ].length; i < l; i++ ) {\n\t\t\t\t\t\tjQuery.event.add( dest, type, events[ type ][ i ] );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// 2. Copy user data\n\t\tif ( dataUser.hasData( src ) ) {\n\t\t\tudataOld = dataUser.access( src );\n\t\t\tudataCur = jQuery.extend( {}, udataOld );\n\n\t\t\tdataUser.set( dest, udataCur );\n\t\t}\n\t}\n\n\t// Fix IE bugs, see support tests\n\tfunction fixInput( src, dest ) {\n\t\tvar nodeName = dest.nodeName.toLowerCase();\n\n\t\t// Fails to persist the checked state of a cloned checkbox or radio button.\n\t\tif ( nodeName === \"input\" && rcheckableType.test( src.type ) ) {\n\t\t\tdest.checked = src.checked;\n\n\t\t// Fails to return the selected option to the default selected state when cloning options\n\t\t} else if ( nodeName === \"input\" || nodeName === \"textarea\" ) {\n\t\t\tdest.defaultValue = src.defaultValue;\n\t\t}\n\t}\n\n\tfunction domManip( collection, args, callback, ignored ) {\n\n\t\t// Flatten any nested arrays\n\t\targs = concat.apply( [], args );\n\n\t\tvar fragment, first, scripts, hasScripts, node, doc,\n\t\t\ti = 0,\n\t\t\tl = collection.length,\n\t\t\tiNoClone = l - 1,\n\t\t\tvalue = args[ 0 ],\n\t\t\tisFunction = jQuery.isFunction( value );\n\n\t\t// We can't cloneNode fragments that contain checked, in WebKit\n\t\tif ( isFunction ||\n\t\t\t\t( l > 1 && typeof value === \"string\" &&\n\t\t\t\t\t!support.checkClone && rchecked.test( value ) ) ) {\n\t\t\treturn collection.each( function( index ) {\n\t\t\t\tvar self = collection.eq( index );\n\t\t\t\tif ( isFunction ) {\n\t\t\t\t\targs[ 0 ] = value.call( this, index, self.html() );\n\t\t\t\t}\n\t\t\t\tdomManip( self, args, callback, ignored );\n\t\t\t} );\n\t\t}\n\n\t\tif ( l ) {\n\t\t\tfragment = buildFragment( args, collection[ 0 ].ownerDocument, false, collection, ignored );\n\t\t\tfirst = fragment.firstChild;\n\n\t\t\tif ( fragment.childNodes.length === 1 ) {\n\t\t\t\tfragment = first;\n\t\t\t}\n\n\t\t\t// Require either new content or an interest in ignored elements to invoke the callback\n\t\t\tif ( first || ignored ) {\n\t\t\t\tscripts = jQuery.map( getAll( fragment, \"script\" ), disableScript );\n\t\t\t\thasScripts = scripts.length;\n\n\t\t\t\t// Use the original fragment for the last item\n\t\t\t\t// instead of the first because it can end up\n\t\t\t\t// being emptied incorrectly in certain situations (#8070).\n\t\t\t\tfor ( ; i < l; i++ ) {\n\t\t\t\t\tnode = fragment;\n\n\t\t\t\t\tif ( i !== iNoClone ) {\n\t\t\t\t\t\tnode = jQuery.clone( node, true, true );\n\n\t\t\t\t\t\t// Keep references to cloned scripts for later restoration\n\t\t\t\t\t\tif ( hasScripts ) {\n\n\t\t\t\t\t\t\t// Support: Android<4.1, PhantomJS<2\n\t\t\t\t\t\t\t// push.apply(_, arraylike) throws on ancient WebKit\n\t\t\t\t\t\t\tjQuery.merge( scripts, getAll( node, \"script\" ) );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tcallback.call( collection[ i ], node, i );\n\t\t\t\t}\n\n\t\t\t\tif ( hasScripts ) {\n\t\t\t\t\tdoc = scripts[ scripts.length - 1 ].ownerDocument;\n\n\t\t\t\t\t// Reenable scripts\n\t\t\t\t\tjQuery.map( scripts, restoreScript );\n\n\t\t\t\t\t// Evaluate executable scripts on first document insertion\n\t\t\t\t\tfor ( i = 0; i < hasScripts; i++ ) {\n\t\t\t\t\t\tnode = scripts[ i ];\n\t\t\t\t\t\tif ( rscriptType.test( node.type || \"\" ) &&\n\t\t\t\t\t\t\t!dataPriv.access( node, \"globalEval\" ) &&\n\t\t\t\t\t\t\tjQuery.contains( doc, node ) ) {\n\n\t\t\t\t\t\t\tif ( node.src ) {\n\n\t\t\t\t\t\t\t\t// Optional AJAX dependency, but won't run scripts if not present\n\t\t\t\t\t\t\t\tif ( jQuery._evalUrl ) {\n\t\t\t\t\t\t\t\t\tjQuery._evalUrl( node.src );\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tjQuery.globalEval( node.textContent.replace( rcleanScript, \"\" ) );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn collection;\n\t}\n\n\tfunction remove( elem, selector, keepData ) {\n\t\tvar node,\n\t\t\tnodes = selector ? jQuery.filter( selector, elem ) : elem,\n\t\t\ti = 0;\n\n\t\tfor ( ; ( node = nodes[ i ] ) != null; i++ ) {\n\t\t\tif ( !keepData && node.nodeType === 1 ) {\n\t\t\t\tjQuery.cleanData( getAll( node ) );\n\t\t\t}\n\n\t\t\tif ( node.parentNode ) {\n\t\t\t\tif ( keepData && jQuery.contains( node.ownerDocument, node ) ) {\n\t\t\t\t\tsetGlobalEval( getAll( node, \"script\" ) );\n\t\t\t\t}\n\t\t\t\tnode.parentNode.removeChild( node );\n\t\t\t}\n\t\t}\n\n\t\treturn elem;\n\t}\n\n\tjQuery.extend( {\n\t\thtmlPrefilter: function( html ) {\n\t\t\treturn html.replace( rxhtmlTag, \"<$1></$2>\" );\n\t\t},\n\n\t\tclone: function( elem, dataAndEvents, deepDataAndEvents ) {\n\t\t\tvar i, l, srcElements, destElements,\n\t\t\t\tclone = elem.cloneNode( true ),\n\t\t\t\tinPage = jQuery.contains( elem.ownerDocument, elem );\n\n\t\t\t// Fix IE cloning issues\n\t\t\tif ( !support.noCloneChecked && ( elem.nodeType === 1 || elem.nodeType === 11 ) &&\n\t\t\t\t\t!jQuery.isXMLDoc( elem ) ) {\n\n\t\t\t\t// We eschew Sizzle here for performance reasons: http://jsperf.com/getall-vs-sizzle/2\n\t\t\t\tdestElements = getAll( clone );\n\t\t\t\tsrcElements = getAll( elem );\n\n\t\t\t\tfor ( i = 0, l = srcElements.length; i < l; i++ ) {\n\t\t\t\t\tfixInput( srcElements[ i ], destElements[ i ] );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Copy the events from the original to the clone\n\t\t\tif ( dataAndEvents ) {\n\t\t\t\tif ( deepDataAndEvents ) {\n\t\t\t\t\tsrcElements = srcElements || getAll( elem );\n\t\t\t\t\tdestElements = destElements || getAll( clone );\n\n\t\t\t\t\tfor ( i = 0, l = srcElements.length; i < l; i++ ) {\n\t\t\t\t\t\tcloneCopyEvent( srcElements[ i ], destElements[ i ] );\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tcloneCopyEvent( elem, clone );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Preserve script evaluation history\n\t\t\tdestElements = getAll( clone, \"script\" );\n\t\t\tif ( destElements.length > 0 ) {\n\t\t\t\tsetGlobalEval( destElements, !inPage && getAll( elem, \"script\" ) );\n\t\t\t}\n\n\t\t\t// Return the cloned set\n\t\t\treturn clone;\n\t\t},\n\n\t\tcleanData: function( elems ) {\n\t\t\tvar data, elem, type,\n\t\t\t\tspecial = jQuery.event.special,\n\t\t\t\ti = 0;\n\n\t\t\tfor ( ; ( elem = elems[ i ] ) !== undefined; i++ ) {\n\t\t\t\tif ( acceptData( elem ) ) {\n\t\t\t\t\tif ( ( data = elem[ dataPriv.expando ] ) ) {\n\t\t\t\t\t\tif ( data.events ) {\n\t\t\t\t\t\t\tfor ( type in data.events ) {\n\t\t\t\t\t\t\t\tif ( special[ type ] ) {\n\t\t\t\t\t\t\t\t\tjQuery.event.remove( elem, type );\n\n\t\t\t\t\t\t\t\t// This is a shortcut to avoid jQuery.event.remove's overhead\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tjQuery.removeEvent( elem, type, data.handle );\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Support: Chrome <= 35-45+\n\t\t\t\t\t\t// Assign undefined instead of using delete, see Data#remove\n\t\t\t\t\t\telem[ dataPriv.expando ] = undefined;\n\t\t\t\t\t}\n\t\t\t\t\tif ( elem[ dataUser.expando ] ) {\n\n\t\t\t\t\t\t// Support: Chrome <= 35-45+\n\t\t\t\t\t\t// Assign undefined instead of using delete, see Data#remove\n\t\t\t\t\t\telem[ dataUser.expando ] = undefined;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t} );\n\n\tjQuery.fn.extend( {\n\n\t\t// Keep domManip exposed until 3.0 (gh-2225)\n\t\tdomManip: domManip,\n\n\t\tdetach: function( selector ) {\n\t\t\treturn remove( this, selector, true );\n\t\t},\n\n\t\tremove: function( selector ) {\n\t\t\treturn remove( this, selector );\n\t\t},\n\n\t\ttext: function( value ) {\n\t\t\treturn access( this, function( value ) {\n\t\t\t\treturn value === undefined ?\n\t\t\t\t\tjQuery.text( this ) :\n\t\t\t\t\tthis.empty().each( function() {\n\t\t\t\t\t\tif ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {\n\t\t\t\t\t\t\tthis.textContent = value;\n\t\t\t\t\t\t}\n\t\t\t\t\t} );\n\t\t\t}, null, value, arguments.length );\n\t\t},\n\n\t\tappend: function() {\n\t\t\treturn domManip( this, arguments, function( elem ) {\n\t\t\t\tif ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {\n\t\t\t\t\tvar target = manipulationTarget( this, elem );\n\t\t\t\t\ttarget.appendChild( elem );\n\t\t\t\t}\n\t\t\t} );\n\t\t},\n\n\t\tprepend: function() {\n\t\t\treturn domManip( this, arguments, function( elem ) {\n\t\t\t\tif ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {\n\t\t\t\t\tvar target = manipulationTarget( this, elem );\n\t\t\t\t\ttarget.insertBefore( elem, target.firstChild );\n\t\t\t\t}\n\t\t\t} );\n\t\t},\n\n\t\tbefore: function() {\n\t\t\treturn domManip( this, arguments, function( elem ) {\n\t\t\t\tif ( this.parentNode ) {\n\t\t\t\t\tthis.parentNode.insertBefore( elem, this );\n\t\t\t\t}\n\t\t\t} );\n\t\t},\n\n\t\tafter: function() {\n\t\t\treturn domManip( this, arguments, function( elem ) {\n\t\t\t\tif ( this.parentNode ) {\n\t\t\t\t\tthis.parentNode.insertBefore( elem, this.nextSibling );\n\t\t\t\t}\n\t\t\t} );\n\t\t},\n\n\t\tempty: function() {\n\t\t\tvar elem,\n\t\t\t\ti = 0;\n\n\t\t\tfor ( ; ( elem = this[ i ] ) != null; i++ ) {\n\t\t\t\tif ( elem.nodeType === 1 ) {\n\n\t\t\t\t\t// Prevent memory leaks\n\t\t\t\t\tjQuery.cleanData( getAll( elem, false ) );\n\n\t\t\t\t\t// Remove any remaining nodes\n\t\t\t\t\telem.textContent = \"\";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn this;\n\t\t},\n\n\t\tclone: function( dataAndEvents, deepDataAndEvents ) {\n\t\t\tdataAndEvents = dataAndEvents == null ? false : dataAndEvents;\n\t\t\tdeepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents;\n\n\t\t\treturn this.map( function() {\n\t\t\t\treturn jQuery.clone( this, dataAndEvents, deepDataAndEvents );\n\t\t\t} );\n\t\t},\n\n\t\thtml: function( value ) {\n\t\t\treturn access( this, function( value ) {\n\t\t\t\tvar elem = this[ 0 ] || {},\n\t\t\t\t\ti = 0,\n\t\t\t\t\tl = this.length;\n\n\t\t\t\tif ( value === undefined && elem.nodeType === 1 ) {\n\t\t\t\t\treturn elem.innerHTML;\n\t\t\t\t}\n\n\t\t\t\t// See if we can take a shortcut and just use innerHTML\n\t\t\t\tif ( typeof value === \"string\" && !rnoInnerhtml.test( value ) &&\n\t\t\t\t\t!wrapMap[ ( rtagName.exec( value ) || [ \"\", \"\" ] )[ 1 ].toLowerCase() ] ) {\n\n\t\t\t\t\tvalue = jQuery.htmlPrefilter( value );\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfor ( ; i < l; i++ ) {\n\t\t\t\t\t\t\telem = this[ i ] || {};\n\n\t\t\t\t\t\t\t// Remove element nodes and prevent memory leaks\n\t\t\t\t\t\t\tif ( elem.nodeType === 1 ) {\n\t\t\t\t\t\t\t\tjQuery.cleanData( getAll( elem, false ) );\n\t\t\t\t\t\t\t\telem.innerHTML = value;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\telem = 0;\n\n\t\t\t\t\t// If using innerHTML throws an exception, use the fallback method\n\t\t\t\t\t} catch ( e ) {}\n\t\t\t\t}\n\n\t\t\t\tif ( elem ) {\n\t\t\t\t\tthis.empty().append( value );\n\t\t\t\t}\n\t\t\t}, null, value, arguments.length );\n\t\t},\n\n\t\treplaceWith: function() {\n\t\t\tvar ignored = [];\n\n\t\t\t// Make the changes, replacing each non-ignored context element with the new content\n\t\t\treturn domManip( this, arguments, function( elem ) {\n\t\t\t\tvar parent = this.parentNode;\n\n\t\t\t\tif ( jQuery.inArray( this, ignored ) < 0 ) {\n\t\t\t\t\tjQuery.cleanData( getAll( this ) );\n\t\t\t\t\tif ( parent ) {\n\t\t\t\t\t\tparent.replaceChild( elem, this );\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t// Force callback invocation\n\t\t\t}, ignored );\n\t\t}\n\t} );\n\n\tjQuery.each( {\n\t\tappendTo: \"append\",\n\t\tprependTo: \"prepend\",\n\t\tinsertBefore: \"before\",\n\t\tinsertAfter: \"after\",\n\t\treplaceAll: \"replaceWith\"\n\t}, function( name, original ) {\n\t\tjQuery.fn[ name ] = function( selector ) {\n\t\t\tvar elems,\n\t\t\t\tret = [],\n\t\t\t\tinsert = jQuery( selector ),\n\t\t\t\tlast = insert.length - 1,\n\t\t\t\ti = 0;\n\n\t\t\tfor ( ; i <= last; i++ ) {\n\t\t\t\telems = i === last ? this : this.clone( true );\n\t\t\t\tjQuery( insert[ i ] )[ original ]( elems );\n\n\t\t\t\t// Support: QtWebKit\n\t\t\t\t// .get() because push.apply(_, arraylike) throws\n\t\t\t\tpush.apply( ret, elems.get() );\n\t\t\t}\n\n\t\t\treturn this.pushStack( ret );\n\t\t};\n\t} );\n\n\n\tvar iframe,\n\t\telemdisplay = {\n\n\t\t\t// Support: Firefox\n\t\t\t// We have to pre-define these values for FF (#10227)\n\t\t\tHTML: \"block\",\n\t\t\tBODY: \"block\"\n\t\t};\n\n\t/**\n\t * Retrieve the actual display of a element\n\t * @param {String} name nodeName of the element\n\t * @param {Object} doc Document object\n\t */\n\n\t// Called only from within defaultDisplay\n\tfunction actualDisplay( name, doc ) {\n\t\tvar elem = jQuery( doc.createElement( name ) ).appendTo( doc.body ),\n\n\t\t\tdisplay = jQuery.css( elem[ 0 ], \"display\" );\n\n\t\t// We don't have any data stored on the element,\n\t\t// so use \"detach\" method as fast way to get rid of the element\n\t\telem.detach();\n\n\t\treturn display;\n\t}\n\n\t/**\n\t * Try to determine the default display value of an element\n\t * @param {String} nodeName\n\t */\n\tfunction defaultDisplay( nodeName ) {\n\t\tvar doc = document,\n\t\t\tdisplay = elemdisplay[ nodeName ];\n\n\t\tif ( !display ) {\n\t\t\tdisplay = actualDisplay( nodeName, doc );\n\n\t\t\t// If the simple way fails, read from inside an iframe\n\t\t\tif ( display === \"none\" || !display ) {\n\n\t\t\t\t// Use the already-created iframe if possible\n\t\t\t\tiframe = ( iframe || jQuery( \"<iframe frameborder='0' width='0' height='0'/>\" ) )\n\t\t\t\t\t.appendTo( doc.documentElement );\n\n\t\t\t\t// Always write a new HTML skeleton so Webkit and Firefox don't choke on reuse\n\t\t\t\tdoc = iframe[ 0 ].contentDocument;\n\n\t\t\t\t// Support: IE\n\t\t\t\tdoc.write();\n\t\t\t\tdoc.close();\n\n\t\t\t\tdisplay = actualDisplay( nodeName, doc );\n\t\t\t\tiframe.detach();\n\t\t\t}\n\n\t\t\t// Store the correct default display\n\t\t\telemdisplay[ nodeName ] = display;\n\t\t}\n\n\t\treturn display;\n\t}\n\tvar rmargin = ( /^margin/ );\n\n\tvar rnumnonpx = new RegExp( \"^(\" + pnum + \")(?!px)[a-z%]+$\", \"i\" );\n\n\tvar getStyles = function( elem ) {\n\n\t\t\t// Support: IE<=11+, Firefox<=30+ (#15098, #14150)\n\t\t\t// IE throws on elements created in popups\n\t\t\t// FF meanwhile throws on frame elements through \"defaultView.getComputedStyle\"\n\t\t\tvar view = elem.ownerDocument.defaultView;\n\n\t\t\tif ( !view.opener ) {\n\t\t\t\tview = window;\n\t\t\t}\n\n\t\t\treturn view.getComputedStyle( elem );\n\t\t};\n\n\tvar swap = function( elem, options, callback, args ) {\n\t\tvar ret, name,\n\t\t\told = {};\n\n\t\t// Remember the old values, and insert the new ones\n\t\tfor ( name in options ) {\n\t\t\told[ name ] = elem.style[ name ];\n\t\t\telem.style[ name ] = options[ name ];\n\t\t}\n\n\t\tret = callback.apply( elem, args || [] );\n\n\t\t// Revert the old values\n\t\tfor ( name in options ) {\n\t\t\telem.style[ name ] = old[ name ];\n\t\t}\n\n\t\treturn ret;\n\t};\n\n\n\tvar documentElement = document.documentElement;\n\n\n\n\t( function() {\n\t\tvar pixelPositionVal, boxSizingReliableVal, pixelMarginRightVal, reliableMarginLeftVal,\n\t\t\tcontainer = document.createElement( \"div\" ),\n\t\t\tdiv = document.createElement( \"div\" );\n\n\t\t// Finish early in limited (non-browser) environments\n\t\tif ( !div.style ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Support: IE9-11+\n\t\t// Style of cloned element affects source element cloned (#8908)\n\t\tdiv.style.backgroundClip = \"content-box\";\n\t\tdiv.cloneNode( true ).style.backgroundClip = \"\";\n\t\tsupport.clearCloneStyle = div.style.backgroundClip === \"content-box\";\n\n\t\tcontainer.style.cssText = \"border:0;width:8px;height:0;top:0;left:-9999px;\" +\n\t\t\t\"padding:0;margin-top:1px;position:absolute\";\n\t\tcontainer.appendChild( div );\n\n\t\t// Executing both pixelPosition & boxSizingReliable tests require only one layout\n\t\t// so they're executed at the same time to save the second computation.\n\t\tfunction computeStyleTests() {\n\t\t\tdiv.style.cssText =\n\n\t\t\t\t// Support: Firefox<29, Android 2.3\n\t\t\t\t// Vendor-prefix box-sizing\n\t\t\t\t\"-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;\" +\n\t\t\t\t\"position:relative;display:block;\" +\n\t\t\t\t\"margin:auto;border:1px;padding:1px;\" +\n\t\t\t\t\"top:1%;width:50%\";\n\t\t\tdiv.innerHTML = \"\";\n\t\t\tdocumentElement.appendChild( container );\n\n\t\t\tvar divStyle = window.getComputedStyle( div );\n\t\t\tpixelPositionVal = divStyle.top !== \"1%\";\n\t\t\treliableMarginLeftVal = divStyle.marginLeft === \"2px\";\n\t\t\tboxSizingReliableVal = divStyle.width === \"4px\";\n\n\t\t\t// Support: Android 4.0 - 4.3 only\n\t\t\t// Some styles come back with percentage values, even though they shouldn't\n\t\t\tdiv.style.marginRight = \"50%\";\n\t\t\tpixelMarginRightVal = divStyle.marginRight === \"4px\";\n\n\t\t\tdocumentElement.removeChild( container );\n\t\t}\n\n\t\tjQuery.extend( support, {\n\t\t\tpixelPosition: function() {\n\n\t\t\t\t// This test is executed only once but we still do memoizing\n\t\t\t\t// since we can use the boxSizingReliable pre-computing.\n\t\t\t\t// No need to check if the test was already performed, though.\n\t\t\t\tcomputeStyleTests();\n\t\t\t\treturn pixelPositionVal;\n\t\t\t},\n\t\t\tboxSizingReliable: function() {\n\t\t\t\tif ( boxSizingReliableVal == null ) {\n\t\t\t\t\tcomputeStyleTests();\n\t\t\t\t}\n\t\t\t\treturn boxSizingReliableVal;\n\t\t\t},\n\t\t\tpixelMarginRight: function() {\n\n\t\t\t\t// Support: Android 4.0-4.3\n\t\t\t\t// We're checking for boxSizingReliableVal here instead of pixelMarginRightVal\n\t\t\t\t// since that compresses better and they're computed together anyway.\n\t\t\t\tif ( boxSizingReliableVal == null ) {\n\t\t\t\t\tcomputeStyleTests();\n\t\t\t\t}\n\t\t\t\treturn pixelMarginRightVal;\n\t\t\t},\n\t\t\treliableMarginLeft: function() {\n\n\t\t\t\t// Support: IE <=8 only, Android 4.0 - 4.3 only, Firefox <=3 - 37\n\t\t\t\tif ( boxSizingReliableVal == null ) {\n\t\t\t\t\tcomputeStyleTests();\n\t\t\t\t}\n\t\t\t\treturn reliableMarginLeftVal;\n\t\t\t},\n\t\t\treliableMarginRight: function() {\n\n\t\t\t\t// Support: Android 2.3\n\t\t\t\t// Check if div with explicit width and no margin-right incorrectly\n\t\t\t\t// gets computed margin-right based on width of container. (#3333)\n\t\t\t\t// WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right\n\t\t\t\t// This support function is only executed once so no memoizing is needed.\n\t\t\t\tvar ret,\n\t\t\t\t\tmarginDiv = div.appendChild( document.createElement( \"div\" ) );\n\n\t\t\t\t// Reset CSS: box-sizing; display; margin; border; padding\n\t\t\t\tmarginDiv.style.cssText = div.style.cssText =\n\n\t\t\t\t\t// Support: Android 2.3\n\t\t\t\t\t// Vendor-prefix box-sizing\n\t\t\t\t\t\"-webkit-box-sizing:content-box;box-sizing:content-box;\" +\n\t\t\t\t\t\"display:block;margin:0;border:0;padding:0\";\n\t\t\t\tmarginDiv.style.marginRight = marginDiv.style.width = \"0\";\n\t\t\t\tdiv.style.width = \"1px\";\n\t\t\t\tdocumentElement.appendChild( container );\n\n\t\t\t\tret = !parseFloat( window.getComputedStyle( marginDiv ).marginRight );\n\n\t\t\t\tdocumentElement.removeChild( container );\n\t\t\t\tdiv.removeChild( marginDiv );\n\n\t\t\t\treturn ret;\n\t\t\t}\n\t\t} );\n\t} )();\n\n\n\tfunction curCSS( elem, name, computed ) {\n\t\tvar width, minWidth, maxWidth, ret,\n\t\t\tstyle = elem.style;\n\n\t\tcomputed = computed || getStyles( elem );\n\n\t\t// Support: IE9\n\t\t// getPropertyValue is only needed for .css('filter') (#12537)\n\t\tif ( computed ) {\n\t\t\tret = computed.getPropertyValue( name ) || computed[ name ];\n\n\t\t\tif ( ret === \"\" && !jQuery.contains( elem.ownerDocument, elem ) ) {\n\t\t\t\tret = jQuery.style( elem, name );\n\t\t\t}\n\n\t\t\t// A tribute to the \"awesome hack by Dean Edwards\"\n\t\t\t// Android Browser returns percentage for some values,\n\t\t\t// but width seems to be reliably pixels.\n\t\t\t// This is against the CSSOM draft spec:\n\t\t\t// http://dev.w3.org/csswg/cssom/#resolved-values\n\t\t\tif ( !support.pixelMarginRight() && rnumnonpx.test( ret ) && rmargin.test( name ) ) {\n\n\t\t\t\t// Remember the original values\n\t\t\t\twidth = style.width;\n\t\t\t\tminWidth = style.minWidth;\n\t\t\t\tmaxWidth = style.maxWidth;\n\n\t\t\t\t// Put in the new values to get a computed value out\n\t\t\t\tstyle.minWidth = style.maxWidth = style.width = ret;\n\t\t\t\tret = computed.width;\n\n\t\t\t\t// Revert the changed values\n\t\t\t\tstyle.width = width;\n\t\t\t\tstyle.minWidth = minWidth;\n\t\t\t\tstyle.maxWidth = maxWidth;\n\t\t\t}\n\t\t}\n\n\t\treturn ret !== undefined ?\n\n\t\t\t// Support: IE9-11+\n\t\t\t// IE returns zIndex value as an integer.\n\t\t\tret + \"\" :\n\t\t\tret;\n\t}\n\n\n\tfunction addGetHookIf( conditionFn, hookFn ) {\n\n\t\t// Define the hook, we'll check on the first run if it's really needed.\n\t\treturn {\n\t\t\tget: function() {\n\t\t\t\tif ( conditionFn() ) {\n\n\t\t\t\t\t// Hook not needed (or it's not possible to use it due\n\t\t\t\t\t// to missing dependency), remove it.\n\t\t\t\t\tdelete this.get;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t// Hook needed; redefine it so that the support test is not executed again.\n\t\t\t\treturn ( this.get = hookFn ).apply( this, arguments );\n\t\t\t}\n\t\t};\n\t}\n\n\n\tvar\n\n\t\t// Swappable if display is none or starts with table\n\t\t// except \"table\", \"table-cell\", or \"table-caption\"\n\t\t// See here for display values: https://developer.mozilla.org/en-US/docs/CSS/display\n\t\trdisplayswap = /^(none|table(?!-c[ea]).+)/,\n\n\t\tcssShow = { position: \"absolute\", visibility: \"hidden\", display: \"block\" },\n\t\tcssNormalTransform = {\n\t\t\tletterSpacing: \"0\",\n\t\t\tfontWeight: \"400\"\n\t\t},\n\n\t\tcssPrefixes = [ \"Webkit\", \"O\", \"Moz\", \"ms\" ],\n\t\temptyStyle = document.createElement( \"div\" ).style;\n\n\t// Return a css property mapped to a potentially vendor prefixed property\n\tfunction vendorPropName( name ) {\n\n\t\t// Shortcut for names that are not vendor prefixed\n\t\tif ( name in emptyStyle ) {\n\t\t\treturn name;\n\t\t}\n\n\t\t// Check for vendor prefixed names\n\t\tvar capName = name[ 0 ].toUpperCase() + name.slice( 1 ),\n\t\t\ti = cssPrefixes.length;\n\n\t\twhile ( i-- ) {\n\t\t\tname = cssPrefixes[ i ] + capName;\n\t\t\tif ( name in emptyStyle ) {\n\t\t\t\treturn name;\n\t\t\t}\n\t\t}\n\t}\n\n\tfunction setPositiveNumber( elem, value, subtract ) {\n\n\t\t// Any relative (+/-) values have already been\n\t\t// normalized at this point\n\t\tvar matches = rcssNum.exec( value );\n\t\treturn matches ?\n\n\t\t\t// Guard against undefined \"subtract\", e.g., when used as in cssHooks\n\t\t\tMath.max( 0, matches[ 2 ] - ( subtract || 0 ) ) + ( matches[ 3 ] || \"px\" ) :\n\t\t\tvalue;\n\t}\n\n\tfunction augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) {\n\t\tvar i = extra === ( isBorderBox ? \"border\" : \"content\" ) ?\n\n\t\t\t// If we already have the right measurement, avoid augmentation\n\t\t\t4 :\n\n\t\t\t// Otherwise initialize for horizontal or vertical properties\n\t\t\tname === \"width\" ? 1 : 0,\n\n\t\t\tval = 0;\n\n\t\tfor ( ; i < 4; i += 2 ) {\n\n\t\t\t// Both box models exclude margin, so add it if we want it\n\t\t\tif ( extra === \"margin\" ) {\n\t\t\t\tval += jQuery.css( elem, extra + cssExpand[ i ], true, styles );\n\t\t\t}\n\n\t\t\tif ( isBorderBox ) {\n\n\t\t\t\t// border-box includes padding, so remove it if we want content\n\t\t\t\tif ( extra === \"content\" ) {\n\t\t\t\t\tval -= jQuery.css( elem, \"padding\" + cssExpand[ i ], true, styles );\n\t\t\t\t}\n\n\t\t\t\t// At this point, extra isn't border nor margin, so remove border\n\t\t\t\tif ( extra !== \"margin\" ) {\n\t\t\t\t\tval -= jQuery.css( elem, \"border\" + cssExpand[ i ] + \"Width\", true, styles );\n\t\t\t\t}\n\t\t\t} else {\n\n\t\t\t\t// At this point, extra isn't content, so add padding\n\t\t\t\tval += jQuery.css( elem, \"padding\" + cssExpand[ i ], true, styles );\n\n\t\t\t\t// At this point, extra isn't content nor padding, so add border\n\t\t\t\tif ( extra !== \"padding\" ) {\n\t\t\t\t\tval += jQuery.css( elem, \"border\" + cssExpand[ i ] + \"Width\", true, styles );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn val;\n\t}\n\n\tfunction getWidthOrHeight( elem, name, extra ) {\n\n\t\t// Start with offset property, which is equivalent to the border-box value\n\t\tvar valueIsBorderBox = true,\n\t\t\tval = name === \"width\" ? elem.offsetWidth : elem.offsetHeight,\n\t\t\tstyles = getStyles( elem ),\n\t\t\tisBorderBox = jQuery.css( elem, \"boxSizing\", false, styles ) === \"border-box\";\n\n\t\t// Support: IE11 only\n\t\t// In IE 11 fullscreen elements inside of an iframe have\n\t\t// 100x too small dimensions (gh-1764).\n\t\tif ( document.msFullscreenElement && window.top !== window ) {\n\n\t\t\t// Support: IE11 only\n\t\t\t// Running getBoundingClientRect on a disconnected node\n\t\t\t// in IE throws an error.\n\t\t\tif ( elem.getClientRects().length ) {\n\t\t\t\tval = Math.round( elem.getBoundingClientRect()[ name ] * 100 );\n\t\t\t}\n\t\t}\n\n\t\t// Some non-html elements return undefined for offsetWidth, so check for null/undefined\n\t\t// svg - https://bugzilla.mozilla.org/show_bug.cgi?id=649285\n\t\t// MathML - https://bugzilla.mozilla.org/show_bug.cgi?id=491668\n\t\tif ( val <= 0 || val == null ) {\n\n\t\t\t// Fall back to computed then uncomputed css if necessary\n\t\t\tval = curCSS( elem, name, styles );\n\t\t\tif ( val < 0 || val == null ) {\n\t\t\t\tval = elem.style[ name ];\n\t\t\t}\n\n\t\t\t// Computed unit is not pixels. Stop here and return.\n\t\t\tif ( rnumnonpx.test( val ) ) {\n\t\t\t\treturn val;\n\t\t\t}\n\n\t\t\t// Check for style in case a browser which returns unreliable values\n\t\t\t// for getComputedStyle silently falls back to the reliable elem.style\n\t\t\tvalueIsBorderBox = isBorderBox &&\n\t\t\t\t( support.boxSizingReliable() || val === elem.style[ name ] );\n\n\t\t\t// Normalize \"\", auto, and prepare for extra\n\t\t\tval = parseFloat( val ) || 0;\n\t\t}\n\n\t\t// Use the active box-sizing model to add/subtract irrelevant styles\n\t\treturn ( val +\n\t\t\taugmentWidthOrHeight(\n\t\t\t\telem,\n\t\t\t\tname,\n\t\t\t\textra || ( isBorderBox ? \"border\" : \"content\" ),\n\t\t\t\tvalueIsBorderBox,\n\t\t\t\tstyles\n\t\t\t)\n\t\t) + \"px\";\n\t}\n\n\tfunction showHide( elements, show ) {\n\t\tvar display, elem, hidden,\n\t\t\tvalues = [],\n\t\t\tindex = 0,\n\t\t\tlength = elements.length;\n\n\t\tfor ( ; index < length; index++ ) {\n\t\t\telem = elements[ index ];\n\t\t\tif ( !elem.style ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tvalues[ index ] = dataPriv.get( elem, \"olddisplay\" );\n\t\t\tdisplay = elem.style.display;\n\t\t\tif ( show ) {\n\n\t\t\t\t// Reset the inline display of this element to learn if it is\n\t\t\t\t// being hidden by cascaded rules or not\n\t\t\t\tif ( !values[ index ] && display === \"none\" ) {\n\t\t\t\t\telem.style.display = \"\";\n\t\t\t\t}\n\n\t\t\t\t// Set elements which have been overridden with display: none\n\t\t\t\t// in a stylesheet to whatever the default browser style is\n\t\t\t\t// for such an element\n\t\t\t\tif ( elem.style.display === \"\" && isHidden( elem ) ) {\n\t\t\t\t\tvalues[ index ] = dataPriv.access(\n\t\t\t\t\t\telem,\n\t\t\t\t\t\t\"olddisplay\",\n\t\t\t\t\t\tdefaultDisplay( elem.nodeName )\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\thidden = isHidden( elem );\n\n\t\t\t\tif ( display !== \"none\" || !hidden ) {\n\t\t\t\t\tdataPriv.set(\n\t\t\t\t\t\telem,\n\t\t\t\t\t\t\"olddisplay\",\n\t\t\t\t\t\thidden ? display : jQuery.css( elem, \"display\" )\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Set the display of most of the elements in a second loop\n\t\t// to avoid the constant reflow\n\t\tfor ( index = 0; index < length; index++ ) {\n\t\t\telem = elements[ index ];\n\t\t\tif ( !elem.style ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif ( !show || elem.style.display === \"none\" || elem.style.display === \"\" ) {\n\t\t\t\telem.style.display = show ? values[ index ] || \"\" : \"none\";\n\t\t\t}\n\t\t}\n\n\t\treturn elements;\n\t}\n\n\tjQuery.extend( {\n\n\t\t// Add in style property hooks for overriding the default\n\t\t// behavior of getting and setting a style property\n\t\tcssHooks: {\n\t\t\topacity: {\n\t\t\t\tget: function( elem, computed ) {\n\t\t\t\t\tif ( computed ) {\n\n\t\t\t\t\t\t// We should always get a number back from opacity\n\t\t\t\t\t\tvar ret = curCSS( elem, \"opacity\" );\n\t\t\t\t\t\treturn ret === \"\" ? \"1\" : ret;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\t// Don't automatically add \"px\" to these possibly-unitless properties\n\t\tcssNumber: {\n\t\t\t\"animationIterationCount\": true,\n\t\t\t\"columnCount\": true,\n\t\t\t\"fillOpacity\": true,\n\t\t\t\"flexGrow\": true,\n\t\t\t\"flexShrink\": true,\n\t\t\t\"fontWeight\": true,\n\t\t\t\"lineHeight\": true,\n\t\t\t\"opacity\": true,\n\t\t\t\"order\": true,\n\t\t\t\"orphans\": true,\n\t\t\t\"widows\": true,\n\t\t\t\"zIndex\": true,\n\t\t\t\"zoom\": true\n\t\t},\n\n\t\t// Add in properties whose names you wish to fix before\n\t\t// setting or getting the value\n\t\tcssProps: {\n\t\t\t\"float\": \"cssFloat\"\n\t\t},\n\n\t\t// Get and set the style property on a DOM Node\n\t\tstyle: function( elem, name, value, extra ) {\n\n\t\t\t// Don't set styles on text and comment nodes\n\t\t\tif ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Make sure that we're working with the right name\n\t\t\tvar ret, type, hooks,\n\t\t\t\torigName = jQuery.camelCase( name ),\n\t\t\t\tstyle = elem.style;\n\n\t\t\tname = jQuery.cssProps[ origName ] ||\n\t\t\t\t( jQuery.cssProps[ origName ] = vendorPropName( origName ) || origName );\n\n\t\t\t// Gets hook for the prefixed version, then unprefixed version\n\t\t\thooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];\n\n\t\t\t// Check if we're setting a value\n\t\t\tif ( value !== undefined ) {\n\t\t\t\ttype = typeof value;\n\n\t\t\t\t// Convert \"+=\" or \"-=\" to relative numbers (#7345)\n\t\t\t\tif ( type === \"string\" && ( ret = rcssNum.exec( value ) ) && ret[ 1 ] ) {\n\t\t\t\t\tvalue = adjustCSS( elem, name, ret );\n\n\t\t\t\t\t// Fixes bug #9237\n\t\t\t\t\ttype = \"number\";\n\t\t\t\t}\n\n\t\t\t\t// Make sure that null and NaN values aren't set (#7116)\n\t\t\t\tif ( value == null || value !== value ) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t// If a number was passed in, add the unit (except for certain CSS properties)\n\t\t\t\tif ( type === \"number\" ) {\n\t\t\t\t\tvalue += ret && ret[ 3 ] || ( jQuery.cssNumber[ origName ] ? \"\" : \"px\" );\n\t\t\t\t}\n\n\t\t\t\t// Support: IE9-11+\n\t\t\t\t// background-* props affect original clone's values\n\t\t\t\tif ( !support.clearCloneStyle && value === \"\" && name.indexOf( \"background\" ) === 0 ) {\n\t\t\t\t\tstyle[ name ] = \"inherit\";\n\t\t\t\t}\n\n\t\t\t\t// If a hook was provided, use that value, otherwise just set the specified value\n\t\t\t\tif ( !hooks || !( \"set\" in hooks ) ||\n\t\t\t\t\t( value = hooks.set( elem, value, extra ) ) !== undefined ) {\n\n\t\t\t\t\tstyle[ name ] = value;\n\t\t\t\t}\n\n\t\t\t} else {\n\n\t\t\t\t// If a hook was provided get the non-computed value from there\n\t\t\t\tif ( hooks && \"get\" in hooks &&\n\t\t\t\t\t( ret = hooks.get( elem, false, extra ) ) !== undefined ) {\n\n\t\t\t\t\treturn ret;\n\t\t\t\t}\n\n\t\t\t\t// Otherwise just get the value from the style object\n\t\t\t\treturn style[ name ];\n\t\t\t}\n\t\t},\n\n\t\tcss: function( elem, name, extra, styles ) {\n\t\t\tvar val, num, hooks,\n\t\t\t\torigName = jQuery.camelCase( name );\n\n\t\t\t// Make sure that we're working with the right name\n\t\t\tname = jQuery.cssProps[ origName ] ||\n\t\t\t\t( jQuery.cssProps[ origName ] = vendorPropName( origName ) || origName );\n\n\t\t\t// Try prefixed name followed by the unprefixed name\n\t\t\thooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];\n\n\t\t\t// If a hook was provided get the computed value from there\n\t\t\tif ( hooks && \"get\" in hooks ) {\n\t\t\t\tval = hooks.get( elem, true, extra );\n\t\t\t}\n\n\t\t\t// Otherwise, if a way to get the computed value exists, use that\n\t\t\tif ( val === undefined ) {\n\t\t\t\tval = curCSS( elem, name, styles );\n\t\t\t}\n\n\t\t\t// Convert \"normal\" to computed value\n\t\t\tif ( val === \"normal\" && name in cssNormalTransform ) {\n\t\t\t\tval = cssNormalTransform[ name ];\n\t\t\t}\n\n\t\t\t// Make numeric if forced or a qualifier was provided and val looks numeric\n\t\t\tif ( extra === \"\" || extra ) {\n\t\t\t\tnum = parseFloat( val );\n\t\t\t\treturn extra === true || isFinite( num ) ? num || 0 : val;\n\t\t\t}\n\t\t\treturn val;\n\t\t}\n\t} );\n\n\tjQuery.each( [ \"height\", \"width\" ], function( i, name ) {\n\t\tjQuery.cssHooks[ name ] = {\n\t\t\tget: function( elem, computed, extra ) {\n\t\t\t\tif ( computed ) {\n\n\t\t\t\t\t// Certain elements can have dimension info if we invisibly show them\n\t\t\t\t\t// but it must have a current display style that would benefit\n\t\t\t\t\treturn rdisplayswap.test( jQuery.css( elem, \"display\" ) ) &&\n\t\t\t\t\t\telem.offsetWidth === 0 ?\n\t\t\t\t\t\t\tswap( elem, cssShow, function() {\n\t\t\t\t\t\t\t\treturn getWidthOrHeight( elem, name, extra );\n\t\t\t\t\t\t\t} ) :\n\t\t\t\t\t\t\tgetWidthOrHeight( elem, name, extra );\n\t\t\t\t}\n\t\t\t},\n\n\t\t\tset: function( elem, value, extra ) {\n\t\t\t\tvar matches,\n\t\t\t\t\tstyles = extra && getStyles( elem ),\n\t\t\t\t\tsubtract = extra && augmentWidthOrHeight(\n\t\t\t\t\t\telem,\n\t\t\t\t\t\tname,\n\t\t\t\t\t\textra,\n\t\t\t\t\t\tjQuery.css( elem, \"boxSizing\", false, styles ) === \"border-box\",\n\t\t\t\t\t\tstyles\n\t\t\t\t\t);\n\n\t\t\t\t// Convert to pixels if value adjustment is needed\n\t\t\t\tif ( subtract && ( matches = rcssNum.exec( value ) ) &&\n\t\t\t\t\t( matches[ 3 ] || \"px\" ) !== \"px\" ) {\n\n\t\t\t\t\telem.style[ name ] = value;\n\t\t\t\t\tvalue = jQuery.css( elem, name );\n\t\t\t\t}\n\n\t\t\t\treturn setPositiveNumber( elem, value, subtract );\n\t\t\t}\n\t\t};\n\t} );\n\n\tjQuery.cssHooks.marginLeft = addGetHookIf( support.reliableMarginLeft,\n\t\tfunction( elem, computed ) {\n\t\t\tif ( computed ) {\n\t\t\t\treturn ( parseFloat( curCSS( elem, \"marginLeft\" ) ) ||\n\t\t\t\t\telem.getBoundingClientRect().left -\n\t\t\t\t\t\tswap( elem, { marginLeft: 0 }, function() {\n\t\t\t\t\t\t\treturn elem.getBoundingClientRect().left;\n\t\t\t\t\t\t} )\n\t\t\t\t\t) + \"px\";\n\t\t\t}\n\t\t}\n\t);\n\n\t// Support: Android 2.3\n\tjQuery.cssHooks.marginRight = addGetHookIf( support.reliableMarginRight,\n\t\tfunction( elem, computed ) {\n\t\t\tif ( computed ) {\n\t\t\t\treturn swap( elem, { \"display\": \"inline-block\" },\n\t\t\t\t\tcurCSS, [ elem, \"marginRight\" ] );\n\t\t\t}\n\t\t}\n\t);\n\n\t// These hooks are used by animate to expand properties\n\tjQuery.each( {\n\t\tmargin: \"\",\n\t\tpadding: \"\",\n\t\tborder: \"Width\"\n\t}, function( prefix, suffix ) {\n\t\tjQuery.cssHooks[ prefix + suffix ] = {\n\t\t\texpand: function( value ) {\n\t\t\t\tvar i = 0,\n\t\t\t\t\texpanded = {},\n\n\t\t\t\t\t// Assumes a single number if not a string\n\t\t\t\t\tparts = typeof value === \"string\" ? value.split( \" \" ) : [ value ];\n\n\t\t\t\tfor ( ; i < 4; i++ ) {\n\t\t\t\t\texpanded[ prefix + cssExpand[ i ] + suffix ] =\n\t\t\t\t\t\tparts[ i ] || parts[ i - 2 ] || parts[ 0 ];\n\t\t\t\t}\n\n\t\t\t\treturn expanded;\n\t\t\t}\n\t\t};\n\n\t\tif ( !rmargin.test( prefix ) ) {\n\t\t\tjQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber;\n\t\t}\n\t} );\n\n\tjQuery.fn.extend( {\n\t\tcss: function( name, value ) {\n\t\t\treturn access( this, function( elem, name, value ) {\n\t\t\t\tvar styles, len,\n\t\t\t\t\tmap = {},\n\t\t\t\t\ti = 0;\n\n\t\t\t\tif ( jQuery.isArray( name ) ) {\n\t\t\t\t\tstyles = getStyles( elem );\n\t\t\t\t\tlen = name.length;\n\n\t\t\t\t\tfor ( ; i < len; i++ ) {\n\t\t\t\t\t\tmap[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles );\n\t\t\t\t\t}\n\n\t\t\t\t\treturn map;\n\t\t\t\t}\n\n\t\t\t\treturn value !== undefined ?\n\t\t\t\t\tjQuery.style( elem, name, value ) :\n\t\t\t\t\tjQuery.css( elem, name );\n\t\t\t}, name, value, arguments.length > 1 );\n\t\t},\n\t\tshow: function() {\n\t\t\treturn showHide( this, true );\n\t\t},\n\t\thide: function() {\n\t\t\treturn showHide( this );\n\t\t},\n\t\ttoggle: function( state ) {\n\t\t\tif ( typeof state === \"boolean\" ) {\n\t\t\t\treturn state ? this.show() : this.hide();\n\t\t\t}\n\n\t\t\treturn this.each( function() {\n\t\t\t\tif ( isHidden( this ) ) {\n\t\t\t\t\tjQuery( this ).show();\n\t\t\t\t} else {\n\t\t\t\t\tjQuery( this ).hide();\n\t\t\t\t}\n\t\t\t} );\n\t\t}\n\t} );\n\n\n\tfunction Tween( elem, options, prop, end, easing ) {\n\t\treturn new Tween.prototype.init( elem, options, prop, end, easing );\n\t}\n\tjQuery.Tween = Tween;\n\n\tTween.prototype = {\n\t\tconstructor: Tween,\n\t\tinit: function( elem, options, prop, end, easing, unit ) {\n\t\t\tthis.elem = elem;\n\t\t\tthis.prop = prop;\n\t\t\tthis.easing = easing || jQuery.easing._default;\n\t\t\tthis.options = options;\n\t\t\tthis.start = this.now = this.cur();\n\t\t\tthis.end = end;\n\t\t\tthis.unit = unit || ( jQuery.cssNumber[ prop ] ? \"\" : \"px\" );\n\t\t},\n\t\tcur: function() {\n\t\t\tvar hooks = Tween.propHooks[ this.prop ];\n\n\t\t\treturn hooks && hooks.get ?\n\t\t\t\thooks.get( this ) :\n\t\t\t\tTween.propHooks._default.get( this );\n\t\t},\n\t\trun: function( percent ) {\n\t\t\tvar eased,\n\t\t\t\thooks = Tween.propHooks[ this.prop ];\n\n\t\t\tif ( this.options.duration ) {\n\t\t\t\tthis.pos = eased = jQuery.easing[ this.easing ](\n\t\t\t\t\tpercent, this.options.duration * percent, 0, 1, this.options.duration\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\tthis.pos = eased = percent;\n\t\t\t}\n\t\t\tthis.now = ( this.end - this.start ) * eased + this.start;\n\n\t\t\tif ( this.options.step ) {\n\t\t\t\tthis.options.step.call( this.elem, this.now, this );\n\t\t\t}\n\n\t\t\tif ( hooks && hooks.set ) {\n\t\t\t\thooks.set( this );\n\t\t\t} else {\n\t\t\t\tTween.propHooks._default.set( this );\n\t\t\t}\n\t\t\treturn this;\n\t\t}\n\t};\n\n\tTween.prototype.init.prototype = Tween.prototype;\n\n\tTween.propHooks = {\n\t\t_default: {\n\t\t\tget: function( tween ) {\n\t\t\t\tvar result;\n\n\t\t\t\t// Use a property on the element directly when it is not a DOM element,\n\t\t\t\t// or when there is no matching style property that exists.\n\t\t\t\tif ( tween.elem.nodeType !== 1 ||\n\t\t\t\t\ttween.elem[ tween.prop ] != null && tween.elem.style[ tween.prop ] == null ) {\n\t\t\t\t\treturn tween.elem[ tween.prop ];\n\t\t\t\t}\n\n\t\t\t\t// Passing an empty string as a 3rd parameter to .css will automatically\n\t\t\t\t// attempt a parseFloat and fallback to a string if the parse fails.\n\t\t\t\t// Simple values such as \"10px\" are parsed to Float;\n\t\t\t\t// complex values such as \"rotate(1rad)\" are returned as-is.\n\t\t\t\tresult = jQuery.css( tween.elem, tween.prop, \"\" );\n\n\t\t\t\t// Empty strings, null, undefined and \"auto\" are converted to 0.\n\t\t\t\treturn !result || result === \"auto\" ? 0 : result;\n\t\t\t},\n\t\t\tset: function( tween ) {\n\n\t\t\t\t// Use step hook for back compat.\n\t\t\t\t// Use cssHook if its there.\n\t\t\t\t// Use .style if available and use plain properties where available.\n\t\t\t\tif ( jQuery.fx.step[ tween.prop ] ) {\n\t\t\t\t\tjQuery.fx.step[ tween.prop ]( tween );\n\t\t\t\t} else if ( tween.elem.nodeType === 1 &&\n\t\t\t\t\t( tween.elem.style[ jQuery.cssProps[ tween.prop ] ] != null ||\n\t\t\t\t\t\tjQuery.cssHooks[ tween.prop ] ) ) {\n\t\t\t\t\tjQuery.style( tween.elem, tween.prop, tween.now + tween.unit );\n\t\t\t\t} else {\n\t\t\t\t\ttween.elem[ tween.prop ] = tween.now;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t};\n\n\t// Support: IE9\n\t// Panic based approach to setting things on disconnected nodes\n\tTween.propHooks.scrollTop = Tween.propHooks.scrollLeft = {\n\t\tset: function( tween ) {\n\t\t\tif ( tween.elem.nodeType && tween.elem.parentNode ) {\n\t\t\t\ttween.elem[ tween.prop ] = tween.now;\n\t\t\t}\n\t\t}\n\t};\n\n\tjQuery.easing = {\n\t\tlinear: function( p ) {\n\t\t\treturn p;\n\t\t},\n\t\tswing: function( p ) {\n\t\t\treturn 0.5 - Math.cos( p * Math.PI ) / 2;\n\t\t},\n\t\t_default: \"swing\"\n\t};\n\n\tjQuery.fx = Tween.prototype.init;\n\n\t// Back Compat <1.8 extension point\n\tjQuery.fx.step = {};\n\n\n\n\n\tvar\n\t\tfxNow, timerId,\n\t\trfxtypes = /^(?:toggle|show|hide)$/,\n\t\trrun = /queueHooks$/;\n\n\t// Animations created synchronously will run synchronously\n\tfunction createFxNow() {\n\t\twindow.setTimeout( function() {\n\t\t\tfxNow = undefined;\n\t\t} );\n\t\treturn ( fxNow = jQuery.now() );\n\t}\n\n\t// Generate parameters to create a standard animation\n\tfunction genFx( type, includeWidth ) {\n\t\tvar which,\n\t\t\ti = 0,\n\t\t\tattrs = { height: type };\n\n\t\t// If we include width, step value is 1 to do all cssExpand values,\n\t\t// otherwise step value is 2 to skip over Left and Right\n\t\tincludeWidth = includeWidth ? 1 : 0;\n\t\tfor ( ; i < 4 ; i += 2 - includeWidth ) {\n\t\t\twhich = cssExpand[ i ];\n\t\t\tattrs[ \"margin\" + which ] = attrs[ \"padding\" + which ] = type;\n\t\t}\n\n\t\tif ( includeWidth ) {\n\t\t\tattrs.opacity = attrs.width = type;\n\t\t}\n\n\t\treturn attrs;\n\t}\n\n\tfunction createTween( value, prop, animation ) {\n\t\tvar tween,\n\t\t\tcollection = ( Animation.tweeners[ prop ] || [] ).concat( Animation.tweeners[ \"*\" ] ),\n\t\t\tindex = 0,\n\t\t\tlength = collection.length;\n\t\tfor ( ; index < length; index++ ) {\n\t\t\tif ( ( tween = collection[ index ].call( animation, prop, value ) ) ) {\n\n\t\t\t\t// We're done with this property\n\t\t\t\treturn tween;\n\t\t\t}\n\t\t}\n\t}\n\n\tfunction defaultPrefilter( elem, props, opts ) {\n\t\t/* jshint validthis: true */\n\t\tvar prop, value, toggle, tween, hooks, oldfire, display, checkDisplay,\n\t\t\tanim = this,\n\t\t\torig = {},\n\t\t\tstyle = elem.style,\n\t\t\thidden = elem.nodeType && isHidden( elem ),\n\t\t\tdataShow = dataPriv.get( elem, \"fxshow\" );\n\n\t\t// Handle queue: false promises\n\t\tif ( !opts.queue ) {\n\t\t\thooks = jQuery._queueHooks( elem, \"fx\" );\n\t\t\tif ( hooks.unqueued == null ) {\n\t\t\t\thooks.unqueued = 0;\n\t\t\t\toldfire = hooks.empty.fire;\n\t\t\t\thooks.empty.fire = function() {\n\t\t\t\t\tif ( !hooks.unqueued ) {\n\t\t\t\t\t\toldfire();\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t}\n\t\t\thooks.unqueued++;\n\n\t\t\tanim.always( function() {\n\n\t\t\t\t// Ensure the complete handler is called before this completes\n\t\t\t\tanim.always( function() {\n\t\t\t\t\thooks.unqueued--;\n\t\t\t\t\tif ( !jQuery.queue( elem, \"fx\" ).length ) {\n\t\t\t\t\t\thooks.empty.fire();\n\t\t\t\t\t}\n\t\t\t\t} );\n\t\t\t} );\n\t\t}\n\n\t\t// Height/width overflow pass\n\t\tif ( elem.nodeType === 1 && ( \"height\" in props || \"width\" in props ) ) {\n\n\t\t\t// Make sure that nothing sneaks out\n\t\t\t// Record all 3 overflow attributes because IE9-10 do not\n\t\t\t// change the overflow attribute when overflowX and\n\t\t\t// overflowY are set to the same value\n\t\t\topts.overflow = [ style.overflow, style.overflowX, style.overflowY ];\n\n\t\t\t// Set display property to inline-block for height/width\n\t\t\t// animations on inline elements that are having width/height animated\n\t\t\tdisplay = jQuery.css( elem, \"display\" );\n\n\t\t\t// Test default display if display is currently \"none\"\n\t\t\tcheckDisplay = display === \"none\" ?\n\t\t\t\tdataPriv.get( elem, \"olddisplay\" ) || defaultDisplay( elem.nodeName ) : display;\n\n\t\t\tif ( checkDisplay === \"inline\" && jQuery.css( elem, \"float\" ) === \"none\" ) {\n\t\t\t\tstyle.display = \"inline-block\";\n\t\t\t}\n\t\t}\n\n\t\tif ( opts.overflow ) {\n\t\t\tstyle.overflow = \"hidden\";\n\t\t\tanim.always( function() {\n\t\t\t\tstyle.overflow = opts.overflow[ 0 ];\n\t\t\t\tstyle.overflowX = opts.overflow[ 1 ];\n\t\t\t\tstyle.overflowY = opts.overflow[ 2 ];\n\t\t\t} );\n\t\t}\n\n\t\t// show/hide pass\n\t\tfor ( prop in props ) {\n\t\t\tvalue = props[ prop ];\n\t\t\tif ( rfxtypes.exec( value ) ) {\n\t\t\t\tdelete props[ prop ];\n\t\t\t\ttoggle = toggle || value === \"toggle\";\n\t\t\t\tif ( value === ( hidden ? \"hide\" : \"show\" ) ) {\n\n\t\t\t\t\t// If there is dataShow left over from a stopped hide or show\n\t\t\t\t\t// and we are going to proceed with show, we should pretend to be hidden\n\t\t\t\t\tif ( value === \"show\" && dataShow && dataShow[ prop ] !== undefined ) {\n\t\t\t\t\t\thidden = true;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\torig[ prop ] = dataShow && dataShow[ prop ] || jQuery.style( elem, prop );\n\n\t\t\t// Any non-fx value stops us from restoring the original display value\n\t\t\t} else {\n\t\t\t\tdisplay = undefined;\n\t\t\t}\n\t\t}\n\n\t\tif ( !jQuery.isEmptyObject( orig ) ) {\n\t\t\tif ( dataShow ) {\n\t\t\t\tif ( \"hidden\" in dataShow ) {\n\t\t\t\t\thidden = dataShow.hidden;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tdataShow = dataPriv.access( elem, \"fxshow\", {} );\n\t\t\t}\n\n\t\t\t// Store state if its toggle - enables .stop().toggle() to \"reverse\"\n\t\t\tif ( toggle ) {\n\t\t\t\tdataShow.hidden = !hidden;\n\t\t\t}\n\t\t\tif ( hidden ) {\n\t\t\t\tjQuery( elem ).show();\n\t\t\t} else {\n\t\t\t\tanim.done( function() {\n\t\t\t\t\tjQuery( elem ).hide();\n\t\t\t\t} );\n\t\t\t}\n\t\t\tanim.done( function() {\n\t\t\t\tvar prop;\n\n\t\t\t\tdataPriv.remove( elem, \"fxshow\" );\n\t\t\t\tfor ( prop in orig ) {\n\t\t\t\t\tjQuery.style( elem, prop, orig[ prop ] );\n\t\t\t\t}\n\t\t\t} );\n\t\t\tfor ( prop in orig ) {\n\t\t\t\ttween = createTween( hidden ? dataShow[ prop ] : 0, prop, anim );\n\n\t\t\t\tif ( !( prop in dataShow ) ) {\n\t\t\t\t\tdataShow[ prop ] = tween.start;\n\t\t\t\t\tif ( hidden ) {\n\t\t\t\t\t\ttween.end = tween.start;\n\t\t\t\t\t\ttween.start = prop === \"width\" || prop === \"height\" ? 1 : 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t// If this is a noop like .hide().hide(), restore an overwritten display value\n\t\t} else if ( ( display === \"none\" ? defaultDisplay( elem.nodeName ) : display ) === \"inline\" ) {\n\t\t\tstyle.display = display;\n\t\t}\n\t}\n\n\tfunction propFilter( props, specialEasing ) {\n\t\tvar index, name, easing, value, hooks;\n\n\t\t// camelCase, specialEasing and expand cssHook pass\n\t\tfor ( index in props ) {\n\t\t\tname = jQuery.camelCase( index );\n\t\t\teasing = specialEasing[ name ];\n\t\t\tvalue = props[ index ];\n\t\t\tif ( jQuery.isArray( value ) ) {\n\t\t\t\teasing = value[ 1 ];\n\t\t\t\tvalue = props[ index ] = value[ 0 ];\n\t\t\t}\n\n\t\t\tif ( index !== name ) {\n\t\t\t\tprops[ name ] = value;\n\t\t\t\tdelete props[ index ];\n\t\t\t}\n\n\t\t\thooks = jQuery.cssHooks[ name ];\n\t\t\tif ( hooks && \"expand\" in hooks ) {\n\t\t\t\tvalue = hooks.expand( value );\n\t\t\t\tdelete props[ name ];\n\n\t\t\t\t// Not quite $.extend, this won't overwrite existing keys.\n\t\t\t\t// Reusing 'index' because we have the correct \"name\"\n\t\t\t\tfor ( index in value ) {\n\t\t\t\t\tif ( !( index in props ) ) {\n\t\t\t\t\t\tprops[ index ] = value[ index ];\n\t\t\t\t\t\tspecialEasing[ index ] = easing;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tspecialEasing[ name ] = easing;\n\t\t\t}\n\t\t}\n\t}\n\n\tfunction Animation( elem, properties, options ) {\n\t\tvar result,\n\t\t\tstopped,\n\t\t\tindex = 0,\n\t\t\tlength = Animation.prefilters.length,\n\t\t\tdeferred = jQuery.Deferred().always( function() {\n\n\t\t\t\t// Don't match elem in the :animated selector\n\t\t\t\tdelete tick.elem;\n\t\t\t} ),\n\t\t\ttick = function() {\n\t\t\t\tif ( stopped ) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tvar currentTime = fxNow || createFxNow(),\n\t\t\t\t\tremaining = Math.max( 0, animation.startTime + animation.duration - currentTime ),\n\n\t\t\t\t\t// Support: Android 2.3\n\t\t\t\t\t// Archaic crash bug won't allow us to use `1 - ( 0.5 || 0 )` (#12497)\n\t\t\t\t\ttemp = remaining / animation.duration || 0,\n\t\t\t\t\tpercent = 1 - temp,\n\t\t\t\t\tindex = 0,\n\t\t\t\t\tlength = animation.tweens.length;\n\n\t\t\t\tfor ( ; index < length ; index++ ) {\n\t\t\t\t\tanimation.tweens[ index ].run( percent );\n\t\t\t\t}\n\n\t\t\t\tdeferred.notifyWith( elem, [ animation, percent, remaining ] );\n\n\t\t\t\tif ( percent < 1 && length ) {\n\t\t\t\t\treturn remaining;\n\t\t\t\t} else {\n\t\t\t\t\tdeferred.resolveWith( elem, [ animation ] );\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t},\n\t\t\tanimation = deferred.promise( {\n\t\t\t\telem: elem,\n\t\t\t\tprops: jQuery.extend( {}, properties ),\n\t\t\t\topts: jQuery.extend( true, {\n\t\t\t\t\tspecialEasing: {},\n\t\t\t\t\teasing: jQuery.easing._default\n\t\t\t\t}, options ),\n\t\t\t\toriginalProperties: properties,\n\t\t\t\toriginalOptions: options,\n\t\t\t\tstartTime: fxNow || createFxNow(),\n\t\t\t\tduration: options.duration,\n\t\t\t\ttweens: [],\n\t\t\t\tcreateTween: function( prop, end ) {\n\t\t\t\t\tvar tween = jQuery.Tween( elem, animation.opts, prop, end,\n\t\t\t\t\t\t\tanimation.opts.specialEasing[ prop ] || animation.opts.easing );\n\t\t\t\t\tanimation.tweens.push( tween );\n\t\t\t\t\treturn tween;\n\t\t\t\t},\n\t\t\t\tstop: function( gotoEnd ) {\n\t\t\t\t\tvar index = 0,\n\n\t\t\t\t\t\t// If we are going to the end, we want to run all the tweens\n\t\t\t\t\t\t// otherwise we skip this part\n\t\t\t\t\t\tlength = gotoEnd ? animation.tweens.length : 0;\n\t\t\t\t\tif ( stopped ) {\n\t\t\t\t\t\treturn this;\n\t\t\t\t\t}\n\t\t\t\t\tstopped = true;\n\t\t\t\t\tfor ( ; index < length ; index++ ) {\n\t\t\t\t\t\tanimation.tweens[ index ].run( 1 );\n\t\t\t\t\t}\n\n\t\t\t\t\t// Resolve when we played the last frame; otherwise, reject\n\t\t\t\t\tif ( gotoEnd ) {\n\t\t\t\t\t\tdeferred.notifyWith( elem, [ animation, 1, 0 ] );\n\t\t\t\t\t\tdeferred.resolveWith( elem, [ animation, gotoEnd ] );\n\t\t\t\t\t} else {\n\t\t\t\t\t\tdeferred.rejectWith( elem, [ animation, gotoEnd ] );\n\t\t\t\t\t}\n\t\t\t\t\treturn this;\n\t\t\t\t}\n\t\t\t} ),\n\t\t\tprops = animation.props;\n\n\t\tpropFilter( props, animation.opts.specialEasing );\n\n\t\tfor ( ; index < length ; index++ ) {\n\t\t\tresult = Animation.prefilters[ index ].call( animation, elem, props, animation.opts );\n\t\t\tif ( result ) {\n\t\t\t\tif ( jQuery.isFunction( result.stop ) ) {\n\t\t\t\t\tjQuery._queueHooks( animation.elem, animation.opts.queue ).stop =\n\t\t\t\t\t\tjQuery.proxy( result.stop, result );\n\t\t\t\t}\n\t\t\t\treturn result;\n\t\t\t}\n\t\t}\n\n\t\tjQuery.map( props, createTween, animation );\n\n\t\tif ( jQuery.isFunction( animation.opts.start ) ) {\n\t\t\tanimation.opts.start.call( elem, animation );\n\t\t}\n\n\t\tjQuery.fx.timer(\n\t\t\tjQuery.extend( tick, {\n\t\t\t\telem: elem,\n\t\t\t\tanim: animation,\n\t\t\t\tqueue: animation.opts.queue\n\t\t\t} )\n\t\t);\n\n\t\t// attach callbacks from options\n\t\treturn animation.progress( animation.opts.progress )\n\t\t\t.done( animation.opts.done, animation.opts.complete )\n\t\t\t.fail( animation.opts.fail )\n\t\t\t.always( animation.opts.always );\n\t}\n\n\tjQuery.Animation = jQuery.extend( Animation, {\n\t\ttweeners: {\n\t\t\t\"*\": [ function( prop, value ) {\n\t\t\t\tvar tween = this.createTween( prop, value );\n\t\t\t\tadjustCSS( tween.elem, prop, rcssNum.exec( value ), tween );\n\t\t\t\treturn tween;\n\t\t\t} ]\n\t\t},\n\n\t\ttweener: function( props, callback ) {\n\t\t\tif ( jQuery.isFunction( props ) ) {\n\t\t\t\tcallback = props;\n\t\t\t\tprops = [ \"*\" ];\n\t\t\t} else {\n\t\t\t\tprops = props.match( rnotwhite );\n\t\t\t}\n\n\t\t\tvar prop,\n\t\t\t\tindex = 0,\n\t\t\t\tlength = props.length;\n\n\t\t\tfor ( ; index < length ; index++ ) {\n\t\t\t\tprop = props[ index ];\n\t\t\t\tAnimation.tweeners[ prop ] = Animation.tweeners[ prop ] || [];\n\t\t\t\tAnimation.tweeners[ prop ].unshift( callback );\n\t\t\t}\n\t\t},\n\n\t\tprefilters: [ defaultPrefilter ],\n\n\t\tprefilter: function( callback, prepend ) {\n\t\t\tif ( prepend ) {\n\t\t\t\tAnimation.prefilters.unshift( callback );\n\t\t\t} else {\n\t\t\t\tAnimation.prefilters.push( callback );\n\t\t\t}\n\t\t}\n\t} );\n\n\tjQuery.speed = function( speed, easing, fn ) {\n\t\tvar opt = speed && typeof speed === \"object\" ? jQuery.extend( {}, speed ) : {\n\t\t\tcomplete: fn || !fn && easing ||\n\t\t\t\tjQuery.isFunction( speed ) && speed,\n\t\t\tduration: speed,\n\t\t\teasing: fn && easing || easing && !jQuery.isFunction( easing ) && easing\n\t\t};\n\n\t\topt.duration = jQuery.fx.off ? 0 : typeof opt.duration === \"number\" ?\n\t\t\topt.duration : opt.duration in jQuery.fx.speeds ?\n\t\t\t\tjQuery.fx.speeds[ opt.duration ] : jQuery.fx.speeds._default;\n\n\t\t// Normalize opt.queue - true/undefined/null -> \"fx\"\n\t\tif ( opt.queue == null || opt.queue === true ) {\n\t\t\topt.queue = \"fx\";\n\t\t}\n\n\t\t// Queueing\n\t\topt.old = opt.complete;\n\n\t\topt.complete = function() {\n\t\t\tif ( jQuery.isFunction( opt.old ) ) {\n\t\t\t\topt.old.call( this );\n\t\t\t}\n\n\t\t\tif ( opt.queue ) {\n\t\t\t\tjQuery.dequeue( this, opt.queue );\n\t\t\t}\n\t\t};\n\n\t\treturn opt;\n\t};\n\n\tjQuery.fn.extend( {\n\t\tfadeTo: function( speed, to, easing, callback ) {\n\n\t\t\t// Show any hidden elements after setting opacity to 0\n\t\t\treturn this.filter( isHidden ).css( \"opacity\", 0 ).show()\n\n\t\t\t\t// Animate to the value specified\n\t\t\t\t.end().animate( { opacity: to }, speed, easing, callback );\n\t\t},\n\t\tanimate: function( prop, speed, easing, callback ) {\n\t\t\tvar empty = jQuery.isEmptyObject( prop ),\n\t\t\t\toptall = jQuery.speed( speed, easing, callback ),\n\t\t\t\tdoAnimation = function() {\n\n\t\t\t\t\t// Operate on a copy of prop so per-property easing won't be lost\n\t\t\t\t\tvar anim = Animation( this, jQuery.extend( {}, prop ), optall );\n\n\t\t\t\t\t// Empty animations, or finishing resolves immediately\n\t\t\t\t\tif ( empty || dataPriv.get( this, \"finish\" ) ) {\n\t\t\t\t\t\tanim.stop( true );\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\tdoAnimation.finish = doAnimation;\n\n\t\t\treturn empty || optall.queue === false ?\n\t\t\t\tthis.each( doAnimation ) :\n\t\t\t\tthis.queue( optall.queue, doAnimation );\n\t\t},\n\t\tstop: function( type, clearQueue, gotoEnd ) {\n\t\t\tvar stopQueue = function( hooks ) {\n\t\t\t\tvar stop = hooks.stop;\n\t\t\t\tdelete hooks.stop;\n\t\t\t\tstop( gotoEnd );\n\t\t\t};\n\n\t\t\tif ( typeof type !== \"string\" ) {\n\t\t\t\tgotoEnd = clearQueue;\n\t\t\t\tclearQueue = type;\n\t\t\t\ttype = undefined;\n\t\t\t}\n\t\t\tif ( clearQueue && type !== false ) {\n\t\t\t\tthis.queue( type || \"fx\", [] );\n\t\t\t}\n\n\t\t\treturn this.each( function() {\n\t\t\t\tvar dequeue = true,\n\t\t\t\t\tindex = type != null && type + \"queueHooks\",\n\t\t\t\t\ttimers = jQuery.timers,\n\t\t\t\t\tdata = dataPriv.get( this );\n\n\t\t\t\tif ( index ) {\n\t\t\t\t\tif ( data[ index ] && data[ index ].stop ) {\n\t\t\t\t\t\tstopQueue( data[ index ] );\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfor ( index in data ) {\n\t\t\t\t\t\tif ( data[ index ] && data[ index ].stop && rrun.test( index ) ) {\n\t\t\t\t\t\t\tstopQueue( data[ index ] );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tfor ( index = timers.length; index--; ) {\n\t\t\t\t\tif ( timers[ index ].elem === this &&\n\t\t\t\t\t\t( type == null || timers[ index ].queue === type ) ) {\n\n\t\t\t\t\t\ttimers[ index ].anim.stop( gotoEnd );\n\t\t\t\t\t\tdequeue = false;\n\t\t\t\t\t\ttimers.splice( index, 1 );\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Start the next in the queue if the last step wasn't forced.\n\t\t\t\t// Timers currently will call their complete callbacks, which\n\t\t\t\t// will dequeue but only if they were gotoEnd.\n\t\t\t\tif ( dequeue || !gotoEnd ) {\n\t\t\t\t\tjQuery.dequeue( this, type );\n\t\t\t\t}\n\t\t\t} );\n\t\t},\n\t\tfinish: function( type ) {\n\t\t\tif ( type !== false ) {\n\t\t\t\ttype = type || \"fx\";\n\t\t\t}\n\t\t\treturn this.each( function() {\n\t\t\t\tvar index,\n\t\t\t\t\tdata = dataPriv.get( this ),\n\t\t\t\t\tqueue = data[ type + \"queue\" ],\n\t\t\t\t\thooks = data[ type + \"queueHooks\" ],\n\t\t\t\t\ttimers = jQuery.timers,\n\t\t\t\t\tlength = queue ? queue.length : 0;\n\n\t\t\t\t// Enable finishing flag on private data\n\t\t\t\tdata.finish = true;\n\n\t\t\t\t// Empty the queue first\n\t\t\t\tjQuery.queue( this, type, [] );\n\n\t\t\t\tif ( hooks && hooks.stop ) {\n\t\t\t\t\thooks.stop.call( this, true );\n\t\t\t\t}\n\n\t\t\t\t// Look for any active animations, and finish them\n\t\t\t\tfor ( index = timers.length; index--; ) {\n\t\t\t\t\tif ( timers[ index ].elem === this && timers[ index ].queue === type ) {\n\t\t\t\t\t\ttimers[ index ].anim.stop( true );\n\t\t\t\t\t\ttimers.splice( index, 1 );\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Look for any animations in the old queue and finish them\n\t\t\t\tfor ( index = 0; index < length; index++ ) {\n\t\t\t\t\tif ( queue[ index ] && queue[ index ].finish ) {\n\t\t\t\t\t\tqueue[ index ].finish.call( this );\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Turn off finishing flag\n\t\t\t\tdelete data.finish;\n\t\t\t} );\n\t\t}\n\t} );\n\n\tjQuery.each( [ \"toggle\", \"show\", \"hide\" ], function( i, name ) {\n\t\tvar cssFn = jQuery.fn[ name ];\n\t\tjQuery.fn[ name ] = function( speed, easing, callback ) {\n\t\t\treturn speed == null || typeof speed === \"boolean\" ?\n\t\t\t\tcssFn.apply( this, arguments ) :\n\t\t\t\tthis.animate( genFx( name, true ), speed, easing, callback );\n\t\t};\n\t} );\n\n\t// Generate shortcuts for custom animations\n\tjQuery.each( {\n\t\tslideDown: genFx( \"show\" ),\n\t\tslideUp: genFx( \"hide\" ),\n\t\tslideToggle: genFx( \"toggle\" ),\n\t\tfadeIn: { opacity: \"show\" },\n\t\tfadeOut: { opacity: \"hide\" },\n\t\tfadeToggle: { opacity: \"toggle\" }\n\t}, function( name, props ) {\n\t\tjQuery.fn[ name ] = function( speed, easing, callback ) {\n\t\t\treturn this.animate( props, speed, easing, callback );\n\t\t};\n\t} );\n\n\tjQuery.timers = [];\n\tjQuery.fx.tick = function() {\n\t\tvar timer,\n\t\t\ti = 0,\n\t\t\ttimers = jQuery.timers;\n\n\t\tfxNow = jQuery.now();\n\n\t\tfor ( ; i < timers.length; i++ ) {\n\t\t\ttimer = timers[ i ];\n\n\t\t\t// Checks the timer has not already been removed\n\t\t\tif ( !timer() && timers[ i ] === timer ) {\n\t\t\t\ttimers.splice( i--, 1 );\n\t\t\t}\n\t\t}\n\n\t\tif ( !timers.length ) {\n\t\t\tjQuery.fx.stop();\n\t\t}\n\t\tfxNow = undefined;\n\t};\n\n\tjQuery.fx.timer = function( timer ) {\n\t\tjQuery.timers.push( timer );\n\t\tif ( timer() ) {\n\t\t\tjQuery.fx.start();\n\t\t} else {\n\t\t\tjQuery.timers.pop();\n\t\t}\n\t};\n\n\tjQuery.fx.interval = 13;\n\tjQuery.fx.start = function() {\n\t\tif ( !timerId ) {\n\t\t\ttimerId = window.setInterval( jQuery.fx.tick, jQuery.fx.interval );\n\t\t}\n\t};\n\n\tjQuery.fx.stop = function() {\n\t\twindow.clearInterval( timerId );\n\n\t\ttimerId = null;\n\t};\n\n\tjQuery.fx.speeds = {\n\t\tslow: 600,\n\t\tfast: 200,\n\n\t\t// Default speed\n\t\t_default: 400\n\t};\n\n\n\t// Based off of the plugin by Clint Helfers, with permission.\n\t// http://web.archive.org/web/20100324014747/http://blindsignals.com/index.php/2009/07/jquery-delay/\n\tjQuery.fn.delay = function( time, type ) {\n\t\ttime = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;\n\t\ttype = type || \"fx\";\n\n\t\treturn this.queue( type, function( next, hooks ) {\n\t\t\tvar timeout = window.setTimeout( next, time );\n\t\t\thooks.stop = function() {\n\t\t\t\twindow.clearTimeout( timeout );\n\t\t\t};\n\t\t} );\n\t};\n\n\n\t( function() {\n\t\tvar input = document.createElement( \"input\" ),\n\t\t\tselect = document.createElement( \"select\" ),\n\t\t\topt = select.appendChild( document.createElement( \"option\" ) );\n\n\t\tinput.type = \"checkbox\";\n\n\t\t// Support: iOS<=5.1, Android<=4.2+\n\t\t// Default value for a checkbox should be \"on\"\n\t\tsupport.checkOn = input.value !== \"\";\n\n\t\t// Support: IE<=11+\n\t\t// Must access selectedIndex to make default options select\n\t\tsupport.optSelected = opt.selected;\n\n\t\t// Support: Android<=2.3\n\t\t// Options inside disabled selects are incorrectly marked as disabled\n\t\tselect.disabled = true;\n\t\tsupport.optDisabled = !opt.disabled;\n\n\t\t// Support: IE<=11+\n\t\t// An input loses its value after becoming a radio\n\t\tinput = document.createElement( \"input\" );\n\t\tinput.value = \"t\";\n\t\tinput.type = \"radio\";\n\t\tsupport.radioValue = input.value === \"t\";\n\t} )();\n\n\n\tvar boolHook,\n\t\tattrHandle = jQuery.expr.attrHandle;\n\n\tjQuery.fn.extend( {\n\t\tattr: function( name, value ) {\n\t\t\treturn access( this, jQuery.attr, name, value, arguments.length > 1 );\n\t\t},\n\n\t\tremoveAttr: function( name ) {\n\t\t\treturn this.each( function() {\n\t\t\t\tjQuery.removeAttr( this, name );\n\t\t\t} );\n\t\t}\n\t} );\n\n\tjQuery.extend( {\n\t\tattr: function( elem, name, value ) {\n\t\t\tvar ret, hooks,\n\t\t\t\tnType = elem.nodeType;\n\n\t\t\t// Don't get/set attributes on text, comment and attribute nodes\n\t\t\tif ( nType === 3 || nType === 8 || nType === 2 ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Fallback to prop when attributes are not supported\n\t\t\tif ( typeof elem.getAttribute === \"undefined\" ) {\n\t\t\t\treturn jQuery.prop( elem, name, value );\n\t\t\t}\n\n\t\t\t// All attributes are lowercase\n\t\t\t// Grab necessary hook if one is defined\n\t\t\tif ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) {\n\t\t\t\tname = name.toLowerCase();\n\t\t\t\thooks = jQuery.attrHooks[ name ] ||\n\t\t\t\t\t( jQuery.expr.match.bool.test( name ) ? boolHook : undefined );\n\t\t\t}\n\n\t\t\tif ( value !== undefined ) {\n\t\t\t\tif ( value === null ) {\n\t\t\t\t\tjQuery.removeAttr( elem, name );\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif ( hooks && \"set\" in hooks &&\n\t\t\t\t\t( ret = hooks.set( elem, value, name ) ) !== undefined ) {\n\t\t\t\t\treturn ret;\n\t\t\t\t}\n\n\t\t\t\telem.setAttribute( name, value + \"\" );\n\t\t\t\treturn value;\n\t\t\t}\n\n\t\t\tif ( hooks && \"get\" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) {\n\t\t\t\treturn ret;\n\t\t\t}\n\n\t\t\tret = jQuery.find.attr( elem, name );\n\n\t\t\t// Non-existent attributes return null, we normalize to undefined\n\t\t\treturn ret == null ? undefined : ret;\n\t\t},\n\n\t\tattrHooks: {\n\t\t\ttype: {\n\t\t\t\tset: function( elem, value ) {\n\t\t\t\t\tif ( !support.radioValue && value === \"radio\" &&\n\t\t\t\t\t\tjQuery.nodeName( elem, \"input\" ) ) {\n\t\t\t\t\t\tvar val = elem.value;\n\t\t\t\t\t\telem.setAttribute( \"type\", value );\n\t\t\t\t\t\tif ( val ) {\n\t\t\t\t\t\t\telem.value = val;\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn value;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\tremoveAttr: function( elem, value ) {\n\t\t\tvar name, propName,\n\t\t\t\ti = 0,\n\t\t\t\tattrNames = value && value.match( rnotwhite );\n\n\t\t\tif ( attrNames && elem.nodeType === 1 ) {\n\t\t\t\twhile ( ( name = attrNames[ i++ ] ) ) {\n\t\t\t\t\tpropName = jQuery.propFix[ name ] || name;\n\n\t\t\t\t\t// Boolean attributes get special treatment (#10870)\n\t\t\t\t\tif ( jQuery.expr.match.bool.test( name ) ) {\n\n\t\t\t\t\t\t// Set corresponding property to false\n\t\t\t\t\t\telem[ propName ] = false;\n\t\t\t\t\t}\n\n\t\t\t\t\telem.removeAttribute( name );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t} );\n\n\t// Hooks for boolean attributes\n\tboolHook = {\n\t\tset: function( elem, value, name ) {\n\t\t\tif ( value === false ) {\n\n\t\t\t\t// Remove boolean attributes when set to false\n\t\t\t\tjQuery.removeAttr( elem, name );\n\t\t\t} else {\n\t\t\t\telem.setAttribute( name, name );\n\t\t\t}\n\t\t\treturn name;\n\t\t}\n\t};\n\tjQuery.each( jQuery.expr.match.bool.source.match( /\\w+/g ), function( i, name ) {\n\t\tvar getter = attrHandle[ name ] || jQuery.find.attr;\n\n\t\tattrHandle[ name ] = function( elem, name, isXML ) {\n\t\t\tvar ret, handle;\n\t\t\tif ( !isXML ) {\n\n\t\t\t\t// Avoid an infinite loop by temporarily removing this function from the getter\n\t\t\t\thandle = attrHandle[ name ];\n\t\t\t\tattrHandle[ name ] = ret;\n\t\t\t\tret = getter( elem, name, isXML ) != null ?\n\t\t\t\t\tname.toLowerCase() :\n\t\t\t\t\tnull;\n\t\t\t\tattrHandle[ name ] = handle;\n\t\t\t}\n\t\t\treturn ret;\n\t\t};\n\t} );\n\n\n\n\n\tvar rfocusable = /^(?:input|select|textarea|button)$/i,\n\t\trclickable = /^(?:a|area)$/i;\n\n\tjQuery.fn.extend( {\n\t\tprop: function( name, value ) {\n\t\t\treturn access( this, jQuery.prop, name, value, arguments.length > 1 );\n\t\t},\n\n\t\tremoveProp: function( name ) {\n\t\t\treturn this.each( function() {\n\t\t\t\tdelete this[ jQuery.propFix[ name ] || name ];\n\t\t\t} );\n\t\t}\n\t} );\n\n\tjQuery.extend( {\n\t\tprop: function( elem, name, value ) {\n\t\t\tvar ret, hooks,\n\t\t\t\tnType = elem.nodeType;\n\n\t\t\t// Don't get/set properties on text, comment and attribute nodes\n\t\t\tif ( nType === 3 || nType === 8 || nType === 2 ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) {\n\n\t\t\t\t// Fix name and attach hooks\n\t\t\t\tname = jQuery.propFix[ name ] || name;\n\t\t\t\thooks = jQuery.propHooks[ name ];\n\t\t\t}\n\n\t\t\tif ( value !== undefined ) {\n\t\t\t\tif ( hooks && \"set\" in hooks &&\n\t\t\t\t\t( ret = hooks.set( elem, value, name ) ) !== undefined ) {\n\t\t\t\t\treturn ret;\n\t\t\t\t}\n\n\t\t\t\treturn ( elem[ name ] = value );\n\t\t\t}\n\n\t\t\tif ( hooks && \"get\" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) {\n\t\t\t\treturn ret;\n\t\t\t}\n\n\t\t\treturn elem[ name ];\n\t\t},\n\n\t\tpropHooks: {\n\t\t\ttabIndex: {\n\t\t\t\tget: function( elem ) {\n\n\t\t\t\t\t// elem.tabIndex doesn't always return the\n\t\t\t\t\t// correct value when it hasn't been explicitly set\n\t\t\t\t\t// http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/\n\t\t\t\t\t// Use proper attribute retrieval(#12072)\n\t\t\t\t\tvar tabindex = jQuery.find.attr( elem, \"tabindex\" );\n\n\t\t\t\t\treturn tabindex ?\n\t\t\t\t\t\tparseInt( tabindex, 10 ) :\n\t\t\t\t\t\trfocusable.test( elem.nodeName ) ||\n\t\t\t\t\t\t\trclickable.test( elem.nodeName ) && elem.href ?\n\t\t\t\t\t\t\t\t0 :\n\t\t\t\t\t\t\t\t-1;\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\tpropFix: {\n\t\t\t\"for\": \"htmlFor\",\n\t\t\t\"class\": \"className\"\n\t\t}\n\t} );\n\n\tif ( !support.optSelected ) {\n\t\tjQuery.propHooks.selected = {\n\t\t\tget: function( elem ) {\n\t\t\t\tvar parent = elem.parentNode;\n\t\t\t\tif ( parent && parent.parentNode ) {\n\t\t\t\t\tparent.parentNode.selectedIndex;\n\t\t\t\t}\n\t\t\t\treturn null;\n\t\t\t}\n\t\t};\n\t}\n\n\tjQuery.each( [\n\t\t\"tabIndex\",\n\t\t\"readOnly\",\n\t\t\"maxLength\",\n\t\t\"cellSpacing\",\n\t\t\"cellPadding\",\n\t\t\"rowSpan\",\n\t\t\"colSpan\",\n\t\t\"useMap\",\n\t\t\"frameBorder\",\n\t\t\"contentEditable\"\n\t], function() {\n\t\tjQuery.propFix[ this.toLowerCase() ] = this;\n\t} );\n\n\n\n\n\tvar rclass = /[\\t\\r\\n\\f]/g;\n\n\tfunction getClass( elem ) {\n\t\treturn elem.getAttribute && elem.getAttribute( \"class\" ) || \"\";\n\t}\n\n\tjQuery.fn.extend( {\n\t\taddClass: function( value ) {\n\t\t\tvar classes, elem, cur, curValue, clazz, j, finalValue,\n\t\t\t\ti = 0;\n\n\t\t\tif ( jQuery.isFunction( value ) ) {\n\t\t\t\treturn this.each( function( j ) {\n\t\t\t\t\tjQuery( this ).addClass( value.call( this, j, getClass( this ) ) );\n\t\t\t\t} );\n\t\t\t}\n\n\t\t\tif ( typeof value === \"string\" && value ) {\n\t\t\t\tclasses = value.match( rnotwhite ) || [];\n\n\t\t\t\twhile ( ( elem = this[ i++ ] ) ) {\n\t\t\t\t\tcurValue = getClass( elem );\n\t\t\t\t\tcur = elem.nodeType === 1 &&\n\t\t\t\t\t\t( \" \" + curValue + \" \" ).replace( rclass, \" \" );\n\n\t\t\t\t\tif ( cur ) {\n\t\t\t\t\t\tj = 0;\n\t\t\t\t\t\twhile ( ( clazz = classes[ j++ ] ) ) {\n\t\t\t\t\t\t\tif ( cur.indexOf( \" \" + clazz + \" \" ) < 0 ) {\n\t\t\t\t\t\t\t\tcur += clazz + \" \";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Only assign if different to avoid unneeded rendering.\n\t\t\t\t\t\tfinalValue = jQuery.trim( cur );\n\t\t\t\t\t\tif ( curValue !== finalValue ) {\n\t\t\t\t\t\t\telem.setAttribute( \"class\", finalValue );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn this;\n\t\t},\n\n\t\tremoveClass: function( value ) {\n\t\t\tvar classes, elem, cur, curValue, clazz, j, finalValue,\n\t\t\t\ti = 0;\n\n\t\t\tif ( jQuery.isFunction( value ) ) {\n\t\t\t\treturn this.each( function( j ) {\n\t\t\t\t\tjQuery( this ).removeClass( value.call( this, j, getClass( this ) ) );\n\t\t\t\t} );\n\t\t\t}\n\n\t\t\tif ( !arguments.length ) {\n\t\t\t\treturn this.attr( \"class\", \"\" );\n\t\t\t}\n\n\t\t\tif ( typeof value === \"string\" && value ) {\n\t\t\t\tclasses = value.match( rnotwhite ) || [];\n\n\t\t\t\twhile ( ( elem = this[ i++ ] ) ) {\n\t\t\t\t\tcurValue = getClass( elem );\n\n\t\t\t\t\t// This expression is here for better compressibility (see addClass)\n\t\t\t\t\tcur = elem.nodeType === 1 &&\n\t\t\t\t\t\t( \" \" + curValue + \" \" ).replace( rclass, \" \" );\n\n\t\t\t\t\tif ( cur ) {\n\t\t\t\t\t\tj = 0;\n\t\t\t\t\t\twhile ( ( clazz = classes[ j++ ] ) ) {\n\n\t\t\t\t\t\t\t// Remove *all* instances\n\t\t\t\t\t\t\twhile ( cur.indexOf( \" \" + clazz + \" \" ) > -1 ) {\n\t\t\t\t\t\t\t\tcur = cur.replace( \" \" + clazz + \" \", \" \" );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Only assign if different to avoid unneeded rendering.\n\t\t\t\t\t\tfinalValue = jQuery.trim( cur );\n\t\t\t\t\t\tif ( curValue !== finalValue ) {\n\t\t\t\t\t\t\telem.setAttribute( \"class\", finalValue );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn this;\n\t\t},\n\n\t\ttoggleClass: function( value, stateVal ) {\n\t\t\tvar type = typeof value;\n\n\t\t\tif ( typeof stateVal === \"boolean\" && type === \"string\" ) {\n\t\t\t\treturn stateVal ? this.addClass( value ) : this.removeClass( value );\n\t\t\t}\n\n\t\t\tif ( jQuery.isFunction( value ) ) {\n\t\t\t\treturn this.each( function( i ) {\n\t\t\t\t\tjQuery( this ).toggleClass(\n\t\t\t\t\t\tvalue.call( this, i, getClass( this ), stateVal ),\n\t\t\t\t\t\tstateVal\n\t\t\t\t\t);\n\t\t\t\t} );\n\t\t\t}\n\n\t\t\treturn this.each( function() {\n\t\t\t\tvar className, i, self, classNames;\n\n\t\t\t\tif ( type === \"string\" ) {\n\n\t\t\t\t\t// Toggle individual class names\n\t\t\t\t\ti = 0;\n\t\t\t\t\tself = jQuery( this );\n\t\t\t\t\tclassNames = value.match( rnotwhite ) || [];\n\n\t\t\t\t\twhile ( ( className = classNames[ i++ ] ) ) {\n\n\t\t\t\t\t\t// Check each className given, space separated list\n\t\t\t\t\t\tif ( self.hasClass( className ) ) {\n\t\t\t\t\t\t\tself.removeClass( className );\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tself.addClass( className );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t// Toggle whole class name\n\t\t\t\t} else if ( value === undefined || type === \"boolean\" ) {\n\t\t\t\t\tclassName = getClass( this );\n\t\t\t\t\tif ( className ) {\n\n\t\t\t\t\t\t// Store className if set\n\t\t\t\t\t\tdataPriv.set( this, \"__className__\", className );\n\t\t\t\t\t}\n\n\t\t\t\t\t// If the element has a class name or if we're passed `false`,\n\t\t\t\t\t// then remove the whole classname (if there was one, the above saved it).\n\t\t\t\t\t// Otherwise bring back whatever was previously saved (if anything),\n\t\t\t\t\t// falling back to the empty string if nothing was stored.\n\t\t\t\t\tif ( this.setAttribute ) {\n\t\t\t\t\t\tthis.setAttribute( \"class\",\n\t\t\t\t\t\t\tclassName || value === false ?\n\t\t\t\t\t\t\t\"\" :\n\t\t\t\t\t\t\tdataPriv.get( this, \"__className__\" ) || \"\"\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} );\n\t\t},\n\n\t\thasClass: function( selector ) {\n\t\t\tvar className, elem,\n\t\t\t\ti = 0;\n\n\t\t\tclassName = \" \" + selector + \" \";\n\t\t\twhile ( ( elem = this[ i++ ] ) ) {\n\t\t\t\tif ( elem.nodeType === 1 &&\n\t\t\t\t\t( \" \" + getClass( elem ) + \" \" ).replace( rclass, \" \" )\n\t\t\t\t\t\t.indexOf( className ) > -1\n\t\t\t\t) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn false;\n\t\t}\n\t} );\n\n\n\n\n\tvar rreturn = /\\r/g;\n\n\tjQuery.fn.extend( {\n\t\tval: function( value ) {\n\t\t\tvar hooks, ret, isFunction,\n\t\t\t\telem = this[ 0 ];\n\n\t\t\tif ( !arguments.length ) {\n\t\t\t\tif ( elem ) {\n\t\t\t\t\thooks = jQuery.valHooks[ elem.type ] ||\n\t\t\t\t\t\tjQuery.valHooks[ elem.nodeName.toLowerCase() ];\n\n\t\t\t\t\tif ( hooks &&\n\t\t\t\t\t\t\"get\" in hooks &&\n\t\t\t\t\t\t( ret = hooks.get( elem, \"value\" ) ) !== undefined\n\t\t\t\t\t) {\n\t\t\t\t\t\treturn ret;\n\t\t\t\t\t}\n\n\t\t\t\t\tret = elem.value;\n\n\t\t\t\t\treturn typeof ret === \"string\" ?\n\n\t\t\t\t\t\t// Handle most common string cases\n\t\t\t\t\t\tret.replace( rreturn, \"\" ) :\n\n\t\t\t\t\t\t// Handle cases where value is null/undef or number\n\t\t\t\t\t\tret == null ? \"\" : ret;\n\t\t\t\t}\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tisFunction = jQuery.isFunction( value );\n\n\t\t\treturn this.each( function( i ) {\n\t\t\t\tvar val;\n\n\t\t\t\tif ( this.nodeType !== 1 ) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif ( isFunction ) {\n\t\t\t\t\tval = value.call( this, i, jQuery( this ).val() );\n\t\t\t\t} else {\n\t\t\t\t\tval = value;\n\t\t\t\t}\n\n\t\t\t\t// Treat null/undefined as \"\"; convert numbers to string\n\t\t\t\tif ( val == null ) {\n\t\t\t\t\tval = \"\";\n\n\t\t\t\t} else if ( typeof val === \"number\" ) {\n\t\t\t\t\tval += \"\";\n\n\t\t\t\t} else if ( jQuery.isArray( val ) ) {\n\t\t\t\t\tval = jQuery.map( val, function( value ) {\n\t\t\t\t\t\treturn value == null ? \"\" : value + \"\";\n\t\t\t\t\t} );\n\t\t\t\t}\n\n\t\t\t\thooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ];\n\n\t\t\t\t// If set returns undefined, fall back to normal setting\n\t\t\t\tif ( !hooks || !( \"set\" in hooks ) || hooks.set( this, val, \"value\" ) === undefined ) {\n\t\t\t\t\tthis.value = val;\n\t\t\t\t}\n\t\t\t} );\n\t\t}\n\t} );\n\n\tjQuery.extend( {\n\t\tvalHooks: {\n\t\t\toption: {\n\t\t\t\tget: function( elem ) {\n\n\t\t\t\t\t// Support: IE<11\n\t\t\t\t\t// option.value not trimmed (#14858)\n\t\t\t\t\treturn jQuery.trim( elem.value );\n\t\t\t\t}\n\t\t\t},\n\t\t\tselect: {\n\t\t\t\tget: function( elem ) {\n\t\t\t\t\tvar value, option,\n\t\t\t\t\t\toptions = elem.options,\n\t\t\t\t\t\tindex = elem.selectedIndex,\n\t\t\t\t\t\tone = elem.type === \"select-one\" || index < 0,\n\t\t\t\t\t\tvalues = one ? null : [],\n\t\t\t\t\t\tmax = one ? index + 1 : options.length,\n\t\t\t\t\t\ti = index < 0 ?\n\t\t\t\t\t\t\tmax :\n\t\t\t\t\t\t\tone ? index : 0;\n\n\t\t\t\t\t// Loop through all the selected options\n\t\t\t\t\tfor ( ; i < max; i++ ) {\n\t\t\t\t\t\toption = options[ i ];\n\n\t\t\t\t\t\t// IE8-9 doesn't update selected after form reset (#2551)\n\t\t\t\t\t\tif ( ( option.selected || i === index ) &&\n\n\t\t\t\t\t\t\t\t// Don't return options that are disabled or in a disabled optgroup\n\t\t\t\t\t\t\t\t( support.optDisabled ?\n\t\t\t\t\t\t\t\t\t!option.disabled : option.getAttribute( \"disabled\" ) === null ) &&\n\t\t\t\t\t\t\t\t( !option.parentNode.disabled ||\n\t\t\t\t\t\t\t\t\t!jQuery.nodeName( option.parentNode, \"optgroup\" ) ) ) {\n\n\t\t\t\t\t\t\t// Get the specific value for the option\n\t\t\t\t\t\t\tvalue = jQuery( option ).val();\n\n\t\t\t\t\t\t\t// We don't need an array for one selects\n\t\t\t\t\t\t\tif ( one ) {\n\t\t\t\t\t\t\t\treturn value;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// Multi-Selects return an array\n\t\t\t\t\t\t\tvalues.push( value );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\treturn values;\n\t\t\t\t},\n\n\t\t\t\tset: function( elem, value ) {\n\t\t\t\t\tvar optionSet, option,\n\t\t\t\t\t\toptions = elem.options,\n\t\t\t\t\t\tvalues = jQuery.makeArray( value ),\n\t\t\t\t\t\ti = options.length;\n\n\t\t\t\t\twhile ( i-- ) {\n\t\t\t\t\t\toption = options[ i ];\n\t\t\t\t\t\tif ( option.selected =\n\t\t\t\t\t\t\t\tjQuery.inArray( jQuery.valHooks.option.get( option ), values ) > -1\n\t\t\t\t\t\t) {\n\t\t\t\t\t\t\toptionSet = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// Force browsers to behave consistently when non-matching value is set\n\t\t\t\t\tif ( !optionSet ) {\n\t\t\t\t\t\telem.selectedIndex = -1;\n\t\t\t\t\t}\n\t\t\t\t\treturn values;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t} );\n\n\t// Radios and checkboxes getter/setter\n\tjQuery.each( [ \"radio\", \"checkbox\" ], function() {\n\t\tjQuery.valHooks[ this ] = {\n\t\t\tset: function( elem, value ) {\n\t\t\t\tif ( jQuery.isArray( value ) ) {\n\t\t\t\t\treturn ( elem.checked = jQuery.inArray( jQuery( elem ).val(), value ) > -1 );\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tif ( !support.checkOn ) {\n\t\t\tjQuery.valHooks[ this ].get = function( elem ) {\n\t\t\t\treturn elem.getAttribute( \"value\" ) === null ? \"on\" : elem.value;\n\t\t\t};\n\t\t}\n\t} );\n\n\n\n\n\t// Return jQuery for attributes-only inclusion\n\n\n\tvar rfocusMorph = /^(?:focusinfocus|focusoutblur)$/;\n\n\tjQuery.extend( jQuery.event, {\n\n\t\ttrigger: function( event, data, elem, onlyHandlers ) {\n\n\t\t\tvar i, cur, tmp, bubbleType, ontype, handle, special,\n\t\t\t\teventPath = [ elem || document ],\n\t\t\t\ttype = hasOwn.call( event, \"type\" ) ? event.type : event,\n\t\t\t\tnamespaces = hasOwn.call( event, \"namespace\" ) ? event.namespace.split( \".\" ) : [];\n\n\t\t\tcur = tmp = elem = elem || document;\n\n\t\t\t// Don't do events on text and comment nodes\n\t\t\tif ( elem.nodeType === 3 || elem.nodeType === 8 ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// focus/blur morphs to focusin/out; ensure we're not firing them right now\n\t\t\tif ( rfocusMorph.test( type + jQuery.event.triggered ) ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif ( type.indexOf( \".\" ) > -1 ) {\n\n\t\t\t\t// Namespaced trigger; create a regexp to match event type in handle()\n\t\t\t\tnamespaces = type.split( \".\" );\n\t\t\t\ttype = namespaces.shift();\n\t\t\t\tnamespaces.sort();\n\t\t\t}\n\t\t\tontype = type.indexOf( \":\" ) < 0 && \"on\" + type;\n\n\t\t\t// Caller can pass in a jQuery.Event object, Object, or just an event type string\n\t\t\tevent = event[ jQuery.expando ] ?\n\t\t\t\tevent :\n\t\t\t\tnew jQuery.Event( type, typeof event === \"object\" && event );\n\n\t\t\t// Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true)\n\t\t\tevent.isTrigger = onlyHandlers ? 2 : 3;\n\t\t\tevent.namespace = namespaces.join( \".\" );\n\t\t\tevent.rnamespace = event.namespace ?\n\t\t\t\tnew RegExp( \"(^|\\\\.)\" + namespaces.join( \"\\\\.(?:.*\\\\.|)\" ) + \"(\\\\.|$)\" ) :\n\t\t\t\tnull;\n\n\t\t\t// Clean up the event in case it is being reused\n\t\t\tevent.result = undefined;\n\t\t\tif ( !event.target ) {\n\t\t\t\tevent.target = elem;\n\t\t\t}\n\n\t\t\t// Clone any incoming data and prepend the event, creating the handler arg list\n\t\t\tdata = data == null ?\n\t\t\t\t[ event ] :\n\t\t\t\tjQuery.makeArray( data, [ event ] );\n\n\t\t\t// Allow special events to draw outside the lines\n\t\t\tspecial = jQuery.event.special[ type ] || {};\n\t\t\tif ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Determine event propagation path in advance, per W3C events spec (#9951)\n\t\t\t// Bubble up to document, then to window; watch for a global ownerDocument var (#9724)\n\t\t\tif ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) {\n\n\t\t\t\tbubbleType = special.delegateType || type;\n\t\t\t\tif ( !rfocusMorph.test( bubbleType + type ) ) {\n\t\t\t\t\tcur = cur.parentNode;\n\t\t\t\t}\n\t\t\t\tfor ( ; cur; cur = cur.parentNode ) {\n\t\t\t\t\teventPath.push( cur );\n\t\t\t\t\ttmp = cur;\n\t\t\t\t}\n\n\t\t\t\t// Only add window if we got to document (e.g., not plain obj or detached DOM)\n\t\t\t\tif ( tmp === ( elem.ownerDocument || document ) ) {\n\t\t\t\t\teventPath.push( tmp.defaultView || tmp.parentWindow || window );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Fire handlers on the event path\n\t\t\ti = 0;\n\t\t\twhile ( ( cur = eventPath[ i++ ] ) && !event.isPropagationStopped() ) {\n\n\t\t\t\tevent.type = i > 1 ?\n\t\t\t\t\tbubbleType :\n\t\t\t\t\tspecial.bindType || type;\n\n\t\t\t\t// jQuery handler\n\t\t\t\thandle = ( dataPriv.get( cur, \"events\" ) || {} )[ event.type ] &&\n\t\t\t\t\tdataPriv.get( cur, \"handle\" );\n\t\t\t\tif ( handle ) {\n\t\t\t\t\thandle.apply( cur, data );\n\t\t\t\t}\n\n\t\t\t\t// Native handler\n\t\t\t\thandle = ontype && cur[ ontype ];\n\t\t\t\tif ( handle && handle.apply && acceptData( cur ) ) {\n\t\t\t\t\tevent.result = handle.apply( cur, data );\n\t\t\t\t\tif ( event.result === false ) {\n\t\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tevent.type = type;\n\n\t\t\t// If nobody prevented the default action, do it now\n\t\t\tif ( !onlyHandlers && !event.isDefaultPrevented() ) {\n\n\t\t\t\tif ( ( !special._default ||\n\t\t\t\t\tspecial._default.apply( eventPath.pop(), data ) === false ) &&\n\t\t\t\t\tacceptData( elem ) ) {\n\n\t\t\t\t\t// Call a native DOM method on the target with the same name name as the event.\n\t\t\t\t\t// Don't do default actions on window, that's where global variables be (#6170)\n\t\t\t\t\tif ( ontype && jQuery.isFunction( elem[ type ] ) && !jQuery.isWindow( elem ) ) {\n\n\t\t\t\t\t\t// Don't re-trigger an onFOO event when we call its FOO() method\n\t\t\t\t\t\ttmp = elem[ ontype ];\n\n\t\t\t\t\t\tif ( tmp ) {\n\t\t\t\t\t\t\telem[ ontype ] = null;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Prevent re-triggering of the same event, since we already bubbled it above\n\t\t\t\t\t\tjQuery.event.triggered = type;\n\t\t\t\t\t\telem[ type ]();\n\t\t\t\t\t\tjQuery.event.triggered = undefined;\n\n\t\t\t\t\t\tif ( tmp ) {\n\t\t\t\t\t\t\telem[ ontype ] = tmp;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn event.result;\n\t\t},\n\n\t\t// Piggyback on a donor event to simulate a different one\n\t\tsimulate: function( type, elem, event ) {\n\t\t\tvar e = jQuery.extend(\n\t\t\t\tnew jQuery.Event(),\n\t\t\t\tevent,\n\t\t\t\t{\n\t\t\t\t\ttype: type,\n\t\t\t\t\tisSimulated: true\n\n\t\t\t\t\t// Previously, `originalEvent: {}` was set here, so stopPropagation call\n\t\t\t\t\t// would not be triggered on donor event, since in our own\n\t\t\t\t\t// jQuery.event.stopPropagation function we had a check for existence of\n\t\t\t\t\t// originalEvent.stopPropagation method, so, consequently it would be a noop.\n\t\t\t\t\t//\n\t\t\t\t\t// But now, this \"simulate\" function is used only for events\n\t\t\t\t\t// for which stopPropagation() is noop, so there is no need for that anymore.\n\t\t\t\t\t//\n\t\t\t\t\t// For the compat branch though, guard for \"click\" and \"submit\"\n\t\t\t\t\t// events is still used, but was moved to jQuery.event.stopPropagation function\n\t\t\t\t\t// because `originalEvent` should point to the original event for the constancy\n\t\t\t\t\t// with other events and for more focused logic\n\t\t\t\t}\n\t\t\t);\n\n\t\t\tjQuery.event.trigger( e, null, elem );\n\n\t\t\tif ( e.isDefaultPrevented() ) {\n\t\t\t\tevent.preventDefault();\n\t\t\t}\n\t\t}\n\n\t} );\n\n\tjQuery.fn.extend( {\n\n\t\ttrigger: function( type, data ) {\n\t\t\treturn this.each( function() {\n\t\t\t\tjQuery.event.trigger( type, data, this );\n\t\t\t} );\n\t\t},\n\t\ttriggerHandler: function( type, data ) {\n\t\t\tvar elem = this[ 0 ];\n\t\t\tif ( elem ) {\n\t\t\t\treturn jQuery.event.trigger( type, data, elem, true );\n\t\t\t}\n\t\t}\n\t} );\n\n\n\tjQuery.each( ( \"blur focus focusin focusout load resize scroll unload click dblclick \" +\n\t\t\"mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave \" +\n\t\t\"change select submit keydown keypress keyup error contextmenu\" ).split( \" \" ),\n\t\tfunction( i, name ) {\n\n\t\t// Handle event binding\n\t\tjQuery.fn[ name ] = function( data, fn ) {\n\t\t\treturn arguments.length > 0 ?\n\t\t\t\tthis.on( name, null, data, fn ) :\n\t\t\t\tthis.trigger( name );\n\t\t};\n\t} );\n\n\tjQuery.fn.extend( {\n\t\thover: function( fnOver, fnOut ) {\n\t\t\treturn this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );\n\t\t}\n\t} );\n\n\n\n\n\tsupport.focusin = \"onfocusin\" in window;\n\n\n\t// Support: Firefox\n\t// Firefox doesn't have focus(in | out) events\n\t// Related ticket - https://bugzilla.mozilla.org/show_bug.cgi?id=687787\n\t//\n\t// Support: Chrome, Safari\n\t// focus(in | out) events fire after focus & blur events,\n\t// which is spec violation - http://www.w3.org/TR/DOM-Level-3-Events/#events-focusevent-event-order\n\t// Related ticket - https://code.google.com/p/chromium/issues/detail?id=449857\n\tif ( !support.focusin ) {\n\t\tjQuery.each( { focus: \"focusin\", blur: \"focusout\" }, function( orig, fix ) {\n\n\t\t\t// Attach a single capturing handler on the document while someone wants focusin/focusout\n\t\t\tvar handler = function( event ) {\n\t\t\t\tjQuery.event.simulate( fix, event.target, jQuery.event.fix( event ) );\n\t\t\t};\n\n\t\t\tjQuery.event.special[ fix ] = {\n\t\t\t\tsetup: function() {\n\t\t\t\t\tvar doc = this.ownerDocument || this,\n\t\t\t\t\t\tattaches = dataPriv.access( doc, fix );\n\n\t\t\t\t\tif ( !attaches ) {\n\t\t\t\t\t\tdoc.addEventListener( orig, handler, true );\n\t\t\t\t\t}\n\t\t\t\t\tdataPriv.access( doc, fix, ( attaches || 0 ) + 1 );\n\t\t\t\t},\n\t\t\t\tteardown: function() {\n\t\t\t\t\tvar doc = this.ownerDocument || this,\n\t\t\t\t\t\tattaches = dataPriv.access( doc, fix ) - 1;\n\n\t\t\t\t\tif ( !attaches ) {\n\t\t\t\t\t\tdoc.removeEventListener( orig, handler, true );\n\t\t\t\t\t\tdataPriv.remove( doc, fix );\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tdataPriv.access( doc, fix, attaches );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t};\n\t\t} );\n\t}\n\tvar location = window.location;\n\n\tvar nonce = jQuery.now();\n\n\tvar rquery = ( /\\?/ );\n\n\n\n\t// Support: Android 2.3\n\t// Workaround failure to string-cast null input\n\tjQuery.parseJSON = function( data ) {\n\t\treturn JSON.parse( data + \"\" );\n\t};\n\n\n\t// Cross-browser xml parsing\n\tjQuery.parseXML = function( data ) {\n\t\tvar xml;\n\t\tif ( !data || typeof data !== \"string\" ) {\n\t\t\treturn null;\n\t\t}\n\n\t\t// Support: IE9\n\t\ttry {\n\t\t\txml = ( new window.DOMParser() ).parseFromString( data, \"text/xml\" );\n\t\t} catch ( e ) {\n\t\t\txml = undefined;\n\t\t}\n\n\t\tif ( !xml || xml.getElementsByTagName( \"parsererror\" ).length ) {\n\t\t\tjQuery.error( \"Invalid XML: \" + data );\n\t\t}\n\t\treturn xml;\n\t};\n\n\n\tvar\n\t\trhash = /#.*$/,\n\t\trts = /([?&])_=[^&]*/,\n\t\trheaders = /^(.*?):[ \\t]*([^\\r\\n]*)$/mg,\n\n\t\t// #7653, #8125, #8152: local protocol detection\n\t\trlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/,\n\t\trnoContent = /^(?:GET|HEAD)$/,\n\t\trprotocol = /^\\/\\//,\n\n\t\t/* Prefilters\n\t\t * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)\n\t\t * 2) These are called:\n\t\t *    - BEFORE asking for a transport\n\t\t *    - AFTER param serialization (s.data is a string if s.processData is true)\n\t\t * 3) key is the dataType\n\t\t * 4) the catchall symbol \"*\" can be used\n\t\t * 5) execution will start with transport dataType and THEN continue down to \"*\" if needed\n\t\t */\n\t\tprefilters = {},\n\n\t\t/* Transports bindings\n\t\t * 1) key is the dataType\n\t\t * 2) the catchall symbol \"*\" can be used\n\t\t * 3) selection will start with transport dataType and THEN go to \"*\" if needed\n\t\t */\n\t\ttransports = {},\n\n\t\t// Avoid comment-prolog char sequence (#10098); must appease lint and evade compression\n\t\tallTypes = \"*/\".concat( \"*\" ),\n\n\t\t// Anchor tag for parsing the document origin\n\t\toriginAnchor = document.createElement( \"a\" );\n\t\toriginAnchor.href = location.href;\n\n\t// Base \"constructor\" for jQuery.ajaxPrefilter and jQuery.ajaxTransport\n\tfunction addToPrefiltersOrTransports( structure ) {\n\n\t\t// dataTypeExpression is optional and defaults to \"*\"\n\t\treturn function( dataTypeExpression, func ) {\n\n\t\t\tif ( typeof dataTypeExpression !== \"string\" ) {\n\t\t\t\tfunc = dataTypeExpression;\n\t\t\t\tdataTypeExpression = \"*\";\n\t\t\t}\n\n\t\t\tvar dataType,\n\t\t\t\ti = 0,\n\t\t\t\tdataTypes = dataTypeExpression.toLowerCase().match( rnotwhite ) || [];\n\n\t\t\tif ( jQuery.isFunction( func ) ) {\n\n\t\t\t\t// For each dataType in the dataTypeExpression\n\t\t\t\twhile ( ( dataType = dataTypes[ i++ ] ) ) {\n\n\t\t\t\t\t// Prepend if requested\n\t\t\t\t\tif ( dataType[ 0 ] === \"+\" ) {\n\t\t\t\t\t\tdataType = dataType.slice( 1 ) || \"*\";\n\t\t\t\t\t\t( structure[ dataType ] = structure[ dataType ] || [] ).unshift( func );\n\n\t\t\t\t\t// Otherwise append\n\t\t\t\t\t} else {\n\t\t\t\t\t\t( structure[ dataType ] = structure[ dataType ] || [] ).push( func );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t}\n\n\t// Base inspection function for prefilters and transports\n\tfunction inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) {\n\n\t\tvar inspected = {},\n\t\t\tseekingTransport = ( structure === transports );\n\n\t\tfunction inspect( dataType ) {\n\t\t\tvar selected;\n\t\t\tinspected[ dataType ] = true;\n\t\t\tjQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) {\n\t\t\t\tvar dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR );\n\t\t\t\tif ( typeof dataTypeOrTransport === \"string\" &&\n\t\t\t\t\t!seekingTransport && !inspected[ dataTypeOrTransport ] ) {\n\n\t\t\t\t\toptions.dataTypes.unshift( dataTypeOrTransport );\n\t\t\t\t\tinspect( dataTypeOrTransport );\n\t\t\t\t\treturn false;\n\t\t\t\t} else if ( seekingTransport ) {\n\t\t\t\t\treturn !( selected = dataTypeOrTransport );\n\t\t\t\t}\n\t\t\t} );\n\t\t\treturn selected;\n\t\t}\n\n\t\treturn inspect( options.dataTypes[ 0 ] ) || !inspected[ \"*\" ] && inspect( \"*\" );\n\t}\n\n\t// A special extend for ajax options\n\t// that takes \"flat\" options (not to be deep extended)\n\t// Fixes #9887\n\tfunction ajaxExtend( target, src ) {\n\t\tvar key, deep,\n\t\t\tflatOptions = jQuery.ajaxSettings.flatOptions || {};\n\n\t\tfor ( key in src ) {\n\t\t\tif ( src[ key ] !== undefined ) {\n\t\t\t\t( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ];\n\t\t\t}\n\t\t}\n\t\tif ( deep ) {\n\t\t\tjQuery.extend( true, target, deep );\n\t\t}\n\n\t\treturn target;\n\t}\n\n\t/* Handles responses to an ajax request:\n\t * - finds the right dataType (mediates between content-type and expected dataType)\n\t * - returns the corresponding response\n\t */\n\tfunction ajaxHandleResponses( s, jqXHR, responses ) {\n\n\t\tvar ct, type, finalDataType, firstDataType,\n\t\t\tcontents = s.contents,\n\t\t\tdataTypes = s.dataTypes;\n\n\t\t// Remove auto dataType and get content-type in the process\n\t\twhile ( dataTypes[ 0 ] === \"*\" ) {\n\t\t\tdataTypes.shift();\n\t\t\tif ( ct === undefined ) {\n\t\t\t\tct = s.mimeType || jqXHR.getResponseHeader( \"Content-Type\" );\n\t\t\t}\n\t\t}\n\n\t\t// Check if we're dealing with a known content-type\n\t\tif ( ct ) {\n\t\t\tfor ( type in contents ) {\n\t\t\t\tif ( contents[ type ] && contents[ type ].test( ct ) ) {\n\t\t\t\t\tdataTypes.unshift( type );\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Check to see if we have a response for the expected dataType\n\t\tif ( dataTypes[ 0 ] in responses ) {\n\t\t\tfinalDataType = dataTypes[ 0 ];\n\t\t} else {\n\n\t\t\t// Try convertible dataTypes\n\t\t\tfor ( type in responses ) {\n\t\t\t\tif ( !dataTypes[ 0 ] || s.converters[ type + \" \" + dataTypes[ 0 ] ] ) {\n\t\t\t\t\tfinalDataType = type;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif ( !firstDataType ) {\n\t\t\t\t\tfirstDataType = type;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Or just use first one\n\t\t\tfinalDataType = finalDataType || firstDataType;\n\t\t}\n\n\t\t// If we found a dataType\n\t\t// We add the dataType to the list if needed\n\t\t// and return the corresponding response\n\t\tif ( finalDataType ) {\n\t\t\tif ( finalDataType !== dataTypes[ 0 ] ) {\n\t\t\t\tdataTypes.unshift( finalDataType );\n\t\t\t}\n\t\t\treturn responses[ finalDataType ];\n\t\t}\n\t}\n\n\t/* Chain conversions given the request and the original response\n\t * Also sets the responseXXX fields on the jqXHR instance\n\t */\n\tfunction ajaxConvert( s, response, jqXHR, isSuccess ) {\n\t\tvar conv2, current, conv, tmp, prev,\n\t\t\tconverters = {},\n\n\t\t\t// Work with a copy of dataTypes in case we need to modify it for conversion\n\t\t\tdataTypes = s.dataTypes.slice();\n\n\t\t// Create converters map with lowercased keys\n\t\tif ( dataTypes[ 1 ] ) {\n\t\t\tfor ( conv in s.converters ) {\n\t\t\t\tconverters[ conv.toLowerCase() ] = s.converters[ conv ];\n\t\t\t}\n\t\t}\n\n\t\tcurrent = dataTypes.shift();\n\n\t\t// Convert to each sequential dataType\n\t\twhile ( current ) {\n\n\t\t\tif ( s.responseFields[ current ] ) {\n\t\t\t\tjqXHR[ s.responseFields[ current ] ] = response;\n\t\t\t}\n\n\t\t\t// Apply the dataFilter if provided\n\t\t\tif ( !prev && isSuccess && s.dataFilter ) {\n\t\t\t\tresponse = s.dataFilter( response, s.dataType );\n\t\t\t}\n\n\t\t\tprev = current;\n\t\t\tcurrent = dataTypes.shift();\n\n\t\t\tif ( current ) {\n\n\t\t\t// There's only work to do if current dataType is non-auto\n\t\t\t\tif ( current === \"*\" ) {\n\n\t\t\t\t\tcurrent = prev;\n\n\t\t\t\t// Convert response if prev dataType is non-auto and differs from current\n\t\t\t\t} else if ( prev !== \"*\" && prev !== current ) {\n\n\t\t\t\t\t// Seek a direct converter\n\t\t\t\t\tconv = converters[ prev + \" \" + current ] || converters[ \"* \" + current ];\n\n\t\t\t\t\t// If none found, seek a pair\n\t\t\t\t\tif ( !conv ) {\n\t\t\t\t\t\tfor ( conv2 in converters ) {\n\n\t\t\t\t\t\t\t// If conv2 outputs current\n\t\t\t\t\t\t\ttmp = conv2.split( \" \" );\n\t\t\t\t\t\t\tif ( tmp[ 1 ] === current ) {\n\n\t\t\t\t\t\t\t\t// If prev can be converted to accepted input\n\t\t\t\t\t\t\t\tconv = converters[ prev + \" \" + tmp[ 0 ] ] ||\n\t\t\t\t\t\t\t\t\tconverters[ \"* \" + tmp[ 0 ] ];\n\t\t\t\t\t\t\t\tif ( conv ) {\n\n\t\t\t\t\t\t\t\t\t// Condense equivalence converters\n\t\t\t\t\t\t\t\t\tif ( conv === true ) {\n\t\t\t\t\t\t\t\t\t\tconv = converters[ conv2 ];\n\n\t\t\t\t\t\t\t\t\t// Otherwise, insert the intermediate dataType\n\t\t\t\t\t\t\t\t\t} else if ( converters[ conv2 ] !== true ) {\n\t\t\t\t\t\t\t\t\t\tcurrent = tmp[ 0 ];\n\t\t\t\t\t\t\t\t\t\tdataTypes.unshift( tmp[ 1 ] );\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// Apply converter (if not an equivalence)\n\t\t\t\t\tif ( conv !== true ) {\n\n\t\t\t\t\t\t// Unless errors are allowed to bubble, catch and return them\n\t\t\t\t\t\tif ( conv && s.throws ) {\n\t\t\t\t\t\t\tresponse = conv( response );\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tresponse = conv( response );\n\t\t\t\t\t\t\t} catch ( e ) {\n\t\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t\tstate: \"parsererror\",\n\t\t\t\t\t\t\t\t\terror: conv ? e : \"No conversion from \" + prev + \" to \" + current\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn { state: \"success\", data: response };\n\t}\n\n\tjQuery.extend( {\n\n\t\t// Counter for holding the number of active queries\n\t\tactive: 0,\n\n\t\t// Last-Modified header cache for next request\n\t\tlastModified: {},\n\t\tetag: {},\n\n\t\tajaxSettings: {\n\t\t\turl: location.href,\n\t\t\ttype: \"GET\",\n\t\t\tisLocal: rlocalProtocol.test( location.protocol ),\n\t\t\tglobal: true,\n\t\t\tprocessData: true,\n\t\t\tasync: true,\n\t\t\tcontentType: \"application/x-www-form-urlencoded; charset=UTF-8\",\n\t\t\t/*\n\t\t\ttimeout: 0,\n\t\t\tdata: null,\n\t\t\tdataType: null,\n\t\t\tusername: null,\n\t\t\tpassword: null,\n\t\t\tcache: null,\n\t\t\tthrows: false,\n\t\t\ttraditional: false,\n\t\t\theaders: {},\n\t\t\t*/\n\n\t\t\taccepts: {\n\t\t\t\t\"*\": allTypes,\n\t\t\t\ttext: \"text/plain\",\n\t\t\t\thtml: \"text/html\",\n\t\t\t\txml: \"application/xml, text/xml\",\n\t\t\t\tjson: \"application/json, text/javascript\"\n\t\t\t},\n\n\t\t\tcontents: {\n\t\t\t\txml: /\\bxml\\b/,\n\t\t\t\thtml: /\\bhtml/,\n\t\t\t\tjson: /\\bjson\\b/\n\t\t\t},\n\n\t\t\tresponseFields: {\n\t\t\t\txml: \"responseXML\",\n\t\t\t\ttext: \"responseText\",\n\t\t\t\tjson: \"responseJSON\"\n\t\t\t},\n\n\t\t\t// Data converters\n\t\t\t// Keys separate source (or catchall \"*\") and destination types with a single space\n\t\t\tconverters: {\n\n\t\t\t\t// Convert anything to text\n\t\t\t\t\"* text\": String,\n\n\t\t\t\t// Text to html (true = no transformation)\n\t\t\t\t\"text html\": true,\n\n\t\t\t\t// Evaluate text as a json expression\n\t\t\t\t\"text json\": jQuery.parseJSON,\n\n\t\t\t\t// Parse text as xml\n\t\t\t\t\"text xml\": jQuery.parseXML\n\t\t\t},\n\n\t\t\t// For options that shouldn't be deep extended:\n\t\t\t// you can add your own custom options here if\n\t\t\t// and when you create one that shouldn't be\n\t\t\t// deep extended (see ajaxExtend)\n\t\t\tflatOptions: {\n\t\t\t\turl: true,\n\t\t\t\tcontext: true\n\t\t\t}\n\t\t},\n\n\t\t// Creates a full fledged settings object into target\n\t\t// with both ajaxSettings and settings fields.\n\t\t// If target is omitted, writes into ajaxSettings.\n\t\tajaxSetup: function( target, settings ) {\n\t\t\treturn settings ?\n\n\t\t\t\t// Building a settings object\n\t\t\t\tajaxExtend( ajaxExtend( target, jQuery.ajaxSettings ), settings ) :\n\n\t\t\t\t// Extending ajaxSettings\n\t\t\t\tajaxExtend( jQuery.ajaxSettings, target );\n\t\t},\n\n\t\tajaxPrefilter: addToPrefiltersOrTransports( prefilters ),\n\t\tajaxTransport: addToPrefiltersOrTransports( transports ),\n\n\t\t// Main method\n\t\tajax: function( url, options ) {\n\n\t\t\t// If url is an object, simulate pre-1.5 signature\n\t\t\tif ( typeof url === \"object\" ) {\n\t\t\t\toptions = url;\n\t\t\t\turl = undefined;\n\t\t\t}\n\n\t\t\t// Force options to be an object\n\t\t\toptions = options || {};\n\n\t\t\tvar transport,\n\n\t\t\t\t// URL without anti-cache param\n\t\t\t\tcacheURL,\n\n\t\t\t\t// Response headers\n\t\t\t\tresponseHeadersString,\n\t\t\t\tresponseHeaders,\n\n\t\t\t\t// timeout handle\n\t\t\t\ttimeoutTimer,\n\n\t\t\t\t// Url cleanup var\n\t\t\t\turlAnchor,\n\n\t\t\t\t// To know if global events are to be dispatched\n\t\t\t\tfireGlobals,\n\n\t\t\t\t// Loop variable\n\t\t\t\ti,\n\n\t\t\t\t// Create the final options object\n\t\t\t\ts = jQuery.ajaxSetup( {}, options ),\n\n\t\t\t\t// Callbacks context\n\t\t\t\tcallbackContext = s.context || s,\n\n\t\t\t\t// Context for global events is callbackContext if it is a DOM node or jQuery collection\n\t\t\t\tglobalEventContext = s.context &&\n\t\t\t\t\t( callbackContext.nodeType || callbackContext.jquery ) ?\n\t\t\t\t\t\tjQuery( callbackContext ) :\n\t\t\t\t\t\tjQuery.event,\n\n\t\t\t\t// Deferreds\n\t\t\t\tdeferred = jQuery.Deferred(),\n\t\t\t\tcompleteDeferred = jQuery.Callbacks( \"once memory\" ),\n\n\t\t\t\t// Status-dependent callbacks\n\t\t\t\tstatusCode = s.statusCode || {},\n\n\t\t\t\t// Headers (they are sent all at once)\n\t\t\t\trequestHeaders = {},\n\t\t\t\trequestHeadersNames = {},\n\n\t\t\t\t// The jqXHR state\n\t\t\t\tstate = 0,\n\n\t\t\t\t// Default abort message\n\t\t\t\tstrAbort = \"canceled\",\n\n\t\t\t\t// Fake xhr\n\t\t\t\tjqXHR = {\n\t\t\t\t\treadyState: 0,\n\n\t\t\t\t\t// Builds headers hashtable if needed\n\t\t\t\t\tgetResponseHeader: function( key ) {\n\t\t\t\t\t\tvar match;\n\t\t\t\t\t\tif ( state === 2 ) {\n\t\t\t\t\t\t\tif ( !responseHeaders ) {\n\t\t\t\t\t\t\t\tresponseHeaders = {};\n\t\t\t\t\t\t\t\twhile ( ( match = rheaders.exec( responseHeadersString ) ) ) {\n\t\t\t\t\t\t\t\t\tresponseHeaders[ match[ 1 ].toLowerCase() ] = match[ 2 ];\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmatch = responseHeaders[ key.toLowerCase() ];\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn match == null ? null : match;\n\t\t\t\t\t},\n\n\t\t\t\t\t// Raw string\n\t\t\t\t\tgetAllResponseHeaders: function() {\n\t\t\t\t\t\treturn state === 2 ? responseHeadersString : null;\n\t\t\t\t\t},\n\n\t\t\t\t\t// Caches the header\n\t\t\t\t\tsetRequestHeader: function( name, value ) {\n\t\t\t\t\t\tvar lname = name.toLowerCase();\n\t\t\t\t\t\tif ( !state ) {\n\t\t\t\t\t\t\tname = requestHeadersNames[ lname ] = requestHeadersNames[ lname ] || name;\n\t\t\t\t\t\t\trequestHeaders[ name ] = value;\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn this;\n\t\t\t\t\t},\n\n\t\t\t\t\t// Overrides response content-type header\n\t\t\t\t\toverrideMimeType: function( type ) {\n\t\t\t\t\t\tif ( !state ) {\n\t\t\t\t\t\t\ts.mimeType = type;\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn this;\n\t\t\t\t\t},\n\n\t\t\t\t\t// Status-dependent callbacks\n\t\t\t\t\tstatusCode: function( map ) {\n\t\t\t\t\t\tvar code;\n\t\t\t\t\t\tif ( map ) {\n\t\t\t\t\t\t\tif ( state < 2 ) {\n\t\t\t\t\t\t\t\tfor ( code in map ) {\n\n\t\t\t\t\t\t\t\t\t// Lazy-add the new callback in a way that preserves old ones\n\t\t\t\t\t\t\t\t\tstatusCode[ code ] = [ statusCode[ code ], map[ code ] ];\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\t// Execute the appropriate callbacks\n\t\t\t\t\t\t\t\tjqXHR.always( map[ jqXHR.status ] );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn this;\n\t\t\t\t\t},\n\n\t\t\t\t\t// Cancel the request\n\t\t\t\t\tabort: function( statusText ) {\n\t\t\t\t\t\tvar finalText = statusText || strAbort;\n\t\t\t\t\t\tif ( transport ) {\n\t\t\t\t\t\t\ttransport.abort( finalText );\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdone( 0, finalText );\n\t\t\t\t\t\treturn this;\n\t\t\t\t\t}\n\t\t\t\t};\n\n\t\t\t// Attach deferreds\n\t\t\tdeferred.promise( jqXHR ).complete = completeDeferred.add;\n\t\t\tjqXHR.success = jqXHR.done;\n\t\t\tjqXHR.error = jqXHR.fail;\n\n\t\t\t// Remove hash character (#7531: and string promotion)\n\t\t\t// Add protocol if not provided (prefilters might expect it)\n\t\t\t// Handle falsy url in the settings object (#10093: consistency with old signature)\n\t\t\t// We also use the url parameter if available\n\t\t\ts.url = ( ( url || s.url || location.href ) + \"\" ).replace( rhash, \"\" )\n\t\t\t\t.replace( rprotocol, location.protocol + \"//\" );\n\n\t\t\t// Alias method option to type as per ticket #12004\n\t\t\ts.type = options.method || options.type || s.method || s.type;\n\n\t\t\t// Extract dataTypes list\n\t\t\ts.dataTypes = jQuery.trim( s.dataType || \"*\" ).toLowerCase().match( rnotwhite ) || [ \"\" ];\n\n\t\t\t// A cross-domain request is in order when the origin doesn't match the current origin.\n\t\t\tif ( s.crossDomain == null ) {\n\t\t\t\turlAnchor = document.createElement( \"a\" );\n\n\t\t\t\t// Support: IE8-11+\n\t\t\t\t// IE throws exception if url is malformed, e.g. http://example.com:80x/\n\t\t\t\ttry {\n\t\t\t\t\turlAnchor.href = s.url;\n\n\t\t\t\t\t// Support: IE8-11+\n\t\t\t\t\t// Anchor's host property isn't correctly set when s.url is relative\n\t\t\t\t\turlAnchor.href = urlAnchor.href;\n\t\t\t\t\ts.crossDomain = originAnchor.protocol + \"//\" + originAnchor.host !==\n\t\t\t\t\t\turlAnchor.protocol + \"//\" + urlAnchor.host;\n\t\t\t\t} catch ( e ) {\n\n\t\t\t\t\t// If there is an error parsing the URL, assume it is crossDomain,\n\t\t\t\t\t// it can be rejected by the transport if it is invalid\n\t\t\t\t\ts.crossDomain = true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Convert data if not already a string\n\t\t\tif ( s.data && s.processData && typeof s.data !== \"string\" ) {\n\t\t\t\ts.data = jQuery.param( s.data, s.traditional );\n\t\t\t}\n\n\t\t\t// Apply prefilters\n\t\t\tinspectPrefiltersOrTransports( prefilters, s, options, jqXHR );\n\n\t\t\t// If request was aborted inside a prefilter, stop there\n\t\t\tif ( state === 2 ) {\n\t\t\t\treturn jqXHR;\n\t\t\t}\n\n\t\t\t// We can fire global events as of now if asked to\n\t\t\t// Don't fire events if jQuery.event is undefined in an AMD-usage scenario (#15118)\n\t\t\tfireGlobals = jQuery.event && s.global;\n\n\t\t\t// Watch for a new set of requests\n\t\t\tif ( fireGlobals && jQuery.active++ === 0 ) {\n\t\t\t\tjQuery.event.trigger( \"ajaxStart\" );\n\t\t\t}\n\n\t\t\t// Uppercase the type\n\t\t\ts.type = s.type.toUpperCase();\n\n\t\t\t// Determine if request has content\n\t\t\ts.hasContent = !rnoContent.test( s.type );\n\n\t\t\t// Save the URL in case we're toying with the If-Modified-Since\n\t\t\t// and/or If-None-Match header later on\n\t\t\tcacheURL = s.url;\n\n\t\t\t// More options handling for requests with no content\n\t\t\tif ( !s.hasContent ) {\n\n\t\t\t\t// If data is available, append data to url\n\t\t\t\tif ( s.data ) {\n\t\t\t\t\tcacheURL = ( s.url += ( rquery.test( cacheURL ) ? \"&\" : \"?\" ) + s.data );\n\n\t\t\t\t\t// #9682: remove data so that it's not used in an eventual retry\n\t\t\t\t\tdelete s.data;\n\t\t\t\t}\n\n\t\t\t\t// Add anti-cache in url if needed\n\t\t\t\tif ( s.cache === false ) {\n\t\t\t\t\ts.url = rts.test( cacheURL ) ?\n\n\t\t\t\t\t\t// If there is already a '_' parameter, set its value\n\t\t\t\t\t\tcacheURL.replace( rts, \"$1_=\" + nonce++ ) :\n\n\t\t\t\t\t\t// Otherwise add one to the end\n\t\t\t\t\t\tcacheURL + ( rquery.test( cacheURL ) ? \"&\" : \"?\" ) + \"_=\" + nonce++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.\n\t\t\tif ( s.ifModified ) {\n\t\t\t\tif ( jQuery.lastModified[ cacheURL ] ) {\n\t\t\t\t\tjqXHR.setRequestHeader( \"If-Modified-Since\", jQuery.lastModified[ cacheURL ] );\n\t\t\t\t}\n\t\t\t\tif ( jQuery.etag[ cacheURL ] ) {\n\t\t\t\t\tjqXHR.setRequestHeader( \"If-None-Match\", jQuery.etag[ cacheURL ] );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Set the correct header, if data is being sent\n\t\t\tif ( s.data && s.hasContent && s.contentType !== false || options.contentType ) {\n\t\t\t\tjqXHR.setRequestHeader( \"Content-Type\", s.contentType );\n\t\t\t}\n\n\t\t\t// Set the Accepts header for the server, depending on the dataType\n\t\t\tjqXHR.setRequestHeader(\n\t\t\t\t\"Accept\",\n\t\t\t\ts.dataTypes[ 0 ] && s.accepts[ s.dataTypes[ 0 ] ] ?\n\t\t\t\t\ts.accepts[ s.dataTypes[ 0 ] ] +\n\t\t\t\t\t\t( s.dataTypes[ 0 ] !== \"*\" ? \", \" + allTypes + \"; q=0.01\" : \"\" ) :\n\t\t\t\t\ts.accepts[ \"*\" ]\n\t\t\t);\n\n\t\t\t// Check for headers option\n\t\t\tfor ( i in s.headers ) {\n\t\t\t\tjqXHR.setRequestHeader( i, s.headers[ i ] );\n\t\t\t}\n\n\t\t\t// Allow custom headers/mimetypes and early abort\n\t\t\tif ( s.beforeSend &&\n\t\t\t\t( s.beforeSend.call( callbackContext, jqXHR, s ) === false || state === 2 ) ) {\n\n\t\t\t\t// Abort if not done already and return\n\t\t\t\treturn jqXHR.abort();\n\t\t\t}\n\n\t\t\t// Aborting is no longer a cancellation\n\t\t\tstrAbort = \"abort\";\n\n\t\t\t// Install callbacks on deferreds\n\t\t\tfor ( i in { success: 1, error: 1, complete: 1 } ) {\n\t\t\t\tjqXHR[ i ]( s[ i ] );\n\t\t\t}\n\n\t\t\t// Get transport\n\t\t\ttransport = inspectPrefiltersOrTransports( transports, s, options, jqXHR );\n\n\t\t\t// If no transport, we auto-abort\n\t\t\tif ( !transport ) {\n\t\t\t\tdone( -1, \"No Transport\" );\n\t\t\t} else {\n\t\t\t\tjqXHR.readyState = 1;\n\n\t\t\t\t// Send global event\n\t\t\t\tif ( fireGlobals ) {\n\t\t\t\t\tglobalEventContext.trigger( \"ajaxSend\", [ jqXHR, s ] );\n\t\t\t\t}\n\n\t\t\t\t// If request was aborted inside ajaxSend, stop there\n\t\t\t\tif ( state === 2 ) {\n\t\t\t\t\treturn jqXHR;\n\t\t\t\t}\n\n\t\t\t\t// Timeout\n\t\t\t\tif ( s.async && s.timeout > 0 ) {\n\t\t\t\t\ttimeoutTimer = window.setTimeout( function() {\n\t\t\t\t\t\tjqXHR.abort( \"timeout\" );\n\t\t\t\t\t}, s.timeout );\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tstate = 1;\n\t\t\t\t\ttransport.send( requestHeaders, done );\n\t\t\t\t} catch ( e ) {\n\n\t\t\t\t\t// Propagate exception as error if not done\n\t\t\t\t\tif ( state < 2 ) {\n\t\t\t\t\t\tdone( -1, e );\n\n\t\t\t\t\t// Simply rethrow otherwise\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthrow e;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Callback for when everything is done\n\t\t\tfunction done( status, nativeStatusText, responses, headers ) {\n\t\t\t\tvar isSuccess, success, error, response, modified,\n\t\t\t\t\tstatusText = nativeStatusText;\n\n\t\t\t\t// Called once\n\t\t\t\tif ( state === 2 ) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t// State is \"done\" now\n\t\t\t\tstate = 2;\n\n\t\t\t\t// Clear timeout if it exists\n\t\t\t\tif ( timeoutTimer ) {\n\t\t\t\t\twindow.clearTimeout( timeoutTimer );\n\t\t\t\t}\n\n\t\t\t\t// Dereference transport for early garbage collection\n\t\t\t\t// (no matter how long the jqXHR object will be used)\n\t\t\t\ttransport = undefined;\n\n\t\t\t\t// Cache response headers\n\t\t\t\tresponseHeadersString = headers || \"\";\n\n\t\t\t\t// Set readyState\n\t\t\t\tjqXHR.readyState = status > 0 ? 4 : 0;\n\n\t\t\t\t// Determine if successful\n\t\t\t\tisSuccess = status >= 200 && status < 300 || status === 304;\n\n\t\t\t\t// Get response data\n\t\t\t\tif ( responses ) {\n\t\t\t\t\tresponse = ajaxHandleResponses( s, jqXHR, responses );\n\t\t\t\t}\n\n\t\t\t\t// Convert no matter what (that way responseXXX fields are always set)\n\t\t\t\tresponse = ajaxConvert( s, response, jqXHR, isSuccess );\n\n\t\t\t\t// If successful, handle type chaining\n\t\t\t\tif ( isSuccess ) {\n\n\t\t\t\t\t// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.\n\t\t\t\t\tif ( s.ifModified ) {\n\t\t\t\t\t\tmodified = jqXHR.getResponseHeader( \"Last-Modified\" );\n\t\t\t\t\t\tif ( modified ) {\n\t\t\t\t\t\t\tjQuery.lastModified[ cacheURL ] = modified;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tmodified = jqXHR.getResponseHeader( \"etag\" );\n\t\t\t\t\t\tif ( modified ) {\n\t\t\t\t\t\t\tjQuery.etag[ cacheURL ] = modified;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// if no content\n\t\t\t\t\tif ( status === 204 || s.type === \"HEAD\" ) {\n\t\t\t\t\t\tstatusText = \"nocontent\";\n\n\t\t\t\t\t// if not modified\n\t\t\t\t\t} else if ( status === 304 ) {\n\t\t\t\t\t\tstatusText = \"notmodified\";\n\n\t\t\t\t\t// If we have data, let's convert it\n\t\t\t\t\t} else {\n\t\t\t\t\t\tstatusText = response.state;\n\t\t\t\t\t\tsuccess = response.data;\n\t\t\t\t\t\terror = response.error;\n\t\t\t\t\t\tisSuccess = !error;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\n\t\t\t\t\t// Extract error from statusText and normalize for non-aborts\n\t\t\t\t\terror = statusText;\n\t\t\t\t\tif ( status || !statusText ) {\n\t\t\t\t\t\tstatusText = \"error\";\n\t\t\t\t\t\tif ( status < 0 ) {\n\t\t\t\t\t\t\tstatus = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Set data for the fake xhr object\n\t\t\t\tjqXHR.status = status;\n\t\t\t\tjqXHR.statusText = ( nativeStatusText || statusText ) + \"\";\n\n\t\t\t\t// Success/Error\n\t\t\t\tif ( isSuccess ) {\n\t\t\t\t\tdeferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] );\n\t\t\t\t} else {\n\t\t\t\t\tdeferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] );\n\t\t\t\t}\n\n\t\t\t\t// Status-dependent callbacks\n\t\t\t\tjqXHR.statusCode( statusCode );\n\t\t\t\tstatusCode = undefined;\n\n\t\t\t\tif ( fireGlobals ) {\n\t\t\t\t\tglobalEventContext.trigger( isSuccess ? \"ajaxSuccess\" : \"ajaxError\",\n\t\t\t\t\t\t[ jqXHR, s, isSuccess ? success : error ] );\n\t\t\t\t}\n\n\t\t\t\t// Complete\n\t\t\t\tcompleteDeferred.fireWith( callbackContext, [ jqXHR, statusText ] );\n\n\t\t\t\tif ( fireGlobals ) {\n\t\t\t\t\tglobalEventContext.trigger( \"ajaxComplete\", [ jqXHR, s ] );\n\n\t\t\t\t\t// Handle the global AJAX counter\n\t\t\t\t\tif ( !( --jQuery.active ) ) {\n\t\t\t\t\t\tjQuery.event.trigger( \"ajaxStop\" );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn jqXHR;\n\t\t},\n\n\t\tgetJSON: function( url, data, callback ) {\n\t\t\treturn jQuery.get( url, data, callback, \"json\" );\n\t\t},\n\n\t\tgetScript: function( url, callback ) {\n\t\t\treturn jQuery.get( url, undefined, callback, \"script\" );\n\t\t}\n\t} );\n\n\tjQuery.each( [ \"get\", \"post\" ], function( i, method ) {\n\t\tjQuery[ method ] = function( url, data, callback, type ) {\n\n\t\t\t// Shift arguments if data argument was omitted\n\t\t\tif ( jQuery.isFunction( data ) ) {\n\t\t\t\ttype = type || callback;\n\t\t\t\tcallback = data;\n\t\t\t\tdata = undefined;\n\t\t\t}\n\n\t\t\t// The url can be an options object (which then must have .url)\n\t\t\treturn jQuery.ajax( jQuery.extend( {\n\t\t\t\turl: url,\n\t\t\t\ttype: method,\n\t\t\t\tdataType: type,\n\t\t\t\tdata: data,\n\t\t\t\tsuccess: callback\n\t\t\t}, jQuery.isPlainObject( url ) && url ) );\n\t\t};\n\t} );\n\n\n\tjQuery._evalUrl = function( url ) {\n\t\treturn jQuery.ajax( {\n\t\t\turl: url,\n\n\t\t\t// Make this explicit, since user can override this through ajaxSetup (#11264)\n\t\t\ttype: \"GET\",\n\t\t\tdataType: \"script\",\n\t\t\tasync: false,\n\t\t\tglobal: false,\n\t\t\t\"throws\": true\n\t\t} );\n\t};\n\n\n\tjQuery.fn.extend( {\n\t\twrapAll: function( html ) {\n\t\t\tvar wrap;\n\n\t\t\tif ( jQuery.isFunction( html ) ) {\n\t\t\t\treturn this.each( function( i ) {\n\t\t\t\t\tjQuery( this ).wrapAll( html.call( this, i ) );\n\t\t\t\t} );\n\t\t\t}\n\n\t\t\tif ( this[ 0 ] ) {\n\n\t\t\t\t// The elements to wrap the target around\n\t\t\t\twrap = jQuery( html, this[ 0 ].ownerDocument ).eq( 0 ).clone( true );\n\n\t\t\t\tif ( this[ 0 ].parentNode ) {\n\t\t\t\t\twrap.insertBefore( this[ 0 ] );\n\t\t\t\t}\n\n\t\t\t\twrap.map( function() {\n\t\t\t\t\tvar elem = this;\n\n\t\t\t\t\twhile ( elem.firstElementChild ) {\n\t\t\t\t\t\telem = elem.firstElementChild;\n\t\t\t\t\t}\n\n\t\t\t\t\treturn elem;\n\t\t\t\t} ).append( this );\n\t\t\t}\n\n\t\t\treturn this;\n\t\t},\n\n\t\twrapInner: function( html ) {\n\t\t\tif ( jQuery.isFunction( html ) ) {\n\t\t\t\treturn this.each( function( i ) {\n\t\t\t\t\tjQuery( this ).wrapInner( html.call( this, i ) );\n\t\t\t\t} );\n\t\t\t}\n\n\t\t\treturn this.each( function() {\n\t\t\t\tvar self = jQuery( this ),\n\t\t\t\t\tcontents = self.contents();\n\n\t\t\t\tif ( contents.length ) {\n\t\t\t\t\tcontents.wrapAll( html );\n\n\t\t\t\t} else {\n\t\t\t\t\tself.append( html );\n\t\t\t\t}\n\t\t\t} );\n\t\t},\n\n\t\twrap: function( html ) {\n\t\t\tvar isFunction = jQuery.isFunction( html );\n\n\t\t\treturn this.each( function( i ) {\n\t\t\t\tjQuery( this ).wrapAll( isFunction ? html.call( this, i ) : html );\n\t\t\t} );\n\t\t},\n\n\t\tunwrap: function() {\n\t\t\treturn this.parent().each( function() {\n\t\t\t\tif ( !jQuery.nodeName( this, \"body\" ) ) {\n\t\t\t\t\tjQuery( this ).replaceWith( this.childNodes );\n\t\t\t\t}\n\t\t\t} ).end();\n\t\t}\n\t} );\n\n\n\tjQuery.expr.filters.hidden = function( elem ) {\n\t\treturn !jQuery.expr.filters.visible( elem );\n\t};\n\tjQuery.expr.filters.visible = function( elem ) {\n\n\t\t// Support: Opera <= 12.12\n\t\t// Opera reports offsetWidths and offsetHeights less than zero on some elements\n\t\t// Use OR instead of AND as the element is not visible if either is true\n\t\t// See tickets #10406 and #13132\n\t\treturn elem.offsetWidth > 0 || elem.offsetHeight > 0 || elem.getClientRects().length > 0;\n\t};\n\n\n\n\n\tvar r20 = /%20/g,\n\t\trbracket = /\\[\\]$/,\n\t\trCRLF = /\\r?\\n/g,\n\t\trsubmitterTypes = /^(?:submit|button|image|reset|file)$/i,\n\t\trsubmittable = /^(?:input|select|textarea|keygen)/i;\n\n\tfunction buildParams( prefix, obj, traditional, add ) {\n\t\tvar name;\n\n\t\tif ( jQuery.isArray( obj ) ) {\n\n\t\t\t// Serialize array item.\n\t\t\tjQuery.each( obj, function( i, v ) {\n\t\t\t\tif ( traditional || rbracket.test( prefix ) ) {\n\n\t\t\t\t\t// Treat each array item as a scalar.\n\t\t\t\t\tadd( prefix, v );\n\n\t\t\t\t} else {\n\n\t\t\t\t\t// Item is non-scalar (array or object), encode its numeric index.\n\t\t\t\t\tbuildParams(\n\t\t\t\t\t\tprefix + \"[\" + ( typeof v === \"object\" && v != null ? i : \"\" ) + \"]\",\n\t\t\t\t\t\tv,\n\t\t\t\t\t\ttraditional,\n\t\t\t\t\t\tadd\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t} );\n\n\t\t} else if ( !traditional && jQuery.type( obj ) === \"object\" ) {\n\n\t\t\t// Serialize object item.\n\t\t\tfor ( name in obj ) {\n\t\t\t\tbuildParams( prefix + \"[\" + name + \"]\", obj[ name ], traditional, add );\n\t\t\t}\n\n\t\t} else {\n\n\t\t\t// Serialize scalar item.\n\t\t\tadd( prefix, obj );\n\t\t}\n\t}\n\n\t// Serialize an array of form elements or a set of\n\t// key/values into a query string\n\tjQuery.param = function( a, traditional ) {\n\t\tvar prefix,\n\t\t\ts = [],\n\t\t\tadd = function( key, value ) {\n\n\t\t\t\t// If value is a function, invoke it and return its value\n\t\t\t\tvalue = jQuery.isFunction( value ) ? value() : ( value == null ? \"\" : value );\n\t\t\t\ts[ s.length ] = encodeURIComponent( key ) + \"=\" + encodeURIComponent( value );\n\t\t\t};\n\n\t\t// Set traditional to true for jQuery <= 1.3.2 behavior.\n\t\tif ( traditional === undefined ) {\n\t\t\ttraditional = jQuery.ajaxSettings && jQuery.ajaxSettings.traditional;\n\t\t}\n\n\t\t// If an array was passed in, assume that it is an array of form elements.\n\t\tif ( jQuery.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {\n\n\t\t\t// Serialize the form elements\n\t\t\tjQuery.each( a, function() {\n\t\t\t\tadd( this.name, this.value );\n\t\t\t} );\n\n\t\t} else {\n\n\t\t\t// If traditional, encode the \"old\" way (the way 1.3.2 or older\n\t\t\t// did it), otherwise encode params recursively.\n\t\t\tfor ( prefix in a ) {\n\t\t\t\tbuildParams( prefix, a[ prefix ], traditional, add );\n\t\t\t}\n\t\t}\n\n\t\t// Return the resulting serialization\n\t\treturn s.join( \"&\" ).replace( r20, \"+\" );\n\t};\n\n\tjQuery.fn.extend( {\n\t\tserialize: function() {\n\t\t\treturn jQuery.param( this.serializeArray() );\n\t\t},\n\t\tserializeArray: function() {\n\t\t\treturn this.map( function() {\n\n\t\t\t\t// Can add propHook for \"elements\" to filter or add form elements\n\t\t\t\tvar elements = jQuery.prop( this, \"elements\" );\n\t\t\t\treturn elements ? jQuery.makeArray( elements ) : this;\n\t\t\t} )\n\t\t\t.filter( function() {\n\t\t\t\tvar type = this.type;\n\n\t\t\t\t// Use .is( \":disabled\" ) so that fieldset[disabled] works\n\t\t\t\treturn this.name && !jQuery( this ).is( \":disabled\" ) &&\n\t\t\t\t\trsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) &&\n\t\t\t\t\t( this.checked || !rcheckableType.test( type ) );\n\t\t\t} )\n\t\t\t.map( function( i, elem ) {\n\t\t\t\tvar val = jQuery( this ).val();\n\n\t\t\t\treturn val == null ?\n\t\t\t\t\tnull :\n\t\t\t\t\tjQuery.isArray( val ) ?\n\t\t\t\t\t\tjQuery.map( val, function( val ) {\n\t\t\t\t\t\t\treturn { name: elem.name, value: val.replace( rCRLF, \"\\r\\n\" ) };\n\t\t\t\t\t\t} ) :\n\t\t\t\t\t\t{ name: elem.name, value: val.replace( rCRLF, \"\\r\\n\" ) };\n\t\t\t} ).get();\n\t\t}\n\t} );\n\n\n\tjQuery.ajaxSettings.xhr = function() {\n\t\ttry {\n\t\t\treturn new window.XMLHttpRequest();\n\t\t} catch ( e ) {}\n\t};\n\n\tvar xhrSuccessStatus = {\n\n\t\t\t// File protocol always yields status code 0, assume 200\n\t\t\t0: 200,\n\n\t\t\t// Support: IE9\n\t\t\t// #1450: sometimes IE returns 1223 when it should be 204\n\t\t\t1223: 204\n\t\t},\n\t\txhrSupported = jQuery.ajaxSettings.xhr();\n\n\tsupport.cors = !!xhrSupported && ( \"withCredentials\" in xhrSupported );\n\tsupport.ajax = xhrSupported = !!xhrSupported;\n\n\tjQuery.ajaxTransport( function( options ) {\n\t\tvar callback, errorCallback;\n\n\t\t// Cross domain only allowed if supported through XMLHttpRequest\n\t\tif ( support.cors || xhrSupported && !options.crossDomain ) {\n\t\t\treturn {\n\t\t\t\tsend: function( headers, complete ) {\n\t\t\t\t\tvar i,\n\t\t\t\t\t\txhr = options.xhr();\n\n\t\t\t\t\txhr.open(\n\t\t\t\t\t\toptions.type,\n\t\t\t\t\t\toptions.url,\n\t\t\t\t\t\toptions.async,\n\t\t\t\t\t\toptions.username,\n\t\t\t\t\t\toptions.password\n\t\t\t\t\t);\n\n\t\t\t\t\t// Apply custom fields if provided\n\t\t\t\t\tif ( options.xhrFields ) {\n\t\t\t\t\t\tfor ( i in options.xhrFields ) {\n\t\t\t\t\t\t\txhr[ i ] = options.xhrFields[ i ];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// Override mime type if needed\n\t\t\t\t\tif ( options.mimeType && xhr.overrideMimeType ) {\n\t\t\t\t\t\txhr.overrideMimeType( options.mimeType );\n\t\t\t\t\t}\n\n\t\t\t\t\t// X-Requested-With header\n\t\t\t\t\t// For cross-domain requests, seeing as conditions for a preflight are\n\t\t\t\t\t// akin to a jigsaw puzzle, we simply never set it to be sure.\n\t\t\t\t\t// (it can always be set on a per-request basis or even using ajaxSetup)\n\t\t\t\t\t// For same-domain requests, won't change header if already provided.\n\t\t\t\t\tif ( !options.crossDomain && !headers[ \"X-Requested-With\" ] ) {\n\t\t\t\t\t\theaders[ \"X-Requested-With\" ] = \"XMLHttpRequest\";\n\t\t\t\t\t}\n\n\t\t\t\t\t// Set headers\n\t\t\t\t\tfor ( i in headers ) {\n\t\t\t\t\t\txhr.setRequestHeader( i, headers[ i ] );\n\t\t\t\t\t}\n\n\t\t\t\t\t// Callback\n\t\t\t\t\tcallback = function( type ) {\n\t\t\t\t\t\treturn function() {\n\t\t\t\t\t\t\tif ( callback ) {\n\t\t\t\t\t\t\t\tcallback = errorCallback = xhr.onload =\n\t\t\t\t\t\t\t\t\txhr.onerror = xhr.onabort = xhr.onreadystatechange = null;\n\n\t\t\t\t\t\t\t\tif ( type === \"abort\" ) {\n\t\t\t\t\t\t\t\t\txhr.abort();\n\t\t\t\t\t\t\t\t} else if ( type === \"error\" ) {\n\n\t\t\t\t\t\t\t\t\t// Support: IE9\n\t\t\t\t\t\t\t\t\t// On a manual native abort, IE9 throws\n\t\t\t\t\t\t\t\t\t// errors on any property access that is not readyState\n\t\t\t\t\t\t\t\t\tif ( typeof xhr.status !== \"number\" ) {\n\t\t\t\t\t\t\t\t\t\tcomplete( 0, \"error\" );\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tcomplete(\n\n\t\t\t\t\t\t\t\t\t\t\t// File: protocol always yields status 0; see #8605, #14207\n\t\t\t\t\t\t\t\t\t\t\txhr.status,\n\t\t\t\t\t\t\t\t\t\t\txhr.statusText\n\t\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tcomplete(\n\t\t\t\t\t\t\t\t\t\txhrSuccessStatus[ xhr.status ] || xhr.status,\n\t\t\t\t\t\t\t\t\t\txhr.statusText,\n\n\t\t\t\t\t\t\t\t\t\t// Support: IE9 only\n\t\t\t\t\t\t\t\t\t\t// IE9 has no XHR2 but throws on binary (trac-11426)\n\t\t\t\t\t\t\t\t\t\t// For XHR2 non-text, let the caller handle it (gh-2498)\n\t\t\t\t\t\t\t\t\t\t( xhr.responseType || \"text\" ) !== \"text\"  ||\n\t\t\t\t\t\t\t\t\t\ttypeof xhr.responseText !== \"string\" ?\n\t\t\t\t\t\t\t\t\t\t\t{ binary: xhr.response } :\n\t\t\t\t\t\t\t\t\t\t\t{ text: xhr.responseText },\n\t\t\t\t\t\t\t\t\t\txhr.getAllResponseHeaders()\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t};\n\t\t\t\t\t};\n\n\t\t\t\t\t// Listen to events\n\t\t\t\t\txhr.onload = callback();\n\t\t\t\t\terrorCallback = xhr.onerror = callback( \"error\" );\n\n\t\t\t\t\t// Support: IE9\n\t\t\t\t\t// Use onreadystatechange to replace onabort\n\t\t\t\t\t// to handle uncaught aborts\n\t\t\t\t\tif ( xhr.onabort !== undefined ) {\n\t\t\t\t\t\txhr.onabort = errorCallback;\n\t\t\t\t\t} else {\n\t\t\t\t\t\txhr.onreadystatechange = function() {\n\n\t\t\t\t\t\t\t// Check readyState before timeout as it changes\n\t\t\t\t\t\t\tif ( xhr.readyState === 4 ) {\n\n\t\t\t\t\t\t\t\t// Allow onerror to be called first,\n\t\t\t\t\t\t\t\t// but that will not handle a native abort\n\t\t\t\t\t\t\t\t// Also, save errorCallback to a variable\n\t\t\t\t\t\t\t\t// as xhr.onerror cannot be accessed\n\t\t\t\t\t\t\t\twindow.setTimeout( function() {\n\t\t\t\t\t\t\t\t\tif ( callback ) {\n\t\t\t\t\t\t\t\t\t\terrorCallback();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t};\n\t\t\t\t\t}\n\n\t\t\t\t\t// Create the abort callback\n\t\t\t\t\tcallback = callback( \"abort\" );\n\n\t\t\t\t\ttry {\n\n\t\t\t\t\t\t// Do send the request (this may raise an exception)\n\t\t\t\t\t\txhr.send( options.hasContent && options.data || null );\n\t\t\t\t\t} catch ( e ) {\n\n\t\t\t\t\t\t// #14683: Only rethrow if this hasn't been notified as an error yet\n\t\t\t\t\t\tif ( callback ) {\n\t\t\t\t\t\t\tthrow e;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t},\n\n\t\t\t\tabort: function() {\n\t\t\t\t\tif ( callback ) {\n\t\t\t\t\t\tcallback();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t};\n\t\t}\n\t} );\n\n\n\n\n\t// Install script dataType\n\tjQuery.ajaxSetup( {\n\t\taccepts: {\n\t\t\tscript: \"text/javascript, application/javascript, \" +\n\t\t\t\t\"application/ecmascript, application/x-ecmascript\"\n\t\t},\n\t\tcontents: {\n\t\t\tscript: /\\b(?:java|ecma)script\\b/\n\t\t},\n\t\tconverters: {\n\t\t\t\"text script\": function( text ) {\n\t\t\t\tjQuery.globalEval( text );\n\t\t\t\treturn text;\n\t\t\t}\n\t\t}\n\t} );\n\n\t// Handle cache's special case and crossDomain\n\tjQuery.ajaxPrefilter( \"script\", function( s ) {\n\t\tif ( s.cache === undefined ) {\n\t\t\ts.cache = false;\n\t\t}\n\t\tif ( s.crossDomain ) {\n\t\t\ts.type = \"GET\";\n\t\t}\n\t} );\n\n\t// Bind script tag hack transport\n\tjQuery.ajaxTransport( \"script\", function( s ) {\n\n\t\t// This transport only deals with cross domain requests\n\t\tif ( s.crossDomain ) {\n\t\t\tvar script, callback;\n\t\t\treturn {\n\t\t\t\tsend: function( _, complete ) {\n\t\t\t\t\tscript = jQuery( \"<script>\" ).prop( {\n\t\t\t\t\t\tcharset: s.scriptCharset,\n\t\t\t\t\t\tsrc: s.url\n\t\t\t\t\t} ).on(\n\t\t\t\t\t\t\"load error\",\n\t\t\t\t\t\tcallback = function( evt ) {\n\t\t\t\t\t\t\tscript.remove();\n\t\t\t\t\t\t\tcallback = null;\n\t\t\t\t\t\t\tif ( evt ) {\n\t\t\t\t\t\t\t\tcomplete( evt.type === \"error\" ? 404 : 200, evt.type );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t);\n\n\t\t\t\t\t// Use native DOM manipulation to avoid our domManip AJAX trickery\n\t\t\t\t\tdocument.head.appendChild( script[ 0 ] );\n\t\t\t\t},\n\t\t\t\tabort: function() {\n\t\t\t\t\tif ( callback ) {\n\t\t\t\t\t\tcallback();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t};\n\t\t}\n\t} );\n\n\n\n\n\tvar oldCallbacks = [],\n\t\trjsonp = /(=)\\?(?=&|$)|\\?\\?/;\n\n\t// Default jsonp settings\n\tjQuery.ajaxSetup( {\n\t\tjsonp: \"callback\",\n\t\tjsonpCallback: function() {\n\t\t\tvar callback = oldCallbacks.pop() || ( jQuery.expando + \"_\" + ( nonce++ ) );\n\t\t\tthis[ callback ] = true;\n\t\t\treturn callback;\n\t\t}\n\t} );\n\n\t// Detect, normalize options and install callbacks for jsonp requests\n\tjQuery.ajaxPrefilter( \"json jsonp\", function( s, originalSettings, jqXHR ) {\n\n\t\tvar callbackName, overwritten, responseContainer,\n\t\t\tjsonProp = s.jsonp !== false && ( rjsonp.test( s.url ) ?\n\t\t\t\t\"url\" :\n\t\t\t\ttypeof s.data === \"string\" &&\n\t\t\t\t\t( s.contentType || \"\" )\n\t\t\t\t\t\t.indexOf( \"application/x-www-form-urlencoded\" ) === 0 &&\n\t\t\t\t\trjsonp.test( s.data ) && \"data\"\n\t\t\t);\n\n\t\t// Handle iff the expected data type is \"jsonp\" or we have a parameter to set\n\t\tif ( jsonProp || s.dataTypes[ 0 ] === \"jsonp\" ) {\n\n\t\t\t// Get callback name, remembering preexisting value associated with it\n\t\t\tcallbackName = s.jsonpCallback = jQuery.isFunction( s.jsonpCallback ) ?\n\t\t\t\ts.jsonpCallback() :\n\t\t\t\ts.jsonpCallback;\n\n\t\t\t// Insert callback into url or form data\n\t\t\tif ( jsonProp ) {\n\t\t\t\ts[ jsonProp ] = s[ jsonProp ].replace( rjsonp, \"$1\" + callbackName );\n\t\t\t} else if ( s.jsonp !== false ) {\n\t\t\t\ts.url += ( rquery.test( s.url ) ? \"&\" : \"?\" ) + s.jsonp + \"=\" + callbackName;\n\t\t\t}\n\n\t\t\t// Use data converter to retrieve json after script execution\n\t\t\ts.converters[ \"script json\" ] = function() {\n\t\t\t\tif ( !responseContainer ) {\n\t\t\t\t\tjQuery.error( callbackName + \" was not called\" );\n\t\t\t\t}\n\t\t\t\treturn responseContainer[ 0 ];\n\t\t\t};\n\n\t\t\t// Force json dataType\n\t\t\ts.dataTypes[ 0 ] = \"json\";\n\n\t\t\t// Install callback\n\t\t\toverwritten = window[ callbackName ];\n\t\t\twindow[ callbackName ] = function() {\n\t\t\t\tresponseContainer = arguments;\n\t\t\t};\n\n\t\t\t// Clean-up function (fires after converters)\n\t\t\tjqXHR.always( function() {\n\n\t\t\t\t// If previous value didn't exist - remove it\n\t\t\t\tif ( overwritten === undefined ) {\n\t\t\t\t\tjQuery( window ).removeProp( callbackName );\n\n\t\t\t\t// Otherwise restore preexisting value\n\t\t\t\t} else {\n\t\t\t\t\twindow[ callbackName ] = overwritten;\n\t\t\t\t}\n\n\t\t\t\t// Save back as free\n\t\t\t\tif ( s[ callbackName ] ) {\n\n\t\t\t\t\t// Make sure that re-using the options doesn't screw things around\n\t\t\t\t\ts.jsonpCallback = originalSettings.jsonpCallback;\n\n\t\t\t\t\t// Save the callback name for future use\n\t\t\t\t\toldCallbacks.push( callbackName );\n\t\t\t\t}\n\n\t\t\t\t// Call if it was a function and we have a response\n\t\t\t\tif ( responseContainer && jQuery.isFunction( overwritten ) ) {\n\t\t\t\t\toverwritten( responseContainer[ 0 ] );\n\t\t\t\t}\n\n\t\t\t\tresponseContainer = overwritten = undefined;\n\t\t\t} );\n\n\t\t\t// Delegate to script\n\t\t\treturn \"script\";\n\t\t}\n\t} );\n\n\n\n\n\t// Support: Safari 8+\n\t// In Safari 8 documents created via document.implementation.createHTMLDocument\n\t// collapse sibling forms: the second one becomes a child of the first one.\n\t// Because of that, this security measure has to be disabled in Safari 8.\n\t// https://bugs.webkit.org/show_bug.cgi?id=137337\n\tsupport.createHTMLDocument = ( function() {\n\t\tvar body = document.implementation.createHTMLDocument( \"\" ).body;\n\t\tbody.innerHTML = \"<form></form><form></form>\";\n\t\treturn body.childNodes.length === 2;\n\t} )();\n\n\n\t// Argument \"data\" should be string of html\n\t// context (optional): If specified, the fragment will be created in this context,\n\t// defaults to document\n\t// keepScripts (optional): If true, will include scripts passed in the html string\n\tjQuery.parseHTML = function( data, context, keepScripts ) {\n\t\tif ( !data || typeof data !== \"string\" ) {\n\t\t\treturn null;\n\t\t}\n\t\tif ( typeof context === \"boolean\" ) {\n\t\t\tkeepScripts = context;\n\t\t\tcontext = false;\n\t\t}\n\n\t\t// Stop scripts or inline event handlers from being executed immediately\n\t\t// by using document.implementation\n\t\tcontext = context || ( support.createHTMLDocument ?\n\t\t\tdocument.implementation.createHTMLDocument( \"\" ) :\n\t\t\tdocument );\n\n\t\tvar parsed = rsingleTag.exec( data ),\n\t\t\tscripts = !keepScripts && [];\n\n\t\t// Single tag\n\t\tif ( parsed ) {\n\t\t\treturn [ context.createElement( parsed[ 1 ] ) ];\n\t\t}\n\n\t\tparsed = buildFragment( [ data ], context, scripts );\n\n\t\tif ( scripts && scripts.length ) {\n\t\t\tjQuery( scripts ).remove();\n\t\t}\n\n\t\treturn jQuery.merge( [], parsed.childNodes );\n\t};\n\n\n\t// Keep a copy of the old load method\n\tvar _load = jQuery.fn.load;\n\n\t/**\n\t * Load a url into a page\n\t */\n\tjQuery.fn.load = function( url, params, callback ) {\n\t\tif ( typeof url !== \"string\" && _load ) {\n\t\t\treturn _load.apply( this, arguments );\n\t\t}\n\n\t\tvar selector, type, response,\n\t\t\tself = this,\n\t\t\toff = url.indexOf( \" \" );\n\n\t\tif ( off > -1 ) {\n\t\t\tselector = jQuery.trim( url.slice( off ) );\n\t\t\turl = url.slice( 0, off );\n\t\t}\n\n\t\t// If it's a function\n\t\tif ( jQuery.isFunction( params ) ) {\n\n\t\t\t// We assume that it's the callback\n\t\t\tcallback = params;\n\t\t\tparams = undefined;\n\n\t\t// Otherwise, build a param string\n\t\t} else if ( params && typeof params === \"object\" ) {\n\t\t\ttype = \"POST\";\n\t\t}\n\n\t\t// If we have elements to modify, make the request\n\t\tif ( self.length > 0 ) {\n\t\t\tjQuery.ajax( {\n\t\t\t\turl: url,\n\n\t\t\t\t// If \"type\" variable is undefined, then \"GET\" method will be used.\n\t\t\t\t// Make value of this field explicit since\n\t\t\t\t// user can override it through ajaxSetup method\n\t\t\t\ttype: type || \"GET\",\n\t\t\t\tdataType: \"html\",\n\t\t\t\tdata: params\n\t\t\t} ).done( function( responseText ) {\n\n\t\t\t\t// Save response for use in complete callback\n\t\t\t\tresponse = arguments;\n\n\t\t\t\tself.html( selector ?\n\n\t\t\t\t\t// If a selector was specified, locate the right elements in a dummy div\n\t\t\t\t\t// Exclude scripts to avoid IE 'Permission Denied' errors\n\t\t\t\t\tjQuery( \"<div>\" ).append( jQuery.parseHTML( responseText ) ).find( selector ) :\n\n\t\t\t\t\t// Otherwise use the full result\n\t\t\t\t\tresponseText );\n\n\t\t\t// If the request succeeds, this function gets \"data\", \"status\", \"jqXHR\"\n\t\t\t// but they are ignored because response was set above.\n\t\t\t// If it fails, this function gets \"jqXHR\", \"status\", \"error\"\n\t\t\t} ).always( callback && function( jqXHR, status ) {\n\t\t\t\tself.each( function() {\n\t\t\t\t\tcallback.apply( self, response || [ jqXHR.responseText, status, jqXHR ] );\n\t\t\t\t} );\n\t\t\t} );\n\t\t}\n\n\t\treturn this;\n\t};\n\n\n\n\n\t// Attach a bunch of functions for handling common AJAX events\n\tjQuery.each( [\n\t\t\"ajaxStart\",\n\t\t\"ajaxStop\",\n\t\t\"ajaxComplete\",\n\t\t\"ajaxError\",\n\t\t\"ajaxSuccess\",\n\t\t\"ajaxSend\"\n\t], function( i, type ) {\n\t\tjQuery.fn[ type ] = function( fn ) {\n\t\t\treturn this.on( type, fn );\n\t\t};\n\t} );\n\n\n\n\n\tjQuery.expr.filters.animated = function( elem ) {\n\t\treturn jQuery.grep( jQuery.timers, function( fn ) {\n\t\t\treturn elem === fn.elem;\n\t\t} ).length;\n\t};\n\n\n\n\n\t/**\n\t * Gets a window from an element\n\t */\n\tfunction getWindow( elem ) {\n\t\treturn jQuery.isWindow( elem ) ? elem : elem.nodeType === 9 && elem.defaultView;\n\t}\n\n\tjQuery.offset = {\n\t\tsetOffset: function( elem, options, i ) {\n\t\t\tvar curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition,\n\t\t\t\tposition = jQuery.css( elem, \"position\" ),\n\t\t\t\tcurElem = jQuery( elem ),\n\t\t\t\tprops = {};\n\n\t\t\t// Set position first, in-case top/left are set even on static elem\n\t\t\tif ( position === \"static\" ) {\n\t\t\t\telem.style.position = \"relative\";\n\t\t\t}\n\n\t\t\tcurOffset = curElem.offset();\n\t\t\tcurCSSTop = jQuery.css( elem, \"top\" );\n\t\t\tcurCSSLeft = jQuery.css( elem, \"left\" );\n\t\t\tcalculatePosition = ( position === \"absolute\" || position === \"fixed\" ) &&\n\t\t\t\t( curCSSTop + curCSSLeft ).indexOf( \"auto\" ) > -1;\n\n\t\t\t// Need to be able to calculate position if either\n\t\t\t// top or left is auto and position is either absolute or fixed\n\t\t\tif ( calculatePosition ) {\n\t\t\t\tcurPosition = curElem.position();\n\t\t\t\tcurTop = curPosition.top;\n\t\t\t\tcurLeft = curPosition.left;\n\n\t\t\t} else {\n\t\t\t\tcurTop = parseFloat( curCSSTop ) || 0;\n\t\t\t\tcurLeft = parseFloat( curCSSLeft ) || 0;\n\t\t\t}\n\n\t\t\tif ( jQuery.isFunction( options ) ) {\n\n\t\t\t\t// Use jQuery.extend here to allow modification of coordinates argument (gh-1848)\n\t\t\t\toptions = options.call( elem, i, jQuery.extend( {}, curOffset ) );\n\t\t\t}\n\n\t\t\tif ( options.top != null ) {\n\t\t\t\tprops.top = ( options.top - curOffset.top ) + curTop;\n\t\t\t}\n\t\t\tif ( options.left != null ) {\n\t\t\t\tprops.left = ( options.left - curOffset.left ) + curLeft;\n\t\t\t}\n\n\t\t\tif ( \"using\" in options ) {\n\t\t\t\toptions.using.call( elem, props );\n\n\t\t\t} else {\n\t\t\t\tcurElem.css( props );\n\t\t\t}\n\t\t}\n\t};\n\n\tjQuery.fn.extend( {\n\t\toffset: function( options ) {\n\t\t\tif ( arguments.length ) {\n\t\t\t\treturn options === undefined ?\n\t\t\t\t\tthis :\n\t\t\t\t\tthis.each( function( i ) {\n\t\t\t\t\t\tjQuery.offset.setOffset( this, options, i );\n\t\t\t\t\t} );\n\t\t\t}\n\n\t\t\tvar docElem, win,\n\t\t\t\telem = this[ 0 ],\n\t\t\t\tbox = { top: 0, left: 0 },\n\t\t\t\tdoc = elem && elem.ownerDocument;\n\n\t\t\tif ( !doc ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tdocElem = doc.documentElement;\n\n\t\t\t// Make sure it's not a disconnected DOM node\n\t\t\tif ( !jQuery.contains( docElem, elem ) ) {\n\t\t\t\treturn box;\n\t\t\t}\n\n\t\t\tbox = elem.getBoundingClientRect();\n\t\t\twin = getWindow( doc );\n\t\t\treturn {\n\t\t\t\ttop: box.top + win.pageYOffset - docElem.clientTop,\n\t\t\t\tleft: box.left + win.pageXOffset - docElem.clientLeft\n\t\t\t};\n\t\t},\n\n\t\tposition: function() {\n\t\t\tif ( !this[ 0 ] ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tvar offsetParent, offset,\n\t\t\t\telem = this[ 0 ],\n\t\t\t\tparentOffset = { top: 0, left: 0 };\n\n\t\t\t// Fixed elements are offset from window (parentOffset = {top:0, left: 0},\n\t\t\t// because it is its only offset parent\n\t\t\tif ( jQuery.css( elem, \"position\" ) === \"fixed\" ) {\n\n\t\t\t\t// Assume getBoundingClientRect is there when computed position is fixed\n\t\t\t\toffset = elem.getBoundingClientRect();\n\n\t\t\t} else {\n\n\t\t\t\t// Get *real* offsetParent\n\t\t\t\toffsetParent = this.offsetParent();\n\n\t\t\t\t// Get correct offsets\n\t\t\t\toffset = this.offset();\n\t\t\t\tif ( !jQuery.nodeName( offsetParent[ 0 ], \"html\" ) ) {\n\t\t\t\t\tparentOffset = offsetParent.offset();\n\t\t\t\t}\n\n\t\t\t\t// Add offsetParent borders\n\t\t\t\t// Subtract offsetParent scroll positions\n\t\t\t\tparentOffset.top += jQuery.css( offsetParent[ 0 ], \"borderTopWidth\", true ) -\n\t\t\t\t\toffsetParent.scrollTop();\n\t\t\t\tparentOffset.left += jQuery.css( offsetParent[ 0 ], \"borderLeftWidth\", true ) -\n\t\t\t\t\toffsetParent.scrollLeft();\n\t\t\t}\n\n\t\t\t// Subtract parent offsets and element margins\n\t\t\treturn {\n\t\t\t\ttop: offset.top - parentOffset.top - jQuery.css( elem, \"marginTop\", true ),\n\t\t\t\tleft: offset.left - parentOffset.left - jQuery.css( elem, \"marginLeft\", true )\n\t\t\t};\n\t\t},\n\n\t\t// This method will return documentElement in the following cases:\n\t\t// 1) For the element inside the iframe without offsetParent, this method will return\n\t\t//    documentElement of the parent window\n\t\t// 2) For the hidden or detached element\n\t\t// 3) For body or html element, i.e. in case of the html node - it will return itself\n\t\t//\n\t\t// but those exceptions were never presented as a real life use-cases\n\t\t// and might be considered as more preferable results.\n\t\t//\n\t\t// This logic, however, is not guaranteed and can change at any point in the future\n\t\toffsetParent: function() {\n\t\t\treturn this.map( function() {\n\t\t\t\tvar offsetParent = this.offsetParent;\n\n\t\t\t\twhile ( offsetParent && jQuery.css( offsetParent, \"position\" ) === \"static\" ) {\n\t\t\t\t\toffsetParent = offsetParent.offsetParent;\n\t\t\t\t}\n\n\t\t\t\treturn offsetParent || documentElement;\n\t\t\t} );\n\t\t}\n\t} );\n\n\t// Create scrollLeft and scrollTop methods\n\tjQuery.each( { scrollLeft: \"pageXOffset\", scrollTop: \"pageYOffset\" }, function( method, prop ) {\n\t\tvar top = \"pageYOffset\" === prop;\n\n\t\tjQuery.fn[ method ] = function( val ) {\n\t\t\treturn access( this, function( elem, method, val ) {\n\t\t\t\tvar win = getWindow( elem );\n\n\t\t\t\tif ( val === undefined ) {\n\t\t\t\t\treturn win ? win[ prop ] : elem[ method ];\n\t\t\t\t}\n\n\t\t\t\tif ( win ) {\n\t\t\t\t\twin.scrollTo(\n\t\t\t\t\t\t!top ? val : win.pageXOffset,\n\t\t\t\t\t\ttop ? val : win.pageYOffset\n\t\t\t\t\t);\n\n\t\t\t\t} else {\n\t\t\t\t\telem[ method ] = val;\n\t\t\t\t}\n\t\t\t}, method, val, arguments.length );\n\t\t};\n\t} );\n\n\t// Support: Safari<7-8+, Chrome<37-44+\n\t// Add the top/left cssHooks using jQuery.fn.position\n\t// Webkit bug: https://bugs.webkit.org/show_bug.cgi?id=29084\n\t// Blink bug: https://code.google.com/p/chromium/issues/detail?id=229280\n\t// getComputedStyle returns percent when specified for top/left/bottom/right;\n\t// rather than make the css module depend on the offset module, just check for it here\n\tjQuery.each( [ \"top\", \"left\" ], function( i, prop ) {\n\t\tjQuery.cssHooks[ prop ] = addGetHookIf( support.pixelPosition,\n\t\t\tfunction( elem, computed ) {\n\t\t\t\tif ( computed ) {\n\t\t\t\t\tcomputed = curCSS( elem, prop );\n\n\t\t\t\t\t// If curCSS returns percentage, fallback to offset\n\t\t\t\t\treturn rnumnonpx.test( computed ) ?\n\t\t\t\t\t\tjQuery( elem ).position()[ prop ] + \"px\" :\n\t\t\t\t\t\tcomputed;\n\t\t\t\t}\n\t\t\t}\n\t\t);\n\t} );\n\n\n\t// Create innerHeight, innerWidth, height, width, outerHeight and outerWidth methods\n\tjQuery.each( { Height: \"height\", Width: \"width\" }, function( name, type ) {\n\t\tjQuery.each( { padding: \"inner\" + name, content: type, \"\": \"outer\" + name },\n\t\t\tfunction( defaultExtra, funcName ) {\n\n\t\t\t// Margin is only for outerHeight, outerWidth\n\t\t\tjQuery.fn[ funcName ] = function( margin, value ) {\n\t\t\t\tvar chainable = arguments.length && ( defaultExtra || typeof margin !== \"boolean\" ),\n\t\t\t\t\textra = defaultExtra || ( margin === true || value === true ? \"margin\" : \"border\" );\n\n\t\t\t\treturn access( this, function( elem, type, value ) {\n\t\t\t\t\tvar doc;\n\n\t\t\t\t\tif ( jQuery.isWindow( elem ) ) {\n\n\t\t\t\t\t\t// As of 5/8/2012 this will yield incorrect results for Mobile Safari, but there\n\t\t\t\t\t\t// isn't a whole lot we can do. See pull request at this URL for discussion:\n\t\t\t\t\t\t// https://github.com/jquery/jquery/pull/764\n\t\t\t\t\t\treturn elem.document.documentElement[ \"client\" + name ];\n\t\t\t\t\t}\n\n\t\t\t\t\t// Get document width or height\n\t\t\t\t\tif ( elem.nodeType === 9 ) {\n\t\t\t\t\t\tdoc = elem.documentElement;\n\n\t\t\t\t\t\t// Either scroll[Width/Height] or offset[Width/Height] or client[Width/Height],\n\t\t\t\t\t\t// whichever is greatest\n\t\t\t\t\t\treturn Math.max(\n\t\t\t\t\t\t\telem.body[ \"scroll\" + name ], doc[ \"scroll\" + name ],\n\t\t\t\t\t\t\telem.body[ \"offset\" + name ], doc[ \"offset\" + name ],\n\t\t\t\t\t\t\tdoc[ \"client\" + name ]\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\n\t\t\t\t\treturn value === undefined ?\n\n\t\t\t\t\t\t// Get width or height on the element, requesting but not forcing parseFloat\n\t\t\t\t\t\tjQuery.css( elem, type, extra ) :\n\n\t\t\t\t\t\t// Set width or height on the element\n\t\t\t\t\t\tjQuery.style( elem, type, value, extra );\n\t\t\t\t}, type, chainable ? margin : undefined, chainable, null );\n\t\t\t};\n\t\t} );\n\t} );\n\n\n\tjQuery.fn.extend( {\n\n\t\tbind: function( types, data, fn ) {\n\t\t\treturn this.on( types, null, data, fn );\n\t\t},\n\t\tunbind: function( types, fn ) {\n\t\t\treturn this.off( types, null, fn );\n\t\t},\n\n\t\tdelegate: function( selector, types, data, fn ) {\n\t\t\treturn this.on( types, selector, data, fn );\n\t\t},\n\t\tundelegate: function( selector, types, fn ) {\n\n\t\t\t// ( namespace ) or ( selector, types [, fn] )\n\t\t\treturn arguments.length === 1 ?\n\t\t\t\tthis.off( selector, \"**\" ) :\n\t\t\t\tthis.off( types, selector || \"**\", fn );\n\t\t},\n\t\tsize: function() {\n\t\t\treturn this.length;\n\t\t}\n\t} );\n\n\tjQuery.fn.andSelf = jQuery.fn.addBack;\n\n\n\n\n\t// Register as a named AMD module, since jQuery can be concatenated with other\n\t// files that may use define, but not via a proper concatenation script that\n\t// understands anonymous AMD modules. A named AMD is safest and most robust\n\t// way to register. Lowercase jquery is used because AMD module names are\n\t// derived from file names, and jQuery is normally delivered in a lowercase\n\t// file name. Do this after creating the global so that if an AMD module wants\n\t// to call noConflict to hide this version of jQuery, it will work.\n\n\t// Note that for maximum portability, libraries that are not jQuery should\n\t// declare themselves as anonymous modules, and avoid setting a global if an\n\t// AMD loader is present. jQuery is a special case. For more information, see\n\t// https://github.com/jrburke/requirejs/wiki/Updating-existing-libraries#wiki-anon\n\n\tif ( true ) {\n\t\t!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = function() {\n\t\t\treturn jQuery;\n\t\t}.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t}\n\n\n\n\tvar\n\n\t\t// Map over jQuery in case of overwrite\n\t\t_jQuery = window.jQuery,\n\n\t\t// Map over the $ in case of overwrite\n\t\t_$ = window.$;\n\n\tjQuery.noConflict = function( deep ) {\n\t\tif ( window.$ === jQuery ) {\n\t\t\twindow.$ = _$;\n\t\t}\n\n\t\tif ( deep && window.jQuery === jQuery ) {\n\t\t\twindow.jQuery = _jQuery;\n\t\t}\n\n\t\treturn jQuery;\n\t};\n\n\t// Expose jQuery and $ identifiers, even in AMD\n\t// (#7102#comment:10, https://github.com/jquery/jquery/pull/557)\n\t// and CommonJS for browser emulators (#13566)\n\tif ( !noGlobal ) {\n\t\twindow.jQuery = window.$ = jQuery;\n\t}\n\n\treturn jQuery;\n\t}));\n\n\n/***/ },\n/* 20 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! VelocityJS.org (1.2.3). (C) 2014 Julian Shapiro. MIT @license: en.wikipedia.org/wiki/MIT_License */\n\n\t/*************************\n\t   Velocity jQuery Shim\n\t*************************/\n\n\t/*! VelocityJS.org jQuery Shim (1.0.1). (C) 2014 The jQuery Foundation. MIT @license: en.wikipedia.org/wiki/MIT_License. */\n\n\t/* This file contains the jQuery functions that Velocity relies on, thereby removing Velocity's dependency on a full copy of jQuery, and allowing it to work in any environment. */\n\t/* These shimmed functions are only used if jQuery isn't present. If both this shim and jQuery are loaded, Velocity defaults to jQuery proper. */\n\t/* Browser support: Using this shim instead of jQuery proper removes support for IE8. */\n\n\t;(function (window) {\n\t    /***************\n\t         Setup\n\t    ***************/\n\n\t    /* If jQuery is already loaded, there's no point in loading this shim. */\n\t    if (window.jQuery) {\n\t        return;\n\t    }\n\n\t    /* jQuery base. */\n\t    var $ = function (selector, context) {\n\t        return new $.fn.init(selector, context);\n\t    };\n\n\t    /********************\n\t       Private Methods\n\t    ********************/\n\n\t    /* jQuery */\n\t    $.isWindow = function (obj) {\n\t        /* jshint eqeqeq: false */\n\t        return obj != null && obj == obj.window;\n\t    };\n\n\t    /* jQuery */\n\t    $.type = function (obj) {\n\t        if (obj == null) {\n\t            return obj + \"\";\n\t        }\n\n\t        return typeof obj === \"object\" || typeof obj === \"function\" ?\n\t            class2type[toString.call(obj)] || \"object\" :\n\t            typeof obj;\n\t    };\n\n\t    /* jQuery */\n\t    $.isArray = Array.isArray || function (obj) {\n\t        return $.type(obj) === \"array\";\n\t    };\n\n\t    /* jQuery */\n\t    function isArraylike (obj) {\n\t        var length = obj.length,\n\t            type = $.type(obj);\n\n\t        if (type === \"function\" || $.isWindow(obj)) {\n\t            return false;\n\t        }\n\n\t        if (obj.nodeType === 1 && length) {\n\t            return true;\n\t        }\n\n\t        return type === \"array\" || length === 0 || typeof length === \"number\" && length > 0 && (length - 1) in obj;\n\t    }\n\n\t    /***************\n\t       $ Methods\n\t    ***************/\n\n\t    /* jQuery: Support removed for IE<9. */\n\t    $.isPlainObject = function (obj) {\n\t        var key;\n\n\t        if (!obj || $.type(obj) !== \"object\" || obj.nodeType || $.isWindow(obj)) {\n\t            return false;\n\t        }\n\n\t        try {\n\t            if (obj.constructor &&\n\t                !hasOwn.call(obj, \"constructor\") &&\n\t                !hasOwn.call(obj.constructor.prototype, \"isPrototypeOf\")) {\n\t                return false;\n\t            }\n\t        } catch (e) {\n\t            return false;\n\t        }\n\n\t        for (key in obj) {}\n\n\t        return key === undefined || hasOwn.call(obj, key);\n\t    };\n\n\t    /* jQuery */\n\t    $.each = function(obj, callback, args) {\n\t        var value,\n\t            i = 0,\n\t            length = obj.length,\n\t            isArray = isArraylike(obj);\n\n\t        if (args) {\n\t            if (isArray) {\n\t                for (; i < length; i++) {\n\t                    value = callback.apply(obj[i], args);\n\n\t                    if (value === false) {\n\t                        break;\n\t                    }\n\t                }\n\t            } else {\n\t                for (i in obj) {\n\t                    value = callback.apply(obj[i], args);\n\n\t                    if (value === false) {\n\t                        break;\n\t                    }\n\t                }\n\t            }\n\n\t        } else {\n\t            if (isArray) {\n\t                for (; i < length; i++) {\n\t                    value = callback.call(obj[i], i, obj[i]);\n\n\t                    if (value === false) {\n\t                        break;\n\t                    }\n\t                }\n\t            } else {\n\t                for (i in obj) {\n\t                    value = callback.call(obj[i], i, obj[i]);\n\n\t                    if (value === false) {\n\t                        break;\n\t                    }\n\t                }\n\t            }\n\t        }\n\n\t        return obj;\n\t    };\n\n\t    /* Custom */\n\t    $.data = function (node, key, value) {\n\t        /* $.getData() */\n\t        if (value === undefined) {\n\t            var id = node[$.expando],\n\t                store = id && cache[id];\n\n\t            if (key === undefined) {\n\t                return store;\n\t            } else if (store) {\n\t                if (key in store) {\n\t                    return store[key];\n\t                }\n\t            }\n\t        /* $.setData() */\n\t        } else if (key !== undefined) {\n\t            var id = node[$.expando] || (node[$.expando] = ++$.uuid);\n\n\t            cache[id] = cache[id] || {};\n\t            cache[id][key] = value;\n\n\t            return value;\n\t        }\n\t    };\n\n\t    /* Custom */\n\t    $.removeData = function (node, keys) {\n\t        var id = node[$.expando],\n\t            store = id && cache[id];\n\n\t        if (store) {\n\t            $.each(keys, function(_, key) {\n\t                delete store[key];\n\t            });\n\t        }\n\t    };\n\n\t    /* jQuery */\n\t    $.extend = function () {\n\t        var src, copyIsArray, copy, name, options, clone,\n\t            target = arguments[0] || {},\n\t            i = 1,\n\t            length = arguments.length,\n\t            deep = false;\n\n\t        if (typeof target === \"boolean\") {\n\t            deep = target;\n\n\t            target = arguments[i] || {};\n\t            i++;\n\t        }\n\n\t        if (typeof target !== \"object\" && $.type(target) !== \"function\") {\n\t            target = {};\n\t        }\n\n\t        if (i === length) {\n\t            target = this;\n\t            i--;\n\t        }\n\n\t        for (; i < length; i++) {\n\t            if ((options = arguments[i]) != null) {\n\t                for (name in options) {\n\t                    src = target[name];\n\t                    copy = options[name];\n\n\t                    if (target === copy) {\n\t                        continue;\n\t                    }\n\n\t                    if (deep && copy && ($.isPlainObject(copy) || (copyIsArray = $.isArray(copy)))) {\n\t                        if (copyIsArray) {\n\t                            copyIsArray = false;\n\t                            clone = src && $.isArray(src) ? src : [];\n\n\t                        } else {\n\t                            clone = src && $.isPlainObject(src) ? src : {};\n\t                        }\n\n\t                        target[name] = $.extend(deep, clone, copy);\n\n\t                    } else if (copy !== undefined) {\n\t                        target[name] = copy;\n\t                    }\n\t                }\n\t            }\n\t        }\n\n\t        return target;\n\t    };\n\n\t    /* jQuery 1.4.3 */\n\t    $.queue = function (elem, type, data) {\n\t        function $makeArray (arr, results) {\n\t            var ret = results || [];\n\n\t            if (arr != null) {\n\t                if (isArraylike(Object(arr))) {\n\t                    /* $.merge */\n\t                    (function(first, second) {\n\t                        var len = +second.length,\n\t                            j = 0,\n\t                            i = first.length;\n\n\t                        while (j < len) {\n\t                            first[i++] = second[j++];\n\t                        }\n\n\t                        if (len !== len) {\n\t                            while (second[j] !== undefined) {\n\t                                first[i++] = second[j++];\n\t                            }\n\t                        }\n\n\t                        first.length = i;\n\n\t                        return first;\n\t                    })(ret, typeof arr === \"string\" ? [arr] : arr);\n\t                } else {\n\t                    [].push.call(ret, arr);\n\t                }\n\t            }\n\n\t            return ret;\n\t        }\n\n\t        if (!elem) {\n\t            return;\n\t        }\n\n\t        type = (type || \"fx\") + \"queue\";\n\n\t        var q = $.data(elem, type);\n\n\t        if (!data) {\n\t            return q || [];\n\t        }\n\n\t        if (!q || $.isArray(data)) {\n\t            q = $.data(elem, type, $makeArray(data));\n\t        } else {\n\t            q.push(data);\n\t        }\n\n\t        return q;\n\t    };\n\n\t    /* jQuery 1.4.3 */\n\t    $.dequeue = function (elems, type) {\n\t        /* Custom: Embed element iteration. */\n\t        $.each(elems.nodeType ? [ elems ] : elems, function(i, elem) {\n\t            type = type || \"fx\";\n\n\t            var queue = $.queue(elem, type),\n\t                fn = queue.shift();\n\n\t            if (fn === \"inprogress\") {\n\t                fn = queue.shift();\n\t            }\n\n\t            if (fn) {\n\t                if (type === \"fx\") {\n\t                    queue.unshift(\"inprogress\");\n\t                }\n\n\t                fn.call(elem, function() {\n\t                    $.dequeue(elem, type);\n\t                });\n\t            }\n\t        });\n\t    };\n\n\t    /******************\n\t       $.fn Methods\n\t    ******************/\n\n\t    /* jQuery */\n\t    $.fn = $.prototype = {\n\t        init: function (selector) {\n\t            /* Just return the element wrapped inside an array; don't proceed with the actual jQuery node wrapping process. */\n\t            if (selector.nodeType) {\n\t                this[0] = selector;\n\n\t                return this;\n\t            } else {\n\t                throw new Error(\"Not a DOM node.\");\n\t            }\n\t        },\n\n\t        offset: function () {\n\t            /* jQuery altered code: Dropped disconnected DOM node checking. */\n\t            var box = this[0].getBoundingClientRect ? this[0].getBoundingClientRect() : { top: 0, left: 0 };\n\n\t            return {\n\t                top: box.top + (window.pageYOffset || document.scrollTop  || 0)  - (document.clientTop  || 0),\n\t                left: box.left + (window.pageXOffset || document.scrollLeft  || 0) - (document.clientLeft || 0)\n\t            };\n\t        },\n\n\t        position: function () {\n\t            /* jQuery */\n\t            function offsetParent() {\n\t                var offsetParent = this.offsetParent || document;\n\n\t                while (offsetParent && (!offsetParent.nodeType.toLowerCase === \"html\" && offsetParent.style.position === \"static\")) {\n\t                    offsetParent = offsetParent.offsetParent;\n\t                }\n\n\t                return offsetParent || document;\n\t            }\n\n\t            /* Zepto */\n\t            var elem = this[0],\n\t                offsetParent = offsetParent.apply(elem),\n\t                offset = this.offset(),\n\t                parentOffset = /^(?:body|html)$/i.test(offsetParent.nodeName) ? { top: 0, left: 0 } : $(offsetParent).offset()\n\n\t            offset.top -= parseFloat(elem.style.marginTop) || 0;\n\t            offset.left -= parseFloat(elem.style.marginLeft) || 0;\n\n\t            if (offsetParent.style) {\n\t                parentOffset.top += parseFloat(offsetParent.style.borderTopWidth) || 0\n\t                parentOffset.left += parseFloat(offsetParent.style.borderLeftWidth) || 0\n\t            }\n\n\t            return {\n\t                top: offset.top - parentOffset.top,\n\t                left: offset.left - parentOffset.left\n\t            };\n\t        }\n\t    };\n\n\t    /**********************\n\t       Private Variables\n\t    **********************/\n\n\t    /* For $.data() */\n\t    var cache = {};\n\t    $.expando = \"velocity\" + (new Date().getTime());\n\t    $.uuid = 0;\n\n\t    /* For $.queue() */\n\t    var class2type = {},\n\t        hasOwn = class2type.hasOwnProperty,\n\t        toString = class2type.toString;\n\n\t    var types = \"Boolean Number String Function Array Date RegExp Object Error\".split(\" \");\n\t    for (var i = 0; i < types.length; i++) {\n\t        class2type[\"[object \" + types[i] + \"]\"] = types[i].toLowerCase();\n\t    }\n\n\t    /* Makes $(node) possible, without having to call init. */\n\t    $.fn.init.prototype = $.fn;\n\n\t    /* Globalize Velocity onto the window, and assign its Utilities property. */\n\t    window.Velocity = { Utilities: $ };\n\t})(window);\n\n\t/******************\n\t    Velocity.js\n\t******************/\n\n\t;(function (factory) {\n\t    /* CommonJS module. */\n\t    if (typeof module === \"object\" && typeof module.exports === \"object\") {\n\t        module.exports = factory();\n\t    /* AMD module. */\n\t    } else if (true) {\n\t        !(__WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t    /* Browser globals. */\n\t    } else {\n\t        factory();\n\t    }\n\t}(function() {\n\treturn function (global, window, document, undefined) {\n\n\t    /***************\n\t        Summary\n\t    ***************/\n\n\t    /*\n\t    - CSS: CSS stack that works independently from the rest of Velocity.\n\t    - animate(): Core animation method that iterates over the targeted elements and queues the incoming call onto each element individually.\n\t      - Pre-Queueing: Prepare the element for animation by instantiating its data cache and processing the call's options.\n\t      - Queueing: The logic that runs once the call has reached its point of execution in the element's $.queue() stack.\n\t                  Most logic is placed here to avoid risking it becoming stale (if the element's properties have changed).\n\t      - Pushing: Consolidation of the tween data followed by its push onto the global in-progress calls container.\n\t    - tick(): The single requestAnimationFrame loop responsible for tweening all in-progress calls.\n\t    - completeCall(): Handles the cleanup process for each Velocity call.\n\t    */\n\n\t    /*********************\n\t       Helper Functions\n\t    *********************/\n\n\t    /* IE detection. Gist: https://gist.github.com/julianshapiro/9098609 */\n\t    var IE = (function() {\n\t        if (document.documentMode) {\n\t            return document.documentMode;\n\t        } else {\n\t            for (var i = 7; i > 4; i--) {\n\t                var div = document.createElement(\"div\");\n\n\t                div.innerHTML = \"<!--[if IE \" + i + \"]><span></span><![endif]-->\";\n\n\t                if (div.getElementsByTagName(\"span\").length) {\n\t                    div = null;\n\n\t                    return i;\n\t                }\n\t            }\n\t        }\n\n\t        return undefined;\n\t    })();\n\n\t    /* rAF shim. Gist: https://gist.github.com/julianshapiro/9497513 */\n\t    var rAFShim = (function() {\n\t        var timeLast = 0;\n\n\t        return window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || function(callback) {\n\t            var timeCurrent = (new Date()).getTime(),\n\t                timeDelta;\n\n\t            /* Dynamically set delay on a per-tick basis to match 60fps. */\n\t            /* Technique by Erik Moller. MIT license: https://gist.github.com/paulirish/1579671 */\n\t            timeDelta = Math.max(0, 16 - (timeCurrent - timeLast));\n\t            timeLast = timeCurrent + timeDelta;\n\n\t            return setTimeout(function() { callback(timeCurrent + timeDelta); }, timeDelta);\n\t        };\n\t    })();\n\n\t    /* Array compacting. Copyright Lo-Dash. MIT License: https://github.com/lodash/lodash/blob/master/LICENSE.txt */\n\t    function compactSparseArray (array) {\n\t        var index = -1,\n\t            length = array ? array.length : 0,\n\t            result = [];\n\n\t        while (++index < length) {\n\t            var value = array[index];\n\n\t            if (value) {\n\t                result.push(value);\n\t            }\n\t        }\n\n\t        return result;\n\t    }\n\n\t    function sanitizeElements (elements) {\n\t        /* Unwrap jQuery/Zepto objects. */\n\t        if (Type.isWrapped(elements)) {\n\t            elements = [].slice.call(elements);\n\t        /* Wrap a single element in an array so that $.each() can iterate with the element instead of its node's children. */\n\t        } else if (Type.isNode(elements)) {\n\t            elements = [ elements ];\n\t        }\n\n\t        return elements;\n\t    }\n\n\t    var Type = {\n\t        isString: function (variable) {\n\t            return (typeof variable === \"string\");\n\t        },\n\t        isArray: Array.isArray || function (variable) {\n\t            return Object.prototype.toString.call(variable) === \"[object Array]\";\n\t        },\n\t        isFunction: function (variable) {\n\t            return Object.prototype.toString.call(variable) === \"[object Function]\";\n\t        },\n\t        isNode: function (variable) {\n\t            return variable && variable.nodeType;\n\t        },\n\t        /* Copyright Martin Bohm. MIT License: https://gist.github.com/Tomalak/818a78a226a0738eaade */\n\t        isNodeList: function (variable) {\n\t            return typeof variable === \"object\" &&\n\t                /^\\[object (HTMLCollection|NodeList|Object)\\]$/.test(Object.prototype.toString.call(variable)) &&\n\t                variable.length !== undefined &&\n\t                (variable.length === 0 || (typeof variable[0] === \"object\" && variable[0].nodeType > 0));\n\t        },\n\t        /* Determine if variable is a wrapped jQuery or Zepto element. */\n\t        isWrapped: function (variable) {\n\t            return variable && (variable.jquery || (window.Zepto && window.Zepto.zepto.isZ(variable)));\n\t        },\n\t        isSVG: function (variable) {\n\t            return window.SVGElement && (variable instanceof window.SVGElement);\n\t        },\n\t        isEmptyObject: function (variable) {\n\t            for (var name in variable) {\n\t                return false;\n\t            }\n\n\t            return true;\n\t        }\n\t    };\n\n\t    /*****************\n\t       Dependencies\n\t    *****************/\n\n\t    var $,\n\t        isJQuery = false;\n\n\t    if (global.fn && global.fn.jquery) {\n\t        $ = global;\n\t        isJQuery = true;\n\t    } else {\n\t        $ = window.Velocity.Utilities;\n\t    }\n\n\t    if (IE <= 8 && !isJQuery) {\n\t        throw new Error(\"Velocity: IE8 and below require jQuery to be loaded before Velocity.\");\n\t    } else if (IE <= 7) {\n\t        /* Revert to jQuery's $.animate(), and lose Velocity's extra features. */\n\t        jQuery.fn.velocity = jQuery.fn.animate;\n\n\t        /* Now that $.fn.velocity is aliased, abort this Velocity declaration. */\n\t        return;\n\t    }\n\n\t    /*****************\n\t        Constants\n\t    *****************/\n\n\t    var DURATION_DEFAULT = 400,\n\t        EASING_DEFAULT = \"swing\";\n\n\t    /*************\n\t        State\n\t    *************/\n\n\t    var Velocity = {\n\t        /* Container for page-wide Velocity state data. */\n\t        State: {\n\t            /* Detect mobile devices to determine if mobileHA should be turned on. */\n\t            isMobile: /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),\n\t            /* The mobileHA option's behavior changes on older Android devices (Gingerbread, versions 2.3.3-2.3.7). */\n\t            isAndroid: /Android/i.test(navigator.userAgent),\n\t            isGingerbread: /Android 2\\.3\\.[3-7]/i.test(navigator.userAgent),\n\t            isChrome: window.chrome,\n\t            isFirefox: /Firefox/i.test(navigator.userAgent),\n\t            /* Create a cached element for re-use when checking for CSS property prefixes. */\n\t            prefixElement: document.createElement(\"div\"),\n\t            /* Cache every prefix match to avoid repeating lookups. */\n\t            prefixMatches: {},\n\t            /* Cache the anchor used for animating window scrolling. */\n\t            scrollAnchor: null,\n\t            /* Cache the browser-specific property names associated with the scroll anchor. */\n\t            scrollPropertyLeft: null,\n\t            scrollPropertyTop: null,\n\t            /* Keep track of whether our RAF tick is running. */\n\t            isTicking: false,\n\t            /* Container for every in-progress call to Velocity. */\n\t            calls: []\n\t        },\n\t        /* Velocity's custom CSS stack. Made global for unit testing. */\n\t        CSS: { /* Defined below. */ },\n\t        /* A shim of the jQuery utility functions used by Velocity -- provided by Velocity's optional jQuery shim. */\n\t        Utilities: $,\n\t        /* Container for the user's custom animation redirects that are referenced by name in place of the properties map argument. */\n\t        Redirects: { /* Manually registered by the user. */ },\n\t        Easings: { /* Defined below. */ },\n\t        /* Attempt to use ES6 Promises by default. Users can override this with a third-party promises library. */\n\t        Promise: window.Promise,\n\t        /* Velocity option defaults, which can be overriden by the user. */\n\t        defaults: {\n\t            queue: \"\",\n\t            duration: DURATION_DEFAULT,\n\t            easing: EASING_DEFAULT,\n\t            begin: undefined,\n\t            complete: undefined,\n\t            progress: undefined,\n\t            display: undefined,\n\t            visibility: undefined,\n\t            loop: false,\n\t            delay: false,\n\t            mobileHA: true,\n\t            /* Advanced: Set to false to prevent property values from being cached between consecutive Velocity-initiated chain calls. */\n\t            _cacheValues: true\n\t        },\n\t        /* A design goal of Velocity is to cache data wherever possible in order to avoid DOM requerying. Accordingly, each element has a data cache. */\n\t        init: function (element) {\n\t            $.data(element, \"velocity\", {\n\t                /* Store whether this is an SVG element, since its properties are retrieved and updated differently than standard HTML elements. */\n\t                isSVG: Type.isSVG(element),\n\t                /* Keep track of whether the element is currently being animated by Velocity.\n\t                   This is used to ensure that property values are not transferred between non-consecutive (stale) calls. */\n\t                isAnimating: false,\n\t                /* A reference to the element's live computedStyle object. Learn more here: https://developer.mozilla.org/en/docs/Web/API/window.getComputedStyle */\n\t                computedStyle: null,\n\t                /* Tween data is cached for each animation on the element so that data can be passed across calls --\n\t                   in particular, end values are used as subsequent start values in consecutive Velocity calls. */\n\t                tweensContainer: null,\n\t                /* The full root property values of each CSS hook being animated on this element are cached so that:\n\t                   1) Concurrently-animating hooks sharing the same root can have their root values' merged into one while tweening.\n\t                   2) Post-hook-injection root values can be transferred over to consecutively chained Velocity calls as starting root values. */\n\t                rootPropertyValueCache: {},\n\t                /* A cache for transform updates, which must be manually flushed via CSS.flushTransformCache(). */\n\t                transformCache: {}\n\t            });\n\t        },\n\t        /* A parallel to jQuery's $.css(), used for getting/setting Velocity's hooked CSS properties. */\n\t        hook: null, /* Defined below. */\n\t        /* Velocity-wide animation time remapping for testing purposes. */\n\t        mock: false,\n\t        version: { major: 1, minor: 2, patch: 2 },\n\t        /* Set to 1 or 2 (most verbose) to output debug info to console. */\n\t        debug: false\n\t    };\n\n\t    /* Retrieve the appropriate scroll anchor and property name for the browser: https://developer.mozilla.org/en-US/docs/Web/API/Window.scrollY */\n\t    if (window.pageYOffset !== undefined) {\n\t        Velocity.State.scrollAnchor = window;\n\t        Velocity.State.scrollPropertyLeft = \"pageXOffset\";\n\t        Velocity.State.scrollPropertyTop = \"pageYOffset\";\n\t    } else {\n\t        Velocity.State.scrollAnchor = document.documentElement || document.body.parentNode || document.body;\n\t        Velocity.State.scrollPropertyLeft = \"scrollLeft\";\n\t        Velocity.State.scrollPropertyTop = \"scrollTop\";\n\t    }\n\n\t    /* Shorthand alias for jQuery's $.data() utility. */\n\t    function Data (element) {\n\t        /* Hardcode a reference to the plugin name. */\n\t        var response = $.data(element, \"velocity\");\n\n\t        /* jQuery <=1.4.2 returns null instead of undefined when no match is found. We normalize this behavior. */\n\t        return response === null ? undefined : response;\n\t    };\n\n\t    /**************\n\t        Easing\n\t    **************/\n\n\t    /* Step easing generator. */\n\t    function generateStep (steps) {\n\t        return function (p) {\n\t            return Math.round(p * steps) * (1 / steps);\n\t        };\n\t    }\n\n\t    /* Bezier curve function generator. Copyright Gaetan Renaudeau. MIT License: http://en.wikipedia.org/wiki/MIT_License */\n\t    function generateBezier (mX1, mY1, mX2, mY2) {\n\t        var NEWTON_ITERATIONS = 4,\n\t            NEWTON_MIN_SLOPE = 0.001,\n\t            SUBDIVISION_PRECISION = 0.0000001,\n\t            SUBDIVISION_MAX_ITERATIONS = 10,\n\t            kSplineTableSize = 11,\n\t            kSampleStepSize = 1.0 / (kSplineTableSize - 1.0),\n\t            float32ArraySupported = \"Float32Array\" in window;\n\n\t        /* Must contain four arguments. */\n\t        if (arguments.length !== 4) {\n\t            return false;\n\t        }\n\n\t        /* Arguments must be numbers. */\n\t        for (var i = 0; i < 4; ++i) {\n\t            if (typeof arguments[i] !== \"number\" || isNaN(arguments[i]) || !isFinite(arguments[i])) {\n\t                return false;\n\t            }\n\t        }\n\n\t        /* X values must be in the [0, 1] range. */\n\t        mX1 = Math.min(mX1, 1);\n\t        mX2 = Math.min(mX2, 1);\n\t        mX1 = Math.max(mX1, 0);\n\t        mX2 = Math.max(mX2, 0);\n\n\t        var mSampleValues = float32ArraySupported ? new Float32Array(kSplineTableSize) : new Array(kSplineTableSize);\n\n\t        function A (aA1, aA2) { return 1.0 - 3.0 * aA2 + 3.0 * aA1; }\n\t        function B (aA1, aA2) { return 3.0 * aA2 - 6.0 * aA1; }\n\t        function C (aA1)      { return 3.0 * aA1; }\n\n\t        function calcBezier (aT, aA1, aA2) {\n\t            return ((A(aA1, aA2)*aT + B(aA1, aA2))*aT + C(aA1))*aT;\n\t        }\n\n\t        function getSlope (aT, aA1, aA2) {\n\t            return 3.0 * A(aA1, aA2)*aT*aT + 2.0 * B(aA1, aA2) * aT + C(aA1);\n\t        }\n\n\t        function newtonRaphsonIterate (aX, aGuessT) {\n\t            for (var i = 0; i < NEWTON_ITERATIONS; ++i) {\n\t                var currentSlope = getSlope(aGuessT, mX1, mX2);\n\n\t                if (currentSlope === 0.0) return aGuessT;\n\n\t                var currentX = calcBezier(aGuessT, mX1, mX2) - aX;\n\t                aGuessT -= currentX / currentSlope;\n\t            }\n\n\t            return aGuessT;\n\t        }\n\n\t        function calcSampleValues () {\n\t            for (var i = 0; i < kSplineTableSize; ++i) {\n\t                mSampleValues[i] = calcBezier(i * kSampleStepSize, mX1, mX2);\n\t            }\n\t        }\n\n\t        function binarySubdivide (aX, aA, aB) {\n\t            var currentX, currentT, i = 0;\n\n\t            do {\n\t                currentT = aA + (aB - aA) / 2.0;\n\t                currentX = calcBezier(currentT, mX1, mX2) - aX;\n\t                if (currentX > 0.0) {\n\t                  aB = currentT;\n\t                } else {\n\t                  aA = currentT;\n\t                }\n\t            } while (Math.abs(currentX) > SUBDIVISION_PRECISION && ++i < SUBDIVISION_MAX_ITERATIONS);\n\n\t            return currentT;\n\t        }\n\n\t        function getTForX (aX) {\n\t            var intervalStart = 0.0,\n\t                currentSample = 1,\n\t                lastSample = kSplineTableSize - 1;\n\n\t            for (; currentSample != lastSample && mSampleValues[currentSample] <= aX; ++currentSample) {\n\t                intervalStart += kSampleStepSize;\n\t            }\n\n\t            --currentSample;\n\n\t            var dist = (aX - mSampleValues[currentSample]) / (mSampleValues[currentSample+1] - mSampleValues[currentSample]),\n\t                guessForT = intervalStart + dist * kSampleStepSize,\n\t                initialSlope = getSlope(guessForT, mX1, mX2);\n\n\t            if (initialSlope >= NEWTON_MIN_SLOPE) {\n\t                return newtonRaphsonIterate(aX, guessForT);\n\t            } else if (initialSlope == 0.0) {\n\t                return guessForT;\n\t            } else {\n\t                return binarySubdivide(aX, intervalStart, intervalStart + kSampleStepSize);\n\t            }\n\t        }\n\n\t        var _precomputed = false;\n\n\t        function precompute() {\n\t            _precomputed = true;\n\t            if (mX1 != mY1 || mX2 != mY2) calcSampleValues();\n\t        }\n\n\t        var f = function (aX) {\n\t            if (!_precomputed) precompute();\n\t            if (mX1 === mY1 && mX2 === mY2) return aX;\n\t            if (aX === 0) return 0;\n\t            if (aX === 1) return 1;\n\n\t            return calcBezier(getTForX(aX), mY1, mY2);\n\t        };\n\n\t        f.getControlPoints = function() { return [{ x: mX1, y: mY1 }, { x: mX2, y: mY2 }]; };\n\n\t        var str = \"generateBezier(\" + [mX1, mY1, mX2, mY2] + \")\";\n\t        f.toString = function () { return str; };\n\n\t        return f;\n\t    }\n\n\t    /* Runge-Kutta spring physics function generator. Adapted from Framer.js, copyright Koen Bok. MIT License: http://en.wikipedia.org/wiki/MIT_License */\n\t    /* Given a tension, friction, and duration, a simulation at 60FPS will first run without a defined duration in order to calculate the full path. A second pass\n\t       then adjusts the time delta -- using the relation between actual time and duration -- to calculate the path for the duration-constrained animation. */\n\t    var generateSpringRK4 = (function () {\n\t        function springAccelerationForState (state) {\n\t            return (-state.tension * state.x) - (state.friction * state.v);\n\t        }\n\n\t        function springEvaluateStateWithDerivative (initialState, dt, derivative) {\n\t            var state = {\n\t                x: initialState.x + derivative.dx * dt,\n\t                v: initialState.v + derivative.dv * dt,\n\t                tension: initialState.tension,\n\t                friction: initialState.friction\n\t            };\n\n\t            return { dx: state.v, dv: springAccelerationForState(state) };\n\t        }\n\n\t        function springIntegrateState (state, dt) {\n\t            var a = {\n\t                    dx: state.v,\n\t                    dv: springAccelerationForState(state)\n\t                },\n\t                b = springEvaluateStateWithDerivative(state, dt * 0.5, a),\n\t                c = springEvaluateStateWithDerivative(state, dt * 0.5, b),\n\t                d = springEvaluateStateWithDerivative(state, dt, c),\n\t                dxdt = 1.0 / 6.0 * (a.dx + 2.0 * (b.dx + c.dx) + d.dx),\n\t                dvdt = 1.0 / 6.0 * (a.dv + 2.0 * (b.dv + c.dv) + d.dv);\n\n\t            state.x = state.x + dxdt * dt;\n\t            state.v = state.v + dvdt * dt;\n\n\t            return state;\n\t        }\n\n\t        return function springRK4Factory (tension, friction, duration) {\n\n\t            var initState = {\n\t                    x: -1,\n\t                    v: 0,\n\t                    tension: null,\n\t                    friction: null\n\t                },\n\t                path = [0],\n\t                time_lapsed = 0,\n\t                tolerance = 1 / 10000,\n\t                DT = 16 / 1000,\n\t                have_duration, dt, last_state;\n\n\t            tension = parseFloat(tension) || 500;\n\t            friction = parseFloat(friction) || 20;\n\t            duration = duration || null;\n\n\t            initState.tension = tension;\n\t            initState.friction = friction;\n\n\t            have_duration = duration !== null;\n\n\t            /* Calculate the actual time it takes for this animation to complete with the provided conditions. */\n\t            if (have_duration) {\n\t                /* Run the simulation without a duration. */\n\t                time_lapsed = springRK4Factory(tension, friction);\n\t                /* Compute the adjusted time delta. */\n\t                dt = time_lapsed / duration * DT;\n\t            } else {\n\t                dt = DT;\n\t            }\n\n\t            while (true) {\n\t                /* Next/step function .*/\n\t                last_state = springIntegrateState(last_state || initState, dt);\n\t                /* Store the position. */\n\t                path.push(1 + last_state.x);\n\t                time_lapsed += 16;\n\t                /* If the change threshold is reached, break. */\n\t                if (!(Math.abs(last_state.x) > tolerance && Math.abs(last_state.v) > tolerance)) {\n\t                    break;\n\t                }\n\t            }\n\n\t            /* If duration is not defined, return the actual time required for completing this animation. Otherwise, return a closure that holds the\n\t               computed path and returns a snapshot of the position according to a given percentComplete. */\n\t            return !have_duration ? time_lapsed : function(percentComplete) { return path[ (percentComplete * (path.length - 1)) | 0 ]; };\n\t        };\n\t    }());\n\n\t    /* jQuery easings. */\n\t    Velocity.Easings = {\n\t        linear: function(p) { return p; },\n\t        swing: function(p) { return 0.5 - Math.cos( p * Math.PI ) / 2 },\n\t        /* Bonus \"spring\" easing, which is a less exaggerated version of easeInOutElastic. */\n\t        spring: function(p) { return 1 - (Math.cos(p * 4.5 * Math.PI) * Math.exp(-p * 6)); }\n\t    };\n\n\t    /* CSS3 and Robert Penner easings. */\n\t    $.each(\n\t        [\n\t            [ \"ease\", [ 0.25, 0.1, 0.25, 1.0 ] ],\n\t            [ \"ease-in\", [ 0.42, 0.0, 1.00, 1.0 ] ],\n\t            [ \"ease-out\", [ 0.00, 0.0, 0.58, 1.0 ] ],\n\t            [ \"ease-in-out\", [ 0.42, 0.0, 0.58, 1.0 ] ],\n\t            [ \"easeInSine\", [ 0.47, 0, 0.745, 0.715 ] ],\n\t            [ \"easeOutSine\", [ 0.39, 0.575, 0.565, 1 ] ],\n\t            [ \"easeInOutSine\", [ 0.445, 0.05, 0.55, 0.95 ] ],\n\t            [ \"easeInQuad\", [ 0.55, 0.085, 0.68, 0.53 ] ],\n\t            [ \"easeOutQuad\", [ 0.25, 0.46, 0.45, 0.94 ] ],\n\t            [ \"easeInOutQuad\", [ 0.455, 0.03, 0.515, 0.955 ] ],\n\t            [ \"easeInCubic\", [ 0.55, 0.055, 0.675, 0.19 ] ],\n\t            [ \"easeOutCubic\", [ 0.215, 0.61, 0.355, 1 ] ],\n\t            [ \"easeInOutCubic\", [ 0.645, 0.045, 0.355, 1 ] ],\n\t            [ \"easeInQuart\", [ 0.895, 0.03, 0.685, 0.22 ] ],\n\t            [ \"easeOutQuart\", [ 0.165, 0.84, 0.44, 1 ] ],\n\t            [ \"easeInOutQuart\", [ 0.77, 0, 0.175, 1 ] ],\n\t            [ \"easeInQuint\", [ 0.755, 0.05, 0.855, 0.06 ] ],\n\t            [ \"easeOutQuint\", [ 0.23, 1, 0.32, 1 ] ],\n\t            [ \"easeInOutQuint\", [ 0.86, 0, 0.07, 1 ] ],\n\t            [ \"easeInExpo\", [ 0.95, 0.05, 0.795, 0.035 ] ],\n\t            [ \"easeOutExpo\", [ 0.19, 1, 0.22, 1 ] ],\n\t            [ \"easeInOutExpo\", [ 1, 0, 0, 1 ] ],\n\t            [ \"easeInCirc\", [ 0.6, 0.04, 0.98, 0.335 ] ],\n\t            [ \"easeOutCirc\", [ 0.075, 0.82, 0.165, 1 ] ],\n\t            [ \"easeInOutCirc\", [ 0.785, 0.135, 0.15, 0.86 ] ]\n\t        ], function(i, easingArray) {\n\t            Velocity.Easings[easingArray[0]] = generateBezier.apply(null, easingArray[1]);\n\t        });\n\n\t    /* Determine the appropriate easing type given an easing input. */\n\t    function getEasing(value, duration) {\n\t        var easing = value;\n\n\t        /* The easing option can either be a string that references a pre-registered easing,\n\t           or it can be a two-/four-item array of integers to be converted into a bezier/spring function. */\n\t        if (Type.isString(value)) {\n\t            /* Ensure that the easing has been assigned to jQuery's Velocity.Easings object. */\n\t            if (!Velocity.Easings[value]) {\n\t                easing = false;\n\t            }\n\t        } else if (Type.isArray(value) && value.length === 1) {\n\t            easing = generateStep.apply(null, value);\n\t        } else if (Type.isArray(value) && value.length === 2) {\n\t            /* springRK4 must be passed the animation's duration. */\n\t            /* Note: If the springRK4 array contains non-numbers, generateSpringRK4() returns an easing\n\t               function generated with default tension and friction values. */\n\t            easing = generateSpringRK4.apply(null, value.concat([ duration ]));\n\t        } else if (Type.isArray(value) && value.length === 4) {\n\t            /* Note: If the bezier array contains non-numbers, generateBezier() returns false. */\n\t            easing = generateBezier.apply(null, value);\n\t        } else {\n\t            easing = false;\n\t        }\n\n\t        /* Revert to the Velocity-wide default easing type, or fall back to \"swing\" (which is also jQuery's default)\n\t           if the Velocity-wide default has been incorrectly modified. */\n\t        if (easing === false) {\n\t            if (Velocity.Easings[Velocity.defaults.easing]) {\n\t                easing = Velocity.defaults.easing;\n\t            } else {\n\t                easing = EASING_DEFAULT;\n\t            }\n\t        }\n\n\t        return easing;\n\t    }\n\n\t    /*****************\n\t        CSS Stack\n\t    *****************/\n\n\t    /* The CSS object is a highly condensed and performant CSS stack that fully replaces jQuery's.\n\t       It handles the validation, getting, and setting of both standard CSS properties and CSS property hooks. */\n\t    /* Note: A \"CSS\" shorthand is aliased so that our code is easier to read. */\n\t    var CSS = Velocity.CSS = {\n\n\t        /*************\n\t            RegEx\n\t        *************/\n\n\t        RegEx: {\n\t            isHex: /^#([A-f\\d]{3}){1,2}$/i,\n\t            /* Unwrap a property value's surrounding text, e.g. \"rgba(4, 3, 2, 1)\" ==> \"4, 3, 2, 1\" and \"rect(4px 3px 2px 1px)\" ==> \"4px 3px 2px 1px\". */\n\t            valueUnwrap: /^[A-z]+\\((.*)\\)$/i,\n\t            wrappedValueAlreadyExtracted: /[0-9.]+ [0-9.]+ [0-9.]+( [0-9.]+)?/,\n\t            /* Split a multi-value property into an array of subvalues, e.g. \"rgba(4, 3, 2, 1) 4px 3px 2px 1px\" ==> [ \"rgba(4, 3, 2, 1)\", \"4px\", \"3px\", \"2px\", \"1px\" ]. */\n\t            valueSplit: /([A-z]+\\(.+\\))|(([A-z0-9#-.]+?)(?=\\s|$))/ig\n\t        },\n\n\t        /************\n\t            Lists\n\t        ************/\n\n\t        Lists: {\n\t            colors: [ \"fill\", \"stroke\", \"stopColor\", \"color\", \"backgroundColor\", \"borderColor\", \"borderTopColor\", \"borderRightColor\", \"borderBottomColor\", \"borderLeftColor\", \"outlineColor\" ],\n\t            transformsBase: [ \"translateX\", \"translateY\", \"scale\", \"scaleX\", \"scaleY\", \"skewX\", \"skewY\", \"rotateZ\" ],\n\t            transforms3D: [ \"transformPerspective\", \"translateZ\", \"scaleZ\", \"rotateX\", \"rotateY\" ]\n\t        },\n\n\t        /************\n\t            Hooks\n\t        ************/\n\n\t        /* Hooks allow a subproperty (e.g. \"boxShadowBlur\") of a compound-value CSS property\n\t           (e.g. \"boxShadow: X Y Blur Spread Color\") to be animated as if it were a discrete property. */\n\t        /* Note: Beyond enabling fine-grained property animation, hooking is necessary since Velocity only\n\t           tweens properties with single numeric values; unlike CSS transitions, Velocity does not interpolate compound-values. */\n\t        Hooks: {\n\t            /********************\n\t                Registration\n\t            ********************/\n\n\t            /* Templates are a concise way of indicating which subproperties must be individually registered for each compound-value CSS property. */\n\t            /* Each template consists of the compound-value's base name, its constituent subproperty names, and those subproperties' default values. */\n\t            templates: {\n\t                \"textShadow\": [ \"Color X Y Blur\", \"black 0px 0px 0px\" ],\n\t                \"boxShadow\": [ \"Color X Y Blur Spread\", \"black 0px 0px 0px 0px\" ],\n\t                \"clip\": [ \"Top Right Bottom Left\", \"0px 0px 0px 0px\" ],\n\t                \"backgroundPosition\": [ \"X Y\", \"0% 0%\" ],\n\t                \"transformOrigin\": [ \"X Y Z\", \"50% 50% 0px\" ],\n\t                \"perspectiveOrigin\": [ \"X Y\", \"50% 50%\" ]\n\t            },\n\n\t            /* A \"registered\" hook is one that has been converted from its template form into a live,\n\t               tweenable property. It contains data to associate it with its root property. */\n\t            registered: {\n\t                /* Note: A registered hook looks like this ==> textShadowBlur: [ \"textShadow\", 3 ],\n\t                   which consists of the subproperty's name, the associated root property's name,\n\t                   and the subproperty's position in the root's value. */\n\t            },\n\t            /* Convert the templates into individual hooks then append them to the registered object above. */\n\t            register: function () {\n\t                /* Color hooks registration: Colors are defaulted to white -- as opposed to black -- since colors that are\n\t                   currently set to \"transparent\" default to their respective template below when color-animated,\n\t                   and white is typically a closer match to transparent than black is. An exception is made for text (\"color\"),\n\t                   which is almost always set closer to black than white. */\n\t                for (var i = 0; i < CSS.Lists.colors.length; i++) {\n\t                    var rgbComponents = (CSS.Lists.colors[i] === \"color\") ? \"0 0 0 1\" : \"255 255 255 1\";\n\t                    CSS.Hooks.templates[CSS.Lists.colors[i]] = [ \"Red Green Blue Alpha\", rgbComponents ];\n\t                }\n\n\t                var rootProperty,\n\t                    hookTemplate,\n\t                    hookNames;\n\n\t                /* In IE, color values inside compound-value properties are positioned at the end the value instead of at the beginning.\n\t                   Thus, we re-arrange the templates accordingly. */\n\t                if (IE) {\n\t                    for (rootProperty in CSS.Hooks.templates) {\n\t                        hookTemplate = CSS.Hooks.templates[rootProperty];\n\t                        hookNames = hookTemplate[0].split(\" \");\n\n\t                        var defaultValues = hookTemplate[1].match(CSS.RegEx.valueSplit);\n\n\t                        if (hookNames[0] === \"Color\") {\n\t                            /* Reposition both the hook's name and its default value to the end of their respective strings. */\n\t                            hookNames.push(hookNames.shift());\n\t                            defaultValues.push(defaultValues.shift());\n\n\t                            /* Replace the existing template for the hook's root property. */\n\t                            CSS.Hooks.templates[rootProperty] = [ hookNames.join(\" \"), defaultValues.join(\" \") ];\n\t                        }\n\t                    }\n\t                }\n\n\t                /* Hook registration. */\n\t                for (rootProperty in CSS.Hooks.templates) {\n\t                    hookTemplate = CSS.Hooks.templates[rootProperty];\n\t                    hookNames = hookTemplate[0].split(\" \");\n\n\t                    for (var i in hookNames) {\n\t                        var fullHookName = rootProperty + hookNames[i],\n\t                            hookPosition = i;\n\n\t                        /* For each hook, register its full name (e.g. textShadowBlur) with its root property (e.g. textShadow)\n\t                           and the hook's position in its template's default value string. */\n\t                        CSS.Hooks.registered[fullHookName] = [ rootProperty, hookPosition ];\n\t                    }\n\t                }\n\t            },\n\n\t            /*****************************\n\t               Injection and Extraction\n\t            *****************************/\n\n\t            /* Look up the root property associated with the hook (e.g. return \"textShadow\" for \"textShadowBlur\"). */\n\t            /* Since a hook cannot be set directly (the browser won't recognize it), style updating for hooks is routed through the hook's root property. */\n\t            getRoot: function (property) {\n\t                var hookData = CSS.Hooks.registered[property];\n\n\t                if (hookData) {\n\t                    return hookData[0];\n\t                } else {\n\t                    /* If there was no hook match, return the property name untouched. */\n\t                    return property;\n\t                }\n\t            },\n\t            /* Convert any rootPropertyValue, null or otherwise, into a space-delimited list of hook values so that\n\t               the targeted hook can be injected or extracted at its standard position. */\n\t            cleanRootPropertyValue: function(rootProperty, rootPropertyValue) {\n\t                /* If the rootPropertyValue is wrapped with \"rgb()\", \"clip()\", etc., remove the wrapping to normalize the value before manipulation. */\n\t                if (CSS.RegEx.valueUnwrap.test(rootPropertyValue)) {\n\t                    rootPropertyValue = rootPropertyValue.match(CSS.RegEx.valueUnwrap)[1];\n\t                }\n\n\t                /* If rootPropertyValue is a CSS null-value (from which there's inherently no hook value to extract),\n\t                   default to the root's default value as defined in CSS.Hooks.templates. */\n\t                /* Note: CSS null-values include \"none\", \"auto\", and \"transparent\". They must be converted into their\n\t                   zero-values (e.g. textShadow: \"none\" ==> textShadow: \"0px 0px 0px black\") for hook manipulation to proceed. */\n\t                if (CSS.Values.isCSSNullValue(rootPropertyValue)) {\n\t                    rootPropertyValue = CSS.Hooks.templates[rootProperty][1];\n\t                }\n\n\t                return rootPropertyValue;\n\t            },\n\t            /* Extracted the hook's value from its root property's value. This is used to get the starting value of an animating hook. */\n\t            extractValue: function (fullHookName, rootPropertyValue) {\n\t                var hookData = CSS.Hooks.registered[fullHookName];\n\n\t                if (hookData) {\n\t                    var hookRoot = hookData[0],\n\t                        hookPosition = hookData[1];\n\n\t                    rootPropertyValue = CSS.Hooks.cleanRootPropertyValue(hookRoot, rootPropertyValue);\n\n\t                    /* Split rootPropertyValue into its constituent hook values then grab the desired hook at its standard position. */\n\t                    return rootPropertyValue.toString().match(CSS.RegEx.valueSplit)[hookPosition];\n\t                } else {\n\t                    /* If the provided fullHookName isn't a registered hook, return the rootPropertyValue that was passed in. */\n\t                    return rootPropertyValue;\n\t                }\n\t            },\n\t            /* Inject the hook's value into its root property's value. This is used to piece back together the root property\n\t               once Velocity has updated one of its individually hooked values through tweening. */\n\t            injectValue: function (fullHookName, hookValue, rootPropertyValue) {\n\t                var hookData = CSS.Hooks.registered[fullHookName];\n\n\t                if (hookData) {\n\t                    var hookRoot = hookData[0],\n\t                        hookPosition = hookData[1],\n\t                        rootPropertyValueParts,\n\t                        rootPropertyValueUpdated;\n\n\t                    rootPropertyValue = CSS.Hooks.cleanRootPropertyValue(hookRoot, rootPropertyValue);\n\n\t                    /* Split rootPropertyValue into its individual hook values, replace the targeted value with hookValue,\n\t                       then reconstruct the rootPropertyValue string. */\n\t                    rootPropertyValueParts = rootPropertyValue.toString().match(CSS.RegEx.valueSplit);\n\t                    rootPropertyValueParts[hookPosition] = hookValue;\n\t                    rootPropertyValueUpdated = rootPropertyValueParts.join(\" \");\n\n\t                    return rootPropertyValueUpdated;\n\t                } else {\n\t                    /* If the provided fullHookName isn't a registered hook, return the rootPropertyValue that was passed in. */\n\t                    return rootPropertyValue;\n\t                }\n\t            }\n\t        },\n\n\t        /*******************\n\t           Normalizations\n\t        *******************/\n\n\t        /* Normalizations standardize CSS property manipulation by pollyfilling browser-specific implementations (e.g. opacity)\n\t           and reformatting special properties (e.g. clip, rgba) to look like standard ones. */\n\t        Normalizations: {\n\t            /* Normalizations are passed a normalization target (either the property's name, its extracted value, or its injected value),\n\t               the targeted element (which may need to be queried), and the targeted property value. */\n\t            registered: {\n\t                clip: function (type, element, propertyValue) {\n\t                    switch (type) {\n\t                        case \"name\":\n\t                            return \"clip\";\n\t                        /* Clip needs to be unwrapped and stripped of its commas during extraction. */\n\t                        case \"extract\":\n\t                            var extracted;\n\n\t                            /* If Velocity also extracted this value, skip extraction. */\n\t                            if (CSS.RegEx.wrappedValueAlreadyExtracted.test(propertyValue)) {\n\t                                extracted = propertyValue;\n\t                            } else {\n\t                                /* Remove the \"rect()\" wrapper. */\n\t                                extracted = propertyValue.toString().match(CSS.RegEx.valueUnwrap);\n\n\t                                /* Strip off commas. */\n\t                                extracted = extracted ? extracted[1].replace(/,(\\s+)?/g, \" \") : propertyValue;\n\t                            }\n\n\t                            return extracted;\n\t                        /* Clip needs to be re-wrapped during injection. */\n\t                        case \"inject\":\n\t                            return \"rect(\" + propertyValue + \")\";\n\t                    }\n\t                },\n\n\t                blur: function(type, element, propertyValue) {\n\t                    switch (type) {\n\t                        case \"name\":\n\t                            return Velocity.State.isFirefox ? \"filter\" : \"-webkit-filter\";\n\t                        case \"extract\":\n\t                            var extracted = parseFloat(propertyValue);\n\n\t                            /* If extracted is NaN, meaning the value isn't already extracted. */\n\t                            if (!(extracted || extracted === 0)) {\n\t                                var blurComponent = propertyValue.toString().match(/blur\\(([0-9]+[A-z]+)\\)/i);\n\n\t                                /* If the filter string had a blur component, return just the blur value and unit type. */\n\t                                if (blurComponent) {\n\t                                    extracted = blurComponent[1];\n\t                                /* If the component doesn't exist, default blur to 0. */\n\t                                } else {\n\t                                    extracted = 0;\n\t                                }\n\t                            }\n\n\t                            return extracted;\n\t                        /* Blur needs to be re-wrapped during injection. */\n\t                        case \"inject\":\n\t                            /* For the blur effect to be fully de-applied, it needs to be set to \"none\" instead of 0. */\n\t                            if (!parseFloat(propertyValue)) {\n\t                                return \"none\";\n\t                            } else {\n\t                                return \"blur(\" + propertyValue + \")\";\n\t                            }\n\t                    }\n\t                },\n\n\t                /* <=IE8 do not support the standard opacity property. They use filter:alpha(opacity=INT) instead. */\n\t                opacity: function (type, element, propertyValue) {\n\t                    if (IE <= 8) {\n\t                        switch (type) {\n\t                            case \"name\":\n\t                                return \"filter\";\n\t                            case \"extract\":\n\t                                /* <=IE8 return a \"filter\" value of \"alpha(opacity=\\d{1,3})\".\n\t                                   Extract the value and convert it to a decimal value to match the standard CSS opacity property's formatting. */\n\t                                var extracted = propertyValue.toString().match(/alpha\\(opacity=(.*)\\)/i);\n\n\t                                if (extracted) {\n\t                                    /* Convert to decimal value. */\n\t                                    propertyValue = extracted[1] / 100;\n\t                                } else {\n\t                                    /* When extracting opacity, default to 1 since a null value means opacity hasn't been set. */\n\t                                    propertyValue = 1;\n\t                                }\n\n\t                                return propertyValue;\n\t                            case \"inject\":\n\t                                /* Opacified elements are required to have their zoom property set to a non-zero value. */\n\t                                element.style.zoom = 1;\n\n\t                                /* Setting the filter property on elements with certain font property combinations can result in a\n\t                                   highly unappealing ultra-bolding effect. There's no way to remedy this throughout a tween, but dropping the\n\t                                   value altogether (when opacity hits 1) at leasts ensures that the glitch is gone post-tweening. */\n\t                                if (parseFloat(propertyValue) >= 1) {\n\t                                    return \"\";\n\t                                } else {\n\t                                  /* As per the filter property's spec, convert the decimal value to a whole number and wrap the value. */\n\t                                  return \"alpha(opacity=\" + parseInt(parseFloat(propertyValue) * 100, 10) + \")\";\n\t                                }\n\t                        }\n\t                    /* With all other browsers, normalization is not required; return the same values that were passed in. */\n\t                    } else {\n\t                        switch (type) {\n\t                            case \"name\":\n\t                                return \"opacity\";\n\t                            case \"extract\":\n\t                                return propertyValue;\n\t                            case \"inject\":\n\t                                return propertyValue;\n\t                        }\n\t                    }\n\t                }\n\t            },\n\n\t            /*****************************\n\t                Batched Registrations\n\t            *****************************/\n\n\t            /* Note: Batched normalizations extend the CSS.Normalizations.registered object. */\n\t            register: function () {\n\n\t                /*****************\n\t                    Transforms\n\t                *****************/\n\n\t                /* Transforms are the subproperties contained by the CSS \"transform\" property. Transforms must undergo normalization\n\t                   so that they can be referenced in a properties map by their individual names. */\n\t                /* Note: When transforms are \"set\", they are actually assigned to a per-element transformCache. When all transform\n\t                   setting is complete complete, CSS.flushTransformCache() must be manually called to flush the values to the DOM.\n\t                   Transform setting is batched in this way to improve performance: the transform style only needs to be updated\n\t                   once when multiple transform subproperties are being animated simultaneously. */\n\t                /* Note: IE9 and Android Gingerbread have support for 2D -- but not 3D -- transforms. Since animating unsupported\n\t                   transform properties results in the browser ignoring the *entire* transform string, we prevent these 3D values\n\t                   from being normalized for these browsers so that tweening skips these properties altogether\n\t                   (since it will ignore them as being unsupported by the browser.) */\n\t                if (!(IE <= 9) && !Velocity.State.isGingerbread) {\n\t                    /* Note: Since the standalone CSS \"perspective\" property and the CSS transform \"perspective\" subproperty\n\t                    share the same name, the latter is given a unique token within Velocity: \"transformPerspective\". */\n\t                    CSS.Lists.transformsBase = CSS.Lists.transformsBase.concat(CSS.Lists.transforms3D);\n\t                }\n\n\t                for (var i = 0; i < CSS.Lists.transformsBase.length; i++) {\n\t                    /* Wrap the dynamically generated normalization function in a new scope so that transformName's value is\n\t                    paired with its respective function. (Otherwise, all functions would take the final for loop's transformName.) */\n\t                    (function() {\n\t                        var transformName = CSS.Lists.transformsBase[i];\n\n\t                        CSS.Normalizations.registered[transformName] = function (type, element, propertyValue) {\n\t                            switch (type) {\n\t                                /* The normalized property name is the parent \"transform\" property -- the property that is actually set in CSS. */\n\t                                case \"name\":\n\t                                    return \"transform\";\n\t                                /* Transform values are cached onto a per-element transformCache object. */\n\t                                case \"extract\":\n\t                                    /* If this transform has yet to be assigned a value, return its null value. */\n\t                                    if (Data(element) === undefined || Data(element).transformCache[transformName] === undefined) {\n\t                                        /* Scale CSS.Lists.transformsBase default to 1 whereas all other transform properties default to 0. */\n\t                                        return /^scale/i.test(transformName) ? 1 : 0;\n\t                                    /* When transform values are set, they are wrapped in parentheses as per the CSS spec.\n\t                                       Thus, when extracting their values (for tween calculations), we strip off the parentheses. */\n\t                                    } else {\n\t                                        return Data(element).transformCache[transformName].replace(/[()]/g, \"\");\n\t                                    }\n\t                                case \"inject\":\n\t                                    var invalid = false;\n\n\t                                    /* If an individual transform property contains an unsupported unit type, the browser ignores the *entire* transform property.\n\t                                       Thus, protect users from themselves by skipping setting for transform values supplied with invalid unit types. */\n\t                                    /* Switch on the base transform type; ignore the axis by removing the last letter from the transform's name. */\n\t                                    switch (transformName.substr(0, transformName.length - 1)) {\n\t                                        /* Whitelist unit types for each transform. */\n\t                                        case \"translate\":\n\t                                            invalid = !/(%|px|em|rem|vw|vh|\\d)$/i.test(propertyValue);\n\t                                            break;\n\t                                        /* Since an axis-free \"scale\" property is supported as well, a little hack is used here to detect it by chopping off its last letter. */\n\t                                        case \"scal\":\n\t                                        case \"scale\":\n\t                                            /* Chrome on Android has a bug in which scaled elements blur if their initial scale\n\t                                               value is below 1 (which can happen with forcefeeding). Thus, we detect a yet-unset scale property\n\t                                               and ensure that its first value is always 1. More info: http://stackoverflow.com/questions/10417890/css3-animations-with-transform-causes-blurred-elements-on-webkit/10417962#10417962 */\n\t                                            if (Velocity.State.isAndroid && Data(element).transformCache[transformName] === undefined && propertyValue < 1) {\n\t                                                propertyValue = 1;\n\t                                            }\n\n\t                                            invalid = !/(\\d)$/i.test(propertyValue);\n\t                                            break;\n\t                                        case \"skew\":\n\t                                            invalid = !/(deg|\\d)$/i.test(propertyValue);\n\t                                            break;\n\t                                        case \"rotate\":\n\t                                            invalid = !/(deg|\\d)$/i.test(propertyValue);\n\t                                            break;\n\t                                    }\n\n\t                                    if (!invalid) {\n\t                                        /* As per the CSS spec, wrap the value in parentheses. */\n\t                                        Data(element).transformCache[transformName] = \"(\" + propertyValue + \")\";\n\t                                    }\n\n\t                                    /* Although the value is set on the transformCache object, return the newly-updated value for the calling code to process as normal. */\n\t                                    return Data(element).transformCache[transformName];\n\t                            }\n\t                        };\n\t                    })();\n\t                }\n\n\t                /*************\n\t                    Colors\n\t                *************/\n\n\t                /* Since Velocity only animates a single numeric value per property, color animation is achieved by hooking the individual RGBA components of CSS color properties.\n\t                   Accordingly, color values must be normalized (e.g. \"#ff0000\", \"red\", and \"rgb(255, 0, 0)\" ==> \"255 0 0 1\") so that their components can be injected/extracted by CSS.Hooks logic. */\n\t                for (var i = 0; i < CSS.Lists.colors.length; i++) {\n\t                    /* Wrap the dynamically generated normalization function in a new scope so that colorName's value is paired with its respective function.\n\t                       (Otherwise, all functions would take the final for loop's colorName.) */\n\t                    (function () {\n\t                        var colorName = CSS.Lists.colors[i];\n\n\t                        /* Note: In IE<=8, which support rgb but not rgba, color properties are reverted to rgb by stripping off the alpha component. */\n\t                        CSS.Normalizations.registered[colorName] = function(type, element, propertyValue) {\n\t                            switch (type) {\n\t                                case \"name\":\n\t                                    return colorName;\n\t                                /* Convert all color values into the rgb format. (Old IE can return hex values and color names instead of rgb/rgba.) */\n\t                                case \"extract\":\n\t                                    var extracted;\n\n\t                                    /* If the color is already in its hookable form (e.g. \"255 255 255 1\") due to having been previously extracted, skip extraction. */\n\t                                    if (CSS.RegEx.wrappedValueAlreadyExtracted.test(propertyValue)) {\n\t                                        extracted = propertyValue;\n\t                                    } else {\n\t                                        var converted,\n\t                                            colorNames = {\n\t                                                black: \"rgb(0, 0, 0)\",\n\t                                                blue: \"rgb(0, 0, 255)\",\n\t                                                gray: \"rgb(128, 128, 128)\",\n\t                                                green: \"rgb(0, 128, 0)\",\n\t                                                red: \"rgb(255, 0, 0)\",\n\t                                                white: \"rgb(255, 255, 255)\"\n\t                                            };\n\n\t                                        /* Convert color names to rgb. */\n\t                                        if (/^[A-z]+$/i.test(propertyValue)) {\n\t                                            if (colorNames[propertyValue] !== undefined) {\n\t                                                converted = colorNames[propertyValue]\n\t                                            } else {\n\t                                                /* If an unmatched color name is provided, default to black. */\n\t                                                converted = colorNames.black;\n\t                                            }\n\t                                        /* Convert hex values to rgb. */\n\t                                        } else if (CSS.RegEx.isHex.test(propertyValue)) {\n\t                                            converted = \"rgb(\" + CSS.Values.hexToRgb(propertyValue).join(\" \") + \")\";\n\t                                        /* If the provided color doesn't match any of the accepted color formats, default to black. */\n\t                                        } else if (!(/^rgba?\\(/i.test(propertyValue))) {\n\t                                            converted = colorNames.black;\n\t                                        }\n\n\t                                        /* Remove the surrounding \"rgb/rgba()\" string then replace commas with spaces and strip\n\t                                           repeated spaces (in case the value included spaces to begin with). */\n\t                                        extracted = (converted || propertyValue).toString().match(CSS.RegEx.valueUnwrap)[1].replace(/,(\\s+)?/g, \" \");\n\t                                    }\n\n\t                                    /* So long as this isn't <=IE8, add a fourth (alpha) component if it's missing and default it to 1 (visible). */\n\t                                    if (!(IE <= 8) && extracted.split(\" \").length === 3) {\n\t                                        extracted += \" 1\";\n\t                                    }\n\n\t                                    return extracted;\n\t                                case \"inject\":\n\t                                    /* If this is IE<=8 and an alpha component exists, strip it off. */\n\t                                    if (IE <= 8) {\n\t                                        if (propertyValue.split(\" \").length === 4) {\n\t                                            propertyValue = propertyValue.split(/\\s+/).slice(0, 3).join(\" \");\n\t                                        }\n\t                                    /* Otherwise, add a fourth (alpha) component if it's missing and default it to 1 (visible). */\n\t                                    } else if (propertyValue.split(\" \").length === 3) {\n\t                                        propertyValue += \" 1\";\n\t                                    }\n\n\t                                    /* Re-insert the browser-appropriate wrapper(\"rgb/rgba()\"), insert commas, and strip off decimal units\n\t                                       on all values but the fourth (R, G, and B only accept whole numbers). */\n\t                                    return (IE <= 8 ? \"rgb\" : \"rgba\") + \"(\" + propertyValue.replace(/\\s+/g, \",\").replace(/\\.(\\d)+(?=,)/g, \"\") + \")\";\n\t                            }\n\t                        };\n\t                    })();\n\t                }\n\t            }\n\t        },\n\n\t        /************************\n\t           CSS Property Names\n\t        ************************/\n\n\t        Names: {\n\t            /* Camelcase a property name into its JavaScript notation (e.g. \"background-color\" ==> \"backgroundColor\").\n\t               Camelcasing is used to normalize property names between and across calls. */\n\t            camelCase: function (property) {\n\t                return property.replace(/-(\\w)/g, function (match, subMatch) {\n\t                    return subMatch.toUpperCase();\n\t                });\n\t            },\n\n\t            /* For SVG elements, some properties (namely, dimensional ones) are GET/SET via the element's HTML attributes (instead of via CSS styles). */\n\t            SVGAttribute: function (property) {\n\t                var SVGAttributes = \"width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2\";\n\n\t                /* Certain browsers require an SVG transform to be applied as an attribute. (Otherwise, application via CSS is preferable due to 3D support.) */\n\t                if (IE || (Velocity.State.isAndroid && !Velocity.State.isChrome)) {\n\t                    SVGAttributes += \"|transform\";\n\t                }\n\n\t                return new RegExp(\"^(\" + SVGAttributes + \")$\", \"i\").test(property);\n\t            },\n\n\t            /* Determine whether a property should be set with a vendor prefix. */\n\t            /* If a prefixed version of the property exists, return it. Otherwise, return the original property name.\n\t               If the property is not at all supported by the browser, return a false flag. */\n\t            prefixCheck: function (property) {\n\t                /* If this property has already been checked, return the cached value. */\n\t                if (Velocity.State.prefixMatches[property]) {\n\t                    return [ Velocity.State.prefixMatches[property], true ];\n\t                } else {\n\t                    var vendors = [ \"\", \"Webkit\", \"Moz\", \"ms\", \"O\" ];\n\n\t                    for (var i = 0, vendorsLength = vendors.length; i < vendorsLength; i++) {\n\t                        var propertyPrefixed;\n\n\t                        if (i === 0) {\n\t                            propertyPrefixed = property;\n\t                        } else {\n\t                            /* Capitalize the first letter of the property to conform to JavaScript vendor prefix notation (e.g. webkitFilter). */\n\t                            propertyPrefixed = vendors[i] + property.replace(/^\\w/, function(match) { return match.toUpperCase(); });\n\t                        }\n\n\t                        /* Check if the browser supports this property as prefixed. */\n\t                        if (Type.isString(Velocity.State.prefixElement.style[propertyPrefixed])) {\n\t                            /* Cache the match. */\n\t                            Velocity.State.prefixMatches[property] = propertyPrefixed;\n\n\t                            return [ propertyPrefixed, true ];\n\t                        }\n\t                    }\n\n\t                    /* If the browser doesn't support this property in any form, include a false flag so that the caller can decide how to proceed. */\n\t                    return [ property, false ];\n\t                }\n\t            }\n\t        },\n\n\t        /************************\n\t           CSS Property Values\n\t        ************************/\n\n\t        Values: {\n\t            /* Hex to RGB conversion. Copyright Tim Down: http://stackoverflow.com/questions/5623838/rgb-to-hex-and-hex-to-rgb */\n\t            hexToRgb: function (hex) {\n\t                var shortformRegex = /^#?([a-f\\d])([a-f\\d])([a-f\\d])$/i,\n\t                    longformRegex = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i,\n\t                    rgbParts;\n\n\t                hex = hex.replace(shortformRegex, function (m, r, g, b) {\n\t                    return r + r + g + g + b + b;\n\t                });\n\n\t                rgbParts = longformRegex.exec(hex);\n\n\t                return rgbParts ? [ parseInt(rgbParts[1], 16), parseInt(rgbParts[2], 16), parseInt(rgbParts[3], 16) ] : [ 0, 0, 0 ];\n\t            },\n\n\t            isCSSNullValue: function (value) {\n\t                /* The browser defaults CSS values that have not been set to either 0 or one of several possible null-value strings.\n\t                   Thus, we check for both falsiness and these special strings. */\n\t                /* Null-value checking is performed to default the special strings to 0 (for the sake of tweening) or their hook\n\t                   templates as defined as CSS.Hooks (for the sake of hook injection/extraction). */\n\t                /* Note: Chrome returns \"rgba(0, 0, 0, 0)\" for an undefined color whereas IE returns \"transparent\". */\n\t                return (value == 0 || /^(none|auto|transparent|(rgba\\(0, ?0, ?0, ?0\\)))$/i.test(value));\n\t            },\n\n\t            /* Retrieve a property's default unit type. Used for assigning a unit type when one is not supplied by the user. */\n\t            getUnitType: function (property) {\n\t                if (/^(rotate|skew)/i.test(property)) {\n\t                    return \"deg\";\n\t                } else if (/(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(property)) {\n\t                    /* The above properties are unitless. */\n\t                    return \"\";\n\t                } else {\n\t                    /* Default to px for all other properties. */\n\t                    return \"px\";\n\t                }\n\t            },\n\n\t            /* HTML elements default to an associated display type when they're not set to display:none. */\n\t            /* Note: This function is used for correctly setting the non-\"none\" display value in certain Velocity redirects, such as fadeIn/Out. */\n\t            getDisplayType: function (element) {\n\t                var tagName = element && element.tagName.toString().toLowerCase();\n\n\t                if (/^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|var|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i.test(tagName)) {\n\t                    return \"inline\";\n\t                } else if (/^(li)$/i.test(tagName)) {\n\t                    return \"list-item\";\n\t                } else if (/^(tr)$/i.test(tagName)) {\n\t                    return \"table-row\";\n\t                } else if (/^(table)$/i.test(tagName)) {\n\t                    return \"table\";\n\t                } else if (/^(tbody)$/i.test(tagName)) {\n\t                    return \"table-row-group\";\n\t                /* Default to \"block\" when no match is found. */\n\t                } else {\n\t                    return \"block\";\n\t                }\n\t            },\n\n\t            /* The class add/remove functions are used to temporarily apply a \"velocity-animating\" class to elements while they're animating. */\n\t            addClass: function (element, className) {\n\t                if (element.classList) {\n\t                    element.classList.add(className);\n\t                } else {\n\t                    element.className += (element.className.length ? \" \" : \"\") + className;\n\t                }\n\t            },\n\n\t            removeClass: function (element, className) {\n\t                if (element.classList) {\n\t                    element.classList.remove(className);\n\t                } else {\n\t                    element.className = element.className.toString().replace(new RegExp(\"(^|\\\\s)\" + className.split(\" \").join(\"|\") + \"(\\\\s|$)\", \"gi\"), \" \");\n\t                }\n\t            }\n\t        },\n\n\t        /****************************\n\t           Style Getting & Setting\n\t        ****************************/\n\n\t        /* The singular getPropertyValue, which routes the logic for all normalizations, hooks, and standard CSS properties. */\n\t        getPropertyValue: function (element, property, rootPropertyValue, forceStyleLookup) {\n\t            /* Get an element's computed property value. */\n\t            /* Note: Retrieving the value of a CSS property cannot simply be performed by checking an element's\n\t               style attribute (which only reflects user-defined values). Instead, the browser must be queried for a property's\n\t               *computed* value. You can read more about getComputedStyle here: https://developer.mozilla.org/en/docs/Web/API/window.getComputedStyle */\n\t            function computePropertyValue (element, property) {\n\t                /* When box-sizing isn't set to border-box, height and width style values are incorrectly computed when an\n\t                   element's scrollbars are visible (which expands the element's dimensions). Thus, we defer to the more accurate\n\t                   offsetHeight/Width property, which includes the total dimensions for interior, border, padding, and scrollbar.\n\t                   We subtract border and padding to get the sum of interior + scrollbar. */\n\t                var computedValue = 0;\n\n\t                /* IE<=8 doesn't support window.getComputedStyle, thus we defer to jQuery, which has an extensive array\n\t                   of hacks to accurately retrieve IE8 property values. Re-implementing that logic here is not worth bloating the\n\t                   codebase for a dying browser. The performance repercussions of using jQuery here are minimal since\n\t                   Velocity is optimized to rarely (and sometimes never) query the DOM. Further, the $.css() codepath isn't that slow. */\n\t                if (IE <= 8) {\n\t                    computedValue = $.css(element, property); /* GET */\n\t                /* All other browsers support getComputedStyle. The returned live object reference is cached onto its\n\t                   associated element so that it does not need to be refetched upon every GET. */\n\t                } else {\n\t                    /* Browsers do not return height and width values for elements that are set to display:\"none\". Thus, we temporarily\n\t                       toggle display to the element type's default value. */\n\t                    var toggleDisplay = false;\n\n\t                    if (/^(width|height)$/.test(property) && CSS.getPropertyValue(element, \"display\") === 0) {\n\t                        toggleDisplay = true;\n\t                        CSS.setPropertyValue(element, \"display\", CSS.Values.getDisplayType(element));\n\t                    }\n\n\t                    function revertDisplay () {\n\t                        if (toggleDisplay) {\n\t                            CSS.setPropertyValue(element, \"display\", \"none\");\n\t                        }\n\t                    }\n\n\t                    if (!forceStyleLookup) {\n\t                        if (property === \"height\" && CSS.getPropertyValue(element, \"boxSizing\").toString().toLowerCase() !== \"border-box\") {\n\t                            var contentBoxHeight = element.offsetHeight - (parseFloat(CSS.getPropertyValue(element, \"borderTopWidth\")) || 0) - (parseFloat(CSS.getPropertyValue(element, \"borderBottomWidth\")) || 0) - (parseFloat(CSS.getPropertyValue(element, \"paddingTop\")) || 0) - (parseFloat(CSS.getPropertyValue(element, \"paddingBottom\")) || 0);\n\t                            revertDisplay();\n\n\t                            return contentBoxHeight;\n\t                        } else if (property === \"width\" && CSS.getPropertyValue(element, \"boxSizing\").toString().toLowerCase() !== \"border-box\") {\n\t                            var contentBoxWidth = element.offsetWidth - (parseFloat(CSS.getPropertyValue(element, \"borderLeftWidth\")) || 0) - (parseFloat(CSS.getPropertyValue(element, \"borderRightWidth\")) || 0) - (parseFloat(CSS.getPropertyValue(element, \"paddingLeft\")) || 0) - (parseFloat(CSS.getPropertyValue(element, \"paddingRight\")) || 0);\n\t                            revertDisplay();\n\n\t                            return contentBoxWidth;\n\t                        }\n\t                    }\n\n\t                    var computedStyle;\n\n\t                    /* For elements that Velocity hasn't been called on directly (e.g. when Velocity queries the DOM on behalf\n\t                       of a parent of an element its animating), perform a direct getComputedStyle lookup since the object isn't cached. */\n\t                    if (Data(element) === undefined) {\n\t                        computedStyle = window.getComputedStyle(element, null); /* GET */\n\t                    /* If the computedStyle object has yet to be cached, do so now. */\n\t                    } else if (!Data(element).computedStyle) {\n\t                        computedStyle = Data(element).computedStyle = window.getComputedStyle(element, null); /* GET */\n\t                    /* If computedStyle is cached, use it. */\n\t                    } else {\n\t                        computedStyle = Data(element).computedStyle;\n\t                    }\n\n\t                    /* IE and Firefox do not return a value for the generic borderColor -- they only return individual values for each border side's color.\n\t                       Also, in all browsers, when border colors aren't all the same, a compound value is returned that Velocity isn't setup to parse.\n\t                       So, as a polyfill for querying individual border side colors, we just return the top border's color and animate all borders from that value. */\n\t                    if (property === \"borderColor\") {\n\t                        property = \"borderTopColor\";\n\t                    }\n\n\t                    /* IE9 has a bug in which the \"filter\" property must be accessed from computedStyle using the getPropertyValue method\n\t                       instead of a direct property lookup. The getPropertyValue method is slower than a direct lookup, which is why we avoid it by default. */\n\t                    if (IE === 9 && property === \"filter\") {\n\t                        computedValue = computedStyle.getPropertyValue(property); /* GET */\n\t                    } else {\n\t                        computedValue = computedStyle[property];\n\t                    }\n\n\t                    /* Fall back to the property's style value (if defined) when computedValue returns nothing,\n\t                       which can happen when the element hasn't been painted. */\n\t                    if (computedValue === \"\" || computedValue === null) {\n\t                        computedValue = element.style[property];\n\t                    }\n\n\t                    revertDisplay();\n\t                }\n\n\t                /* For top, right, bottom, and left (TRBL) values that are set to \"auto\" on elements of \"fixed\" or \"absolute\" position,\n\t                   defer to jQuery for converting \"auto\" to a numeric value. (For elements with a \"static\" or \"relative\" position, \"auto\" has the same\n\t                   effect as being set to 0, so no conversion is necessary.) */\n\t                /* An example of why numeric conversion is necessary: When an element with \"position:absolute\" has an untouched \"left\"\n\t                   property, which reverts to \"auto\", left's value is 0 relative to its parent element, but is often non-zero relative\n\t                   to its *containing* (not parent) element, which is the nearest \"position:relative\" ancestor or the viewport (and always the viewport in the case of \"position:fixed\"). */\n\t                if (computedValue === \"auto\" && /^(top|right|bottom|left)$/i.test(property)) {\n\t                    var position = computePropertyValue(element, \"position\"); /* GET */\n\n\t                    /* For absolute positioning, jQuery's $.position() only returns values for top and left;\n\t                       right and bottom will have their \"auto\" value reverted to 0. */\n\t                    /* Note: A jQuery object must be created here since jQuery doesn't have a low-level alias for $.position().\n\t                       Not a big deal since we're currently in a GET batch anyway. */\n\t                    if (position === \"fixed\" || (position === \"absolute\" && /top|left/i.test(property))) {\n\t                        /* Note: jQuery strips the pixel unit from its returned values; we re-add it here to conform with computePropertyValue's behavior. */\n\t                        computedValue = $(element).position()[property] + \"px\"; /* GET */\n\t                    }\n\t                }\n\n\t                return computedValue;\n\t            }\n\n\t            var propertyValue;\n\n\t            /* If this is a hooked property (e.g. \"clipLeft\" instead of the root property of \"clip\"),\n\t               extract the hook's value from a normalized rootPropertyValue using CSS.Hooks.extractValue(). */\n\t            if (CSS.Hooks.registered[property]) {\n\t                var hook = property,\n\t                    hookRoot = CSS.Hooks.getRoot(hook);\n\n\t                /* If a cached rootPropertyValue wasn't passed in (which Velocity always attempts to do in order to avoid requerying the DOM),\n\t                   query the DOM for the root property's value. */\n\t                if (rootPropertyValue === undefined) {\n\t                    /* Since the browser is now being directly queried, use the official post-prefixing property name for this lookup. */\n\t                    rootPropertyValue = CSS.getPropertyValue(element, CSS.Names.prefixCheck(hookRoot)[0]); /* GET */\n\t                }\n\n\t                /* If this root has a normalization registered, peform the associated normalization extraction. */\n\t                if (CSS.Normalizations.registered[hookRoot]) {\n\t                    rootPropertyValue = CSS.Normalizations.registered[hookRoot](\"extract\", element, rootPropertyValue);\n\t                }\n\n\t                /* Extract the hook's value. */\n\t                propertyValue = CSS.Hooks.extractValue(hook, rootPropertyValue);\n\n\t            /* If this is a normalized property (e.g. \"opacity\" becomes \"filter\" in <=IE8) or \"translateX\" becomes \"transform\"),\n\t               normalize the property's name and value, and handle the special case of transforms. */\n\t            /* Note: Normalizing a property is mutually exclusive from hooking a property since hook-extracted values are strictly\n\t               numerical and therefore do not require normalization extraction. */\n\t            } else if (CSS.Normalizations.registered[property]) {\n\t                var normalizedPropertyName,\n\t                    normalizedPropertyValue;\n\n\t                normalizedPropertyName = CSS.Normalizations.registered[property](\"name\", element);\n\n\t                /* Transform values are calculated via normalization extraction (see below), which checks against the element's transformCache.\n\t                   At no point do transform GETs ever actually query the DOM; initial stylesheet values are never processed.\n\t                   This is because parsing 3D transform matrices is not always accurate and would bloat our codebase;\n\t                   thus, normalization extraction defaults initial transform values to their zero-values (e.g. 1 for scaleX and 0 for translateX). */\n\t                if (normalizedPropertyName !== \"transform\") {\n\t                    normalizedPropertyValue = computePropertyValue(element, CSS.Names.prefixCheck(normalizedPropertyName)[0]); /* GET */\n\n\t                    /* If the value is a CSS null-value and this property has a hook template, use that zero-value template so that hooks can be extracted from it. */\n\t                    if (CSS.Values.isCSSNullValue(normalizedPropertyValue) && CSS.Hooks.templates[property]) {\n\t                        normalizedPropertyValue = CSS.Hooks.templates[property][1];\n\t                    }\n\t                }\n\n\t                propertyValue = CSS.Normalizations.registered[property](\"extract\", element, normalizedPropertyValue);\n\t            }\n\n\t            /* If a (numeric) value wasn't produced via hook extraction or normalization, query the DOM. */\n\t            if (!/^[\\d-]/.test(propertyValue)) {\n\t                /* For SVG elements, dimensional properties (which SVGAttribute() detects) are tweened via\n\t                   their HTML attribute values instead of their CSS style values. */\n\t                if (Data(element) && Data(element).isSVG && CSS.Names.SVGAttribute(property)) {\n\t                    /* Since the height/width attribute values must be set manually, they don't reflect computed values.\n\t                       Thus, we use use getBBox() to ensure we always get values for elements with undefined height/width attributes. */\n\t                    if (/^(height|width)$/i.test(property)) {\n\t                        /* Firefox throws an error if .getBBox() is called on an SVG that isn't attached to the DOM. */\n\t                        try {\n\t                            propertyValue = element.getBBox()[property];\n\t                        } catch (error) {\n\t                            propertyValue = 0;\n\t                        }\n\t                    /* Otherwise, access the attribute value directly. */\n\t                    } else {\n\t                        propertyValue = element.getAttribute(property);\n\t                    }\n\t                } else {\n\t                    propertyValue = computePropertyValue(element, CSS.Names.prefixCheck(property)[0]); /* GET */\n\t                }\n\t            }\n\n\t            /* Since property lookups are for animation purposes (which entails computing the numeric delta between start and end values),\n\t               convert CSS null-values to an integer of value 0. */\n\t            if (CSS.Values.isCSSNullValue(propertyValue)) {\n\t                propertyValue = 0;\n\t            }\n\n\t            if (Velocity.debug >= 2) console.log(\"Get \" + property + \": \" + propertyValue);\n\n\t            return propertyValue;\n\t        },\n\n\t        /* The singular setPropertyValue, which routes the logic for all normalizations, hooks, and standard CSS properties. */\n\t        setPropertyValue: function(element, property, propertyValue, rootPropertyValue, scrollData) {\n\t            var propertyName = property;\n\n\t            /* In order to be subjected to call options and element queueing, scroll animation is routed through Velocity as if it were a standard CSS property. */\n\t            if (property === \"scroll\") {\n\t                /* If a container option is present, scroll the container instead of the browser window. */\n\t                if (scrollData.container) {\n\t                    scrollData.container[\"scroll\" + scrollData.direction] = propertyValue;\n\t                /* Otherwise, Velocity defaults to scrolling the browser window. */\n\t                } else {\n\t                    if (scrollData.direction === \"Left\") {\n\t                        window.scrollTo(propertyValue, scrollData.alternateValue);\n\t                    } else {\n\t                        window.scrollTo(scrollData.alternateValue, propertyValue);\n\t                    }\n\t                }\n\t            } else {\n\t                /* Transforms (translateX, rotateZ, etc.) are applied to a per-element transformCache object, which is manually flushed via flushTransformCache().\n\t                   Thus, for now, we merely cache transforms being SET. */\n\t                if (CSS.Normalizations.registered[property] && CSS.Normalizations.registered[property](\"name\", element) === \"transform\") {\n\t                    /* Perform a normalization injection. */\n\t                    /* Note: The normalization logic handles the transformCache updating. */\n\t                    CSS.Normalizations.registered[property](\"inject\", element, propertyValue);\n\n\t                    propertyName = \"transform\";\n\t                    propertyValue = Data(element).transformCache[property];\n\t                } else {\n\t                    /* Inject hooks. */\n\t                    if (CSS.Hooks.registered[property]) {\n\t                        var hookName = property,\n\t                            hookRoot = CSS.Hooks.getRoot(property);\n\n\t                        /* If a cached rootPropertyValue was not provided, query the DOM for the hookRoot's current value. */\n\t                        rootPropertyValue = rootPropertyValue || CSS.getPropertyValue(element, hookRoot); /* GET */\n\n\t                        propertyValue = CSS.Hooks.injectValue(hookName, propertyValue, rootPropertyValue);\n\t                        property = hookRoot;\n\t                    }\n\n\t                    /* Normalize names and values. */\n\t                    if (CSS.Normalizations.registered[property]) {\n\t                        propertyValue = CSS.Normalizations.registered[property](\"inject\", element, propertyValue);\n\t                        property = CSS.Normalizations.registered[property](\"name\", element);\n\t                    }\n\n\t                    /* Assign the appropriate vendor prefix before performing an official style update. */\n\t                    propertyName = CSS.Names.prefixCheck(property)[0];\n\n\t                    /* A try/catch is used for IE<=8, which throws an error when \"invalid\" CSS values are set, e.g. a negative width.\n\t                       Try/catch is avoided for other browsers since it incurs a performance overhead. */\n\t                    if (IE <= 8) {\n\t                        try {\n\t                            element.style[propertyName] = propertyValue;\n\t                        } catch (error) { if (Velocity.debug) console.log(\"Browser does not support [\" + propertyValue + \"] for [\" + propertyName + \"]\"); }\n\t                    /* SVG elements have their dimensional properties (width, height, x, y, cx, etc.) applied directly as attributes instead of as styles. */\n\t                    /* Note: IE8 does not support SVG elements, so it's okay that we skip it for SVG animation. */\n\t                    } else if (Data(element) && Data(element).isSVG && CSS.Names.SVGAttribute(property)) {\n\t                        /* Note: For SVG attributes, vendor-prefixed property names are never used. */\n\t                        /* Note: Not all CSS properties can be animated via attributes, but the browser won't throw an error for unsupported properties. */\n\t                        element.setAttribute(property, propertyValue);\n\t                    } else {\n\t                        element.style[propertyName] = propertyValue;\n\t                    }\n\n\t                    if (Velocity.debug >= 2) console.log(\"Set \" + property + \" (\" + propertyName + \"): \" + propertyValue);\n\t                }\n\t            }\n\n\t            /* Return the normalized property name and value in case the caller wants to know how these values were modified before being applied to the DOM. */\n\t            return [ propertyName, propertyValue ];\n\t        },\n\n\t        /* To increase performance by batching transform updates into a single SET, transforms are not directly applied to an element until flushTransformCache() is called. */\n\t        /* Note: Velocity applies transform properties in the same order that they are chronogically introduced to the element's CSS styles. */\n\t        flushTransformCache: function(element) {\n\t            var transformString = \"\";\n\n\t            /* Certain browsers require that SVG transforms be applied as an attribute. However, the SVG transform attribute takes a modified version of CSS's transform string\n\t               (units are dropped and, except for skewX/Y, subproperties are merged into their master property -- e.g. scaleX and scaleY are merged into scale(X Y). */\n\t            if ((IE || (Velocity.State.isAndroid && !Velocity.State.isChrome)) && Data(element).isSVG) {\n\t                /* Since transform values are stored in their parentheses-wrapped form, we use a helper function to strip out their numeric values.\n\t                   Further, SVG transform properties only take unitless (representing pixels) values, so it's okay that parseFloat() strips the unit suffixed to the float value. */\n\t                function getTransformFloat (transformProperty) {\n\t                    return parseFloat(CSS.getPropertyValue(element, transformProperty));\n\t                }\n\n\t                /* Create an object to organize all the transforms that we'll apply to the SVG element. To keep the logic simple,\n\t                   we process *all* transform properties -- even those that may not be explicitly applied (since they default to their zero-values anyway). */\n\t                var SVGTransforms = {\n\t                    translate: [ getTransformFloat(\"translateX\"), getTransformFloat(\"translateY\") ],\n\t                    skewX: [ getTransformFloat(\"skewX\") ], skewY: [ getTransformFloat(\"skewY\") ],\n\t                    /* If the scale property is set (non-1), use that value for the scaleX and scaleY values\n\t                       (this behavior mimics the result of animating all these properties at once on HTML elements). */\n\t                    scale: getTransformFloat(\"scale\") !== 1 ? [ getTransformFloat(\"scale\"), getTransformFloat(\"scale\") ] : [ getTransformFloat(\"scaleX\"), getTransformFloat(\"scaleY\") ],\n\t                    /* Note: SVG's rotate transform takes three values: rotation degrees followed by the X and Y values\n\t                       defining the rotation's origin point. We ignore the origin values (default them to 0). */\n\t                    rotate: [ getTransformFloat(\"rotateZ\"), 0, 0 ]\n\t                };\n\n\t                /* Iterate through the transform properties in the user-defined property map order.\n\t                   (This mimics the behavior of non-SVG transform animation.) */\n\t                $.each(Data(element).transformCache, function(transformName) {\n\t                    /* Except for with skewX/Y, revert the axis-specific transform subproperties to their axis-free master\n\t                       properties so that they match up with SVG's accepted transform properties. */\n\t                    if (/^translate/i.test(transformName)) {\n\t                        transformName = \"translate\";\n\t                    } else if (/^scale/i.test(transformName)) {\n\t                        transformName = \"scale\";\n\t                    } else if (/^rotate/i.test(transformName)) {\n\t                        transformName = \"rotate\";\n\t                    }\n\n\t                    /* Check that we haven't yet deleted the property from the SVGTransforms container. */\n\t                    if (SVGTransforms[transformName]) {\n\t                        /* Append the transform property in the SVG-supported transform format. As per the spec, surround the space-delimited values in parentheses. */\n\t                        transformString += transformName + \"(\" + SVGTransforms[transformName].join(\" \") + \")\" + \" \";\n\n\t                        /* After processing an SVG transform property, delete it from the SVGTransforms container so we don't\n\t                           re-insert the same master property if we encounter another one of its axis-specific properties. */\n\t                        delete SVGTransforms[transformName];\n\t                    }\n\t                });\n\t            } else {\n\t                var transformValue,\n\t                    perspective;\n\n\t                /* Transform properties are stored as members of the transformCache object. Concatenate all the members into a string. */\n\t                $.each(Data(element).transformCache, function(transformName) {\n\t                    transformValue = Data(element).transformCache[transformName];\n\n\t                    /* Transform's perspective subproperty must be set first in order to take effect. Store it temporarily. */\n\t                    if (transformName === \"transformPerspective\") {\n\t                        perspective = transformValue;\n\t                        return true;\n\t                    }\n\n\t                    /* IE9 only supports one rotation type, rotateZ, which it refers to as \"rotate\". */\n\t                    if (IE === 9 && transformName === \"rotateZ\") {\n\t                        transformName = \"rotate\";\n\t                    }\n\n\t                    transformString += transformName + transformValue + \" \";\n\t                });\n\n\t                /* If present, set the perspective subproperty first. */\n\t                if (perspective) {\n\t                    transformString = \"perspective\" + perspective + \" \" + transformString;\n\t                }\n\t            }\n\n\t            CSS.setPropertyValue(element, \"transform\", transformString);\n\t        }\n\t    };\n\n\t    /* Register hooks and normalizations. */\n\t    CSS.Hooks.register();\n\t    CSS.Normalizations.register();\n\n\t    /* Allow hook setting in the same fashion as jQuery's $.css(). */\n\t    Velocity.hook = function (elements, arg2, arg3) {\n\t        var value = undefined;\n\n\t        elements = sanitizeElements(elements);\n\n\t        $.each(elements, function(i, element) {\n\t            /* Initialize Velocity's per-element data cache if this element hasn't previously been animated. */\n\t            if (Data(element) === undefined) {\n\t                Velocity.init(element);\n\t            }\n\n\t            /* Get property value. If an element set was passed in, only return the value for the first element. */\n\t            if (arg3 === undefined) {\n\t                if (value === undefined) {\n\t                    value = Velocity.CSS.getPropertyValue(element, arg2);\n\t                }\n\t            /* Set property value. */\n\t            } else {\n\t                /* sPV returns an array of the normalized propertyName/propertyValue pair used to update the DOM. */\n\t                var adjustedSet = Velocity.CSS.setPropertyValue(element, arg2, arg3);\n\n\t                /* Transform properties don't automatically set. They have to be flushed to the DOM. */\n\t                if (adjustedSet[0] === \"transform\") {\n\t                    Velocity.CSS.flushTransformCache(element);\n\t                }\n\n\t                value = adjustedSet;\n\t            }\n\t        });\n\n\t        return value;\n\t    };\n\n\t    /*****************\n\t        Animation\n\t    *****************/\n\n\t    var animate = function() {\n\n\t        /******************\n\t            Call Chain\n\t        ******************/\n\n\t        /* Logic for determining what to return to the call stack when exiting out of Velocity. */\n\t        function getChain () {\n\t            /* If we are using the utility function, attempt to return this call's promise. If no promise library was detected,\n\t               default to null instead of returning the targeted elements so that utility function's return value is standardized. */\n\t            if (isUtility) {\n\t                return promiseData.promise || null;\n\t            /* Otherwise, if we're using $.fn, return the jQuery-/Zepto-wrapped element set. */\n\t            } else {\n\t                return elementsWrapped;\n\t            }\n\t        }\n\n\t        /*************************\n\t           Arguments Assignment\n\t        *************************/\n\n\t        /* To allow for expressive CoffeeScript code, Velocity supports an alternative syntax in which \"elements\" (or \"e\"), \"properties\" (or \"p\"), and \"options\" (or \"o\")\n\t           objects are defined on a container object that's passed in as Velocity's sole argument. */\n\t        /* Note: Some browsers automatically populate arguments with a \"properties\" object. We detect it by checking for its default \"names\" property. */\n\t        var syntacticSugar = (arguments[0] && (arguments[0].p || (($.isPlainObject(arguments[0].properties) && !arguments[0].properties.names) || Type.isString(arguments[0].properties)))),\n\t            /* Whether Velocity was called via the utility function (as opposed to on a jQuery/Zepto object). */\n\t            isUtility,\n\t            /* When Velocity is called via the utility function ($.Velocity()/Velocity()), elements are explicitly\n\t               passed in as the first parameter. Thus, argument positioning varies. We normalize them here. */\n\t            elementsWrapped,\n\t            argumentIndex;\n\n\t        var elements,\n\t            propertiesMap,\n\t            options;\n\n\t        /* Detect jQuery/Zepto elements being animated via the $.fn method. */\n\t        if (Type.isWrapped(this)) {\n\t            isUtility = false;\n\n\t            argumentIndex = 0;\n\t            elements = this;\n\t            elementsWrapped = this;\n\t        /* Otherwise, raw elements are being animated via the utility function. */\n\t        } else {\n\t            isUtility = true;\n\n\t            argumentIndex = 1;\n\t            elements = syntacticSugar ? (arguments[0].elements || arguments[0].e) : arguments[0];\n\t        }\n\n\t        elements = sanitizeElements(elements);\n\n\t        if (!elements) {\n\t            return;\n\t        }\n\n\t        if (syntacticSugar) {\n\t            propertiesMap = arguments[0].properties || arguments[0].p;\n\t            options = arguments[0].options || arguments[0].o;\n\t        } else {\n\t            propertiesMap = arguments[argumentIndex];\n\t            options = arguments[argumentIndex + 1];\n\t        }\n\n\t        /* The length of the element set (in the form of a nodeList or an array of elements) is defaulted to 1 in case a\n\t           single raw DOM element is passed in (which doesn't contain a length property). */\n\t        var elementsLength = elements.length,\n\t            elementsIndex = 0;\n\n\t        /***************************\n\t            Argument Overloading\n\t        ***************************/\n\n\t        /* Support is included for jQuery's argument overloading: $.animate(propertyMap [, duration] [, easing] [, complete]).\n\t           Overloading is detected by checking for the absence of an object being passed into options. */\n\t        /* Note: The stop and finish actions do not accept animation options, and are therefore excluded from this check. */\n\t        if (!/^(stop|finish|finishAll)$/i.test(propertiesMap) && !$.isPlainObject(options)) {\n\t            /* The utility function shifts all arguments one position to the right, so we adjust for that offset. */\n\t            var startingArgumentPosition = argumentIndex + 1;\n\n\t            options = {};\n\n\t            /* Iterate through all options arguments */\n\t            for (var i = startingArgumentPosition; i < arguments.length; i++) {\n\t                /* Treat a number as a duration. Parse it out. */\n\t                /* Note: The following RegEx will return true if passed an array with a number as its first item.\n\t                   Thus, arrays are skipped from this check. */\n\t                if (!Type.isArray(arguments[i]) && (/^(fast|normal|slow)$/i.test(arguments[i]) || /^\\d/.test(arguments[i]))) {\n\t                    options.duration = arguments[i];\n\t                /* Treat strings and arrays as easings. */\n\t                } else if (Type.isString(arguments[i]) || Type.isArray(arguments[i])) {\n\t                    options.easing = arguments[i];\n\t                /* Treat a function as a complete callback. */\n\t                } else if (Type.isFunction(arguments[i])) {\n\t                    options.complete = arguments[i];\n\t                }\n\t            }\n\t        }\n\n\t        /***************\n\t            Promises\n\t        ***************/\n\n\t        var promiseData = {\n\t                promise: null,\n\t                resolver: null,\n\t                rejecter: null\n\t            };\n\n\t        /* If this call was made via the utility function (which is the default method of invocation when jQuery/Zepto are not being used), and if\n\t           promise support was detected, create a promise object for this call and store references to its resolver and rejecter methods. The resolve\n\t           method is used when a call completes naturally or is prematurely stopped by the user. In both cases, completeCall() handles the associated\n\t           call cleanup and promise resolving logic. The reject method is used when an invalid set of arguments is passed into a Velocity call. */\n\t        /* Note: Velocity employs a call-based queueing architecture, which means that stopping an animating element actually stops the full call that\n\t           triggered it -- not that one element exclusively. Similarly, there is one promise per call, and all elements targeted by a Velocity call are\n\t           grouped together for the purposes of resolving and rejecting a promise. */\n\t        if (isUtility && Velocity.Promise) {\n\t            promiseData.promise = new Velocity.Promise(function (resolve, reject) {\n\t                promiseData.resolver = resolve;\n\t                promiseData.rejecter = reject;\n\t            });\n\t        }\n\n\t        /*********************\n\t           Action Detection\n\t        *********************/\n\n\t        /* Velocity's behavior is categorized into \"actions\": Elements can either be specially scrolled into view,\n\t           or they can be started, stopped, or reversed. If a literal or referenced properties map is passed in as Velocity's\n\t           first argument, the associated action is \"start\". Alternatively, \"scroll\", \"reverse\", or \"stop\" can be passed in instead of a properties map. */\n\t        var action;\n\n\t        switch (propertiesMap) {\n\t            case \"scroll\":\n\t                action = \"scroll\";\n\t                break;\n\n\t            case \"reverse\":\n\t                action = \"reverse\";\n\t                break;\n\n\t            case \"finish\":\n\t            case \"finishAll\":\n\t            case \"stop\":\n\t                /*******************\n\t                    Action: Stop\n\t                *******************/\n\n\t                /* Clear the currently-active delay on each targeted element. */\n\t                $.each(elements, function(i, element) {\n\t                    if (Data(element) && Data(element).delayTimer) {\n\t                        /* Stop the timer from triggering its cached next() function. */\n\t                        clearTimeout(Data(element).delayTimer.setTimeout);\n\n\t                        /* Manually call the next() function so that the subsequent queue items can progress. */\n\t                        if (Data(element).delayTimer.next) {\n\t                            Data(element).delayTimer.next();\n\t                        }\n\n\t                        delete Data(element).delayTimer;\n\t                    }\n\n\t                    /* If we want to finish everything in the queue, we have to iterate through it\n\t                       and call each function. This will make them active calls below, which will\n\t                       cause them to be applied via the duration setting. */\n\t                    if (propertiesMap === \"finishAll\" && (options === true || Type.isString(options))) {\n\t                        /* Iterate through the items in the element's queue. */\n\t                        $.each($.queue(element, Type.isString(options) ? options : \"\"), function(_, item) {\n\t                            /* The queue array can contain an \"inprogress\" string, which we skip. */\n\t                            if (Type.isFunction(item)) {\n\t                                item();\n\t                            }\n\t                        });\n\n\t                        /* Clearing the $.queue() array is achieved by resetting it to []. */\n\t                        $.queue(element, Type.isString(options) ? options : \"\", []);\n\t                    }\n\t                });\n\n\t                var callsToStop = [];\n\n\t                /* When the stop action is triggered, the elements' currently active call is immediately stopped. The active call might have\n\t                   been applied to multiple elements, in which case all of the call's elements will be stopped. When an element\n\t                   is stopped, the next item in its animation queue is immediately triggered. */\n\t                /* An additional argument may be passed in to clear an element's remaining queued calls. Either true (which defaults to the \"fx\" queue)\n\t                   or a custom queue string can be passed in. */\n\t                /* Note: The stop command runs prior to Velocity's Queueing phase since its behavior is intended to take effect *immediately*,\n\t                   regardless of the element's current queue state. */\n\n\t                /* Iterate through every active call. */\n\t                $.each(Velocity.State.calls, function(i, activeCall) {\n\t                    /* Inactive calls are set to false by the logic inside completeCall(). Skip them. */\n\t                    if (activeCall) {\n\t                        /* Iterate through the active call's targeted elements. */\n\t                        $.each(activeCall[1], function(k, activeElement) {\n\t                            /* If true was passed in as a secondary argument, clear absolutely all calls on this element. Otherwise, only\n\t                               clear calls associated with the relevant queue. */\n\t                            /* Call stopping logic works as follows:\n\t                               - options === true --> stop current default queue calls (and queue:false calls), including remaining queued ones.\n\t                               - options === undefined --> stop current queue:\"\" call and all queue:false calls.\n\t                               - options === false --> stop only queue:false calls.\n\t                               - options === \"custom\" --> stop current queue:\"custom\" call, including remaining queued ones (there is no functionality to only clear the currently-running queue:\"custom\" call). */\n\t                            var queueName = (options === undefined) ? \"\" : options;\n\n\t                            if (queueName !== true && (activeCall[2].queue !== queueName) && !(options === undefined && activeCall[2].queue === false)) {\n\t                                return true;\n\t                            }\n\n\t                            /* Iterate through the calls targeted by the stop command. */\n\t                            $.each(elements, function(l, element) {\n\t                                /* Check that this call was applied to the target element. */\n\t                                if (element === activeElement) {\n\t                                    /* Optionally clear the remaining queued calls. If we're doing \"finishAll\" this won't find anything,\n\t                                       due to the queue-clearing above. */\n\t                                    if (options === true || Type.isString(options)) {\n\t                                        /* Iterate through the items in the element's queue. */\n\t                                        $.each($.queue(element, Type.isString(options) ? options : \"\"), function(_, item) {\n\t                                            /* The queue array can contain an \"inprogress\" string, which we skip. */\n\t                                            if (Type.isFunction(item)) {\n\t                                                /* Pass the item's callback a flag indicating that we want to abort from the queue call.\n\t                                                   (Specifically, the queue will resolve the call's associated promise then abort.)  */\n\t                                                item(null, true);\n\t                                            }\n\t                                        });\n\n\t                                        /* Clearing the $.queue() array is achieved by resetting it to []. */\n\t                                        $.queue(element, Type.isString(options) ? options : \"\", []);\n\t                                    }\n\n\t                                    if (propertiesMap === \"stop\") {\n\t                                        /* Since \"reverse\" uses cached start values (the previous call's endValues), these values must be\n\t                                           changed to reflect the final value that the elements were actually tweened to. */\n\t                                        /* Note: If only queue:false animations are currently running on an element, it won't have a tweensContainer\n\t                                           object. Also, queue:false animations can't be reversed. */\n\t                                        if (Data(element) && Data(element).tweensContainer && queueName !== false) {\n\t                                            $.each(Data(element).tweensContainer, function(m, activeTween) {\n\t                                                activeTween.endValue = activeTween.currentValue;\n\t                                            });\n\t                                        }\n\n\t                                        callsToStop.push(i);\n\t                                    } else if (propertiesMap === \"finish\" || propertiesMap === \"finishAll\") {\n\t                                        /* To get active tweens to finish immediately, we forcefully shorten their durations to 1ms so that\n\t                                        they finish upon the next rAf tick then proceed with normal call completion logic. */\n\t                                        activeCall[2].duration = 1;\n\t                                    }\n\t                                }\n\t                            });\n\t                        });\n\t                    }\n\t                });\n\n\t                /* Prematurely call completeCall() on each matched active call. Pass an additional flag for \"stop\" to indicate\n\t                   that the complete callback and display:none setting should be skipped since we're completing prematurely. */\n\t                if (propertiesMap === \"stop\") {\n\t                    $.each(callsToStop, function(i, j) {\n\t                        completeCall(j, true);\n\t                    });\n\n\t                    if (promiseData.promise) {\n\t                        /* Immediately resolve the promise associated with this stop call since stop runs synchronously. */\n\t                        promiseData.resolver(elements);\n\t                    }\n\t                }\n\n\t                /* Since we're stopping, and not proceeding with queueing, exit out of Velocity. */\n\t                return getChain();\n\n\t            default:\n\t                /* Treat a non-empty plain object as a literal properties map. */\n\t                if ($.isPlainObject(propertiesMap) && !Type.isEmptyObject(propertiesMap)) {\n\t                    action = \"start\";\n\n\t                /****************\n\t                    Redirects\n\t                ****************/\n\n\t                /* Check if a string matches a registered redirect (see Redirects above). */\n\t                } else if (Type.isString(propertiesMap) && Velocity.Redirects[propertiesMap]) {\n\t                    var opts = $.extend({}, options),\n\t                        durationOriginal = opts.duration,\n\t                        delayOriginal = opts.delay || 0;\n\n\t                    /* If the backwards option was passed in, reverse the element set so that elements animate from the last to the first. */\n\t                    if (opts.backwards === true) {\n\t                        elements = $.extend(true, [], elements).reverse();\n\t                    }\n\n\t                    /* Individually trigger the redirect for each element in the set to prevent users from having to handle iteration logic in their redirect. */\n\t                    $.each(elements, function(elementIndex, element) {\n\t                        /* If the stagger option was passed in, successively delay each element by the stagger value (in ms). Retain the original delay value. */\n\t                        if (parseFloat(opts.stagger)) {\n\t                            opts.delay = delayOriginal + (parseFloat(opts.stagger) * elementIndex);\n\t                        } else if (Type.isFunction(opts.stagger)) {\n\t                            opts.delay = delayOriginal + opts.stagger.call(element, elementIndex, elementsLength);\n\t                        }\n\n\t                        /* If the drag option was passed in, successively increase/decrease (depending on the presense of opts.backwards)\n\t                           the duration of each element's animation, using floors to prevent producing very short durations. */\n\t                        if (opts.drag) {\n\t                            /* Default the duration of UI pack effects (callouts and transitions) to 1000ms instead of the usual default duration of 400ms. */\n\t                            opts.duration = parseFloat(durationOriginal) || (/^(callout|transition)/.test(propertiesMap) ? 1000 : DURATION_DEFAULT);\n\n\t                            /* For each element, take the greater duration of: A) animation completion percentage relative to the original duration,\n\t                               B) 75% of the original duration, or C) a 200ms fallback (in case duration is already set to a low value).\n\t                               The end result is a baseline of 75% of the redirect's duration that increases/decreases as the end of the element set is approached. */\n\t                            opts.duration = Math.max(opts.duration * (opts.backwards ? 1 - elementIndex/elementsLength : (elementIndex + 1) / elementsLength), opts.duration * 0.75, 200);\n\t                        }\n\n\t                        /* Pass in the call's opts object so that the redirect can optionally extend it. It defaults to an empty object instead of null to\n\t                           reduce the opts checking logic required inside the redirect. */\n\t                        Velocity.Redirects[propertiesMap].call(element, element, opts || {}, elementIndex, elementsLength, elements, promiseData.promise ? promiseData : undefined);\n\t                    });\n\n\t                    /* Since the animation logic resides within the redirect's own code, abort the remainder of this call.\n\t                       (The performance overhead up to this point is virtually non-existant.) */\n\t                    /* Note: The jQuery call chain is kept intact by returning the complete element set. */\n\t                    return getChain();\n\t                } else {\n\t                    var abortError = \"Velocity: First argument (\" + propertiesMap + \") was not a property map, a known action, or a registered redirect. Aborting.\";\n\n\t                    if (promiseData.promise) {\n\t                        promiseData.rejecter(new Error(abortError));\n\t                    } else {\n\t                        console.log(abortError);\n\t                    }\n\n\t                    return getChain();\n\t                }\n\t        }\n\n\t        /**************************\n\t            Call-Wide Variables\n\t        **************************/\n\n\t        /* A container for CSS unit conversion ratios (e.g. %, rem, and em ==> px) that is used to cache ratios across all elements\n\t           being animated in a single Velocity call. Calculating unit ratios necessitates DOM querying and updating, and is therefore\n\t           avoided (via caching) wherever possible. This container is call-wide instead of page-wide to avoid the risk of using stale\n\t           conversion metrics across Velocity animations that are not immediately consecutively chained. */\n\t        var callUnitConversionData = {\n\t                lastParent: null,\n\t                lastPosition: null,\n\t                lastFontSize: null,\n\t                lastPercentToPxWidth: null,\n\t                lastPercentToPxHeight: null,\n\t                lastEmToPx: null,\n\t                remToPx: null,\n\t                vwToPx: null,\n\t                vhToPx: null\n\t            };\n\n\t        /* A container for all the ensuing tween data and metadata associated with this call. This container gets pushed to the page-wide\n\t           Velocity.State.calls array that is processed during animation ticking. */\n\t        var call = [];\n\n\t        /************************\n\t           Element Processing\n\t        ************************/\n\n\t        /* Element processing consists of three parts -- data processing that cannot go stale and data processing that *can* go stale (i.e. third-party style modifications):\n\t           1) Pre-Queueing: Element-wide variables, including the element's data storage, are instantiated. Call options are prepared. If triggered, the Stop action is executed.\n\t           2) Queueing: The logic that runs once this call has reached its point of execution in the element's $.queue() stack. Most logic is placed here to avoid risking it becoming stale.\n\t           3) Pushing: Consolidation of the tween data followed by its push onto the global in-progress calls container.\n\t        */\n\n\t        function processElement () {\n\n\t            /*************************\n\t               Part I: Pre-Queueing\n\t            *************************/\n\n\t            /***************************\n\t               Element-Wide Variables\n\t            ***************************/\n\n\t            var element = this,\n\t                /* The runtime opts object is the extension of the current call's options and Velocity's page-wide option defaults. */\n\t                opts = $.extend({}, Velocity.defaults, options),\n\t                /* A container for the processed data associated with each property in the propertyMap.\n\t                   (Each property in the map produces its own \"tween\".) */\n\t                tweensContainer = {},\n\t                elementUnitConversionData;\n\n\t            /******************\n\t               Element Init\n\t            ******************/\n\n\t            if (Data(element) === undefined) {\n\t                Velocity.init(element);\n\t            }\n\n\t            /******************\n\t               Option: Delay\n\t            ******************/\n\n\t            /* Since queue:false doesn't respect the item's existing queue, we avoid injecting its delay here (it's set later on). */\n\t            /* Note: Velocity rolls its own delay function since jQuery doesn't have a utility alias for $.fn.delay()\n\t               (and thus requires jQuery element creation, which we avoid since its overhead includes DOM querying). */\n\t            if (parseFloat(opts.delay) && opts.queue !== false) {\n\t                $.queue(element, opts.queue, function(next) {\n\t                    /* This is a flag used to indicate to the upcoming completeCall() function that this queue entry was initiated by Velocity. See completeCall() for further details. */\n\t                    Velocity.velocityQueueEntryFlag = true;\n\n\t                    /* The ensuing queue item (which is assigned to the \"next\" argument that $.queue() automatically passes in) will be triggered after a setTimeout delay.\n\t                       The setTimeout is stored so that it can be subjected to clearTimeout() if this animation is prematurely stopped via Velocity's \"stop\" command. */\n\t                    Data(element).delayTimer = {\n\t                        setTimeout: setTimeout(next, parseFloat(opts.delay)),\n\t                        next: next\n\t                    };\n\t                });\n\t            }\n\n\t            /*********************\n\t               Option: Duration\n\t            *********************/\n\n\t            /* Support for jQuery's named durations. */\n\t            switch (opts.duration.toString().toLowerCase()) {\n\t                case \"fast\":\n\t                    opts.duration = 200;\n\t                    break;\n\n\t                case \"normal\":\n\t                    opts.duration = DURATION_DEFAULT;\n\t                    break;\n\n\t                case \"slow\":\n\t                    opts.duration = 600;\n\t                    break;\n\n\t                default:\n\t                    /* Remove the potential \"ms\" suffix and default to 1 if the user is attempting to set a duration of 0 (in order to produce an immediate style change). */\n\t                    opts.duration = parseFloat(opts.duration) || 1;\n\t            }\n\n\t            /************************\n\t               Global Option: Mock\n\t            ************************/\n\n\t            if (Velocity.mock !== false) {\n\t                /* In mock mode, all animations are forced to 1ms so that they occur immediately upon the next rAF tick.\n\t                   Alternatively, a multiplier can be passed in to time remap all delays and durations. */\n\t                if (Velocity.mock === true) {\n\t                    opts.duration = opts.delay = 1;\n\t                } else {\n\t                    opts.duration *= parseFloat(Velocity.mock) || 1;\n\t                    opts.delay *= parseFloat(Velocity.mock) || 1;\n\t                }\n\t            }\n\n\t            /*******************\n\t               Option: Easing\n\t            *******************/\n\n\t            opts.easing = getEasing(opts.easing, opts.duration);\n\n\t            /**********************\n\t               Option: Callbacks\n\t            **********************/\n\n\t            /* Callbacks must functions. Otherwise, default to null. */\n\t            if (opts.begin && !Type.isFunction(opts.begin)) {\n\t                opts.begin = null;\n\t            }\n\n\t            if (opts.progress && !Type.isFunction(opts.progress)) {\n\t                opts.progress = null;\n\t            }\n\n\t            if (opts.complete && !Type.isFunction(opts.complete)) {\n\t                opts.complete = null;\n\t            }\n\n\t            /*********************************\n\t               Option: Display & Visibility\n\t            *********************************/\n\n\t            /* Refer to Velocity's documentation (VelocityJS.org/#displayAndVisibility) for a description of the display and visibility options' behavior. */\n\t            /* Note: We strictly check for undefined instead of falsiness because display accepts an empty string value. */\n\t            if (opts.display !== undefined && opts.display !== null) {\n\t                opts.display = opts.display.toString().toLowerCase();\n\n\t                /* Users can pass in a special \"auto\" value to instruct Velocity to set the element to its default display value. */\n\t                if (opts.display === \"auto\") {\n\t                    opts.display = Velocity.CSS.Values.getDisplayType(element);\n\t                }\n\t            }\n\n\t            if (opts.visibility !== undefined && opts.visibility !== null) {\n\t                opts.visibility = opts.visibility.toString().toLowerCase();\n\t            }\n\n\t            /**********************\n\t               Option: mobileHA\n\t            **********************/\n\n\t            /* When set to true, and if this is a mobile device, mobileHA automatically enables hardware acceleration (via a null transform hack)\n\t               on animating elements. HA is removed from the element at the completion of its animation. */\n\t            /* Note: Android Gingerbread doesn't support HA. If a null transform hack (mobileHA) is in fact set, it will prevent other tranform subproperties from taking effect. */\n\t            /* Note: You can read more about the use of mobileHA in Velocity's documentation: VelocityJS.org/#mobileHA. */\n\t            opts.mobileHA = (opts.mobileHA && Velocity.State.isMobile && !Velocity.State.isGingerbread);\n\n\t            /***********************\n\t               Part II: Queueing\n\t            ***********************/\n\n\t            /* When a set of elements is targeted by a Velocity call, the set is broken up and each element has the current Velocity call individually queued onto it.\n\t               In this way, each element's existing queue is respected; some elements may already be animating and accordingly should not have this current Velocity call triggered immediately. */\n\t            /* In each queue, tween data is processed for each animating property then pushed onto the call-wide calls array. When the last element in the set has had its tweens processed,\n\t               the call array is pushed to Velocity.State.calls for live processing by the requestAnimationFrame tick. */\n\t            function buildQueue (next) {\n\n\t                /*******************\n\t                   Option: Begin\n\t                *******************/\n\n\t                /* The begin callback is fired once per call -- not once per elemenet -- and is passed the full raw DOM element set as both its context and its first argument. */\n\t                if (opts.begin && elementsIndex === 0) {\n\t                    /* We throw callbacks in a setTimeout so that thrown errors don't halt the execution of Velocity itself. */\n\t                    try {\n\t                        opts.begin.call(elements, elements);\n\t                    } catch (error) {\n\t                        setTimeout(function() { throw error; }, 1);\n\t                    }\n\t                }\n\n\t                /*****************************************\n\t                   Tween Data Construction (for Scroll)\n\t                *****************************************/\n\n\t                /* Note: In order to be subjected to chaining and animation options, scroll's tweening is routed through Velocity as if it were a standard CSS property animation. */\n\t                if (action === \"scroll\") {\n\t                    /* The scroll action uniquely takes an optional \"offset\" option -- specified in pixels -- that offsets the targeted scroll position. */\n\t                    var scrollDirection = (/^x$/i.test(opts.axis) ? \"Left\" : \"Top\"),\n\t                        scrollOffset = parseFloat(opts.offset) || 0,\n\t                        scrollPositionCurrent,\n\t                        scrollPositionCurrentAlternate,\n\t                        scrollPositionEnd;\n\n\t                    /* Scroll also uniquely takes an optional \"container\" option, which indicates the parent element that should be scrolled --\n\t                       as opposed to the browser window itself. This is useful for scrolling toward an element that's inside an overflowing parent element. */\n\t                    if (opts.container) {\n\t                        /* Ensure that either a jQuery object or a raw DOM element was passed in. */\n\t                        if (Type.isWrapped(opts.container) || Type.isNode(opts.container)) {\n\t                            /* Extract the raw DOM element from the jQuery wrapper. */\n\t                            opts.container = opts.container[0] || opts.container;\n\t                            /* Note: Unlike other properties in Velocity, the browser's scroll position is never cached since it so frequently changes\n\t                               (due to the user's natural interaction with the page). */\n\t                            scrollPositionCurrent = opts.container[\"scroll\" + scrollDirection]; /* GET */\n\n\t                            /* $.position() values are relative to the container's currently viewable area (without taking into account the container's true dimensions\n\t                               -- say, for example, if the container was not overflowing). Thus, the scroll end value is the sum of the child element's position *and*\n\t                               the scroll container's current scroll position. */\n\t                            scrollPositionEnd = (scrollPositionCurrent + $(element).position()[scrollDirection.toLowerCase()]) + scrollOffset; /* GET */\n\t                        /* If a value other than a jQuery object or a raw DOM element was passed in, default to null so that this option is ignored. */\n\t                        } else {\n\t                            opts.container = null;\n\t                        }\n\t                    } else {\n\t                        /* If the window itself is being scrolled -- not a containing element -- perform a live scroll position lookup using\n\t                           the appropriate cached property names (which differ based on browser type). */\n\t                        scrollPositionCurrent = Velocity.State.scrollAnchor[Velocity.State[\"scrollProperty\" + scrollDirection]]; /* GET */\n\t                        /* When scrolling the browser window, cache the alternate axis's current value since window.scrollTo() doesn't let us change only one value at a time. */\n\t                        scrollPositionCurrentAlternate = Velocity.State.scrollAnchor[Velocity.State[\"scrollProperty\" + (scrollDirection === \"Left\" ? \"Top\" : \"Left\")]]; /* GET */\n\n\t                        /* Unlike $.position(), $.offset() values are relative to the browser window's true dimensions -- not merely its currently viewable area --\n\t                           and therefore end values do not need to be compounded onto current values. */\n\t                        scrollPositionEnd = $(element).offset()[scrollDirection.toLowerCase()] + scrollOffset; /* GET */\n\t                    }\n\n\t                    /* Since there's only one format that scroll's associated tweensContainer can take, we create it manually. */\n\t                    tweensContainer = {\n\t                        scroll: {\n\t                            rootPropertyValue: false,\n\t                            startValue: scrollPositionCurrent,\n\t                            currentValue: scrollPositionCurrent,\n\t                            endValue: scrollPositionEnd,\n\t                            unitType: \"\",\n\t                            easing: opts.easing,\n\t                            scrollData: {\n\t                                container: opts.container,\n\t                                direction: scrollDirection,\n\t                                alternateValue: scrollPositionCurrentAlternate\n\t                            }\n\t                        },\n\t                        element: element\n\t                    };\n\n\t                    if (Velocity.debug) console.log(\"tweensContainer (scroll): \", tweensContainer.scroll, element);\n\n\t                /******************************************\n\t                   Tween Data Construction (for Reverse)\n\t                ******************************************/\n\n\t                /* Reverse acts like a \"start\" action in that a property map is animated toward. The only difference is\n\t                   that the property map used for reverse is the inverse of the map used in the previous call. Thus, we manipulate\n\t                   the previous call to construct our new map: use the previous map's end values as our new map's start values. Copy over all other data. */\n\t                /* Note: Reverse can be directly called via the \"reverse\" parameter, or it can be indirectly triggered via the loop option. (Loops are composed of multiple reverses.) */\n\t                /* Note: Reverse calls do not need to be consecutively chained onto a currently-animating element in order to operate on cached values;\n\t                   there is no harm to reverse being called on a potentially stale data cache since reverse's behavior is simply defined\n\t                   as reverting to the element's values as they were prior to the previous *Velocity* call. */\n\t                } else if (action === \"reverse\") {\n\t                    /* Abort if there is no prior animation data to reverse to. */\n\t                    if (!Data(element).tweensContainer) {\n\t                        /* Dequeue the element so that this queue entry releases itself immediately, allowing subsequent queue entries to run. */\n\t                        $.dequeue(element, opts.queue);\n\n\t                        return;\n\t                    } else {\n\t                        /*********************\n\t                           Options Parsing\n\t                        *********************/\n\n\t                        /* If the element was hidden via the display option in the previous call,\n\t                           revert display to \"auto\" prior to reversal so that the element is visible again. */\n\t                        if (Data(element).opts.display === \"none\") {\n\t                            Data(element).opts.display = \"auto\";\n\t                        }\n\n\t                        if (Data(element).opts.visibility === \"hidden\") {\n\t                            Data(element).opts.visibility = \"visible\";\n\t                        }\n\n\t                        /* If the loop option was set in the previous call, disable it so that \"reverse\" calls aren't recursively generated.\n\t                           Further, remove the previous call's callback options; typically, users do not want these to be refired. */\n\t                        Data(element).opts.loop = false;\n\t                        Data(element).opts.begin = null;\n\t                        Data(element).opts.complete = null;\n\n\t                        /* Since we're extending an opts object that has already been extended with the defaults options object,\n\t                           we remove non-explicitly-defined properties that are auto-assigned values. */\n\t                        if (!options.easing) {\n\t                            delete opts.easing;\n\t                        }\n\n\t                        if (!options.duration) {\n\t                            delete opts.duration;\n\t                        }\n\n\t                        /* The opts object used for reversal is an extension of the options object optionally passed into this\n\t                           reverse call plus the options used in the previous Velocity call. */\n\t                        opts = $.extend({}, Data(element).opts, opts);\n\n\t                        /*************************************\n\t                           Tweens Container Reconstruction\n\t                        *************************************/\n\n\t                        /* Create a deepy copy (indicated via the true flag) of the previous call's tweensContainer. */\n\t                        var lastTweensContainer = $.extend(true, {}, Data(element).tweensContainer);\n\n\t                        /* Manipulate the previous tweensContainer by replacing its end values and currentValues with its start values. */\n\t                        for (var lastTween in lastTweensContainer) {\n\t                            /* In addition to tween data, tweensContainers contain an element property that we ignore here. */\n\t                            if (lastTween !== \"element\") {\n\t                                var lastStartValue = lastTweensContainer[lastTween].startValue;\n\n\t                                lastTweensContainer[lastTween].startValue = lastTweensContainer[lastTween].currentValue = lastTweensContainer[lastTween].endValue;\n\t                                lastTweensContainer[lastTween].endValue = lastStartValue;\n\n\t                                /* Easing is the only option that embeds into the individual tween data (since it can be defined on a per-property basis).\n\t                                   Accordingly, every property's easing value must be updated when an options object is passed in with a reverse call.\n\t                                   The side effect of this extensibility is that all per-property easing values are forcefully reset to the new value. */\n\t                                if (!Type.isEmptyObject(options)) {\n\t                                    lastTweensContainer[lastTween].easing = opts.easing;\n\t                                }\n\n\t                                if (Velocity.debug) console.log(\"reverse tweensContainer (\" + lastTween + \"): \" + JSON.stringify(lastTweensContainer[lastTween]), element);\n\t                            }\n\t                        }\n\n\t                        tweensContainer = lastTweensContainer;\n\t                    }\n\n\t                /*****************************************\n\t                   Tween Data Construction (for Start)\n\t                *****************************************/\n\n\t                } else if (action === \"start\") {\n\n\t                    /*************************\n\t                        Value Transferring\n\t                    *************************/\n\n\t                    /* If this queue entry follows a previous Velocity-initiated queue entry *and* if this entry was created\n\t                       while the element was in the process of being animated by Velocity, then this current call is safe to use\n\t                       the end values from the prior call as its start values. Velocity attempts to perform this value transfer\n\t                       process whenever possible in order to avoid requerying the DOM. */\n\t                    /* If values aren't transferred from a prior call and start values were not forcefed by the user (more on this below),\n\t                       then the DOM is queried for the element's current values as a last resort. */\n\t                    /* Note: Conversely, animation reversal (and looping) *always* perform inter-call value transfers; they never requery the DOM. */\n\t                    var lastTweensContainer;\n\n\t                    /* The per-element isAnimating flag is used to indicate whether it's safe (i.e. the data isn't stale)\n\t                       to transfer over end values to use as start values. If it's set to true and there is a previous\n\t                       Velocity call to pull values from, do so. */\n\t                    if (Data(element).tweensContainer && Data(element).isAnimating === true) {\n\t                        lastTweensContainer = Data(element).tweensContainer;\n\t                    }\n\n\t                    /***************************\n\t                       Tween Data Calculation\n\t                    ***************************/\n\n\t                    /* This function parses property data and defaults endValue, easing, and startValue as appropriate. */\n\t                    /* Property map values can either take the form of 1) a single value representing the end value,\n\t                       or 2) an array in the form of [ endValue, [, easing] [, startValue] ].\n\t                       The optional third parameter is a forcefed startValue to be used instead of querying the DOM for\n\t                       the element's current value. Read Velocity's docmentation to learn more about forcefeeding: VelocityJS.org/#forcefeeding */\n\t                    function parsePropertyValue (valueData, skipResolvingEasing) {\n\t                        var endValue = undefined,\n\t                            easing = undefined,\n\t                            startValue = undefined;\n\n\t                        /* Handle the array format, which can be structured as one of three potential overloads:\n\t                           A) [ endValue, easing, startValue ], B) [ endValue, easing ], or C) [ endValue, startValue ] */\n\t                        if (Type.isArray(valueData)) {\n\t                            /* endValue is always the first item in the array. Don't bother validating endValue's value now\n\t                               since the ensuing property cycling logic does that. */\n\t                            endValue = valueData[0];\n\n\t                            /* Two-item array format: If the second item is a number, function, or hex string, treat it as a\n\t                               start value since easings can only be non-hex strings or arrays. */\n\t                            if ((!Type.isArray(valueData[1]) && /^[\\d-]/.test(valueData[1])) || Type.isFunction(valueData[1]) || CSS.RegEx.isHex.test(valueData[1])) {\n\t                                startValue = valueData[1];\n\t                            /* Two or three-item array: If the second item is a non-hex string or an array, treat it as an easing. */\n\t                            } else if ((Type.isString(valueData[1]) && !CSS.RegEx.isHex.test(valueData[1])) || Type.isArray(valueData[1])) {\n\t                                easing = skipResolvingEasing ? valueData[1] : getEasing(valueData[1], opts.duration);\n\n\t                                /* Don't bother validating startValue's value now since the ensuing property cycling logic inherently does that. */\n\t                                if (valueData[2] !== undefined) {\n\t                                    startValue = valueData[2];\n\t                                }\n\t                            }\n\t                        /* Handle the single-value format. */\n\t                        } else {\n\t                            endValue = valueData;\n\t                        }\n\n\t                        /* Default to the call's easing if a per-property easing type was not defined. */\n\t                        if (!skipResolvingEasing) {\n\t                            easing = easing || opts.easing;\n\t                        }\n\n\t                        /* If functions were passed in as values, pass the function the current element as its context,\n\t                           plus the element's index and the element set's size as arguments. Then, assign the returned value. */\n\t                        if (Type.isFunction(endValue)) {\n\t                            endValue = endValue.call(element, elementsIndex, elementsLength);\n\t                        }\n\n\t                        if (Type.isFunction(startValue)) {\n\t                            startValue = startValue.call(element, elementsIndex, elementsLength);\n\t                        }\n\n\t                        /* Allow startValue to be left as undefined to indicate to the ensuing code that its value was not forcefed. */\n\t                        return [ endValue || 0, easing, startValue ];\n\t                    }\n\n\t                    /* Cycle through each property in the map, looking for shorthand color properties (e.g. \"color\" as opposed to \"colorRed\"). Inject the corresponding\n\t                       colorRed, colorGreen, and colorBlue RGB component tweens into the propertiesMap (which Velocity understands) and remove the shorthand property. */\n\t                    $.each(propertiesMap, function(property, value) {\n\t                        /* Find shorthand color properties that have been passed a hex string. */\n\t                        if (RegExp(\"^\" + CSS.Lists.colors.join(\"$|^\") + \"$\").test(property)) {\n\t                            /* Parse the value data for each shorthand. */\n\t                            var valueData = parsePropertyValue(value, true),\n\t                                endValue = valueData[0],\n\t                                easing = valueData[1],\n\t                                startValue = valueData[2];\n\n\t                            if (CSS.RegEx.isHex.test(endValue)) {\n\t                                /* Convert the hex strings into their RGB component arrays. */\n\t                                var colorComponents = [ \"Red\", \"Green\", \"Blue\" ],\n\t                                    endValueRGB = CSS.Values.hexToRgb(endValue),\n\t                                    startValueRGB = startValue ? CSS.Values.hexToRgb(startValue) : undefined;\n\n\t                                /* Inject the RGB component tweens into propertiesMap. */\n\t                                for (var i = 0; i < colorComponents.length; i++) {\n\t                                    var dataArray = [ endValueRGB[i] ];\n\n\t                                    if (easing) {\n\t                                        dataArray.push(easing);\n\t                                    }\n\n\t                                    if (startValueRGB !== undefined) {\n\t                                        dataArray.push(startValueRGB[i]);\n\t                                    }\n\n\t                                    propertiesMap[property + colorComponents[i]] = dataArray;\n\t                                }\n\n\t                                /* Remove the intermediary shorthand property entry now that we've processed it. */\n\t                                delete propertiesMap[property];\n\t                            }\n\t                        }\n\t                    });\n\n\t                    /* Create a tween out of each property, and append its associated data to tweensContainer. */\n\t                    for (var property in propertiesMap) {\n\n\t                        /**************************\n\t                           Start Value Sourcing\n\t                        **************************/\n\n\t                        /* Parse out endValue, easing, and startValue from the property's data. */\n\t                        var valueData = parsePropertyValue(propertiesMap[property]),\n\t                            endValue = valueData[0],\n\t                            easing = valueData[1],\n\t                            startValue = valueData[2];\n\n\t                        /* Now that the original property name's format has been used for the parsePropertyValue() lookup above,\n\t                           we force the property to its camelCase styling to normalize it for manipulation. */\n\t                        property = CSS.Names.camelCase(property);\n\n\t                        /* In case this property is a hook, there are circumstances where we will intend to work on the hook's root property and not the hooked subproperty. */\n\t                        var rootProperty = CSS.Hooks.getRoot(property),\n\t                            rootPropertyValue = false;\n\n\t                        /* Other than for the dummy tween property, properties that are not supported by the browser (and do not have an associated normalization) will\n\t                           inherently produce no style changes when set, so they are skipped in order to decrease animation tick overhead.\n\t                           Property support is determined via prefixCheck(), which returns a false flag when no supported is detected. */\n\t                        /* Note: Since SVG elements have some of their properties directly applied as HTML attributes,\n\t                           there is no way to check for their explicit browser support, and so we skip skip this check for them. */\n\t                        if (!Data(element).isSVG && rootProperty !== \"tween\" && CSS.Names.prefixCheck(rootProperty)[1] === false && CSS.Normalizations.registered[rootProperty] === undefined) {\n\t                            if (Velocity.debug) console.log(\"Skipping [\" + rootProperty + \"] due to a lack of browser support.\");\n\n\t                            continue;\n\t                        }\n\n\t                        /* If the display option is being set to a non-\"none\" (e.g. \"block\") and opacity (filter on IE<=8) is being\n\t                           animated to an endValue of non-zero, the user's intention is to fade in from invisible, thus we forcefeed opacity\n\t                           a startValue of 0 if its startValue hasn't already been sourced by value transferring or prior forcefeeding. */\n\t                        if (((opts.display !== undefined && opts.display !== null && opts.display !== \"none\") || (opts.visibility !== undefined && opts.visibility !== \"hidden\")) && /opacity|filter/.test(property) && !startValue && endValue !== 0) {\n\t                            startValue = 0;\n\t                        }\n\n\t                        /* If values have been transferred from the previous Velocity call, extract the endValue and rootPropertyValue\n\t                           for all of the current call's properties that were *also* animated in the previous call. */\n\t                        /* Note: Value transferring can optionally be disabled by the user via the _cacheValues option. */\n\t                        if (opts._cacheValues && lastTweensContainer && lastTweensContainer[property]) {\n\t                            if (startValue === undefined) {\n\t                                startValue = lastTweensContainer[property].endValue + lastTweensContainer[property].unitType;\n\t                            }\n\n\t                            /* The previous call's rootPropertyValue is extracted from the element's data cache since that's the\n\t                               instance of rootPropertyValue that gets freshly updated by the tweening process, whereas the rootPropertyValue\n\t                               attached to the incoming lastTweensContainer is equal to the root property's value prior to any tweening. */\n\t                            rootPropertyValue = Data(element).rootPropertyValueCache[rootProperty];\n\t                        /* If values were not transferred from a previous Velocity call, query the DOM as needed. */\n\t                        } else {\n\t                            /* Handle hooked properties. */\n\t                            if (CSS.Hooks.registered[property]) {\n\t                               if (startValue === undefined) {\n\t                                    rootPropertyValue = CSS.getPropertyValue(element, rootProperty); /* GET */\n\t                                    /* Note: The following getPropertyValue() call does not actually trigger a DOM query;\n\t                                       getPropertyValue() will extract the hook from rootPropertyValue. */\n\t                                    startValue = CSS.getPropertyValue(element, property, rootPropertyValue);\n\t                                /* If startValue is already defined via forcefeeding, do not query the DOM for the root property's value;\n\t                                   just grab rootProperty's zero-value template from CSS.Hooks. This overwrites the element's actual\n\t                                   root property value (if one is set), but this is acceptable since the primary reason users forcefeed is\n\t                                   to avoid DOM queries, and thus we likewise avoid querying the DOM for the root property's value. */\n\t                                } else {\n\t                                    /* Grab this hook's zero-value template, e.g. \"0px 0px 0px black\". */\n\t                                    rootPropertyValue = CSS.Hooks.templates[rootProperty][1];\n\t                                }\n\t                            /* Handle non-hooked properties that haven't already been defined via forcefeeding. */\n\t                            } else if (startValue === undefined) {\n\t                                startValue = CSS.getPropertyValue(element, property); /* GET */\n\t                            }\n\t                        }\n\n\t                        /**************************\n\t                           Value Data Extraction\n\t                        **************************/\n\n\t                        var separatedValue,\n\t                            endValueUnitType,\n\t                            startValueUnitType,\n\t                            operator = false;\n\n\t                        /* Separates a property value into its numeric value and its unit type. */\n\t                        function separateValue (property, value) {\n\t                            var unitType,\n\t                                numericValue;\n\n\t                            numericValue = (value || \"0\")\n\t                                .toString()\n\t                                .toLowerCase()\n\t                                /* Match the unit type at the end of the value. */\n\t                                .replace(/[%A-z]+$/, function(match) {\n\t                                    /* Grab the unit type. */\n\t                                    unitType = match;\n\n\t                                    /* Strip the unit type off of value. */\n\t                                    return \"\";\n\t                                });\n\n\t                            /* If no unit type was supplied, assign one that is appropriate for this property (e.g. \"deg\" for rotateZ or \"px\" for width). */\n\t                            if (!unitType) {\n\t                                unitType = CSS.Values.getUnitType(property);\n\t                            }\n\n\t                            return [ numericValue, unitType ];\n\t                        }\n\n\t                        /* Separate startValue. */\n\t                        separatedValue = separateValue(property, startValue);\n\t                        startValue = separatedValue[0];\n\t                        startValueUnitType = separatedValue[1];\n\n\t                        /* Separate endValue, and extract a value operator (e.g. \"+=\", \"-=\") if one exists. */\n\t                        separatedValue = separateValue(property, endValue);\n\t                        endValue = separatedValue[0].replace(/^([+-\\/*])=/, function(match, subMatch) {\n\t                            operator = subMatch;\n\n\t                            /* Strip the operator off of the value. */\n\t                            return \"\";\n\t                        });\n\t                        endValueUnitType = separatedValue[1];\n\n\t                        /* Parse float values from endValue and startValue. Default to 0 if NaN is returned. */\n\t                        startValue = parseFloat(startValue) || 0;\n\t                        endValue = parseFloat(endValue) || 0;\n\n\t                        /***************************************\n\t                           Property-Specific Value Conversion\n\t                        ***************************************/\n\n\t                        /* Custom support for properties that don't actually accept the % unit type, but where pollyfilling is trivial and relatively foolproof. */\n\t                        if (endValueUnitType === \"%\") {\n\t                            /* A %-value fontSize/lineHeight is relative to the parent's fontSize (as opposed to the parent's dimensions),\n\t                               which is identical to the em unit's behavior, so we piggyback off of that. */\n\t                            if (/^(fontSize|lineHeight)$/.test(property)) {\n\t                                /* Convert % into an em decimal value. */\n\t                                endValue = endValue / 100;\n\t                                endValueUnitType = \"em\";\n\t                            /* For scaleX and scaleY, convert the value into its decimal format and strip off the unit type. */\n\t                            } else if (/^scale/.test(property)) {\n\t                                endValue = endValue / 100;\n\t                                endValueUnitType = \"\";\n\t                            /* For RGB components, take the defined percentage of 255 and strip off the unit type. */\n\t                            } else if (/(Red|Green|Blue)$/i.test(property)) {\n\t                                endValue = (endValue / 100) * 255;\n\t                                endValueUnitType = \"\";\n\t                            }\n\t                        }\n\n\t                        /***************************\n\t                           Unit Ratio Calculation\n\t                        ***************************/\n\n\t                        /* When queried, the browser returns (most) CSS property values in pixels. Therefore, if an endValue with a unit type of\n\t                           %, em, or rem is animated toward, startValue must be converted from pixels into the same unit type as endValue in order\n\t                           for value manipulation logic (increment/decrement) to proceed. Further, if the startValue was forcefed or transferred\n\t                           from a previous call, startValue may also not be in pixels. Unit conversion logic therefore consists of two steps:\n\t                           1) Calculating the ratio of %/em/rem/vh/vw relative to pixels\n\t                           2) Converting startValue into the same unit of measurement as endValue based on these ratios. */\n\t                        /* Unit conversion ratios are calculated by inserting a sibling node next to the target node, copying over its position property,\n\t                           setting values with the target unit type then comparing the returned pixel value. */\n\t                        /* Note: Even if only one of these unit types is being animated, all unit ratios are calculated at once since the overhead\n\t                           of batching the SETs and GETs together upfront outweights the potential overhead\n\t                           of layout thrashing caused by re-querying for uncalculated ratios for subsequently-processed properties. */\n\t                        /* Todo: Shift this logic into the calls' first tick instance so that it's synced with RAF. */\n\t                        function calculateUnitRatios () {\n\n\t                            /************************\n\t                                Same Ratio Checks\n\t                            ************************/\n\n\t                            /* The properties below are used to determine whether the element differs sufficiently from this call's\n\t                               previously iterated element to also differ in its unit conversion ratios. If the properties match up with those\n\t                               of the prior element, the prior element's conversion ratios are used. Like most optimizations in Velocity,\n\t                               this is done to minimize DOM querying. */\n\t                            var sameRatioIndicators = {\n\t                                    myParent: element.parentNode || document.body, /* GET */\n\t                                    position: CSS.getPropertyValue(element, \"position\"), /* GET */\n\t                                    fontSize: CSS.getPropertyValue(element, \"fontSize\") /* GET */\n\t                                },\n\t                                /* Determine if the same % ratio can be used. % is based on the element's position value and its parent's width and height dimensions. */\n\t                                samePercentRatio = ((sameRatioIndicators.position === callUnitConversionData.lastPosition) && (sameRatioIndicators.myParent === callUnitConversionData.lastParent)),\n\t                                /* Determine if the same em ratio can be used. em is relative to the element's fontSize. */\n\t                                sameEmRatio = (sameRatioIndicators.fontSize === callUnitConversionData.lastFontSize);\n\n\t                            /* Store these ratio indicators call-wide for the next element to compare against. */\n\t                            callUnitConversionData.lastParent = sameRatioIndicators.myParent;\n\t                            callUnitConversionData.lastPosition = sameRatioIndicators.position;\n\t                            callUnitConversionData.lastFontSize = sameRatioIndicators.fontSize;\n\n\t                            /***************************\n\t                               Element-Specific Units\n\t                            ***************************/\n\n\t                            /* Note: IE8 rounds to the nearest pixel when returning CSS values, thus we perform conversions using a measurement\n\t                               of 100 (instead of 1) to give our ratios a precision of at least 2 decimal values. */\n\t                            var measurement = 100,\n\t                                unitRatios = {};\n\n\t                            if (!sameEmRatio || !samePercentRatio) {\n\t                                var dummy = Data(element).isSVG ? document.createElementNS(\"http://www.w3.org/2000/svg\", \"rect\") : document.createElement(\"div\");\n\n\t                                Velocity.init(dummy);\n\t                                sameRatioIndicators.myParent.appendChild(dummy);\n\n\t                                /* To accurately and consistently calculate conversion ratios, the element's cascaded overflow and box-sizing are stripped.\n\t                                   Similarly, since width/height can be artificially constrained by their min-/max- equivalents, these are controlled for as well. */\n\t                                /* Note: Overflow must be also be controlled for per-axis since the overflow property overwrites its per-axis values. */\n\t                                $.each([ \"overflow\", \"overflowX\", \"overflowY\" ], function(i, property) {\n\t                                    Velocity.CSS.setPropertyValue(dummy, property, \"hidden\");\n\t                                });\n\t                                Velocity.CSS.setPropertyValue(dummy, \"position\", sameRatioIndicators.position);\n\t                                Velocity.CSS.setPropertyValue(dummy, \"fontSize\", sameRatioIndicators.fontSize);\n\t                                Velocity.CSS.setPropertyValue(dummy, \"boxSizing\", \"content-box\");\n\n\t                                /* width and height act as our proxy properties for measuring the horizontal and vertical % ratios. */\n\t                                $.each([ \"minWidth\", \"maxWidth\", \"width\", \"minHeight\", \"maxHeight\", \"height\" ], function(i, property) {\n\t                                    Velocity.CSS.setPropertyValue(dummy, property, measurement + \"%\");\n\t                                });\n\t                                /* paddingLeft arbitrarily acts as our proxy property for the em ratio. */\n\t                                Velocity.CSS.setPropertyValue(dummy, \"paddingLeft\", measurement + \"em\");\n\n\t                                /* Divide the returned value by the measurement to get the ratio between 1% and 1px. Default to 1 since working with 0 can produce Infinite. */\n\t                                unitRatios.percentToPxWidth = callUnitConversionData.lastPercentToPxWidth = (parseFloat(CSS.getPropertyValue(dummy, \"width\", null, true)) || 1) / measurement; /* GET */\n\t                                unitRatios.percentToPxHeight = callUnitConversionData.lastPercentToPxHeight = (parseFloat(CSS.getPropertyValue(dummy, \"height\", null, true)) || 1) / measurement; /* GET */\n\t                                unitRatios.emToPx = callUnitConversionData.lastEmToPx = (parseFloat(CSS.getPropertyValue(dummy, \"paddingLeft\")) || 1) / measurement; /* GET */\n\n\t                                sameRatioIndicators.myParent.removeChild(dummy);\n\t                            } else {\n\t                                unitRatios.emToPx = callUnitConversionData.lastEmToPx;\n\t                                unitRatios.percentToPxWidth = callUnitConversionData.lastPercentToPxWidth;\n\t                                unitRatios.percentToPxHeight = callUnitConversionData.lastPercentToPxHeight;\n\t                            }\n\n\t                            /***************************\n\t                               Element-Agnostic Units\n\t                            ***************************/\n\n\t                            /* Whereas % and em ratios are determined on a per-element basis, the rem unit only needs to be checked\n\t                               once per call since it's exclusively dependant upon document.body's fontSize. If this is the first time\n\t                               that calculateUnitRatios() is being run during this call, remToPx will still be set to its default value of null,\n\t                               so we calculate it now. */\n\t                            if (callUnitConversionData.remToPx === null) {\n\t                                /* Default to browsers' default fontSize of 16px in the case of 0. */\n\t                                callUnitConversionData.remToPx = parseFloat(CSS.getPropertyValue(document.body, \"fontSize\")) || 16; /* GET */\n\t                            }\n\n\t                            /* Similarly, viewport units are %-relative to the window's inner dimensions. */\n\t                            if (callUnitConversionData.vwToPx === null) {\n\t                                callUnitConversionData.vwToPx = parseFloat(window.innerWidth) / 100; /* GET */\n\t                                callUnitConversionData.vhToPx = parseFloat(window.innerHeight) / 100; /* GET */\n\t                            }\n\n\t                            unitRatios.remToPx = callUnitConversionData.remToPx;\n\t                            unitRatios.vwToPx = callUnitConversionData.vwToPx;\n\t                            unitRatios.vhToPx = callUnitConversionData.vhToPx;\n\n\t                            if (Velocity.debug >= 1) console.log(\"Unit ratios: \" + JSON.stringify(unitRatios), element);\n\n\t                            return unitRatios;\n\t                        }\n\n\t                        /********************\n\t                           Unit Conversion\n\t                        ********************/\n\n\t                        /* The * and / operators, which are not passed in with an associated unit, inherently use startValue's unit. Skip value and unit conversion. */\n\t                        if (/[\\/*]/.test(operator)) {\n\t                            endValueUnitType = startValueUnitType;\n\t                        /* If startValue and endValue differ in unit type, convert startValue into the same unit type as endValue so that if endValueUnitType\n\t                           is a relative unit (%, em, rem), the values set during tweening will continue to be accurately relative even if the metrics they depend\n\t                           on are dynamically changing during the course of the animation. Conversely, if we always normalized into px and used px for setting values, the px ratio\n\t                           would become stale if the original unit being animated toward was relative and the underlying metrics change during the animation. */\n\t                        /* Since 0 is 0 in any unit type, no conversion is necessary when startValue is 0 -- we just start at 0 with endValueUnitType. */\n\t                        } else if ((startValueUnitType !== endValueUnitType) && startValue !== 0) {\n\t                            /* Unit conversion is also skipped when endValue is 0, but *startValueUnitType* must be used for tween values to remain accurate. */\n\t                            /* Note: Skipping unit conversion here means that if endValueUnitType was originally a relative unit, the animation won't relatively\n\t                               match the underlying metrics if they change, but this is acceptable since we're animating toward invisibility instead of toward visibility,\n\t                               which remains past the point of the animation's completion. */\n\t                            if (endValue === 0) {\n\t                                endValueUnitType = startValueUnitType;\n\t                            } else {\n\t                                /* By this point, we cannot avoid unit conversion (it's undesirable since it causes layout thrashing).\n\t                                   If we haven't already, we trigger calculateUnitRatios(), which runs once per element per call. */\n\t                                elementUnitConversionData = elementUnitConversionData || calculateUnitRatios();\n\n\t                                /* The following RegEx matches CSS properties that have their % values measured relative to the x-axis. */\n\t                                /* Note: W3C spec mandates that all of margin and padding's properties (even top and bottom) are %-relative to the *width* of the parent element. */\n\t                                var axis = (/margin|padding|left|right|width|text|word|letter/i.test(property) || /X$/.test(property) || property === \"x\") ? \"x\" : \"y\";\n\n\t                                /* In order to avoid generating n^2 bespoke conversion functions, unit conversion is a two-step process:\n\t                                   1) Convert startValue into pixels. 2) Convert this new pixel value into endValue's unit type. */\n\t                                switch (startValueUnitType) {\n\t                                    case \"%\":\n\t                                        /* Note: translateX and translateY are the only properties that are %-relative to an element's own dimensions -- not its parent's dimensions.\n\t                                           Velocity does not include a special conversion process to account for this behavior. Therefore, animating translateX/Y from a % value\n\t                                           to a non-% value will produce an incorrect start value. Fortunately, this sort of cross-unit conversion is rarely done by users in practice. */\n\t                                        startValue *= (axis === \"x\" ? elementUnitConversionData.percentToPxWidth : elementUnitConversionData.percentToPxHeight);\n\t                                        break;\n\n\t                                    case \"px\":\n\t                                        /* px acts as our midpoint in the unit conversion process; do nothing. */\n\t                                        break;\n\n\t                                    default:\n\t                                        startValue *= elementUnitConversionData[startValueUnitType + \"ToPx\"];\n\t                                }\n\n\t                                /* Invert the px ratios to convert into to the target unit. */\n\t                                switch (endValueUnitType) {\n\t                                    case \"%\":\n\t                                        startValue *= 1 / (axis === \"x\" ? elementUnitConversionData.percentToPxWidth : elementUnitConversionData.percentToPxHeight);\n\t                                        break;\n\n\t                                    case \"px\":\n\t                                        /* startValue is already in px, do nothing; we're done. */\n\t                                        break;\n\n\t                                    default:\n\t                                        startValue *= 1 / elementUnitConversionData[endValueUnitType + \"ToPx\"];\n\t                                }\n\t                            }\n\t                        }\n\n\t                        /*********************\n\t                           Relative Values\n\t                        *********************/\n\n\t                        /* Operator logic must be performed last since it requires unit-normalized start and end values. */\n\t                        /* Note: Relative *percent values* do not behave how most people think; while one would expect \"+=50%\"\n\t                           to increase the property 1.5x its current value, it in fact increases the percent units in absolute terms:\n\t                           50 points is added on top of the current % value. */\n\t                        switch (operator) {\n\t                            case \"+\":\n\t                                endValue = startValue + endValue;\n\t                                break;\n\n\t                            case \"-\":\n\t                                endValue = startValue - endValue;\n\t                                break;\n\n\t                            case \"*\":\n\t                                endValue = startValue * endValue;\n\t                                break;\n\n\t                            case \"/\":\n\t                                endValue = startValue / endValue;\n\t                                break;\n\t                        }\n\n\t                        /**************************\n\t                           tweensContainer Push\n\t                        **************************/\n\n\t                        /* Construct the per-property tween object, and push it to the element's tweensContainer. */\n\t                        tweensContainer[property] = {\n\t                            rootPropertyValue: rootPropertyValue,\n\t                            startValue: startValue,\n\t                            currentValue: startValue,\n\t                            endValue: endValue,\n\t                            unitType: endValueUnitType,\n\t                            easing: easing\n\t                        };\n\n\t                        if (Velocity.debug) console.log(\"tweensContainer (\" + property + \"): \" + JSON.stringify(tweensContainer[property]), element);\n\t                    }\n\n\t                    /* Along with its property data, store a reference to the element itself onto tweensContainer. */\n\t                    tweensContainer.element = element;\n\t                }\n\n\t                /*****************\n\t                    Call Push\n\t                *****************/\n\n\t                /* Note: tweensContainer can be empty if all of the properties in this call's property map were skipped due to not\n\t                   being supported by the browser. The element property is used for checking that the tweensContainer has been appended to. */\n\t                if (tweensContainer.element) {\n\t                    /* Apply the \"velocity-animating\" indicator class. */\n\t                    CSS.Values.addClass(element, \"velocity-animating\");\n\n\t                    /* The call array houses the tweensContainers for each element being animated in the current call. */\n\t                    call.push(tweensContainer);\n\n\t                    /* Store the tweensContainer and options if we're working on the default effects queue, so that they can be used by the reverse command. */\n\t                    if (opts.queue === \"\") {\n\t                        Data(element).tweensContainer = tweensContainer;\n\t                        Data(element).opts = opts;\n\t                    }\n\n\t                    /* Switch on the element's animating flag. */\n\t                    Data(element).isAnimating = true;\n\n\t                    /* Once the final element in this call's element set has been processed, push the call array onto\n\t                       Velocity.State.calls for the animation tick to immediately begin processing. */\n\t                    if (elementsIndex === elementsLength - 1) {\n\t                        /* Add the current call plus its associated metadata (the element set and the call's options) onto the global call container.\n\t                           Anything on this call container is subjected to tick() processing. */\n\t                        Velocity.State.calls.push([ call, elements, opts, null, promiseData.resolver ]);\n\n\t                        /* If the animation tick isn't running, start it. (Velocity shuts it off when there are no active calls to process.) */\n\t                        if (Velocity.State.isTicking === false) {\n\t                            Velocity.State.isTicking = true;\n\n\t                            /* Start the tick loop. */\n\t                            tick();\n\t                        }\n\t                    } else {\n\t                        elementsIndex++;\n\t                    }\n\t                }\n\t            }\n\n\t            /* When the queue option is set to false, the call skips the element's queue and fires immediately. */\n\t            if (opts.queue === false) {\n\t                /* Since this buildQueue call doesn't respect the element's existing queue (which is where a delay option would have been appended),\n\t                   we manually inject the delay property here with an explicit setTimeout. */\n\t                if (opts.delay) {\n\t                    setTimeout(buildQueue, opts.delay);\n\t                } else {\n\t                    buildQueue();\n\t                }\n\t            /* Otherwise, the call undergoes element queueing as normal. */\n\t            /* Note: To interoperate with jQuery, Velocity uses jQuery's own $.queue() stack for queuing logic. */\n\t            } else {\n\t                $.queue(element, opts.queue, function(next, clearQueue) {\n\t                    /* If the clearQueue flag was passed in by the stop command, resolve this call's promise. (Promises can only be resolved once,\n\t                       so it's fine if this is repeatedly triggered for each element in the associated call.) */\n\t                    if (clearQueue === true) {\n\t                        if (promiseData.promise) {\n\t                            promiseData.resolver(elements);\n\t                        }\n\n\t                        /* Do not continue with animation queueing. */\n\t                        return true;\n\t                    }\n\n\t                    /* This flag indicates to the upcoming completeCall() function that this queue entry was initiated by Velocity.\n\t                       See completeCall() for further details. */\n\t                    Velocity.velocityQueueEntryFlag = true;\n\n\t                    buildQueue(next);\n\t                });\n\t            }\n\n\t            /*********************\n\t                Auto-Dequeuing\n\t            *********************/\n\n\t            /* As per jQuery's $.queue() behavior, to fire the first non-custom-queue entry on an element, the element\n\t               must be dequeued if its queue stack consists *solely* of the current call. (This can be determined by checking\n\t               for the \"inprogress\" item that jQuery prepends to active queue stack arrays.) Regardless, whenever the element's\n\t               queue is further appended with additional items -- including $.delay()'s or even $.animate() calls, the queue's\n\t               first entry is automatically fired. This behavior contrasts that of custom queues, which never auto-fire. */\n\t            /* Note: When an element set is being subjected to a non-parallel Velocity call, the animation will not begin until\n\t               each one of the elements in the set has reached the end of its individually pre-existing queue chain. */\n\t            /* Note: Unfortunately, most people don't fully grasp jQuery's powerful, yet quirky, $.queue() function.\n\t               Lean more here: http://stackoverflow.com/questions/1058158/can-somebody-explain-jquery-queue-to-me */\n\t            if ((opts.queue === \"\" || opts.queue === \"fx\") && $.queue(element)[0] !== \"inprogress\") {\n\t                $.dequeue(element);\n\t            }\n\t        }\n\n\t        /**************************\n\t           Element Set Iteration\n\t        **************************/\n\n\t        /* If the \"nodeType\" property exists on the elements variable, we're animating a single element.\n\t           Place it in an array so that $.each() can iterate over it. */\n\t        $.each(elements, function(i, element) {\n\t            /* Ensure each element in a set has a nodeType (is a real element) to avoid throwing errors. */\n\t            if (Type.isNode(element)) {\n\t                processElement.call(element);\n\t            }\n\t        });\n\n\t        /******************\n\t           Option: Loop\n\t        ******************/\n\n\t        /* The loop option accepts an integer indicating how many times the element should loop between the values in the\n\t           current call's properties map and the element's property values prior to this call. */\n\t        /* Note: The loop option's logic is performed here -- after element processing -- because the current call needs\n\t           to undergo its queue insertion prior to the loop option generating its series of constituent \"reverse\" calls,\n\t           which chain after the current call. Two reverse calls (two \"alternations\") constitute one loop. */\n\t        var opts = $.extend({}, Velocity.defaults, options),\n\t            reverseCallsCount;\n\n\t        opts.loop = parseInt(opts.loop);\n\t        reverseCallsCount = (opts.loop * 2) - 1;\n\n\t        if (opts.loop) {\n\t            /* Double the loop count to convert it into its appropriate number of \"reverse\" calls.\n\t               Subtract 1 from the resulting value since the current call is included in the total alternation count. */\n\t            for (var x = 0; x < reverseCallsCount; x++) {\n\t                /* Since the logic for the reverse action occurs inside Queueing and therefore this call's options object\n\t                   isn't parsed until then as well, the current call's delay option must be explicitly passed into the reverse\n\t                   call so that the delay logic that occurs inside *Pre-Queueing* can process it. */\n\t                var reverseOptions = {\n\t                    delay: opts.delay,\n\t                    progress: opts.progress\n\t                };\n\n\t                /* If a complete callback was passed into this call, transfer it to the loop redirect's final \"reverse\" call\n\t                   so that it's triggered when the entire redirect is complete (and not when the very first animation is complete). */\n\t                if (x === reverseCallsCount - 1) {\n\t                    reverseOptions.display = opts.display;\n\t                    reverseOptions.visibility = opts.visibility;\n\t                    reverseOptions.complete = opts.complete;\n\t                }\n\n\t                animate(elements, \"reverse\", reverseOptions);\n\t            }\n\t        }\n\n\t        /***************\n\t            Chaining\n\t        ***************/\n\n\t        /* Return the elements back to the call chain, with wrapped elements taking precedence in case Velocity was called via the $.fn. extension. */\n\t        return getChain();\n\t    };\n\n\t    /* Turn Velocity into the animation function, extended with the pre-existing Velocity object. */\n\t    Velocity = $.extend(animate, Velocity);\n\t    /* For legacy support, also expose the literal animate method. */\n\t    Velocity.animate = animate;\n\n\t    /**************\n\t        Timing\n\t    **************/\n\n\t    /* Ticker function. */\n\t    var ticker = window.requestAnimationFrame || rAFShim;\n\n\t    /* Inactive browser tabs pause rAF, which results in all active animations immediately sprinting to their completion states when the tab refocuses.\n\t       To get around this, we dynamically switch rAF to setTimeout (which the browser *doesn't* pause) when the tab loses focus. We skip this for mobile\n\t       devices to avoid wasting battery power on inactive tabs. */\n\t    /* Note: Tab focus detection doesn't work on older versions of IE, but that's okay since they don't support rAF to begin with. */\n\t    if (!Velocity.State.isMobile && document.hidden !== undefined) {\n\t        document.addEventListener(\"visibilitychange\", function() {\n\t            /* Reassign the rAF function (which the global tick() function uses) based on the tab's focus state. */\n\t            if (document.hidden) {\n\t                ticker = function(callback) {\n\t                    /* The tick function needs a truthy first argument in order to pass its internal timestamp check. */\n\t                    return setTimeout(function() { callback(true) }, 16);\n\t                };\n\n\t                /* The rAF loop has been paused by the browser, so we manually restart the tick. */\n\t                tick();\n\t            } else {\n\t                ticker = window.requestAnimationFrame || rAFShim;\n\t            }\n\t        });\n\t    }\n\n\t    /************\n\t        Tick\n\t    ************/\n\n\t    /* Note: All calls to Velocity are pushed to the Velocity.State.calls array, which is fully iterated through upon each tick. */\n\t    function tick (timestamp) {\n\t        /* An empty timestamp argument indicates that this is the first tick occurence since ticking was turned on.\n\t           We leverage this metadata to fully ignore the first tick pass since RAF's initial pass is fired whenever\n\t           the browser's next tick sync time occurs, which results in the first elements subjected to Velocity\n\t           calls being animated out of sync with any elements animated immediately thereafter. In short, we ignore\n\t           the first RAF tick pass so that elements being immediately consecutively animated -- instead of simultaneously animated\n\t           by the same Velocity call -- are properly batched into the same initial RAF tick and consequently remain in sync thereafter. */\n\t        if (timestamp) {\n\t            /* We ignore RAF's high resolution timestamp since it can be significantly offset when the browser is\n\t               under high stress; we opt for choppiness over allowing the browser to drop huge chunks of frames. */\n\t            var timeCurrent = (new Date).getTime();\n\n\t            /********************\n\t               Call Iteration\n\t            ********************/\n\n\t            var callsLength = Velocity.State.calls.length;\n\n\t            /* To speed up iterating over this array, it is compacted (falsey items -- calls that have completed -- are removed)\n\t               when its length has ballooned to a point that can impact tick performance. This only becomes necessary when animation\n\t               has been continuous with many elements over a long period of time; whenever all active calls are completed, completeCall() clears Velocity.State.calls. */\n\t            if (callsLength > 10000) {\n\t                Velocity.State.calls = compactSparseArray(Velocity.State.calls);\n\t            }\n\n\t            /* Iterate through each active call. */\n\t            for (var i = 0; i < callsLength; i++) {\n\t                /* When a Velocity call is completed, its Velocity.State.calls entry is set to false. Continue on to the next call. */\n\t                if (!Velocity.State.calls[i]) {\n\t                    continue;\n\t                }\n\n\t                /************************\n\t                   Call-Wide Variables\n\t                ************************/\n\n\t                var callContainer = Velocity.State.calls[i],\n\t                    call = callContainer[0],\n\t                    opts = callContainer[2],\n\t                    timeStart = callContainer[3],\n\t                    firstTick = !!timeStart,\n\t                    tweenDummyValue = null;\n\n\t                /* If timeStart is undefined, then this is the first time that this call has been processed by tick().\n\t                   We assign timeStart now so that its value is as close to the real animation start time as possible.\n\t                   (Conversely, had timeStart been defined when this call was added to Velocity.State.calls, the delay\n\t                   between that time and now would cause the first few frames of the tween to be skipped since\n\t                   percentComplete is calculated relative to timeStart.) */\n\t                /* Further, subtract 16ms (the approximate resolution of RAF) from the current time value so that the\n\t                   first tick iteration isn't wasted by animating at 0% tween completion, which would produce the\n\t                   same style value as the element's current value. */\n\t                if (!timeStart) {\n\t                    timeStart = Velocity.State.calls[i][3] = timeCurrent - 16;\n\t                }\n\n\t                /* The tween's completion percentage is relative to the tween's start time, not the tween's start value\n\t                   (which would result in unpredictable tween durations since JavaScript's timers are not particularly accurate).\n\t                   Accordingly, we ensure that percentComplete does not exceed 1. */\n\t                var percentComplete = Math.min((timeCurrent - timeStart) / opts.duration, 1);\n\n\t                /**********************\n\t                   Element Iteration\n\t                **********************/\n\n\t                /* For every call, iterate through each of the elements in its set. */\n\t                for (var j = 0, callLength = call.length; j < callLength; j++) {\n\t                    var tweensContainer = call[j],\n\t                        element = tweensContainer.element;\n\n\t                    /* Check to see if this element has been deleted midway through the animation by checking for the\n\t                       continued existence of its data cache. If it's gone, skip animating this element. */\n\t                    if (!Data(element)) {\n\t                        continue;\n\t                    }\n\n\t                    var transformPropertyExists = false;\n\n\t                    /**********************************\n\t                       Display & Visibility Toggling\n\t                    **********************************/\n\n\t                    /* If the display option is set to non-\"none\", set it upfront so that the element can become visible before tweening begins.\n\t                       (Otherwise, display's \"none\" value is set in completeCall() once the animation has completed.) */\n\t                    if (opts.display !== undefined && opts.display !== null && opts.display !== \"none\") {\n\t                        if (opts.display === \"flex\") {\n\t                            var flexValues = [ \"-webkit-box\", \"-moz-box\", \"-ms-flexbox\", \"-webkit-flex\" ];\n\n\t                            $.each(flexValues, function(i, flexValue) {\n\t                                CSS.setPropertyValue(element, \"display\", flexValue);\n\t                            });\n\t                        }\n\n\t                        CSS.setPropertyValue(element, \"display\", opts.display);\n\t                    }\n\n\t                    /* Same goes with the visibility option, but its \"none\" equivalent is \"hidden\". */\n\t                    if (opts.visibility !== undefined && opts.visibility !== \"hidden\") {\n\t                        CSS.setPropertyValue(element, \"visibility\", opts.visibility);\n\t                    }\n\n\t                    /************************\n\t                       Property Iteration\n\t                    ************************/\n\n\t                    /* For every element, iterate through each property. */\n\t                    for (var property in tweensContainer) {\n\t                        /* Note: In addition to property tween data, tweensContainer contains a reference to its associated element. */\n\t                        if (property !== \"element\") {\n\t                            var tween = tweensContainer[property],\n\t                                currentValue,\n\t                                /* Easing can either be a pre-genereated function or a string that references a pre-registered easing\n\t                                   on the Velocity.Easings object. In either case, return the appropriate easing *function*. */\n\t                                easing = Type.isString(tween.easing) ? Velocity.Easings[tween.easing] : tween.easing;\n\n\t                            /******************************\n\t                               Current Value Calculation\n\t                            ******************************/\n\n\t                            /* If this is the last tick pass (if we've reached 100% completion for this tween),\n\t                               ensure that currentValue is explicitly set to its target endValue so that it's not subjected to any rounding. */\n\t                            if (percentComplete === 1) {\n\t                                currentValue = tween.endValue;\n\t                            /* Otherwise, calculate currentValue based on the current delta from startValue. */\n\t                            } else {\n\t                                var tweenDelta = tween.endValue - tween.startValue;\n\t                                currentValue = tween.startValue + (tweenDelta * easing(percentComplete, opts, tweenDelta));\n\n\t                                /* If no value change is occurring, don't proceed with DOM updating. */\n\t                                if (!firstTick && (currentValue === tween.currentValue)) {\n\t                                    continue;\n\t                                }\n\t                            }\n\n\t                            tween.currentValue = currentValue;\n\n\t                            /* If we're tweening a fake 'tween' property in order to log transition values, update the one-per-call variable so that\n\t                               it can be passed into the progress callback. */\n\t                            if (property === \"tween\") {\n\t                                tweenDummyValue = currentValue;\n\t                            } else {\n\t                                /******************\n\t                                   Hooks: Part I\n\t                                ******************/\n\n\t                                /* For hooked properties, the newly-updated rootPropertyValueCache is cached onto the element so that it can be used\n\t                                   for subsequent hooks in this call that are associated with the same root property. If we didn't cache the updated\n\t                                   rootPropertyValue, each subsequent update to the root property in this tick pass would reset the previous hook's\n\t                                   updates to rootPropertyValue prior to injection. A nice performance byproduct of rootPropertyValue caching is that\n\t                                   subsequently chained animations using the same hookRoot but a different hook can use this cached rootPropertyValue. */\n\t                                if (CSS.Hooks.registered[property]) {\n\t                                    var hookRoot = CSS.Hooks.getRoot(property),\n\t                                        rootPropertyValueCache = Data(element).rootPropertyValueCache[hookRoot];\n\n\t                                    if (rootPropertyValueCache) {\n\t                                        tween.rootPropertyValue = rootPropertyValueCache;\n\t                                    }\n\t                                }\n\n\t                                /*****************\n\t                                    DOM Update\n\t                                *****************/\n\n\t                                /* setPropertyValue() returns an array of the property name and property value post any normalization that may have been performed. */\n\t                                /* Note: To solve an IE<=8 positioning bug, the unit type is dropped when setting a property value of 0. */\n\t                                var adjustedSetData = CSS.setPropertyValue(element, /* SET */\n\t                                                                           property,\n\t                                                                           tween.currentValue + (parseFloat(currentValue) === 0 ? \"\" : tween.unitType),\n\t                                                                           tween.rootPropertyValue,\n\t                                                                           tween.scrollData);\n\n\t                                /*******************\n\t                                   Hooks: Part II\n\t                                *******************/\n\n\t                                /* Now that we have the hook's updated rootPropertyValue (the post-processed value provided by adjustedSetData), cache it onto the element. */\n\t                                if (CSS.Hooks.registered[property]) {\n\t                                    /* Since adjustedSetData contains normalized data ready for DOM updating, the rootPropertyValue needs to be re-extracted from its normalized form. ?? */\n\t                                    if (CSS.Normalizations.registered[hookRoot]) {\n\t                                        Data(element).rootPropertyValueCache[hookRoot] = CSS.Normalizations.registered[hookRoot](\"extract\", null, adjustedSetData[1]);\n\t                                    } else {\n\t                                        Data(element).rootPropertyValueCache[hookRoot] = adjustedSetData[1];\n\t                                    }\n\t                                }\n\n\t                                /***************\n\t                                   Transforms\n\t                                ***************/\n\n\t                                /* Flag whether a transform property is being animated so that flushTransformCache() can be triggered once this tick pass is complete. */\n\t                                if (adjustedSetData[0] === \"transform\") {\n\t                                    transformPropertyExists = true;\n\t                                }\n\n\t                            }\n\t                        }\n\t                    }\n\n\t                    /****************\n\t                        mobileHA\n\t                    ****************/\n\n\t                    /* If mobileHA is enabled, set the translate3d transform to null to force hardware acceleration.\n\t                       It's safe to override this property since Velocity doesn't actually support its animation (hooks are used in its place). */\n\t                    if (opts.mobileHA) {\n\t                        /* Don't set the null transform hack if we've already done so. */\n\t                        if (Data(element).transformCache.translate3d === undefined) {\n\t                            /* All entries on the transformCache object are later concatenated into a single transform string via flushTransformCache(). */\n\t                            Data(element).transformCache.translate3d = \"(0px, 0px, 0px)\";\n\n\t                            transformPropertyExists = true;\n\t                        }\n\t                    }\n\n\t                    if (transformPropertyExists) {\n\t                        CSS.flushTransformCache(element);\n\t                    }\n\t                }\n\n\t                /* The non-\"none\" display value is only applied to an element once -- when its associated call is first ticked through.\n\t                   Accordingly, it's set to false so that it isn't re-processed by this call in the next tick. */\n\t                if (opts.display !== undefined && opts.display !== \"none\") {\n\t                    Velocity.State.calls[i][2].display = false;\n\t                }\n\t                if (opts.visibility !== undefined && opts.visibility !== \"hidden\") {\n\t                    Velocity.State.calls[i][2].visibility = false;\n\t                }\n\n\t                /* Pass the elements and the timing data (percentComplete, msRemaining, timeStart, tweenDummyValue) into the progress callback. */\n\t                if (opts.progress) {\n\t                    opts.progress.call(callContainer[1],\n\t                                       callContainer[1],\n\t                                       percentComplete,\n\t                                       Math.max(0, (timeStart + opts.duration) - timeCurrent),\n\t                                       timeStart,\n\t                                       tweenDummyValue);\n\t                }\n\n\t                /* If this call has finished tweening, pass its index to completeCall() to handle call cleanup. */\n\t                if (percentComplete === 1) {\n\t                    completeCall(i);\n\t                }\n\t            }\n\t        }\n\n\t        /* Note: completeCall() sets the isTicking flag to false when the last call on Velocity.State.calls has completed. */\n\t        if (Velocity.State.isTicking) {\n\t            ticker(tick);\n\t        }\n\t    }\n\n\t    /**********************\n\t        Call Completion\n\t    **********************/\n\n\t    /* Note: Unlike tick(), which processes all active calls at once, call completion is handled on a per-call basis. */\n\t    function completeCall (callIndex, isStopped) {\n\t        /* Ensure the call exists. */\n\t        if (!Velocity.State.calls[callIndex]) {\n\t            return false;\n\t        }\n\n\t        /* Pull the metadata from the call. */\n\t        var call = Velocity.State.calls[callIndex][0],\n\t            elements = Velocity.State.calls[callIndex][1],\n\t            opts = Velocity.State.calls[callIndex][2],\n\t            resolver = Velocity.State.calls[callIndex][4];\n\n\t        var remainingCallsExist = false;\n\n\t        /*************************\n\t           Element Finalization\n\t        *************************/\n\n\t        for (var i = 0, callLength = call.length; i < callLength; i++) {\n\t            var element = call[i].element;\n\n\t            /* If the user set display to \"none\" (intending to hide the element), set it now that the animation has completed. */\n\t            /* Note: display:none isn't set when calls are manually stopped (via Velocity(\"stop\"). */\n\t            /* Note: Display gets ignored with \"reverse\" calls and infinite loops, since this behavior would be undesirable. */\n\t            if (!isStopped && !opts.loop) {\n\t                if (opts.display === \"none\") {\n\t                    CSS.setPropertyValue(element, \"display\", opts.display);\n\t                }\n\n\t                if (opts.visibility === \"hidden\") {\n\t                    CSS.setPropertyValue(element, \"visibility\", opts.visibility);\n\t                }\n\t            }\n\n\t            /* If the element's queue is empty (if only the \"inprogress\" item is left at position 0) or if its queue is about to run\n\t               a non-Velocity-initiated entry, turn off the isAnimating flag. A non-Velocity-initiatied queue entry's logic might alter\n\t               an element's CSS values and thereby cause Velocity's cached value data to go stale. To detect if a queue entry was initiated by Velocity,\n\t               we check for the existence of our special Velocity.queueEntryFlag declaration, which minifiers won't rename since the flag\n\t               is assigned to jQuery's global $ object and thus exists out of Velocity's own scope. */\n\t            if (opts.loop !== true && ($.queue(element)[1] === undefined || !/\\.velocityQueueEntryFlag/i.test($.queue(element)[1]))) {\n\t                /* The element may have been deleted. Ensure that its data cache still exists before acting on it. */\n\t                if (Data(element)) {\n\t                    Data(element).isAnimating = false;\n\t                    /* Clear the element's rootPropertyValueCache, which will become stale. */\n\t                    Data(element).rootPropertyValueCache = {};\n\n\t                    var transformHAPropertyExists = false;\n\t                    /* If any 3D transform subproperty is at its default value (regardless of unit type), remove it. */\n\t                    $.each(CSS.Lists.transforms3D, function(i, transformName) {\n\t                        var defaultValue = /^scale/.test(transformName) ? 1 : 0,\n\t                            currentValue = Data(element).transformCache[transformName];\n\n\t                        if (Data(element).transformCache[transformName] !== undefined && new RegExp(\"^\\\\(\" + defaultValue + \"[^.]\").test(currentValue)) {\n\t                            transformHAPropertyExists = true;\n\n\t                            delete Data(element).transformCache[transformName];\n\t                        }\n\t                    });\n\n\t                    /* Mobile devices have hardware acceleration removed at the end of the animation in order to avoid hogging the GPU's memory. */\n\t                    if (opts.mobileHA) {\n\t                        transformHAPropertyExists = true;\n\t                        delete Data(element).transformCache.translate3d;\n\t                    }\n\n\t                    /* Flush the subproperty removals to the DOM. */\n\t                    if (transformHAPropertyExists) {\n\t                        CSS.flushTransformCache(element);\n\t                    }\n\n\t                    /* Remove the \"velocity-animating\" indicator class. */\n\t                    CSS.Values.removeClass(element, \"velocity-animating\");\n\t                }\n\t            }\n\n\t            /*********************\n\t               Option: Complete\n\t            *********************/\n\n\t            /* Complete is fired once per call (not once per element) and is passed the full raw DOM element set as both its context and its first argument. */\n\t            /* Note: Callbacks aren't fired when calls are manually stopped (via Velocity(\"stop\"). */\n\t            if (!isStopped && opts.complete && !opts.loop && (i === callLength - 1)) {\n\t                /* We throw callbacks in a setTimeout so that thrown errors don't halt the execution of Velocity itself. */\n\t                try {\n\t                    opts.complete.call(elements, elements);\n\t                } catch (error) {\n\t                    setTimeout(function() { throw error; }, 1);\n\t                }\n\t            }\n\n\t            /**********************\n\t               Promise Resolving\n\t            **********************/\n\n\t            /* Note: Infinite loops don't return promises. */\n\t            if (resolver && opts.loop !== true) {\n\t                resolver(elements);\n\t            }\n\n\t            /****************************\n\t               Option: Loop (Infinite)\n\t            ****************************/\n\n\t            if (Data(element) && opts.loop === true && !isStopped) {\n\t                /* If a rotateX/Y/Z property is being animated to 360 deg with loop:true, swap tween start/end values to enable\n\t                   continuous iterative rotation looping. (Otherise, the element would just rotate back and forth.) */\n\t                $.each(Data(element).tweensContainer, function(propertyName, tweenContainer) {\n\t                    if (/^rotate/.test(propertyName) && parseFloat(tweenContainer.endValue) === 360) {\n\t                        tweenContainer.endValue = 0;\n\t                        tweenContainer.startValue = 360;\n\t                    }\n\n\t                    if (/^backgroundPosition/.test(propertyName) && parseFloat(tweenContainer.endValue) === 100 && tweenContainer.unitType === \"%\") {\n\t                        tweenContainer.endValue = 0;\n\t                        tweenContainer.startValue = 100;\n\t                    }\n\t                });\n\n\t                Velocity(element, \"reverse\", { loop: true, delay: opts.delay });\n\t            }\n\n\t            /***************\n\t               Dequeueing\n\t            ***************/\n\n\t            /* Fire the next call in the queue so long as this call's queue wasn't set to false (to trigger a parallel animation),\n\t               which would have already caused the next call to fire. Note: Even if the end of the animation queue has been reached,\n\t               $.dequeue() must still be called in order to completely clear jQuery's animation queue. */\n\t            if (opts.queue !== false) {\n\t                $.dequeue(element, opts.queue);\n\t            }\n\t        }\n\n\t        /************************\n\t           Calls Array Cleanup\n\t        ************************/\n\n\t        /* Since this call is complete, set it to false so that the rAF tick skips it. This array is later compacted via compactSparseArray().\n\t          (For performance reasons, the call is set to false instead of being deleted from the array: http://www.html5rocks.com/en/tutorials/speed/v8/) */\n\t        Velocity.State.calls[callIndex] = false;\n\n\t        /* Iterate through the calls array to determine if this was the final in-progress animation.\n\t           If so, set a flag to end ticking and clear the calls array. */\n\t        for (var j = 0, callsLength = Velocity.State.calls.length; j < callsLength; j++) {\n\t            if (Velocity.State.calls[j] !== false) {\n\t                remainingCallsExist = true;\n\n\t                break;\n\t            }\n\t        }\n\n\t        if (remainingCallsExist === false) {\n\t            /* tick() will detect this flag upon its next iteration and subsequently turn itself off. */\n\t            Velocity.State.isTicking = false;\n\n\t            /* Clear the calls array so that its length is reset. */\n\t            delete Velocity.State.calls;\n\t            Velocity.State.calls = [];\n\t        }\n\t    }\n\n\t    /******************\n\t        Frameworks\n\t    ******************/\n\n\t    /* Both jQuery and Zepto allow their $.fn object to be extended to allow wrapped elements to be subjected to plugin calls.\n\t       If either framework is loaded, register a \"velocity\" extension pointing to Velocity's core animate() method.  Velocity\n\t       also registers itself onto a global container (window.jQuery || window.Zepto || window) so that certain features are\n\t       accessible beyond just a per-element scope. This master object contains an .animate() method, which is later assigned to $.fn\n\t       (if jQuery or Zepto are present). Accordingly, Velocity can both act on wrapped DOM elements and stand alone for targeting raw DOM elements. */\n\t    global.Velocity = Velocity;\n\n\t    if (global !== window) {\n\t        /* Assign the element function to Velocity's core animate() method. */\n\t        global.fn.velocity = animate;\n\t        /* Assign the object function's defaults to Velocity's global defaults object. */\n\t        global.fn.velocity.defaults = Velocity.defaults;\n\t    }\n\n\t    /***********************\n\t       Packaged Redirects\n\t    ***********************/\n\n\t    /* slideUp, slideDown */\n\t    $.each([ \"Down\", \"Up\" ], function(i, direction) {\n\t        Velocity.Redirects[\"slide\" + direction] = function (element, options, elementsIndex, elementsSize, elements, promiseData) {\n\t            var opts = $.extend({}, options),\n\t                begin = opts.begin,\n\t                complete = opts.complete,\n\t                computedValues = { height: \"\", marginTop: \"\", marginBottom: \"\", paddingTop: \"\", paddingBottom: \"\" },\n\t                inlineValues = {};\n\n\t            if (opts.display === undefined) {\n\t                /* Show the element before slideDown begins and hide the element after slideUp completes. */\n\t                /* Note: Inline elements cannot have dimensions animated, so they're reverted to inline-block. */\n\t                opts.display = (direction === \"Down\" ? (Velocity.CSS.Values.getDisplayType(element) === \"inline\" ? \"inline-block\" : \"block\") : \"none\");\n\t            }\n\n\t            opts.begin = function() {\n\t                /* If the user passed in a begin callback, fire it now. */\n\t                begin && begin.call(elements, elements);\n\n\t                /* Cache the elements' original vertical dimensional property values so that we can animate back to them. */\n\t                for (var property in computedValues) {\n\t                    inlineValues[property] = element.style[property];\n\n\t                    /* For slideDown, use forcefeeding to animate all vertical properties from 0. For slideUp,\n\t                       use forcefeeding to start from computed values and animate down to 0. */\n\t                    var propertyValue = Velocity.CSS.getPropertyValue(element, property);\n\t                    computedValues[property] = (direction === \"Down\") ? [ propertyValue, 0 ] : [ 0, propertyValue ];\n\t                }\n\n\t                /* Force vertical overflow content to clip so that sliding works as expected. */\n\t                inlineValues.overflow = element.style.overflow;\n\t                element.style.overflow = \"hidden\";\n\t            }\n\n\t            opts.complete = function() {\n\t                /* Reset element to its pre-slide inline values once its slide animation is complete. */\n\t                for (var property in inlineValues) {\n\t                    element.style[property] = inlineValues[property];\n\t                }\n\n\t                /* If the user passed in a complete callback, fire it now. */\n\t                complete && complete.call(elements, elements);\n\t                promiseData && promiseData.resolver(elements);\n\t            };\n\n\t            Velocity(element, computedValues, opts);\n\t        };\n\t    });\n\n\t    /* fadeIn, fadeOut */\n\t    $.each([ \"In\", \"Out\" ], function(i, direction) {\n\t        Velocity.Redirects[\"fade\" + direction] = function (element, options, elementsIndex, elementsSize, elements, promiseData) {\n\t            var opts = $.extend({}, options),\n\t                propertiesMap = { opacity: (direction === \"In\") ? 1 : 0 },\n\t                originalComplete = opts.complete;\n\n\t            /* Since redirects are triggered individually for each element in the animated set, avoid repeatedly triggering\n\t               callbacks by firing them only when the final element has been reached. */\n\t            if (elementsIndex !== elementsSize - 1) {\n\t                opts.complete = opts.begin = null;\n\t            } else {\n\t                opts.complete = function() {\n\t                    if (originalComplete) {\n\t                        originalComplete.call(elements, elements);\n\t                    }\n\n\t                    promiseData && promiseData.resolver(elements);\n\t                }\n\t            }\n\n\t            /* If a display was passed in, use it. Otherwise, default to \"none\" for fadeOut or the element-specific default for fadeIn. */\n\t            /* Note: We allow users to pass in \"null\" to skip display setting altogether. */\n\t            if (opts.display === undefined) {\n\t                opts.display = (direction === \"In\" ? \"auto\" : \"none\");\n\t            }\n\n\t            Velocity(this, propertiesMap, opts);\n\t        };\n\t    });\n\n\t    return Velocity;\n\t}((window.jQuery || window.Zepto || window), window, document);\n\t}));\n\n\t/******************\n\t   Known Issues\n\t******************/\n\n\t/* The CSS spec mandates that the translateX/Y/Z transforms are %-relative to the element itself -- not its parent.\n\tVelocity, however, doesn't make this distinction. Thus, converting to or from the % unit with these subproperties\n\twill produce an inaccurate conversion value. The same issue exists with the cx/cy attributes of SVG circles and ellipses. */\n\n/***/ },\n/* 21 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(22);\n\tmodule.exports = angular;\n\n\n/***/ },\n/* 22 */\n/***/ function(module, exports) {\n\n\t/**\n\t * @license AngularJS v1.4.8\n\t * (c) 2010-2015 Google, Inc. http://angularjs.org\n\t * License: MIT\n\t */\n\t(function(window, document, undefined) {'use strict';\n\n\t/**\n\t * @description\n\t *\n\t * This object provides a utility for producing rich Error messages within\n\t * Angular. It can be called as follows:\n\t *\n\t * var exampleMinErr = minErr('example');\n\t * throw exampleMinErr('one', 'This {0} is {1}', foo, bar);\n\t *\n\t * The above creates an instance of minErr in the example namespace. The\n\t * resulting error will have a namespaced error code of example.one.  The\n\t * resulting error will replace {0} with the value of foo, and {1} with the\n\t * value of bar. The object is not restricted in the number of arguments it can\n\t * take.\n\t *\n\t * If fewer arguments are specified than necessary for interpolation, the extra\n\t * interpolation markers will be preserved in the final string.\n\t *\n\t * Since data will be parsed statically during a build step, some restrictions\n\t * are applied with respect to how minErr instances are created and called.\n\t * Instances should have names of the form namespaceMinErr for a minErr created\n\t * using minErr('namespace') . Error codes, namespaces and template strings\n\t * should all be static strings, not variables or general expressions.\n\t *\n\t * @param {string} module The namespace to use for the new minErr instance.\n\t * @param {function} ErrorConstructor Custom error constructor to be instantiated when returning\n\t *   error from returned function, for cases when a particular type of error is useful.\n\t * @returns {function(code:string, template:string, ...templateArgs): Error} minErr instance\n\t */\n\n\tfunction minErr(module, ErrorConstructor) {\n\t  ErrorConstructor = ErrorConstructor || Error;\n\t  return function() {\n\t    var SKIP_INDEXES = 2;\n\n\t    var templateArgs = arguments,\n\t      code = templateArgs[0],\n\t      message = '[' + (module ? module + ':' : '') + code + '] ',\n\t      template = templateArgs[1],\n\t      paramPrefix, i;\n\n\t    message += template.replace(/\\{\\d+\\}/g, function(match) {\n\t      var index = +match.slice(1, -1),\n\t        shiftedIndex = index + SKIP_INDEXES;\n\n\t      if (shiftedIndex < templateArgs.length) {\n\t        return toDebugString(templateArgs[shiftedIndex]);\n\t      }\n\n\t      return match;\n\t    });\n\n\t    message += '\\nhttp://errors.angularjs.org/1.4.8/' +\n\t      (module ? module + '/' : '') + code;\n\n\t    for (i = SKIP_INDEXES, paramPrefix = '?'; i < templateArgs.length; i++, paramPrefix = '&') {\n\t      message += paramPrefix + 'p' + (i - SKIP_INDEXES) + '=' +\n\t        encodeURIComponent(toDebugString(templateArgs[i]));\n\t    }\n\n\t    return new ErrorConstructor(message);\n\t  };\n\t}\n\n\t/* We need to tell jshint what variables are being exported */\n\t/* global angular: true,\n\t  msie: true,\n\t  jqLite: true,\n\t  jQuery: true,\n\t  slice: true,\n\t  splice: true,\n\t  push: true,\n\t  toString: true,\n\t  ngMinErr: true,\n\t  angularModule: true,\n\t  uid: true,\n\t  REGEX_STRING_REGEXP: true,\n\t  VALIDITY_STATE_PROPERTY: true,\n\n\t  lowercase: true,\n\t  uppercase: true,\n\t  manualLowercase: true,\n\t  manualUppercase: true,\n\t  nodeName_: true,\n\t  isArrayLike: true,\n\t  forEach: true,\n\t  forEachSorted: true,\n\t  reverseParams: true,\n\t  nextUid: true,\n\t  setHashKey: true,\n\t  extend: true,\n\t  toInt: true,\n\t  inherit: true,\n\t  merge: true,\n\t  noop: true,\n\t  identity: true,\n\t  valueFn: true,\n\t  isUndefined: true,\n\t  isDefined: true,\n\t  isObject: true,\n\t  isBlankObject: true,\n\t  isString: true,\n\t  isNumber: true,\n\t  isDate: true,\n\t  isArray: true,\n\t  isFunction: true,\n\t  isRegExp: true,\n\t  isWindow: true,\n\t  isScope: true,\n\t  isFile: true,\n\t  isFormData: true,\n\t  isBlob: true,\n\t  isBoolean: true,\n\t  isPromiseLike: true,\n\t  trim: true,\n\t  escapeForRegexp: true,\n\t  isElement: true,\n\t  makeMap: true,\n\t  includes: true,\n\t  arrayRemove: true,\n\t  copy: true,\n\t  shallowCopy: true,\n\t  equals: true,\n\t  csp: true,\n\t  jq: true,\n\t  concat: true,\n\t  sliceArgs: true,\n\t  bind: true,\n\t  toJsonReplacer: true,\n\t  toJson: true,\n\t  fromJson: true,\n\t  convertTimezoneToLocal: true,\n\t  timezoneToOffset: true,\n\t  startingTag: true,\n\t  tryDecodeURIComponent: true,\n\t  parseKeyValue: true,\n\t  toKeyValue: true,\n\t  encodeUriSegment: true,\n\t  encodeUriQuery: true,\n\t  angularInit: true,\n\t  bootstrap: true,\n\t  getTestability: true,\n\t  snake_case: true,\n\t  bindJQuery: true,\n\t  assertArg: true,\n\t  assertArgFn: true,\n\t  assertNotHasOwnProperty: true,\n\t  getter: true,\n\t  getBlockNodes: true,\n\t  hasOwnProperty: true,\n\t  createMap: true,\n\n\t  NODE_TYPE_ELEMENT: true,\n\t  NODE_TYPE_ATTRIBUTE: true,\n\t  NODE_TYPE_TEXT: true,\n\t  NODE_TYPE_COMMENT: true,\n\t  NODE_TYPE_DOCUMENT: true,\n\t  NODE_TYPE_DOCUMENT_FRAGMENT: true,\n\t*/\n\n\t////////////////////////////////////\n\n\t/**\n\t * @ngdoc module\n\t * @name ng\n\t * @module ng\n\t * @description\n\t *\n\t * # ng (core module)\n\t * The ng module is loaded by default when an AngularJS application is started. The module itself\n\t * contains the essential components for an AngularJS application to function. The table below\n\t * lists a high level breakdown of each of the services/factories, filters, directives and testing\n\t * components available within this core module.\n\t *\n\t * <div doc-module-components=\"ng\"></div>\n\t */\n\n\tvar REGEX_STRING_REGEXP = /^\\/(.+)\\/([a-z]*)$/;\n\n\t// The name of a form control's ValidityState property.\n\t// This is used so that it's possible for internal tests to create mock ValidityStates.\n\tvar VALIDITY_STATE_PROPERTY = 'validity';\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.lowercase\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description Converts the specified string to lowercase.\n\t * @param {string} string String to be converted to lowercase.\n\t * @returns {string} Lowercased string.\n\t */\n\tvar lowercase = function(string) {return isString(string) ? string.toLowerCase() : string;};\n\tvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.uppercase\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description Converts the specified string to uppercase.\n\t * @param {string} string String to be converted to uppercase.\n\t * @returns {string} Uppercased string.\n\t */\n\tvar uppercase = function(string) {return isString(string) ? string.toUpperCase() : string;};\n\n\n\tvar manualLowercase = function(s) {\n\t  /* jshint bitwise: false */\n\t  return isString(s)\n\t      ? s.replace(/[A-Z]/g, function(ch) {return String.fromCharCode(ch.charCodeAt(0) | 32);})\n\t      : s;\n\t};\n\tvar manualUppercase = function(s) {\n\t  /* jshint bitwise: false */\n\t  return isString(s)\n\t      ? s.replace(/[a-z]/g, function(ch) {return String.fromCharCode(ch.charCodeAt(0) & ~32);})\n\t      : s;\n\t};\n\n\n\t// String#toLowerCase and String#toUpperCase don't produce correct results in browsers with Turkish\n\t// locale, for this reason we need to detect this case and redefine lowercase/uppercase methods\n\t// with correct but slower alternatives.\n\tif ('i' !== 'I'.toLowerCase()) {\n\t  lowercase = manualLowercase;\n\t  uppercase = manualUppercase;\n\t}\n\n\n\tvar\n\t    msie,             // holds major version number for IE, or NaN if UA is not IE.\n\t    jqLite,           // delay binding since jQuery could be loaded after us.\n\t    jQuery,           // delay binding\n\t    slice             = [].slice,\n\t    splice            = [].splice,\n\t    push              = [].push,\n\t    toString          = Object.prototype.toString,\n\t    getPrototypeOf    = Object.getPrototypeOf,\n\t    ngMinErr          = minErr('ng'),\n\n\t    /** @name angular */\n\t    angular           = window.angular || (window.angular = {}),\n\t    angularModule,\n\t    uid               = 0;\n\n\t/**\n\t * documentMode is an IE-only property\n\t * http://msdn.microsoft.com/en-us/library/ie/cc196988(v=vs.85).aspx\n\t */\n\tmsie = document.documentMode;\n\n\n\t/**\n\t * @private\n\t * @param {*} obj\n\t * @return {boolean} Returns true if `obj` is an array or array-like object (NodeList, Arguments,\n\t *                   String ...)\n\t */\n\tfunction isArrayLike(obj) {\n\n\t  // `null`, `undefined` and `window` are not array-like\n\t  if (obj == null || isWindow(obj)) return false;\n\n\t  // arrays, strings and jQuery/jqLite objects are array like\n\t  // * jqLite is either the jQuery or jqLite constructor function\n\t  // * we have to check the existance of jqLite first as this method is called\n\t  //   via the forEach method when constructing the jqLite object in the first place\n\t  if (isArray(obj) || isString(obj) || (jqLite && obj instanceof jqLite)) return true;\n\n\t  // Support: iOS 8.2 (not reproducible in simulator)\n\t  // \"length\" in obj used to prevent JIT error (gh-11508)\n\t  var length = \"length\" in Object(obj) && obj.length;\n\n\t  // NodeList objects (with `item` method) and\n\t  // other objects with suitable length characteristics are array-like\n\t  return isNumber(length) &&\n\t    (length >= 0 && (length - 1) in obj || typeof obj.item == 'function');\n\t}\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.forEach\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Invokes the `iterator` function once for each item in `obj` collection, which can be either an\n\t * object or an array. The `iterator` function is invoked with `iterator(value, key, obj)`, where `value`\n\t * is the value of an object property or an array element, `key` is the object property key or\n\t * array element index and obj is the `obj` itself. Specifying a `context` for the function is optional.\n\t *\n\t * It is worth noting that `.forEach` does not iterate over inherited properties because it filters\n\t * using the `hasOwnProperty` method.\n\t *\n\t * Unlike ES262's\n\t * [Array.prototype.forEach](http://www.ecma-international.org/ecma-262/5.1/#sec-15.4.4.18),\n\t * Providing 'undefined' or 'null' values for `obj` will not throw a TypeError, but rather just\n\t * return the value provided.\n\t *\n\t   ```js\n\t     var values = {name: 'misko', gender: 'male'};\n\t     var log = [];\n\t     angular.forEach(values, function(value, key) {\n\t       this.push(key + ': ' + value);\n\t     }, log);\n\t     expect(log).toEqual(['name: misko', 'gender: male']);\n\t   ```\n\t *\n\t * @param {Object|Array} obj Object to iterate over.\n\t * @param {Function} iterator Iterator function.\n\t * @param {Object=} context Object to become context (`this`) for the iterator function.\n\t * @returns {Object|Array} Reference to `obj`.\n\t */\n\n\tfunction forEach(obj, iterator, context) {\n\t  var key, length;\n\t  if (obj) {\n\t    if (isFunction(obj)) {\n\t      for (key in obj) {\n\t        // Need to check if hasOwnProperty exists,\n\t        // as on IE8 the result of querySelectorAll is an object without a hasOwnProperty function\n\t        if (key != 'prototype' && key != 'length' && key != 'name' && (!obj.hasOwnProperty || obj.hasOwnProperty(key))) {\n\t          iterator.call(context, obj[key], key, obj);\n\t        }\n\t      }\n\t    } else if (isArray(obj) || isArrayLike(obj)) {\n\t      var isPrimitive = typeof obj !== 'object';\n\t      for (key = 0, length = obj.length; key < length; key++) {\n\t        if (isPrimitive || key in obj) {\n\t          iterator.call(context, obj[key], key, obj);\n\t        }\n\t      }\n\t    } else if (obj.forEach && obj.forEach !== forEach) {\n\t        obj.forEach(iterator, context, obj);\n\t    } else if (isBlankObject(obj)) {\n\t      // createMap() fast path --- Safe to avoid hasOwnProperty check because prototype chain is empty\n\t      for (key in obj) {\n\t        iterator.call(context, obj[key], key, obj);\n\t      }\n\t    } else if (typeof obj.hasOwnProperty === 'function') {\n\t      // Slow path for objects inheriting Object.prototype, hasOwnProperty check needed\n\t      for (key in obj) {\n\t        if (obj.hasOwnProperty(key)) {\n\t          iterator.call(context, obj[key], key, obj);\n\t        }\n\t      }\n\t    } else {\n\t      // Slow path for objects which do not have a method `hasOwnProperty`\n\t      for (key in obj) {\n\t        if (hasOwnProperty.call(obj, key)) {\n\t          iterator.call(context, obj[key], key, obj);\n\t        }\n\t      }\n\t    }\n\t  }\n\t  return obj;\n\t}\n\n\tfunction forEachSorted(obj, iterator, context) {\n\t  var keys = Object.keys(obj).sort();\n\t  for (var i = 0; i < keys.length; i++) {\n\t    iterator.call(context, obj[keys[i]], keys[i]);\n\t  }\n\t  return keys;\n\t}\n\n\n\t/**\n\t * when using forEach the params are value, key, but it is often useful to have key, value.\n\t * @param {function(string, *)} iteratorFn\n\t * @returns {function(*, string)}\n\t */\n\tfunction reverseParams(iteratorFn) {\n\t  return function(value, key) { iteratorFn(key, value); };\n\t}\n\n\t/**\n\t * A consistent way of creating unique IDs in angular.\n\t *\n\t * Using simple numbers allows us to generate 28.6 million unique ids per second for 10 years before\n\t * we hit number precision issues in JavaScript.\n\t *\n\t * Math.pow(2,53) / 60 / 60 / 24 / 365 / 10 = 28.6M\n\t *\n\t * @returns {number} an unique alpha-numeric string\n\t */\n\tfunction nextUid() {\n\t  return ++uid;\n\t}\n\n\n\t/**\n\t * Set or clear the hashkey for an object.\n\t * @param obj object\n\t * @param h the hashkey (!truthy to delete the hashkey)\n\t */\n\tfunction setHashKey(obj, h) {\n\t  if (h) {\n\t    obj.$$hashKey = h;\n\t  } else {\n\t    delete obj.$$hashKey;\n\t  }\n\t}\n\n\n\tfunction baseExtend(dst, objs, deep) {\n\t  var h = dst.$$hashKey;\n\n\t  for (var i = 0, ii = objs.length; i < ii; ++i) {\n\t    var obj = objs[i];\n\t    if (!isObject(obj) && !isFunction(obj)) continue;\n\t    var keys = Object.keys(obj);\n\t    for (var j = 0, jj = keys.length; j < jj; j++) {\n\t      var key = keys[j];\n\t      var src = obj[key];\n\n\t      if (deep && isObject(src)) {\n\t        if (isDate(src)) {\n\t          dst[key] = new Date(src.valueOf());\n\t        } else if (isRegExp(src)) {\n\t          dst[key] = new RegExp(src);\n\t        } else if (src.nodeName) {\n\t          dst[key] = src.cloneNode(true);\n\t        } else if (isElement(src)) {\n\t          dst[key] = src.clone();\n\t        } else {\n\t          if (!isObject(dst[key])) dst[key] = isArray(src) ? [] : {};\n\t          baseExtend(dst[key], [src], true);\n\t        }\n\t      } else {\n\t        dst[key] = src;\n\t      }\n\t    }\n\t  }\n\n\t  setHashKey(dst, h);\n\t  return dst;\n\t}\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.extend\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Extends the destination object `dst` by copying own enumerable properties from the `src` object(s)\n\t * to `dst`. You can specify multiple `src` objects. If you want to preserve original objects, you can do so\n\t * by passing an empty object as the target: `var object = angular.extend({}, object1, object2)`.\n\t *\n\t * **Note:** Keep in mind that `angular.extend` does not support recursive merge (deep copy). Use\n\t * {@link angular.merge} for this.\n\t *\n\t * @param {Object} dst Destination object.\n\t * @param {...Object} src Source object(s).\n\t * @returns {Object} Reference to `dst`.\n\t */\n\tfunction extend(dst) {\n\t  return baseExtend(dst, slice.call(arguments, 1), false);\n\t}\n\n\n\t/**\n\t* @ngdoc function\n\t* @name angular.merge\n\t* @module ng\n\t* @kind function\n\t*\n\t* @description\n\t* Deeply extends the destination object `dst` by copying own enumerable properties from the `src` object(s)\n\t* to `dst`. You can specify multiple `src` objects. If you want to preserve original objects, you can do so\n\t* by passing an empty object as the target: `var object = angular.merge({}, object1, object2)`.\n\t*\n\t* Unlike {@link angular.extend extend()}, `merge()` recursively descends into object properties of source\n\t* objects, performing a deep copy.\n\t*\n\t* @param {Object} dst Destination object.\n\t* @param {...Object} src Source object(s).\n\t* @returns {Object} Reference to `dst`.\n\t*/\n\tfunction merge(dst) {\n\t  return baseExtend(dst, slice.call(arguments, 1), true);\n\t}\n\n\n\n\tfunction toInt(str) {\n\t  return parseInt(str, 10);\n\t}\n\n\n\tfunction inherit(parent, extra) {\n\t  return extend(Object.create(parent), extra);\n\t}\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.noop\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * A function that performs no operations. This function can be useful when writing code in the\n\t * functional style.\n\t   ```js\n\t     function foo(callback) {\n\t       var result = calculateResult();\n\t       (callback || angular.noop)(result);\n\t     }\n\t   ```\n\t */\n\tfunction noop() {}\n\tnoop.$inject = [];\n\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.identity\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * A function that returns its first argument. This function is useful when writing code in the\n\t * functional style.\n\t *\n\t   ```js\n\t     function transformer(transformationFn, value) {\n\t       return (transformationFn || angular.identity)(value);\n\t     };\n\t   ```\n\t  * @param {*} value to be returned.\n\t  * @returns {*} the value passed in.\n\t */\n\tfunction identity($) {return $;}\n\tidentity.$inject = [];\n\n\n\tfunction valueFn(value) {return function() {return value;};}\n\n\tfunction hasCustomToString(obj) {\n\t  return isFunction(obj.toString) && obj.toString !== toString;\n\t}\n\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.isUndefined\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Determines if a reference is undefined.\n\t *\n\t * @param {*} value Reference to check.\n\t * @returns {boolean} True if `value` is undefined.\n\t */\n\tfunction isUndefined(value) {return typeof value === 'undefined';}\n\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.isDefined\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Determines if a reference is defined.\n\t *\n\t * @param {*} value Reference to check.\n\t * @returns {boolean} True if `value` is defined.\n\t */\n\tfunction isDefined(value) {return typeof value !== 'undefined';}\n\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.isObject\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Determines if a reference is an `Object`. Unlike `typeof` in JavaScript, `null`s are not\n\t * considered to be objects. Note that JavaScript arrays are objects.\n\t *\n\t * @param {*} value Reference to check.\n\t * @returns {boolean} True if `value` is an `Object` but not `null`.\n\t */\n\tfunction isObject(value) {\n\t  // http://jsperf.com/isobject4\n\t  return value !== null && typeof value === 'object';\n\t}\n\n\n\t/**\n\t * Determine if a value is an object with a null prototype\n\t *\n\t * @returns {boolean} True if `value` is an `Object` with a null prototype\n\t */\n\tfunction isBlankObject(value) {\n\t  return value !== null && typeof value === 'object' && !getPrototypeOf(value);\n\t}\n\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.isString\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Determines if a reference is a `String`.\n\t *\n\t * @param {*} value Reference to check.\n\t * @returns {boolean} True if `value` is a `String`.\n\t */\n\tfunction isString(value) {return typeof value === 'string';}\n\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.isNumber\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Determines if a reference is a `Number`.\n\t *\n\t * This includes the \"special\" numbers `NaN`, `+Infinity` and `-Infinity`.\n\t *\n\t * If you wish to exclude these then you can use the native\n\t * [`isFinite'](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/isFinite)\n\t * method.\n\t *\n\t * @param {*} value Reference to check.\n\t * @returns {boolean} True if `value` is a `Number`.\n\t */\n\tfunction isNumber(value) {return typeof value === 'number';}\n\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.isDate\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Determines if a value is a date.\n\t *\n\t * @param {*} value Reference to check.\n\t * @returns {boolean} True if `value` is a `Date`.\n\t */\n\tfunction isDate(value) {\n\t  return toString.call(value) === '[object Date]';\n\t}\n\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.isArray\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Determines if a reference is an `Array`.\n\t *\n\t * @param {*} value Reference to check.\n\t * @returns {boolean} True if `value` is an `Array`.\n\t */\n\tvar isArray = Array.isArray;\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.isFunction\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Determines if a reference is a `Function`.\n\t *\n\t * @param {*} value Reference to check.\n\t * @returns {boolean} True if `value` is a `Function`.\n\t */\n\tfunction isFunction(value) {return typeof value === 'function';}\n\n\n\t/**\n\t * Determines if a value is a regular expression object.\n\t *\n\t * @private\n\t * @param {*} value Reference to check.\n\t * @returns {boolean} True if `value` is a `RegExp`.\n\t */\n\tfunction isRegExp(value) {\n\t  return toString.call(value) === '[object RegExp]';\n\t}\n\n\n\t/**\n\t * Checks if `obj` is a window object.\n\t *\n\t * @private\n\t * @param {*} obj Object to check\n\t * @returns {boolean} True if `obj` is a window obj.\n\t */\n\tfunction isWindow(obj) {\n\t  return obj && obj.window === obj;\n\t}\n\n\n\tfunction isScope(obj) {\n\t  return obj && obj.$evalAsync && obj.$watch;\n\t}\n\n\n\tfunction isFile(obj) {\n\t  return toString.call(obj) === '[object File]';\n\t}\n\n\n\tfunction isFormData(obj) {\n\t  return toString.call(obj) === '[object FormData]';\n\t}\n\n\n\tfunction isBlob(obj) {\n\t  return toString.call(obj) === '[object Blob]';\n\t}\n\n\n\tfunction isBoolean(value) {\n\t  return typeof value === 'boolean';\n\t}\n\n\n\tfunction isPromiseLike(obj) {\n\t  return obj && isFunction(obj.then);\n\t}\n\n\n\tvar TYPED_ARRAY_REGEXP = /^\\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array\\]$/;\n\tfunction isTypedArray(value) {\n\t  return value && isNumber(value.length) && TYPED_ARRAY_REGEXP.test(toString.call(value));\n\t}\n\n\n\tvar trim = function(value) {\n\t  return isString(value) ? value.trim() : value;\n\t};\n\n\t// Copied from:\n\t// http://docs.closure-library.googlecode.com/git/local_closure_goog_string_string.js.source.html#line1021\n\t// Prereq: s is a string.\n\tvar escapeForRegexp = function(s) {\n\t  return s.replace(/([-()\\[\\]{}+?*.$\\^|,:#<!\\\\])/g, '\\\\$1').\n\t           replace(/\\x08/g, '\\\\x08');\n\t};\n\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.isElement\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Determines if a reference is a DOM element (or wrapped jQuery element).\n\t *\n\t * @param {*} value Reference to check.\n\t * @returns {boolean} True if `value` is a DOM element (or wrapped jQuery element).\n\t */\n\tfunction isElement(node) {\n\t  return !!(node &&\n\t    (node.nodeName  // we are a direct element\n\t    || (node.prop && node.attr && node.find)));  // we have an on and find method part of jQuery API\n\t}\n\n\t/**\n\t * @param str 'key1,key2,...'\n\t * @returns {object} in the form of {key1:true, key2:true, ...}\n\t */\n\tfunction makeMap(str) {\n\t  var obj = {}, items = str.split(\",\"), i;\n\t  for (i = 0; i < items.length; i++) {\n\t    obj[items[i]] = true;\n\t  }\n\t  return obj;\n\t}\n\n\n\tfunction nodeName_(element) {\n\t  return lowercase(element.nodeName || (element[0] && element[0].nodeName));\n\t}\n\n\tfunction includes(array, obj) {\n\t  return Array.prototype.indexOf.call(array, obj) != -1;\n\t}\n\n\tfunction arrayRemove(array, value) {\n\t  var index = array.indexOf(value);\n\t  if (index >= 0) {\n\t    array.splice(index, 1);\n\t  }\n\t  return index;\n\t}\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.copy\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Creates a deep copy of `source`, which should be an object or an array.\n\t *\n\t * * If no destination is supplied, a copy of the object or array is created.\n\t * * If a destination is provided, all of its elements (for arrays) or properties (for objects)\n\t *   are deleted and then all elements/properties from the source are copied to it.\n\t * * If `source` is not an object or array (inc. `null` and `undefined`), `source` is returned.\n\t * * If `source` is identical to 'destination' an exception will be thrown.\n\t *\n\t * @param {*} source The source that will be used to make a copy.\n\t *                   Can be any type, including primitives, `null`, and `undefined`.\n\t * @param {(Object|Array)=} destination Destination into which the source is copied. If\n\t *     provided, must be of the same type as `source`.\n\t * @returns {*} The copy or updated `destination`, if `destination` was specified.\n\t *\n\t * @example\n\t <example module=\"copyExample\">\n\t <file name=\"index.html\">\n\t <div ng-controller=\"ExampleController\">\n\t <form novalidate class=\"simple-form\">\n\t Name: <input type=\"text\" ng-model=\"user.name\" /><br />\n\t E-mail: <input type=\"email\" ng-model=\"user.email\" /><br />\n\t Gender: <input type=\"radio\" ng-model=\"user.gender\" value=\"male\" />male\n\t <input type=\"radio\" ng-model=\"user.gender\" value=\"female\" />female<br />\n\t <button ng-click=\"reset()\">RESET</button>\n\t <button ng-click=\"update(user)\">SAVE</button>\n\t </form>\n\t <pre>form = {{user | json}}</pre>\n\t <pre>master = {{master | json}}</pre>\n\t </div>\n\n\t <script>\n\t  angular.module('copyExample', [])\n\t    .controller('ExampleController', ['$scope', function($scope) {\n\t      $scope.master= {};\n\n\t      $scope.update = function(user) {\n\t        // Example with 1 argument\n\t        $scope.master= angular.copy(user);\n\t      };\n\n\t      $scope.reset = function() {\n\t        // Example with 2 arguments\n\t        angular.copy($scope.master, $scope.user);\n\t      };\n\n\t      $scope.reset();\n\t    }]);\n\t </script>\n\t </file>\n\t </example>\n\t */\n\tfunction copy(source, destination) {\n\t  var stackSource = [];\n\t  var stackDest = [];\n\n\t  if (destination) {\n\t    if (isTypedArray(destination)) {\n\t      throw ngMinErr('cpta', \"Can't copy! TypedArray destination cannot be mutated.\");\n\t    }\n\t    if (source === destination) {\n\t      throw ngMinErr('cpi', \"Can't copy! Source and destination are identical.\");\n\t    }\n\n\t    // Empty the destination object\n\t    if (isArray(destination)) {\n\t      destination.length = 0;\n\t    } else {\n\t      forEach(destination, function(value, key) {\n\t        if (key !== '$$hashKey') {\n\t          delete destination[key];\n\t        }\n\t      });\n\t    }\n\n\t    stackSource.push(source);\n\t    stackDest.push(destination);\n\t    return copyRecurse(source, destination);\n\t  }\n\n\t  return copyElement(source);\n\n\t  function copyRecurse(source, destination) {\n\t    var h = destination.$$hashKey;\n\t    var result, key;\n\t    if (isArray(source)) {\n\t      for (var i = 0, ii = source.length; i < ii; i++) {\n\t        destination.push(copyElement(source[i]));\n\t      }\n\t    } else if (isBlankObject(source)) {\n\t      // createMap() fast path --- Safe to avoid hasOwnProperty check because prototype chain is empty\n\t      for (key in source) {\n\t        destination[key] = copyElement(source[key]);\n\t      }\n\t    } else if (source && typeof source.hasOwnProperty === 'function') {\n\t      // Slow path, which must rely on hasOwnProperty\n\t      for (key in source) {\n\t        if (source.hasOwnProperty(key)) {\n\t          destination[key] = copyElement(source[key]);\n\t        }\n\t      }\n\t    } else {\n\t      // Slowest path --- hasOwnProperty can't be called as a method\n\t      for (key in source) {\n\t        if (hasOwnProperty.call(source, key)) {\n\t          destination[key] = copyElement(source[key]);\n\t        }\n\t      }\n\t    }\n\t    setHashKey(destination, h);\n\t    return destination;\n\t  }\n\n\t  function copyElement(source) {\n\t    // Simple values\n\t    if (!isObject(source)) {\n\t      return source;\n\t    }\n\n\t    // Already copied values\n\t    var index = stackSource.indexOf(source);\n\t    if (index !== -1) {\n\t      return stackDest[index];\n\t    }\n\n\t    if (isWindow(source) || isScope(source)) {\n\t      throw ngMinErr('cpws',\n\t        \"Can't copy! Making copies of Window or Scope instances is not supported.\");\n\t    }\n\n\t    var needsRecurse = false;\n\t    var destination;\n\n\t    if (isArray(source)) {\n\t      destination = [];\n\t      needsRecurse = true;\n\t    } else if (isTypedArray(source)) {\n\t      destination = new source.constructor(source);\n\t    } else if (isDate(source)) {\n\t      destination = new Date(source.getTime());\n\t    } else if (isRegExp(source)) {\n\t      destination = new RegExp(source.source, source.toString().match(/[^\\/]*$/)[0]);\n\t      destination.lastIndex = source.lastIndex;\n\t    } else if (isFunction(source.cloneNode)) {\n\t        destination = source.cloneNode(true);\n\t    } else {\n\t      destination = Object.create(getPrototypeOf(source));\n\t      needsRecurse = true;\n\t    }\n\n\t    stackSource.push(source);\n\t    stackDest.push(destination);\n\n\t    return needsRecurse\n\t      ? copyRecurse(source, destination)\n\t      : destination;\n\t  }\n\t}\n\n\t/**\n\t * Creates a shallow copy of an object, an array or a primitive.\n\t *\n\t * Assumes that there are no proto properties for objects.\n\t */\n\tfunction shallowCopy(src, dst) {\n\t  if (isArray(src)) {\n\t    dst = dst || [];\n\n\t    for (var i = 0, ii = src.length; i < ii; i++) {\n\t      dst[i] = src[i];\n\t    }\n\t  } else if (isObject(src)) {\n\t    dst = dst || {};\n\n\t    for (var key in src) {\n\t      if (!(key.charAt(0) === '$' && key.charAt(1) === '$')) {\n\t        dst[key] = src[key];\n\t      }\n\t    }\n\t  }\n\n\t  return dst || src;\n\t}\n\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.equals\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Determines if two objects or two values are equivalent. Supports value types, regular\n\t * expressions, arrays and objects.\n\t *\n\t * Two objects or values are considered equivalent if at least one of the following is true:\n\t *\n\t * * Both objects or values pass `===` comparison.\n\t * * Both objects or values are of the same type and all of their properties are equal by\n\t *   comparing them with `angular.equals`.\n\t * * Both values are NaN. (In JavaScript, NaN == NaN => false. But we consider two NaN as equal)\n\t * * Both values represent the same regular expression (In JavaScript,\n\t *   /abc/ == /abc/ => false. But we consider two regular expressions as equal when their textual\n\t *   representation matches).\n\t *\n\t * During a property comparison, properties of `function` type and properties with names\n\t * that begin with `$` are ignored.\n\t *\n\t * Scope and DOMWindow objects are being compared only by identify (`===`).\n\t *\n\t * @param {*} o1 Object or value to compare.\n\t * @param {*} o2 Object or value to compare.\n\t * @returns {boolean} True if arguments are equal.\n\t */\n\tfunction equals(o1, o2) {\n\t  if (o1 === o2) return true;\n\t  if (o1 === null || o2 === null) return false;\n\t  if (o1 !== o1 && o2 !== o2) return true; // NaN === NaN\n\t  var t1 = typeof o1, t2 = typeof o2, length, key, keySet;\n\t  if (t1 == t2) {\n\t    if (t1 == 'object') {\n\t      if (isArray(o1)) {\n\t        if (!isArray(o2)) return false;\n\t        if ((length = o1.length) == o2.length) {\n\t          for (key = 0; key < length; key++) {\n\t            if (!equals(o1[key], o2[key])) return false;\n\t          }\n\t          return true;\n\t        }\n\t      } else if (isDate(o1)) {\n\t        if (!isDate(o2)) return false;\n\t        return equals(o1.getTime(), o2.getTime());\n\t      } else if (isRegExp(o1)) {\n\t        return isRegExp(o2) ? o1.toString() == o2.toString() : false;\n\t      } else {\n\t        if (isScope(o1) || isScope(o2) || isWindow(o1) || isWindow(o2) ||\n\t          isArray(o2) || isDate(o2) || isRegExp(o2)) return false;\n\t        keySet = createMap();\n\t        for (key in o1) {\n\t          if (key.charAt(0) === '$' || isFunction(o1[key])) continue;\n\t          if (!equals(o1[key], o2[key])) return false;\n\t          keySet[key] = true;\n\t        }\n\t        for (key in o2) {\n\t          if (!(key in keySet) &&\n\t              key.charAt(0) !== '$' &&\n\t              isDefined(o2[key]) &&\n\t              !isFunction(o2[key])) return false;\n\t        }\n\t        return true;\n\t      }\n\t    }\n\t  }\n\t  return false;\n\t}\n\n\tvar csp = function() {\n\t  if (!isDefined(csp.rules)) {\n\n\n\t    var ngCspElement = (document.querySelector('[ng-csp]') ||\n\t                    document.querySelector('[data-ng-csp]'));\n\n\t    if (ngCspElement) {\n\t      var ngCspAttribute = ngCspElement.getAttribute('ng-csp') ||\n\t                    ngCspElement.getAttribute('data-ng-csp');\n\t      csp.rules = {\n\t        noUnsafeEval: !ngCspAttribute || (ngCspAttribute.indexOf('no-unsafe-eval') !== -1),\n\t        noInlineStyle: !ngCspAttribute || (ngCspAttribute.indexOf('no-inline-style') !== -1)\n\t      };\n\t    } else {\n\t      csp.rules = {\n\t        noUnsafeEval: noUnsafeEval(),\n\t        noInlineStyle: false\n\t      };\n\t    }\n\t  }\n\n\t  return csp.rules;\n\n\t  function noUnsafeEval() {\n\t    try {\n\t      /* jshint -W031, -W054 */\n\t      new Function('');\n\t      /* jshint +W031, +W054 */\n\t      return false;\n\t    } catch (e) {\n\t      return true;\n\t    }\n\t  }\n\t};\n\n\t/**\n\t * @ngdoc directive\n\t * @module ng\n\t * @name ngJq\n\t *\n\t * @element ANY\n\t * @param {string=} ngJq the name of the library available under `window`\n\t * to be used for angular.element\n\t * @description\n\t * Use this directive to force the angular.element library.  This should be\n\t * used to force either jqLite by leaving ng-jq blank or setting the name of\n\t * the jquery variable under window (eg. jQuery).\n\t *\n\t * Since angular looks for this directive when it is loaded (doesn't wait for the\n\t * DOMContentLoaded event), it must be placed on an element that comes before the script\n\t * which loads angular. Also, only the first instance of `ng-jq` will be used and all\n\t * others ignored.\n\t *\n\t * @example\n\t * This example shows how to force jqLite using the `ngJq` directive to the `html` tag.\n\t ```html\n\t <!doctype html>\n\t <html ng-app ng-jq>\n\t ...\n\t ...\n\t </html>\n\t ```\n\t * @example\n\t * This example shows how to use a jQuery based library of a different name.\n\t * The library name must be available at the top most 'window'.\n\t ```html\n\t <!doctype html>\n\t <html ng-app ng-jq=\"jQueryLib\">\n\t ...\n\t ...\n\t </html>\n\t ```\n\t */\n\tvar jq = function() {\n\t  if (isDefined(jq.name_)) return jq.name_;\n\t  var el;\n\t  var i, ii = ngAttrPrefixes.length, prefix, name;\n\t  for (i = 0; i < ii; ++i) {\n\t    prefix = ngAttrPrefixes[i];\n\t    if (el = document.querySelector('[' + prefix.replace(':', '\\\\:') + 'jq]')) {\n\t      name = el.getAttribute(prefix + 'jq');\n\t      break;\n\t    }\n\t  }\n\n\t  return (jq.name_ = name);\n\t};\n\n\tfunction concat(array1, array2, index) {\n\t  return array1.concat(slice.call(array2, index));\n\t}\n\n\tfunction sliceArgs(args, startIndex) {\n\t  return slice.call(args, startIndex || 0);\n\t}\n\n\n\t/* jshint -W101 */\n\t/**\n\t * @ngdoc function\n\t * @name angular.bind\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Returns a function which calls function `fn` bound to `self` (`self` becomes the `this` for\n\t * `fn`). You can supply optional `args` that are prebound to the function. This feature is also\n\t * known as [partial application](http://en.wikipedia.org/wiki/Partial_application), as\n\t * distinguished from [function currying](http://en.wikipedia.org/wiki/Currying#Contrast_with_partial_function_application).\n\t *\n\t * @param {Object} self Context which `fn` should be evaluated in.\n\t * @param {function()} fn Function to be bound.\n\t * @param {...*} args Optional arguments to be prebound to the `fn` function call.\n\t * @returns {function()} Function that wraps the `fn` with all the specified bindings.\n\t */\n\t/* jshint +W101 */\n\tfunction bind(self, fn) {\n\t  var curryArgs = arguments.length > 2 ? sliceArgs(arguments, 2) : [];\n\t  if (isFunction(fn) && !(fn instanceof RegExp)) {\n\t    return curryArgs.length\n\t      ? function() {\n\t          return arguments.length\n\t            ? fn.apply(self, concat(curryArgs, arguments, 0))\n\t            : fn.apply(self, curryArgs);\n\t        }\n\t      : function() {\n\t          return arguments.length\n\t            ? fn.apply(self, arguments)\n\t            : fn.call(self);\n\t        };\n\t  } else {\n\t    // in IE, native methods are not functions so they cannot be bound (note: they don't need to be)\n\t    return fn;\n\t  }\n\t}\n\n\n\tfunction toJsonReplacer(key, value) {\n\t  var val = value;\n\n\t  if (typeof key === 'string' && key.charAt(0) === '$' && key.charAt(1) === '$') {\n\t    val = undefined;\n\t  } else if (isWindow(value)) {\n\t    val = '$WINDOW';\n\t  } else if (value &&  document === value) {\n\t    val = '$DOCUMENT';\n\t  } else if (isScope(value)) {\n\t    val = '$SCOPE';\n\t  }\n\n\t  return val;\n\t}\n\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.toJson\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Serializes input into a JSON-formatted string. Properties with leading $$ characters will be\n\t * stripped since angular uses this notation internally.\n\t *\n\t * @param {Object|Array|Date|string|number} obj Input to be serialized into JSON.\n\t * @param {boolean|number} [pretty=2] If set to true, the JSON output will contain newlines and whitespace.\n\t *    If set to an integer, the JSON output will contain that many spaces per indentation.\n\t * @returns {string|undefined} JSON-ified string representing `obj`.\n\t */\n\tfunction toJson(obj, pretty) {\n\t  if (typeof obj === 'undefined') return undefined;\n\t  if (!isNumber(pretty)) {\n\t    pretty = pretty ? 2 : null;\n\t  }\n\t  return JSON.stringify(obj, toJsonReplacer, pretty);\n\t}\n\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.fromJson\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Deserializes a JSON string.\n\t *\n\t * @param {string} json JSON string to deserialize.\n\t * @returns {Object|Array|string|number} Deserialized JSON string.\n\t */\n\tfunction fromJson(json) {\n\t  return isString(json)\n\t      ? JSON.parse(json)\n\t      : json;\n\t}\n\n\n\tfunction timezoneToOffset(timezone, fallback) {\n\t  var requestedTimezoneOffset = Date.parse('Jan 01, 1970 00:00:00 ' + timezone) / 60000;\n\t  return isNaN(requestedTimezoneOffset) ? fallback : requestedTimezoneOffset;\n\t}\n\n\n\tfunction addDateMinutes(date, minutes) {\n\t  date = new Date(date.getTime());\n\t  date.setMinutes(date.getMinutes() + minutes);\n\t  return date;\n\t}\n\n\n\tfunction convertTimezoneToLocal(date, timezone, reverse) {\n\t  reverse = reverse ? -1 : 1;\n\t  var timezoneOffset = timezoneToOffset(timezone, date.getTimezoneOffset());\n\t  return addDateMinutes(date, reverse * (timezoneOffset - date.getTimezoneOffset()));\n\t}\n\n\n\t/**\n\t * @returns {string} Returns the string representation of the element.\n\t */\n\tfunction startingTag(element) {\n\t  element = jqLite(element).clone();\n\t  try {\n\t    // turns out IE does not let you set .html() on elements which\n\t    // are not allowed to have children. So we just ignore it.\n\t    element.empty();\n\t  } catch (e) {}\n\t  var elemHtml = jqLite('<div>').append(element).html();\n\t  try {\n\t    return element[0].nodeType === NODE_TYPE_TEXT ? lowercase(elemHtml) :\n\t        elemHtml.\n\t          match(/^(<[^>]+>)/)[1].\n\t          replace(/^<([\\w\\-]+)/, function(match, nodeName) { return '<' + lowercase(nodeName); });\n\t  } catch (e) {\n\t    return lowercase(elemHtml);\n\t  }\n\n\t}\n\n\n\t/////////////////////////////////////////////////\n\n\t/**\n\t * Tries to decode the URI component without throwing an exception.\n\t *\n\t * @private\n\t * @param str value potential URI component to check.\n\t * @returns {boolean} True if `value` can be decoded\n\t * with the decodeURIComponent function.\n\t */\n\tfunction tryDecodeURIComponent(value) {\n\t  try {\n\t    return decodeURIComponent(value);\n\t  } catch (e) {\n\t    // Ignore any invalid uri component\n\t  }\n\t}\n\n\n\t/**\n\t * Parses an escaped url query string into key-value pairs.\n\t * @returns {Object.<string,boolean|Array>}\n\t */\n\tfunction parseKeyValue(/**string*/keyValue) {\n\t  var obj = {};\n\t  forEach((keyValue || \"\").split('&'), function(keyValue) {\n\t    var splitPoint, key, val;\n\t    if (keyValue) {\n\t      key = keyValue = keyValue.replace(/\\+/g,'%20');\n\t      splitPoint = keyValue.indexOf('=');\n\t      if (splitPoint !== -1) {\n\t        key = keyValue.substring(0, splitPoint);\n\t        val = keyValue.substring(splitPoint + 1);\n\t      }\n\t      key = tryDecodeURIComponent(key);\n\t      if (isDefined(key)) {\n\t        val = isDefined(val) ? tryDecodeURIComponent(val) : true;\n\t        if (!hasOwnProperty.call(obj, key)) {\n\t          obj[key] = val;\n\t        } else if (isArray(obj[key])) {\n\t          obj[key].push(val);\n\t        } else {\n\t          obj[key] = [obj[key],val];\n\t        }\n\t      }\n\t    }\n\t  });\n\t  return obj;\n\t}\n\n\tfunction toKeyValue(obj) {\n\t  var parts = [];\n\t  forEach(obj, function(value, key) {\n\t    if (isArray(value)) {\n\t      forEach(value, function(arrayValue) {\n\t        parts.push(encodeUriQuery(key, true) +\n\t                   (arrayValue === true ? '' : '=' + encodeUriQuery(arrayValue, true)));\n\t      });\n\t    } else {\n\t    parts.push(encodeUriQuery(key, true) +\n\t               (value === true ? '' : '=' + encodeUriQuery(value, true)));\n\t    }\n\t  });\n\t  return parts.length ? parts.join('&') : '';\n\t}\n\n\n\t/**\n\t * We need our custom method because encodeURIComponent is too aggressive and doesn't follow\n\t * http://www.ietf.org/rfc/rfc3986.txt with regards to the character set (pchar) allowed in path\n\t * segments:\n\t *    segment       = *pchar\n\t *    pchar         = unreserved / pct-encoded / sub-delims / \":\" / \"@\"\n\t *    pct-encoded   = \"%\" HEXDIG HEXDIG\n\t *    unreserved    = ALPHA / DIGIT / \"-\" / \".\" / \"_\" / \"~\"\n\t *    sub-delims    = \"!\" / \"$\" / \"&\" / \"'\" / \"(\" / \")\"\n\t *                     / \"*\" / \"+\" / \",\" / \";\" / \"=\"\n\t */\n\tfunction encodeUriSegment(val) {\n\t  return encodeUriQuery(val, true).\n\t             replace(/%26/gi, '&').\n\t             replace(/%3D/gi, '=').\n\t             replace(/%2B/gi, '+');\n\t}\n\n\n\t/**\n\t * This method is intended for encoding *key* or *value* parts of query component. We need a custom\n\t * method because encodeURIComponent is too aggressive and encodes stuff that doesn't have to be\n\t * encoded per http://tools.ietf.org/html/rfc3986:\n\t *    query       = *( pchar / \"/\" / \"?\" )\n\t *    pchar         = unreserved / pct-encoded / sub-delims / \":\" / \"@\"\n\t *    unreserved    = ALPHA / DIGIT / \"-\" / \".\" / \"_\" / \"~\"\n\t *    pct-encoded   = \"%\" HEXDIG HEXDIG\n\t *    sub-delims    = \"!\" / \"$\" / \"&\" / \"'\" / \"(\" / \")\"\n\t *                     / \"*\" / \"+\" / \",\" / \";\" / \"=\"\n\t */\n\tfunction encodeUriQuery(val, pctEncodeSpaces) {\n\t  return encodeURIComponent(val).\n\t             replace(/%40/gi, '@').\n\t             replace(/%3A/gi, ':').\n\t             replace(/%24/g, '$').\n\t             replace(/%2C/gi, ',').\n\t             replace(/%3B/gi, ';').\n\t             replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));\n\t}\n\n\tvar ngAttrPrefixes = ['ng-', 'data-ng-', 'ng:', 'x-ng-'];\n\n\tfunction getNgAttribute(element, ngAttr) {\n\t  var attr, i, ii = ngAttrPrefixes.length;\n\t  for (i = 0; i < ii; ++i) {\n\t    attr = ngAttrPrefixes[i] + ngAttr;\n\t    if (isString(attr = element.getAttribute(attr))) {\n\t      return attr;\n\t    }\n\t  }\n\t  return null;\n\t}\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngApp\n\t * @module ng\n\t *\n\t * @element ANY\n\t * @param {angular.Module} ngApp an optional application\n\t *   {@link angular.module module} name to load.\n\t * @param {boolean=} ngStrictDi if this attribute is present on the app element, the injector will be\n\t *   created in \"strict-di\" mode. This means that the application will fail to invoke functions which\n\t *   do not use explicit function annotation (and are thus unsuitable for minification), as described\n\t *   in {@link guide/di the Dependency Injection guide}, and useful debugging info will assist in\n\t *   tracking down the root of these bugs.\n\t *\n\t * @description\n\t *\n\t * Use this directive to **auto-bootstrap** an AngularJS application. The `ngApp` directive\n\t * designates the **root element** of the application and is typically placed near the root element\n\t * of the page - e.g. on the `<body>` or `<html>` tags.\n\t *\n\t * Only one AngularJS application can be auto-bootstrapped per HTML document. The first `ngApp`\n\t * found in the document will be used to define the root element to auto-bootstrap as an\n\t * application. To run multiple applications in an HTML document you must manually bootstrap them using\n\t * {@link angular.bootstrap} instead. AngularJS applications cannot be nested within each other.\n\t *\n\t * You can specify an **AngularJS module** to be used as the root module for the application.  This\n\t * module will be loaded into the {@link auto.$injector} when the application is bootstrapped. It\n\t * should contain the application code needed or have dependencies on other modules that will\n\t * contain the code. See {@link angular.module} for more information.\n\t *\n\t * In the example below if the `ngApp` directive were not placed on the `html` element then the\n\t * document would not be compiled, the `AppController` would not be instantiated and the `{{ a+b }}`\n\t * would not be resolved to `3`.\n\t *\n\t * `ngApp` is the easiest, and most common way to bootstrap an application.\n\t *\n\t <example module=\"ngAppDemo\">\n\t   <file name=\"index.html\">\n\t   <div ng-controller=\"ngAppDemoController\">\n\t     I can add: {{a}} + {{b}} =  {{ a+b }}\n\t   </div>\n\t   </file>\n\t   <file name=\"script.js\">\n\t   angular.module('ngAppDemo', []).controller('ngAppDemoController', function($scope) {\n\t     $scope.a = 1;\n\t     $scope.b = 2;\n\t   });\n\t   </file>\n\t </example>\n\t *\n\t * Using `ngStrictDi`, you would see something like this:\n\t *\n\t <example ng-app-included=\"true\">\n\t   <file name=\"index.html\">\n\t   <div ng-app=\"ngAppStrictDemo\" ng-strict-di>\n\t       <div ng-controller=\"GoodController1\">\n\t           I can add: {{a}} + {{b}} =  {{ a+b }}\n\n\t           <p>This renders because the controller does not fail to\n\t              instantiate, by using explicit annotation style (see\n\t              script.js for details)\n\t           </p>\n\t       </div>\n\n\t       <div ng-controller=\"GoodController2\">\n\t           Name: <input ng-model=\"name\"><br />\n\t           Hello, {{name}}!\n\n\t           <p>This renders because the controller does not fail to\n\t              instantiate, by using explicit annotation style\n\t              (see script.js for details)\n\t           </p>\n\t       </div>\n\n\t       <div ng-controller=\"BadController\">\n\t           I can add: {{a}} + {{b}} =  {{ a+b }}\n\n\t           <p>The controller could not be instantiated, due to relying\n\t              on automatic function annotations (which are disabled in\n\t              strict mode). As such, the content of this section is not\n\t              interpolated, and there should be an error in your web console.\n\t           </p>\n\t       </div>\n\t   </div>\n\t   </file>\n\t   <file name=\"script.js\">\n\t   angular.module('ngAppStrictDemo', [])\n\t     // BadController will fail to instantiate, due to relying on automatic function annotation,\n\t     // rather than an explicit annotation\n\t     .controller('BadController', function($scope) {\n\t       $scope.a = 1;\n\t       $scope.b = 2;\n\t     })\n\t     // Unlike BadController, GoodController1 and GoodController2 will not fail to be instantiated,\n\t     // due to using explicit annotations using the array style and $inject property, respectively.\n\t     .controller('GoodController1', ['$scope', function($scope) {\n\t       $scope.a = 1;\n\t       $scope.b = 2;\n\t     }])\n\t     .controller('GoodController2', GoodController2);\n\t     function GoodController2($scope) {\n\t       $scope.name = \"World\";\n\t     }\n\t     GoodController2.$inject = ['$scope'];\n\t   </file>\n\t   <file name=\"style.css\">\n\t   div[ng-controller] {\n\t       margin-bottom: 1em;\n\t       -webkit-border-radius: 4px;\n\t       border-radius: 4px;\n\t       border: 1px solid;\n\t       padding: .5em;\n\t   }\n\t   div[ng-controller^=Good] {\n\t       border-color: #d6e9c6;\n\t       background-color: #dff0d8;\n\t       color: #3c763d;\n\t   }\n\t   div[ng-controller^=Bad] {\n\t       border-color: #ebccd1;\n\t       background-color: #f2dede;\n\t       color: #a94442;\n\t       margin-bottom: 0;\n\t   }\n\t   </file>\n\t </example>\n\t */\n\tfunction angularInit(element, bootstrap) {\n\t  var appElement,\n\t      module,\n\t      config = {};\n\n\t  // The element `element` has priority over any other element\n\t  forEach(ngAttrPrefixes, function(prefix) {\n\t    var name = prefix + 'app';\n\n\t    if (!appElement && element.hasAttribute && element.hasAttribute(name)) {\n\t      appElement = element;\n\t      module = element.getAttribute(name);\n\t    }\n\t  });\n\t  forEach(ngAttrPrefixes, function(prefix) {\n\t    var name = prefix + 'app';\n\t    var candidate;\n\n\t    if (!appElement && (candidate = element.querySelector('[' + name.replace(':', '\\\\:') + ']'))) {\n\t      appElement = candidate;\n\t      module = candidate.getAttribute(name);\n\t    }\n\t  });\n\t  if (appElement) {\n\t    config.strictDi = getNgAttribute(appElement, \"strict-di\") !== null;\n\t    bootstrap(appElement, module ? [module] : [], config);\n\t  }\n\t}\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.bootstrap\n\t * @module ng\n\t * @description\n\t * Use this function to manually start up angular application.\n\t *\n\t * See: {@link guide/bootstrap Bootstrap}\n\t *\n\t * Note that Protractor based end-to-end tests cannot use this function to bootstrap manually.\n\t * They must use {@link ng.directive:ngApp ngApp}.\n\t *\n\t * Angular will detect if it has been loaded into the browser more than once and only allow the\n\t * first loaded script to be bootstrapped and will report a warning to the browser console for\n\t * each of the subsequent scripts. This prevents strange results in applications, where otherwise\n\t * multiple instances of Angular try to work on the DOM.\n\t *\n\t * ```html\n\t * <!doctype html>\n\t * <html>\n\t * <body>\n\t * <div ng-controller=\"WelcomeController\">\n\t *   {{greeting}}\n\t * </div>\n\t *\n\t * <script src=\"angular.js\"></script>\n\t * <script>\n\t *   var app = angular.module('demo', [])\n\t *   .controller('WelcomeController', function($scope) {\n\t *       $scope.greeting = 'Welcome!';\n\t *   });\n\t *   angular.bootstrap(document, ['demo']);\n\t * </script>\n\t * </body>\n\t * </html>\n\t * ```\n\t *\n\t * @param {DOMElement} element DOM element which is the root of angular application.\n\t * @param {Array<String|Function|Array>=} modules an array of modules to load into the application.\n\t *     Each item in the array should be the name of a predefined module or a (DI annotated)\n\t *     function that will be invoked by the injector as a `config` block.\n\t *     See: {@link angular.module modules}\n\t * @param {Object=} config an object for defining configuration options for the application. The\n\t *     following keys are supported:\n\t *\n\t * * `strictDi` - disable automatic function annotation for the application. This is meant to\n\t *   assist in finding bugs which break minified code. Defaults to `false`.\n\t *\n\t * @returns {auto.$injector} Returns the newly created injector for this app.\n\t */\n\tfunction bootstrap(element, modules, config) {\n\t  if (!isObject(config)) config = {};\n\t  var defaultConfig = {\n\t    strictDi: false\n\t  };\n\t  config = extend(defaultConfig, config);\n\t  var doBootstrap = function() {\n\t    element = jqLite(element);\n\n\t    if (element.injector()) {\n\t      var tag = (element[0] === document) ? 'document' : startingTag(element);\n\t      //Encode angle brackets to prevent input from being sanitized to empty string #8683\n\t      throw ngMinErr(\n\t          'btstrpd',\n\t          \"App Already Bootstrapped with this Element '{0}'\",\n\t          tag.replace(/</,'&lt;').replace(/>/,'&gt;'));\n\t    }\n\n\t    modules = modules || [];\n\t    modules.unshift(['$provide', function($provide) {\n\t      $provide.value('$rootElement', element);\n\t    }]);\n\n\t    if (config.debugInfoEnabled) {\n\t      // Pushing so that this overrides `debugInfoEnabled` setting defined in user's `modules`.\n\t      modules.push(['$compileProvider', function($compileProvider) {\n\t        $compileProvider.debugInfoEnabled(true);\n\t      }]);\n\t    }\n\n\t    modules.unshift('ng');\n\t    var injector = createInjector(modules, config.strictDi);\n\t    injector.invoke(['$rootScope', '$rootElement', '$compile', '$injector',\n\t       function bootstrapApply(scope, element, compile, injector) {\n\t        scope.$apply(function() {\n\t          element.data('$injector', injector);\n\t          compile(element)(scope);\n\t        });\n\t      }]\n\t    );\n\t    return injector;\n\t  };\n\n\t  var NG_ENABLE_DEBUG_INFO = /^NG_ENABLE_DEBUG_INFO!/;\n\t  var NG_DEFER_BOOTSTRAP = /^NG_DEFER_BOOTSTRAP!/;\n\n\t  if (window && NG_ENABLE_DEBUG_INFO.test(window.name)) {\n\t    config.debugInfoEnabled = true;\n\t    window.name = window.name.replace(NG_ENABLE_DEBUG_INFO, '');\n\t  }\n\n\t  if (window && !NG_DEFER_BOOTSTRAP.test(window.name)) {\n\t    return doBootstrap();\n\t  }\n\n\t  window.name = window.name.replace(NG_DEFER_BOOTSTRAP, '');\n\t  angular.resumeBootstrap = function(extraModules) {\n\t    forEach(extraModules, function(module) {\n\t      modules.push(module);\n\t    });\n\t    return doBootstrap();\n\t  };\n\n\t  if (isFunction(angular.resumeDeferredBootstrap)) {\n\t    angular.resumeDeferredBootstrap();\n\t  }\n\t}\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.reloadWithDebugInfo\n\t * @module ng\n\t * @description\n\t * Use this function to reload the current application with debug information turned on.\n\t * This takes precedence over a call to `$compileProvider.debugInfoEnabled(false)`.\n\t *\n\t * See {@link ng.$compileProvider#debugInfoEnabled} for more.\n\t */\n\tfunction reloadWithDebugInfo() {\n\t  window.name = 'NG_ENABLE_DEBUG_INFO!' + window.name;\n\t  window.location.reload();\n\t}\n\n\t/**\n\t * @name angular.getTestability\n\t * @module ng\n\t * @description\n\t * Get the testability service for the instance of Angular on the given\n\t * element.\n\t * @param {DOMElement} element DOM element which is the root of angular application.\n\t */\n\tfunction getTestability(rootElement) {\n\t  var injector = angular.element(rootElement).injector();\n\t  if (!injector) {\n\t    throw ngMinErr('test',\n\t      'no injector found for element argument to getTestability');\n\t  }\n\t  return injector.get('$$testability');\n\t}\n\n\tvar SNAKE_CASE_REGEXP = /[A-Z]/g;\n\tfunction snake_case(name, separator) {\n\t  separator = separator || '_';\n\t  return name.replace(SNAKE_CASE_REGEXP, function(letter, pos) {\n\t    return (pos ? separator : '') + letter.toLowerCase();\n\t  });\n\t}\n\n\tvar bindJQueryFired = false;\n\tvar skipDestroyOnNextJQueryCleanData;\n\tfunction bindJQuery() {\n\t  var originalCleanData;\n\n\t  if (bindJQueryFired) {\n\t    return;\n\t  }\n\n\t  // bind to jQuery if present;\n\t  var jqName = jq();\n\t  jQuery = isUndefined(jqName) ? window.jQuery :   // use jQuery (if present)\n\t           !jqName             ? undefined     :   // use jqLite\n\t                                 window[jqName];   // use jQuery specified by `ngJq`\n\n\t  // Use jQuery if it exists with proper functionality, otherwise default to us.\n\t  // Angular 1.2+ requires jQuery 1.7+ for on()/off() support.\n\t  // Angular 1.3+ technically requires at least jQuery 2.1+ but it may work with older\n\t  // versions. It will not work for sure with jQuery <1.7, though.\n\t  if (jQuery && jQuery.fn.on) {\n\t    jqLite = jQuery;\n\t    extend(jQuery.fn, {\n\t      scope: JQLitePrototype.scope,\n\t      isolateScope: JQLitePrototype.isolateScope,\n\t      controller: JQLitePrototype.controller,\n\t      injector: JQLitePrototype.injector,\n\t      inheritedData: JQLitePrototype.inheritedData\n\t    });\n\n\t    // All nodes removed from the DOM via various jQuery APIs like .remove()\n\t    // are passed through jQuery.cleanData. Monkey-patch this method to fire\n\t    // the $destroy event on all removed nodes.\n\t    originalCleanData = jQuery.cleanData;\n\t    jQuery.cleanData = function(elems) {\n\t      var events;\n\t      if (!skipDestroyOnNextJQueryCleanData) {\n\t        for (var i = 0, elem; (elem = elems[i]) != null; i++) {\n\t          events = jQuery._data(elem, \"events\");\n\t          if (events && events.$destroy) {\n\t            jQuery(elem).triggerHandler('$destroy');\n\t          }\n\t        }\n\t      } else {\n\t        skipDestroyOnNextJQueryCleanData = false;\n\t      }\n\t      originalCleanData(elems);\n\t    };\n\t  } else {\n\t    jqLite = JQLite;\n\t  }\n\n\t  angular.element = jqLite;\n\n\t  // Prevent double-proxying.\n\t  bindJQueryFired = true;\n\t}\n\n\t/**\n\t * throw error if the argument is falsy.\n\t */\n\tfunction assertArg(arg, name, reason) {\n\t  if (!arg) {\n\t    throw ngMinErr('areq', \"Argument '{0}' is {1}\", (name || '?'), (reason || \"required\"));\n\t  }\n\t  return arg;\n\t}\n\n\tfunction assertArgFn(arg, name, acceptArrayAnnotation) {\n\t  if (acceptArrayAnnotation && isArray(arg)) {\n\t      arg = arg[arg.length - 1];\n\t  }\n\n\t  assertArg(isFunction(arg), name, 'not a function, got ' +\n\t      (arg && typeof arg === 'object' ? arg.constructor.name || 'Object' : typeof arg));\n\t  return arg;\n\t}\n\n\t/**\n\t * throw error if the name given is hasOwnProperty\n\t * @param  {String} name    the name to test\n\t * @param  {String} context the context in which the name is used, such as module or directive\n\t */\n\tfunction assertNotHasOwnProperty(name, context) {\n\t  if (name === 'hasOwnProperty') {\n\t    throw ngMinErr('badname', \"hasOwnProperty is not a valid {0} name\", context);\n\t  }\n\t}\n\n\t/**\n\t * Return the value accessible from the object by path. Any undefined traversals are ignored\n\t * @param {Object} obj starting object\n\t * @param {String} path path to traverse\n\t * @param {boolean} [bindFnToScope=true]\n\t * @returns {Object} value as accessible by path\n\t */\n\t//TODO(misko): this function needs to be removed\n\tfunction getter(obj, path, bindFnToScope) {\n\t  if (!path) return obj;\n\t  var keys = path.split('.');\n\t  var key;\n\t  var lastInstance = obj;\n\t  var len = keys.length;\n\n\t  for (var i = 0; i < len; i++) {\n\t    key = keys[i];\n\t    if (obj) {\n\t      obj = (lastInstance = obj)[key];\n\t    }\n\t  }\n\t  if (!bindFnToScope && isFunction(obj)) {\n\t    return bind(lastInstance, obj);\n\t  }\n\t  return obj;\n\t}\n\n\t/**\n\t * Return the DOM siblings between the first and last node in the given array.\n\t * @param {Array} array like object\n\t * @returns {Array} the inputted object or a jqLite collection containing the nodes\n\t */\n\tfunction getBlockNodes(nodes) {\n\t  // TODO(perf): update `nodes` instead of creating a new object?\n\t  var node = nodes[0];\n\t  var endNode = nodes[nodes.length - 1];\n\t  var blockNodes;\n\n\t  for (var i = 1; node !== endNode && (node = node.nextSibling); i++) {\n\t    if (blockNodes || nodes[i] !== node) {\n\t      if (!blockNodes) {\n\t        blockNodes = jqLite(slice.call(nodes, 0, i));\n\t      }\n\t      blockNodes.push(node);\n\t    }\n\t  }\n\n\t  return blockNodes || nodes;\n\t}\n\n\n\t/**\n\t * Creates a new object without a prototype. This object is useful for lookup without having to\n\t * guard against prototypically inherited properties via hasOwnProperty.\n\t *\n\t * Related micro-benchmarks:\n\t * - http://jsperf.com/object-create2\n\t * - http://jsperf.com/proto-map-lookup/2\n\t * - http://jsperf.com/for-in-vs-object-keys2\n\t *\n\t * @returns {Object}\n\t */\n\tfunction createMap() {\n\t  return Object.create(null);\n\t}\n\n\tvar NODE_TYPE_ELEMENT = 1;\n\tvar NODE_TYPE_ATTRIBUTE = 2;\n\tvar NODE_TYPE_TEXT = 3;\n\tvar NODE_TYPE_COMMENT = 8;\n\tvar NODE_TYPE_DOCUMENT = 9;\n\tvar NODE_TYPE_DOCUMENT_FRAGMENT = 11;\n\n\t/**\n\t * @ngdoc type\n\t * @name angular.Module\n\t * @module ng\n\t * @description\n\t *\n\t * Interface for configuring angular {@link angular.module modules}.\n\t */\n\n\tfunction setupModuleLoader(window) {\n\n\t  var $injectorMinErr = minErr('$injector');\n\t  var ngMinErr = minErr('ng');\n\n\t  function ensure(obj, name, factory) {\n\t    return obj[name] || (obj[name] = factory());\n\t  }\n\n\t  var angular = ensure(window, 'angular', Object);\n\n\t  // We need to expose `angular.$$minErr` to modules such as `ngResource` that reference it during bootstrap\n\t  angular.$$minErr = angular.$$minErr || minErr;\n\n\t  return ensure(angular, 'module', function() {\n\t    /** @type {Object.<string, angular.Module>} */\n\t    var modules = {};\n\n\t    /**\n\t     * @ngdoc function\n\t     * @name angular.module\n\t     * @module ng\n\t     * @description\n\t     *\n\t     * The `angular.module` is a global place for creating, registering and retrieving Angular\n\t     * modules.\n\t     * All modules (angular core or 3rd party) that should be available to an application must be\n\t     * registered using this mechanism.\n\t     *\n\t     * Passing one argument retrieves an existing {@link angular.Module},\n\t     * whereas passing more than one argument creates a new {@link angular.Module}\n\t     *\n\t     *\n\t     * # Module\n\t     *\n\t     * A module is a collection of services, directives, controllers, filters, and configuration information.\n\t     * `angular.module` is used to configure the {@link auto.$injector $injector}.\n\t     *\n\t     * ```js\n\t     * // Create a new module\n\t     * var myModule = angular.module('myModule', []);\n\t     *\n\t     * // register a new service\n\t     * myModule.value('appName', 'MyCoolApp');\n\t     *\n\t     * // configure existing services inside initialization blocks.\n\t     * myModule.config(['$locationProvider', function($locationProvider) {\n\t     *   // Configure existing providers\n\t     *   $locationProvider.hashPrefix('!');\n\t     * }]);\n\t     * ```\n\t     *\n\t     * Then you can create an injector and load your modules like this:\n\t     *\n\t     * ```js\n\t     * var injector = angular.injector(['ng', 'myModule'])\n\t     * ```\n\t     *\n\t     * However it's more likely that you'll just use\n\t     * {@link ng.directive:ngApp ngApp} or\n\t     * {@link angular.bootstrap} to simplify this process for you.\n\t     *\n\t     * @param {!string} name The name of the module to create or retrieve.\n\t     * @param {!Array.<string>=} requires If specified then new module is being created. If\n\t     *        unspecified then the module is being retrieved for further configuration.\n\t     * @param {Function=} configFn Optional configuration function for the module. Same as\n\t     *        {@link angular.Module#config Module#config()}.\n\t     * @returns {module} new module with the {@link angular.Module} api.\n\t     */\n\t    return function module(name, requires, configFn) {\n\t      var assertNotHasOwnProperty = function(name, context) {\n\t        if (name === 'hasOwnProperty') {\n\t          throw ngMinErr('badname', 'hasOwnProperty is not a valid {0} name', context);\n\t        }\n\t      };\n\n\t      assertNotHasOwnProperty(name, 'module');\n\t      if (requires && modules.hasOwnProperty(name)) {\n\t        modules[name] = null;\n\t      }\n\t      return ensure(modules, name, function() {\n\t        if (!requires) {\n\t          throw $injectorMinErr('nomod', \"Module '{0}' is not available! You either misspelled \" +\n\t             \"the module name or forgot to load it. If registering a module ensure that you \" +\n\t             \"specify the dependencies as the second argument.\", name);\n\t        }\n\n\t        /** @type {!Array.<Array.<*>>} */\n\t        var invokeQueue = [];\n\n\t        /** @type {!Array.<Function>} */\n\t        var configBlocks = [];\n\n\t        /** @type {!Array.<Function>} */\n\t        var runBlocks = [];\n\n\t        var config = invokeLater('$injector', 'invoke', 'push', configBlocks);\n\n\t        /** @type {angular.Module} */\n\t        var moduleInstance = {\n\t          // Private state\n\t          _invokeQueue: invokeQueue,\n\t          _configBlocks: configBlocks,\n\t          _runBlocks: runBlocks,\n\n\t          /**\n\t           * @ngdoc property\n\t           * @name angular.Module#requires\n\t           * @module ng\n\t           *\n\t           * @description\n\t           * Holds the list of modules which the injector will load before the current module is\n\t           * loaded.\n\t           */\n\t          requires: requires,\n\n\t          /**\n\t           * @ngdoc property\n\t           * @name angular.Module#name\n\t           * @module ng\n\t           *\n\t           * @description\n\t           * Name of the module.\n\t           */\n\t          name: name,\n\n\n\t          /**\n\t           * @ngdoc method\n\t           * @name angular.Module#provider\n\t           * @module ng\n\t           * @param {string} name service name\n\t           * @param {Function} providerType Construction function for creating new instance of the\n\t           *                                service.\n\t           * @description\n\t           * See {@link auto.$provide#provider $provide.provider()}.\n\t           */\n\t          provider: invokeLaterAndSetModuleName('$provide', 'provider'),\n\n\t          /**\n\t           * @ngdoc method\n\t           * @name angular.Module#factory\n\t           * @module ng\n\t           * @param {string} name service name\n\t           * @param {Function} providerFunction Function for creating new instance of the service.\n\t           * @description\n\t           * See {@link auto.$provide#factory $provide.factory()}.\n\t           */\n\t          factory: invokeLaterAndSetModuleName('$provide', 'factory'),\n\n\t          /**\n\t           * @ngdoc method\n\t           * @name angular.Module#service\n\t           * @module ng\n\t           * @param {string} name service name\n\t           * @param {Function} constructor A constructor function that will be instantiated.\n\t           * @description\n\t           * See {@link auto.$provide#service $provide.service()}.\n\t           */\n\t          service: invokeLaterAndSetModuleName('$provide', 'service'),\n\n\t          /**\n\t           * @ngdoc method\n\t           * @name angular.Module#value\n\t           * @module ng\n\t           * @param {string} name service name\n\t           * @param {*} object Service instance object.\n\t           * @description\n\t           * See {@link auto.$provide#value $provide.value()}.\n\t           */\n\t          value: invokeLater('$provide', 'value'),\n\n\t          /**\n\t           * @ngdoc method\n\t           * @name angular.Module#constant\n\t           * @module ng\n\t           * @param {string} name constant name\n\t           * @param {*} object Constant value.\n\t           * @description\n\t           * Because the constants are fixed, they get applied before other provide methods.\n\t           * See {@link auto.$provide#constant $provide.constant()}.\n\t           */\n\t          constant: invokeLater('$provide', 'constant', 'unshift'),\n\n\t           /**\n\t           * @ngdoc method\n\t           * @name angular.Module#decorator\n\t           * @module ng\n\t           * @param {string} The name of the service to decorate.\n\t           * @param {Function} This function will be invoked when the service needs to be\n\t           *                                    instantiated and should return the decorated service instance.\n\t           * @description\n\t           * See {@link auto.$provide#decorator $provide.decorator()}.\n\t           */\n\t          decorator: invokeLaterAndSetModuleName('$provide', 'decorator'),\n\n\t          /**\n\t           * @ngdoc method\n\t           * @name angular.Module#animation\n\t           * @module ng\n\t           * @param {string} name animation name\n\t           * @param {Function} animationFactory Factory function for creating new instance of an\n\t           *                                    animation.\n\t           * @description\n\t           *\n\t           * **NOTE**: animations take effect only if the **ngAnimate** module is loaded.\n\t           *\n\t           *\n\t           * Defines an animation hook that can be later used with\n\t           * {@link $animate $animate} service and directives that use this service.\n\t           *\n\t           * ```js\n\t           * module.animation('.animation-name', function($inject1, $inject2) {\n\t           *   return {\n\t           *     eventName : function(element, done) {\n\t           *       //code to run the animation\n\t           *       //once complete, then run done()\n\t           *       return function cancellationFunction(element) {\n\t           *         //code to cancel the animation\n\t           *       }\n\t           *     }\n\t           *   }\n\t           * })\n\t           * ```\n\t           *\n\t           * See {@link ng.$animateProvider#register $animateProvider.register()} and\n\t           * {@link ngAnimate ngAnimate module} for more information.\n\t           */\n\t          animation: invokeLaterAndSetModuleName('$animateProvider', 'register'),\n\n\t          /**\n\t           * @ngdoc method\n\t           * @name angular.Module#filter\n\t           * @module ng\n\t           * @param {string} name Filter name - this must be a valid angular expression identifier\n\t           * @param {Function} filterFactory Factory function for creating new instance of filter.\n\t           * @description\n\t           * See {@link ng.$filterProvider#register $filterProvider.register()}.\n\t           *\n\t           * <div class=\"alert alert-warning\">\n\t           * **Note:** Filter names must be valid angular {@link expression} identifiers, such as `uppercase` or `orderBy`.\n\t           * Names with special characters, such as hyphens and dots, are not allowed. If you wish to namespace\n\t           * your filters, then you can use capitalization (`myappSubsectionFilterx`) or underscores\n\t           * (`myapp_subsection_filterx`).\n\t           * </div>\n\t           */\n\t          filter: invokeLaterAndSetModuleName('$filterProvider', 'register'),\n\n\t          /**\n\t           * @ngdoc method\n\t           * @name angular.Module#controller\n\t           * @module ng\n\t           * @param {string|Object} name Controller name, or an object map of controllers where the\n\t           *    keys are the names and the values are the constructors.\n\t           * @param {Function} constructor Controller constructor function.\n\t           * @description\n\t           * See {@link ng.$controllerProvider#register $controllerProvider.register()}.\n\t           */\n\t          controller: invokeLaterAndSetModuleName('$controllerProvider', 'register'),\n\n\t          /**\n\t           * @ngdoc method\n\t           * @name angular.Module#directive\n\t           * @module ng\n\t           * @param {string|Object} name Directive name, or an object map of directives where the\n\t           *    keys are the names and the values are the factories.\n\t           * @param {Function} directiveFactory Factory function for creating new instance of\n\t           * directives.\n\t           * @description\n\t           * See {@link ng.$compileProvider#directive $compileProvider.directive()}.\n\t           */\n\t          directive: invokeLaterAndSetModuleName('$compileProvider', 'directive'),\n\n\t          /**\n\t           * @ngdoc method\n\t           * @name angular.Module#config\n\t           * @module ng\n\t           * @param {Function} configFn Execute this function on module load. Useful for service\n\t           *    configuration.\n\t           * @description\n\t           * Use this method to register work which needs to be performed on module loading.\n\t           * For more about how to configure services, see\n\t           * {@link providers#provider-recipe Provider Recipe}.\n\t           */\n\t          config: config,\n\n\t          /**\n\t           * @ngdoc method\n\t           * @name angular.Module#run\n\t           * @module ng\n\t           * @param {Function} initializationFn Execute this function after injector creation.\n\t           *    Useful for application initialization.\n\t           * @description\n\t           * Use this method to register work which should be performed when the injector is done\n\t           * loading all modules.\n\t           */\n\t          run: function(block) {\n\t            runBlocks.push(block);\n\t            return this;\n\t          }\n\t        };\n\n\t        if (configFn) {\n\t          config(configFn);\n\t        }\n\n\t        return moduleInstance;\n\n\t        /**\n\t         * @param {string} provider\n\t         * @param {string} method\n\t         * @param {String=} insertMethod\n\t         * @returns {angular.Module}\n\t         */\n\t        function invokeLater(provider, method, insertMethod, queue) {\n\t          if (!queue) queue = invokeQueue;\n\t          return function() {\n\t            queue[insertMethod || 'push']([provider, method, arguments]);\n\t            return moduleInstance;\n\t          };\n\t        }\n\n\t        /**\n\t         * @param {string} provider\n\t         * @param {string} method\n\t         * @returns {angular.Module}\n\t         */\n\t        function invokeLaterAndSetModuleName(provider, method) {\n\t          return function(recipeName, factoryFunction) {\n\t            if (factoryFunction && isFunction(factoryFunction)) factoryFunction.$$moduleName = name;\n\t            invokeQueue.push([provider, method, arguments]);\n\t            return moduleInstance;\n\t          };\n\t        }\n\t      });\n\t    };\n\t  });\n\n\t}\n\n\t/* global: toDebugString: true */\n\n\tfunction serializeObject(obj) {\n\t  var seen = [];\n\n\t  return JSON.stringify(obj, function(key, val) {\n\t    val = toJsonReplacer(key, val);\n\t    if (isObject(val)) {\n\n\t      if (seen.indexOf(val) >= 0) return '...';\n\n\t      seen.push(val);\n\t    }\n\t    return val;\n\t  });\n\t}\n\n\tfunction toDebugString(obj) {\n\t  if (typeof obj === 'function') {\n\t    return obj.toString().replace(/ \\{[\\s\\S]*$/, '');\n\t  } else if (isUndefined(obj)) {\n\t    return 'undefined';\n\t  } else if (typeof obj !== 'string') {\n\t    return serializeObject(obj);\n\t  }\n\t  return obj;\n\t}\n\n\t/* global angularModule: true,\n\t  version: true,\n\n\t  $CompileProvider,\n\n\t  htmlAnchorDirective,\n\t  inputDirective,\n\t  inputDirective,\n\t  formDirective,\n\t  scriptDirective,\n\t  selectDirective,\n\t  styleDirective,\n\t  optionDirective,\n\t  ngBindDirective,\n\t  ngBindHtmlDirective,\n\t  ngBindTemplateDirective,\n\t  ngClassDirective,\n\t  ngClassEvenDirective,\n\t  ngClassOddDirective,\n\t  ngCloakDirective,\n\t  ngControllerDirective,\n\t  ngFormDirective,\n\t  ngHideDirective,\n\t  ngIfDirective,\n\t  ngIncludeDirective,\n\t  ngIncludeFillContentDirective,\n\t  ngInitDirective,\n\t  ngNonBindableDirective,\n\t  ngPluralizeDirective,\n\t  ngRepeatDirective,\n\t  ngShowDirective,\n\t  ngStyleDirective,\n\t  ngSwitchDirective,\n\t  ngSwitchWhenDirective,\n\t  ngSwitchDefaultDirective,\n\t  ngOptionsDirective,\n\t  ngTranscludeDirective,\n\t  ngModelDirective,\n\t  ngListDirective,\n\t  ngChangeDirective,\n\t  patternDirective,\n\t  patternDirective,\n\t  requiredDirective,\n\t  requiredDirective,\n\t  minlengthDirective,\n\t  minlengthDirective,\n\t  maxlengthDirective,\n\t  maxlengthDirective,\n\t  ngValueDirective,\n\t  ngModelOptionsDirective,\n\t  ngAttributeAliasDirectives,\n\t  ngEventDirectives,\n\n\t  $AnchorScrollProvider,\n\t  $AnimateProvider,\n\t  $CoreAnimateCssProvider,\n\t  $$CoreAnimateQueueProvider,\n\t  $$CoreAnimateRunnerProvider,\n\t  $BrowserProvider,\n\t  $CacheFactoryProvider,\n\t  $ControllerProvider,\n\t  $DocumentProvider,\n\t  $ExceptionHandlerProvider,\n\t  $FilterProvider,\n\t  $$ForceReflowProvider,\n\t  $InterpolateProvider,\n\t  $IntervalProvider,\n\t  $$HashMapProvider,\n\t  $HttpProvider,\n\t  $HttpParamSerializerProvider,\n\t  $HttpParamSerializerJQLikeProvider,\n\t  $HttpBackendProvider,\n\t  $xhrFactoryProvider,\n\t  $LocationProvider,\n\t  $LogProvider,\n\t  $ParseProvider,\n\t  $RootScopeProvider,\n\t  $QProvider,\n\t  $$QProvider,\n\t  $$SanitizeUriProvider,\n\t  $SceProvider,\n\t  $SceDelegateProvider,\n\t  $SnifferProvider,\n\t  $TemplateCacheProvider,\n\t  $TemplateRequestProvider,\n\t  $$TestabilityProvider,\n\t  $TimeoutProvider,\n\t  $$RAFProvider,\n\t  $WindowProvider,\n\t  $$jqLiteProvider,\n\t  $$CookieReaderProvider\n\t*/\n\n\n\t/**\n\t * @ngdoc object\n\t * @name angular.version\n\t * @module ng\n\t * @description\n\t * An object that contains information about the current AngularJS version.\n\t *\n\t * This object has the following properties:\n\t *\n\t * - `full` – `{string}` – Full version string, such as \"0.9.18\".\n\t * - `major` – `{number}` – Major version number, such as \"0\".\n\t * - `minor` – `{number}` – Minor version number, such as \"9\".\n\t * - `dot` – `{number}` – Dot version number, such as \"18\".\n\t * - `codeName` – `{string}` – Code name of the release, such as \"jiggling-armfat\".\n\t */\n\tvar version = {\n\t  full: '1.4.8',    // all of these placeholder strings will be replaced by grunt's\n\t  major: 1,    // package task\n\t  minor: 4,\n\t  dot: 8,\n\t  codeName: 'ice-manipulation'\n\t};\n\n\n\tfunction publishExternalAPI(angular) {\n\t  extend(angular, {\n\t    'bootstrap': bootstrap,\n\t    'copy': copy,\n\t    'extend': extend,\n\t    'merge': merge,\n\t    'equals': equals,\n\t    'element': jqLite,\n\t    'forEach': forEach,\n\t    'injector': createInjector,\n\t    'noop': noop,\n\t    'bind': bind,\n\t    'toJson': toJson,\n\t    'fromJson': fromJson,\n\t    'identity': identity,\n\t    'isUndefined': isUndefined,\n\t    'isDefined': isDefined,\n\t    'isString': isString,\n\t    'isFunction': isFunction,\n\t    'isObject': isObject,\n\t    'isNumber': isNumber,\n\t    'isElement': isElement,\n\t    'isArray': isArray,\n\t    'version': version,\n\t    'isDate': isDate,\n\t    'lowercase': lowercase,\n\t    'uppercase': uppercase,\n\t    'callbacks': {counter: 0},\n\t    'getTestability': getTestability,\n\t    '$$minErr': minErr,\n\t    '$$csp': csp,\n\t    'reloadWithDebugInfo': reloadWithDebugInfo\n\t  });\n\n\t  angularModule = setupModuleLoader(window);\n\n\t  angularModule('ng', ['ngLocale'], ['$provide',\n\t    function ngModule($provide) {\n\t      // $$sanitizeUriProvider needs to be before $compileProvider as it is used by it.\n\t      $provide.provider({\n\t        $$sanitizeUri: $$SanitizeUriProvider\n\t      });\n\t      $provide.provider('$compile', $CompileProvider).\n\t        directive({\n\t            a: htmlAnchorDirective,\n\t            input: inputDirective,\n\t            textarea: inputDirective,\n\t            form: formDirective,\n\t            script: scriptDirective,\n\t            select: selectDirective,\n\t            style: styleDirective,\n\t            option: optionDirective,\n\t            ngBind: ngBindDirective,\n\t            ngBindHtml: ngBindHtmlDirective,\n\t            ngBindTemplate: ngBindTemplateDirective,\n\t            ngClass: ngClassDirective,\n\t            ngClassEven: ngClassEvenDirective,\n\t            ngClassOdd: ngClassOddDirective,\n\t            ngCloak: ngCloakDirective,\n\t            ngController: ngControllerDirective,\n\t            ngForm: ngFormDirective,\n\t            ngHide: ngHideDirective,\n\t            ngIf: ngIfDirective,\n\t            ngInclude: ngIncludeDirective,\n\t            ngInit: ngInitDirective,\n\t            ngNonBindable: ngNonBindableDirective,\n\t            ngPluralize: ngPluralizeDirective,\n\t            ngRepeat: ngRepeatDirective,\n\t            ngShow: ngShowDirective,\n\t            ngStyle: ngStyleDirective,\n\t            ngSwitch: ngSwitchDirective,\n\t            ngSwitchWhen: ngSwitchWhenDirective,\n\t            ngSwitchDefault: ngSwitchDefaultDirective,\n\t            ngOptions: ngOptionsDirective,\n\t            ngTransclude: ngTranscludeDirective,\n\t            ngModel: ngModelDirective,\n\t            ngList: ngListDirective,\n\t            ngChange: ngChangeDirective,\n\t            pattern: patternDirective,\n\t            ngPattern: patternDirective,\n\t            required: requiredDirective,\n\t            ngRequired: requiredDirective,\n\t            minlength: minlengthDirective,\n\t            ngMinlength: minlengthDirective,\n\t            maxlength: maxlengthDirective,\n\t            ngMaxlength: maxlengthDirective,\n\t            ngValue: ngValueDirective,\n\t            ngModelOptions: ngModelOptionsDirective\n\t        }).\n\t        directive({\n\t          ngInclude: ngIncludeFillContentDirective\n\t        }).\n\t        directive(ngAttributeAliasDirectives).\n\t        directive(ngEventDirectives);\n\t      $provide.provider({\n\t        $anchorScroll: $AnchorScrollProvider,\n\t        $animate: $AnimateProvider,\n\t        $animateCss: $CoreAnimateCssProvider,\n\t        $$animateQueue: $$CoreAnimateQueueProvider,\n\t        $$AnimateRunner: $$CoreAnimateRunnerProvider,\n\t        $browser: $BrowserProvider,\n\t        $cacheFactory: $CacheFactoryProvider,\n\t        $controller: $ControllerProvider,\n\t        $document: $DocumentProvider,\n\t        $exceptionHandler: $ExceptionHandlerProvider,\n\t        $filter: $FilterProvider,\n\t        $$forceReflow: $$ForceReflowProvider,\n\t        $interpolate: $InterpolateProvider,\n\t        $interval: $IntervalProvider,\n\t        $http: $HttpProvider,\n\t        $httpParamSerializer: $HttpParamSerializerProvider,\n\t        $httpParamSerializerJQLike: $HttpParamSerializerJQLikeProvider,\n\t        $httpBackend: $HttpBackendProvider,\n\t        $xhrFactory: $xhrFactoryProvider,\n\t        $location: $LocationProvider,\n\t        $log: $LogProvider,\n\t        $parse: $ParseProvider,\n\t        $rootScope: $RootScopeProvider,\n\t        $q: $QProvider,\n\t        $$q: $$QProvider,\n\t        $sce: $SceProvider,\n\t        $sceDelegate: $SceDelegateProvider,\n\t        $sniffer: $SnifferProvider,\n\t        $templateCache: $TemplateCacheProvider,\n\t        $templateRequest: $TemplateRequestProvider,\n\t        $$testability: $$TestabilityProvider,\n\t        $timeout: $TimeoutProvider,\n\t        $window: $WindowProvider,\n\t        $$rAF: $$RAFProvider,\n\t        $$jqLite: $$jqLiteProvider,\n\t        $$HashMap: $$HashMapProvider,\n\t        $$cookieReader: $$CookieReaderProvider\n\t      });\n\t    }\n\t  ]);\n\t}\n\n\t/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\n\t *     Any commits to this file should be reviewed with security in mind.  *\n\t *   Changes to this file can potentially create security vulnerabilities. *\n\t *          An approval from 2 Core members with history of modifying      *\n\t *                         this file is required.                          *\n\t *                                                                         *\n\t *  Does the change somehow allow for arbitrary javascript to be executed? *\n\t *    Or allows for someone to change the prototype of built-in objects?   *\n\t *     Or gives undesired access to variables likes document or window?    *\n\t * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */\n\n\t/* global JQLitePrototype: true,\n\t  addEventListenerFn: true,\n\t  removeEventListenerFn: true,\n\t  BOOLEAN_ATTR: true,\n\t  ALIASED_ATTR: true,\n\t*/\n\n\t//////////////////////////////////\n\t//JQLite\n\t//////////////////////////////////\n\n\t/**\n\t * @ngdoc function\n\t * @name angular.element\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Wraps a raw DOM element or HTML string as a [jQuery](http://jquery.com) element.\n\t *\n\t * If jQuery is available, `angular.element` is an alias for the\n\t * [jQuery](http://api.jquery.com/jQuery/) function. If jQuery is not available, `angular.element`\n\t * delegates to Angular's built-in subset of jQuery, called \"jQuery lite\" or \"jqLite.\"\n\t *\n\t * <div class=\"alert alert-success\">jqLite is a tiny, API-compatible subset of jQuery that allows\n\t * Angular to manipulate the DOM in a cross-browser compatible way. **jqLite** implements only the most\n\t * commonly needed functionality with the goal of having a very small footprint.</div>\n\t *\n\t * To use `jQuery`, simply ensure it is loaded before the `angular.js` file.\n\t *\n\t * <div class=\"alert\">**Note:** all element references in Angular are always wrapped with jQuery or\n\t * jqLite; they are never raw DOM references.</div>\n\t *\n\t * ## Angular's jqLite\n\t * jqLite provides only the following jQuery methods:\n\t *\n\t * - [`addClass()`](http://api.jquery.com/addClass/)\n\t * - [`after()`](http://api.jquery.com/after/)\n\t * - [`append()`](http://api.jquery.com/append/)\n\t * - [`attr()`](http://api.jquery.com/attr/) - Does not support functions as parameters\n\t * - [`bind()`](http://api.jquery.com/bind/) - Does not support namespaces, selectors or eventData\n\t * - [`children()`](http://api.jquery.com/children/) - Does not support selectors\n\t * - [`clone()`](http://api.jquery.com/clone/)\n\t * - [`contents()`](http://api.jquery.com/contents/)\n\t * - [`css()`](http://api.jquery.com/css/) - Only retrieves inline-styles, does not call `getComputedStyle()`. As a setter, does not convert numbers to strings or append 'px'.\n\t * - [`data()`](http://api.jquery.com/data/)\n\t * - [`detach()`](http://api.jquery.com/detach/)\n\t * - [`empty()`](http://api.jquery.com/empty/)\n\t * - [`eq()`](http://api.jquery.com/eq/)\n\t * - [`find()`](http://api.jquery.com/find/) - Limited to lookups by tag name\n\t * - [`hasClass()`](http://api.jquery.com/hasClass/)\n\t * - [`html()`](http://api.jquery.com/html/)\n\t * - [`next()`](http://api.jquery.com/next/) - Does not support selectors\n\t * - [`on()`](http://api.jquery.com/on/) - Does not support namespaces, selectors or eventData\n\t * - [`off()`](http://api.jquery.com/off/) - Does not support namespaces, selectors or event object as parameter\n\t * - [`one()`](http://api.jquery.com/one/) - Does not support namespaces or selectors\n\t * - [`parent()`](http://api.jquery.com/parent/) - Does not support selectors\n\t * - [`prepend()`](http://api.jquery.com/prepend/)\n\t * - [`prop()`](http://api.jquery.com/prop/)\n\t * - [`ready()`](http://api.jquery.com/ready/)\n\t * - [`remove()`](http://api.jquery.com/remove/)\n\t * - [`removeAttr()`](http://api.jquery.com/removeAttr/)\n\t * - [`removeClass()`](http://api.jquery.com/removeClass/)\n\t * - [`removeData()`](http://api.jquery.com/removeData/)\n\t * - [`replaceWith()`](http://api.jquery.com/replaceWith/)\n\t * - [`text()`](http://api.jquery.com/text/)\n\t * - [`toggleClass()`](http://api.jquery.com/toggleClass/)\n\t * - [`triggerHandler()`](http://api.jquery.com/triggerHandler/) - Passes a dummy event object to handlers.\n\t * - [`unbind()`](http://api.jquery.com/unbind/) - Does not support namespaces or event object as parameter\n\t * - [`val()`](http://api.jquery.com/val/)\n\t * - [`wrap()`](http://api.jquery.com/wrap/)\n\t *\n\t * ## jQuery/jqLite Extras\n\t * Angular also provides the following additional methods and events to both jQuery and jqLite:\n\t *\n\t * ### Events\n\t * - `$destroy` - AngularJS intercepts all jqLite/jQuery's DOM destruction apis and fires this event\n\t *    on all DOM nodes being removed.  This can be used to clean up any 3rd party bindings to the DOM\n\t *    element before it is removed.\n\t *\n\t * ### Methods\n\t * - `controller(name)` - retrieves the controller of the current element or its parent. By default\n\t *   retrieves controller associated with the `ngController` directive. If `name` is provided as\n\t *   camelCase directive name, then the controller for this directive will be retrieved (e.g.\n\t *   `'ngModel'`).\n\t * - `injector()` - retrieves the injector of the current element or its parent.\n\t * - `scope()` - retrieves the {@link ng.$rootScope.Scope scope} of the current\n\t *   element or its parent. Requires {@link guide/production#disabling-debug-data Debug Data} to\n\t *   be enabled.\n\t * - `isolateScope()` - retrieves an isolate {@link ng.$rootScope.Scope scope} if one is attached directly to the\n\t *   current element. This getter should be used only on elements that contain a directive which starts a new isolate\n\t *   scope. Calling `scope()` on this element always returns the original non-isolate scope.\n\t *   Requires {@link guide/production#disabling-debug-data Debug Data} to be enabled.\n\t * - `inheritedData()` - same as `data()`, but walks up the DOM until a value is found or the top\n\t *   parent element is reached.\n\t *\n\t * @param {string|DOMElement} element HTML string or DOMElement to be wrapped into jQuery.\n\t * @returns {Object} jQuery object.\n\t */\n\n\tJQLite.expando = 'ng339';\n\n\tvar jqCache = JQLite.cache = {},\n\t    jqId = 1,\n\t    addEventListenerFn = function(element, type, fn) {\n\t      element.addEventListener(type, fn, false);\n\t    },\n\t    removeEventListenerFn = function(element, type, fn) {\n\t      element.removeEventListener(type, fn, false);\n\t    };\n\n\t/*\n\t * !!! This is an undocumented \"private\" function !!!\n\t */\n\tJQLite._data = function(node) {\n\t  //jQuery always returns an object on cache miss\n\t  return this.cache[node[this.expando]] || {};\n\t};\n\n\tfunction jqNextId() { return ++jqId; }\n\n\n\tvar SPECIAL_CHARS_REGEXP = /([\\:\\-\\_]+(.))/g;\n\tvar MOZ_HACK_REGEXP = /^moz([A-Z])/;\n\tvar MOUSE_EVENT_MAP= { mouseleave: \"mouseout\", mouseenter: \"mouseover\"};\n\tvar jqLiteMinErr = minErr('jqLite');\n\n\t/**\n\t * Converts snake_case to camelCase.\n\t * Also there is special case for Moz prefix starting with upper case letter.\n\t * @param name Name to normalize\n\t */\n\tfunction camelCase(name) {\n\t  return name.\n\t    replace(SPECIAL_CHARS_REGEXP, function(_, separator, letter, offset) {\n\t      return offset ? letter.toUpperCase() : letter;\n\t    }).\n\t    replace(MOZ_HACK_REGEXP, 'Moz$1');\n\t}\n\n\tvar SINGLE_TAG_REGEXP = /^<([\\w-]+)\\s*\\/?>(?:<\\/\\1>|)$/;\n\tvar HTML_REGEXP = /<|&#?\\w+;/;\n\tvar TAG_NAME_REGEXP = /<([\\w:-]+)/;\n\tvar XHTML_TAG_REGEXP = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\\w:-]+)[^>]*)\\/>/gi;\n\n\tvar wrapMap = {\n\t  'option': [1, '<select multiple=\"multiple\">', '</select>'],\n\n\t  'thead': [1, '<table>', '</table>'],\n\t  'col': [2, '<table><colgroup>', '</colgroup></table>'],\n\t  'tr': [2, '<table><tbody>', '</tbody></table>'],\n\t  'td': [3, '<table><tbody><tr>', '</tr></tbody></table>'],\n\t  '_default': [0, \"\", \"\"]\n\t};\n\n\twrapMap.optgroup = wrapMap.option;\n\twrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;\n\twrapMap.th = wrapMap.td;\n\n\n\tfunction jqLiteIsTextNode(html) {\n\t  return !HTML_REGEXP.test(html);\n\t}\n\n\tfunction jqLiteAcceptsData(node) {\n\t  // The window object can accept data but has no nodeType\n\t  // Otherwise we are only interested in elements (1) and documents (9)\n\t  var nodeType = node.nodeType;\n\t  return nodeType === NODE_TYPE_ELEMENT || !nodeType || nodeType === NODE_TYPE_DOCUMENT;\n\t}\n\n\tfunction jqLiteHasData(node) {\n\t  for (var key in jqCache[node.ng339]) {\n\t    return true;\n\t  }\n\t  return false;\n\t}\n\n\tfunction jqLiteBuildFragment(html, context) {\n\t  var tmp, tag, wrap,\n\t      fragment = context.createDocumentFragment(),\n\t      nodes = [], i;\n\n\t  if (jqLiteIsTextNode(html)) {\n\t    // Convert non-html into a text node\n\t    nodes.push(context.createTextNode(html));\n\t  } else {\n\t    // Convert html into DOM nodes\n\t    tmp = tmp || fragment.appendChild(context.createElement(\"div\"));\n\t    tag = (TAG_NAME_REGEXP.exec(html) || [\"\", \"\"])[1].toLowerCase();\n\t    wrap = wrapMap[tag] || wrapMap._default;\n\t    tmp.innerHTML = wrap[1] + html.replace(XHTML_TAG_REGEXP, \"<$1></$2>\") + wrap[2];\n\n\t    // Descend through wrappers to the right content\n\t    i = wrap[0];\n\t    while (i--) {\n\t      tmp = tmp.lastChild;\n\t    }\n\n\t    nodes = concat(nodes, tmp.childNodes);\n\n\t    tmp = fragment.firstChild;\n\t    tmp.textContent = \"\";\n\t  }\n\n\t  // Remove wrapper from fragment\n\t  fragment.textContent = \"\";\n\t  fragment.innerHTML = \"\"; // Clear inner HTML\n\t  forEach(nodes, function(node) {\n\t    fragment.appendChild(node);\n\t  });\n\n\t  return fragment;\n\t}\n\n\tfunction jqLiteParseHTML(html, context) {\n\t  context = context || document;\n\t  var parsed;\n\n\t  if ((parsed = SINGLE_TAG_REGEXP.exec(html))) {\n\t    return [context.createElement(parsed[1])];\n\t  }\n\n\t  if ((parsed = jqLiteBuildFragment(html, context))) {\n\t    return parsed.childNodes;\n\t  }\n\n\t  return [];\n\t}\n\n\n\t// IE9-11 has no method \"contains\" in SVG element and in Node.prototype. Bug #10259.\n\tvar jqLiteContains = Node.prototype.contains || function(arg) {\n\t  // jshint bitwise: false\n\t  return !!(this.compareDocumentPosition(arg) & 16);\n\t  // jshint bitwise: true\n\t};\n\n\t/////////////////////////////////////////////\n\tfunction JQLite(element) {\n\t  if (element instanceof JQLite) {\n\t    return element;\n\t  }\n\n\t  var argIsString;\n\n\t  if (isString(element)) {\n\t    element = trim(element);\n\t    argIsString = true;\n\t  }\n\t  if (!(this instanceof JQLite)) {\n\t    if (argIsString && element.charAt(0) != '<') {\n\t      throw jqLiteMinErr('nosel', 'Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element');\n\t    }\n\t    return new JQLite(element);\n\t  }\n\n\t  if (argIsString) {\n\t    jqLiteAddNodes(this, jqLiteParseHTML(element));\n\t  } else {\n\t    jqLiteAddNodes(this, element);\n\t  }\n\t}\n\n\tfunction jqLiteClone(element) {\n\t  return element.cloneNode(true);\n\t}\n\n\tfunction jqLiteDealoc(element, onlyDescendants) {\n\t  if (!onlyDescendants) jqLiteRemoveData(element);\n\n\t  if (element.querySelectorAll) {\n\t    var descendants = element.querySelectorAll('*');\n\t    for (var i = 0, l = descendants.length; i < l; i++) {\n\t      jqLiteRemoveData(descendants[i]);\n\t    }\n\t  }\n\t}\n\n\tfunction jqLiteOff(element, type, fn, unsupported) {\n\t  if (isDefined(unsupported)) throw jqLiteMinErr('offargs', 'jqLite#off() does not support the `selector` argument');\n\n\t  var expandoStore = jqLiteExpandoStore(element);\n\t  var events = expandoStore && expandoStore.events;\n\t  var handle = expandoStore && expandoStore.handle;\n\n\t  if (!handle) return; //no listeners registered\n\n\t  if (!type) {\n\t    for (type in events) {\n\t      if (type !== '$destroy') {\n\t        removeEventListenerFn(element, type, handle);\n\t      }\n\t      delete events[type];\n\t    }\n\t  } else {\n\n\t    var removeHandler = function(type) {\n\t      var listenerFns = events[type];\n\t      if (isDefined(fn)) {\n\t        arrayRemove(listenerFns || [], fn);\n\t      }\n\t      if (!(isDefined(fn) && listenerFns && listenerFns.length > 0)) {\n\t        removeEventListenerFn(element, type, handle);\n\t        delete events[type];\n\t      }\n\t    };\n\n\t    forEach(type.split(' '), function(type) {\n\t      removeHandler(type);\n\t      if (MOUSE_EVENT_MAP[type]) {\n\t        removeHandler(MOUSE_EVENT_MAP[type]);\n\t      }\n\t    });\n\t  }\n\t}\n\n\tfunction jqLiteRemoveData(element, name) {\n\t  var expandoId = element.ng339;\n\t  var expandoStore = expandoId && jqCache[expandoId];\n\n\t  if (expandoStore) {\n\t    if (name) {\n\t      delete expandoStore.data[name];\n\t      return;\n\t    }\n\n\t    if (expandoStore.handle) {\n\t      if (expandoStore.events.$destroy) {\n\t        expandoStore.handle({}, '$destroy');\n\t      }\n\t      jqLiteOff(element);\n\t    }\n\t    delete jqCache[expandoId];\n\t    element.ng339 = undefined; // don't delete DOM expandos. IE and Chrome don't like it\n\t  }\n\t}\n\n\n\tfunction jqLiteExpandoStore(element, createIfNecessary) {\n\t  var expandoId = element.ng339,\n\t      expandoStore = expandoId && jqCache[expandoId];\n\n\t  if (createIfNecessary && !expandoStore) {\n\t    element.ng339 = expandoId = jqNextId();\n\t    expandoStore = jqCache[expandoId] = {events: {}, data: {}, handle: undefined};\n\t  }\n\n\t  return expandoStore;\n\t}\n\n\n\tfunction jqLiteData(element, key, value) {\n\t  if (jqLiteAcceptsData(element)) {\n\n\t    var isSimpleSetter = isDefined(value);\n\t    var isSimpleGetter = !isSimpleSetter && key && !isObject(key);\n\t    var massGetter = !key;\n\t    var expandoStore = jqLiteExpandoStore(element, !isSimpleGetter);\n\t    var data = expandoStore && expandoStore.data;\n\n\t    if (isSimpleSetter) { // data('key', value)\n\t      data[key] = value;\n\t    } else {\n\t      if (massGetter) {  // data()\n\t        return data;\n\t      } else {\n\t        if (isSimpleGetter) { // data('key')\n\t          // don't force creation of expandoStore if it doesn't exist yet\n\t          return data && data[key];\n\t        } else { // mass-setter: data({key1: val1, key2: val2})\n\t          extend(data, key);\n\t        }\n\t      }\n\t    }\n\t  }\n\t}\n\n\tfunction jqLiteHasClass(element, selector) {\n\t  if (!element.getAttribute) return false;\n\t  return ((\" \" + (element.getAttribute('class') || '') + \" \").replace(/[\\n\\t]/g, \" \").\n\t      indexOf(\" \" + selector + \" \") > -1);\n\t}\n\n\tfunction jqLiteRemoveClass(element, cssClasses) {\n\t  if (cssClasses && element.setAttribute) {\n\t    forEach(cssClasses.split(' '), function(cssClass) {\n\t      element.setAttribute('class', trim(\n\t          (\" \" + (element.getAttribute('class') || '') + \" \")\n\t          .replace(/[\\n\\t]/g, \" \")\n\t          .replace(\" \" + trim(cssClass) + \" \", \" \"))\n\t      );\n\t    });\n\t  }\n\t}\n\n\tfunction jqLiteAddClass(element, cssClasses) {\n\t  if (cssClasses && element.setAttribute) {\n\t    var existingClasses = (' ' + (element.getAttribute('class') || '') + ' ')\n\t                            .replace(/[\\n\\t]/g, \" \");\n\n\t    forEach(cssClasses.split(' '), function(cssClass) {\n\t      cssClass = trim(cssClass);\n\t      if (existingClasses.indexOf(' ' + cssClass + ' ') === -1) {\n\t        existingClasses += cssClass + ' ';\n\t      }\n\t    });\n\n\t    element.setAttribute('class', trim(existingClasses));\n\t  }\n\t}\n\n\n\tfunction jqLiteAddNodes(root, elements) {\n\t  // THIS CODE IS VERY HOT. Don't make changes without benchmarking.\n\n\t  if (elements) {\n\n\t    // if a Node (the most common case)\n\t    if (elements.nodeType) {\n\t      root[root.length++] = elements;\n\t    } else {\n\t      var length = elements.length;\n\n\t      // if an Array or NodeList and not a Window\n\t      if (typeof length === 'number' && elements.window !== elements) {\n\t        if (length) {\n\t          for (var i = 0; i < length; i++) {\n\t            root[root.length++] = elements[i];\n\t          }\n\t        }\n\t      } else {\n\t        root[root.length++] = elements;\n\t      }\n\t    }\n\t  }\n\t}\n\n\n\tfunction jqLiteController(element, name) {\n\t  return jqLiteInheritedData(element, '$' + (name || 'ngController') + 'Controller');\n\t}\n\n\tfunction jqLiteInheritedData(element, name, value) {\n\t  // if element is the document object work with the html element instead\n\t  // this makes $(document).scope() possible\n\t  if (element.nodeType == NODE_TYPE_DOCUMENT) {\n\t    element = element.documentElement;\n\t  }\n\t  var names = isArray(name) ? name : [name];\n\n\t  while (element) {\n\t    for (var i = 0, ii = names.length; i < ii; i++) {\n\t      if (isDefined(value = jqLite.data(element, names[i]))) return value;\n\t    }\n\n\t    // If dealing with a document fragment node with a host element, and no parent, use the host\n\t    // element as the parent. This enables directives within a Shadow DOM or polyfilled Shadow DOM\n\t    // to lookup parent controllers.\n\t    element = element.parentNode || (element.nodeType === NODE_TYPE_DOCUMENT_FRAGMENT && element.host);\n\t  }\n\t}\n\n\tfunction jqLiteEmpty(element) {\n\t  jqLiteDealoc(element, true);\n\t  while (element.firstChild) {\n\t    element.removeChild(element.firstChild);\n\t  }\n\t}\n\n\tfunction jqLiteRemove(element, keepData) {\n\t  if (!keepData) jqLiteDealoc(element);\n\t  var parent = element.parentNode;\n\t  if (parent) parent.removeChild(element);\n\t}\n\n\n\tfunction jqLiteDocumentLoaded(action, win) {\n\t  win = win || window;\n\t  if (win.document.readyState === 'complete') {\n\t    // Force the action to be run async for consistent behaviour\n\t    // from the action's point of view\n\t    // i.e. it will definitely not be in a $apply\n\t    win.setTimeout(action);\n\t  } else {\n\t    // No need to unbind this handler as load is only ever called once\n\t    jqLite(win).on('load', action);\n\t  }\n\t}\n\n\t//////////////////////////////////////////\n\t// Functions which are declared directly.\n\t//////////////////////////////////////////\n\tvar JQLitePrototype = JQLite.prototype = {\n\t  ready: function(fn) {\n\t    var fired = false;\n\n\t    function trigger() {\n\t      if (fired) return;\n\t      fired = true;\n\t      fn();\n\t    }\n\n\t    // check if document is already loaded\n\t    if (document.readyState === 'complete') {\n\t      setTimeout(trigger);\n\t    } else {\n\t      this.on('DOMContentLoaded', trigger); // works for modern browsers and IE9\n\t      // we can not use jqLite since we are not done loading and jQuery could be loaded later.\n\t      // jshint -W064\n\t      JQLite(window).on('load', trigger); // fallback to window.onload for others\n\t      // jshint +W064\n\t    }\n\t  },\n\t  toString: function() {\n\t    var value = [];\n\t    forEach(this, function(e) { value.push('' + e);});\n\t    return '[' + value.join(', ') + ']';\n\t  },\n\n\t  eq: function(index) {\n\t      return (index >= 0) ? jqLite(this[index]) : jqLite(this[this.length + index]);\n\t  },\n\n\t  length: 0,\n\t  push: push,\n\t  sort: [].sort,\n\t  splice: [].splice\n\t};\n\n\t//////////////////////////////////////////\n\t// Functions iterating getter/setters.\n\t// these functions return self on setter and\n\t// value on get.\n\t//////////////////////////////////////////\n\tvar BOOLEAN_ATTR = {};\n\tforEach('multiple,selected,checked,disabled,readOnly,required,open'.split(','), function(value) {\n\t  BOOLEAN_ATTR[lowercase(value)] = value;\n\t});\n\tvar BOOLEAN_ELEMENTS = {};\n\tforEach('input,select,option,textarea,button,form,details'.split(','), function(value) {\n\t  BOOLEAN_ELEMENTS[value] = true;\n\t});\n\tvar ALIASED_ATTR = {\n\t  'ngMinlength': 'minlength',\n\t  'ngMaxlength': 'maxlength',\n\t  'ngMin': 'min',\n\t  'ngMax': 'max',\n\t  'ngPattern': 'pattern'\n\t};\n\n\tfunction getBooleanAttrName(element, name) {\n\t  // check dom last since we will most likely fail on name\n\t  var booleanAttr = BOOLEAN_ATTR[name.toLowerCase()];\n\n\t  // booleanAttr is here twice to minimize DOM access\n\t  return booleanAttr && BOOLEAN_ELEMENTS[nodeName_(element)] && booleanAttr;\n\t}\n\n\tfunction getAliasedAttrName(name) {\n\t  return ALIASED_ATTR[name];\n\t}\n\n\tforEach({\n\t  data: jqLiteData,\n\t  removeData: jqLiteRemoveData,\n\t  hasData: jqLiteHasData\n\t}, function(fn, name) {\n\t  JQLite[name] = fn;\n\t});\n\n\tforEach({\n\t  data: jqLiteData,\n\t  inheritedData: jqLiteInheritedData,\n\n\t  scope: function(element) {\n\t    // Can't use jqLiteData here directly so we stay compatible with jQuery!\n\t    return jqLite.data(element, '$scope') || jqLiteInheritedData(element.parentNode || element, ['$isolateScope', '$scope']);\n\t  },\n\n\t  isolateScope: function(element) {\n\t    // Can't use jqLiteData here directly so we stay compatible with jQuery!\n\t    return jqLite.data(element, '$isolateScope') || jqLite.data(element, '$isolateScopeNoTemplate');\n\t  },\n\n\t  controller: jqLiteController,\n\n\t  injector: function(element) {\n\t    return jqLiteInheritedData(element, '$injector');\n\t  },\n\n\t  removeAttr: function(element, name) {\n\t    element.removeAttribute(name);\n\t  },\n\n\t  hasClass: jqLiteHasClass,\n\n\t  css: function(element, name, value) {\n\t    name = camelCase(name);\n\n\t    if (isDefined(value)) {\n\t      element.style[name] = value;\n\t    } else {\n\t      return element.style[name];\n\t    }\n\t  },\n\n\t  attr: function(element, name, value) {\n\t    var nodeType = element.nodeType;\n\t    if (nodeType === NODE_TYPE_TEXT || nodeType === NODE_TYPE_ATTRIBUTE || nodeType === NODE_TYPE_COMMENT) {\n\t      return;\n\t    }\n\t    var lowercasedName = lowercase(name);\n\t    if (BOOLEAN_ATTR[lowercasedName]) {\n\t      if (isDefined(value)) {\n\t        if (!!value) {\n\t          element[name] = true;\n\t          element.setAttribute(name, lowercasedName);\n\t        } else {\n\t          element[name] = false;\n\t          element.removeAttribute(lowercasedName);\n\t        }\n\t      } else {\n\t        return (element[name] ||\n\t                 (element.attributes.getNamedItem(name) || noop).specified)\n\t               ? lowercasedName\n\t               : undefined;\n\t      }\n\t    } else if (isDefined(value)) {\n\t      element.setAttribute(name, value);\n\t    } else if (element.getAttribute) {\n\t      // the extra argument \"2\" is to get the right thing for a.href in IE, see jQuery code\n\t      // some elements (e.g. Document) don't have get attribute, so return undefined\n\t      var ret = element.getAttribute(name, 2);\n\t      // normalize non-existing attributes to undefined (as jQuery)\n\t      return ret === null ? undefined : ret;\n\t    }\n\t  },\n\n\t  prop: function(element, name, value) {\n\t    if (isDefined(value)) {\n\t      element[name] = value;\n\t    } else {\n\t      return element[name];\n\t    }\n\t  },\n\n\t  text: (function() {\n\t    getText.$dv = '';\n\t    return getText;\n\n\t    function getText(element, value) {\n\t      if (isUndefined(value)) {\n\t        var nodeType = element.nodeType;\n\t        return (nodeType === NODE_TYPE_ELEMENT || nodeType === NODE_TYPE_TEXT) ? element.textContent : '';\n\t      }\n\t      element.textContent = value;\n\t    }\n\t  })(),\n\n\t  val: function(element, value) {\n\t    if (isUndefined(value)) {\n\t      if (element.multiple && nodeName_(element) === 'select') {\n\t        var result = [];\n\t        forEach(element.options, function(option) {\n\t          if (option.selected) {\n\t            result.push(option.value || option.text);\n\t          }\n\t        });\n\t        return result.length === 0 ? null : result;\n\t      }\n\t      return element.value;\n\t    }\n\t    element.value = value;\n\t  },\n\n\t  html: function(element, value) {\n\t    if (isUndefined(value)) {\n\t      return element.innerHTML;\n\t    }\n\t    jqLiteDealoc(element, true);\n\t    element.innerHTML = value;\n\t  },\n\n\t  empty: jqLiteEmpty\n\t}, function(fn, name) {\n\t  /**\n\t   * Properties: writes return selection, reads return first value\n\t   */\n\t  JQLite.prototype[name] = function(arg1, arg2) {\n\t    var i, key;\n\t    var nodeCount = this.length;\n\n\t    // jqLiteHasClass has only two arguments, but is a getter-only fn, so we need to special-case it\n\t    // in a way that survives minification.\n\t    // jqLiteEmpty takes no arguments but is a setter.\n\t    if (fn !== jqLiteEmpty &&\n\t        (isUndefined((fn.length == 2 && (fn !== jqLiteHasClass && fn !== jqLiteController)) ? arg1 : arg2))) {\n\t      if (isObject(arg1)) {\n\n\t        // we are a write, but the object properties are the key/values\n\t        for (i = 0; i < nodeCount; i++) {\n\t          if (fn === jqLiteData) {\n\t            // data() takes the whole object in jQuery\n\t            fn(this[i], arg1);\n\t          } else {\n\t            for (key in arg1) {\n\t              fn(this[i], key, arg1[key]);\n\t            }\n\t          }\n\t        }\n\t        // return self for chaining\n\t        return this;\n\t      } else {\n\t        // we are a read, so read the first child.\n\t        // TODO: do we still need this?\n\t        var value = fn.$dv;\n\t        // Only if we have $dv do we iterate over all, otherwise it is just the first element.\n\t        var jj = (isUndefined(value)) ? Math.min(nodeCount, 1) : nodeCount;\n\t        for (var j = 0; j < jj; j++) {\n\t          var nodeValue = fn(this[j], arg1, arg2);\n\t          value = value ? value + nodeValue : nodeValue;\n\t        }\n\t        return value;\n\t      }\n\t    } else {\n\t      // we are a write, so apply to all children\n\t      for (i = 0; i < nodeCount; i++) {\n\t        fn(this[i], arg1, arg2);\n\t      }\n\t      // return self for chaining\n\t      return this;\n\t    }\n\t  };\n\t});\n\n\tfunction createEventHandler(element, events) {\n\t  var eventHandler = function(event, type) {\n\t    // jQuery specific api\n\t    event.isDefaultPrevented = function() {\n\t      return event.defaultPrevented;\n\t    };\n\n\t    var eventFns = events[type || event.type];\n\t    var eventFnsLength = eventFns ? eventFns.length : 0;\n\n\t    if (!eventFnsLength) return;\n\n\t    if (isUndefined(event.immediatePropagationStopped)) {\n\t      var originalStopImmediatePropagation = event.stopImmediatePropagation;\n\t      event.stopImmediatePropagation = function() {\n\t        event.immediatePropagationStopped = true;\n\n\t        if (event.stopPropagation) {\n\t          event.stopPropagation();\n\t        }\n\n\t        if (originalStopImmediatePropagation) {\n\t          originalStopImmediatePropagation.call(event);\n\t        }\n\t      };\n\t    }\n\n\t    event.isImmediatePropagationStopped = function() {\n\t      return event.immediatePropagationStopped === true;\n\t    };\n\n\t    // Some events have special handlers that wrap the real handler\n\t    var handlerWrapper = eventFns.specialHandlerWrapper || defaultHandlerWrapper;\n\n\t    // Copy event handlers in case event handlers array is modified during execution.\n\t    if ((eventFnsLength > 1)) {\n\t      eventFns = shallowCopy(eventFns);\n\t    }\n\n\t    for (var i = 0; i < eventFnsLength; i++) {\n\t      if (!event.isImmediatePropagationStopped()) {\n\t        handlerWrapper(element, event, eventFns[i]);\n\t      }\n\t    }\n\t  };\n\n\t  // TODO: this is a hack for angularMocks/clearDataCache that makes it possible to deregister all\n\t  //       events on `element`\n\t  eventHandler.elem = element;\n\t  return eventHandler;\n\t}\n\n\tfunction defaultHandlerWrapper(element, event, handler) {\n\t  handler.call(element, event);\n\t}\n\n\tfunction specialMouseHandlerWrapper(target, event, handler) {\n\t  // Refer to jQuery's implementation of mouseenter & mouseleave\n\t  // Read about mouseenter and mouseleave:\n\t  // http://www.quirksmode.org/js/events_mouse.html#link8\n\t  var related = event.relatedTarget;\n\t  // For mousenter/leave call the handler if related is outside the target.\n\t  // NB: No relatedTarget if the mouse left/entered the browser window\n\t  if (!related || (related !== target && !jqLiteContains.call(target, related))) {\n\t    handler.call(target, event);\n\t  }\n\t}\n\n\t//////////////////////////////////////////\n\t// Functions iterating traversal.\n\t// These functions chain results into a single\n\t// selector.\n\t//////////////////////////////////////////\n\tforEach({\n\t  removeData: jqLiteRemoveData,\n\n\t  on: function jqLiteOn(element, type, fn, unsupported) {\n\t    if (isDefined(unsupported)) throw jqLiteMinErr('onargs', 'jqLite#on() does not support the `selector` or `eventData` parameters');\n\n\t    // Do not add event handlers to non-elements because they will not be cleaned up.\n\t    if (!jqLiteAcceptsData(element)) {\n\t      return;\n\t    }\n\n\t    var expandoStore = jqLiteExpandoStore(element, true);\n\t    var events = expandoStore.events;\n\t    var handle = expandoStore.handle;\n\n\t    if (!handle) {\n\t      handle = expandoStore.handle = createEventHandler(element, events);\n\t    }\n\n\t    // http://jsperf.com/string-indexof-vs-split\n\t    var types = type.indexOf(' ') >= 0 ? type.split(' ') : [type];\n\t    var i = types.length;\n\n\t    var addHandler = function(type, specialHandlerWrapper, noEventListener) {\n\t      var eventFns = events[type];\n\n\t      if (!eventFns) {\n\t        eventFns = events[type] = [];\n\t        eventFns.specialHandlerWrapper = specialHandlerWrapper;\n\t        if (type !== '$destroy' && !noEventListener) {\n\t          addEventListenerFn(element, type, handle);\n\t        }\n\t      }\n\n\t      eventFns.push(fn);\n\t    };\n\n\t    while (i--) {\n\t      type = types[i];\n\t      if (MOUSE_EVENT_MAP[type]) {\n\t        addHandler(MOUSE_EVENT_MAP[type], specialMouseHandlerWrapper);\n\t        addHandler(type, undefined, true);\n\t      } else {\n\t        addHandler(type);\n\t      }\n\t    }\n\t  },\n\n\t  off: jqLiteOff,\n\n\t  one: function(element, type, fn) {\n\t    element = jqLite(element);\n\n\t    //add the listener twice so that when it is called\n\t    //you can remove the original function and still be\n\t    //able to call element.off(ev, fn) normally\n\t    element.on(type, function onFn() {\n\t      element.off(type, fn);\n\t      element.off(type, onFn);\n\t    });\n\t    element.on(type, fn);\n\t  },\n\n\t  replaceWith: function(element, replaceNode) {\n\t    var index, parent = element.parentNode;\n\t    jqLiteDealoc(element);\n\t    forEach(new JQLite(replaceNode), function(node) {\n\t      if (index) {\n\t        parent.insertBefore(node, index.nextSibling);\n\t      } else {\n\t        parent.replaceChild(node, element);\n\t      }\n\t      index = node;\n\t    });\n\t  },\n\n\t  children: function(element) {\n\t    var children = [];\n\t    forEach(element.childNodes, function(element) {\n\t      if (element.nodeType === NODE_TYPE_ELEMENT) {\n\t        children.push(element);\n\t      }\n\t    });\n\t    return children;\n\t  },\n\n\t  contents: function(element) {\n\t    return element.contentDocument || element.childNodes || [];\n\t  },\n\n\t  append: function(element, node) {\n\t    var nodeType = element.nodeType;\n\t    if (nodeType !== NODE_TYPE_ELEMENT && nodeType !== NODE_TYPE_DOCUMENT_FRAGMENT) return;\n\n\t    node = new JQLite(node);\n\n\t    for (var i = 0, ii = node.length; i < ii; i++) {\n\t      var child = node[i];\n\t      element.appendChild(child);\n\t    }\n\t  },\n\n\t  prepend: function(element, node) {\n\t    if (element.nodeType === NODE_TYPE_ELEMENT) {\n\t      var index = element.firstChild;\n\t      forEach(new JQLite(node), function(child) {\n\t        element.insertBefore(child, index);\n\t      });\n\t    }\n\t  },\n\n\t  wrap: function(element, wrapNode) {\n\t    wrapNode = jqLite(wrapNode).eq(0).clone()[0];\n\t    var parent = element.parentNode;\n\t    if (parent) {\n\t      parent.replaceChild(wrapNode, element);\n\t    }\n\t    wrapNode.appendChild(element);\n\t  },\n\n\t  remove: jqLiteRemove,\n\n\t  detach: function(element) {\n\t    jqLiteRemove(element, true);\n\t  },\n\n\t  after: function(element, newElement) {\n\t    var index = element, parent = element.parentNode;\n\t    newElement = new JQLite(newElement);\n\n\t    for (var i = 0, ii = newElement.length; i < ii; i++) {\n\t      var node = newElement[i];\n\t      parent.insertBefore(node, index.nextSibling);\n\t      index = node;\n\t    }\n\t  },\n\n\t  addClass: jqLiteAddClass,\n\t  removeClass: jqLiteRemoveClass,\n\n\t  toggleClass: function(element, selector, condition) {\n\t    if (selector) {\n\t      forEach(selector.split(' '), function(className) {\n\t        var classCondition = condition;\n\t        if (isUndefined(classCondition)) {\n\t          classCondition = !jqLiteHasClass(element, className);\n\t        }\n\t        (classCondition ? jqLiteAddClass : jqLiteRemoveClass)(element, className);\n\t      });\n\t    }\n\t  },\n\n\t  parent: function(element) {\n\t    var parent = element.parentNode;\n\t    return parent && parent.nodeType !== NODE_TYPE_DOCUMENT_FRAGMENT ? parent : null;\n\t  },\n\n\t  next: function(element) {\n\t    return element.nextElementSibling;\n\t  },\n\n\t  find: function(element, selector) {\n\t    if (element.getElementsByTagName) {\n\t      return element.getElementsByTagName(selector);\n\t    } else {\n\t      return [];\n\t    }\n\t  },\n\n\t  clone: jqLiteClone,\n\n\t  triggerHandler: function(element, event, extraParameters) {\n\n\t    var dummyEvent, eventFnsCopy, handlerArgs;\n\t    var eventName = event.type || event;\n\t    var expandoStore = jqLiteExpandoStore(element);\n\t    var events = expandoStore && expandoStore.events;\n\t    var eventFns = events && events[eventName];\n\n\t    if (eventFns) {\n\t      // Create a dummy event to pass to the handlers\n\t      dummyEvent = {\n\t        preventDefault: function() { this.defaultPrevented = true; },\n\t        isDefaultPrevented: function() { return this.defaultPrevented === true; },\n\t        stopImmediatePropagation: function() { this.immediatePropagationStopped = true; },\n\t        isImmediatePropagationStopped: function() { return this.immediatePropagationStopped === true; },\n\t        stopPropagation: noop,\n\t        type: eventName,\n\t        target: element\n\t      };\n\n\t      // If a custom event was provided then extend our dummy event with it\n\t      if (event.type) {\n\t        dummyEvent = extend(dummyEvent, event);\n\t      }\n\n\t      // Copy event handlers in case event handlers array is modified during execution.\n\t      eventFnsCopy = shallowCopy(eventFns);\n\t      handlerArgs = extraParameters ? [dummyEvent].concat(extraParameters) : [dummyEvent];\n\n\t      forEach(eventFnsCopy, function(fn) {\n\t        if (!dummyEvent.isImmediatePropagationStopped()) {\n\t          fn.apply(element, handlerArgs);\n\t        }\n\t      });\n\t    }\n\t  }\n\t}, function(fn, name) {\n\t  /**\n\t   * chaining functions\n\t   */\n\t  JQLite.prototype[name] = function(arg1, arg2, arg3) {\n\t    var value;\n\n\t    for (var i = 0, ii = this.length; i < ii; i++) {\n\t      if (isUndefined(value)) {\n\t        value = fn(this[i], arg1, arg2, arg3);\n\t        if (isDefined(value)) {\n\t          // any function which returns a value needs to be wrapped\n\t          value = jqLite(value);\n\t        }\n\t      } else {\n\t        jqLiteAddNodes(value, fn(this[i], arg1, arg2, arg3));\n\t      }\n\t    }\n\t    return isDefined(value) ? value : this;\n\t  };\n\n\t  // bind legacy bind/unbind to on/off\n\t  JQLite.prototype.bind = JQLite.prototype.on;\n\t  JQLite.prototype.unbind = JQLite.prototype.off;\n\t});\n\n\n\t// Provider for private $$jqLite service\n\tfunction $$jqLiteProvider() {\n\t  this.$get = function $$jqLite() {\n\t    return extend(JQLite, {\n\t      hasClass: function(node, classes) {\n\t        if (node.attr) node = node[0];\n\t        return jqLiteHasClass(node, classes);\n\t      },\n\t      addClass: function(node, classes) {\n\t        if (node.attr) node = node[0];\n\t        return jqLiteAddClass(node, classes);\n\t      },\n\t      removeClass: function(node, classes) {\n\t        if (node.attr) node = node[0];\n\t        return jqLiteRemoveClass(node, classes);\n\t      }\n\t    });\n\t  };\n\t}\n\n\t/**\n\t * Computes a hash of an 'obj'.\n\t * Hash of a:\n\t *  string is string\n\t *  number is number as string\n\t *  object is either result of calling $$hashKey function on the object or uniquely generated id,\n\t *         that is also assigned to the $$hashKey property of the object.\n\t *\n\t * @param obj\n\t * @returns {string} hash string such that the same input will have the same hash string.\n\t *         The resulting string key is in 'type:hashKey' format.\n\t */\n\tfunction hashKey(obj, nextUidFn) {\n\t  var key = obj && obj.$$hashKey;\n\n\t  if (key) {\n\t    if (typeof key === 'function') {\n\t      key = obj.$$hashKey();\n\t    }\n\t    return key;\n\t  }\n\n\t  var objType = typeof obj;\n\t  if (objType == 'function' || (objType == 'object' && obj !== null)) {\n\t    key = obj.$$hashKey = objType + ':' + (nextUidFn || nextUid)();\n\t  } else {\n\t    key = objType + ':' + obj;\n\t  }\n\n\t  return key;\n\t}\n\n\t/**\n\t * HashMap which can use objects as keys\n\t */\n\tfunction HashMap(array, isolatedUid) {\n\t  if (isolatedUid) {\n\t    var uid = 0;\n\t    this.nextUid = function() {\n\t      return ++uid;\n\t    };\n\t  }\n\t  forEach(array, this.put, this);\n\t}\n\tHashMap.prototype = {\n\t  /**\n\t   * Store key value pair\n\t   * @param key key to store can be any type\n\t   * @param value value to store can be any type\n\t   */\n\t  put: function(key, value) {\n\t    this[hashKey(key, this.nextUid)] = value;\n\t  },\n\n\t  /**\n\t   * @param key\n\t   * @returns {Object} the value for the key\n\t   */\n\t  get: function(key) {\n\t    return this[hashKey(key, this.nextUid)];\n\t  },\n\n\t  /**\n\t   * Remove the key/value pair\n\t   * @param key\n\t   */\n\t  remove: function(key) {\n\t    var value = this[key = hashKey(key, this.nextUid)];\n\t    delete this[key];\n\t    return value;\n\t  }\n\t};\n\n\tvar $$HashMapProvider = [function() {\n\t  this.$get = [function() {\n\t    return HashMap;\n\t  }];\n\t}];\n\n\t/**\n\t * @ngdoc function\n\t * @module ng\n\t * @name angular.injector\n\t * @kind function\n\t *\n\t * @description\n\t * Creates an injector object that can be used for retrieving services as well as for\n\t * dependency injection (see {@link guide/di dependency injection}).\n\t *\n\t * @param {Array.<string|Function>} modules A list of module functions or their aliases. See\n\t *     {@link angular.module}. The `ng` module must be explicitly added.\n\t * @param {boolean=} [strictDi=false] Whether the injector should be in strict mode, which\n\t *     disallows argument name annotation inference.\n\t * @returns {injector} Injector object. See {@link auto.$injector $injector}.\n\t *\n\t * @example\n\t * Typical usage\n\t * ```js\n\t *   // create an injector\n\t *   var $injector = angular.injector(['ng']);\n\t *\n\t *   // use the injector to kick off your application\n\t *   // use the type inference to auto inject arguments, or use implicit injection\n\t *   $injector.invoke(function($rootScope, $compile, $document) {\n\t *     $compile($document)($rootScope);\n\t *     $rootScope.$digest();\n\t *   });\n\t * ```\n\t *\n\t * Sometimes you want to get access to the injector of a currently running Angular app\n\t * from outside Angular. Perhaps, you want to inject and compile some markup after the\n\t * application has been bootstrapped. You can do this using the extra `injector()` added\n\t * to JQuery/jqLite elements. See {@link angular.element}.\n\t *\n\t * *This is fairly rare but could be the case if a third party library is injecting the\n\t * markup.*\n\t *\n\t * In the following example a new block of HTML containing a `ng-controller`\n\t * directive is added to the end of the document body by JQuery. We then compile and link\n\t * it into the current AngularJS scope.\n\t *\n\t * ```js\n\t * var $div = $('<div ng-controller=\"MyCtrl\">{{content.label}}</div>');\n\t * $(document.body).append($div);\n\t *\n\t * angular.element(document).injector().invoke(function($compile) {\n\t *   var scope = angular.element($div).scope();\n\t *   $compile($div)(scope);\n\t * });\n\t * ```\n\t */\n\n\n\t/**\n\t * @ngdoc module\n\t * @name auto\n\t * @description\n\t *\n\t * Implicit module which gets automatically added to each {@link auto.$injector $injector}.\n\t */\n\n\tvar FN_ARGS = /^[^\\(]*\\(\\s*([^\\)]*)\\)/m;\n\tvar FN_ARG_SPLIT = /,/;\n\tvar FN_ARG = /^\\s*(_?)(\\S+?)\\1\\s*$/;\n\tvar STRIP_COMMENTS = /((\\/\\/.*$)|(\\/\\*[\\s\\S]*?\\*\\/))/mg;\n\tvar $injectorMinErr = minErr('$injector');\n\n\tfunction anonFn(fn) {\n\t  // For anonymous functions, showing at the very least the function signature can help in\n\t  // debugging.\n\t  var fnText = fn.toString().replace(STRIP_COMMENTS, ''),\n\t      args = fnText.match(FN_ARGS);\n\t  if (args) {\n\t    return 'function(' + (args[1] || '').replace(/[\\s\\r\\n]+/, ' ') + ')';\n\t  }\n\t  return 'fn';\n\t}\n\n\tfunction annotate(fn, strictDi, name) {\n\t  var $inject,\n\t      fnText,\n\t      argDecl,\n\t      last;\n\n\t  if (typeof fn === 'function') {\n\t    if (!($inject = fn.$inject)) {\n\t      $inject = [];\n\t      if (fn.length) {\n\t        if (strictDi) {\n\t          if (!isString(name) || !name) {\n\t            name = fn.name || anonFn(fn);\n\t          }\n\t          throw $injectorMinErr('strictdi',\n\t            '{0} is not using explicit annotation and cannot be invoked in strict mode', name);\n\t        }\n\t        fnText = fn.toString().replace(STRIP_COMMENTS, '');\n\t        argDecl = fnText.match(FN_ARGS);\n\t        forEach(argDecl[1].split(FN_ARG_SPLIT), function(arg) {\n\t          arg.replace(FN_ARG, function(all, underscore, name) {\n\t            $inject.push(name);\n\t          });\n\t        });\n\t      }\n\t      fn.$inject = $inject;\n\t    }\n\t  } else if (isArray(fn)) {\n\t    last = fn.length - 1;\n\t    assertArgFn(fn[last], 'fn');\n\t    $inject = fn.slice(0, last);\n\t  } else {\n\t    assertArgFn(fn, 'fn', true);\n\t  }\n\t  return $inject;\n\t}\n\n\t///////////////////////////////////////\n\n\t/**\n\t * @ngdoc service\n\t * @name $injector\n\t *\n\t * @description\n\t *\n\t * `$injector` is used to retrieve object instances as defined by\n\t * {@link auto.$provide provider}, instantiate types, invoke methods,\n\t * and load modules.\n\t *\n\t * The following always holds true:\n\t *\n\t * ```js\n\t *   var $injector = angular.injector();\n\t *   expect($injector.get('$injector')).toBe($injector);\n\t *   expect($injector.invoke(function($injector) {\n\t *     return $injector;\n\t *   })).toBe($injector);\n\t * ```\n\t *\n\t * # Injection Function Annotation\n\t *\n\t * JavaScript does not have annotations, and annotations are needed for dependency injection. The\n\t * following are all valid ways of annotating function with injection arguments and are equivalent.\n\t *\n\t * ```js\n\t *   // inferred (only works if code not minified/obfuscated)\n\t *   $injector.invoke(function(serviceA){});\n\t *\n\t *   // annotated\n\t *   function explicit(serviceA) {};\n\t *   explicit.$inject = ['serviceA'];\n\t *   $injector.invoke(explicit);\n\t *\n\t *   // inline\n\t *   $injector.invoke(['serviceA', function(serviceA){}]);\n\t * ```\n\t *\n\t * ## Inference\n\t *\n\t * In JavaScript calling `toString()` on a function returns the function definition. The definition\n\t * can then be parsed and the function arguments can be extracted. This method of discovering\n\t * annotations is disallowed when the injector is in strict mode.\n\t * *NOTE:* This does not work with minification, and obfuscation tools since these tools change the\n\t * argument names.\n\t *\n\t * ## `$inject` Annotation\n\t * By adding an `$inject` property onto a function the injection parameters can be specified.\n\t *\n\t * ## Inline\n\t * As an array of injection names, where the last item in the array is the function to call.\n\t */\n\n\t/**\n\t * @ngdoc method\n\t * @name $injector#get\n\t *\n\t * @description\n\t * Return an instance of the service.\n\t *\n\t * @param {string} name The name of the instance to retrieve.\n\t * @param {string=} caller An optional string to provide the origin of the function call for error messages.\n\t * @return {*} The instance.\n\t */\n\n\t/**\n\t * @ngdoc method\n\t * @name $injector#invoke\n\t *\n\t * @description\n\t * Invoke the method and supply the method arguments from the `$injector`.\n\t *\n\t * @param {Function|Array.<string|Function>} fn The injectable function to invoke. Function parameters are\n\t *   injected according to the {@link guide/di $inject Annotation} rules.\n\t * @param {Object=} self The `this` for the invoked method.\n\t * @param {Object=} locals Optional object. If preset then any argument names are read from this\n\t *                         object first, before the `$injector` is consulted.\n\t * @returns {*} the value returned by the invoked `fn` function.\n\t */\n\n\t/**\n\t * @ngdoc method\n\t * @name $injector#has\n\t *\n\t * @description\n\t * Allows the user to query if the particular service exists.\n\t *\n\t * @param {string} name Name of the service to query.\n\t * @returns {boolean} `true` if injector has given service.\n\t */\n\n\t/**\n\t * @ngdoc method\n\t * @name $injector#instantiate\n\t * @description\n\t * Create a new instance of JS type. The method takes a constructor function, invokes the new\n\t * operator, and supplies all of the arguments to the constructor function as specified by the\n\t * constructor annotation.\n\t *\n\t * @param {Function} Type Annotated constructor function.\n\t * @param {Object=} locals Optional object. If preset then any argument names are read from this\n\t * object first, before the `$injector` is consulted.\n\t * @returns {Object} new instance of `Type`.\n\t */\n\n\t/**\n\t * @ngdoc method\n\t * @name $injector#annotate\n\t *\n\t * @description\n\t * Returns an array of service names which the function is requesting for injection. This API is\n\t * used by the injector to determine which services need to be injected into the function when the\n\t * function is invoked. There are three ways in which the function can be annotated with the needed\n\t * dependencies.\n\t *\n\t * # Argument names\n\t *\n\t * The simplest form is to extract the dependencies from the arguments of the function. This is done\n\t * by converting the function into a string using `toString()` method and extracting the argument\n\t * names.\n\t * ```js\n\t *   // Given\n\t *   function MyController($scope, $route) {\n\t *     // ...\n\t *   }\n\t *\n\t *   // Then\n\t *   expect(injector.annotate(MyController)).toEqual(['$scope', '$route']);\n\t * ```\n\t *\n\t * You can disallow this method by using strict injection mode.\n\t *\n\t * This method does not work with code minification / obfuscation. For this reason the following\n\t * annotation strategies are supported.\n\t *\n\t * # The `$inject` property\n\t *\n\t * If a function has an `$inject` property and its value is an array of strings, then the strings\n\t * represent names of services to be injected into the function.\n\t * ```js\n\t *   // Given\n\t *   var MyController = function(obfuscatedScope, obfuscatedRoute) {\n\t *     // ...\n\t *   }\n\t *   // Define function dependencies\n\t *   MyController['$inject'] = ['$scope', '$route'];\n\t *\n\t *   // Then\n\t *   expect(injector.annotate(MyController)).toEqual(['$scope', '$route']);\n\t * ```\n\t *\n\t * # The array notation\n\t *\n\t * It is often desirable to inline Injected functions and that's when setting the `$inject` property\n\t * is very inconvenient. In these situations using the array notation to specify the dependencies in\n\t * a way that survives minification is a better choice:\n\t *\n\t * ```js\n\t *   // We wish to write this (not minification / obfuscation safe)\n\t *   injector.invoke(function($compile, $rootScope) {\n\t *     // ...\n\t *   });\n\t *\n\t *   // We are forced to write break inlining\n\t *   var tmpFn = function(obfuscatedCompile, obfuscatedRootScope) {\n\t *     // ...\n\t *   };\n\t *   tmpFn.$inject = ['$compile', '$rootScope'];\n\t *   injector.invoke(tmpFn);\n\t *\n\t *   // To better support inline function the inline annotation is supported\n\t *   injector.invoke(['$compile', '$rootScope', function(obfCompile, obfRootScope) {\n\t *     // ...\n\t *   }]);\n\t *\n\t *   // Therefore\n\t *   expect(injector.annotate(\n\t *      ['$compile', '$rootScope', function(obfus_$compile, obfus_$rootScope) {}])\n\t *    ).toEqual(['$compile', '$rootScope']);\n\t * ```\n\t *\n\t * @param {Function|Array.<string|Function>} fn Function for which dependent service names need to\n\t * be retrieved as described above.\n\t *\n\t * @param {boolean=} [strictDi=false] Disallow argument name annotation inference.\n\t *\n\t * @returns {Array.<string>} The names of the services which the function requires.\n\t */\n\n\n\n\n\t/**\n\t * @ngdoc service\n\t * @name $provide\n\t *\n\t * @description\n\t *\n\t * The {@link auto.$provide $provide} service has a number of methods for registering components\n\t * with the {@link auto.$injector $injector}. Many of these functions are also exposed on\n\t * {@link angular.Module}.\n\t *\n\t * An Angular **service** is a singleton object created by a **service factory**.  These **service\n\t * factories** are functions which, in turn, are created by a **service provider**.\n\t * The **service providers** are constructor functions. When instantiated they must contain a\n\t * property called `$get`, which holds the **service factory** function.\n\t *\n\t * When you request a service, the {@link auto.$injector $injector} is responsible for finding the\n\t * correct **service provider**, instantiating it and then calling its `$get` **service factory**\n\t * function to get the instance of the **service**.\n\t *\n\t * Often services have no configuration options and there is no need to add methods to the service\n\t * provider.  The provider will be no more than a constructor function with a `$get` property. For\n\t * these cases the {@link auto.$provide $provide} service has additional helper methods to register\n\t * services without specifying a provider.\n\t *\n\t * * {@link auto.$provide#provider provider(provider)} - registers a **service provider** with the\n\t *     {@link auto.$injector $injector}\n\t * * {@link auto.$provide#constant constant(obj)} - registers a value/object that can be accessed by\n\t *     providers and services.\n\t * * {@link auto.$provide#value value(obj)} - registers a value/object that can only be accessed by\n\t *     services, not providers.\n\t * * {@link auto.$provide#factory factory(fn)} - registers a service **factory function**, `fn`,\n\t *     that will be wrapped in a **service provider** object, whose `$get` property will contain the\n\t *     given factory function.\n\t * * {@link auto.$provide#service service(class)} - registers a **constructor function**, `class`\n\t *     that will be wrapped in a **service provider** object, whose `$get` property will instantiate\n\t *      a new object using the given constructor function.\n\t *\n\t * See the individual methods for more information and examples.\n\t */\n\n\t/**\n\t * @ngdoc method\n\t * @name $provide#provider\n\t * @description\n\t *\n\t * Register a **provider function** with the {@link auto.$injector $injector}. Provider functions\n\t * are constructor functions, whose instances are responsible for \"providing\" a factory for a\n\t * service.\n\t *\n\t * Service provider names start with the name of the service they provide followed by `Provider`.\n\t * For example, the {@link ng.$log $log} service has a provider called\n\t * {@link ng.$logProvider $logProvider}.\n\t *\n\t * Service provider objects can have additional methods which allow configuration of the provider\n\t * and its service. Importantly, you can configure what kind of service is created by the `$get`\n\t * method, or how that service will act. For example, the {@link ng.$logProvider $logProvider} has a\n\t * method {@link ng.$logProvider#debugEnabled debugEnabled}\n\t * which lets you specify whether the {@link ng.$log $log} service will log debug messages to the\n\t * console or not.\n\t *\n\t * @param {string} name The name of the instance. NOTE: the provider will be available under `name +\n\t                        'Provider'` key.\n\t * @param {(Object|function())} provider If the provider is:\n\t *\n\t *   - `Object`: then it should have a `$get` method. The `$get` method will be invoked using\n\t *     {@link auto.$injector#invoke $injector.invoke()} when an instance needs to be created.\n\t *   - `Constructor`: a new instance of the provider will be created using\n\t *     {@link auto.$injector#instantiate $injector.instantiate()}, then treated as `object`.\n\t *\n\t * @returns {Object} registered provider instance\n\n\t * @example\n\t *\n\t * The following example shows how to create a simple event tracking service and register it using\n\t * {@link auto.$provide#provider $provide.provider()}.\n\t *\n\t * ```js\n\t *  // Define the eventTracker provider\n\t *  function EventTrackerProvider() {\n\t *    var trackingUrl = '/track';\n\t *\n\t *    // A provider method for configuring where the tracked events should been saved\n\t *    this.setTrackingUrl = function(url) {\n\t *      trackingUrl = url;\n\t *    };\n\t *\n\t *    // The service factory function\n\t *    this.$get = ['$http', function($http) {\n\t *      var trackedEvents = {};\n\t *      return {\n\t *        // Call this to track an event\n\t *        event: function(event) {\n\t *          var count = trackedEvents[event] || 0;\n\t *          count += 1;\n\t *          trackedEvents[event] = count;\n\t *          return count;\n\t *        },\n\t *        // Call this to save the tracked events to the trackingUrl\n\t *        save: function() {\n\t *          $http.post(trackingUrl, trackedEvents);\n\t *        }\n\t *      };\n\t *    }];\n\t *  }\n\t *\n\t *  describe('eventTracker', function() {\n\t *    var postSpy;\n\t *\n\t *    beforeEach(module(function($provide) {\n\t *      // Register the eventTracker provider\n\t *      $provide.provider('eventTracker', EventTrackerProvider);\n\t *    }));\n\t *\n\t *    beforeEach(module(function(eventTrackerProvider) {\n\t *      // Configure eventTracker provider\n\t *      eventTrackerProvider.setTrackingUrl('/custom-track');\n\t *    }));\n\t *\n\t *    it('tracks events', inject(function(eventTracker) {\n\t *      expect(eventTracker.event('login')).toEqual(1);\n\t *      expect(eventTracker.event('login')).toEqual(2);\n\t *    }));\n\t *\n\t *    it('saves to the tracking url', inject(function(eventTracker, $http) {\n\t *      postSpy = spyOn($http, 'post');\n\t *      eventTracker.event('login');\n\t *      eventTracker.save();\n\t *      expect(postSpy).toHaveBeenCalled();\n\t *      expect(postSpy.mostRecentCall.args[0]).not.toEqual('/track');\n\t *      expect(postSpy.mostRecentCall.args[0]).toEqual('/custom-track');\n\t *      expect(postSpy.mostRecentCall.args[1]).toEqual({ 'login': 1 });\n\t *    }));\n\t *  });\n\t * ```\n\t */\n\n\t/**\n\t * @ngdoc method\n\t * @name $provide#factory\n\t * @description\n\t *\n\t * Register a **service factory**, which will be called to return the service instance.\n\t * This is short for registering a service where its provider consists of only a `$get` property,\n\t * which is the given service factory function.\n\t * You should use {@link auto.$provide#factory $provide.factory(getFn)} if you do not need to\n\t * configure your service in a provider.\n\t *\n\t * @param {string} name The name of the instance.\n\t * @param {Function|Array.<string|Function>} $getFn The injectable $getFn for the instance creation.\n\t *                      Internally this is a short hand for `$provide.provider(name, {$get: $getFn})`.\n\t * @returns {Object} registered provider instance\n\t *\n\t * @example\n\t * Here is an example of registering a service\n\t * ```js\n\t *   $provide.factory('ping', ['$http', function($http) {\n\t *     return function ping() {\n\t *       return $http.send('/ping');\n\t *     };\n\t *   }]);\n\t * ```\n\t * You would then inject and use this service like this:\n\t * ```js\n\t *   someModule.controller('Ctrl', ['ping', function(ping) {\n\t *     ping();\n\t *   }]);\n\t * ```\n\t */\n\n\n\t/**\n\t * @ngdoc method\n\t * @name $provide#service\n\t * @description\n\t *\n\t * Register a **service constructor**, which will be invoked with `new` to create the service\n\t * instance.\n\t * This is short for registering a service where its provider's `$get` property is the service\n\t * constructor function that will be used to instantiate the service instance.\n\t *\n\t * You should use {@link auto.$provide#service $provide.service(class)} if you define your service\n\t * as a type/class.\n\t *\n\t * @param {string} name The name of the instance.\n\t * @param {Function|Array.<string|Function>} constructor An injectable class (constructor function)\n\t *     that will be instantiated.\n\t * @returns {Object} registered provider instance\n\t *\n\t * @example\n\t * Here is an example of registering a service using\n\t * {@link auto.$provide#service $provide.service(class)}.\n\t * ```js\n\t *   var Ping = function($http) {\n\t *     this.$http = $http;\n\t *   };\n\t *\n\t *   Ping.$inject = ['$http'];\n\t *\n\t *   Ping.prototype.send = function() {\n\t *     return this.$http.get('/ping');\n\t *   };\n\t *   $provide.service('ping', Ping);\n\t * ```\n\t * You would then inject and use this service like this:\n\t * ```js\n\t *   someModule.controller('Ctrl', ['ping', function(ping) {\n\t *     ping.send();\n\t *   }]);\n\t * ```\n\t */\n\n\n\t/**\n\t * @ngdoc method\n\t * @name $provide#value\n\t * @description\n\t *\n\t * Register a **value service** with the {@link auto.$injector $injector}, such as a string, a\n\t * number, an array, an object or a function.  This is short for registering a service where its\n\t * provider's `$get` property is a factory function that takes no arguments and returns the **value\n\t * service**.\n\t *\n\t * Value services are similar to constant services, except that they cannot be injected into a\n\t * module configuration function (see {@link angular.Module#config}) but they can be overridden by\n\t * an Angular\n\t * {@link auto.$provide#decorator decorator}.\n\t *\n\t * @param {string} name The name of the instance.\n\t * @param {*} value The value.\n\t * @returns {Object} registered provider instance\n\t *\n\t * @example\n\t * Here are some examples of creating value services.\n\t * ```js\n\t *   $provide.value('ADMIN_USER', 'admin');\n\t *\n\t *   $provide.value('RoleLookup', { admin: 0, writer: 1, reader: 2 });\n\t *\n\t *   $provide.value('halfOf', function(value) {\n\t *     return value / 2;\n\t *   });\n\t * ```\n\t */\n\n\n\t/**\n\t * @ngdoc method\n\t * @name $provide#constant\n\t * @description\n\t *\n\t * Register a **constant service**, such as a string, a number, an array, an object or a function,\n\t * with the {@link auto.$injector $injector}. Unlike {@link auto.$provide#value value} it can be\n\t * injected into a module configuration function (see {@link angular.Module#config}) and it cannot\n\t * be overridden by an Angular {@link auto.$provide#decorator decorator}.\n\t *\n\t * @param {string} name The name of the constant.\n\t * @param {*} value The constant value.\n\t * @returns {Object} registered instance\n\t *\n\t * @example\n\t * Here a some examples of creating constants:\n\t * ```js\n\t *   $provide.constant('SHARD_HEIGHT', 306);\n\t *\n\t *   $provide.constant('MY_COLOURS', ['red', 'blue', 'grey']);\n\t *\n\t *   $provide.constant('double', function(value) {\n\t *     return value * 2;\n\t *   });\n\t * ```\n\t */\n\n\n\t/**\n\t * @ngdoc method\n\t * @name $provide#decorator\n\t * @description\n\t *\n\t * Register a **service decorator** with the {@link auto.$injector $injector}. A service decorator\n\t * intercepts the creation of a service, allowing it to override or modify the behaviour of the\n\t * service. The object returned by the decorator may be the original service, or a new service\n\t * object which replaces or wraps and delegates to the original service.\n\t *\n\t * @param {string} name The name of the service to decorate.\n\t * @param {Function|Array.<string|Function>} decorator This function will be invoked when the service needs to be\n\t *    instantiated and should return the decorated service instance. The function is called using\n\t *    the {@link auto.$injector#invoke injector.invoke} method and is therefore fully injectable.\n\t *    Local injection arguments:\n\t *\n\t *    * `$delegate` - The original service instance, which can be monkey patched, configured,\n\t *      decorated or delegated to.\n\t *\n\t * @example\n\t * Here we decorate the {@link ng.$log $log} service to convert warnings to errors by intercepting\n\t * calls to {@link ng.$log#error $log.warn()}.\n\t * ```js\n\t *   $provide.decorator('$log', ['$delegate', function($delegate) {\n\t *     $delegate.warn = $delegate.error;\n\t *     return $delegate;\n\t *   }]);\n\t * ```\n\t */\n\n\n\tfunction createInjector(modulesToLoad, strictDi) {\n\t  strictDi = (strictDi === true);\n\t  var INSTANTIATING = {},\n\t      providerSuffix = 'Provider',\n\t      path = [],\n\t      loadedModules = new HashMap([], true),\n\t      providerCache = {\n\t        $provide: {\n\t            provider: supportObject(provider),\n\t            factory: supportObject(factory),\n\t            service: supportObject(service),\n\t            value: supportObject(value),\n\t            constant: supportObject(constant),\n\t            decorator: decorator\n\t          }\n\t      },\n\t      providerInjector = (providerCache.$injector =\n\t          createInternalInjector(providerCache, function(serviceName, caller) {\n\t            if (angular.isString(caller)) {\n\t              path.push(caller);\n\t            }\n\t            throw $injectorMinErr('unpr', \"Unknown provider: {0}\", path.join(' <- '));\n\t          })),\n\t      instanceCache = {},\n\t      instanceInjector = (instanceCache.$injector =\n\t          createInternalInjector(instanceCache, function(serviceName, caller) {\n\t            var provider = providerInjector.get(serviceName + providerSuffix, caller);\n\t            return instanceInjector.invoke(provider.$get, provider, undefined, serviceName);\n\t          }));\n\n\n\t  forEach(loadModules(modulesToLoad), function(fn) { if (fn) instanceInjector.invoke(fn); });\n\n\t  return instanceInjector;\n\n\t  ////////////////////////////////////\n\t  // $provider\n\t  ////////////////////////////////////\n\n\t  function supportObject(delegate) {\n\t    return function(key, value) {\n\t      if (isObject(key)) {\n\t        forEach(key, reverseParams(delegate));\n\t      } else {\n\t        return delegate(key, value);\n\t      }\n\t    };\n\t  }\n\n\t  function provider(name, provider_) {\n\t    assertNotHasOwnProperty(name, 'service');\n\t    if (isFunction(provider_) || isArray(provider_)) {\n\t      provider_ = providerInjector.instantiate(provider_);\n\t    }\n\t    if (!provider_.$get) {\n\t      throw $injectorMinErr('pget', \"Provider '{0}' must define $get factory method.\", name);\n\t    }\n\t    return providerCache[name + providerSuffix] = provider_;\n\t  }\n\n\t  function enforceReturnValue(name, factory) {\n\t    return function enforcedReturnValue() {\n\t      var result = instanceInjector.invoke(factory, this);\n\t      if (isUndefined(result)) {\n\t        throw $injectorMinErr('undef', \"Provider '{0}' must return a value from $get factory method.\", name);\n\t      }\n\t      return result;\n\t    };\n\t  }\n\n\t  function factory(name, factoryFn, enforce) {\n\t    return provider(name, {\n\t      $get: enforce !== false ? enforceReturnValue(name, factoryFn) : factoryFn\n\t    });\n\t  }\n\n\t  function service(name, constructor) {\n\t    return factory(name, ['$injector', function($injector) {\n\t      return $injector.instantiate(constructor);\n\t    }]);\n\t  }\n\n\t  function value(name, val) { return factory(name, valueFn(val), false); }\n\n\t  function constant(name, value) {\n\t    assertNotHasOwnProperty(name, 'constant');\n\t    providerCache[name] = value;\n\t    instanceCache[name] = value;\n\t  }\n\n\t  function decorator(serviceName, decorFn) {\n\t    var origProvider = providerInjector.get(serviceName + providerSuffix),\n\t        orig$get = origProvider.$get;\n\n\t    origProvider.$get = function() {\n\t      var origInstance = instanceInjector.invoke(orig$get, origProvider);\n\t      return instanceInjector.invoke(decorFn, null, {$delegate: origInstance});\n\t    };\n\t  }\n\n\t  ////////////////////////////////////\n\t  // Module Loading\n\t  ////////////////////////////////////\n\t  function loadModules(modulesToLoad) {\n\t    assertArg(isUndefined(modulesToLoad) || isArray(modulesToLoad), 'modulesToLoad', 'not an array');\n\t    var runBlocks = [], moduleFn;\n\t    forEach(modulesToLoad, function(module) {\n\t      if (loadedModules.get(module)) return;\n\t      loadedModules.put(module, true);\n\n\t      function runInvokeQueue(queue) {\n\t        var i, ii;\n\t        for (i = 0, ii = queue.length; i < ii; i++) {\n\t          var invokeArgs = queue[i],\n\t              provider = providerInjector.get(invokeArgs[0]);\n\n\t          provider[invokeArgs[1]].apply(provider, invokeArgs[2]);\n\t        }\n\t      }\n\n\t      try {\n\t        if (isString(module)) {\n\t          moduleFn = angularModule(module);\n\t          runBlocks = runBlocks.concat(loadModules(moduleFn.requires)).concat(moduleFn._runBlocks);\n\t          runInvokeQueue(moduleFn._invokeQueue);\n\t          runInvokeQueue(moduleFn._configBlocks);\n\t        } else if (isFunction(module)) {\n\t            runBlocks.push(providerInjector.invoke(module));\n\t        } else if (isArray(module)) {\n\t            runBlocks.push(providerInjector.invoke(module));\n\t        } else {\n\t          assertArgFn(module, 'module');\n\t        }\n\t      } catch (e) {\n\t        if (isArray(module)) {\n\t          module = module[module.length - 1];\n\t        }\n\t        if (e.message && e.stack && e.stack.indexOf(e.message) == -1) {\n\t          // Safari & FF's stack traces don't contain error.message content\n\t          // unlike those of Chrome and IE\n\t          // So if stack doesn't contain message, we create a new string that contains both.\n\t          // Since error.stack is read-only in Safari, I'm overriding e and not e.stack here.\n\t          /* jshint -W022 */\n\t          e = e.message + '\\n' + e.stack;\n\t        }\n\t        throw $injectorMinErr('modulerr', \"Failed to instantiate module {0} due to:\\n{1}\",\n\t                  module, e.stack || e.message || e);\n\t      }\n\t    });\n\t    return runBlocks;\n\t  }\n\n\t  ////////////////////////////////////\n\t  // internal Injector\n\t  ////////////////////////////////////\n\n\t  function createInternalInjector(cache, factory) {\n\n\t    function getService(serviceName, caller) {\n\t      if (cache.hasOwnProperty(serviceName)) {\n\t        if (cache[serviceName] === INSTANTIATING) {\n\t          throw $injectorMinErr('cdep', 'Circular dependency found: {0}',\n\t                    serviceName + ' <- ' + path.join(' <- '));\n\t        }\n\t        return cache[serviceName];\n\t      } else {\n\t        try {\n\t          path.unshift(serviceName);\n\t          cache[serviceName] = INSTANTIATING;\n\t          return cache[serviceName] = factory(serviceName, caller);\n\t        } catch (err) {\n\t          if (cache[serviceName] === INSTANTIATING) {\n\t            delete cache[serviceName];\n\t          }\n\t          throw err;\n\t        } finally {\n\t          path.shift();\n\t        }\n\t      }\n\t    }\n\n\t    function invoke(fn, self, locals, serviceName) {\n\t      if (typeof locals === 'string') {\n\t        serviceName = locals;\n\t        locals = null;\n\t      }\n\n\t      var args = [],\n\t          $inject = createInjector.$$annotate(fn, strictDi, serviceName),\n\t          length, i,\n\t          key;\n\n\t      for (i = 0, length = $inject.length; i < length; i++) {\n\t        key = $inject[i];\n\t        if (typeof key !== 'string') {\n\t          throw $injectorMinErr('itkn',\n\t                  'Incorrect injection token! Expected service name as string, got {0}', key);\n\t        }\n\t        args.push(\n\t          locals && locals.hasOwnProperty(key)\n\t          ? locals[key]\n\t          : getService(key, serviceName)\n\t        );\n\t      }\n\t      if (isArray(fn)) {\n\t        fn = fn[length];\n\t      }\n\n\t      // http://jsperf.com/angularjs-invoke-apply-vs-switch\n\t      // #5388\n\t      return fn.apply(self, args);\n\t    }\n\n\t    function instantiate(Type, locals, serviceName) {\n\t      // Check if Type is annotated and use just the given function at n-1 as parameter\n\t      // e.g. someModule.factory('greeter', ['$window', function(renamed$window) {}]);\n\t      // Object creation: http://jsperf.com/create-constructor/2\n\t      var instance = Object.create((isArray(Type) ? Type[Type.length - 1] : Type).prototype || null);\n\t      var returnedValue = invoke(Type, instance, locals, serviceName);\n\n\t      return isObject(returnedValue) || isFunction(returnedValue) ? returnedValue : instance;\n\t    }\n\n\t    return {\n\t      invoke: invoke,\n\t      instantiate: instantiate,\n\t      get: getService,\n\t      annotate: createInjector.$$annotate,\n\t      has: function(name) {\n\t        return providerCache.hasOwnProperty(name + providerSuffix) || cache.hasOwnProperty(name);\n\t      }\n\t    };\n\t  }\n\t}\n\n\tcreateInjector.$$annotate = annotate;\n\n\t/**\n\t * @ngdoc provider\n\t * @name $anchorScrollProvider\n\t *\n\t * @description\n\t * Use `$anchorScrollProvider` to disable automatic scrolling whenever\n\t * {@link ng.$location#hash $location.hash()} changes.\n\t */\n\tfunction $AnchorScrollProvider() {\n\n\t  var autoScrollingEnabled = true;\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $anchorScrollProvider#disableAutoScrolling\n\t   *\n\t   * @description\n\t   * By default, {@link ng.$anchorScroll $anchorScroll()} will automatically detect changes to\n\t   * {@link ng.$location#hash $location.hash()} and scroll to the element matching the new hash.<br />\n\t   * Use this method to disable automatic scrolling.\n\t   *\n\t   * If automatic scrolling is disabled, one must explicitly call\n\t   * {@link ng.$anchorScroll $anchorScroll()} in order to scroll to the element related to the\n\t   * current hash.\n\t   */\n\t  this.disableAutoScrolling = function() {\n\t    autoScrollingEnabled = false;\n\t  };\n\n\t  /**\n\t   * @ngdoc service\n\t   * @name $anchorScroll\n\t   * @kind function\n\t   * @requires $window\n\t   * @requires $location\n\t   * @requires $rootScope\n\t   *\n\t   * @description\n\t   * When called, it scrolls to the element related to the specified `hash` or (if omitted) to the\n\t   * current value of {@link ng.$location#hash $location.hash()}, according to the rules specified\n\t   * in the\n\t   * [HTML5 spec](http://www.w3.org/html/wg/drafts/html/master/browsers.html#the-indicated-part-of-the-document).\n\t   *\n\t   * It also watches the {@link ng.$location#hash $location.hash()} and automatically scrolls to\n\t   * match any anchor whenever it changes. This can be disabled by calling\n\t   * {@link ng.$anchorScrollProvider#disableAutoScrolling $anchorScrollProvider.disableAutoScrolling()}.\n\t   *\n\t   * Additionally, you can use its {@link ng.$anchorScroll#yOffset yOffset} property to specify a\n\t   * vertical scroll-offset (either fixed or dynamic).\n\t   *\n\t   * @param {string=} hash The hash specifying the element to scroll to. If omitted, the value of\n\t   *                       {@link ng.$location#hash $location.hash()} will be used.\n\t   *\n\t   * @property {(number|function|jqLite)} yOffset\n\t   * If set, specifies a vertical scroll-offset. This is often useful when there are fixed\n\t   * positioned elements at the top of the page, such as navbars, headers etc.\n\t   *\n\t   * `yOffset` can be specified in various ways:\n\t   * - **number**: A fixed number of pixels to be used as offset.<br /><br />\n\t   * - **function**: A getter function called everytime `$anchorScroll()` is executed. Must return\n\t   *   a number representing the offset (in pixels).<br /><br />\n\t   * - **jqLite**: A jqLite/jQuery element to be used for specifying the offset. The distance from\n\t   *   the top of the page to the element's bottom will be used as offset.<br />\n\t   *   **Note**: The element will be taken into account only as long as its `position` is set to\n\t   *   `fixed`. This option is useful, when dealing with responsive navbars/headers that adjust\n\t   *   their height and/or positioning according to the viewport's size.\n\t   *\n\t   * <br />\n\t   * <div class=\"alert alert-warning\">\n\t   * In order for `yOffset` to work properly, scrolling should take place on the document's root and\n\t   * not some child element.\n\t   * </div>\n\t   *\n\t   * @example\n\t     <example module=\"anchorScrollExample\">\n\t       <file name=\"index.html\">\n\t         <div id=\"scrollArea\" ng-controller=\"ScrollController\">\n\t           <a ng-click=\"gotoBottom()\">Go to bottom</a>\n\t           <a id=\"bottom\"></a> You're at the bottom!\n\t         </div>\n\t       </file>\n\t       <file name=\"script.js\">\n\t         angular.module('anchorScrollExample', [])\n\t           .controller('ScrollController', ['$scope', '$location', '$anchorScroll',\n\t             function ($scope, $location, $anchorScroll) {\n\t               $scope.gotoBottom = function() {\n\t                 // set the location.hash to the id of\n\t                 // the element you wish to scroll to.\n\t                 $location.hash('bottom');\n\n\t                 // call $anchorScroll()\n\t                 $anchorScroll();\n\t               };\n\t             }]);\n\t       </file>\n\t       <file name=\"style.css\">\n\t         #scrollArea {\n\t           height: 280px;\n\t           overflow: auto;\n\t         }\n\n\t         #bottom {\n\t           display: block;\n\t           margin-top: 2000px;\n\t         }\n\t       </file>\n\t     </example>\n\t   *\n\t   * <hr />\n\t   * The example below illustrates the use of a vertical scroll-offset (specified as a fixed value).\n\t   * See {@link ng.$anchorScroll#yOffset $anchorScroll.yOffset} for more details.\n\t   *\n\t   * @example\n\t     <example module=\"anchorScrollOffsetExample\">\n\t       <file name=\"index.html\">\n\t         <div class=\"fixed-header\" ng-controller=\"headerCtrl\">\n\t           <a href=\"\" ng-click=\"gotoAnchor(x)\" ng-repeat=\"x in [1,2,3,4,5]\">\n\t             Go to anchor {{x}}\n\t           </a>\n\t         </div>\n\t         <div id=\"anchor{{x}}\" class=\"anchor\" ng-repeat=\"x in [1,2,3,4,5]\">\n\t           Anchor {{x}} of 5\n\t         </div>\n\t       </file>\n\t       <file name=\"script.js\">\n\t         angular.module('anchorScrollOffsetExample', [])\n\t           .run(['$anchorScroll', function($anchorScroll) {\n\t             $anchorScroll.yOffset = 50;   // always scroll by 50 extra pixels\n\t           }])\n\t           .controller('headerCtrl', ['$anchorScroll', '$location', '$scope',\n\t             function ($anchorScroll, $location, $scope) {\n\t               $scope.gotoAnchor = function(x) {\n\t                 var newHash = 'anchor' + x;\n\t                 if ($location.hash() !== newHash) {\n\t                   // set the $location.hash to `newHash` and\n\t                   // $anchorScroll will automatically scroll to it\n\t                   $location.hash('anchor' + x);\n\t                 } else {\n\t                   // call $anchorScroll() explicitly,\n\t                   // since $location.hash hasn't changed\n\t                   $anchorScroll();\n\t                 }\n\t               };\n\t             }\n\t           ]);\n\t       </file>\n\t       <file name=\"style.css\">\n\t         body {\n\t           padding-top: 50px;\n\t         }\n\n\t         .anchor {\n\t           border: 2px dashed DarkOrchid;\n\t           padding: 10px 10px 200px 10px;\n\t         }\n\n\t         .fixed-header {\n\t           background-color: rgba(0, 0, 0, 0.2);\n\t           height: 50px;\n\t           position: fixed;\n\t           top: 0; left: 0; right: 0;\n\t         }\n\n\t         .fixed-header > a {\n\t           display: inline-block;\n\t           margin: 5px 15px;\n\t         }\n\t       </file>\n\t     </example>\n\t   */\n\t  this.$get = ['$window', '$location', '$rootScope', function($window, $location, $rootScope) {\n\t    var document = $window.document;\n\n\t    // Helper function to get first anchor from a NodeList\n\t    // (using `Array#some()` instead of `angular#forEach()` since it's more performant\n\t    //  and working in all supported browsers.)\n\t    function getFirstAnchor(list) {\n\t      var result = null;\n\t      Array.prototype.some.call(list, function(element) {\n\t        if (nodeName_(element) === 'a') {\n\t          result = element;\n\t          return true;\n\t        }\n\t      });\n\t      return result;\n\t    }\n\n\t    function getYOffset() {\n\n\t      var offset = scroll.yOffset;\n\n\t      if (isFunction(offset)) {\n\t        offset = offset();\n\t      } else if (isElement(offset)) {\n\t        var elem = offset[0];\n\t        var style = $window.getComputedStyle(elem);\n\t        if (style.position !== 'fixed') {\n\t          offset = 0;\n\t        } else {\n\t          offset = elem.getBoundingClientRect().bottom;\n\t        }\n\t      } else if (!isNumber(offset)) {\n\t        offset = 0;\n\t      }\n\n\t      return offset;\n\t    }\n\n\t    function scrollTo(elem) {\n\t      if (elem) {\n\t        elem.scrollIntoView();\n\n\t        var offset = getYOffset();\n\n\t        if (offset) {\n\t          // `offset` is the number of pixels we should scroll UP in order to align `elem` properly.\n\t          // This is true ONLY if the call to `elem.scrollIntoView()` initially aligns `elem` at the\n\t          // top of the viewport.\n\t          //\n\t          // IF the number of pixels from the top of `elem` to the end of the page's content is less\n\t          // than the height of the viewport, then `elem.scrollIntoView()` will align the `elem` some\n\t          // way down the page.\n\t          //\n\t          // This is often the case for elements near the bottom of the page.\n\t          //\n\t          // In such cases we do not need to scroll the whole `offset` up, just the difference between\n\t          // the top of the element and the offset, which is enough to align the top of `elem` at the\n\t          // desired position.\n\t          var elemTop = elem.getBoundingClientRect().top;\n\t          $window.scrollBy(0, elemTop - offset);\n\t        }\n\t      } else {\n\t        $window.scrollTo(0, 0);\n\t      }\n\t    }\n\n\t    function scroll(hash) {\n\t      hash = isString(hash) ? hash : $location.hash();\n\t      var elm;\n\n\t      // empty hash, scroll to the top of the page\n\t      if (!hash) scrollTo(null);\n\n\t      // element with given id\n\t      else if ((elm = document.getElementById(hash))) scrollTo(elm);\n\n\t      // first anchor with given name :-D\n\t      else if ((elm = getFirstAnchor(document.getElementsByName(hash)))) scrollTo(elm);\n\n\t      // no element and hash == 'top', scroll to the top of the page\n\t      else if (hash === 'top') scrollTo(null);\n\t    }\n\n\t    // does not scroll when user clicks on anchor link that is currently on\n\t    // (no url change, no $location.hash() change), browser native does scroll\n\t    if (autoScrollingEnabled) {\n\t      $rootScope.$watch(function autoScrollWatch() {return $location.hash();},\n\t        function autoScrollWatchAction(newVal, oldVal) {\n\t          // skip the initial scroll if $location.hash is empty\n\t          if (newVal === oldVal && newVal === '') return;\n\n\t          jqLiteDocumentLoaded(function() {\n\t            $rootScope.$evalAsync(scroll);\n\t          });\n\t        });\n\t    }\n\n\t    return scroll;\n\t  }];\n\t}\n\n\tvar $animateMinErr = minErr('$animate');\n\tvar ELEMENT_NODE = 1;\n\tvar NG_ANIMATE_CLASSNAME = 'ng-animate';\n\n\tfunction mergeClasses(a,b) {\n\t  if (!a && !b) return '';\n\t  if (!a) return b;\n\t  if (!b) return a;\n\t  if (isArray(a)) a = a.join(' ');\n\t  if (isArray(b)) b = b.join(' ');\n\t  return a + ' ' + b;\n\t}\n\n\tfunction extractElementNode(element) {\n\t  for (var i = 0; i < element.length; i++) {\n\t    var elm = element[i];\n\t    if (elm.nodeType === ELEMENT_NODE) {\n\t      return elm;\n\t    }\n\t  }\n\t}\n\n\tfunction splitClasses(classes) {\n\t  if (isString(classes)) {\n\t    classes = classes.split(' ');\n\t  }\n\n\t  // Use createMap() to prevent class assumptions involving property names in\n\t  // Object.prototype\n\t  var obj = createMap();\n\t  forEach(classes, function(klass) {\n\t    // sometimes the split leaves empty string values\n\t    // incase extra spaces were applied to the options\n\t    if (klass.length) {\n\t      obj[klass] = true;\n\t    }\n\t  });\n\t  return obj;\n\t}\n\n\t// if any other type of options value besides an Object value is\n\t// passed into the $animate.method() animation then this helper code\n\t// will be run which will ignore it. While this patch is not the\n\t// greatest solution to this, a lot of existing plugins depend on\n\t// $animate to either call the callback (< 1.2) or return a promise\n\t// that can be changed. This helper function ensures that the options\n\t// are wiped clean incase a callback function is provided.\n\tfunction prepareAnimateOptions(options) {\n\t  return isObject(options)\n\t      ? options\n\t      : {};\n\t}\n\n\tvar $$CoreAnimateRunnerProvider = function() {\n\t  this.$get = ['$q', '$$rAF', function($q, $$rAF) {\n\t    function AnimateRunner() {}\n\t    AnimateRunner.all = noop;\n\t    AnimateRunner.chain = noop;\n\t    AnimateRunner.prototype = {\n\t      end: noop,\n\t      cancel: noop,\n\t      resume: noop,\n\t      pause: noop,\n\t      complete: noop,\n\t      then: function(pass, fail) {\n\t        return $q(function(resolve) {\n\t          $$rAF(function() {\n\t            resolve();\n\t          });\n\t        }).then(pass, fail);\n\t      }\n\t    };\n\t    return AnimateRunner;\n\t  }];\n\t};\n\n\t// this is prefixed with Core since it conflicts with\n\t// the animateQueueProvider defined in ngAnimate/animateQueue.js\n\tvar $$CoreAnimateQueueProvider = function() {\n\t  var postDigestQueue = new HashMap();\n\t  var postDigestElements = [];\n\n\t  this.$get = ['$$AnimateRunner', '$rootScope',\n\t       function($$AnimateRunner,   $rootScope) {\n\t    return {\n\t      enabled: noop,\n\t      on: noop,\n\t      off: noop,\n\t      pin: noop,\n\n\t      push: function(element, event, options, domOperation) {\n\t        domOperation        && domOperation();\n\n\t        options = options || {};\n\t        options.from        && element.css(options.from);\n\t        options.to          && element.css(options.to);\n\n\t        if (options.addClass || options.removeClass) {\n\t          addRemoveClassesPostDigest(element, options.addClass, options.removeClass);\n\t        }\n\n\t        return new $$AnimateRunner(); // jshint ignore:line\n\t      }\n\t    };\n\n\n\t    function updateData(data, classes, value) {\n\t      var changed = false;\n\t      if (classes) {\n\t        classes = isString(classes) ? classes.split(' ') :\n\t                  isArray(classes) ? classes : [];\n\t        forEach(classes, function(className) {\n\t          if (className) {\n\t            changed = true;\n\t            data[className] = value;\n\t          }\n\t        });\n\t      }\n\t      return changed;\n\t    }\n\n\t    function handleCSSClassChanges() {\n\t      forEach(postDigestElements, function(element) {\n\t        var data = postDigestQueue.get(element);\n\t        if (data) {\n\t          var existing = splitClasses(element.attr('class'));\n\t          var toAdd = '';\n\t          var toRemove = '';\n\t          forEach(data, function(status, className) {\n\t            var hasClass = !!existing[className];\n\t            if (status !== hasClass) {\n\t              if (status) {\n\t                toAdd += (toAdd.length ? ' ' : '') + className;\n\t              } else {\n\t                toRemove += (toRemove.length ? ' ' : '') + className;\n\t              }\n\t            }\n\t          });\n\n\t          forEach(element, function(elm) {\n\t            toAdd    && jqLiteAddClass(elm, toAdd);\n\t            toRemove && jqLiteRemoveClass(elm, toRemove);\n\t          });\n\t          postDigestQueue.remove(element);\n\t        }\n\t      });\n\t      postDigestElements.length = 0;\n\t    }\n\n\n\t    function addRemoveClassesPostDigest(element, add, remove) {\n\t      var data = postDigestQueue.get(element) || {};\n\n\t      var classesAdded = updateData(data, add, true);\n\t      var classesRemoved = updateData(data, remove, false);\n\n\t      if (classesAdded || classesRemoved) {\n\n\t        postDigestQueue.put(element, data);\n\t        postDigestElements.push(element);\n\n\t        if (postDigestElements.length === 1) {\n\t          $rootScope.$$postDigest(handleCSSClassChanges);\n\t        }\n\t      }\n\t    }\n\t  }];\n\t};\n\n\t/**\n\t * @ngdoc provider\n\t * @name $animateProvider\n\t *\n\t * @description\n\t * Default implementation of $animate that doesn't perform any animations, instead just\n\t * synchronously performs DOM updates and resolves the returned runner promise.\n\t *\n\t * In order to enable animations the `ngAnimate` module has to be loaded.\n\t *\n\t * To see the functional implementation check out `src/ngAnimate/animate.js`.\n\t */\n\tvar $AnimateProvider = ['$provide', function($provide) {\n\t  var provider = this;\n\n\t  this.$$registeredAnimations = Object.create(null);\n\n\t   /**\n\t   * @ngdoc method\n\t   * @name $animateProvider#register\n\t   *\n\t   * @description\n\t   * Registers a new injectable animation factory function. The factory function produces the\n\t   * animation object which contains callback functions for each event that is expected to be\n\t   * animated.\n\t   *\n\t   *   * `eventFn`: `function(element, ... , doneFunction, options)`\n\t   *   The element to animate, the `doneFunction` and the options fed into the animation. Depending\n\t   *   on the type of animation additional arguments will be injected into the animation function. The\n\t   *   list below explains the function signatures for the different animation methods:\n\t   *\n\t   *   - setClass: function(element, addedClasses, removedClasses, doneFunction, options)\n\t   *   - addClass: function(element, addedClasses, doneFunction, options)\n\t   *   - removeClass: function(element, removedClasses, doneFunction, options)\n\t   *   - enter, leave, move: function(element, doneFunction, options)\n\t   *   - animate: function(element, fromStyles, toStyles, doneFunction, options)\n\t   *\n\t   *   Make sure to trigger the `doneFunction` once the animation is fully complete.\n\t   *\n\t   * ```js\n\t   *   return {\n\t   *     //enter, leave, move signature\n\t   *     eventFn : function(element, done, options) {\n\t   *       //code to run the animation\n\t   *       //once complete, then run done()\n\t   *       return function endFunction(wasCancelled) {\n\t   *         //code to cancel the animation\n\t   *       }\n\t   *     }\n\t   *   }\n\t   * ```\n\t   *\n\t   * @param {string} name The name of the animation (this is what the class-based CSS value will be compared to).\n\t   * @param {Function} factory The factory function that will be executed to return the animation\n\t   *                           object.\n\t   */\n\t  this.register = function(name, factory) {\n\t    if (name && name.charAt(0) !== '.') {\n\t      throw $animateMinErr('notcsel', \"Expecting class selector starting with '.' got '{0}'.\", name);\n\t    }\n\n\t    var key = name + '-animation';\n\t    provider.$$registeredAnimations[name.substr(1)] = key;\n\t    $provide.factory(key, factory);\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $animateProvider#classNameFilter\n\t   *\n\t   * @description\n\t   * Sets and/or returns the CSS class regular expression that is checked when performing\n\t   * an animation. Upon bootstrap the classNameFilter value is not set at all and will\n\t   * therefore enable $animate to attempt to perform an animation on any element that is triggered.\n\t   * When setting the `classNameFilter` value, animations will only be performed on elements\n\t   * that successfully match the filter expression. This in turn can boost performance\n\t   * for low-powered devices as well as applications containing a lot of structural operations.\n\t   * @param {RegExp=} expression The className expression which will be checked against all animations\n\t   * @return {RegExp} The current CSS className expression value. If null then there is no expression value\n\t   */\n\t  this.classNameFilter = function(expression) {\n\t    if (arguments.length === 1) {\n\t      this.$$classNameFilter = (expression instanceof RegExp) ? expression : null;\n\t      if (this.$$classNameFilter) {\n\t        var reservedRegex = new RegExp(\"(\\\\s+|\\\\/)\" + NG_ANIMATE_CLASSNAME + \"(\\\\s+|\\\\/)\");\n\t        if (reservedRegex.test(this.$$classNameFilter.toString())) {\n\t          throw $animateMinErr('nongcls','$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the \"{0}\" CSS class.', NG_ANIMATE_CLASSNAME);\n\n\t        }\n\t      }\n\t    }\n\t    return this.$$classNameFilter;\n\t  };\n\n\t  this.$get = ['$$animateQueue', function($$animateQueue) {\n\t    function domInsert(element, parentElement, afterElement) {\n\t      // if for some reason the previous element was removed\n\t      // from the dom sometime before this code runs then let's\n\t      // just stick to using the parent element as the anchor\n\t      if (afterElement) {\n\t        var afterNode = extractElementNode(afterElement);\n\t        if (afterNode && !afterNode.parentNode && !afterNode.previousElementSibling) {\n\t          afterElement = null;\n\t        }\n\t      }\n\t      afterElement ? afterElement.after(element) : parentElement.prepend(element);\n\t    }\n\n\t    /**\n\t     * @ngdoc service\n\t     * @name $animate\n\t     * @description The $animate service exposes a series of DOM utility methods that provide support\n\t     * for animation hooks. The default behavior is the application of DOM operations, however,\n\t     * when an animation is detected (and animations are enabled), $animate will do the heavy lifting\n\t     * to ensure that animation runs with the triggered DOM operation.\n\t     *\n\t     * By default $animate doesn't trigger any animations. This is because the `ngAnimate` module isn't\n\t     * included and only when it is active then the animation hooks that `$animate` triggers will be\n\t     * functional. Once active then all structural `ng-` directives will trigger animations as they perform\n\t     * their DOM-related operations (enter, leave and move). Other directives such as `ngClass`,\n\t     * `ngShow`, `ngHide` and `ngMessages` also provide support for animations.\n\t     *\n\t     * It is recommended that the`$animate` service is always used when executing DOM-related procedures within directives.\n\t     *\n\t     * To learn more about enabling animation support, click here to visit the\n\t     * {@link ngAnimate ngAnimate module page}.\n\t     */\n\t    return {\n\t      // we don't call it directly since non-existant arguments may\n\t      // be interpreted as null within the sub enabled function\n\n\t      /**\n\t       *\n\t       * @ngdoc method\n\t       * @name $animate#on\n\t       * @kind function\n\t       * @description Sets up an event listener to fire whenever the animation event (enter, leave, move, etc...)\n\t       *    has fired on the given element or among any of its children. Once the listener is fired, the provided callback\n\t       *    is fired with the following params:\n\t       *\n\t       * ```js\n\t       * $animate.on('enter', container,\n\t       *    function callback(element, phase) {\n\t       *      // cool we detected an enter animation within the container\n\t       *    }\n\t       * );\n\t       * ```\n\t       *\n\t       * @param {string} event the animation event that will be captured (e.g. enter, leave, move, addClass, removeClass, etc...)\n\t       * @param {DOMElement} container the container element that will capture each of the animation events that are fired on itself\n\t       *     as well as among its children\n\t       * @param {Function} callback the callback function that will be fired when the listener is triggered\n\t       *\n\t       * The arguments present in the callback function are:\n\t       * * `element` - The captured DOM element that the animation was fired on.\n\t       * * `phase` - The phase of the animation. The two possible phases are **start** (when the animation starts) and **close** (when it ends).\n\t       */\n\t      on: $$animateQueue.on,\n\n\t      /**\n\t       *\n\t       * @ngdoc method\n\t       * @name $animate#off\n\t       * @kind function\n\t       * @description Deregisters an event listener based on the event which has been associated with the provided element. This method\n\t       * can be used in three different ways depending on the arguments:\n\t       *\n\t       * ```js\n\t       * // remove all the animation event listeners listening for `enter`\n\t       * $animate.off('enter');\n\t       *\n\t       * // remove all the animation event listeners listening for `enter` on the given element and its children\n\t       * $animate.off('enter', container);\n\t       *\n\t       * // remove the event listener function provided by `listenerFn` that is set\n\t       * // to listen for `enter` on the given `element` as well as its children\n\t       * $animate.off('enter', container, callback);\n\t       * ```\n\t       *\n\t       * @param {string} event the animation event (e.g. enter, leave, move, addClass, removeClass, etc...)\n\t       * @param {DOMElement=} container the container element the event listener was placed on\n\t       * @param {Function=} callback the callback function that was registered as the listener\n\t       */\n\t      off: $$animateQueue.off,\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $animate#pin\n\t       * @kind function\n\t       * @description Associates the provided element with a host parent element to allow the element to be animated even if it exists\n\t       *    outside of the DOM structure of the Angular application. By doing so, any animation triggered via `$animate` can be issued on the\n\t       *    element despite being outside the realm of the application or within another application. Say for example if the application\n\t       *    was bootstrapped on an element that is somewhere inside of the `<body>` tag, but we wanted to allow for an element to be situated\n\t       *    as a direct child of `document.body`, then this can be achieved by pinning the element via `$animate.pin(element)`. Keep in mind\n\t       *    that calling `$animate.pin(element, parentElement)` will not actually insert into the DOM anywhere; it will just create the association.\n\t       *\n\t       *    Note that this feature is only active when the `ngAnimate` module is used.\n\t       *\n\t       * @param {DOMElement} element the external element that will be pinned\n\t       * @param {DOMElement} parentElement the host parent element that will be associated with the external element\n\t       */\n\t      pin: $$animateQueue.pin,\n\n\t      /**\n\t       *\n\t       * @ngdoc method\n\t       * @name $animate#enabled\n\t       * @kind function\n\t       * @description Used to get and set whether animations are enabled or not on the entire application or on an element and its children. This\n\t       * function can be called in four ways:\n\t       *\n\t       * ```js\n\t       * // returns true or false\n\t       * $animate.enabled();\n\t       *\n\t       * // changes the enabled state for all animations\n\t       * $animate.enabled(false);\n\t       * $animate.enabled(true);\n\t       *\n\t       * // returns true or false if animations are enabled for an element\n\t       * $animate.enabled(element);\n\t       *\n\t       * // changes the enabled state for an element and its children\n\t       * $animate.enabled(element, true);\n\t       * $animate.enabled(element, false);\n\t       * ```\n\t       *\n\t       * @param {DOMElement=} element the element that will be considered for checking/setting the enabled state\n\t       * @param {boolean=} enabled whether or not the animations will be enabled for the element\n\t       *\n\t       * @return {boolean} whether or not animations are enabled\n\t       */\n\t      enabled: $$animateQueue.enabled,\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $animate#cancel\n\t       * @kind function\n\t       * @description Cancels the provided animation.\n\t       *\n\t       * @param {Promise} animationPromise The animation promise that is returned when an animation is started.\n\t       */\n\t      cancel: function(runner) {\n\t        runner.end && runner.end();\n\t      },\n\n\t      /**\n\t       *\n\t       * @ngdoc method\n\t       * @name $animate#enter\n\t       * @kind function\n\t       * @description Inserts the element into the DOM either after the `after` element (if provided) or\n\t       *   as the first child within the `parent` element and then triggers an animation.\n\t       *   A promise is returned that will be resolved during the next digest once the animation\n\t       *   has completed.\n\t       *\n\t       * @param {DOMElement} element the element which will be inserted into the DOM\n\t       * @param {DOMElement} parent the parent element which will append the element as\n\t       *   a child (so long as the after element is not present)\n\t       * @param {DOMElement=} after the sibling element after which the element will be appended\n\t       * @param {object=} options an optional collection of options/styles that will be applied to the element\n\t       *\n\t       * @return {Promise} the animation callback promise\n\t       */\n\t      enter: function(element, parent, after, options) {\n\t        parent = parent && jqLite(parent);\n\t        after = after && jqLite(after);\n\t        parent = parent || after.parent();\n\t        domInsert(element, parent, after);\n\t        return $$animateQueue.push(element, 'enter', prepareAnimateOptions(options));\n\t      },\n\n\t      /**\n\t       *\n\t       * @ngdoc method\n\t       * @name $animate#move\n\t       * @kind function\n\t       * @description Inserts (moves) the element into its new position in the DOM either after\n\t       *   the `after` element (if provided) or as the first child within the `parent` element\n\t       *   and then triggers an animation. A promise is returned that will be resolved\n\t       *   during the next digest once the animation has completed.\n\t       *\n\t       * @param {DOMElement} element the element which will be moved into the new DOM position\n\t       * @param {DOMElement} parent the parent element which will append the element as\n\t       *   a child (so long as the after element is not present)\n\t       * @param {DOMElement=} after the sibling element after which the element will be appended\n\t       * @param {object=} options an optional collection of options/styles that will be applied to the element\n\t       *\n\t       * @return {Promise} the animation callback promise\n\t       */\n\t      move: function(element, parent, after, options) {\n\t        parent = parent && jqLite(parent);\n\t        after = after && jqLite(after);\n\t        parent = parent || after.parent();\n\t        domInsert(element, parent, after);\n\t        return $$animateQueue.push(element, 'move', prepareAnimateOptions(options));\n\t      },\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $animate#leave\n\t       * @kind function\n\t       * @description Triggers an animation and then removes the element from the DOM.\n\t       * When the function is called a promise is returned that will be resolved during the next\n\t       * digest once the animation has completed.\n\t       *\n\t       * @param {DOMElement} element the element which will be removed from the DOM\n\t       * @param {object=} options an optional collection of options/styles that will be applied to the element\n\t       *\n\t       * @return {Promise} the animation callback promise\n\t       */\n\t      leave: function(element, options) {\n\t        return $$animateQueue.push(element, 'leave', prepareAnimateOptions(options), function() {\n\t          element.remove();\n\t        });\n\t      },\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $animate#addClass\n\t       * @kind function\n\t       *\n\t       * @description Triggers an addClass animation surrounding the addition of the provided CSS class(es). Upon\n\t       *   execution, the addClass operation will only be handled after the next digest and it will not trigger an\n\t       *   animation if element already contains the CSS class or if the class is removed at a later step.\n\t       *   Note that class-based animations are treated differently compared to structural animations\n\t       *   (like enter, move and leave) since the CSS classes may be added/removed at different points\n\t       *   depending if CSS or JavaScript animations are used.\n\t       *\n\t       * @param {DOMElement} element the element which the CSS classes will be applied to\n\t       * @param {string} className the CSS class(es) that will be added (multiple classes are separated via spaces)\n\t       * @param {object=} options an optional collection of options/styles that will be applied to the element\n\t       *\n\t       * @return {Promise} the animation callback promise\n\t       */\n\t      addClass: function(element, className, options) {\n\t        options = prepareAnimateOptions(options);\n\t        options.addClass = mergeClasses(options.addclass, className);\n\t        return $$animateQueue.push(element, 'addClass', options);\n\t      },\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $animate#removeClass\n\t       * @kind function\n\t       *\n\t       * @description Triggers a removeClass animation surrounding the removal of the provided CSS class(es). Upon\n\t       *   execution, the removeClass operation will only be handled after the next digest and it will not trigger an\n\t       *   animation if element does not contain the CSS class or if the class is added at a later step.\n\t       *   Note that class-based animations are treated differently compared to structural animations\n\t       *   (like enter, move and leave) since the CSS classes may be added/removed at different points\n\t       *   depending if CSS or JavaScript animations are used.\n\t       *\n\t       * @param {DOMElement} element the element which the CSS classes will be applied to\n\t       * @param {string} className the CSS class(es) that will be removed (multiple classes are separated via spaces)\n\t       * @param {object=} options an optional collection of options/styles that will be applied to the element\n\t       *\n\t       * @return {Promise} the animation callback promise\n\t       */\n\t      removeClass: function(element, className, options) {\n\t        options = prepareAnimateOptions(options);\n\t        options.removeClass = mergeClasses(options.removeClass, className);\n\t        return $$animateQueue.push(element, 'removeClass', options);\n\t      },\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $animate#setClass\n\t       * @kind function\n\t       *\n\t       * @description Performs both the addition and removal of a CSS classes on an element and (during the process)\n\t       *    triggers an animation surrounding the class addition/removal. Much like `$animate.addClass` and\n\t       *    `$animate.removeClass`, `setClass` will only evaluate the classes being added/removed once a digest has\n\t       *    passed. Note that class-based animations are treated differently compared to structural animations\n\t       *    (like enter, move and leave) since the CSS classes may be added/removed at different points\n\t       *    depending if CSS or JavaScript animations are used.\n\t       *\n\t       * @param {DOMElement} element the element which the CSS classes will be applied to\n\t       * @param {string} add the CSS class(es) that will be added (multiple classes are separated via spaces)\n\t       * @param {string} remove the CSS class(es) that will be removed (multiple classes are separated via spaces)\n\t       * @param {object=} options an optional collection of options/styles that will be applied to the element\n\t       *\n\t       * @return {Promise} the animation callback promise\n\t       */\n\t      setClass: function(element, add, remove, options) {\n\t        options = prepareAnimateOptions(options);\n\t        options.addClass = mergeClasses(options.addClass, add);\n\t        options.removeClass = mergeClasses(options.removeClass, remove);\n\t        return $$animateQueue.push(element, 'setClass', options);\n\t      },\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $animate#animate\n\t       * @kind function\n\t       *\n\t       * @description Performs an inline animation on the element which applies the provided to and from CSS styles to the element.\n\t       * If any detected CSS transition, keyframe or JavaScript matches the provided className value then the animation will take\n\t       * on the provided styles. For example, if a transition animation is set for the given className then the provided from and\n\t       * to styles will be applied alongside the given transition. If a JavaScript animation is detected then the provided styles\n\t       * will be given in as function paramters into the `animate` method (or as apart of the `options` parameter).\n\t       *\n\t       * @param {DOMElement} element the element which the CSS styles will be applied to\n\t       * @param {object} from the from (starting) CSS styles that will be applied to the element and across the animation.\n\t       * @param {object} to the to (destination) CSS styles that will be applied to the element and across the animation.\n\t       * @param {string=} className an optional CSS class that will be applied to the element for the duration of the animation. If\n\t       *    this value is left as empty then a CSS class of `ng-inline-animate` will be applied to the element.\n\t       *    (Note that if no animation is detected then this value will not be appplied to the element.)\n\t       * @param {object=} options an optional collection of options/styles that will be applied to the element\n\t       *\n\t       * @return {Promise} the animation callback promise\n\t       */\n\t      animate: function(element, from, to, className, options) {\n\t        options = prepareAnimateOptions(options);\n\t        options.from = options.from ? extend(options.from, from) : from;\n\t        options.to   = options.to   ? extend(options.to, to)     : to;\n\n\t        className = className || 'ng-inline-animate';\n\t        options.tempClasses = mergeClasses(options.tempClasses, className);\n\t        return $$animateQueue.push(element, 'animate', options);\n\t      }\n\t    };\n\t  }];\n\t}];\n\n\t/**\n\t * @ngdoc service\n\t * @name $animateCss\n\t * @kind object\n\t *\n\t * @description\n\t * This is the core version of `$animateCss`. By default, only when the `ngAnimate` is included,\n\t * then the `$animateCss` service will actually perform animations.\n\t *\n\t * Click here {@link ngAnimate.$animateCss to read the documentation for $animateCss}.\n\t */\n\tvar $CoreAnimateCssProvider = function() {\n\t  this.$get = ['$$rAF', '$q', function($$rAF, $q) {\n\n\t    var RAFPromise = function() {};\n\t    RAFPromise.prototype = {\n\t      done: function(cancel) {\n\t        this.defer && this.defer[cancel === true ? 'reject' : 'resolve']();\n\t      },\n\t      end: function() {\n\t        this.done();\n\t      },\n\t      cancel: function() {\n\t        this.done(true);\n\t      },\n\t      getPromise: function() {\n\t        if (!this.defer) {\n\t          this.defer = $q.defer();\n\t        }\n\t        return this.defer.promise;\n\t      },\n\t      then: function(f1,f2) {\n\t        return this.getPromise().then(f1,f2);\n\t      },\n\t      'catch': function(f1) {\n\t        return this.getPromise()['catch'](f1);\n\t      },\n\t      'finally': function(f1) {\n\t        return this.getPromise()['finally'](f1);\n\t      }\n\t    };\n\n\t    return function(element, options) {\n\t      // there is no point in applying the styles since\n\t      // there is no animation that goes on at all in\n\t      // this version of $animateCss.\n\t      if (options.cleanupStyles) {\n\t        options.from = options.to = null;\n\t      }\n\n\t      if (options.from) {\n\t        element.css(options.from);\n\t        options.from = null;\n\t      }\n\n\t      var closed, runner = new RAFPromise();\n\t      return {\n\t        start: run,\n\t        end: run\n\t      };\n\n\t      function run() {\n\t        $$rAF(function() {\n\t          close();\n\t          if (!closed) {\n\t            runner.done();\n\t          }\n\t          closed = true;\n\t        });\n\t        return runner;\n\t      }\n\n\t      function close() {\n\t        if (options.addClass) {\n\t          element.addClass(options.addClass);\n\t          options.addClass = null;\n\t        }\n\t        if (options.removeClass) {\n\t          element.removeClass(options.removeClass);\n\t          options.removeClass = null;\n\t        }\n\t        if (options.to) {\n\t          element.css(options.to);\n\t          options.to = null;\n\t        }\n\t      }\n\t    };\n\t  }];\n\t};\n\n\t/* global stripHash: true */\n\n\t/**\n\t * ! This is a private undocumented service !\n\t *\n\t * @name $browser\n\t * @requires $log\n\t * @description\n\t * This object has two goals:\n\t *\n\t * - hide all the global state in the browser caused by the window object\n\t * - abstract away all the browser specific features and inconsistencies\n\t *\n\t * For tests we provide {@link ngMock.$browser mock implementation} of the `$browser`\n\t * service, which can be used for convenient testing of the application without the interaction with\n\t * the real browser apis.\n\t */\n\t/**\n\t * @param {object} window The global window object.\n\t * @param {object} document jQuery wrapped document.\n\t * @param {object} $log window.console or an object with the same interface.\n\t * @param {object} $sniffer $sniffer service\n\t */\n\tfunction Browser(window, document, $log, $sniffer) {\n\t  var self = this,\n\t      rawDocument = document[0],\n\t      location = window.location,\n\t      history = window.history,\n\t      setTimeout = window.setTimeout,\n\t      clearTimeout = window.clearTimeout,\n\t      pendingDeferIds = {};\n\n\t  self.isMock = false;\n\n\t  var outstandingRequestCount = 0;\n\t  var outstandingRequestCallbacks = [];\n\n\t  // TODO(vojta): remove this temporary api\n\t  self.$$completeOutstandingRequest = completeOutstandingRequest;\n\t  self.$$incOutstandingRequestCount = function() { outstandingRequestCount++; };\n\n\t  /**\n\t   * Executes the `fn` function(supports currying) and decrements the `outstandingRequestCallbacks`\n\t   * counter. If the counter reaches 0, all the `outstandingRequestCallbacks` are executed.\n\t   */\n\t  function completeOutstandingRequest(fn) {\n\t    try {\n\t      fn.apply(null, sliceArgs(arguments, 1));\n\t    } finally {\n\t      outstandingRequestCount--;\n\t      if (outstandingRequestCount === 0) {\n\t        while (outstandingRequestCallbacks.length) {\n\t          try {\n\t            outstandingRequestCallbacks.pop()();\n\t          } catch (e) {\n\t            $log.error(e);\n\t          }\n\t        }\n\t      }\n\t    }\n\t  }\n\n\t  function getHash(url) {\n\t    var index = url.indexOf('#');\n\t    return index === -1 ? '' : url.substr(index);\n\t  }\n\n\t  /**\n\t   * @private\n\t   * Note: this method is used only by scenario runner\n\t   * TODO(vojta): prefix this method with $$ ?\n\t   * @param {function()} callback Function that will be called when no outstanding request\n\t   */\n\t  self.notifyWhenNoOutstandingRequests = function(callback) {\n\t    if (outstandingRequestCount === 0) {\n\t      callback();\n\t    } else {\n\t      outstandingRequestCallbacks.push(callback);\n\t    }\n\t  };\n\n\t  //////////////////////////////////////////////////////////////\n\t  // URL API\n\t  //////////////////////////////////////////////////////////////\n\n\t  var cachedState, lastHistoryState,\n\t      lastBrowserUrl = location.href,\n\t      baseElement = document.find('base'),\n\t      pendingLocation = null;\n\n\t  cacheState();\n\t  lastHistoryState = cachedState;\n\n\t  /**\n\t   * @name $browser#url\n\t   *\n\t   * @description\n\t   * GETTER:\n\t   * Without any argument, this method just returns current value of location.href.\n\t   *\n\t   * SETTER:\n\t   * With at least one argument, this method sets url to new value.\n\t   * If html5 history api supported, pushState/replaceState is used, otherwise\n\t   * location.href/location.replace is used.\n\t   * Returns its own instance to allow chaining\n\t   *\n\t   * NOTE: this api is intended for use only by the $location service. Please use the\n\t   * {@link ng.$location $location service} to change url.\n\t   *\n\t   * @param {string} url New url (when used as setter)\n\t   * @param {boolean=} replace Should new url replace current history record?\n\t   * @param {object=} state object to use with pushState/replaceState\n\t   */\n\t  self.url = function(url, replace, state) {\n\t    // In modern browsers `history.state` is `null` by default; treating it separately\n\t    // from `undefined` would cause `$browser.url('/foo')` to change `history.state`\n\t    // to undefined via `pushState`. Instead, let's change `undefined` to `null` here.\n\t    if (isUndefined(state)) {\n\t      state = null;\n\t    }\n\n\t    // Android Browser BFCache causes location, history reference to become stale.\n\t    if (location !== window.location) location = window.location;\n\t    if (history !== window.history) history = window.history;\n\n\t    // setter\n\t    if (url) {\n\t      var sameState = lastHistoryState === state;\n\n\t      // Don't change anything if previous and current URLs and states match. This also prevents\n\t      // IE<10 from getting into redirect loop when in LocationHashbangInHtml5Url mode.\n\t      // See https://github.com/angular/angular.js/commit/ffb2701\n\t      if (lastBrowserUrl === url && (!$sniffer.history || sameState)) {\n\t        return self;\n\t      }\n\t      var sameBase = lastBrowserUrl && stripHash(lastBrowserUrl) === stripHash(url);\n\t      lastBrowserUrl = url;\n\t      lastHistoryState = state;\n\t      // Don't use history API if only the hash changed\n\t      // due to a bug in IE10/IE11 which leads\n\t      // to not firing a `hashchange` nor `popstate` event\n\t      // in some cases (see #9143).\n\t      if ($sniffer.history && (!sameBase || !sameState)) {\n\t        history[replace ? 'replaceState' : 'pushState'](state, '', url);\n\t        cacheState();\n\t        // Do the assignment again so that those two variables are referentially identical.\n\t        lastHistoryState = cachedState;\n\t      } else {\n\t        if (!sameBase || pendingLocation) {\n\t          pendingLocation = url;\n\t        }\n\t        if (replace) {\n\t          location.replace(url);\n\t        } else if (!sameBase) {\n\t          location.href = url;\n\t        } else {\n\t          location.hash = getHash(url);\n\t        }\n\t        if (location.href !== url) {\n\t          pendingLocation = url;\n\t        }\n\t      }\n\t      return self;\n\t    // getter\n\t    } else {\n\t      // - pendingLocation is needed as browsers don't allow to read out\n\t      //   the new location.href if a reload happened or if there is a bug like in iOS 9 (see\n\t      //   https://openradar.appspot.com/22186109).\n\t      // - the replacement is a workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=407172\n\t      return pendingLocation || location.href.replace(/%27/g,\"'\");\n\t    }\n\t  };\n\n\t  /**\n\t   * @name $browser#state\n\t   *\n\t   * @description\n\t   * This method is a getter.\n\t   *\n\t   * Return history.state or null if history.state is undefined.\n\t   *\n\t   * @returns {object} state\n\t   */\n\t  self.state = function() {\n\t    return cachedState;\n\t  };\n\n\t  var urlChangeListeners = [],\n\t      urlChangeInit = false;\n\n\t  function cacheStateAndFireUrlChange() {\n\t    pendingLocation = null;\n\t    cacheState();\n\t    fireUrlChange();\n\t  }\n\n\t  function getCurrentState() {\n\t    try {\n\t      return history.state;\n\t    } catch (e) {\n\t      // MSIE can reportedly throw when there is no state (UNCONFIRMED).\n\t    }\n\t  }\n\n\t  // This variable should be used *only* inside the cacheState function.\n\t  var lastCachedState = null;\n\t  function cacheState() {\n\t    // This should be the only place in $browser where `history.state` is read.\n\t    cachedState = getCurrentState();\n\t    cachedState = isUndefined(cachedState) ? null : cachedState;\n\n\t    // Prevent callbacks fo fire twice if both hashchange & popstate were fired.\n\t    if (equals(cachedState, lastCachedState)) {\n\t      cachedState = lastCachedState;\n\t    }\n\t    lastCachedState = cachedState;\n\t  }\n\n\t  function fireUrlChange() {\n\t    if (lastBrowserUrl === self.url() && lastHistoryState === cachedState) {\n\t      return;\n\t    }\n\n\t    lastBrowserUrl = self.url();\n\t    lastHistoryState = cachedState;\n\t    forEach(urlChangeListeners, function(listener) {\n\t      listener(self.url(), cachedState);\n\t    });\n\t  }\n\n\t  /**\n\t   * @name $browser#onUrlChange\n\t   *\n\t   * @description\n\t   * Register callback function that will be called, when url changes.\n\t   *\n\t   * It's only called when the url is changed from outside of angular:\n\t   * - user types different url into address bar\n\t   * - user clicks on history (forward/back) button\n\t   * - user clicks on a link\n\t   *\n\t   * It's not called when url is changed by $browser.url() method\n\t   *\n\t   * The listener gets called with new url as parameter.\n\t   *\n\t   * NOTE: this api is intended for use only by the $location service. Please use the\n\t   * {@link ng.$location $location service} to monitor url changes in angular apps.\n\t   *\n\t   * @param {function(string)} listener Listener function to be called when url changes.\n\t   * @return {function(string)} Returns the registered listener fn - handy if the fn is anonymous.\n\t   */\n\t  self.onUrlChange = function(callback) {\n\t    // TODO(vojta): refactor to use node's syntax for events\n\t    if (!urlChangeInit) {\n\t      // We listen on both (hashchange/popstate) when available, as some browsers (e.g. Opera)\n\t      // don't fire popstate when user change the address bar and don't fire hashchange when url\n\t      // changed by push/replaceState\n\n\t      // html5 history api - popstate event\n\t      if ($sniffer.history) jqLite(window).on('popstate', cacheStateAndFireUrlChange);\n\t      // hashchange event\n\t      jqLite(window).on('hashchange', cacheStateAndFireUrlChange);\n\n\t      urlChangeInit = true;\n\t    }\n\n\t    urlChangeListeners.push(callback);\n\t    return callback;\n\t  };\n\n\t  /**\n\t   * @private\n\t   * Remove popstate and hashchange handler from window.\n\t   *\n\t   * NOTE: this api is intended for use only by $rootScope.\n\t   */\n\t  self.$$applicationDestroyed = function() {\n\t    jqLite(window).off('hashchange popstate', cacheStateAndFireUrlChange);\n\t  };\n\n\t  /**\n\t   * Checks whether the url has changed outside of Angular.\n\t   * Needs to be exported to be able to check for changes that have been done in sync,\n\t   * as hashchange/popstate events fire in async.\n\t   */\n\t  self.$$checkUrlChange = fireUrlChange;\n\n\t  //////////////////////////////////////////////////////////////\n\t  // Misc API\n\t  //////////////////////////////////////////////////////////////\n\n\t  /**\n\t   * @name $browser#baseHref\n\t   *\n\t   * @description\n\t   * Returns current <base href>\n\t   * (always relative - without domain)\n\t   *\n\t   * @returns {string} The current base href\n\t   */\n\t  self.baseHref = function() {\n\t    var href = baseElement.attr('href');\n\t    return href ? href.replace(/^(https?\\:)?\\/\\/[^\\/]*/, '') : '';\n\t  };\n\n\t  /**\n\t   * @name $browser#defer\n\t   * @param {function()} fn A function, who's execution should be deferred.\n\t   * @param {number=} [delay=0] of milliseconds to defer the function execution.\n\t   * @returns {*} DeferId that can be used to cancel the task via `$browser.defer.cancel()`.\n\t   *\n\t   * @description\n\t   * Executes a fn asynchronously via `setTimeout(fn, delay)`.\n\t   *\n\t   * Unlike when calling `setTimeout` directly, in test this function is mocked and instead of using\n\t   * `setTimeout` in tests, the fns are queued in an array, which can be programmatically flushed\n\t   * via `$browser.defer.flush()`.\n\t   *\n\t   */\n\t  self.defer = function(fn, delay) {\n\t    var timeoutId;\n\t    outstandingRequestCount++;\n\t    timeoutId = setTimeout(function() {\n\t      delete pendingDeferIds[timeoutId];\n\t      completeOutstandingRequest(fn);\n\t    }, delay || 0);\n\t    pendingDeferIds[timeoutId] = true;\n\t    return timeoutId;\n\t  };\n\n\n\t  /**\n\t   * @name $browser#defer.cancel\n\t   *\n\t   * @description\n\t   * Cancels a deferred task identified with `deferId`.\n\t   *\n\t   * @param {*} deferId Token returned by the `$browser.defer` function.\n\t   * @returns {boolean} Returns `true` if the task hasn't executed yet and was successfully\n\t   *                    canceled.\n\t   */\n\t  self.defer.cancel = function(deferId) {\n\t    if (pendingDeferIds[deferId]) {\n\t      delete pendingDeferIds[deferId];\n\t      clearTimeout(deferId);\n\t      completeOutstandingRequest(noop);\n\t      return true;\n\t    }\n\t    return false;\n\t  };\n\n\t}\n\n\tfunction $BrowserProvider() {\n\t  this.$get = ['$window', '$log', '$sniffer', '$document',\n\t      function($window, $log, $sniffer, $document) {\n\t        return new Browser($window, $document, $log, $sniffer);\n\t      }];\n\t}\n\n\t/**\n\t * @ngdoc service\n\t * @name $cacheFactory\n\t *\n\t * @description\n\t * Factory that constructs {@link $cacheFactory.Cache Cache} objects and gives access to\n\t * them.\n\t *\n\t * ```js\n\t *\n\t *  var cache = $cacheFactory('cacheId');\n\t *  expect($cacheFactory.get('cacheId')).toBe(cache);\n\t *  expect($cacheFactory.get('noSuchCacheId')).not.toBeDefined();\n\t *\n\t *  cache.put(\"key\", \"value\");\n\t *  cache.put(\"another key\", \"another value\");\n\t *\n\t *  // We've specified no options on creation\n\t *  expect(cache.info()).toEqual({id: 'cacheId', size: 2});\n\t *\n\t * ```\n\t *\n\t *\n\t * @param {string} cacheId Name or id of the newly created cache.\n\t * @param {object=} options Options object that specifies the cache behavior. Properties:\n\t *\n\t *   - `{number=}` `capacity` — turns the cache into LRU cache.\n\t *\n\t * @returns {object} Newly created cache object with the following set of methods:\n\t *\n\t * - `{object}` `info()` — Returns id, size, and options of cache.\n\t * - `{{*}}` `put({string} key, {*} value)` — Puts a new key-value pair into the cache and returns\n\t *   it.\n\t * - `{{*}}` `get({string} key)` — Returns cached value for `key` or undefined for cache miss.\n\t * - `{void}` `remove({string} key)` — Removes a key-value pair from the cache.\n\t * - `{void}` `removeAll()` — Removes all cached values.\n\t * - `{void}` `destroy()` — Removes references to this cache from $cacheFactory.\n\t *\n\t * @example\n\t   <example module=\"cacheExampleApp\">\n\t     <file name=\"index.html\">\n\t       <div ng-controller=\"CacheController\">\n\t         <input ng-model=\"newCacheKey\" placeholder=\"Key\">\n\t         <input ng-model=\"newCacheValue\" placeholder=\"Value\">\n\t         <button ng-click=\"put(newCacheKey, newCacheValue)\">Cache</button>\n\n\t         <p ng-if=\"keys.length\">Cached Values</p>\n\t         <div ng-repeat=\"key in keys\">\n\t           <span ng-bind=\"key\"></span>\n\t           <span>: </span>\n\t           <b ng-bind=\"cache.get(key)\"></b>\n\t         </div>\n\n\t         <p>Cache Info</p>\n\t         <div ng-repeat=\"(key, value) in cache.info()\">\n\t           <span ng-bind=\"key\"></span>\n\t           <span>: </span>\n\t           <b ng-bind=\"value\"></b>\n\t         </div>\n\t       </div>\n\t     </file>\n\t     <file name=\"script.js\">\n\t       angular.module('cacheExampleApp', []).\n\t         controller('CacheController', ['$scope', '$cacheFactory', function($scope, $cacheFactory) {\n\t           $scope.keys = [];\n\t           $scope.cache = $cacheFactory('cacheId');\n\t           $scope.put = function(key, value) {\n\t             if (angular.isUndefined($scope.cache.get(key))) {\n\t               $scope.keys.push(key);\n\t             }\n\t             $scope.cache.put(key, angular.isUndefined(value) ? null : value);\n\t           };\n\t         }]);\n\t     </file>\n\t     <file name=\"style.css\">\n\t       p {\n\t         margin: 10px 0 3px;\n\t       }\n\t     </file>\n\t   </example>\n\t */\n\tfunction $CacheFactoryProvider() {\n\n\t  this.$get = function() {\n\t    var caches = {};\n\n\t    function cacheFactory(cacheId, options) {\n\t      if (cacheId in caches) {\n\t        throw minErr('$cacheFactory')('iid', \"CacheId '{0}' is already taken!\", cacheId);\n\t      }\n\n\t      var size = 0,\n\t          stats = extend({}, options, {id: cacheId}),\n\t          data = createMap(),\n\t          capacity = (options && options.capacity) || Number.MAX_VALUE,\n\t          lruHash = createMap(),\n\t          freshEnd = null,\n\t          staleEnd = null;\n\n\t      /**\n\t       * @ngdoc type\n\t       * @name $cacheFactory.Cache\n\t       *\n\t       * @description\n\t       * A cache object used to store and retrieve data, primarily used by\n\t       * {@link $http $http} and the {@link ng.directive:script script} directive to cache\n\t       * templates and other data.\n\t       *\n\t       * ```js\n\t       *  angular.module('superCache')\n\t       *    .factory('superCache', ['$cacheFactory', function($cacheFactory) {\n\t       *      return $cacheFactory('super-cache');\n\t       *    }]);\n\t       * ```\n\t       *\n\t       * Example test:\n\t       *\n\t       * ```js\n\t       *  it('should behave like a cache', inject(function(superCache) {\n\t       *    superCache.put('key', 'value');\n\t       *    superCache.put('another key', 'another value');\n\t       *\n\t       *    expect(superCache.info()).toEqual({\n\t       *      id: 'super-cache',\n\t       *      size: 2\n\t       *    });\n\t       *\n\t       *    superCache.remove('another key');\n\t       *    expect(superCache.get('another key')).toBeUndefined();\n\t       *\n\t       *    superCache.removeAll();\n\t       *    expect(superCache.info()).toEqual({\n\t       *      id: 'super-cache',\n\t       *      size: 0\n\t       *    });\n\t       *  }));\n\t       * ```\n\t       */\n\t      return caches[cacheId] = {\n\n\t        /**\n\t         * @ngdoc method\n\t         * @name $cacheFactory.Cache#put\n\t         * @kind function\n\t         *\n\t         * @description\n\t         * Inserts a named entry into the {@link $cacheFactory.Cache Cache} object to be\n\t         * retrieved later, and incrementing the size of the cache if the key was not already\n\t         * present in the cache. If behaving like an LRU cache, it will also remove stale\n\t         * entries from the set.\n\t         *\n\t         * It will not insert undefined values into the cache.\n\t         *\n\t         * @param {string} key the key under which the cached data is stored.\n\t         * @param {*} value the value to store alongside the key. If it is undefined, the key\n\t         *    will not be stored.\n\t         * @returns {*} the value stored.\n\t         */\n\t        put: function(key, value) {\n\t          if (isUndefined(value)) return;\n\t          if (capacity < Number.MAX_VALUE) {\n\t            var lruEntry = lruHash[key] || (lruHash[key] = {key: key});\n\n\t            refresh(lruEntry);\n\t          }\n\n\t          if (!(key in data)) size++;\n\t          data[key] = value;\n\n\t          if (size > capacity) {\n\t            this.remove(staleEnd.key);\n\t          }\n\n\t          return value;\n\t        },\n\n\t        /**\n\t         * @ngdoc method\n\t         * @name $cacheFactory.Cache#get\n\t         * @kind function\n\t         *\n\t         * @description\n\t         * Retrieves named data stored in the {@link $cacheFactory.Cache Cache} object.\n\t         *\n\t         * @param {string} key the key of the data to be retrieved\n\t         * @returns {*} the value stored.\n\t         */\n\t        get: function(key) {\n\t          if (capacity < Number.MAX_VALUE) {\n\t            var lruEntry = lruHash[key];\n\n\t            if (!lruEntry) return;\n\n\t            refresh(lruEntry);\n\t          }\n\n\t          return data[key];\n\t        },\n\n\n\t        /**\n\t         * @ngdoc method\n\t         * @name $cacheFactory.Cache#remove\n\t         * @kind function\n\t         *\n\t         * @description\n\t         * Removes an entry from the {@link $cacheFactory.Cache Cache} object.\n\t         *\n\t         * @param {string} key the key of the entry to be removed\n\t         */\n\t        remove: function(key) {\n\t          if (capacity < Number.MAX_VALUE) {\n\t            var lruEntry = lruHash[key];\n\n\t            if (!lruEntry) return;\n\n\t            if (lruEntry == freshEnd) freshEnd = lruEntry.p;\n\t            if (lruEntry == staleEnd) staleEnd = lruEntry.n;\n\t            link(lruEntry.n,lruEntry.p);\n\n\t            delete lruHash[key];\n\t          }\n\n\t          if (!(key in data)) return;\n\n\t          delete data[key];\n\t          size--;\n\t        },\n\n\n\t        /**\n\t         * @ngdoc method\n\t         * @name $cacheFactory.Cache#removeAll\n\t         * @kind function\n\t         *\n\t         * @description\n\t         * Clears the cache object of any entries.\n\t         */\n\t        removeAll: function() {\n\t          data = createMap();\n\t          size = 0;\n\t          lruHash = createMap();\n\t          freshEnd = staleEnd = null;\n\t        },\n\n\n\t        /**\n\t         * @ngdoc method\n\t         * @name $cacheFactory.Cache#destroy\n\t         * @kind function\n\t         *\n\t         * @description\n\t         * Destroys the {@link $cacheFactory.Cache Cache} object entirely,\n\t         * removing it from the {@link $cacheFactory $cacheFactory} set.\n\t         */\n\t        destroy: function() {\n\t          data = null;\n\t          stats = null;\n\t          lruHash = null;\n\t          delete caches[cacheId];\n\t        },\n\n\n\t        /**\n\t         * @ngdoc method\n\t         * @name $cacheFactory.Cache#info\n\t         * @kind function\n\t         *\n\t         * @description\n\t         * Retrieve information regarding a particular {@link $cacheFactory.Cache Cache}.\n\t         *\n\t         * @returns {object} an object with the following properties:\n\t         *   <ul>\n\t         *     <li>**id**: the id of the cache instance</li>\n\t         *     <li>**size**: the number of entries kept in the cache instance</li>\n\t         *     <li>**...**: any additional properties from the options object when creating the\n\t         *       cache.</li>\n\t         *   </ul>\n\t         */\n\t        info: function() {\n\t          return extend({}, stats, {size: size});\n\t        }\n\t      };\n\n\n\t      /**\n\t       * makes the `entry` the freshEnd of the LRU linked list\n\t       */\n\t      function refresh(entry) {\n\t        if (entry != freshEnd) {\n\t          if (!staleEnd) {\n\t            staleEnd = entry;\n\t          } else if (staleEnd == entry) {\n\t            staleEnd = entry.n;\n\t          }\n\n\t          link(entry.n, entry.p);\n\t          link(entry, freshEnd);\n\t          freshEnd = entry;\n\t          freshEnd.n = null;\n\t        }\n\t      }\n\n\n\t      /**\n\t       * bidirectionally links two entries of the LRU linked list\n\t       */\n\t      function link(nextEntry, prevEntry) {\n\t        if (nextEntry != prevEntry) {\n\t          if (nextEntry) nextEntry.p = prevEntry; //p stands for previous, 'prev' didn't minify\n\t          if (prevEntry) prevEntry.n = nextEntry; //n stands for next, 'next' didn't minify\n\t        }\n\t      }\n\t    }\n\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $cacheFactory#info\n\t   *\n\t   * @description\n\t   * Get information about all the caches that have been created\n\t   *\n\t   * @returns {Object} - key-value map of `cacheId` to the result of calling `cache#info`\n\t   */\n\t    cacheFactory.info = function() {\n\t      var info = {};\n\t      forEach(caches, function(cache, cacheId) {\n\t        info[cacheId] = cache.info();\n\t      });\n\t      return info;\n\t    };\n\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $cacheFactory#get\n\t   *\n\t   * @description\n\t   * Get access to a cache object by the `cacheId` used when it was created.\n\t   *\n\t   * @param {string} cacheId Name or id of a cache to access.\n\t   * @returns {object} Cache object identified by the cacheId or undefined if no such cache.\n\t   */\n\t    cacheFactory.get = function(cacheId) {\n\t      return caches[cacheId];\n\t    };\n\n\n\t    return cacheFactory;\n\t  };\n\t}\n\n\t/**\n\t * @ngdoc service\n\t * @name $templateCache\n\t *\n\t * @description\n\t * The first time a template is used, it is loaded in the template cache for quick retrieval. You\n\t * can load templates directly into the cache in a `script` tag, or by consuming the\n\t * `$templateCache` service directly.\n\t *\n\t * Adding via the `script` tag:\n\t *\n\t * ```html\n\t *   <script type=\"text/ng-template\" id=\"templateId.html\">\n\t *     <p>This is the content of the template</p>\n\t *   </script>\n\t * ```\n\t *\n\t * **Note:** the `script` tag containing the template does not need to be included in the `head` of\n\t * the document, but it must be a descendent of the {@link ng.$rootElement $rootElement} (IE,\n\t * element with ng-app attribute), otherwise the template will be ignored.\n\t *\n\t * Adding via the `$templateCache` service:\n\t *\n\t * ```js\n\t * var myApp = angular.module('myApp', []);\n\t * myApp.run(function($templateCache) {\n\t *   $templateCache.put('templateId.html', 'This is the content of the template');\n\t * });\n\t * ```\n\t *\n\t * To retrieve the template later, simply use it in your HTML:\n\t * ```html\n\t * <div ng-include=\" 'templateId.html' \"></div>\n\t * ```\n\t *\n\t * or get it via Javascript:\n\t * ```js\n\t * $templateCache.get('templateId.html')\n\t * ```\n\t *\n\t * See {@link ng.$cacheFactory $cacheFactory}.\n\t *\n\t */\n\tfunction $TemplateCacheProvider() {\n\t  this.$get = ['$cacheFactory', function($cacheFactory) {\n\t    return $cacheFactory('templates');\n\t  }];\n\t}\n\n\t/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\n\t *     Any commits to this file should be reviewed with security in mind.  *\n\t *   Changes to this file can potentially create security vulnerabilities. *\n\t *          An approval from 2 Core members with history of modifying      *\n\t *                         this file is required.                          *\n\t *                                                                         *\n\t *  Does the change somehow allow for arbitrary javascript to be executed? *\n\t *    Or allows for someone to change the prototype of built-in objects?   *\n\t *     Or gives undesired access to variables likes document or window?    *\n\t * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */\n\n\t/* ! VARIABLE/FUNCTION NAMING CONVENTIONS THAT APPLY TO THIS FILE!\n\t *\n\t * DOM-related variables:\n\t *\n\t * - \"node\" - DOM Node\n\t * - \"element\" - DOM Element or Node\n\t * - \"$node\" or \"$element\" - jqLite-wrapped node or element\n\t *\n\t *\n\t * Compiler related stuff:\n\t *\n\t * - \"linkFn\" - linking fn of a single directive\n\t * - \"nodeLinkFn\" - function that aggregates all linking fns for a particular node\n\t * - \"childLinkFn\" -  function that aggregates all linking fns for child nodes of a particular node\n\t * - \"compositeLinkFn\" - function that aggregates all linking fns for a compilation root (nodeList)\n\t */\n\n\n\t/**\n\t * @ngdoc service\n\t * @name $compile\n\t * @kind function\n\t *\n\t * @description\n\t * Compiles an HTML string or DOM into a template and produces a template function, which\n\t * can then be used to link {@link ng.$rootScope.Scope `scope`} and the template together.\n\t *\n\t * The compilation is a process of walking the DOM tree and matching DOM elements to\n\t * {@link ng.$compileProvider#directive directives}.\n\t *\n\t * <div class=\"alert alert-warning\">\n\t * **Note:** This document is an in-depth reference of all directive options.\n\t * For a gentle introduction to directives with examples of common use cases,\n\t * see the {@link guide/directive directive guide}.\n\t * </div>\n\t *\n\t * ## Comprehensive Directive API\n\t *\n\t * There are many different options for a directive.\n\t *\n\t * The difference resides in the return value of the factory function.\n\t * You can either return a \"Directive Definition Object\" (see below) that defines the directive properties,\n\t * or just the `postLink` function (all other properties will have the default values).\n\t *\n\t * <div class=\"alert alert-success\">\n\t * **Best Practice:** It's recommended to use the \"directive definition object\" form.\n\t * </div>\n\t *\n\t * Here's an example directive declared with a Directive Definition Object:\n\t *\n\t * ```js\n\t *   var myModule = angular.module(...);\n\t *\n\t *   myModule.directive('directiveName', function factory(injectables) {\n\t *     var directiveDefinitionObject = {\n\t *       priority: 0,\n\t *       template: '<div></div>', // or // function(tElement, tAttrs) { ... },\n\t *       // or\n\t *       // templateUrl: 'directive.html', // or // function(tElement, tAttrs) { ... },\n\t *       transclude: false,\n\t *       restrict: 'A',\n\t *       templateNamespace: 'html',\n\t *       scope: false,\n\t *       controller: function($scope, $element, $attrs, $transclude, otherInjectables) { ... },\n\t *       controllerAs: 'stringIdentifier',\n\t *       bindToController: false,\n\t *       require: 'siblingDirectiveName', // or // ['^parentDirectiveName', '?optionalDirectiveName', '?^optionalParent'],\n\t *       compile: function compile(tElement, tAttrs, transclude) {\n\t *         return {\n\t *           pre: function preLink(scope, iElement, iAttrs, controller) { ... },\n\t *           post: function postLink(scope, iElement, iAttrs, controller) { ... }\n\t *         }\n\t *         // or\n\t *         // return function postLink( ... ) { ... }\n\t *       },\n\t *       // or\n\t *       // link: {\n\t *       //  pre: function preLink(scope, iElement, iAttrs, controller) { ... },\n\t *       //  post: function postLink(scope, iElement, iAttrs, controller) { ... }\n\t *       // }\n\t *       // or\n\t *       // link: function postLink( ... ) { ... }\n\t *     };\n\t *     return directiveDefinitionObject;\n\t *   });\n\t * ```\n\t *\n\t * <div class=\"alert alert-warning\">\n\t * **Note:** Any unspecified options will use the default value. You can see the default values below.\n\t * </div>\n\t *\n\t * Therefore the above can be simplified as:\n\t *\n\t * ```js\n\t *   var myModule = angular.module(...);\n\t *\n\t *   myModule.directive('directiveName', function factory(injectables) {\n\t *     var directiveDefinitionObject = {\n\t *       link: function postLink(scope, iElement, iAttrs) { ... }\n\t *     };\n\t *     return directiveDefinitionObject;\n\t *     // or\n\t *     // return function postLink(scope, iElement, iAttrs) { ... }\n\t *   });\n\t * ```\n\t *\n\t *\n\t *\n\t * ### Directive Definition Object\n\t *\n\t * The directive definition object provides instructions to the {@link ng.$compile\n\t * compiler}. The attributes are:\n\t *\n\t * #### `multiElement`\n\t * When this property is set to true, the HTML compiler will collect DOM nodes between\n\t * nodes with the attributes `directive-name-start` and `directive-name-end`, and group them\n\t * together as the directive elements. It is recommended that this feature be used on directives\n\t * which are not strictly behavioural (such as {@link ngClick}), and which\n\t * do not manipulate or replace child nodes (such as {@link ngInclude}).\n\t *\n\t * #### `priority`\n\t * When there are multiple directives defined on a single DOM element, sometimes it\n\t * is necessary to specify the order in which the directives are applied. The `priority` is used\n\t * to sort the directives before their `compile` functions get called. Priority is defined as a\n\t * number. Directives with greater numerical `priority` are compiled first. Pre-link functions\n\t * are also run in priority order, but post-link functions are run in reverse order. The order\n\t * of directives with the same priority is undefined. The default priority is `0`.\n\t *\n\t * #### `terminal`\n\t * If set to true then the current `priority` will be the last set of directives\n\t * which will execute (any directives at the current priority will still execute\n\t * as the order of execution on same `priority` is undefined). Note that expressions\n\t * and other directives used in the directive's template will also be excluded from execution.\n\t *\n\t * #### `scope`\n\t * The scope property can be `true`, an object or a falsy value:\n\t *\n\t * * **falsy:** No scope will be created for the directive. The directive will use its parent's scope.\n\t *\n\t * * **`true`:** A new child scope that prototypically inherits from its parent will be created for\n\t * the directive's element. If multiple directives on the same element request a new scope,\n\t * only one new scope is created. The new scope rule does not apply for the root of the template\n\t * since the root of the template always gets a new scope.\n\t *\n\t * * **`{...}` (an object hash):** A new \"isolate\" scope is created for the directive's element. The\n\t * 'isolate' scope differs from normal scope in that it does not prototypically inherit from its parent\n\t * scope. This is useful when creating reusable components, which should not accidentally read or modify\n\t * data in the parent scope.\n\t *\n\t * The 'isolate' scope object hash defines a set of local scope properties derived from attributes on the\n\t * directive's element. These local properties are useful for aliasing values for templates. The keys in\n\t * the object hash map to the name of the property on the isolate scope; the values define how the property\n\t * is bound to the parent scope, via matching attributes on the directive's element:\n\t *\n\t * * `@` or `@attr` - bind a local scope property to the value of DOM attribute. The result is\n\t *   always a string since DOM attributes are strings. If no `attr` name is specified  then the\n\t *   attribute name is assumed to be the same as the local name.\n\t *   Given `<widget my-attr=\"hello {{name}}\">` and widget definition\n\t *   of `scope: { localName:'@myAttr' }`, then widget scope property `localName` will reflect\n\t *   the interpolated value of `hello {{name}}`. As the `name` attribute changes so will the\n\t *   `localName` property on the widget scope. The `name` is read from the parent scope (not\n\t *   component scope).\n\t *\n\t * * `=` or `=attr` - set up bi-directional binding between a local scope property and the\n\t *   parent scope property of name defined via the value of the `attr` attribute. If no `attr`\n\t *   name is specified then the attribute name is assumed to be the same as the local name.\n\t *   Given `<widget my-attr=\"parentModel\">` and widget definition of\n\t *   `scope: { localModel:'=myAttr' }`, then widget scope property `localModel` will reflect the\n\t *   value of `parentModel` on the parent scope. Any changes to `parentModel` will be reflected\n\t *   in `localModel` and any changes in `localModel` will reflect in `parentModel`. If the parent\n\t *   scope property doesn't exist, it will throw a NON_ASSIGNABLE_MODEL_EXPRESSION exception. You\n\t *   can avoid this behavior using `=?` or `=?attr` in order to flag the property as optional. If\n\t *   you want to shallow watch for changes (i.e. $watchCollection instead of $watch) you can use\n\t *   `=*` or `=*attr` (`=*?` or `=*?attr` if the property is optional).\n\t *\n\t * * `&` or `&attr` - provides a way to execute an expression in the context of the parent scope.\n\t *   If no `attr` name is specified then the attribute name is assumed to be the same as the\n\t *   local name. Given `<widget my-attr=\"count = count + value\">` and widget definition of\n\t *   `scope: { localFn:'&myAttr' }`, then isolate scope property `localFn` will point to\n\t *   a function wrapper for the `count = count + value` expression. Often it's desirable to\n\t *   pass data from the isolated scope via an expression to the parent scope, this can be\n\t *   done by passing a map of local variable names and values into the expression wrapper fn.\n\t *   For example, if the expression is `increment(amount)` then we can specify the amount value\n\t *   by calling the `localFn` as `localFn({amount: 22})`.\n\t *\n\t * In general it's possible to apply more than one directive to one element, but there might be limitations\n\t * depending on the type of scope required by the directives. The following points will help explain these limitations.\n\t * For simplicity only two directives are taken into account, but it is also applicable for several directives:\n\t *\n\t * * **no scope** + **no scope** => Two directives which don't require their own scope will use their parent's scope\n\t * * **child scope** + **no scope** =>  Both directives will share one single child scope\n\t * * **child scope** + **child scope** =>  Both directives will share one single child scope\n\t * * **isolated scope** + **no scope** =>  The isolated directive will use it's own created isolated scope. The other directive will use\n\t * its parent's scope\n\t * * **isolated scope** + **child scope** =>  **Won't work!** Only one scope can be related to one element. Therefore these directives cannot\n\t * be applied to the same element.\n\t * * **isolated scope** + **isolated scope**  =>  **Won't work!** Only one scope can be related to one element. Therefore these directives\n\t * cannot be applied to the same element.\n\t *\n\t *\n\t * #### `bindToController`\n\t * When an isolate scope is used for a component (see above), and `controllerAs` is used, `bindToController: true` will\n\t * allow a component to have its properties bound to the controller, rather than to scope. When the controller\n\t * is instantiated, the initial values of the isolate scope bindings are already available.\n\t *\n\t * #### `controller`\n\t * Controller constructor function. The controller is instantiated before the\n\t * pre-linking phase and can be accessed by other directives (see\n\t * `require` attribute). This allows the directives to communicate with each other and augment\n\t * each other's behavior. The controller is injectable (and supports bracket notation) with the following locals:\n\t *\n\t * * `$scope` - Current scope associated with the element\n\t * * `$element` - Current element\n\t * * `$attrs` - Current attributes object for the element\n\t * * `$transclude` - A transclude linking function pre-bound to the correct transclusion scope:\n\t *   `function([scope], cloneLinkingFn, futureParentElement)`.\n\t *    * `scope`: optional argument to override the scope.\n\t *    * `cloneLinkingFn`: optional argument to create clones of the original transcluded content.\n\t *    * `futureParentElement`:\n\t *        * defines the parent to which the `cloneLinkingFn` will add the cloned elements.\n\t *        * default: `$element.parent()` resp. `$element` for `transclude:'element'` resp. `transclude:true`.\n\t *        * only needed for transcludes that are allowed to contain non html elements (e.g. SVG elements)\n\t *          and when the `cloneLinkinFn` is passed,\n\t *          as those elements need to created and cloned in a special way when they are defined outside their\n\t *          usual containers (e.g. like `<svg>`).\n\t *        * See also the `directive.templateNamespace` property.\n\t *\n\t *\n\t * #### `require`\n\t * Require another directive and inject its controller as the fourth argument to the linking function. The\n\t * `require` takes a string name (or array of strings) of the directive(s) to pass in. If an array is used, the\n\t * injected argument will be an array in corresponding order. If no such directive can be\n\t * found, or if the directive does not have a controller, then an error is raised (unless no link function\n\t * is specified, in which case error checking is skipped). The name can be prefixed with:\n\t *\n\t * * (no prefix) - Locate the required controller on the current element. Throw an error if not found.\n\t * * `?` - Attempt to locate the required controller or pass `null` to the `link` fn if not found.\n\t * * `^` - Locate the required controller by searching the element and its parents. Throw an error if not found.\n\t * * `^^` - Locate the required controller by searching the element's parents. Throw an error if not found.\n\t * * `?^` - Attempt to locate the required controller by searching the element and its parents or pass\n\t *   `null` to the `link` fn if not found.\n\t * * `?^^` - Attempt to locate the required controller by searching the element's parents, or pass\n\t *   `null` to the `link` fn if not found.\n\t *\n\t *\n\t * #### `controllerAs`\n\t * Identifier name for a reference to the controller in the directive's scope.\n\t * This allows the controller to be referenced from the directive template. This is especially\n\t * useful when a directive is used as component, i.e. with an `isolate` scope. It's also possible\n\t * to use it in a directive without an `isolate` / `new` scope, but you need to be aware that the\n\t * `controllerAs` reference might overwrite a property that already exists on the parent scope.\n\t *\n\t *\n\t * #### `restrict`\n\t * String of subset of `EACM` which restricts the directive to a specific directive\n\t * declaration style. If omitted, the defaults (elements and attributes) are used.\n\t *\n\t * * `E` - Element name (default): `<my-directive></my-directive>`\n\t * * `A` - Attribute (default): `<div my-directive=\"exp\"></div>`\n\t * * `C` - Class: `<div class=\"my-directive: exp;\"></div>`\n\t * * `M` - Comment: `<!-- directive: my-directive exp -->`\n\t *\n\t *\n\t * #### `templateNamespace`\n\t * String representing the document type used by the markup in the template.\n\t * AngularJS needs this information as those elements need to be created and cloned\n\t * in a special way when they are defined outside their usual containers like `<svg>` and `<math>`.\n\t *\n\t * * `html` - All root nodes in the template are HTML. Root nodes may also be\n\t *   top-level elements such as `<svg>` or `<math>`.\n\t * * `svg` - The root nodes in the template are SVG elements (excluding `<math>`).\n\t * * `math` - The root nodes in the template are MathML elements (excluding `<svg>`).\n\t *\n\t * If no `templateNamespace` is specified, then the namespace is considered to be `html`.\n\t *\n\t * #### `template`\n\t * HTML markup that may:\n\t * * Replace the contents of the directive's element (default).\n\t * * Replace the directive's element itself (if `replace` is true - DEPRECATED).\n\t * * Wrap the contents of the directive's element (if `transclude` is true).\n\t *\n\t * Value may be:\n\t *\n\t * * A string. For example `<div red-on-hover>{{delete_str}}</div>`.\n\t * * A function which takes two arguments `tElement` and `tAttrs` (described in the `compile`\n\t *   function api below) and returns a string value.\n\t *\n\t *\n\t * #### `templateUrl`\n\t * This is similar to `template` but the template is loaded from the specified URL, asynchronously.\n\t *\n\t * Because template loading is asynchronous the compiler will suspend compilation of directives on that element\n\t * for later when the template has been resolved.  In the meantime it will continue to compile and link\n\t * sibling and parent elements as though this element had not contained any directives.\n\t *\n\t * The compiler does not suspend the entire compilation to wait for templates to be loaded because this\n\t * would result in the whole app \"stalling\" until all templates are loaded asynchronously - even in the\n\t * case when only one deeply nested directive has `templateUrl`.\n\t *\n\t * Template loading is asynchronous even if the template has been preloaded into the {@link $templateCache}\n\t *\n\t * You can specify `templateUrl` as a string representing the URL or as a function which takes two\n\t * arguments `tElement` and `tAttrs` (described in the `compile` function api below) and returns\n\t * a string value representing the url.  In either case, the template URL is passed through {@link\n\t * $sce#getTrustedResourceUrl $sce.getTrustedResourceUrl}.\n\t *\n\t *\n\t * #### `replace` ([*DEPRECATED*!], will be removed in next major release - i.e. v2.0)\n\t * specify what the template should replace. Defaults to `false`.\n\t *\n\t * * `true` - the template will replace the directive's element.\n\t * * `false` - the template will replace the contents of the directive's element.\n\t *\n\t * The replacement process migrates all of the attributes / classes from the old element to the new\n\t * one. See the {@link guide/directive#template-expanding-directive\n\t * Directives Guide} for an example.\n\t *\n\t * There are very few scenarios where element replacement is required for the application function,\n\t * the main one being reusable custom components that are used within SVG contexts\n\t * (because SVG doesn't work with custom elements in the DOM tree).\n\t *\n\t * #### `transclude`\n\t * Extract the contents of the element where the directive appears and make it available to the directive.\n\t * The contents are compiled and provided to the directive as a **transclusion function**. See the\n\t * {@link $compile#transclusion Transclusion} section below.\n\t *\n\t * There are two kinds of transclusion depending upon whether you want to transclude just the contents of the\n\t * directive's element or the entire element:\n\t *\n\t * * `true` - transclude the content (i.e. the child nodes) of the directive's element.\n\t * * `'element'` - transclude the whole of the directive's element including any directives on this\n\t *   element that defined at a lower priority than this directive. When used, the `template`\n\t *   property is ignored.\n\t *\n\t *\n\t * #### `compile`\n\t *\n\t * ```js\n\t *   function compile(tElement, tAttrs, transclude) { ... }\n\t * ```\n\t *\n\t * The compile function deals with transforming the template DOM. Since most directives do not do\n\t * template transformation, it is not used often. The compile function takes the following arguments:\n\t *\n\t *   * `tElement` - template element - The element where the directive has been declared. It is\n\t *     safe to do template transformation on the element and child elements only.\n\t *\n\t *   * `tAttrs` - template attributes - Normalized list of attributes declared on this element shared\n\t *     between all directive compile functions.\n\t *\n\t *   * `transclude` -  [*DEPRECATED*!] A transclude linking function: `function(scope, cloneLinkingFn)`\n\t *\n\t * <div class=\"alert alert-warning\">\n\t * **Note:** The template instance and the link instance may be different objects if the template has\n\t * been cloned. For this reason it is **not** safe to do anything other than DOM transformations that\n\t * apply to all cloned DOM nodes within the compile function. Specifically, DOM listener registration\n\t * should be done in a linking function rather than in a compile function.\n\t * </div>\n\n\t * <div class=\"alert alert-warning\">\n\t * **Note:** The compile function cannot handle directives that recursively use themselves in their\n\t * own templates or compile functions. Compiling these directives results in an infinite loop and a\n\t * stack overflow errors.\n\t *\n\t * This can be avoided by manually using $compile in the postLink function to imperatively compile\n\t * a directive's template instead of relying on automatic template compilation via `template` or\n\t * `templateUrl` declaration or manual compilation inside the compile function.\n\t * </div>\n\t *\n\t * <div class=\"alert alert-danger\">\n\t * **Note:** The `transclude` function that is passed to the compile function is deprecated, as it\n\t *   e.g. does not know about the right outer scope. Please use the transclude function that is passed\n\t *   to the link function instead.\n\t * </div>\n\n\t * A compile function can have a return value which can be either a function or an object.\n\t *\n\t * * returning a (post-link) function - is equivalent to registering the linking function via the\n\t *   `link` property of the config object when the compile function is empty.\n\t *\n\t * * returning an object with function(s) registered via `pre` and `post` properties - allows you to\n\t *   control when a linking function should be called during the linking phase. See info about\n\t *   pre-linking and post-linking functions below.\n\t *\n\t *\n\t * #### `link`\n\t * This property is used only if the `compile` property is not defined.\n\t *\n\t * ```js\n\t *   function link(scope, iElement, iAttrs, controller, transcludeFn) { ... }\n\t * ```\n\t *\n\t * The link function is responsible for registering DOM listeners as well as updating the DOM. It is\n\t * executed after the template has been cloned. This is where most of the directive logic will be\n\t * put.\n\t *\n\t *   * `scope` - {@link ng.$rootScope.Scope Scope} - The scope to be used by the\n\t *     directive for registering {@link ng.$rootScope.Scope#$watch watches}.\n\t *\n\t *   * `iElement` - instance element - The element where the directive is to be used. It is safe to\n\t *     manipulate the children of the element only in `postLink` function since the children have\n\t *     already been linked.\n\t *\n\t *   * `iAttrs` - instance attributes - Normalized list of attributes declared on this element shared\n\t *     between all directive linking functions.\n\t *\n\t *   * `controller` - the directive's required controller instance(s) - Instances are shared\n\t *     among all directives, which allows the directives to use the controllers as a communication\n\t *     channel. The exact value depends on the directive's `require` property:\n\t *       * no controller(s) required: the directive's own controller, or `undefined` if it doesn't have one\n\t *       * `string`: the controller instance\n\t *       * `array`: array of controller instances\n\t *\n\t *     If a required controller cannot be found, and it is optional, the instance is `null`,\n\t *     otherwise the {@link error:$compile:ctreq Missing Required Controller} error is thrown.\n\t *\n\t *     Note that you can also require the directive's own controller - it will be made available like\n\t *     any other controller.\n\t *\n\t *   * `transcludeFn` - A transclude linking function pre-bound to the correct transclusion scope.\n\t *     This is the same as the `$transclude`\n\t *     parameter of directive controllers, see there for details.\n\t *     `function([scope], cloneLinkingFn, futureParentElement)`.\n\t *\n\t * #### Pre-linking function\n\t *\n\t * Executed before the child elements are linked. Not safe to do DOM transformation since the\n\t * compiler linking function will fail to locate the correct elements for linking.\n\t *\n\t * #### Post-linking function\n\t *\n\t * Executed after the child elements are linked.\n\t *\n\t * Note that child elements that contain `templateUrl` directives will not have been compiled\n\t * and linked since they are waiting for their template to load asynchronously and their own\n\t * compilation and linking has been suspended until that occurs.\n\t *\n\t * It is safe to do DOM transformation in the post-linking function on elements that are not waiting\n\t * for their async templates to be resolved.\n\t *\n\t *\n\t * ### Transclusion\n\t *\n\t * Transclusion is the process of extracting a collection of DOM elements from one part of the DOM and\n\t * copying them to another part of the DOM, while maintaining their connection to the original AngularJS\n\t * scope from where they were taken.\n\t *\n\t * Transclusion is used (often with {@link ngTransclude}) to insert the\n\t * original contents of a directive's element into a specified place in the template of the directive.\n\t * The benefit of transclusion, over simply moving the DOM elements manually, is that the transcluded\n\t * content has access to the properties on the scope from which it was taken, even if the directive\n\t * has isolated scope.\n\t * See the {@link guide/directive#creating-a-directive-that-wraps-other-elements Directives Guide}.\n\t *\n\t * This makes it possible for the widget to have private state for its template, while the transcluded\n\t * content has access to its originating scope.\n\t *\n\t * <div class=\"alert alert-warning\">\n\t * **Note:** When testing an element transclude directive you must not place the directive at the root of the\n\t * DOM fragment that is being compiled. See {@link guide/unit-testing#testing-transclusion-directives\n\t * Testing Transclusion Directives}.\n\t * </div>\n\t *\n\t * #### Transclusion Functions\n\t *\n\t * When a directive requests transclusion, the compiler extracts its contents and provides a **transclusion\n\t * function** to the directive's `link` function and `controller`. This transclusion function is a special\n\t * **linking function** that will return the compiled contents linked to a new transclusion scope.\n\t *\n\t * <div class=\"alert alert-info\">\n\t * If you are just using {@link ngTransclude} then you don't need to worry about this function, since\n\t * ngTransclude will deal with it for us.\n\t * </div>\n\t *\n\t * If you want to manually control the insertion and removal of the transcluded content in your directive\n\t * then you must use this transclude function. When you call a transclude function it returns a a jqLite/JQuery\n\t * object that contains the compiled DOM, which is linked to the correct transclusion scope.\n\t *\n\t * When you call a transclusion function you can pass in a **clone attach function**. This function accepts\n\t * two parameters, `function(clone, scope) { ... }`, where the `clone` is a fresh compiled copy of your transcluded\n\t * content and the `scope` is the newly created transclusion scope, to which the clone is bound.\n\t *\n\t * <div class=\"alert alert-info\">\n\t * **Best Practice**: Always provide a `cloneFn` (clone attach function) when you call a translude function\n\t * since you then get a fresh clone of the original DOM and also have access to the new transclusion scope.\n\t * </div>\n\t *\n\t * It is normal practice to attach your transcluded content (`clone`) to the DOM inside your **clone\n\t * attach function**:\n\t *\n\t * ```js\n\t * var transcludedContent, transclusionScope;\n\t *\n\t * $transclude(function(clone, scope) {\n\t *   element.append(clone);\n\t *   transcludedContent = clone;\n\t *   transclusionScope = scope;\n\t * });\n\t * ```\n\t *\n\t * Later, if you want to remove the transcluded content from your DOM then you should also destroy the\n\t * associated transclusion scope:\n\t *\n\t * ```js\n\t * transcludedContent.remove();\n\t * transclusionScope.$destroy();\n\t * ```\n\t *\n\t * <div class=\"alert alert-info\">\n\t * **Best Practice**: if you intend to add and remove transcluded content manually in your directive\n\t * (by calling the transclude function to get the DOM and calling `element.remove()` to remove it),\n\t * then you are also responsible for calling `$destroy` on the transclusion scope.\n\t * </div>\n\t *\n\t * The built-in DOM manipulation directives, such as {@link ngIf}, {@link ngSwitch} and {@link ngRepeat}\n\t * automatically destroy their transluded clones as necessary so you do not need to worry about this if\n\t * you are simply using {@link ngTransclude} to inject the transclusion into your directive.\n\t *\n\t *\n\t * #### Transclusion Scopes\n\t *\n\t * When you call a transclude function it returns a DOM fragment that is pre-bound to a **transclusion\n\t * scope**. This scope is special, in that it is a child of the directive's scope (and so gets destroyed\n\t * when the directive's scope gets destroyed) but it inherits the properties of the scope from which it\n\t * was taken.\n\t *\n\t * For example consider a directive that uses transclusion and isolated scope. The DOM hierarchy might look\n\t * like this:\n\t *\n\t * ```html\n\t * <div ng-app>\n\t *   <div isolate>\n\t *     <div transclusion>\n\t *     </div>\n\t *   </div>\n\t * </div>\n\t * ```\n\t *\n\t * The `$parent` scope hierarchy will look like this:\n\t *\n\t * ```\n\t * - $rootScope\n\t *   - isolate\n\t *     - transclusion\n\t * ```\n\t *\n\t * but the scopes will inherit prototypically from different scopes to their `$parent`.\n\t *\n\t * ```\n\t * - $rootScope\n\t *   - transclusion\n\t * - isolate\n\t * ```\n\t *\n\t *\n\t * ### Attributes\n\t *\n\t * The {@link ng.$compile.directive.Attributes Attributes} object - passed as a parameter in the\n\t * `link()` or `compile()` functions. It has a variety of uses.\n\t *\n\t * accessing *Normalized attribute names:*\n\t * Directives like 'ngBind' can be expressed in many ways: 'ng:bind', `data-ng-bind`, or 'x-ng-bind'.\n\t * the attributes object allows for normalized access to\n\t *   the attributes.\n\t *\n\t * * *Directive inter-communication:* All directives share the same instance of the attributes\n\t *   object which allows the directives to use the attributes object as inter directive\n\t *   communication.\n\t *\n\t * * *Supports interpolation:* Interpolation attributes are assigned to the attribute object\n\t *   allowing other directives to read the interpolated value.\n\t *\n\t * * *Observing interpolated attributes:* Use `$observe` to observe the value changes of attributes\n\t *   that contain interpolation (e.g. `src=\"{{bar}}\"`). Not only is this very efficient but it's also\n\t *   the only way to easily get the actual value because during the linking phase the interpolation\n\t *   hasn't been evaluated yet and so the value is at this time set to `undefined`.\n\t *\n\t * ```js\n\t * function linkingFn(scope, elm, attrs, ctrl) {\n\t *   // get the attribute value\n\t *   console.log(attrs.ngModel);\n\t *\n\t *   // change the attribute\n\t *   attrs.$set('ngModel', 'new value');\n\t *\n\t *   // observe changes to interpolated attribute\n\t *   attrs.$observe('ngModel', function(value) {\n\t *     console.log('ngModel has changed value to ' + value);\n\t *   });\n\t * }\n\t * ```\n\t *\n\t * ## Example\n\t *\n\t * <div class=\"alert alert-warning\">\n\t * **Note**: Typically directives are registered with `module.directive`. The example below is\n\t * to illustrate how `$compile` works.\n\t * </div>\n\t *\n\t <example module=\"compileExample\">\n\t   <file name=\"index.html\">\n\t    <script>\n\t      angular.module('compileExample', [], function($compileProvider) {\n\t        // configure new 'compile' directive by passing a directive\n\t        // factory function. The factory function injects the '$compile'\n\t        $compileProvider.directive('compile', function($compile) {\n\t          // directive factory creates a link function\n\t          return function(scope, element, attrs) {\n\t            scope.$watch(\n\t              function(scope) {\n\t                 // watch the 'compile' expression for changes\n\t                return scope.$eval(attrs.compile);\n\t              },\n\t              function(value) {\n\t                // when the 'compile' expression changes\n\t                // assign it into the current DOM\n\t                element.html(value);\n\n\t                // compile the new DOM and link it to the current\n\t                // scope.\n\t                // NOTE: we only compile .childNodes so that\n\t                // we don't get into infinite loop compiling ourselves\n\t                $compile(element.contents())(scope);\n\t              }\n\t            );\n\t          };\n\t        });\n\t      })\n\t      .controller('GreeterController', ['$scope', function($scope) {\n\t        $scope.name = 'Angular';\n\t        $scope.html = 'Hello {{name}}';\n\t      }]);\n\t    </script>\n\t    <div ng-controller=\"GreeterController\">\n\t      <input ng-model=\"name\"> <br/>\n\t      <textarea ng-model=\"html\"></textarea> <br/>\n\t      <div compile=\"html\"></div>\n\t    </div>\n\t   </file>\n\t   <file name=\"protractor.js\" type=\"protractor\">\n\t     it('should auto compile', function() {\n\t       var textarea = $('textarea');\n\t       var output = $('div[compile]');\n\t       // The initial state reads 'Hello Angular'.\n\t       expect(output.getText()).toBe('Hello Angular');\n\t       textarea.clear();\n\t       textarea.sendKeys('{{name}}!');\n\t       expect(output.getText()).toBe('Angular!');\n\t     });\n\t   </file>\n\t </example>\n\n\t *\n\t *\n\t * @param {string|DOMElement} element Element or HTML string to compile into a template function.\n\t * @param {function(angular.Scope, cloneAttachFn=)} transclude function available to directives - DEPRECATED.\n\t *\n\t * <div class=\"alert alert-danger\">\n\t * **Note:** Passing a `transclude` function to the $compile function is deprecated, as it\n\t *   e.g. will not use the right outer scope. Please pass the transclude function as a\n\t *   `parentBoundTranscludeFn` to the link function instead.\n\t * </div>\n\t *\n\t * @param {number} maxPriority only apply directives lower than given priority (Only effects the\n\t *                 root element(s), not their children)\n\t * @returns {function(scope, cloneAttachFn=, options=)} a link function which is used to bind template\n\t * (a DOM element/tree) to a scope. Where:\n\t *\n\t *  * `scope` - A {@link ng.$rootScope.Scope Scope} to bind to.\n\t *  * `cloneAttachFn` - If `cloneAttachFn` is provided, then the link function will clone the\n\t *  `template` and call the `cloneAttachFn` function allowing the caller to attach the\n\t *  cloned elements to the DOM document at the appropriate place. The `cloneAttachFn` is\n\t *  called as: <br/> `cloneAttachFn(clonedElement, scope)` where:\n\t *\n\t *      * `clonedElement` - is a clone of the original `element` passed into the compiler.\n\t *      * `scope` - is the current scope with which the linking function is working with.\n\t *\n\t *  * `options` - An optional object hash with linking options. If `options` is provided, then the following\n\t *  keys may be used to control linking behavior:\n\t *\n\t *      * `parentBoundTranscludeFn` - the transclude function made available to\n\t *        directives; if given, it will be passed through to the link functions of\n\t *        directives found in `element` during compilation.\n\t *      * `transcludeControllers` - an object hash with keys that map controller names\n\t *        to controller instances; if given, it will make the controllers\n\t *        available to directives.\n\t *      * `futureParentElement` - defines the parent to which the `cloneAttachFn` will add\n\t *        the cloned elements; only needed for transcludes that are allowed to contain non html\n\t *        elements (e.g. SVG elements). See also the directive.controller property.\n\t *\n\t * Calling the linking function returns the element of the template. It is either the original\n\t * element passed in, or the clone of the element if the `cloneAttachFn` is provided.\n\t *\n\t * After linking the view is not updated until after a call to $digest which typically is done by\n\t * Angular automatically.\n\t *\n\t * If you need access to the bound view, there are two ways to do it:\n\t *\n\t * - If you are not asking the linking function to clone the template, create the DOM element(s)\n\t *   before you send them to the compiler and keep this reference around.\n\t *   ```js\n\t *     var element = $compile('<p>{{total}}</p>')(scope);\n\t *   ```\n\t *\n\t * - if on the other hand, you need the element to be cloned, the view reference from the original\n\t *   example would not point to the clone, but rather to the original template that was cloned. In\n\t *   this case, you can access the clone via the cloneAttachFn:\n\t *   ```js\n\t *     var templateElement = angular.element('<p>{{total}}</p>'),\n\t *         scope = ....;\n\t *\n\t *     var clonedElement = $compile(templateElement)(scope, function(clonedElement, scope) {\n\t *       //attach the clone to DOM document at the right place\n\t *     });\n\t *\n\t *     //now we have reference to the cloned DOM via `clonedElement`\n\t *   ```\n\t *\n\t *\n\t * For information on how the compiler works, see the\n\t * {@link guide/compiler Angular HTML Compiler} section of the Developer Guide.\n\t */\n\n\tvar $compileMinErr = minErr('$compile');\n\n\t/**\n\t * @ngdoc provider\n\t * @name $compileProvider\n\t *\n\t * @description\n\t */\n\t$CompileProvider.$inject = ['$provide', '$$sanitizeUriProvider'];\n\tfunction $CompileProvider($provide, $$sanitizeUriProvider) {\n\t  var hasDirectives = {},\n\t      Suffix = 'Directive',\n\t      COMMENT_DIRECTIVE_REGEXP = /^\\s*directive\\:\\s*([\\w\\-]+)\\s+(.*)$/,\n\t      CLASS_DIRECTIVE_REGEXP = /(([\\w\\-]+)(?:\\:([^;]+))?;?)/,\n\t      ALL_OR_NOTHING_ATTRS = makeMap('ngSrc,ngSrcset,src,srcset'),\n\t      REQUIRE_PREFIX_REGEXP = /^(?:(\\^\\^?)?(\\?)?(\\^\\^?)?)?/;\n\n\t  // Ref: http://developers.whatwg.org/webappapis.html#event-handler-idl-attributes\n\t  // The assumption is that future DOM event attribute names will begin with\n\t  // 'on' and be composed of only English letters.\n\t  var EVENT_HANDLER_ATTR_REGEXP = /^(on[a-z]+|formaction)$/;\n\n\t  function parseIsolateBindings(scope, directiveName, isController) {\n\t    var LOCAL_REGEXP = /^\\s*([@&]|=(\\*?))(\\??)\\s*(\\w*)\\s*$/;\n\n\t    var bindings = {};\n\n\t    forEach(scope, function(definition, scopeName) {\n\t      var match = definition.match(LOCAL_REGEXP);\n\n\t      if (!match) {\n\t        throw $compileMinErr('iscp',\n\t            \"Invalid {3} for directive '{0}'.\" +\n\t            \" Definition: {... {1}: '{2}' ...}\",\n\t            directiveName, scopeName, definition,\n\t            (isController ? \"controller bindings definition\" :\n\t            \"isolate scope definition\"));\n\t      }\n\n\t      bindings[scopeName] = {\n\t        mode: match[1][0],\n\t        collection: match[2] === '*',\n\t        optional: match[3] === '?',\n\t        attrName: match[4] || scopeName\n\t      };\n\t    });\n\n\t    return bindings;\n\t  }\n\n\t  function parseDirectiveBindings(directive, directiveName) {\n\t    var bindings = {\n\t      isolateScope: null,\n\t      bindToController: null\n\t    };\n\t    if (isObject(directive.scope)) {\n\t      if (directive.bindToController === true) {\n\t        bindings.bindToController = parseIsolateBindings(directive.scope,\n\t                                                         directiveName, true);\n\t        bindings.isolateScope = {};\n\t      } else {\n\t        bindings.isolateScope = parseIsolateBindings(directive.scope,\n\t                                                     directiveName, false);\n\t      }\n\t    }\n\t    if (isObject(directive.bindToController)) {\n\t      bindings.bindToController =\n\t          parseIsolateBindings(directive.bindToController, directiveName, true);\n\t    }\n\t    if (isObject(bindings.bindToController)) {\n\t      var controller = directive.controller;\n\t      var controllerAs = directive.controllerAs;\n\t      if (!controller) {\n\t        // There is no controller, there may or may not be a controllerAs property\n\t        throw $compileMinErr('noctrl',\n\t              \"Cannot bind to controller without directive '{0}'s controller.\",\n\t              directiveName);\n\t      } else if (!identifierForController(controller, controllerAs)) {\n\t        // There is a controller, but no identifier or controllerAs property\n\t        throw $compileMinErr('noident',\n\t              \"Cannot bind to controller without identifier for directive '{0}'.\",\n\t              directiveName);\n\t      }\n\t    }\n\t    return bindings;\n\t  }\n\n\t  function assertValidDirectiveName(name) {\n\t    var letter = name.charAt(0);\n\t    if (!letter || letter !== lowercase(letter)) {\n\t      throw $compileMinErr('baddir', \"Directive name '{0}' is invalid. The first character must be a lowercase letter\", name);\n\t    }\n\t    if (name !== name.trim()) {\n\t      throw $compileMinErr('baddir',\n\t            \"Directive name '{0}' is invalid. The name should not contain leading or trailing whitespaces\",\n\t            name);\n\t    }\n\t  }\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $compileProvider#directive\n\t   * @kind function\n\t   *\n\t   * @description\n\t   * Register a new directive with the compiler.\n\t   *\n\t   * @param {string|Object} name Name of the directive in camel-case (i.e. <code>ngBind</code> which\n\t   *    will match as <code>ng-bind</code>), or an object map of directives where the keys are the\n\t   *    names and the values are the factories.\n\t   * @param {Function|Array} directiveFactory An injectable directive factory function. See\n\t   *    {@link guide/directive} for more info.\n\t   * @returns {ng.$compileProvider} Self for chaining.\n\t   */\n\t   this.directive = function registerDirective(name, directiveFactory) {\n\t    assertNotHasOwnProperty(name, 'directive');\n\t    if (isString(name)) {\n\t      assertValidDirectiveName(name);\n\t      assertArg(directiveFactory, 'directiveFactory');\n\t      if (!hasDirectives.hasOwnProperty(name)) {\n\t        hasDirectives[name] = [];\n\t        $provide.factory(name + Suffix, ['$injector', '$exceptionHandler',\n\t          function($injector, $exceptionHandler) {\n\t            var directives = [];\n\t            forEach(hasDirectives[name], function(directiveFactory, index) {\n\t              try {\n\t                var directive = $injector.invoke(directiveFactory);\n\t                if (isFunction(directive)) {\n\t                  directive = { compile: valueFn(directive) };\n\t                } else if (!directive.compile && directive.link) {\n\t                  directive.compile = valueFn(directive.link);\n\t                }\n\t                directive.priority = directive.priority || 0;\n\t                directive.index = index;\n\t                directive.name = directive.name || name;\n\t                directive.require = directive.require || (directive.controller && directive.name);\n\t                directive.restrict = directive.restrict || 'EA';\n\t                var bindings = directive.$$bindings =\n\t                    parseDirectiveBindings(directive, directive.name);\n\t                if (isObject(bindings.isolateScope)) {\n\t                  directive.$$isolateBindings = bindings.isolateScope;\n\t                }\n\t                directive.$$moduleName = directiveFactory.$$moduleName;\n\t                directives.push(directive);\n\t              } catch (e) {\n\t                $exceptionHandler(e);\n\t              }\n\t            });\n\t            return directives;\n\t          }]);\n\t      }\n\t      hasDirectives[name].push(directiveFactory);\n\t    } else {\n\t      forEach(name, reverseParams(registerDirective));\n\t    }\n\t    return this;\n\t  };\n\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $compileProvider#aHrefSanitizationWhitelist\n\t   * @kind function\n\t   *\n\t   * @description\n\t   * Retrieves or overrides the default regular expression that is used for whitelisting of safe\n\t   * urls during a[href] sanitization.\n\t   *\n\t   * The sanitization is a security measure aimed at preventing XSS attacks via html links.\n\t   *\n\t   * Any url about to be assigned to a[href] via data-binding is first normalized and turned into\n\t   * an absolute url. Afterwards, the url is matched against the `aHrefSanitizationWhitelist`\n\t   * regular expression. If a match is found, the original url is written into the dom. Otherwise,\n\t   * the absolute url is prefixed with `'unsafe:'` string and only then is it written into the DOM.\n\t   *\n\t   * @param {RegExp=} regexp New regexp to whitelist urls with.\n\t   * @returns {RegExp|ng.$compileProvider} Current RegExp if called without value or self for\n\t   *    chaining otherwise.\n\t   */\n\t  this.aHrefSanitizationWhitelist = function(regexp) {\n\t    if (isDefined(regexp)) {\n\t      $$sanitizeUriProvider.aHrefSanitizationWhitelist(regexp);\n\t      return this;\n\t    } else {\n\t      return $$sanitizeUriProvider.aHrefSanitizationWhitelist();\n\t    }\n\t  };\n\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $compileProvider#imgSrcSanitizationWhitelist\n\t   * @kind function\n\t   *\n\t   * @description\n\t   * Retrieves or overrides the default regular expression that is used for whitelisting of safe\n\t   * urls during img[src] sanitization.\n\t   *\n\t   * The sanitization is a security measure aimed at prevent XSS attacks via html links.\n\t   *\n\t   * Any url about to be assigned to img[src] via data-binding is first normalized and turned into\n\t   * an absolute url. Afterwards, the url is matched against the `imgSrcSanitizationWhitelist`\n\t   * regular expression. If a match is found, the original url is written into the dom. Otherwise,\n\t   * the absolute url is prefixed with `'unsafe:'` string and only then is it written into the DOM.\n\t   *\n\t   * @param {RegExp=} regexp New regexp to whitelist urls with.\n\t   * @returns {RegExp|ng.$compileProvider} Current RegExp if called without value or self for\n\t   *    chaining otherwise.\n\t   */\n\t  this.imgSrcSanitizationWhitelist = function(regexp) {\n\t    if (isDefined(regexp)) {\n\t      $$sanitizeUriProvider.imgSrcSanitizationWhitelist(regexp);\n\t      return this;\n\t    } else {\n\t      return $$sanitizeUriProvider.imgSrcSanitizationWhitelist();\n\t    }\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name  $compileProvider#debugInfoEnabled\n\t   *\n\t   * @param {boolean=} enabled update the debugInfoEnabled state if provided, otherwise just return the\n\t   * current debugInfoEnabled state\n\t   * @returns {*} current value if used as getter or itself (chaining) if used as setter\n\t   *\n\t   * @kind function\n\t   *\n\t   * @description\n\t   * Call this method to enable/disable various debug runtime information in the compiler such as adding\n\t   * binding information and a reference to the current scope on to DOM elements.\n\t   * If enabled, the compiler will add the following to DOM elements that have been bound to the scope\n\t   * * `ng-binding` CSS class\n\t   * * `$binding` data property containing an array of the binding expressions\n\t   *\n\t   * You may want to disable this in production for a significant performance boost. See\n\t   * {@link guide/production#disabling-debug-data Disabling Debug Data} for more.\n\t   *\n\t   * The default value is true.\n\t   */\n\t  var debugInfoEnabled = true;\n\t  this.debugInfoEnabled = function(enabled) {\n\t    if (isDefined(enabled)) {\n\t      debugInfoEnabled = enabled;\n\t      return this;\n\t    }\n\t    return debugInfoEnabled;\n\t  };\n\n\t  this.$get = [\n\t            '$injector', '$interpolate', '$exceptionHandler', '$templateRequest', '$parse',\n\t            '$controller', '$rootScope', '$document', '$sce', '$animate', '$$sanitizeUri',\n\t    function($injector,   $interpolate,   $exceptionHandler,   $templateRequest,   $parse,\n\t             $controller,   $rootScope,   $document,   $sce,   $animate,   $$sanitizeUri) {\n\n\t    var Attributes = function(element, attributesToCopy) {\n\t      if (attributesToCopy) {\n\t        var keys = Object.keys(attributesToCopy);\n\t        var i, l, key;\n\n\t        for (i = 0, l = keys.length; i < l; i++) {\n\t          key = keys[i];\n\t          this[key] = attributesToCopy[key];\n\t        }\n\t      } else {\n\t        this.$attr = {};\n\t      }\n\n\t      this.$$element = element;\n\t    };\n\n\t    Attributes.prototype = {\n\t      /**\n\t       * @ngdoc method\n\t       * @name $compile.directive.Attributes#$normalize\n\t       * @kind function\n\t       *\n\t       * @description\n\t       * Converts an attribute name (e.g. dash/colon/underscore-delimited string, optionally prefixed with `x-` or\n\t       * `data-`) to its normalized, camelCase form.\n\t       *\n\t       * Also there is special case for Moz prefix starting with upper case letter.\n\t       *\n\t       * For further information check out the guide on {@link guide/directive#matching-directives Matching Directives}\n\t       *\n\t       * @param {string} name Name to normalize\n\t       */\n\t      $normalize: directiveNormalize,\n\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $compile.directive.Attributes#$addClass\n\t       * @kind function\n\t       *\n\t       * @description\n\t       * Adds the CSS class value specified by the classVal parameter to the element. If animations\n\t       * are enabled then an animation will be triggered for the class addition.\n\t       *\n\t       * @param {string} classVal The className value that will be added to the element\n\t       */\n\t      $addClass: function(classVal) {\n\t        if (classVal && classVal.length > 0) {\n\t          $animate.addClass(this.$$element, classVal);\n\t        }\n\t      },\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $compile.directive.Attributes#$removeClass\n\t       * @kind function\n\t       *\n\t       * @description\n\t       * Removes the CSS class value specified by the classVal parameter from the element. If\n\t       * animations are enabled then an animation will be triggered for the class removal.\n\t       *\n\t       * @param {string} classVal The className value that will be removed from the element\n\t       */\n\t      $removeClass: function(classVal) {\n\t        if (classVal && classVal.length > 0) {\n\t          $animate.removeClass(this.$$element, classVal);\n\t        }\n\t      },\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $compile.directive.Attributes#$updateClass\n\t       * @kind function\n\t       *\n\t       * @description\n\t       * Adds and removes the appropriate CSS class values to the element based on the difference\n\t       * between the new and old CSS class values (specified as newClasses and oldClasses).\n\t       *\n\t       * @param {string} newClasses The current CSS className value\n\t       * @param {string} oldClasses The former CSS className value\n\t       */\n\t      $updateClass: function(newClasses, oldClasses) {\n\t        var toAdd = tokenDifference(newClasses, oldClasses);\n\t        if (toAdd && toAdd.length) {\n\t          $animate.addClass(this.$$element, toAdd);\n\t        }\n\n\t        var toRemove = tokenDifference(oldClasses, newClasses);\n\t        if (toRemove && toRemove.length) {\n\t          $animate.removeClass(this.$$element, toRemove);\n\t        }\n\t      },\n\n\t      /**\n\t       * Set a normalized attribute on the element in a way such that all directives\n\t       * can share the attribute. This function properly handles boolean attributes.\n\t       * @param {string} key Normalized key. (ie ngAttribute)\n\t       * @param {string|boolean} value The value to set. If `null` attribute will be deleted.\n\t       * @param {boolean=} writeAttr If false, does not write the value to DOM element attribute.\n\t       *     Defaults to true.\n\t       * @param {string=} attrName Optional none normalized name. Defaults to key.\n\t       */\n\t      $set: function(key, value, writeAttr, attrName) {\n\t        // TODO: decide whether or not to throw an error if \"class\"\n\t        //is set through this function since it may cause $updateClass to\n\t        //become unstable.\n\n\t        var node = this.$$element[0],\n\t            booleanKey = getBooleanAttrName(node, key),\n\t            aliasedKey = getAliasedAttrName(key),\n\t            observer = key,\n\t            nodeName;\n\n\t        if (booleanKey) {\n\t          this.$$element.prop(key, value);\n\t          attrName = booleanKey;\n\t        } else if (aliasedKey) {\n\t          this[aliasedKey] = value;\n\t          observer = aliasedKey;\n\t        }\n\n\t        this[key] = value;\n\n\t        // translate normalized key to actual key\n\t        if (attrName) {\n\t          this.$attr[key] = attrName;\n\t        } else {\n\t          attrName = this.$attr[key];\n\t          if (!attrName) {\n\t            this.$attr[key] = attrName = snake_case(key, '-');\n\t          }\n\t        }\n\n\t        nodeName = nodeName_(this.$$element);\n\n\t        if ((nodeName === 'a' && key === 'href') ||\n\t            (nodeName === 'img' && key === 'src')) {\n\t          // sanitize a[href] and img[src] values\n\t          this[key] = value = $$sanitizeUri(value, key === 'src');\n\t        } else if (nodeName === 'img' && key === 'srcset') {\n\t          // sanitize img[srcset] values\n\t          var result = \"\";\n\n\t          // first check if there are spaces because it's not the same pattern\n\t          var trimmedSrcset = trim(value);\n\t          //                (   999x   ,|   999w   ,|   ,|,   )\n\t          var srcPattern = /(\\s+\\d+x\\s*,|\\s+\\d+w\\s*,|\\s+,|,\\s+)/;\n\t          var pattern = /\\s/.test(trimmedSrcset) ? srcPattern : /(,)/;\n\n\t          // split srcset into tuple of uri and descriptor except for the last item\n\t          var rawUris = trimmedSrcset.split(pattern);\n\n\t          // for each tuples\n\t          var nbrUrisWith2parts = Math.floor(rawUris.length / 2);\n\t          for (var i = 0; i < nbrUrisWith2parts; i++) {\n\t            var innerIdx = i * 2;\n\t            // sanitize the uri\n\t            result += $$sanitizeUri(trim(rawUris[innerIdx]), true);\n\t            // add the descriptor\n\t            result += (\" \" + trim(rawUris[innerIdx + 1]));\n\t          }\n\n\t          // split the last item into uri and descriptor\n\t          var lastTuple = trim(rawUris[i * 2]).split(/\\s/);\n\n\t          // sanitize the last uri\n\t          result += $$sanitizeUri(trim(lastTuple[0]), true);\n\n\t          // and add the last descriptor if any\n\t          if (lastTuple.length === 2) {\n\t            result += (\" \" + trim(lastTuple[1]));\n\t          }\n\t          this[key] = value = result;\n\t        }\n\n\t        if (writeAttr !== false) {\n\t          if (value === null || isUndefined(value)) {\n\t            this.$$element.removeAttr(attrName);\n\t          } else {\n\t            this.$$element.attr(attrName, value);\n\t          }\n\t        }\n\n\t        // fire observers\n\t        var $$observers = this.$$observers;\n\t        $$observers && forEach($$observers[observer], function(fn) {\n\t          try {\n\t            fn(value);\n\t          } catch (e) {\n\t            $exceptionHandler(e);\n\t          }\n\t        });\n\t      },\n\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $compile.directive.Attributes#$observe\n\t       * @kind function\n\t       *\n\t       * @description\n\t       * Observes an interpolated attribute.\n\t       *\n\t       * The observer function will be invoked once during the next `$digest` following\n\t       * compilation. The observer is then invoked whenever the interpolated value\n\t       * changes.\n\t       *\n\t       * @param {string} key Normalized key. (ie ngAttribute) .\n\t       * @param {function(interpolatedValue)} fn Function that will be called whenever\n\t                the interpolated value of the attribute changes.\n\t       *        See the {@link guide/directive#text-and-attribute-bindings Directives} guide for more info.\n\t       * @returns {function()} Returns a deregistration function for this observer.\n\t       */\n\t      $observe: function(key, fn) {\n\t        var attrs = this,\n\t            $$observers = (attrs.$$observers || (attrs.$$observers = createMap())),\n\t            listeners = ($$observers[key] || ($$observers[key] = []));\n\n\t        listeners.push(fn);\n\t        $rootScope.$evalAsync(function() {\n\t          if (!listeners.$$inter && attrs.hasOwnProperty(key) && !isUndefined(attrs[key])) {\n\t            // no one registered attribute interpolation function, so lets call it manually\n\t            fn(attrs[key]);\n\t          }\n\t        });\n\n\t        return function() {\n\t          arrayRemove(listeners, fn);\n\t        };\n\t      }\n\t    };\n\n\n\t    function safeAddClass($element, className) {\n\t      try {\n\t        $element.addClass(className);\n\t      } catch (e) {\n\t        // ignore, since it means that we are trying to set class on\n\t        // SVG element, where class name is read-only.\n\t      }\n\t    }\n\n\n\t    var startSymbol = $interpolate.startSymbol(),\n\t        endSymbol = $interpolate.endSymbol(),\n\t        denormalizeTemplate = (startSymbol == '{{' || endSymbol  == '}}')\n\t            ? identity\n\t            : function denormalizeTemplate(template) {\n\t              return template.replace(/\\{\\{/g, startSymbol).replace(/}}/g, endSymbol);\n\t        },\n\t        NG_ATTR_BINDING = /^ngAttr[A-Z]/;\n\t    var MULTI_ELEMENT_DIR_RE = /^(.+)Start$/;\n\n\t    compile.$$addBindingInfo = debugInfoEnabled ? function $$addBindingInfo($element, binding) {\n\t      var bindings = $element.data('$binding') || [];\n\n\t      if (isArray(binding)) {\n\t        bindings = bindings.concat(binding);\n\t      } else {\n\t        bindings.push(binding);\n\t      }\n\n\t      $element.data('$binding', bindings);\n\t    } : noop;\n\n\t    compile.$$addBindingClass = debugInfoEnabled ? function $$addBindingClass($element) {\n\t      safeAddClass($element, 'ng-binding');\n\t    } : noop;\n\n\t    compile.$$addScopeInfo = debugInfoEnabled ? function $$addScopeInfo($element, scope, isolated, noTemplate) {\n\t      var dataName = isolated ? (noTemplate ? '$isolateScopeNoTemplate' : '$isolateScope') : '$scope';\n\t      $element.data(dataName, scope);\n\t    } : noop;\n\n\t    compile.$$addScopeClass = debugInfoEnabled ? function $$addScopeClass($element, isolated) {\n\t      safeAddClass($element, isolated ? 'ng-isolate-scope' : 'ng-scope');\n\t    } : noop;\n\n\t    return compile;\n\n\t    //================================\n\n\t    function compile($compileNodes, transcludeFn, maxPriority, ignoreDirective,\n\t                        previousCompileContext) {\n\t      if (!($compileNodes instanceof jqLite)) {\n\t        // jquery always rewraps, whereas we need to preserve the original selector so that we can\n\t        // modify it.\n\t        $compileNodes = jqLite($compileNodes);\n\t      }\n\t      // We can not compile top level text elements since text nodes can be merged and we will\n\t      // not be able to attach scope data to them, so we will wrap them in <span>\n\t      forEach($compileNodes, function(node, index) {\n\t        if (node.nodeType == NODE_TYPE_TEXT && node.nodeValue.match(/\\S+/) /* non-empty */ ) {\n\t          $compileNodes[index] = jqLite(node).wrap('<span></span>').parent()[0];\n\t        }\n\t      });\n\t      var compositeLinkFn =\n\t              compileNodes($compileNodes, transcludeFn, $compileNodes,\n\t                           maxPriority, ignoreDirective, previousCompileContext);\n\t      compile.$$addScopeClass($compileNodes);\n\t      var namespace = null;\n\t      return function publicLinkFn(scope, cloneConnectFn, options) {\n\t        assertArg(scope, 'scope');\n\n\t        if (previousCompileContext && previousCompileContext.needsNewScope) {\n\t          // A parent directive did a replace and a directive on this element asked\n\t          // for transclusion, which caused us to lose a layer of element on which\n\t          // we could hold the new transclusion scope, so we will create it manually\n\t          // here.\n\t          scope = scope.$parent.$new();\n\t        }\n\n\t        options = options || {};\n\t        var parentBoundTranscludeFn = options.parentBoundTranscludeFn,\n\t          transcludeControllers = options.transcludeControllers,\n\t          futureParentElement = options.futureParentElement;\n\n\t        // When `parentBoundTranscludeFn` is passed, it is a\n\t        // `controllersBoundTransclude` function (it was previously passed\n\t        // as `transclude` to directive.link) so we must unwrap it to get\n\t        // its `boundTranscludeFn`\n\t        if (parentBoundTranscludeFn && parentBoundTranscludeFn.$$boundTransclude) {\n\t          parentBoundTranscludeFn = parentBoundTranscludeFn.$$boundTransclude;\n\t        }\n\n\t        if (!namespace) {\n\t          namespace = detectNamespaceForChildElements(futureParentElement);\n\t        }\n\t        var $linkNode;\n\t        if (namespace !== 'html') {\n\t          // When using a directive with replace:true and templateUrl the $compileNodes\n\t          // (or a child element inside of them)\n\t          // might change, so we need to recreate the namespace adapted compileNodes\n\t          // for call to the link function.\n\t          // Note: This will already clone the nodes...\n\t          $linkNode = jqLite(\n\t            wrapTemplate(namespace, jqLite('<div>').append($compileNodes).html())\n\t          );\n\t        } else if (cloneConnectFn) {\n\t          // important!!: we must call our jqLite.clone() since the jQuery one is trying to be smart\n\t          // and sometimes changes the structure of the DOM.\n\t          $linkNode = JQLitePrototype.clone.call($compileNodes);\n\t        } else {\n\t          $linkNode = $compileNodes;\n\t        }\n\n\t        if (transcludeControllers) {\n\t          for (var controllerName in transcludeControllers) {\n\t            $linkNode.data('$' + controllerName + 'Controller', transcludeControllers[controllerName].instance);\n\t          }\n\t        }\n\n\t        compile.$$addScopeInfo($linkNode, scope);\n\n\t        if (cloneConnectFn) cloneConnectFn($linkNode, scope);\n\t        if (compositeLinkFn) compositeLinkFn(scope, $linkNode, $linkNode, parentBoundTranscludeFn);\n\t        return $linkNode;\n\t      };\n\t    }\n\n\t    function detectNamespaceForChildElements(parentElement) {\n\t      // TODO: Make this detect MathML as well...\n\t      var node = parentElement && parentElement[0];\n\t      if (!node) {\n\t        return 'html';\n\t      } else {\n\t        return nodeName_(node) !== 'foreignobject' && node.toString().match(/SVG/) ? 'svg' : 'html';\n\t      }\n\t    }\n\n\t    /**\n\t     * Compile function matches each node in nodeList against the directives. Once all directives\n\t     * for a particular node are collected their compile functions are executed. The compile\n\t     * functions return values - the linking functions - are combined into a composite linking\n\t     * function, which is the a linking function for the node.\n\t     *\n\t     * @param {NodeList} nodeList an array of nodes or NodeList to compile\n\t     * @param {function(angular.Scope, cloneAttachFn=)} transcludeFn A linking function, where the\n\t     *        scope argument is auto-generated to the new child of the transcluded parent scope.\n\t     * @param {DOMElement=} $rootElement If the nodeList is the root of the compilation tree then\n\t     *        the rootElement must be set the jqLite collection of the compile root. This is\n\t     *        needed so that the jqLite collection items can be replaced with widgets.\n\t     * @param {number=} maxPriority Max directive priority.\n\t     * @returns {Function} A composite linking function of all of the matched directives or null.\n\t     */\n\t    function compileNodes(nodeList, transcludeFn, $rootElement, maxPriority, ignoreDirective,\n\t                            previousCompileContext) {\n\t      var linkFns = [],\n\t          attrs, directives, nodeLinkFn, childNodes, childLinkFn, linkFnFound, nodeLinkFnFound;\n\n\t      for (var i = 0; i < nodeList.length; i++) {\n\t        attrs = new Attributes();\n\n\t        // we must always refer to nodeList[i] since the nodes can be replaced underneath us.\n\t        directives = collectDirectives(nodeList[i], [], attrs, i === 0 ? maxPriority : undefined,\n\t                                        ignoreDirective);\n\n\t        nodeLinkFn = (directives.length)\n\t            ? applyDirectivesToNode(directives, nodeList[i], attrs, transcludeFn, $rootElement,\n\t                                      null, [], [], previousCompileContext)\n\t            : null;\n\n\t        if (nodeLinkFn && nodeLinkFn.scope) {\n\t          compile.$$addScopeClass(attrs.$$element);\n\t        }\n\n\t        childLinkFn = (nodeLinkFn && nodeLinkFn.terminal ||\n\t                      !(childNodes = nodeList[i].childNodes) ||\n\t                      !childNodes.length)\n\t            ? null\n\t            : compileNodes(childNodes,\n\t                 nodeLinkFn ? (\n\t                  (nodeLinkFn.transcludeOnThisElement || !nodeLinkFn.templateOnThisElement)\n\t                     && nodeLinkFn.transclude) : transcludeFn);\n\n\t        if (nodeLinkFn || childLinkFn) {\n\t          linkFns.push(i, nodeLinkFn, childLinkFn);\n\t          linkFnFound = true;\n\t          nodeLinkFnFound = nodeLinkFnFound || nodeLinkFn;\n\t        }\n\n\t        //use the previous context only for the first element in the virtual group\n\t        previousCompileContext = null;\n\t      }\n\n\t      // return a linking function if we have found anything, null otherwise\n\t      return linkFnFound ? compositeLinkFn : null;\n\n\t      function compositeLinkFn(scope, nodeList, $rootElement, parentBoundTranscludeFn) {\n\t        var nodeLinkFn, childLinkFn, node, childScope, i, ii, idx, childBoundTranscludeFn;\n\t        var stableNodeList;\n\n\n\t        if (nodeLinkFnFound) {\n\t          // copy nodeList so that if a nodeLinkFn removes or adds an element at this DOM level our\n\t          // offsets don't get screwed up\n\t          var nodeListLength = nodeList.length;\n\t          stableNodeList = new Array(nodeListLength);\n\n\t          // create a sparse array by only copying the elements which have a linkFn\n\t          for (i = 0; i < linkFns.length; i+=3) {\n\t            idx = linkFns[i];\n\t            stableNodeList[idx] = nodeList[idx];\n\t          }\n\t        } else {\n\t          stableNodeList = nodeList;\n\t        }\n\n\t        for (i = 0, ii = linkFns.length; i < ii;) {\n\t          node = stableNodeList[linkFns[i++]];\n\t          nodeLinkFn = linkFns[i++];\n\t          childLinkFn = linkFns[i++];\n\n\t          if (nodeLinkFn) {\n\t            if (nodeLinkFn.scope) {\n\t              childScope = scope.$new();\n\t              compile.$$addScopeInfo(jqLite(node), childScope);\n\t            } else {\n\t              childScope = scope;\n\t            }\n\n\t            if (nodeLinkFn.transcludeOnThisElement) {\n\t              childBoundTranscludeFn = createBoundTranscludeFn(\n\t                  scope, nodeLinkFn.transclude, parentBoundTranscludeFn);\n\n\t            } else if (!nodeLinkFn.templateOnThisElement && parentBoundTranscludeFn) {\n\t              childBoundTranscludeFn = parentBoundTranscludeFn;\n\n\t            } else if (!parentBoundTranscludeFn && transcludeFn) {\n\t              childBoundTranscludeFn = createBoundTranscludeFn(scope, transcludeFn);\n\n\t            } else {\n\t              childBoundTranscludeFn = null;\n\t            }\n\n\t            nodeLinkFn(childLinkFn, childScope, node, $rootElement, childBoundTranscludeFn);\n\n\t          } else if (childLinkFn) {\n\t            childLinkFn(scope, node.childNodes, undefined, parentBoundTranscludeFn);\n\t          }\n\t        }\n\t      }\n\t    }\n\n\t    function createBoundTranscludeFn(scope, transcludeFn, previousBoundTranscludeFn) {\n\n\t      var boundTranscludeFn = function(transcludedScope, cloneFn, controllers, futureParentElement, containingScope) {\n\n\t        if (!transcludedScope) {\n\t          transcludedScope = scope.$new(false, containingScope);\n\t          transcludedScope.$$transcluded = true;\n\t        }\n\n\t        return transcludeFn(transcludedScope, cloneFn, {\n\t          parentBoundTranscludeFn: previousBoundTranscludeFn,\n\t          transcludeControllers: controllers,\n\t          futureParentElement: futureParentElement\n\t        });\n\t      };\n\n\t      return boundTranscludeFn;\n\t    }\n\n\t    /**\n\t     * Looks for directives on the given node and adds them to the directive collection which is\n\t     * sorted.\n\t     *\n\t     * @param node Node to search.\n\t     * @param directives An array to which the directives are added to. This array is sorted before\n\t     *        the function returns.\n\t     * @param attrs The shared attrs object which is used to populate the normalized attributes.\n\t     * @param {number=} maxPriority Max directive priority.\n\t     */\n\t    function collectDirectives(node, directives, attrs, maxPriority, ignoreDirective) {\n\t      var nodeType = node.nodeType,\n\t          attrsMap = attrs.$attr,\n\t          match,\n\t          className;\n\n\t      switch (nodeType) {\n\t        case NODE_TYPE_ELEMENT: /* Element */\n\t          // use the node name: <directive>\n\t          addDirective(directives,\n\t              directiveNormalize(nodeName_(node)), 'E', maxPriority, ignoreDirective);\n\n\t          // iterate over the attributes\n\t          for (var attr, name, nName, ngAttrName, value, isNgAttr, nAttrs = node.attributes,\n\t                   j = 0, jj = nAttrs && nAttrs.length; j < jj; j++) {\n\t            var attrStartName = false;\n\t            var attrEndName = false;\n\n\t            attr = nAttrs[j];\n\t            name = attr.name;\n\t            value = trim(attr.value);\n\n\t            // support ngAttr attribute binding\n\t            ngAttrName = directiveNormalize(name);\n\t            if (isNgAttr = NG_ATTR_BINDING.test(ngAttrName)) {\n\t              name = name.replace(PREFIX_REGEXP, '')\n\t                .substr(8).replace(/_(.)/g, function(match, letter) {\n\t                  return letter.toUpperCase();\n\t                });\n\t            }\n\n\t            var multiElementMatch = ngAttrName.match(MULTI_ELEMENT_DIR_RE);\n\t            if (multiElementMatch && directiveIsMultiElement(multiElementMatch[1])) {\n\t              attrStartName = name;\n\t              attrEndName = name.substr(0, name.length - 5) + 'end';\n\t              name = name.substr(0, name.length - 6);\n\t            }\n\n\t            nName = directiveNormalize(name.toLowerCase());\n\t            attrsMap[nName] = name;\n\t            if (isNgAttr || !attrs.hasOwnProperty(nName)) {\n\t                attrs[nName] = value;\n\t                if (getBooleanAttrName(node, nName)) {\n\t                  attrs[nName] = true; // presence means true\n\t                }\n\t            }\n\t            addAttrInterpolateDirective(node, directives, value, nName, isNgAttr);\n\t            addDirective(directives, nName, 'A', maxPriority, ignoreDirective, attrStartName,\n\t                          attrEndName);\n\t          }\n\n\t          // use class as directive\n\t          className = node.className;\n\t          if (isObject(className)) {\n\t              // Maybe SVGAnimatedString\n\t              className = className.animVal;\n\t          }\n\t          if (isString(className) && className !== '') {\n\t            while (match = CLASS_DIRECTIVE_REGEXP.exec(className)) {\n\t              nName = directiveNormalize(match[2]);\n\t              if (addDirective(directives, nName, 'C', maxPriority, ignoreDirective)) {\n\t                attrs[nName] = trim(match[3]);\n\t              }\n\t              className = className.substr(match.index + match[0].length);\n\t            }\n\t          }\n\t          break;\n\t        case NODE_TYPE_TEXT: /* Text Node */\n\t          if (msie === 11) {\n\t            // Workaround for #11781\n\t            while (node.parentNode && node.nextSibling && node.nextSibling.nodeType === NODE_TYPE_TEXT) {\n\t              node.nodeValue = node.nodeValue + node.nextSibling.nodeValue;\n\t              node.parentNode.removeChild(node.nextSibling);\n\t            }\n\t          }\n\t          addTextInterpolateDirective(directives, node.nodeValue);\n\t          break;\n\t        case NODE_TYPE_COMMENT: /* Comment */\n\t          try {\n\t            match = COMMENT_DIRECTIVE_REGEXP.exec(node.nodeValue);\n\t            if (match) {\n\t              nName = directiveNormalize(match[1]);\n\t              if (addDirective(directives, nName, 'M', maxPriority, ignoreDirective)) {\n\t                attrs[nName] = trim(match[2]);\n\t              }\n\t            }\n\t          } catch (e) {\n\t            // turns out that under some circumstances IE9 throws errors when one attempts to read\n\t            // comment's node value.\n\t            // Just ignore it and continue. (Can't seem to reproduce in test case.)\n\t          }\n\t          break;\n\t      }\n\n\t      directives.sort(byPriority);\n\t      return directives;\n\t    }\n\n\t    /**\n\t     * Given a node with an directive-start it collects all of the siblings until it finds\n\t     * directive-end.\n\t     * @param node\n\t     * @param attrStart\n\t     * @param attrEnd\n\t     * @returns {*}\n\t     */\n\t    function groupScan(node, attrStart, attrEnd) {\n\t      var nodes = [];\n\t      var depth = 0;\n\t      if (attrStart && node.hasAttribute && node.hasAttribute(attrStart)) {\n\t        do {\n\t          if (!node) {\n\t            throw $compileMinErr('uterdir',\n\t                      \"Unterminated attribute, found '{0}' but no matching '{1}' found.\",\n\t                      attrStart, attrEnd);\n\t          }\n\t          if (node.nodeType == NODE_TYPE_ELEMENT) {\n\t            if (node.hasAttribute(attrStart)) depth++;\n\t            if (node.hasAttribute(attrEnd)) depth--;\n\t          }\n\t          nodes.push(node);\n\t          node = node.nextSibling;\n\t        } while (depth > 0);\n\t      } else {\n\t        nodes.push(node);\n\t      }\n\n\t      return jqLite(nodes);\n\t    }\n\n\t    /**\n\t     * Wrapper for linking function which converts normal linking function into a grouped\n\t     * linking function.\n\t     * @param linkFn\n\t     * @param attrStart\n\t     * @param attrEnd\n\t     * @returns {Function}\n\t     */\n\t    function groupElementsLinkFnWrapper(linkFn, attrStart, attrEnd) {\n\t      return function(scope, element, attrs, controllers, transcludeFn) {\n\t        element = groupScan(element[0], attrStart, attrEnd);\n\t        return linkFn(scope, element, attrs, controllers, transcludeFn);\n\t      };\n\t    }\n\n\t    /**\n\t     * Once the directives have been collected, their compile functions are executed. This method\n\t     * is responsible for inlining directive templates as well as terminating the application\n\t     * of the directives if the terminal directive has been reached.\n\t     *\n\t     * @param {Array} directives Array of collected directives to execute their compile function.\n\t     *        this needs to be pre-sorted by priority order.\n\t     * @param {Node} compileNode The raw DOM node to apply the compile functions to\n\t     * @param {Object} templateAttrs The shared attribute function\n\t     * @param {function(angular.Scope, cloneAttachFn=)} transcludeFn A linking function, where the\n\t     *                                                  scope argument is auto-generated to the new\n\t     *                                                  child of the transcluded parent scope.\n\t     * @param {JQLite} jqCollection If we are working on the root of the compile tree then this\n\t     *                              argument has the root jqLite array so that we can replace nodes\n\t     *                              on it.\n\t     * @param {Object=} originalReplaceDirective An optional directive that will be ignored when\n\t     *                                           compiling the transclusion.\n\t     * @param {Array.<Function>} preLinkFns\n\t     * @param {Array.<Function>} postLinkFns\n\t     * @param {Object} previousCompileContext Context used for previous compilation of the current\n\t     *                                        node\n\t     * @returns {Function} linkFn\n\t     */\n\t    function applyDirectivesToNode(directives, compileNode, templateAttrs, transcludeFn,\n\t                                   jqCollection, originalReplaceDirective, preLinkFns, postLinkFns,\n\t                                   previousCompileContext) {\n\t      previousCompileContext = previousCompileContext || {};\n\n\t      var terminalPriority = -Number.MAX_VALUE,\n\t          newScopeDirective = previousCompileContext.newScopeDirective,\n\t          controllerDirectives = previousCompileContext.controllerDirectives,\n\t          newIsolateScopeDirective = previousCompileContext.newIsolateScopeDirective,\n\t          templateDirective = previousCompileContext.templateDirective,\n\t          nonTlbTranscludeDirective = previousCompileContext.nonTlbTranscludeDirective,\n\t          hasTranscludeDirective = false,\n\t          hasTemplate = false,\n\t          hasElementTranscludeDirective = previousCompileContext.hasElementTranscludeDirective,\n\t          $compileNode = templateAttrs.$$element = jqLite(compileNode),\n\t          directive,\n\t          directiveName,\n\t          $template,\n\t          replaceDirective = originalReplaceDirective,\n\t          childTranscludeFn = transcludeFn,\n\t          linkFn,\n\t          directiveValue;\n\n\t      // executes all directives on the current element\n\t      for (var i = 0, ii = directives.length; i < ii; i++) {\n\t        directive = directives[i];\n\t        var attrStart = directive.$$start;\n\t        var attrEnd = directive.$$end;\n\n\t        // collect multiblock sections\n\t        if (attrStart) {\n\t          $compileNode = groupScan(compileNode, attrStart, attrEnd);\n\t        }\n\t        $template = undefined;\n\n\t        if (terminalPriority > directive.priority) {\n\t          break; // prevent further processing of directives\n\t        }\n\n\t        if (directiveValue = directive.scope) {\n\n\t          // skip the check for directives with async templates, we'll check the derived sync\n\t          // directive when the template arrives\n\t          if (!directive.templateUrl) {\n\t            if (isObject(directiveValue)) {\n\t              // This directive is trying to add an isolated scope.\n\t              // Check that there is no scope of any kind already\n\t              assertNoDuplicate('new/isolated scope', newIsolateScopeDirective || newScopeDirective,\n\t                                directive, $compileNode);\n\t              newIsolateScopeDirective = directive;\n\t            } else {\n\t              // This directive is trying to add a child scope.\n\t              // Check that there is no isolated scope already\n\t              assertNoDuplicate('new/isolated scope', newIsolateScopeDirective, directive,\n\t                                $compileNode);\n\t            }\n\t          }\n\n\t          newScopeDirective = newScopeDirective || directive;\n\t        }\n\n\t        directiveName = directive.name;\n\n\t        if (!directive.templateUrl && directive.controller) {\n\t          directiveValue = directive.controller;\n\t          controllerDirectives = controllerDirectives || createMap();\n\t          assertNoDuplicate(\"'\" + directiveName + \"' controller\",\n\t              controllerDirectives[directiveName], directive, $compileNode);\n\t          controllerDirectives[directiveName] = directive;\n\t        }\n\n\t        if (directiveValue = directive.transclude) {\n\t          hasTranscludeDirective = true;\n\n\t          // Special case ngIf and ngRepeat so that we don't complain about duplicate transclusion.\n\t          // This option should only be used by directives that know how to safely handle element transclusion,\n\t          // where the transcluded nodes are added or replaced after linking.\n\t          if (!directive.$$tlb) {\n\t            assertNoDuplicate('transclusion', nonTlbTranscludeDirective, directive, $compileNode);\n\t            nonTlbTranscludeDirective = directive;\n\t          }\n\n\t          if (directiveValue == 'element') {\n\t            hasElementTranscludeDirective = true;\n\t            terminalPriority = directive.priority;\n\t            $template = $compileNode;\n\t            $compileNode = templateAttrs.$$element =\n\t                jqLite(document.createComment(' ' + directiveName + ': ' +\n\t                                              templateAttrs[directiveName] + ' '));\n\t            compileNode = $compileNode[0];\n\t            replaceWith(jqCollection, sliceArgs($template), compileNode);\n\n\t            childTranscludeFn = compile($template, transcludeFn, terminalPriority,\n\t                                        replaceDirective && replaceDirective.name, {\n\t                                          // Don't pass in:\n\t                                          // - controllerDirectives - otherwise we'll create duplicates controllers\n\t                                          // - newIsolateScopeDirective or templateDirective - combining templates with\n\t                                          //   element transclusion doesn't make sense.\n\t                                          //\n\t                                          // We need only nonTlbTranscludeDirective so that we prevent putting transclusion\n\t                                          // on the same element more than once.\n\t                                          nonTlbTranscludeDirective: nonTlbTranscludeDirective\n\t                                        });\n\t          } else {\n\t            $template = jqLite(jqLiteClone(compileNode)).contents();\n\t            $compileNode.empty(); // clear contents\n\t            childTranscludeFn = compile($template, transcludeFn, undefined,\n\t                undefined, { needsNewScope: directive.$$isolateScope || directive.$$newScope});\n\t          }\n\t        }\n\n\t        if (directive.template) {\n\t          hasTemplate = true;\n\t          assertNoDuplicate('template', templateDirective, directive, $compileNode);\n\t          templateDirective = directive;\n\n\t          directiveValue = (isFunction(directive.template))\n\t              ? directive.template($compileNode, templateAttrs)\n\t              : directive.template;\n\n\t          directiveValue = denormalizeTemplate(directiveValue);\n\n\t          if (directive.replace) {\n\t            replaceDirective = directive;\n\t            if (jqLiteIsTextNode(directiveValue)) {\n\t              $template = [];\n\t            } else {\n\t              $template = removeComments(wrapTemplate(directive.templateNamespace, trim(directiveValue)));\n\t            }\n\t            compileNode = $template[0];\n\n\t            if ($template.length != 1 || compileNode.nodeType !== NODE_TYPE_ELEMENT) {\n\t              throw $compileMinErr('tplrt',\n\t                  \"Template for directive '{0}' must have exactly one root element. {1}\",\n\t                  directiveName, '');\n\t            }\n\n\t            replaceWith(jqCollection, $compileNode, compileNode);\n\n\t            var newTemplateAttrs = {$attr: {}};\n\n\t            // combine directives from the original node and from the template:\n\t            // - take the array of directives for this element\n\t            // - split it into two parts, those that already applied (processed) and those that weren't (unprocessed)\n\t            // - collect directives from the template and sort them by priority\n\t            // - combine directives as: processed + template + unprocessed\n\t            var templateDirectives = collectDirectives(compileNode, [], newTemplateAttrs);\n\t            var unprocessedDirectives = directives.splice(i + 1, directives.length - (i + 1));\n\n\t            if (newIsolateScopeDirective || newScopeDirective) {\n\t              // The original directive caused the current element to be replaced but this element\n\t              // also needs to have a new scope, so we need to tell the template directives\n\t              // that they would need to get their scope from further up, if they require transclusion\n\t              markDirectiveScope(templateDirectives, newIsolateScopeDirective, newScopeDirective);\n\t            }\n\t            directives = directives.concat(templateDirectives).concat(unprocessedDirectives);\n\t            mergeTemplateAttributes(templateAttrs, newTemplateAttrs);\n\n\t            ii = directives.length;\n\t          } else {\n\t            $compileNode.html(directiveValue);\n\t          }\n\t        }\n\n\t        if (directive.templateUrl) {\n\t          hasTemplate = true;\n\t          assertNoDuplicate('template', templateDirective, directive, $compileNode);\n\t          templateDirective = directive;\n\n\t          if (directive.replace) {\n\t            replaceDirective = directive;\n\t          }\n\n\t          nodeLinkFn = compileTemplateUrl(directives.splice(i, directives.length - i), $compileNode,\n\t              templateAttrs, jqCollection, hasTranscludeDirective && childTranscludeFn, preLinkFns, postLinkFns, {\n\t                controllerDirectives: controllerDirectives,\n\t                newScopeDirective: (newScopeDirective !== directive) && newScopeDirective,\n\t                newIsolateScopeDirective: newIsolateScopeDirective,\n\t                templateDirective: templateDirective,\n\t                nonTlbTranscludeDirective: nonTlbTranscludeDirective\n\t              });\n\t          ii = directives.length;\n\t        } else if (directive.compile) {\n\t          try {\n\t            linkFn = directive.compile($compileNode, templateAttrs, childTranscludeFn);\n\t            if (isFunction(linkFn)) {\n\t              addLinkFns(null, linkFn, attrStart, attrEnd);\n\t            } else if (linkFn) {\n\t              addLinkFns(linkFn.pre, linkFn.post, attrStart, attrEnd);\n\t            }\n\t          } catch (e) {\n\t            $exceptionHandler(e, startingTag($compileNode));\n\t          }\n\t        }\n\n\t        if (directive.terminal) {\n\t          nodeLinkFn.terminal = true;\n\t          terminalPriority = Math.max(terminalPriority, directive.priority);\n\t        }\n\n\t      }\n\n\t      nodeLinkFn.scope = newScopeDirective && newScopeDirective.scope === true;\n\t      nodeLinkFn.transcludeOnThisElement = hasTranscludeDirective;\n\t      nodeLinkFn.templateOnThisElement = hasTemplate;\n\t      nodeLinkFn.transclude = childTranscludeFn;\n\n\t      previousCompileContext.hasElementTranscludeDirective = hasElementTranscludeDirective;\n\n\t      // might be normal or delayed nodeLinkFn depending on if templateUrl is present\n\t      return nodeLinkFn;\n\n\t      ////////////////////\n\n\t      function addLinkFns(pre, post, attrStart, attrEnd) {\n\t        if (pre) {\n\t          if (attrStart) pre = groupElementsLinkFnWrapper(pre, attrStart, attrEnd);\n\t          pre.require = directive.require;\n\t          pre.directiveName = directiveName;\n\t          if (newIsolateScopeDirective === directive || directive.$$isolateScope) {\n\t            pre = cloneAndAnnotateFn(pre, {isolateScope: true});\n\t          }\n\t          preLinkFns.push(pre);\n\t        }\n\t        if (post) {\n\t          if (attrStart) post = groupElementsLinkFnWrapper(post, attrStart, attrEnd);\n\t          post.require = directive.require;\n\t          post.directiveName = directiveName;\n\t          if (newIsolateScopeDirective === directive || directive.$$isolateScope) {\n\t            post = cloneAndAnnotateFn(post, {isolateScope: true});\n\t          }\n\t          postLinkFns.push(post);\n\t        }\n\t      }\n\n\n\t      function getControllers(directiveName, require, $element, elementControllers) {\n\t        var value;\n\n\t        if (isString(require)) {\n\t          var match = require.match(REQUIRE_PREFIX_REGEXP);\n\t          var name = require.substring(match[0].length);\n\t          var inheritType = match[1] || match[3];\n\t          var optional = match[2] === '?';\n\n\t          //If only parents then start at the parent element\n\t          if (inheritType === '^^') {\n\t            $element = $element.parent();\n\t          //Otherwise attempt getting the controller from elementControllers in case\n\t          //the element is transcluded (and has no data) and to avoid .data if possible\n\t          } else {\n\t            value = elementControllers && elementControllers[name];\n\t            value = value && value.instance;\n\t          }\n\n\t          if (!value) {\n\t            var dataName = '$' + name + 'Controller';\n\t            value = inheritType ? $element.inheritedData(dataName) : $element.data(dataName);\n\t          }\n\n\t          if (!value && !optional) {\n\t            throw $compileMinErr('ctreq',\n\t                \"Controller '{0}', required by directive '{1}', can't be found!\",\n\t                name, directiveName);\n\t          }\n\t        } else if (isArray(require)) {\n\t          value = [];\n\t          for (var i = 0, ii = require.length; i < ii; i++) {\n\t            value[i] = getControllers(directiveName, require[i], $element, elementControllers);\n\t          }\n\t        }\n\n\t        return value || null;\n\t      }\n\n\t      function setupControllers($element, attrs, transcludeFn, controllerDirectives, isolateScope, scope) {\n\t        var elementControllers = createMap();\n\t        for (var controllerKey in controllerDirectives) {\n\t          var directive = controllerDirectives[controllerKey];\n\t          var locals = {\n\t            $scope: directive === newIsolateScopeDirective || directive.$$isolateScope ? isolateScope : scope,\n\t            $element: $element,\n\t            $attrs: attrs,\n\t            $transclude: transcludeFn\n\t          };\n\n\t          var controller = directive.controller;\n\t          if (controller == '@') {\n\t            controller = attrs[directive.name];\n\t          }\n\n\t          var controllerInstance = $controller(controller, locals, true, directive.controllerAs);\n\n\t          // For directives with element transclusion the element is a comment,\n\t          // but jQuery .data doesn't support attaching data to comment nodes as it's hard to\n\t          // clean up (http://bugs.jquery.com/ticket/8335).\n\t          // Instead, we save the controllers for the element in a local hash and attach to .data\n\t          // later, once we have the actual element.\n\t          elementControllers[directive.name] = controllerInstance;\n\t          if (!hasElementTranscludeDirective) {\n\t            $element.data('$' + directive.name + 'Controller', controllerInstance.instance);\n\t          }\n\t        }\n\t        return elementControllers;\n\t      }\n\n\t      function nodeLinkFn(childLinkFn, scope, linkNode, $rootElement, boundTranscludeFn) {\n\t        var linkFn, isolateScope, controllerScope, elementControllers, transcludeFn, $element,\n\t            attrs, removeScopeBindingWatches, removeControllerBindingWatches;\n\n\t        if (compileNode === linkNode) {\n\t          attrs = templateAttrs;\n\t          $element = templateAttrs.$$element;\n\t        } else {\n\t          $element = jqLite(linkNode);\n\t          attrs = new Attributes($element, templateAttrs);\n\t        }\n\n\t        controllerScope = scope;\n\t        if (newIsolateScopeDirective) {\n\t          isolateScope = scope.$new(true);\n\t        } else if (newScopeDirective) {\n\t          controllerScope = scope.$parent;\n\t        }\n\n\t        if (boundTranscludeFn) {\n\t          // track `boundTranscludeFn` so it can be unwrapped if `transcludeFn`\n\t          // is later passed as `parentBoundTranscludeFn` to `publicLinkFn`\n\t          transcludeFn = controllersBoundTransclude;\n\t          transcludeFn.$$boundTransclude = boundTranscludeFn;\n\t        }\n\n\t        if (controllerDirectives) {\n\t          elementControllers = setupControllers($element, attrs, transcludeFn, controllerDirectives, isolateScope, scope);\n\t        }\n\n\t        if (newIsolateScopeDirective) {\n\t          // Initialize isolate scope bindings for new isolate scope directive.\n\t          compile.$$addScopeInfo($element, isolateScope, true, !(templateDirective && (templateDirective === newIsolateScopeDirective ||\n\t              templateDirective === newIsolateScopeDirective.$$originalDirective)));\n\t          compile.$$addScopeClass($element, true);\n\t          isolateScope.$$isolateBindings =\n\t              newIsolateScopeDirective.$$isolateBindings;\n\t          removeScopeBindingWatches = initializeDirectiveBindings(scope, attrs, isolateScope,\n\t                                        isolateScope.$$isolateBindings,\n\t                                        newIsolateScopeDirective);\n\t          if (removeScopeBindingWatches) {\n\t            isolateScope.$on('$destroy', removeScopeBindingWatches);\n\t          }\n\t        }\n\n\t        // Initialize bindToController bindings\n\t        for (var name in elementControllers) {\n\t          var controllerDirective = controllerDirectives[name];\n\t          var controller = elementControllers[name];\n\t          var bindings = controllerDirective.$$bindings.bindToController;\n\n\t          if (controller.identifier && bindings) {\n\t            removeControllerBindingWatches =\n\t              initializeDirectiveBindings(controllerScope, attrs, controller.instance, bindings, controllerDirective);\n\t          }\n\n\t          var controllerResult = controller();\n\t          if (controllerResult !== controller.instance) {\n\t            // If the controller constructor has a return value, overwrite the instance\n\t            // from setupControllers\n\t            controller.instance = controllerResult;\n\t            $element.data('$' + controllerDirective.name + 'Controller', controllerResult);\n\t            removeControllerBindingWatches && removeControllerBindingWatches();\n\t            removeControllerBindingWatches =\n\t              initializeDirectiveBindings(controllerScope, attrs, controller.instance, bindings, controllerDirective);\n\t          }\n\t        }\n\n\t        // PRELINKING\n\t        for (i = 0, ii = preLinkFns.length; i < ii; i++) {\n\t          linkFn = preLinkFns[i];\n\t          invokeLinkFn(linkFn,\n\t              linkFn.isolateScope ? isolateScope : scope,\n\t              $element,\n\t              attrs,\n\t              linkFn.require && getControllers(linkFn.directiveName, linkFn.require, $element, elementControllers),\n\t              transcludeFn\n\t          );\n\t        }\n\n\t        // RECURSION\n\t        // We only pass the isolate scope, if the isolate directive has a template,\n\t        // otherwise the child elements do not belong to the isolate directive.\n\t        var scopeToChild = scope;\n\t        if (newIsolateScopeDirective && (newIsolateScopeDirective.template || newIsolateScopeDirective.templateUrl === null)) {\n\t          scopeToChild = isolateScope;\n\t        }\n\t        childLinkFn && childLinkFn(scopeToChild, linkNode.childNodes, undefined, boundTranscludeFn);\n\n\t        // POSTLINKING\n\t        for (i = postLinkFns.length - 1; i >= 0; i--) {\n\t          linkFn = postLinkFns[i];\n\t          invokeLinkFn(linkFn,\n\t              linkFn.isolateScope ? isolateScope : scope,\n\t              $element,\n\t              attrs,\n\t              linkFn.require && getControllers(linkFn.directiveName, linkFn.require, $element, elementControllers),\n\t              transcludeFn\n\t          );\n\t        }\n\n\t        // This is the function that is injected as `$transclude`.\n\t        // Note: all arguments are optional!\n\t        function controllersBoundTransclude(scope, cloneAttachFn, futureParentElement) {\n\t          var transcludeControllers;\n\n\t          // No scope passed in:\n\t          if (!isScope(scope)) {\n\t            futureParentElement = cloneAttachFn;\n\t            cloneAttachFn = scope;\n\t            scope = undefined;\n\t          }\n\n\t          if (hasElementTranscludeDirective) {\n\t            transcludeControllers = elementControllers;\n\t          }\n\t          if (!futureParentElement) {\n\t            futureParentElement = hasElementTranscludeDirective ? $element.parent() : $element;\n\t          }\n\t          return boundTranscludeFn(scope, cloneAttachFn, transcludeControllers, futureParentElement, scopeToChild);\n\t        }\n\t      }\n\t    }\n\n\t    // Depending upon the context in which a directive finds itself it might need to have a new isolated\n\t    // or child scope created. For instance:\n\t    // * if the directive has been pulled into a template because another directive with a higher priority\n\t    // asked for element transclusion\n\t    // * if the directive itself asks for transclusion but it is at the root of a template and the original\n\t    // element was replaced. See https://github.com/angular/angular.js/issues/12936\n\t    function markDirectiveScope(directives, isolateScope, newScope) {\n\t      for (var j = 0, jj = directives.length; j < jj; j++) {\n\t        directives[j] = inherit(directives[j], {$$isolateScope: isolateScope, $$newScope: newScope});\n\t      }\n\t    }\n\n\t    /**\n\t     * looks up the directive and decorates it with exception handling and proper parameters. We\n\t     * call this the boundDirective.\n\t     *\n\t     * @param {string} name name of the directive to look up.\n\t     * @param {string} location The directive must be found in specific format.\n\t     *   String containing any of theses characters:\n\t     *\n\t     *   * `E`: element name\n\t     *   * `A': attribute\n\t     *   * `C`: class\n\t     *   * `M`: comment\n\t     * @returns {boolean} true if directive was added.\n\t     */\n\t    function addDirective(tDirectives, name, location, maxPriority, ignoreDirective, startAttrName,\n\t                          endAttrName) {\n\t      if (name === ignoreDirective) return null;\n\t      var match = null;\n\t      if (hasDirectives.hasOwnProperty(name)) {\n\t        for (var directive, directives = $injector.get(name + Suffix),\n\t            i = 0, ii = directives.length; i < ii; i++) {\n\t          try {\n\t            directive = directives[i];\n\t            if ((isUndefined(maxPriority) || maxPriority > directive.priority) &&\n\t                 directive.restrict.indexOf(location) != -1) {\n\t              if (startAttrName) {\n\t                directive = inherit(directive, {$$start: startAttrName, $$end: endAttrName});\n\t              }\n\t              tDirectives.push(directive);\n\t              match = directive;\n\t            }\n\t          } catch (e) { $exceptionHandler(e); }\n\t        }\n\t      }\n\t      return match;\n\t    }\n\n\n\t    /**\n\t     * looks up the directive and returns true if it is a multi-element directive,\n\t     * and therefore requires DOM nodes between -start and -end markers to be grouped\n\t     * together.\n\t     *\n\t     * @param {string} name name of the directive to look up.\n\t     * @returns true if directive was registered as multi-element.\n\t     */\n\t    function directiveIsMultiElement(name) {\n\t      if (hasDirectives.hasOwnProperty(name)) {\n\t        for (var directive, directives = $injector.get(name + Suffix),\n\t            i = 0, ii = directives.length; i < ii; i++) {\n\t          directive = directives[i];\n\t          if (directive.multiElement) {\n\t            return true;\n\t          }\n\t        }\n\t      }\n\t      return false;\n\t    }\n\n\t    /**\n\t     * When the element is replaced with HTML template then the new attributes\n\t     * on the template need to be merged with the existing attributes in the DOM.\n\t     * The desired effect is to have both of the attributes present.\n\t     *\n\t     * @param {object} dst destination attributes (original DOM)\n\t     * @param {object} src source attributes (from the directive template)\n\t     */\n\t    function mergeTemplateAttributes(dst, src) {\n\t      var srcAttr = src.$attr,\n\t          dstAttr = dst.$attr,\n\t          $element = dst.$$element;\n\n\t      // reapply the old attributes to the new element\n\t      forEach(dst, function(value, key) {\n\t        if (key.charAt(0) != '$') {\n\t          if (src[key] && src[key] !== value) {\n\t            value += (key === 'style' ? ';' : ' ') + src[key];\n\t          }\n\t          dst.$set(key, value, true, srcAttr[key]);\n\t        }\n\t      });\n\n\t      // copy the new attributes on the old attrs object\n\t      forEach(src, function(value, key) {\n\t        if (key == 'class') {\n\t          safeAddClass($element, value);\n\t          dst['class'] = (dst['class'] ? dst['class'] + ' ' : '') + value;\n\t        } else if (key == 'style') {\n\t          $element.attr('style', $element.attr('style') + ';' + value);\n\t          dst['style'] = (dst['style'] ? dst['style'] + ';' : '') + value;\n\t          // `dst` will never contain hasOwnProperty as DOM parser won't let it.\n\t          // You will get an \"InvalidCharacterError: DOM Exception 5\" error if you\n\t          // have an attribute like \"has-own-property\" or \"data-has-own-property\", etc.\n\t        } else if (key.charAt(0) != '$' && !dst.hasOwnProperty(key)) {\n\t          dst[key] = value;\n\t          dstAttr[key] = srcAttr[key];\n\t        }\n\t      });\n\t    }\n\n\n\t    function compileTemplateUrl(directives, $compileNode, tAttrs,\n\t        $rootElement, childTranscludeFn, preLinkFns, postLinkFns, previousCompileContext) {\n\t      var linkQueue = [],\n\t          afterTemplateNodeLinkFn,\n\t          afterTemplateChildLinkFn,\n\t          beforeTemplateCompileNode = $compileNode[0],\n\t          origAsyncDirective = directives.shift(),\n\t          derivedSyncDirective = inherit(origAsyncDirective, {\n\t            templateUrl: null, transclude: null, replace: null, $$originalDirective: origAsyncDirective\n\t          }),\n\t          templateUrl = (isFunction(origAsyncDirective.templateUrl))\n\t              ? origAsyncDirective.templateUrl($compileNode, tAttrs)\n\t              : origAsyncDirective.templateUrl,\n\t          templateNamespace = origAsyncDirective.templateNamespace;\n\n\t      $compileNode.empty();\n\n\t      $templateRequest(templateUrl)\n\t        .then(function(content) {\n\t          var compileNode, tempTemplateAttrs, $template, childBoundTranscludeFn;\n\n\t          content = denormalizeTemplate(content);\n\n\t          if (origAsyncDirective.replace) {\n\t            if (jqLiteIsTextNode(content)) {\n\t              $template = [];\n\t            } else {\n\t              $template = removeComments(wrapTemplate(templateNamespace, trim(content)));\n\t            }\n\t            compileNode = $template[0];\n\n\t            if ($template.length != 1 || compileNode.nodeType !== NODE_TYPE_ELEMENT) {\n\t              throw $compileMinErr('tplrt',\n\t                  \"Template for directive '{0}' must have exactly one root element. {1}\",\n\t                  origAsyncDirective.name, templateUrl);\n\t            }\n\n\t            tempTemplateAttrs = {$attr: {}};\n\t            replaceWith($rootElement, $compileNode, compileNode);\n\t            var templateDirectives = collectDirectives(compileNode, [], tempTemplateAttrs);\n\n\t            if (isObject(origAsyncDirective.scope)) {\n\t              // the original directive that caused the template to be loaded async required\n\t              // an isolate scope\n\t              markDirectiveScope(templateDirectives, true);\n\t            }\n\t            directives = templateDirectives.concat(directives);\n\t            mergeTemplateAttributes(tAttrs, tempTemplateAttrs);\n\t          } else {\n\t            compileNode = beforeTemplateCompileNode;\n\t            $compileNode.html(content);\n\t          }\n\n\t          directives.unshift(derivedSyncDirective);\n\n\t          afterTemplateNodeLinkFn = applyDirectivesToNode(directives, compileNode, tAttrs,\n\t              childTranscludeFn, $compileNode, origAsyncDirective, preLinkFns, postLinkFns,\n\t              previousCompileContext);\n\t          forEach($rootElement, function(node, i) {\n\t            if (node == compileNode) {\n\t              $rootElement[i] = $compileNode[0];\n\t            }\n\t          });\n\t          afterTemplateChildLinkFn = compileNodes($compileNode[0].childNodes, childTranscludeFn);\n\n\t          while (linkQueue.length) {\n\t            var scope = linkQueue.shift(),\n\t                beforeTemplateLinkNode = linkQueue.shift(),\n\t                linkRootElement = linkQueue.shift(),\n\t                boundTranscludeFn = linkQueue.shift(),\n\t                linkNode = $compileNode[0];\n\n\t            if (scope.$$destroyed) continue;\n\n\t            if (beforeTemplateLinkNode !== beforeTemplateCompileNode) {\n\t              var oldClasses = beforeTemplateLinkNode.className;\n\n\t              if (!(previousCompileContext.hasElementTranscludeDirective &&\n\t                  origAsyncDirective.replace)) {\n\t                // it was cloned therefore we have to clone as well.\n\t                linkNode = jqLiteClone(compileNode);\n\t              }\n\t              replaceWith(linkRootElement, jqLite(beforeTemplateLinkNode), linkNode);\n\n\t              // Copy in CSS classes from original node\n\t              safeAddClass(jqLite(linkNode), oldClasses);\n\t            }\n\t            if (afterTemplateNodeLinkFn.transcludeOnThisElement) {\n\t              childBoundTranscludeFn = createBoundTranscludeFn(scope, afterTemplateNodeLinkFn.transclude, boundTranscludeFn);\n\t            } else {\n\t              childBoundTranscludeFn = boundTranscludeFn;\n\t            }\n\t            afterTemplateNodeLinkFn(afterTemplateChildLinkFn, scope, linkNode, $rootElement,\n\t              childBoundTranscludeFn);\n\t          }\n\t          linkQueue = null;\n\t        });\n\n\t      return function delayedNodeLinkFn(ignoreChildLinkFn, scope, node, rootElement, boundTranscludeFn) {\n\t        var childBoundTranscludeFn = boundTranscludeFn;\n\t        if (scope.$$destroyed) return;\n\t        if (linkQueue) {\n\t          linkQueue.push(scope,\n\t                         node,\n\t                         rootElement,\n\t                         childBoundTranscludeFn);\n\t        } else {\n\t          if (afterTemplateNodeLinkFn.transcludeOnThisElement) {\n\t            childBoundTranscludeFn = createBoundTranscludeFn(scope, afterTemplateNodeLinkFn.transclude, boundTranscludeFn);\n\t          }\n\t          afterTemplateNodeLinkFn(afterTemplateChildLinkFn, scope, node, rootElement, childBoundTranscludeFn);\n\t        }\n\t      };\n\t    }\n\n\n\t    /**\n\t     * Sorting function for bound directives.\n\t     */\n\t    function byPriority(a, b) {\n\t      var diff = b.priority - a.priority;\n\t      if (diff !== 0) return diff;\n\t      if (a.name !== b.name) return (a.name < b.name) ? -1 : 1;\n\t      return a.index - b.index;\n\t    }\n\n\t    function assertNoDuplicate(what, previousDirective, directive, element) {\n\n\t      function wrapModuleNameIfDefined(moduleName) {\n\t        return moduleName ?\n\t          (' (module: ' + moduleName + ')') :\n\t          '';\n\t      }\n\n\t      if (previousDirective) {\n\t        throw $compileMinErr('multidir', 'Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}',\n\t            previousDirective.name, wrapModuleNameIfDefined(previousDirective.$$moduleName),\n\t            directive.name, wrapModuleNameIfDefined(directive.$$moduleName), what, startingTag(element));\n\t      }\n\t    }\n\n\n\t    function addTextInterpolateDirective(directives, text) {\n\t      var interpolateFn = $interpolate(text, true);\n\t      if (interpolateFn) {\n\t        directives.push({\n\t          priority: 0,\n\t          compile: function textInterpolateCompileFn(templateNode) {\n\t            var templateNodeParent = templateNode.parent(),\n\t                hasCompileParent = !!templateNodeParent.length;\n\n\t            // When transcluding a template that has bindings in the root\n\t            // we don't have a parent and thus need to add the class during linking fn.\n\t            if (hasCompileParent) compile.$$addBindingClass(templateNodeParent);\n\n\t            return function textInterpolateLinkFn(scope, node) {\n\t              var parent = node.parent();\n\t              if (!hasCompileParent) compile.$$addBindingClass(parent);\n\t              compile.$$addBindingInfo(parent, interpolateFn.expressions);\n\t              scope.$watch(interpolateFn, function interpolateFnWatchAction(value) {\n\t                node[0].nodeValue = value;\n\t              });\n\t            };\n\t          }\n\t        });\n\t      }\n\t    }\n\n\n\t    function wrapTemplate(type, template) {\n\t      type = lowercase(type || 'html');\n\t      switch (type) {\n\t      case 'svg':\n\t      case 'math':\n\t        var wrapper = document.createElement('div');\n\t        wrapper.innerHTML = '<' + type + '>' + template + '</' + type + '>';\n\t        return wrapper.childNodes[0].childNodes;\n\t      default:\n\t        return template;\n\t      }\n\t    }\n\n\n\t    function getTrustedContext(node, attrNormalizedName) {\n\t      if (attrNormalizedName == \"srcdoc\") {\n\t        return $sce.HTML;\n\t      }\n\t      var tag = nodeName_(node);\n\t      // maction[xlink:href] can source SVG.  It's not limited to <maction>.\n\t      if (attrNormalizedName == \"xlinkHref\" ||\n\t          (tag == \"form\" && attrNormalizedName == \"action\") ||\n\t          (tag != \"img\" && (attrNormalizedName == \"src\" ||\n\t                            attrNormalizedName == \"ngSrc\"))) {\n\t        return $sce.RESOURCE_URL;\n\t      }\n\t    }\n\n\n\t    function addAttrInterpolateDirective(node, directives, value, name, allOrNothing) {\n\t      var trustedContext = getTrustedContext(node, name);\n\t      allOrNothing = ALL_OR_NOTHING_ATTRS[name] || allOrNothing;\n\n\t      var interpolateFn = $interpolate(value, true, trustedContext, allOrNothing);\n\n\t      // no interpolation found -> ignore\n\t      if (!interpolateFn) return;\n\n\n\t      if (name === \"multiple\" && nodeName_(node) === \"select\") {\n\t        throw $compileMinErr(\"selmulti\",\n\t            \"Binding to the 'multiple' attribute is not supported. Element: {0}\",\n\t            startingTag(node));\n\t      }\n\n\t      directives.push({\n\t        priority: 100,\n\t        compile: function() {\n\t            return {\n\t              pre: function attrInterpolatePreLinkFn(scope, element, attr) {\n\t                var $$observers = (attr.$$observers || (attr.$$observers = createMap()));\n\n\t                if (EVENT_HANDLER_ATTR_REGEXP.test(name)) {\n\t                  throw $compileMinErr('nodomevents',\n\t                      \"Interpolations for HTML DOM event attributes are disallowed.  Please use the \" +\n\t                          \"ng- versions (such as ng-click instead of onclick) instead.\");\n\t                }\n\n\t                // If the attribute has changed since last $interpolate()ed\n\t                var newValue = attr[name];\n\t                if (newValue !== value) {\n\t                  // we need to interpolate again since the attribute value has been updated\n\t                  // (e.g. by another directive's compile function)\n\t                  // ensure unset/empty values make interpolateFn falsy\n\t                  interpolateFn = newValue && $interpolate(newValue, true, trustedContext, allOrNothing);\n\t                  value = newValue;\n\t                }\n\n\t                // if attribute was updated so that there is no interpolation going on we don't want to\n\t                // register any observers\n\t                if (!interpolateFn) return;\n\n\t                // initialize attr object so that it's ready in case we need the value for isolate\n\t                // scope initialization, otherwise the value would not be available from isolate\n\t                // directive's linking fn during linking phase\n\t                attr[name] = interpolateFn(scope);\n\n\t                ($$observers[name] || ($$observers[name] = [])).$$inter = true;\n\t                (attr.$$observers && attr.$$observers[name].$$scope || scope).\n\t                  $watch(interpolateFn, function interpolateFnWatchAction(newValue, oldValue) {\n\t                    //special case for class attribute addition + removal\n\t                    //so that class changes can tap into the animation\n\t                    //hooks provided by the $animate service. Be sure to\n\t                    //skip animations when the first digest occurs (when\n\t                    //both the new and the old values are the same) since\n\t                    //the CSS classes are the non-interpolated values\n\t                    if (name === 'class' && newValue != oldValue) {\n\t                      attr.$updateClass(newValue, oldValue);\n\t                    } else {\n\t                      attr.$set(name, newValue);\n\t                    }\n\t                  });\n\t              }\n\t            };\n\t          }\n\t      });\n\t    }\n\n\n\t    /**\n\t     * This is a special jqLite.replaceWith, which can replace items which\n\t     * have no parents, provided that the containing jqLite collection is provided.\n\t     *\n\t     * @param {JqLite=} $rootElement The root of the compile tree. Used so that we can replace nodes\n\t     *                               in the root of the tree.\n\t     * @param {JqLite} elementsToRemove The jqLite element which we are going to replace. We keep\n\t     *                                  the shell, but replace its DOM node reference.\n\t     * @param {Node} newNode The new DOM node.\n\t     */\n\t    function replaceWith($rootElement, elementsToRemove, newNode) {\n\t      var firstElementToRemove = elementsToRemove[0],\n\t          removeCount = elementsToRemove.length,\n\t          parent = firstElementToRemove.parentNode,\n\t          i, ii;\n\n\t      if ($rootElement) {\n\t        for (i = 0, ii = $rootElement.length; i < ii; i++) {\n\t          if ($rootElement[i] == firstElementToRemove) {\n\t            $rootElement[i++] = newNode;\n\t            for (var j = i, j2 = j + removeCount - 1,\n\t                     jj = $rootElement.length;\n\t                 j < jj; j++, j2++) {\n\t              if (j2 < jj) {\n\t                $rootElement[j] = $rootElement[j2];\n\t              } else {\n\t                delete $rootElement[j];\n\t              }\n\t            }\n\t            $rootElement.length -= removeCount - 1;\n\n\t            // If the replaced element is also the jQuery .context then replace it\n\t            // .context is a deprecated jQuery api, so we should set it only when jQuery set it\n\t            // http://api.jquery.com/context/\n\t            if ($rootElement.context === firstElementToRemove) {\n\t              $rootElement.context = newNode;\n\t            }\n\t            break;\n\t          }\n\t        }\n\t      }\n\n\t      if (parent) {\n\t        parent.replaceChild(newNode, firstElementToRemove);\n\t      }\n\n\t      // TODO(perf): what's this document fragment for? is it needed? can we at least reuse it?\n\t      var fragment = document.createDocumentFragment();\n\t      fragment.appendChild(firstElementToRemove);\n\n\t      if (jqLite.hasData(firstElementToRemove)) {\n\t        // Copy over user data (that includes Angular's $scope etc.). Don't copy private\n\t        // data here because there's no public interface in jQuery to do that and copying over\n\t        // event listeners (which is the main use of private data) wouldn't work anyway.\n\t        jqLite.data(newNode, jqLite.data(firstElementToRemove));\n\n\t        // Remove data of the replaced element. We cannot just call .remove()\n\t        // on the element it since that would deallocate scope that is needed\n\t        // for the new node. Instead, remove the data \"manually\".\n\t        if (!jQuery) {\n\t          delete jqLite.cache[firstElementToRemove[jqLite.expando]];\n\t        } else {\n\t          // jQuery 2.x doesn't expose the data storage. Use jQuery.cleanData to clean up after\n\t          // the replaced element. The cleanData version monkey-patched by Angular would cause\n\t          // the scope to be trashed and we do need the very same scope to work with the new\n\t          // element. However, we cannot just cache the non-patched version and use it here as\n\t          // that would break if another library patches the method after Angular does (one\n\t          // example is jQuery UI). Instead, set a flag indicating scope destroying should be\n\t          // skipped this one time.\n\t          skipDestroyOnNextJQueryCleanData = true;\n\t          jQuery.cleanData([firstElementToRemove]);\n\t        }\n\t      }\n\n\t      for (var k = 1, kk = elementsToRemove.length; k < kk; k++) {\n\t        var element = elementsToRemove[k];\n\t        jqLite(element).remove(); // must do this way to clean up expando\n\t        fragment.appendChild(element);\n\t        delete elementsToRemove[k];\n\t      }\n\n\t      elementsToRemove[0] = newNode;\n\t      elementsToRemove.length = 1;\n\t    }\n\n\n\t    function cloneAndAnnotateFn(fn, annotation) {\n\t      return extend(function() { return fn.apply(null, arguments); }, fn, annotation);\n\t    }\n\n\n\t    function invokeLinkFn(linkFn, scope, $element, attrs, controllers, transcludeFn) {\n\t      try {\n\t        linkFn(scope, $element, attrs, controllers, transcludeFn);\n\t      } catch (e) {\n\t        $exceptionHandler(e, startingTag($element));\n\t      }\n\t    }\n\n\n\t    // Set up $watches for isolate scope and controller bindings. This process\n\t    // only occurs for isolate scopes and new scopes with controllerAs.\n\t    function initializeDirectiveBindings(scope, attrs, destination, bindings, directive) {\n\t      var removeWatchCollection = [];\n\t      forEach(bindings, function(definition, scopeName) {\n\t        var attrName = definition.attrName,\n\t        optional = definition.optional,\n\t        mode = definition.mode, // @, =, or &\n\t        lastValue,\n\t        parentGet, parentSet, compare;\n\n\t        switch (mode) {\n\n\t          case '@':\n\t            if (!optional && !hasOwnProperty.call(attrs, attrName)) {\n\t              destination[scopeName] = attrs[attrName] = void 0;\n\t            }\n\t            attrs.$observe(attrName, function(value) {\n\t              if (isString(value)) {\n\t                destination[scopeName] = value;\n\t              }\n\t            });\n\t            attrs.$$observers[attrName].$$scope = scope;\n\t            if (isString(attrs[attrName])) {\n\t              // If the attribute has been provided then we trigger an interpolation to ensure\n\t              // the value is there for use in the link fn\n\t              destination[scopeName] = $interpolate(attrs[attrName])(scope);\n\t            }\n\t            break;\n\n\t          case '=':\n\t            if (!hasOwnProperty.call(attrs, attrName)) {\n\t              if (optional) break;\n\t              attrs[attrName] = void 0;\n\t            }\n\t            if (optional && !attrs[attrName]) break;\n\n\t            parentGet = $parse(attrs[attrName]);\n\t            if (parentGet.literal) {\n\t              compare = equals;\n\t            } else {\n\t              compare = function(a, b) { return a === b || (a !== a && b !== b); };\n\t            }\n\t            parentSet = parentGet.assign || function() {\n\t              // reset the change, or we will throw this exception on every $digest\n\t              lastValue = destination[scopeName] = parentGet(scope);\n\t              throw $compileMinErr('nonassign',\n\t                  \"Expression '{0}' used with directive '{1}' is non-assignable!\",\n\t                  attrs[attrName], directive.name);\n\t            };\n\t            lastValue = destination[scopeName] = parentGet(scope);\n\t            var parentValueWatch = function parentValueWatch(parentValue) {\n\t              if (!compare(parentValue, destination[scopeName])) {\n\t                // we are out of sync and need to copy\n\t                if (!compare(parentValue, lastValue)) {\n\t                  // parent changed and it has precedence\n\t                  destination[scopeName] = parentValue;\n\t                } else {\n\t                  // if the parent can be assigned then do so\n\t                  parentSet(scope, parentValue = destination[scopeName]);\n\t                }\n\t              }\n\t              return lastValue = parentValue;\n\t            };\n\t            parentValueWatch.$stateful = true;\n\t            var removeWatch;\n\t            if (definition.collection) {\n\t              removeWatch = scope.$watchCollection(attrs[attrName], parentValueWatch);\n\t            } else {\n\t              removeWatch = scope.$watch($parse(attrs[attrName], parentValueWatch), null, parentGet.literal);\n\t            }\n\t            removeWatchCollection.push(removeWatch);\n\t            break;\n\n\t          case '&':\n\t            // Don't assign Object.prototype method to scope\n\t            parentGet = attrs.hasOwnProperty(attrName) ? $parse(attrs[attrName]) : noop;\n\n\t            // Don't assign noop to destination if expression is not valid\n\t            if (parentGet === noop && optional) break;\n\n\t            destination[scopeName] = function(locals) {\n\t              return parentGet(scope, locals);\n\t            };\n\t            break;\n\t        }\n\t      });\n\n\t      return removeWatchCollection.length && function removeWatches() {\n\t        for (var i = 0, ii = removeWatchCollection.length; i < ii; ++i) {\n\t          removeWatchCollection[i]();\n\t        }\n\t      };\n\t    }\n\t  }];\n\t}\n\n\tvar PREFIX_REGEXP = /^((?:x|data)[\\:\\-_])/i;\n\t/**\n\t * Converts all accepted directives format into proper directive name.\n\t * @param name Name to normalize\n\t */\n\tfunction directiveNormalize(name) {\n\t  return camelCase(name.replace(PREFIX_REGEXP, ''));\n\t}\n\n\t/**\n\t * @ngdoc type\n\t * @name $compile.directive.Attributes\n\t *\n\t * @description\n\t * A shared object between directive compile / linking functions which contains normalized DOM\n\t * element attributes. The values reflect current binding state `{{ }}`. The normalization is\n\t * needed since all of these are treated as equivalent in Angular:\n\t *\n\t * ```\n\t *    <span ng:bind=\"a\" ng-bind=\"a\" data-ng-bind=\"a\" x-ng-bind=\"a\">\n\t * ```\n\t */\n\n\t/**\n\t * @ngdoc property\n\t * @name $compile.directive.Attributes#$attr\n\t *\n\t * @description\n\t * A map of DOM element attribute names to the normalized name. This is\n\t * needed to do reverse lookup from normalized name back to actual name.\n\t */\n\n\n\t/**\n\t * @ngdoc method\n\t * @name $compile.directive.Attributes#$set\n\t * @kind function\n\t *\n\t * @description\n\t * Set DOM element attribute value.\n\t *\n\t *\n\t * @param {string} name Normalized element attribute name of the property to modify. The name is\n\t *          reverse-translated using the {@link ng.$compile.directive.Attributes#$attr $attr}\n\t *          property to the original name.\n\t * @param {string} value Value to set the attribute to. The value can be an interpolated string.\n\t */\n\n\n\n\t/**\n\t * Closure compiler type information\n\t */\n\n\tfunction nodesetLinkingFn(\n\t  /* angular.Scope */ scope,\n\t  /* NodeList */ nodeList,\n\t  /* Element */ rootElement,\n\t  /* function(Function) */ boundTranscludeFn\n\t) {}\n\n\tfunction directiveLinkingFn(\n\t  /* nodesetLinkingFn */ nodesetLinkingFn,\n\t  /* angular.Scope */ scope,\n\t  /* Node */ node,\n\t  /* Element */ rootElement,\n\t  /* function(Function) */ boundTranscludeFn\n\t) {}\n\n\tfunction tokenDifference(str1, str2) {\n\t  var values = '',\n\t      tokens1 = str1.split(/\\s+/),\n\t      tokens2 = str2.split(/\\s+/);\n\n\t  outer:\n\t  for (var i = 0; i < tokens1.length; i++) {\n\t    var token = tokens1[i];\n\t    for (var j = 0; j < tokens2.length; j++) {\n\t      if (token == tokens2[j]) continue outer;\n\t    }\n\t    values += (values.length > 0 ? ' ' : '') + token;\n\t  }\n\t  return values;\n\t}\n\n\tfunction removeComments(jqNodes) {\n\t  jqNodes = jqLite(jqNodes);\n\t  var i = jqNodes.length;\n\n\t  if (i <= 1) {\n\t    return jqNodes;\n\t  }\n\n\t  while (i--) {\n\t    var node = jqNodes[i];\n\t    if (node.nodeType === NODE_TYPE_COMMENT) {\n\t      splice.call(jqNodes, i, 1);\n\t    }\n\t  }\n\t  return jqNodes;\n\t}\n\n\tvar $controllerMinErr = minErr('$controller');\n\n\n\tvar CNTRL_REG = /^(\\S+)(\\s+as\\s+(\\w+))?$/;\n\tfunction identifierForController(controller, ident) {\n\t  if (ident && isString(ident)) return ident;\n\t  if (isString(controller)) {\n\t    var match = CNTRL_REG.exec(controller);\n\t    if (match) return match[3];\n\t  }\n\t}\n\n\n\t/**\n\t * @ngdoc provider\n\t * @name $controllerProvider\n\t * @description\n\t * The {@link ng.$controller $controller service} is used by Angular to create new\n\t * controllers.\n\t *\n\t * This provider allows controller registration via the\n\t * {@link ng.$controllerProvider#register register} method.\n\t */\n\tfunction $ControllerProvider() {\n\t  var controllers = {},\n\t      globals = false;\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $controllerProvider#register\n\t   * @param {string|Object} name Controller name, or an object map of controllers where the keys are\n\t   *    the names and the values are the constructors.\n\t   * @param {Function|Array} constructor Controller constructor fn (optionally decorated with DI\n\t   *    annotations in the array notation).\n\t   */\n\t  this.register = function(name, constructor) {\n\t    assertNotHasOwnProperty(name, 'controller');\n\t    if (isObject(name)) {\n\t      extend(controllers, name);\n\t    } else {\n\t      controllers[name] = constructor;\n\t    }\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $controllerProvider#allowGlobals\n\t   * @description If called, allows `$controller` to find controller constructors on `window`\n\t   */\n\t  this.allowGlobals = function() {\n\t    globals = true;\n\t  };\n\n\n\t  this.$get = ['$injector', '$window', function($injector, $window) {\n\n\t    /**\n\t     * @ngdoc service\n\t     * @name $controller\n\t     * @requires $injector\n\t     *\n\t     * @param {Function|string} constructor If called with a function then it's considered to be the\n\t     *    controller constructor function. Otherwise it's considered to be a string which is used\n\t     *    to retrieve the controller constructor using the following steps:\n\t     *\n\t     *    * check if a controller with given name is registered via `$controllerProvider`\n\t     *    * check if evaluating the string on the current scope returns a constructor\n\t     *    * if $controllerProvider#allowGlobals, check `window[constructor]` on the global\n\t     *      `window` object (not recommended)\n\t     *\n\t     *    The string can use the `controller as property` syntax, where the controller instance is published\n\t     *    as the specified property on the `scope`; the `scope` must be injected into `locals` param for this\n\t     *    to work correctly.\n\t     *\n\t     * @param {Object} locals Injection locals for Controller.\n\t     * @return {Object} Instance of given controller.\n\t     *\n\t     * @description\n\t     * `$controller` service is responsible for instantiating controllers.\n\t     *\n\t     * It's just a simple call to {@link auto.$injector $injector}, but extracted into\n\t     * a service, so that one can override this service with [BC version](https://gist.github.com/1649788).\n\t     */\n\t    return function(expression, locals, later, ident) {\n\t      // PRIVATE API:\n\t      //   param `later` --- indicates that the controller's constructor is invoked at a later time.\n\t      //                     If true, $controller will allocate the object with the correct\n\t      //                     prototype chain, but will not invoke the controller until a returned\n\t      //                     callback is invoked.\n\t      //   param `ident` --- An optional label which overrides the label parsed from the controller\n\t      //                     expression, if any.\n\t      var instance, match, constructor, identifier;\n\t      later = later === true;\n\t      if (ident && isString(ident)) {\n\t        identifier = ident;\n\t      }\n\n\t      if (isString(expression)) {\n\t        match = expression.match(CNTRL_REG);\n\t        if (!match) {\n\t          throw $controllerMinErr('ctrlfmt',\n\t            \"Badly formed controller string '{0}'. \" +\n\t            \"Must match `__name__ as __id__` or `__name__`.\", expression);\n\t        }\n\t        constructor = match[1],\n\t        identifier = identifier || match[3];\n\t        expression = controllers.hasOwnProperty(constructor)\n\t            ? controllers[constructor]\n\t            : getter(locals.$scope, constructor, true) ||\n\t                (globals ? getter($window, constructor, true) : undefined);\n\n\t        assertArgFn(expression, constructor, true);\n\t      }\n\n\t      if (later) {\n\t        // Instantiate controller later:\n\t        // This machinery is used to create an instance of the object before calling the\n\t        // controller's constructor itself.\n\t        //\n\t        // This allows properties to be added to the controller before the constructor is\n\t        // invoked. Primarily, this is used for isolate scope bindings in $compile.\n\t        //\n\t        // This feature is not intended for use by applications, and is thus not documented\n\t        // publicly.\n\t        // Object creation: http://jsperf.com/create-constructor/2\n\t        var controllerPrototype = (isArray(expression) ?\n\t          expression[expression.length - 1] : expression).prototype;\n\t        instance = Object.create(controllerPrototype || null);\n\n\t        if (identifier) {\n\t          addIdentifier(locals, identifier, instance, constructor || expression.name);\n\t        }\n\n\t        var instantiate;\n\t        return instantiate = extend(function() {\n\t          var result = $injector.invoke(expression, instance, locals, constructor);\n\t          if (result !== instance && (isObject(result) || isFunction(result))) {\n\t            instance = result;\n\t            if (identifier) {\n\t              // If result changed, re-assign controllerAs value to scope.\n\t              addIdentifier(locals, identifier, instance, constructor || expression.name);\n\t            }\n\t          }\n\t          return instance;\n\t        }, {\n\t          instance: instance,\n\t          identifier: identifier\n\t        });\n\t      }\n\n\t      instance = $injector.instantiate(expression, locals, constructor);\n\n\t      if (identifier) {\n\t        addIdentifier(locals, identifier, instance, constructor || expression.name);\n\t      }\n\n\t      return instance;\n\t    };\n\n\t    function addIdentifier(locals, identifier, instance, name) {\n\t      if (!(locals && isObject(locals.$scope))) {\n\t        throw minErr('$controller')('noscp',\n\t          \"Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.\",\n\t          name, identifier);\n\t      }\n\n\t      locals.$scope[identifier] = instance;\n\t    }\n\t  }];\n\t}\n\n\t/**\n\t * @ngdoc service\n\t * @name $document\n\t * @requires $window\n\t *\n\t * @description\n\t * A {@link angular.element jQuery or jqLite} wrapper for the browser's `window.document` object.\n\t *\n\t * @example\n\t   <example module=\"documentExample\">\n\t     <file name=\"index.html\">\n\t       <div ng-controller=\"ExampleController\">\n\t         <p>$document title: <b ng-bind=\"title\"></b></p>\n\t         <p>window.document title: <b ng-bind=\"windowTitle\"></b></p>\n\t       </div>\n\t     </file>\n\t     <file name=\"script.js\">\n\t       angular.module('documentExample', [])\n\t         .controller('ExampleController', ['$scope', '$document', function($scope, $document) {\n\t           $scope.title = $document[0].title;\n\t           $scope.windowTitle = angular.element(window.document)[0].title;\n\t         }]);\n\t     </file>\n\t   </example>\n\t */\n\tfunction $DocumentProvider() {\n\t  this.$get = ['$window', function(window) {\n\t    return jqLite(window.document);\n\t  }];\n\t}\n\n\t/**\n\t * @ngdoc service\n\t * @name $exceptionHandler\n\t * @requires ng.$log\n\t *\n\t * @description\n\t * Any uncaught exception in angular expressions is delegated to this service.\n\t * The default implementation simply delegates to `$log.error` which logs it into\n\t * the browser console.\n\t *\n\t * In unit tests, if `angular-mocks.js` is loaded, this service is overridden by\n\t * {@link ngMock.$exceptionHandler mock $exceptionHandler} which aids in testing.\n\t *\n\t * ## Example:\n\t *\n\t * ```js\n\t *   angular.module('exceptionOverride', []).factory('$exceptionHandler', function() {\n\t *     return function(exception, cause) {\n\t *       exception.message += ' (caused by \"' + cause + '\")';\n\t *       throw exception;\n\t *     };\n\t *   });\n\t * ```\n\t *\n\t * This example will override the normal action of `$exceptionHandler`, to make angular\n\t * exceptions fail hard when they happen, instead of just logging to the console.\n\t *\n\t * <hr />\n\t * Note, that code executed in event-listeners (even those registered using jqLite's `on`/`bind`\n\t * methods) does not delegate exceptions to the {@link ng.$exceptionHandler $exceptionHandler}\n\t * (unless executed during a digest).\n\t *\n\t * If you wish, you can manually delegate exceptions, e.g.\n\t * `try { ... } catch(e) { $exceptionHandler(e); }`\n\t *\n\t * @param {Error} exception Exception associated with the error.\n\t * @param {string=} cause optional information about the context in which\n\t *       the error was thrown.\n\t *\n\t */\n\tfunction $ExceptionHandlerProvider() {\n\t  this.$get = ['$log', function($log) {\n\t    return function(exception, cause) {\n\t      $log.error.apply($log, arguments);\n\t    };\n\t  }];\n\t}\n\n\tvar $$ForceReflowProvider = function() {\n\t  this.$get = ['$document', function($document) {\n\t    return function(domNode) {\n\t      //the line below will force the browser to perform a repaint so\n\t      //that all the animated elements within the animation frame will\n\t      //be properly updated and drawn on screen. This is required to\n\t      //ensure that the preparation animation is properly flushed so that\n\t      //the active state picks up from there. DO NOT REMOVE THIS LINE.\n\t      //DO NOT OPTIMIZE THIS LINE. THE MINIFIER WILL REMOVE IT OTHERWISE WHICH\n\t      //WILL RESULT IN AN UNPREDICTABLE BUG THAT IS VERY HARD TO TRACK DOWN AND\n\t      //WILL TAKE YEARS AWAY FROM YOUR LIFE.\n\t      if (domNode) {\n\t        if (!domNode.nodeType && domNode instanceof jqLite) {\n\t          domNode = domNode[0];\n\t        }\n\t      } else {\n\t        domNode = $document[0].body;\n\t      }\n\t      return domNode.offsetWidth + 1;\n\t    };\n\t  }];\n\t};\n\n\tvar APPLICATION_JSON = 'application/json';\n\tvar CONTENT_TYPE_APPLICATION_JSON = {'Content-Type': APPLICATION_JSON + ';charset=utf-8'};\n\tvar JSON_START = /^\\[|^\\{(?!\\{)/;\n\tvar JSON_ENDS = {\n\t  '[': /]$/,\n\t  '{': /}$/\n\t};\n\tvar JSON_PROTECTION_PREFIX = /^\\)\\]\\}',?\\n/;\n\tvar $httpMinErr = minErr('$http');\n\tvar $httpMinErrLegacyFn = function(method) {\n\t  return function() {\n\t    throw $httpMinErr('legacy', 'The method `{0}` on the promise returned from `$http` has been disabled.', method);\n\t  };\n\t};\n\n\tfunction serializeValue(v) {\n\t  if (isObject(v)) {\n\t    return isDate(v) ? v.toISOString() : toJson(v);\n\t  }\n\t  return v;\n\t}\n\n\n\tfunction $HttpParamSerializerProvider() {\n\t  /**\n\t   * @ngdoc service\n\t   * @name $httpParamSerializer\n\t   * @description\n\t   *\n\t   * Default {@link $http `$http`} params serializer that converts objects to strings\n\t   * according to the following rules:\n\t   *\n\t   * * `{'foo': 'bar'}` results in `foo=bar`\n\t   * * `{'foo': Date.now()}` results in `foo=2015-04-01T09%3A50%3A49.262Z` (`toISOString()` and encoded representation of a Date object)\n\t   * * `{'foo': ['bar', 'baz']}` results in `foo=bar&foo=baz` (repeated key for each array element)\n\t   * * `{'foo': {'bar':'baz'}}` results in `foo=%7B%22bar%22%3A%22baz%22%7D\"` (stringified and encoded representation of an object)\n\t   *\n\t   * Note that serializer will sort the request parameters alphabetically.\n\t   * */\n\n\t  this.$get = function() {\n\t    return function ngParamSerializer(params) {\n\t      if (!params) return '';\n\t      var parts = [];\n\t      forEachSorted(params, function(value, key) {\n\t        if (value === null || isUndefined(value)) return;\n\t        if (isArray(value)) {\n\t          forEach(value, function(v, k) {\n\t            parts.push(encodeUriQuery(key)  + '=' + encodeUriQuery(serializeValue(v)));\n\t          });\n\t        } else {\n\t          parts.push(encodeUriQuery(key) + '=' + encodeUriQuery(serializeValue(value)));\n\t        }\n\t      });\n\n\t      return parts.join('&');\n\t    };\n\t  };\n\t}\n\n\tfunction $HttpParamSerializerJQLikeProvider() {\n\t  /**\n\t   * @ngdoc service\n\t   * @name $httpParamSerializerJQLike\n\t   * @description\n\t   *\n\t   * Alternative {@link $http `$http`} params serializer that follows\n\t   * jQuery's [`param()`](http://api.jquery.com/jquery.param/) method logic.\n\t   * The serializer will also sort the params alphabetically.\n\t   *\n\t   * To use it for serializing `$http` request parameters, set it as the `paramSerializer` property:\n\t   *\n\t   * ```js\n\t   * $http({\n\t   *   url: myUrl,\n\t   *   method: 'GET',\n\t   *   params: myParams,\n\t   *   paramSerializer: '$httpParamSerializerJQLike'\n\t   * });\n\t   * ```\n\t   *\n\t   * It is also possible to set it as the default `paramSerializer` in the\n\t   * {@link $httpProvider#defaults `$httpProvider`}.\n\t   *\n\t   * Additionally, you can inject the serializer and use it explicitly, for example to serialize\n\t   * form data for submission:\n\t   *\n\t   * ```js\n\t   * .controller(function($http, $httpParamSerializerJQLike) {\n\t   *   //...\n\t   *\n\t   *   $http({\n\t   *     url: myUrl,\n\t   *     method: 'POST',\n\t   *     data: $httpParamSerializerJQLike(myData),\n\t   *     headers: {\n\t   *       'Content-Type': 'application/x-www-form-urlencoded'\n\t   *     }\n\t   *   });\n\t   *\n\t   * });\n\t   * ```\n\t   *\n\t   * */\n\t  this.$get = function() {\n\t    return function jQueryLikeParamSerializer(params) {\n\t      if (!params) return '';\n\t      var parts = [];\n\t      serialize(params, '', true);\n\t      return parts.join('&');\n\n\t      function serialize(toSerialize, prefix, topLevel) {\n\t        if (toSerialize === null || isUndefined(toSerialize)) return;\n\t        if (isArray(toSerialize)) {\n\t          forEach(toSerialize, function(value, index) {\n\t            serialize(value, prefix + '[' + (isObject(value) ? index : '') + ']');\n\t          });\n\t        } else if (isObject(toSerialize) && !isDate(toSerialize)) {\n\t          forEachSorted(toSerialize, function(value, key) {\n\t            serialize(value, prefix +\n\t                (topLevel ? '' : '[') +\n\t                key +\n\t                (topLevel ? '' : ']'));\n\t          });\n\t        } else {\n\t          parts.push(encodeUriQuery(prefix) + '=' + encodeUriQuery(serializeValue(toSerialize)));\n\t        }\n\t      }\n\t    };\n\t  };\n\t}\n\n\tfunction defaultHttpResponseTransform(data, headers) {\n\t  if (isString(data)) {\n\t    // Strip json vulnerability protection prefix and trim whitespace\n\t    var tempData = data.replace(JSON_PROTECTION_PREFIX, '').trim();\n\n\t    if (tempData) {\n\t      var contentType = headers('Content-Type');\n\t      if ((contentType && (contentType.indexOf(APPLICATION_JSON) === 0)) || isJsonLike(tempData)) {\n\t        data = fromJson(tempData);\n\t      }\n\t    }\n\t  }\n\n\t  return data;\n\t}\n\n\tfunction isJsonLike(str) {\n\t    var jsonStart = str.match(JSON_START);\n\t    return jsonStart && JSON_ENDS[jsonStart[0]].test(str);\n\t}\n\n\t/**\n\t * Parse headers into key value object\n\t *\n\t * @param {string} headers Raw headers as a string\n\t * @returns {Object} Parsed headers as key value object\n\t */\n\tfunction parseHeaders(headers) {\n\t  var parsed = createMap(), i;\n\n\t  function fillInParsed(key, val) {\n\t    if (key) {\n\t      parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n\t    }\n\t  }\n\n\t  if (isString(headers)) {\n\t    forEach(headers.split('\\n'), function(line) {\n\t      i = line.indexOf(':');\n\t      fillInParsed(lowercase(trim(line.substr(0, i))), trim(line.substr(i + 1)));\n\t    });\n\t  } else if (isObject(headers)) {\n\t    forEach(headers, function(headerVal, headerKey) {\n\t      fillInParsed(lowercase(headerKey), trim(headerVal));\n\t    });\n\t  }\n\n\t  return parsed;\n\t}\n\n\n\t/**\n\t * Returns a function that provides access to parsed headers.\n\t *\n\t * Headers are lazy parsed when first requested.\n\t * @see parseHeaders\n\t *\n\t * @param {(string|Object)} headers Headers to provide access to.\n\t * @returns {function(string=)} Returns a getter function which if called with:\n\t *\n\t *   - if called with single an argument returns a single header value or null\n\t *   - if called with no arguments returns an object containing all headers.\n\t */\n\tfunction headersGetter(headers) {\n\t  var headersObj;\n\n\t  return function(name) {\n\t    if (!headersObj) headersObj =  parseHeaders(headers);\n\n\t    if (name) {\n\t      var value = headersObj[lowercase(name)];\n\t      if (value === void 0) {\n\t        value = null;\n\t      }\n\t      return value;\n\t    }\n\n\t    return headersObj;\n\t  };\n\t}\n\n\n\t/**\n\t * Chain all given functions\n\t *\n\t * This function is used for both request and response transforming\n\t *\n\t * @param {*} data Data to transform.\n\t * @param {function(string=)} headers HTTP headers getter fn.\n\t * @param {number} status HTTP status code of the response.\n\t * @param {(Function|Array.<Function>)} fns Function or an array of functions.\n\t * @returns {*} Transformed data.\n\t */\n\tfunction transformData(data, headers, status, fns) {\n\t  if (isFunction(fns)) {\n\t    return fns(data, headers, status);\n\t  }\n\n\t  forEach(fns, function(fn) {\n\t    data = fn(data, headers, status);\n\t  });\n\n\t  return data;\n\t}\n\n\n\tfunction isSuccess(status) {\n\t  return 200 <= status && status < 300;\n\t}\n\n\n\t/**\n\t * @ngdoc provider\n\t * @name $httpProvider\n\t * @description\n\t * Use `$httpProvider` to change the default behavior of the {@link ng.$http $http} service.\n\t * */\n\tfunction $HttpProvider() {\n\t  /**\n\t   * @ngdoc property\n\t   * @name $httpProvider#defaults\n\t   * @description\n\t   *\n\t   * Object containing default values for all {@link ng.$http $http} requests.\n\t   *\n\t   * - **`defaults.cache`** - {Object} - an object built with {@link ng.$cacheFactory `$cacheFactory`}\n\t   * that will provide the cache for all requests who set their `cache` property to `true`.\n\t   * If you set the `defaults.cache = false` then only requests that specify their own custom\n\t   * cache object will be cached. See {@link $http#caching $http Caching} for more information.\n\t   *\n\t   * - **`defaults.xsrfCookieName`** - {string} - Name of cookie containing the XSRF token.\n\t   * Defaults value is `'XSRF-TOKEN'`.\n\t   *\n\t   * - **`defaults.xsrfHeaderName`** - {string} - Name of HTTP header to populate with the\n\t   * XSRF token. Defaults value is `'X-XSRF-TOKEN'`.\n\t   *\n\t   * - **`defaults.headers`** - {Object} - Default headers for all $http requests.\n\t   * Refer to {@link ng.$http#setting-http-headers $http} for documentation on\n\t   * setting default headers.\n\t   *     - **`defaults.headers.common`**\n\t   *     - **`defaults.headers.post`**\n\t   *     - **`defaults.headers.put`**\n\t   *     - **`defaults.headers.patch`**\n\t   *\n\t   *\n\t   * - **`defaults.paramSerializer`** - `{string|function(Object<string,string>):string}` - A function\n\t   *  used to the prepare string representation of request parameters (specified as an object).\n\t   *  If specified as string, it is interpreted as a function registered with the {@link auto.$injector $injector}.\n\t   *  Defaults to {@link ng.$httpParamSerializer $httpParamSerializer}.\n\t   *\n\t   **/\n\t  var defaults = this.defaults = {\n\t    // transform incoming response data\n\t    transformResponse: [defaultHttpResponseTransform],\n\n\t    // transform outgoing request data\n\t    transformRequest: [function(d) {\n\t      return isObject(d) && !isFile(d) && !isBlob(d) && !isFormData(d) ? toJson(d) : d;\n\t    }],\n\n\t    // default headers\n\t    headers: {\n\t      common: {\n\t        'Accept': 'application/json, text/plain, */*'\n\t      },\n\t      post:   shallowCopy(CONTENT_TYPE_APPLICATION_JSON),\n\t      put:    shallowCopy(CONTENT_TYPE_APPLICATION_JSON),\n\t      patch:  shallowCopy(CONTENT_TYPE_APPLICATION_JSON)\n\t    },\n\n\t    xsrfCookieName: 'XSRF-TOKEN',\n\t    xsrfHeaderName: 'X-XSRF-TOKEN',\n\n\t    paramSerializer: '$httpParamSerializer'\n\t  };\n\n\t  var useApplyAsync = false;\n\t  /**\n\t   * @ngdoc method\n\t   * @name $httpProvider#useApplyAsync\n\t   * @description\n\t   *\n\t   * Configure $http service to combine processing of multiple http responses received at around\n\t   * the same time via {@link ng.$rootScope.Scope#$applyAsync $rootScope.$applyAsync}. This can result in\n\t   * significant performance improvement for bigger applications that make many HTTP requests\n\t   * concurrently (common during application bootstrap).\n\t   *\n\t   * Defaults to false. If no value is specified, returns the current configured value.\n\t   *\n\t   * @param {boolean=} value If true, when requests are loaded, they will schedule a deferred\n\t   *    \"apply\" on the next tick, giving time for subsequent requests in a roughly ~10ms window\n\t   *    to load and share the same digest cycle.\n\t   *\n\t   * @returns {boolean|Object} If a value is specified, returns the $httpProvider for chaining.\n\t   *    otherwise, returns the current configured value.\n\t   **/\n\t  this.useApplyAsync = function(value) {\n\t    if (isDefined(value)) {\n\t      useApplyAsync = !!value;\n\t      return this;\n\t    }\n\t    return useApplyAsync;\n\t  };\n\n\t  var useLegacyPromise = true;\n\t  /**\n\t   * @ngdoc method\n\t   * @name $httpProvider#useLegacyPromiseExtensions\n\t   * @description\n\t   *\n\t   * Configure `$http` service to return promises without the shorthand methods `success` and `error`.\n\t   * This should be used to make sure that applications work without these methods.\n\t   *\n\t   * Defaults to true. If no value is specified, returns the current configured value.\n\t   *\n\t   * @param {boolean=} value If true, `$http` will return a promise with the deprecated legacy `success` and `error` methods.\n\t   *\n\t   * @returns {boolean|Object} If a value is specified, returns the $httpProvider for chaining.\n\t   *    otherwise, returns the current configured value.\n\t   **/\n\t  this.useLegacyPromiseExtensions = function(value) {\n\t    if (isDefined(value)) {\n\t      useLegacyPromise = !!value;\n\t      return this;\n\t    }\n\t    return useLegacyPromise;\n\t  };\n\n\t  /**\n\t   * @ngdoc property\n\t   * @name $httpProvider#interceptors\n\t   * @description\n\t   *\n\t   * Array containing service factories for all synchronous or asynchronous {@link ng.$http $http}\n\t   * pre-processing of request or postprocessing of responses.\n\t   *\n\t   * These service factories are ordered by request, i.e. they are applied in the same order as the\n\t   * array, on request, but reverse order, on response.\n\t   *\n\t   * {@link ng.$http#interceptors Interceptors detailed info}\n\t   **/\n\t  var interceptorFactories = this.interceptors = [];\n\n\t  this.$get = ['$httpBackend', '$$cookieReader', '$cacheFactory', '$rootScope', '$q', '$injector',\n\t      function($httpBackend, $$cookieReader, $cacheFactory, $rootScope, $q, $injector) {\n\n\t    var defaultCache = $cacheFactory('$http');\n\n\t    /**\n\t     * Make sure that default param serializer is exposed as a function\n\t     */\n\t    defaults.paramSerializer = isString(defaults.paramSerializer) ?\n\t      $injector.get(defaults.paramSerializer) : defaults.paramSerializer;\n\n\t    /**\n\t     * Interceptors stored in reverse order. Inner interceptors before outer interceptors.\n\t     * The reversal is needed so that we can build up the interception chain around the\n\t     * server request.\n\t     */\n\t    var reversedInterceptors = [];\n\n\t    forEach(interceptorFactories, function(interceptorFactory) {\n\t      reversedInterceptors.unshift(isString(interceptorFactory)\n\t          ? $injector.get(interceptorFactory) : $injector.invoke(interceptorFactory));\n\t    });\n\n\t    /**\n\t     * @ngdoc service\n\t     * @kind function\n\t     * @name $http\n\t     * @requires ng.$httpBackend\n\t     * @requires $cacheFactory\n\t     * @requires $rootScope\n\t     * @requires $q\n\t     * @requires $injector\n\t     *\n\t     * @description\n\t     * The `$http` service is a core Angular service that facilitates communication with the remote\n\t     * HTTP servers via the browser's [XMLHttpRequest](https://developer.mozilla.org/en/xmlhttprequest)\n\t     * object or via [JSONP](http://en.wikipedia.org/wiki/JSONP).\n\t     *\n\t     * For unit testing applications that use `$http` service, see\n\t     * {@link ngMock.$httpBackend $httpBackend mock}.\n\t     *\n\t     * For a higher level of abstraction, please check out the {@link ngResource.$resource\n\t     * $resource} service.\n\t     *\n\t     * The $http API is based on the {@link ng.$q deferred/promise APIs} exposed by\n\t     * the $q service. While for simple usage patterns this doesn't matter much, for advanced usage\n\t     * it is important to familiarize yourself with these APIs and the guarantees they provide.\n\t     *\n\t     *\n\t     * ## General usage\n\t     * The `$http` service is a function which takes a single argument — a {@link $http#usage configuration object} —\n\t     * that is used to generate an HTTP request and returns  a {@link ng.$q promise}.\n\t     *\n\t     * ```js\n\t     *   // Simple GET request example:\n\t     *   $http({\n\t     *     method: 'GET',\n\t     *     url: '/someUrl'\n\t     *   }).then(function successCallback(response) {\n\t     *       // this callback will be called asynchronously\n\t     *       // when the response is available\n\t     *     }, function errorCallback(response) {\n\t     *       // called asynchronously if an error occurs\n\t     *       // or server returns response with an error status.\n\t     *     });\n\t     * ```\n\t     *\n\t     * The response object has these properties:\n\t     *\n\t     *   - **data** – `{string|Object}` – The response body transformed with the transform\n\t     *     functions.\n\t     *   - **status** – `{number}` – HTTP status code of the response.\n\t     *   - **headers** – `{function([headerName])}` – Header getter function.\n\t     *   - **config** – `{Object}` – The configuration object that was used to generate the request.\n\t     *   - **statusText** – `{string}` – HTTP status text of the response.\n\t     *\n\t     * A response status code between 200 and 299 is considered a success status and\n\t     * will result in the success callback being called. Note that if the response is a redirect,\n\t     * XMLHttpRequest will transparently follow it, meaning that the error callback will not be\n\t     * called for such responses.\n\t     *\n\t     *\n\t     * ## Shortcut methods\n\t     *\n\t     * Shortcut methods are also available. All shortcut methods require passing in the URL, and\n\t     * request data must be passed in for POST/PUT requests. An optional config can be passed as the\n\t     * last argument.\n\t     *\n\t     * ```js\n\t     *   $http.get('/someUrl', config).then(successCallback, errorCallback);\n\t     *   $http.post('/someUrl', data, config).then(successCallback, errorCallback);\n\t     * ```\n\t     *\n\t     * Complete list of shortcut methods:\n\t     *\n\t     * - {@link ng.$http#get $http.get}\n\t     * - {@link ng.$http#head $http.head}\n\t     * - {@link ng.$http#post $http.post}\n\t     * - {@link ng.$http#put $http.put}\n\t     * - {@link ng.$http#delete $http.delete}\n\t     * - {@link ng.$http#jsonp $http.jsonp}\n\t     * - {@link ng.$http#patch $http.patch}\n\t     *\n\t     *\n\t     * ## Writing Unit Tests that use $http\n\t     * When unit testing (using {@link ngMock ngMock}), it is necessary to call\n\t     * {@link ngMock.$httpBackend#flush $httpBackend.flush()} to flush each pending\n\t     * request using trained responses.\n\t     *\n\t     * ```\n\t     * $httpBackend.expectGET(...);\n\t     * $http.get(...);\n\t     * $httpBackend.flush();\n\t     * ```\n\t     *\n\t     * ## Deprecation Notice\n\t     * <div class=\"alert alert-danger\">\n\t     *   The `$http` legacy promise methods `success` and `error` have been deprecated.\n\t     *   Use the standard `then` method instead.\n\t     *   If {@link $httpProvider#useLegacyPromiseExtensions `$httpProvider.useLegacyPromiseExtensions`} is set to\n\t     *   `false` then these methods will throw {@link $http:legacy `$http/legacy`} error.\n\t     * </div>\n\t     *\n\t     * ## Setting HTTP Headers\n\t     *\n\t     * The $http service will automatically add certain HTTP headers to all requests. These defaults\n\t     * can be fully configured by accessing the `$httpProvider.defaults.headers` configuration\n\t     * object, which currently contains this default configuration:\n\t     *\n\t     * - `$httpProvider.defaults.headers.common` (headers that are common for all requests):\n\t     *   - `Accept: application/json, text/plain, * / *`\n\t     * - `$httpProvider.defaults.headers.post`: (header defaults for POST requests)\n\t     *   - `Content-Type: application/json`\n\t     * - `$httpProvider.defaults.headers.put` (header defaults for PUT requests)\n\t     *   - `Content-Type: application/json`\n\t     *\n\t     * To add or overwrite these defaults, simply add or remove a property from these configuration\n\t     * objects. To add headers for an HTTP method other than POST or PUT, simply add a new object\n\t     * with the lowercased HTTP method name as the key, e.g.\n\t     * `$httpProvider.defaults.headers.get = { 'My-Header' : 'value' }`.\n\t     *\n\t     * The defaults can also be set at runtime via the `$http.defaults` object in the same\n\t     * fashion. For example:\n\t     *\n\t     * ```\n\t     * module.run(function($http) {\n\t     *   $http.defaults.headers.common.Authorization = 'Basic YmVlcDpib29w'\n\t     * });\n\t     * ```\n\t     *\n\t     * In addition, you can supply a `headers` property in the config object passed when\n\t     * calling `$http(config)`, which overrides the defaults without changing them globally.\n\t     *\n\t     * To explicitly remove a header automatically added via $httpProvider.defaults.headers on a per request basis,\n\t     * Use the `headers` property, setting the desired header to `undefined`. For example:\n\t     *\n\t     * ```js\n\t     * var req = {\n\t     *  method: 'POST',\n\t     *  url: 'http://example.com',\n\t     *  headers: {\n\t     *    'Content-Type': undefined\n\t     *  },\n\t     *  data: { test: 'test' }\n\t     * }\n\t     *\n\t     * $http(req).then(function(){...}, function(){...});\n\t     * ```\n\t     *\n\t     * ## Transforming Requests and Responses\n\t     *\n\t     * Both requests and responses can be transformed using transformation functions: `transformRequest`\n\t     * and `transformResponse`. These properties can be a single function that returns\n\t     * the transformed value (`function(data, headersGetter, status)`) or an array of such transformation functions,\n\t     * which allows you to `push` or `unshift` a new transformation function into the transformation chain.\n\t     *\n\t     * ### Default Transformations\n\t     *\n\t     * The `$httpProvider` provider and `$http` service expose `defaults.transformRequest` and\n\t     * `defaults.transformResponse` properties. If a request does not provide its own transformations\n\t     * then these will be applied.\n\t     *\n\t     * You can augment or replace the default transformations by modifying these properties by adding to or\n\t     * replacing the array.\n\t     *\n\t     * Angular provides the following default transformations:\n\t     *\n\t     * Request transformations (`$httpProvider.defaults.transformRequest` and `$http.defaults.transformRequest`):\n\t     *\n\t     * - If the `data` property of the request configuration object contains an object, serialize it\n\t     *   into JSON format.\n\t     *\n\t     * Response transformations (`$httpProvider.defaults.transformResponse` and `$http.defaults.transformResponse`):\n\t     *\n\t     *  - If XSRF prefix is detected, strip it (see Security Considerations section below).\n\t     *  - If JSON response is detected, deserialize it using a JSON parser.\n\t     *\n\t     *\n\t     * ### Overriding the Default Transformations Per Request\n\t     *\n\t     * If you wish override the request/response transformations only for a single request then provide\n\t     * `transformRequest` and/or `transformResponse` properties on the configuration object passed\n\t     * into `$http`.\n\t     *\n\t     * Note that if you provide these properties on the config object the default transformations will be\n\t     * overwritten. If you wish to augment the default transformations then you must include them in your\n\t     * local transformation array.\n\t     *\n\t     * The following code demonstrates adding a new response transformation to be run after the default response\n\t     * transformations have been run.\n\t     *\n\t     * ```js\n\t     * function appendTransform(defaults, transform) {\n\t     *\n\t     *   // We can't guarantee that the default transformation is an array\n\t     *   defaults = angular.isArray(defaults) ? defaults : [defaults];\n\t     *\n\t     *   // Append the new transformation to the defaults\n\t     *   return defaults.concat(transform);\n\t     * }\n\t     *\n\t     * $http({\n\t     *   url: '...',\n\t     *   method: 'GET',\n\t     *   transformResponse: appendTransform($http.defaults.transformResponse, function(value) {\n\t     *     return doTransform(value);\n\t     *   })\n\t     * });\n\t     * ```\n\t     *\n\t     *\n\t     * ## Caching\n\t     *\n\t     * To enable caching, set the request configuration `cache` property to `true` (to use default\n\t     * cache) or to a custom cache object (built with {@link ng.$cacheFactory `$cacheFactory`}).\n\t     * When the cache is enabled, `$http` stores the response from the server in the specified\n\t     * cache. The next time the same request is made, the response is served from the cache without\n\t     * sending a request to the server.\n\t     *\n\t     * Note that even if the response is served from cache, delivery of the data is asynchronous in\n\t     * the same way that real requests are.\n\t     *\n\t     * If there are multiple GET requests for the same URL that should be cached using the same\n\t     * cache, but the cache is not populated yet, only one request to the server will be made and\n\t     * the remaining requests will be fulfilled using the response from the first request.\n\t     *\n\t     * You can change the default cache to a new object (built with\n\t     * {@link ng.$cacheFactory `$cacheFactory`}) by updating the\n\t     * {@link ng.$http#defaults `$http.defaults.cache`} property. All requests who set\n\t     * their `cache` property to `true` will now use this cache object.\n\t     *\n\t     * If you set the default cache to `false` then only requests that specify their own custom\n\t     * cache object will be cached.\n\t     *\n\t     * ## Interceptors\n\t     *\n\t     * Before you start creating interceptors, be sure to understand the\n\t     * {@link ng.$q $q and deferred/promise APIs}.\n\t     *\n\t     * For purposes of global error handling, authentication, or any kind of synchronous or\n\t     * asynchronous pre-processing of request or postprocessing of responses, it is desirable to be\n\t     * able to intercept requests before they are handed to the server and\n\t     * responses before they are handed over to the application code that\n\t     * initiated these requests. The interceptors leverage the {@link ng.$q\n\t     * promise APIs} to fulfill this need for both synchronous and asynchronous pre-processing.\n\t     *\n\t     * The interceptors are service factories that are registered with the `$httpProvider` by\n\t     * adding them to the `$httpProvider.interceptors` array. The factory is called and\n\t     * injected with dependencies (if specified) and returns the interceptor.\n\t     *\n\t     * There are two kinds of interceptors (and two kinds of rejection interceptors):\n\t     *\n\t     *   * `request`: interceptors get called with a http {@link $http#usage config} object. The function is free to\n\t     *     modify the `config` object or create a new one. The function needs to return the `config`\n\t     *     object directly, or a promise containing the `config` or a new `config` object.\n\t     *   * `requestError`: interceptor gets called when a previous interceptor threw an error or\n\t     *     resolved with a rejection.\n\t     *   * `response`: interceptors get called with http `response` object. The function is free to\n\t     *     modify the `response` object or create a new one. The function needs to return the `response`\n\t     *     object directly, or as a promise containing the `response` or a new `response` object.\n\t     *   * `responseError`: interceptor gets called when a previous interceptor threw an error or\n\t     *     resolved with a rejection.\n\t     *\n\t     *\n\t     * ```js\n\t     *   // register the interceptor as a service\n\t     *   $provide.factory('myHttpInterceptor', function($q, dependency1, dependency2) {\n\t     *     return {\n\t     *       // optional method\n\t     *       'request': function(config) {\n\t     *         // do something on success\n\t     *         return config;\n\t     *       },\n\t     *\n\t     *       // optional method\n\t     *      'requestError': function(rejection) {\n\t     *         // do something on error\n\t     *         if (canRecover(rejection)) {\n\t     *           return responseOrNewPromise\n\t     *         }\n\t     *         return $q.reject(rejection);\n\t     *       },\n\t     *\n\t     *\n\t     *\n\t     *       // optional method\n\t     *       'response': function(response) {\n\t     *         // do something on success\n\t     *         return response;\n\t     *       },\n\t     *\n\t     *       // optional method\n\t     *      'responseError': function(rejection) {\n\t     *         // do something on error\n\t     *         if (canRecover(rejection)) {\n\t     *           return responseOrNewPromise\n\t     *         }\n\t     *         return $q.reject(rejection);\n\t     *       }\n\t     *     };\n\t     *   });\n\t     *\n\t     *   $httpProvider.interceptors.push('myHttpInterceptor');\n\t     *\n\t     *\n\t     *   // alternatively, register the interceptor via an anonymous factory\n\t     *   $httpProvider.interceptors.push(function($q, dependency1, dependency2) {\n\t     *     return {\n\t     *      'request': function(config) {\n\t     *          // same as above\n\t     *       },\n\t     *\n\t     *       'response': function(response) {\n\t     *          // same as above\n\t     *       }\n\t     *     };\n\t     *   });\n\t     * ```\n\t     *\n\t     * ## Security Considerations\n\t     *\n\t     * When designing web applications, consider security threats from:\n\t     *\n\t     * - [JSON vulnerability](http://haacked.com/archive/2008/11/20/anatomy-of-a-subtle-json-vulnerability.aspx)\n\t     * - [XSRF](http://en.wikipedia.org/wiki/Cross-site_request_forgery)\n\t     *\n\t     * Both server and the client must cooperate in order to eliminate these threats. Angular comes\n\t     * pre-configured with strategies that address these issues, but for this to work backend server\n\t     * cooperation is required.\n\t     *\n\t     * ### JSON Vulnerability Protection\n\t     *\n\t     * A [JSON vulnerability](http://haacked.com/archive/2008/11/20/anatomy-of-a-subtle-json-vulnerability.aspx)\n\t     * allows third party website to turn your JSON resource URL into\n\t     * [JSONP](http://en.wikipedia.org/wiki/JSONP) request under some conditions. To\n\t     * counter this your server can prefix all JSON requests with following string `\")]}',\\n\"`.\n\t     * Angular will automatically strip the prefix before processing it as JSON.\n\t     *\n\t     * For example if your server needs to return:\n\t     * ```js\n\t     * ['one','two']\n\t     * ```\n\t     *\n\t     * which is vulnerable to attack, your server can return:\n\t     * ```js\n\t     * )]}',\n\t     * ['one','two']\n\t     * ```\n\t     *\n\t     * Angular will strip the prefix, before processing the JSON.\n\t     *\n\t     *\n\t     * ### Cross Site Request Forgery (XSRF) Protection\n\t     *\n\t     * [XSRF](http://en.wikipedia.org/wiki/Cross-site_request_forgery) is a technique by which\n\t     * an unauthorized site can gain your user's private data. Angular provides a mechanism\n\t     * to counter XSRF. When performing XHR requests, the $http service reads a token from a cookie\n\t     * (by default, `XSRF-TOKEN`) and sets it as an HTTP header (`X-XSRF-TOKEN`). Since only\n\t     * JavaScript that runs on your domain could read the cookie, your server can be assured that\n\t     * the XHR came from JavaScript running on your domain. The header will not be set for\n\t     * cross-domain requests.\n\t     *\n\t     * To take advantage of this, your server needs to set a token in a JavaScript readable session\n\t     * cookie called `XSRF-TOKEN` on the first HTTP GET request. On subsequent XHR requests the\n\t     * server can verify that the cookie matches `X-XSRF-TOKEN` HTTP header, and therefore be sure\n\t     * that only JavaScript running on your domain could have sent the request. The token must be\n\t     * unique for each user and must be verifiable by the server (to prevent the JavaScript from\n\t     * making up its own tokens). We recommend that the token is a digest of your site's\n\t     * authentication cookie with a [salt](https://en.wikipedia.org/wiki/Salt_(cryptography&#41;)\n\t     * for added security.\n\t     *\n\t     * The name of the headers can be specified using the xsrfHeaderName and xsrfCookieName\n\t     * properties of either $httpProvider.defaults at config-time, $http.defaults at run-time,\n\t     * or the per-request config object.\n\t     *\n\t     * In order to prevent collisions in environments where multiple Angular apps share the\n\t     * same domain or subdomain, we recommend that each application uses unique cookie name.\n\t     *\n\t     * @param {object} config Object describing the request to be made and how it should be\n\t     *    processed. The object has following properties:\n\t     *\n\t     *    - **method** – `{string}` – HTTP method (e.g. 'GET', 'POST', etc)\n\t     *    - **url** – `{string}` – Absolute or relative URL of the resource that is being requested.\n\t     *    - **params** – `{Object.<string|Object>}` – Map of strings or objects which will be serialized\n\t     *      with the `paramSerializer` and appended as GET parameters.\n\t     *    - **data** – `{string|Object}` – Data to be sent as the request message data.\n\t     *    - **headers** – `{Object}` – Map of strings or functions which return strings representing\n\t     *      HTTP headers to send to the server. If the return value of a function is null, the\n\t     *      header will not be sent. Functions accept a config object as an argument.\n\t     *    - **xsrfHeaderName** – `{string}` – Name of HTTP header to populate with the XSRF token.\n\t     *    - **xsrfCookieName** – `{string}` – Name of cookie containing the XSRF token.\n\t     *    - **transformRequest** –\n\t     *      `{function(data, headersGetter)|Array.<function(data, headersGetter)>}` –\n\t     *      transform function or an array of such functions. The transform function takes the http\n\t     *      request body and headers and returns its transformed (typically serialized) version.\n\t     *      See {@link ng.$http#overriding-the-default-transformations-per-request\n\t     *      Overriding the Default Transformations}\n\t     *    - **transformResponse** –\n\t     *      `{function(data, headersGetter, status)|Array.<function(data, headersGetter, status)>}` –\n\t     *      transform function or an array of such functions. The transform function takes the http\n\t     *      response body, headers and status and returns its transformed (typically deserialized) version.\n\t     *      See {@link ng.$http#overriding-the-default-transformations-per-request\n\t     *      Overriding the Default TransformationjqLiks}\n\t     *    - **paramSerializer** - `{string|function(Object<string,string>):string}` - A function used to\n\t     *      prepare the string representation of request parameters (specified as an object).\n\t     *      If specified as string, it is interpreted as function registered with the\n\t     *      {@link $injector $injector}, which means you can create your own serializer\n\t     *      by registering it as a {@link auto.$provide#service service}.\n\t     *      The default serializer is the {@link $httpParamSerializer $httpParamSerializer};\n\t     *      alternatively, you can use the {@link $httpParamSerializerJQLike $httpParamSerializerJQLike}\n\t     *    - **cache** – `{boolean|Cache}` – If true, a default $http cache will be used to cache the\n\t     *      GET request, otherwise if a cache instance built with\n\t     *      {@link ng.$cacheFactory $cacheFactory}, this cache will be used for\n\t     *      caching.\n\t     *    - **timeout** – `{number|Promise}` – timeout in milliseconds, or {@link ng.$q promise}\n\t     *      that should abort the request when resolved.\n\t     *    - **withCredentials** - `{boolean}` - whether to set the `withCredentials` flag on the\n\t     *      XHR object. See [requests with credentials](https://developer.mozilla.org/docs/Web/HTTP/Access_control_CORS#Requests_with_credentials)\n\t     *      for more information.\n\t     *    - **responseType** - `{string}` - see\n\t     *      [XMLHttpRequest.responseType](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest#xmlhttprequest-responsetype).\n\t     *\n\t     * @returns {HttpPromise} Returns a {@link ng.$q `Promise}` that will be resolved to a response object\n\t     *                        when the request succeeds or fails.\n\t     *\n\t     *\n\t     * @property {Array.<Object>} pendingRequests Array of config objects for currently pending\n\t     *   requests. This is primarily meant to be used for debugging purposes.\n\t     *\n\t     *\n\t     * @example\n\t<example module=\"httpExample\">\n\t<file name=\"index.html\">\n\t  <div ng-controller=\"FetchController\">\n\t    <select ng-model=\"method\" aria-label=\"Request method\">\n\t      <option>GET</option>\n\t      <option>JSONP</option>\n\t    </select>\n\t    <input type=\"text\" ng-model=\"url\" size=\"80\" aria-label=\"URL\" />\n\t    <button id=\"fetchbtn\" ng-click=\"fetch()\">fetch</button><br>\n\t    <button id=\"samplegetbtn\" ng-click=\"updateModel('GET', 'http-hello.html')\">Sample GET</button>\n\t    <button id=\"samplejsonpbtn\"\n\t      ng-click=\"updateModel('JSONP',\n\t                    'https://angularjs.org/greet.php?callback=JSON_CALLBACK&name=Super%20Hero')\">\n\t      Sample JSONP\n\t    </button>\n\t    <button id=\"invalidjsonpbtn\"\n\t      ng-click=\"updateModel('JSONP', 'https://angularjs.org/doesntexist&callback=JSON_CALLBACK')\">\n\t        Invalid JSONP\n\t      </button>\n\t    <pre>http status code: {{status}}</pre>\n\t    <pre>http response data: {{data}}</pre>\n\t  </div>\n\t</file>\n\t<file name=\"script.js\">\n\t  angular.module('httpExample', [])\n\t    .controller('FetchController', ['$scope', '$http', '$templateCache',\n\t      function($scope, $http, $templateCache) {\n\t        $scope.method = 'GET';\n\t        $scope.url = 'http-hello.html';\n\n\t        $scope.fetch = function() {\n\t          $scope.code = null;\n\t          $scope.response = null;\n\n\t          $http({method: $scope.method, url: $scope.url, cache: $templateCache}).\n\t            then(function(response) {\n\t              $scope.status = response.status;\n\t              $scope.data = response.data;\n\t            }, function(response) {\n\t              $scope.data = response.data || \"Request failed\";\n\t              $scope.status = response.status;\n\t          });\n\t        };\n\n\t        $scope.updateModel = function(method, url) {\n\t          $scope.method = method;\n\t          $scope.url = url;\n\t        };\n\t      }]);\n\t</file>\n\t<file name=\"http-hello.html\">\n\t  Hello, $http!\n\t</file>\n\t<file name=\"protractor.js\" type=\"protractor\">\n\t  var status = element(by.binding('status'));\n\t  var data = element(by.binding('data'));\n\t  var fetchBtn = element(by.id('fetchbtn'));\n\t  var sampleGetBtn = element(by.id('samplegetbtn'));\n\t  var sampleJsonpBtn = element(by.id('samplejsonpbtn'));\n\t  var invalidJsonpBtn = element(by.id('invalidjsonpbtn'));\n\n\t  it('should make an xhr GET request', function() {\n\t    sampleGetBtn.click();\n\t    fetchBtn.click();\n\t    expect(status.getText()).toMatch('200');\n\t    expect(data.getText()).toMatch(/Hello, \\$http!/);\n\t  });\n\n\t// Commented out due to flakes. See https://github.com/angular/angular.js/issues/9185\n\t// it('should make a JSONP request to angularjs.org', function() {\n\t//   sampleJsonpBtn.click();\n\t//   fetchBtn.click();\n\t//   expect(status.getText()).toMatch('200');\n\t//   expect(data.getText()).toMatch(/Super Hero!/);\n\t// });\n\n\t  it('should make JSONP request to invalid URL and invoke the error handler',\n\t      function() {\n\t    invalidJsonpBtn.click();\n\t    fetchBtn.click();\n\t    expect(status.getText()).toMatch('0');\n\t    expect(data.getText()).toMatch('Request failed');\n\t  });\n\t</file>\n\t</example>\n\t     */\n\t    function $http(requestConfig) {\n\n\t      if (!angular.isObject(requestConfig)) {\n\t        throw minErr('$http')('badreq', 'Http request configuration must be an object.  Received: {0}', requestConfig);\n\t      }\n\n\t      var config = extend({\n\t        method: 'get',\n\t        transformRequest: defaults.transformRequest,\n\t        transformResponse: defaults.transformResponse,\n\t        paramSerializer: defaults.paramSerializer\n\t      }, requestConfig);\n\n\t      config.headers = mergeHeaders(requestConfig);\n\t      config.method = uppercase(config.method);\n\t      config.paramSerializer = isString(config.paramSerializer) ?\n\t        $injector.get(config.paramSerializer) : config.paramSerializer;\n\n\t      var serverRequest = function(config) {\n\t        var headers = config.headers;\n\t        var reqData = transformData(config.data, headersGetter(headers), undefined, config.transformRequest);\n\n\t        // strip content-type if data is undefined\n\t        if (isUndefined(reqData)) {\n\t          forEach(headers, function(value, header) {\n\t            if (lowercase(header) === 'content-type') {\n\t                delete headers[header];\n\t            }\n\t          });\n\t        }\n\n\t        if (isUndefined(config.withCredentials) && !isUndefined(defaults.withCredentials)) {\n\t          config.withCredentials = defaults.withCredentials;\n\t        }\n\n\t        // send request\n\t        return sendReq(config, reqData).then(transformResponse, transformResponse);\n\t      };\n\n\t      var chain = [serverRequest, undefined];\n\t      var promise = $q.when(config);\n\n\t      // apply interceptors\n\t      forEach(reversedInterceptors, function(interceptor) {\n\t        if (interceptor.request || interceptor.requestError) {\n\t          chain.unshift(interceptor.request, interceptor.requestError);\n\t        }\n\t        if (interceptor.response || interceptor.responseError) {\n\t          chain.push(interceptor.response, interceptor.responseError);\n\t        }\n\t      });\n\n\t      while (chain.length) {\n\t        var thenFn = chain.shift();\n\t        var rejectFn = chain.shift();\n\n\t        promise = promise.then(thenFn, rejectFn);\n\t      }\n\n\t      if (useLegacyPromise) {\n\t        promise.success = function(fn) {\n\t          assertArgFn(fn, 'fn');\n\n\t          promise.then(function(response) {\n\t            fn(response.data, response.status, response.headers, config);\n\t          });\n\t          return promise;\n\t        };\n\n\t        promise.error = function(fn) {\n\t          assertArgFn(fn, 'fn');\n\n\t          promise.then(null, function(response) {\n\t            fn(response.data, response.status, response.headers, config);\n\t          });\n\t          return promise;\n\t        };\n\t      } else {\n\t        promise.success = $httpMinErrLegacyFn('success');\n\t        promise.error = $httpMinErrLegacyFn('error');\n\t      }\n\n\t      return promise;\n\n\t      function transformResponse(response) {\n\t        // make a copy since the response must be cacheable\n\t        var resp = extend({}, response);\n\t        resp.data = transformData(response.data, response.headers, response.status,\n\t                                  config.transformResponse);\n\t        return (isSuccess(response.status))\n\t          ? resp\n\t          : $q.reject(resp);\n\t      }\n\n\t      function executeHeaderFns(headers, config) {\n\t        var headerContent, processedHeaders = {};\n\n\t        forEach(headers, function(headerFn, header) {\n\t          if (isFunction(headerFn)) {\n\t            headerContent = headerFn(config);\n\t            if (headerContent != null) {\n\t              processedHeaders[header] = headerContent;\n\t            }\n\t          } else {\n\t            processedHeaders[header] = headerFn;\n\t          }\n\t        });\n\n\t        return processedHeaders;\n\t      }\n\n\t      function mergeHeaders(config) {\n\t        var defHeaders = defaults.headers,\n\t            reqHeaders = extend({}, config.headers),\n\t            defHeaderName, lowercaseDefHeaderName, reqHeaderName;\n\n\t        defHeaders = extend({}, defHeaders.common, defHeaders[lowercase(config.method)]);\n\n\t        // using for-in instead of forEach to avoid unecessary iteration after header has been found\n\t        defaultHeadersIteration:\n\t        for (defHeaderName in defHeaders) {\n\t          lowercaseDefHeaderName = lowercase(defHeaderName);\n\n\t          for (reqHeaderName in reqHeaders) {\n\t            if (lowercase(reqHeaderName) === lowercaseDefHeaderName) {\n\t              continue defaultHeadersIteration;\n\t            }\n\t          }\n\n\t          reqHeaders[defHeaderName] = defHeaders[defHeaderName];\n\t        }\n\n\t        // execute if header value is a function for merged headers\n\t        return executeHeaderFns(reqHeaders, shallowCopy(config));\n\t      }\n\t    }\n\n\t    $http.pendingRequests = [];\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $http#get\n\t     *\n\t     * @description\n\t     * Shortcut method to perform `GET` request.\n\t     *\n\t     * @param {string} url Relative or absolute URL specifying the destination of the request\n\t     * @param {Object=} config Optional configuration object\n\t     * @returns {HttpPromise} Future object\n\t     */\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $http#delete\n\t     *\n\t     * @description\n\t     * Shortcut method to perform `DELETE` request.\n\t     *\n\t     * @param {string} url Relative or absolute URL specifying the destination of the request\n\t     * @param {Object=} config Optional configuration object\n\t     * @returns {HttpPromise} Future object\n\t     */\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $http#head\n\t     *\n\t     * @description\n\t     * Shortcut method to perform `HEAD` request.\n\t     *\n\t     * @param {string} url Relative or absolute URL specifying the destination of the request\n\t     * @param {Object=} config Optional configuration object\n\t     * @returns {HttpPromise} Future object\n\t     */\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $http#jsonp\n\t     *\n\t     * @description\n\t     * Shortcut method to perform `JSONP` request.\n\t     *\n\t     * @param {string} url Relative or absolute URL specifying the destination of the request.\n\t     *                     The name of the callback should be the string `JSON_CALLBACK`.\n\t     * @param {Object=} config Optional configuration object\n\t     * @returns {HttpPromise} Future object\n\t     */\n\t    createShortMethods('get', 'delete', 'head', 'jsonp');\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $http#post\n\t     *\n\t     * @description\n\t     * Shortcut method to perform `POST` request.\n\t     *\n\t     * @param {string} url Relative or absolute URL specifying the destination of the request\n\t     * @param {*} data Request content\n\t     * @param {Object=} config Optional configuration object\n\t     * @returns {HttpPromise} Future object\n\t     */\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $http#put\n\t     *\n\t     * @description\n\t     * Shortcut method to perform `PUT` request.\n\t     *\n\t     * @param {string} url Relative or absolute URL specifying the destination of the request\n\t     * @param {*} data Request content\n\t     * @param {Object=} config Optional configuration object\n\t     * @returns {HttpPromise} Future object\n\t     */\n\n\t     /**\n\t      * @ngdoc method\n\t      * @name $http#patch\n\t      *\n\t      * @description\n\t      * Shortcut method to perform `PATCH` request.\n\t      *\n\t      * @param {string} url Relative or absolute URL specifying the destination of the request\n\t      * @param {*} data Request content\n\t      * @param {Object=} config Optional configuration object\n\t      * @returns {HttpPromise} Future object\n\t      */\n\t    createShortMethodsWithData('post', 'put', 'patch');\n\n\t        /**\n\t         * @ngdoc property\n\t         * @name $http#defaults\n\t         *\n\t         * @description\n\t         * Runtime equivalent of the `$httpProvider.defaults` property. Allows configuration of\n\t         * default headers, withCredentials as well as request and response transformations.\n\t         *\n\t         * See \"Setting HTTP Headers\" and \"Transforming Requests and Responses\" sections above.\n\t         */\n\t    $http.defaults = defaults;\n\n\n\t    return $http;\n\n\n\t    function createShortMethods(names) {\n\t      forEach(arguments, function(name) {\n\t        $http[name] = function(url, config) {\n\t          return $http(extend({}, config || {}, {\n\t            method: name,\n\t            url: url\n\t          }));\n\t        };\n\t      });\n\t    }\n\n\n\t    function createShortMethodsWithData(name) {\n\t      forEach(arguments, function(name) {\n\t        $http[name] = function(url, data, config) {\n\t          return $http(extend({}, config || {}, {\n\t            method: name,\n\t            url: url,\n\t            data: data\n\t          }));\n\t        };\n\t      });\n\t    }\n\n\n\t    /**\n\t     * Makes the request.\n\t     *\n\t     * !!! ACCESSES CLOSURE VARS:\n\t     * $httpBackend, defaults, $log, $rootScope, defaultCache, $http.pendingRequests\n\t     */\n\t    function sendReq(config, reqData) {\n\t      var deferred = $q.defer(),\n\t          promise = deferred.promise,\n\t          cache,\n\t          cachedResp,\n\t          reqHeaders = config.headers,\n\t          url = buildUrl(config.url, config.paramSerializer(config.params));\n\n\t      $http.pendingRequests.push(config);\n\t      promise.then(removePendingReq, removePendingReq);\n\n\n\t      if ((config.cache || defaults.cache) && config.cache !== false &&\n\t          (config.method === 'GET' || config.method === 'JSONP')) {\n\t        cache = isObject(config.cache) ? config.cache\n\t              : isObject(defaults.cache) ? defaults.cache\n\t              : defaultCache;\n\t      }\n\n\t      if (cache) {\n\t        cachedResp = cache.get(url);\n\t        if (isDefined(cachedResp)) {\n\t          if (isPromiseLike(cachedResp)) {\n\t            // cached request has already been sent, but there is no response yet\n\t            cachedResp.then(resolvePromiseWithResult, resolvePromiseWithResult);\n\t          } else {\n\t            // serving from cache\n\t            if (isArray(cachedResp)) {\n\t              resolvePromise(cachedResp[1], cachedResp[0], shallowCopy(cachedResp[2]), cachedResp[3]);\n\t            } else {\n\t              resolvePromise(cachedResp, 200, {}, 'OK');\n\t            }\n\t          }\n\t        } else {\n\t          // put the promise for the non-transformed response into cache as a placeholder\n\t          cache.put(url, promise);\n\t        }\n\t      }\n\n\n\t      // if we won't have the response in cache, set the xsrf headers and\n\t      // send the request to the backend\n\t      if (isUndefined(cachedResp)) {\n\t        var xsrfValue = urlIsSameOrigin(config.url)\n\t            ? $$cookieReader()[config.xsrfCookieName || defaults.xsrfCookieName]\n\t            : undefined;\n\t        if (xsrfValue) {\n\t          reqHeaders[(config.xsrfHeaderName || defaults.xsrfHeaderName)] = xsrfValue;\n\t        }\n\n\t        $httpBackend(config.method, url, reqData, done, reqHeaders, config.timeout,\n\t            config.withCredentials, config.responseType);\n\t      }\n\n\t      return promise;\n\n\n\t      /**\n\t       * Callback registered to $httpBackend():\n\t       *  - caches the response if desired\n\t       *  - resolves the raw $http promise\n\t       *  - calls $apply\n\t       */\n\t      function done(status, response, headersString, statusText) {\n\t        if (cache) {\n\t          if (isSuccess(status)) {\n\t            cache.put(url, [status, response, parseHeaders(headersString), statusText]);\n\t          } else {\n\t            // remove promise from the cache\n\t            cache.remove(url);\n\t          }\n\t        }\n\n\t        function resolveHttpPromise() {\n\t          resolvePromise(response, status, headersString, statusText);\n\t        }\n\n\t        if (useApplyAsync) {\n\t          $rootScope.$applyAsync(resolveHttpPromise);\n\t        } else {\n\t          resolveHttpPromise();\n\t          if (!$rootScope.$$phase) $rootScope.$apply();\n\t        }\n\t      }\n\n\n\t      /**\n\t       * Resolves the raw $http promise.\n\t       */\n\t      function resolvePromise(response, status, headers, statusText) {\n\t        //status: HTTP response status code, 0, -1 (aborted by timeout / promise)\n\t        status = status >= -1 ? status : 0;\n\n\t        (isSuccess(status) ? deferred.resolve : deferred.reject)({\n\t          data: response,\n\t          status: status,\n\t          headers: headersGetter(headers),\n\t          config: config,\n\t          statusText: statusText\n\t        });\n\t      }\n\n\t      function resolvePromiseWithResult(result) {\n\t        resolvePromise(result.data, result.status, shallowCopy(result.headers()), result.statusText);\n\t      }\n\n\t      function removePendingReq() {\n\t        var idx = $http.pendingRequests.indexOf(config);\n\t        if (idx !== -1) $http.pendingRequests.splice(idx, 1);\n\t      }\n\t    }\n\n\n\t    function buildUrl(url, serializedParams) {\n\t      if (serializedParams.length > 0) {\n\t        url += ((url.indexOf('?') == -1) ? '?' : '&') + serializedParams;\n\t      }\n\t      return url;\n\t    }\n\t  }];\n\t}\n\n\t/**\n\t * @ngdoc service\n\t * @name $xhrFactory\n\t *\n\t * @description\n\t * Factory function used to create XMLHttpRequest objects.\n\t *\n\t * Replace or decorate this service to create your own custom XMLHttpRequest objects.\n\t *\n\t * ```\n\t * angular.module('myApp', [])\n\t * .factory('$xhrFactory', function() {\n\t *   return function createXhr(method, url) {\n\t *     return new window.XMLHttpRequest({mozSystem: true});\n\t *   };\n\t * });\n\t * ```\n\t *\n\t * @param {string} method HTTP method of the request (GET, POST, PUT, ..)\n\t * @param {string} url URL of the request.\n\t */\n\tfunction $xhrFactoryProvider() {\n\t  this.$get = function() {\n\t    return function createXhr() {\n\t      return new window.XMLHttpRequest();\n\t    };\n\t  };\n\t}\n\n\t/**\n\t * @ngdoc service\n\t * @name $httpBackend\n\t * @requires $window\n\t * @requires $document\n\t * @requires $xhrFactory\n\t *\n\t * @description\n\t * HTTP backend used by the {@link ng.$http service} that delegates to\n\t * XMLHttpRequest object or JSONP and deals with browser incompatibilities.\n\t *\n\t * You should never need to use this service directly, instead use the higher-level abstractions:\n\t * {@link ng.$http $http} or {@link ngResource.$resource $resource}.\n\t *\n\t * During testing this implementation is swapped with {@link ngMock.$httpBackend mock\n\t * $httpBackend} which can be trained with responses.\n\t */\n\tfunction $HttpBackendProvider() {\n\t  this.$get = ['$browser', '$window', '$document', '$xhrFactory', function($browser, $window, $document, $xhrFactory) {\n\t    return createHttpBackend($browser, $xhrFactory, $browser.defer, $window.angular.callbacks, $document[0]);\n\t  }];\n\t}\n\n\tfunction createHttpBackend($browser, createXhr, $browserDefer, callbacks, rawDocument) {\n\t  // TODO(vojta): fix the signature\n\t  return function(method, url, post, callback, headers, timeout, withCredentials, responseType) {\n\t    $browser.$$incOutstandingRequestCount();\n\t    url = url || $browser.url();\n\n\t    if (lowercase(method) == 'jsonp') {\n\t      var callbackId = '_' + (callbacks.counter++).toString(36);\n\t      callbacks[callbackId] = function(data) {\n\t        callbacks[callbackId].data = data;\n\t        callbacks[callbackId].called = true;\n\t      };\n\n\t      var jsonpDone = jsonpReq(url.replace('JSON_CALLBACK', 'angular.callbacks.' + callbackId),\n\t          callbackId, function(status, text) {\n\t        completeRequest(callback, status, callbacks[callbackId].data, \"\", text);\n\t        callbacks[callbackId] = noop;\n\t      });\n\t    } else {\n\n\t      var xhr = createXhr(method, url);\n\n\t      xhr.open(method, url, true);\n\t      forEach(headers, function(value, key) {\n\t        if (isDefined(value)) {\n\t            xhr.setRequestHeader(key, value);\n\t        }\n\t      });\n\n\t      xhr.onload = function requestLoaded() {\n\t        var statusText = xhr.statusText || '';\n\n\t        // responseText is the old-school way of retrieving response (supported by IE9)\n\t        // response/responseType properties were introduced in XHR Level2 spec (supported by IE10)\n\t        var response = ('response' in xhr) ? xhr.response : xhr.responseText;\n\n\t        // normalize IE9 bug (http://bugs.jquery.com/ticket/1450)\n\t        var status = xhr.status === 1223 ? 204 : xhr.status;\n\n\t        // fix status code when it is 0 (0 status is undocumented).\n\t        // Occurs when accessing file resources or on Android 4.1 stock browser\n\t        // while retrieving files from application cache.\n\t        if (status === 0) {\n\t          status = response ? 200 : urlResolve(url).protocol == 'file' ? 404 : 0;\n\t        }\n\n\t        completeRequest(callback,\n\t            status,\n\t            response,\n\t            xhr.getAllResponseHeaders(),\n\t            statusText);\n\t      };\n\n\t      var requestError = function() {\n\t        // The response is always empty\n\t        // See https://xhr.spec.whatwg.org/#request-error-steps and https://fetch.spec.whatwg.org/#concept-network-error\n\t        completeRequest(callback, -1, null, null, '');\n\t      };\n\n\t      xhr.onerror = requestError;\n\t      xhr.onabort = requestError;\n\n\t      if (withCredentials) {\n\t        xhr.withCredentials = true;\n\t      }\n\n\t      if (responseType) {\n\t        try {\n\t          xhr.responseType = responseType;\n\t        } catch (e) {\n\t          // WebKit added support for the json responseType value on 09/03/2013\n\t          // https://bugs.webkit.org/show_bug.cgi?id=73648. Versions of Safari prior to 7 are\n\t          // known to throw when setting the value \"json\" as the response type. Other older\n\t          // browsers implementing the responseType\n\t          //\n\t          // The json response type can be ignored if not supported, because JSON payloads are\n\t          // parsed on the client-side regardless.\n\t          if (responseType !== 'json') {\n\t            throw e;\n\t          }\n\t        }\n\t      }\n\n\t      xhr.send(isUndefined(post) ? null : post);\n\t    }\n\n\t    if (timeout > 0) {\n\t      var timeoutId = $browserDefer(timeoutRequest, timeout);\n\t    } else if (isPromiseLike(timeout)) {\n\t      timeout.then(timeoutRequest);\n\t    }\n\n\n\t    function timeoutRequest() {\n\t      jsonpDone && jsonpDone();\n\t      xhr && xhr.abort();\n\t    }\n\n\t    function completeRequest(callback, status, response, headersString, statusText) {\n\t      // cancel timeout and subsequent timeout promise resolution\n\t      if (isDefined(timeoutId)) {\n\t        $browserDefer.cancel(timeoutId);\n\t      }\n\t      jsonpDone = xhr = null;\n\n\t      callback(status, response, headersString, statusText);\n\t      $browser.$$completeOutstandingRequest(noop);\n\t    }\n\t  };\n\n\t  function jsonpReq(url, callbackId, done) {\n\t    // we can't use jQuery/jqLite here because jQuery does crazy stuff with script elements, e.g.:\n\t    // - fetches local scripts via XHR and evals them\n\t    // - adds and immediately removes script elements from the document\n\t    var script = rawDocument.createElement('script'), callback = null;\n\t    script.type = \"text/javascript\";\n\t    script.src = url;\n\t    script.async = true;\n\n\t    callback = function(event) {\n\t      removeEventListenerFn(script, \"load\", callback);\n\t      removeEventListenerFn(script, \"error\", callback);\n\t      rawDocument.body.removeChild(script);\n\t      script = null;\n\t      var status = -1;\n\t      var text = \"unknown\";\n\n\t      if (event) {\n\t        if (event.type === \"load\" && !callbacks[callbackId].called) {\n\t          event = { type: \"error\" };\n\t        }\n\t        text = event.type;\n\t        status = event.type === \"error\" ? 404 : 200;\n\t      }\n\n\t      if (done) {\n\t        done(status, text);\n\t      }\n\t    };\n\n\t    addEventListenerFn(script, \"load\", callback);\n\t    addEventListenerFn(script, \"error\", callback);\n\t    rawDocument.body.appendChild(script);\n\t    return callback;\n\t  }\n\t}\n\n\tvar $interpolateMinErr = angular.$interpolateMinErr = minErr('$interpolate');\n\t$interpolateMinErr.throwNoconcat = function(text) {\n\t  throw $interpolateMinErr('noconcat',\n\t      \"Error while interpolating: {0}\\nStrict Contextual Escaping disallows \" +\n\t      \"interpolations that concatenate multiple expressions when a trusted value is \" +\n\t      \"required.  See http://docs.angularjs.org/api/ng.$sce\", text);\n\t};\n\n\t$interpolateMinErr.interr = function(text, err) {\n\t  return $interpolateMinErr('interr', \"Can't interpolate: {0}\\n{1}\", text, err.toString());\n\t};\n\n\t/**\n\t * @ngdoc provider\n\t * @name $interpolateProvider\n\t *\n\t * @description\n\t *\n\t * Used for configuring the interpolation markup. Defaults to `{{` and `}}`.\n\t *\n\t * @example\n\t<example module=\"customInterpolationApp\">\n\t<file name=\"index.html\">\n\t<script>\n\t  var customInterpolationApp = angular.module('customInterpolationApp', []);\n\n\t  customInterpolationApp.config(function($interpolateProvider) {\n\t    $interpolateProvider.startSymbol('//');\n\t    $interpolateProvider.endSymbol('//');\n\t  });\n\n\n\t  customInterpolationApp.controller('DemoController', function() {\n\t      this.label = \"This binding is brought you by // interpolation symbols.\";\n\t  });\n\t</script>\n\t<div ng-app=\"App\" ng-controller=\"DemoController as demo\">\n\t    //demo.label//\n\t</div>\n\t</file>\n\t<file name=\"protractor.js\" type=\"protractor\">\n\t  it('should interpolate binding with custom symbols', function() {\n\t    expect(element(by.binding('demo.label')).getText()).toBe('This binding is brought you by // interpolation symbols.');\n\t  });\n\t</file>\n\t</example>\n\t */\n\tfunction $InterpolateProvider() {\n\t  var startSymbol = '{{';\n\t  var endSymbol = '}}';\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $interpolateProvider#startSymbol\n\t   * @description\n\t   * Symbol to denote start of expression in the interpolated string. Defaults to `{{`.\n\t   *\n\t   * @param {string=} value new value to set the starting symbol to.\n\t   * @returns {string|self} Returns the symbol when used as getter and self if used as setter.\n\t   */\n\t  this.startSymbol = function(value) {\n\t    if (value) {\n\t      startSymbol = value;\n\t      return this;\n\t    } else {\n\t      return startSymbol;\n\t    }\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $interpolateProvider#endSymbol\n\t   * @description\n\t   * Symbol to denote the end of expression in the interpolated string. Defaults to `}}`.\n\t   *\n\t   * @param {string=} value new value to set the ending symbol to.\n\t   * @returns {string|self} Returns the symbol when used as getter and self if used as setter.\n\t   */\n\t  this.endSymbol = function(value) {\n\t    if (value) {\n\t      endSymbol = value;\n\t      return this;\n\t    } else {\n\t      return endSymbol;\n\t    }\n\t  };\n\n\n\t  this.$get = ['$parse', '$exceptionHandler', '$sce', function($parse, $exceptionHandler, $sce) {\n\t    var startSymbolLength = startSymbol.length,\n\t        endSymbolLength = endSymbol.length,\n\t        escapedStartRegexp = new RegExp(startSymbol.replace(/./g, escape), 'g'),\n\t        escapedEndRegexp = new RegExp(endSymbol.replace(/./g, escape), 'g');\n\n\t    function escape(ch) {\n\t      return '\\\\\\\\\\\\' + ch;\n\t    }\n\n\t    function unescapeText(text) {\n\t      return text.replace(escapedStartRegexp, startSymbol).\n\t        replace(escapedEndRegexp, endSymbol);\n\t    }\n\n\t    function stringify(value) {\n\t      if (value == null) { // null || undefined\n\t        return '';\n\t      }\n\t      switch (typeof value) {\n\t        case 'string':\n\t          break;\n\t        case 'number':\n\t          value = '' + value;\n\t          break;\n\t        default:\n\t          value = toJson(value);\n\t      }\n\n\t      return value;\n\t    }\n\n\t    /**\n\t     * @ngdoc service\n\t     * @name $interpolate\n\t     * @kind function\n\t     *\n\t     * @requires $parse\n\t     * @requires $sce\n\t     *\n\t     * @description\n\t     *\n\t     * Compiles a string with markup into an interpolation function. This service is used by the\n\t     * HTML {@link ng.$compile $compile} service for data binding. See\n\t     * {@link ng.$interpolateProvider $interpolateProvider} for configuring the\n\t     * interpolation markup.\n\t     *\n\t     *\n\t     * ```js\n\t     *   var $interpolate = ...; // injected\n\t     *   var exp = $interpolate('Hello {{name | uppercase}}!');\n\t     *   expect(exp({name:'Angular'})).toEqual('Hello ANGULAR!');\n\t     * ```\n\t     *\n\t     * `$interpolate` takes an optional fourth argument, `allOrNothing`. If `allOrNothing` is\n\t     * `true`, the interpolation function will return `undefined` unless all embedded expressions\n\t     * evaluate to a value other than `undefined`.\n\t     *\n\t     * ```js\n\t     *   var $interpolate = ...; // injected\n\t     *   var context = {greeting: 'Hello', name: undefined };\n\t     *\n\t     *   // default \"forgiving\" mode\n\t     *   var exp = $interpolate('{{greeting}} {{name}}!');\n\t     *   expect(exp(context)).toEqual('Hello !');\n\t     *\n\t     *   // \"allOrNothing\" mode\n\t     *   exp = $interpolate('{{greeting}} {{name}}!', false, null, true);\n\t     *   expect(exp(context)).toBeUndefined();\n\t     *   context.name = 'Angular';\n\t     *   expect(exp(context)).toEqual('Hello Angular!');\n\t     * ```\n\t     *\n\t     * `allOrNothing` is useful for interpolating URLs. `ngSrc` and `ngSrcset` use this behavior.\n\t     *\n\t     * ####Escaped Interpolation\n\t     * $interpolate provides a mechanism for escaping interpolation markers. Start and end markers\n\t     * can be escaped by preceding each of their characters with a REVERSE SOLIDUS U+005C (backslash).\n\t     * It will be rendered as a regular start/end marker, and will not be interpreted as an expression\n\t     * or binding.\n\t     *\n\t     * This enables web-servers to prevent script injection attacks and defacing attacks, to some\n\t     * degree, while also enabling code examples to work without relying on the\n\t     * {@link ng.directive:ngNonBindable ngNonBindable} directive.\n\t     *\n\t     * **For security purposes, it is strongly encouraged that web servers escape user-supplied data,\n\t     * replacing angle brackets (&lt;, &gt;) with &amp;lt; and &amp;gt; respectively, and replacing all\n\t     * interpolation start/end markers with their escaped counterparts.**\n\t     *\n\t     * Escaped interpolation markers are only replaced with the actual interpolation markers in rendered\n\t     * output when the $interpolate service processes the text. So, for HTML elements interpolated\n\t     * by {@link ng.$compile $compile}, or otherwise interpolated with the `mustHaveExpression` parameter\n\t     * set to `true`, the interpolated text must contain an unescaped interpolation expression. As such,\n\t     * this is typically useful only when user-data is used in rendering a template from the server, or\n\t     * when otherwise untrusted data is used by a directive.\n\t     *\n\t     * <example>\n\t     *  <file name=\"index.html\">\n\t     *    <div ng-init=\"username='A user'\">\n\t     *      <p ng-init=\"apptitle='Escaping demo'\">{{apptitle}}: \\{\\{ username = \"defaced value\"; \\}\\}\n\t     *        </p>\n\t     *      <p><strong>{{username}}</strong> attempts to inject code which will deface the\n\t     *        application, but fails to accomplish their task, because the server has correctly\n\t     *        escaped the interpolation start/end markers with REVERSE SOLIDUS U+005C (backslash)\n\t     *        characters.</p>\n\t     *      <p>Instead, the result of the attempted script injection is visible, and can be removed\n\t     *        from the database by an administrator.</p>\n\t     *    </div>\n\t     *  </file>\n\t     * </example>\n\t     *\n\t     * @param {string} text The text with markup to interpolate.\n\t     * @param {boolean=} mustHaveExpression if set to true then the interpolation string must have\n\t     *    embedded expression in order to return an interpolation function. Strings with no\n\t     *    embedded expression will return null for the interpolation function.\n\t     * @param {string=} trustedContext when provided, the returned function passes the interpolated\n\t     *    result through {@link ng.$sce#getTrusted $sce.getTrusted(interpolatedResult,\n\t     *    trustedContext)} before returning it.  Refer to the {@link ng.$sce $sce} service that\n\t     *    provides Strict Contextual Escaping for details.\n\t     * @param {boolean=} allOrNothing if `true`, then the returned function returns undefined\n\t     *    unless all embedded expressions evaluate to a value other than `undefined`.\n\t     * @returns {function(context)} an interpolation function which is used to compute the\n\t     *    interpolated string. The function has these parameters:\n\t     *\n\t     * - `context`: evaluation context for all expressions embedded in the interpolated text\n\t     */\n\t    function $interpolate(text, mustHaveExpression, trustedContext, allOrNothing) {\n\t      allOrNothing = !!allOrNothing;\n\t      var startIndex,\n\t          endIndex,\n\t          index = 0,\n\t          expressions = [],\n\t          parseFns = [],\n\t          textLength = text.length,\n\t          exp,\n\t          concat = [],\n\t          expressionPositions = [];\n\n\t      while (index < textLength) {\n\t        if (((startIndex = text.indexOf(startSymbol, index)) != -1) &&\n\t             ((endIndex = text.indexOf(endSymbol, startIndex + startSymbolLength)) != -1)) {\n\t          if (index !== startIndex) {\n\t            concat.push(unescapeText(text.substring(index, startIndex)));\n\t          }\n\t          exp = text.substring(startIndex + startSymbolLength, endIndex);\n\t          expressions.push(exp);\n\t          parseFns.push($parse(exp, parseStringifyInterceptor));\n\t          index = endIndex + endSymbolLength;\n\t          expressionPositions.push(concat.length);\n\t          concat.push('');\n\t        } else {\n\t          // we did not find an interpolation, so we have to add the remainder to the separators array\n\t          if (index !== textLength) {\n\t            concat.push(unescapeText(text.substring(index)));\n\t          }\n\t          break;\n\t        }\n\t      }\n\n\t      // Concatenating expressions makes it hard to reason about whether some combination of\n\t      // concatenated values are unsafe to use and could easily lead to XSS.  By requiring that a\n\t      // single expression be used for iframe[src], object[src], etc., we ensure that the value\n\t      // that's used is assigned or constructed by some JS code somewhere that is more testable or\n\t      // make it obvious that you bound the value to some user controlled value.  This helps reduce\n\t      // the load when auditing for XSS issues.\n\t      if (trustedContext && concat.length > 1) {\n\t          $interpolateMinErr.throwNoconcat(text);\n\t      }\n\n\t      if (!mustHaveExpression || expressions.length) {\n\t        var compute = function(values) {\n\t          for (var i = 0, ii = expressions.length; i < ii; i++) {\n\t            if (allOrNothing && isUndefined(values[i])) return;\n\t            concat[expressionPositions[i]] = values[i];\n\t          }\n\t          return concat.join('');\n\t        };\n\n\t        var getValue = function(value) {\n\t          return trustedContext ?\n\t            $sce.getTrusted(trustedContext, value) :\n\t            $sce.valueOf(value);\n\t        };\n\n\t        return extend(function interpolationFn(context) {\n\t            var i = 0;\n\t            var ii = expressions.length;\n\t            var values = new Array(ii);\n\n\t            try {\n\t              for (; i < ii; i++) {\n\t                values[i] = parseFns[i](context);\n\t              }\n\n\t              return compute(values);\n\t            } catch (err) {\n\t              $exceptionHandler($interpolateMinErr.interr(text, err));\n\t            }\n\n\t          }, {\n\t          // all of these properties are undocumented for now\n\t          exp: text, //just for compatibility with regular watchers created via $watch\n\t          expressions: expressions,\n\t          $$watchDelegate: function(scope, listener) {\n\t            var lastValue;\n\t            return scope.$watchGroup(parseFns, function interpolateFnWatcher(values, oldValues) {\n\t              var currValue = compute(values);\n\t              if (isFunction(listener)) {\n\t                listener.call(this, currValue, values !== oldValues ? lastValue : currValue, scope);\n\t              }\n\t              lastValue = currValue;\n\t            });\n\t          }\n\t        });\n\t      }\n\n\t      function parseStringifyInterceptor(value) {\n\t        try {\n\t          value = getValue(value);\n\t          return allOrNothing && !isDefined(value) ? value : stringify(value);\n\t        } catch (err) {\n\t          $exceptionHandler($interpolateMinErr.interr(text, err));\n\t        }\n\t      }\n\t    }\n\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $interpolate#startSymbol\n\t     * @description\n\t     * Symbol to denote the start of expression in the interpolated string. Defaults to `{{`.\n\t     *\n\t     * Use {@link ng.$interpolateProvider#startSymbol `$interpolateProvider.startSymbol`} to change\n\t     * the symbol.\n\t     *\n\t     * @returns {string} start symbol.\n\t     */\n\t    $interpolate.startSymbol = function() {\n\t      return startSymbol;\n\t    };\n\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $interpolate#endSymbol\n\t     * @description\n\t     * Symbol to denote the end of expression in the interpolated string. Defaults to `}}`.\n\t     *\n\t     * Use {@link ng.$interpolateProvider#endSymbol `$interpolateProvider.endSymbol`} to change\n\t     * the symbol.\n\t     *\n\t     * @returns {string} end symbol.\n\t     */\n\t    $interpolate.endSymbol = function() {\n\t      return endSymbol;\n\t    };\n\n\t    return $interpolate;\n\t  }];\n\t}\n\n\tfunction $IntervalProvider() {\n\t  this.$get = ['$rootScope', '$window', '$q', '$$q',\n\t       function($rootScope,   $window,   $q,   $$q) {\n\t    var intervals = {};\n\n\n\t     /**\n\t      * @ngdoc service\n\t      * @name $interval\n\t      *\n\t      * @description\n\t      * Angular's wrapper for `window.setInterval`. The `fn` function is executed every `delay`\n\t      * milliseconds.\n\t      *\n\t      * The return value of registering an interval function is a promise. This promise will be\n\t      * notified upon each tick of the interval, and will be resolved after `count` iterations, or\n\t      * run indefinitely if `count` is not defined. The value of the notification will be the\n\t      * number of iterations that have run.\n\t      * To cancel an interval, call `$interval.cancel(promise)`.\n\t      *\n\t      * In tests you can use {@link ngMock.$interval#flush `$interval.flush(millis)`} to\n\t      * move forward by `millis` milliseconds and trigger any functions scheduled to run in that\n\t      * time.\n\t      *\n\t      * <div class=\"alert alert-warning\">\n\t      * **Note**: Intervals created by this service must be explicitly destroyed when you are finished\n\t      * with them.  In particular they are not automatically destroyed when a controller's scope or a\n\t      * directive's element are destroyed.\n\t      * You should take this into consideration and make sure to always cancel the interval at the\n\t      * appropriate moment.  See the example below for more details on how and when to do this.\n\t      * </div>\n\t      *\n\t      * @param {function()} fn A function that should be called repeatedly.\n\t      * @param {number} delay Number of milliseconds between each function call.\n\t      * @param {number=} [count=0] Number of times to repeat. If not set, or 0, will repeat\n\t      *   indefinitely.\n\t      * @param {boolean=} [invokeApply=true] If set to `false` skips model dirty checking, otherwise\n\t      *   will invoke `fn` within the {@link ng.$rootScope.Scope#$apply $apply} block.\n\t      * @param {...*=} Pass additional parameters to the executed function.\n\t      * @returns {promise} A promise which will be notified on each iteration.\n\t      *\n\t      * @example\n\t      * <example module=\"intervalExample\">\n\t      * <file name=\"index.html\">\n\t      *   <script>\n\t      *     angular.module('intervalExample', [])\n\t      *       .controller('ExampleController', ['$scope', '$interval',\n\t      *         function($scope, $interval) {\n\t      *           $scope.format = 'M/d/yy h:mm:ss a';\n\t      *           $scope.blood_1 = 100;\n\t      *           $scope.blood_2 = 120;\n\t      *\n\t      *           var stop;\n\t      *           $scope.fight = function() {\n\t      *             // Don't start a new fight if we are already fighting\n\t      *             if ( angular.isDefined(stop) ) return;\n\t      *\n\t      *             stop = $interval(function() {\n\t      *               if ($scope.blood_1 > 0 && $scope.blood_2 > 0) {\n\t      *                 $scope.blood_1 = $scope.blood_1 - 3;\n\t      *                 $scope.blood_2 = $scope.blood_2 - 4;\n\t      *               } else {\n\t      *                 $scope.stopFight();\n\t      *               }\n\t      *             }, 100);\n\t      *           };\n\t      *\n\t      *           $scope.stopFight = function() {\n\t      *             if (angular.isDefined(stop)) {\n\t      *               $interval.cancel(stop);\n\t      *               stop = undefined;\n\t      *             }\n\t      *           };\n\t      *\n\t      *           $scope.resetFight = function() {\n\t      *             $scope.blood_1 = 100;\n\t      *             $scope.blood_2 = 120;\n\t      *           };\n\t      *\n\t      *           $scope.$on('$destroy', function() {\n\t      *             // Make sure that the interval is destroyed too\n\t      *             $scope.stopFight();\n\t      *           });\n\t      *         }])\n\t      *       // Register the 'myCurrentTime' directive factory method.\n\t      *       // We inject $interval and dateFilter service since the factory method is DI.\n\t      *       .directive('myCurrentTime', ['$interval', 'dateFilter',\n\t      *         function($interval, dateFilter) {\n\t      *           // return the directive link function. (compile function not needed)\n\t      *           return function(scope, element, attrs) {\n\t      *             var format,  // date format\n\t      *                 stopTime; // so that we can cancel the time updates\n\t      *\n\t      *             // used to update the UI\n\t      *             function updateTime() {\n\t      *               element.text(dateFilter(new Date(), format));\n\t      *             }\n\t      *\n\t      *             // watch the expression, and update the UI on change.\n\t      *             scope.$watch(attrs.myCurrentTime, function(value) {\n\t      *               format = value;\n\t      *               updateTime();\n\t      *             });\n\t      *\n\t      *             stopTime = $interval(updateTime, 1000);\n\t      *\n\t      *             // listen on DOM destroy (removal) event, and cancel the next UI update\n\t      *             // to prevent updating time after the DOM element was removed.\n\t      *             element.on('$destroy', function() {\n\t      *               $interval.cancel(stopTime);\n\t      *             });\n\t      *           }\n\t      *         }]);\n\t      *   </script>\n\t      *\n\t      *   <div>\n\t      *     <div ng-controller=\"ExampleController\">\n\t      *       <label>Date format: <input ng-model=\"format\"></label> <hr/>\n\t      *       Current time is: <span my-current-time=\"format\"></span>\n\t      *       <hr/>\n\t      *       Blood 1 : <font color='red'>{{blood_1}}</font>\n\t      *       Blood 2 : <font color='red'>{{blood_2}}</font>\n\t      *       <button type=\"button\" data-ng-click=\"fight()\">Fight</button>\n\t      *       <button type=\"button\" data-ng-click=\"stopFight()\">StopFight</button>\n\t      *       <button type=\"button\" data-ng-click=\"resetFight()\">resetFight</button>\n\t      *     </div>\n\t      *   </div>\n\t      *\n\t      * </file>\n\t      * </example>\n\t      */\n\t    function interval(fn, delay, count, invokeApply) {\n\t      var hasParams = arguments.length > 4,\n\t          args = hasParams ? sliceArgs(arguments, 4) : [],\n\t          setInterval = $window.setInterval,\n\t          clearInterval = $window.clearInterval,\n\t          iteration = 0,\n\t          skipApply = (isDefined(invokeApply) && !invokeApply),\n\t          deferred = (skipApply ? $$q : $q).defer(),\n\t          promise = deferred.promise;\n\n\t      count = isDefined(count) ? count : 0;\n\n\t      promise.then(null, null, (!hasParams) ? fn : function() {\n\t        fn.apply(null, args);\n\t      });\n\n\t      promise.$$intervalId = setInterval(function tick() {\n\t        deferred.notify(iteration++);\n\n\t        if (count > 0 && iteration >= count) {\n\t          deferred.resolve(iteration);\n\t          clearInterval(promise.$$intervalId);\n\t          delete intervals[promise.$$intervalId];\n\t        }\n\n\t        if (!skipApply) $rootScope.$apply();\n\n\t      }, delay);\n\n\t      intervals[promise.$$intervalId] = deferred;\n\n\t      return promise;\n\t    }\n\n\n\t     /**\n\t      * @ngdoc method\n\t      * @name $interval#cancel\n\t      *\n\t      * @description\n\t      * Cancels a task associated with the `promise`.\n\t      *\n\t      * @param {Promise=} promise returned by the `$interval` function.\n\t      * @returns {boolean} Returns `true` if the task was successfully canceled.\n\t      */\n\t    interval.cancel = function(promise) {\n\t      if (promise && promise.$$intervalId in intervals) {\n\t        intervals[promise.$$intervalId].reject('canceled');\n\t        $window.clearInterval(promise.$$intervalId);\n\t        delete intervals[promise.$$intervalId];\n\t        return true;\n\t      }\n\t      return false;\n\t    };\n\n\t    return interval;\n\t  }];\n\t}\n\n\t/**\n\t * @ngdoc service\n\t * @name $locale\n\t *\n\t * @description\n\t * $locale service provides localization rules for various Angular components. As of right now the\n\t * only public api is:\n\t *\n\t * * `id` – `{string}` – locale id formatted as `languageId-countryId` (e.g. `en-us`)\n\t */\n\n\tvar PATH_MATCH = /^([^\\?#]*)(\\?([^#]*))?(#(.*))?$/,\n\t    DEFAULT_PORTS = {'http': 80, 'https': 443, 'ftp': 21};\n\tvar $locationMinErr = minErr('$location');\n\n\n\t/**\n\t * Encode path using encodeUriSegment, ignoring forward slashes\n\t *\n\t * @param {string} path Path to encode\n\t * @returns {string}\n\t */\n\tfunction encodePath(path) {\n\t  var segments = path.split('/'),\n\t      i = segments.length;\n\n\t  while (i--) {\n\t    segments[i] = encodeUriSegment(segments[i]);\n\t  }\n\n\t  return segments.join('/');\n\t}\n\n\tfunction parseAbsoluteUrl(absoluteUrl, locationObj) {\n\t  var parsedUrl = urlResolve(absoluteUrl);\n\n\t  locationObj.$$protocol = parsedUrl.protocol;\n\t  locationObj.$$host = parsedUrl.hostname;\n\t  locationObj.$$port = toInt(parsedUrl.port) || DEFAULT_PORTS[parsedUrl.protocol] || null;\n\t}\n\n\n\tfunction parseAppUrl(relativeUrl, locationObj) {\n\t  var prefixed = (relativeUrl.charAt(0) !== '/');\n\t  if (prefixed) {\n\t    relativeUrl = '/' + relativeUrl;\n\t  }\n\t  var match = urlResolve(relativeUrl);\n\t  locationObj.$$path = decodeURIComponent(prefixed && match.pathname.charAt(0) === '/' ?\n\t      match.pathname.substring(1) : match.pathname);\n\t  locationObj.$$search = parseKeyValue(match.search);\n\t  locationObj.$$hash = decodeURIComponent(match.hash);\n\n\t  // make sure path starts with '/';\n\t  if (locationObj.$$path && locationObj.$$path.charAt(0) != '/') {\n\t    locationObj.$$path = '/' + locationObj.$$path;\n\t  }\n\t}\n\n\n\t/**\n\t *\n\t * @param {string} begin\n\t * @param {string} whole\n\t * @returns {string} returns text from whole after begin or undefined if it does not begin with\n\t *                   expected string.\n\t */\n\tfunction beginsWith(begin, whole) {\n\t  if (whole.indexOf(begin) === 0) {\n\t    return whole.substr(begin.length);\n\t  }\n\t}\n\n\n\tfunction stripHash(url) {\n\t  var index = url.indexOf('#');\n\t  return index == -1 ? url : url.substr(0, index);\n\t}\n\n\tfunction trimEmptyHash(url) {\n\t  return url.replace(/(#.+)|#$/, '$1');\n\t}\n\n\n\tfunction stripFile(url) {\n\t  return url.substr(0, stripHash(url).lastIndexOf('/') + 1);\n\t}\n\n\t/* return the server only (scheme://host:port) */\n\tfunction serverBase(url) {\n\t  return url.substring(0, url.indexOf('/', url.indexOf('//') + 2));\n\t}\n\n\n\t/**\n\t * LocationHtml5Url represents an url\n\t * This object is exposed as $location service when HTML5 mode is enabled and supported\n\t *\n\t * @constructor\n\t * @param {string} appBase application base URL\n\t * @param {string} appBaseNoFile application base URL stripped of any filename\n\t * @param {string} basePrefix url path prefix\n\t */\n\tfunction LocationHtml5Url(appBase, appBaseNoFile, basePrefix) {\n\t  this.$$html5 = true;\n\t  basePrefix = basePrefix || '';\n\t  parseAbsoluteUrl(appBase, this);\n\n\n\t  /**\n\t   * Parse given html5 (regular) url string into properties\n\t   * @param {string} url HTML5 url\n\t   * @private\n\t   */\n\t  this.$$parse = function(url) {\n\t    var pathUrl = beginsWith(appBaseNoFile, url);\n\t    if (!isString(pathUrl)) {\n\t      throw $locationMinErr('ipthprfx', 'Invalid url \"{0}\", missing path prefix \"{1}\".', url,\n\t          appBaseNoFile);\n\t    }\n\n\t    parseAppUrl(pathUrl, this);\n\n\t    if (!this.$$path) {\n\t      this.$$path = '/';\n\t    }\n\n\t    this.$$compose();\n\t  };\n\n\t  /**\n\t   * Compose url and update `absUrl` property\n\t   * @private\n\t   */\n\t  this.$$compose = function() {\n\t    var search = toKeyValue(this.$$search),\n\t        hash = this.$$hash ? '#' + encodeUriSegment(this.$$hash) : '';\n\n\t    this.$$url = encodePath(this.$$path) + (search ? '?' + search : '') + hash;\n\t    this.$$absUrl = appBaseNoFile + this.$$url.substr(1); // first char is always '/'\n\t  };\n\n\t  this.$$parseLinkUrl = function(url, relHref) {\n\t    if (relHref && relHref[0] === '#') {\n\t      // special case for links to hash fragments:\n\t      // keep the old url and only replace the hash fragment\n\t      this.hash(relHref.slice(1));\n\t      return true;\n\t    }\n\t    var appUrl, prevAppUrl;\n\t    var rewrittenUrl;\n\n\t    if (isDefined(appUrl = beginsWith(appBase, url))) {\n\t      prevAppUrl = appUrl;\n\t      if (isDefined(appUrl = beginsWith(basePrefix, appUrl))) {\n\t        rewrittenUrl = appBaseNoFile + (beginsWith('/', appUrl) || appUrl);\n\t      } else {\n\t        rewrittenUrl = appBase + prevAppUrl;\n\t      }\n\t    } else if (isDefined(appUrl = beginsWith(appBaseNoFile, url))) {\n\t      rewrittenUrl = appBaseNoFile + appUrl;\n\t    } else if (appBaseNoFile == url + '/') {\n\t      rewrittenUrl = appBaseNoFile;\n\t    }\n\t    if (rewrittenUrl) {\n\t      this.$$parse(rewrittenUrl);\n\t    }\n\t    return !!rewrittenUrl;\n\t  };\n\t}\n\n\n\t/**\n\t * LocationHashbangUrl represents url\n\t * This object is exposed as $location service when developer doesn't opt into html5 mode.\n\t * It also serves as the base class for html5 mode fallback on legacy browsers.\n\t *\n\t * @constructor\n\t * @param {string} appBase application base URL\n\t * @param {string} appBaseNoFile application base URL stripped of any filename\n\t * @param {string} hashPrefix hashbang prefix\n\t */\n\tfunction LocationHashbangUrl(appBase, appBaseNoFile, hashPrefix) {\n\n\t  parseAbsoluteUrl(appBase, this);\n\n\n\t  /**\n\t   * Parse given hashbang url into properties\n\t   * @param {string} url Hashbang url\n\t   * @private\n\t   */\n\t  this.$$parse = function(url) {\n\t    var withoutBaseUrl = beginsWith(appBase, url) || beginsWith(appBaseNoFile, url);\n\t    var withoutHashUrl;\n\n\t    if (!isUndefined(withoutBaseUrl) && withoutBaseUrl.charAt(0) === '#') {\n\n\t      // The rest of the url starts with a hash so we have\n\t      // got either a hashbang path or a plain hash fragment\n\t      withoutHashUrl = beginsWith(hashPrefix, withoutBaseUrl);\n\t      if (isUndefined(withoutHashUrl)) {\n\t        // There was no hashbang prefix so we just have a hash fragment\n\t        withoutHashUrl = withoutBaseUrl;\n\t      }\n\n\t    } else {\n\t      // There was no hashbang path nor hash fragment:\n\t      // If we are in HTML5 mode we use what is left as the path;\n\t      // Otherwise we ignore what is left\n\t      if (this.$$html5) {\n\t        withoutHashUrl = withoutBaseUrl;\n\t      } else {\n\t        withoutHashUrl = '';\n\t        if (isUndefined(withoutBaseUrl)) {\n\t          appBase = url;\n\t          this.replace();\n\t        }\n\t      }\n\t    }\n\n\t    parseAppUrl(withoutHashUrl, this);\n\n\t    this.$$path = removeWindowsDriveName(this.$$path, withoutHashUrl, appBase);\n\n\t    this.$$compose();\n\n\t    /*\n\t     * In Windows, on an anchor node on documents loaded from\n\t     * the filesystem, the browser will return a pathname\n\t     * prefixed with the drive name ('/C:/path') when a\n\t     * pathname without a drive is set:\n\t     *  * a.setAttribute('href', '/foo')\n\t     *   * a.pathname === '/C:/foo' //true\n\t     *\n\t     * Inside of Angular, we're always using pathnames that\n\t     * do not include drive names for routing.\n\t     */\n\t    function removeWindowsDriveName(path, url, base) {\n\t      /*\n\t      Matches paths for file protocol on windows,\n\t      such as /C:/foo/bar, and captures only /foo/bar.\n\t      */\n\t      var windowsFilePathExp = /^\\/[A-Z]:(\\/.*)/;\n\n\t      var firstPathSegmentMatch;\n\n\t      //Get the relative path from the input URL.\n\t      if (url.indexOf(base) === 0) {\n\t        url = url.replace(base, '');\n\t      }\n\n\t      // The input URL intentionally contains a first path segment that ends with a colon.\n\t      if (windowsFilePathExp.exec(url)) {\n\t        return path;\n\t      }\n\n\t      firstPathSegmentMatch = windowsFilePathExp.exec(path);\n\t      return firstPathSegmentMatch ? firstPathSegmentMatch[1] : path;\n\t    }\n\t  };\n\n\t  /**\n\t   * Compose hashbang url and update `absUrl` property\n\t   * @private\n\t   */\n\t  this.$$compose = function() {\n\t    var search = toKeyValue(this.$$search),\n\t        hash = this.$$hash ? '#' + encodeUriSegment(this.$$hash) : '';\n\n\t    this.$$url = encodePath(this.$$path) + (search ? '?' + search : '') + hash;\n\t    this.$$absUrl = appBase + (this.$$url ? hashPrefix + this.$$url : '');\n\t  };\n\n\t  this.$$parseLinkUrl = function(url, relHref) {\n\t    if (stripHash(appBase) == stripHash(url)) {\n\t      this.$$parse(url);\n\t      return true;\n\t    }\n\t    return false;\n\t  };\n\t}\n\n\n\t/**\n\t * LocationHashbangUrl represents url\n\t * This object is exposed as $location service when html5 history api is enabled but the browser\n\t * does not support it.\n\t *\n\t * @constructor\n\t * @param {string} appBase application base URL\n\t * @param {string} appBaseNoFile application base URL stripped of any filename\n\t * @param {string} hashPrefix hashbang prefix\n\t */\n\tfunction LocationHashbangInHtml5Url(appBase, appBaseNoFile, hashPrefix) {\n\t  this.$$html5 = true;\n\t  LocationHashbangUrl.apply(this, arguments);\n\n\t  this.$$parseLinkUrl = function(url, relHref) {\n\t    if (relHref && relHref[0] === '#') {\n\t      // special case for links to hash fragments:\n\t      // keep the old url and only replace the hash fragment\n\t      this.hash(relHref.slice(1));\n\t      return true;\n\t    }\n\n\t    var rewrittenUrl;\n\t    var appUrl;\n\n\t    if (appBase == stripHash(url)) {\n\t      rewrittenUrl = url;\n\t    } else if ((appUrl = beginsWith(appBaseNoFile, url))) {\n\t      rewrittenUrl = appBase + hashPrefix + appUrl;\n\t    } else if (appBaseNoFile === url + '/') {\n\t      rewrittenUrl = appBaseNoFile;\n\t    }\n\t    if (rewrittenUrl) {\n\t      this.$$parse(rewrittenUrl);\n\t    }\n\t    return !!rewrittenUrl;\n\t  };\n\n\t  this.$$compose = function() {\n\t    var search = toKeyValue(this.$$search),\n\t        hash = this.$$hash ? '#' + encodeUriSegment(this.$$hash) : '';\n\n\t    this.$$url = encodePath(this.$$path) + (search ? '?' + search : '') + hash;\n\t    // include hashPrefix in $$absUrl when $$url is empty so IE9 does not reload page because of removal of '#'\n\t    this.$$absUrl = appBase + hashPrefix + this.$$url;\n\t  };\n\n\t}\n\n\n\tvar locationPrototype = {\n\n\t  /**\n\t   * Are we in html5 mode?\n\t   * @private\n\t   */\n\t  $$html5: false,\n\n\t  /**\n\t   * Has any change been replacing?\n\t   * @private\n\t   */\n\t  $$replace: false,\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $location#absUrl\n\t   *\n\t   * @description\n\t   * This method is getter only.\n\t   *\n\t   * Return full url representation with all segments encoded according to rules specified in\n\t   * [RFC 3986](http://www.ietf.org/rfc/rfc3986.txt).\n\t   *\n\t   *\n\t   * ```js\n\t   * // given url http://example.com/#/some/path?foo=bar&baz=xoxo\n\t   * var absUrl = $location.absUrl();\n\t   * // => \"http://example.com/#/some/path?foo=bar&baz=xoxo\"\n\t   * ```\n\t   *\n\t   * @return {string} full url\n\t   */\n\t  absUrl: locationGetter('$$absUrl'),\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $location#url\n\t   *\n\t   * @description\n\t   * This method is getter / setter.\n\t   *\n\t   * Return url (e.g. `/path?a=b#hash`) when called without any parameter.\n\t   *\n\t   * Change path, search and hash, when called with parameter and return `$location`.\n\t   *\n\t   *\n\t   * ```js\n\t   * // given url http://example.com/#/some/path?foo=bar&baz=xoxo\n\t   * var url = $location.url();\n\t   * // => \"/some/path?foo=bar&baz=xoxo\"\n\t   * ```\n\t   *\n\t   * @param {string=} url New url without base prefix (e.g. `/path?a=b#hash`)\n\t   * @return {string} url\n\t   */\n\t  url: function(url) {\n\t    if (isUndefined(url)) {\n\t      return this.$$url;\n\t    }\n\n\t    var match = PATH_MATCH.exec(url);\n\t    if (match[1] || url === '') this.path(decodeURIComponent(match[1]));\n\t    if (match[2] || match[1] || url === '') this.search(match[3] || '');\n\t    this.hash(match[5] || '');\n\n\t    return this;\n\t  },\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $location#protocol\n\t   *\n\t   * @description\n\t   * This method is getter only.\n\t   *\n\t   * Return protocol of current url.\n\t   *\n\t   *\n\t   * ```js\n\t   * // given url http://example.com/#/some/path?foo=bar&baz=xoxo\n\t   * var protocol = $location.protocol();\n\t   * // => \"http\"\n\t   * ```\n\t   *\n\t   * @return {string} protocol of current url\n\t   */\n\t  protocol: locationGetter('$$protocol'),\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $location#host\n\t   *\n\t   * @description\n\t   * This method is getter only.\n\t   *\n\t   * Return host of current url.\n\t   *\n\t   * Note: compared to the non-angular version `location.host` which returns `hostname:port`, this returns the `hostname` portion only.\n\t   *\n\t   *\n\t   * ```js\n\t   * // given url http://example.com/#/some/path?foo=bar&baz=xoxo\n\t   * var host = $location.host();\n\t   * // => \"example.com\"\n\t   *\n\t   * // given url http://user:password@example.com:8080/#/some/path?foo=bar&baz=xoxo\n\t   * host = $location.host();\n\t   * // => \"example.com\"\n\t   * host = location.host;\n\t   * // => \"example.com:8080\"\n\t   * ```\n\t   *\n\t   * @return {string} host of current url.\n\t   */\n\t  host: locationGetter('$$host'),\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $location#port\n\t   *\n\t   * @description\n\t   * This method is getter only.\n\t   *\n\t   * Return port of current url.\n\t   *\n\t   *\n\t   * ```js\n\t   * // given url http://example.com/#/some/path?foo=bar&baz=xoxo\n\t   * var port = $location.port();\n\t   * // => 80\n\t   * ```\n\t   *\n\t   * @return {Number} port\n\t   */\n\t  port: locationGetter('$$port'),\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $location#path\n\t   *\n\t   * @description\n\t   * This method is getter / setter.\n\t   *\n\t   * Return path of current url when called without any parameter.\n\t   *\n\t   * Change path when called with parameter and return `$location`.\n\t   *\n\t   * Note: Path should always begin with forward slash (/), this method will add the forward slash\n\t   * if it is missing.\n\t   *\n\t   *\n\t   * ```js\n\t   * // given url http://example.com/#/some/path?foo=bar&baz=xoxo\n\t   * var path = $location.path();\n\t   * // => \"/some/path\"\n\t   * ```\n\t   *\n\t   * @param {(string|number)=} path New path\n\t   * @return {string} path\n\t   */\n\t  path: locationGetterSetter('$$path', function(path) {\n\t    path = path !== null ? path.toString() : '';\n\t    return path.charAt(0) == '/' ? path : '/' + path;\n\t  }),\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $location#search\n\t   *\n\t   * @description\n\t   * This method is getter / setter.\n\t   *\n\t   * Return search part (as object) of current url when called without any parameter.\n\t   *\n\t   * Change search part when called with parameter and return `$location`.\n\t   *\n\t   *\n\t   * ```js\n\t   * // given url http://example.com/#/some/path?foo=bar&baz=xoxo\n\t   * var searchObject = $location.search();\n\t   * // => {foo: 'bar', baz: 'xoxo'}\n\t   *\n\t   * // set foo to 'yipee'\n\t   * $location.search('foo', 'yipee');\n\t   * // $location.search() => {foo: 'yipee', baz: 'xoxo'}\n\t   * ```\n\t   *\n\t   * @param {string|Object.<string>|Object.<Array.<string>>} search New search params - string or\n\t   * hash object.\n\t   *\n\t   * When called with a single argument the method acts as a setter, setting the `search` component\n\t   * of `$location` to the specified value.\n\t   *\n\t   * If the argument is a hash object containing an array of values, these values will be encoded\n\t   * as duplicate search parameters in the url.\n\t   *\n\t   * @param {(string|Number|Array<string>|boolean)=} paramValue If `search` is a string or number, then `paramValue`\n\t   * will override only a single search property.\n\t   *\n\t   * If `paramValue` is an array, it will override the property of the `search` component of\n\t   * `$location` specified via the first argument.\n\t   *\n\t   * If `paramValue` is `null`, the property specified via the first argument will be deleted.\n\t   *\n\t   * If `paramValue` is `true`, the property specified via the first argument will be added with no\n\t   * value nor trailing equal sign.\n\t   *\n\t   * @return {Object} If called with no arguments returns the parsed `search` object. If called with\n\t   * one or more arguments returns `$location` object itself.\n\t   */\n\t  search: function(search, paramValue) {\n\t    switch (arguments.length) {\n\t      case 0:\n\t        return this.$$search;\n\t      case 1:\n\t        if (isString(search) || isNumber(search)) {\n\t          search = search.toString();\n\t          this.$$search = parseKeyValue(search);\n\t        } else if (isObject(search)) {\n\t          search = copy(search, {});\n\t          // remove object undefined or null properties\n\t          forEach(search, function(value, key) {\n\t            if (value == null) delete search[key];\n\t          });\n\n\t          this.$$search = search;\n\t        } else {\n\t          throw $locationMinErr('isrcharg',\n\t              'The first argument of the `$location#search()` call must be a string or an object.');\n\t        }\n\t        break;\n\t      default:\n\t        if (isUndefined(paramValue) || paramValue === null) {\n\t          delete this.$$search[search];\n\t        } else {\n\t          this.$$search[search] = paramValue;\n\t        }\n\t    }\n\n\t    this.$$compose();\n\t    return this;\n\t  },\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $location#hash\n\t   *\n\t   * @description\n\t   * This method is getter / setter.\n\t   *\n\t   * Returns the hash fragment when called without any parameters.\n\t   *\n\t   * Changes the hash fragment when called with a parameter and returns `$location`.\n\t   *\n\t   *\n\t   * ```js\n\t   * // given url http://example.com/#/some/path?foo=bar&baz=xoxo#hashValue\n\t   * var hash = $location.hash();\n\t   * // => \"hashValue\"\n\t   * ```\n\t   *\n\t   * @param {(string|number)=} hash New hash fragment\n\t   * @return {string} hash\n\t   */\n\t  hash: locationGetterSetter('$$hash', function(hash) {\n\t    return hash !== null ? hash.toString() : '';\n\t  }),\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $location#replace\n\t   *\n\t   * @description\n\t   * If called, all changes to $location during the current `$digest` will replace the current history\n\t   * record, instead of adding a new one.\n\t   */\n\t  replace: function() {\n\t    this.$$replace = true;\n\t    return this;\n\t  }\n\t};\n\n\tforEach([LocationHashbangInHtml5Url, LocationHashbangUrl, LocationHtml5Url], function(Location) {\n\t  Location.prototype = Object.create(locationPrototype);\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $location#state\n\t   *\n\t   * @description\n\t   * This method is getter / setter.\n\t   *\n\t   * Return the history state object when called without any parameter.\n\t   *\n\t   * Change the history state object when called with one parameter and return `$location`.\n\t   * The state object is later passed to `pushState` or `replaceState`.\n\t   *\n\t   * NOTE: This method is supported only in HTML5 mode and only in browsers supporting\n\t   * the HTML5 History API (i.e. methods `pushState` and `replaceState`). If you need to support\n\t   * older browsers (like IE9 or Android < 4.0), don't use this method.\n\t   *\n\t   * @param {object=} state State object for pushState or replaceState\n\t   * @return {object} state\n\t   */\n\t  Location.prototype.state = function(state) {\n\t    if (!arguments.length) {\n\t      return this.$$state;\n\t    }\n\n\t    if (Location !== LocationHtml5Url || !this.$$html5) {\n\t      throw $locationMinErr('nostate', 'History API state support is available only ' +\n\t        'in HTML5 mode and only in browsers supporting HTML5 History API');\n\t    }\n\t    // The user might modify `stateObject` after invoking `$location.state(stateObject)`\n\t    // but we're changing the $$state reference to $browser.state() during the $digest\n\t    // so the modification window is narrow.\n\t    this.$$state = isUndefined(state) ? null : state;\n\n\t    return this;\n\t  };\n\t});\n\n\n\tfunction locationGetter(property) {\n\t  return function() {\n\t    return this[property];\n\t  };\n\t}\n\n\n\tfunction locationGetterSetter(property, preprocess) {\n\t  return function(value) {\n\t    if (isUndefined(value)) {\n\t      return this[property];\n\t    }\n\n\t    this[property] = preprocess(value);\n\t    this.$$compose();\n\n\t    return this;\n\t  };\n\t}\n\n\n\t/**\n\t * @ngdoc service\n\t * @name $location\n\t *\n\t * @requires $rootElement\n\t *\n\t * @description\n\t * The $location service parses the URL in the browser address bar (based on the\n\t * [window.location](https://developer.mozilla.org/en/window.location)) and makes the URL\n\t * available to your application. Changes to the URL in the address bar are reflected into\n\t * $location service and changes to $location are reflected into the browser address bar.\n\t *\n\t * **The $location service:**\n\t *\n\t * - Exposes the current URL in the browser address bar, so you can\n\t *   - Watch and observe the URL.\n\t *   - Change the URL.\n\t * - Synchronizes the URL with the browser when the user\n\t *   - Changes the address bar.\n\t *   - Clicks the back or forward button (or clicks a History link).\n\t *   - Clicks on a link.\n\t * - Represents the URL object as a set of methods (protocol, host, port, path, search, hash).\n\t *\n\t * For more information see {@link guide/$location Developer Guide: Using $location}\n\t */\n\n\t/**\n\t * @ngdoc provider\n\t * @name $locationProvider\n\t * @description\n\t * Use the `$locationProvider` to configure how the application deep linking paths are stored.\n\t */\n\tfunction $LocationProvider() {\n\t  var hashPrefix = '',\n\t      html5Mode = {\n\t        enabled: false,\n\t        requireBase: true,\n\t        rewriteLinks: true\n\t      };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $locationProvider#hashPrefix\n\t   * @description\n\t   * @param {string=} prefix Prefix for hash part (containing path and search)\n\t   * @returns {*} current value if used as getter or itself (chaining) if used as setter\n\t   */\n\t  this.hashPrefix = function(prefix) {\n\t    if (isDefined(prefix)) {\n\t      hashPrefix = prefix;\n\t      return this;\n\t    } else {\n\t      return hashPrefix;\n\t    }\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $locationProvider#html5Mode\n\t   * @description\n\t   * @param {(boolean|Object)=} mode If boolean, sets `html5Mode.enabled` to value.\n\t   *   If object, sets `enabled`, `requireBase` and `rewriteLinks` to respective values. Supported\n\t   *   properties:\n\t   *   - **enabled** – `{boolean}` – (default: false) If true, will rely on `history.pushState` to\n\t   *     change urls where supported. Will fall back to hash-prefixed paths in browsers that do not\n\t   *     support `pushState`.\n\t   *   - **requireBase** - `{boolean}` - (default: `true`) When html5Mode is enabled, specifies\n\t   *     whether or not a <base> tag is required to be present. If `enabled` and `requireBase` are\n\t   *     true, and a base tag is not present, an error will be thrown when `$location` is injected.\n\t   *     See the {@link guide/$location $location guide for more information}\n\t   *   - **rewriteLinks** - `{boolean}` - (default: `true`) When html5Mode is enabled,\n\t   *     enables/disables url rewriting for relative links.\n\t   *\n\t   * @returns {Object} html5Mode object if used as getter or itself (chaining) if used as setter\n\t   */\n\t  this.html5Mode = function(mode) {\n\t    if (isBoolean(mode)) {\n\t      html5Mode.enabled = mode;\n\t      return this;\n\t    } else if (isObject(mode)) {\n\n\t      if (isBoolean(mode.enabled)) {\n\t        html5Mode.enabled = mode.enabled;\n\t      }\n\n\t      if (isBoolean(mode.requireBase)) {\n\t        html5Mode.requireBase = mode.requireBase;\n\t      }\n\n\t      if (isBoolean(mode.rewriteLinks)) {\n\t        html5Mode.rewriteLinks = mode.rewriteLinks;\n\t      }\n\n\t      return this;\n\t    } else {\n\t      return html5Mode;\n\t    }\n\t  };\n\n\t  /**\n\t   * @ngdoc event\n\t   * @name $location#$locationChangeStart\n\t   * @eventType broadcast on root scope\n\t   * @description\n\t   * Broadcasted before a URL will change.\n\t   *\n\t   * This change can be prevented by calling\n\t   * `preventDefault` method of the event. See {@link ng.$rootScope.Scope#$on} for more\n\t   * details about event object. Upon successful change\n\t   * {@link ng.$location#$locationChangeSuccess $locationChangeSuccess} is fired.\n\t   *\n\t   * The `newState` and `oldState` parameters may be defined only in HTML5 mode and when\n\t   * the browser supports the HTML5 History API.\n\t   *\n\t   * @param {Object} angularEvent Synthetic event object.\n\t   * @param {string} newUrl New URL\n\t   * @param {string=} oldUrl URL that was before it was changed.\n\t   * @param {string=} newState New history state object\n\t   * @param {string=} oldState History state object that was before it was changed.\n\t   */\n\n\t  /**\n\t   * @ngdoc event\n\t   * @name $location#$locationChangeSuccess\n\t   * @eventType broadcast on root scope\n\t   * @description\n\t   * Broadcasted after a URL was changed.\n\t   *\n\t   * The `newState` and `oldState` parameters may be defined only in HTML5 mode and when\n\t   * the browser supports the HTML5 History API.\n\t   *\n\t   * @param {Object} angularEvent Synthetic event object.\n\t   * @param {string} newUrl New URL\n\t   * @param {string=} oldUrl URL that was before it was changed.\n\t   * @param {string=} newState New history state object\n\t   * @param {string=} oldState History state object that was before it was changed.\n\t   */\n\n\t  this.$get = ['$rootScope', '$browser', '$sniffer', '$rootElement', '$window',\n\t      function($rootScope, $browser, $sniffer, $rootElement, $window) {\n\t    var $location,\n\t        LocationMode,\n\t        baseHref = $browser.baseHref(), // if base[href] is undefined, it defaults to ''\n\t        initialUrl = $browser.url(),\n\t        appBase;\n\n\t    if (html5Mode.enabled) {\n\t      if (!baseHref && html5Mode.requireBase) {\n\t        throw $locationMinErr('nobase',\n\t          \"$location in HTML5 mode requires a <base> tag to be present!\");\n\t      }\n\t      appBase = serverBase(initialUrl) + (baseHref || '/');\n\t      LocationMode = $sniffer.history ? LocationHtml5Url : LocationHashbangInHtml5Url;\n\t    } else {\n\t      appBase = stripHash(initialUrl);\n\t      LocationMode = LocationHashbangUrl;\n\t    }\n\t    var appBaseNoFile = stripFile(appBase);\n\n\t    $location = new LocationMode(appBase, appBaseNoFile, '#' + hashPrefix);\n\t    $location.$$parseLinkUrl(initialUrl, initialUrl);\n\n\t    $location.$$state = $browser.state();\n\n\t    var IGNORE_URI_REGEXP = /^\\s*(javascript|mailto):/i;\n\n\t    function setBrowserUrlWithFallback(url, replace, state) {\n\t      var oldUrl = $location.url();\n\t      var oldState = $location.$$state;\n\t      try {\n\t        $browser.url(url, replace, state);\n\n\t        // Make sure $location.state() returns referentially identical (not just deeply equal)\n\t        // state object; this makes possible quick checking if the state changed in the digest\n\t        // loop. Checking deep equality would be too expensive.\n\t        $location.$$state = $browser.state();\n\t      } catch (e) {\n\t        // Restore old values if pushState fails\n\t        $location.url(oldUrl);\n\t        $location.$$state = oldState;\n\n\t        throw e;\n\t      }\n\t    }\n\n\t    $rootElement.on('click', function(event) {\n\t      // TODO(vojta): rewrite link when opening in new tab/window (in legacy browser)\n\t      // currently we open nice url link and redirect then\n\n\t      if (!html5Mode.rewriteLinks || event.ctrlKey || event.metaKey || event.shiftKey || event.which == 2 || event.button == 2) return;\n\n\t      var elm = jqLite(event.target);\n\n\t      // traverse the DOM up to find first A tag\n\t      while (nodeName_(elm[0]) !== 'a') {\n\t        // ignore rewriting if no A tag (reached root element, or no parent - removed from document)\n\t        if (elm[0] === $rootElement[0] || !(elm = elm.parent())[0]) return;\n\t      }\n\n\t      var absHref = elm.prop('href');\n\t      // get the actual href attribute - see\n\t      // http://msdn.microsoft.com/en-us/library/ie/dd347148(v=vs.85).aspx\n\t      var relHref = elm.attr('href') || elm.attr('xlink:href');\n\n\t      if (isObject(absHref) && absHref.toString() === '[object SVGAnimatedString]') {\n\t        // SVGAnimatedString.animVal should be identical to SVGAnimatedString.baseVal, unless during\n\t        // an animation.\n\t        absHref = urlResolve(absHref.animVal).href;\n\t      }\n\n\t      // Ignore when url is started with javascript: or mailto:\n\t      if (IGNORE_URI_REGEXP.test(absHref)) return;\n\n\t      if (absHref && !elm.attr('target') && !event.isDefaultPrevented()) {\n\t        if ($location.$$parseLinkUrl(absHref, relHref)) {\n\t          // We do a preventDefault for all urls that are part of the angular application,\n\t          // in html5mode and also without, so that we are able to abort navigation without\n\t          // getting double entries in the location history.\n\t          event.preventDefault();\n\t          // update location manually\n\t          if ($location.absUrl() != $browser.url()) {\n\t            $rootScope.$apply();\n\t            // hack to work around FF6 bug 684208 when scenario runner clicks on links\n\t            $window.angular['ff-684208-preventDefault'] = true;\n\t          }\n\t        }\n\t      }\n\t    });\n\n\n\t    // rewrite hashbang url <> html5 url\n\t    if (trimEmptyHash($location.absUrl()) != trimEmptyHash(initialUrl)) {\n\t      $browser.url($location.absUrl(), true);\n\t    }\n\n\t    var initializing = true;\n\n\t    // update $location when $browser url changes\n\t    $browser.onUrlChange(function(newUrl, newState) {\n\n\t      if (isUndefined(beginsWith(appBaseNoFile, newUrl))) {\n\t        // If we are navigating outside of the app then force a reload\n\t        $window.location.href = newUrl;\n\t        return;\n\t      }\n\n\t      $rootScope.$evalAsync(function() {\n\t        var oldUrl = $location.absUrl();\n\t        var oldState = $location.$$state;\n\t        var defaultPrevented;\n\t        newUrl = trimEmptyHash(newUrl);\n\t        $location.$$parse(newUrl);\n\t        $location.$$state = newState;\n\n\t        defaultPrevented = $rootScope.$broadcast('$locationChangeStart', newUrl, oldUrl,\n\t            newState, oldState).defaultPrevented;\n\n\t        // if the location was changed by a `$locationChangeStart` handler then stop\n\t        // processing this location change\n\t        if ($location.absUrl() !== newUrl) return;\n\n\t        if (defaultPrevented) {\n\t          $location.$$parse(oldUrl);\n\t          $location.$$state = oldState;\n\t          setBrowserUrlWithFallback(oldUrl, false, oldState);\n\t        } else {\n\t          initializing = false;\n\t          afterLocationChange(oldUrl, oldState);\n\t        }\n\t      });\n\t      if (!$rootScope.$$phase) $rootScope.$digest();\n\t    });\n\n\t    // update browser\n\t    $rootScope.$watch(function $locationWatch() {\n\t      var oldUrl = trimEmptyHash($browser.url());\n\t      var newUrl = trimEmptyHash($location.absUrl());\n\t      var oldState = $browser.state();\n\t      var currentReplace = $location.$$replace;\n\t      var urlOrStateChanged = oldUrl !== newUrl ||\n\t        ($location.$$html5 && $sniffer.history && oldState !== $location.$$state);\n\n\t      if (initializing || urlOrStateChanged) {\n\t        initializing = false;\n\n\t        $rootScope.$evalAsync(function() {\n\t          var newUrl = $location.absUrl();\n\t          var defaultPrevented = $rootScope.$broadcast('$locationChangeStart', newUrl, oldUrl,\n\t              $location.$$state, oldState).defaultPrevented;\n\n\t          // if the location was changed by a `$locationChangeStart` handler then stop\n\t          // processing this location change\n\t          if ($location.absUrl() !== newUrl) return;\n\n\t          if (defaultPrevented) {\n\t            $location.$$parse(oldUrl);\n\t            $location.$$state = oldState;\n\t          } else {\n\t            if (urlOrStateChanged) {\n\t              setBrowserUrlWithFallback(newUrl, currentReplace,\n\t                                        oldState === $location.$$state ? null : $location.$$state);\n\t            }\n\t            afterLocationChange(oldUrl, oldState);\n\t          }\n\t        });\n\t      }\n\n\t      $location.$$replace = false;\n\n\t      // we don't need to return anything because $evalAsync will make the digest loop dirty when\n\t      // there is a change\n\t    });\n\n\t    return $location;\n\n\t    function afterLocationChange(oldUrl, oldState) {\n\t      $rootScope.$broadcast('$locationChangeSuccess', $location.absUrl(), oldUrl,\n\t        $location.$$state, oldState);\n\t    }\n\t}];\n\t}\n\n\t/**\n\t * @ngdoc service\n\t * @name $log\n\t * @requires $window\n\t *\n\t * @description\n\t * Simple service for logging. Default implementation safely writes the message\n\t * into the browser's console (if present).\n\t *\n\t * The main purpose of this service is to simplify debugging and troubleshooting.\n\t *\n\t * The default is to log `debug` messages. You can use\n\t * {@link ng.$logProvider ng.$logProvider#debugEnabled} to change this.\n\t *\n\t * @example\n\t   <example module=\"logExample\">\n\t     <file name=\"script.js\">\n\t       angular.module('logExample', [])\n\t         .controller('LogController', ['$scope', '$log', function($scope, $log) {\n\t           $scope.$log = $log;\n\t           $scope.message = 'Hello World!';\n\t         }]);\n\t     </file>\n\t     <file name=\"index.html\">\n\t       <div ng-controller=\"LogController\">\n\t         <p>Reload this page with open console, enter text and hit the log button...</p>\n\t         <label>Message:\n\t         <input type=\"text\" ng-model=\"message\" /></label>\n\t         <button ng-click=\"$log.log(message)\">log</button>\n\t         <button ng-click=\"$log.warn(message)\">warn</button>\n\t         <button ng-click=\"$log.info(message)\">info</button>\n\t         <button ng-click=\"$log.error(message)\">error</button>\n\t         <button ng-click=\"$log.debug(message)\">debug</button>\n\t       </div>\n\t     </file>\n\t   </example>\n\t */\n\n\t/**\n\t * @ngdoc provider\n\t * @name $logProvider\n\t * @description\n\t * Use the `$logProvider` to configure how the application logs messages\n\t */\n\tfunction $LogProvider() {\n\t  var debug = true,\n\t      self = this;\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $logProvider#debugEnabled\n\t   * @description\n\t   * @param {boolean=} flag enable or disable debug level messages\n\t   * @returns {*} current value if used as getter or itself (chaining) if used as setter\n\t   */\n\t  this.debugEnabled = function(flag) {\n\t    if (isDefined(flag)) {\n\t      debug = flag;\n\t    return this;\n\t    } else {\n\t      return debug;\n\t    }\n\t  };\n\n\t  this.$get = ['$window', function($window) {\n\t    return {\n\t      /**\n\t       * @ngdoc method\n\t       * @name $log#log\n\t       *\n\t       * @description\n\t       * Write a log message\n\t       */\n\t      log: consoleLog('log'),\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $log#info\n\t       *\n\t       * @description\n\t       * Write an information message\n\t       */\n\t      info: consoleLog('info'),\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $log#warn\n\t       *\n\t       * @description\n\t       * Write a warning message\n\t       */\n\t      warn: consoleLog('warn'),\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $log#error\n\t       *\n\t       * @description\n\t       * Write an error message\n\t       */\n\t      error: consoleLog('error'),\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $log#debug\n\t       *\n\t       * @description\n\t       * Write a debug message\n\t       */\n\t      debug: (function() {\n\t        var fn = consoleLog('debug');\n\n\t        return function() {\n\t          if (debug) {\n\t            fn.apply(self, arguments);\n\t          }\n\t        };\n\t      }())\n\t    };\n\n\t    function formatError(arg) {\n\t      if (arg instanceof Error) {\n\t        if (arg.stack) {\n\t          arg = (arg.message && arg.stack.indexOf(arg.message) === -1)\n\t              ? 'Error: ' + arg.message + '\\n' + arg.stack\n\t              : arg.stack;\n\t        } else if (arg.sourceURL) {\n\t          arg = arg.message + '\\n' + arg.sourceURL + ':' + arg.line;\n\t        }\n\t      }\n\t      return arg;\n\t    }\n\n\t    function consoleLog(type) {\n\t      var console = $window.console || {},\n\t          logFn = console[type] || console.log || noop,\n\t          hasApply = false;\n\n\t      // Note: reading logFn.apply throws an error in IE11 in IE8 document mode.\n\t      // The reason behind this is that console.log has type \"object\" in IE8...\n\t      try {\n\t        hasApply = !!logFn.apply;\n\t      } catch (e) {}\n\n\t      if (hasApply) {\n\t        return function() {\n\t          var args = [];\n\t          forEach(arguments, function(arg) {\n\t            args.push(formatError(arg));\n\t          });\n\t          return logFn.apply(console, args);\n\t        };\n\t      }\n\n\t      // we are IE which either doesn't have window.console => this is noop and we do nothing,\n\t      // or we are IE where console.log doesn't have apply so we log at least first 2 args\n\t      return function(arg1, arg2) {\n\t        logFn(arg1, arg2 == null ? '' : arg2);\n\t      };\n\t    }\n\t  }];\n\t}\n\n\t/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\n\t *     Any commits to this file should be reviewed with security in mind.  *\n\t *   Changes to this file can potentially create security vulnerabilities. *\n\t *          An approval from 2 Core members with history of modifying      *\n\t *                         this file is required.                          *\n\t *                                                                         *\n\t *  Does the change somehow allow for arbitrary javascript to be executed? *\n\t *    Or allows for someone to change the prototype of built-in objects?   *\n\t *     Or gives undesired access to variables likes document or window?    *\n\t * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */\n\n\tvar $parseMinErr = minErr('$parse');\n\n\t// Sandboxing Angular Expressions\n\t// ------------------------------\n\t// Angular expressions are generally considered safe because these expressions only have direct\n\t// access to `$scope` and locals. However, one can obtain the ability to execute arbitrary JS code by\n\t// obtaining a reference to native JS functions such as the Function constructor.\n\t//\n\t// As an example, consider the following Angular expression:\n\t//\n\t//   {}.toString.constructor('alert(\"evil JS code\")')\n\t//\n\t// This sandboxing technique is not perfect and doesn't aim to be. The goal is to prevent exploits\n\t// against the expression language, but not to prevent exploits that were enabled by exposing\n\t// sensitive JavaScript or browser APIs on Scope. Exposing such objects on a Scope is never a good\n\t// practice and therefore we are not even trying to protect against interaction with an object\n\t// explicitly exposed in this way.\n\t//\n\t// In general, it is not possible to access a Window object from an angular expression unless a\n\t// window or some DOM object that has a reference to window is published onto a Scope.\n\t// Similarly we prevent invocations of function known to be dangerous, as well as assignments to\n\t// native objects.\n\t//\n\t// See https://docs.angularjs.org/guide/security\n\n\n\tfunction ensureSafeMemberName(name, fullExpression) {\n\t  if (name === \"__defineGetter__\" || name === \"__defineSetter__\"\n\t      || name === \"__lookupGetter__\" || name === \"__lookupSetter__\"\n\t      || name === \"__proto__\") {\n\t    throw $parseMinErr('isecfld',\n\t        'Attempting to access a disallowed field in Angular expressions! '\n\t        + 'Expression: {0}', fullExpression);\n\t  }\n\t  return name;\n\t}\n\n\tfunction getStringValue(name, fullExpression) {\n\t  // From the JavaScript docs:\n\t  // Property names must be strings. This means that non-string objects cannot be used\n\t  // as keys in an object. Any non-string object, including a number, is typecasted\n\t  // into a string via the toString method.\n\t  //\n\t  // So, to ensure that we are checking the same `name` that JavaScript would use,\n\t  // we cast it to a string, if possible.\n\t  // Doing `name + ''` can cause a repl error if the result to `toString` is not a string,\n\t  // this is, this will handle objects that misbehave.\n\t  name = name + '';\n\t  if (!isString(name)) {\n\t    throw $parseMinErr('iseccst',\n\t        'Cannot convert object to primitive value! '\n\t        + 'Expression: {0}', fullExpression);\n\t  }\n\t  return name;\n\t}\n\n\tfunction ensureSafeObject(obj, fullExpression) {\n\t  // nifty check if obj is Function that is fast and works across iframes and other contexts\n\t  if (obj) {\n\t    if (obj.constructor === obj) {\n\t      throw $parseMinErr('isecfn',\n\t          'Referencing Function in Angular expressions is disallowed! Expression: {0}',\n\t          fullExpression);\n\t    } else if (// isWindow(obj)\n\t        obj.window === obj) {\n\t      throw $parseMinErr('isecwindow',\n\t          'Referencing the Window in Angular expressions is disallowed! Expression: {0}',\n\t          fullExpression);\n\t    } else if (// isElement(obj)\n\t        obj.children && (obj.nodeName || (obj.prop && obj.attr && obj.find))) {\n\t      throw $parseMinErr('isecdom',\n\t          'Referencing DOM nodes in Angular expressions is disallowed! Expression: {0}',\n\t          fullExpression);\n\t    } else if (// block Object so that we can't get hold of dangerous Object.* methods\n\t        obj === Object) {\n\t      throw $parseMinErr('isecobj',\n\t          'Referencing Object in Angular expressions is disallowed! Expression: {0}',\n\t          fullExpression);\n\t    }\n\t  }\n\t  return obj;\n\t}\n\n\tvar CALL = Function.prototype.call;\n\tvar APPLY = Function.prototype.apply;\n\tvar BIND = Function.prototype.bind;\n\n\tfunction ensureSafeFunction(obj, fullExpression) {\n\t  if (obj) {\n\t    if (obj.constructor === obj) {\n\t      throw $parseMinErr('isecfn',\n\t        'Referencing Function in Angular expressions is disallowed! Expression: {0}',\n\t        fullExpression);\n\t    } else if (obj === CALL || obj === APPLY || obj === BIND) {\n\t      throw $parseMinErr('isecff',\n\t        'Referencing call, apply or bind in Angular expressions is disallowed! Expression: {0}',\n\t        fullExpression);\n\t    }\n\t  }\n\t}\n\n\tfunction ensureSafeAssignContext(obj, fullExpression) {\n\t  if (obj) {\n\t    if (obj === (0).constructor || obj === (false).constructor || obj === ''.constructor ||\n\t        obj === {}.constructor || obj === [].constructor || obj === Function.constructor) {\n\t      throw $parseMinErr('isecaf',\n\t        'Assigning to a constructor is disallowed! Expression: {0}', fullExpression);\n\t    }\n\t  }\n\t}\n\n\tvar OPERATORS = createMap();\n\tforEach('+ - * / % === !== == != < > <= >= && || ! = |'.split(' '), function(operator) { OPERATORS[operator] = true; });\n\tvar ESCAPE = {\"n\":\"\\n\", \"f\":\"\\f\", \"r\":\"\\r\", \"t\":\"\\t\", \"v\":\"\\v\", \"'\":\"'\", '\"':'\"'};\n\n\n\t/////////////////////////////////////////\n\n\n\t/**\n\t * @constructor\n\t */\n\tvar Lexer = function(options) {\n\t  this.options = options;\n\t};\n\n\tLexer.prototype = {\n\t  constructor: Lexer,\n\n\t  lex: function(text) {\n\t    this.text = text;\n\t    this.index = 0;\n\t    this.tokens = [];\n\n\t    while (this.index < this.text.length) {\n\t      var ch = this.text.charAt(this.index);\n\t      if (ch === '\"' || ch === \"'\") {\n\t        this.readString(ch);\n\t      } else if (this.isNumber(ch) || ch === '.' && this.isNumber(this.peek())) {\n\t        this.readNumber();\n\t      } else if (this.isIdent(ch)) {\n\t        this.readIdent();\n\t      } else if (this.is(ch, '(){}[].,;:?')) {\n\t        this.tokens.push({index: this.index, text: ch});\n\t        this.index++;\n\t      } else if (this.isWhitespace(ch)) {\n\t        this.index++;\n\t      } else {\n\t        var ch2 = ch + this.peek();\n\t        var ch3 = ch2 + this.peek(2);\n\t        var op1 = OPERATORS[ch];\n\t        var op2 = OPERATORS[ch2];\n\t        var op3 = OPERATORS[ch3];\n\t        if (op1 || op2 || op3) {\n\t          var token = op3 ? ch3 : (op2 ? ch2 : ch);\n\t          this.tokens.push({index: this.index, text: token, operator: true});\n\t          this.index += token.length;\n\t        } else {\n\t          this.throwError('Unexpected next character ', this.index, this.index + 1);\n\t        }\n\t      }\n\t    }\n\t    return this.tokens;\n\t  },\n\n\t  is: function(ch, chars) {\n\t    return chars.indexOf(ch) !== -1;\n\t  },\n\n\t  peek: function(i) {\n\t    var num = i || 1;\n\t    return (this.index + num < this.text.length) ? this.text.charAt(this.index + num) : false;\n\t  },\n\n\t  isNumber: function(ch) {\n\t    return ('0' <= ch && ch <= '9') && typeof ch === \"string\";\n\t  },\n\n\t  isWhitespace: function(ch) {\n\t    // IE treats non-breaking space as \\u00A0\n\t    return (ch === ' ' || ch === '\\r' || ch === '\\t' ||\n\t            ch === '\\n' || ch === '\\v' || ch === '\\u00A0');\n\t  },\n\n\t  isIdent: function(ch) {\n\t    return ('a' <= ch && ch <= 'z' ||\n\t            'A' <= ch && ch <= 'Z' ||\n\t            '_' === ch || ch === '$');\n\t  },\n\n\t  isExpOperator: function(ch) {\n\t    return (ch === '-' || ch === '+' || this.isNumber(ch));\n\t  },\n\n\t  throwError: function(error, start, end) {\n\t    end = end || this.index;\n\t    var colStr = (isDefined(start)\n\t            ? 's ' + start +  '-' + this.index + ' [' + this.text.substring(start, end) + ']'\n\t            : ' ' + end);\n\t    throw $parseMinErr('lexerr', 'Lexer Error: {0} at column{1} in expression [{2}].',\n\t        error, colStr, this.text);\n\t  },\n\n\t  readNumber: function() {\n\t    var number = '';\n\t    var start = this.index;\n\t    while (this.index < this.text.length) {\n\t      var ch = lowercase(this.text.charAt(this.index));\n\t      if (ch == '.' || this.isNumber(ch)) {\n\t        number += ch;\n\t      } else {\n\t        var peekCh = this.peek();\n\t        if (ch == 'e' && this.isExpOperator(peekCh)) {\n\t          number += ch;\n\t        } else if (this.isExpOperator(ch) &&\n\t            peekCh && this.isNumber(peekCh) &&\n\t            number.charAt(number.length - 1) == 'e') {\n\t          number += ch;\n\t        } else if (this.isExpOperator(ch) &&\n\t            (!peekCh || !this.isNumber(peekCh)) &&\n\t            number.charAt(number.length - 1) == 'e') {\n\t          this.throwError('Invalid exponent');\n\t        } else {\n\t          break;\n\t        }\n\t      }\n\t      this.index++;\n\t    }\n\t    this.tokens.push({\n\t      index: start,\n\t      text: number,\n\t      constant: true,\n\t      value: Number(number)\n\t    });\n\t  },\n\n\t  readIdent: function() {\n\t    var start = this.index;\n\t    while (this.index < this.text.length) {\n\t      var ch = this.text.charAt(this.index);\n\t      if (!(this.isIdent(ch) || this.isNumber(ch))) {\n\t        break;\n\t      }\n\t      this.index++;\n\t    }\n\t    this.tokens.push({\n\t      index: start,\n\t      text: this.text.slice(start, this.index),\n\t      identifier: true\n\t    });\n\t  },\n\n\t  readString: function(quote) {\n\t    var start = this.index;\n\t    this.index++;\n\t    var string = '';\n\t    var rawString = quote;\n\t    var escape = false;\n\t    while (this.index < this.text.length) {\n\t      var ch = this.text.charAt(this.index);\n\t      rawString += ch;\n\t      if (escape) {\n\t        if (ch === 'u') {\n\t          var hex = this.text.substring(this.index + 1, this.index + 5);\n\t          if (!hex.match(/[\\da-f]{4}/i)) {\n\t            this.throwError('Invalid unicode escape [\\\\u' + hex + ']');\n\t          }\n\t          this.index += 4;\n\t          string += String.fromCharCode(parseInt(hex, 16));\n\t        } else {\n\t          var rep = ESCAPE[ch];\n\t          string = string + (rep || ch);\n\t        }\n\t        escape = false;\n\t      } else if (ch === '\\\\') {\n\t        escape = true;\n\t      } else if (ch === quote) {\n\t        this.index++;\n\t        this.tokens.push({\n\t          index: start,\n\t          text: rawString,\n\t          constant: true,\n\t          value: string\n\t        });\n\t        return;\n\t      } else {\n\t        string += ch;\n\t      }\n\t      this.index++;\n\t    }\n\t    this.throwError('Unterminated quote', start);\n\t  }\n\t};\n\n\tvar AST = function(lexer, options) {\n\t  this.lexer = lexer;\n\t  this.options = options;\n\t};\n\n\tAST.Program = 'Program';\n\tAST.ExpressionStatement = 'ExpressionStatement';\n\tAST.AssignmentExpression = 'AssignmentExpression';\n\tAST.ConditionalExpression = 'ConditionalExpression';\n\tAST.LogicalExpression = 'LogicalExpression';\n\tAST.BinaryExpression = 'BinaryExpression';\n\tAST.UnaryExpression = 'UnaryExpression';\n\tAST.CallExpression = 'CallExpression';\n\tAST.MemberExpression = 'MemberExpression';\n\tAST.Identifier = 'Identifier';\n\tAST.Literal = 'Literal';\n\tAST.ArrayExpression = 'ArrayExpression';\n\tAST.Property = 'Property';\n\tAST.ObjectExpression = 'ObjectExpression';\n\tAST.ThisExpression = 'ThisExpression';\n\n\t// Internal use only\n\tAST.NGValueParameter = 'NGValueParameter';\n\n\tAST.prototype = {\n\t  ast: function(text) {\n\t    this.text = text;\n\t    this.tokens = this.lexer.lex(text);\n\n\t    var value = this.program();\n\n\t    if (this.tokens.length !== 0) {\n\t      this.throwError('is an unexpected token', this.tokens[0]);\n\t    }\n\n\t    return value;\n\t  },\n\n\t  program: function() {\n\t    var body = [];\n\t    while (true) {\n\t      if (this.tokens.length > 0 && !this.peek('}', ')', ';', ']'))\n\t        body.push(this.expressionStatement());\n\t      if (!this.expect(';')) {\n\t        return { type: AST.Program, body: body};\n\t      }\n\t    }\n\t  },\n\n\t  expressionStatement: function() {\n\t    return { type: AST.ExpressionStatement, expression: this.filterChain() };\n\t  },\n\n\t  filterChain: function() {\n\t    var left = this.expression();\n\t    var token;\n\t    while ((token = this.expect('|'))) {\n\t      left = this.filter(left);\n\t    }\n\t    return left;\n\t  },\n\n\t  expression: function() {\n\t    return this.assignment();\n\t  },\n\n\t  assignment: function() {\n\t    var result = this.ternary();\n\t    if (this.expect('=')) {\n\t      result = { type: AST.AssignmentExpression, left: result, right: this.assignment(), operator: '='};\n\t    }\n\t    return result;\n\t  },\n\n\t  ternary: function() {\n\t    var test = this.logicalOR();\n\t    var alternate;\n\t    var consequent;\n\t    if (this.expect('?')) {\n\t      alternate = this.expression();\n\t      if (this.consume(':')) {\n\t        consequent = this.expression();\n\t        return { type: AST.ConditionalExpression, test: test, alternate: alternate, consequent: consequent};\n\t      }\n\t    }\n\t    return test;\n\t  },\n\n\t  logicalOR: function() {\n\t    var left = this.logicalAND();\n\t    while (this.expect('||')) {\n\t      left = { type: AST.LogicalExpression, operator: '||', left: left, right: this.logicalAND() };\n\t    }\n\t    return left;\n\t  },\n\n\t  logicalAND: function() {\n\t    var left = this.equality();\n\t    while (this.expect('&&')) {\n\t      left = { type: AST.LogicalExpression, operator: '&&', left: left, right: this.equality()};\n\t    }\n\t    return left;\n\t  },\n\n\t  equality: function() {\n\t    var left = this.relational();\n\t    var token;\n\t    while ((token = this.expect('==','!=','===','!=='))) {\n\t      left = { type: AST.BinaryExpression, operator: token.text, left: left, right: this.relational() };\n\t    }\n\t    return left;\n\t  },\n\n\t  relational: function() {\n\t    var left = this.additive();\n\t    var token;\n\t    while ((token = this.expect('<', '>', '<=', '>='))) {\n\t      left = { type: AST.BinaryExpression, operator: token.text, left: left, right: this.additive() };\n\t    }\n\t    return left;\n\t  },\n\n\t  additive: function() {\n\t    var left = this.multiplicative();\n\t    var token;\n\t    while ((token = this.expect('+','-'))) {\n\t      left = { type: AST.BinaryExpression, operator: token.text, left: left, right: this.multiplicative() };\n\t    }\n\t    return left;\n\t  },\n\n\t  multiplicative: function() {\n\t    var left = this.unary();\n\t    var token;\n\t    while ((token = this.expect('*','/','%'))) {\n\t      left = { type: AST.BinaryExpression, operator: token.text, left: left, right: this.unary() };\n\t    }\n\t    return left;\n\t  },\n\n\t  unary: function() {\n\t    var token;\n\t    if ((token = this.expect('+', '-', '!'))) {\n\t      return { type: AST.UnaryExpression, operator: token.text, prefix: true, argument: this.unary() };\n\t    } else {\n\t      return this.primary();\n\t    }\n\t  },\n\n\t  primary: function() {\n\t    var primary;\n\t    if (this.expect('(')) {\n\t      primary = this.filterChain();\n\t      this.consume(')');\n\t    } else if (this.expect('[')) {\n\t      primary = this.arrayDeclaration();\n\t    } else if (this.expect('{')) {\n\t      primary = this.object();\n\t    } else if (this.constants.hasOwnProperty(this.peek().text)) {\n\t      primary = copy(this.constants[this.consume().text]);\n\t    } else if (this.peek().identifier) {\n\t      primary = this.identifier();\n\t    } else if (this.peek().constant) {\n\t      primary = this.constant();\n\t    } else {\n\t      this.throwError('not a primary expression', this.peek());\n\t    }\n\n\t    var next;\n\t    while ((next = this.expect('(', '[', '.'))) {\n\t      if (next.text === '(') {\n\t        primary = {type: AST.CallExpression, callee: primary, arguments: this.parseArguments() };\n\t        this.consume(')');\n\t      } else if (next.text === '[') {\n\t        primary = { type: AST.MemberExpression, object: primary, property: this.expression(), computed: true };\n\t        this.consume(']');\n\t      } else if (next.text === '.') {\n\t        primary = { type: AST.MemberExpression, object: primary, property: this.identifier(), computed: false };\n\t      } else {\n\t        this.throwError('IMPOSSIBLE');\n\t      }\n\t    }\n\t    return primary;\n\t  },\n\n\t  filter: function(baseExpression) {\n\t    var args = [baseExpression];\n\t    var result = {type: AST.CallExpression, callee: this.identifier(), arguments: args, filter: true};\n\n\t    while (this.expect(':')) {\n\t      args.push(this.expression());\n\t    }\n\n\t    return result;\n\t  },\n\n\t  parseArguments: function() {\n\t    var args = [];\n\t    if (this.peekToken().text !== ')') {\n\t      do {\n\t        args.push(this.expression());\n\t      } while (this.expect(','));\n\t    }\n\t    return args;\n\t  },\n\n\t  identifier: function() {\n\t    var token = this.consume();\n\t    if (!token.identifier) {\n\t      this.throwError('is not a valid identifier', token);\n\t    }\n\t    return { type: AST.Identifier, name: token.text };\n\t  },\n\n\t  constant: function() {\n\t    // TODO check that it is a constant\n\t    return { type: AST.Literal, value: this.consume().value };\n\t  },\n\n\t  arrayDeclaration: function() {\n\t    var elements = [];\n\t    if (this.peekToken().text !== ']') {\n\t      do {\n\t        if (this.peek(']')) {\n\t          // Support trailing commas per ES5.1.\n\t          break;\n\t        }\n\t        elements.push(this.expression());\n\t      } while (this.expect(','));\n\t    }\n\t    this.consume(']');\n\n\t    return { type: AST.ArrayExpression, elements: elements };\n\t  },\n\n\t  object: function() {\n\t    var properties = [], property;\n\t    if (this.peekToken().text !== '}') {\n\t      do {\n\t        if (this.peek('}')) {\n\t          // Support trailing commas per ES5.1.\n\t          break;\n\t        }\n\t        property = {type: AST.Property, kind: 'init'};\n\t        if (this.peek().constant) {\n\t          property.key = this.constant();\n\t        } else if (this.peek().identifier) {\n\t          property.key = this.identifier();\n\t        } else {\n\t          this.throwError(\"invalid key\", this.peek());\n\t        }\n\t        this.consume(':');\n\t        property.value = this.expression();\n\t        properties.push(property);\n\t      } while (this.expect(','));\n\t    }\n\t    this.consume('}');\n\n\t    return {type: AST.ObjectExpression, properties: properties };\n\t  },\n\n\t  throwError: function(msg, token) {\n\t    throw $parseMinErr('syntax',\n\t        'Syntax Error: Token \\'{0}\\' {1} at column {2} of the expression [{3}] starting at [{4}].',\n\t          token.text, msg, (token.index + 1), this.text, this.text.substring(token.index));\n\t  },\n\n\t  consume: function(e1) {\n\t    if (this.tokens.length === 0) {\n\t      throw $parseMinErr('ueoe', 'Unexpected end of expression: {0}', this.text);\n\t    }\n\n\t    var token = this.expect(e1);\n\t    if (!token) {\n\t      this.throwError('is unexpected, expecting [' + e1 + ']', this.peek());\n\t    }\n\t    return token;\n\t  },\n\n\t  peekToken: function() {\n\t    if (this.tokens.length === 0) {\n\t      throw $parseMinErr('ueoe', 'Unexpected end of expression: {0}', this.text);\n\t    }\n\t    return this.tokens[0];\n\t  },\n\n\t  peek: function(e1, e2, e3, e4) {\n\t    return this.peekAhead(0, e1, e2, e3, e4);\n\t  },\n\n\t  peekAhead: function(i, e1, e2, e3, e4) {\n\t    if (this.tokens.length > i) {\n\t      var token = this.tokens[i];\n\t      var t = token.text;\n\t      if (t === e1 || t === e2 || t === e3 || t === e4 ||\n\t          (!e1 && !e2 && !e3 && !e4)) {\n\t        return token;\n\t      }\n\t    }\n\t    return false;\n\t  },\n\n\t  expect: function(e1, e2, e3, e4) {\n\t    var token = this.peek(e1, e2, e3, e4);\n\t    if (token) {\n\t      this.tokens.shift();\n\t      return token;\n\t    }\n\t    return false;\n\t  },\n\n\n\t  /* `undefined` is not a constant, it is an identifier,\n\t   * but using it as an identifier is not supported\n\t   */\n\t  constants: {\n\t    'true': { type: AST.Literal, value: true },\n\t    'false': { type: AST.Literal, value: false },\n\t    'null': { type: AST.Literal, value: null },\n\t    'undefined': {type: AST.Literal, value: undefined },\n\t    'this': {type: AST.ThisExpression }\n\t  }\n\t};\n\n\tfunction ifDefined(v, d) {\n\t  return typeof v !== 'undefined' ? v : d;\n\t}\n\n\tfunction plusFn(l, r) {\n\t  if (typeof l === 'undefined') return r;\n\t  if (typeof r === 'undefined') return l;\n\t  return l + r;\n\t}\n\n\tfunction isStateless($filter, filterName) {\n\t  var fn = $filter(filterName);\n\t  return !fn.$stateful;\n\t}\n\n\tfunction findConstantAndWatchExpressions(ast, $filter) {\n\t  var allConstants;\n\t  var argsToWatch;\n\t  switch (ast.type) {\n\t  case AST.Program:\n\t    allConstants = true;\n\t    forEach(ast.body, function(expr) {\n\t      findConstantAndWatchExpressions(expr.expression, $filter);\n\t      allConstants = allConstants && expr.expression.constant;\n\t    });\n\t    ast.constant = allConstants;\n\t    break;\n\t  case AST.Literal:\n\t    ast.constant = true;\n\t    ast.toWatch = [];\n\t    break;\n\t  case AST.UnaryExpression:\n\t    findConstantAndWatchExpressions(ast.argument, $filter);\n\t    ast.constant = ast.argument.constant;\n\t    ast.toWatch = ast.argument.toWatch;\n\t    break;\n\t  case AST.BinaryExpression:\n\t    findConstantAndWatchExpressions(ast.left, $filter);\n\t    findConstantAndWatchExpressions(ast.right, $filter);\n\t    ast.constant = ast.left.constant && ast.right.constant;\n\t    ast.toWatch = ast.left.toWatch.concat(ast.right.toWatch);\n\t    break;\n\t  case AST.LogicalExpression:\n\t    findConstantAndWatchExpressions(ast.left, $filter);\n\t    findConstantAndWatchExpressions(ast.right, $filter);\n\t    ast.constant = ast.left.constant && ast.right.constant;\n\t    ast.toWatch = ast.constant ? [] : [ast];\n\t    break;\n\t  case AST.ConditionalExpression:\n\t    findConstantAndWatchExpressions(ast.test, $filter);\n\t    findConstantAndWatchExpressions(ast.alternate, $filter);\n\t    findConstantAndWatchExpressions(ast.consequent, $filter);\n\t    ast.constant = ast.test.constant && ast.alternate.constant && ast.consequent.constant;\n\t    ast.toWatch = ast.constant ? [] : [ast];\n\t    break;\n\t  case AST.Identifier:\n\t    ast.constant = false;\n\t    ast.toWatch = [ast];\n\t    break;\n\t  case AST.MemberExpression:\n\t    findConstantAndWatchExpressions(ast.object, $filter);\n\t    if (ast.computed) {\n\t      findConstantAndWatchExpressions(ast.property, $filter);\n\t    }\n\t    ast.constant = ast.object.constant && (!ast.computed || ast.property.constant);\n\t    ast.toWatch = [ast];\n\t    break;\n\t  case AST.CallExpression:\n\t    allConstants = ast.filter ? isStateless($filter, ast.callee.name) : false;\n\t    argsToWatch = [];\n\t    forEach(ast.arguments, function(expr) {\n\t      findConstantAndWatchExpressions(expr, $filter);\n\t      allConstants = allConstants && expr.constant;\n\t      if (!expr.constant) {\n\t        argsToWatch.push.apply(argsToWatch, expr.toWatch);\n\t      }\n\t    });\n\t    ast.constant = allConstants;\n\t    ast.toWatch = ast.filter && isStateless($filter, ast.callee.name) ? argsToWatch : [ast];\n\t    break;\n\t  case AST.AssignmentExpression:\n\t    findConstantAndWatchExpressions(ast.left, $filter);\n\t    findConstantAndWatchExpressions(ast.right, $filter);\n\t    ast.constant = ast.left.constant && ast.right.constant;\n\t    ast.toWatch = [ast];\n\t    break;\n\t  case AST.ArrayExpression:\n\t    allConstants = true;\n\t    argsToWatch = [];\n\t    forEach(ast.elements, function(expr) {\n\t      findConstantAndWatchExpressions(expr, $filter);\n\t      allConstants = allConstants && expr.constant;\n\t      if (!expr.constant) {\n\t        argsToWatch.push.apply(argsToWatch, expr.toWatch);\n\t      }\n\t    });\n\t    ast.constant = allConstants;\n\t    ast.toWatch = argsToWatch;\n\t    break;\n\t  case AST.ObjectExpression:\n\t    allConstants = true;\n\t    argsToWatch = [];\n\t    forEach(ast.properties, function(property) {\n\t      findConstantAndWatchExpressions(property.value, $filter);\n\t      allConstants = allConstants && property.value.constant;\n\t      if (!property.value.constant) {\n\t        argsToWatch.push.apply(argsToWatch, property.value.toWatch);\n\t      }\n\t    });\n\t    ast.constant = allConstants;\n\t    ast.toWatch = argsToWatch;\n\t    break;\n\t  case AST.ThisExpression:\n\t    ast.constant = false;\n\t    ast.toWatch = [];\n\t    break;\n\t  }\n\t}\n\n\tfunction getInputs(body) {\n\t  if (body.length != 1) return;\n\t  var lastExpression = body[0].expression;\n\t  var candidate = lastExpression.toWatch;\n\t  if (candidate.length !== 1) return candidate;\n\t  return candidate[0] !== lastExpression ? candidate : undefined;\n\t}\n\n\tfunction isAssignable(ast) {\n\t  return ast.type === AST.Identifier || ast.type === AST.MemberExpression;\n\t}\n\n\tfunction assignableAST(ast) {\n\t  if (ast.body.length === 1 && isAssignable(ast.body[0].expression)) {\n\t    return {type: AST.AssignmentExpression, left: ast.body[0].expression, right: {type: AST.NGValueParameter}, operator: '='};\n\t  }\n\t}\n\n\tfunction isLiteral(ast) {\n\t  return ast.body.length === 0 ||\n\t      ast.body.length === 1 && (\n\t      ast.body[0].expression.type === AST.Literal ||\n\t      ast.body[0].expression.type === AST.ArrayExpression ||\n\t      ast.body[0].expression.type === AST.ObjectExpression);\n\t}\n\n\tfunction isConstant(ast) {\n\t  return ast.constant;\n\t}\n\n\tfunction ASTCompiler(astBuilder, $filter) {\n\t  this.astBuilder = astBuilder;\n\t  this.$filter = $filter;\n\t}\n\n\tASTCompiler.prototype = {\n\t  compile: function(expression, expensiveChecks) {\n\t    var self = this;\n\t    var ast = this.astBuilder.ast(expression);\n\t    this.state = {\n\t      nextId: 0,\n\t      filters: {},\n\t      expensiveChecks: expensiveChecks,\n\t      fn: {vars: [], body: [], own: {}},\n\t      assign: {vars: [], body: [], own: {}},\n\t      inputs: []\n\t    };\n\t    findConstantAndWatchExpressions(ast, self.$filter);\n\t    var extra = '';\n\t    var assignable;\n\t    this.stage = 'assign';\n\t    if ((assignable = assignableAST(ast))) {\n\t      this.state.computing = 'assign';\n\t      var result = this.nextId();\n\t      this.recurse(assignable, result);\n\t      this.return_(result);\n\t      extra = 'fn.assign=' + this.generateFunction('assign', 's,v,l');\n\t    }\n\t    var toWatch = getInputs(ast.body);\n\t    self.stage = 'inputs';\n\t    forEach(toWatch, function(watch, key) {\n\t      var fnKey = 'fn' + key;\n\t      self.state[fnKey] = {vars: [], body: [], own: {}};\n\t      self.state.computing = fnKey;\n\t      var intoId = self.nextId();\n\t      self.recurse(watch, intoId);\n\t      self.return_(intoId);\n\t      self.state.inputs.push(fnKey);\n\t      watch.watchId = key;\n\t    });\n\t    this.state.computing = 'fn';\n\t    this.stage = 'main';\n\t    this.recurse(ast);\n\t    var fnString =\n\t      // The build and minification steps remove the string \"use strict\" from the code, but this is done using a regex.\n\t      // This is a workaround for this until we do a better job at only removing the prefix only when we should.\n\t      '\"' + this.USE + ' ' + this.STRICT + '\";\\n' +\n\t      this.filterPrefix() +\n\t      'var fn=' + this.generateFunction('fn', 's,l,a,i') +\n\t      extra +\n\t      this.watchFns() +\n\t      'return fn;';\n\n\t    /* jshint -W054 */\n\t    var fn = (new Function('$filter',\n\t        'ensureSafeMemberName',\n\t        'ensureSafeObject',\n\t        'ensureSafeFunction',\n\t        'getStringValue',\n\t        'ensureSafeAssignContext',\n\t        'ifDefined',\n\t        'plus',\n\t        'text',\n\t        fnString))(\n\t          this.$filter,\n\t          ensureSafeMemberName,\n\t          ensureSafeObject,\n\t          ensureSafeFunction,\n\t          getStringValue,\n\t          ensureSafeAssignContext,\n\t          ifDefined,\n\t          plusFn,\n\t          expression);\n\t    /* jshint +W054 */\n\t    this.state = this.stage = undefined;\n\t    fn.literal = isLiteral(ast);\n\t    fn.constant = isConstant(ast);\n\t    return fn;\n\t  },\n\n\t  USE: 'use',\n\n\t  STRICT: 'strict',\n\n\t  watchFns: function() {\n\t    var result = [];\n\t    var fns = this.state.inputs;\n\t    var self = this;\n\t    forEach(fns, function(name) {\n\t      result.push('var ' + name + '=' + self.generateFunction(name, 's'));\n\t    });\n\t    if (fns.length) {\n\t      result.push('fn.inputs=[' + fns.join(',') + '];');\n\t    }\n\t    return result.join('');\n\t  },\n\n\t  generateFunction: function(name, params) {\n\t    return 'function(' + params + '){' +\n\t        this.varsPrefix(name) +\n\t        this.body(name) +\n\t        '};';\n\t  },\n\n\t  filterPrefix: function() {\n\t    var parts = [];\n\t    var self = this;\n\t    forEach(this.state.filters, function(id, filter) {\n\t      parts.push(id + '=$filter(' + self.escape(filter) + ')');\n\t    });\n\t    if (parts.length) return 'var ' + parts.join(',') + ';';\n\t    return '';\n\t  },\n\n\t  varsPrefix: function(section) {\n\t    return this.state[section].vars.length ? 'var ' + this.state[section].vars.join(',') + ';' : '';\n\t  },\n\n\t  body: function(section) {\n\t    return this.state[section].body.join('');\n\t  },\n\n\t  recurse: function(ast, intoId, nameId, recursionFn, create, skipWatchIdCheck) {\n\t    var left, right, self = this, args, expression;\n\t    recursionFn = recursionFn || noop;\n\t    if (!skipWatchIdCheck && isDefined(ast.watchId)) {\n\t      intoId = intoId || this.nextId();\n\t      this.if_('i',\n\t        this.lazyAssign(intoId, this.computedMember('i', ast.watchId)),\n\t        this.lazyRecurse(ast, intoId, nameId, recursionFn, create, true)\n\t      );\n\t      return;\n\t    }\n\t    switch (ast.type) {\n\t    case AST.Program:\n\t      forEach(ast.body, function(expression, pos) {\n\t        self.recurse(expression.expression, undefined, undefined, function(expr) { right = expr; });\n\t        if (pos !== ast.body.length - 1) {\n\t          self.current().body.push(right, ';');\n\t        } else {\n\t          self.return_(right);\n\t        }\n\t      });\n\t      break;\n\t    case AST.Literal:\n\t      expression = this.escape(ast.value);\n\t      this.assign(intoId, expression);\n\t      recursionFn(expression);\n\t      break;\n\t    case AST.UnaryExpression:\n\t      this.recurse(ast.argument, undefined, undefined, function(expr) { right = expr; });\n\t      expression = ast.operator + '(' + this.ifDefined(right, 0) + ')';\n\t      this.assign(intoId, expression);\n\t      recursionFn(expression);\n\t      break;\n\t    case AST.BinaryExpression:\n\t      this.recurse(ast.left, undefined, undefined, function(expr) { left = expr; });\n\t      this.recurse(ast.right, undefined, undefined, function(expr) { right = expr; });\n\t      if (ast.operator === '+') {\n\t        expression = this.plus(left, right);\n\t      } else if (ast.operator === '-') {\n\t        expression = this.ifDefined(left, 0) + ast.operator + this.ifDefined(right, 0);\n\t      } else {\n\t        expression = '(' + left + ')' + ast.operator + '(' + right + ')';\n\t      }\n\t      this.assign(intoId, expression);\n\t      recursionFn(expression);\n\t      break;\n\t    case AST.LogicalExpression:\n\t      intoId = intoId || this.nextId();\n\t      self.recurse(ast.left, intoId);\n\t      self.if_(ast.operator === '&&' ? intoId : self.not(intoId), self.lazyRecurse(ast.right, intoId));\n\t      recursionFn(intoId);\n\t      break;\n\t    case AST.ConditionalExpression:\n\t      intoId = intoId || this.nextId();\n\t      self.recurse(ast.test, intoId);\n\t      self.if_(intoId, self.lazyRecurse(ast.alternate, intoId), self.lazyRecurse(ast.consequent, intoId));\n\t      recursionFn(intoId);\n\t      break;\n\t    case AST.Identifier:\n\t      intoId = intoId || this.nextId();\n\t      if (nameId) {\n\t        nameId.context = self.stage === 'inputs' ? 's' : this.assign(this.nextId(), this.getHasOwnProperty('l', ast.name) + '?l:s');\n\t        nameId.computed = false;\n\t        nameId.name = ast.name;\n\t      }\n\t      ensureSafeMemberName(ast.name);\n\t      self.if_(self.stage === 'inputs' || self.not(self.getHasOwnProperty('l', ast.name)),\n\t        function() {\n\t          self.if_(self.stage === 'inputs' || 's', function() {\n\t            if (create && create !== 1) {\n\t              self.if_(\n\t                self.not(self.nonComputedMember('s', ast.name)),\n\t                self.lazyAssign(self.nonComputedMember('s', ast.name), '{}'));\n\t            }\n\t            self.assign(intoId, self.nonComputedMember('s', ast.name));\n\t          });\n\t        }, intoId && self.lazyAssign(intoId, self.nonComputedMember('l', ast.name))\n\t        );\n\t      if (self.state.expensiveChecks || isPossiblyDangerousMemberName(ast.name)) {\n\t        self.addEnsureSafeObject(intoId);\n\t      }\n\t      recursionFn(intoId);\n\t      break;\n\t    case AST.MemberExpression:\n\t      left = nameId && (nameId.context = this.nextId()) || this.nextId();\n\t      intoId = intoId || this.nextId();\n\t      self.recurse(ast.object, left, undefined, function() {\n\t        self.if_(self.notNull(left), function() {\n\t          if (ast.computed) {\n\t            right = self.nextId();\n\t            self.recurse(ast.property, right);\n\t            self.getStringValue(right);\n\t            self.addEnsureSafeMemberName(right);\n\t            if (create && create !== 1) {\n\t              self.if_(self.not(self.computedMember(left, right)), self.lazyAssign(self.computedMember(left, right), '{}'));\n\t            }\n\t            expression = self.ensureSafeObject(self.computedMember(left, right));\n\t            self.assign(intoId, expression);\n\t            if (nameId) {\n\t              nameId.computed = true;\n\t              nameId.name = right;\n\t            }\n\t          } else {\n\t            ensureSafeMemberName(ast.property.name);\n\t            if (create && create !== 1) {\n\t              self.if_(self.not(self.nonComputedMember(left, ast.property.name)), self.lazyAssign(self.nonComputedMember(left, ast.property.name), '{}'));\n\t            }\n\t            expression = self.nonComputedMember(left, ast.property.name);\n\t            if (self.state.expensiveChecks || isPossiblyDangerousMemberName(ast.property.name)) {\n\t              expression = self.ensureSafeObject(expression);\n\t            }\n\t            self.assign(intoId, expression);\n\t            if (nameId) {\n\t              nameId.computed = false;\n\t              nameId.name = ast.property.name;\n\t            }\n\t          }\n\t        }, function() {\n\t          self.assign(intoId, 'undefined');\n\t        });\n\t        recursionFn(intoId);\n\t      }, !!create);\n\t      break;\n\t    case AST.CallExpression:\n\t      intoId = intoId || this.nextId();\n\t      if (ast.filter) {\n\t        right = self.filter(ast.callee.name);\n\t        args = [];\n\t        forEach(ast.arguments, function(expr) {\n\t          var argument = self.nextId();\n\t          self.recurse(expr, argument);\n\t          args.push(argument);\n\t        });\n\t        expression = right + '(' + args.join(',') + ')';\n\t        self.assign(intoId, expression);\n\t        recursionFn(intoId);\n\t      } else {\n\t        right = self.nextId();\n\t        left = {};\n\t        args = [];\n\t        self.recurse(ast.callee, right, left, function() {\n\t          self.if_(self.notNull(right), function() {\n\t            self.addEnsureSafeFunction(right);\n\t            forEach(ast.arguments, function(expr) {\n\t              self.recurse(expr, self.nextId(), undefined, function(argument) {\n\t                args.push(self.ensureSafeObject(argument));\n\t              });\n\t            });\n\t            if (left.name) {\n\t              if (!self.state.expensiveChecks) {\n\t                self.addEnsureSafeObject(left.context);\n\t              }\n\t              expression = self.member(left.context, left.name, left.computed) + '(' + args.join(',') + ')';\n\t            } else {\n\t              expression = right + '(' + args.join(',') + ')';\n\t            }\n\t            expression = self.ensureSafeObject(expression);\n\t            self.assign(intoId, expression);\n\t          }, function() {\n\t            self.assign(intoId, 'undefined');\n\t          });\n\t          recursionFn(intoId);\n\t        });\n\t      }\n\t      break;\n\t    case AST.AssignmentExpression:\n\t      right = this.nextId();\n\t      left = {};\n\t      if (!isAssignable(ast.left)) {\n\t        throw $parseMinErr('lval', 'Trying to assing a value to a non l-value');\n\t      }\n\t      this.recurse(ast.left, undefined, left, function() {\n\t        self.if_(self.notNull(left.context), function() {\n\t          self.recurse(ast.right, right);\n\t          self.addEnsureSafeObject(self.member(left.context, left.name, left.computed));\n\t          self.addEnsureSafeAssignContext(left.context);\n\t          expression = self.member(left.context, left.name, left.computed) + ast.operator + right;\n\t          self.assign(intoId, expression);\n\t          recursionFn(intoId || expression);\n\t        });\n\t      }, 1);\n\t      break;\n\t    case AST.ArrayExpression:\n\t      args = [];\n\t      forEach(ast.elements, function(expr) {\n\t        self.recurse(expr, self.nextId(), undefined, function(argument) {\n\t          args.push(argument);\n\t        });\n\t      });\n\t      expression = '[' + args.join(',') + ']';\n\t      this.assign(intoId, expression);\n\t      recursionFn(expression);\n\t      break;\n\t    case AST.ObjectExpression:\n\t      args = [];\n\t      forEach(ast.properties, function(property) {\n\t        self.recurse(property.value, self.nextId(), undefined, function(expr) {\n\t          args.push(self.escape(\n\t              property.key.type === AST.Identifier ? property.key.name :\n\t                ('' + property.key.value)) +\n\t              ':' + expr);\n\t        });\n\t      });\n\t      expression = '{' + args.join(',') + '}';\n\t      this.assign(intoId, expression);\n\t      recursionFn(expression);\n\t      break;\n\t    case AST.ThisExpression:\n\t      this.assign(intoId, 's');\n\t      recursionFn('s');\n\t      break;\n\t    case AST.NGValueParameter:\n\t      this.assign(intoId, 'v');\n\t      recursionFn('v');\n\t      break;\n\t    }\n\t  },\n\n\t  getHasOwnProperty: function(element, property) {\n\t    var key = element + '.' + property;\n\t    var own = this.current().own;\n\t    if (!own.hasOwnProperty(key)) {\n\t      own[key] = this.nextId(false, element + '&&(' + this.escape(property) + ' in ' + element + ')');\n\t    }\n\t    return own[key];\n\t  },\n\n\t  assign: function(id, value) {\n\t    if (!id) return;\n\t    this.current().body.push(id, '=', value, ';');\n\t    return id;\n\t  },\n\n\t  filter: function(filterName) {\n\t    if (!this.state.filters.hasOwnProperty(filterName)) {\n\t      this.state.filters[filterName] = this.nextId(true);\n\t    }\n\t    return this.state.filters[filterName];\n\t  },\n\n\t  ifDefined: function(id, defaultValue) {\n\t    return 'ifDefined(' + id + ',' + this.escape(defaultValue) + ')';\n\t  },\n\n\t  plus: function(left, right) {\n\t    return 'plus(' + left + ',' + right + ')';\n\t  },\n\n\t  return_: function(id) {\n\t    this.current().body.push('return ', id, ';');\n\t  },\n\n\t  if_: function(test, alternate, consequent) {\n\t    if (test === true) {\n\t      alternate();\n\t    } else {\n\t      var body = this.current().body;\n\t      body.push('if(', test, '){');\n\t      alternate();\n\t      body.push('}');\n\t      if (consequent) {\n\t        body.push('else{');\n\t        consequent();\n\t        body.push('}');\n\t      }\n\t    }\n\t  },\n\n\t  not: function(expression) {\n\t    return '!(' + expression + ')';\n\t  },\n\n\t  notNull: function(expression) {\n\t    return expression + '!=null';\n\t  },\n\n\t  nonComputedMember: function(left, right) {\n\t    return left + '.' + right;\n\t  },\n\n\t  computedMember: function(left, right) {\n\t    return left + '[' + right + ']';\n\t  },\n\n\t  member: function(left, right, computed) {\n\t    if (computed) return this.computedMember(left, right);\n\t    return this.nonComputedMember(left, right);\n\t  },\n\n\t  addEnsureSafeObject: function(item) {\n\t    this.current().body.push(this.ensureSafeObject(item), ';');\n\t  },\n\n\t  addEnsureSafeMemberName: function(item) {\n\t    this.current().body.push(this.ensureSafeMemberName(item), ';');\n\t  },\n\n\t  addEnsureSafeFunction: function(item) {\n\t    this.current().body.push(this.ensureSafeFunction(item), ';');\n\t  },\n\n\t  addEnsureSafeAssignContext: function(item) {\n\t    this.current().body.push(this.ensureSafeAssignContext(item), ';');\n\t  },\n\n\t  ensureSafeObject: function(item) {\n\t    return 'ensureSafeObject(' + item + ',text)';\n\t  },\n\n\t  ensureSafeMemberName: function(item) {\n\t    return 'ensureSafeMemberName(' + item + ',text)';\n\t  },\n\n\t  ensureSafeFunction: function(item) {\n\t    return 'ensureSafeFunction(' + item + ',text)';\n\t  },\n\n\t  getStringValue: function(item) {\n\t    this.assign(item, 'getStringValue(' + item + ',text)');\n\t  },\n\n\t  ensureSafeAssignContext: function(item) {\n\t    return 'ensureSafeAssignContext(' + item + ',text)';\n\t  },\n\n\t  lazyRecurse: function(ast, intoId, nameId, recursionFn, create, skipWatchIdCheck) {\n\t    var self = this;\n\t    return function() {\n\t      self.recurse(ast, intoId, nameId, recursionFn, create, skipWatchIdCheck);\n\t    };\n\t  },\n\n\t  lazyAssign: function(id, value) {\n\t    var self = this;\n\t    return function() {\n\t      self.assign(id, value);\n\t    };\n\t  },\n\n\t  stringEscapeRegex: /[^ a-zA-Z0-9]/g,\n\n\t  stringEscapeFn: function(c) {\n\t    return '\\\\u' + ('0000' + c.charCodeAt(0).toString(16)).slice(-4);\n\t  },\n\n\t  escape: function(value) {\n\t    if (isString(value)) return \"'\" + value.replace(this.stringEscapeRegex, this.stringEscapeFn) + \"'\";\n\t    if (isNumber(value)) return value.toString();\n\t    if (value === true) return 'true';\n\t    if (value === false) return 'false';\n\t    if (value === null) return 'null';\n\t    if (typeof value === 'undefined') return 'undefined';\n\n\t    throw $parseMinErr('esc', 'IMPOSSIBLE');\n\t  },\n\n\t  nextId: function(skip, init) {\n\t    var id = 'v' + (this.state.nextId++);\n\t    if (!skip) {\n\t      this.current().vars.push(id + (init ? '=' + init : ''));\n\t    }\n\t    return id;\n\t  },\n\n\t  current: function() {\n\t    return this.state[this.state.computing];\n\t  }\n\t};\n\n\n\tfunction ASTInterpreter(astBuilder, $filter) {\n\t  this.astBuilder = astBuilder;\n\t  this.$filter = $filter;\n\t}\n\n\tASTInterpreter.prototype = {\n\t  compile: function(expression, expensiveChecks) {\n\t    var self = this;\n\t    var ast = this.astBuilder.ast(expression);\n\t    this.expression = expression;\n\t    this.expensiveChecks = expensiveChecks;\n\t    findConstantAndWatchExpressions(ast, self.$filter);\n\t    var assignable;\n\t    var assign;\n\t    if ((assignable = assignableAST(ast))) {\n\t      assign = this.recurse(assignable);\n\t    }\n\t    var toWatch = getInputs(ast.body);\n\t    var inputs;\n\t    if (toWatch) {\n\t      inputs = [];\n\t      forEach(toWatch, function(watch, key) {\n\t        var input = self.recurse(watch);\n\t        watch.input = input;\n\t        inputs.push(input);\n\t        watch.watchId = key;\n\t      });\n\t    }\n\t    var expressions = [];\n\t    forEach(ast.body, function(expression) {\n\t      expressions.push(self.recurse(expression.expression));\n\t    });\n\t    var fn = ast.body.length === 0 ? function() {} :\n\t             ast.body.length === 1 ? expressions[0] :\n\t             function(scope, locals) {\n\t               var lastValue;\n\t               forEach(expressions, function(exp) {\n\t                 lastValue = exp(scope, locals);\n\t               });\n\t               return lastValue;\n\t             };\n\t    if (assign) {\n\t      fn.assign = function(scope, value, locals) {\n\t        return assign(scope, locals, value);\n\t      };\n\t    }\n\t    if (inputs) {\n\t      fn.inputs = inputs;\n\t    }\n\t    fn.literal = isLiteral(ast);\n\t    fn.constant = isConstant(ast);\n\t    return fn;\n\t  },\n\n\t  recurse: function(ast, context, create) {\n\t    var left, right, self = this, args, expression;\n\t    if (ast.input) {\n\t      return this.inputs(ast.input, ast.watchId);\n\t    }\n\t    switch (ast.type) {\n\t    case AST.Literal:\n\t      return this.value(ast.value, context);\n\t    case AST.UnaryExpression:\n\t      right = this.recurse(ast.argument);\n\t      return this['unary' + ast.operator](right, context);\n\t    case AST.BinaryExpression:\n\t      left = this.recurse(ast.left);\n\t      right = this.recurse(ast.right);\n\t      return this['binary' + ast.operator](left, right, context);\n\t    case AST.LogicalExpression:\n\t      left = this.recurse(ast.left);\n\t      right = this.recurse(ast.right);\n\t      return this['binary' + ast.operator](left, right, context);\n\t    case AST.ConditionalExpression:\n\t      return this['ternary?:'](\n\t        this.recurse(ast.test),\n\t        this.recurse(ast.alternate),\n\t        this.recurse(ast.consequent),\n\t        context\n\t      );\n\t    case AST.Identifier:\n\t      ensureSafeMemberName(ast.name, self.expression);\n\t      return self.identifier(ast.name,\n\t                             self.expensiveChecks || isPossiblyDangerousMemberName(ast.name),\n\t                             context, create, self.expression);\n\t    case AST.MemberExpression:\n\t      left = this.recurse(ast.object, false, !!create);\n\t      if (!ast.computed) {\n\t        ensureSafeMemberName(ast.property.name, self.expression);\n\t        right = ast.property.name;\n\t      }\n\t      if (ast.computed) right = this.recurse(ast.property);\n\t      return ast.computed ?\n\t        this.computedMember(left, right, context, create, self.expression) :\n\t        this.nonComputedMember(left, right, self.expensiveChecks, context, create, self.expression);\n\t    case AST.CallExpression:\n\t      args = [];\n\t      forEach(ast.arguments, function(expr) {\n\t        args.push(self.recurse(expr));\n\t      });\n\t      if (ast.filter) right = this.$filter(ast.callee.name);\n\t      if (!ast.filter) right = this.recurse(ast.callee, true);\n\t      return ast.filter ?\n\t        function(scope, locals, assign, inputs) {\n\t          var values = [];\n\t          for (var i = 0; i < args.length; ++i) {\n\t            values.push(args[i](scope, locals, assign, inputs));\n\t          }\n\t          var value = right.apply(undefined, values, inputs);\n\t          return context ? {context: undefined, name: undefined, value: value} : value;\n\t        } :\n\t        function(scope, locals, assign, inputs) {\n\t          var rhs = right(scope, locals, assign, inputs);\n\t          var value;\n\t          if (rhs.value != null) {\n\t            ensureSafeObject(rhs.context, self.expression);\n\t            ensureSafeFunction(rhs.value, self.expression);\n\t            var values = [];\n\t            for (var i = 0; i < args.length; ++i) {\n\t              values.push(ensureSafeObject(args[i](scope, locals, assign, inputs), self.expression));\n\t            }\n\t            value = ensureSafeObject(rhs.value.apply(rhs.context, values), self.expression);\n\t          }\n\t          return context ? {value: value} : value;\n\t        };\n\t    case AST.AssignmentExpression:\n\t      left = this.recurse(ast.left, true, 1);\n\t      right = this.recurse(ast.right);\n\t      return function(scope, locals, assign, inputs) {\n\t        var lhs = left(scope, locals, assign, inputs);\n\t        var rhs = right(scope, locals, assign, inputs);\n\t        ensureSafeObject(lhs.value, self.expression);\n\t        ensureSafeAssignContext(lhs.context);\n\t        lhs.context[lhs.name] = rhs;\n\t        return context ? {value: rhs} : rhs;\n\t      };\n\t    case AST.ArrayExpression:\n\t      args = [];\n\t      forEach(ast.elements, function(expr) {\n\t        args.push(self.recurse(expr));\n\t      });\n\t      return function(scope, locals, assign, inputs) {\n\t        var value = [];\n\t        for (var i = 0; i < args.length; ++i) {\n\t          value.push(args[i](scope, locals, assign, inputs));\n\t        }\n\t        return context ? {value: value} : value;\n\t      };\n\t    case AST.ObjectExpression:\n\t      args = [];\n\t      forEach(ast.properties, function(property) {\n\t        args.push({key: property.key.type === AST.Identifier ?\n\t                        property.key.name :\n\t                        ('' + property.key.value),\n\t                   value: self.recurse(property.value)\n\t        });\n\t      });\n\t      return function(scope, locals, assign, inputs) {\n\t        var value = {};\n\t        for (var i = 0; i < args.length; ++i) {\n\t          value[args[i].key] = args[i].value(scope, locals, assign, inputs);\n\t        }\n\t        return context ? {value: value} : value;\n\t      };\n\t    case AST.ThisExpression:\n\t      return function(scope) {\n\t        return context ? {value: scope} : scope;\n\t      };\n\t    case AST.NGValueParameter:\n\t      return function(scope, locals, assign, inputs) {\n\t        return context ? {value: assign} : assign;\n\t      };\n\t    }\n\t  },\n\n\t  'unary+': function(argument, context) {\n\t    return function(scope, locals, assign, inputs) {\n\t      var arg = argument(scope, locals, assign, inputs);\n\t      if (isDefined(arg)) {\n\t        arg = +arg;\n\t      } else {\n\t        arg = 0;\n\t      }\n\t      return context ? {value: arg} : arg;\n\t    };\n\t  },\n\t  'unary-': function(argument, context) {\n\t    return function(scope, locals, assign, inputs) {\n\t      var arg = argument(scope, locals, assign, inputs);\n\t      if (isDefined(arg)) {\n\t        arg = -arg;\n\t      } else {\n\t        arg = 0;\n\t      }\n\t      return context ? {value: arg} : arg;\n\t    };\n\t  },\n\t  'unary!': function(argument, context) {\n\t    return function(scope, locals, assign, inputs) {\n\t      var arg = !argument(scope, locals, assign, inputs);\n\t      return context ? {value: arg} : arg;\n\t    };\n\t  },\n\t  'binary+': function(left, right, context) {\n\t    return function(scope, locals, assign, inputs) {\n\t      var lhs = left(scope, locals, assign, inputs);\n\t      var rhs = right(scope, locals, assign, inputs);\n\t      var arg = plusFn(lhs, rhs);\n\t      return context ? {value: arg} : arg;\n\t    };\n\t  },\n\t  'binary-': function(left, right, context) {\n\t    return function(scope, locals, assign, inputs) {\n\t      var lhs = left(scope, locals, assign, inputs);\n\t      var rhs = right(scope, locals, assign, inputs);\n\t      var arg = (isDefined(lhs) ? lhs : 0) - (isDefined(rhs) ? rhs : 0);\n\t      return context ? {value: arg} : arg;\n\t    };\n\t  },\n\t  'binary*': function(left, right, context) {\n\t    return function(scope, locals, assign, inputs) {\n\t      var arg = left(scope, locals, assign, inputs) * right(scope, locals, assign, inputs);\n\t      return context ? {value: arg} : arg;\n\t    };\n\t  },\n\t  'binary/': function(left, right, context) {\n\t    return function(scope, locals, assign, inputs) {\n\t      var arg = left(scope, locals, assign, inputs) / right(scope, locals, assign, inputs);\n\t      return context ? {value: arg} : arg;\n\t    };\n\t  },\n\t  'binary%': function(left, right, context) {\n\t    return function(scope, locals, assign, inputs) {\n\t      var arg = left(scope, locals, assign, inputs) % right(scope, locals, assign, inputs);\n\t      return context ? {value: arg} : arg;\n\t    };\n\t  },\n\t  'binary===': function(left, right, context) {\n\t    return function(scope, locals, assign, inputs) {\n\t      var arg = left(scope, locals, assign, inputs) === right(scope, locals, assign, inputs);\n\t      return context ? {value: arg} : arg;\n\t    };\n\t  },\n\t  'binary!==': function(left, right, context) {\n\t    return function(scope, locals, assign, inputs) {\n\t      var arg = left(scope, locals, assign, inputs) !== right(scope, locals, assign, inputs);\n\t      return context ? {value: arg} : arg;\n\t    };\n\t  },\n\t  'binary==': function(left, right, context) {\n\t    return function(scope, locals, assign, inputs) {\n\t      var arg = left(scope, locals, assign, inputs) == right(scope, locals, assign, inputs);\n\t      return context ? {value: arg} : arg;\n\t    };\n\t  },\n\t  'binary!=': function(left, right, context) {\n\t    return function(scope, locals, assign, inputs) {\n\t      var arg = left(scope, locals, assign, inputs) != right(scope, locals, assign, inputs);\n\t      return context ? {value: arg} : arg;\n\t    };\n\t  },\n\t  'binary<': function(left, right, context) {\n\t    return function(scope, locals, assign, inputs) {\n\t      var arg = left(scope, locals, assign, inputs) < right(scope, locals, assign, inputs);\n\t      return context ? {value: arg} : arg;\n\t    };\n\t  },\n\t  'binary>': function(left, right, context) {\n\t    return function(scope, locals, assign, inputs) {\n\t      var arg = left(scope, locals, assign, inputs) > right(scope, locals, assign, inputs);\n\t      return context ? {value: arg} : arg;\n\t    };\n\t  },\n\t  'binary<=': function(left, right, context) {\n\t    return function(scope, locals, assign, inputs) {\n\t      var arg = left(scope, locals, assign, inputs) <= right(scope, locals, assign, inputs);\n\t      return context ? {value: arg} : arg;\n\t    };\n\t  },\n\t  'binary>=': function(left, right, context) {\n\t    return function(scope, locals, assign, inputs) {\n\t      var arg = left(scope, locals, assign, inputs) >= right(scope, locals, assign, inputs);\n\t      return context ? {value: arg} : arg;\n\t    };\n\t  },\n\t  'binary&&': function(left, right, context) {\n\t    return function(scope, locals, assign, inputs) {\n\t      var arg = left(scope, locals, assign, inputs) && right(scope, locals, assign, inputs);\n\t      return context ? {value: arg} : arg;\n\t    };\n\t  },\n\t  'binary||': function(left, right, context) {\n\t    return function(scope, locals, assign, inputs) {\n\t      var arg = left(scope, locals, assign, inputs) || right(scope, locals, assign, inputs);\n\t      return context ? {value: arg} : arg;\n\t    };\n\t  },\n\t  'ternary?:': function(test, alternate, consequent, context) {\n\t    return function(scope, locals, assign, inputs) {\n\t      var arg = test(scope, locals, assign, inputs) ? alternate(scope, locals, assign, inputs) : consequent(scope, locals, assign, inputs);\n\t      return context ? {value: arg} : arg;\n\t    };\n\t  },\n\t  value: function(value, context) {\n\t    return function() { return context ? {context: undefined, name: undefined, value: value} : value; };\n\t  },\n\t  identifier: function(name, expensiveChecks, context, create, expression) {\n\t    return function(scope, locals, assign, inputs) {\n\t      var base = locals && (name in locals) ? locals : scope;\n\t      if (create && create !== 1 && base && !(base[name])) {\n\t        base[name] = {};\n\t      }\n\t      var value = base ? base[name] : undefined;\n\t      if (expensiveChecks) {\n\t        ensureSafeObject(value, expression);\n\t      }\n\t      if (context) {\n\t        return {context: base, name: name, value: value};\n\t      } else {\n\t        return value;\n\t      }\n\t    };\n\t  },\n\t  computedMember: function(left, right, context, create, expression) {\n\t    return function(scope, locals, assign, inputs) {\n\t      var lhs = left(scope, locals, assign, inputs);\n\t      var rhs;\n\t      var value;\n\t      if (lhs != null) {\n\t        rhs = right(scope, locals, assign, inputs);\n\t        rhs = getStringValue(rhs);\n\t        ensureSafeMemberName(rhs, expression);\n\t        if (create && create !== 1 && lhs && !(lhs[rhs])) {\n\t          lhs[rhs] = {};\n\t        }\n\t        value = lhs[rhs];\n\t        ensureSafeObject(value, expression);\n\t      }\n\t      if (context) {\n\t        return {context: lhs, name: rhs, value: value};\n\t      } else {\n\t        return value;\n\t      }\n\t    };\n\t  },\n\t  nonComputedMember: function(left, right, expensiveChecks, context, create, expression) {\n\t    return function(scope, locals, assign, inputs) {\n\t      var lhs = left(scope, locals, assign, inputs);\n\t      if (create && create !== 1 && lhs && !(lhs[right])) {\n\t        lhs[right] = {};\n\t      }\n\t      var value = lhs != null ? lhs[right] : undefined;\n\t      if (expensiveChecks || isPossiblyDangerousMemberName(right)) {\n\t        ensureSafeObject(value, expression);\n\t      }\n\t      if (context) {\n\t        return {context: lhs, name: right, value: value};\n\t      } else {\n\t        return value;\n\t      }\n\t    };\n\t  },\n\t  inputs: function(input, watchId) {\n\t    return function(scope, value, locals, inputs) {\n\t      if (inputs) return inputs[watchId];\n\t      return input(scope, value, locals);\n\t    };\n\t  }\n\t};\n\n\t/**\n\t * @constructor\n\t */\n\tvar Parser = function(lexer, $filter, options) {\n\t  this.lexer = lexer;\n\t  this.$filter = $filter;\n\t  this.options = options;\n\t  this.ast = new AST(this.lexer);\n\t  this.astCompiler = options.csp ? new ASTInterpreter(this.ast, $filter) :\n\t                                   new ASTCompiler(this.ast, $filter);\n\t};\n\n\tParser.prototype = {\n\t  constructor: Parser,\n\n\t  parse: function(text) {\n\t    return this.astCompiler.compile(text, this.options.expensiveChecks);\n\t  }\n\t};\n\n\tvar getterFnCacheDefault = createMap();\n\tvar getterFnCacheExpensive = createMap();\n\n\tfunction isPossiblyDangerousMemberName(name) {\n\t  return name == 'constructor';\n\t}\n\n\tvar objectValueOf = Object.prototype.valueOf;\n\n\tfunction getValueOf(value) {\n\t  return isFunction(value.valueOf) ? value.valueOf() : objectValueOf.call(value);\n\t}\n\n\t///////////////////////////////////\n\n\t/**\n\t * @ngdoc service\n\t * @name $parse\n\t * @kind function\n\t *\n\t * @description\n\t *\n\t * Converts Angular {@link guide/expression expression} into a function.\n\t *\n\t * ```js\n\t *   var getter = $parse('user.name');\n\t *   var setter = getter.assign;\n\t *   var context = {user:{name:'angular'}};\n\t *   var locals = {user:{name:'local'}};\n\t *\n\t *   expect(getter(context)).toEqual('angular');\n\t *   setter(context, 'newValue');\n\t *   expect(context.user.name).toEqual('newValue');\n\t *   expect(getter(context, locals)).toEqual('local');\n\t * ```\n\t *\n\t *\n\t * @param {string} expression String expression to compile.\n\t * @returns {function(context, locals)} a function which represents the compiled expression:\n\t *\n\t *    * `context` – `{object}` – an object against which any expressions embedded in the strings\n\t *      are evaluated against (typically a scope object).\n\t *    * `locals` – `{object=}` – local variables context object, useful for overriding values in\n\t *      `context`.\n\t *\n\t *    The returned function also has the following properties:\n\t *      * `literal` – `{boolean}` – whether the expression's top-level node is a JavaScript\n\t *        literal.\n\t *      * `constant` – `{boolean}` – whether the expression is made entirely of JavaScript\n\t *        constant literals.\n\t *      * `assign` – `{?function(context, value)}` – if the expression is assignable, this will be\n\t *        set to a function to change its value on the given context.\n\t *\n\t */\n\n\n\t/**\n\t * @ngdoc provider\n\t * @name $parseProvider\n\t *\n\t * @description\n\t * `$parseProvider` can be used for configuring the default behavior of the {@link ng.$parse $parse}\n\t *  service.\n\t */\n\tfunction $ParseProvider() {\n\t  var cacheDefault = createMap();\n\t  var cacheExpensive = createMap();\n\n\t  this.$get = ['$filter', function($filter) {\n\t    var noUnsafeEval = csp().noUnsafeEval;\n\t    var $parseOptions = {\n\t          csp: noUnsafeEval,\n\t          expensiveChecks: false\n\t        },\n\t        $parseOptionsExpensive = {\n\t          csp: noUnsafeEval,\n\t          expensiveChecks: true\n\t        };\n\n\t    return function $parse(exp, interceptorFn, expensiveChecks) {\n\t      var parsedExpression, oneTime, cacheKey;\n\n\t      switch (typeof exp) {\n\t        case 'string':\n\t          exp = exp.trim();\n\t          cacheKey = exp;\n\n\t          var cache = (expensiveChecks ? cacheExpensive : cacheDefault);\n\t          parsedExpression = cache[cacheKey];\n\n\t          if (!parsedExpression) {\n\t            if (exp.charAt(0) === ':' && exp.charAt(1) === ':') {\n\t              oneTime = true;\n\t              exp = exp.substring(2);\n\t            }\n\t            var parseOptions = expensiveChecks ? $parseOptionsExpensive : $parseOptions;\n\t            var lexer = new Lexer(parseOptions);\n\t            var parser = new Parser(lexer, $filter, parseOptions);\n\t            parsedExpression = parser.parse(exp);\n\t            if (parsedExpression.constant) {\n\t              parsedExpression.$$watchDelegate = constantWatchDelegate;\n\t            } else if (oneTime) {\n\t              parsedExpression.$$watchDelegate = parsedExpression.literal ?\n\t                  oneTimeLiteralWatchDelegate : oneTimeWatchDelegate;\n\t            } else if (parsedExpression.inputs) {\n\t              parsedExpression.$$watchDelegate = inputsWatchDelegate;\n\t            }\n\t            cache[cacheKey] = parsedExpression;\n\t          }\n\t          return addInterceptor(parsedExpression, interceptorFn);\n\n\t        case 'function':\n\t          return addInterceptor(exp, interceptorFn);\n\n\t        default:\n\t          return noop;\n\t      }\n\t    };\n\n\t    function expressionInputDirtyCheck(newValue, oldValueOfValue) {\n\n\t      if (newValue == null || oldValueOfValue == null) { // null/undefined\n\t        return newValue === oldValueOfValue;\n\t      }\n\n\t      if (typeof newValue === 'object') {\n\n\t        // attempt to convert the value to a primitive type\n\t        // TODO(docs): add a note to docs that by implementing valueOf even objects and arrays can\n\t        //             be cheaply dirty-checked\n\t        newValue = getValueOf(newValue);\n\n\t        if (typeof newValue === 'object') {\n\t          // objects/arrays are not supported - deep-watching them would be too expensive\n\t          return false;\n\t        }\n\n\t        // fall-through to the primitive equality check\n\t      }\n\n\t      //Primitive or NaN\n\t      return newValue === oldValueOfValue || (newValue !== newValue && oldValueOfValue !== oldValueOfValue);\n\t    }\n\n\t    function inputsWatchDelegate(scope, listener, objectEquality, parsedExpression, prettyPrintExpression) {\n\t      var inputExpressions = parsedExpression.inputs;\n\t      var lastResult;\n\n\t      if (inputExpressions.length === 1) {\n\t        var oldInputValueOf = expressionInputDirtyCheck; // init to something unique so that equals check fails\n\t        inputExpressions = inputExpressions[0];\n\t        return scope.$watch(function expressionInputWatch(scope) {\n\t          var newInputValue = inputExpressions(scope);\n\t          if (!expressionInputDirtyCheck(newInputValue, oldInputValueOf)) {\n\t            lastResult = parsedExpression(scope, undefined, undefined, [newInputValue]);\n\t            oldInputValueOf = newInputValue && getValueOf(newInputValue);\n\t          }\n\t          return lastResult;\n\t        }, listener, objectEquality, prettyPrintExpression);\n\t      }\n\n\t      var oldInputValueOfValues = [];\n\t      var oldInputValues = [];\n\t      for (var i = 0, ii = inputExpressions.length; i < ii; i++) {\n\t        oldInputValueOfValues[i] = expressionInputDirtyCheck; // init to something unique so that equals check fails\n\t        oldInputValues[i] = null;\n\t      }\n\n\t      return scope.$watch(function expressionInputsWatch(scope) {\n\t        var changed = false;\n\n\t        for (var i = 0, ii = inputExpressions.length; i < ii; i++) {\n\t          var newInputValue = inputExpressions[i](scope);\n\t          if (changed || (changed = !expressionInputDirtyCheck(newInputValue, oldInputValueOfValues[i]))) {\n\t            oldInputValues[i] = newInputValue;\n\t            oldInputValueOfValues[i] = newInputValue && getValueOf(newInputValue);\n\t          }\n\t        }\n\n\t        if (changed) {\n\t          lastResult = parsedExpression(scope, undefined, undefined, oldInputValues);\n\t        }\n\n\t        return lastResult;\n\t      }, listener, objectEquality, prettyPrintExpression);\n\t    }\n\n\t    function oneTimeWatchDelegate(scope, listener, objectEquality, parsedExpression) {\n\t      var unwatch, lastValue;\n\t      return unwatch = scope.$watch(function oneTimeWatch(scope) {\n\t        return parsedExpression(scope);\n\t      }, function oneTimeListener(value, old, scope) {\n\t        lastValue = value;\n\t        if (isFunction(listener)) {\n\t          listener.apply(this, arguments);\n\t        }\n\t        if (isDefined(value)) {\n\t          scope.$$postDigest(function() {\n\t            if (isDefined(lastValue)) {\n\t              unwatch();\n\t            }\n\t          });\n\t        }\n\t      }, objectEquality);\n\t    }\n\n\t    function oneTimeLiteralWatchDelegate(scope, listener, objectEquality, parsedExpression) {\n\t      var unwatch, lastValue;\n\t      return unwatch = scope.$watch(function oneTimeWatch(scope) {\n\t        return parsedExpression(scope);\n\t      }, function oneTimeListener(value, old, scope) {\n\t        lastValue = value;\n\t        if (isFunction(listener)) {\n\t          listener.call(this, value, old, scope);\n\t        }\n\t        if (isAllDefined(value)) {\n\t          scope.$$postDigest(function() {\n\t            if (isAllDefined(lastValue)) unwatch();\n\t          });\n\t        }\n\t      }, objectEquality);\n\n\t      function isAllDefined(value) {\n\t        var allDefined = true;\n\t        forEach(value, function(val) {\n\t          if (!isDefined(val)) allDefined = false;\n\t        });\n\t        return allDefined;\n\t      }\n\t    }\n\n\t    function constantWatchDelegate(scope, listener, objectEquality, parsedExpression) {\n\t      var unwatch;\n\t      return unwatch = scope.$watch(function constantWatch(scope) {\n\t        return parsedExpression(scope);\n\t      }, function constantListener(value, old, scope) {\n\t        if (isFunction(listener)) {\n\t          listener.apply(this, arguments);\n\t        }\n\t        unwatch();\n\t      }, objectEquality);\n\t    }\n\n\t    function addInterceptor(parsedExpression, interceptorFn) {\n\t      if (!interceptorFn) return parsedExpression;\n\t      var watchDelegate = parsedExpression.$$watchDelegate;\n\t      var useInputs = false;\n\n\t      var regularWatch =\n\t          watchDelegate !== oneTimeLiteralWatchDelegate &&\n\t          watchDelegate !== oneTimeWatchDelegate;\n\n\t      var fn = regularWatch ? function regularInterceptedExpression(scope, locals, assign, inputs) {\n\t        var value = useInputs && inputs ? inputs[0] : parsedExpression(scope, locals, assign, inputs);\n\t        return interceptorFn(value, scope, locals);\n\t      } : function oneTimeInterceptedExpression(scope, locals, assign, inputs) {\n\t        var value = parsedExpression(scope, locals, assign, inputs);\n\t        var result = interceptorFn(value, scope, locals);\n\t        // we only return the interceptor's result if the\n\t        // initial value is defined (for bind-once)\n\t        return isDefined(value) ? result : value;\n\t      };\n\n\t      // Propagate $$watchDelegates other then inputsWatchDelegate\n\t      if (parsedExpression.$$watchDelegate &&\n\t          parsedExpression.$$watchDelegate !== inputsWatchDelegate) {\n\t        fn.$$watchDelegate = parsedExpression.$$watchDelegate;\n\t      } else if (!interceptorFn.$stateful) {\n\t        // If there is an interceptor, but no watchDelegate then treat the interceptor like\n\t        // we treat filters - it is assumed to be a pure function unless flagged with $stateful\n\t        fn.$$watchDelegate = inputsWatchDelegate;\n\t        useInputs = !parsedExpression.inputs;\n\t        fn.inputs = parsedExpression.inputs ? parsedExpression.inputs : [parsedExpression];\n\t      }\n\n\t      return fn;\n\t    }\n\t  }];\n\t}\n\n\t/**\n\t * @ngdoc service\n\t * @name $q\n\t * @requires $rootScope\n\t *\n\t * @description\n\t * A service that helps you run functions asynchronously, and use their return values (or exceptions)\n\t * when they are done processing.\n\t *\n\t * This is an implementation of promises/deferred objects inspired by\n\t * [Kris Kowal's Q](https://github.com/kriskowal/q).\n\t *\n\t * $q can be used in two fashions --- one which is more similar to Kris Kowal's Q or jQuery's Deferred\n\t * implementations, and the other which resembles ES6 promises to some degree.\n\t *\n\t * # $q constructor\n\t *\n\t * The streamlined ES6 style promise is essentially just using $q as a constructor which takes a `resolver`\n\t * function as the first argument. This is similar to the native Promise implementation from ES6 Harmony,\n\t * see [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise).\n\t *\n\t * While the constructor-style use is supported, not all of the supporting methods from ES6 Harmony promises are\n\t * available yet.\n\t *\n\t * It can be used like so:\n\t *\n\t * ```js\n\t *   // for the purpose of this example let's assume that variables `$q` and `okToGreet`\n\t *   // are available in the current lexical scope (they could have been injected or passed in).\n\t *\n\t *   function asyncGreet(name) {\n\t *     // perform some asynchronous operation, resolve or reject the promise when appropriate.\n\t *     return $q(function(resolve, reject) {\n\t *       setTimeout(function() {\n\t *         if (okToGreet(name)) {\n\t *           resolve('Hello, ' + name + '!');\n\t *         } else {\n\t *           reject('Greeting ' + name + ' is not allowed.');\n\t *         }\n\t *       }, 1000);\n\t *     });\n\t *   }\n\t *\n\t *   var promise = asyncGreet('Robin Hood');\n\t *   promise.then(function(greeting) {\n\t *     alert('Success: ' + greeting);\n\t *   }, function(reason) {\n\t *     alert('Failed: ' + reason);\n\t *   });\n\t * ```\n\t *\n\t * Note: progress/notify callbacks are not currently supported via the ES6-style interface.\n\t *\n\t * Note: unlike ES6 behaviour, an exception thrown in the constructor function will NOT implicitly reject the promise.\n\t *\n\t * However, the more traditional CommonJS-style usage is still available, and documented below.\n\t *\n\t * [The CommonJS Promise proposal](http://wiki.commonjs.org/wiki/Promises) describes a promise as an\n\t * interface for interacting with an object that represents the result of an action that is\n\t * performed asynchronously, and may or may not be finished at any given point in time.\n\t *\n\t * From the perspective of dealing with error handling, deferred and promise APIs are to\n\t * asynchronous programming what `try`, `catch` and `throw` keywords are to synchronous programming.\n\t *\n\t * ```js\n\t *   // for the purpose of this example let's assume that variables `$q` and `okToGreet`\n\t *   // are available in the current lexical scope (they could have been injected or passed in).\n\t *\n\t *   function asyncGreet(name) {\n\t *     var deferred = $q.defer();\n\t *\n\t *     setTimeout(function() {\n\t *       deferred.notify('About to greet ' + name + '.');\n\t *\n\t *       if (okToGreet(name)) {\n\t *         deferred.resolve('Hello, ' + name + '!');\n\t *       } else {\n\t *         deferred.reject('Greeting ' + name + ' is not allowed.');\n\t *       }\n\t *     }, 1000);\n\t *\n\t *     return deferred.promise;\n\t *   }\n\t *\n\t *   var promise = asyncGreet('Robin Hood');\n\t *   promise.then(function(greeting) {\n\t *     alert('Success: ' + greeting);\n\t *   }, function(reason) {\n\t *     alert('Failed: ' + reason);\n\t *   }, function(update) {\n\t *     alert('Got notification: ' + update);\n\t *   });\n\t * ```\n\t *\n\t * At first it might not be obvious why this extra complexity is worth the trouble. The payoff\n\t * comes in the way of guarantees that promise and deferred APIs make, see\n\t * https://github.com/kriskowal/uncommonjs/blob/master/promises/specification.md.\n\t *\n\t * Additionally the promise api allows for composition that is very hard to do with the\n\t * traditional callback ([CPS](http://en.wikipedia.org/wiki/Continuation-passing_style)) approach.\n\t * For more on this please see the [Q documentation](https://github.com/kriskowal/q) especially the\n\t * section on serial or parallel joining of promises.\n\t *\n\t * # The Deferred API\n\t *\n\t * A new instance of deferred is constructed by calling `$q.defer()`.\n\t *\n\t * The purpose of the deferred object is to expose the associated Promise instance as well as APIs\n\t * that can be used for signaling the successful or unsuccessful completion, as well as the status\n\t * of the task.\n\t *\n\t * **Methods**\n\t *\n\t * - `resolve(value)` – resolves the derived promise with the `value`. If the value is a rejection\n\t *   constructed via `$q.reject`, the promise will be rejected instead.\n\t * - `reject(reason)` – rejects the derived promise with the `reason`. This is equivalent to\n\t *   resolving it with a rejection constructed via `$q.reject`.\n\t * - `notify(value)` - provides updates on the status of the promise's execution. This may be called\n\t *   multiple times before the promise is either resolved or rejected.\n\t *\n\t * **Properties**\n\t *\n\t * - promise – `{Promise}` – promise object associated with this deferred.\n\t *\n\t *\n\t * # The Promise API\n\t *\n\t * A new promise instance is created when a deferred instance is created and can be retrieved by\n\t * calling `deferred.promise`.\n\t *\n\t * The purpose of the promise object is to allow for interested parties to get access to the result\n\t * of the deferred task when it completes.\n\t *\n\t * **Methods**\n\t *\n\t * - `then(successCallback, errorCallback, notifyCallback)` – regardless of when the promise was or\n\t *   will be resolved or rejected, `then` calls one of the success or error callbacks asynchronously\n\t *   as soon as the result is available. The callbacks are called with a single argument: the result\n\t *   or rejection reason. Additionally, the notify callback may be called zero or more times to\n\t *   provide a progress indication, before the promise is resolved or rejected.\n\t *\n\t *   This method *returns a new promise* which is resolved or rejected via the return value of the\n\t *   `successCallback`, `errorCallback` (unless that value is a promise, in which case it is resolved\n\t *   with the value which is resolved in that promise using\n\t *   [promise chaining](http://www.html5rocks.com/en/tutorials/es6/promises/#toc-promises-queues)).\n\t *   It also notifies via the return value of the `notifyCallback` method. The promise cannot be\n\t *   resolved or rejected from the notifyCallback method.\n\t *\n\t * - `catch(errorCallback)` – shorthand for `promise.then(null, errorCallback)`\n\t *\n\t * - `finally(callback, notifyCallback)` – allows you to observe either the fulfillment or rejection of a promise,\n\t *   but to do so without modifying the final value. This is useful to release resources or do some\n\t *   clean-up that needs to be done whether the promise was rejected or resolved. See the [full\n\t *   specification](https://github.com/kriskowal/q/wiki/API-Reference#promisefinallycallback) for\n\t *   more information.\n\t *\n\t * # Chaining promises\n\t *\n\t * Because calling the `then` method of a promise returns a new derived promise, it is easily\n\t * possible to create a chain of promises:\n\t *\n\t * ```js\n\t *   promiseB = promiseA.then(function(result) {\n\t *     return result + 1;\n\t *   });\n\t *\n\t *   // promiseB will be resolved immediately after promiseA is resolved and its value\n\t *   // will be the result of promiseA incremented by 1\n\t * ```\n\t *\n\t * It is possible to create chains of any length and since a promise can be resolved with another\n\t * promise (which will defer its resolution further), it is possible to pause/defer resolution of\n\t * the promises at any point in the chain. This makes it possible to implement powerful APIs like\n\t * $http's response interceptors.\n\t *\n\t *\n\t * # Differences between Kris Kowal's Q and $q\n\t *\n\t *  There are two main differences:\n\t *\n\t * - $q is integrated with the {@link ng.$rootScope.Scope} Scope model observation\n\t *   mechanism in angular, which means faster propagation of resolution or rejection into your\n\t *   models and avoiding unnecessary browser repaints, which would result in flickering UI.\n\t * - Q has many more features than $q, but that comes at a cost of bytes. $q is tiny, but contains\n\t *   all the important functionality needed for common async tasks.\n\t *\n\t *  # Testing\n\t *\n\t *  ```js\n\t *    it('should simulate promise', inject(function($q, $rootScope) {\n\t *      var deferred = $q.defer();\n\t *      var promise = deferred.promise;\n\t *      var resolvedValue;\n\t *\n\t *      promise.then(function(value) { resolvedValue = value; });\n\t *      expect(resolvedValue).toBeUndefined();\n\t *\n\t *      // Simulate resolving of promise\n\t *      deferred.resolve(123);\n\t *      // Note that the 'then' function does not get called synchronously.\n\t *      // This is because we want the promise API to always be async, whether or not\n\t *      // it got called synchronously or asynchronously.\n\t *      expect(resolvedValue).toBeUndefined();\n\t *\n\t *      // Propagate promise resolution to 'then' functions using $apply().\n\t *      $rootScope.$apply();\n\t *      expect(resolvedValue).toEqual(123);\n\t *    }));\n\t *  ```\n\t *\n\t * @param {function(function, function)} resolver Function which is responsible for resolving or\n\t *   rejecting the newly created promise. The first parameter is a function which resolves the\n\t *   promise, the second parameter is a function which rejects the promise.\n\t *\n\t * @returns {Promise} The newly created promise.\n\t */\n\tfunction $QProvider() {\n\n\t  this.$get = ['$rootScope', '$exceptionHandler', function($rootScope, $exceptionHandler) {\n\t    return qFactory(function(callback) {\n\t      $rootScope.$evalAsync(callback);\n\t    }, $exceptionHandler);\n\t  }];\n\t}\n\n\tfunction $$QProvider() {\n\t  this.$get = ['$browser', '$exceptionHandler', function($browser, $exceptionHandler) {\n\t    return qFactory(function(callback) {\n\t      $browser.defer(callback);\n\t    }, $exceptionHandler);\n\t  }];\n\t}\n\n\t/**\n\t * Constructs a promise manager.\n\t *\n\t * @param {function(function)} nextTick Function for executing functions in the next turn.\n\t * @param {function(...*)} exceptionHandler Function into which unexpected exceptions are passed for\n\t *     debugging purposes.\n\t * @returns {object} Promise manager.\n\t */\n\tfunction qFactory(nextTick, exceptionHandler) {\n\t  var $qMinErr = minErr('$q', TypeError);\n\t  function callOnce(self, resolveFn, rejectFn) {\n\t    var called = false;\n\t    function wrap(fn) {\n\t      return function(value) {\n\t        if (called) return;\n\t        called = true;\n\t        fn.call(self, value);\n\t      };\n\t    }\n\n\t    return [wrap(resolveFn), wrap(rejectFn)];\n\t  }\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name ng.$q#defer\n\t   * @kind function\n\t   *\n\t   * @description\n\t   * Creates a `Deferred` object which represents a task which will finish in the future.\n\t   *\n\t   * @returns {Deferred} Returns a new instance of deferred.\n\t   */\n\t  var defer = function() {\n\t    return new Deferred();\n\t  };\n\n\t  function Promise() {\n\t    this.$$state = { status: 0 };\n\t  }\n\n\t  extend(Promise.prototype, {\n\t    then: function(onFulfilled, onRejected, progressBack) {\n\t      if (isUndefined(onFulfilled) && isUndefined(onRejected) && isUndefined(progressBack)) {\n\t        return this;\n\t      }\n\t      var result = new Deferred();\n\n\t      this.$$state.pending = this.$$state.pending || [];\n\t      this.$$state.pending.push([result, onFulfilled, onRejected, progressBack]);\n\t      if (this.$$state.status > 0) scheduleProcessQueue(this.$$state);\n\n\t      return result.promise;\n\t    },\n\n\t    \"catch\": function(callback) {\n\t      return this.then(null, callback);\n\t    },\n\n\t    \"finally\": function(callback, progressBack) {\n\t      return this.then(function(value) {\n\t        return handleCallback(value, true, callback);\n\t      }, function(error) {\n\t        return handleCallback(error, false, callback);\n\t      }, progressBack);\n\t    }\n\t  });\n\n\t  //Faster, more basic than angular.bind http://jsperf.com/angular-bind-vs-custom-vs-native\n\t  function simpleBind(context, fn) {\n\t    return function(value) {\n\t      fn.call(context, value);\n\t    };\n\t  }\n\n\t  function processQueue(state) {\n\t    var fn, deferred, pending;\n\n\t    pending = state.pending;\n\t    state.processScheduled = false;\n\t    state.pending = undefined;\n\t    for (var i = 0, ii = pending.length; i < ii; ++i) {\n\t      deferred = pending[i][0];\n\t      fn = pending[i][state.status];\n\t      try {\n\t        if (isFunction(fn)) {\n\t          deferred.resolve(fn(state.value));\n\t        } else if (state.status === 1) {\n\t          deferred.resolve(state.value);\n\t        } else {\n\t          deferred.reject(state.value);\n\t        }\n\t      } catch (e) {\n\t        deferred.reject(e);\n\t        exceptionHandler(e);\n\t      }\n\t    }\n\t  }\n\n\t  function scheduleProcessQueue(state) {\n\t    if (state.processScheduled || !state.pending) return;\n\t    state.processScheduled = true;\n\t    nextTick(function() { processQueue(state); });\n\t  }\n\n\t  function Deferred() {\n\t    this.promise = new Promise();\n\t    //Necessary to support unbound execution :/\n\t    this.resolve = simpleBind(this, this.resolve);\n\t    this.reject = simpleBind(this, this.reject);\n\t    this.notify = simpleBind(this, this.notify);\n\t  }\n\n\t  extend(Deferred.prototype, {\n\t    resolve: function(val) {\n\t      if (this.promise.$$state.status) return;\n\t      if (val === this.promise) {\n\t        this.$$reject($qMinErr(\n\t          'qcycle',\n\t          \"Expected promise to be resolved with value other than itself '{0}'\",\n\t          val));\n\t      } else {\n\t        this.$$resolve(val);\n\t      }\n\n\t    },\n\n\t    $$resolve: function(val) {\n\t      var then, fns;\n\n\t      fns = callOnce(this, this.$$resolve, this.$$reject);\n\t      try {\n\t        if ((isObject(val) || isFunction(val))) then = val && val.then;\n\t        if (isFunction(then)) {\n\t          this.promise.$$state.status = -1;\n\t          then.call(val, fns[0], fns[1], this.notify);\n\t        } else {\n\t          this.promise.$$state.value = val;\n\t          this.promise.$$state.status = 1;\n\t          scheduleProcessQueue(this.promise.$$state);\n\t        }\n\t      } catch (e) {\n\t        fns[1](e);\n\t        exceptionHandler(e);\n\t      }\n\t    },\n\n\t    reject: function(reason) {\n\t      if (this.promise.$$state.status) return;\n\t      this.$$reject(reason);\n\t    },\n\n\t    $$reject: function(reason) {\n\t      this.promise.$$state.value = reason;\n\t      this.promise.$$state.status = 2;\n\t      scheduleProcessQueue(this.promise.$$state);\n\t    },\n\n\t    notify: function(progress) {\n\t      var callbacks = this.promise.$$state.pending;\n\n\t      if ((this.promise.$$state.status <= 0) && callbacks && callbacks.length) {\n\t        nextTick(function() {\n\t          var callback, result;\n\t          for (var i = 0, ii = callbacks.length; i < ii; i++) {\n\t            result = callbacks[i][0];\n\t            callback = callbacks[i][3];\n\t            try {\n\t              result.notify(isFunction(callback) ? callback(progress) : progress);\n\t            } catch (e) {\n\t              exceptionHandler(e);\n\t            }\n\t          }\n\t        });\n\t      }\n\t    }\n\t  });\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $q#reject\n\t   * @kind function\n\t   *\n\t   * @description\n\t   * Creates a promise that is resolved as rejected with the specified `reason`. This api should be\n\t   * used to forward rejection in a chain of promises. If you are dealing with the last promise in\n\t   * a promise chain, you don't need to worry about it.\n\t   *\n\t   * When comparing deferreds/promises to the familiar behavior of try/catch/throw, think of\n\t   * `reject` as the `throw` keyword in JavaScript. This also means that if you \"catch\" an error via\n\t   * a promise error callback and you want to forward the error to the promise derived from the\n\t   * current promise, you have to \"rethrow\" the error by returning a rejection constructed via\n\t   * `reject`.\n\t   *\n\t   * ```js\n\t   *   promiseB = promiseA.then(function(result) {\n\t   *     // success: do something and resolve promiseB\n\t   *     //          with the old or a new result\n\t   *     return result;\n\t   *   }, function(reason) {\n\t   *     // error: handle the error if possible and\n\t   *     //        resolve promiseB with newPromiseOrValue,\n\t   *     //        otherwise forward the rejection to promiseB\n\t   *     if (canHandle(reason)) {\n\t   *      // handle the error and recover\n\t   *      return newPromiseOrValue;\n\t   *     }\n\t   *     return $q.reject(reason);\n\t   *   });\n\t   * ```\n\t   *\n\t   * @param {*} reason Constant, message, exception or an object representing the rejection reason.\n\t   * @returns {Promise} Returns a promise that was already resolved as rejected with the `reason`.\n\t   */\n\t  var reject = function(reason) {\n\t    var result = new Deferred();\n\t    result.reject(reason);\n\t    return result.promise;\n\t  };\n\n\t  var makePromise = function makePromise(value, resolved) {\n\t    var result = new Deferred();\n\t    if (resolved) {\n\t      result.resolve(value);\n\t    } else {\n\t      result.reject(value);\n\t    }\n\t    return result.promise;\n\t  };\n\n\t  var handleCallback = function handleCallback(value, isResolved, callback) {\n\t    var callbackOutput = null;\n\t    try {\n\t      if (isFunction(callback)) callbackOutput = callback();\n\t    } catch (e) {\n\t      return makePromise(e, false);\n\t    }\n\t    if (isPromiseLike(callbackOutput)) {\n\t      return callbackOutput.then(function() {\n\t        return makePromise(value, isResolved);\n\t      }, function(error) {\n\t        return makePromise(error, false);\n\t      });\n\t    } else {\n\t      return makePromise(value, isResolved);\n\t    }\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $q#when\n\t   * @kind function\n\t   *\n\t   * @description\n\t   * Wraps an object that might be a value or a (3rd party) then-able promise into a $q promise.\n\t   * This is useful when you are dealing with an object that might or might not be a promise, or if\n\t   * the promise comes from a source that can't be trusted.\n\t   *\n\t   * @param {*} value Value or a promise\n\t   * @param {Function=} successCallback\n\t   * @param {Function=} errorCallback\n\t   * @param {Function=} progressCallback\n\t   * @returns {Promise} Returns a promise of the passed value or promise\n\t   */\n\n\n\t  var when = function(value, callback, errback, progressBack) {\n\t    var result = new Deferred();\n\t    result.resolve(value);\n\t    return result.promise.then(callback, errback, progressBack);\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $q#resolve\n\t   * @kind function\n\t   *\n\t   * @description\n\t   * Alias of {@link ng.$q#when when} to maintain naming consistency with ES6.\n\t   *\n\t   * @param {*} value Value or a promise\n\t   * @param {Function=} successCallback\n\t   * @param {Function=} errorCallback\n\t   * @param {Function=} progressCallback\n\t   * @returns {Promise} Returns a promise of the passed value or promise\n\t   */\n\t  var resolve = when;\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $q#all\n\t   * @kind function\n\t   *\n\t   * @description\n\t   * Combines multiple promises into a single promise that is resolved when all of the input\n\t   * promises are resolved.\n\t   *\n\t   * @param {Array.<Promise>|Object.<Promise>} promises An array or hash of promises.\n\t   * @returns {Promise} Returns a single promise that will be resolved with an array/hash of values,\n\t   *   each value corresponding to the promise at the same index/key in the `promises` array/hash.\n\t   *   If any of the promises is resolved with a rejection, this resulting promise will be rejected\n\t   *   with the same rejection value.\n\t   */\n\n\t  function all(promises) {\n\t    var deferred = new Deferred(),\n\t        counter = 0,\n\t        results = isArray(promises) ? [] : {};\n\n\t    forEach(promises, function(promise, key) {\n\t      counter++;\n\t      when(promise).then(function(value) {\n\t        if (results.hasOwnProperty(key)) return;\n\t        results[key] = value;\n\t        if (!(--counter)) deferred.resolve(results);\n\t      }, function(reason) {\n\t        if (results.hasOwnProperty(key)) return;\n\t        deferred.reject(reason);\n\t      });\n\t    });\n\n\t    if (counter === 0) {\n\t      deferred.resolve(results);\n\t    }\n\n\t    return deferred.promise;\n\t  }\n\n\t  var $Q = function Q(resolver) {\n\t    if (!isFunction(resolver)) {\n\t      throw $qMinErr('norslvr', \"Expected resolverFn, got '{0}'\", resolver);\n\t    }\n\n\t    if (!(this instanceof Q)) {\n\t      // More useful when $Q is the Promise itself.\n\t      return new Q(resolver);\n\t    }\n\n\t    var deferred = new Deferred();\n\n\t    function resolveFn(value) {\n\t      deferred.resolve(value);\n\t    }\n\n\t    function rejectFn(reason) {\n\t      deferred.reject(reason);\n\t    }\n\n\t    resolver(resolveFn, rejectFn);\n\n\t    return deferred.promise;\n\t  };\n\n\t  $Q.defer = defer;\n\t  $Q.reject = reject;\n\t  $Q.when = when;\n\t  $Q.resolve = resolve;\n\t  $Q.all = all;\n\n\t  return $Q;\n\t}\n\n\tfunction $$RAFProvider() { //rAF\n\t  this.$get = ['$window', '$timeout', function($window, $timeout) {\n\t    var requestAnimationFrame = $window.requestAnimationFrame ||\n\t                                $window.webkitRequestAnimationFrame;\n\n\t    var cancelAnimationFrame = $window.cancelAnimationFrame ||\n\t                               $window.webkitCancelAnimationFrame ||\n\t                               $window.webkitCancelRequestAnimationFrame;\n\n\t    var rafSupported = !!requestAnimationFrame;\n\t    var raf = rafSupported\n\t      ? function(fn) {\n\t          var id = requestAnimationFrame(fn);\n\t          return function() {\n\t            cancelAnimationFrame(id);\n\t          };\n\t        }\n\t      : function(fn) {\n\t          var timer = $timeout(fn, 16.66, false); // 1000 / 60 = 16.666\n\t          return function() {\n\t            $timeout.cancel(timer);\n\t          };\n\t        };\n\n\t    raf.supported = rafSupported;\n\n\t    return raf;\n\t  }];\n\t}\n\n\t/**\n\t * DESIGN NOTES\n\t *\n\t * The design decisions behind the scope are heavily favored for speed and memory consumption.\n\t *\n\t * The typical use of scope is to watch the expressions, which most of the time return the same\n\t * value as last time so we optimize the operation.\n\t *\n\t * Closures construction is expensive in terms of speed as well as memory:\n\t *   - No closures, instead use prototypical inheritance for API\n\t *   - Internal state needs to be stored on scope directly, which means that private state is\n\t *     exposed as $$____ properties\n\t *\n\t * Loop operations are optimized by using while(count--) { ... }\n\t *   - This means that in order to keep the same order of execution as addition we have to add\n\t *     items to the array at the beginning (unshift) instead of at the end (push)\n\t *\n\t * Child scopes are created and removed often\n\t *   - Using an array would be slow since inserts in the middle are expensive; so we use linked lists\n\t *\n\t * There are fewer watches than observers. This is why you don't want the observer to be implemented\n\t * in the same way as watch. Watch requires return of the initialization function which is expensive\n\t * to construct.\n\t */\n\n\n\t/**\n\t * @ngdoc provider\n\t * @name $rootScopeProvider\n\t * @description\n\t *\n\t * Provider for the $rootScope service.\n\t */\n\n\t/**\n\t * @ngdoc method\n\t * @name $rootScopeProvider#digestTtl\n\t * @description\n\t *\n\t * Sets the number of `$digest` iterations the scope should attempt to execute before giving up and\n\t * assuming that the model is unstable.\n\t *\n\t * The current default is 10 iterations.\n\t *\n\t * In complex applications it's possible that the dependencies between `$watch`s will result in\n\t * several digest iterations. However if an application needs more than the default 10 digest\n\t * iterations for its model to stabilize then you should investigate what is causing the model to\n\t * continuously change during the digest.\n\t *\n\t * Increasing the TTL could have performance implications, so you should not change it without\n\t * proper justification.\n\t *\n\t * @param {number} limit The number of digest iterations.\n\t */\n\n\n\t/**\n\t * @ngdoc service\n\t * @name $rootScope\n\t * @description\n\t *\n\t * Every application has a single root {@link ng.$rootScope.Scope scope}.\n\t * All other scopes are descendant scopes of the root scope. Scopes provide separation\n\t * between the model and the view, via a mechanism for watching the model for changes.\n\t * They also provide event emission/broadcast and subscription facility. See the\n\t * {@link guide/scope developer guide on scopes}.\n\t */\n\tfunction $RootScopeProvider() {\n\t  var TTL = 10;\n\t  var $rootScopeMinErr = minErr('$rootScope');\n\t  var lastDirtyWatch = null;\n\t  var applyAsyncId = null;\n\n\t  this.digestTtl = function(value) {\n\t    if (arguments.length) {\n\t      TTL = value;\n\t    }\n\t    return TTL;\n\t  };\n\n\t  function createChildScopeClass(parent) {\n\t    function ChildScope() {\n\t      this.$$watchers = this.$$nextSibling =\n\t          this.$$childHead = this.$$childTail = null;\n\t      this.$$listeners = {};\n\t      this.$$listenerCount = {};\n\t      this.$$watchersCount = 0;\n\t      this.$id = nextUid();\n\t      this.$$ChildScope = null;\n\t    }\n\t    ChildScope.prototype = parent;\n\t    return ChildScope;\n\t  }\n\n\t  this.$get = ['$injector', '$exceptionHandler', '$parse', '$browser',\n\t      function($injector, $exceptionHandler, $parse, $browser) {\n\n\t    function destroyChildScope($event) {\n\t        $event.currentScope.$$destroyed = true;\n\t    }\n\n\t    function cleanUpScope($scope) {\n\n\t      if (msie === 9) {\n\t        // There is a memory leak in IE9 if all child scopes are not disconnected\n\t        // completely when a scope is destroyed. So this code will recurse up through\n\t        // all this scopes children\n\t        //\n\t        // See issue https://github.com/angular/angular.js/issues/10706\n\t        $scope.$$childHead && cleanUpScope($scope.$$childHead);\n\t        $scope.$$nextSibling && cleanUpScope($scope.$$nextSibling);\n\t      }\n\n\t      // The code below works around IE9 and V8's memory leaks\n\t      //\n\t      // See:\n\t      // - https://code.google.com/p/v8/issues/detail?id=2073#c26\n\t      // - https://github.com/angular/angular.js/issues/6794#issuecomment-38648909\n\t      // - https://github.com/angular/angular.js/issues/1313#issuecomment-10378451\n\n\t      $scope.$parent = $scope.$$nextSibling = $scope.$$prevSibling = $scope.$$childHead =\n\t          $scope.$$childTail = $scope.$root = $scope.$$watchers = null;\n\t    }\n\n\t    /**\n\t     * @ngdoc type\n\t     * @name $rootScope.Scope\n\t     *\n\t     * @description\n\t     * A root scope can be retrieved using the {@link ng.$rootScope $rootScope} key from the\n\t     * {@link auto.$injector $injector}. Child scopes are created using the\n\t     * {@link ng.$rootScope.Scope#$new $new()} method. (Most scopes are created automatically when\n\t     * compiled HTML template is executed.) See also the {@link guide/scope Scopes guide} for\n\t     * an in-depth introduction and usage examples.\n\t     *\n\t     *\n\t     * # Inheritance\n\t     * A scope can inherit from a parent scope, as in this example:\n\t     * ```js\n\t         var parent = $rootScope;\n\t         var child = parent.$new();\n\n\t         parent.salutation = \"Hello\";\n\t         expect(child.salutation).toEqual('Hello');\n\n\t         child.salutation = \"Welcome\";\n\t         expect(child.salutation).toEqual('Welcome');\n\t         expect(parent.salutation).toEqual('Hello');\n\t     * ```\n\t     *\n\t     * When interacting with `Scope` in tests, additional helper methods are available on the\n\t     * instances of `Scope` type. See {@link ngMock.$rootScope.Scope ngMock Scope} for additional\n\t     * details.\n\t     *\n\t     *\n\t     * @param {Object.<string, function()>=} providers Map of service factory which need to be\n\t     *                                       provided for the current scope. Defaults to {@link ng}.\n\t     * @param {Object.<string, *>=} instanceCache Provides pre-instantiated services which should\n\t     *                              append/override services provided by `providers`. This is handy\n\t     *                              when unit-testing and having the need to override a default\n\t     *                              service.\n\t     * @returns {Object} Newly created scope.\n\t     *\n\t     */\n\t    function Scope() {\n\t      this.$id = nextUid();\n\t      this.$$phase = this.$parent = this.$$watchers =\n\t                     this.$$nextSibling = this.$$prevSibling =\n\t                     this.$$childHead = this.$$childTail = null;\n\t      this.$root = this;\n\t      this.$$destroyed = false;\n\t      this.$$listeners = {};\n\t      this.$$listenerCount = {};\n\t      this.$$watchersCount = 0;\n\t      this.$$isolateBindings = null;\n\t    }\n\n\t    /**\n\t     * @ngdoc property\n\t     * @name $rootScope.Scope#$id\n\t     *\n\t     * @description\n\t     * Unique scope ID (monotonically increasing) useful for debugging.\n\t     */\n\n\t     /**\n\t      * @ngdoc property\n\t      * @name $rootScope.Scope#$parent\n\t      *\n\t      * @description\n\t      * Reference to the parent scope.\n\t      */\n\n\t      /**\n\t       * @ngdoc property\n\t       * @name $rootScope.Scope#$root\n\t       *\n\t       * @description\n\t       * Reference to the root scope.\n\t       */\n\n\t    Scope.prototype = {\n\t      constructor: Scope,\n\t      /**\n\t       * @ngdoc method\n\t       * @name $rootScope.Scope#$new\n\t       * @kind function\n\t       *\n\t       * @description\n\t       * Creates a new child {@link ng.$rootScope.Scope scope}.\n\t       *\n\t       * The parent scope will propagate the {@link ng.$rootScope.Scope#$digest $digest()} event.\n\t       * The scope can be removed from the scope hierarchy using {@link ng.$rootScope.Scope#$destroy $destroy()}.\n\t       *\n\t       * {@link ng.$rootScope.Scope#$destroy $destroy()} must be called on a scope when it is\n\t       * desired for the scope and its child scopes to be permanently detached from the parent and\n\t       * thus stop participating in model change detection and listener notification by invoking.\n\t       *\n\t       * @param {boolean} isolate If true, then the scope does not prototypically inherit from the\n\t       *         parent scope. The scope is isolated, as it can not see parent scope properties.\n\t       *         When creating widgets, it is useful for the widget to not accidentally read parent\n\t       *         state.\n\t       *\n\t       * @param {Scope} [parent=this] The {@link ng.$rootScope.Scope `Scope`} that will be the `$parent`\n\t       *                              of the newly created scope. Defaults to `this` scope if not provided.\n\t       *                              This is used when creating a transclude scope to correctly place it\n\t       *                              in the scope hierarchy while maintaining the correct prototypical\n\t       *                              inheritance.\n\t       *\n\t       * @returns {Object} The newly created child scope.\n\t       *\n\t       */\n\t      $new: function(isolate, parent) {\n\t        var child;\n\n\t        parent = parent || this;\n\n\t        if (isolate) {\n\t          child = new Scope();\n\t          child.$root = this.$root;\n\t        } else {\n\t          // Only create a child scope class if somebody asks for one,\n\t          // but cache it to allow the VM to optimize lookups.\n\t          if (!this.$$ChildScope) {\n\t            this.$$ChildScope = createChildScopeClass(this);\n\t          }\n\t          child = new this.$$ChildScope();\n\t        }\n\t        child.$parent = parent;\n\t        child.$$prevSibling = parent.$$childTail;\n\t        if (parent.$$childHead) {\n\t          parent.$$childTail.$$nextSibling = child;\n\t          parent.$$childTail = child;\n\t        } else {\n\t          parent.$$childHead = parent.$$childTail = child;\n\t        }\n\n\t        // When the new scope is not isolated or we inherit from `this`, and\n\t        // the parent scope is destroyed, the property `$$destroyed` is inherited\n\t        // prototypically. In all other cases, this property needs to be set\n\t        // when the parent scope is destroyed.\n\t        // The listener needs to be added after the parent is set\n\t        if (isolate || parent != this) child.$on('$destroy', destroyChildScope);\n\n\t        return child;\n\t      },\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $rootScope.Scope#$watch\n\t       * @kind function\n\t       *\n\t       * @description\n\t       * Registers a `listener` callback to be executed whenever the `watchExpression` changes.\n\t       *\n\t       * - The `watchExpression` is called on every call to {@link ng.$rootScope.Scope#$digest\n\t       *   $digest()} and should return the value that will be watched. (`watchExpression` should not change\n\t       *   its value when executed multiple times with the same input because it may be executed multiple\n\t       *   times by {@link ng.$rootScope.Scope#$digest $digest()}. That is, `watchExpression` should be\n\t       *   [idempotent](http://en.wikipedia.org/wiki/Idempotence).\n\t       * - The `listener` is called only when the value from the current `watchExpression` and the\n\t       *   previous call to `watchExpression` are not equal (with the exception of the initial run,\n\t       *   see below). Inequality is determined according to reference inequality,\n\t       *   [strict comparison](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Comparison_Operators)\n\t       *    via the `!==` Javascript operator, unless `objectEquality == true`\n\t       *   (see next point)\n\t       * - When `objectEquality == true`, inequality of the `watchExpression` is determined\n\t       *   according to the {@link angular.equals} function. To save the value of the object for\n\t       *   later comparison, the {@link angular.copy} function is used. This therefore means that\n\t       *   watching complex objects will have adverse memory and performance implications.\n\t       * - The watch `listener` may change the model, which may trigger other `listener`s to fire.\n\t       *   This is achieved by rerunning the watchers until no changes are detected. The rerun\n\t       *   iteration limit is 10 to prevent an infinite loop deadlock.\n\t       *\n\t       *\n\t       * If you want to be notified whenever {@link ng.$rootScope.Scope#$digest $digest} is called,\n\t       * you can register a `watchExpression` function with no `listener`. (Be prepared for\n\t       * multiple calls to your `watchExpression` because it will execute multiple times in a\n\t       * single {@link ng.$rootScope.Scope#$digest $digest} cycle if a change is detected.)\n\t       *\n\t       * After a watcher is registered with the scope, the `listener` fn is called asynchronously\n\t       * (via {@link ng.$rootScope.Scope#$evalAsync $evalAsync}) to initialize the\n\t       * watcher. In rare cases, this is undesirable because the listener is called when the result\n\t       * of `watchExpression` didn't change. To detect this scenario within the `listener` fn, you\n\t       * can compare the `newVal` and `oldVal`. If these two values are identical (`===`) then the\n\t       * listener was called due to initialization.\n\t       *\n\t       *\n\t       *\n\t       * # Example\n\t       * ```js\n\t           // let's assume that scope was dependency injected as the $rootScope\n\t           var scope = $rootScope;\n\t           scope.name = 'misko';\n\t           scope.counter = 0;\n\n\t           expect(scope.counter).toEqual(0);\n\t           scope.$watch('name', function(newValue, oldValue) {\n\t             scope.counter = scope.counter + 1;\n\t           });\n\t           expect(scope.counter).toEqual(0);\n\n\t           scope.$digest();\n\t           // the listener is always called during the first $digest loop after it was registered\n\t           expect(scope.counter).toEqual(1);\n\n\t           scope.$digest();\n\t           // but now it will not be called unless the value changes\n\t           expect(scope.counter).toEqual(1);\n\n\t           scope.name = 'adam';\n\t           scope.$digest();\n\t           expect(scope.counter).toEqual(2);\n\n\n\n\t           // Using a function as a watchExpression\n\t           var food;\n\t           scope.foodCounter = 0;\n\t           expect(scope.foodCounter).toEqual(0);\n\t           scope.$watch(\n\t             // This function returns the value being watched. It is called for each turn of the $digest loop\n\t             function() { return food; },\n\t             // This is the change listener, called when the value returned from the above function changes\n\t             function(newValue, oldValue) {\n\t               if ( newValue !== oldValue ) {\n\t                 // Only increment the counter if the value changed\n\t                 scope.foodCounter = scope.foodCounter + 1;\n\t               }\n\t             }\n\t           );\n\t           // No digest has been run so the counter will be zero\n\t           expect(scope.foodCounter).toEqual(0);\n\n\t           // Run the digest but since food has not changed count will still be zero\n\t           scope.$digest();\n\t           expect(scope.foodCounter).toEqual(0);\n\n\t           // Update food and run digest.  Now the counter will increment\n\t           food = 'cheeseburger';\n\t           scope.$digest();\n\t           expect(scope.foodCounter).toEqual(1);\n\n\t       * ```\n\t       *\n\t       *\n\t       *\n\t       * @param {(function()|string)} watchExpression Expression that is evaluated on each\n\t       *    {@link ng.$rootScope.Scope#$digest $digest} cycle. A change in the return value triggers\n\t       *    a call to the `listener`.\n\t       *\n\t       *    - `string`: Evaluated as {@link guide/expression expression}\n\t       *    - `function(scope)`: called with current `scope` as a parameter.\n\t       * @param {function(newVal, oldVal, scope)} listener Callback called whenever the value\n\t       *    of `watchExpression` changes.\n\t       *\n\t       *    - `newVal` contains the current value of the `watchExpression`\n\t       *    - `oldVal` contains the previous value of the `watchExpression`\n\t       *    - `scope` refers to the current scope\n\t       * @param {boolean=} objectEquality Compare for object equality using {@link angular.equals} instead of\n\t       *     comparing for reference equality.\n\t       * @returns {function()} Returns a deregistration function for this listener.\n\t       */\n\t      $watch: function(watchExp, listener, objectEquality, prettyPrintExpression) {\n\t        var get = $parse(watchExp);\n\n\t        if (get.$$watchDelegate) {\n\t          return get.$$watchDelegate(this, listener, objectEquality, get, watchExp);\n\t        }\n\t        var scope = this,\n\t            array = scope.$$watchers,\n\t            watcher = {\n\t              fn: listener,\n\t              last: initWatchVal,\n\t              get: get,\n\t              exp: prettyPrintExpression || watchExp,\n\t              eq: !!objectEquality\n\t            };\n\n\t        lastDirtyWatch = null;\n\n\t        if (!isFunction(listener)) {\n\t          watcher.fn = noop;\n\t        }\n\n\t        if (!array) {\n\t          array = scope.$$watchers = [];\n\t        }\n\t        // we use unshift since we use a while loop in $digest for speed.\n\t        // the while loop reads in reverse order.\n\t        array.unshift(watcher);\n\t        incrementWatchersCount(this, 1);\n\n\t        return function deregisterWatch() {\n\t          if (arrayRemove(array, watcher) >= 0) {\n\t            incrementWatchersCount(scope, -1);\n\t          }\n\t          lastDirtyWatch = null;\n\t        };\n\t      },\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $rootScope.Scope#$watchGroup\n\t       * @kind function\n\t       *\n\t       * @description\n\t       * A variant of {@link ng.$rootScope.Scope#$watch $watch()} where it watches an array of `watchExpressions`.\n\t       * If any one expression in the collection changes the `listener` is executed.\n\t       *\n\t       * - The items in the `watchExpressions` array are observed via standard $watch operation and are examined on every\n\t       *   call to $digest() to see if any items changes.\n\t       * - The `listener` is called whenever any expression in the `watchExpressions` array changes.\n\t       *\n\t       * @param {Array.<string|Function(scope)>} watchExpressions Array of expressions that will be individually\n\t       * watched using {@link ng.$rootScope.Scope#$watch $watch()}\n\t       *\n\t       * @param {function(newValues, oldValues, scope)} listener Callback called whenever the return value of any\n\t       *    expression in `watchExpressions` changes\n\t       *    The `newValues` array contains the current values of the `watchExpressions`, with the indexes matching\n\t       *    those of `watchExpression`\n\t       *    and the `oldValues` array contains the previous values of the `watchExpressions`, with the indexes matching\n\t       *    those of `watchExpression`\n\t       *    The `scope` refers to the current scope.\n\t       * @returns {function()} Returns a de-registration function for all listeners.\n\t       */\n\t      $watchGroup: function(watchExpressions, listener) {\n\t        var oldValues = new Array(watchExpressions.length);\n\t        var newValues = new Array(watchExpressions.length);\n\t        var deregisterFns = [];\n\t        var self = this;\n\t        var changeReactionScheduled = false;\n\t        var firstRun = true;\n\n\t        if (!watchExpressions.length) {\n\t          // No expressions means we call the listener ASAP\n\t          var shouldCall = true;\n\t          self.$evalAsync(function() {\n\t            if (shouldCall) listener(newValues, newValues, self);\n\t          });\n\t          return function deregisterWatchGroup() {\n\t            shouldCall = false;\n\t          };\n\t        }\n\n\t        if (watchExpressions.length === 1) {\n\t          // Special case size of one\n\t          return this.$watch(watchExpressions[0], function watchGroupAction(value, oldValue, scope) {\n\t            newValues[0] = value;\n\t            oldValues[0] = oldValue;\n\t            listener(newValues, (value === oldValue) ? newValues : oldValues, scope);\n\t          });\n\t        }\n\n\t        forEach(watchExpressions, function(expr, i) {\n\t          var unwatchFn = self.$watch(expr, function watchGroupSubAction(value, oldValue) {\n\t            newValues[i] = value;\n\t            oldValues[i] = oldValue;\n\t            if (!changeReactionScheduled) {\n\t              changeReactionScheduled = true;\n\t              self.$evalAsync(watchGroupAction);\n\t            }\n\t          });\n\t          deregisterFns.push(unwatchFn);\n\t        });\n\n\t        function watchGroupAction() {\n\t          changeReactionScheduled = false;\n\n\t          if (firstRun) {\n\t            firstRun = false;\n\t            listener(newValues, newValues, self);\n\t          } else {\n\t            listener(newValues, oldValues, self);\n\t          }\n\t        }\n\n\t        return function deregisterWatchGroup() {\n\t          while (deregisterFns.length) {\n\t            deregisterFns.shift()();\n\t          }\n\t        };\n\t      },\n\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $rootScope.Scope#$watchCollection\n\t       * @kind function\n\t       *\n\t       * @description\n\t       * Shallow watches the properties of an object and fires whenever any of the properties change\n\t       * (for arrays, this implies watching the array items; for object maps, this implies watching\n\t       * the properties). If a change is detected, the `listener` callback is fired.\n\t       *\n\t       * - The `obj` collection is observed via standard $watch operation and is examined on every\n\t       *   call to $digest() to see if any items have been added, removed, or moved.\n\t       * - The `listener` is called whenever anything within the `obj` has changed. Examples include\n\t       *   adding, removing, and moving items belonging to an object or array.\n\t       *\n\t       *\n\t       * # Example\n\t       * ```js\n\t          $scope.names = ['igor', 'matias', 'misko', 'james'];\n\t          $scope.dataCount = 4;\n\n\t          $scope.$watchCollection('names', function(newNames, oldNames) {\n\t            $scope.dataCount = newNames.length;\n\t          });\n\n\t          expect($scope.dataCount).toEqual(4);\n\t          $scope.$digest();\n\n\t          //still at 4 ... no changes\n\t          expect($scope.dataCount).toEqual(4);\n\n\t          $scope.names.pop();\n\t          $scope.$digest();\n\n\t          //now there's been a change\n\t          expect($scope.dataCount).toEqual(3);\n\t       * ```\n\t       *\n\t       *\n\t       * @param {string|function(scope)} obj Evaluated as {@link guide/expression expression}. The\n\t       *    expression value should evaluate to an object or an array which is observed on each\n\t       *    {@link ng.$rootScope.Scope#$digest $digest} cycle. Any shallow change within the\n\t       *    collection will trigger a call to the `listener`.\n\t       *\n\t       * @param {function(newCollection, oldCollection, scope)} listener a callback function called\n\t       *    when a change is detected.\n\t       *    - The `newCollection` object is the newly modified data obtained from the `obj` expression\n\t       *    - The `oldCollection` object is a copy of the former collection data.\n\t       *      Due to performance considerations, the`oldCollection` value is computed only if the\n\t       *      `listener` function declares two or more arguments.\n\t       *    - The `scope` argument refers to the current scope.\n\t       *\n\t       * @returns {function()} Returns a de-registration function for this listener. When the\n\t       *    de-registration function is executed, the internal watch operation is terminated.\n\t       */\n\t      $watchCollection: function(obj, listener) {\n\t        $watchCollectionInterceptor.$stateful = true;\n\n\t        var self = this;\n\t        // the current value, updated on each dirty-check run\n\t        var newValue;\n\t        // a shallow copy of the newValue from the last dirty-check run,\n\t        // updated to match newValue during dirty-check run\n\t        var oldValue;\n\t        // a shallow copy of the newValue from when the last change happened\n\t        var veryOldValue;\n\t        // only track veryOldValue if the listener is asking for it\n\t        var trackVeryOldValue = (listener.length > 1);\n\t        var changeDetected = 0;\n\t        var changeDetector = $parse(obj, $watchCollectionInterceptor);\n\t        var internalArray = [];\n\t        var internalObject = {};\n\t        var initRun = true;\n\t        var oldLength = 0;\n\n\t        function $watchCollectionInterceptor(_value) {\n\t          newValue = _value;\n\t          var newLength, key, bothNaN, newItem, oldItem;\n\n\t          // If the new value is undefined, then return undefined as the watch may be a one-time watch\n\t          if (isUndefined(newValue)) return;\n\n\t          if (!isObject(newValue)) { // if primitive\n\t            if (oldValue !== newValue) {\n\t              oldValue = newValue;\n\t              changeDetected++;\n\t            }\n\t          } else if (isArrayLike(newValue)) {\n\t            if (oldValue !== internalArray) {\n\t              // we are transitioning from something which was not an array into array.\n\t              oldValue = internalArray;\n\t              oldLength = oldValue.length = 0;\n\t              changeDetected++;\n\t            }\n\n\t            newLength = newValue.length;\n\n\t            if (oldLength !== newLength) {\n\t              // if lengths do not match we need to trigger change notification\n\t              changeDetected++;\n\t              oldValue.length = oldLength = newLength;\n\t            }\n\t            // copy the items to oldValue and look for changes.\n\t            for (var i = 0; i < newLength; i++) {\n\t              oldItem = oldValue[i];\n\t              newItem = newValue[i];\n\n\t              bothNaN = (oldItem !== oldItem) && (newItem !== newItem);\n\t              if (!bothNaN && (oldItem !== newItem)) {\n\t                changeDetected++;\n\t                oldValue[i] = newItem;\n\t              }\n\t            }\n\t          } else {\n\t            if (oldValue !== internalObject) {\n\t              // we are transitioning from something which was not an object into object.\n\t              oldValue = internalObject = {};\n\t              oldLength = 0;\n\t              changeDetected++;\n\t            }\n\t            // copy the items to oldValue and look for changes.\n\t            newLength = 0;\n\t            for (key in newValue) {\n\t              if (hasOwnProperty.call(newValue, key)) {\n\t                newLength++;\n\t                newItem = newValue[key];\n\t                oldItem = oldValue[key];\n\n\t                if (key in oldValue) {\n\t                  bothNaN = (oldItem !== oldItem) && (newItem !== newItem);\n\t                  if (!bothNaN && (oldItem !== newItem)) {\n\t                    changeDetected++;\n\t                    oldValue[key] = newItem;\n\t                  }\n\t                } else {\n\t                  oldLength++;\n\t                  oldValue[key] = newItem;\n\t                  changeDetected++;\n\t                }\n\t              }\n\t            }\n\t            if (oldLength > newLength) {\n\t              // we used to have more keys, need to find them and destroy them.\n\t              changeDetected++;\n\t              for (key in oldValue) {\n\t                if (!hasOwnProperty.call(newValue, key)) {\n\t                  oldLength--;\n\t                  delete oldValue[key];\n\t                }\n\t              }\n\t            }\n\t          }\n\t          return changeDetected;\n\t        }\n\n\t        function $watchCollectionAction() {\n\t          if (initRun) {\n\t            initRun = false;\n\t            listener(newValue, newValue, self);\n\t          } else {\n\t            listener(newValue, veryOldValue, self);\n\t          }\n\n\t          // make a copy for the next time a collection is changed\n\t          if (trackVeryOldValue) {\n\t            if (!isObject(newValue)) {\n\t              //primitive\n\t              veryOldValue = newValue;\n\t            } else if (isArrayLike(newValue)) {\n\t              veryOldValue = new Array(newValue.length);\n\t              for (var i = 0; i < newValue.length; i++) {\n\t                veryOldValue[i] = newValue[i];\n\t              }\n\t            } else { // if object\n\t              veryOldValue = {};\n\t              for (var key in newValue) {\n\t                if (hasOwnProperty.call(newValue, key)) {\n\t                  veryOldValue[key] = newValue[key];\n\t                }\n\t              }\n\t            }\n\t          }\n\t        }\n\n\t        return this.$watch(changeDetector, $watchCollectionAction);\n\t      },\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $rootScope.Scope#$digest\n\t       * @kind function\n\t       *\n\t       * @description\n\t       * Processes all of the {@link ng.$rootScope.Scope#$watch watchers} of the current scope and\n\t       * its children. Because a {@link ng.$rootScope.Scope#$watch watcher}'s listener can change\n\t       * the model, the `$digest()` keeps calling the {@link ng.$rootScope.Scope#$watch watchers}\n\t       * until no more listeners are firing. This means that it is possible to get into an infinite\n\t       * loop. This function will throw `'Maximum iteration limit exceeded.'` if the number of\n\t       * iterations exceeds 10.\n\t       *\n\t       * Usually, you don't call `$digest()` directly in\n\t       * {@link ng.directive:ngController controllers} or in\n\t       * {@link ng.$compileProvider#directive directives}.\n\t       * Instead, you should call {@link ng.$rootScope.Scope#$apply $apply()} (typically from within\n\t       * a {@link ng.$compileProvider#directive directive}), which will force a `$digest()`.\n\t       *\n\t       * If you want to be notified whenever `$digest()` is called,\n\t       * you can register a `watchExpression` function with\n\t       * {@link ng.$rootScope.Scope#$watch $watch()} with no `listener`.\n\t       *\n\t       * In unit tests, you may need to call `$digest()` to simulate the scope life cycle.\n\t       *\n\t       * # Example\n\t       * ```js\n\t           var scope = ...;\n\t           scope.name = 'misko';\n\t           scope.counter = 0;\n\n\t           expect(scope.counter).toEqual(0);\n\t           scope.$watch('name', function(newValue, oldValue) {\n\t             scope.counter = scope.counter + 1;\n\t           });\n\t           expect(scope.counter).toEqual(0);\n\n\t           scope.$digest();\n\t           // the listener is always called during the first $digest loop after it was registered\n\t           expect(scope.counter).toEqual(1);\n\n\t           scope.$digest();\n\t           // but now it will not be called unless the value changes\n\t           expect(scope.counter).toEqual(1);\n\n\t           scope.name = 'adam';\n\t           scope.$digest();\n\t           expect(scope.counter).toEqual(2);\n\t       * ```\n\t       *\n\t       */\n\t      $digest: function() {\n\t        var watch, value, last,\n\t            watchers,\n\t            length,\n\t            dirty, ttl = TTL,\n\t            next, current, target = this,\n\t            watchLog = [],\n\t            logIdx, logMsg, asyncTask;\n\n\t        beginPhase('$digest');\n\t        // Check for changes to browser url that happened in sync before the call to $digest\n\t        $browser.$$checkUrlChange();\n\n\t        if (this === $rootScope && applyAsyncId !== null) {\n\t          // If this is the root scope, and $applyAsync has scheduled a deferred $apply(), then\n\t          // cancel the scheduled $apply and flush the queue of expressions to be evaluated.\n\t          $browser.defer.cancel(applyAsyncId);\n\t          flushApplyAsync();\n\t        }\n\n\t        lastDirtyWatch = null;\n\n\t        do { // \"while dirty\" loop\n\t          dirty = false;\n\t          current = target;\n\n\t          while (asyncQueue.length) {\n\t            try {\n\t              asyncTask = asyncQueue.shift();\n\t              asyncTask.scope.$eval(asyncTask.expression, asyncTask.locals);\n\t            } catch (e) {\n\t              $exceptionHandler(e);\n\t            }\n\t            lastDirtyWatch = null;\n\t          }\n\n\t          traverseScopesLoop:\n\t          do { // \"traverse the scopes\" loop\n\t            if ((watchers = current.$$watchers)) {\n\t              // process our watches\n\t              length = watchers.length;\n\t              while (length--) {\n\t                try {\n\t                  watch = watchers[length];\n\t                  // Most common watches are on primitives, in which case we can short\n\t                  // circuit it with === operator, only when === fails do we use .equals\n\t                  if (watch) {\n\t                    if ((value = watch.get(current)) !== (last = watch.last) &&\n\t                        !(watch.eq\n\t                            ? equals(value, last)\n\t                            : (typeof value === 'number' && typeof last === 'number'\n\t                               && isNaN(value) && isNaN(last)))) {\n\t                      dirty = true;\n\t                      lastDirtyWatch = watch;\n\t                      watch.last = watch.eq ? copy(value, null) : value;\n\t                      watch.fn(value, ((last === initWatchVal) ? value : last), current);\n\t                      if (ttl < 5) {\n\t                        logIdx = 4 - ttl;\n\t                        if (!watchLog[logIdx]) watchLog[logIdx] = [];\n\t                        watchLog[logIdx].push({\n\t                          msg: isFunction(watch.exp) ? 'fn: ' + (watch.exp.name || watch.exp.toString()) : watch.exp,\n\t                          newVal: value,\n\t                          oldVal: last\n\t                        });\n\t                      }\n\t                    } else if (watch === lastDirtyWatch) {\n\t                      // If the most recently dirty watcher is now clean, short circuit since the remaining watchers\n\t                      // have already been tested.\n\t                      dirty = false;\n\t                      break traverseScopesLoop;\n\t                    }\n\t                  }\n\t                } catch (e) {\n\t                  $exceptionHandler(e);\n\t                }\n\t              }\n\t            }\n\n\t            // Insanity Warning: scope depth-first traversal\n\t            // yes, this code is a bit crazy, but it works and we have tests to prove it!\n\t            // this piece should be kept in sync with the traversal in $broadcast\n\t            if (!(next = ((current.$$watchersCount && current.$$childHead) ||\n\t                (current !== target && current.$$nextSibling)))) {\n\t              while (current !== target && !(next = current.$$nextSibling)) {\n\t                current = current.$parent;\n\t              }\n\t            }\n\t          } while ((current = next));\n\n\t          // `break traverseScopesLoop;` takes us to here\n\n\t          if ((dirty || asyncQueue.length) && !(ttl--)) {\n\t            clearPhase();\n\t            throw $rootScopeMinErr('infdig',\n\t                '{0} $digest() iterations reached. Aborting!\\n' +\n\t                'Watchers fired in the last 5 iterations: {1}',\n\t                TTL, watchLog);\n\t          }\n\n\t        } while (dirty || asyncQueue.length);\n\n\t        clearPhase();\n\n\t        while (postDigestQueue.length) {\n\t          try {\n\t            postDigestQueue.shift()();\n\t          } catch (e) {\n\t            $exceptionHandler(e);\n\t          }\n\t        }\n\t      },\n\n\n\t      /**\n\t       * @ngdoc event\n\t       * @name $rootScope.Scope#$destroy\n\t       * @eventType broadcast on scope being destroyed\n\t       *\n\t       * @description\n\t       * Broadcasted when a scope and its children are being destroyed.\n\t       *\n\t       * Note that, in AngularJS, there is also a `$destroy` jQuery event, which can be used to\n\t       * clean up DOM bindings before an element is removed from the DOM.\n\t       */\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $rootScope.Scope#$destroy\n\t       * @kind function\n\t       *\n\t       * @description\n\t       * Removes the current scope (and all of its children) from the parent scope. Removal implies\n\t       * that calls to {@link ng.$rootScope.Scope#$digest $digest()} will no longer\n\t       * propagate to the current scope and its children. Removal also implies that the current\n\t       * scope is eligible for garbage collection.\n\t       *\n\t       * The `$destroy()` is usually used by directives such as\n\t       * {@link ng.directive:ngRepeat ngRepeat} for managing the\n\t       * unrolling of the loop.\n\t       *\n\t       * Just before a scope is destroyed, a `$destroy` event is broadcasted on this scope.\n\t       * Application code can register a `$destroy` event handler that will give it a chance to\n\t       * perform any necessary cleanup.\n\t       *\n\t       * Note that, in AngularJS, there is also a `$destroy` jQuery event, which can be used to\n\t       * clean up DOM bindings before an element is removed from the DOM.\n\t       */\n\t      $destroy: function() {\n\t        // We can't destroy a scope that has been already destroyed.\n\t        if (this.$$destroyed) return;\n\t        var parent = this.$parent;\n\n\t        this.$broadcast('$destroy');\n\t        this.$$destroyed = true;\n\n\t        if (this === $rootScope) {\n\t          //Remove handlers attached to window when $rootScope is removed\n\t          $browser.$$applicationDestroyed();\n\t        }\n\n\t        incrementWatchersCount(this, -this.$$watchersCount);\n\t        for (var eventName in this.$$listenerCount) {\n\t          decrementListenerCount(this, this.$$listenerCount[eventName], eventName);\n\t        }\n\n\t        // sever all the references to parent scopes (after this cleanup, the current scope should\n\t        // not be retained by any of our references and should be eligible for garbage collection)\n\t        if (parent && parent.$$childHead == this) parent.$$childHead = this.$$nextSibling;\n\t        if (parent && parent.$$childTail == this) parent.$$childTail = this.$$prevSibling;\n\t        if (this.$$prevSibling) this.$$prevSibling.$$nextSibling = this.$$nextSibling;\n\t        if (this.$$nextSibling) this.$$nextSibling.$$prevSibling = this.$$prevSibling;\n\n\t        // Disable listeners, watchers and apply/digest methods\n\t        this.$destroy = this.$digest = this.$apply = this.$evalAsync = this.$applyAsync = noop;\n\t        this.$on = this.$watch = this.$watchGroup = function() { return noop; };\n\t        this.$$listeners = {};\n\n\t        // Disconnect the next sibling to prevent `cleanUpScope` destroying those too\n\t        this.$$nextSibling = null;\n\t        cleanUpScope(this);\n\t      },\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $rootScope.Scope#$eval\n\t       * @kind function\n\t       *\n\t       * @description\n\t       * Executes the `expression` on the current scope and returns the result. Any exceptions in\n\t       * the expression are propagated (uncaught). This is useful when evaluating Angular\n\t       * expressions.\n\t       *\n\t       * # Example\n\t       * ```js\n\t           var scope = ng.$rootScope.Scope();\n\t           scope.a = 1;\n\t           scope.b = 2;\n\n\t           expect(scope.$eval('a+b')).toEqual(3);\n\t           expect(scope.$eval(function(scope){ return scope.a + scope.b; })).toEqual(3);\n\t       * ```\n\t       *\n\t       * @param {(string|function())=} expression An angular expression to be executed.\n\t       *\n\t       *    - `string`: execute using the rules as defined in  {@link guide/expression expression}.\n\t       *    - `function(scope)`: execute the function with the current `scope` parameter.\n\t       *\n\t       * @param {(object)=} locals Local variables object, useful for overriding values in scope.\n\t       * @returns {*} The result of evaluating the expression.\n\t       */\n\t      $eval: function(expr, locals) {\n\t        return $parse(expr)(this, locals);\n\t      },\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $rootScope.Scope#$evalAsync\n\t       * @kind function\n\t       *\n\t       * @description\n\t       * Executes the expression on the current scope at a later point in time.\n\t       *\n\t       * The `$evalAsync` makes no guarantees as to when the `expression` will be executed, only\n\t       * that:\n\t       *\n\t       *   - it will execute after the function that scheduled the evaluation (preferably before DOM\n\t       *     rendering).\n\t       *   - at least one {@link ng.$rootScope.Scope#$digest $digest cycle} will be performed after\n\t       *     `expression` execution.\n\t       *\n\t       * Any exceptions from the execution of the expression are forwarded to the\n\t       * {@link ng.$exceptionHandler $exceptionHandler} service.\n\t       *\n\t       * __Note:__ if this function is called outside of a `$digest` cycle, a new `$digest` cycle\n\t       * will be scheduled. However, it is encouraged to always call code that changes the model\n\t       * from within an `$apply` call. That includes code evaluated via `$evalAsync`.\n\t       *\n\t       * @param {(string|function())=} expression An angular expression to be executed.\n\t       *\n\t       *    - `string`: execute using the rules as defined in {@link guide/expression expression}.\n\t       *    - `function(scope)`: execute the function with the current `scope` parameter.\n\t       *\n\t       * @param {(object)=} locals Local variables object, useful for overriding values in scope.\n\t       */\n\t      $evalAsync: function(expr, locals) {\n\t        // if we are outside of an $digest loop and this is the first time we are scheduling async\n\t        // task also schedule async auto-flush\n\t        if (!$rootScope.$$phase && !asyncQueue.length) {\n\t          $browser.defer(function() {\n\t            if (asyncQueue.length) {\n\t              $rootScope.$digest();\n\t            }\n\t          });\n\t        }\n\n\t        asyncQueue.push({scope: this, expression: expr, locals: locals});\n\t      },\n\n\t      $$postDigest: function(fn) {\n\t        postDigestQueue.push(fn);\n\t      },\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $rootScope.Scope#$apply\n\t       * @kind function\n\t       *\n\t       * @description\n\t       * `$apply()` is used to execute an expression in angular from outside of the angular\n\t       * framework. (For example from browser DOM events, setTimeout, XHR or third party libraries).\n\t       * Because we are calling into the angular framework we need to perform proper scope life\n\t       * cycle of {@link ng.$exceptionHandler exception handling},\n\t       * {@link ng.$rootScope.Scope#$digest executing watches}.\n\t       *\n\t       * ## Life cycle\n\t       *\n\t       * # Pseudo-Code of `$apply()`\n\t       * ```js\n\t           function $apply(expr) {\n\t             try {\n\t               return $eval(expr);\n\t             } catch (e) {\n\t               $exceptionHandler(e);\n\t             } finally {\n\t               $root.$digest();\n\t             }\n\t           }\n\t       * ```\n\t       *\n\t       *\n\t       * Scope's `$apply()` method transitions through the following stages:\n\t       *\n\t       * 1. The {@link guide/expression expression} is executed using the\n\t       *    {@link ng.$rootScope.Scope#$eval $eval()} method.\n\t       * 2. Any exceptions from the execution of the expression are forwarded to the\n\t       *    {@link ng.$exceptionHandler $exceptionHandler} service.\n\t       * 3. The {@link ng.$rootScope.Scope#$watch watch} listeners are fired immediately after the\n\t       *    expression was executed using the {@link ng.$rootScope.Scope#$digest $digest()} method.\n\t       *\n\t       *\n\t       * @param {(string|function())=} exp An angular expression to be executed.\n\t       *\n\t       *    - `string`: execute using the rules as defined in {@link guide/expression expression}.\n\t       *    - `function(scope)`: execute the function with current `scope` parameter.\n\t       *\n\t       * @returns {*} The result of evaluating the expression.\n\t       */\n\t      $apply: function(expr) {\n\t        try {\n\t          beginPhase('$apply');\n\t          try {\n\t            return this.$eval(expr);\n\t          } finally {\n\t            clearPhase();\n\t          }\n\t        } catch (e) {\n\t          $exceptionHandler(e);\n\t        } finally {\n\t          try {\n\t            $rootScope.$digest();\n\t          } catch (e) {\n\t            $exceptionHandler(e);\n\t            throw e;\n\t          }\n\t        }\n\t      },\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $rootScope.Scope#$applyAsync\n\t       * @kind function\n\t       *\n\t       * @description\n\t       * Schedule the invocation of $apply to occur at a later time. The actual time difference\n\t       * varies across browsers, but is typically around ~10 milliseconds.\n\t       *\n\t       * This can be used to queue up multiple expressions which need to be evaluated in the same\n\t       * digest.\n\t       *\n\t       * @param {(string|function())=} exp An angular expression to be executed.\n\t       *\n\t       *    - `string`: execute using the rules as defined in {@link guide/expression expression}.\n\t       *    - `function(scope)`: execute the function with current `scope` parameter.\n\t       */\n\t      $applyAsync: function(expr) {\n\t        var scope = this;\n\t        expr && applyAsyncQueue.push($applyAsyncExpression);\n\t        scheduleApplyAsync();\n\n\t        function $applyAsyncExpression() {\n\t          scope.$eval(expr);\n\t        }\n\t      },\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $rootScope.Scope#$on\n\t       * @kind function\n\t       *\n\t       * @description\n\t       * Listens on events of a given type. See {@link ng.$rootScope.Scope#$emit $emit} for\n\t       * discussion of event life cycle.\n\t       *\n\t       * The event listener function format is: `function(event, args...)`. The `event` object\n\t       * passed into the listener has the following attributes:\n\t       *\n\t       *   - `targetScope` - `{Scope}`: the scope on which the event was `$emit`-ed or\n\t       *     `$broadcast`-ed.\n\t       *   - `currentScope` - `{Scope}`: the scope that is currently handling the event. Once the\n\t       *     event propagates through the scope hierarchy, this property is set to null.\n\t       *   - `name` - `{string}`: name of the event.\n\t       *   - `stopPropagation` - `{function=}`: calling `stopPropagation` function will cancel\n\t       *     further event propagation (available only for events that were `$emit`-ed).\n\t       *   - `preventDefault` - `{function}`: calling `preventDefault` sets `defaultPrevented` flag\n\t       *     to true.\n\t       *   - `defaultPrevented` - `{boolean}`: true if `preventDefault` was called.\n\t       *\n\t       * @param {string} name Event name to listen on.\n\t       * @param {function(event, ...args)} listener Function to call when the event is emitted.\n\t       * @returns {function()} Returns a deregistration function for this listener.\n\t       */\n\t      $on: function(name, listener) {\n\t        var namedListeners = this.$$listeners[name];\n\t        if (!namedListeners) {\n\t          this.$$listeners[name] = namedListeners = [];\n\t        }\n\t        namedListeners.push(listener);\n\n\t        var current = this;\n\t        do {\n\t          if (!current.$$listenerCount[name]) {\n\t            current.$$listenerCount[name] = 0;\n\t          }\n\t          current.$$listenerCount[name]++;\n\t        } while ((current = current.$parent));\n\n\t        var self = this;\n\t        return function() {\n\t          var indexOfListener = namedListeners.indexOf(listener);\n\t          if (indexOfListener !== -1) {\n\t            namedListeners[indexOfListener] = null;\n\t            decrementListenerCount(self, 1, name);\n\t          }\n\t        };\n\t      },\n\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $rootScope.Scope#$emit\n\t       * @kind function\n\t       *\n\t       * @description\n\t       * Dispatches an event `name` upwards through the scope hierarchy notifying the\n\t       * registered {@link ng.$rootScope.Scope#$on} listeners.\n\t       *\n\t       * The event life cycle starts at the scope on which `$emit` was called. All\n\t       * {@link ng.$rootScope.Scope#$on listeners} listening for `name` event on this scope get\n\t       * notified. Afterwards, the event traverses upwards toward the root scope and calls all\n\t       * registered listeners along the way. The event will stop propagating if one of the listeners\n\t       * cancels it.\n\t       *\n\t       * Any exception emitted from the {@link ng.$rootScope.Scope#$on listeners} will be passed\n\t       * onto the {@link ng.$exceptionHandler $exceptionHandler} service.\n\t       *\n\t       * @param {string} name Event name to emit.\n\t       * @param {...*} args Optional one or more arguments which will be passed onto the event listeners.\n\t       * @return {Object} Event object (see {@link ng.$rootScope.Scope#$on}).\n\t       */\n\t      $emit: function(name, args) {\n\t        var empty = [],\n\t            namedListeners,\n\t            scope = this,\n\t            stopPropagation = false,\n\t            event = {\n\t              name: name,\n\t              targetScope: scope,\n\t              stopPropagation: function() {stopPropagation = true;},\n\t              preventDefault: function() {\n\t                event.defaultPrevented = true;\n\t              },\n\t              defaultPrevented: false\n\t            },\n\t            listenerArgs = concat([event], arguments, 1),\n\t            i, length;\n\n\t        do {\n\t          namedListeners = scope.$$listeners[name] || empty;\n\t          event.currentScope = scope;\n\t          for (i = 0, length = namedListeners.length; i < length; i++) {\n\n\t            // if listeners were deregistered, defragment the array\n\t            if (!namedListeners[i]) {\n\t              namedListeners.splice(i, 1);\n\t              i--;\n\t              length--;\n\t              continue;\n\t            }\n\t            try {\n\t              //allow all listeners attached to the current scope to run\n\t              namedListeners[i].apply(null, listenerArgs);\n\t            } catch (e) {\n\t              $exceptionHandler(e);\n\t            }\n\t          }\n\t          //if any listener on the current scope stops propagation, prevent bubbling\n\t          if (stopPropagation) {\n\t            event.currentScope = null;\n\t            return event;\n\t          }\n\t          //traverse upwards\n\t          scope = scope.$parent;\n\t        } while (scope);\n\n\t        event.currentScope = null;\n\n\t        return event;\n\t      },\n\n\n\t      /**\n\t       * @ngdoc method\n\t       * @name $rootScope.Scope#$broadcast\n\t       * @kind function\n\t       *\n\t       * @description\n\t       * Dispatches an event `name` downwards to all child scopes (and their children) notifying the\n\t       * registered {@link ng.$rootScope.Scope#$on} listeners.\n\t       *\n\t       * The event life cycle starts at the scope on which `$broadcast` was called. All\n\t       * {@link ng.$rootScope.Scope#$on listeners} listening for `name` event on this scope get\n\t       * notified. Afterwards, the event propagates to all direct and indirect scopes of the current\n\t       * scope and calls all registered listeners along the way. The event cannot be canceled.\n\t       *\n\t       * Any exception emitted from the {@link ng.$rootScope.Scope#$on listeners} will be passed\n\t       * onto the {@link ng.$exceptionHandler $exceptionHandler} service.\n\t       *\n\t       * @param {string} name Event name to broadcast.\n\t       * @param {...*} args Optional one or more arguments which will be passed onto the event listeners.\n\t       * @return {Object} Event object, see {@link ng.$rootScope.Scope#$on}\n\t       */\n\t      $broadcast: function(name, args) {\n\t        var target = this,\n\t            current = target,\n\t            next = target,\n\t            event = {\n\t              name: name,\n\t              targetScope: target,\n\t              preventDefault: function() {\n\t                event.defaultPrevented = true;\n\t              },\n\t              defaultPrevented: false\n\t            };\n\n\t        if (!target.$$listenerCount[name]) return event;\n\n\t        var listenerArgs = concat([event], arguments, 1),\n\t            listeners, i, length;\n\n\t        //down while you can, then up and next sibling or up and next sibling until back at root\n\t        while ((current = next)) {\n\t          event.currentScope = current;\n\t          listeners = current.$$listeners[name] || [];\n\t          for (i = 0, length = listeners.length; i < length; i++) {\n\t            // if listeners were deregistered, defragment the array\n\t            if (!listeners[i]) {\n\t              listeners.splice(i, 1);\n\t              i--;\n\t              length--;\n\t              continue;\n\t            }\n\n\t            try {\n\t              listeners[i].apply(null, listenerArgs);\n\t            } catch (e) {\n\t              $exceptionHandler(e);\n\t            }\n\t          }\n\n\t          // Insanity Warning: scope depth-first traversal\n\t          // yes, this code is a bit crazy, but it works and we have tests to prove it!\n\t          // this piece should be kept in sync with the traversal in $digest\n\t          // (though it differs due to having the extra check for $$listenerCount)\n\t          if (!(next = ((current.$$listenerCount[name] && current.$$childHead) ||\n\t              (current !== target && current.$$nextSibling)))) {\n\t            while (current !== target && !(next = current.$$nextSibling)) {\n\t              current = current.$parent;\n\t            }\n\t          }\n\t        }\n\n\t        event.currentScope = null;\n\t        return event;\n\t      }\n\t    };\n\n\t    var $rootScope = new Scope();\n\n\t    //The internal queues. Expose them on the $rootScope for debugging/testing purposes.\n\t    var asyncQueue = $rootScope.$$asyncQueue = [];\n\t    var postDigestQueue = $rootScope.$$postDigestQueue = [];\n\t    var applyAsyncQueue = $rootScope.$$applyAsyncQueue = [];\n\n\t    return $rootScope;\n\n\n\t    function beginPhase(phase) {\n\t      if ($rootScope.$$phase) {\n\t        throw $rootScopeMinErr('inprog', '{0} already in progress', $rootScope.$$phase);\n\t      }\n\n\t      $rootScope.$$phase = phase;\n\t    }\n\n\t    function clearPhase() {\n\t      $rootScope.$$phase = null;\n\t    }\n\n\t    function incrementWatchersCount(current, count) {\n\t      do {\n\t        current.$$watchersCount += count;\n\t      } while ((current = current.$parent));\n\t    }\n\n\t    function decrementListenerCount(current, count, name) {\n\t      do {\n\t        current.$$listenerCount[name] -= count;\n\n\t        if (current.$$listenerCount[name] === 0) {\n\t          delete current.$$listenerCount[name];\n\t        }\n\t      } while ((current = current.$parent));\n\t    }\n\n\t    /**\n\t     * function used as an initial value for watchers.\n\t     * because it's unique we can easily tell it apart from other values\n\t     */\n\t    function initWatchVal() {}\n\n\t    function flushApplyAsync() {\n\t      while (applyAsyncQueue.length) {\n\t        try {\n\t          applyAsyncQueue.shift()();\n\t        } catch (e) {\n\t          $exceptionHandler(e);\n\t        }\n\t      }\n\t      applyAsyncId = null;\n\t    }\n\n\t    function scheduleApplyAsync() {\n\t      if (applyAsyncId === null) {\n\t        applyAsyncId = $browser.defer(function() {\n\t          $rootScope.$apply(flushApplyAsync);\n\t        });\n\t      }\n\t    }\n\t  }];\n\t}\n\n\t/**\n\t * @description\n\t * Private service to sanitize uris for links and images. Used by $compile and $sanitize.\n\t */\n\tfunction $$SanitizeUriProvider() {\n\t  var aHrefSanitizationWhitelist = /^\\s*(https?|ftp|mailto|tel|file):/,\n\t    imgSrcSanitizationWhitelist = /^\\s*((https?|ftp|file|blob):|data:image\\/)/;\n\n\t  /**\n\t   * @description\n\t   * Retrieves or overrides the default regular expression that is used for whitelisting of safe\n\t   * urls during a[href] sanitization.\n\t   *\n\t   * The sanitization is a security measure aimed at prevent XSS attacks via html links.\n\t   *\n\t   * Any url about to be assigned to a[href] via data-binding is first normalized and turned into\n\t   * an absolute url. Afterwards, the url is matched against the `aHrefSanitizationWhitelist`\n\t   * regular expression. If a match is found, the original url is written into the dom. Otherwise,\n\t   * the absolute url is prefixed with `'unsafe:'` string and only then is it written into the DOM.\n\t   *\n\t   * @param {RegExp=} regexp New regexp to whitelist urls with.\n\t   * @returns {RegExp|ng.$compileProvider} Current RegExp if called without value or self for\n\t   *    chaining otherwise.\n\t   */\n\t  this.aHrefSanitizationWhitelist = function(regexp) {\n\t    if (isDefined(regexp)) {\n\t      aHrefSanitizationWhitelist = regexp;\n\t      return this;\n\t    }\n\t    return aHrefSanitizationWhitelist;\n\t  };\n\n\n\t  /**\n\t   * @description\n\t   * Retrieves or overrides the default regular expression that is used for whitelisting of safe\n\t   * urls during img[src] sanitization.\n\t   *\n\t   * The sanitization is a security measure aimed at prevent XSS attacks via html links.\n\t   *\n\t   * Any url about to be assigned to img[src] via data-binding is first normalized and turned into\n\t   * an absolute url. Afterwards, the url is matched against the `imgSrcSanitizationWhitelist`\n\t   * regular expression. If a match is found, the original url is written into the dom. Otherwise,\n\t   * the absolute url is prefixed with `'unsafe:'` string and only then is it written into the DOM.\n\t   *\n\t   * @param {RegExp=} regexp New regexp to whitelist urls with.\n\t   * @returns {RegExp|ng.$compileProvider} Current RegExp if called without value or self for\n\t   *    chaining otherwise.\n\t   */\n\t  this.imgSrcSanitizationWhitelist = function(regexp) {\n\t    if (isDefined(regexp)) {\n\t      imgSrcSanitizationWhitelist = regexp;\n\t      return this;\n\t    }\n\t    return imgSrcSanitizationWhitelist;\n\t  };\n\n\t  this.$get = function() {\n\t    return function sanitizeUri(uri, isImage) {\n\t      var regex = isImage ? imgSrcSanitizationWhitelist : aHrefSanitizationWhitelist;\n\t      var normalizedVal;\n\t      normalizedVal = urlResolve(uri).href;\n\t      if (normalizedVal !== '' && !normalizedVal.match(regex)) {\n\t        return 'unsafe:' + normalizedVal;\n\t      }\n\t      return uri;\n\t    };\n\t  };\n\t}\n\n\t/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\n\t *     Any commits to this file should be reviewed with security in mind.  *\n\t *   Changes to this file can potentially create security vulnerabilities. *\n\t *          An approval from 2 Core members with history of modifying      *\n\t *                         this file is required.                          *\n\t *                                                                         *\n\t *  Does the change somehow allow for arbitrary javascript to be executed? *\n\t *    Or allows for someone to change the prototype of built-in objects?   *\n\t *     Or gives undesired access to variables likes document or window?    *\n\t * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */\n\n\tvar $sceMinErr = minErr('$sce');\n\n\tvar SCE_CONTEXTS = {\n\t  HTML: 'html',\n\t  CSS: 'css',\n\t  URL: 'url',\n\t  // RESOURCE_URL is a subtype of URL used in contexts where a privileged resource is sourced from a\n\t  // url.  (e.g. ng-include, script src, templateUrl)\n\t  RESOURCE_URL: 'resourceUrl',\n\t  JS: 'js'\n\t};\n\n\t// Helper functions follow.\n\n\tfunction adjustMatcher(matcher) {\n\t  if (matcher === 'self') {\n\t    return matcher;\n\t  } else if (isString(matcher)) {\n\t    // Strings match exactly except for 2 wildcards - '*' and '**'.\n\t    // '*' matches any character except those from the set ':/.?&'.\n\t    // '**' matches any character (like .* in a RegExp).\n\t    // More than 2 *'s raises an error as it's ill defined.\n\t    if (matcher.indexOf('***') > -1) {\n\t      throw $sceMinErr('iwcard',\n\t          'Illegal sequence *** in string matcher.  String: {0}', matcher);\n\t    }\n\t    matcher = escapeForRegexp(matcher).\n\t                  replace('\\\\*\\\\*', '.*').\n\t                  replace('\\\\*', '[^:/.?&;]*');\n\t    return new RegExp('^' + matcher + '$');\n\t  } else if (isRegExp(matcher)) {\n\t    // The only other type of matcher allowed is a Regexp.\n\t    // Match entire URL / disallow partial matches.\n\t    // Flags are reset (i.e. no global, ignoreCase or multiline)\n\t    return new RegExp('^' + matcher.source + '$');\n\t  } else {\n\t    throw $sceMinErr('imatcher',\n\t        'Matchers may only be \"self\", string patterns or RegExp objects');\n\t  }\n\t}\n\n\n\tfunction adjustMatchers(matchers) {\n\t  var adjustedMatchers = [];\n\t  if (isDefined(matchers)) {\n\t    forEach(matchers, function(matcher) {\n\t      adjustedMatchers.push(adjustMatcher(matcher));\n\t    });\n\t  }\n\t  return adjustedMatchers;\n\t}\n\n\n\t/**\n\t * @ngdoc service\n\t * @name $sceDelegate\n\t * @kind function\n\t *\n\t * @description\n\t *\n\t * `$sceDelegate` is a service that is used by the `$sce` service to provide {@link ng.$sce Strict\n\t * Contextual Escaping (SCE)} services to AngularJS.\n\t *\n\t * Typically, you would configure or override the {@link ng.$sceDelegate $sceDelegate} instead of\n\t * the `$sce` service to customize the way Strict Contextual Escaping works in AngularJS.  This is\n\t * because, while the `$sce` provides numerous shorthand methods, etc., you really only need to\n\t * override 3 core functions (`trustAs`, `getTrusted` and `valueOf`) to replace the way things\n\t * work because `$sce` delegates to `$sceDelegate` for these operations.\n\t *\n\t * Refer {@link ng.$sceDelegateProvider $sceDelegateProvider} to configure this service.\n\t *\n\t * The default instance of `$sceDelegate` should work out of the box with little pain.  While you\n\t * can override it completely to change the behavior of `$sce`, the common case would\n\t * involve configuring the {@link ng.$sceDelegateProvider $sceDelegateProvider} instead by setting\n\t * your own whitelists and blacklists for trusting URLs used for loading AngularJS resources such as\n\t * templates.  Refer {@link ng.$sceDelegateProvider#resourceUrlWhitelist\n\t * $sceDelegateProvider.resourceUrlWhitelist} and {@link\n\t * ng.$sceDelegateProvider#resourceUrlBlacklist $sceDelegateProvider.resourceUrlBlacklist}\n\t */\n\n\t/**\n\t * @ngdoc provider\n\t * @name $sceDelegateProvider\n\t * @description\n\t *\n\t * The `$sceDelegateProvider` provider allows developers to configure the {@link ng.$sceDelegate\n\t * $sceDelegate} service.  This allows one to get/set the whitelists and blacklists used to ensure\n\t * that the URLs used for sourcing Angular templates are safe.  Refer {@link\n\t * ng.$sceDelegateProvider#resourceUrlWhitelist $sceDelegateProvider.resourceUrlWhitelist} and\n\t * {@link ng.$sceDelegateProvider#resourceUrlBlacklist $sceDelegateProvider.resourceUrlBlacklist}\n\t *\n\t * For the general details about this service in Angular, read the main page for {@link ng.$sce\n\t * Strict Contextual Escaping (SCE)}.\n\t *\n\t * **Example**:  Consider the following case. <a name=\"example\"></a>\n\t *\n\t * - your app is hosted at url `http://myapp.example.com/`\n\t * - but some of your templates are hosted on other domains you control such as\n\t *   `http://srv01.assets.example.com/`,  `http://srv02.assets.example.com/`, etc.\n\t * - and you have an open redirect at `http://myapp.example.com/clickThru?...`.\n\t *\n\t * Here is what a secure configuration for this scenario might look like:\n\t *\n\t * ```\n\t *  angular.module('myApp', []).config(function($sceDelegateProvider) {\n\t *    $sceDelegateProvider.resourceUrlWhitelist([\n\t *      // Allow same origin resource loads.\n\t *      'self',\n\t *      // Allow loading from our assets domain.  Notice the difference between * and **.\n\t *      'http://srv*.assets.example.com/**'\n\t *    ]);\n\t *\n\t *    // The blacklist overrides the whitelist so the open redirect here is blocked.\n\t *    $sceDelegateProvider.resourceUrlBlacklist([\n\t *      'http://myapp.example.com/clickThru**'\n\t *    ]);\n\t *  });\n\t * ```\n\t */\n\n\tfunction $SceDelegateProvider() {\n\t  this.SCE_CONTEXTS = SCE_CONTEXTS;\n\n\t  // Resource URLs can also be trusted by policy.\n\t  var resourceUrlWhitelist = ['self'],\n\t      resourceUrlBlacklist = [];\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $sceDelegateProvider#resourceUrlWhitelist\n\t   * @kind function\n\t   *\n\t   * @param {Array=} whitelist When provided, replaces the resourceUrlWhitelist with the value\n\t   *     provided.  This must be an array or null.  A snapshot of this array is used so further\n\t   *     changes to the array are ignored.\n\t   *\n\t   *     Follow {@link ng.$sce#resourceUrlPatternItem this link} for a description of the items\n\t   *     allowed in this array.\n\t   *\n\t   *     Note: **an empty whitelist array will block all URLs**!\n\t   *\n\t   * @return {Array} the currently set whitelist array.\n\t   *\n\t   * The **default value** when no whitelist has been explicitly set is `['self']` allowing only\n\t   * same origin resource requests.\n\t   *\n\t   * @description\n\t   * Sets/Gets the whitelist of trusted resource URLs.\n\t   */\n\t  this.resourceUrlWhitelist = function(value) {\n\t    if (arguments.length) {\n\t      resourceUrlWhitelist = adjustMatchers(value);\n\t    }\n\t    return resourceUrlWhitelist;\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $sceDelegateProvider#resourceUrlBlacklist\n\t   * @kind function\n\t   *\n\t   * @param {Array=} blacklist When provided, replaces the resourceUrlBlacklist with the value\n\t   *     provided.  This must be an array or null.  A snapshot of this array is used so further\n\t   *     changes to the array are ignored.\n\t   *\n\t   *     Follow {@link ng.$sce#resourceUrlPatternItem this link} for a description of the items\n\t   *     allowed in this array.\n\t   *\n\t   *     The typical usage for the blacklist is to **block\n\t   *     [open redirects](http://cwe.mitre.org/data/definitions/601.html)** served by your domain as\n\t   *     these would otherwise be trusted but actually return content from the redirected domain.\n\t   *\n\t   *     Finally, **the blacklist overrides the whitelist** and has the final say.\n\t   *\n\t   * @return {Array} the currently set blacklist array.\n\t   *\n\t   * The **default value** when no whitelist has been explicitly set is the empty array (i.e. there\n\t   * is no blacklist.)\n\t   *\n\t   * @description\n\t   * Sets/Gets the blacklist of trusted resource URLs.\n\t   */\n\n\t  this.resourceUrlBlacklist = function(value) {\n\t    if (arguments.length) {\n\t      resourceUrlBlacklist = adjustMatchers(value);\n\t    }\n\t    return resourceUrlBlacklist;\n\t  };\n\n\t  this.$get = ['$injector', function($injector) {\n\n\t    var htmlSanitizer = function htmlSanitizer(html) {\n\t      throw $sceMinErr('unsafe', 'Attempting to use an unsafe value in a safe context.');\n\t    };\n\n\t    if ($injector.has('$sanitize')) {\n\t      htmlSanitizer = $injector.get('$sanitize');\n\t    }\n\n\n\t    function matchUrl(matcher, parsedUrl) {\n\t      if (matcher === 'self') {\n\t        return urlIsSameOrigin(parsedUrl);\n\t      } else {\n\t        // definitely a regex.  See adjustMatchers()\n\t        return !!matcher.exec(parsedUrl.href);\n\t      }\n\t    }\n\n\t    function isResourceUrlAllowedByPolicy(url) {\n\t      var parsedUrl = urlResolve(url.toString());\n\t      var i, n, allowed = false;\n\t      // Ensure that at least one item from the whitelist allows this url.\n\t      for (i = 0, n = resourceUrlWhitelist.length; i < n; i++) {\n\t        if (matchUrl(resourceUrlWhitelist[i], parsedUrl)) {\n\t          allowed = true;\n\t          break;\n\t        }\n\t      }\n\t      if (allowed) {\n\t        // Ensure that no item from the blacklist blocked this url.\n\t        for (i = 0, n = resourceUrlBlacklist.length; i < n; i++) {\n\t          if (matchUrl(resourceUrlBlacklist[i], parsedUrl)) {\n\t            allowed = false;\n\t            break;\n\t          }\n\t        }\n\t      }\n\t      return allowed;\n\t    }\n\n\t    function generateHolderType(Base) {\n\t      var holderType = function TrustedValueHolderType(trustedValue) {\n\t        this.$$unwrapTrustedValue = function() {\n\t          return trustedValue;\n\t        };\n\t      };\n\t      if (Base) {\n\t        holderType.prototype = new Base();\n\t      }\n\t      holderType.prototype.valueOf = function sceValueOf() {\n\t        return this.$$unwrapTrustedValue();\n\t      };\n\t      holderType.prototype.toString = function sceToString() {\n\t        return this.$$unwrapTrustedValue().toString();\n\t      };\n\t      return holderType;\n\t    }\n\n\t    var trustedValueHolderBase = generateHolderType(),\n\t        byType = {};\n\n\t    byType[SCE_CONTEXTS.HTML] = generateHolderType(trustedValueHolderBase);\n\t    byType[SCE_CONTEXTS.CSS] = generateHolderType(trustedValueHolderBase);\n\t    byType[SCE_CONTEXTS.URL] = generateHolderType(trustedValueHolderBase);\n\t    byType[SCE_CONTEXTS.JS] = generateHolderType(trustedValueHolderBase);\n\t    byType[SCE_CONTEXTS.RESOURCE_URL] = generateHolderType(byType[SCE_CONTEXTS.URL]);\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sceDelegate#trustAs\n\t     *\n\t     * @description\n\t     * Returns an object that is trusted by angular for use in specified strict\n\t     * contextual escaping contexts (such as ng-bind-html, ng-include, any src\n\t     * attribute interpolation, any dom event binding attribute interpolation\n\t     * such as for onclick,  etc.) that uses the provided value.\n\t     * See {@link ng.$sce $sce} for enabling strict contextual escaping.\n\t     *\n\t     * @param {string} type The kind of context in which this value is safe for use.  e.g. url,\n\t     *   resourceUrl, html, js and css.\n\t     * @param {*} value The value that that should be considered trusted/safe.\n\t     * @returns {*} A value that can be used to stand in for the provided `value` in places\n\t     * where Angular expects a $sce.trustAs() return value.\n\t     */\n\t    function trustAs(type, trustedValue) {\n\t      var Constructor = (byType.hasOwnProperty(type) ? byType[type] : null);\n\t      if (!Constructor) {\n\t        throw $sceMinErr('icontext',\n\t            'Attempted to trust a value in invalid context. Context: {0}; Value: {1}',\n\t            type, trustedValue);\n\t      }\n\t      if (trustedValue === null || isUndefined(trustedValue) || trustedValue === '') {\n\t        return trustedValue;\n\t      }\n\t      // All the current contexts in SCE_CONTEXTS happen to be strings.  In order to avoid trusting\n\t      // mutable objects, we ensure here that the value passed in is actually a string.\n\t      if (typeof trustedValue !== 'string') {\n\t        throw $sceMinErr('itype',\n\t            'Attempted to trust a non-string value in a content requiring a string: Context: {0}',\n\t            type);\n\t      }\n\t      return new Constructor(trustedValue);\n\t    }\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sceDelegate#valueOf\n\t     *\n\t     * @description\n\t     * If the passed parameter had been returned by a prior call to {@link ng.$sceDelegate#trustAs\n\t     * `$sceDelegate.trustAs`}, returns the value that had been passed to {@link\n\t     * ng.$sceDelegate#trustAs `$sceDelegate.trustAs`}.\n\t     *\n\t     * If the passed parameter is not a value that had been returned by {@link\n\t     * ng.$sceDelegate#trustAs `$sceDelegate.trustAs`}, returns it as-is.\n\t     *\n\t     * @param {*} value The result of a prior {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs`}\n\t     *      call or anything else.\n\t     * @returns {*} The `value` that was originally provided to {@link ng.$sceDelegate#trustAs\n\t     *     `$sceDelegate.trustAs`} if `value` is the result of such a call.  Otherwise, returns\n\t     *     `value` unchanged.\n\t     */\n\t    function valueOf(maybeTrusted) {\n\t      if (maybeTrusted instanceof trustedValueHolderBase) {\n\t        return maybeTrusted.$$unwrapTrustedValue();\n\t      } else {\n\t        return maybeTrusted;\n\t      }\n\t    }\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sceDelegate#getTrusted\n\t     *\n\t     * @description\n\t     * Takes the result of a {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs`} call and\n\t     * returns the originally supplied value if the queried context type is a supertype of the\n\t     * created type.  If this condition isn't satisfied, throws an exception.\n\t     *\n\t     * @param {string} type The kind of context in which this value is to be used.\n\t     * @param {*} maybeTrusted The result of a prior {@link ng.$sceDelegate#trustAs\n\t     *     `$sceDelegate.trustAs`} call.\n\t     * @returns {*} The value the was originally provided to {@link ng.$sceDelegate#trustAs\n\t     *     `$sceDelegate.trustAs`} if valid in this context.  Otherwise, throws an exception.\n\t     */\n\t    function getTrusted(type, maybeTrusted) {\n\t      if (maybeTrusted === null || isUndefined(maybeTrusted) || maybeTrusted === '') {\n\t        return maybeTrusted;\n\t      }\n\t      var constructor = (byType.hasOwnProperty(type) ? byType[type] : null);\n\t      if (constructor && maybeTrusted instanceof constructor) {\n\t        return maybeTrusted.$$unwrapTrustedValue();\n\t      }\n\t      // If we get here, then we may only take one of two actions.\n\t      // 1. sanitize the value for the requested type, or\n\t      // 2. throw an exception.\n\t      if (type === SCE_CONTEXTS.RESOURCE_URL) {\n\t        if (isResourceUrlAllowedByPolicy(maybeTrusted)) {\n\t          return maybeTrusted;\n\t        } else {\n\t          throw $sceMinErr('insecurl',\n\t              'Blocked loading resource from url not allowed by $sceDelegate policy.  URL: {0}',\n\t              maybeTrusted.toString());\n\t        }\n\t      } else if (type === SCE_CONTEXTS.HTML) {\n\t        return htmlSanitizer(maybeTrusted);\n\t      }\n\t      throw $sceMinErr('unsafe', 'Attempting to use an unsafe value in a safe context.');\n\t    }\n\n\t    return { trustAs: trustAs,\n\t             getTrusted: getTrusted,\n\t             valueOf: valueOf };\n\t  }];\n\t}\n\n\n\t/**\n\t * @ngdoc provider\n\t * @name $sceProvider\n\t * @description\n\t *\n\t * The $sceProvider provider allows developers to configure the {@link ng.$sce $sce} service.\n\t * -   enable/disable Strict Contextual Escaping (SCE) in a module\n\t * -   override the default implementation with a custom delegate\n\t *\n\t * Read more about {@link ng.$sce Strict Contextual Escaping (SCE)}.\n\t */\n\n\t/* jshint maxlen: false*/\n\n\t/**\n\t * @ngdoc service\n\t * @name $sce\n\t * @kind function\n\t *\n\t * @description\n\t *\n\t * `$sce` is a service that provides Strict Contextual Escaping services to AngularJS.\n\t *\n\t * # Strict Contextual Escaping\n\t *\n\t * Strict Contextual Escaping (SCE) is a mode in which AngularJS requires bindings in certain\n\t * contexts to result in a value that is marked as safe to use for that context.  One example of\n\t * such a context is binding arbitrary html controlled by the user via `ng-bind-html`.  We refer\n\t * to these contexts as privileged or SCE contexts.\n\t *\n\t * As of version 1.2, Angular ships with SCE enabled by default.\n\t *\n\t * Note:  When enabled (the default), IE<11 in quirks mode is not supported.  In this mode, IE<11 allow\n\t * one to execute arbitrary javascript by the use of the expression() syntax.  Refer\n\t * <http://blogs.msdn.com/b/ie/archive/2008/10/16/ending-expressions.aspx> to learn more about them.\n\t * You can ensure your document is in standards mode and not quirks mode by adding `<!doctype html>`\n\t * to the top of your HTML document.\n\t *\n\t * SCE assists in writing code in way that (a) is secure by default and (b) makes auditing for\n\t * security vulnerabilities such as XSS, clickjacking, etc. a lot easier.\n\t *\n\t * Here's an example of a binding in a privileged context:\n\t *\n\t * ```\n\t * <input ng-model=\"userHtml\" aria-label=\"User input\">\n\t * <div ng-bind-html=\"userHtml\"></div>\n\t * ```\n\t *\n\t * Notice that `ng-bind-html` is bound to `userHtml` controlled by the user.  With SCE\n\t * disabled, this application allows the user to render arbitrary HTML into the DIV.\n\t * In a more realistic example, one may be rendering user comments, blog articles, etc. via\n\t * bindings.  (HTML is just one example of a context where rendering user controlled input creates\n\t * security vulnerabilities.)\n\t *\n\t * For the case of HTML, you might use a library, either on the client side, or on the server side,\n\t * to sanitize unsafe HTML before binding to the value and rendering it in the document.\n\t *\n\t * How would you ensure that every place that used these types of bindings was bound to a value that\n\t * was sanitized by your library (or returned as safe for rendering by your server?)  How can you\n\t * ensure that you didn't accidentally delete the line that sanitized the value, or renamed some\n\t * properties/fields and forgot to update the binding to the sanitized value?\n\t *\n\t * To be secure by default, you want to ensure that any such bindings are disallowed unless you can\n\t * determine that something explicitly says it's safe to use a value for binding in that\n\t * context.  You can then audit your code (a simple grep would do) to ensure that this is only done\n\t * for those values that you can easily tell are safe - because they were received from your server,\n\t * sanitized by your library, etc.  You can organize your codebase to help with this - perhaps\n\t * allowing only the files in a specific directory to do this.  Ensuring that the internal API\n\t * exposed by that code doesn't markup arbitrary values as safe then becomes a more manageable task.\n\t *\n\t * In the case of AngularJS' SCE service, one uses {@link ng.$sce#trustAs $sce.trustAs}\n\t * (and shorthand methods such as {@link ng.$sce#trustAsHtml $sce.trustAsHtml}, etc.) to\n\t * obtain values that will be accepted by SCE / privileged contexts.\n\t *\n\t *\n\t * ## How does it work?\n\t *\n\t * In privileged contexts, directives and code will bind to the result of {@link ng.$sce#getTrusted\n\t * $sce.getTrusted(context, value)} rather than to the value directly.  Directives use {@link\n\t * ng.$sce#parseAs $sce.parseAs} rather than `$parse` to watch attribute bindings, which performs the\n\t * {@link ng.$sce#getTrusted $sce.getTrusted} behind the scenes on non-constant literals.\n\t *\n\t * As an example, {@link ng.directive:ngBindHtml ngBindHtml} uses {@link\n\t * ng.$sce#parseAsHtml $sce.parseAsHtml(binding expression)}.  Here's the actual code (slightly\n\t * simplified):\n\t *\n\t * ```\n\t * var ngBindHtmlDirective = ['$sce', function($sce) {\n\t *   return function(scope, element, attr) {\n\t *     scope.$watch($sce.parseAsHtml(attr.ngBindHtml), function(value) {\n\t *       element.html(value || '');\n\t *     });\n\t *   };\n\t * }];\n\t * ```\n\t *\n\t * ## Impact on loading templates\n\t *\n\t * This applies both to the {@link ng.directive:ngInclude `ng-include`} directive as well as\n\t * `templateUrl`'s specified by {@link guide/directive directives}.\n\t *\n\t * By default, Angular only loads templates from the same domain and protocol as the application\n\t * document.  This is done by calling {@link ng.$sce#getTrustedResourceUrl\n\t * $sce.getTrustedResourceUrl} on the template URL.  To load templates from other domains and/or\n\t * protocols, you may either {@link ng.$sceDelegateProvider#resourceUrlWhitelist whitelist\n\t * them} or {@link ng.$sce#trustAsResourceUrl wrap it} into a trusted value.\n\t *\n\t * *Please note*:\n\t * The browser's\n\t * [Same Origin Policy](https://code.google.com/p/browsersec/wiki/Part2#Same-origin_policy_for_XMLHttpRequest)\n\t * and [Cross-Origin Resource Sharing (CORS)](http://www.w3.org/TR/cors/)\n\t * policy apply in addition to this and may further restrict whether the template is successfully\n\t * loaded.  This means that without the right CORS policy, loading templates from a different domain\n\t * won't work on all browsers.  Also, loading templates from `file://` URL does not work on some\n\t * browsers.\n\t *\n\t * ## This feels like too much overhead\n\t *\n\t * It's important to remember that SCE only applies to interpolation expressions.\n\t *\n\t * If your expressions are constant literals, they're automatically trusted and you don't need to\n\t * call `$sce.trustAs` on them (remember to include the `ngSanitize` module) (e.g.\n\t * `<div ng-bind-html=\"'<b>implicitly trusted</b>'\"></div>`) just works.\n\t *\n\t * Additionally, `a[href]` and `img[src]` automatically sanitize their URLs and do not pass them\n\t * through {@link ng.$sce#getTrusted $sce.getTrusted}.  SCE doesn't play a role here.\n\t *\n\t * The included {@link ng.$sceDelegate $sceDelegate} comes with sane defaults to allow you to load\n\t * templates in `ng-include` from your application's domain without having to even know about SCE.\n\t * It blocks loading templates from other domains or loading templates over http from an https\n\t * served document.  You can change these by setting your own custom {@link\n\t * ng.$sceDelegateProvider#resourceUrlWhitelist whitelists} and {@link\n\t * ng.$sceDelegateProvider#resourceUrlBlacklist blacklists} for matching such URLs.\n\t *\n\t * This significantly reduces the overhead.  It is far easier to pay the small overhead and have an\n\t * application that's secure and can be audited to verify that with much more ease than bolting\n\t * security onto an application later.\n\t *\n\t * <a name=\"contexts\"></a>\n\t * ## What trusted context types are supported?\n\t *\n\t * | Context             | Notes          |\n\t * |---------------------|----------------|\n\t * | `$sce.HTML`         | For HTML that's safe to source into the application.  The {@link ng.directive:ngBindHtml ngBindHtml} directive uses this context for bindings. If an unsafe value is encountered and the {@link ngSanitize $sanitize} module is present this will sanitize the value instead of throwing an error. |\n\t * | `$sce.CSS`          | For CSS that's safe to source into the application.  Currently unused.  Feel free to use it in your own directives. |\n\t * | `$sce.URL`          | For URLs that are safe to follow as links.  Currently unused (`<a href=` and `<img src=` sanitize their urls and don't constitute an SCE context. |\n\t * | `$sce.RESOURCE_URL` | For URLs that are not only safe to follow as links, but whose contents are also safe to include in your application.  Examples include `ng-include`, `src` / `ngSrc` bindings for tags other than `IMG` (e.g. `IFRAME`, `OBJECT`, etc.)  <br><br>Note that `$sce.RESOURCE_URL` makes a stronger statement about the URL than `$sce.URL` does and therefore contexts requiring values trusted for `$sce.RESOURCE_URL` can be used anywhere that values trusted for `$sce.URL` are required. |\n\t * | `$sce.JS`           | For JavaScript that is safe to execute in your application's context.  Currently unused.  Feel free to use it in your own directives. |\n\t *\n\t * ## Format of items in {@link ng.$sceDelegateProvider#resourceUrlWhitelist resourceUrlWhitelist}/{@link ng.$sceDelegateProvider#resourceUrlBlacklist Blacklist} <a name=\"resourceUrlPatternItem\"></a>\n\t *\n\t *  Each element in these arrays must be one of the following:\n\t *\n\t *  - **'self'**\n\t *    - The special **string**, `'self'`, can be used to match against all URLs of the **same\n\t *      domain** as the application document using the **same protocol**.\n\t *  - **String** (except the special value `'self'`)\n\t *    - The string is matched against the full *normalized / absolute URL* of the resource\n\t *      being tested (substring matches are not good enough.)\n\t *    - There are exactly **two wildcard sequences** - `*` and `**`.  All other characters\n\t *      match themselves.\n\t *    - `*`: matches zero or more occurrences of any character other than one of the following 6\n\t *      characters: '`:`', '`/`', '`.`', '`?`', '`&`' and '`;`'.  It's a useful wildcard for use\n\t *      in a whitelist.\n\t *    - `**`: matches zero or more occurrences of *any* character.  As such, it's not\n\t *      appropriate for use in a scheme, domain, etc. as it would match too much.  (e.g.\n\t *      http://**.example.com/ would match http://evil.com/?ignore=.example.com/ and that might\n\t *      not have been the intention.)  Its usage at the very end of the path is ok.  (e.g.\n\t *      http://foo.example.com/templates/**).\n\t *  - **RegExp** (*see caveat below*)\n\t *    - *Caveat*:  While regular expressions are powerful and offer great flexibility,  their syntax\n\t *      (and all the inevitable escaping) makes them *harder to maintain*.  It's easy to\n\t *      accidentally introduce a bug when one updates a complex expression (imho, all regexes should\n\t *      have good test coverage).  For instance, the use of `.` in the regex is correct only in a\n\t *      small number of cases.  A `.` character in the regex used when matching the scheme or a\n\t *      subdomain could be matched against a `:` or literal `.` that was likely not intended.   It\n\t *      is highly recommended to use the string patterns and only fall back to regular expressions\n\t *      as a last resort.\n\t *    - The regular expression must be an instance of RegExp (i.e. not a string.)  It is\n\t *      matched against the **entire** *normalized / absolute URL* of the resource being tested\n\t *      (even when the RegExp did not have the `^` and `$` codes.)  In addition, any flags\n\t *      present on the RegExp (such as multiline, global, ignoreCase) are ignored.\n\t *    - If you are generating your JavaScript from some other templating engine (not\n\t *      recommended, e.g. in issue [#4006](https://github.com/angular/angular.js/issues/4006)),\n\t *      remember to escape your regular expression (and be aware that you might need more than\n\t *      one level of escaping depending on your templating engine and the way you interpolated\n\t *      the value.)  Do make use of your platform's escaping mechanism as it might be good\n\t *      enough before coding your own.  E.g. Ruby has\n\t *      [Regexp.escape(str)](http://www.ruby-doc.org/core-2.0.0/Regexp.html#method-c-escape)\n\t *      and Python has [re.escape](http://docs.python.org/library/re.html#re.escape).\n\t *      Javascript lacks a similar built in function for escaping.  Take a look at Google\n\t *      Closure library's [goog.string.regExpEscape(s)](\n\t *      http://docs.closure-library.googlecode.com/git/closure_goog_string_string.js.source.html#line962).\n\t *\n\t * Refer {@link ng.$sceDelegateProvider $sceDelegateProvider} for an example.\n\t *\n\t * ## Show me an example using SCE.\n\t *\n\t * <example module=\"mySceApp\" deps=\"angular-sanitize.js\">\n\t * <file name=\"index.html\">\n\t *   <div ng-controller=\"AppController as myCtrl\">\n\t *     <i ng-bind-html=\"myCtrl.explicitlyTrustedHtml\" id=\"explicitlyTrustedHtml\"></i><br><br>\n\t *     <b>User comments</b><br>\n\t *     By default, HTML that isn't explicitly trusted (e.g. Alice's comment) is sanitized when\n\t *     $sanitize is available.  If $sanitize isn't available, this results in an error instead of an\n\t *     exploit.\n\t *     <div class=\"well\">\n\t *       <div ng-repeat=\"userComment in myCtrl.userComments\">\n\t *         <b>{{userComment.name}}</b>:\n\t *         <span ng-bind-html=\"userComment.htmlComment\" class=\"htmlComment\"></span>\n\t *         <br>\n\t *       </div>\n\t *     </div>\n\t *   </div>\n\t * </file>\n\t *\n\t * <file name=\"script.js\">\n\t *   angular.module('mySceApp', ['ngSanitize'])\n\t *     .controller('AppController', ['$http', '$templateCache', '$sce',\n\t *       function($http, $templateCache, $sce) {\n\t *         var self = this;\n\t *         $http.get(\"test_data.json\", {cache: $templateCache}).success(function(userComments) {\n\t *           self.userComments = userComments;\n\t *         });\n\t *         self.explicitlyTrustedHtml = $sce.trustAsHtml(\n\t *             '<span onmouseover=\"this.textContent=&quot;Explicitly trusted HTML bypasses ' +\n\t *             'sanitization.&quot;\">Hover over this text.</span>');\n\t *       }]);\n\t * </file>\n\t *\n\t * <file name=\"test_data.json\">\n\t * [\n\t *   { \"name\": \"Alice\",\n\t *     \"htmlComment\":\n\t *         \"<span onmouseover='this.textContent=\\\"PWN3D!\\\"'>Is <i>anyone</i> reading this?</span>\"\n\t *   },\n\t *   { \"name\": \"Bob\",\n\t *     \"htmlComment\": \"<i>Yes!</i>  Am I the only other one?\"\n\t *   }\n\t * ]\n\t * </file>\n\t *\n\t * <file name=\"protractor.js\" type=\"protractor\">\n\t *   describe('SCE doc demo', function() {\n\t *     it('should sanitize untrusted values', function() {\n\t *       expect(element.all(by.css('.htmlComment')).first().getInnerHtml())\n\t *           .toBe('<span>Is <i>anyone</i> reading this?</span>');\n\t *     });\n\t *\n\t *     it('should NOT sanitize explicitly trusted values', function() {\n\t *       expect(element(by.id('explicitlyTrustedHtml')).getInnerHtml()).toBe(\n\t *           '<span onmouseover=\"this.textContent=&quot;Explicitly trusted HTML bypasses ' +\n\t *           'sanitization.&quot;\">Hover over this text.</span>');\n\t *     });\n\t *   });\n\t * </file>\n\t * </example>\n\t *\n\t *\n\t *\n\t * ## Can I disable SCE completely?\n\t *\n\t * Yes, you can.  However, this is strongly discouraged.  SCE gives you a lot of security benefits\n\t * for little coding overhead.  It will be much harder to take an SCE disabled application and\n\t * either secure it on your own or enable SCE at a later stage.  It might make sense to disable SCE\n\t * for cases where you have a lot of existing code that was written before SCE was introduced and\n\t * you're migrating them a module at a time.\n\t *\n\t * That said, here's how you can completely disable SCE:\n\t *\n\t * ```\n\t * angular.module('myAppWithSceDisabledmyApp', []).config(function($sceProvider) {\n\t *   // Completely disable SCE.  For demonstration purposes only!\n\t *   // Do not use in new projects.\n\t *   $sceProvider.enabled(false);\n\t * });\n\t * ```\n\t *\n\t */\n\t/* jshint maxlen: 100 */\n\n\tfunction $SceProvider() {\n\t  var enabled = true;\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $sceProvider#enabled\n\t   * @kind function\n\t   *\n\t   * @param {boolean=} value If provided, then enables/disables SCE.\n\t   * @return {boolean} true if SCE is enabled, false otherwise.\n\t   *\n\t   * @description\n\t   * Enables/disables SCE and returns the current value.\n\t   */\n\t  this.enabled = function(value) {\n\t    if (arguments.length) {\n\t      enabled = !!value;\n\t    }\n\t    return enabled;\n\t  };\n\n\n\t  /* Design notes on the default implementation for SCE.\n\t   *\n\t   * The API contract for the SCE delegate\n\t   * -------------------------------------\n\t   * The SCE delegate object must provide the following 3 methods:\n\t   *\n\t   * - trustAs(contextEnum, value)\n\t   *     This method is used to tell the SCE service that the provided value is OK to use in the\n\t   *     contexts specified by contextEnum.  It must return an object that will be accepted by\n\t   *     getTrusted() for a compatible contextEnum and return this value.\n\t   *\n\t   * - valueOf(value)\n\t   *     For values that were not produced by trustAs(), return them as is.  For values that were\n\t   *     produced by trustAs(), return the corresponding input value to trustAs.  Basically, if\n\t   *     trustAs is wrapping the given values into some type, this operation unwraps it when given\n\t   *     such a value.\n\t   *\n\t   * - getTrusted(contextEnum, value)\n\t   *     This function should return the a value that is safe to use in the context specified by\n\t   *     contextEnum or throw and exception otherwise.\n\t   *\n\t   * NOTE: This contract deliberately does NOT state that values returned by trustAs() must be\n\t   * opaque or wrapped in some holder object.  That happens to be an implementation detail.  For\n\t   * instance, an implementation could maintain a registry of all trusted objects by context.  In\n\t   * such a case, trustAs() would return the same object that was passed in.  getTrusted() would\n\t   * return the same object passed in if it was found in the registry under a compatible context or\n\t   * throw an exception otherwise.  An implementation might only wrap values some of the time based\n\t   * on some criteria.  getTrusted() might return a value and not throw an exception for special\n\t   * constants or objects even if not wrapped.  All such implementations fulfill this contract.\n\t   *\n\t   *\n\t   * A note on the inheritance model for SCE contexts\n\t   * ------------------------------------------------\n\t   * I've used inheritance and made RESOURCE_URL wrapped types a subtype of URL wrapped types.  This\n\t   * is purely an implementation details.\n\t   *\n\t   * The contract is simply this:\n\t   *\n\t   *     getTrusted($sce.RESOURCE_URL, value) succeeding implies that getTrusted($sce.URL, value)\n\t   *     will also succeed.\n\t   *\n\t   * Inheritance happens to capture this in a natural way.  In some future, we\n\t   * may not use inheritance anymore.  That is OK because no code outside of\n\t   * sce.js and sceSpecs.js would need to be aware of this detail.\n\t   */\n\n\t  this.$get = ['$parse', '$sceDelegate', function(\n\t                $parse,   $sceDelegate) {\n\t    // Prereq: Ensure that we're not running in IE<11 quirks mode.  In that mode, IE < 11 allow\n\t    // the \"expression(javascript expression)\" syntax which is insecure.\n\t    if (enabled && msie < 8) {\n\t      throw $sceMinErr('iequirks',\n\t        'Strict Contextual Escaping does not support Internet Explorer version < 11 in quirks ' +\n\t        'mode.  You can fix this by adding the text <!doctype html> to the top of your HTML ' +\n\t        'document.  See http://docs.angularjs.org/api/ng.$sce for more information.');\n\t    }\n\n\t    var sce = shallowCopy(SCE_CONTEXTS);\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sce#isEnabled\n\t     * @kind function\n\t     *\n\t     * @return {Boolean} true if SCE is enabled, false otherwise.  If you want to set the value, you\n\t     * have to do it at module config time on {@link ng.$sceProvider $sceProvider}.\n\t     *\n\t     * @description\n\t     * Returns a boolean indicating if SCE is enabled.\n\t     */\n\t    sce.isEnabled = function() {\n\t      return enabled;\n\t    };\n\t    sce.trustAs = $sceDelegate.trustAs;\n\t    sce.getTrusted = $sceDelegate.getTrusted;\n\t    sce.valueOf = $sceDelegate.valueOf;\n\n\t    if (!enabled) {\n\t      sce.trustAs = sce.getTrusted = function(type, value) { return value; };\n\t      sce.valueOf = identity;\n\t    }\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sce#parseAs\n\t     *\n\t     * @description\n\t     * Converts Angular {@link guide/expression expression} into a function.  This is like {@link\n\t     * ng.$parse $parse} and is identical when the expression is a literal constant.  Otherwise, it\n\t     * wraps the expression in a call to {@link ng.$sce#getTrusted $sce.getTrusted(*type*,\n\t     * *result*)}\n\t     *\n\t     * @param {string} type The kind of SCE context in which this result will be used.\n\t     * @param {string} expression String expression to compile.\n\t     * @returns {function(context, locals)} a function which represents the compiled expression:\n\t     *\n\t     *    * `context` – `{object}` – an object against which any expressions embedded in the strings\n\t     *      are evaluated against (typically a scope object).\n\t     *    * `locals` – `{object=}` – local variables context object, useful for overriding values in\n\t     *      `context`.\n\t     */\n\t    sce.parseAs = function sceParseAs(type, expr) {\n\t      var parsed = $parse(expr);\n\t      if (parsed.literal && parsed.constant) {\n\t        return parsed;\n\t      } else {\n\t        return $parse(expr, function(value) {\n\t          return sce.getTrusted(type, value);\n\t        });\n\t      }\n\t    };\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sce#trustAs\n\t     *\n\t     * @description\n\t     * Delegates to {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs`}.  As such,\n\t     * returns an object that is trusted by angular for use in specified strict contextual\n\t     * escaping contexts (such as ng-bind-html, ng-include, any src attribute\n\t     * interpolation, any dom event binding attribute interpolation such as for onclick,  etc.)\n\t     * that uses the provided value.  See * {@link ng.$sce $sce} for enabling strict contextual\n\t     * escaping.\n\t     *\n\t     * @param {string} type The kind of context in which this value is safe for use.  e.g. url,\n\t     *   resourceUrl, html, js and css.\n\t     * @param {*} value The value that that should be considered trusted/safe.\n\t     * @returns {*} A value that can be used to stand in for the provided `value` in places\n\t     * where Angular expects a $sce.trustAs() return value.\n\t     */\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sce#trustAsHtml\n\t     *\n\t     * @description\n\t     * Shorthand method.  `$sce.trustAsHtml(value)` →\n\t     *     {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs($sce.HTML, value)`}\n\t     *\n\t     * @param {*} value The value to trustAs.\n\t     * @returns {*} An object that can be passed to {@link ng.$sce#getTrustedHtml\n\t     *     $sce.getTrustedHtml(value)} to obtain the original value.  (privileged directives\n\t     *     only accept expressions that are either literal constants or are the\n\t     *     return value of {@link ng.$sce#trustAs $sce.trustAs}.)\n\t     */\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sce#trustAsUrl\n\t     *\n\t     * @description\n\t     * Shorthand method.  `$sce.trustAsUrl(value)` →\n\t     *     {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs($sce.URL, value)`}\n\t     *\n\t     * @param {*} value The value to trustAs.\n\t     * @returns {*} An object that can be passed to {@link ng.$sce#getTrustedUrl\n\t     *     $sce.getTrustedUrl(value)} to obtain the original value.  (privileged directives\n\t     *     only accept expressions that are either literal constants or are the\n\t     *     return value of {@link ng.$sce#trustAs $sce.trustAs}.)\n\t     */\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sce#trustAsResourceUrl\n\t     *\n\t     * @description\n\t     * Shorthand method.  `$sce.trustAsResourceUrl(value)` →\n\t     *     {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs($sce.RESOURCE_URL, value)`}\n\t     *\n\t     * @param {*} value The value to trustAs.\n\t     * @returns {*} An object that can be passed to {@link ng.$sce#getTrustedResourceUrl\n\t     *     $sce.getTrustedResourceUrl(value)} to obtain the original value.  (privileged directives\n\t     *     only accept expressions that are either literal constants or are the return\n\t     *     value of {@link ng.$sce#trustAs $sce.trustAs}.)\n\t     */\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sce#trustAsJs\n\t     *\n\t     * @description\n\t     * Shorthand method.  `$sce.trustAsJs(value)` →\n\t     *     {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs($sce.JS, value)`}\n\t     *\n\t     * @param {*} value The value to trustAs.\n\t     * @returns {*} An object that can be passed to {@link ng.$sce#getTrustedJs\n\t     *     $sce.getTrustedJs(value)} to obtain the original value.  (privileged directives\n\t     *     only accept expressions that are either literal constants or are the\n\t     *     return value of {@link ng.$sce#trustAs $sce.trustAs}.)\n\t     */\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sce#getTrusted\n\t     *\n\t     * @description\n\t     * Delegates to {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted`}.  As such,\n\t     * takes the result of a {@link ng.$sce#trustAs `$sce.trustAs`}() call and returns the\n\t     * originally supplied value if the queried context type is a supertype of the created type.\n\t     * If this condition isn't satisfied, throws an exception.\n\t     *\n\t     * @param {string} type The kind of context in which this value is to be used.\n\t     * @param {*} maybeTrusted The result of a prior {@link ng.$sce#trustAs `$sce.trustAs`}\n\t     *                         call.\n\t     * @returns {*} The value the was originally provided to\n\t     *              {@link ng.$sce#trustAs `$sce.trustAs`} if valid in this context.\n\t     *              Otherwise, throws an exception.\n\t     */\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sce#getTrustedHtml\n\t     *\n\t     * @description\n\t     * Shorthand method.  `$sce.getTrustedHtml(value)` →\n\t     *     {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.HTML, value)`}\n\t     *\n\t     * @param {*} value The value to pass to `$sce.getTrusted`.\n\t     * @returns {*} The return value of `$sce.getTrusted($sce.HTML, value)`\n\t     */\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sce#getTrustedCss\n\t     *\n\t     * @description\n\t     * Shorthand method.  `$sce.getTrustedCss(value)` →\n\t     *     {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.CSS, value)`}\n\t     *\n\t     * @param {*} value The value to pass to `$sce.getTrusted`.\n\t     * @returns {*} The return value of `$sce.getTrusted($sce.CSS, value)`\n\t     */\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sce#getTrustedUrl\n\t     *\n\t     * @description\n\t     * Shorthand method.  `$sce.getTrustedUrl(value)` →\n\t     *     {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.URL, value)`}\n\t     *\n\t     * @param {*} value The value to pass to `$sce.getTrusted`.\n\t     * @returns {*} The return value of `$sce.getTrusted($sce.URL, value)`\n\t     */\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sce#getTrustedResourceUrl\n\t     *\n\t     * @description\n\t     * Shorthand method.  `$sce.getTrustedResourceUrl(value)` →\n\t     *     {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.RESOURCE_URL, value)`}\n\t     *\n\t     * @param {*} value The value to pass to `$sceDelegate.getTrusted`.\n\t     * @returns {*} The return value of `$sce.getTrusted($sce.RESOURCE_URL, value)`\n\t     */\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sce#getTrustedJs\n\t     *\n\t     * @description\n\t     * Shorthand method.  `$sce.getTrustedJs(value)` →\n\t     *     {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.JS, value)`}\n\t     *\n\t     * @param {*} value The value to pass to `$sce.getTrusted`.\n\t     * @returns {*} The return value of `$sce.getTrusted($sce.JS, value)`\n\t     */\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sce#parseAsHtml\n\t     *\n\t     * @description\n\t     * Shorthand method.  `$sce.parseAsHtml(expression string)` →\n\t     *     {@link ng.$sce#parseAs `$sce.parseAs($sce.HTML, value)`}\n\t     *\n\t     * @param {string} expression String expression to compile.\n\t     * @returns {function(context, locals)} a function which represents the compiled expression:\n\t     *\n\t     *    * `context` – `{object}` – an object against which any expressions embedded in the strings\n\t     *      are evaluated against (typically a scope object).\n\t     *    * `locals` – `{object=}` – local variables context object, useful for overriding values in\n\t     *      `context`.\n\t     */\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sce#parseAsCss\n\t     *\n\t     * @description\n\t     * Shorthand method.  `$sce.parseAsCss(value)` →\n\t     *     {@link ng.$sce#parseAs `$sce.parseAs($sce.CSS, value)`}\n\t     *\n\t     * @param {string} expression String expression to compile.\n\t     * @returns {function(context, locals)} a function which represents the compiled expression:\n\t     *\n\t     *    * `context` – `{object}` – an object against which any expressions embedded in the strings\n\t     *      are evaluated against (typically a scope object).\n\t     *    * `locals` – `{object=}` – local variables context object, useful for overriding values in\n\t     *      `context`.\n\t     */\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sce#parseAsUrl\n\t     *\n\t     * @description\n\t     * Shorthand method.  `$sce.parseAsUrl(value)` →\n\t     *     {@link ng.$sce#parseAs `$sce.parseAs($sce.URL, value)`}\n\t     *\n\t     * @param {string} expression String expression to compile.\n\t     * @returns {function(context, locals)} a function which represents the compiled expression:\n\t     *\n\t     *    * `context` – `{object}` – an object against which any expressions embedded in the strings\n\t     *      are evaluated against (typically a scope object).\n\t     *    * `locals` – `{object=}` – local variables context object, useful for overriding values in\n\t     *      `context`.\n\t     */\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sce#parseAsResourceUrl\n\t     *\n\t     * @description\n\t     * Shorthand method.  `$sce.parseAsResourceUrl(value)` →\n\t     *     {@link ng.$sce#parseAs `$sce.parseAs($sce.RESOURCE_URL, value)`}\n\t     *\n\t     * @param {string} expression String expression to compile.\n\t     * @returns {function(context, locals)} a function which represents the compiled expression:\n\t     *\n\t     *    * `context` – `{object}` – an object against which any expressions embedded in the strings\n\t     *      are evaluated against (typically a scope object).\n\t     *    * `locals` – `{object=}` – local variables context object, useful for overriding values in\n\t     *      `context`.\n\t     */\n\n\t    /**\n\t     * @ngdoc method\n\t     * @name $sce#parseAsJs\n\t     *\n\t     * @description\n\t     * Shorthand method.  `$sce.parseAsJs(value)` →\n\t     *     {@link ng.$sce#parseAs `$sce.parseAs($sce.JS, value)`}\n\t     *\n\t     * @param {string} expression String expression to compile.\n\t     * @returns {function(context, locals)} a function which represents the compiled expression:\n\t     *\n\t     *    * `context` – `{object}` – an object against which any expressions embedded in the strings\n\t     *      are evaluated against (typically a scope object).\n\t     *    * `locals` – `{object=}` – local variables context object, useful for overriding values in\n\t     *      `context`.\n\t     */\n\n\t    // Shorthand delegations.\n\t    var parse = sce.parseAs,\n\t        getTrusted = sce.getTrusted,\n\t        trustAs = sce.trustAs;\n\n\t    forEach(SCE_CONTEXTS, function(enumValue, name) {\n\t      var lName = lowercase(name);\n\t      sce[camelCase(\"parse_as_\" + lName)] = function(expr) {\n\t        return parse(enumValue, expr);\n\t      };\n\t      sce[camelCase(\"get_trusted_\" + lName)] = function(value) {\n\t        return getTrusted(enumValue, value);\n\t      };\n\t      sce[camelCase(\"trust_as_\" + lName)] = function(value) {\n\t        return trustAs(enumValue, value);\n\t      };\n\t    });\n\n\t    return sce;\n\t  }];\n\t}\n\n\t/**\n\t * !!! This is an undocumented \"private\" service !!!\n\t *\n\t * @name $sniffer\n\t * @requires $window\n\t * @requires $document\n\t *\n\t * @property {boolean} history Does the browser support html5 history api ?\n\t * @property {boolean} transitions Does the browser support CSS transition events ?\n\t * @property {boolean} animations Does the browser support CSS animation events ?\n\t *\n\t * @description\n\t * This is very simple implementation of testing browser's features.\n\t */\n\tfunction $SnifferProvider() {\n\t  this.$get = ['$window', '$document', function($window, $document) {\n\t    var eventSupport = {},\n\t        android =\n\t          toInt((/android (\\d+)/.exec(lowercase(($window.navigator || {}).userAgent)) || [])[1]),\n\t        boxee = /Boxee/i.test(($window.navigator || {}).userAgent),\n\t        document = $document[0] || {},\n\t        vendorPrefix,\n\t        vendorRegex = /^(Moz|webkit|ms)(?=[A-Z])/,\n\t        bodyStyle = document.body && document.body.style,\n\t        transitions = false,\n\t        animations = false,\n\t        match;\n\n\t    if (bodyStyle) {\n\t      for (var prop in bodyStyle) {\n\t        if (match = vendorRegex.exec(prop)) {\n\t          vendorPrefix = match[0];\n\t          vendorPrefix = vendorPrefix.substr(0, 1).toUpperCase() + vendorPrefix.substr(1);\n\t          break;\n\t        }\n\t      }\n\n\t      if (!vendorPrefix) {\n\t        vendorPrefix = ('WebkitOpacity' in bodyStyle) && 'webkit';\n\t      }\n\n\t      transitions = !!(('transition' in bodyStyle) || (vendorPrefix + 'Transition' in bodyStyle));\n\t      animations  = !!(('animation' in bodyStyle) || (vendorPrefix + 'Animation' in bodyStyle));\n\n\t      if (android && (!transitions ||  !animations)) {\n\t        transitions = isString(bodyStyle.webkitTransition);\n\t        animations = isString(bodyStyle.webkitAnimation);\n\t      }\n\t    }\n\n\n\t    return {\n\t      // Android has history.pushState, but it does not update location correctly\n\t      // so let's not use the history API at all.\n\t      // http://code.google.com/p/android/issues/detail?id=17471\n\t      // https://github.com/angular/angular.js/issues/904\n\n\t      // older webkit browser (533.9) on Boxee box has exactly the same problem as Android has\n\t      // so let's not use the history API also\n\t      // We are purposefully using `!(android < 4)` to cover the case when `android` is undefined\n\t      // jshint -W018\n\t      history: !!($window.history && $window.history.pushState && !(android < 4) && !boxee),\n\t      // jshint +W018\n\t      hasEvent: function(event) {\n\t        // IE9 implements 'input' event it's so fubared that we rather pretend that it doesn't have\n\t        // it. In particular the event is not fired when backspace or delete key are pressed or\n\t        // when cut operation is performed.\n\t        // IE10+ implements 'input' event but it erroneously fires under various situations,\n\t        // e.g. when placeholder changes, or a form is focused.\n\t        if (event === 'input' && msie <= 11) return false;\n\n\t        if (isUndefined(eventSupport[event])) {\n\t          var divElm = document.createElement('div');\n\t          eventSupport[event] = 'on' + event in divElm;\n\t        }\n\n\t        return eventSupport[event];\n\t      },\n\t      csp: csp(),\n\t      vendorPrefix: vendorPrefix,\n\t      transitions: transitions,\n\t      animations: animations,\n\t      android: android\n\t    };\n\t  }];\n\t}\n\n\tvar $compileMinErr = minErr('$compile');\n\n\t/**\n\t * @ngdoc service\n\t * @name $templateRequest\n\t *\n\t * @description\n\t * The `$templateRequest` service runs security checks then downloads the provided template using\n\t * `$http` and, upon success, stores the contents inside of `$templateCache`. If the HTTP request\n\t * fails or the response data of the HTTP request is empty, a `$compile` error will be thrown (the\n\t * exception can be thwarted by setting the 2nd parameter of the function to true). Note that the\n\t * contents of `$templateCache` are trusted, so the call to `$sce.getTrustedUrl(tpl)` is omitted\n\t * when `tpl` is of type string and `$templateCache` has the matching entry.\n\t *\n\t * @param {string|TrustedResourceUrl} tpl The HTTP request template URL\n\t * @param {boolean=} ignoreRequestError Whether or not to ignore the exception when the request fails or the template is empty\n\t *\n\t * @return {Promise} a promise for the HTTP response data of the given URL.\n\t *\n\t * @property {number} totalPendingRequests total amount of pending template requests being downloaded.\n\t */\n\tfunction $TemplateRequestProvider() {\n\t  this.$get = ['$templateCache', '$http', '$q', '$sce', function($templateCache, $http, $q, $sce) {\n\t    function handleRequestFn(tpl, ignoreRequestError) {\n\t      handleRequestFn.totalPendingRequests++;\n\n\t      // We consider the template cache holds only trusted templates, so\n\t      // there's no need to go through whitelisting again for keys that already\n\t      // are included in there. This also makes Angular accept any script\n\t      // directive, no matter its name. However, we still need to unwrap trusted\n\t      // types.\n\t      if (!isString(tpl) || !$templateCache.get(tpl)) {\n\t        tpl = $sce.getTrustedResourceUrl(tpl);\n\t      }\n\n\t      var transformResponse = $http.defaults && $http.defaults.transformResponse;\n\n\t      if (isArray(transformResponse)) {\n\t        transformResponse = transformResponse.filter(function(transformer) {\n\t          return transformer !== defaultHttpResponseTransform;\n\t        });\n\t      } else if (transformResponse === defaultHttpResponseTransform) {\n\t        transformResponse = null;\n\t      }\n\n\t      var httpOptions = {\n\t        cache: $templateCache,\n\t        transformResponse: transformResponse\n\t      };\n\n\t      return $http.get(tpl, httpOptions)\n\t        ['finally'](function() {\n\t          handleRequestFn.totalPendingRequests--;\n\t        })\n\t        .then(function(response) {\n\t          $templateCache.put(tpl, response.data);\n\t          return response.data;\n\t        }, handleError);\n\n\t      function handleError(resp) {\n\t        if (!ignoreRequestError) {\n\t          throw $compileMinErr('tpload', 'Failed to load template: {0} (HTTP status: {1} {2})',\n\t            tpl, resp.status, resp.statusText);\n\t        }\n\t        return $q.reject(resp);\n\t      }\n\t    }\n\n\t    handleRequestFn.totalPendingRequests = 0;\n\n\t    return handleRequestFn;\n\t  }];\n\t}\n\n\tfunction $$TestabilityProvider() {\n\t  this.$get = ['$rootScope', '$browser', '$location',\n\t       function($rootScope,   $browser,   $location) {\n\n\t    /**\n\t     * @name $testability\n\t     *\n\t     * @description\n\t     * The private $$testability service provides a collection of methods for use when debugging\n\t     * or by automated test and debugging tools.\n\t     */\n\t    var testability = {};\n\n\t    /**\n\t     * @name $$testability#findBindings\n\t     *\n\t     * @description\n\t     * Returns an array of elements that are bound (via ng-bind or {{}})\n\t     * to expressions matching the input.\n\t     *\n\t     * @param {Element} element The element root to search from.\n\t     * @param {string} expression The binding expression to match.\n\t     * @param {boolean} opt_exactMatch If true, only returns exact matches\n\t     *     for the expression. Filters and whitespace are ignored.\n\t     */\n\t    testability.findBindings = function(element, expression, opt_exactMatch) {\n\t      var bindings = element.getElementsByClassName('ng-binding');\n\t      var matches = [];\n\t      forEach(bindings, function(binding) {\n\t        var dataBinding = angular.element(binding).data('$binding');\n\t        if (dataBinding) {\n\t          forEach(dataBinding, function(bindingName) {\n\t            if (opt_exactMatch) {\n\t              var matcher = new RegExp('(^|\\\\s)' + escapeForRegexp(expression) + '(\\\\s|\\\\||$)');\n\t              if (matcher.test(bindingName)) {\n\t                matches.push(binding);\n\t              }\n\t            } else {\n\t              if (bindingName.indexOf(expression) != -1) {\n\t                matches.push(binding);\n\t              }\n\t            }\n\t          });\n\t        }\n\t      });\n\t      return matches;\n\t    };\n\n\t    /**\n\t     * @name $$testability#findModels\n\t     *\n\t     * @description\n\t     * Returns an array of elements that are two-way found via ng-model to\n\t     * expressions matching the input.\n\t     *\n\t     * @param {Element} element The element root to search from.\n\t     * @param {string} expression The model expression to match.\n\t     * @param {boolean} opt_exactMatch If true, only returns exact matches\n\t     *     for the expression.\n\t     */\n\t    testability.findModels = function(element, expression, opt_exactMatch) {\n\t      var prefixes = ['ng-', 'data-ng-', 'ng\\\\:'];\n\t      for (var p = 0; p < prefixes.length; ++p) {\n\t        var attributeEquals = opt_exactMatch ? '=' : '*=';\n\t        var selector = '[' + prefixes[p] + 'model' + attributeEquals + '\"' + expression + '\"]';\n\t        var elements = element.querySelectorAll(selector);\n\t        if (elements.length) {\n\t          return elements;\n\t        }\n\t      }\n\t    };\n\n\t    /**\n\t     * @name $$testability#getLocation\n\t     *\n\t     * @description\n\t     * Shortcut for getting the location in a browser agnostic way. Returns\n\t     *     the path, search, and hash. (e.g. /path?a=b#hash)\n\t     */\n\t    testability.getLocation = function() {\n\t      return $location.url();\n\t    };\n\n\t    /**\n\t     * @name $$testability#setLocation\n\t     *\n\t     * @description\n\t     * Shortcut for navigating to a location without doing a full page reload.\n\t     *\n\t     * @param {string} url The location url (path, search and hash,\n\t     *     e.g. /path?a=b#hash) to go to.\n\t     */\n\t    testability.setLocation = function(url) {\n\t      if (url !== $location.url()) {\n\t        $location.url(url);\n\t        $rootScope.$digest();\n\t      }\n\t    };\n\n\t    /**\n\t     * @name $$testability#whenStable\n\t     *\n\t     * @description\n\t     * Calls the callback when $timeout and $http requests are completed.\n\t     *\n\t     * @param {function} callback\n\t     */\n\t    testability.whenStable = function(callback) {\n\t      $browser.notifyWhenNoOutstandingRequests(callback);\n\t    };\n\n\t    return testability;\n\t  }];\n\t}\n\n\tfunction $TimeoutProvider() {\n\t  this.$get = ['$rootScope', '$browser', '$q', '$$q', '$exceptionHandler',\n\t       function($rootScope,   $browser,   $q,   $$q,   $exceptionHandler) {\n\n\t    var deferreds = {};\n\n\n\t     /**\n\t      * @ngdoc service\n\t      * @name $timeout\n\t      *\n\t      * @description\n\t      * Angular's wrapper for `window.setTimeout`. The `fn` function is wrapped into a try/catch\n\t      * block and delegates any exceptions to\n\t      * {@link ng.$exceptionHandler $exceptionHandler} service.\n\t      *\n\t      * The return value of calling `$timeout` is a promise, which will be resolved when\n\t      * the delay has passed and the timeout function, if provided, is executed.\n\t      *\n\t      * To cancel a timeout request, call `$timeout.cancel(promise)`.\n\t      *\n\t      * In tests you can use {@link ngMock.$timeout `$timeout.flush()`} to\n\t      * synchronously flush the queue of deferred functions.\n\t      *\n\t      * If you only want a promise that will be resolved after some specified delay\n\t      * then you can call `$timeout` without the `fn` function.\n\t      *\n\t      * @param {function()=} fn A function, whose execution should be delayed.\n\t      * @param {number=} [delay=0] Delay in milliseconds.\n\t      * @param {boolean=} [invokeApply=true] If set to `false` skips model dirty checking, otherwise\n\t      *   will invoke `fn` within the {@link ng.$rootScope.Scope#$apply $apply} block.\n\t      * @param {...*=} Pass additional parameters to the executed function.\n\t      * @returns {Promise} Promise that will be resolved when the timeout is reached. The value this\n\t      *   promise will be resolved with is the return value of the `fn` function.\n\t      *\n\t      */\n\t    function timeout(fn, delay, invokeApply) {\n\t      if (!isFunction(fn)) {\n\t        invokeApply = delay;\n\t        delay = fn;\n\t        fn = noop;\n\t      }\n\n\t      var args = sliceArgs(arguments, 3),\n\t          skipApply = (isDefined(invokeApply) && !invokeApply),\n\t          deferred = (skipApply ? $$q : $q).defer(),\n\t          promise = deferred.promise,\n\t          timeoutId;\n\n\t      timeoutId = $browser.defer(function() {\n\t        try {\n\t          deferred.resolve(fn.apply(null, args));\n\t        } catch (e) {\n\t          deferred.reject(e);\n\t          $exceptionHandler(e);\n\t        }\n\t        finally {\n\t          delete deferreds[promise.$$timeoutId];\n\t        }\n\n\t        if (!skipApply) $rootScope.$apply();\n\t      }, delay);\n\n\t      promise.$$timeoutId = timeoutId;\n\t      deferreds[timeoutId] = deferred;\n\n\t      return promise;\n\t    }\n\n\n\t     /**\n\t      * @ngdoc method\n\t      * @name $timeout#cancel\n\t      *\n\t      * @description\n\t      * Cancels a task associated with the `promise`. As a result of this, the promise will be\n\t      * resolved with a rejection.\n\t      *\n\t      * @param {Promise=} promise Promise returned by the `$timeout` function.\n\t      * @returns {boolean} Returns `true` if the task hasn't executed yet and was successfully\n\t      *   canceled.\n\t      */\n\t    timeout.cancel = function(promise) {\n\t      if (promise && promise.$$timeoutId in deferreds) {\n\t        deferreds[promise.$$timeoutId].reject('canceled');\n\t        delete deferreds[promise.$$timeoutId];\n\t        return $browser.defer.cancel(promise.$$timeoutId);\n\t      }\n\t      return false;\n\t    };\n\n\t    return timeout;\n\t  }];\n\t}\n\n\t// NOTE:  The usage of window and document instead of $window and $document here is\n\t// deliberate.  This service depends on the specific behavior of anchor nodes created by the\n\t// browser (resolving and parsing URLs) that is unlikely to be provided by mock objects and\n\t// cause us to break tests.  In addition, when the browser resolves a URL for XHR, it\n\t// doesn't know about mocked locations and resolves URLs to the real document - which is\n\t// exactly the behavior needed here.  There is little value is mocking these out for this\n\t// service.\n\tvar urlParsingNode = document.createElement(\"a\");\n\tvar originUrl = urlResolve(window.location.href);\n\n\n\t/**\n\t *\n\t * Implementation Notes for non-IE browsers\n\t * ----------------------------------------\n\t * Assigning a URL to the href property of an anchor DOM node, even one attached to the DOM,\n\t * results both in the normalizing and parsing of the URL.  Normalizing means that a relative\n\t * URL will be resolved into an absolute URL in the context of the application document.\n\t * Parsing means that the anchor node's host, hostname, protocol, port, pathname and related\n\t * properties are all populated to reflect the normalized URL.  This approach has wide\n\t * compatibility - Safari 1+, Mozilla 1+, Opera 7+,e etc.  See\n\t * http://www.aptana.com/reference/html/api/HTMLAnchorElement.html\n\t *\n\t * Implementation Notes for IE\n\t * ---------------------------\n\t * IE <= 10 normalizes the URL when assigned to the anchor node similar to the other\n\t * browsers.  However, the parsed components will not be set if the URL assigned did not specify\n\t * them.  (e.g. if you assign a.href = \"foo\", then a.protocol, a.host, etc. will be empty.)  We\n\t * work around that by performing the parsing in a 2nd step by taking a previously normalized\n\t * URL (e.g. by assigning to a.href) and assigning it a.href again.  This correctly populates the\n\t * properties such as protocol, hostname, port, etc.\n\t *\n\t * References:\n\t *   http://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement\n\t *   http://www.aptana.com/reference/html/api/HTMLAnchorElement.html\n\t *   http://url.spec.whatwg.org/#urlutils\n\t *   https://github.com/angular/angular.js/pull/2902\n\t *   http://james.padolsey.com/javascript/parsing-urls-with-the-dom/\n\t *\n\t * @kind function\n\t * @param {string} url The URL to be parsed.\n\t * @description Normalizes and parses a URL.\n\t * @returns {object} Returns the normalized URL as a dictionary.\n\t *\n\t *   | member name   | Description    |\n\t *   |---------------|----------------|\n\t *   | href          | A normalized version of the provided URL if it was not an absolute URL |\n\t *   | protocol      | The protocol including the trailing colon                              |\n\t *   | host          | The host and port (if the port is non-default) of the normalizedUrl    |\n\t *   | search        | The search params, minus the question mark                             |\n\t *   | hash          | The hash string, minus the hash symbol\n\t *   | hostname      | The hostname\n\t *   | port          | The port, without \":\"\n\t *   | pathname      | The pathname, beginning with \"/\"\n\t *\n\t */\n\tfunction urlResolve(url) {\n\t  var href = url;\n\n\t  if (msie) {\n\t    // Normalize before parse.  Refer Implementation Notes on why this is\n\t    // done in two steps on IE.\n\t    urlParsingNode.setAttribute(\"href\", href);\n\t    href = urlParsingNode.href;\n\t  }\n\n\t  urlParsingNode.setAttribute('href', href);\n\n\t  // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n\t  return {\n\t    href: urlParsingNode.href,\n\t    protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n\t    host: urlParsingNode.host,\n\t    search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n\t    hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n\t    hostname: urlParsingNode.hostname,\n\t    port: urlParsingNode.port,\n\t    pathname: (urlParsingNode.pathname.charAt(0) === '/')\n\t      ? urlParsingNode.pathname\n\t      : '/' + urlParsingNode.pathname\n\t  };\n\t}\n\n\t/**\n\t * Parse a request URL and determine whether this is a same-origin request as the application document.\n\t *\n\t * @param {string|object} requestUrl The url of the request as a string that will be resolved\n\t * or a parsed URL object.\n\t * @returns {boolean} Whether the request is for the same origin as the application document.\n\t */\n\tfunction urlIsSameOrigin(requestUrl) {\n\t  var parsed = (isString(requestUrl)) ? urlResolve(requestUrl) : requestUrl;\n\t  return (parsed.protocol === originUrl.protocol &&\n\t          parsed.host === originUrl.host);\n\t}\n\n\t/**\n\t * @ngdoc service\n\t * @name $window\n\t *\n\t * @description\n\t * A reference to the browser's `window` object. While `window`\n\t * is globally available in JavaScript, it causes testability problems, because\n\t * it is a global variable. In angular we always refer to it through the\n\t * `$window` service, so it may be overridden, removed or mocked for testing.\n\t *\n\t * Expressions, like the one defined for the `ngClick` directive in the example\n\t * below, are evaluated with respect to the current scope.  Therefore, there is\n\t * no risk of inadvertently coding in a dependency on a global value in such an\n\t * expression.\n\t *\n\t * @example\n\t   <example module=\"windowExample\">\n\t     <file name=\"index.html\">\n\t       <script>\n\t         angular.module('windowExample', [])\n\t           .controller('ExampleController', ['$scope', '$window', function($scope, $window) {\n\t             $scope.greeting = 'Hello, World!';\n\t             $scope.doGreeting = function(greeting) {\n\t               $window.alert(greeting);\n\t             };\n\t           }]);\n\t       </script>\n\t       <div ng-controller=\"ExampleController\">\n\t         <input type=\"text\" ng-model=\"greeting\" aria-label=\"greeting\" />\n\t         <button ng-click=\"doGreeting(greeting)\">ALERT</button>\n\t       </div>\n\t     </file>\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t      it('should display the greeting in the input box', function() {\n\t       element(by.model('greeting')).sendKeys('Hello, E2E Tests');\n\t       // If we click the button it will block the test runner\n\t       // element(':button').click();\n\t      });\n\t     </file>\n\t   </example>\n\t */\n\tfunction $WindowProvider() {\n\t  this.$get = valueFn(window);\n\t}\n\n\t/**\n\t * @name $$cookieReader\n\t * @requires $document\n\t *\n\t * @description\n\t * This is a private service for reading cookies used by $http and ngCookies\n\t *\n\t * @return {Object} a key/value map of the current cookies\n\t */\n\tfunction $$CookieReader($document) {\n\t  var rawDocument = $document[0] || {};\n\t  var lastCookies = {};\n\t  var lastCookieString = '';\n\n\t  function safeDecodeURIComponent(str) {\n\t    try {\n\t      return decodeURIComponent(str);\n\t    } catch (e) {\n\t      return str;\n\t    }\n\t  }\n\n\t  return function() {\n\t    var cookieArray, cookie, i, index, name;\n\t    var currentCookieString = rawDocument.cookie || '';\n\n\t    if (currentCookieString !== lastCookieString) {\n\t      lastCookieString = currentCookieString;\n\t      cookieArray = lastCookieString.split('; ');\n\t      lastCookies = {};\n\n\t      for (i = 0; i < cookieArray.length; i++) {\n\t        cookie = cookieArray[i];\n\t        index = cookie.indexOf('=');\n\t        if (index > 0) { //ignore nameless cookies\n\t          name = safeDecodeURIComponent(cookie.substring(0, index));\n\t          // the first value that is seen for a cookie is the most\n\t          // specific one.  values for the same cookie name that\n\t          // follow are for less specific paths.\n\t          if (isUndefined(lastCookies[name])) {\n\t            lastCookies[name] = safeDecodeURIComponent(cookie.substring(index + 1));\n\t          }\n\t        }\n\t      }\n\t    }\n\t    return lastCookies;\n\t  };\n\t}\n\n\t$$CookieReader.$inject = ['$document'];\n\n\tfunction $$CookieReaderProvider() {\n\t  this.$get = $$CookieReader;\n\t}\n\n\t/* global currencyFilter: true,\n\t dateFilter: true,\n\t filterFilter: true,\n\t jsonFilter: true,\n\t limitToFilter: true,\n\t lowercaseFilter: true,\n\t numberFilter: true,\n\t orderByFilter: true,\n\t uppercaseFilter: true,\n\t */\n\n\t/**\n\t * @ngdoc provider\n\t * @name $filterProvider\n\t * @description\n\t *\n\t * Filters are just functions which transform input to an output. However filters need to be\n\t * Dependency Injected. To achieve this a filter definition consists of a factory function which is\n\t * annotated with dependencies and is responsible for creating a filter function.\n\t *\n\t * <div class=\"alert alert-warning\">\n\t * **Note:** Filter names must be valid angular {@link expression} identifiers, such as `uppercase` or `orderBy`.\n\t * Names with special characters, such as hyphens and dots, are not allowed. If you wish to namespace\n\t * your filters, then you can use capitalization (`myappSubsectionFilterx`) or underscores\n\t * (`myapp_subsection_filterx`).\n\t * </div>\n\t *\n\t * ```js\n\t *   // Filter registration\n\t *   function MyModule($provide, $filterProvider) {\n\t *     // create a service to demonstrate injection (not always needed)\n\t *     $provide.value('greet', function(name){\n\t *       return 'Hello ' + name + '!';\n\t *     });\n\t *\n\t *     // register a filter factory which uses the\n\t *     // greet service to demonstrate DI.\n\t *     $filterProvider.register('greet', function(greet){\n\t *       // return the filter function which uses the greet service\n\t *       // to generate salutation\n\t *       return function(text) {\n\t *         // filters need to be forgiving so check input validity\n\t *         return text && greet(text) || text;\n\t *       };\n\t *     });\n\t *   }\n\t * ```\n\t *\n\t * The filter function is registered with the `$injector` under the filter name suffix with\n\t * `Filter`.\n\t *\n\t * ```js\n\t *   it('should be the same instance', inject(\n\t *     function($filterProvider) {\n\t *       $filterProvider.register('reverse', function(){\n\t *         return ...;\n\t *       });\n\t *     },\n\t *     function($filter, reverseFilter) {\n\t *       expect($filter('reverse')).toBe(reverseFilter);\n\t *     });\n\t * ```\n\t *\n\t *\n\t * For more information about how angular filters work, and how to create your own filters, see\n\t * {@link guide/filter Filters} in the Angular Developer Guide.\n\t */\n\n\t/**\n\t * @ngdoc service\n\t * @name $filter\n\t * @kind function\n\t * @description\n\t * Filters are used for formatting data displayed to the user.\n\t *\n\t * The general syntax in templates is as follows:\n\t *\n\t *         {{ expression [| filter_name[:parameter_value] ... ] }}\n\t *\n\t * @param {String} name Name of the filter function to retrieve\n\t * @return {Function} the filter function\n\t * @example\n\t   <example name=\"$filter\" module=\"filterExample\">\n\t     <file name=\"index.html\">\n\t       <div ng-controller=\"MainCtrl\">\n\t        <h3>{{ originalText }}</h3>\n\t        <h3>{{ filteredText }}</h3>\n\t       </div>\n\t     </file>\n\n\t     <file name=\"script.js\">\n\t      angular.module('filterExample', [])\n\t      .controller('MainCtrl', function($scope, $filter) {\n\t        $scope.originalText = 'hello';\n\t        $scope.filteredText = $filter('uppercase')($scope.originalText);\n\t      });\n\t     </file>\n\t   </example>\n\t  */\n\t$FilterProvider.$inject = ['$provide'];\n\tfunction $FilterProvider($provide) {\n\t  var suffix = 'Filter';\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name $filterProvider#register\n\t   * @param {string|Object} name Name of the filter function, or an object map of filters where\n\t   *    the keys are the filter names and the values are the filter factories.\n\t   *\n\t   *    <div class=\"alert alert-warning\">\n\t   *    **Note:** Filter names must be valid angular {@link expression} identifiers, such as `uppercase` or `orderBy`.\n\t   *    Names with special characters, such as hyphens and dots, are not allowed. If you wish to namespace\n\t   *    your filters, then you can use capitalization (`myappSubsectionFilterx`) or underscores\n\t   *    (`myapp_subsection_filterx`).\n\t   *    </div>\n\t    * @param {Function} factory If the first argument was a string, a factory function for the filter to be registered.\n\t   * @returns {Object} Registered filter instance, or if a map of filters was provided then a map\n\t   *    of the registered filter instances.\n\t   */\n\t  function register(name, factory) {\n\t    if (isObject(name)) {\n\t      var filters = {};\n\t      forEach(name, function(filter, key) {\n\t        filters[key] = register(key, filter);\n\t      });\n\t      return filters;\n\t    } else {\n\t      return $provide.factory(name + suffix, factory);\n\t    }\n\t  }\n\t  this.register = register;\n\n\t  this.$get = ['$injector', function($injector) {\n\t    return function(name) {\n\t      return $injector.get(name + suffix);\n\t    };\n\t  }];\n\n\t  ////////////////////////////////////////\n\n\t  /* global\n\t    currencyFilter: false,\n\t    dateFilter: false,\n\t    filterFilter: false,\n\t    jsonFilter: false,\n\t    limitToFilter: false,\n\t    lowercaseFilter: false,\n\t    numberFilter: false,\n\t    orderByFilter: false,\n\t    uppercaseFilter: false,\n\t  */\n\n\t  register('currency', currencyFilter);\n\t  register('date', dateFilter);\n\t  register('filter', filterFilter);\n\t  register('json', jsonFilter);\n\t  register('limitTo', limitToFilter);\n\t  register('lowercase', lowercaseFilter);\n\t  register('number', numberFilter);\n\t  register('orderBy', orderByFilter);\n\t  register('uppercase', uppercaseFilter);\n\t}\n\n\t/**\n\t * @ngdoc filter\n\t * @name filter\n\t * @kind function\n\t *\n\t * @description\n\t * Selects a subset of items from `array` and returns it as a new array.\n\t *\n\t * @param {Array} array The source array.\n\t * @param {string|Object|function()} expression The predicate to be used for selecting items from\n\t *   `array`.\n\t *\n\t *   Can be one of:\n\t *\n\t *   - `string`: The string is used for matching against the contents of the `array`. All strings or\n\t *     objects with string properties in `array` that match this string will be returned. This also\n\t *     applies to nested object properties.\n\t *     The predicate can be negated by prefixing the string with `!`.\n\t *\n\t *   - `Object`: A pattern object can be used to filter specific properties on objects contained\n\t *     by `array`. For example `{name:\"M\", phone:\"1\"}` predicate will return an array of items\n\t *     which have property `name` containing \"M\" and property `phone` containing \"1\". A special\n\t *     property name `$` can be used (as in `{$:\"text\"}`) to accept a match against any\n\t *     property of the object or its nested object properties. That's equivalent to the simple\n\t *     substring match with a `string` as described above. The predicate can be negated by prefixing\n\t *     the string with `!`.\n\t *     For example `{name: \"!M\"}` predicate will return an array of items which have property `name`\n\t *     not containing \"M\".\n\t *\n\t *     Note that a named property will match properties on the same level only, while the special\n\t *     `$` property will match properties on the same level or deeper. E.g. an array item like\n\t *     `{name: {first: 'John', last: 'Doe'}}` will **not** be matched by `{name: 'John'}`, but\n\t *     **will** be matched by `{$: 'John'}`.\n\t *\n\t *   - `function(value, index, array)`: A predicate function can be used to write arbitrary filters.\n\t *     The function is called for each element of the array, with the element, its index, and\n\t *     the entire array itself as arguments.\n\t *\n\t *     The final result is an array of those elements that the predicate returned true for.\n\t *\n\t * @param {function(actual, expected)|true|undefined} comparator Comparator which is used in\n\t *     determining if the expected value (from the filter expression) and actual value (from\n\t *     the object in the array) should be considered a match.\n\t *\n\t *   Can be one of:\n\t *\n\t *   - `function(actual, expected)`:\n\t *     The function will be given the object value and the predicate value to compare and\n\t *     should return true if both values should be considered equal.\n\t *\n\t *   - `true`: A shorthand for `function(actual, expected) { return angular.equals(actual, expected)}`.\n\t *     This is essentially strict comparison of expected and actual.\n\t *\n\t *   - `false|undefined`: A short hand for a function which will look for a substring match in case\n\t *     insensitive way.\n\t *\n\t *     Primitive values are converted to strings. Objects are not compared against primitives,\n\t *     unless they have a custom `toString` method (e.g. `Date` objects).\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t       <div ng-init=\"friends = [{name:'John', phone:'555-1276'},\n\t                                {name:'Mary', phone:'800-BIG-MARY'},\n\t                                {name:'Mike', phone:'555-4321'},\n\t                                {name:'Adam', phone:'555-5678'},\n\t                                {name:'Julie', phone:'555-8765'},\n\t                                {name:'Juliette', phone:'555-5678'}]\"></div>\n\n\t       <label>Search: <input ng-model=\"searchText\"></label>\n\t       <table id=\"searchTextResults\">\n\t         <tr><th>Name</th><th>Phone</th></tr>\n\t         <tr ng-repeat=\"friend in friends | filter:searchText\">\n\t           <td>{{friend.name}}</td>\n\t           <td>{{friend.phone}}</td>\n\t         </tr>\n\t       </table>\n\t       <hr>\n\t       <label>Any: <input ng-model=\"search.$\"></label> <br>\n\t       <label>Name only <input ng-model=\"search.name\"></label><br>\n\t       <label>Phone only <input ng-model=\"search.phone\"></label><br>\n\t       <label>Equality <input type=\"checkbox\" ng-model=\"strict\"></label><br>\n\t       <table id=\"searchObjResults\">\n\t         <tr><th>Name</th><th>Phone</th></tr>\n\t         <tr ng-repeat=\"friendObj in friends | filter:search:strict\">\n\t           <td>{{friendObj.name}}</td>\n\t           <td>{{friendObj.phone}}</td>\n\t         </tr>\n\t       </table>\n\t     </file>\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t       var expectFriendNames = function(expectedNames, key) {\n\t         element.all(by.repeater(key + ' in friends').column(key + '.name')).then(function(arr) {\n\t           arr.forEach(function(wd, i) {\n\t             expect(wd.getText()).toMatch(expectedNames[i]);\n\t           });\n\t         });\n\t       };\n\n\t       it('should search across all fields when filtering with a string', function() {\n\t         var searchText = element(by.model('searchText'));\n\t         searchText.clear();\n\t         searchText.sendKeys('m');\n\t         expectFriendNames(['Mary', 'Mike', 'Adam'], 'friend');\n\n\t         searchText.clear();\n\t         searchText.sendKeys('76');\n\t         expectFriendNames(['John', 'Julie'], 'friend');\n\t       });\n\n\t       it('should search in specific fields when filtering with a predicate object', function() {\n\t         var searchAny = element(by.model('search.$'));\n\t         searchAny.clear();\n\t         searchAny.sendKeys('i');\n\t         expectFriendNames(['Mary', 'Mike', 'Julie', 'Juliette'], 'friendObj');\n\t       });\n\t       it('should use a equal comparison when comparator is true', function() {\n\t         var searchName = element(by.model('search.name'));\n\t         var strict = element(by.model('strict'));\n\t         searchName.clear();\n\t         searchName.sendKeys('Julie');\n\t         strict.click();\n\t         expectFriendNames(['Julie'], 'friendObj');\n\t       });\n\t     </file>\n\t   </example>\n\t */\n\tfunction filterFilter() {\n\t  return function(array, expression, comparator) {\n\t    if (!isArrayLike(array)) {\n\t      if (array == null) {\n\t        return array;\n\t      } else {\n\t        throw minErr('filter')('notarray', 'Expected array but received: {0}', array);\n\t      }\n\t    }\n\n\t    var expressionType = getTypeForFilter(expression);\n\t    var predicateFn;\n\t    var matchAgainstAnyProp;\n\n\t    switch (expressionType) {\n\t      case 'function':\n\t        predicateFn = expression;\n\t        break;\n\t      case 'boolean':\n\t      case 'null':\n\t      case 'number':\n\t      case 'string':\n\t        matchAgainstAnyProp = true;\n\t        //jshint -W086\n\t      case 'object':\n\t        //jshint +W086\n\t        predicateFn = createPredicateFn(expression, comparator, matchAgainstAnyProp);\n\t        break;\n\t      default:\n\t        return array;\n\t    }\n\n\t    return Array.prototype.filter.call(array, predicateFn);\n\t  };\n\t}\n\n\t// Helper functions for `filterFilter`\n\tfunction createPredicateFn(expression, comparator, matchAgainstAnyProp) {\n\t  var shouldMatchPrimitives = isObject(expression) && ('$' in expression);\n\t  var predicateFn;\n\n\t  if (comparator === true) {\n\t    comparator = equals;\n\t  } else if (!isFunction(comparator)) {\n\t    comparator = function(actual, expected) {\n\t      if (isUndefined(actual)) {\n\t        // No substring matching against `undefined`\n\t        return false;\n\t      }\n\t      if ((actual === null) || (expected === null)) {\n\t        // No substring matching against `null`; only match against `null`\n\t        return actual === expected;\n\t      }\n\t      if (isObject(expected) || (isObject(actual) && !hasCustomToString(actual))) {\n\t        // Should not compare primitives against objects, unless they have custom `toString` method\n\t        return false;\n\t      }\n\n\t      actual = lowercase('' + actual);\n\t      expected = lowercase('' + expected);\n\t      return actual.indexOf(expected) !== -1;\n\t    };\n\t  }\n\n\t  predicateFn = function(item) {\n\t    if (shouldMatchPrimitives && !isObject(item)) {\n\t      return deepCompare(item, expression.$, comparator, false);\n\t    }\n\t    return deepCompare(item, expression, comparator, matchAgainstAnyProp);\n\t  };\n\n\t  return predicateFn;\n\t}\n\n\tfunction deepCompare(actual, expected, comparator, matchAgainstAnyProp, dontMatchWholeObject) {\n\t  var actualType = getTypeForFilter(actual);\n\t  var expectedType = getTypeForFilter(expected);\n\n\t  if ((expectedType === 'string') && (expected.charAt(0) === '!')) {\n\t    return !deepCompare(actual, expected.substring(1), comparator, matchAgainstAnyProp);\n\t  } else if (isArray(actual)) {\n\t    // In case `actual` is an array, consider it a match\n\t    // if ANY of it's items matches `expected`\n\t    return actual.some(function(item) {\n\t      return deepCompare(item, expected, comparator, matchAgainstAnyProp);\n\t    });\n\t  }\n\n\t  switch (actualType) {\n\t    case 'object':\n\t      var key;\n\t      if (matchAgainstAnyProp) {\n\t        for (key in actual) {\n\t          if ((key.charAt(0) !== '$') && deepCompare(actual[key], expected, comparator, true)) {\n\t            return true;\n\t          }\n\t        }\n\t        return dontMatchWholeObject ? false : deepCompare(actual, expected, comparator, false);\n\t      } else if (expectedType === 'object') {\n\t        for (key in expected) {\n\t          var expectedVal = expected[key];\n\t          if (isFunction(expectedVal) || isUndefined(expectedVal)) {\n\t            continue;\n\t          }\n\n\t          var matchAnyProperty = key === '$';\n\t          var actualVal = matchAnyProperty ? actual : actual[key];\n\t          if (!deepCompare(actualVal, expectedVal, comparator, matchAnyProperty, matchAnyProperty)) {\n\t            return false;\n\t          }\n\t        }\n\t        return true;\n\t      } else {\n\t        return comparator(actual, expected);\n\t      }\n\t      break;\n\t    case 'function':\n\t      return false;\n\t    default:\n\t      return comparator(actual, expected);\n\t  }\n\t}\n\n\t// Used for easily differentiating between `null` and actual `object`\n\tfunction getTypeForFilter(val) {\n\t  return (val === null) ? 'null' : typeof val;\n\t}\n\n\t/**\n\t * @ngdoc filter\n\t * @name currency\n\t * @kind function\n\t *\n\t * @description\n\t * Formats a number as a currency (ie $1,234.56). When no currency symbol is provided, default\n\t * symbol for current locale is used.\n\t *\n\t * @param {number} amount Input to filter.\n\t * @param {string=} symbol Currency symbol or identifier to be displayed.\n\t * @param {number=} fractionSize Number of decimal places to round the amount to, defaults to default max fraction size for current locale\n\t * @returns {string} Formatted number.\n\t *\n\t *\n\t * @example\n\t   <example module=\"currencyExample\">\n\t     <file name=\"index.html\">\n\t       <script>\n\t         angular.module('currencyExample', [])\n\t           .controller('ExampleController', ['$scope', function($scope) {\n\t             $scope.amount = 1234.56;\n\t           }]);\n\t       </script>\n\t       <div ng-controller=\"ExampleController\">\n\t         <input type=\"number\" ng-model=\"amount\" aria-label=\"amount\"> <br>\n\t         default currency symbol ($): <span id=\"currency-default\">{{amount | currency}}</span><br>\n\t         custom currency identifier (USD$): <span id=\"currency-custom\">{{amount | currency:\"USD$\"}}</span>\n\t         no fractions (0): <span id=\"currency-no-fractions\">{{amount | currency:\"USD$\":0}}</span>\n\t       </div>\n\t     </file>\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t       it('should init with 1234.56', function() {\n\t         expect(element(by.id('currency-default')).getText()).toBe('$1,234.56');\n\t         expect(element(by.id('currency-custom')).getText()).toBe('USD$1,234.56');\n\t         expect(element(by.id('currency-no-fractions')).getText()).toBe('USD$1,235');\n\t       });\n\t       it('should update', function() {\n\t         if (browser.params.browser == 'safari') {\n\t           // Safari does not understand the minus key. See\n\t           // https://github.com/angular/protractor/issues/481\n\t           return;\n\t         }\n\t         element(by.model('amount')).clear();\n\t         element(by.model('amount')).sendKeys('-1234');\n\t         expect(element(by.id('currency-default')).getText()).toBe('-$1,234.00');\n\t         expect(element(by.id('currency-custom')).getText()).toBe('-USD$1,234.00');\n\t         expect(element(by.id('currency-no-fractions')).getText()).toBe('-USD$1,234');\n\t       });\n\t     </file>\n\t   </example>\n\t */\n\tcurrencyFilter.$inject = ['$locale'];\n\tfunction currencyFilter($locale) {\n\t  var formats = $locale.NUMBER_FORMATS;\n\t  return function(amount, currencySymbol, fractionSize) {\n\t    if (isUndefined(currencySymbol)) {\n\t      currencySymbol = formats.CURRENCY_SYM;\n\t    }\n\n\t    if (isUndefined(fractionSize)) {\n\t      fractionSize = formats.PATTERNS[1].maxFrac;\n\t    }\n\n\t    // if null or undefined pass it through\n\t    return (amount == null)\n\t        ? amount\n\t        : formatNumber(amount, formats.PATTERNS[1], formats.GROUP_SEP, formats.DECIMAL_SEP, fractionSize).\n\t            replace(/\\u00A4/g, currencySymbol);\n\t  };\n\t}\n\n\t/**\n\t * @ngdoc filter\n\t * @name number\n\t * @kind function\n\t *\n\t * @description\n\t * Formats a number as text.\n\t *\n\t * If the input is null or undefined, it will just be returned.\n\t * If the input is infinite (Infinity/-Infinity) the Infinity symbol '∞' is returned.\n\t * If the input is not a number an empty string is returned.\n\t *\n\t *\n\t * @param {number|string} number Number to format.\n\t * @param {(number|string)=} fractionSize Number of decimal places to round the number to.\n\t * If this is not provided then the fraction size is computed from the current locale's number\n\t * formatting pattern. In the case of the default locale, it will be 3.\n\t * @returns {string} Number rounded to decimalPlaces and places a “,” after each third digit.\n\t *\n\t * @example\n\t   <example module=\"numberFilterExample\">\n\t     <file name=\"index.html\">\n\t       <script>\n\t         angular.module('numberFilterExample', [])\n\t           .controller('ExampleController', ['$scope', function($scope) {\n\t             $scope.val = 1234.56789;\n\t           }]);\n\t       </script>\n\t       <div ng-controller=\"ExampleController\">\n\t         <label>Enter number: <input ng-model='val'></label><br>\n\t         Default formatting: <span id='number-default'>{{val | number}}</span><br>\n\t         No fractions: <span>{{val | number:0}}</span><br>\n\t         Negative number: <span>{{-val | number:4}}</span>\n\t       </div>\n\t     </file>\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t       it('should format numbers', function() {\n\t         expect(element(by.id('number-default')).getText()).toBe('1,234.568');\n\t         expect(element(by.binding('val | number:0')).getText()).toBe('1,235');\n\t         expect(element(by.binding('-val | number:4')).getText()).toBe('-1,234.5679');\n\t       });\n\n\t       it('should update', function() {\n\t         element(by.model('val')).clear();\n\t         element(by.model('val')).sendKeys('3374.333');\n\t         expect(element(by.id('number-default')).getText()).toBe('3,374.333');\n\t         expect(element(by.binding('val | number:0')).getText()).toBe('3,374');\n\t         expect(element(by.binding('-val | number:4')).getText()).toBe('-3,374.3330');\n\t      });\n\t     </file>\n\t   </example>\n\t */\n\n\n\tnumberFilter.$inject = ['$locale'];\n\tfunction numberFilter($locale) {\n\t  var formats = $locale.NUMBER_FORMATS;\n\t  return function(number, fractionSize) {\n\n\t    // if null or undefined pass it through\n\t    return (number == null)\n\t        ? number\n\t        : formatNumber(number, formats.PATTERNS[0], formats.GROUP_SEP, formats.DECIMAL_SEP,\n\t                       fractionSize);\n\t  };\n\t}\n\n\tvar DECIMAL_SEP = '.';\n\tfunction formatNumber(number, pattern, groupSep, decimalSep, fractionSize) {\n\t  if (isObject(number)) return '';\n\n\t  var isNegative = number < 0;\n\t  number = Math.abs(number);\n\n\t  var isInfinity = number === Infinity;\n\t  if (!isInfinity && !isFinite(number)) return '';\n\n\t  var numStr = number + '',\n\t      formatedText = '',\n\t      hasExponent = false,\n\t      parts = [];\n\n\t  if (isInfinity) formatedText = '\\u221e';\n\n\t  if (!isInfinity && numStr.indexOf('e') !== -1) {\n\t    var match = numStr.match(/([\\d\\.]+)e(-?)(\\d+)/);\n\t    if (match && match[2] == '-' && match[3] > fractionSize + 1) {\n\t      number = 0;\n\t    } else {\n\t      formatedText = numStr;\n\t      hasExponent = true;\n\t    }\n\t  }\n\n\t  if (!isInfinity && !hasExponent) {\n\t    var fractionLen = (numStr.split(DECIMAL_SEP)[1] || '').length;\n\n\t    // determine fractionSize if it is not specified\n\t    if (isUndefined(fractionSize)) {\n\t      fractionSize = Math.min(Math.max(pattern.minFrac, fractionLen), pattern.maxFrac);\n\t    }\n\n\t    // safely round numbers in JS without hitting imprecisions of floating-point arithmetics\n\t    // inspired by:\n\t    // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/round\n\t    number = +(Math.round(+(number.toString() + 'e' + fractionSize)).toString() + 'e' + -fractionSize);\n\n\t    var fraction = ('' + number).split(DECIMAL_SEP);\n\t    var whole = fraction[0];\n\t    fraction = fraction[1] || '';\n\n\t    var i, pos = 0,\n\t        lgroup = pattern.lgSize,\n\t        group = pattern.gSize;\n\n\t    if (whole.length >= (lgroup + group)) {\n\t      pos = whole.length - lgroup;\n\t      for (i = 0; i < pos; i++) {\n\t        if ((pos - i) % group === 0 && i !== 0) {\n\t          formatedText += groupSep;\n\t        }\n\t        formatedText += whole.charAt(i);\n\t      }\n\t    }\n\n\t    for (i = pos; i < whole.length; i++) {\n\t      if ((whole.length - i) % lgroup === 0 && i !== 0) {\n\t        formatedText += groupSep;\n\t      }\n\t      formatedText += whole.charAt(i);\n\t    }\n\n\t    // format fraction part.\n\t    while (fraction.length < fractionSize) {\n\t      fraction += '0';\n\t    }\n\n\t    if (fractionSize && fractionSize !== \"0\") formatedText += decimalSep + fraction.substr(0, fractionSize);\n\t  } else {\n\t    if (fractionSize > 0 && number < 1) {\n\t      formatedText = number.toFixed(fractionSize);\n\t      number = parseFloat(formatedText);\n\t      formatedText = formatedText.replace(DECIMAL_SEP, decimalSep);\n\t    }\n\t  }\n\n\t  if (number === 0) {\n\t    isNegative = false;\n\t  }\n\n\t  parts.push(isNegative ? pattern.negPre : pattern.posPre,\n\t             formatedText,\n\t             isNegative ? pattern.negSuf : pattern.posSuf);\n\t  return parts.join('');\n\t}\n\n\tfunction padNumber(num, digits, trim) {\n\t  var neg = '';\n\t  if (num < 0) {\n\t    neg =  '-';\n\t    num = -num;\n\t  }\n\t  num = '' + num;\n\t  while (num.length < digits) num = '0' + num;\n\t  if (trim) {\n\t    num = num.substr(num.length - digits);\n\t  }\n\t  return neg + num;\n\t}\n\n\n\tfunction dateGetter(name, size, offset, trim) {\n\t  offset = offset || 0;\n\t  return function(date) {\n\t    var value = date['get' + name]();\n\t    if (offset > 0 || value > -offset) {\n\t      value += offset;\n\t    }\n\t    if (value === 0 && offset == -12) value = 12;\n\t    return padNumber(value, size, trim);\n\t  };\n\t}\n\n\tfunction dateStrGetter(name, shortForm) {\n\t  return function(date, formats) {\n\t    var value = date['get' + name]();\n\t    var get = uppercase(shortForm ? ('SHORT' + name) : name);\n\n\t    return formats[get][value];\n\t  };\n\t}\n\n\tfunction timeZoneGetter(date, formats, offset) {\n\t  var zone = -1 * offset;\n\t  var paddedZone = (zone >= 0) ? \"+\" : \"\";\n\n\t  paddedZone += padNumber(Math[zone > 0 ? 'floor' : 'ceil'](zone / 60), 2) +\n\t                padNumber(Math.abs(zone % 60), 2);\n\n\t  return paddedZone;\n\t}\n\n\tfunction getFirstThursdayOfYear(year) {\n\t    // 0 = index of January\n\t    var dayOfWeekOnFirst = (new Date(year, 0, 1)).getDay();\n\t    // 4 = index of Thursday (+1 to account for 1st = 5)\n\t    // 11 = index of *next* Thursday (+1 account for 1st = 12)\n\t    return new Date(year, 0, ((dayOfWeekOnFirst <= 4) ? 5 : 12) - dayOfWeekOnFirst);\n\t}\n\n\tfunction getThursdayThisWeek(datetime) {\n\t    return new Date(datetime.getFullYear(), datetime.getMonth(),\n\t      // 4 = index of Thursday\n\t      datetime.getDate() + (4 - datetime.getDay()));\n\t}\n\n\tfunction weekGetter(size) {\n\t   return function(date) {\n\t      var firstThurs = getFirstThursdayOfYear(date.getFullYear()),\n\t         thisThurs = getThursdayThisWeek(date);\n\n\t      var diff = +thisThurs - +firstThurs,\n\t         result = 1 + Math.round(diff / 6.048e8); // 6.048e8 ms per week\n\n\t      return padNumber(result, size);\n\t   };\n\t}\n\n\tfunction ampmGetter(date, formats) {\n\t  return date.getHours() < 12 ? formats.AMPMS[0] : formats.AMPMS[1];\n\t}\n\n\tfunction eraGetter(date, formats) {\n\t  return date.getFullYear() <= 0 ? formats.ERAS[0] : formats.ERAS[1];\n\t}\n\n\tfunction longEraGetter(date, formats) {\n\t  return date.getFullYear() <= 0 ? formats.ERANAMES[0] : formats.ERANAMES[1];\n\t}\n\n\tvar DATE_FORMATS = {\n\t  yyyy: dateGetter('FullYear', 4),\n\t    yy: dateGetter('FullYear', 2, 0, true),\n\t     y: dateGetter('FullYear', 1),\n\t  MMMM: dateStrGetter('Month'),\n\t   MMM: dateStrGetter('Month', true),\n\t    MM: dateGetter('Month', 2, 1),\n\t     M: dateGetter('Month', 1, 1),\n\t    dd: dateGetter('Date', 2),\n\t     d: dateGetter('Date', 1),\n\t    HH: dateGetter('Hours', 2),\n\t     H: dateGetter('Hours', 1),\n\t    hh: dateGetter('Hours', 2, -12),\n\t     h: dateGetter('Hours', 1, -12),\n\t    mm: dateGetter('Minutes', 2),\n\t     m: dateGetter('Minutes', 1),\n\t    ss: dateGetter('Seconds', 2),\n\t     s: dateGetter('Seconds', 1),\n\t     // while ISO 8601 requires fractions to be prefixed with `.` or `,`\n\t     // we can be just safely rely on using `sss` since we currently don't support single or two digit fractions\n\t   sss: dateGetter('Milliseconds', 3),\n\t  EEEE: dateStrGetter('Day'),\n\t   EEE: dateStrGetter('Day', true),\n\t     a: ampmGetter,\n\t     Z: timeZoneGetter,\n\t    ww: weekGetter(2),\n\t     w: weekGetter(1),\n\t     G: eraGetter,\n\t     GG: eraGetter,\n\t     GGG: eraGetter,\n\t     GGGG: longEraGetter\n\t};\n\n\tvar DATE_FORMATS_SPLIT = /((?:[^yMdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,\n\t    NUMBER_STRING = /^\\-?\\d+$/;\n\n\t/**\n\t * @ngdoc filter\n\t * @name date\n\t * @kind function\n\t *\n\t * @description\n\t *   Formats `date` to a string based on the requested `format`.\n\t *\n\t *   `format` string can be composed of the following elements:\n\t *\n\t *   * `'yyyy'`: 4 digit representation of year (e.g. AD 1 => 0001, AD 2010 => 2010)\n\t *   * `'yy'`: 2 digit representation of year, padded (00-99). (e.g. AD 2001 => 01, AD 2010 => 10)\n\t *   * `'y'`: 1 digit representation of year, e.g. (AD 1 => 1, AD 199 => 199)\n\t *   * `'MMMM'`: Month in year (January-December)\n\t *   * `'MMM'`: Month in year (Jan-Dec)\n\t *   * `'MM'`: Month in year, padded (01-12)\n\t *   * `'M'`: Month in year (1-12)\n\t *   * `'dd'`: Day in month, padded (01-31)\n\t *   * `'d'`: Day in month (1-31)\n\t *   * `'EEEE'`: Day in Week,(Sunday-Saturday)\n\t *   * `'EEE'`: Day in Week, (Sun-Sat)\n\t *   * `'HH'`: Hour in day, padded (00-23)\n\t *   * `'H'`: Hour in day (0-23)\n\t *   * `'hh'`: Hour in AM/PM, padded (01-12)\n\t *   * `'h'`: Hour in AM/PM, (1-12)\n\t *   * `'mm'`: Minute in hour, padded (00-59)\n\t *   * `'m'`: Minute in hour (0-59)\n\t *   * `'ss'`: Second in minute, padded (00-59)\n\t *   * `'s'`: Second in minute (0-59)\n\t *   * `'sss'`: Millisecond in second, padded (000-999)\n\t *   * `'a'`: AM/PM marker\n\t *   * `'Z'`: 4 digit (+sign) representation of the timezone offset (-1200-+1200)\n\t *   * `'ww'`: Week of year, padded (00-53). Week 01 is the week with the first Thursday of the year\n\t *   * `'w'`: Week of year (0-53). Week 1 is the week with the first Thursday of the year\n\t *   * `'G'`, `'GG'`, `'GGG'`: The abbreviated form of the era string (e.g. 'AD')\n\t *   * `'GGGG'`: The long form of the era string (e.g. 'Anno Domini')\n\t *\n\t *   `format` string can also be one of the following predefined\n\t *   {@link guide/i18n localizable formats}:\n\t *\n\t *   * `'medium'`: equivalent to `'MMM d, y h:mm:ss a'` for en_US locale\n\t *     (e.g. Sep 3, 2010 12:05:08 PM)\n\t *   * `'short'`: equivalent to `'M/d/yy h:mm a'` for en_US  locale (e.g. 9/3/10 12:05 PM)\n\t *   * `'fullDate'`: equivalent to `'EEEE, MMMM d, y'` for en_US  locale\n\t *     (e.g. Friday, September 3, 2010)\n\t *   * `'longDate'`: equivalent to `'MMMM d, y'` for en_US  locale (e.g. September 3, 2010)\n\t *   * `'mediumDate'`: equivalent to `'MMM d, y'` for en_US  locale (e.g. Sep 3, 2010)\n\t *   * `'shortDate'`: equivalent to `'M/d/yy'` for en_US locale (e.g. 9/3/10)\n\t *   * `'mediumTime'`: equivalent to `'h:mm:ss a'` for en_US locale (e.g. 12:05:08 PM)\n\t *   * `'shortTime'`: equivalent to `'h:mm a'` for en_US locale (e.g. 12:05 PM)\n\t *\n\t *   `format` string can contain literal values. These need to be escaped by surrounding with single quotes (e.g.\n\t *   `\"h 'in the morning'\"`). In order to output a single quote, escape it - i.e., two single quotes in a sequence\n\t *   (e.g. `\"h 'o''clock'\"`).\n\t *\n\t * @param {(Date|number|string)} date Date to format either as Date object, milliseconds (string or\n\t *    number) or various ISO 8601 datetime string formats (e.g. yyyy-MM-ddTHH:mm:ss.sssZ and its\n\t *    shorter versions like yyyy-MM-ddTHH:mmZ, yyyy-MM-dd or yyyyMMddTHHmmssZ). If no timezone is\n\t *    specified in the string input, the time is considered to be in the local timezone.\n\t * @param {string=} format Formatting rules (see Description). If not specified,\n\t *    `mediumDate` is used.\n\t * @param {string=} timezone Timezone to be used for formatting. It understands UTC/GMT and the\n\t *    continental US time zone abbreviations, but for general use, use a time zone offset, for\n\t *    example, `'+0430'` (4 hours, 30 minutes east of the Greenwich meridian)\n\t *    If not specified, the timezone of the browser will be used.\n\t * @returns {string} Formatted string or the input if input is not recognized as date/millis.\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t       <span ng-non-bindable>{{1288323623006 | date:'medium'}}</span>:\n\t           <span>{{1288323623006 | date:'medium'}}</span><br>\n\t       <span ng-non-bindable>{{1288323623006 | date:'yyyy-MM-dd HH:mm:ss Z'}}</span>:\n\t          <span>{{1288323623006 | date:'yyyy-MM-dd HH:mm:ss Z'}}</span><br>\n\t       <span ng-non-bindable>{{1288323623006 | date:'MM/dd/yyyy @ h:mma'}}</span>:\n\t          <span>{{'1288323623006' | date:'MM/dd/yyyy @ h:mma'}}</span><br>\n\t       <span ng-non-bindable>{{1288323623006 | date:\"MM/dd/yyyy 'at' h:mma\"}}</span>:\n\t          <span>{{'1288323623006' | date:\"MM/dd/yyyy 'at' h:mma\"}}</span><br>\n\t     </file>\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t       it('should format date', function() {\n\t         expect(element(by.binding(\"1288323623006 | date:'medium'\")).getText()).\n\t            toMatch(/Oct 2\\d, 2010 \\d{1,2}:\\d{2}:\\d{2} (AM|PM)/);\n\t         expect(element(by.binding(\"1288323623006 | date:'yyyy-MM-dd HH:mm:ss Z'\")).getText()).\n\t            toMatch(/2010\\-10\\-2\\d \\d{2}:\\d{2}:\\d{2} (\\-|\\+)?\\d{4}/);\n\t         expect(element(by.binding(\"'1288323623006' | date:'MM/dd/yyyy @ h:mma'\")).getText()).\n\t            toMatch(/10\\/2\\d\\/2010 @ \\d{1,2}:\\d{2}(AM|PM)/);\n\t         expect(element(by.binding(\"'1288323623006' | date:\\\"MM/dd/yyyy 'at' h:mma\\\"\")).getText()).\n\t            toMatch(/10\\/2\\d\\/2010 at \\d{1,2}:\\d{2}(AM|PM)/);\n\t       });\n\t     </file>\n\t   </example>\n\t */\n\tdateFilter.$inject = ['$locale'];\n\tfunction dateFilter($locale) {\n\n\n\t  var R_ISO8601_STR = /^(\\d{4})-?(\\d\\d)-?(\\d\\d)(?:T(\\d\\d)(?::?(\\d\\d)(?::?(\\d\\d)(?:\\.(\\d+))?)?)?(Z|([+-])(\\d\\d):?(\\d\\d))?)?$/;\n\t                     // 1        2       3         4          5          6          7          8  9     10      11\n\t  function jsonStringToDate(string) {\n\t    var match;\n\t    if (match = string.match(R_ISO8601_STR)) {\n\t      var date = new Date(0),\n\t          tzHour = 0,\n\t          tzMin  = 0,\n\t          dateSetter = match[8] ? date.setUTCFullYear : date.setFullYear,\n\t          timeSetter = match[8] ? date.setUTCHours : date.setHours;\n\n\t      if (match[9]) {\n\t        tzHour = toInt(match[9] + match[10]);\n\t        tzMin = toInt(match[9] + match[11]);\n\t      }\n\t      dateSetter.call(date, toInt(match[1]), toInt(match[2]) - 1, toInt(match[3]));\n\t      var h = toInt(match[4] || 0) - tzHour;\n\t      var m = toInt(match[5] || 0) - tzMin;\n\t      var s = toInt(match[6] || 0);\n\t      var ms = Math.round(parseFloat('0.' + (match[7] || 0)) * 1000);\n\t      timeSetter.call(date, h, m, s, ms);\n\t      return date;\n\t    }\n\t    return string;\n\t  }\n\n\n\t  return function(date, format, timezone) {\n\t    var text = '',\n\t        parts = [],\n\t        fn, match;\n\n\t    format = format || 'mediumDate';\n\t    format = $locale.DATETIME_FORMATS[format] || format;\n\t    if (isString(date)) {\n\t      date = NUMBER_STRING.test(date) ? toInt(date) : jsonStringToDate(date);\n\t    }\n\n\t    if (isNumber(date)) {\n\t      date = new Date(date);\n\t    }\n\n\t    if (!isDate(date) || !isFinite(date.getTime())) {\n\t      return date;\n\t    }\n\n\t    while (format) {\n\t      match = DATE_FORMATS_SPLIT.exec(format);\n\t      if (match) {\n\t        parts = concat(parts, match, 1);\n\t        format = parts.pop();\n\t      } else {\n\t        parts.push(format);\n\t        format = null;\n\t      }\n\t    }\n\n\t    var dateTimezoneOffset = date.getTimezoneOffset();\n\t    if (timezone) {\n\t      dateTimezoneOffset = timezoneToOffset(timezone, date.getTimezoneOffset());\n\t      date = convertTimezoneToLocal(date, timezone, true);\n\t    }\n\t    forEach(parts, function(value) {\n\t      fn = DATE_FORMATS[value];\n\t      text += fn ? fn(date, $locale.DATETIME_FORMATS, dateTimezoneOffset)\n\t                 : value.replace(/(^'|'$)/g, '').replace(/''/g, \"'\");\n\t    });\n\n\t    return text;\n\t  };\n\t}\n\n\n\t/**\n\t * @ngdoc filter\n\t * @name json\n\t * @kind function\n\t *\n\t * @description\n\t *   Allows you to convert a JavaScript object into JSON string.\n\t *\n\t *   This filter is mostly useful for debugging. When using the double curly {{value}} notation\n\t *   the binding is automatically converted to JSON.\n\t *\n\t * @param {*} object Any JavaScript object (including arrays and primitive types) to filter.\n\t * @param {number=} spacing The number of spaces to use per indentation, defaults to 2.\n\t * @returns {string} JSON string.\n\t *\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t       <pre id=\"default-spacing\">{{ {'name':'value'} | json }}</pre>\n\t       <pre id=\"custom-spacing\">{{ {'name':'value'} | json:4 }}</pre>\n\t     </file>\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t       it('should jsonify filtered objects', function() {\n\t         expect(element(by.id('default-spacing')).getText()).toMatch(/\\{\\n  \"name\": ?\"value\"\\n}/);\n\t         expect(element(by.id('custom-spacing')).getText()).toMatch(/\\{\\n    \"name\": ?\"value\"\\n}/);\n\t       });\n\t     </file>\n\t   </example>\n\t *\n\t */\n\tfunction jsonFilter() {\n\t  return function(object, spacing) {\n\t    if (isUndefined(spacing)) {\n\t        spacing = 2;\n\t    }\n\t    return toJson(object, spacing);\n\t  };\n\t}\n\n\n\t/**\n\t * @ngdoc filter\n\t * @name lowercase\n\t * @kind function\n\t * @description\n\t * Converts string to lowercase.\n\t * @see angular.lowercase\n\t */\n\tvar lowercaseFilter = valueFn(lowercase);\n\n\n\t/**\n\t * @ngdoc filter\n\t * @name uppercase\n\t * @kind function\n\t * @description\n\t * Converts string to uppercase.\n\t * @see angular.uppercase\n\t */\n\tvar uppercaseFilter = valueFn(uppercase);\n\n\t/**\n\t * @ngdoc filter\n\t * @name limitTo\n\t * @kind function\n\t *\n\t * @description\n\t * Creates a new array or string containing only a specified number of elements. The elements\n\t * are taken from either the beginning or the end of the source array, string or number, as specified by\n\t * the value and sign (positive or negative) of `limit`. If a number is used as input, it is\n\t * converted to a string.\n\t *\n\t * @param {Array|string|number} input Source array, string or number to be limited.\n\t * @param {string|number} limit The length of the returned array or string. If the `limit` number\n\t *     is positive, `limit` number of items from the beginning of the source array/string are copied.\n\t *     If the number is negative, `limit` number  of items from the end of the source array/string\n\t *     are copied. The `limit` will be trimmed if it exceeds `array.length`. If `limit` is undefined,\n\t *     the input will be returned unchanged.\n\t * @param {(string|number)=} begin Index at which to begin limitation. As a negative index, `begin`\n\t *     indicates an offset from the end of `input`. Defaults to `0`.\n\t * @returns {Array|string} A new sub-array or substring of length `limit` or less if input array\n\t *     had less than `limit` elements.\n\t *\n\t * @example\n\t   <example module=\"limitToExample\">\n\t     <file name=\"index.html\">\n\t       <script>\n\t         angular.module('limitToExample', [])\n\t           .controller('ExampleController', ['$scope', function($scope) {\n\t             $scope.numbers = [1,2,3,4,5,6,7,8,9];\n\t             $scope.letters = \"abcdefghi\";\n\t             $scope.longNumber = 2345432342;\n\t             $scope.numLimit = 3;\n\t             $scope.letterLimit = 3;\n\t             $scope.longNumberLimit = 3;\n\t           }]);\n\t       </script>\n\t       <div ng-controller=\"ExampleController\">\n\t         <label>\n\t            Limit {{numbers}} to:\n\t            <input type=\"number\" step=\"1\" ng-model=\"numLimit\">\n\t         </label>\n\t         <p>Output numbers: {{ numbers | limitTo:numLimit }}</p>\n\t         <label>\n\t            Limit {{letters}} to:\n\t            <input type=\"number\" step=\"1\" ng-model=\"letterLimit\">\n\t         </label>\n\t         <p>Output letters: {{ letters | limitTo:letterLimit }}</p>\n\t         <label>\n\t            Limit {{longNumber}} to:\n\t            <input type=\"number\" step=\"1\" ng-model=\"longNumberLimit\">\n\t         </label>\n\t         <p>Output long number: {{ longNumber | limitTo:longNumberLimit }}</p>\n\t       </div>\n\t     </file>\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t       var numLimitInput = element(by.model('numLimit'));\n\t       var letterLimitInput = element(by.model('letterLimit'));\n\t       var longNumberLimitInput = element(by.model('longNumberLimit'));\n\t       var limitedNumbers = element(by.binding('numbers | limitTo:numLimit'));\n\t       var limitedLetters = element(by.binding('letters | limitTo:letterLimit'));\n\t       var limitedLongNumber = element(by.binding('longNumber | limitTo:longNumberLimit'));\n\n\t       it('should limit the number array to first three items', function() {\n\t         expect(numLimitInput.getAttribute('value')).toBe('3');\n\t         expect(letterLimitInput.getAttribute('value')).toBe('3');\n\t         expect(longNumberLimitInput.getAttribute('value')).toBe('3');\n\t         expect(limitedNumbers.getText()).toEqual('Output numbers: [1,2,3]');\n\t         expect(limitedLetters.getText()).toEqual('Output letters: abc');\n\t         expect(limitedLongNumber.getText()).toEqual('Output long number: 234');\n\t       });\n\n\t       // There is a bug in safari and protractor that doesn't like the minus key\n\t       // it('should update the output when -3 is entered', function() {\n\t       //   numLimitInput.clear();\n\t       //   numLimitInput.sendKeys('-3');\n\t       //   letterLimitInput.clear();\n\t       //   letterLimitInput.sendKeys('-3');\n\t       //   longNumberLimitInput.clear();\n\t       //   longNumberLimitInput.sendKeys('-3');\n\t       //   expect(limitedNumbers.getText()).toEqual('Output numbers: [7,8,9]');\n\t       //   expect(limitedLetters.getText()).toEqual('Output letters: ghi');\n\t       //   expect(limitedLongNumber.getText()).toEqual('Output long number: 342');\n\t       // });\n\n\t       it('should not exceed the maximum size of input array', function() {\n\t         numLimitInput.clear();\n\t         numLimitInput.sendKeys('100');\n\t         letterLimitInput.clear();\n\t         letterLimitInput.sendKeys('100');\n\t         longNumberLimitInput.clear();\n\t         longNumberLimitInput.sendKeys('100');\n\t         expect(limitedNumbers.getText()).toEqual('Output numbers: [1,2,3,4,5,6,7,8,9]');\n\t         expect(limitedLetters.getText()).toEqual('Output letters: abcdefghi');\n\t         expect(limitedLongNumber.getText()).toEqual('Output long number: 2345432342');\n\t       });\n\t     </file>\n\t   </example>\n\t*/\n\tfunction limitToFilter() {\n\t  return function(input, limit, begin) {\n\t    if (Math.abs(Number(limit)) === Infinity) {\n\t      limit = Number(limit);\n\t    } else {\n\t      limit = toInt(limit);\n\t    }\n\t    if (isNaN(limit)) return input;\n\n\t    if (isNumber(input)) input = input.toString();\n\t    if (!isArray(input) && !isString(input)) return input;\n\n\t    begin = (!begin || isNaN(begin)) ? 0 : toInt(begin);\n\t    begin = (begin < 0) ? Math.max(0, input.length + begin) : begin;\n\n\t    if (limit >= 0) {\n\t      return input.slice(begin, begin + limit);\n\t    } else {\n\t      if (begin === 0) {\n\t        return input.slice(limit, input.length);\n\t      } else {\n\t        return input.slice(Math.max(0, begin + limit), begin);\n\t      }\n\t    }\n\t  };\n\t}\n\n\t/**\n\t * @ngdoc filter\n\t * @name orderBy\n\t * @kind function\n\t *\n\t * @description\n\t * Orders a specified `array` by the `expression` predicate. It is ordered alphabetically\n\t * for strings and numerically for numbers. Note: if you notice numbers are not being sorted\n\t * as expected, make sure they are actually being saved as numbers and not strings.\n\t *\n\t * @param {Array} array The array to sort.\n\t * @param {function(*)|string|Array.<(function(*)|string)>=} expression A predicate to be\n\t *    used by the comparator to determine the order of elements.\n\t *\n\t *    Can be one of:\n\t *\n\t *    - `function`: Getter function. The result of this function will be sorted using the\n\t *      `<`, `===`, `>` operator.\n\t *    - `string`: An Angular expression. The result of this expression is used to compare elements\n\t *      (for example `name` to sort by a property called `name` or `name.substr(0, 3)` to sort by\n\t *      3 first characters of a property called `name`). The result of a constant expression\n\t *      is interpreted as a property name to be used in comparisons (for example `\"special name\"`\n\t *      to sort object by the value of their `special name` property). An expression can be\n\t *      optionally prefixed with `+` or `-` to control ascending or descending sort order\n\t *      (for example, `+name` or `-name`). If no property is provided, (e.g. `'+'`) then the array\n\t *      element itself is used to compare where sorting.\n\t *    - `Array`: An array of function or string predicates. The first predicate in the array\n\t *      is used for sorting, but when two items are equivalent, the next predicate is used.\n\t *\n\t *    If the predicate is missing or empty then it defaults to `'+'`.\n\t *\n\t * @param {boolean=} reverse Reverse the order of the array.\n\t * @returns {Array} Sorted copy of the source array.\n\t *\n\t *\n\t * @example\n\t * The example below demonstrates a simple ngRepeat, where the data is sorted\n\t * by age in descending order (predicate is set to `'-age'`).\n\t * `reverse` is not set, which means it defaults to `false`.\n\t   <example module=\"orderByExample\">\n\t     <file name=\"index.html\">\n\t       <script>\n\t         angular.module('orderByExample', [])\n\t           .controller('ExampleController', ['$scope', function($scope) {\n\t             $scope.friends =\n\t                 [{name:'John', phone:'555-1212', age:10},\n\t                  {name:'Mary', phone:'555-9876', age:19},\n\t                  {name:'Mike', phone:'555-4321', age:21},\n\t                  {name:'Adam', phone:'555-5678', age:35},\n\t                  {name:'Julie', phone:'555-8765', age:29}];\n\t           }]);\n\t       </script>\n\t       <div ng-controller=\"ExampleController\">\n\t         <table class=\"friend\">\n\t           <tr>\n\t             <th>Name</th>\n\t             <th>Phone Number</th>\n\t             <th>Age</th>\n\t           </tr>\n\t           <tr ng-repeat=\"friend in friends | orderBy:'-age'\">\n\t             <td>{{friend.name}}</td>\n\t             <td>{{friend.phone}}</td>\n\t             <td>{{friend.age}}</td>\n\t           </tr>\n\t         </table>\n\t       </div>\n\t     </file>\n\t   </example>\n\t *\n\t * The predicate and reverse parameters can be controlled dynamically through scope properties,\n\t * as shown in the next example.\n\t * @example\n\t   <example module=\"orderByExample\">\n\t     <file name=\"index.html\">\n\t       <script>\n\t         angular.module('orderByExample', [])\n\t           .controller('ExampleController', ['$scope', function($scope) {\n\t             $scope.friends =\n\t                 [{name:'John', phone:'555-1212', age:10},\n\t                  {name:'Mary', phone:'555-9876', age:19},\n\t                  {name:'Mike', phone:'555-4321', age:21},\n\t                  {name:'Adam', phone:'555-5678', age:35},\n\t                  {name:'Julie', phone:'555-8765', age:29}];\n\t             $scope.predicate = 'age';\n\t             $scope.reverse = true;\n\t             $scope.order = function(predicate) {\n\t               $scope.reverse = ($scope.predicate === predicate) ? !$scope.reverse : false;\n\t               $scope.predicate = predicate;\n\t             };\n\t           }]);\n\t       </script>\n\t       <style type=\"text/css\">\n\t         .sortorder:after {\n\t           content: '\\25b2';\n\t         }\n\t         .sortorder.reverse:after {\n\t           content: '\\25bc';\n\t         }\n\t       </style>\n\t       <div ng-controller=\"ExampleController\">\n\t         <pre>Sorting predicate = {{predicate}}; reverse = {{reverse}}</pre>\n\t         <hr/>\n\t         [ <a href=\"\" ng-click=\"predicate=''\">unsorted</a> ]\n\t         <table class=\"friend\">\n\t           <tr>\n\t             <th>\n\t               <a href=\"\" ng-click=\"order('name')\">Name</a>\n\t               <span class=\"sortorder\" ng-show=\"predicate === 'name'\" ng-class=\"{reverse:reverse}\"></span>\n\t             </th>\n\t             <th>\n\t               <a href=\"\" ng-click=\"order('phone')\">Phone Number</a>\n\t               <span class=\"sortorder\" ng-show=\"predicate === 'phone'\" ng-class=\"{reverse:reverse}\"></span>\n\t             </th>\n\t             <th>\n\t               <a href=\"\" ng-click=\"order('age')\">Age</a>\n\t               <span class=\"sortorder\" ng-show=\"predicate === 'age'\" ng-class=\"{reverse:reverse}\"></span>\n\t             </th>\n\t           </tr>\n\t           <tr ng-repeat=\"friend in friends | orderBy:predicate:reverse\">\n\t             <td>{{friend.name}}</td>\n\t             <td>{{friend.phone}}</td>\n\t             <td>{{friend.age}}</td>\n\t           </tr>\n\t         </table>\n\t       </div>\n\t     </file>\n\t   </example>\n\t *\n\t * It's also possible to call the orderBy filter manually, by injecting `$filter`, retrieving the\n\t * filter routine with `$filter('orderBy')`, and calling the returned filter routine with the\n\t * desired parameters.\n\t *\n\t * Example:\n\t *\n\t * @example\n\t  <example module=\"orderByExample\">\n\t    <file name=\"index.html\">\n\t      <div ng-controller=\"ExampleController\">\n\t        <table class=\"friend\">\n\t          <tr>\n\t            <th><a href=\"\" ng-click=\"reverse=false;order('name', false)\">Name</a>\n\t              (<a href=\"\" ng-click=\"order('-name',false)\">^</a>)</th>\n\t            <th><a href=\"\" ng-click=\"reverse=!reverse;order('phone', reverse)\">Phone Number</a></th>\n\t            <th><a href=\"\" ng-click=\"reverse=!reverse;order('age',reverse)\">Age</a></th>\n\t          </tr>\n\t          <tr ng-repeat=\"friend in friends\">\n\t            <td>{{friend.name}}</td>\n\t            <td>{{friend.phone}}</td>\n\t            <td>{{friend.age}}</td>\n\t          </tr>\n\t        </table>\n\t      </div>\n\t    </file>\n\n\t    <file name=\"script.js\">\n\t      angular.module('orderByExample', [])\n\t        .controller('ExampleController', ['$scope', '$filter', function($scope, $filter) {\n\t          var orderBy = $filter('orderBy');\n\t          $scope.friends = [\n\t            { name: 'John',    phone: '555-1212',    age: 10 },\n\t            { name: 'Mary',    phone: '555-9876',    age: 19 },\n\t            { name: 'Mike',    phone: '555-4321',    age: 21 },\n\t            { name: 'Adam',    phone: '555-5678',    age: 35 },\n\t            { name: 'Julie',   phone: '555-8765',    age: 29 }\n\t          ];\n\t          $scope.order = function(predicate, reverse) {\n\t            $scope.friends = orderBy($scope.friends, predicate, reverse);\n\t          };\n\t          $scope.order('-age',false);\n\t        }]);\n\t    </file>\n\t</example>\n\t */\n\torderByFilter.$inject = ['$parse'];\n\tfunction orderByFilter($parse) {\n\t  return function(array, sortPredicate, reverseOrder) {\n\n\t    if (!(isArrayLike(array))) return array;\n\n\t    if (!isArray(sortPredicate)) { sortPredicate = [sortPredicate]; }\n\t    if (sortPredicate.length === 0) { sortPredicate = ['+']; }\n\n\t    var predicates = processPredicates(sortPredicate, reverseOrder);\n\t    // Add a predicate at the end that evaluates to the element index. This makes the\n\t    // sort stable as it works as a tie-breaker when all the input predicates cannot\n\t    // distinguish between two elements.\n\t    predicates.push({ get: function() { return {}; }, descending: reverseOrder ? -1 : 1});\n\n\t    // The next three lines are a version of a Swartzian Transform idiom from Perl\n\t    // (sometimes called the Decorate-Sort-Undecorate idiom)\n\t    // See https://en.wikipedia.org/wiki/Schwartzian_transform\n\t    var compareValues = Array.prototype.map.call(array, getComparisonObject);\n\t    compareValues.sort(doComparison);\n\t    array = compareValues.map(function(item) { return item.value; });\n\n\t    return array;\n\n\t    function getComparisonObject(value, index) {\n\t      return {\n\t        value: value,\n\t        predicateValues: predicates.map(function(predicate) {\n\t          return getPredicateValue(predicate.get(value), index);\n\t        })\n\t      };\n\t    }\n\n\t    function doComparison(v1, v2) {\n\t      var result = 0;\n\t      for (var index=0, length = predicates.length; index < length; ++index) {\n\t        result = compare(v1.predicateValues[index], v2.predicateValues[index]) * predicates[index].descending;\n\t        if (result) break;\n\t      }\n\t      return result;\n\t    }\n\t  };\n\n\t  function processPredicates(sortPredicate, reverseOrder) {\n\t    reverseOrder = reverseOrder ? -1 : 1;\n\t    return sortPredicate.map(function(predicate) {\n\t      var descending = 1, get = identity;\n\n\t      if (isFunction(predicate)) {\n\t        get = predicate;\n\t      } else if (isString(predicate)) {\n\t        if ((predicate.charAt(0) == '+' || predicate.charAt(0) == '-')) {\n\t          descending = predicate.charAt(0) == '-' ? -1 : 1;\n\t          predicate = predicate.substring(1);\n\t        }\n\t        if (predicate !== '') {\n\t          get = $parse(predicate);\n\t          if (get.constant) {\n\t            var key = get();\n\t            get = function(value) { return value[key]; };\n\t          }\n\t        }\n\t      }\n\t      return { get: get, descending: descending * reverseOrder };\n\t    });\n\t  }\n\n\t  function isPrimitive(value) {\n\t    switch (typeof value) {\n\t      case 'number': /* falls through */\n\t      case 'boolean': /* falls through */\n\t      case 'string':\n\t        return true;\n\t      default:\n\t        return false;\n\t    }\n\t  }\n\n\t  function objectValue(value, index) {\n\t    // If `valueOf` is a valid function use that\n\t    if (typeof value.valueOf === 'function') {\n\t      value = value.valueOf();\n\t      if (isPrimitive(value)) return value;\n\t    }\n\t    // If `toString` is a valid function and not the one from `Object.prototype` use that\n\t    if (hasCustomToString(value)) {\n\t      value = value.toString();\n\t      if (isPrimitive(value)) return value;\n\t    }\n\t    // We have a basic object so we use the position of the object in the collection\n\t    return index;\n\t  }\n\n\t  function getPredicateValue(value, index) {\n\t    var type = typeof value;\n\t    if (value === null) {\n\t      type = 'string';\n\t      value = 'null';\n\t    } else if (type === 'string') {\n\t      value = value.toLowerCase();\n\t    } else if (type === 'object') {\n\t      value = objectValue(value, index);\n\t    }\n\t    return { value: value, type: type };\n\t  }\n\n\t  function compare(v1, v2) {\n\t    var result = 0;\n\t    if (v1.type === v2.type) {\n\t      if (v1.value !== v2.value) {\n\t        result = v1.value < v2.value ? -1 : 1;\n\t      }\n\t    } else {\n\t      result = v1.type < v2.type ? -1 : 1;\n\t    }\n\t    return result;\n\t  }\n\t}\n\n\tfunction ngDirective(directive) {\n\t  if (isFunction(directive)) {\n\t    directive = {\n\t      link: directive\n\t    };\n\t  }\n\t  directive.restrict = directive.restrict || 'AC';\n\t  return valueFn(directive);\n\t}\n\n\t/**\n\t * @ngdoc directive\n\t * @name a\n\t * @restrict E\n\t *\n\t * @description\n\t * Modifies the default behavior of the html A tag so that the default action is prevented when\n\t * the href attribute is empty.\n\t *\n\t * This change permits the easy creation of action links with the `ngClick` directive\n\t * without changing the location or causing page reloads, e.g.:\n\t * `<a href=\"\" ng-click=\"list.addItem()\">Add Item</a>`\n\t */\n\tvar htmlAnchorDirective = valueFn({\n\t  restrict: 'E',\n\t  compile: function(element, attr) {\n\t    if (!attr.href && !attr.xlinkHref) {\n\t      return function(scope, element) {\n\t        // If the linked element is not an anchor tag anymore, do nothing\n\t        if (element[0].nodeName.toLowerCase() !== 'a') return;\n\n\t        // SVGAElement does not use the href attribute, but rather the 'xlinkHref' attribute.\n\t        var href = toString.call(element.prop('href')) === '[object SVGAnimatedString]' ?\n\t                   'xlink:href' : 'href';\n\t        element.on('click', function(event) {\n\t          // if we have no href url, then don't navigate anywhere.\n\t          if (!element.attr(href)) {\n\t            event.preventDefault();\n\t          }\n\t        });\n\t      };\n\t    }\n\t  }\n\t});\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngHref\n\t * @restrict A\n\t * @priority 99\n\t *\n\t * @description\n\t * Using Angular markup like `{{hash}}` in an href attribute will\n\t * make the link go to the wrong URL if the user clicks it before\n\t * Angular has a chance to replace the `{{hash}}` markup with its\n\t * value. Until Angular replaces the markup the link will be broken\n\t * and will most likely return a 404 error. The `ngHref` directive\n\t * solves this problem.\n\t *\n\t * The wrong way to write it:\n\t * ```html\n\t * <a href=\"http://www.gravatar.com/avatar/{{hash}}\">link1</a>\n\t * ```\n\t *\n\t * The correct way to write it:\n\t * ```html\n\t * <a ng-href=\"http://www.gravatar.com/avatar/{{hash}}\">link1</a>\n\t * ```\n\t *\n\t * @element A\n\t * @param {template} ngHref any string which can contain `{{}}` markup.\n\t *\n\t * @example\n\t * This example shows various combinations of `href`, `ng-href` and `ng-click` attributes\n\t * in links and their different behaviors:\n\t    <example>\n\t      <file name=\"index.html\">\n\t        <input ng-model=\"value\" /><br />\n\t        <a id=\"link-1\" href ng-click=\"value = 1\">link 1</a> (link, don't reload)<br />\n\t        <a id=\"link-2\" href=\"\" ng-click=\"value = 2\">link 2</a> (link, don't reload)<br />\n\t        <a id=\"link-3\" ng-href=\"/{{'123'}}\">link 3</a> (link, reload!)<br />\n\t        <a id=\"link-4\" href=\"\" name=\"xx\" ng-click=\"value = 4\">anchor</a> (link, don't reload)<br />\n\t        <a id=\"link-5\" name=\"xxx\" ng-click=\"value = 5\">anchor</a> (no link)<br />\n\t        <a id=\"link-6\" ng-href=\"{{value}}\">link</a> (link, change location)\n\t      </file>\n\t      <file name=\"protractor.js\" type=\"protractor\">\n\t        it('should execute ng-click but not reload when href without value', function() {\n\t          element(by.id('link-1')).click();\n\t          expect(element(by.model('value')).getAttribute('value')).toEqual('1');\n\t          expect(element(by.id('link-1')).getAttribute('href')).toBe('');\n\t        });\n\n\t        it('should execute ng-click but not reload when href empty string', function() {\n\t          element(by.id('link-2')).click();\n\t          expect(element(by.model('value')).getAttribute('value')).toEqual('2');\n\t          expect(element(by.id('link-2')).getAttribute('href')).toBe('');\n\t        });\n\n\t        it('should execute ng-click and change url when ng-href specified', function() {\n\t          expect(element(by.id('link-3')).getAttribute('href')).toMatch(/\\/123$/);\n\n\t          element(by.id('link-3')).click();\n\n\t          // At this point, we navigate away from an Angular page, so we need\n\t          // to use browser.driver to get the base webdriver.\n\n\t          browser.wait(function() {\n\t            return browser.driver.getCurrentUrl().then(function(url) {\n\t              return url.match(/\\/123$/);\n\t            });\n\t          }, 5000, 'page should navigate to /123');\n\t        });\n\n\t        it('should execute ng-click but not reload when href empty string and name specified', function() {\n\t          element(by.id('link-4')).click();\n\t          expect(element(by.model('value')).getAttribute('value')).toEqual('4');\n\t          expect(element(by.id('link-4')).getAttribute('href')).toBe('');\n\t        });\n\n\t        it('should execute ng-click but not reload when no href but name specified', function() {\n\t          element(by.id('link-5')).click();\n\t          expect(element(by.model('value')).getAttribute('value')).toEqual('5');\n\t          expect(element(by.id('link-5')).getAttribute('href')).toBe(null);\n\t        });\n\n\t        it('should only change url when only ng-href', function() {\n\t          element(by.model('value')).clear();\n\t          element(by.model('value')).sendKeys('6');\n\t          expect(element(by.id('link-6')).getAttribute('href')).toMatch(/\\/6$/);\n\n\t          element(by.id('link-6')).click();\n\n\t          // At this point, we navigate away from an Angular page, so we need\n\t          // to use browser.driver to get the base webdriver.\n\t          browser.wait(function() {\n\t            return browser.driver.getCurrentUrl().then(function(url) {\n\t              return url.match(/\\/6$/);\n\t            });\n\t          }, 5000, 'page should navigate to /6');\n\t        });\n\t      </file>\n\t    </example>\n\t */\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngSrc\n\t * @restrict A\n\t * @priority 99\n\t *\n\t * @description\n\t * Using Angular markup like `{{hash}}` in a `src` attribute doesn't\n\t * work right: The browser will fetch from the URL with the literal\n\t * text `{{hash}}` until Angular replaces the expression inside\n\t * `{{hash}}`. The `ngSrc` directive solves this problem.\n\t *\n\t * The buggy way to write it:\n\t * ```html\n\t * <img src=\"http://www.gravatar.com/avatar/{{hash}}\" alt=\"Description\"/>\n\t * ```\n\t *\n\t * The correct way to write it:\n\t * ```html\n\t * <img ng-src=\"http://www.gravatar.com/avatar/{{hash}}\" alt=\"Description\" />\n\t * ```\n\t *\n\t * @element IMG\n\t * @param {template} ngSrc any string which can contain `{{}}` markup.\n\t */\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngSrcset\n\t * @restrict A\n\t * @priority 99\n\t *\n\t * @description\n\t * Using Angular markup like `{{hash}}` in a `srcset` attribute doesn't\n\t * work right: The browser will fetch from the URL with the literal\n\t * text `{{hash}}` until Angular replaces the expression inside\n\t * `{{hash}}`. The `ngSrcset` directive solves this problem.\n\t *\n\t * The buggy way to write it:\n\t * ```html\n\t * <img srcset=\"http://www.gravatar.com/avatar/{{hash}} 2x\" alt=\"Description\"/>\n\t * ```\n\t *\n\t * The correct way to write it:\n\t * ```html\n\t * <img ng-srcset=\"http://www.gravatar.com/avatar/{{hash}} 2x\" alt=\"Description\" />\n\t * ```\n\t *\n\t * @element IMG\n\t * @param {template} ngSrcset any string which can contain `{{}}` markup.\n\t */\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngDisabled\n\t * @restrict A\n\t * @priority 100\n\t *\n\t * @description\n\t *\n\t * This directive sets the `disabled` attribute on the element if the\n\t * {@link guide/expression expression} inside `ngDisabled` evaluates to truthy.\n\t *\n\t * A special directive is necessary because we cannot use interpolation inside the `disabled`\n\t * attribute.  The following example would make the button enabled on Chrome/Firefox\n\t * but not on older IEs:\n\t *\n\t * ```html\n\t * <!-- See below for an example of ng-disabled being used correctly -->\n\t * <div ng-init=\"isDisabled = false\">\n\t *  <button disabled=\"{{isDisabled}}\">Disabled</button>\n\t * </div>\n\t * ```\n\t *\n\t * This is because the HTML specification does not require browsers to preserve the values of\n\t * boolean attributes such as `disabled` (Their presence means true and their absence means false.)\n\t * If we put an Angular interpolation expression into such an attribute then the\n\t * binding information would be lost when the browser removes the attribute.\n\t *\n\t * @example\n\t    <example>\n\t      <file name=\"index.html\">\n\t        <label>Click me to toggle: <input type=\"checkbox\" ng-model=\"checked\"></label><br/>\n\t        <button ng-model=\"button\" ng-disabled=\"checked\">Button</button>\n\t      </file>\n\t      <file name=\"protractor.js\" type=\"protractor\">\n\t        it('should toggle button', function() {\n\t          expect(element(by.css('button')).getAttribute('disabled')).toBeFalsy();\n\t          element(by.model('checked')).click();\n\t          expect(element(by.css('button')).getAttribute('disabled')).toBeTruthy();\n\t        });\n\t      </file>\n\t    </example>\n\t *\n\t * @element INPUT\n\t * @param {expression} ngDisabled If the {@link guide/expression expression} is truthy,\n\t *     then the `disabled` attribute will be set on the element\n\t */\n\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngChecked\n\t * @restrict A\n\t * @priority 100\n\t *\n\t * @description\n\t * Sets the `checked` attribute on the element, if the expression inside `ngChecked` is truthy.\n\t *\n\t * Note that this directive should not be used together with {@link ngModel `ngModel`},\n\t * as this can lead to unexpected behavior.\n\t *\n\t * ### Why do we need `ngChecked`?\n\t *\n\t * The HTML specification does not require browsers to preserve the values of boolean attributes\n\t * such as checked. (Their presence means true and their absence means false.)\n\t * If we put an Angular interpolation expression into such an attribute then the\n\t * binding information would be lost when the browser removes the attribute.\n\t * The `ngChecked` directive solves this problem for the `checked` attribute.\n\t * This complementary directive is not removed by the browser and so provides\n\t * a permanent reliable place to store the binding information.\n\t * @example\n\t    <example>\n\t      <file name=\"index.html\">\n\t        <label>Check me to check both: <input type=\"checkbox\" ng-model=\"master\"></label><br/>\n\t        <input id=\"checkSlave\" type=\"checkbox\" ng-checked=\"master\" aria-label=\"Slave input\">\n\t      </file>\n\t      <file name=\"protractor.js\" type=\"protractor\">\n\t        it('should check both checkBoxes', function() {\n\t          expect(element(by.id('checkSlave')).getAttribute('checked')).toBeFalsy();\n\t          element(by.model('master')).click();\n\t          expect(element(by.id('checkSlave')).getAttribute('checked')).toBeTruthy();\n\t        });\n\t      </file>\n\t    </example>\n\t *\n\t * @element INPUT\n\t * @param {expression} ngChecked If the {@link guide/expression expression} is truthy,\n\t *     then the `checked` attribute will be set on the element\n\t */\n\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngReadonly\n\t * @restrict A\n\t * @priority 100\n\t *\n\t * @description\n\t * The HTML specification does not require browsers to preserve the values of boolean attributes\n\t * such as readonly. (Their presence means true and their absence means false.)\n\t * If we put an Angular interpolation expression into such an attribute then the\n\t * binding information would be lost when the browser removes the attribute.\n\t * The `ngReadonly` directive solves this problem for the `readonly` attribute.\n\t * This complementary directive is not removed by the browser and so provides\n\t * a permanent reliable place to store the binding information.\n\t * @example\n\t    <example>\n\t      <file name=\"index.html\">\n\t        <label>Check me to make text readonly: <input type=\"checkbox\" ng-model=\"checked\"></label><br/>\n\t        <input type=\"text\" ng-readonly=\"checked\" value=\"I'm Angular\" aria-label=\"Readonly field\" />\n\t      </file>\n\t      <file name=\"protractor.js\" type=\"protractor\">\n\t        it('should toggle readonly attr', function() {\n\t          expect(element(by.css('[type=\"text\"]')).getAttribute('readonly')).toBeFalsy();\n\t          element(by.model('checked')).click();\n\t          expect(element(by.css('[type=\"text\"]')).getAttribute('readonly')).toBeTruthy();\n\t        });\n\t      </file>\n\t    </example>\n\t *\n\t * @element INPUT\n\t * @param {expression} ngReadonly If the {@link guide/expression expression} is truthy,\n\t *     then special attribute \"readonly\" will be set on the element\n\t */\n\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngSelected\n\t * @restrict A\n\t * @priority 100\n\t *\n\t * @description\n\t * The HTML specification does not require browsers to preserve the values of boolean attributes\n\t * such as selected. (Their presence means true and their absence means false.)\n\t * If we put an Angular interpolation expression into such an attribute then the\n\t * binding information would be lost when the browser removes the attribute.\n\t * The `ngSelected` directive solves this problem for the `selected` attribute.\n\t * This complementary directive is not removed by the browser and so provides\n\t * a permanent reliable place to store the binding information.\n\t *\n\t * @example\n\t    <example>\n\t      <file name=\"index.html\">\n\t        <label>Check me to select: <input type=\"checkbox\" ng-model=\"selected\"></label><br/>\n\t        <select aria-label=\"ngSelected demo\">\n\t          <option>Hello!</option>\n\t          <option id=\"greet\" ng-selected=\"selected\">Greetings!</option>\n\t        </select>\n\t      </file>\n\t      <file name=\"protractor.js\" type=\"protractor\">\n\t        it('should select Greetings!', function() {\n\t          expect(element(by.id('greet')).getAttribute('selected')).toBeFalsy();\n\t          element(by.model('selected')).click();\n\t          expect(element(by.id('greet')).getAttribute('selected')).toBeTruthy();\n\t        });\n\t      </file>\n\t    </example>\n\t *\n\t * @element OPTION\n\t * @param {expression} ngSelected If the {@link guide/expression expression} is truthy,\n\t *     then special attribute \"selected\" will be set on the element\n\t */\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngOpen\n\t * @restrict A\n\t * @priority 100\n\t *\n\t * @description\n\t * The HTML specification does not require browsers to preserve the values of boolean attributes\n\t * such as open. (Their presence means true and their absence means false.)\n\t * If we put an Angular interpolation expression into such an attribute then the\n\t * binding information would be lost when the browser removes the attribute.\n\t * The `ngOpen` directive solves this problem for the `open` attribute.\n\t * This complementary directive is not removed by the browser and so provides\n\t * a permanent reliable place to store the binding information.\n\t * @example\n\t     <example>\n\t       <file name=\"index.html\">\n\t         <label>Check me check multiple: <input type=\"checkbox\" ng-model=\"open\"></label><br/>\n\t         <details id=\"details\" ng-open=\"open\">\n\t            <summary>Show/Hide me</summary>\n\t         </details>\n\t       </file>\n\t       <file name=\"protractor.js\" type=\"protractor\">\n\t         it('should toggle open', function() {\n\t           expect(element(by.id('details')).getAttribute('open')).toBeFalsy();\n\t           element(by.model('open')).click();\n\t           expect(element(by.id('details')).getAttribute('open')).toBeTruthy();\n\t         });\n\t       </file>\n\t     </example>\n\t *\n\t * @element DETAILS\n\t * @param {expression} ngOpen If the {@link guide/expression expression} is truthy,\n\t *     then special attribute \"open\" will be set on the element\n\t */\n\n\tvar ngAttributeAliasDirectives = {};\n\n\t// boolean attrs are evaluated\n\tforEach(BOOLEAN_ATTR, function(propName, attrName) {\n\t  // binding to multiple is not supported\n\t  if (propName == \"multiple\") return;\n\n\t  function defaultLinkFn(scope, element, attr) {\n\t    scope.$watch(attr[normalized], function ngBooleanAttrWatchAction(value) {\n\t      attr.$set(attrName, !!value);\n\t    });\n\t  }\n\n\t  var normalized = directiveNormalize('ng-' + attrName);\n\t  var linkFn = defaultLinkFn;\n\n\t  if (propName === 'checked') {\n\t    linkFn = function(scope, element, attr) {\n\t      // ensuring ngChecked doesn't interfere with ngModel when both are set on the same input\n\t      if (attr.ngModel !== attr[normalized]) {\n\t        defaultLinkFn(scope, element, attr);\n\t      }\n\t    };\n\t  }\n\n\t  ngAttributeAliasDirectives[normalized] = function() {\n\t    return {\n\t      restrict: 'A',\n\t      priority: 100,\n\t      link: linkFn\n\t    };\n\t  };\n\t});\n\n\t// aliased input attrs are evaluated\n\tforEach(ALIASED_ATTR, function(htmlAttr, ngAttr) {\n\t  ngAttributeAliasDirectives[ngAttr] = function() {\n\t    return {\n\t      priority: 100,\n\t      link: function(scope, element, attr) {\n\t        //special case ngPattern when a literal regular expression value\n\t        //is used as the expression (this way we don't have to watch anything).\n\t        if (ngAttr === \"ngPattern\" && attr.ngPattern.charAt(0) == \"/\") {\n\t          var match = attr.ngPattern.match(REGEX_STRING_REGEXP);\n\t          if (match) {\n\t            attr.$set(\"ngPattern\", new RegExp(match[1], match[2]));\n\t            return;\n\t          }\n\t        }\n\n\t        scope.$watch(attr[ngAttr], function ngAttrAliasWatchAction(value) {\n\t          attr.$set(ngAttr, value);\n\t        });\n\t      }\n\t    };\n\t  };\n\t});\n\n\t// ng-src, ng-srcset, ng-href are interpolated\n\tforEach(['src', 'srcset', 'href'], function(attrName) {\n\t  var normalized = directiveNormalize('ng-' + attrName);\n\t  ngAttributeAliasDirectives[normalized] = function() {\n\t    return {\n\t      priority: 99, // it needs to run after the attributes are interpolated\n\t      link: function(scope, element, attr) {\n\t        var propName = attrName,\n\t            name = attrName;\n\n\t        if (attrName === 'href' &&\n\t            toString.call(element.prop('href')) === '[object SVGAnimatedString]') {\n\t          name = 'xlinkHref';\n\t          attr.$attr[name] = 'xlink:href';\n\t          propName = null;\n\t        }\n\n\t        attr.$observe(normalized, function(value) {\n\t          if (!value) {\n\t            if (attrName === 'href') {\n\t              attr.$set(name, null);\n\t            }\n\t            return;\n\t          }\n\n\t          attr.$set(name, value);\n\n\t          // on IE, if \"ng:src\" directive declaration is used and \"src\" attribute doesn't exist\n\t          // then calling element.setAttribute('src', 'foo') doesn't do anything, so we need\n\t          // to set the property as well to achieve the desired effect.\n\t          // we use attr[attrName] value since $set can sanitize the url.\n\t          if (msie && propName) element.prop(propName, attr[name]);\n\t        });\n\t      }\n\t    };\n\t  };\n\t});\n\n\t/* global -nullFormCtrl, -SUBMITTED_CLASS, addSetValidityMethod: true\n\t */\n\tvar nullFormCtrl = {\n\t  $addControl: noop,\n\t  $$renameControl: nullFormRenameControl,\n\t  $removeControl: noop,\n\t  $setValidity: noop,\n\t  $setDirty: noop,\n\t  $setPristine: noop,\n\t  $setSubmitted: noop\n\t},\n\tSUBMITTED_CLASS = 'ng-submitted';\n\n\tfunction nullFormRenameControl(control, name) {\n\t  control.$name = name;\n\t}\n\n\t/**\n\t * @ngdoc type\n\t * @name form.FormController\n\t *\n\t * @property {boolean} $pristine True if user has not interacted with the form yet.\n\t * @property {boolean} $dirty True if user has already interacted with the form.\n\t * @property {boolean} $valid True if all of the containing forms and controls are valid.\n\t * @property {boolean} $invalid True if at least one containing control or form is invalid.\n\t * @property {boolean} $pending True if at least one containing control or form is pending.\n\t * @property {boolean} $submitted True if user has submitted the form even if its invalid.\n\t *\n\t * @property {Object} $error Is an object hash, containing references to controls or\n\t *  forms with failing validators, where:\n\t *\n\t *  - keys are validation tokens (error names),\n\t *  - values are arrays of controls or forms that have a failing validator for given error name.\n\t *\n\t *  Built-in validation tokens:\n\t *\n\t *  - `email`\n\t *  - `max`\n\t *  - `maxlength`\n\t *  - `min`\n\t *  - `minlength`\n\t *  - `number`\n\t *  - `pattern`\n\t *  - `required`\n\t *  - `url`\n\t *  - `date`\n\t *  - `datetimelocal`\n\t *  - `time`\n\t *  - `week`\n\t *  - `month`\n\t *\n\t * @description\n\t * `FormController` keeps track of all its controls and nested forms as well as the state of them,\n\t * such as being valid/invalid or dirty/pristine.\n\t *\n\t * Each {@link ng.directive:form form} directive creates an instance\n\t * of `FormController`.\n\t *\n\t */\n\t//asks for $scope to fool the BC controller module\n\tFormController.$inject = ['$element', '$attrs', '$scope', '$animate', '$interpolate'];\n\tfunction FormController(element, attrs, $scope, $animate, $interpolate) {\n\t  var form = this,\n\t      controls = [];\n\n\t  // init state\n\t  form.$error = {};\n\t  form.$$success = {};\n\t  form.$pending = undefined;\n\t  form.$name = $interpolate(attrs.name || attrs.ngForm || '')($scope);\n\t  form.$dirty = false;\n\t  form.$pristine = true;\n\t  form.$valid = true;\n\t  form.$invalid = false;\n\t  form.$submitted = false;\n\t  form.$$parentForm = nullFormCtrl;\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name form.FormController#$rollbackViewValue\n\t   *\n\t   * @description\n\t   * Rollback all form controls pending updates to the `$modelValue`.\n\t   *\n\t   * Updates may be pending by a debounced event or because the input is waiting for a some future\n\t   * event defined in `ng-model-options`. This method is typically needed by the reset button of\n\t   * a form that uses `ng-model-options` to pend updates.\n\t   */\n\t  form.$rollbackViewValue = function() {\n\t    forEach(controls, function(control) {\n\t      control.$rollbackViewValue();\n\t    });\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name form.FormController#$commitViewValue\n\t   *\n\t   * @description\n\t   * Commit all form controls pending updates to the `$modelValue`.\n\t   *\n\t   * Updates may be pending by a debounced event or because the input is waiting for a some future\n\t   * event defined in `ng-model-options`. This method is rarely needed as `NgModelController`\n\t   * usually handles calling this in response to input events.\n\t   */\n\t  form.$commitViewValue = function() {\n\t    forEach(controls, function(control) {\n\t      control.$commitViewValue();\n\t    });\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name form.FormController#$addControl\n\t   * @param {object} control control object, either a {@link form.FormController} or an\n\t   * {@link ngModel.NgModelController}\n\t   *\n\t   * @description\n\t   * Register a control with the form. Input elements using ngModelController do this automatically\n\t   * when they are linked.\n\t   *\n\t   * Note that the current state of the control will not be reflected on the new parent form. This\n\t   * is not an issue with normal use, as freshly compiled and linked controls are in a `$pristine`\n\t   * state.\n\t   *\n\t   * However, if the method is used programmatically, for example by adding dynamically created controls,\n\t   * or controls that have been previously removed without destroying their corresponding DOM element,\n\t   * it's the developers responsiblity to make sure the current state propagates to the parent form.\n\t   *\n\t   * For example, if an input control is added that is already `$dirty` and has `$error` properties,\n\t   * calling `$setDirty()` and `$validate()` afterwards will propagate the state to the parent form.\n\t   */\n\t  form.$addControl = function(control) {\n\t    // Breaking change - before, inputs whose name was \"hasOwnProperty\" were quietly ignored\n\t    // and not added to the scope.  Now we throw an error.\n\t    assertNotHasOwnProperty(control.$name, 'input');\n\t    controls.push(control);\n\n\t    if (control.$name) {\n\t      form[control.$name] = control;\n\t    }\n\n\t    control.$$parentForm = form;\n\t  };\n\n\t  // Private API: rename a form control\n\t  form.$$renameControl = function(control, newName) {\n\t    var oldName = control.$name;\n\n\t    if (form[oldName] === control) {\n\t      delete form[oldName];\n\t    }\n\t    form[newName] = control;\n\t    control.$name = newName;\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name form.FormController#$removeControl\n\t   * @param {object} control control object, either a {@link form.FormController} or an\n\t   * {@link ngModel.NgModelController}\n\t   *\n\t   * @description\n\t   * Deregister a control from the form.\n\t   *\n\t   * Input elements using ngModelController do this automatically when they are destroyed.\n\t   *\n\t   * Note that only the removed control's validation state (`$errors`etc.) will be removed from the\n\t   * form. `$dirty`, `$submitted` states will not be changed, because the expected behavior can be\n\t   * different from case to case. For example, removing the only `$dirty` control from a form may or\n\t   * may not mean that the form is still `$dirty`.\n\t   */\n\t  form.$removeControl = function(control) {\n\t    if (control.$name && form[control.$name] === control) {\n\t      delete form[control.$name];\n\t    }\n\t    forEach(form.$pending, function(value, name) {\n\t      form.$setValidity(name, null, control);\n\t    });\n\t    forEach(form.$error, function(value, name) {\n\t      form.$setValidity(name, null, control);\n\t    });\n\t    forEach(form.$$success, function(value, name) {\n\t      form.$setValidity(name, null, control);\n\t    });\n\n\t    arrayRemove(controls, control);\n\t    control.$$parentForm = nullFormCtrl;\n\t  };\n\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name form.FormController#$setValidity\n\t   *\n\t   * @description\n\t   * Sets the validity of a form control.\n\t   *\n\t   * This method will also propagate to parent forms.\n\t   */\n\t  addSetValidityMethod({\n\t    ctrl: this,\n\t    $element: element,\n\t    set: function(object, property, controller) {\n\t      var list = object[property];\n\t      if (!list) {\n\t        object[property] = [controller];\n\t      } else {\n\t        var index = list.indexOf(controller);\n\t        if (index === -1) {\n\t          list.push(controller);\n\t        }\n\t      }\n\t    },\n\t    unset: function(object, property, controller) {\n\t      var list = object[property];\n\t      if (!list) {\n\t        return;\n\t      }\n\t      arrayRemove(list, controller);\n\t      if (list.length === 0) {\n\t        delete object[property];\n\t      }\n\t    },\n\t    $animate: $animate\n\t  });\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name form.FormController#$setDirty\n\t   *\n\t   * @description\n\t   * Sets the form to a dirty state.\n\t   *\n\t   * This method can be called to add the 'ng-dirty' class and set the form to a dirty\n\t   * state (ng-dirty class). This method will also propagate to parent forms.\n\t   */\n\t  form.$setDirty = function() {\n\t    $animate.removeClass(element, PRISTINE_CLASS);\n\t    $animate.addClass(element, DIRTY_CLASS);\n\t    form.$dirty = true;\n\t    form.$pristine = false;\n\t    form.$$parentForm.$setDirty();\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name form.FormController#$setPristine\n\t   *\n\t   * @description\n\t   * Sets the form to its pristine state.\n\t   *\n\t   * This method can be called to remove the 'ng-dirty' class and set the form to its pristine\n\t   * state (ng-pristine class). This method will also propagate to all the controls contained\n\t   * in this form.\n\t   *\n\t   * Setting a form back to a pristine state is often useful when we want to 'reuse' a form after\n\t   * saving or resetting it.\n\t   */\n\t  form.$setPristine = function() {\n\t    $animate.setClass(element, PRISTINE_CLASS, DIRTY_CLASS + ' ' + SUBMITTED_CLASS);\n\t    form.$dirty = false;\n\t    form.$pristine = true;\n\t    form.$submitted = false;\n\t    forEach(controls, function(control) {\n\t      control.$setPristine();\n\t    });\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name form.FormController#$setUntouched\n\t   *\n\t   * @description\n\t   * Sets the form to its untouched state.\n\t   *\n\t   * This method can be called to remove the 'ng-touched' class and set the form controls to their\n\t   * untouched state (ng-untouched class).\n\t   *\n\t   * Setting a form controls back to their untouched state is often useful when setting the form\n\t   * back to its pristine state.\n\t   */\n\t  form.$setUntouched = function() {\n\t    forEach(controls, function(control) {\n\t      control.$setUntouched();\n\t    });\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name form.FormController#$setSubmitted\n\t   *\n\t   * @description\n\t   * Sets the form to its submitted state.\n\t   */\n\t  form.$setSubmitted = function() {\n\t    $animate.addClass(element, SUBMITTED_CLASS);\n\t    form.$submitted = true;\n\t    form.$$parentForm.$setSubmitted();\n\t  };\n\t}\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngForm\n\t * @restrict EAC\n\t *\n\t * @description\n\t * Nestable alias of {@link ng.directive:form `form`} directive. HTML\n\t * does not allow nesting of form elements. It is useful to nest forms, for example if the validity of a\n\t * sub-group of controls needs to be determined.\n\t *\n\t * Note: the purpose of `ngForm` is to group controls,\n\t * but not to be a replacement for the `<form>` tag with all of its capabilities\n\t * (e.g. posting to the server, ...).\n\t *\n\t * @param {string=} ngForm|name Name of the form. If specified, the form controller will be published into\n\t *                       related scope, under this name.\n\t *\n\t */\n\n\t /**\n\t * @ngdoc directive\n\t * @name form\n\t * @restrict E\n\t *\n\t * @description\n\t * Directive that instantiates\n\t * {@link form.FormController FormController}.\n\t *\n\t * If the `name` attribute is specified, the form controller is published onto the current scope under\n\t * this name.\n\t *\n\t * # Alias: {@link ng.directive:ngForm `ngForm`}\n\t *\n\t * In Angular, forms can be nested. This means that the outer form is valid when all of the child\n\t * forms are valid as well. However, browsers do not allow nesting of `<form>` elements, so\n\t * Angular provides the {@link ng.directive:ngForm `ngForm`} directive which behaves identically to\n\t * `<form>` but can be nested.  This allows you to have nested forms, which is very useful when\n\t * using Angular validation directives in forms that are dynamically generated using the\n\t * {@link ng.directive:ngRepeat `ngRepeat`} directive. Since you cannot dynamically generate the `name`\n\t * attribute of input elements using interpolation, you have to wrap each set of repeated inputs in an\n\t * `ngForm` directive and nest these in an outer `form` element.\n\t *\n\t *\n\t * # CSS classes\n\t *  - `ng-valid` is set if the form is valid.\n\t *  - `ng-invalid` is set if the form is invalid.\n\t *  - `ng-pending` is set if the form is pending.\n\t *  - `ng-pristine` is set if the form is pristine.\n\t *  - `ng-dirty` is set if the form is dirty.\n\t *  - `ng-submitted` is set if the form was submitted.\n\t *\n\t * Keep in mind that ngAnimate can detect each of these classes when added and removed.\n\t *\n\t *\n\t * # Submitting a form and preventing the default action\n\t *\n\t * Since the role of forms in client-side Angular applications is different than in classical\n\t * roundtrip apps, it is desirable for the browser not to translate the form submission into a full\n\t * page reload that sends the data to the server. Instead some javascript logic should be triggered\n\t * to handle the form submission in an application-specific way.\n\t *\n\t * For this reason, Angular prevents the default action (form submission to the server) unless the\n\t * `<form>` element has an `action` attribute specified.\n\t *\n\t * You can use one of the following two ways to specify what javascript method should be called when\n\t * a form is submitted:\n\t *\n\t * - {@link ng.directive:ngSubmit ngSubmit} directive on the form element\n\t * - {@link ng.directive:ngClick ngClick} directive on the first\n\t  *  button or input field of type submit (input[type=submit])\n\t *\n\t * To prevent double execution of the handler, use only one of the {@link ng.directive:ngSubmit ngSubmit}\n\t * or {@link ng.directive:ngClick ngClick} directives.\n\t * This is because of the following form submission rules in the HTML specification:\n\t *\n\t * - If a form has only one input field then hitting enter in this field triggers form submit\n\t * (`ngSubmit`)\n\t * - if a form has 2+ input fields and no buttons or input[type=submit] then hitting enter\n\t * doesn't trigger submit\n\t * - if a form has one or more input fields and one or more buttons or input[type=submit] then\n\t * hitting enter in any of the input fields will trigger the click handler on the *first* button or\n\t * input[type=submit] (`ngClick`) *and* a submit handler on the enclosing form (`ngSubmit`)\n\t *\n\t * Any pending `ngModelOptions` changes will take place immediately when an enclosing form is\n\t * submitted. Note that `ngClick` events will occur before the model is updated. Use `ngSubmit`\n\t * to have access to the updated model.\n\t *\n\t * ## Animation Hooks\n\t *\n\t * Animations in ngForm are triggered when any of the associated CSS classes are added and removed.\n\t * These classes are: `.ng-pristine`, `.ng-dirty`, `.ng-invalid` and `.ng-valid` as well as any\n\t * other validations that are performed within the form. Animations in ngForm are similar to how\n\t * they work in ngClass and animations can be hooked into using CSS transitions, keyframes as well\n\t * as JS animations.\n\t *\n\t * The following example shows a simple way to utilize CSS transitions to style a form element\n\t * that has been rendered as invalid after it has been validated:\n\t *\n\t * <pre>\n\t * //be sure to include ngAnimate as a module to hook into more\n\t * //advanced animations\n\t * .my-form {\n\t *   transition:0.5s linear all;\n\t *   background: white;\n\t * }\n\t * .my-form.ng-invalid {\n\t *   background: red;\n\t *   color:white;\n\t * }\n\t * </pre>\n\t *\n\t * @example\n\t    <example deps=\"angular-animate.js\" animations=\"true\" fixBase=\"true\" module=\"formExample\">\n\t      <file name=\"index.html\">\n\t       <script>\n\t         angular.module('formExample', [])\n\t           .controller('FormController', ['$scope', function($scope) {\n\t             $scope.userType = 'guest';\n\t           }]);\n\t       </script>\n\t       <style>\n\t        .my-form {\n\t          transition:all linear 0.5s;\n\t          background: transparent;\n\t        }\n\t        .my-form.ng-invalid {\n\t          background: red;\n\t        }\n\t       </style>\n\t       <form name=\"myForm\" ng-controller=\"FormController\" class=\"my-form\">\n\t         userType: <input name=\"input\" ng-model=\"userType\" required>\n\t         <span class=\"error\" ng-show=\"myForm.input.$error.required\">Required!</span><br>\n\t         <code>userType = {{userType}}</code><br>\n\t         <code>myForm.input.$valid = {{myForm.input.$valid}}</code><br>\n\t         <code>myForm.input.$error = {{myForm.input.$error}}</code><br>\n\t         <code>myForm.$valid = {{myForm.$valid}}</code><br>\n\t         <code>myForm.$error.required = {{!!myForm.$error.required}}</code><br>\n\t        </form>\n\t      </file>\n\t      <file name=\"protractor.js\" type=\"protractor\">\n\t        it('should initialize to model', function() {\n\t          var userType = element(by.binding('userType'));\n\t          var valid = element(by.binding('myForm.input.$valid'));\n\n\t          expect(userType.getText()).toContain('guest');\n\t          expect(valid.getText()).toContain('true');\n\t        });\n\n\t        it('should be invalid if empty', function() {\n\t          var userType = element(by.binding('userType'));\n\t          var valid = element(by.binding('myForm.input.$valid'));\n\t          var userInput = element(by.model('userType'));\n\n\t          userInput.clear();\n\t          userInput.sendKeys('');\n\n\t          expect(userType.getText()).toEqual('userType =');\n\t          expect(valid.getText()).toContain('false');\n\t        });\n\t      </file>\n\t    </example>\n\t *\n\t * @param {string=} name Name of the form. If specified, the form controller will be published into\n\t *                       related scope, under this name.\n\t */\n\tvar formDirectiveFactory = function(isNgForm) {\n\t  return ['$timeout', '$parse', function($timeout, $parse) {\n\t    var formDirective = {\n\t      name: 'form',\n\t      restrict: isNgForm ? 'EAC' : 'E',\n\t      require: ['form', '^^?form'], //first is the form's own ctrl, second is an optional parent form\n\t      controller: FormController,\n\t      compile: function ngFormCompile(formElement, attr) {\n\t        // Setup initial state of the control\n\t        formElement.addClass(PRISTINE_CLASS).addClass(VALID_CLASS);\n\n\t        var nameAttr = attr.name ? 'name' : (isNgForm && attr.ngForm ? 'ngForm' : false);\n\n\t        return {\n\t          pre: function ngFormPreLink(scope, formElement, attr, ctrls) {\n\t            var controller = ctrls[0];\n\n\t            // if `action` attr is not present on the form, prevent the default action (submission)\n\t            if (!('action' in attr)) {\n\t              // we can't use jq events because if a form is destroyed during submission the default\n\t              // action is not prevented. see #1238\n\t              //\n\t              // IE 9 is not affected because it doesn't fire a submit event and try to do a full\n\t              // page reload if the form was destroyed by submission of the form via a click handler\n\t              // on a button in the form. Looks like an IE9 specific bug.\n\t              var handleFormSubmission = function(event) {\n\t                scope.$apply(function() {\n\t                  controller.$commitViewValue();\n\t                  controller.$setSubmitted();\n\t                });\n\n\t                event.preventDefault();\n\t              };\n\n\t              addEventListenerFn(formElement[0], 'submit', handleFormSubmission);\n\n\t              // unregister the preventDefault listener so that we don't not leak memory but in a\n\t              // way that will achieve the prevention of the default action.\n\t              formElement.on('$destroy', function() {\n\t                $timeout(function() {\n\t                  removeEventListenerFn(formElement[0], 'submit', handleFormSubmission);\n\t                }, 0, false);\n\t              });\n\t            }\n\n\t            var parentFormCtrl = ctrls[1] || controller.$$parentForm;\n\t            parentFormCtrl.$addControl(controller);\n\n\t            var setter = nameAttr ? getSetter(controller.$name) : noop;\n\n\t            if (nameAttr) {\n\t              setter(scope, controller);\n\t              attr.$observe(nameAttr, function(newValue) {\n\t                if (controller.$name === newValue) return;\n\t                setter(scope, undefined);\n\t                controller.$$parentForm.$$renameControl(controller, newValue);\n\t                setter = getSetter(controller.$name);\n\t                setter(scope, controller);\n\t              });\n\t            }\n\t            formElement.on('$destroy', function() {\n\t              controller.$$parentForm.$removeControl(controller);\n\t              setter(scope, undefined);\n\t              extend(controller, nullFormCtrl); //stop propagating child destruction handlers upwards\n\t            });\n\t          }\n\t        };\n\t      }\n\t    };\n\n\t    return formDirective;\n\n\t    function getSetter(expression) {\n\t      if (expression === '') {\n\t        //create an assignable expression, so forms with an empty name can be renamed later\n\t        return $parse('this[\"\"]').assign;\n\t      }\n\t      return $parse(expression).assign || noop;\n\t    }\n\t  }];\n\t};\n\n\tvar formDirective = formDirectiveFactory();\n\tvar ngFormDirective = formDirectiveFactory(true);\n\n\t/* global VALID_CLASS: false,\n\t  INVALID_CLASS: false,\n\t  PRISTINE_CLASS: false,\n\t  DIRTY_CLASS: false,\n\t  UNTOUCHED_CLASS: false,\n\t  TOUCHED_CLASS: false,\n\t  ngModelMinErr: false,\n\t*/\n\n\t// Regex code is obtained from SO: https://stackoverflow.com/questions/3143070/javascript-regex-iso-datetime#answer-3143231\n\tvar ISO_DATE_REGEXP = /\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d:[0-5]\\d\\.\\d+([+-][0-2]\\d:[0-5]\\d|Z)/;\n\t// See valid URLs in RFC3987 (http://tools.ietf.org/html/rfc3987)\n\tvar URL_REGEXP = /^[A-Za-z][A-Za-z\\d.+-]*:\\/*(?:\\w+(?::\\w+)?@)?[^\\s/]+(?::\\d+)?(?:\\/[\\w#!:.?+=&%@\\-/]*)?$/;\n\tvar EMAIL_REGEXP = /^[a-z0-9!#$%&'*+\\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i;\n\tvar NUMBER_REGEXP = /^\\s*(\\-|\\+)?(\\d+|(\\d*(\\.\\d*)))([eE][+-]?\\d+)?\\s*$/;\n\tvar DATE_REGEXP = /^(\\d{4})-(\\d{2})-(\\d{2})$/;\n\tvar DATETIMELOCAL_REGEXP = /^(\\d{4})-(\\d\\d)-(\\d\\d)T(\\d\\d):(\\d\\d)(?::(\\d\\d)(\\.\\d{1,3})?)?$/;\n\tvar WEEK_REGEXP = /^(\\d{4})-W(\\d\\d)$/;\n\tvar MONTH_REGEXP = /^(\\d{4})-(\\d\\d)$/;\n\tvar TIME_REGEXP = /^(\\d\\d):(\\d\\d)(?::(\\d\\d)(\\.\\d{1,3})?)?$/;\n\n\tvar inputType = {\n\n\t  /**\n\t   * @ngdoc input\n\t   * @name input[text]\n\t   *\n\t   * @description\n\t   * Standard HTML text input with angular data binding, inherited by most of the `input` elements.\n\t   *\n\t   *\n\t   * @param {string} ngModel Assignable angular expression to data-bind to.\n\t   * @param {string=} name Property name of the form under which the control is published.\n\t   * @param {string=} required Adds `required` validation error key if the value is not entered.\n\t   * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to\n\t   *    the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of\n\t   *    `required` when you want to data-bind to the `required` attribute.\n\t   * @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than\n\t   *    minlength.\n\t   * @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than\n\t   *    maxlength. Setting the attribute to a negative or non-numeric value, allows view values of\n\t   *    any length.\n\t   * @param {string=} pattern Similar to `ngPattern` except that the attribute value is the actual string\n\t   *    that contains the regular expression body that will be converted to a regular expression\n\t   *    as in the ngPattern directive.\n\t   * @param {string=} ngPattern Sets `pattern` validation error key if the ngModel value does not match\n\t   *    a RegExp found by evaluating the Angular expression given in the attribute value.\n\t   *    If the expression evaluates to a RegExp object, then this is used directly.\n\t   *    If the expression evaluates to a string, then it will be converted to a RegExp\n\t   *    after wrapping it in `^` and `$` characters. For instance, `\"abc\"` will be converted to\n\t   *    `new RegExp('^abc$')`.<br />\n\t   *    **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to\n\t   *    start at the index of the last search's match, thus not taking the whole input value into\n\t   *    account.\n\t   * @param {string=} ngChange Angular expression to be executed when input changes due to user\n\t   *    interaction with the input element.\n\t   * @param {boolean=} [ngTrim=true] If set to false Angular will not automatically trim the input.\n\t   *    This parameter is ignored for input[type=password] controls, which will never trim the\n\t   *    input.\n\t   *\n\t   * @example\n\t      <example name=\"text-input-directive\" module=\"textInputExample\">\n\t        <file name=\"index.html\">\n\t         <script>\n\t           angular.module('textInputExample', [])\n\t             .controller('ExampleController', ['$scope', function($scope) {\n\t               $scope.example = {\n\t                 text: 'guest',\n\t                 word: /^\\s*\\w*\\s*$/\n\t               };\n\t             }]);\n\t         </script>\n\t         <form name=\"myForm\" ng-controller=\"ExampleController\">\n\t           <label>Single word:\n\t             <input type=\"text\" name=\"input\" ng-model=\"example.text\"\n\t                    ng-pattern=\"example.word\" required ng-trim=\"false\">\n\t           </label>\n\t           <div role=\"alert\">\n\t             <span class=\"error\" ng-show=\"myForm.input.$error.required\">\n\t               Required!</span>\n\t             <span class=\"error\" ng-show=\"myForm.input.$error.pattern\">\n\t               Single word only!</span>\n\t           </div>\n\t           <tt>text = {{example.text}}</tt><br/>\n\t           <tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>\n\t           <tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>\n\t           <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>\n\t           <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>\n\t          </form>\n\t        </file>\n\t        <file name=\"protractor.js\" type=\"protractor\">\n\t          var text = element(by.binding('example.text'));\n\t          var valid = element(by.binding('myForm.input.$valid'));\n\t          var input = element(by.model('example.text'));\n\n\t          it('should initialize to model', function() {\n\t            expect(text.getText()).toContain('guest');\n\t            expect(valid.getText()).toContain('true');\n\t          });\n\n\t          it('should be invalid if empty', function() {\n\t            input.clear();\n\t            input.sendKeys('');\n\n\t            expect(text.getText()).toEqual('text =');\n\t            expect(valid.getText()).toContain('false');\n\t          });\n\n\t          it('should be invalid if multi word', function() {\n\t            input.clear();\n\t            input.sendKeys('hello world');\n\n\t            expect(valid.getText()).toContain('false');\n\t          });\n\t        </file>\n\t      </example>\n\t   */\n\t  'text': textInputType,\n\n\t    /**\n\t     * @ngdoc input\n\t     * @name input[date]\n\t     *\n\t     * @description\n\t     * Input with date validation and transformation. In browsers that do not yet support\n\t     * the HTML5 date input, a text element will be used. In that case, text must be entered in a valid ISO-8601\n\t     * date format (yyyy-MM-dd), for example: `2009-01-06`. Since many\n\t     * modern browsers do not yet support this input type, it is important to provide cues to users on the\n\t     * expected input format via a placeholder or label.\n\t     *\n\t     * The model must always be a Date object, otherwise Angular will throw an error.\n\t     * Invalid `Date` objects (dates whose `getTime()` is `NaN`) will be rendered as an empty string.\n\t     *\n\t     * The timezone to be used to read/write the `Date` instance in the model can be defined using\n\t     * {@link ng.directive:ngModelOptions ngModelOptions}. By default, this is the timezone of the browser.\n\t     *\n\t     * @param {string} ngModel Assignable angular expression to data-bind to.\n\t     * @param {string=} name Property name of the form under which the control is published.\n\t     * @param {string=} min Sets the `min` validation error key if the value entered is less than `min`. This must be a\n\t     *   valid ISO date string (yyyy-MM-dd). You can also use interpolation inside this attribute\n\t     *   (e.g. `min=\"{{minDate | date:'yyyy-MM-dd'}}\"`). Note that `min` will also add native HTML5\n\t     *   constraint validation.\n\t     * @param {string=} max Sets the `max` validation error key if the value entered is greater than `max`. This must be\n\t     *   a valid ISO date string (yyyy-MM-dd). You can also use interpolation inside this attribute\n\t     *   (e.g. `max=\"{{maxDate | date:'yyyy-MM-dd'}}\"`). Note that `max` will also add native HTML5\n\t     *   constraint validation.\n\t     * @param {(date|string)=} ngMin Sets the `min` validation constraint to the Date / ISO date string\n\t     *   the `ngMin` expression evaluates to. Note that it does not set the `min` attribute.\n\t     * @param {(date|string)=} ngMax Sets the `max` validation constraint to the Date / ISO date string\n\t     *   the `ngMax` expression evaluates to. Note that it does not set the `max` attribute.\n\t     * @param {string=} required Sets `required` validation error key if the value is not entered.\n\t     * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to\n\t     *    the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of\n\t     *    `required` when you want to data-bind to the `required` attribute.\n\t     * @param {string=} ngChange Angular expression to be executed when input changes due to user\n\t     *    interaction with the input element.\n\t     *\n\t     * @example\n\t     <example name=\"date-input-directive\" module=\"dateInputExample\">\n\t     <file name=\"index.html\">\n\t       <script>\n\t          angular.module('dateInputExample', [])\n\t            .controller('DateController', ['$scope', function($scope) {\n\t              $scope.example = {\n\t                value: new Date(2013, 9, 22)\n\t              };\n\t            }]);\n\t       </script>\n\t       <form name=\"myForm\" ng-controller=\"DateController as dateCtrl\">\n\t          <label for=\"exampleInput\">Pick a date in 2013:</label>\n\t          <input type=\"date\" id=\"exampleInput\" name=\"input\" ng-model=\"example.value\"\n\t              placeholder=\"yyyy-MM-dd\" min=\"2013-01-01\" max=\"2013-12-31\" required />\n\t          <div role=\"alert\">\n\t            <span class=\"error\" ng-show=\"myForm.input.$error.required\">\n\t                Required!</span>\n\t            <span class=\"error\" ng-show=\"myForm.input.$error.date\">\n\t                Not a valid date!</span>\n\t           </div>\n\t           <tt>value = {{example.value | date: \"yyyy-MM-dd\"}}</tt><br/>\n\t           <tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>\n\t           <tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>\n\t           <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>\n\t           <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>\n\t       </form>\n\t     </file>\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t        var value = element(by.binding('example.value | date: \"yyyy-MM-dd\"'));\n\t        var valid = element(by.binding('myForm.input.$valid'));\n\t        var input = element(by.model('example.value'));\n\n\t        // currently protractor/webdriver does not support\n\t        // sending keys to all known HTML5 input controls\n\t        // for various browsers (see https://github.com/angular/protractor/issues/562).\n\t        function setInput(val) {\n\t          // set the value of the element and force validation.\n\t          var scr = \"var ipt = document.getElementById('exampleInput'); \" +\n\t          \"ipt.value = '\" + val + \"';\" +\n\t          \"angular.element(ipt).scope().$apply(function(s) { s.myForm[ipt.name].$setViewValue('\" + val + \"'); });\";\n\t          browser.executeScript(scr);\n\t        }\n\n\t        it('should initialize to model', function() {\n\t          expect(value.getText()).toContain('2013-10-22');\n\t          expect(valid.getText()).toContain('myForm.input.$valid = true');\n\t        });\n\n\t        it('should be invalid if empty', function() {\n\t          setInput('');\n\t          expect(value.getText()).toEqual('value =');\n\t          expect(valid.getText()).toContain('myForm.input.$valid = false');\n\t        });\n\n\t        it('should be invalid if over max', function() {\n\t          setInput('2015-01-01');\n\t          expect(value.getText()).toContain('');\n\t          expect(valid.getText()).toContain('myForm.input.$valid = false');\n\t        });\n\t     </file>\n\t     </example>\n\t     */\n\t  'date': createDateInputType('date', DATE_REGEXP,\n\t         createDateParser(DATE_REGEXP, ['yyyy', 'MM', 'dd']),\n\t         'yyyy-MM-dd'),\n\n\t   /**\n\t    * @ngdoc input\n\t    * @name input[datetime-local]\n\t    *\n\t    * @description\n\t    * Input with datetime validation and transformation. In browsers that do not yet support\n\t    * the HTML5 date input, a text element will be used. In that case, the text must be entered in a valid ISO-8601\n\t    * local datetime format (yyyy-MM-ddTHH:mm:ss), for example: `2010-12-28T14:57:00`.\n\t    *\n\t    * The model must always be a Date object, otherwise Angular will throw an error.\n\t    * Invalid `Date` objects (dates whose `getTime()` is `NaN`) will be rendered as an empty string.\n\t    *\n\t    * The timezone to be used to read/write the `Date` instance in the model can be defined using\n\t    * {@link ng.directive:ngModelOptions ngModelOptions}. By default, this is the timezone of the browser.\n\t    *\n\t    * @param {string} ngModel Assignable angular expression to data-bind to.\n\t    * @param {string=} name Property name of the form under which the control is published.\n\t    * @param {string=} min Sets the `min` validation error key if the value entered is less than `min`.\n\t    *   This must be a valid ISO datetime format (yyyy-MM-ddTHH:mm:ss). You can also use interpolation\n\t    *   inside this attribute (e.g. `min=\"{{minDatetimeLocal | date:'yyyy-MM-ddTHH:mm:ss'}}\"`).\n\t    *   Note that `min` will also add native HTML5 constraint validation.\n\t    * @param {string=} max Sets the `max` validation error key if the value entered is greater than `max`.\n\t    *   This must be a valid ISO datetime format (yyyy-MM-ddTHH:mm:ss). You can also use interpolation\n\t    *   inside this attribute (e.g. `max=\"{{maxDatetimeLocal | date:'yyyy-MM-ddTHH:mm:ss'}}\"`).\n\t    *   Note that `max` will also add native HTML5 constraint validation.\n\t    * @param {(date|string)=} ngMin Sets the `min` validation error key to the Date / ISO datetime string\n\t    *   the `ngMin` expression evaluates to. Note that it does not set the `min` attribute.\n\t    * @param {(date|string)=} ngMax Sets the `max` validation error key to the Date / ISO datetime string\n\t    *   the `ngMax` expression evaluates to. Note that it does not set the `max` attribute.\n\t    * @param {string=} required Sets `required` validation error key if the value is not entered.\n\t    * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to\n\t    *    the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of\n\t    *    `required` when you want to data-bind to the `required` attribute.\n\t    * @param {string=} ngChange Angular expression to be executed when input changes due to user\n\t    *    interaction with the input element.\n\t    *\n\t    * @example\n\t    <example name=\"datetimelocal-input-directive\" module=\"dateExample\">\n\t    <file name=\"index.html\">\n\t      <script>\n\t        angular.module('dateExample', [])\n\t          .controller('DateController', ['$scope', function($scope) {\n\t            $scope.example = {\n\t              value: new Date(2010, 11, 28, 14, 57)\n\t            };\n\t          }]);\n\t      </script>\n\t      <form name=\"myForm\" ng-controller=\"DateController as dateCtrl\">\n\t        <label for=\"exampleInput\">Pick a date between in 2013:</label>\n\t        <input type=\"datetime-local\" id=\"exampleInput\" name=\"input\" ng-model=\"example.value\"\n\t            placeholder=\"yyyy-MM-ddTHH:mm:ss\" min=\"2001-01-01T00:00:00\" max=\"2013-12-31T00:00:00\" required />\n\t        <div role=\"alert\">\n\t          <span class=\"error\" ng-show=\"myForm.input.$error.required\">\n\t              Required!</span>\n\t          <span class=\"error\" ng-show=\"myForm.input.$error.datetimelocal\">\n\t              Not a valid date!</span>\n\t        </div>\n\t        <tt>value = {{example.value | date: \"yyyy-MM-ddTHH:mm:ss\"}}</tt><br/>\n\t        <tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>\n\t        <tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>\n\t        <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>\n\t        <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>\n\t      </form>\n\t    </file>\n\t    <file name=\"protractor.js\" type=\"protractor\">\n\t      var value = element(by.binding('example.value | date: \"yyyy-MM-ddTHH:mm:ss\"'));\n\t      var valid = element(by.binding('myForm.input.$valid'));\n\t      var input = element(by.model('example.value'));\n\n\t      // currently protractor/webdriver does not support\n\t      // sending keys to all known HTML5 input controls\n\t      // for various browsers (https://github.com/angular/protractor/issues/562).\n\t      function setInput(val) {\n\t        // set the value of the element and force validation.\n\t        var scr = \"var ipt = document.getElementById('exampleInput'); \" +\n\t        \"ipt.value = '\" + val + \"';\" +\n\t        \"angular.element(ipt).scope().$apply(function(s) { s.myForm[ipt.name].$setViewValue('\" + val + \"'); });\";\n\t        browser.executeScript(scr);\n\t      }\n\n\t      it('should initialize to model', function() {\n\t        expect(value.getText()).toContain('2010-12-28T14:57:00');\n\t        expect(valid.getText()).toContain('myForm.input.$valid = true');\n\t      });\n\n\t      it('should be invalid if empty', function() {\n\t        setInput('');\n\t        expect(value.getText()).toEqual('value =');\n\t        expect(valid.getText()).toContain('myForm.input.$valid = false');\n\t      });\n\n\t      it('should be invalid if over max', function() {\n\t        setInput('2015-01-01T23:59:00');\n\t        expect(value.getText()).toContain('');\n\t        expect(valid.getText()).toContain('myForm.input.$valid = false');\n\t      });\n\t    </file>\n\t    </example>\n\t    */\n\t  'datetime-local': createDateInputType('datetimelocal', DATETIMELOCAL_REGEXP,\n\t      createDateParser(DATETIMELOCAL_REGEXP, ['yyyy', 'MM', 'dd', 'HH', 'mm', 'ss', 'sss']),\n\t      'yyyy-MM-ddTHH:mm:ss.sss'),\n\n\t  /**\n\t   * @ngdoc input\n\t   * @name input[time]\n\t   *\n\t   * @description\n\t   * Input with time validation and transformation. In browsers that do not yet support\n\t   * the HTML5 date input, a text element will be used. In that case, the text must be entered in a valid ISO-8601\n\t   * local time format (HH:mm:ss), for example: `14:57:00`. Model must be a Date object. This binding will always output a\n\t   * Date object to the model of January 1, 1970, or local date `new Date(1970, 0, 1, HH, mm, ss)`.\n\t   *\n\t   * The model must always be a Date object, otherwise Angular will throw an error.\n\t   * Invalid `Date` objects (dates whose `getTime()` is `NaN`) will be rendered as an empty string.\n\t   *\n\t   * The timezone to be used to read/write the `Date` instance in the model can be defined using\n\t   * {@link ng.directive:ngModelOptions ngModelOptions}. By default, this is the timezone of the browser.\n\t   *\n\t   * @param {string} ngModel Assignable angular expression to data-bind to.\n\t   * @param {string=} name Property name of the form under which the control is published.\n\t   * @param {string=} min Sets the `min` validation error key if the value entered is less than `min`.\n\t   *   This must be a valid ISO time format (HH:mm:ss). You can also use interpolation inside this\n\t   *   attribute (e.g. `min=\"{{minTime | date:'HH:mm:ss'}}\"`). Note that `min` will also add\n\t   *   native HTML5 constraint validation.\n\t   * @param {string=} max Sets the `max` validation error key if the value entered is greater than `max`.\n\t   *   This must be a valid ISO time format (HH:mm:ss). You can also use interpolation inside this\n\t   *   attribute (e.g. `max=\"{{maxTime | date:'HH:mm:ss'}}\"`). Note that `max` will also add\n\t   *   native HTML5 constraint validation.\n\t   * @param {(date|string)=} ngMin Sets the `min` validation constraint to the Date / ISO time string the\n\t   *   `ngMin` expression evaluates to. Note that it does not set the `min` attribute.\n\t   * @param {(date|string)=} ngMax Sets the `max` validation constraint to the Date / ISO time string the\n\t   *   `ngMax` expression evaluates to. Note that it does not set the `max` attribute.\n\t   * @param {string=} required Sets `required` validation error key if the value is not entered.\n\t   * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to\n\t   *    the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of\n\t   *    `required` when you want to data-bind to the `required` attribute.\n\t   * @param {string=} ngChange Angular expression to be executed when input changes due to user\n\t   *    interaction with the input element.\n\t   *\n\t   * @example\n\t   <example name=\"time-input-directive\" module=\"timeExample\">\n\t   <file name=\"index.html\">\n\t     <script>\n\t      angular.module('timeExample', [])\n\t        .controller('DateController', ['$scope', function($scope) {\n\t          $scope.example = {\n\t            value: new Date(1970, 0, 1, 14, 57, 0)\n\t          };\n\t        }]);\n\t     </script>\n\t     <form name=\"myForm\" ng-controller=\"DateController as dateCtrl\">\n\t        <label for=\"exampleInput\">Pick a between 8am and 5pm:</label>\n\t        <input type=\"time\" id=\"exampleInput\" name=\"input\" ng-model=\"example.value\"\n\t            placeholder=\"HH:mm:ss\" min=\"08:00:00\" max=\"17:00:00\" required />\n\t        <div role=\"alert\">\n\t          <span class=\"error\" ng-show=\"myForm.input.$error.required\">\n\t              Required!</span>\n\t          <span class=\"error\" ng-show=\"myForm.input.$error.time\">\n\t              Not a valid date!</span>\n\t        </div>\n\t        <tt>value = {{example.value | date: \"HH:mm:ss\"}}</tt><br/>\n\t        <tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>\n\t        <tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>\n\t        <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>\n\t        <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>\n\t     </form>\n\t   </file>\n\t   <file name=\"protractor.js\" type=\"protractor\">\n\t      var value = element(by.binding('example.value | date: \"HH:mm:ss\"'));\n\t      var valid = element(by.binding('myForm.input.$valid'));\n\t      var input = element(by.model('example.value'));\n\n\t      // currently protractor/webdriver does not support\n\t      // sending keys to all known HTML5 input controls\n\t      // for various browsers (https://github.com/angular/protractor/issues/562).\n\t      function setInput(val) {\n\t        // set the value of the element and force validation.\n\t        var scr = \"var ipt = document.getElementById('exampleInput'); \" +\n\t        \"ipt.value = '\" + val + \"';\" +\n\t        \"angular.element(ipt).scope().$apply(function(s) { s.myForm[ipt.name].$setViewValue('\" + val + \"'); });\";\n\t        browser.executeScript(scr);\n\t      }\n\n\t      it('should initialize to model', function() {\n\t        expect(value.getText()).toContain('14:57:00');\n\t        expect(valid.getText()).toContain('myForm.input.$valid = true');\n\t      });\n\n\t      it('should be invalid if empty', function() {\n\t        setInput('');\n\t        expect(value.getText()).toEqual('value =');\n\t        expect(valid.getText()).toContain('myForm.input.$valid = false');\n\t      });\n\n\t      it('should be invalid if over max', function() {\n\t        setInput('23:59:00');\n\t        expect(value.getText()).toContain('');\n\t        expect(valid.getText()).toContain('myForm.input.$valid = false');\n\t      });\n\t   </file>\n\t   </example>\n\t   */\n\t  'time': createDateInputType('time', TIME_REGEXP,\n\t      createDateParser(TIME_REGEXP, ['HH', 'mm', 'ss', 'sss']),\n\t     'HH:mm:ss.sss'),\n\n\t   /**\n\t    * @ngdoc input\n\t    * @name input[week]\n\t    *\n\t    * @description\n\t    * Input with week-of-the-year validation and transformation to Date. In browsers that do not yet support\n\t    * the HTML5 week input, a text element will be used. In that case, the text must be entered in a valid ISO-8601\n\t    * week format (yyyy-W##), for example: `2013-W02`.\n\t    *\n\t    * The model must always be a Date object, otherwise Angular will throw an error.\n\t    * Invalid `Date` objects (dates whose `getTime()` is `NaN`) will be rendered as an empty string.\n\t    *\n\t    * The timezone to be used to read/write the `Date` instance in the model can be defined using\n\t    * {@link ng.directive:ngModelOptions ngModelOptions}. By default, this is the timezone of the browser.\n\t    *\n\t    * @param {string} ngModel Assignable angular expression to data-bind to.\n\t    * @param {string=} name Property name of the form under which the control is published.\n\t    * @param {string=} min Sets the `min` validation error key if the value entered is less than `min`.\n\t    *   This must be a valid ISO week format (yyyy-W##). You can also use interpolation inside this\n\t    *   attribute (e.g. `min=\"{{minWeek | date:'yyyy-Www'}}\"`). Note that `min` will also add\n\t    *   native HTML5 constraint validation.\n\t    * @param {string=} max Sets the `max` validation error key if the value entered is greater than `max`.\n\t    *   This must be a valid ISO week format (yyyy-W##). You can also use interpolation inside this\n\t    *   attribute (e.g. `max=\"{{maxWeek | date:'yyyy-Www'}}\"`). Note that `max` will also add\n\t    *   native HTML5 constraint validation.\n\t    * @param {(date|string)=} ngMin Sets the `min` validation constraint to the Date / ISO week string\n\t    *   the `ngMin` expression evaluates to. Note that it does not set the `min` attribute.\n\t    * @param {(date|string)=} ngMax Sets the `max` validation constraint to the Date / ISO week string\n\t    *   the `ngMax` expression evaluates to. Note that it does not set the `max` attribute.\n\t    * @param {string=} required Sets `required` validation error key if the value is not entered.\n\t    * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to\n\t    *    the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of\n\t    *    `required` when you want to data-bind to the `required` attribute.\n\t    * @param {string=} ngChange Angular expression to be executed when input changes due to user\n\t    *    interaction with the input element.\n\t    *\n\t    * @example\n\t    <example name=\"week-input-directive\" module=\"weekExample\">\n\t    <file name=\"index.html\">\n\t      <script>\n\t      angular.module('weekExample', [])\n\t        .controller('DateController', ['$scope', function($scope) {\n\t          $scope.example = {\n\t            value: new Date(2013, 0, 3)\n\t          };\n\t        }]);\n\t      </script>\n\t      <form name=\"myForm\" ng-controller=\"DateController as dateCtrl\">\n\t        <label>Pick a date between in 2013:\n\t          <input id=\"exampleInput\" type=\"week\" name=\"input\" ng-model=\"example.value\"\n\t                 placeholder=\"YYYY-W##\" min=\"2012-W32\"\n\t                 max=\"2013-W52\" required />\n\t        </label>\n\t        <div role=\"alert\">\n\t          <span class=\"error\" ng-show=\"myForm.input.$error.required\">\n\t              Required!</span>\n\t          <span class=\"error\" ng-show=\"myForm.input.$error.week\">\n\t              Not a valid date!</span>\n\t        </div>\n\t        <tt>value = {{example.value | date: \"yyyy-Www\"}}</tt><br/>\n\t        <tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>\n\t        <tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>\n\t        <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>\n\t        <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>\n\t      </form>\n\t    </file>\n\t    <file name=\"protractor.js\" type=\"protractor\">\n\t      var value = element(by.binding('example.value | date: \"yyyy-Www\"'));\n\t      var valid = element(by.binding('myForm.input.$valid'));\n\t      var input = element(by.model('example.value'));\n\n\t      // currently protractor/webdriver does not support\n\t      // sending keys to all known HTML5 input controls\n\t      // for various browsers (https://github.com/angular/protractor/issues/562).\n\t      function setInput(val) {\n\t        // set the value of the element and force validation.\n\t        var scr = \"var ipt = document.getElementById('exampleInput'); \" +\n\t        \"ipt.value = '\" + val + \"';\" +\n\t        \"angular.element(ipt).scope().$apply(function(s) { s.myForm[ipt.name].$setViewValue('\" + val + \"'); });\";\n\t        browser.executeScript(scr);\n\t      }\n\n\t      it('should initialize to model', function() {\n\t        expect(value.getText()).toContain('2013-W01');\n\t        expect(valid.getText()).toContain('myForm.input.$valid = true');\n\t      });\n\n\t      it('should be invalid if empty', function() {\n\t        setInput('');\n\t        expect(value.getText()).toEqual('value =');\n\t        expect(valid.getText()).toContain('myForm.input.$valid = false');\n\t      });\n\n\t      it('should be invalid if over max', function() {\n\t        setInput('2015-W01');\n\t        expect(value.getText()).toContain('');\n\t        expect(valid.getText()).toContain('myForm.input.$valid = false');\n\t      });\n\t    </file>\n\t    </example>\n\t    */\n\t  'week': createDateInputType('week', WEEK_REGEXP, weekParser, 'yyyy-Www'),\n\n\t  /**\n\t   * @ngdoc input\n\t   * @name input[month]\n\t   *\n\t   * @description\n\t   * Input with month validation and transformation. In browsers that do not yet support\n\t   * the HTML5 month input, a text element will be used. In that case, the text must be entered in a valid ISO-8601\n\t   * month format (yyyy-MM), for example: `2009-01`.\n\t   *\n\t   * The model must always be a Date object, otherwise Angular will throw an error.\n\t   * Invalid `Date` objects (dates whose `getTime()` is `NaN`) will be rendered as an empty string.\n\t   * If the model is not set to the first of the month, the next view to model update will set it\n\t   * to the first of the month.\n\t   *\n\t   * The timezone to be used to read/write the `Date` instance in the model can be defined using\n\t   * {@link ng.directive:ngModelOptions ngModelOptions}. By default, this is the timezone of the browser.\n\t   *\n\t   * @param {string} ngModel Assignable angular expression to data-bind to.\n\t   * @param {string=} name Property name of the form under which the control is published.\n\t   * @param {string=} min Sets the `min` validation error key if the value entered is less than `min`.\n\t   *   This must be a valid ISO month format (yyyy-MM). You can also use interpolation inside this\n\t   *   attribute (e.g. `min=\"{{minMonth | date:'yyyy-MM'}}\"`). Note that `min` will also add\n\t   *   native HTML5 constraint validation.\n\t   * @param {string=} max Sets the `max` validation error key if the value entered is greater than `max`.\n\t   *   This must be a valid ISO month format (yyyy-MM). You can also use interpolation inside this\n\t   *   attribute (e.g. `max=\"{{maxMonth | date:'yyyy-MM'}}\"`). Note that `max` will also add\n\t   *   native HTML5 constraint validation.\n\t   * @param {(date|string)=} ngMin Sets the `min` validation constraint to the Date / ISO week string\n\t   *   the `ngMin` expression evaluates to. Note that it does not set the `min` attribute.\n\t   * @param {(date|string)=} ngMax Sets the `max` validation constraint to the Date / ISO week string\n\t   *   the `ngMax` expression evaluates to. Note that it does not set the `max` attribute.\n\n\t   * @param {string=} required Sets `required` validation error key if the value is not entered.\n\t   * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to\n\t   *    the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of\n\t   *    `required` when you want to data-bind to the `required` attribute.\n\t   * @param {string=} ngChange Angular expression to be executed when input changes due to user\n\t   *    interaction with the input element.\n\t   *\n\t   * @example\n\t   <example name=\"month-input-directive\" module=\"monthExample\">\n\t   <file name=\"index.html\">\n\t     <script>\n\t      angular.module('monthExample', [])\n\t        .controller('DateController', ['$scope', function($scope) {\n\t          $scope.example = {\n\t            value: new Date(2013, 9, 1)\n\t          };\n\t        }]);\n\t     </script>\n\t     <form name=\"myForm\" ng-controller=\"DateController as dateCtrl\">\n\t       <label for=\"exampleInput\">Pick a month in 2013:</label>\n\t       <input id=\"exampleInput\" type=\"month\" name=\"input\" ng-model=\"example.value\"\n\t          placeholder=\"yyyy-MM\" min=\"2013-01\" max=\"2013-12\" required />\n\t       <div role=\"alert\">\n\t         <span class=\"error\" ng-show=\"myForm.input.$error.required\">\n\t            Required!</span>\n\t         <span class=\"error\" ng-show=\"myForm.input.$error.month\">\n\t            Not a valid month!</span>\n\t       </div>\n\t       <tt>value = {{example.value | date: \"yyyy-MM\"}}</tt><br/>\n\t       <tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>\n\t       <tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>\n\t       <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>\n\t       <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>\n\t     </form>\n\t   </file>\n\t   <file name=\"protractor.js\" type=\"protractor\">\n\t      var value = element(by.binding('example.value | date: \"yyyy-MM\"'));\n\t      var valid = element(by.binding('myForm.input.$valid'));\n\t      var input = element(by.model('example.value'));\n\n\t      // currently protractor/webdriver does not support\n\t      // sending keys to all known HTML5 input controls\n\t      // for various browsers (https://github.com/angular/protractor/issues/562).\n\t      function setInput(val) {\n\t        // set the value of the element and force validation.\n\t        var scr = \"var ipt = document.getElementById('exampleInput'); \" +\n\t        \"ipt.value = '\" + val + \"';\" +\n\t        \"angular.element(ipt).scope().$apply(function(s) { s.myForm[ipt.name].$setViewValue('\" + val + \"'); });\";\n\t        browser.executeScript(scr);\n\t      }\n\n\t      it('should initialize to model', function() {\n\t        expect(value.getText()).toContain('2013-10');\n\t        expect(valid.getText()).toContain('myForm.input.$valid = true');\n\t      });\n\n\t      it('should be invalid if empty', function() {\n\t        setInput('');\n\t        expect(value.getText()).toEqual('value =');\n\t        expect(valid.getText()).toContain('myForm.input.$valid = false');\n\t      });\n\n\t      it('should be invalid if over max', function() {\n\t        setInput('2015-01');\n\t        expect(value.getText()).toContain('');\n\t        expect(valid.getText()).toContain('myForm.input.$valid = false');\n\t      });\n\t   </file>\n\t   </example>\n\t   */\n\t  'month': createDateInputType('month', MONTH_REGEXP,\n\t     createDateParser(MONTH_REGEXP, ['yyyy', 'MM']),\n\t     'yyyy-MM'),\n\n\t  /**\n\t   * @ngdoc input\n\t   * @name input[number]\n\t   *\n\t   * @description\n\t   * Text input with number validation and transformation. Sets the `number` validation\n\t   * error if not a valid number.\n\t   *\n\t   * <div class=\"alert alert-warning\">\n\t   * The model must always be of type `number` otherwise Angular will throw an error.\n\t   * Be aware that a string containing a number is not enough. See the {@link ngModel:numfmt}\n\t   * error docs for more information and an example of how to convert your model if necessary.\n\t   * </div>\n\t   *\n\t   * ## Issues with HTML5 constraint validation\n\t   *\n\t   * In browsers that follow the\n\t   * [HTML5 specification](https://html.spec.whatwg.org/multipage/forms.html#number-state-%28type=number%29),\n\t   * `input[number]` does not work as expected with {@link ngModelOptions `ngModelOptions.allowInvalid`}.\n\t   * If a non-number is entered in the input, the browser will report the value as an empty string,\n\t   * which means the view / model values in `ngModel` and subsequently the scope value\n\t   * will also be an empty string.\n\t   *\n\t   *\n\t   * @param {string} ngModel Assignable angular expression to data-bind to.\n\t   * @param {string=} name Property name of the form under which the control is published.\n\t   * @param {string=} min Sets the `min` validation error key if the value entered is less than `min`.\n\t   * @param {string=} max Sets the `max` validation error key if the value entered is greater than `max`.\n\t   * @param {string=} required Sets `required` validation error key if the value is not entered.\n\t   * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to\n\t   *    the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of\n\t   *    `required` when you want to data-bind to the `required` attribute.\n\t   * @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than\n\t   *    minlength.\n\t   * @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than\n\t   *    maxlength. Setting the attribute to a negative or non-numeric value, allows view values of\n\t   *    any length.\n\t   * @param {string=} pattern Similar to `ngPattern` except that the attribute value is the actual string\n\t   *    that contains the regular expression body that will be converted to a regular expression\n\t   *    as in the ngPattern directive.\n\t   * @param {string=} ngPattern Sets `pattern` validation error key if the ngModel value does not match\n\t   *    a RegExp found by evaluating the Angular expression given in the attribute value.\n\t   *    If the expression evaluates to a RegExp object, then this is used directly.\n\t   *    If the expression evaluates to a string, then it will be converted to a RegExp\n\t   *    after wrapping it in `^` and `$` characters. For instance, `\"abc\"` will be converted to\n\t   *    `new RegExp('^abc$')`.<br />\n\t   *    **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to\n\t   *    start at the index of the last search's match, thus not taking the whole input value into\n\t   *    account.\n\t   * @param {string=} ngChange Angular expression to be executed when input changes due to user\n\t   *    interaction with the input element.\n\t   *\n\t   * @example\n\t      <example name=\"number-input-directive\" module=\"numberExample\">\n\t        <file name=\"index.html\">\n\t         <script>\n\t           angular.module('numberExample', [])\n\t             .controller('ExampleController', ['$scope', function($scope) {\n\t               $scope.example = {\n\t                 value: 12\n\t               };\n\t             }]);\n\t         </script>\n\t         <form name=\"myForm\" ng-controller=\"ExampleController\">\n\t           <label>Number:\n\t             <input type=\"number\" name=\"input\" ng-model=\"example.value\"\n\t                    min=\"0\" max=\"99\" required>\n\t          </label>\n\t           <div role=\"alert\">\n\t             <span class=\"error\" ng-show=\"myForm.input.$error.required\">\n\t               Required!</span>\n\t             <span class=\"error\" ng-show=\"myForm.input.$error.number\">\n\t               Not valid number!</span>\n\t           </div>\n\t           <tt>value = {{example.value}}</tt><br/>\n\t           <tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>\n\t           <tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>\n\t           <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>\n\t           <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>\n\t          </form>\n\t        </file>\n\t        <file name=\"protractor.js\" type=\"protractor\">\n\t          var value = element(by.binding('example.value'));\n\t          var valid = element(by.binding('myForm.input.$valid'));\n\t          var input = element(by.model('example.value'));\n\n\t          it('should initialize to model', function() {\n\t            expect(value.getText()).toContain('12');\n\t            expect(valid.getText()).toContain('true');\n\t          });\n\n\t          it('should be invalid if empty', function() {\n\t            input.clear();\n\t            input.sendKeys('');\n\t            expect(value.getText()).toEqual('value =');\n\t            expect(valid.getText()).toContain('false');\n\t          });\n\n\t          it('should be invalid if over max', function() {\n\t            input.clear();\n\t            input.sendKeys('123');\n\t            expect(value.getText()).toEqual('value =');\n\t            expect(valid.getText()).toContain('false');\n\t          });\n\t        </file>\n\t      </example>\n\t   */\n\t  'number': numberInputType,\n\n\n\t  /**\n\t   * @ngdoc input\n\t   * @name input[url]\n\t   *\n\t   * @description\n\t   * Text input with URL validation. Sets the `url` validation error key if the content is not a\n\t   * valid URL.\n\t   *\n\t   * <div class=\"alert alert-warning\">\n\t   * **Note:** `input[url]` uses a regex to validate urls that is derived from the regex\n\t   * used in Chromium. If you need stricter validation, you can use `ng-pattern` or modify\n\t   * the built-in validators (see the {@link guide/forms Forms guide})\n\t   * </div>\n\t   *\n\t   * @param {string} ngModel Assignable angular expression to data-bind to.\n\t   * @param {string=} name Property name of the form under which the control is published.\n\t   * @param {string=} required Sets `required` validation error key if the value is not entered.\n\t   * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to\n\t   *    the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of\n\t   *    `required` when you want to data-bind to the `required` attribute.\n\t   * @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than\n\t   *    minlength.\n\t   * @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than\n\t   *    maxlength. Setting the attribute to a negative or non-numeric value, allows view values of\n\t   *    any length.\n\t   * @param {string=} pattern Similar to `ngPattern` except that the attribute value is the actual string\n\t   *    that contains the regular expression body that will be converted to a regular expression\n\t   *    as in the ngPattern directive.\n\t   * @param {string=} ngPattern Sets `pattern` validation error key if the ngModel value does not match\n\t   *    a RegExp found by evaluating the Angular expression given in the attribute value.\n\t   *    If the expression evaluates to a RegExp object, then this is used directly.\n\t   *    If the expression evaluates to a string, then it will be converted to a RegExp\n\t   *    after wrapping it in `^` and `$` characters. For instance, `\"abc\"` will be converted to\n\t   *    `new RegExp('^abc$')`.<br />\n\t   *    **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to\n\t   *    start at the index of the last search's match, thus not taking the whole input value into\n\t   *    account.\n\t   * @param {string=} ngChange Angular expression to be executed when input changes due to user\n\t   *    interaction with the input element.\n\t   *\n\t   * @example\n\t      <example name=\"url-input-directive\" module=\"urlExample\">\n\t        <file name=\"index.html\">\n\t         <script>\n\t           angular.module('urlExample', [])\n\t             .controller('ExampleController', ['$scope', function($scope) {\n\t               $scope.url = {\n\t                 text: 'http://google.com'\n\t               };\n\t             }]);\n\t         </script>\n\t         <form name=\"myForm\" ng-controller=\"ExampleController\">\n\t           <label>URL:\n\t             <input type=\"url\" name=\"input\" ng-model=\"url.text\" required>\n\t           <label>\n\t           <div role=\"alert\">\n\t             <span class=\"error\" ng-show=\"myForm.input.$error.required\">\n\t               Required!</span>\n\t             <span class=\"error\" ng-show=\"myForm.input.$error.url\">\n\t               Not valid url!</span>\n\t           </div>\n\t           <tt>text = {{url.text}}</tt><br/>\n\t           <tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>\n\t           <tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>\n\t           <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>\n\t           <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>\n\t           <tt>myForm.$error.url = {{!!myForm.$error.url}}</tt><br/>\n\t          </form>\n\t        </file>\n\t        <file name=\"protractor.js\" type=\"protractor\">\n\t          var text = element(by.binding('url.text'));\n\t          var valid = element(by.binding('myForm.input.$valid'));\n\t          var input = element(by.model('url.text'));\n\n\t          it('should initialize to model', function() {\n\t            expect(text.getText()).toContain('http://google.com');\n\t            expect(valid.getText()).toContain('true');\n\t          });\n\n\t          it('should be invalid if empty', function() {\n\t            input.clear();\n\t            input.sendKeys('');\n\n\t            expect(text.getText()).toEqual('text =');\n\t            expect(valid.getText()).toContain('false');\n\t          });\n\n\t          it('should be invalid if not url', function() {\n\t            input.clear();\n\t            input.sendKeys('box');\n\n\t            expect(valid.getText()).toContain('false');\n\t          });\n\t        </file>\n\t      </example>\n\t   */\n\t  'url': urlInputType,\n\n\n\t  /**\n\t   * @ngdoc input\n\t   * @name input[email]\n\t   *\n\t   * @description\n\t   * Text input with email validation. Sets the `email` validation error key if not a valid email\n\t   * address.\n\t   *\n\t   * <div class=\"alert alert-warning\">\n\t   * **Note:** `input[email]` uses a regex to validate email addresses that is derived from the regex\n\t   * used in Chromium. If you need stricter validation (e.g. requiring a top-level domain), you can\n\t   * use `ng-pattern` or modify the built-in validators (see the {@link guide/forms Forms guide})\n\t   * </div>\n\t   *\n\t   * @param {string} ngModel Assignable angular expression to data-bind to.\n\t   * @param {string=} name Property name of the form under which the control is published.\n\t   * @param {string=} required Sets `required` validation error key if the value is not entered.\n\t   * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to\n\t   *    the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of\n\t   *    `required` when you want to data-bind to the `required` attribute.\n\t   * @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than\n\t   *    minlength.\n\t   * @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than\n\t   *    maxlength. Setting the attribute to a negative or non-numeric value, allows view values of\n\t   *    any length.\n\t   * @param {string=} pattern Similar to `ngPattern` except that the attribute value is the actual string\n\t   *    that contains the regular expression body that will be converted to a regular expression\n\t   *    as in the ngPattern directive.\n\t   * @param {string=} ngPattern Sets `pattern` validation error key if the ngModel value does not match\n\t   *    a RegExp found by evaluating the Angular expression given in the attribute value.\n\t   *    If the expression evaluates to a RegExp object, then this is used directly.\n\t   *    If the expression evaluates to a string, then it will be converted to a RegExp\n\t   *    after wrapping it in `^` and `$` characters. For instance, `\"abc\"` will be converted to\n\t   *    `new RegExp('^abc$')`.<br />\n\t   *    **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to\n\t   *    start at the index of the last search's match, thus not taking the whole input value into\n\t   *    account.\n\t   * @param {string=} ngChange Angular expression to be executed when input changes due to user\n\t   *    interaction with the input element.\n\t   *\n\t   * @example\n\t      <example name=\"email-input-directive\" module=\"emailExample\">\n\t        <file name=\"index.html\">\n\t         <script>\n\t           angular.module('emailExample', [])\n\t             .controller('ExampleController', ['$scope', function($scope) {\n\t               $scope.email = {\n\t                 text: 'me@example.com'\n\t               };\n\t             }]);\n\t         </script>\n\t           <form name=\"myForm\" ng-controller=\"ExampleController\">\n\t             <label>Email:\n\t               <input type=\"email\" name=\"input\" ng-model=\"email.text\" required>\n\t             </label>\n\t             <div role=\"alert\">\n\t               <span class=\"error\" ng-show=\"myForm.input.$error.required\">\n\t                 Required!</span>\n\t               <span class=\"error\" ng-show=\"myForm.input.$error.email\">\n\t                 Not valid email!</span>\n\t             </div>\n\t             <tt>text = {{email.text}}</tt><br/>\n\t             <tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>\n\t             <tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>\n\t             <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>\n\t             <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>\n\t             <tt>myForm.$error.email = {{!!myForm.$error.email}}</tt><br/>\n\t           </form>\n\t         </file>\n\t        <file name=\"protractor.js\" type=\"protractor\">\n\t          var text = element(by.binding('email.text'));\n\t          var valid = element(by.binding('myForm.input.$valid'));\n\t          var input = element(by.model('email.text'));\n\n\t          it('should initialize to model', function() {\n\t            expect(text.getText()).toContain('me@example.com');\n\t            expect(valid.getText()).toContain('true');\n\t          });\n\n\t          it('should be invalid if empty', function() {\n\t            input.clear();\n\t            input.sendKeys('');\n\t            expect(text.getText()).toEqual('text =');\n\t            expect(valid.getText()).toContain('false');\n\t          });\n\n\t          it('should be invalid if not email', function() {\n\t            input.clear();\n\t            input.sendKeys('xxx');\n\n\t            expect(valid.getText()).toContain('false');\n\t          });\n\t        </file>\n\t      </example>\n\t   */\n\t  'email': emailInputType,\n\n\n\t  /**\n\t   * @ngdoc input\n\t   * @name input[radio]\n\t   *\n\t   * @description\n\t   * HTML radio button.\n\t   *\n\t   * @param {string} ngModel Assignable angular expression to data-bind to.\n\t   * @param {string} value The value to which the `ngModel` expression should be set when selected.\n\t   *    Note that `value` only supports `string` values, i.e. the scope model needs to be a string,\n\t   *    too. Use `ngValue` if you need complex models (`number`, `object`, ...).\n\t   * @param {string=} name Property name of the form under which the control is published.\n\t   * @param {string=} ngChange Angular expression to be executed when input changes due to user\n\t   *    interaction with the input element.\n\t   * @param {string} ngValue Angular expression to which `ngModel` will be be set when the radio\n\t   *    is selected. Should be used instead of the `value` attribute if you need\n\t   *    a non-string `ngModel` (`boolean`, `array`, ...).\n\t   *\n\t   * @example\n\t      <example name=\"radio-input-directive\" module=\"radioExample\">\n\t        <file name=\"index.html\">\n\t         <script>\n\t           angular.module('radioExample', [])\n\t             .controller('ExampleController', ['$scope', function($scope) {\n\t               $scope.color = {\n\t                 name: 'blue'\n\t               };\n\t               $scope.specialValue = {\n\t                 \"id\": \"12345\",\n\t                 \"value\": \"green\"\n\t               };\n\t             }]);\n\t         </script>\n\t         <form name=\"myForm\" ng-controller=\"ExampleController\">\n\t           <label>\n\t             <input type=\"radio\" ng-model=\"color.name\" value=\"red\">\n\t             Red\n\t           </label><br/>\n\t           <label>\n\t             <input type=\"radio\" ng-model=\"color.name\" ng-value=\"specialValue\">\n\t             Green\n\t           </label><br/>\n\t           <label>\n\t             <input type=\"radio\" ng-model=\"color.name\" value=\"blue\">\n\t             Blue\n\t           </label><br/>\n\t           <tt>color = {{color.name | json}}</tt><br/>\n\t          </form>\n\t          Note that `ng-value=\"specialValue\"` sets radio item's value to be the value of `$scope.specialValue`.\n\t        </file>\n\t        <file name=\"protractor.js\" type=\"protractor\">\n\t          it('should change state', function() {\n\t            var color = element(by.binding('color.name'));\n\n\t            expect(color.getText()).toContain('blue');\n\n\t            element.all(by.model('color.name')).get(0).click();\n\n\t            expect(color.getText()).toContain('red');\n\t          });\n\t        </file>\n\t      </example>\n\t   */\n\t  'radio': radioInputType,\n\n\n\t  /**\n\t   * @ngdoc input\n\t   * @name input[checkbox]\n\t   *\n\t   * @description\n\t   * HTML checkbox.\n\t   *\n\t   * @param {string} ngModel Assignable angular expression to data-bind to.\n\t   * @param {string=} name Property name of the form under which the control is published.\n\t   * @param {expression=} ngTrueValue The value to which the expression should be set when selected.\n\t   * @param {expression=} ngFalseValue The value to which the expression should be set when not selected.\n\t   * @param {string=} ngChange Angular expression to be executed when input changes due to user\n\t   *    interaction with the input element.\n\t   *\n\t   * @example\n\t      <example name=\"checkbox-input-directive\" module=\"checkboxExample\">\n\t        <file name=\"index.html\">\n\t         <script>\n\t           angular.module('checkboxExample', [])\n\t             .controller('ExampleController', ['$scope', function($scope) {\n\t               $scope.checkboxModel = {\n\t                value1 : true,\n\t                value2 : 'YES'\n\t              };\n\t             }]);\n\t         </script>\n\t         <form name=\"myForm\" ng-controller=\"ExampleController\">\n\t           <label>Value1:\n\t             <input type=\"checkbox\" ng-model=\"checkboxModel.value1\">\n\t           </label><br/>\n\t           <label>Value2:\n\t             <input type=\"checkbox\" ng-model=\"checkboxModel.value2\"\n\t                    ng-true-value=\"'YES'\" ng-false-value=\"'NO'\">\n\t            </label><br/>\n\t           <tt>value1 = {{checkboxModel.value1}}</tt><br/>\n\t           <tt>value2 = {{checkboxModel.value2}}</tt><br/>\n\t          </form>\n\t        </file>\n\t        <file name=\"protractor.js\" type=\"protractor\">\n\t          it('should change state', function() {\n\t            var value1 = element(by.binding('checkboxModel.value1'));\n\t            var value2 = element(by.binding('checkboxModel.value2'));\n\n\t            expect(value1.getText()).toContain('true');\n\t            expect(value2.getText()).toContain('YES');\n\n\t            element(by.model('checkboxModel.value1')).click();\n\t            element(by.model('checkboxModel.value2')).click();\n\n\t            expect(value1.getText()).toContain('false');\n\t            expect(value2.getText()).toContain('NO');\n\t          });\n\t        </file>\n\t      </example>\n\t   */\n\t  'checkbox': checkboxInputType,\n\n\t  'hidden': noop,\n\t  'button': noop,\n\t  'submit': noop,\n\t  'reset': noop,\n\t  'file': noop\n\t};\n\n\tfunction stringBasedInputType(ctrl) {\n\t  ctrl.$formatters.push(function(value) {\n\t    return ctrl.$isEmpty(value) ? value : value.toString();\n\t  });\n\t}\n\n\tfunction textInputType(scope, element, attr, ctrl, $sniffer, $browser) {\n\t  baseInputType(scope, element, attr, ctrl, $sniffer, $browser);\n\t  stringBasedInputType(ctrl);\n\t}\n\n\tfunction baseInputType(scope, element, attr, ctrl, $sniffer, $browser) {\n\t  var type = lowercase(element[0].type);\n\n\t  // In composition mode, users are still inputing intermediate text buffer,\n\t  // hold the listener until composition is done.\n\t  // More about composition events: https://developer.mozilla.org/en-US/docs/Web/API/CompositionEvent\n\t  if (!$sniffer.android) {\n\t    var composing = false;\n\n\t    element.on('compositionstart', function(data) {\n\t      composing = true;\n\t    });\n\n\t    element.on('compositionend', function() {\n\t      composing = false;\n\t      listener();\n\t    });\n\t  }\n\n\t  var listener = function(ev) {\n\t    if (timeout) {\n\t      $browser.defer.cancel(timeout);\n\t      timeout = null;\n\t    }\n\t    if (composing) return;\n\t    var value = element.val(),\n\t        event = ev && ev.type;\n\n\t    // By default we will trim the value\n\t    // If the attribute ng-trim exists we will avoid trimming\n\t    // If input type is 'password', the value is never trimmed\n\t    if (type !== 'password' && (!attr.ngTrim || attr.ngTrim !== 'false')) {\n\t      value = trim(value);\n\t    }\n\n\t    // If a control is suffering from bad input (due to native validators), browsers discard its\n\t    // value, so it may be necessary to revalidate (by calling $setViewValue again) even if the\n\t    // control's value is the same empty value twice in a row.\n\t    if (ctrl.$viewValue !== value || (value === '' && ctrl.$$hasNativeValidators)) {\n\t      ctrl.$setViewValue(value, event);\n\t    }\n\t  };\n\n\t  // if the browser does support \"input\" event, we are fine - except on IE9 which doesn't fire the\n\t  // input event on backspace, delete or cut\n\t  if ($sniffer.hasEvent('input')) {\n\t    element.on('input', listener);\n\t  } else {\n\t    var timeout;\n\n\t    var deferListener = function(ev, input, origValue) {\n\t      if (!timeout) {\n\t        timeout = $browser.defer(function() {\n\t          timeout = null;\n\t          if (!input || input.value !== origValue) {\n\t            listener(ev);\n\t          }\n\t        });\n\t      }\n\t    };\n\n\t    element.on('keydown', function(event) {\n\t      var key = event.keyCode;\n\n\t      // ignore\n\t      //    command            modifiers                   arrows\n\t      if (key === 91 || (15 < key && key < 19) || (37 <= key && key <= 40)) return;\n\n\t      deferListener(event, this, this.value);\n\t    });\n\n\t    // if user modifies input value using context menu in IE, we need \"paste\" and \"cut\" events to catch it\n\t    if ($sniffer.hasEvent('paste')) {\n\t      element.on('paste cut', deferListener);\n\t    }\n\t  }\n\n\t  // if user paste into input using mouse on older browser\n\t  // or form autocomplete on newer browser, we need \"change\" event to catch it\n\t  element.on('change', listener);\n\n\t  ctrl.$render = function() {\n\t    // Workaround for Firefox validation #12102.\n\t    var value = ctrl.$isEmpty(ctrl.$viewValue) ? '' : ctrl.$viewValue;\n\t    if (element.val() !== value) {\n\t      element.val(value);\n\t    }\n\t  };\n\t}\n\n\tfunction weekParser(isoWeek, existingDate) {\n\t  if (isDate(isoWeek)) {\n\t    return isoWeek;\n\t  }\n\n\t  if (isString(isoWeek)) {\n\t    WEEK_REGEXP.lastIndex = 0;\n\t    var parts = WEEK_REGEXP.exec(isoWeek);\n\t    if (parts) {\n\t      var year = +parts[1],\n\t          week = +parts[2],\n\t          hours = 0,\n\t          minutes = 0,\n\t          seconds = 0,\n\t          milliseconds = 0,\n\t          firstThurs = getFirstThursdayOfYear(year),\n\t          addDays = (week - 1) * 7;\n\n\t      if (existingDate) {\n\t        hours = existingDate.getHours();\n\t        minutes = existingDate.getMinutes();\n\t        seconds = existingDate.getSeconds();\n\t        milliseconds = existingDate.getMilliseconds();\n\t      }\n\n\t      return new Date(year, 0, firstThurs.getDate() + addDays, hours, minutes, seconds, milliseconds);\n\t    }\n\t  }\n\n\t  return NaN;\n\t}\n\n\tfunction createDateParser(regexp, mapping) {\n\t  return function(iso, date) {\n\t    var parts, map;\n\n\t    if (isDate(iso)) {\n\t      return iso;\n\t    }\n\n\t    if (isString(iso)) {\n\t      // When a date is JSON'ified to wraps itself inside of an extra\n\t      // set of double quotes. This makes the date parsing code unable\n\t      // to match the date string and parse it as a date.\n\t      if (iso.charAt(0) == '\"' && iso.charAt(iso.length - 1) == '\"') {\n\t        iso = iso.substring(1, iso.length - 1);\n\t      }\n\t      if (ISO_DATE_REGEXP.test(iso)) {\n\t        return new Date(iso);\n\t      }\n\t      regexp.lastIndex = 0;\n\t      parts = regexp.exec(iso);\n\n\t      if (parts) {\n\t        parts.shift();\n\t        if (date) {\n\t          map = {\n\t            yyyy: date.getFullYear(),\n\t            MM: date.getMonth() + 1,\n\t            dd: date.getDate(),\n\t            HH: date.getHours(),\n\t            mm: date.getMinutes(),\n\t            ss: date.getSeconds(),\n\t            sss: date.getMilliseconds() / 1000\n\t          };\n\t        } else {\n\t          map = { yyyy: 1970, MM: 1, dd: 1, HH: 0, mm: 0, ss: 0, sss: 0 };\n\t        }\n\n\t        forEach(parts, function(part, index) {\n\t          if (index < mapping.length) {\n\t            map[mapping[index]] = +part;\n\t          }\n\t        });\n\t        return new Date(map.yyyy, map.MM - 1, map.dd, map.HH, map.mm, map.ss || 0, map.sss * 1000 || 0);\n\t      }\n\t    }\n\n\t    return NaN;\n\t  };\n\t}\n\n\tfunction createDateInputType(type, regexp, parseDate, format) {\n\t  return function dynamicDateInputType(scope, element, attr, ctrl, $sniffer, $browser, $filter) {\n\t    badInputChecker(scope, element, attr, ctrl);\n\t    baseInputType(scope, element, attr, ctrl, $sniffer, $browser);\n\t    var timezone = ctrl && ctrl.$options && ctrl.$options.timezone;\n\t    var previousDate;\n\n\t    ctrl.$$parserName = type;\n\t    ctrl.$parsers.push(function(value) {\n\t      if (ctrl.$isEmpty(value)) return null;\n\t      if (regexp.test(value)) {\n\t        // Note: We cannot read ctrl.$modelValue, as there might be a different\n\t        // parser/formatter in the processing chain so that the model\n\t        // contains some different data format!\n\t        var parsedDate = parseDate(value, previousDate);\n\t        if (timezone) {\n\t          parsedDate = convertTimezoneToLocal(parsedDate, timezone);\n\t        }\n\t        return parsedDate;\n\t      }\n\t      return undefined;\n\t    });\n\n\t    ctrl.$formatters.push(function(value) {\n\t      if (value && !isDate(value)) {\n\t        throw ngModelMinErr('datefmt', 'Expected `{0}` to be a date', value);\n\t      }\n\t      if (isValidDate(value)) {\n\t        previousDate = value;\n\t        if (previousDate && timezone) {\n\t          previousDate = convertTimezoneToLocal(previousDate, timezone, true);\n\t        }\n\t        return $filter('date')(value, format, timezone);\n\t      } else {\n\t        previousDate = null;\n\t        return '';\n\t      }\n\t    });\n\n\t    if (isDefined(attr.min) || attr.ngMin) {\n\t      var minVal;\n\t      ctrl.$validators.min = function(value) {\n\t        return !isValidDate(value) || isUndefined(minVal) || parseDate(value) >= minVal;\n\t      };\n\t      attr.$observe('min', function(val) {\n\t        minVal = parseObservedDateValue(val);\n\t        ctrl.$validate();\n\t      });\n\t    }\n\n\t    if (isDefined(attr.max) || attr.ngMax) {\n\t      var maxVal;\n\t      ctrl.$validators.max = function(value) {\n\t        return !isValidDate(value) || isUndefined(maxVal) || parseDate(value) <= maxVal;\n\t      };\n\t      attr.$observe('max', function(val) {\n\t        maxVal = parseObservedDateValue(val);\n\t        ctrl.$validate();\n\t      });\n\t    }\n\n\t    function isValidDate(value) {\n\t      // Invalid Date: getTime() returns NaN\n\t      return value && !(value.getTime && value.getTime() !== value.getTime());\n\t    }\n\n\t    function parseObservedDateValue(val) {\n\t      return isDefined(val) && !isDate(val) ? parseDate(val) || undefined : val;\n\t    }\n\t  };\n\t}\n\n\tfunction badInputChecker(scope, element, attr, ctrl) {\n\t  var node = element[0];\n\t  var nativeValidation = ctrl.$$hasNativeValidators = isObject(node.validity);\n\t  if (nativeValidation) {\n\t    ctrl.$parsers.push(function(value) {\n\t      var validity = element.prop(VALIDITY_STATE_PROPERTY) || {};\n\t      // Detect bug in FF35 for input[email] (https://bugzilla.mozilla.org/show_bug.cgi?id=1064430):\n\t      // - also sets validity.badInput (should only be validity.typeMismatch).\n\t      // - see http://www.whatwg.org/specs/web-apps/current-work/multipage/forms.html#e-mail-state-(type=email)\n\t      // - can ignore this case as we can still read out the erroneous email...\n\t      return validity.badInput && !validity.typeMismatch ? undefined : value;\n\t    });\n\t  }\n\t}\n\n\tfunction numberInputType(scope, element, attr, ctrl, $sniffer, $browser) {\n\t  badInputChecker(scope, element, attr, ctrl);\n\t  baseInputType(scope, element, attr, ctrl, $sniffer, $browser);\n\n\t  ctrl.$$parserName = 'number';\n\t  ctrl.$parsers.push(function(value) {\n\t    if (ctrl.$isEmpty(value))      return null;\n\t    if (NUMBER_REGEXP.test(value)) return parseFloat(value);\n\t    return undefined;\n\t  });\n\n\t  ctrl.$formatters.push(function(value) {\n\t    if (!ctrl.$isEmpty(value)) {\n\t      if (!isNumber(value)) {\n\t        throw ngModelMinErr('numfmt', 'Expected `{0}` to be a number', value);\n\t      }\n\t      value = value.toString();\n\t    }\n\t    return value;\n\t  });\n\n\t  if (isDefined(attr.min) || attr.ngMin) {\n\t    var minVal;\n\t    ctrl.$validators.min = function(value) {\n\t      return ctrl.$isEmpty(value) || isUndefined(minVal) || value >= minVal;\n\t    };\n\n\t    attr.$observe('min', function(val) {\n\t      if (isDefined(val) && !isNumber(val)) {\n\t        val = parseFloat(val, 10);\n\t      }\n\t      minVal = isNumber(val) && !isNaN(val) ? val : undefined;\n\t      // TODO(matsko): implement validateLater to reduce number of validations\n\t      ctrl.$validate();\n\t    });\n\t  }\n\n\t  if (isDefined(attr.max) || attr.ngMax) {\n\t    var maxVal;\n\t    ctrl.$validators.max = function(value) {\n\t      return ctrl.$isEmpty(value) || isUndefined(maxVal) || value <= maxVal;\n\t    };\n\n\t    attr.$observe('max', function(val) {\n\t      if (isDefined(val) && !isNumber(val)) {\n\t        val = parseFloat(val, 10);\n\t      }\n\t      maxVal = isNumber(val) && !isNaN(val) ? val : undefined;\n\t      // TODO(matsko): implement validateLater to reduce number of validations\n\t      ctrl.$validate();\n\t    });\n\t  }\n\t}\n\n\tfunction urlInputType(scope, element, attr, ctrl, $sniffer, $browser) {\n\t  // Note: no badInputChecker here by purpose as `url` is only a validation\n\t  // in browsers, i.e. we can always read out input.value even if it is not valid!\n\t  baseInputType(scope, element, attr, ctrl, $sniffer, $browser);\n\t  stringBasedInputType(ctrl);\n\n\t  ctrl.$$parserName = 'url';\n\t  ctrl.$validators.url = function(modelValue, viewValue) {\n\t    var value = modelValue || viewValue;\n\t    return ctrl.$isEmpty(value) || URL_REGEXP.test(value);\n\t  };\n\t}\n\n\tfunction emailInputType(scope, element, attr, ctrl, $sniffer, $browser) {\n\t  // Note: no badInputChecker here by purpose as `url` is only a validation\n\t  // in browsers, i.e. we can always read out input.value even if it is not valid!\n\t  baseInputType(scope, element, attr, ctrl, $sniffer, $browser);\n\t  stringBasedInputType(ctrl);\n\n\t  ctrl.$$parserName = 'email';\n\t  ctrl.$validators.email = function(modelValue, viewValue) {\n\t    var value = modelValue || viewValue;\n\t    return ctrl.$isEmpty(value) || EMAIL_REGEXP.test(value);\n\t  };\n\t}\n\n\tfunction radioInputType(scope, element, attr, ctrl) {\n\t  // make the name unique, if not defined\n\t  if (isUndefined(attr.name)) {\n\t    element.attr('name', nextUid());\n\t  }\n\n\t  var listener = function(ev) {\n\t    if (element[0].checked) {\n\t      ctrl.$setViewValue(attr.value, ev && ev.type);\n\t    }\n\t  };\n\n\t  element.on('click', listener);\n\n\t  ctrl.$render = function() {\n\t    var value = attr.value;\n\t    element[0].checked = (value == ctrl.$viewValue);\n\t  };\n\n\t  attr.$observe('value', ctrl.$render);\n\t}\n\n\tfunction parseConstantExpr($parse, context, name, expression, fallback) {\n\t  var parseFn;\n\t  if (isDefined(expression)) {\n\t    parseFn = $parse(expression);\n\t    if (!parseFn.constant) {\n\t      throw ngModelMinErr('constexpr', 'Expected constant expression for `{0}`, but saw ' +\n\t                                   '`{1}`.', name, expression);\n\t    }\n\t    return parseFn(context);\n\t  }\n\t  return fallback;\n\t}\n\n\tfunction checkboxInputType(scope, element, attr, ctrl, $sniffer, $browser, $filter, $parse) {\n\t  var trueValue = parseConstantExpr($parse, scope, 'ngTrueValue', attr.ngTrueValue, true);\n\t  var falseValue = parseConstantExpr($parse, scope, 'ngFalseValue', attr.ngFalseValue, false);\n\n\t  var listener = function(ev) {\n\t    ctrl.$setViewValue(element[0].checked, ev && ev.type);\n\t  };\n\n\t  element.on('click', listener);\n\n\t  ctrl.$render = function() {\n\t    element[0].checked = ctrl.$viewValue;\n\t  };\n\n\t  // Override the standard `$isEmpty` because the $viewValue of an empty checkbox is always set to `false`\n\t  // This is because of the parser below, which compares the `$modelValue` with `trueValue` to convert\n\t  // it to a boolean.\n\t  ctrl.$isEmpty = function(value) {\n\t    return value === false;\n\t  };\n\n\t  ctrl.$formatters.push(function(value) {\n\t    return equals(value, trueValue);\n\t  });\n\n\t  ctrl.$parsers.push(function(value) {\n\t    return value ? trueValue : falseValue;\n\t  });\n\t}\n\n\n\t/**\n\t * @ngdoc directive\n\t * @name textarea\n\t * @restrict E\n\t *\n\t * @description\n\t * HTML textarea element control with angular data-binding. The data-binding and validation\n\t * properties of this element are exactly the same as those of the\n\t * {@link ng.directive:input input element}.\n\t *\n\t * @param {string} ngModel Assignable angular expression to data-bind to.\n\t * @param {string=} name Property name of the form under which the control is published.\n\t * @param {string=} required Sets `required` validation error key if the value is not entered.\n\t * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to\n\t *    the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of\n\t *    `required` when you want to data-bind to the `required` attribute.\n\t * @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than\n\t *    minlength.\n\t * @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than\n\t *    maxlength. Setting the attribute to a negative or non-numeric value, allows view values of any\n\t *    length.\n\t * @param {string=} ngPattern Sets `pattern` validation error key if the ngModel value does not match\n\t *    a RegExp found by evaluating the Angular expression given in the attribute value.\n\t *    If the expression evaluates to a RegExp object, then this is used directly.\n\t *    If the expression evaluates to a string, then it will be converted to a RegExp\n\t *    after wrapping it in `^` and `$` characters. For instance, `\"abc\"` will be converted to\n\t *    `new RegExp('^abc$')`.<br />\n\t *    **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to\n\t *    start at the index of the last search's match, thus not taking the whole input value into\n\t *    account.\n\t * @param {string=} ngChange Angular expression to be executed when input changes due to user\n\t *    interaction with the input element.\n\t * @param {boolean=} [ngTrim=true] If set to false Angular will not automatically trim the input.\n\t */\n\n\n\t/**\n\t * @ngdoc directive\n\t * @name input\n\t * @restrict E\n\t *\n\t * @description\n\t * HTML input element control. When used together with {@link ngModel `ngModel`}, it provides data-binding,\n\t * input state control, and validation.\n\t * Input control follows HTML5 input types and polyfills the HTML5 validation behavior for older browsers.\n\t *\n\t * <div class=\"alert alert-warning\">\n\t * **Note:** Not every feature offered is available for all input types.\n\t * Specifically, data binding and event handling via `ng-model` is unsupported for `input[file]`.\n\t * </div>\n\t *\n\t * @param {string} ngModel Assignable angular expression to data-bind to.\n\t * @param {string=} name Property name of the form under which the control is published.\n\t * @param {string=} required Sets `required` validation error key if the value is not entered.\n\t * @param {boolean=} ngRequired Sets `required` attribute if set to true\n\t * @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than\n\t *    minlength.\n\t * @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than\n\t *    maxlength. Setting the attribute to a negative or non-numeric value, allows view values of any\n\t *    length.\n\t * @param {string=} ngPattern Sets `pattern` validation error key if the ngModel value does not match\n\t *    a RegExp found by evaluating the Angular expression given in the attribute value.\n\t *    If the expression evaluates to a RegExp object, then this is used directly.\n\t *    If the expression evaluates to a string, then it will be converted to a RegExp\n\t *    after wrapping it in `^` and `$` characters. For instance, `\"abc\"` will be converted to\n\t *    `new RegExp('^abc$')`.<br />\n\t *    **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to\n\t *    start at the index of the last search's match, thus not taking the whole input value into\n\t *    account.\n\t * @param {string=} ngChange Angular expression to be executed when input changes due to user\n\t *    interaction with the input element.\n\t * @param {boolean=} [ngTrim=true] If set to false Angular will not automatically trim the input.\n\t *    This parameter is ignored for input[type=password] controls, which will never trim the\n\t *    input.\n\t *\n\t * @example\n\t    <example name=\"input-directive\" module=\"inputExample\">\n\t      <file name=\"index.html\">\n\t       <script>\n\t          angular.module('inputExample', [])\n\t            .controller('ExampleController', ['$scope', function($scope) {\n\t              $scope.user = {name: 'guest', last: 'visitor'};\n\t            }]);\n\t       </script>\n\t       <div ng-controller=\"ExampleController\">\n\t         <form name=\"myForm\">\n\t           <label>\n\t              User name:\n\t              <input type=\"text\" name=\"userName\" ng-model=\"user.name\" required>\n\t           </label>\n\t           <div role=\"alert\">\n\t             <span class=\"error\" ng-show=\"myForm.userName.$error.required\">\n\t              Required!</span>\n\t           </div>\n\t           <label>\n\t              Last name:\n\t              <input type=\"text\" name=\"lastName\" ng-model=\"user.last\"\n\t              ng-minlength=\"3\" ng-maxlength=\"10\">\n\t           </label>\n\t           <div role=\"alert\">\n\t             <span class=\"error\" ng-show=\"myForm.lastName.$error.minlength\">\n\t               Too short!</span>\n\t             <span class=\"error\" ng-show=\"myForm.lastName.$error.maxlength\">\n\t               Too long!</span>\n\t           </div>\n\t         </form>\n\t         <hr>\n\t         <tt>user = {{user}}</tt><br/>\n\t         <tt>myForm.userName.$valid = {{myForm.userName.$valid}}</tt><br/>\n\t         <tt>myForm.userName.$error = {{myForm.userName.$error}}</tt><br/>\n\t         <tt>myForm.lastName.$valid = {{myForm.lastName.$valid}}</tt><br/>\n\t         <tt>myForm.lastName.$error = {{myForm.lastName.$error}}</tt><br/>\n\t         <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>\n\t         <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>\n\t         <tt>myForm.$error.minlength = {{!!myForm.$error.minlength}}</tt><br/>\n\t         <tt>myForm.$error.maxlength = {{!!myForm.$error.maxlength}}</tt><br/>\n\t       </div>\n\t      </file>\n\t      <file name=\"protractor.js\" type=\"protractor\">\n\t        var user = element(by.exactBinding('user'));\n\t        var userNameValid = element(by.binding('myForm.userName.$valid'));\n\t        var lastNameValid = element(by.binding('myForm.lastName.$valid'));\n\t        var lastNameError = element(by.binding('myForm.lastName.$error'));\n\t        var formValid = element(by.binding('myForm.$valid'));\n\t        var userNameInput = element(by.model('user.name'));\n\t        var userLastInput = element(by.model('user.last'));\n\n\t        it('should initialize to model', function() {\n\t          expect(user.getText()).toContain('{\"name\":\"guest\",\"last\":\"visitor\"}');\n\t          expect(userNameValid.getText()).toContain('true');\n\t          expect(formValid.getText()).toContain('true');\n\t        });\n\n\t        it('should be invalid if empty when required', function() {\n\t          userNameInput.clear();\n\t          userNameInput.sendKeys('');\n\n\t          expect(user.getText()).toContain('{\"last\":\"visitor\"}');\n\t          expect(userNameValid.getText()).toContain('false');\n\t          expect(formValid.getText()).toContain('false');\n\t        });\n\n\t        it('should be valid if empty when min length is set', function() {\n\t          userLastInput.clear();\n\t          userLastInput.sendKeys('');\n\n\t          expect(user.getText()).toContain('{\"name\":\"guest\",\"last\":\"\"}');\n\t          expect(lastNameValid.getText()).toContain('true');\n\t          expect(formValid.getText()).toContain('true');\n\t        });\n\n\t        it('should be invalid if less than required min length', function() {\n\t          userLastInput.clear();\n\t          userLastInput.sendKeys('xx');\n\n\t          expect(user.getText()).toContain('{\"name\":\"guest\"}');\n\t          expect(lastNameValid.getText()).toContain('false');\n\t          expect(lastNameError.getText()).toContain('minlength');\n\t          expect(formValid.getText()).toContain('false');\n\t        });\n\n\t        it('should be invalid if longer than max length', function() {\n\t          userLastInput.clear();\n\t          userLastInput.sendKeys('some ridiculously long name');\n\n\t          expect(user.getText()).toContain('{\"name\":\"guest\"}');\n\t          expect(lastNameValid.getText()).toContain('false');\n\t          expect(lastNameError.getText()).toContain('maxlength');\n\t          expect(formValid.getText()).toContain('false');\n\t        });\n\t      </file>\n\t    </example>\n\t */\n\tvar inputDirective = ['$browser', '$sniffer', '$filter', '$parse',\n\t    function($browser, $sniffer, $filter, $parse) {\n\t  return {\n\t    restrict: 'E',\n\t    require: ['?ngModel'],\n\t    link: {\n\t      pre: function(scope, element, attr, ctrls) {\n\t        if (ctrls[0]) {\n\t          (inputType[lowercase(attr.type)] || inputType.text)(scope, element, attr, ctrls[0], $sniffer,\n\t                                                              $browser, $filter, $parse);\n\t        }\n\t      }\n\t    }\n\t  };\n\t}];\n\n\n\n\tvar CONSTANT_VALUE_REGEXP = /^(true|false|\\d+)$/;\n\t/**\n\t * @ngdoc directive\n\t * @name ngValue\n\t *\n\t * @description\n\t * Binds the given expression to the value of `<option>` or {@link input[radio] `input[radio]`},\n\t * so that when the element is selected, the {@link ngModel `ngModel`} of that element is set to\n\t * the bound value.\n\t *\n\t * `ngValue` is useful when dynamically generating lists of radio buttons using\n\t * {@link ngRepeat `ngRepeat`}, as shown below.\n\t *\n\t * Likewise, `ngValue` can be used to generate `<option>` elements for\n\t * the {@link select `select`} element. In that case however, only strings are supported\n\t * for the `value `attribute, so the resulting `ngModel` will always be a string.\n\t * Support for `select` models with non-string values is available via `ngOptions`.\n\t *\n\t * @element input\n\t * @param {string=} ngValue angular expression, whose value will be bound to the `value` attribute\n\t *   of the `input` element\n\t *\n\t * @example\n\t    <example name=\"ngValue-directive\" module=\"valueExample\">\n\t      <file name=\"index.html\">\n\t       <script>\n\t          angular.module('valueExample', [])\n\t            .controller('ExampleController', ['$scope', function($scope) {\n\t              $scope.names = ['pizza', 'unicorns', 'robots'];\n\t              $scope.my = { favorite: 'unicorns' };\n\t            }]);\n\t       </script>\n\t        <form ng-controller=\"ExampleController\">\n\t          <h2>Which is your favorite?</h2>\n\t            <label ng-repeat=\"name in names\" for=\"{{name}}\">\n\t              {{name}}\n\t              <input type=\"radio\"\n\t                     ng-model=\"my.favorite\"\n\t                     ng-value=\"name\"\n\t                     id=\"{{name}}\"\n\t                     name=\"favorite\">\n\t            </label>\n\t          <div>You chose {{my.favorite}}</div>\n\t        </form>\n\t      </file>\n\t      <file name=\"protractor.js\" type=\"protractor\">\n\t        var favorite = element(by.binding('my.favorite'));\n\n\t        it('should initialize to model', function() {\n\t          expect(favorite.getText()).toContain('unicorns');\n\t        });\n\t        it('should bind the values to the inputs', function() {\n\t          element.all(by.model('my.favorite')).get(0).click();\n\t          expect(favorite.getText()).toContain('pizza');\n\t        });\n\t      </file>\n\t    </example>\n\t */\n\tvar ngValueDirective = function() {\n\t  return {\n\t    restrict: 'A',\n\t    priority: 100,\n\t    compile: function(tpl, tplAttr) {\n\t      if (CONSTANT_VALUE_REGEXP.test(tplAttr.ngValue)) {\n\t        return function ngValueConstantLink(scope, elm, attr) {\n\t          attr.$set('value', scope.$eval(attr.ngValue));\n\t        };\n\t      } else {\n\t        return function ngValueLink(scope, elm, attr) {\n\t          scope.$watch(attr.ngValue, function valueWatchAction(value) {\n\t            attr.$set('value', value);\n\t          });\n\t        };\n\t      }\n\t    }\n\t  };\n\t};\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngBind\n\t * @restrict AC\n\t *\n\t * @description\n\t * The `ngBind` attribute tells Angular to replace the text content of the specified HTML element\n\t * with the value of a given expression, and to update the text content when the value of that\n\t * expression changes.\n\t *\n\t * Typically, you don't use `ngBind` directly, but instead you use the double curly markup like\n\t * `{{ expression }}` which is similar but less verbose.\n\t *\n\t * It is preferable to use `ngBind` instead of `{{ expression }}` if a template is momentarily\n\t * displayed by the browser in its raw state before Angular compiles it. Since `ngBind` is an\n\t * element attribute, it makes the bindings invisible to the user while the page is loading.\n\t *\n\t * An alternative solution to this problem would be using the\n\t * {@link ng.directive:ngCloak ngCloak} directive.\n\t *\n\t *\n\t * @element ANY\n\t * @param {expression} ngBind {@link guide/expression Expression} to evaluate.\n\t *\n\t * @example\n\t * Enter a name in the Live Preview text box; the greeting below the text box changes instantly.\n\t   <example module=\"bindExample\">\n\t     <file name=\"index.html\">\n\t       <script>\n\t         angular.module('bindExample', [])\n\t           .controller('ExampleController', ['$scope', function($scope) {\n\t             $scope.name = 'Whirled';\n\t           }]);\n\t       </script>\n\t       <div ng-controller=\"ExampleController\">\n\t         <label>Enter name: <input type=\"text\" ng-model=\"name\"></label><br>\n\t         Hello <span ng-bind=\"name\"></span>!\n\t       </div>\n\t     </file>\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t       it('should check ng-bind', function() {\n\t         var nameInput = element(by.model('name'));\n\n\t         expect(element(by.binding('name')).getText()).toBe('Whirled');\n\t         nameInput.clear();\n\t         nameInput.sendKeys('world');\n\t         expect(element(by.binding('name')).getText()).toBe('world');\n\t       });\n\t     </file>\n\t   </example>\n\t */\n\tvar ngBindDirective = ['$compile', function($compile) {\n\t  return {\n\t    restrict: 'AC',\n\t    compile: function ngBindCompile(templateElement) {\n\t      $compile.$$addBindingClass(templateElement);\n\t      return function ngBindLink(scope, element, attr) {\n\t        $compile.$$addBindingInfo(element, attr.ngBind);\n\t        element = element[0];\n\t        scope.$watch(attr.ngBind, function ngBindWatchAction(value) {\n\t          element.textContent = isUndefined(value) ? '' : value;\n\t        });\n\t      };\n\t    }\n\t  };\n\t}];\n\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngBindTemplate\n\t *\n\t * @description\n\t * The `ngBindTemplate` directive specifies that the element\n\t * text content should be replaced with the interpolation of the template\n\t * in the `ngBindTemplate` attribute.\n\t * Unlike `ngBind`, the `ngBindTemplate` can contain multiple `{{` `}}`\n\t * expressions. This directive is needed since some HTML elements\n\t * (such as TITLE and OPTION) cannot contain SPAN elements.\n\t *\n\t * @element ANY\n\t * @param {string} ngBindTemplate template of form\n\t *   <tt>{{</tt> <tt>expression</tt> <tt>}}</tt> to eval.\n\t *\n\t * @example\n\t * Try it here: enter text in text box and watch the greeting change.\n\t   <example module=\"bindExample\">\n\t     <file name=\"index.html\">\n\t       <script>\n\t         angular.module('bindExample', [])\n\t           .controller('ExampleController', ['$scope', function($scope) {\n\t             $scope.salutation = 'Hello';\n\t             $scope.name = 'World';\n\t           }]);\n\t       </script>\n\t       <div ng-controller=\"ExampleController\">\n\t        <label>Salutation: <input type=\"text\" ng-model=\"salutation\"></label><br>\n\t        <label>Name: <input type=\"text\" ng-model=\"name\"></label><br>\n\t        <pre ng-bind-template=\"{{salutation}} {{name}}!\"></pre>\n\t       </div>\n\t     </file>\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t       it('should check ng-bind', function() {\n\t         var salutationElem = element(by.binding('salutation'));\n\t         var salutationInput = element(by.model('salutation'));\n\t         var nameInput = element(by.model('name'));\n\n\t         expect(salutationElem.getText()).toBe('Hello World!');\n\n\t         salutationInput.clear();\n\t         salutationInput.sendKeys('Greetings');\n\t         nameInput.clear();\n\t         nameInput.sendKeys('user');\n\n\t         expect(salutationElem.getText()).toBe('Greetings user!');\n\t       });\n\t     </file>\n\t   </example>\n\t */\n\tvar ngBindTemplateDirective = ['$interpolate', '$compile', function($interpolate, $compile) {\n\t  return {\n\t    compile: function ngBindTemplateCompile(templateElement) {\n\t      $compile.$$addBindingClass(templateElement);\n\t      return function ngBindTemplateLink(scope, element, attr) {\n\t        var interpolateFn = $interpolate(element.attr(attr.$attr.ngBindTemplate));\n\t        $compile.$$addBindingInfo(element, interpolateFn.expressions);\n\t        element = element[0];\n\t        attr.$observe('ngBindTemplate', function(value) {\n\t          element.textContent = isUndefined(value) ? '' : value;\n\t        });\n\t      };\n\t    }\n\t  };\n\t}];\n\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngBindHtml\n\t *\n\t * @description\n\t * Evaluates the expression and inserts the resulting HTML into the element in a secure way. By default,\n\t * the resulting HTML content will be sanitized using the {@link ngSanitize.$sanitize $sanitize} service.\n\t * To utilize this functionality, ensure that `$sanitize` is available, for example, by including {@link\n\t * ngSanitize} in your module's dependencies (not in core Angular). In order to use {@link ngSanitize}\n\t * in your module's dependencies, you need to include \"angular-sanitize.js\" in your application.\n\t *\n\t * You may also bypass sanitization for values you know are safe. To do so, bind to\n\t * an explicitly trusted value via {@link ng.$sce#trustAsHtml $sce.trustAsHtml}.  See the example\n\t * under {@link ng.$sce#show-me-an-example-using-sce- Strict Contextual Escaping (SCE)}.\n\t *\n\t * Note: If a `$sanitize` service is unavailable and the bound value isn't explicitly trusted, you\n\t * will have an exception (instead of an exploit.)\n\t *\n\t * @element ANY\n\t * @param {expression} ngBindHtml {@link guide/expression Expression} to evaluate.\n\t *\n\t * @example\n\n\t   <example module=\"bindHtmlExample\" deps=\"angular-sanitize.js\">\n\t     <file name=\"index.html\">\n\t       <div ng-controller=\"ExampleController\">\n\t        <p ng-bind-html=\"myHTML\"></p>\n\t       </div>\n\t     </file>\n\n\t     <file name=\"script.js\">\n\t       angular.module('bindHtmlExample', ['ngSanitize'])\n\t         .controller('ExampleController', ['$scope', function($scope) {\n\t           $scope.myHTML =\n\t              'I am an <code>HTML</code>string with ' +\n\t              '<a href=\"#\">links!</a> and other <em>stuff</em>';\n\t         }]);\n\t     </file>\n\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t       it('should check ng-bind-html', function() {\n\t         expect(element(by.binding('myHTML')).getText()).toBe(\n\t             'I am an HTMLstring with links! and other stuff');\n\t       });\n\t     </file>\n\t   </example>\n\t */\n\tvar ngBindHtmlDirective = ['$sce', '$parse', '$compile', function($sce, $parse, $compile) {\n\t  return {\n\t    restrict: 'A',\n\t    compile: function ngBindHtmlCompile(tElement, tAttrs) {\n\t      var ngBindHtmlGetter = $parse(tAttrs.ngBindHtml);\n\t      var ngBindHtmlWatch = $parse(tAttrs.ngBindHtml, function getStringValue(value) {\n\t        return (value || '').toString();\n\t      });\n\t      $compile.$$addBindingClass(tElement);\n\n\t      return function ngBindHtmlLink(scope, element, attr) {\n\t        $compile.$$addBindingInfo(element, attr.ngBindHtml);\n\n\t        scope.$watch(ngBindHtmlWatch, function ngBindHtmlWatchAction() {\n\t          // we re-evaluate the expr because we want a TrustedValueHolderType\n\t          // for $sce, not a string\n\t          element.html($sce.getTrustedHtml(ngBindHtmlGetter(scope)) || '');\n\t        });\n\t      };\n\t    }\n\t  };\n\t}];\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngChange\n\t *\n\t * @description\n\t * Evaluate the given expression when the user changes the input.\n\t * The expression is evaluated immediately, unlike the JavaScript onchange event\n\t * which only triggers at the end of a change (usually, when the user leaves the\n\t * form element or presses the return key).\n\t *\n\t * The `ngChange` expression is only evaluated when a change in the input value causes\n\t * a new value to be committed to the model.\n\t *\n\t * It will not be evaluated:\n\t * * if the value returned from the `$parsers` transformation pipeline has not changed\n\t * * if the input has continued to be invalid since the model will stay `null`\n\t * * if the model is changed programmatically and not by a change to the input value\n\t *\n\t *\n\t * Note, this directive requires `ngModel` to be present.\n\t *\n\t * @element input\n\t * @param {expression} ngChange {@link guide/expression Expression} to evaluate upon change\n\t * in input value.\n\t *\n\t * @example\n\t * <example name=\"ngChange-directive\" module=\"changeExample\">\n\t *   <file name=\"index.html\">\n\t *     <script>\n\t *       angular.module('changeExample', [])\n\t *         .controller('ExampleController', ['$scope', function($scope) {\n\t *           $scope.counter = 0;\n\t *           $scope.change = function() {\n\t *             $scope.counter++;\n\t *           };\n\t *         }]);\n\t *     </script>\n\t *     <div ng-controller=\"ExampleController\">\n\t *       <input type=\"checkbox\" ng-model=\"confirmed\" ng-change=\"change()\" id=\"ng-change-example1\" />\n\t *       <input type=\"checkbox\" ng-model=\"confirmed\" id=\"ng-change-example2\" />\n\t *       <label for=\"ng-change-example2\">Confirmed</label><br />\n\t *       <tt>debug = {{confirmed}}</tt><br/>\n\t *       <tt>counter = {{counter}}</tt><br/>\n\t *     </div>\n\t *   </file>\n\t *   <file name=\"protractor.js\" type=\"protractor\">\n\t *     var counter = element(by.binding('counter'));\n\t *     var debug = element(by.binding('confirmed'));\n\t *\n\t *     it('should evaluate the expression if changing from view', function() {\n\t *       expect(counter.getText()).toContain('0');\n\t *\n\t *       element(by.id('ng-change-example1')).click();\n\t *\n\t *       expect(counter.getText()).toContain('1');\n\t *       expect(debug.getText()).toContain('true');\n\t *     });\n\t *\n\t *     it('should not evaluate the expression if changing from model', function() {\n\t *       element(by.id('ng-change-example2')).click();\n\n\t *       expect(counter.getText()).toContain('0');\n\t *       expect(debug.getText()).toContain('true');\n\t *     });\n\t *   </file>\n\t * </example>\n\t */\n\tvar ngChangeDirective = valueFn({\n\t  restrict: 'A',\n\t  require: 'ngModel',\n\t  link: function(scope, element, attr, ctrl) {\n\t    ctrl.$viewChangeListeners.push(function() {\n\t      scope.$eval(attr.ngChange);\n\t    });\n\t  }\n\t});\n\n\tfunction classDirective(name, selector) {\n\t  name = 'ngClass' + name;\n\t  return ['$animate', function($animate) {\n\t    return {\n\t      restrict: 'AC',\n\t      link: function(scope, element, attr) {\n\t        var oldVal;\n\n\t        scope.$watch(attr[name], ngClassWatchAction, true);\n\n\t        attr.$observe('class', function(value) {\n\t          ngClassWatchAction(scope.$eval(attr[name]));\n\t        });\n\n\n\t        if (name !== 'ngClass') {\n\t          scope.$watch('$index', function($index, old$index) {\n\t            // jshint bitwise: false\n\t            var mod = $index & 1;\n\t            if (mod !== (old$index & 1)) {\n\t              var classes = arrayClasses(scope.$eval(attr[name]));\n\t              mod === selector ?\n\t                addClasses(classes) :\n\t                removeClasses(classes);\n\t            }\n\t          });\n\t        }\n\n\t        function addClasses(classes) {\n\t          var newClasses = digestClassCounts(classes, 1);\n\t          attr.$addClass(newClasses);\n\t        }\n\n\t        function removeClasses(classes) {\n\t          var newClasses = digestClassCounts(classes, -1);\n\t          attr.$removeClass(newClasses);\n\t        }\n\n\t        function digestClassCounts(classes, count) {\n\t          // Use createMap() to prevent class assumptions involving property\n\t          // names in Object.prototype\n\t          var classCounts = element.data('$classCounts') || createMap();\n\t          var classesToUpdate = [];\n\t          forEach(classes, function(className) {\n\t            if (count > 0 || classCounts[className]) {\n\t              classCounts[className] = (classCounts[className] || 0) + count;\n\t              if (classCounts[className] === +(count > 0)) {\n\t                classesToUpdate.push(className);\n\t              }\n\t            }\n\t          });\n\t          element.data('$classCounts', classCounts);\n\t          return classesToUpdate.join(' ');\n\t        }\n\n\t        function updateClasses(oldClasses, newClasses) {\n\t          var toAdd = arrayDifference(newClasses, oldClasses);\n\t          var toRemove = arrayDifference(oldClasses, newClasses);\n\t          toAdd = digestClassCounts(toAdd, 1);\n\t          toRemove = digestClassCounts(toRemove, -1);\n\t          if (toAdd && toAdd.length) {\n\t            $animate.addClass(element, toAdd);\n\t          }\n\t          if (toRemove && toRemove.length) {\n\t            $animate.removeClass(element, toRemove);\n\t          }\n\t        }\n\n\t        function ngClassWatchAction(newVal) {\n\t          if (selector === true || scope.$index % 2 === selector) {\n\t            var newClasses = arrayClasses(newVal || []);\n\t            if (!oldVal) {\n\t              addClasses(newClasses);\n\t            } else if (!equals(newVal,oldVal)) {\n\t              var oldClasses = arrayClasses(oldVal);\n\t              updateClasses(oldClasses, newClasses);\n\t            }\n\t          }\n\t          oldVal = shallowCopy(newVal);\n\t        }\n\t      }\n\t    };\n\n\t    function arrayDifference(tokens1, tokens2) {\n\t      var values = [];\n\n\t      outer:\n\t      for (var i = 0; i < tokens1.length; i++) {\n\t        var token = tokens1[i];\n\t        for (var j = 0; j < tokens2.length; j++) {\n\t          if (token == tokens2[j]) continue outer;\n\t        }\n\t        values.push(token);\n\t      }\n\t      return values;\n\t    }\n\n\t    function arrayClasses(classVal) {\n\t      var classes = [];\n\t      if (isArray(classVal)) {\n\t        forEach(classVal, function(v) {\n\t          classes = classes.concat(arrayClasses(v));\n\t        });\n\t        return classes;\n\t      } else if (isString(classVal)) {\n\t        return classVal.split(' ');\n\t      } else if (isObject(classVal)) {\n\t        forEach(classVal, function(v, k) {\n\t          if (v) {\n\t            classes = classes.concat(k.split(' '));\n\t          }\n\t        });\n\t        return classes;\n\t      }\n\t      return classVal;\n\t    }\n\t  }];\n\t}\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngClass\n\t * @restrict AC\n\t *\n\t * @description\n\t * The `ngClass` directive allows you to dynamically set CSS classes on an HTML element by databinding\n\t * an expression that represents all classes to be added.\n\t *\n\t * The directive operates in three different ways, depending on which of three types the expression\n\t * evaluates to:\n\t *\n\t * 1. If the expression evaluates to a string, the string should be one or more space-delimited class\n\t * names.\n\t *\n\t * 2. If the expression evaluates to an object, then for each key-value pair of the\n\t * object with a truthy value the corresponding key is used as a class name.\n\t *\n\t * 3. If the expression evaluates to an array, each element of the array should either be a string as in\n\t * type 1 or an object as in type 2. This means that you can mix strings and objects together in an array\n\t * to give you more control over what CSS classes appear. See the code below for an example of this.\n\t *\n\t *\n\t * The directive won't add duplicate classes if a particular class was already set.\n\t *\n\t * When the expression changes, the previously added classes are removed and only then are the\n\t * new classes added.\n\t *\n\t * @animations\n\t * **add** - happens just before the class is applied to the elements\n\t *\n\t * **remove** - happens just before the class is removed from the element\n\t *\n\t * @element ANY\n\t * @param {expression} ngClass {@link guide/expression Expression} to eval. The result\n\t *   of the evaluation can be a string representing space delimited class\n\t *   names, an array, or a map of class names to boolean values. In the case of a map, the\n\t *   names of the properties whose values are truthy will be added as css classes to the\n\t *   element.\n\t *\n\t * @example Example that demonstrates basic bindings via ngClass directive.\n\t   <example>\n\t     <file name=\"index.html\">\n\t       <p ng-class=\"{strike: deleted, bold: important, 'has-error': error}\">Map Syntax Example</p>\n\t       <label>\n\t          <input type=\"checkbox\" ng-model=\"deleted\">\n\t          deleted (apply \"strike\" class)\n\t       </label><br>\n\t       <label>\n\t          <input type=\"checkbox\" ng-model=\"important\">\n\t          important (apply \"bold\" class)\n\t       </label><br>\n\t       <label>\n\t          <input type=\"checkbox\" ng-model=\"error\">\n\t          error (apply \"has-error\" class)\n\t       </label>\n\t       <hr>\n\t       <p ng-class=\"style\">Using String Syntax</p>\n\t       <input type=\"text\" ng-model=\"style\"\n\t              placeholder=\"Type: bold strike red\" aria-label=\"Type: bold strike red\">\n\t       <hr>\n\t       <p ng-class=\"[style1, style2, style3]\">Using Array Syntax</p>\n\t       <input ng-model=\"style1\"\n\t              placeholder=\"Type: bold, strike or red\" aria-label=\"Type: bold, strike or red\"><br>\n\t       <input ng-model=\"style2\"\n\t              placeholder=\"Type: bold, strike or red\" aria-label=\"Type: bold, strike or red 2\"><br>\n\t       <input ng-model=\"style3\"\n\t              placeholder=\"Type: bold, strike or red\" aria-label=\"Type: bold, strike or red 3\"><br>\n\t       <hr>\n\t       <p ng-class=\"[style4, {orange: warning}]\">Using Array and Map Syntax</p>\n\t       <input ng-model=\"style4\" placeholder=\"Type: bold, strike\" aria-label=\"Type: bold, strike\"><br>\n\t       <label><input type=\"checkbox\" ng-model=\"warning\"> warning (apply \"orange\" class)</label>\n\t     </file>\n\t     <file name=\"style.css\">\n\t       .strike {\n\t           text-decoration: line-through;\n\t       }\n\t       .bold {\n\t           font-weight: bold;\n\t       }\n\t       .red {\n\t           color: red;\n\t       }\n\t       .has-error {\n\t           color: red;\n\t           background-color: yellow;\n\t       }\n\t       .orange {\n\t           color: orange;\n\t       }\n\t     </file>\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t       var ps = element.all(by.css('p'));\n\n\t       it('should let you toggle the class', function() {\n\n\t         expect(ps.first().getAttribute('class')).not.toMatch(/bold/);\n\t         expect(ps.first().getAttribute('class')).not.toMatch(/has-error/);\n\n\t         element(by.model('important')).click();\n\t         expect(ps.first().getAttribute('class')).toMatch(/bold/);\n\n\t         element(by.model('error')).click();\n\t         expect(ps.first().getAttribute('class')).toMatch(/has-error/);\n\t       });\n\n\t       it('should let you toggle string example', function() {\n\t         expect(ps.get(1).getAttribute('class')).toBe('');\n\t         element(by.model('style')).clear();\n\t         element(by.model('style')).sendKeys('red');\n\t         expect(ps.get(1).getAttribute('class')).toBe('red');\n\t       });\n\n\t       it('array example should have 3 classes', function() {\n\t         expect(ps.get(2).getAttribute('class')).toBe('');\n\t         element(by.model('style1')).sendKeys('bold');\n\t         element(by.model('style2')).sendKeys('strike');\n\t         element(by.model('style3')).sendKeys('red');\n\t         expect(ps.get(2).getAttribute('class')).toBe('bold strike red');\n\t       });\n\n\t       it('array with map example should have 2 classes', function() {\n\t         expect(ps.last().getAttribute('class')).toBe('');\n\t         element(by.model('style4')).sendKeys('bold');\n\t         element(by.model('warning')).click();\n\t         expect(ps.last().getAttribute('class')).toBe('bold orange');\n\t       });\n\t     </file>\n\t   </example>\n\n\t   ## Animations\n\n\t   The example below demonstrates how to perform animations using ngClass.\n\n\t   <example module=\"ngAnimate\" deps=\"angular-animate.js\" animations=\"true\">\n\t     <file name=\"index.html\">\n\t      <input id=\"setbtn\" type=\"button\" value=\"set\" ng-click=\"myVar='my-class'\">\n\t      <input id=\"clearbtn\" type=\"button\" value=\"clear\" ng-click=\"myVar=''\">\n\t      <br>\n\t      <span class=\"base-class\" ng-class=\"myVar\">Sample Text</span>\n\t     </file>\n\t     <file name=\"style.css\">\n\t       .base-class {\n\t         transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;\n\t       }\n\n\t       .base-class.my-class {\n\t         color: red;\n\t         font-size:3em;\n\t       }\n\t     </file>\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t       it('should check ng-class', function() {\n\t         expect(element(by.css('.base-class')).getAttribute('class')).not.\n\t           toMatch(/my-class/);\n\n\t         element(by.id('setbtn')).click();\n\n\t         expect(element(by.css('.base-class')).getAttribute('class')).\n\t           toMatch(/my-class/);\n\n\t         element(by.id('clearbtn')).click();\n\n\t         expect(element(by.css('.base-class')).getAttribute('class')).not.\n\t           toMatch(/my-class/);\n\t       });\n\t     </file>\n\t   </example>\n\n\n\t   ## ngClass and pre-existing CSS3 Transitions/Animations\n\t   The ngClass directive still supports CSS3 Transitions/Animations even if they do not follow the ngAnimate CSS naming structure.\n\t   Upon animation ngAnimate will apply supplementary CSS classes to track the start and end of an animation, but this will not hinder\n\t   any pre-existing CSS transitions already on the element. To get an idea of what happens during a class-based animation, be sure\n\t   to view the step by step details of {@link $animate#addClass $animate.addClass} and\n\t   {@link $animate#removeClass $animate.removeClass}.\n\t */\n\tvar ngClassDirective = classDirective('', true);\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngClassOdd\n\t * @restrict AC\n\t *\n\t * @description\n\t * The `ngClassOdd` and `ngClassEven` directives work exactly as\n\t * {@link ng.directive:ngClass ngClass}, except they work in\n\t * conjunction with `ngRepeat` and take effect only on odd (even) rows.\n\t *\n\t * This directive can be applied only within the scope of an\n\t * {@link ng.directive:ngRepeat ngRepeat}.\n\t *\n\t * @element ANY\n\t * @param {expression} ngClassOdd {@link guide/expression Expression} to eval. The result\n\t *   of the evaluation can be a string representing space delimited class names or an array.\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t        <ol ng-init=\"names=['John', 'Mary', 'Cate', 'Suz']\">\n\t          <li ng-repeat=\"name in names\">\n\t           <span ng-class-odd=\"'odd'\" ng-class-even=\"'even'\">\n\t             {{name}}\n\t           </span>\n\t          </li>\n\t        </ol>\n\t     </file>\n\t     <file name=\"style.css\">\n\t       .odd {\n\t         color: red;\n\t       }\n\t       .even {\n\t         color: blue;\n\t       }\n\t     </file>\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t       it('should check ng-class-odd and ng-class-even', function() {\n\t         expect(element(by.repeater('name in names').row(0).column('name')).getAttribute('class')).\n\t           toMatch(/odd/);\n\t         expect(element(by.repeater('name in names').row(1).column('name')).getAttribute('class')).\n\t           toMatch(/even/);\n\t       });\n\t     </file>\n\t   </example>\n\t */\n\tvar ngClassOddDirective = classDirective('Odd', 0);\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngClassEven\n\t * @restrict AC\n\t *\n\t * @description\n\t * The `ngClassOdd` and `ngClassEven` directives work exactly as\n\t * {@link ng.directive:ngClass ngClass}, except they work in\n\t * conjunction with `ngRepeat` and take effect only on odd (even) rows.\n\t *\n\t * This directive can be applied only within the scope of an\n\t * {@link ng.directive:ngRepeat ngRepeat}.\n\t *\n\t * @element ANY\n\t * @param {expression} ngClassEven {@link guide/expression Expression} to eval. The\n\t *   result of the evaluation can be a string representing space delimited class names or an array.\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t        <ol ng-init=\"names=['John', 'Mary', 'Cate', 'Suz']\">\n\t          <li ng-repeat=\"name in names\">\n\t           <span ng-class-odd=\"'odd'\" ng-class-even=\"'even'\">\n\t             {{name}} &nbsp; &nbsp; &nbsp;\n\t           </span>\n\t          </li>\n\t        </ol>\n\t     </file>\n\t     <file name=\"style.css\">\n\t       .odd {\n\t         color: red;\n\t       }\n\t       .even {\n\t         color: blue;\n\t       }\n\t     </file>\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t       it('should check ng-class-odd and ng-class-even', function() {\n\t         expect(element(by.repeater('name in names').row(0).column('name')).getAttribute('class')).\n\t           toMatch(/odd/);\n\t         expect(element(by.repeater('name in names').row(1).column('name')).getAttribute('class')).\n\t           toMatch(/even/);\n\t       });\n\t     </file>\n\t   </example>\n\t */\n\tvar ngClassEvenDirective = classDirective('Even', 1);\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngCloak\n\t * @restrict AC\n\t *\n\t * @description\n\t * The `ngCloak` directive is used to prevent the Angular html template from being briefly\n\t * displayed by the browser in its raw (uncompiled) form while your application is loading. Use this\n\t * directive to avoid the undesirable flicker effect caused by the html template display.\n\t *\n\t * The directive can be applied to the `<body>` element, but the preferred usage is to apply\n\t * multiple `ngCloak` directives to small portions of the page to permit progressive rendering\n\t * of the browser view.\n\t *\n\t * `ngCloak` works in cooperation with the following css rule embedded within `angular.js` and\n\t * `angular.min.js`.\n\t * For CSP mode please add `angular-csp.css` to your html file (see {@link ng.directive:ngCsp ngCsp}).\n\t *\n\t * ```css\n\t * [ng\\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak {\n\t *   display: none !important;\n\t * }\n\t * ```\n\t *\n\t * When this css rule is loaded by the browser, all html elements (including their children) that\n\t * are tagged with the `ngCloak` directive are hidden. When Angular encounters this directive\n\t * during the compilation of the template it deletes the `ngCloak` element attribute, making\n\t * the compiled element visible.\n\t *\n\t * For the best result, the `angular.js` script must be loaded in the head section of the html\n\t * document; alternatively, the css rule above must be included in the external stylesheet of the\n\t * application.\n\t *\n\t * @element ANY\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t        <div id=\"template1\" ng-cloak>{{ 'hello' }}</div>\n\t        <div id=\"template2\" class=\"ng-cloak\">{{ 'world' }}</div>\n\t     </file>\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t       it('should remove the template directive and css class', function() {\n\t         expect($('#template1').getAttribute('ng-cloak')).\n\t           toBeNull();\n\t         expect($('#template2').getAttribute('ng-cloak')).\n\t           toBeNull();\n\t       });\n\t     </file>\n\t   </example>\n\t *\n\t */\n\tvar ngCloakDirective = ngDirective({\n\t  compile: function(element, attr) {\n\t    attr.$set('ngCloak', undefined);\n\t    element.removeClass('ng-cloak');\n\t  }\n\t});\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngController\n\t *\n\t * @description\n\t * The `ngController` directive attaches a controller class to the view. This is a key aspect of how angular\n\t * supports the principles behind the Model-View-Controller design pattern.\n\t *\n\t * MVC components in angular:\n\t *\n\t * * Model — Models are the properties of a scope; scopes are attached to the DOM where scope properties\n\t *   are accessed through bindings.\n\t * * View — The template (HTML with data bindings) that is rendered into the View.\n\t * * Controller — The `ngController` directive specifies a Controller class; the class contains business\n\t *   logic behind the application to decorate the scope with functions and values\n\t *\n\t * Note that you can also attach controllers to the DOM by declaring it in a route definition\n\t * via the {@link ngRoute.$route $route} service. A common mistake is to declare the controller\n\t * again using `ng-controller` in the template itself.  This will cause the controller to be attached\n\t * and executed twice.\n\t *\n\t * @element ANY\n\t * @scope\n\t * @priority 500\n\t * @param {expression} ngController Name of a constructor function registered with the current\n\t * {@link ng.$controllerProvider $controllerProvider} or an {@link guide/expression expression}\n\t * that on the current scope evaluates to a constructor function.\n\t *\n\t * The controller instance can be published into a scope property by specifying\n\t * `ng-controller=\"as propertyName\"`.\n\t *\n\t * If the current `$controllerProvider` is configured to use globals (via\n\t * {@link ng.$controllerProvider#allowGlobals `$controllerProvider.allowGlobals()` }), this may\n\t * also be the name of a globally accessible constructor function (not recommended).\n\t *\n\t * @example\n\t * Here is a simple form for editing user contact information. Adding, removing, clearing, and\n\t * greeting are methods declared on the controller (see source tab). These methods can\n\t * easily be called from the angular markup. Any changes to the data are automatically reflected\n\t * in the View without the need for a manual update.\n\t *\n\t * Two different declaration styles are included below:\n\t *\n\t * * one binds methods and properties directly onto the controller using `this`:\n\t * `ng-controller=\"SettingsController1 as settings\"`\n\t * * one injects `$scope` into the controller:\n\t * `ng-controller=\"SettingsController2\"`\n\t *\n\t * The second option is more common in the Angular community, and is generally used in boilerplates\n\t * and in this guide. However, there are advantages to binding properties directly to the controller\n\t * and avoiding scope.\n\t *\n\t * * Using `controller as` makes it obvious which controller you are accessing in the template when\n\t * multiple controllers apply to an element.\n\t * * If you are writing your controllers as classes you have easier access to the properties and\n\t * methods, which will appear on the scope, from inside the controller code.\n\t * * Since there is always a `.` in the bindings, you don't have to worry about prototypal\n\t * inheritance masking primitives.\n\t *\n\t * This example demonstrates the `controller as` syntax.\n\t *\n\t * <example name=\"ngControllerAs\" module=\"controllerAsExample\">\n\t *   <file name=\"index.html\">\n\t *    <div id=\"ctrl-as-exmpl\" ng-controller=\"SettingsController1 as settings\">\n\t *      <label>Name: <input type=\"text\" ng-model=\"settings.name\"/></label>\n\t *      <button ng-click=\"settings.greet()\">greet</button><br/>\n\t *      Contact:\n\t *      <ul>\n\t *        <li ng-repeat=\"contact in settings.contacts\">\n\t *          <select ng-model=\"contact.type\" aria-label=\"Contact method\" id=\"select_{{$index}}\">\n\t *             <option>phone</option>\n\t *             <option>email</option>\n\t *          </select>\n\t *          <input type=\"text\" ng-model=\"contact.value\" aria-labelledby=\"select_{{$index}}\" />\n\t *          <button ng-click=\"settings.clearContact(contact)\">clear</button>\n\t *          <button ng-click=\"settings.removeContact(contact)\" aria-label=\"Remove\">X</button>\n\t *        </li>\n\t *        <li><button ng-click=\"settings.addContact()\">add</button></li>\n\t *     </ul>\n\t *    </div>\n\t *   </file>\n\t *   <file name=\"app.js\">\n\t *    angular.module('controllerAsExample', [])\n\t *      .controller('SettingsController1', SettingsController1);\n\t *\n\t *    function SettingsController1() {\n\t *      this.name = \"John Smith\";\n\t *      this.contacts = [\n\t *        {type: 'phone', value: '408 555 1212'},\n\t *        {type: 'email', value: 'john.smith@example.org'} ];\n\t *    }\n\t *\n\t *    SettingsController1.prototype.greet = function() {\n\t *      alert(this.name);\n\t *    };\n\t *\n\t *    SettingsController1.prototype.addContact = function() {\n\t *      this.contacts.push({type: 'email', value: 'yourname@example.org'});\n\t *    };\n\t *\n\t *    SettingsController1.prototype.removeContact = function(contactToRemove) {\n\t *     var index = this.contacts.indexOf(contactToRemove);\n\t *      this.contacts.splice(index, 1);\n\t *    };\n\t *\n\t *    SettingsController1.prototype.clearContact = function(contact) {\n\t *      contact.type = 'phone';\n\t *      contact.value = '';\n\t *    };\n\t *   </file>\n\t *   <file name=\"protractor.js\" type=\"protractor\">\n\t *     it('should check controller as', function() {\n\t *       var container = element(by.id('ctrl-as-exmpl'));\n\t *         expect(container.element(by.model('settings.name'))\n\t *           .getAttribute('value')).toBe('John Smith');\n\t *\n\t *       var firstRepeat =\n\t *           container.element(by.repeater('contact in settings.contacts').row(0));\n\t *       var secondRepeat =\n\t *           container.element(by.repeater('contact in settings.contacts').row(1));\n\t *\n\t *       expect(firstRepeat.element(by.model('contact.value')).getAttribute('value'))\n\t *           .toBe('408 555 1212');\n\t *\n\t *       expect(secondRepeat.element(by.model('contact.value')).getAttribute('value'))\n\t *           .toBe('john.smith@example.org');\n\t *\n\t *       firstRepeat.element(by.buttonText('clear')).click();\n\t *\n\t *       expect(firstRepeat.element(by.model('contact.value')).getAttribute('value'))\n\t *           .toBe('');\n\t *\n\t *       container.element(by.buttonText('add')).click();\n\t *\n\t *       expect(container.element(by.repeater('contact in settings.contacts').row(2))\n\t *           .element(by.model('contact.value'))\n\t *           .getAttribute('value'))\n\t *           .toBe('yourname@example.org');\n\t *     });\n\t *   </file>\n\t * </example>\n\t *\n\t * This example demonstrates the \"attach to `$scope`\" style of controller.\n\t *\n\t * <example name=\"ngController\" module=\"controllerExample\">\n\t *  <file name=\"index.html\">\n\t *   <div id=\"ctrl-exmpl\" ng-controller=\"SettingsController2\">\n\t *     <label>Name: <input type=\"text\" ng-model=\"name\"/></label>\n\t *     <button ng-click=\"greet()\">greet</button><br/>\n\t *     Contact:\n\t *     <ul>\n\t *       <li ng-repeat=\"contact in contacts\">\n\t *         <select ng-model=\"contact.type\" id=\"select_{{$index}}\">\n\t *            <option>phone</option>\n\t *            <option>email</option>\n\t *         </select>\n\t *         <input type=\"text\" ng-model=\"contact.value\" aria-labelledby=\"select_{{$index}}\" />\n\t *         <button ng-click=\"clearContact(contact)\">clear</button>\n\t *         <button ng-click=\"removeContact(contact)\">X</button>\n\t *       </li>\n\t *       <li>[ <button ng-click=\"addContact()\">add</button> ]</li>\n\t *    </ul>\n\t *   </div>\n\t *  </file>\n\t *  <file name=\"app.js\">\n\t *   angular.module('controllerExample', [])\n\t *     .controller('SettingsController2', ['$scope', SettingsController2]);\n\t *\n\t *   function SettingsController2($scope) {\n\t *     $scope.name = \"John Smith\";\n\t *     $scope.contacts = [\n\t *       {type:'phone', value:'408 555 1212'},\n\t *       {type:'email', value:'john.smith@example.org'} ];\n\t *\n\t *     $scope.greet = function() {\n\t *       alert($scope.name);\n\t *     };\n\t *\n\t *     $scope.addContact = function() {\n\t *       $scope.contacts.push({type:'email', value:'yourname@example.org'});\n\t *     };\n\t *\n\t *     $scope.removeContact = function(contactToRemove) {\n\t *       var index = $scope.contacts.indexOf(contactToRemove);\n\t *       $scope.contacts.splice(index, 1);\n\t *     };\n\t *\n\t *     $scope.clearContact = function(contact) {\n\t *       contact.type = 'phone';\n\t *       contact.value = '';\n\t *     };\n\t *   }\n\t *  </file>\n\t *  <file name=\"protractor.js\" type=\"protractor\">\n\t *    it('should check controller', function() {\n\t *      var container = element(by.id('ctrl-exmpl'));\n\t *\n\t *      expect(container.element(by.model('name'))\n\t *          .getAttribute('value')).toBe('John Smith');\n\t *\n\t *      var firstRepeat =\n\t *          container.element(by.repeater('contact in contacts').row(0));\n\t *      var secondRepeat =\n\t *          container.element(by.repeater('contact in contacts').row(1));\n\t *\n\t *      expect(firstRepeat.element(by.model('contact.value')).getAttribute('value'))\n\t *          .toBe('408 555 1212');\n\t *      expect(secondRepeat.element(by.model('contact.value')).getAttribute('value'))\n\t *          .toBe('john.smith@example.org');\n\t *\n\t *      firstRepeat.element(by.buttonText('clear')).click();\n\t *\n\t *      expect(firstRepeat.element(by.model('contact.value')).getAttribute('value'))\n\t *          .toBe('');\n\t *\n\t *      container.element(by.buttonText('add')).click();\n\t *\n\t *      expect(container.element(by.repeater('contact in contacts').row(2))\n\t *          .element(by.model('contact.value'))\n\t *          .getAttribute('value'))\n\t *          .toBe('yourname@example.org');\n\t *    });\n\t *  </file>\n\t *</example>\n\n\t */\n\tvar ngControllerDirective = [function() {\n\t  return {\n\t    restrict: 'A',\n\t    scope: true,\n\t    controller: '@',\n\t    priority: 500\n\t  };\n\t}];\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngCsp\n\t *\n\t * @element html\n\t * @description\n\t *\n\t * Angular has some features that can break certain\n\t * [CSP (Content Security Policy)](https://developer.mozilla.org/en/Security/CSP) rules.\n\t *\n\t * If you intend to implement these rules then you must tell Angular not to use these features.\n\t *\n\t * This is necessary when developing things like Google Chrome Extensions or Universal Windows Apps.\n\t *\n\t *\n\t * The following rules affect Angular:\n\t *\n\t * * `unsafe-eval`: this rule forbids apps to use `eval` or `Function(string)` generated functions\n\t * (among other things). Angular makes use of this in the {@link $parse} service to provide a 30%\n\t * increase in the speed of evaluating Angular expressions.\n\t *\n\t * * `unsafe-inline`: this rule forbids apps from inject custom styles into the document. Angular\n\t * makes use of this to include some CSS rules (e.g. {@link ngCloak} and {@link ngHide}).\n\t * To make these directives work when a CSP rule is blocking inline styles, you must link to the\n\t * `angular-csp.css` in your HTML manually.\n\t *\n\t * If you do not provide `ngCsp` then Angular tries to autodetect if CSP is blocking unsafe-eval\n\t * and automatically deactivates this feature in the {@link $parse} service. This autodetection,\n\t * however, triggers a CSP error to be logged in the console:\n\t *\n\t * ```\n\t * Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of\n\t * script in the following Content Security Policy directive: \"default-src 'self'\". Note that\n\t * 'script-src' was not explicitly set, so 'default-src' is used as a fallback.\n\t * ```\n\t *\n\t * This error is harmless but annoying. To prevent the error from showing up, put the `ngCsp`\n\t * directive on an element of the HTML document that appears before the `<script>` tag that loads\n\t * the `angular.js` file.\n\t *\n\t * *Note: This directive is only available in the `ng-csp` and `data-ng-csp` attribute form.*\n\t *\n\t * You can specify which of the CSP related Angular features should be deactivated by providing\n\t * a value for the `ng-csp` attribute. The options are as follows:\n\t *\n\t * * no-inline-style: this stops Angular from injecting CSS styles into the DOM\n\t *\n\t * * no-unsafe-eval: this stops Angular from optimising $parse with unsafe eval of strings\n\t *\n\t * You can use these values in the following combinations:\n\t *\n\t *\n\t * * No declaration means that Angular will assume that you can do inline styles, but it will do\n\t * a runtime check for unsafe-eval. E.g. `<body>`. This is backwardly compatible with previous versions\n\t * of Angular.\n\t *\n\t * * A simple `ng-csp` (or `data-ng-csp`) attribute will tell Angular to deactivate both inline\n\t * styles and unsafe eval. E.g. `<body ng-csp>`. This is backwardly compatible with previous versions\n\t * of Angular.\n\t *\n\t * * Specifying only `no-unsafe-eval` tells Angular that we must not use eval, but that we can inject\n\t * inline styles. E.g. `<body ng-csp=\"no-unsafe-eval\">`.\n\t *\n\t * * Specifying only `no-inline-style` tells Angular that we must not inject styles, but that we can\n\t * run eval - no automcatic check for unsafe eval will occur. E.g. `<body ng-csp=\"no-inline-style\">`\n\t *\n\t * * Specifying both `no-unsafe-eval` and `no-inline-style` tells Angular that we must not inject\n\t * styles nor use eval, which is the same as an empty: ng-csp.\n\t * E.g.`<body ng-csp=\"no-inline-style;no-unsafe-eval\">`\n\t *\n\t * @example\n\t * This example shows how to apply the `ngCsp` directive to the `html` tag.\n\t   ```html\n\t     <!doctype html>\n\t     <html ng-app ng-csp>\n\t     ...\n\t     ...\n\t     </html>\n\t   ```\n\t  * @example\n\t      // Note: the suffix `.csp` in the example name triggers\n\t      // csp mode in our http server!\n\t      <example name=\"example.csp\" module=\"cspExample\" ng-csp=\"true\">\n\t        <file name=\"index.html\">\n\t          <div ng-controller=\"MainController as ctrl\">\n\t            <div>\n\t              <button ng-click=\"ctrl.inc()\" id=\"inc\">Increment</button>\n\t              <span id=\"counter\">\n\t                {{ctrl.counter}}\n\t              </span>\n\t            </div>\n\n\t            <div>\n\t              <button ng-click=\"ctrl.evil()\" id=\"evil\">Evil</button>\n\t              <span id=\"evilError\">\n\t                {{ctrl.evilError}}\n\t              </span>\n\t            </div>\n\t          </div>\n\t        </file>\n\t        <file name=\"script.js\">\n\t           angular.module('cspExample', [])\n\t             .controller('MainController', function() {\n\t                this.counter = 0;\n\t                this.inc = function() {\n\t                  this.counter++;\n\t                };\n\t                this.evil = function() {\n\t                  // jshint evil:true\n\t                  try {\n\t                    eval('1+2');\n\t                  } catch (e) {\n\t                    this.evilError = e.message;\n\t                  }\n\t                };\n\t              });\n\t        </file>\n\t        <file name=\"protractor.js\" type=\"protractor\">\n\t          var util, webdriver;\n\n\t          var incBtn = element(by.id('inc'));\n\t          var counter = element(by.id('counter'));\n\t          var evilBtn = element(by.id('evil'));\n\t          var evilError = element(by.id('evilError'));\n\n\t          function getAndClearSevereErrors() {\n\t            return browser.manage().logs().get('browser').then(function(browserLog) {\n\t              return browserLog.filter(function(logEntry) {\n\t                return logEntry.level.value > webdriver.logging.Level.WARNING.value;\n\t              });\n\t            });\n\t          }\n\n\t          function clearErrors() {\n\t            getAndClearSevereErrors();\n\t          }\n\n\t          function expectNoErrors() {\n\t            getAndClearSevereErrors().then(function(filteredLog) {\n\t              expect(filteredLog.length).toEqual(0);\n\t              if (filteredLog.length) {\n\t                console.log('browser console errors: ' + util.inspect(filteredLog));\n\t              }\n\t            });\n\t          }\n\n\t          function expectError(regex) {\n\t            getAndClearSevereErrors().then(function(filteredLog) {\n\t              var found = false;\n\t              filteredLog.forEach(function(log) {\n\t                if (log.message.match(regex)) {\n\t                  found = true;\n\t                }\n\t              });\n\t              if (!found) {\n\t                throw new Error('expected an error that matches ' + regex);\n\t              }\n\t            });\n\t          }\n\n\t          beforeEach(function() {\n\t            util = require('util');\n\t            webdriver = require('protractor/node_modules/selenium-webdriver');\n\t          });\n\n\t          // For now, we only test on Chrome,\n\t          // as Safari does not load the page with Protractor's injected scripts,\n\t          // and Firefox webdriver always disables content security policy (#6358)\n\t          if (browser.params.browser !== 'chrome') {\n\t            return;\n\t          }\n\n\t          it('should not report errors when the page is loaded', function() {\n\t            // clear errors so we are not dependent on previous tests\n\t            clearErrors();\n\t            // Need to reload the page as the page is already loaded when\n\t            // we come here\n\t            browser.driver.getCurrentUrl().then(function(url) {\n\t              browser.get(url);\n\t            });\n\t            expectNoErrors();\n\t          });\n\n\t          it('should evaluate expressions', function() {\n\t            expect(counter.getText()).toEqual('0');\n\t            incBtn.click();\n\t            expect(counter.getText()).toEqual('1');\n\t            expectNoErrors();\n\t          });\n\n\t          it('should throw and report an error when using \"eval\"', function() {\n\t            evilBtn.click();\n\t            expect(evilError.getText()).toMatch(/Content Security Policy/);\n\t            expectError(/Content Security Policy/);\n\t          });\n\t        </file>\n\t      </example>\n\t  */\n\n\t// ngCsp is not implemented as a proper directive any more, because we need it be processed while we\n\t// bootstrap the system (before $parse is instantiated), for this reason we just have\n\t// the csp() fn that looks for the `ng-csp` attribute anywhere in the current doc\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngClick\n\t *\n\t * @description\n\t * The ngClick directive allows you to specify custom behavior when\n\t * an element is clicked.\n\t *\n\t * @element ANY\n\t * @priority 0\n\t * @param {expression} ngClick {@link guide/expression Expression} to evaluate upon\n\t * click. ({@link guide/expression#-event- Event object is available as `$event`})\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t      <button ng-click=\"count = count + 1\" ng-init=\"count=0\">\n\t        Increment\n\t      </button>\n\t      <span>\n\t        count: {{count}}\n\t      </span>\n\t     </file>\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t       it('should check ng-click', function() {\n\t         expect(element(by.binding('count')).getText()).toMatch('0');\n\t         element(by.css('button')).click();\n\t         expect(element(by.binding('count')).getText()).toMatch('1');\n\t       });\n\t     </file>\n\t   </example>\n\t */\n\t/*\n\t * A collection of directives that allows creation of custom event handlers that are defined as\n\t * angular expressions and are compiled and executed within the current scope.\n\t */\n\tvar ngEventDirectives = {};\n\n\t// For events that might fire synchronously during DOM manipulation\n\t// we need to execute their event handlers asynchronously using $evalAsync,\n\t// so that they are not executed in an inconsistent state.\n\tvar forceAsyncEvents = {\n\t  'blur': true,\n\t  'focus': true\n\t};\n\tforEach(\n\t  'click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste'.split(' '),\n\t  function(eventName) {\n\t    var directiveName = directiveNormalize('ng-' + eventName);\n\t    ngEventDirectives[directiveName] = ['$parse', '$rootScope', function($parse, $rootScope) {\n\t      return {\n\t        restrict: 'A',\n\t        compile: function($element, attr) {\n\t          // We expose the powerful $event object on the scope that provides access to the Window,\n\t          // etc. that isn't protected by the fast paths in $parse.  We explicitly request better\n\t          // checks at the cost of speed since event handler expressions are not executed as\n\t          // frequently as regular change detection.\n\t          var fn = $parse(attr[directiveName], /* interceptorFn */ null, /* expensiveChecks */ true);\n\t          return function ngEventHandler(scope, element) {\n\t            element.on(eventName, function(event) {\n\t              var callback = function() {\n\t                fn(scope, {$event:event});\n\t              };\n\t              if (forceAsyncEvents[eventName] && $rootScope.$$phase) {\n\t                scope.$evalAsync(callback);\n\t              } else {\n\t                scope.$apply(callback);\n\t              }\n\t            });\n\t          };\n\t        }\n\t      };\n\t    }];\n\t  }\n\t);\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngDblclick\n\t *\n\t * @description\n\t * The `ngDblclick` directive allows you to specify custom behavior on a dblclick event.\n\t *\n\t * @element ANY\n\t * @priority 0\n\t * @param {expression} ngDblclick {@link guide/expression Expression} to evaluate upon\n\t * a dblclick. (The Event object is available as `$event`)\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t      <button ng-dblclick=\"count = count + 1\" ng-init=\"count=0\">\n\t        Increment (on double click)\n\t      </button>\n\t      count: {{count}}\n\t     </file>\n\t   </example>\n\t */\n\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngMousedown\n\t *\n\t * @description\n\t * The ngMousedown directive allows you to specify custom behavior on mousedown event.\n\t *\n\t * @element ANY\n\t * @priority 0\n\t * @param {expression} ngMousedown {@link guide/expression Expression} to evaluate upon\n\t * mousedown. ({@link guide/expression#-event- Event object is available as `$event`})\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t      <button ng-mousedown=\"count = count + 1\" ng-init=\"count=0\">\n\t        Increment (on mouse down)\n\t      </button>\n\t      count: {{count}}\n\t     </file>\n\t   </example>\n\t */\n\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngMouseup\n\t *\n\t * @description\n\t * Specify custom behavior on mouseup event.\n\t *\n\t * @element ANY\n\t * @priority 0\n\t * @param {expression} ngMouseup {@link guide/expression Expression} to evaluate upon\n\t * mouseup. ({@link guide/expression#-event- Event object is available as `$event`})\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t      <button ng-mouseup=\"count = count + 1\" ng-init=\"count=0\">\n\t        Increment (on mouse up)\n\t      </button>\n\t      count: {{count}}\n\t     </file>\n\t   </example>\n\t */\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngMouseover\n\t *\n\t * @description\n\t * Specify custom behavior on mouseover event.\n\t *\n\t * @element ANY\n\t * @priority 0\n\t * @param {expression} ngMouseover {@link guide/expression Expression} to evaluate upon\n\t * mouseover. ({@link guide/expression#-event- Event object is available as `$event`})\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t      <button ng-mouseover=\"count = count + 1\" ng-init=\"count=0\">\n\t        Increment (when mouse is over)\n\t      </button>\n\t      count: {{count}}\n\t     </file>\n\t   </example>\n\t */\n\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngMouseenter\n\t *\n\t * @description\n\t * Specify custom behavior on mouseenter event.\n\t *\n\t * @element ANY\n\t * @priority 0\n\t * @param {expression} ngMouseenter {@link guide/expression Expression} to evaluate upon\n\t * mouseenter. ({@link guide/expression#-event- Event object is available as `$event`})\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t      <button ng-mouseenter=\"count = count + 1\" ng-init=\"count=0\">\n\t        Increment (when mouse enters)\n\t      </button>\n\t      count: {{count}}\n\t     </file>\n\t   </example>\n\t */\n\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngMouseleave\n\t *\n\t * @description\n\t * Specify custom behavior on mouseleave event.\n\t *\n\t * @element ANY\n\t * @priority 0\n\t * @param {expression} ngMouseleave {@link guide/expression Expression} to evaluate upon\n\t * mouseleave. ({@link guide/expression#-event- Event object is available as `$event`})\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t      <button ng-mouseleave=\"count = count + 1\" ng-init=\"count=0\">\n\t        Increment (when mouse leaves)\n\t      </button>\n\t      count: {{count}}\n\t     </file>\n\t   </example>\n\t */\n\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngMousemove\n\t *\n\t * @description\n\t * Specify custom behavior on mousemove event.\n\t *\n\t * @element ANY\n\t * @priority 0\n\t * @param {expression} ngMousemove {@link guide/expression Expression} to evaluate upon\n\t * mousemove. ({@link guide/expression#-event- Event object is available as `$event`})\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t      <button ng-mousemove=\"count = count + 1\" ng-init=\"count=0\">\n\t        Increment (when mouse moves)\n\t      </button>\n\t      count: {{count}}\n\t     </file>\n\t   </example>\n\t */\n\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngKeydown\n\t *\n\t * @description\n\t * Specify custom behavior on keydown event.\n\t *\n\t * @element ANY\n\t * @priority 0\n\t * @param {expression} ngKeydown {@link guide/expression Expression} to evaluate upon\n\t * keydown. (Event object is available as `$event` and can be interrogated for keyCode, altKey, etc.)\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t      <input ng-keydown=\"count = count + 1\" ng-init=\"count=0\">\n\t      key down count: {{count}}\n\t     </file>\n\t   </example>\n\t */\n\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngKeyup\n\t *\n\t * @description\n\t * Specify custom behavior on keyup event.\n\t *\n\t * @element ANY\n\t * @priority 0\n\t * @param {expression} ngKeyup {@link guide/expression Expression} to evaluate upon\n\t * keyup. (Event object is available as `$event` and can be interrogated for keyCode, altKey, etc.)\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t       <p>Typing in the input box below updates the key count</p>\n\t       <input ng-keyup=\"count = count + 1\" ng-init=\"count=0\"> key up count: {{count}}\n\n\t       <p>Typing in the input box below updates the keycode</p>\n\t       <input ng-keyup=\"event=$event\">\n\t       <p>event keyCode: {{ event.keyCode }}</p>\n\t       <p>event altKey: {{ event.altKey }}</p>\n\t     </file>\n\t   </example>\n\t */\n\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngKeypress\n\t *\n\t * @description\n\t * Specify custom behavior on keypress event.\n\t *\n\t * @element ANY\n\t * @param {expression} ngKeypress {@link guide/expression Expression} to evaluate upon\n\t * keypress. ({@link guide/expression#-event- Event object is available as `$event`}\n\t * and can be interrogated for keyCode, altKey, etc.)\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t      <input ng-keypress=\"count = count + 1\" ng-init=\"count=0\">\n\t      key press count: {{count}}\n\t     </file>\n\t   </example>\n\t */\n\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngSubmit\n\t *\n\t * @description\n\t * Enables binding angular expressions to onsubmit events.\n\t *\n\t * Additionally it prevents the default action (which for form means sending the request to the\n\t * server and reloading the current page), but only if the form does not contain `action`,\n\t * `data-action`, or `x-action` attributes.\n\t *\n\t * <div class=\"alert alert-warning\">\n\t * **Warning:** Be careful not to cause \"double-submission\" by using both the `ngClick` and\n\t * `ngSubmit` handlers together. See the\n\t * {@link form#submitting-a-form-and-preventing-the-default-action `form` directive documentation}\n\t * for a detailed discussion of when `ngSubmit` may be triggered.\n\t * </div>\n\t *\n\t * @element form\n\t * @priority 0\n\t * @param {expression} ngSubmit {@link guide/expression Expression} to eval.\n\t * ({@link guide/expression#-event- Event object is available as `$event`})\n\t *\n\t * @example\n\t   <example module=\"submitExample\">\n\t     <file name=\"index.html\">\n\t      <script>\n\t        angular.module('submitExample', [])\n\t          .controller('ExampleController', ['$scope', function($scope) {\n\t            $scope.list = [];\n\t            $scope.text = 'hello';\n\t            $scope.submit = function() {\n\t              if ($scope.text) {\n\t                $scope.list.push(this.text);\n\t                $scope.text = '';\n\t              }\n\t            };\n\t          }]);\n\t      </script>\n\t      <form ng-submit=\"submit()\" ng-controller=\"ExampleController\">\n\t        Enter text and hit enter:\n\t        <input type=\"text\" ng-model=\"text\" name=\"text\" />\n\t        <input type=\"submit\" id=\"submit\" value=\"Submit\" />\n\t        <pre>list={{list}}</pre>\n\t      </form>\n\t     </file>\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t       it('should check ng-submit', function() {\n\t         expect(element(by.binding('list')).getText()).toBe('list=[]');\n\t         element(by.css('#submit')).click();\n\t         expect(element(by.binding('list')).getText()).toContain('hello');\n\t         expect(element(by.model('text')).getAttribute('value')).toBe('');\n\t       });\n\t       it('should ignore empty strings', function() {\n\t         expect(element(by.binding('list')).getText()).toBe('list=[]');\n\t         element(by.css('#submit')).click();\n\t         element(by.css('#submit')).click();\n\t         expect(element(by.binding('list')).getText()).toContain('hello');\n\t        });\n\t     </file>\n\t   </example>\n\t */\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngFocus\n\t *\n\t * @description\n\t * Specify custom behavior on focus event.\n\t *\n\t * Note: As the `focus` event is executed synchronously when calling `input.focus()`\n\t * AngularJS executes the expression using `scope.$evalAsync` if the event is fired\n\t * during an `$apply` to ensure a consistent state.\n\t *\n\t * @element window, input, select, textarea, a\n\t * @priority 0\n\t * @param {expression} ngFocus {@link guide/expression Expression} to evaluate upon\n\t * focus. ({@link guide/expression#-event- Event object is available as `$event`})\n\t *\n\t * @example\n\t * See {@link ng.directive:ngClick ngClick}\n\t */\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngBlur\n\t *\n\t * @description\n\t * Specify custom behavior on blur event.\n\t *\n\t * A [blur event](https://developer.mozilla.org/en-US/docs/Web/Events/blur) fires when\n\t * an element has lost focus.\n\t *\n\t * Note: As the `blur` event is executed synchronously also during DOM manipulations\n\t * (e.g. removing a focussed input),\n\t * AngularJS executes the expression using `scope.$evalAsync` if the event is fired\n\t * during an `$apply` to ensure a consistent state.\n\t *\n\t * @element window, input, select, textarea, a\n\t * @priority 0\n\t * @param {expression} ngBlur {@link guide/expression Expression} to evaluate upon\n\t * blur. ({@link guide/expression#-event- Event object is available as `$event`})\n\t *\n\t * @example\n\t * See {@link ng.directive:ngClick ngClick}\n\t */\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngCopy\n\t *\n\t * @description\n\t * Specify custom behavior on copy event.\n\t *\n\t * @element window, input, select, textarea, a\n\t * @priority 0\n\t * @param {expression} ngCopy {@link guide/expression Expression} to evaluate upon\n\t * copy. ({@link guide/expression#-event- Event object is available as `$event`})\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t      <input ng-copy=\"copied=true\" ng-init=\"copied=false; value='copy me'\" ng-model=\"value\">\n\t      copied: {{copied}}\n\t     </file>\n\t   </example>\n\t */\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngCut\n\t *\n\t * @description\n\t * Specify custom behavior on cut event.\n\t *\n\t * @element window, input, select, textarea, a\n\t * @priority 0\n\t * @param {expression} ngCut {@link guide/expression Expression} to evaluate upon\n\t * cut. ({@link guide/expression#-event- Event object is available as `$event`})\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t      <input ng-cut=\"cut=true\" ng-init=\"cut=false; value='cut me'\" ng-model=\"value\">\n\t      cut: {{cut}}\n\t     </file>\n\t   </example>\n\t */\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngPaste\n\t *\n\t * @description\n\t * Specify custom behavior on paste event.\n\t *\n\t * @element window, input, select, textarea, a\n\t * @priority 0\n\t * @param {expression} ngPaste {@link guide/expression Expression} to evaluate upon\n\t * paste. ({@link guide/expression#-event- Event object is available as `$event`})\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t      <input ng-paste=\"paste=true\" ng-init=\"paste=false\" placeholder='paste here'>\n\t      pasted: {{paste}}\n\t     </file>\n\t   </example>\n\t */\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngIf\n\t * @restrict A\n\t * @multiElement\n\t *\n\t * @description\n\t * The `ngIf` directive removes or recreates a portion of the DOM tree based on an\n\t * {expression}. If the expression assigned to `ngIf` evaluates to a false\n\t * value then the element is removed from the DOM, otherwise a clone of the\n\t * element is reinserted into the DOM.\n\t *\n\t * `ngIf` differs from `ngShow` and `ngHide` in that `ngIf` completely removes and recreates the\n\t * element in the DOM rather than changing its visibility via the `display` css property.  A common\n\t * case when this difference is significant is when using css selectors that rely on an element's\n\t * position within the DOM, such as the `:first-child` or `:last-child` pseudo-classes.\n\t *\n\t * Note that when an element is removed using `ngIf` its scope is destroyed and a new scope\n\t * is created when the element is restored.  The scope created within `ngIf` inherits from\n\t * its parent scope using\n\t * [prototypal inheritance](https://github.com/angular/angular.js/wiki/Understanding-Scopes#javascript-prototypal-inheritance).\n\t * An important implication of this is if `ngModel` is used within `ngIf` to bind to\n\t * a javascript primitive defined in the parent scope. In this case any modifications made to the\n\t * variable within the child scope will override (hide) the value in the parent scope.\n\t *\n\t * Also, `ngIf` recreates elements using their compiled state. An example of this behavior\n\t * is if an element's class attribute is directly modified after it's compiled, using something like\n\t * jQuery's `.addClass()` method, and the element is later removed. When `ngIf` recreates the element\n\t * the added class will be lost because the original compiled state is used to regenerate the element.\n\t *\n\t * Additionally, you can provide animations via the `ngAnimate` module to animate the `enter`\n\t * and `leave` effects.\n\t *\n\t * @animations\n\t * enter - happens just after the `ngIf` contents change and a new DOM element is created and injected into the `ngIf` container\n\t * leave - happens just before the `ngIf` contents are removed from the DOM\n\t *\n\t * @element ANY\n\t * @scope\n\t * @priority 600\n\t * @param {expression} ngIf If the {@link guide/expression expression} is falsy then\n\t *     the element is removed from the DOM tree. If it is truthy a copy of the compiled\n\t *     element is added to the DOM tree.\n\t *\n\t * @example\n\t  <example module=\"ngAnimate\" deps=\"angular-animate.js\" animations=\"true\">\n\t    <file name=\"index.html\">\n\t      <label>Click me: <input type=\"checkbox\" ng-model=\"checked\" ng-init=\"checked=true\" /></label><br/>\n\t      Show when checked:\n\t      <span ng-if=\"checked\" class=\"animate-if\">\n\t        This is removed when the checkbox is unchecked.\n\t      </span>\n\t    </file>\n\t    <file name=\"animations.css\">\n\t      .animate-if {\n\t        background:white;\n\t        border:1px solid black;\n\t        padding:10px;\n\t      }\n\n\t      .animate-if.ng-enter, .animate-if.ng-leave {\n\t        transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;\n\t      }\n\n\t      .animate-if.ng-enter,\n\t      .animate-if.ng-leave.ng-leave-active {\n\t        opacity:0;\n\t      }\n\n\t      .animate-if.ng-leave,\n\t      .animate-if.ng-enter.ng-enter-active {\n\t        opacity:1;\n\t      }\n\t    </file>\n\t  </example>\n\t */\n\tvar ngIfDirective = ['$animate', function($animate) {\n\t  return {\n\t    multiElement: true,\n\t    transclude: 'element',\n\t    priority: 600,\n\t    terminal: true,\n\t    restrict: 'A',\n\t    $$tlb: true,\n\t    link: function($scope, $element, $attr, ctrl, $transclude) {\n\t        var block, childScope, previousElements;\n\t        $scope.$watch($attr.ngIf, function ngIfWatchAction(value) {\n\n\t          if (value) {\n\t            if (!childScope) {\n\t              $transclude(function(clone, newScope) {\n\t                childScope = newScope;\n\t                clone[clone.length++] = document.createComment(' end ngIf: ' + $attr.ngIf + ' ');\n\t                // Note: We only need the first/last node of the cloned nodes.\n\t                // However, we need to keep the reference to the jqlite wrapper as it might be changed later\n\t                // by a directive with templateUrl when its template arrives.\n\t                block = {\n\t                  clone: clone\n\t                };\n\t                $animate.enter(clone, $element.parent(), $element);\n\t              });\n\t            }\n\t          } else {\n\t            if (previousElements) {\n\t              previousElements.remove();\n\t              previousElements = null;\n\t            }\n\t            if (childScope) {\n\t              childScope.$destroy();\n\t              childScope = null;\n\t            }\n\t            if (block) {\n\t              previousElements = getBlockNodes(block.clone);\n\t              $animate.leave(previousElements).then(function() {\n\t                previousElements = null;\n\t              });\n\t              block = null;\n\t            }\n\t          }\n\t        });\n\t    }\n\t  };\n\t}];\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngInclude\n\t * @restrict ECA\n\t *\n\t * @description\n\t * Fetches, compiles and includes an external HTML fragment.\n\t *\n\t * By default, the template URL is restricted to the same domain and protocol as the\n\t * application document. This is done by calling {@link $sce#getTrustedResourceUrl\n\t * $sce.getTrustedResourceUrl} on it. To load templates from other domains or protocols\n\t * you may either {@link ng.$sceDelegateProvider#resourceUrlWhitelist whitelist them} or\n\t * {@link $sce#trustAsResourceUrl wrap them} as trusted values. Refer to Angular's {@link\n\t * ng.$sce Strict Contextual Escaping}.\n\t *\n\t * In addition, the browser's\n\t * [Same Origin Policy](https://code.google.com/p/browsersec/wiki/Part2#Same-origin_policy_for_XMLHttpRequest)\n\t * and [Cross-Origin Resource Sharing (CORS)](http://www.w3.org/TR/cors/)\n\t * policy may further restrict whether the template is successfully loaded.\n\t * For example, `ngInclude` won't work for cross-domain requests on all browsers and for `file://`\n\t * access on some browsers.\n\t *\n\t * @animations\n\t * enter - animation is used to bring new content into the browser.\n\t * leave - animation is used to animate existing content away.\n\t *\n\t * The enter and leave animation occur concurrently.\n\t *\n\t * @scope\n\t * @priority 400\n\t *\n\t * @param {string} ngInclude|src angular expression evaluating to URL. If the source is a string constant,\n\t *                 make sure you wrap it in **single** quotes, e.g. `src=\"'myPartialTemplate.html'\"`.\n\t * @param {string=} onload Expression to evaluate when a new partial is loaded.\n\t *                  <div class=\"alert alert-warning\">\n\t *                  **Note:** When using onload on SVG elements in IE11, the browser will try to call\n\t *                  a function with the name on the window element, which will usually throw a\n\t *                  \"function is undefined\" error. To fix this, you can instead use `data-onload` or a\n\t *                  different form that {@link guide/directive#normalization matches} `onload`.\n\t *                  </div>\n\t   *\n\t * @param {string=} autoscroll Whether `ngInclude` should call {@link ng.$anchorScroll\n\t *                  $anchorScroll} to scroll the viewport after the content is loaded.\n\t *\n\t *                  - If the attribute is not set, disable scrolling.\n\t *                  - If the attribute is set without value, enable scrolling.\n\t *                  - Otherwise enable scrolling only if the expression evaluates to truthy value.\n\t *\n\t * @example\n\t  <example module=\"includeExample\" deps=\"angular-animate.js\" animations=\"true\">\n\t    <file name=\"index.html\">\n\t     <div ng-controller=\"ExampleController\">\n\t       <select ng-model=\"template\" ng-options=\"t.name for t in templates\">\n\t        <option value=\"\">(blank)</option>\n\t       </select>\n\t       url of the template: <code>{{template.url}}</code>\n\t       <hr/>\n\t       <div class=\"slide-animate-container\">\n\t         <div class=\"slide-animate\" ng-include=\"template.url\"></div>\n\t       </div>\n\t     </div>\n\t    </file>\n\t    <file name=\"script.js\">\n\t      angular.module('includeExample', ['ngAnimate'])\n\t        .controller('ExampleController', ['$scope', function($scope) {\n\t          $scope.templates =\n\t            [ { name: 'template1.html', url: 'template1.html'},\n\t              { name: 'template2.html', url: 'template2.html'} ];\n\t          $scope.template = $scope.templates[0];\n\t        }]);\n\t     </file>\n\t    <file name=\"template1.html\">\n\t      Content of template1.html\n\t    </file>\n\t    <file name=\"template2.html\">\n\t      Content of template2.html\n\t    </file>\n\t    <file name=\"animations.css\">\n\t      .slide-animate-container {\n\t        position:relative;\n\t        background:white;\n\t        border:1px solid black;\n\t        height:40px;\n\t        overflow:hidden;\n\t      }\n\n\t      .slide-animate {\n\t        padding:10px;\n\t      }\n\n\t      .slide-animate.ng-enter, .slide-animate.ng-leave {\n\t        transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;\n\n\t        position:absolute;\n\t        top:0;\n\t        left:0;\n\t        right:0;\n\t        bottom:0;\n\t        display:block;\n\t        padding:10px;\n\t      }\n\n\t      .slide-animate.ng-enter {\n\t        top:-50px;\n\t      }\n\t      .slide-animate.ng-enter.ng-enter-active {\n\t        top:0;\n\t      }\n\n\t      .slide-animate.ng-leave {\n\t        top:0;\n\t      }\n\t      .slide-animate.ng-leave.ng-leave-active {\n\t        top:50px;\n\t      }\n\t    </file>\n\t    <file name=\"protractor.js\" type=\"protractor\">\n\t      var templateSelect = element(by.model('template'));\n\t      var includeElem = element(by.css('[ng-include]'));\n\n\t      it('should load template1.html', function() {\n\t        expect(includeElem.getText()).toMatch(/Content of template1.html/);\n\t      });\n\n\t      it('should load template2.html', function() {\n\t        if (browser.params.browser == 'firefox') {\n\t          // Firefox can't handle using selects\n\t          // See https://github.com/angular/protractor/issues/480\n\t          return;\n\t        }\n\t        templateSelect.click();\n\t        templateSelect.all(by.css('option')).get(2).click();\n\t        expect(includeElem.getText()).toMatch(/Content of template2.html/);\n\t      });\n\n\t      it('should change to blank', function() {\n\t        if (browser.params.browser == 'firefox') {\n\t          // Firefox can't handle using selects\n\t          return;\n\t        }\n\t        templateSelect.click();\n\t        templateSelect.all(by.css('option')).get(0).click();\n\t        expect(includeElem.isPresent()).toBe(false);\n\t      });\n\t    </file>\n\t  </example>\n\t */\n\n\n\t/**\n\t * @ngdoc event\n\t * @name ngInclude#$includeContentRequested\n\t * @eventType emit on the scope ngInclude was declared in\n\t * @description\n\t * Emitted every time the ngInclude content is requested.\n\t *\n\t * @param {Object} angularEvent Synthetic event object.\n\t * @param {String} src URL of content to load.\n\t */\n\n\n\t/**\n\t * @ngdoc event\n\t * @name ngInclude#$includeContentLoaded\n\t * @eventType emit on the current ngInclude scope\n\t * @description\n\t * Emitted every time the ngInclude content is reloaded.\n\t *\n\t * @param {Object} angularEvent Synthetic event object.\n\t * @param {String} src URL of content to load.\n\t */\n\n\n\t/**\n\t * @ngdoc event\n\t * @name ngInclude#$includeContentError\n\t * @eventType emit on the scope ngInclude was declared in\n\t * @description\n\t * Emitted when a template HTTP request yields an erroneous response (status < 200 || status > 299)\n\t *\n\t * @param {Object} angularEvent Synthetic event object.\n\t * @param {String} src URL of content to load.\n\t */\n\tvar ngIncludeDirective = ['$templateRequest', '$anchorScroll', '$animate',\n\t                  function($templateRequest,   $anchorScroll,   $animate) {\n\t  return {\n\t    restrict: 'ECA',\n\t    priority: 400,\n\t    terminal: true,\n\t    transclude: 'element',\n\t    controller: angular.noop,\n\t    compile: function(element, attr) {\n\t      var srcExp = attr.ngInclude || attr.src,\n\t          onloadExp = attr.onload || '',\n\t          autoScrollExp = attr.autoscroll;\n\n\t      return function(scope, $element, $attr, ctrl, $transclude) {\n\t        var changeCounter = 0,\n\t            currentScope,\n\t            previousElement,\n\t            currentElement;\n\n\t        var cleanupLastIncludeContent = function() {\n\t          if (previousElement) {\n\t            previousElement.remove();\n\t            previousElement = null;\n\t          }\n\t          if (currentScope) {\n\t            currentScope.$destroy();\n\t            currentScope = null;\n\t          }\n\t          if (currentElement) {\n\t            $animate.leave(currentElement).then(function() {\n\t              previousElement = null;\n\t            });\n\t            previousElement = currentElement;\n\t            currentElement = null;\n\t          }\n\t        };\n\n\t        scope.$watch(srcExp, function ngIncludeWatchAction(src) {\n\t          var afterAnimation = function() {\n\t            if (isDefined(autoScrollExp) && (!autoScrollExp || scope.$eval(autoScrollExp))) {\n\t              $anchorScroll();\n\t            }\n\t          };\n\t          var thisChangeId = ++changeCounter;\n\n\t          if (src) {\n\t            //set the 2nd param to true to ignore the template request error so that the inner\n\t            //contents and scope can be cleaned up.\n\t            $templateRequest(src, true).then(function(response) {\n\t              if (thisChangeId !== changeCounter) return;\n\t              var newScope = scope.$new();\n\t              ctrl.template = response;\n\n\t              // Note: This will also link all children of ng-include that were contained in the original\n\t              // html. If that content contains controllers, ... they could pollute/change the scope.\n\t              // However, using ng-include on an element with additional content does not make sense...\n\t              // Note: We can't remove them in the cloneAttchFn of $transclude as that\n\t              // function is called before linking the content, which would apply child\n\t              // directives to non existing elements.\n\t              var clone = $transclude(newScope, function(clone) {\n\t                cleanupLastIncludeContent();\n\t                $animate.enter(clone, null, $element).then(afterAnimation);\n\t              });\n\n\t              currentScope = newScope;\n\t              currentElement = clone;\n\n\t              currentScope.$emit('$includeContentLoaded', src);\n\t              scope.$eval(onloadExp);\n\t            }, function() {\n\t              if (thisChangeId === changeCounter) {\n\t                cleanupLastIncludeContent();\n\t                scope.$emit('$includeContentError', src);\n\t              }\n\t            });\n\t            scope.$emit('$includeContentRequested', src);\n\t          } else {\n\t            cleanupLastIncludeContent();\n\t            ctrl.template = null;\n\t          }\n\t        });\n\t      };\n\t    }\n\t  };\n\t}];\n\n\t// This directive is called during the $transclude call of the first `ngInclude` directive.\n\t// It will replace and compile the content of the element with the loaded template.\n\t// We need this directive so that the element content is already filled when\n\t// the link function of another directive on the same element as ngInclude\n\t// is called.\n\tvar ngIncludeFillContentDirective = ['$compile',\n\t  function($compile) {\n\t    return {\n\t      restrict: 'ECA',\n\t      priority: -400,\n\t      require: 'ngInclude',\n\t      link: function(scope, $element, $attr, ctrl) {\n\t        if (/SVG/.test($element[0].toString())) {\n\t          // WebKit: https://bugs.webkit.org/show_bug.cgi?id=135698 --- SVG elements do not\n\t          // support innerHTML, so detect this here and try to generate the contents\n\t          // specially.\n\t          $element.empty();\n\t          $compile(jqLiteBuildFragment(ctrl.template, document).childNodes)(scope,\n\t              function namespaceAdaptedClone(clone) {\n\t            $element.append(clone);\n\t          }, {futureParentElement: $element});\n\t          return;\n\t        }\n\n\t        $element.html(ctrl.template);\n\t        $compile($element.contents())(scope);\n\t      }\n\t    };\n\t  }];\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngInit\n\t * @restrict AC\n\t *\n\t * @description\n\t * The `ngInit` directive allows you to evaluate an expression in the\n\t * current scope.\n\t *\n\t * <div class=\"alert alert-danger\">\n\t * This directive can be abused to add unnecessary amounts of logic into your templates.\n\t * There are only a few appropriate uses of `ngInit`, such as for aliasing special properties of\n\t * {@link ng.directive:ngRepeat `ngRepeat`}, as seen in the demo below; and for injecting data via\n\t * server side scripting. Besides these few cases, you should use {@link guide/controller controllers}\n\t * rather than `ngInit` to initialize values on a scope.\n\t * </div>\n\t *\n\t * <div class=\"alert alert-warning\">\n\t * **Note**: If you have assignment in `ngInit` along with a {@link ng.$filter `filter`}, make\n\t * sure you have parentheses to ensure correct operator precedence:\n\t * <pre class=\"prettyprint\">\n\t * `<div ng-init=\"test1 = ($index | toString)\"></div>`\n\t * </pre>\n\t * </div>\n\t *\n\t * @priority 450\n\t *\n\t * @element ANY\n\t * @param {expression} ngInit {@link guide/expression Expression} to eval.\n\t *\n\t * @example\n\t   <example module=\"initExample\">\n\t     <file name=\"index.html\">\n\t   <script>\n\t     angular.module('initExample', [])\n\t       .controller('ExampleController', ['$scope', function($scope) {\n\t         $scope.list = [['a', 'b'], ['c', 'd']];\n\t       }]);\n\t   </script>\n\t   <div ng-controller=\"ExampleController\">\n\t     <div ng-repeat=\"innerList in list\" ng-init=\"outerIndex = $index\">\n\t       <div ng-repeat=\"value in innerList\" ng-init=\"innerIndex = $index\">\n\t          <span class=\"example-init\">list[ {{outerIndex}} ][ {{innerIndex}} ] = {{value}};</span>\n\t       </div>\n\t     </div>\n\t   </div>\n\t     </file>\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t       it('should alias index positions', function() {\n\t         var elements = element.all(by.css('.example-init'));\n\t         expect(elements.get(0).getText()).toBe('list[ 0 ][ 0 ] = a;');\n\t         expect(elements.get(1).getText()).toBe('list[ 0 ][ 1 ] = b;');\n\t         expect(elements.get(2).getText()).toBe('list[ 1 ][ 0 ] = c;');\n\t         expect(elements.get(3).getText()).toBe('list[ 1 ][ 1 ] = d;');\n\t       });\n\t     </file>\n\t   </example>\n\t */\n\tvar ngInitDirective = ngDirective({\n\t  priority: 450,\n\t  compile: function() {\n\t    return {\n\t      pre: function(scope, element, attrs) {\n\t        scope.$eval(attrs.ngInit);\n\t      }\n\t    };\n\t  }\n\t});\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngList\n\t *\n\t * @description\n\t * Text input that converts between a delimited string and an array of strings. The default\n\t * delimiter is a comma followed by a space - equivalent to `ng-list=\", \"`. You can specify a custom\n\t * delimiter as the value of the `ngList` attribute - for example, `ng-list=\" | \"`.\n\t *\n\t * The behaviour of the directive is affected by the use of the `ngTrim` attribute.\n\t * * If `ngTrim` is set to `\"false\"` then whitespace around both the separator and each\n\t *   list item is respected. This implies that the user of the directive is responsible for\n\t *   dealing with whitespace but also allows you to use whitespace as a delimiter, such as a\n\t *   tab or newline character.\n\t * * Otherwise whitespace around the delimiter is ignored when splitting (although it is respected\n\t *   when joining the list items back together) and whitespace around each list item is stripped\n\t *   before it is added to the model.\n\t *\n\t * ### Example with Validation\n\t *\n\t * <example name=\"ngList-directive\" module=\"listExample\">\n\t *   <file name=\"app.js\">\n\t *      angular.module('listExample', [])\n\t *        .controller('ExampleController', ['$scope', function($scope) {\n\t *          $scope.names = ['morpheus', 'neo', 'trinity'];\n\t *        }]);\n\t *   </file>\n\t *   <file name=\"index.html\">\n\t *    <form name=\"myForm\" ng-controller=\"ExampleController\">\n\t *      <label>List: <input name=\"namesInput\" ng-model=\"names\" ng-list required></label>\n\t *      <span role=\"alert\">\n\t *        <span class=\"error\" ng-show=\"myForm.namesInput.$error.required\">\n\t *        Required!</span>\n\t *      </span>\n\t *      <br>\n\t *      <tt>names = {{names}}</tt><br/>\n\t *      <tt>myForm.namesInput.$valid = {{myForm.namesInput.$valid}}</tt><br/>\n\t *      <tt>myForm.namesInput.$error = {{myForm.namesInput.$error}}</tt><br/>\n\t *      <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>\n\t *      <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>\n\t *     </form>\n\t *   </file>\n\t *   <file name=\"protractor.js\" type=\"protractor\">\n\t *     var listInput = element(by.model('names'));\n\t *     var names = element(by.exactBinding('names'));\n\t *     var valid = element(by.binding('myForm.namesInput.$valid'));\n\t *     var error = element(by.css('span.error'));\n\t *\n\t *     it('should initialize to model', function() {\n\t *       expect(names.getText()).toContain('[\"morpheus\",\"neo\",\"trinity\"]');\n\t *       expect(valid.getText()).toContain('true');\n\t *       expect(error.getCssValue('display')).toBe('none');\n\t *     });\n\t *\n\t *     it('should be invalid if empty', function() {\n\t *       listInput.clear();\n\t *       listInput.sendKeys('');\n\t *\n\t *       expect(names.getText()).toContain('');\n\t *       expect(valid.getText()).toContain('false');\n\t *       expect(error.getCssValue('display')).not.toBe('none');\n\t *     });\n\t *   </file>\n\t * </example>\n\t *\n\t * ### Example - splitting on newline\n\t * <example name=\"ngList-directive-newlines\">\n\t *   <file name=\"index.html\">\n\t *    <textarea ng-model=\"list\" ng-list=\"&#10;\" ng-trim=\"false\"></textarea>\n\t *    <pre>{{ list | json }}</pre>\n\t *   </file>\n\t *   <file name=\"protractor.js\" type=\"protractor\">\n\t *     it(\"should split the text by newlines\", function() {\n\t *       var listInput = element(by.model('list'));\n\t *       var output = element(by.binding('list | json'));\n\t *       listInput.sendKeys('abc\\ndef\\nghi');\n\t *       expect(output.getText()).toContain('[\\n  \"abc\",\\n  \"def\",\\n  \"ghi\"\\n]');\n\t *     });\n\t *   </file>\n\t * </example>\n\t *\n\t * @element input\n\t * @param {string=} ngList optional delimiter that should be used to split the value.\n\t */\n\tvar ngListDirective = function() {\n\t  return {\n\t    restrict: 'A',\n\t    priority: 100,\n\t    require: 'ngModel',\n\t    link: function(scope, element, attr, ctrl) {\n\t      // We want to control whitespace trimming so we use this convoluted approach\n\t      // to access the ngList attribute, which doesn't pre-trim the attribute\n\t      var ngList = element.attr(attr.$attr.ngList) || ', ';\n\t      var trimValues = attr.ngTrim !== 'false';\n\t      var separator = trimValues ? trim(ngList) : ngList;\n\n\t      var parse = function(viewValue) {\n\t        // If the viewValue is invalid (say required but empty) it will be `undefined`\n\t        if (isUndefined(viewValue)) return;\n\n\t        var list = [];\n\n\t        if (viewValue) {\n\t          forEach(viewValue.split(separator), function(value) {\n\t            if (value) list.push(trimValues ? trim(value) : value);\n\t          });\n\t        }\n\n\t        return list;\n\t      };\n\n\t      ctrl.$parsers.push(parse);\n\t      ctrl.$formatters.push(function(value) {\n\t        if (isArray(value)) {\n\t          return value.join(ngList);\n\t        }\n\n\t        return undefined;\n\t      });\n\n\t      // Override the standard $isEmpty because an empty array means the input is empty.\n\t      ctrl.$isEmpty = function(value) {\n\t        return !value || !value.length;\n\t      };\n\t    }\n\t  };\n\t};\n\n\t/* global VALID_CLASS: true,\n\t  INVALID_CLASS: true,\n\t  PRISTINE_CLASS: true,\n\t  DIRTY_CLASS: true,\n\t  UNTOUCHED_CLASS: true,\n\t  TOUCHED_CLASS: true,\n\t*/\n\n\tvar VALID_CLASS = 'ng-valid',\n\t    INVALID_CLASS = 'ng-invalid',\n\t    PRISTINE_CLASS = 'ng-pristine',\n\t    DIRTY_CLASS = 'ng-dirty',\n\t    UNTOUCHED_CLASS = 'ng-untouched',\n\t    TOUCHED_CLASS = 'ng-touched',\n\t    PENDING_CLASS = 'ng-pending';\n\n\tvar ngModelMinErr = minErr('ngModel');\n\n\t/**\n\t * @ngdoc type\n\t * @name ngModel.NgModelController\n\t *\n\t * @property {*} $viewValue The actual value from the control's view. For `input` elements, this is a\n\t * String. See {@link ngModel.NgModelController#$setViewValue} for information about when the $viewValue\n\t * is set.\n\t * @property {*} $modelValue The value in the model that the control is bound to.\n\t * @property {Array.<Function>} $parsers Array of functions to execute, as a pipeline, whenever\n\t       the control reads value from the DOM. The functions are called in array order, each passing\n\t       its return value through to the next. The last return value is forwarded to the\n\t       {@link ngModel.NgModelController#$validators `$validators`} collection.\n\n\tParsers are used to sanitize / convert the {@link ngModel.NgModelController#$viewValue\n\t`$viewValue`}.\n\n\tReturning `undefined` from a parser means a parse error occurred. In that case,\n\tno {@link ngModel.NgModelController#$validators `$validators`} will run and the `ngModel`\n\twill be set to `undefined` unless {@link ngModelOptions `ngModelOptions.allowInvalid`}\n\tis set to `true`. The parse error is stored in `ngModel.$error.parse`.\n\n\t *\n\t * @property {Array.<Function>} $formatters Array of functions to execute, as a pipeline, whenever\n\t       the model value changes. The functions are called in reverse array order, each passing the value through to the\n\t       next. The last return value is used as the actual DOM value.\n\t       Used to format / convert values for display in the control.\n\t * ```js\n\t * function formatter(value) {\n\t *   if (value) {\n\t *     return value.toUpperCase();\n\t *   }\n\t * }\n\t * ngModel.$formatters.push(formatter);\n\t * ```\n\t *\n\t * @property {Object.<string, function>} $validators A collection of validators that are applied\n\t *      whenever the model value changes. The key value within the object refers to the name of the\n\t *      validator while the function refers to the validation operation. The validation operation is\n\t *      provided with the model value as an argument and must return a true or false value depending\n\t *      on the response of that validation.\n\t *\n\t * ```js\n\t * ngModel.$validators.validCharacters = function(modelValue, viewValue) {\n\t *   var value = modelValue || viewValue;\n\t *   return /[0-9]+/.test(value) &&\n\t *          /[a-z]+/.test(value) &&\n\t *          /[A-Z]+/.test(value) &&\n\t *          /\\W+/.test(value);\n\t * };\n\t * ```\n\t *\n\t * @property {Object.<string, function>} $asyncValidators A collection of validations that are expected to\n\t *      perform an asynchronous validation (e.g. a HTTP request). The validation function that is provided\n\t *      is expected to return a promise when it is run during the model validation process. Once the promise\n\t *      is delivered then the validation status will be set to true when fulfilled and false when rejected.\n\t *      When the asynchronous validators are triggered, each of the validators will run in parallel and the model\n\t *      value will only be updated once all validators have been fulfilled. As long as an asynchronous validator\n\t *      is unfulfilled, its key will be added to the controllers `$pending` property. Also, all asynchronous validators\n\t *      will only run once all synchronous validators have passed.\n\t *\n\t * Please note that if $http is used then it is important that the server returns a success HTTP response code\n\t * in order to fulfill the validation and a status level of `4xx` in order to reject the validation.\n\t *\n\t * ```js\n\t * ngModel.$asyncValidators.uniqueUsername = function(modelValue, viewValue) {\n\t *   var value = modelValue || viewValue;\n\t *\n\t *   // Lookup user by username\n\t *   return $http.get('/api/users/' + value).\n\t *      then(function resolved() {\n\t *        //username exists, this means validation fails\n\t *        return $q.reject('exists');\n\t *      }, function rejected() {\n\t *        //username does not exist, therefore this validation passes\n\t *        return true;\n\t *      });\n\t * };\n\t * ```\n\t *\n\t * @property {Array.<Function>} $viewChangeListeners Array of functions to execute whenever the\n\t *     view value has changed. It is called with no arguments, and its return value is ignored.\n\t *     This can be used in place of additional $watches against the model value.\n\t *\n\t * @property {Object} $error An object hash with all failing validator ids as keys.\n\t * @property {Object} $pending An object hash with all pending validator ids as keys.\n\t *\n\t * @property {boolean} $untouched True if control has not lost focus yet.\n\t * @property {boolean} $touched True if control has lost focus.\n\t * @property {boolean} $pristine True if user has not interacted with the control yet.\n\t * @property {boolean} $dirty True if user has already interacted with the control.\n\t * @property {boolean} $valid True if there is no error.\n\t * @property {boolean} $invalid True if at least one error on the control.\n\t * @property {string} $name The name attribute of the control.\n\t *\n\t * @description\n\t *\n\t * `NgModelController` provides API for the {@link ngModel `ngModel`} directive.\n\t * The controller contains services for data-binding, validation, CSS updates, and value formatting\n\t * and parsing. It purposefully does not contain any logic which deals with DOM rendering or\n\t * listening to DOM events.\n\t * Such DOM related logic should be provided by other directives which make use of\n\t * `NgModelController` for data-binding to control elements.\n\t * Angular provides this DOM logic for most {@link input `input`} elements.\n\t * At the end of this page you can find a {@link ngModel.NgModelController#custom-control-example\n\t * custom control example} that uses `ngModelController` to bind to `contenteditable` elements.\n\t *\n\t * @example\n\t * ### Custom Control Example\n\t * This example shows how to use `NgModelController` with a custom control to achieve\n\t * data-binding. Notice how different directives (`contenteditable`, `ng-model`, and `required`)\n\t * collaborate together to achieve the desired result.\n\t *\n\t * `contenteditable` is an HTML5 attribute, which tells the browser to let the element\n\t * contents be edited in place by the user.\n\t *\n\t * We are using the {@link ng.service:$sce $sce} service here and include the {@link ngSanitize $sanitize}\n\t * module to automatically remove \"bad\" content like inline event listener (e.g. `<span onclick=\"...\">`).\n\t * However, as we are using `$sce` the model can still decide to provide unsafe content if it marks\n\t * that content using the `$sce` service.\n\t *\n\t * <example name=\"NgModelController\" module=\"customControl\" deps=\"angular-sanitize.js\">\n\t    <file name=\"style.css\">\n\t      [contenteditable] {\n\t        border: 1px solid black;\n\t        background-color: white;\n\t        min-height: 20px;\n\t      }\n\n\t      .ng-invalid {\n\t        border: 1px solid red;\n\t      }\n\n\t    </file>\n\t    <file name=\"script.js\">\n\t      angular.module('customControl', ['ngSanitize']).\n\t        directive('contenteditable', ['$sce', function($sce) {\n\t          return {\n\t            restrict: 'A', // only activate on element attribute\n\t            require: '?ngModel', // get a hold of NgModelController\n\t            link: function(scope, element, attrs, ngModel) {\n\t              if (!ngModel) return; // do nothing if no ng-model\n\n\t              // Specify how UI should be updated\n\t              ngModel.$render = function() {\n\t                element.html($sce.getTrustedHtml(ngModel.$viewValue || ''));\n\t              };\n\n\t              // Listen for change events to enable binding\n\t              element.on('blur keyup change', function() {\n\t                scope.$evalAsync(read);\n\t              });\n\t              read(); // initialize\n\n\t              // Write data to the model\n\t              function read() {\n\t                var html = element.html();\n\t                // When we clear the content editable the browser leaves a <br> behind\n\t                // If strip-br attribute is provided then we strip this out\n\t                if ( attrs.stripBr && html == '<br>' ) {\n\t                  html = '';\n\t                }\n\t                ngModel.$setViewValue(html);\n\t              }\n\t            }\n\t          };\n\t        }]);\n\t    </file>\n\t    <file name=\"index.html\">\n\t      <form name=\"myForm\">\n\t       <div contenteditable\n\t            name=\"myWidget\" ng-model=\"userContent\"\n\t            strip-br=\"true\"\n\t            required>Change me!</div>\n\t        <span ng-show=\"myForm.myWidget.$error.required\">Required!</span>\n\t       <hr>\n\t       <textarea ng-model=\"userContent\" aria-label=\"Dynamic textarea\"></textarea>\n\t      </form>\n\t    </file>\n\t    <file name=\"protractor.js\" type=\"protractor\">\n\t    it('should data-bind and become invalid', function() {\n\t      if (browser.params.browser == 'safari' || browser.params.browser == 'firefox') {\n\t        // SafariDriver can't handle contenteditable\n\t        // and Firefox driver can't clear contenteditables very well\n\t        return;\n\t      }\n\t      var contentEditable = element(by.css('[contenteditable]'));\n\t      var content = 'Change me!';\n\n\t      expect(contentEditable.getText()).toEqual(content);\n\n\t      contentEditable.clear();\n\t      contentEditable.sendKeys(protractor.Key.BACK_SPACE);\n\t      expect(contentEditable.getText()).toEqual('');\n\t      expect(contentEditable.getAttribute('class')).toMatch(/ng-invalid-required/);\n\t    });\n\t    </file>\n\t * </example>\n\t *\n\t *\n\t */\n\tvar NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$parse', '$animate', '$timeout', '$rootScope', '$q', '$interpolate',\n\t    function($scope, $exceptionHandler, $attr, $element, $parse, $animate, $timeout, $rootScope, $q, $interpolate) {\n\t  this.$viewValue = Number.NaN;\n\t  this.$modelValue = Number.NaN;\n\t  this.$$rawModelValue = undefined; // stores the parsed modelValue / model set from scope regardless of validity.\n\t  this.$validators = {};\n\t  this.$asyncValidators = {};\n\t  this.$parsers = [];\n\t  this.$formatters = [];\n\t  this.$viewChangeListeners = [];\n\t  this.$untouched = true;\n\t  this.$touched = false;\n\t  this.$pristine = true;\n\t  this.$dirty = false;\n\t  this.$valid = true;\n\t  this.$invalid = false;\n\t  this.$error = {}; // keep invalid keys here\n\t  this.$$success = {}; // keep valid keys here\n\t  this.$pending = undefined; // keep pending keys here\n\t  this.$name = $interpolate($attr.name || '', false)($scope);\n\t  this.$$parentForm = nullFormCtrl;\n\n\t  var parsedNgModel = $parse($attr.ngModel),\n\t      parsedNgModelAssign = parsedNgModel.assign,\n\t      ngModelGet = parsedNgModel,\n\t      ngModelSet = parsedNgModelAssign,\n\t      pendingDebounce = null,\n\t      parserValid,\n\t      ctrl = this;\n\n\t  this.$$setOptions = function(options) {\n\t    ctrl.$options = options;\n\t    if (options && options.getterSetter) {\n\t      var invokeModelGetter = $parse($attr.ngModel + '()'),\n\t          invokeModelSetter = $parse($attr.ngModel + '($$$p)');\n\n\t      ngModelGet = function($scope) {\n\t        var modelValue = parsedNgModel($scope);\n\t        if (isFunction(modelValue)) {\n\t          modelValue = invokeModelGetter($scope);\n\t        }\n\t        return modelValue;\n\t      };\n\t      ngModelSet = function($scope, newValue) {\n\t        if (isFunction(parsedNgModel($scope))) {\n\t          invokeModelSetter($scope, {$$$p: ctrl.$modelValue});\n\t        } else {\n\t          parsedNgModelAssign($scope, ctrl.$modelValue);\n\t        }\n\t      };\n\t    } else if (!parsedNgModel.assign) {\n\t      throw ngModelMinErr('nonassign', \"Expression '{0}' is non-assignable. Element: {1}\",\n\t          $attr.ngModel, startingTag($element));\n\t    }\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name ngModel.NgModelController#$render\n\t   *\n\t   * @description\n\t   * Called when the view needs to be updated. It is expected that the user of the ng-model\n\t   * directive will implement this method.\n\t   *\n\t   * The `$render()` method is invoked in the following situations:\n\t   *\n\t   * * `$rollbackViewValue()` is called.  If we are rolling back the view value to the last\n\t   *   committed value then `$render()` is called to update the input control.\n\t   * * The value referenced by `ng-model` is changed programmatically and both the `$modelValue` and\n\t   *   the `$viewValue` are different from last time.\n\t   *\n\t   * Since `ng-model` does not do a deep watch, `$render()` is only invoked if the values of\n\t   * `$modelValue` and `$viewValue` are actually different from their previous value. If `$modelValue`\n\t   * or `$viewValue` are objects (rather than a string or number) then `$render()` will not be\n\t   * invoked if you only change a property on the objects.\n\t   */\n\t  this.$render = noop;\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name ngModel.NgModelController#$isEmpty\n\t   *\n\t   * @description\n\t   * This is called when we need to determine if the value of an input is empty.\n\t   *\n\t   * For instance, the required directive does this to work out if the input has data or not.\n\t   *\n\t   * The default `$isEmpty` function checks whether the value is `undefined`, `''`, `null` or `NaN`.\n\t   *\n\t   * You can override this for input directives whose concept of being empty is different from the\n\t   * default. The `checkboxInputType` directive does this because in its case a value of `false`\n\t   * implies empty.\n\t   *\n\t   * @param {*} value The value of the input to check for emptiness.\n\t   * @returns {boolean} True if `value` is \"empty\".\n\t   */\n\t  this.$isEmpty = function(value) {\n\t    return isUndefined(value) || value === '' || value === null || value !== value;\n\t  };\n\n\t  var currentValidationRunId = 0;\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name ngModel.NgModelController#$setValidity\n\t   *\n\t   * @description\n\t   * Change the validity state, and notify the form.\n\t   *\n\t   * This method can be called within $parsers/$formatters or a custom validation implementation.\n\t   * However, in most cases it should be sufficient to use the `ngModel.$validators` and\n\t   * `ngModel.$asyncValidators` collections which will call `$setValidity` automatically.\n\t   *\n\t   * @param {string} validationErrorKey Name of the validator. The `validationErrorKey` will be assigned\n\t   *        to either `$error[validationErrorKey]` or `$pending[validationErrorKey]`\n\t   *        (for unfulfilled `$asyncValidators`), so that it is available for data-binding.\n\t   *        The `validationErrorKey` should be in camelCase and will get converted into dash-case\n\t   *        for class name. Example: `myError` will result in `ng-valid-my-error` and `ng-invalid-my-error`\n\t   *        class and can be bound to as  `{{someForm.someControl.$error.myError}}` .\n\t   * @param {boolean} isValid Whether the current state is valid (true), invalid (false), pending (undefined),\n\t   *                          or skipped (null). Pending is used for unfulfilled `$asyncValidators`.\n\t   *                          Skipped is used by Angular when validators do not run because of parse errors and\n\t   *                          when `$asyncValidators` do not run because any of the `$validators` failed.\n\t   */\n\t  addSetValidityMethod({\n\t    ctrl: this,\n\t    $element: $element,\n\t    set: function(object, property) {\n\t      object[property] = true;\n\t    },\n\t    unset: function(object, property) {\n\t      delete object[property];\n\t    },\n\t    $animate: $animate\n\t  });\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name ngModel.NgModelController#$setPristine\n\t   *\n\t   * @description\n\t   * Sets the control to its pristine state.\n\t   *\n\t   * This method can be called to remove the `ng-dirty` class and set the control to its pristine\n\t   * state (`ng-pristine` class). A model is considered to be pristine when the control\n\t   * has not been changed from when first compiled.\n\t   */\n\t  this.$setPristine = function() {\n\t    ctrl.$dirty = false;\n\t    ctrl.$pristine = true;\n\t    $animate.removeClass($element, DIRTY_CLASS);\n\t    $animate.addClass($element, PRISTINE_CLASS);\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name ngModel.NgModelController#$setDirty\n\t   *\n\t   * @description\n\t   * Sets the control to its dirty state.\n\t   *\n\t   * This method can be called to remove the `ng-pristine` class and set the control to its dirty\n\t   * state (`ng-dirty` class). A model is considered to be dirty when the control has been changed\n\t   * from when first compiled.\n\t   */\n\t  this.$setDirty = function() {\n\t    ctrl.$dirty = true;\n\t    ctrl.$pristine = false;\n\t    $animate.removeClass($element, PRISTINE_CLASS);\n\t    $animate.addClass($element, DIRTY_CLASS);\n\t    ctrl.$$parentForm.$setDirty();\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name ngModel.NgModelController#$setUntouched\n\t   *\n\t   * @description\n\t   * Sets the control to its untouched state.\n\t   *\n\t   * This method can be called to remove the `ng-touched` class and set the control to its\n\t   * untouched state (`ng-untouched` class). Upon compilation, a model is set as untouched\n\t   * by default, however this function can be used to restore that state if the model has\n\t   * already been touched by the user.\n\t   */\n\t  this.$setUntouched = function() {\n\t    ctrl.$touched = false;\n\t    ctrl.$untouched = true;\n\t    $animate.setClass($element, UNTOUCHED_CLASS, TOUCHED_CLASS);\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name ngModel.NgModelController#$setTouched\n\t   *\n\t   * @description\n\t   * Sets the control to its touched state.\n\t   *\n\t   * This method can be called to remove the `ng-untouched` class and set the control to its\n\t   * touched state (`ng-touched` class). A model is considered to be touched when the user has\n\t   * first focused the control element and then shifted focus away from the control (blur event).\n\t   */\n\t  this.$setTouched = function() {\n\t    ctrl.$touched = true;\n\t    ctrl.$untouched = false;\n\t    $animate.setClass($element, TOUCHED_CLASS, UNTOUCHED_CLASS);\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name ngModel.NgModelController#$rollbackViewValue\n\t   *\n\t   * @description\n\t   * Cancel an update and reset the input element's value to prevent an update to the `$modelValue`,\n\t   * which may be caused by a pending debounced event or because the input is waiting for a some\n\t   * future event.\n\t   *\n\t   * If you have an input that uses `ng-model-options` to set up debounced events or events such\n\t   * as blur you can have a situation where there is a period when the `$viewValue`\n\t   * is out of synch with the ngModel's `$modelValue`.\n\t   *\n\t   * In this case, you can run into difficulties if you try to update the ngModel's `$modelValue`\n\t   * programmatically before these debounced/future events have resolved/occurred, because Angular's\n\t   * dirty checking mechanism is not able to tell whether the model has actually changed or not.\n\t   *\n\t   * The `$rollbackViewValue()` method should be called before programmatically changing the model of an\n\t   * input which may have such events pending. This is important in order to make sure that the\n\t   * input field will be updated with the new model value and any pending operations are cancelled.\n\t   *\n\t   * <example name=\"ng-model-cancel-update\" module=\"cancel-update-example\">\n\t   *   <file name=\"app.js\">\n\t   *     angular.module('cancel-update-example', [])\n\t   *\n\t   *     .controller('CancelUpdateController', ['$scope', function($scope) {\n\t   *       $scope.resetWithCancel = function(e) {\n\t   *         if (e.keyCode == 27) {\n\t   *           $scope.myForm.myInput1.$rollbackViewValue();\n\t   *           $scope.myValue = '';\n\t   *         }\n\t   *       };\n\t   *       $scope.resetWithoutCancel = function(e) {\n\t   *         if (e.keyCode == 27) {\n\t   *           $scope.myValue = '';\n\t   *         }\n\t   *       };\n\t   *     }]);\n\t   *   </file>\n\t   *   <file name=\"index.html\">\n\t   *     <div ng-controller=\"CancelUpdateController\">\n\t   *       <p>Try typing something in each input.  See that the model only updates when you\n\t   *          blur off the input.\n\t   *        </p>\n\t   *        <p>Now see what happens if you start typing then press the Escape key</p>\n\t   *\n\t   *       <form name=\"myForm\" ng-model-options=\"{ updateOn: 'blur' }\">\n\t   *         <p id=\"inputDescription1\">With $rollbackViewValue()</p>\n\t   *         <input name=\"myInput1\" aria-describedby=\"inputDescription1\" ng-model=\"myValue\"\n\t   *                ng-keydown=\"resetWithCancel($event)\"><br/>\n\t   *         myValue: \"{{ myValue }}\"\n\t   *\n\t   *         <p id=\"inputDescription2\">Without $rollbackViewValue()</p>\n\t   *         <input name=\"myInput2\" aria-describedby=\"inputDescription2\" ng-model=\"myValue\"\n\t   *                ng-keydown=\"resetWithoutCancel($event)\"><br/>\n\t   *         myValue: \"{{ myValue }}\"\n\t   *       </form>\n\t   *     </div>\n\t   *   </file>\n\t   * </example>\n\t   */\n\t  this.$rollbackViewValue = function() {\n\t    $timeout.cancel(pendingDebounce);\n\t    ctrl.$viewValue = ctrl.$$lastCommittedViewValue;\n\t    ctrl.$render();\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name ngModel.NgModelController#$validate\n\t   *\n\t   * @description\n\t   * Runs each of the registered validators (first synchronous validators and then\n\t   * asynchronous validators).\n\t   * If the validity changes to invalid, the model will be set to `undefined`,\n\t   * unless {@link ngModelOptions `ngModelOptions.allowInvalid`} is `true`.\n\t   * If the validity changes to valid, it will set the model to the last available valid\n\t   * `$modelValue`, i.e. either the last parsed value or the last value set from the scope.\n\t   */\n\t  this.$validate = function() {\n\t    // ignore $validate before model is initialized\n\t    if (isNumber(ctrl.$modelValue) && isNaN(ctrl.$modelValue)) {\n\t      return;\n\t    }\n\n\t    var viewValue = ctrl.$$lastCommittedViewValue;\n\t    // Note: we use the $$rawModelValue as $modelValue might have been\n\t    // set to undefined during a view -> model update that found validation\n\t    // errors. We can't parse the view here, since that could change\n\t    // the model although neither viewValue nor the model on the scope changed\n\t    var modelValue = ctrl.$$rawModelValue;\n\n\t    var prevValid = ctrl.$valid;\n\t    var prevModelValue = ctrl.$modelValue;\n\n\t    var allowInvalid = ctrl.$options && ctrl.$options.allowInvalid;\n\n\t    ctrl.$$runValidators(modelValue, viewValue, function(allValid) {\n\t      // If there was no change in validity, don't update the model\n\t      // This prevents changing an invalid modelValue to undefined\n\t      if (!allowInvalid && prevValid !== allValid) {\n\t        // Note: Don't check ctrl.$valid here, as we could have\n\t        // external validators (e.g. calculated on the server),\n\t        // that just call $setValidity and need the model value\n\t        // to calculate their validity.\n\t        ctrl.$modelValue = allValid ? modelValue : undefined;\n\n\t        if (ctrl.$modelValue !== prevModelValue) {\n\t          ctrl.$$writeModelToScope();\n\t        }\n\t      }\n\t    });\n\n\t  };\n\n\t  this.$$runValidators = function(modelValue, viewValue, doneCallback) {\n\t    currentValidationRunId++;\n\t    var localValidationRunId = currentValidationRunId;\n\n\t    // check parser error\n\t    if (!processParseErrors()) {\n\t      validationDone(false);\n\t      return;\n\t    }\n\t    if (!processSyncValidators()) {\n\t      validationDone(false);\n\t      return;\n\t    }\n\t    processAsyncValidators();\n\n\t    function processParseErrors() {\n\t      var errorKey = ctrl.$$parserName || 'parse';\n\t      if (isUndefined(parserValid)) {\n\t        setValidity(errorKey, null);\n\t      } else {\n\t        if (!parserValid) {\n\t          forEach(ctrl.$validators, function(v, name) {\n\t            setValidity(name, null);\n\t          });\n\t          forEach(ctrl.$asyncValidators, function(v, name) {\n\t            setValidity(name, null);\n\t          });\n\t        }\n\t        // Set the parse error last, to prevent unsetting it, should a $validators key == parserName\n\t        setValidity(errorKey, parserValid);\n\t        return parserValid;\n\t      }\n\t      return true;\n\t    }\n\n\t    function processSyncValidators() {\n\t      var syncValidatorsValid = true;\n\t      forEach(ctrl.$validators, function(validator, name) {\n\t        var result = validator(modelValue, viewValue);\n\t        syncValidatorsValid = syncValidatorsValid && result;\n\t        setValidity(name, result);\n\t      });\n\t      if (!syncValidatorsValid) {\n\t        forEach(ctrl.$asyncValidators, function(v, name) {\n\t          setValidity(name, null);\n\t        });\n\t        return false;\n\t      }\n\t      return true;\n\t    }\n\n\t    function processAsyncValidators() {\n\t      var validatorPromises = [];\n\t      var allValid = true;\n\t      forEach(ctrl.$asyncValidators, function(validator, name) {\n\t        var promise = validator(modelValue, viewValue);\n\t        if (!isPromiseLike(promise)) {\n\t          throw ngModelMinErr(\"$asyncValidators\",\n\t            \"Expected asynchronous validator to return a promise but got '{0}' instead.\", promise);\n\t        }\n\t        setValidity(name, undefined);\n\t        validatorPromises.push(promise.then(function() {\n\t          setValidity(name, true);\n\t        }, function(error) {\n\t          allValid = false;\n\t          setValidity(name, false);\n\t        }));\n\t      });\n\t      if (!validatorPromises.length) {\n\t        validationDone(true);\n\t      } else {\n\t        $q.all(validatorPromises).then(function() {\n\t          validationDone(allValid);\n\t        }, noop);\n\t      }\n\t    }\n\n\t    function setValidity(name, isValid) {\n\t      if (localValidationRunId === currentValidationRunId) {\n\t        ctrl.$setValidity(name, isValid);\n\t      }\n\t    }\n\n\t    function validationDone(allValid) {\n\t      if (localValidationRunId === currentValidationRunId) {\n\n\t        doneCallback(allValid);\n\t      }\n\t    }\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name ngModel.NgModelController#$commitViewValue\n\t   *\n\t   * @description\n\t   * Commit a pending update to the `$modelValue`.\n\t   *\n\t   * Updates may be pending by a debounced event or because the input is waiting for a some future\n\t   * event defined in `ng-model-options`. this method is rarely needed as `NgModelController`\n\t   * usually handles calling this in response to input events.\n\t   */\n\t  this.$commitViewValue = function() {\n\t    var viewValue = ctrl.$viewValue;\n\n\t    $timeout.cancel(pendingDebounce);\n\n\t    // If the view value has not changed then we should just exit, except in the case where there is\n\t    // a native validator on the element. In this case the validation state may have changed even though\n\t    // the viewValue has stayed empty.\n\t    if (ctrl.$$lastCommittedViewValue === viewValue && (viewValue !== '' || !ctrl.$$hasNativeValidators)) {\n\t      return;\n\t    }\n\t    ctrl.$$lastCommittedViewValue = viewValue;\n\n\t    // change to dirty\n\t    if (ctrl.$pristine) {\n\t      this.$setDirty();\n\t    }\n\t    this.$$parseAndValidate();\n\t  };\n\n\t  this.$$parseAndValidate = function() {\n\t    var viewValue = ctrl.$$lastCommittedViewValue;\n\t    var modelValue = viewValue;\n\t    parserValid = isUndefined(modelValue) ? undefined : true;\n\n\t    if (parserValid) {\n\t      for (var i = 0; i < ctrl.$parsers.length; i++) {\n\t        modelValue = ctrl.$parsers[i](modelValue);\n\t        if (isUndefined(modelValue)) {\n\t          parserValid = false;\n\t          break;\n\t        }\n\t      }\n\t    }\n\t    if (isNumber(ctrl.$modelValue) && isNaN(ctrl.$modelValue)) {\n\t      // ctrl.$modelValue has not been touched yet...\n\t      ctrl.$modelValue = ngModelGet($scope);\n\t    }\n\t    var prevModelValue = ctrl.$modelValue;\n\t    var allowInvalid = ctrl.$options && ctrl.$options.allowInvalid;\n\t    ctrl.$$rawModelValue = modelValue;\n\n\t    if (allowInvalid) {\n\t      ctrl.$modelValue = modelValue;\n\t      writeToModelIfNeeded();\n\t    }\n\n\t    // Pass the $$lastCommittedViewValue here, because the cached viewValue might be out of date.\n\t    // This can happen if e.g. $setViewValue is called from inside a parser\n\t    ctrl.$$runValidators(modelValue, ctrl.$$lastCommittedViewValue, function(allValid) {\n\t      if (!allowInvalid) {\n\t        // Note: Don't check ctrl.$valid here, as we could have\n\t        // external validators (e.g. calculated on the server),\n\t        // that just call $setValidity and need the model value\n\t        // to calculate their validity.\n\t        ctrl.$modelValue = allValid ? modelValue : undefined;\n\t        writeToModelIfNeeded();\n\t      }\n\t    });\n\n\t    function writeToModelIfNeeded() {\n\t      if (ctrl.$modelValue !== prevModelValue) {\n\t        ctrl.$$writeModelToScope();\n\t      }\n\t    }\n\t  };\n\n\t  this.$$writeModelToScope = function() {\n\t    ngModelSet($scope, ctrl.$modelValue);\n\t    forEach(ctrl.$viewChangeListeners, function(listener) {\n\t      try {\n\t        listener();\n\t      } catch (e) {\n\t        $exceptionHandler(e);\n\t      }\n\t    });\n\t  };\n\n\t  /**\n\t   * @ngdoc method\n\t   * @name ngModel.NgModelController#$setViewValue\n\t   *\n\t   * @description\n\t   * Update the view value.\n\t   *\n\t   * This method should be called when a control wants to change the view value; typically,\n\t   * this is done from within a DOM event handler. For example, the {@link ng.directive:input input}\n\t   * directive calls it when the value of the input changes and {@link ng.directive:select select}\n\t   * calls it when an option is selected.\n\t   *\n\t   * When `$setViewValue` is called, the new `value` will be staged for committing through the `$parsers`\n\t   * and `$validators` pipelines. If there are no special {@link ngModelOptions} specified then the staged\n\t   * value sent directly for processing, finally to be applied to `$modelValue` and then the\n\t   * **expression** specified in the `ng-model` attribute. Lastly, all the registered change listeners,\n\t   * in the `$viewChangeListeners` list, are called.\n\t   *\n\t   * In case the {@link ng.directive:ngModelOptions ngModelOptions} directive is used with `updateOn`\n\t   * and the `default` trigger is not listed, all those actions will remain pending until one of the\n\t   * `updateOn` events is triggered on the DOM element.\n\t   * All these actions will be debounced if the {@link ng.directive:ngModelOptions ngModelOptions}\n\t   * directive is used with a custom debounce for this particular event.\n\t   * Note that a `$digest` is only triggered once the `updateOn` events are fired, or if `debounce`\n\t   * is specified, once the timer runs out.\n\t   *\n\t   * When used with standard inputs, the view value will always be a string (which is in some cases\n\t   * parsed into another type, such as a `Date` object for `input[date]`.)\n\t   * However, custom controls might also pass objects to this method. In this case, we should make\n\t   * a copy of the object before passing it to `$setViewValue`. This is because `ngModel` does not\n\t   * perform a deep watch of objects, it only looks for a change of identity. If you only change\n\t   * the property of the object then ngModel will not realise that the object has changed and\n\t   * will not invoke the `$parsers` and `$validators` pipelines. For this reason, you should\n\t   * not change properties of the copy once it has been passed to `$setViewValue`.\n\t   * Otherwise you may cause the model value on the scope to change incorrectly.\n\t   *\n\t   * <div class=\"alert alert-info\">\n\t   * In any case, the value passed to the method should always reflect the current value\n\t   * of the control. For example, if you are calling `$setViewValue` for an input element,\n\t   * you should pass the input DOM value. Otherwise, the control and the scope model become\n\t   * out of sync. It's also important to note that `$setViewValue` does not call `$render` or change\n\t   * the control's DOM value in any way. If we want to change the control's DOM value\n\t   * programmatically, we should update the `ngModel` scope expression. Its new value will be\n\t   * picked up by the model controller, which will run it through the `$formatters`, `$render` it\n\t   * to update the DOM, and finally call `$validate` on it.\n\t   * </div>\n\t   *\n\t   * @param {*} value value from the view.\n\t   * @param {string} trigger Event that triggered the update.\n\t   */\n\t  this.$setViewValue = function(value, trigger) {\n\t    ctrl.$viewValue = value;\n\t    if (!ctrl.$options || ctrl.$options.updateOnDefault) {\n\t      ctrl.$$debounceViewValueCommit(trigger);\n\t    }\n\t  };\n\n\t  this.$$debounceViewValueCommit = function(trigger) {\n\t    var debounceDelay = 0,\n\t        options = ctrl.$options,\n\t        debounce;\n\n\t    if (options && isDefined(options.debounce)) {\n\t      debounce = options.debounce;\n\t      if (isNumber(debounce)) {\n\t        debounceDelay = debounce;\n\t      } else if (isNumber(debounce[trigger])) {\n\t        debounceDelay = debounce[trigger];\n\t      } else if (isNumber(debounce['default'])) {\n\t        debounceDelay = debounce['default'];\n\t      }\n\t    }\n\n\t    $timeout.cancel(pendingDebounce);\n\t    if (debounceDelay) {\n\t      pendingDebounce = $timeout(function() {\n\t        ctrl.$commitViewValue();\n\t      }, debounceDelay);\n\t    } else if ($rootScope.$$phase) {\n\t      ctrl.$commitViewValue();\n\t    } else {\n\t      $scope.$apply(function() {\n\t        ctrl.$commitViewValue();\n\t      });\n\t    }\n\t  };\n\n\t  // model -> value\n\t  // Note: we cannot use a normal scope.$watch as we want to detect the following:\n\t  // 1. scope value is 'a'\n\t  // 2. user enters 'b'\n\t  // 3. ng-change kicks in and reverts scope value to 'a'\n\t  //    -> scope value did not change since the last digest as\n\t  //       ng-change executes in apply phase\n\t  // 4. view should be changed back to 'a'\n\t  $scope.$watch(function ngModelWatch() {\n\t    var modelValue = ngModelGet($scope);\n\n\t    // if scope model value and ngModel value are out of sync\n\t    // TODO(perf): why not move this to the action fn?\n\t    if (modelValue !== ctrl.$modelValue &&\n\t       // checks for NaN is needed to allow setting the model to NaN when there's an asyncValidator\n\t       (ctrl.$modelValue === ctrl.$modelValue || modelValue === modelValue)\n\t    ) {\n\t      ctrl.$modelValue = ctrl.$$rawModelValue = modelValue;\n\t      parserValid = undefined;\n\n\t      var formatters = ctrl.$formatters,\n\t          idx = formatters.length;\n\n\t      var viewValue = modelValue;\n\t      while (idx--) {\n\t        viewValue = formatters[idx](viewValue);\n\t      }\n\t      if (ctrl.$viewValue !== viewValue) {\n\t        ctrl.$viewValue = ctrl.$$lastCommittedViewValue = viewValue;\n\t        ctrl.$render();\n\n\t        ctrl.$$runValidators(modelValue, viewValue, noop);\n\t      }\n\t    }\n\n\t    return modelValue;\n\t  });\n\t}];\n\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngModel\n\t *\n\t * @element input\n\t * @priority 1\n\t *\n\t * @description\n\t * The `ngModel` directive binds an `input`,`select`, `textarea` (or custom form control) to a\n\t * property on the scope using {@link ngModel.NgModelController NgModelController},\n\t * which is created and exposed by this directive.\n\t *\n\t * `ngModel` is responsible for:\n\t *\n\t * - Binding the view into the model, which other directives such as `input`, `textarea` or `select`\n\t *   require.\n\t * - Providing validation behavior (i.e. required, number, email, url).\n\t * - Keeping the state of the control (valid/invalid, dirty/pristine, touched/untouched, validation errors).\n\t * - Setting related css classes on the element (`ng-valid`, `ng-invalid`, `ng-dirty`, `ng-pristine`, `ng-touched`, `ng-untouched`) including animations.\n\t * - Registering the control with its parent {@link ng.directive:form form}.\n\t *\n\t * Note: `ngModel` will try to bind to the property given by evaluating the expression on the\n\t * current scope. If the property doesn't already exist on this scope, it will be created\n\t * implicitly and added to the scope.\n\t *\n\t * For best practices on using `ngModel`, see:\n\t *\n\t *  - [Understanding Scopes](https://github.com/angular/angular.js/wiki/Understanding-Scopes)\n\t *\n\t * For basic examples, how to use `ngModel`, see:\n\t *\n\t *  - {@link ng.directive:input input}\n\t *    - {@link input[text] text}\n\t *    - {@link input[checkbox] checkbox}\n\t *    - {@link input[radio] radio}\n\t *    - {@link input[number] number}\n\t *    - {@link input[email] email}\n\t *    - {@link input[url] url}\n\t *    - {@link input[date] date}\n\t *    - {@link input[datetime-local] datetime-local}\n\t *    - {@link input[time] time}\n\t *    - {@link input[month] month}\n\t *    - {@link input[week] week}\n\t *  - {@link ng.directive:select select}\n\t *  - {@link ng.directive:textarea textarea}\n\t *\n\t * # CSS classes\n\t * The following CSS classes are added and removed on the associated input/select/textarea element\n\t * depending on the validity of the model.\n\t *\n\t *  - `ng-valid`: the model is valid\n\t *  - `ng-invalid`: the model is invalid\n\t *  - `ng-valid-[key]`: for each valid key added by `$setValidity`\n\t *  - `ng-invalid-[key]`: for each invalid key added by `$setValidity`\n\t *  - `ng-pristine`: the control hasn't been interacted with yet\n\t *  - `ng-dirty`: the control has been interacted with\n\t *  - `ng-touched`: the control has been blurred\n\t *  - `ng-untouched`: the control hasn't been blurred\n\t *  - `ng-pending`: any `$asyncValidators` are unfulfilled\n\t *\n\t * Keep in mind that ngAnimate can detect each of these classes when added and removed.\n\t *\n\t * ## Animation Hooks\n\t *\n\t * Animations within models are triggered when any of the associated CSS classes are added and removed\n\t * on the input element which is attached to the model. These classes are: `.ng-pristine`, `.ng-dirty`,\n\t * `.ng-invalid` and `.ng-valid` as well as any other validations that are performed on the model itself.\n\t * The animations that are triggered within ngModel are similar to how they work in ngClass and\n\t * animations can be hooked into using CSS transitions, keyframes as well as JS animations.\n\t *\n\t * The following example shows a simple way to utilize CSS transitions to style an input element\n\t * that has been rendered as invalid after it has been validated:\n\t *\n\t * <pre>\n\t * //be sure to include ngAnimate as a module to hook into more\n\t * //advanced animations\n\t * .my-input {\n\t *   transition:0.5s linear all;\n\t *   background: white;\n\t * }\n\t * .my-input.ng-invalid {\n\t *   background: red;\n\t *   color:white;\n\t * }\n\t * </pre>\n\t *\n\t * @example\n\t * <example deps=\"angular-animate.js\" animations=\"true\" fixBase=\"true\" module=\"inputExample\">\n\t     <file name=\"index.html\">\n\t       <script>\n\t        angular.module('inputExample', [])\n\t          .controller('ExampleController', ['$scope', function($scope) {\n\t            $scope.val = '1';\n\t          }]);\n\t       </script>\n\t       <style>\n\t         .my-input {\n\t           transition:all linear 0.5s;\n\t           background: transparent;\n\t         }\n\t         .my-input.ng-invalid {\n\t           color:white;\n\t           background: red;\n\t         }\n\t       </style>\n\t       <p id=\"inputDescription\">\n\t        Update input to see transitions when valid/invalid.\n\t        Integer is a valid value.\n\t       </p>\n\t       <form name=\"testForm\" ng-controller=\"ExampleController\">\n\t         <input ng-model=\"val\" ng-pattern=\"/^\\d+$/\" name=\"anim\" class=\"my-input\"\n\t                aria-describedby=\"inputDescription\" />\n\t       </form>\n\t     </file>\n\t * </example>\n\t *\n\t * ## Binding to a getter/setter\n\t *\n\t * Sometimes it's helpful to bind `ngModel` to a getter/setter function.  A getter/setter is a\n\t * function that returns a representation of the model when called with zero arguments, and sets\n\t * the internal state of a model when called with an argument. It's sometimes useful to use this\n\t * for models that have an internal representation that's different from what the model exposes\n\t * to the view.\n\t *\n\t * <div class=\"alert alert-success\">\n\t * **Best Practice:** It's best to keep getters fast because Angular is likely to call them more\n\t * frequently than other parts of your code.\n\t * </div>\n\t *\n\t * You use this behavior by adding `ng-model-options=\"{ getterSetter: true }\"` to an element that\n\t * has `ng-model` attached to it. You can also add `ng-model-options=\"{ getterSetter: true }\"` to\n\t * a `<form>`, which will enable this behavior for all `<input>`s within it. See\n\t * {@link ng.directive:ngModelOptions `ngModelOptions`} for more.\n\t *\n\t * The following example shows how to use `ngModel` with a getter/setter:\n\t *\n\t * @example\n\t * <example name=\"ngModel-getter-setter\" module=\"getterSetterExample\">\n\t     <file name=\"index.html\">\n\t       <div ng-controller=\"ExampleController\">\n\t         <form name=\"userForm\">\n\t           <label>Name:\n\t             <input type=\"text\" name=\"userName\"\n\t                    ng-model=\"user.name\"\n\t                    ng-model-options=\"{ getterSetter: true }\" />\n\t           </label>\n\t         </form>\n\t         <pre>user.name = <span ng-bind=\"user.name()\"></span></pre>\n\t       </div>\n\t     </file>\n\t     <file name=\"app.js\">\n\t       angular.module('getterSetterExample', [])\n\t         .controller('ExampleController', ['$scope', function($scope) {\n\t           var _name = 'Brian';\n\t           $scope.user = {\n\t             name: function(newName) {\n\t              // Note that newName can be undefined for two reasons:\n\t              // 1. Because it is called as a getter and thus called with no arguments\n\t              // 2. Because the property should actually be set to undefined. This happens e.g. if the\n\t              //    input is invalid\n\t              return arguments.length ? (_name = newName) : _name;\n\t             }\n\t           };\n\t         }]);\n\t     </file>\n\t * </example>\n\t */\n\tvar ngModelDirective = ['$rootScope', function($rootScope) {\n\t  return {\n\t    restrict: 'A',\n\t    require: ['ngModel', '^?form', '^?ngModelOptions'],\n\t    controller: NgModelController,\n\t    // Prelink needs to run before any input directive\n\t    // so that we can set the NgModelOptions in NgModelController\n\t    // before anyone else uses it.\n\t    priority: 1,\n\t    compile: function ngModelCompile(element) {\n\t      // Setup initial state of the control\n\t      element.addClass(PRISTINE_CLASS).addClass(UNTOUCHED_CLASS).addClass(VALID_CLASS);\n\n\t      return {\n\t        pre: function ngModelPreLink(scope, element, attr, ctrls) {\n\t          var modelCtrl = ctrls[0],\n\t              formCtrl = ctrls[1] || modelCtrl.$$parentForm;\n\n\t          modelCtrl.$$setOptions(ctrls[2] && ctrls[2].$options);\n\n\t          // notify others, especially parent forms\n\t          formCtrl.$addControl(modelCtrl);\n\n\t          attr.$observe('name', function(newValue) {\n\t            if (modelCtrl.$name !== newValue) {\n\t              modelCtrl.$$parentForm.$$renameControl(modelCtrl, newValue);\n\t            }\n\t          });\n\n\t          scope.$on('$destroy', function() {\n\t            modelCtrl.$$parentForm.$removeControl(modelCtrl);\n\t          });\n\t        },\n\t        post: function ngModelPostLink(scope, element, attr, ctrls) {\n\t          var modelCtrl = ctrls[0];\n\t          if (modelCtrl.$options && modelCtrl.$options.updateOn) {\n\t            element.on(modelCtrl.$options.updateOn, function(ev) {\n\t              modelCtrl.$$debounceViewValueCommit(ev && ev.type);\n\t            });\n\t          }\n\n\t          element.on('blur', function(ev) {\n\t            if (modelCtrl.$touched) return;\n\n\t            if ($rootScope.$$phase) {\n\t              scope.$evalAsync(modelCtrl.$setTouched);\n\t            } else {\n\t              scope.$apply(modelCtrl.$setTouched);\n\t            }\n\t          });\n\t        }\n\t      };\n\t    }\n\t  };\n\t}];\n\n\tvar DEFAULT_REGEXP = /(\\s+|^)default(\\s+|$)/;\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngModelOptions\n\t *\n\t * @description\n\t * Allows tuning how model updates are done. Using `ngModelOptions` you can specify a custom list of\n\t * events that will trigger a model update and/or a debouncing delay so that the actual update only\n\t * takes place when a timer expires; this timer will be reset after another change takes place.\n\t *\n\t * Given the nature of `ngModelOptions`, the value displayed inside input fields in the view might\n\t * be different from the value in the actual model. This means that if you update the model you\n\t * should also invoke {@link ngModel.NgModelController `$rollbackViewValue`} on the relevant input field in\n\t * order to make sure it is synchronized with the model and that any debounced action is canceled.\n\t *\n\t * The easiest way to reference the control's {@link ngModel.NgModelController `$rollbackViewValue`}\n\t * method is by making sure the input is placed inside a form that has a `name` attribute. This is\n\t * important because `form` controllers are published to the related scope under the name in their\n\t * `name` attribute.\n\t *\n\t * Any pending changes will take place immediately when an enclosing form is submitted via the\n\t * `submit` event. Note that `ngClick` events will occur before the model is updated. Use `ngSubmit`\n\t * to have access to the updated model.\n\t *\n\t * `ngModelOptions` has an effect on the element it's declared on and its descendants.\n\t *\n\t * @param {Object} ngModelOptions options to apply to the current model. Valid keys are:\n\t *   - `updateOn`: string specifying which event should the input be bound to. You can set several\n\t *     events using an space delimited list. There is a special event called `default` that\n\t *     matches the default events belonging of the control.\n\t *   - `debounce`: integer value which contains the debounce model update value in milliseconds. A\n\t *     value of 0 triggers an immediate update. If an object is supplied instead, you can specify a\n\t *     custom value for each event. For example:\n\t *     `ng-model-options=\"{ updateOn: 'default blur', debounce: { 'default': 500, 'blur': 0 } }\"`\n\t *   - `allowInvalid`: boolean value which indicates that the model can be set with values that did\n\t *     not validate correctly instead of the default behavior of setting the model to undefined.\n\t *   - `getterSetter`: boolean value which determines whether or not to treat functions bound to\n\t       `ngModel` as getters/setters.\n\t *   - `timezone`: Defines the timezone to be used to read/write the `Date` instance in the model for\n\t *     `<input type=\"date\">`, `<input type=\"time\">`, ... . It understands UTC/GMT and the\n\t *     continental US time zone abbreviations, but for general use, use a time zone offset, for\n\t *     example, `'+0430'` (4 hours, 30 minutes east of the Greenwich meridian)\n\t *     If not specified, the timezone of the browser will be used.\n\t *\n\t * @example\n\n\t  The following example shows how to override immediate updates. Changes on the inputs within the\n\t  form will update the model only when the control loses focus (blur event). If `escape` key is\n\t  pressed while the input field is focused, the value is reset to the value in the current model.\n\n\t  <example name=\"ngModelOptions-directive-blur\" module=\"optionsExample\">\n\t    <file name=\"index.html\">\n\t      <div ng-controller=\"ExampleController\">\n\t        <form name=\"userForm\">\n\t          <label>Name:\n\t            <input type=\"text\" name=\"userName\"\n\t                   ng-model=\"user.name\"\n\t                   ng-model-options=\"{ updateOn: 'blur' }\"\n\t                   ng-keyup=\"cancel($event)\" />\n\t          </label><br />\n\t          <label>Other data:\n\t            <input type=\"text\" ng-model=\"user.data\" />\n\t          </label><br />\n\t        </form>\n\t        <pre>user.name = <span ng-bind=\"user.name\"></span></pre>\n\t        <pre>user.data = <span ng-bind=\"user.data\"></span></pre>\n\t      </div>\n\t    </file>\n\t    <file name=\"app.js\">\n\t      angular.module('optionsExample', [])\n\t        .controller('ExampleController', ['$scope', function($scope) {\n\t          $scope.user = { name: 'John', data: '' };\n\n\t          $scope.cancel = function(e) {\n\t            if (e.keyCode == 27) {\n\t              $scope.userForm.userName.$rollbackViewValue();\n\t            }\n\t          };\n\t        }]);\n\t    </file>\n\t    <file name=\"protractor.js\" type=\"protractor\">\n\t      var model = element(by.binding('user.name'));\n\t      var input = element(by.model('user.name'));\n\t      var other = element(by.model('user.data'));\n\n\t      it('should allow custom events', function() {\n\t        input.sendKeys(' Doe');\n\t        input.click();\n\t        expect(model.getText()).toEqual('John');\n\t        other.click();\n\t        expect(model.getText()).toEqual('John Doe');\n\t      });\n\n\t      it('should $rollbackViewValue when model changes', function() {\n\t        input.sendKeys(' Doe');\n\t        expect(input.getAttribute('value')).toEqual('John Doe');\n\t        input.sendKeys(protractor.Key.ESCAPE);\n\t        expect(input.getAttribute('value')).toEqual('John');\n\t        other.click();\n\t        expect(model.getText()).toEqual('John');\n\t      });\n\t    </file>\n\t  </example>\n\n\t  This one shows how to debounce model changes. Model will be updated only 1 sec after last change.\n\t  If the `Clear` button is pressed, any debounced action is canceled and the value becomes empty.\n\n\t  <example name=\"ngModelOptions-directive-debounce\" module=\"optionsExample\">\n\t    <file name=\"index.html\">\n\t      <div ng-controller=\"ExampleController\">\n\t        <form name=\"userForm\">\n\t          <label>Name:\n\t            <input type=\"text\" name=\"userName\"\n\t                   ng-model=\"user.name\"\n\t                   ng-model-options=\"{ debounce: 1000 }\" />\n\t          </label>\n\t          <button ng-click=\"userForm.userName.$rollbackViewValue(); user.name=''\">Clear</button>\n\t          <br />\n\t        </form>\n\t        <pre>user.name = <span ng-bind=\"user.name\"></span></pre>\n\t      </div>\n\t    </file>\n\t    <file name=\"app.js\">\n\t      angular.module('optionsExample', [])\n\t        .controller('ExampleController', ['$scope', function($scope) {\n\t          $scope.user = { name: 'Igor' };\n\t        }]);\n\t    </file>\n\t  </example>\n\n\t  This one shows how to bind to getter/setters:\n\n\t  <example name=\"ngModelOptions-directive-getter-setter\" module=\"getterSetterExample\">\n\t    <file name=\"index.html\">\n\t      <div ng-controller=\"ExampleController\">\n\t        <form name=\"userForm\">\n\t          <label>Name:\n\t            <input type=\"text\" name=\"userName\"\n\t                   ng-model=\"user.name\"\n\t                   ng-model-options=\"{ getterSetter: true }\" />\n\t          </label>\n\t        </form>\n\t        <pre>user.name = <span ng-bind=\"user.name()\"></span></pre>\n\t      </div>\n\t    </file>\n\t    <file name=\"app.js\">\n\t      angular.module('getterSetterExample', [])\n\t        .controller('ExampleController', ['$scope', function($scope) {\n\t          var _name = 'Brian';\n\t          $scope.user = {\n\t            name: function(newName) {\n\t              // Note that newName can be undefined for two reasons:\n\t              // 1. Because it is called as a getter and thus called with no arguments\n\t              // 2. Because the property should actually be set to undefined. This happens e.g. if the\n\t              //    input is invalid\n\t              return arguments.length ? (_name = newName) : _name;\n\t            }\n\t          };\n\t        }]);\n\t    </file>\n\t  </example>\n\t */\n\tvar ngModelOptionsDirective = function() {\n\t  return {\n\t    restrict: 'A',\n\t    controller: ['$scope', '$attrs', function($scope, $attrs) {\n\t      var that = this;\n\t      this.$options = copy($scope.$eval($attrs.ngModelOptions));\n\t      // Allow adding/overriding bound events\n\t      if (isDefined(this.$options.updateOn)) {\n\t        this.$options.updateOnDefault = false;\n\t        // extract \"default\" pseudo-event from list of events that can trigger a model update\n\t        this.$options.updateOn = trim(this.$options.updateOn.replace(DEFAULT_REGEXP, function() {\n\t          that.$options.updateOnDefault = true;\n\t          return ' ';\n\t        }));\n\t      } else {\n\t        this.$options.updateOnDefault = true;\n\t      }\n\t    }]\n\t  };\n\t};\n\n\n\n\t// helper methods\n\tfunction addSetValidityMethod(context) {\n\t  var ctrl = context.ctrl,\n\t      $element = context.$element,\n\t      classCache = {},\n\t      set = context.set,\n\t      unset = context.unset,\n\t      $animate = context.$animate;\n\n\t  classCache[INVALID_CLASS] = !(classCache[VALID_CLASS] = $element.hasClass(VALID_CLASS));\n\n\t  ctrl.$setValidity = setValidity;\n\n\t  function setValidity(validationErrorKey, state, controller) {\n\t    if (isUndefined(state)) {\n\t      createAndSet('$pending', validationErrorKey, controller);\n\t    } else {\n\t      unsetAndCleanup('$pending', validationErrorKey, controller);\n\t    }\n\t    if (!isBoolean(state)) {\n\t      unset(ctrl.$error, validationErrorKey, controller);\n\t      unset(ctrl.$$success, validationErrorKey, controller);\n\t    } else {\n\t      if (state) {\n\t        unset(ctrl.$error, validationErrorKey, controller);\n\t        set(ctrl.$$success, validationErrorKey, controller);\n\t      } else {\n\t        set(ctrl.$error, validationErrorKey, controller);\n\t        unset(ctrl.$$success, validationErrorKey, controller);\n\t      }\n\t    }\n\t    if (ctrl.$pending) {\n\t      cachedToggleClass(PENDING_CLASS, true);\n\t      ctrl.$valid = ctrl.$invalid = undefined;\n\t      toggleValidationCss('', null);\n\t    } else {\n\t      cachedToggleClass(PENDING_CLASS, false);\n\t      ctrl.$valid = isObjectEmpty(ctrl.$error);\n\t      ctrl.$invalid = !ctrl.$valid;\n\t      toggleValidationCss('', ctrl.$valid);\n\t    }\n\n\t    // re-read the state as the set/unset methods could have\n\t    // combined state in ctrl.$error[validationError] (used for forms),\n\t    // where setting/unsetting only increments/decrements the value,\n\t    // and does not replace it.\n\t    var combinedState;\n\t    if (ctrl.$pending && ctrl.$pending[validationErrorKey]) {\n\t      combinedState = undefined;\n\t    } else if (ctrl.$error[validationErrorKey]) {\n\t      combinedState = false;\n\t    } else if (ctrl.$$success[validationErrorKey]) {\n\t      combinedState = true;\n\t    } else {\n\t      combinedState = null;\n\t    }\n\n\t    toggleValidationCss(validationErrorKey, combinedState);\n\t    ctrl.$$parentForm.$setValidity(validationErrorKey, combinedState, ctrl);\n\t  }\n\n\t  function createAndSet(name, value, controller) {\n\t    if (!ctrl[name]) {\n\t      ctrl[name] = {};\n\t    }\n\t    set(ctrl[name], value, controller);\n\t  }\n\n\t  function unsetAndCleanup(name, value, controller) {\n\t    if (ctrl[name]) {\n\t      unset(ctrl[name], value, controller);\n\t    }\n\t    if (isObjectEmpty(ctrl[name])) {\n\t      ctrl[name] = undefined;\n\t    }\n\t  }\n\n\t  function cachedToggleClass(className, switchValue) {\n\t    if (switchValue && !classCache[className]) {\n\t      $animate.addClass($element, className);\n\t      classCache[className] = true;\n\t    } else if (!switchValue && classCache[className]) {\n\t      $animate.removeClass($element, className);\n\t      classCache[className] = false;\n\t    }\n\t  }\n\n\t  function toggleValidationCss(validationErrorKey, isValid) {\n\t    validationErrorKey = validationErrorKey ? '-' + snake_case(validationErrorKey, '-') : '';\n\n\t    cachedToggleClass(VALID_CLASS + validationErrorKey, isValid === true);\n\t    cachedToggleClass(INVALID_CLASS + validationErrorKey, isValid === false);\n\t  }\n\t}\n\n\tfunction isObjectEmpty(obj) {\n\t  if (obj) {\n\t    for (var prop in obj) {\n\t      if (obj.hasOwnProperty(prop)) {\n\t        return false;\n\t      }\n\t    }\n\t  }\n\t  return true;\n\t}\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngNonBindable\n\t * @restrict AC\n\t * @priority 1000\n\t *\n\t * @description\n\t * The `ngNonBindable` directive tells Angular not to compile or bind the contents of the current\n\t * DOM element. This is useful if the element contains what appears to be Angular directives and\n\t * bindings but which should be ignored by Angular. This could be the case if you have a site that\n\t * displays snippets of code, for instance.\n\t *\n\t * @element ANY\n\t *\n\t * @example\n\t * In this example there are two locations where a simple interpolation binding (`{{}}`) is present,\n\t * but the one wrapped in `ngNonBindable` is left alone.\n\t *\n\t * @example\n\t    <example>\n\t      <file name=\"index.html\">\n\t        <div>Normal: {{1 + 2}}</div>\n\t        <div ng-non-bindable>Ignored: {{1 + 2}}</div>\n\t      </file>\n\t      <file name=\"protractor.js\" type=\"protractor\">\n\t       it('should check ng-non-bindable', function() {\n\t         expect(element(by.binding('1 + 2')).getText()).toContain('3');\n\t         expect(element.all(by.css('div')).last().getText()).toMatch(/1 \\+ 2/);\n\t       });\n\t      </file>\n\t    </example>\n\t */\n\tvar ngNonBindableDirective = ngDirective({ terminal: true, priority: 1000 });\n\n\t/* global jqLiteRemove */\n\n\tvar ngOptionsMinErr = minErr('ngOptions');\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngOptions\n\t * @restrict A\n\t *\n\t * @description\n\t *\n\t * The `ngOptions` attribute can be used to dynamically generate a list of `<option>`\n\t * elements for the `<select>` element using the array or object obtained by evaluating the\n\t * `ngOptions` comprehension expression.\n\t *\n\t * In many cases, `ngRepeat` can be used on `<option>` elements instead of `ngOptions` to achieve a\n\t * similar result. However, `ngOptions` provides some benefits such as reducing memory and\n\t * increasing speed by not creating a new scope for each repeated instance, as well as providing\n\t * more flexibility in how the `<select>`'s model is assigned via the `select` **`as`** part of the\n\t * comprehension expression. `ngOptions` should be used when the `<select>` model needs to be bound\n\t *  to a non-string value. This is because an option element can only be bound to string values at\n\t * present.\n\t *\n\t * When an item in the `<select>` menu is selected, the array element or object property\n\t * represented by the selected option will be bound to the model identified by the `ngModel`\n\t * directive.\n\t *\n\t * Optionally, a single hard-coded `<option>` element, with the value set to an empty string, can\n\t * be nested into the `<select>` element. This element will then represent the `null` or \"not selected\"\n\t * option. See example below for demonstration.\n\t *\n\t * ## Complex Models (objects or collections)\n\t *\n\t * By default, `ngModel` watches the model by reference, not value. This is important to know when\n\t * binding the select to a model that is an object or a collection.\n\t *\n\t * One issue occurs if you want to preselect an option. For example, if you set\n\t * the model to an object that is equal to an object in your collection, `ngOptions` won't be able to set the selection,\n\t * because the objects are not identical. So by default, you should always reference the item in your collection\n\t * for preselections, e.g.: `$scope.selected = $scope.collection[3]`.\n\t *\n\t * Another solution is to use a `track by` clause, because then `ngOptions` will track the identity\n\t * of the item not by reference, but by the result of the `track by` expression. For example, if your\n\t * collection items have an id property, you would `track by item.id`.\n\t *\n\t * A different issue with objects or collections is that ngModel won't detect if an object property or\n\t * a collection item changes. For that reason, `ngOptions` additionally watches the model using\n\t * `$watchCollection`, when the expression contains a `track by` clause or the the select has the `multiple` attribute.\n\t * This allows ngOptions to trigger a re-rendering of the options even if the actual object/collection\n\t * has not changed identity, but only a property on the object or an item in the collection changes.\n\t *\n\t * Note that `$watchCollection` does a shallow comparison of the properties of the object (or the items in the collection\n\t * if the model is an array). This means that changing a property deeper than the first level inside the\n\t * object/collection will not trigger a re-rendering.\n\t *\n\t * ## `select` **`as`**\n\t *\n\t * Using `select` **`as`** will bind the result of the `select` expression to the model, but\n\t * the value of the `<select>` and `<option>` html elements will be either the index (for array data sources)\n\t * or property name (for object data sources) of the value within the collection. If a **`track by`** expression\n\t * is used, the result of that expression will be set as the value of the `option` and `select` elements.\n\t *\n\t *\n\t * ### `select` **`as`** and **`track by`**\n\t *\n\t * <div class=\"alert alert-warning\">\n\t * Be careful when using `select` **`as`** and **`track by`** in the same expression.\n\t * </div>\n\t *\n\t * Given this array of items on the $scope:\n\t *\n\t * ```js\n\t * $scope.items = [{\n\t *   id: 1,\n\t *   label: 'aLabel',\n\t *   subItem: { name: 'aSubItem' }\n\t * }, {\n\t *   id: 2,\n\t *   label: 'bLabel',\n\t *   subItem: { name: 'bSubItem' }\n\t * }];\n\t * ```\n\t *\n\t * This will work:\n\t *\n\t * ```html\n\t * <select ng-options=\"item as item.label for item in items track by item.id\" ng-model=\"selected\"></select>\n\t * ```\n\t * ```js\n\t * $scope.selected = $scope.items[0];\n\t * ```\n\t *\n\t * but this will not work:\n\t *\n\t * ```html\n\t * <select ng-options=\"item.subItem as item.label for item in items track by item.id\" ng-model=\"selected\"></select>\n\t * ```\n\t * ```js\n\t * $scope.selected = $scope.items[0].subItem;\n\t * ```\n\t *\n\t * In both examples, the **`track by`** expression is applied successfully to each `item` in the\n\t * `items` array. Because the selected option has been set programmatically in the controller, the\n\t * **`track by`** expression is also applied to the `ngModel` value. In the first example, the\n\t * `ngModel` value is `items[0]` and the **`track by`** expression evaluates to `items[0].id` with\n\t * no issue. In the second example, the `ngModel` value is `items[0].subItem` and the **`track by`**\n\t * expression evaluates to `items[0].subItem.id` (which is undefined). As a result, the model value\n\t * is not matched against any `<option>` and the `<select>` appears as having no selected value.\n\t *\n\t *\n\t * @param {string} ngModel Assignable angular expression to data-bind to.\n\t * @param {string=} name Property name of the form under which the control is published.\n\t * @param {string=} required The control is considered valid only if value is entered.\n\t * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to\n\t *    the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of\n\t *    `required` when you want to data-bind to the `required` attribute.\n\t * @param {comprehension_expression=} ngOptions in one of the following forms:\n\t *\n\t *   * for array data sources:\n\t *     * `label` **`for`** `value` **`in`** `array`\n\t *     * `select` **`as`** `label` **`for`** `value` **`in`** `array`\n\t *     * `label` **`group by`** `group` **`for`** `value` **`in`** `array`\n\t *     * `label` **`disable when`** `disable` **`for`** `value` **`in`** `array`\n\t *     * `label` **`group by`** `group` **`for`** `value` **`in`** `array` **`track by`** `trackexpr`\n\t *     * `label` **`disable when`** `disable` **`for`** `value` **`in`** `array` **`track by`** `trackexpr`\n\t *     * `label` **`for`** `value` **`in`** `array` | orderBy:`orderexpr` **`track by`** `trackexpr`\n\t *        (for including a filter with `track by`)\n\t *   * for object data sources:\n\t *     * `label` **`for (`**`key` **`,`** `value`**`) in`** `object`\n\t *     * `select` **`as`** `label` **`for (`**`key` **`,`** `value`**`) in`** `object`\n\t *     * `label` **`group by`** `group` **`for (`**`key`**`,`** `value`**`) in`** `object`\n\t *     * `label` **`disable when`** `disable` **`for (`**`key`**`,`** `value`**`) in`** `object`\n\t *     * `select` **`as`** `label` **`group by`** `group`\n\t *         **`for` `(`**`key`**`,`** `value`**`) in`** `object`\n\t *     * `select` **`as`** `label` **`disable when`** `disable`\n\t *         **`for` `(`**`key`**`,`** `value`**`) in`** `object`\n\t *\n\t * Where:\n\t *\n\t *   * `array` / `object`: an expression which evaluates to an array / object to iterate over.\n\t *   * `value`: local variable which will refer to each item in the `array` or each property value\n\t *      of `object` during iteration.\n\t *   * `key`: local variable which will refer to a property name in `object` during iteration.\n\t *   * `label`: The result of this expression will be the label for `<option>` element. The\n\t *     `expression` will most likely refer to the `value` variable (e.g. `value.propertyName`).\n\t *   * `select`: The result of this expression will be bound to the model of the parent `<select>`\n\t *      element. If not specified, `select` expression will default to `value`.\n\t *   * `group`: The result of this expression will be used to group options using the `<optgroup>`\n\t *      DOM element.\n\t *   * `disable`: The result of this expression will be used to disable the rendered `<option>`\n\t *      element. Return `true` to disable.\n\t *   * `trackexpr`: Used when working with an array of objects. The result of this expression will be\n\t *      used to identify the objects in the array. The `trackexpr` will most likely refer to the\n\t *     `value` variable (e.g. `value.propertyName`). With this the selection is preserved\n\t *      even when the options are recreated (e.g. reloaded from the server).\n\t *\n\t * @example\n\t    <example module=\"selectExample\">\n\t      <file name=\"index.html\">\n\t        <script>\n\t        angular.module('selectExample', [])\n\t          .controller('ExampleController', ['$scope', function($scope) {\n\t            $scope.colors = [\n\t              {name:'black', shade:'dark'},\n\t              {name:'white', shade:'light', notAnOption: true},\n\t              {name:'red', shade:'dark'},\n\t              {name:'blue', shade:'dark', notAnOption: true},\n\t              {name:'yellow', shade:'light', notAnOption: false}\n\t            ];\n\t            $scope.myColor = $scope.colors[2]; // red\n\t          }]);\n\t        </script>\n\t        <div ng-controller=\"ExampleController\">\n\t          <ul>\n\t            <li ng-repeat=\"color in colors\">\n\t              <label>Name: <input ng-model=\"color.name\"></label>\n\t              <label><input type=\"checkbox\" ng-model=\"color.notAnOption\"> Disabled?</label>\n\t              <button ng-click=\"colors.splice($index, 1)\" aria-label=\"Remove\">X</button>\n\t            </li>\n\t            <li>\n\t              <button ng-click=\"colors.push({})\">add</button>\n\t            </li>\n\t          </ul>\n\t          <hr/>\n\t          <label>Color (null not allowed):\n\t            <select ng-model=\"myColor\" ng-options=\"color.name for color in colors\"></select>\n\t          </label><br/>\n\t          <label>Color (null allowed):\n\t          <span  class=\"nullable\">\n\t            <select ng-model=\"myColor\" ng-options=\"color.name for color in colors\">\n\t              <option value=\"\">-- choose color --</option>\n\t            </select>\n\t          </span></label><br/>\n\n\t          <label>Color grouped by shade:\n\t            <select ng-model=\"myColor\" ng-options=\"color.name group by color.shade for color in colors\">\n\t            </select>\n\t          </label><br/>\n\n\t          <label>Color grouped by shade, with some disabled:\n\t            <select ng-model=\"myColor\"\n\t                  ng-options=\"color.name group by color.shade disable when color.notAnOption for color in colors\">\n\t            </select>\n\t          </label><br/>\n\n\n\n\t          Select <button ng-click=\"myColor = { name:'not in list', shade: 'other' }\">bogus</button>.\n\t          <br/>\n\t          <hr/>\n\t          Currently selected: {{ {selected_color:myColor} }}\n\t          <div style=\"border:solid 1px black; height:20px\"\n\t               ng-style=\"{'background-color':myColor.name}\">\n\t          </div>\n\t        </div>\n\t      </file>\n\t      <file name=\"protractor.js\" type=\"protractor\">\n\t         it('should check ng-options', function() {\n\t           expect(element(by.binding('{selected_color:myColor}')).getText()).toMatch('red');\n\t           element.all(by.model('myColor')).first().click();\n\t           element.all(by.css('select[ng-model=\"myColor\"] option')).first().click();\n\t           expect(element(by.binding('{selected_color:myColor}')).getText()).toMatch('black');\n\t           element(by.css('.nullable select[ng-model=\"myColor\"]')).click();\n\t           element.all(by.css('.nullable select[ng-model=\"myColor\"] option')).first().click();\n\t           expect(element(by.binding('{selected_color:myColor}')).getText()).toMatch('null');\n\t         });\n\t      </file>\n\t    </example>\n\t */\n\n\t// jshint maxlen: false\n\t//                     //00001111111111000000000002222222222000000000000000000000333333333300000000000000000000000004444444444400000000000005555555555555550000000006666666666666660000000777777777777777000000000000000888888888800000000000000000009999999999\n\tvar NG_OPTIONS_REGEXP = /^\\s*([\\s\\S]+?)(?:\\s+as\\s+([\\s\\S]+?))?(?:\\s+group\\s+by\\s+([\\s\\S]+?))?(?:\\s+disable\\s+when\\s+([\\s\\S]+?))?\\s+for\\s+(?:([\\$\\w][\\$\\w]*)|(?:\\(\\s*([\\$\\w][\\$\\w]*)\\s*,\\s*([\\$\\w][\\$\\w]*)\\s*\\)))\\s+in\\s+([\\s\\S]+?)(?:\\s+track\\s+by\\s+([\\s\\S]+?))?$/;\n\t                        // 1: value expression (valueFn)\n\t                        // 2: label expression (displayFn)\n\t                        // 3: group by expression (groupByFn)\n\t                        // 4: disable when expression (disableWhenFn)\n\t                        // 5: array item variable name\n\t                        // 6: object item key variable name\n\t                        // 7: object item value variable name\n\t                        // 8: collection expression\n\t                        // 9: track by expression\n\t// jshint maxlen: 100\n\n\n\tvar ngOptionsDirective = ['$compile', '$parse', function($compile, $parse) {\n\n\t  function parseOptionsExpression(optionsExp, selectElement, scope) {\n\n\t    var match = optionsExp.match(NG_OPTIONS_REGEXP);\n\t    if (!(match)) {\n\t      throw ngOptionsMinErr('iexp',\n\t        \"Expected expression in form of \" +\n\t        \"'_select_ (as _label_)? for (_key_,)?_value_ in _collection_'\" +\n\t        \" but got '{0}'. Element: {1}\",\n\t        optionsExp, startingTag(selectElement));\n\t    }\n\n\t    // Extract the parts from the ngOptions expression\n\n\t    // The variable name for the value of the item in the collection\n\t    var valueName = match[5] || match[7];\n\t    // The variable name for the key of the item in the collection\n\t    var keyName = match[6];\n\n\t    // An expression that generates the viewValue for an option if there is a label expression\n\t    var selectAs = / as /.test(match[0]) && match[1];\n\t    // An expression that is used to track the id of each object in the options collection\n\t    var trackBy = match[9];\n\t    // An expression that generates the viewValue for an option if there is no label expression\n\t    var valueFn = $parse(match[2] ? match[1] : valueName);\n\t    var selectAsFn = selectAs && $parse(selectAs);\n\t    var viewValueFn = selectAsFn || valueFn;\n\t    var trackByFn = trackBy && $parse(trackBy);\n\n\t    // Get the value by which we are going to track the option\n\t    // if we have a trackFn then use that (passing scope and locals)\n\t    // otherwise just hash the given viewValue\n\t    var getTrackByValueFn = trackBy ?\n\t                              function(value, locals) { return trackByFn(scope, locals); } :\n\t                              function getHashOfValue(value) { return hashKey(value); };\n\t    var getTrackByValue = function(value, key) {\n\t      return getTrackByValueFn(value, getLocals(value, key));\n\t    };\n\n\t    var displayFn = $parse(match[2] || match[1]);\n\t    var groupByFn = $parse(match[3] || '');\n\t    var disableWhenFn = $parse(match[4] || '');\n\t    var valuesFn = $parse(match[8]);\n\n\t    var locals = {};\n\t    var getLocals = keyName ? function(value, key) {\n\t      locals[keyName] = key;\n\t      locals[valueName] = value;\n\t      return locals;\n\t    } : function(value) {\n\t      locals[valueName] = value;\n\t      return locals;\n\t    };\n\n\n\t    function Option(selectValue, viewValue, label, group, disabled) {\n\t      this.selectValue = selectValue;\n\t      this.viewValue = viewValue;\n\t      this.label = label;\n\t      this.group = group;\n\t      this.disabled = disabled;\n\t    }\n\n\t    function getOptionValuesKeys(optionValues) {\n\t      var optionValuesKeys;\n\n\t      if (!keyName && isArrayLike(optionValues)) {\n\t        optionValuesKeys = optionValues;\n\t      } else {\n\t        // if object, extract keys, in enumeration order, unsorted\n\t        optionValuesKeys = [];\n\t        for (var itemKey in optionValues) {\n\t          if (optionValues.hasOwnProperty(itemKey) && itemKey.charAt(0) !== '$') {\n\t            optionValuesKeys.push(itemKey);\n\t          }\n\t        }\n\t      }\n\t      return optionValuesKeys;\n\t    }\n\n\t    return {\n\t      trackBy: trackBy,\n\t      getTrackByValue: getTrackByValue,\n\t      getWatchables: $parse(valuesFn, function(optionValues) {\n\t        // Create a collection of things that we would like to watch (watchedArray)\n\t        // so that they can all be watched using a single $watchCollection\n\t        // that only runs the handler once if anything changes\n\t        var watchedArray = [];\n\t        optionValues = optionValues || [];\n\n\t        var optionValuesKeys = getOptionValuesKeys(optionValues);\n\t        var optionValuesLength = optionValuesKeys.length;\n\t        for (var index = 0; index < optionValuesLength; index++) {\n\t          var key = (optionValues === optionValuesKeys) ? index : optionValuesKeys[index];\n\t          var value = optionValues[key];\n\n\t          var locals = getLocals(optionValues[key], key);\n\t          var selectValue = getTrackByValueFn(optionValues[key], locals);\n\t          watchedArray.push(selectValue);\n\n\t          // Only need to watch the displayFn if there is a specific label expression\n\t          if (match[2] || match[1]) {\n\t            var label = displayFn(scope, locals);\n\t            watchedArray.push(label);\n\t          }\n\n\t          // Only need to watch the disableWhenFn if there is a specific disable expression\n\t          if (match[4]) {\n\t            var disableWhen = disableWhenFn(scope, locals);\n\t            watchedArray.push(disableWhen);\n\t          }\n\t        }\n\t        return watchedArray;\n\t      }),\n\n\t      getOptions: function() {\n\n\t        var optionItems = [];\n\t        var selectValueMap = {};\n\n\t        // The option values were already computed in the `getWatchables` fn,\n\t        // which must have been called to trigger `getOptions`\n\t        var optionValues = valuesFn(scope) || [];\n\t        var optionValuesKeys = getOptionValuesKeys(optionValues);\n\t        var optionValuesLength = optionValuesKeys.length;\n\n\t        for (var index = 0; index < optionValuesLength; index++) {\n\t          var key = (optionValues === optionValuesKeys) ? index : optionValuesKeys[index];\n\t          var value = optionValues[key];\n\t          var locals = getLocals(value, key);\n\t          var viewValue = viewValueFn(scope, locals);\n\t          var selectValue = getTrackByValueFn(viewValue, locals);\n\t          var label = displayFn(scope, locals);\n\t          var group = groupByFn(scope, locals);\n\t          var disabled = disableWhenFn(scope, locals);\n\t          var optionItem = new Option(selectValue, viewValue, label, group, disabled);\n\n\t          optionItems.push(optionItem);\n\t          selectValueMap[selectValue] = optionItem;\n\t        }\n\n\t        return {\n\t          items: optionItems,\n\t          selectValueMap: selectValueMap,\n\t          getOptionFromViewValue: function(value) {\n\t            return selectValueMap[getTrackByValue(value)];\n\t          },\n\t          getViewValueFromOption: function(option) {\n\t            // If the viewValue could be an object that may be mutated by the application,\n\t            // we need to make a copy and not return the reference to the value on the option.\n\t            return trackBy ? angular.copy(option.viewValue) : option.viewValue;\n\t          }\n\t        };\n\t      }\n\t    };\n\t  }\n\n\n\t  // we can't just jqLite('<option>') since jqLite is not smart enough\n\t  // to create it in <select> and IE barfs otherwise.\n\t  var optionTemplate = document.createElement('option'),\n\t      optGroupTemplate = document.createElement('optgroup');\n\n\n\t    function ngOptionsPostLink(scope, selectElement, attr, ctrls) {\n\n\t      // if ngModel is not defined, we don't need to do anything\n\t      var ngModelCtrl = ctrls[1];\n\t      if (!ngModelCtrl) return;\n\n\t      var selectCtrl = ctrls[0];\n\t      var multiple = attr.multiple;\n\n\t      // The emptyOption allows the application developer to provide their own custom \"empty\"\n\t      // option when the viewValue does not match any of the option values.\n\t      var emptyOption;\n\t      for (var i = 0, children = selectElement.children(), ii = children.length; i < ii; i++) {\n\t        if (children[i].value === '') {\n\t          emptyOption = children.eq(i);\n\t          break;\n\t        }\n\t      }\n\n\t      var providedEmptyOption = !!emptyOption;\n\n\t      var unknownOption = jqLite(optionTemplate.cloneNode(false));\n\t      unknownOption.val('?');\n\n\t      var options;\n\t      var ngOptions = parseOptionsExpression(attr.ngOptions, selectElement, scope);\n\n\n\t      var renderEmptyOption = function() {\n\t        if (!providedEmptyOption) {\n\t          selectElement.prepend(emptyOption);\n\t        }\n\t        selectElement.val('');\n\t        emptyOption.prop('selected', true); // needed for IE\n\t        emptyOption.attr('selected', true);\n\t      };\n\n\t      var removeEmptyOption = function() {\n\t        if (!providedEmptyOption) {\n\t          emptyOption.remove();\n\t        }\n\t      };\n\n\n\t      var renderUnknownOption = function() {\n\t        selectElement.prepend(unknownOption);\n\t        selectElement.val('?');\n\t        unknownOption.prop('selected', true); // needed for IE\n\t        unknownOption.attr('selected', true);\n\t      };\n\n\t      var removeUnknownOption = function() {\n\t        unknownOption.remove();\n\t      };\n\n\t      // Update the controller methods for multiple selectable options\n\t      if (!multiple) {\n\n\t        selectCtrl.writeValue = function writeNgOptionsValue(value) {\n\t          var option = options.getOptionFromViewValue(value);\n\n\t          if (option && !option.disabled) {\n\t            if (selectElement[0].value !== option.selectValue) {\n\t              removeUnknownOption();\n\t              removeEmptyOption();\n\n\t              selectElement[0].value = option.selectValue;\n\t              option.element.selected = true;\n\t              option.element.setAttribute('selected', 'selected');\n\t            }\n\t          } else {\n\t            if (value === null || providedEmptyOption) {\n\t              removeUnknownOption();\n\t              renderEmptyOption();\n\t            } else {\n\t              removeEmptyOption();\n\t              renderUnknownOption();\n\t            }\n\t          }\n\t        };\n\n\t        selectCtrl.readValue = function readNgOptionsValue() {\n\n\t          var selectedOption = options.selectValueMap[selectElement.val()];\n\n\t          if (selectedOption && !selectedOption.disabled) {\n\t            removeEmptyOption();\n\t            removeUnknownOption();\n\t            return options.getViewValueFromOption(selectedOption);\n\t          }\n\t          return null;\n\t        };\n\n\t        // If we are using `track by` then we must watch the tracked value on the model\n\t        // since ngModel only watches for object identity change\n\t        if (ngOptions.trackBy) {\n\t          scope.$watch(\n\t            function() { return ngOptions.getTrackByValue(ngModelCtrl.$viewValue); },\n\t            function() { ngModelCtrl.$render(); }\n\t          );\n\t        }\n\n\t      } else {\n\n\t        ngModelCtrl.$isEmpty = function(value) {\n\t          return !value || value.length === 0;\n\t        };\n\n\n\t        selectCtrl.writeValue = function writeNgOptionsMultiple(value) {\n\t          options.items.forEach(function(option) {\n\t            option.element.selected = false;\n\t          });\n\n\t          if (value) {\n\t            value.forEach(function(item) {\n\t              var option = options.getOptionFromViewValue(item);\n\t              if (option && !option.disabled) option.element.selected = true;\n\t            });\n\t          }\n\t        };\n\n\n\t        selectCtrl.readValue = function readNgOptionsMultiple() {\n\t          var selectedValues = selectElement.val() || [],\n\t              selections = [];\n\n\t          forEach(selectedValues, function(value) {\n\t            var option = options.selectValueMap[value];\n\t            if (option && !option.disabled) selections.push(options.getViewValueFromOption(option));\n\t          });\n\n\t          return selections;\n\t        };\n\n\t        // If we are using `track by` then we must watch these tracked values on the model\n\t        // since ngModel only watches for object identity change\n\t        if (ngOptions.trackBy) {\n\n\t          scope.$watchCollection(function() {\n\t            if (isArray(ngModelCtrl.$viewValue)) {\n\t              return ngModelCtrl.$viewValue.map(function(value) {\n\t                return ngOptions.getTrackByValue(value);\n\t              });\n\t            }\n\t          }, function() {\n\t            ngModelCtrl.$render();\n\t          });\n\n\t        }\n\t      }\n\n\n\t      if (providedEmptyOption) {\n\n\t        // we need to remove it before calling selectElement.empty() because otherwise IE will\n\t        // remove the label from the element. wtf?\n\t        emptyOption.remove();\n\n\t        // compile the element since there might be bindings in it\n\t        $compile(emptyOption)(scope);\n\n\t        // remove the class, which is added automatically because we recompile the element and it\n\t        // becomes the compilation root\n\t        emptyOption.removeClass('ng-scope');\n\t      } else {\n\t        emptyOption = jqLite(optionTemplate.cloneNode(false));\n\t      }\n\n\t      // We need to do this here to ensure that the options object is defined\n\t      // when we first hit it in writeNgOptionsValue\n\t      updateOptions();\n\n\t      // We will re-render the option elements if the option values or labels change\n\t      scope.$watchCollection(ngOptions.getWatchables, updateOptions);\n\n\t      // ------------------------------------------------------------------ //\n\n\n\t      function updateOptionElement(option, element) {\n\t        option.element = element;\n\t        element.disabled = option.disabled;\n\t        // NOTE: The label must be set before the value, otherwise IE10/11/EDGE create unresponsive\n\t        // selects in certain circumstances when multiple selects are next to each other and display\n\t        // the option list in listbox style, i.e. the select is [multiple], or specifies a [size].\n\t        // See https://github.com/angular/angular.js/issues/11314 for more info.\n\t        // This is unfortunately untestable with unit / e2e tests\n\t        if (option.label !== element.label) {\n\t          element.label = option.label;\n\t          element.textContent = option.label;\n\t        }\n\t        if (option.value !== element.value) element.value = option.selectValue;\n\t      }\n\n\t      function addOrReuseElement(parent, current, type, templateElement) {\n\t        var element;\n\t        // Check whether we can reuse the next element\n\t        if (current && lowercase(current.nodeName) === type) {\n\t          // The next element is the right type so reuse it\n\t          element = current;\n\t        } else {\n\t          // The next element is not the right type so create a new one\n\t          element = templateElement.cloneNode(false);\n\t          if (!current) {\n\t            // There are no more elements so just append it to the select\n\t            parent.appendChild(element);\n\t          } else {\n\t            // The next element is not a group so insert the new one\n\t            parent.insertBefore(element, current);\n\t          }\n\t        }\n\t        return element;\n\t      }\n\n\n\t      function removeExcessElements(current) {\n\t        var next;\n\t        while (current) {\n\t          next = current.nextSibling;\n\t          jqLiteRemove(current);\n\t          current = next;\n\t        }\n\t      }\n\n\n\t      function skipEmptyAndUnknownOptions(current) {\n\t        var emptyOption_ = emptyOption && emptyOption[0];\n\t        var unknownOption_ = unknownOption && unknownOption[0];\n\n\t        // We cannot rely on the extracted empty option being the same as the compiled empty option,\n\t        // because the compiled empty option might have been replaced by a comment because\n\t        // it had an \"element\" transclusion directive on it (such as ngIf)\n\t        if (emptyOption_ || unknownOption_) {\n\t          while (current &&\n\t                (current === emptyOption_ ||\n\t                current === unknownOption_ ||\n\t                current.nodeType === NODE_TYPE_COMMENT ||\n\t                current.value === '')) {\n\t            current = current.nextSibling;\n\t          }\n\t        }\n\t        return current;\n\t      }\n\n\n\t      function updateOptions() {\n\n\t        var previousValue = options && selectCtrl.readValue();\n\n\t        options = ngOptions.getOptions();\n\n\t        var groupMap = {};\n\t        var currentElement = selectElement[0].firstChild;\n\n\t        // Ensure that the empty option is always there if it was explicitly provided\n\t        if (providedEmptyOption) {\n\t          selectElement.prepend(emptyOption);\n\t        }\n\n\t        currentElement = skipEmptyAndUnknownOptions(currentElement);\n\n\t        options.items.forEach(function updateOption(option) {\n\t          var group;\n\t          var groupElement;\n\t          var optionElement;\n\n\t          if (option.group) {\n\n\t            // This option is to live in a group\n\t            // See if we have already created this group\n\t            group = groupMap[option.group];\n\n\t            if (!group) {\n\n\t              // We have not already created this group\n\t              groupElement = addOrReuseElement(selectElement[0],\n\t                                               currentElement,\n\t                                               'optgroup',\n\t                                               optGroupTemplate);\n\t              // Move to the next element\n\t              currentElement = groupElement.nextSibling;\n\n\t              // Update the label on the group element\n\t              groupElement.label = option.group;\n\n\t              // Store it for use later\n\t              group = groupMap[option.group] = {\n\t                groupElement: groupElement,\n\t                currentOptionElement: groupElement.firstChild\n\t              };\n\n\t            }\n\n\t            // So now we have a group for this option we add the option to the group\n\t            optionElement = addOrReuseElement(group.groupElement,\n\t                                              group.currentOptionElement,\n\t                                              'option',\n\t                                              optionTemplate);\n\t            updateOptionElement(option, optionElement);\n\t            // Move to the next element\n\t            group.currentOptionElement = optionElement.nextSibling;\n\n\t          } else {\n\n\t            // This option is not in a group\n\t            optionElement = addOrReuseElement(selectElement[0],\n\t                                              currentElement,\n\t                                              'option',\n\t                                              optionTemplate);\n\t            updateOptionElement(option, optionElement);\n\t            // Move to the next element\n\t            currentElement = optionElement.nextSibling;\n\t          }\n\t        });\n\n\n\t        // Now remove all excess options and group\n\t        Object.keys(groupMap).forEach(function(key) {\n\t          removeExcessElements(groupMap[key].currentOptionElement);\n\t        });\n\t        removeExcessElements(currentElement);\n\n\t        ngModelCtrl.$render();\n\n\t        // Check to see if the value has changed due to the update to the options\n\t        if (!ngModelCtrl.$isEmpty(previousValue)) {\n\t          var nextValue = selectCtrl.readValue();\n\t          if (ngOptions.trackBy ? !equals(previousValue, nextValue) : previousValue !== nextValue) {\n\t            ngModelCtrl.$setViewValue(nextValue);\n\t            ngModelCtrl.$render();\n\t          }\n\t        }\n\n\t      }\n\t  }\n\n\t  return {\n\t    restrict: 'A',\n\t    terminal: true,\n\t    require: ['select', '?ngModel'],\n\t    link: {\n\t      pre: function ngOptionsPreLink(scope, selectElement, attr, ctrls) {\n\t        // Deactivate the SelectController.register method to prevent\n\t        // option directives from accidentally registering themselves\n\t        // (and unwanted $destroy handlers etc.)\n\t        ctrls[0].registerOption = noop;\n\t      },\n\t      post: ngOptionsPostLink\n\t    }\n\t  };\n\t}];\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngPluralize\n\t * @restrict EA\n\t *\n\t * @description\n\t * `ngPluralize` is a directive that displays messages according to en-US localization rules.\n\t * These rules are bundled with angular.js, but can be overridden\n\t * (see {@link guide/i18n Angular i18n} dev guide). You configure ngPluralize directive\n\t * by specifying the mappings between\n\t * [plural categories](http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html)\n\t * and the strings to be displayed.\n\t *\n\t * # Plural categories and explicit number rules\n\t * There are two\n\t * [plural categories](http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html)\n\t * in Angular's default en-US locale: \"one\" and \"other\".\n\t *\n\t * While a plural category may match many numbers (for example, in en-US locale, \"other\" can match\n\t * any number that is not 1), an explicit number rule can only match one number. For example, the\n\t * explicit number rule for \"3\" matches the number 3. There are examples of plural categories\n\t * and explicit number rules throughout the rest of this documentation.\n\t *\n\t * # Configuring ngPluralize\n\t * You configure ngPluralize by providing 2 attributes: `count` and `when`.\n\t * You can also provide an optional attribute, `offset`.\n\t *\n\t * The value of the `count` attribute can be either a string or an {@link guide/expression\n\t * Angular expression}; these are evaluated on the current scope for its bound value.\n\t *\n\t * The `when` attribute specifies the mappings between plural categories and the actual\n\t * string to be displayed. The value of the attribute should be a JSON object.\n\t *\n\t * The following example shows how to configure ngPluralize:\n\t *\n\t * ```html\n\t * <ng-pluralize count=\"personCount\"\n\t                 when=\"{'0': 'Nobody is viewing.',\n\t *                      'one': '1 person is viewing.',\n\t *                      'other': '{} people are viewing.'}\">\n\t * </ng-pluralize>\n\t *```\n\t *\n\t * In the example, `\"0: Nobody is viewing.\"` is an explicit number rule. If you did not\n\t * specify this rule, 0 would be matched to the \"other\" category and \"0 people are viewing\"\n\t * would be shown instead of \"Nobody is viewing\". You can specify an explicit number rule for\n\t * other numbers, for example 12, so that instead of showing \"12 people are viewing\", you can\n\t * show \"a dozen people are viewing\".\n\t *\n\t * You can use a set of closed braces (`{}`) as a placeholder for the number that you want substituted\n\t * into pluralized strings. In the previous example, Angular will replace `{}` with\n\t * <span ng-non-bindable>`{{personCount}}`</span>. The closed braces `{}` is a placeholder\n\t * for <span ng-non-bindable>{{numberExpression}}</span>.\n\t *\n\t * If no rule is defined for a category, then an empty string is displayed and a warning is generated.\n\t * Note that some locales define more categories than `one` and `other`. For example, fr-fr defines `few` and `many`.\n\t *\n\t * # Configuring ngPluralize with offset\n\t * The `offset` attribute allows further customization of pluralized text, which can result in\n\t * a better user experience. For example, instead of the message \"4 people are viewing this document\",\n\t * you might display \"John, Kate and 2 others are viewing this document\".\n\t * The offset attribute allows you to offset a number by any desired value.\n\t * Let's take a look at an example:\n\t *\n\t * ```html\n\t * <ng-pluralize count=\"personCount\" offset=2\n\t *               when=\"{'0': 'Nobody is viewing.',\n\t *                      '1': '{{person1}} is viewing.',\n\t *                      '2': '{{person1}} and {{person2}} are viewing.',\n\t *                      'one': '{{person1}}, {{person2}} and one other person are viewing.',\n\t *                      'other': '{{person1}}, {{person2}} and {} other people are viewing.'}\">\n\t * </ng-pluralize>\n\t * ```\n\t *\n\t * Notice that we are still using two plural categories(one, other), but we added\n\t * three explicit number rules 0, 1 and 2.\n\t * When one person, perhaps John, views the document, \"John is viewing\" will be shown.\n\t * When three people view the document, no explicit number rule is found, so\n\t * an offset of 2 is taken off 3, and Angular uses 1 to decide the plural category.\n\t * In this case, plural category 'one' is matched and \"John, Mary and one other person are viewing\"\n\t * is shown.\n\t *\n\t * Note that when you specify offsets, you must provide explicit number rules for\n\t * numbers from 0 up to and including the offset. If you use an offset of 3, for example,\n\t * you must provide explicit number rules for 0, 1, 2 and 3. You must also provide plural strings for\n\t * plural categories \"one\" and \"other\".\n\t *\n\t * @param {string|expression} count The variable to be bound to.\n\t * @param {string} when The mapping between plural category to its corresponding strings.\n\t * @param {number=} offset Offset to deduct from the total number.\n\t *\n\t * @example\n\t    <example module=\"pluralizeExample\">\n\t      <file name=\"index.html\">\n\t        <script>\n\t          angular.module('pluralizeExample', [])\n\t            .controller('ExampleController', ['$scope', function($scope) {\n\t              $scope.person1 = 'Igor';\n\t              $scope.person2 = 'Misko';\n\t              $scope.personCount = 1;\n\t            }]);\n\t        </script>\n\t        <div ng-controller=\"ExampleController\">\n\t          <label>Person 1:<input type=\"text\" ng-model=\"person1\" value=\"Igor\" /></label><br/>\n\t          <label>Person 2:<input type=\"text\" ng-model=\"person2\" value=\"Misko\" /></label><br/>\n\t          <label>Number of People:<input type=\"text\" ng-model=\"personCount\" value=\"1\" /></label><br/>\n\n\t          <!--- Example with simple pluralization rules for en locale --->\n\t          Without Offset:\n\t          <ng-pluralize count=\"personCount\"\n\t                        when=\"{'0': 'Nobody is viewing.',\n\t                               'one': '1 person is viewing.',\n\t                               'other': '{} people are viewing.'}\">\n\t          </ng-pluralize><br>\n\n\t          <!--- Example with offset --->\n\t          With Offset(2):\n\t          <ng-pluralize count=\"personCount\" offset=2\n\t                        when=\"{'0': 'Nobody is viewing.',\n\t                               '1': '{{person1}} is viewing.',\n\t                               '2': '{{person1}} and {{person2}} are viewing.',\n\t                               'one': '{{person1}}, {{person2}} and one other person are viewing.',\n\t                               'other': '{{person1}}, {{person2}} and {} other people are viewing.'}\">\n\t          </ng-pluralize>\n\t        </div>\n\t      </file>\n\t      <file name=\"protractor.js\" type=\"protractor\">\n\t        it('should show correct pluralized string', function() {\n\t          var withoutOffset = element.all(by.css('ng-pluralize')).get(0);\n\t          var withOffset = element.all(by.css('ng-pluralize')).get(1);\n\t          var countInput = element(by.model('personCount'));\n\n\t          expect(withoutOffset.getText()).toEqual('1 person is viewing.');\n\t          expect(withOffset.getText()).toEqual('Igor is viewing.');\n\n\t          countInput.clear();\n\t          countInput.sendKeys('0');\n\n\t          expect(withoutOffset.getText()).toEqual('Nobody is viewing.');\n\t          expect(withOffset.getText()).toEqual('Nobody is viewing.');\n\n\t          countInput.clear();\n\t          countInput.sendKeys('2');\n\n\t          expect(withoutOffset.getText()).toEqual('2 people are viewing.');\n\t          expect(withOffset.getText()).toEqual('Igor and Misko are viewing.');\n\n\t          countInput.clear();\n\t          countInput.sendKeys('3');\n\n\t          expect(withoutOffset.getText()).toEqual('3 people are viewing.');\n\t          expect(withOffset.getText()).toEqual('Igor, Misko and one other person are viewing.');\n\n\t          countInput.clear();\n\t          countInput.sendKeys('4');\n\n\t          expect(withoutOffset.getText()).toEqual('4 people are viewing.');\n\t          expect(withOffset.getText()).toEqual('Igor, Misko and 2 other people are viewing.');\n\t        });\n\t        it('should show data-bound names', function() {\n\t          var withOffset = element.all(by.css('ng-pluralize')).get(1);\n\t          var personCount = element(by.model('personCount'));\n\t          var person1 = element(by.model('person1'));\n\t          var person2 = element(by.model('person2'));\n\t          personCount.clear();\n\t          personCount.sendKeys('4');\n\t          person1.clear();\n\t          person1.sendKeys('Di');\n\t          person2.clear();\n\t          person2.sendKeys('Vojta');\n\t          expect(withOffset.getText()).toEqual('Di, Vojta and 2 other people are viewing.');\n\t        });\n\t      </file>\n\t    </example>\n\t */\n\tvar ngPluralizeDirective = ['$locale', '$interpolate', '$log', function($locale, $interpolate, $log) {\n\t  var BRACE = /{}/g,\n\t      IS_WHEN = /^when(Minus)?(.+)$/;\n\n\t  return {\n\t    link: function(scope, element, attr) {\n\t      var numberExp = attr.count,\n\t          whenExp = attr.$attr.when && element.attr(attr.$attr.when), // we have {{}} in attrs\n\t          offset = attr.offset || 0,\n\t          whens = scope.$eval(whenExp) || {},\n\t          whensExpFns = {},\n\t          startSymbol = $interpolate.startSymbol(),\n\t          endSymbol = $interpolate.endSymbol(),\n\t          braceReplacement = startSymbol + numberExp + '-' + offset + endSymbol,\n\t          watchRemover = angular.noop,\n\t          lastCount;\n\n\t      forEach(attr, function(expression, attributeName) {\n\t        var tmpMatch = IS_WHEN.exec(attributeName);\n\t        if (tmpMatch) {\n\t          var whenKey = (tmpMatch[1] ? '-' : '') + lowercase(tmpMatch[2]);\n\t          whens[whenKey] = element.attr(attr.$attr[attributeName]);\n\t        }\n\t      });\n\t      forEach(whens, function(expression, key) {\n\t        whensExpFns[key] = $interpolate(expression.replace(BRACE, braceReplacement));\n\n\t      });\n\n\t      scope.$watch(numberExp, function ngPluralizeWatchAction(newVal) {\n\t        var count = parseFloat(newVal);\n\t        var countIsNaN = isNaN(count);\n\n\t        if (!countIsNaN && !(count in whens)) {\n\t          // If an explicit number rule such as 1, 2, 3... is defined, just use it.\n\t          // Otherwise, check it against pluralization rules in $locale service.\n\t          count = $locale.pluralCat(count - offset);\n\t        }\n\n\t        // If both `count` and `lastCount` are NaN, we don't need to re-register a watch.\n\t        // In JS `NaN !== NaN`, so we have to exlicitly check.\n\t        if ((count !== lastCount) && !(countIsNaN && isNumber(lastCount) && isNaN(lastCount))) {\n\t          watchRemover();\n\t          var whenExpFn = whensExpFns[count];\n\t          if (isUndefined(whenExpFn)) {\n\t            if (newVal != null) {\n\t              $log.debug(\"ngPluralize: no rule defined for '\" + count + \"' in \" + whenExp);\n\t            }\n\t            watchRemover = noop;\n\t            updateElementText();\n\t          } else {\n\t            watchRemover = scope.$watch(whenExpFn, updateElementText);\n\t          }\n\t          lastCount = count;\n\t        }\n\t      });\n\n\t      function updateElementText(newText) {\n\t        element.text(newText || '');\n\t      }\n\t    }\n\t  };\n\t}];\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngRepeat\n\t * @multiElement\n\t *\n\t * @description\n\t * The `ngRepeat` directive instantiates a template once per item from a collection. Each template\n\t * instance gets its own scope, where the given loop variable is set to the current collection item,\n\t * and `$index` is set to the item index or key.\n\t *\n\t * Special properties are exposed on the local scope of each template instance, including:\n\t *\n\t * | Variable  | Type            | Details                                                                     |\n\t * |-----------|-----------------|-----------------------------------------------------------------------------|\n\t * | `$index`  | {@type number}  | iterator offset of the repeated element (0..length-1)                       |\n\t * | `$first`  | {@type boolean} | true if the repeated element is first in the iterator.                      |\n\t * | `$middle` | {@type boolean} | true if the repeated element is between the first and last in the iterator. |\n\t * | `$last`   | {@type boolean} | true if the repeated element is last in the iterator.                       |\n\t * | `$even`   | {@type boolean} | true if the iterator position `$index` is even (otherwise false).           |\n\t * | `$odd`    | {@type boolean} | true if the iterator position `$index` is odd (otherwise false).            |\n\t *\n\t * <div class=\"alert alert-info\">\n\t *   Creating aliases for these properties is possible with {@link ng.directive:ngInit `ngInit`}.\n\t *   This may be useful when, for instance, nesting ngRepeats.\n\t * </div>\n\t *\n\t *\n\t * # Iterating over object properties\n\t *\n\t * It is possible to get `ngRepeat` to iterate over the properties of an object using the following\n\t * syntax:\n\t *\n\t * ```js\n\t * <div ng-repeat=\"(key, value) in myObj\"> ... </div>\n\t * ```\n\t *\n\t * You need to be aware that the JavaScript specification does not define the order of keys\n\t * returned for an object. (To mitigate this in Angular 1.3 the `ngRepeat` directive\n\t * used to sort the keys alphabetically.)\n\t *\n\t * Version 1.4 removed the alphabetic sorting. We now rely on the order returned by the browser\n\t * when running `for key in myObj`. It seems that browsers generally follow the strategy of providing\n\t * keys in the order in which they were defined, although there are exceptions when keys are deleted\n\t * and reinstated. See the [MDN page on `delete` for more info](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/delete#Cross-browser_notes).\n\t *\n\t * If this is not desired, the recommended workaround is to convert your object into an array\n\t * that is sorted into the order that you prefer before providing it to `ngRepeat`.  You could\n\t * do this with a filter such as [toArrayFilter](http://ngmodules.org/modules/angular-toArrayFilter)\n\t * or implement a `$watch` on the object yourself.\n\t *\n\t *\n\t * # Tracking and Duplicates\n\t *\n\t * `ngRepeat` uses {@link $rootScope.Scope#$watchCollection $watchCollection} to detect changes in\n\t * the collection. When a change happens, ngRepeat then makes the corresponding changes to the DOM:\n\t *\n\t * * When an item is added, a new instance of the template is added to the DOM.\n\t * * When an item is removed, its template instance is removed from the DOM.\n\t * * When items are reordered, their respective templates are reordered in the DOM.\n\t *\n\t * To minimize creation of DOM elements, `ngRepeat` uses a function\n\t * to \"keep track\" of all items in the collection and their corresponding DOM elements.\n\t * For example, if an item is added to the collection, ngRepeat will know that all other items\n\t * already have DOM elements, and will not re-render them.\n\t *\n\t * The default tracking function (which tracks items by their identity) does not allow\n\t * duplicate items in arrays. This is because when there are duplicates, it is not possible\n\t * to maintain a one-to-one mapping between collection items and DOM elements.\n\t *\n\t * If you do need to repeat duplicate items, you can substitute the default tracking behavior\n\t * with your own using the `track by` expression.\n\t *\n\t * For example, you may track items by the index of each item in the collection, using the\n\t * special scope property `$index`:\n\t * ```html\n\t *    <div ng-repeat=\"n in [42, 42, 43, 43] track by $index\">\n\t *      {{n}}\n\t *    </div>\n\t * ```\n\t *\n\t * You may also use arbitrary expressions in `track by`, including references to custom functions\n\t * on the scope:\n\t * ```html\n\t *    <div ng-repeat=\"n in [42, 42, 43, 43] track by myTrackingFunction(n)\">\n\t *      {{n}}\n\t *    </div>\n\t * ```\n\t *\n\t * <div class=\"alert alert-success\">\n\t * If you are working with objects that have an identifier property, you should track\n\t * by the identifier instead of the whole object. Should you reload your data later, `ngRepeat`\n\t * will not have to rebuild the DOM elements for items it has already rendered, even if the\n\t * JavaScript objects in the collection have been substituted for new ones. For large collections,\n\t * this signifincantly improves rendering performance. If you don't have a unique identifier,\n\t * `track by $index` can also provide a performance boost.\n\t * </div>\n\t * ```html\n\t *    <div ng-repeat=\"model in collection track by model.id\">\n\t *      {{model.name}}\n\t *    </div>\n\t * ```\n\t *\n\t * When no `track by` expression is provided, it is equivalent to tracking by the built-in\n\t * `$id` function, which tracks items by their identity:\n\t * ```html\n\t *    <div ng-repeat=\"obj in collection track by $id(obj)\">\n\t *      {{obj.prop}}\n\t *    </div>\n\t * ```\n\t *\n\t * <div class=\"alert alert-warning\">\n\t * **Note:** `track by` must always be the last expression:\n\t * </div>\n\t * ```\n\t * <div ng-repeat=\"model in collection | orderBy: 'id' as filtered_result track by model.id\">\n\t *     {{model.name}}\n\t * </div>\n\t * ```\n\t *\n\t * # Special repeat start and end points\n\t * To repeat a series of elements instead of just one parent element, ngRepeat (as well as other ng directives) supports extending\n\t * the range of the repeater by defining explicit start and end points by using **ng-repeat-start** and **ng-repeat-end** respectively.\n\t * The **ng-repeat-start** directive works the same as **ng-repeat**, but will repeat all the HTML code (including the tag it's defined on)\n\t * up to and including the ending HTML tag where **ng-repeat-end** is placed.\n\t *\n\t * The example below makes use of this feature:\n\t * ```html\n\t *   <header ng-repeat-start=\"item in items\">\n\t *     Header {{ item }}\n\t *   </header>\n\t *   <div class=\"body\">\n\t *     Body {{ item }}\n\t *   </div>\n\t *   <footer ng-repeat-end>\n\t *     Footer {{ item }}\n\t *   </footer>\n\t * ```\n\t *\n\t * And with an input of {@type ['A','B']} for the items variable in the example above, the output will evaluate to:\n\t * ```html\n\t *   <header>\n\t *     Header A\n\t *   </header>\n\t *   <div class=\"body\">\n\t *     Body A\n\t *   </div>\n\t *   <footer>\n\t *     Footer A\n\t *   </footer>\n\t *   <header>\n\t *     Header B\n\t *   </header>\n\t *   <div class=\"body\">\n\t *     Body B\n\t *   </div>\n\t *   <footer>\n\t *     Footer B\n\t *   </footer>\n\t * ```\n\t *\n\t * The custom start and end points for ngRepeat also support all other HTML directive syntax flavors provided in AngularJS (such\n\t * as **data-ng-repeat-start**, **x-ng-repeat-start** and **ng:repeat-start**).\n\t *\n\t * @animations\n\t * **.enter** - when a new item is added to the list or when an item is revealed after a filter\n\t *\n\t * **.leave** - when an item is removed from the list or when an item is filtered out\n\t *\n\t * **.move** - when an adjacent item is filtered out causing a reorder or when the item contents are reordered\n\t *\n\t * @element ANY\n\t * @scope\n\t * @priority 1000\n\t * @param {repeat_expression} ngRepeat The expression indicating how to enumerate a collection. These\n\t *   formats are currently supported:\n\t *\n\t *   * `variable in expression` – where variable is the user defined loop variable and `expression`\n\t *     is a scope expression giving the collection to enumerate.\n\t *\n\t *     For example: `album in artist.albums`.\n\t *\n\t *   * `(key, value) in expression` – where `key` and `value` can be any user defined identifiers,\n\t *     and `expression` is the scope expression giving the collection to enumerate.\n\t *\n\t *     For example: `(name, age) in {'adam':10, 'amalie':12}`.\n\t *\n\t *   * `variable in expression track by tracking_expression` – You can also provide an optional tracking expression\n\t *     which can be used to associate the objects in the collection with the DOM elements. If no tracking expression\n\t *     is specified, ng-repeat associates elements by identity. It is an error to have\n\t *     more than one tracking expression value resolve to the same key. (This would mean that two distinct objects are\n\t *     mapped to the same DOM element, which is not possible.)\n\t *\n\t *     Note that the tracking expression must come last, after any filters, and the alias expression.\n\t *\n\t *     For example: `item in items` is equivalent to `item in items track by $id(item)`. This implies that the DOM elements\n\t *     will be associated by item identity in the array.\n\t *\n\t *     For example: `item in items track by $id(item)`. A built in `$id()` function can be used to assign a unique\n\t *     `$$hashKey` property to each item in the array. This property is then used as a key to associated DOM elements\n\t *     with the corresponding item in the array by identity. Moving the same object in array would move the DOM\n\t *     element in the same way in the DOM.\n\t *\n\t *     For example: `item in items track by item.id` is a typical pattern when the items come from the database. In this\n\t *     case the object identity does not matter. Two objects are considered equivalent as long as their `id`\n\t *     property is same.\n\t *\n\t *     For example: `item in items | filter:searchText track by item.id` is a pattern that might be used to apply a filter\n\t *     to items in conjunction with a tracking expression.\n\t *\n\t *   * `variable in expression as alias_expression` – You can also provide an optional alias expression which will then store the\n\t *     intermediate results of the repeater after the filters have been applied. Typically this is used to render a special message\n\t *     when a filter is active on the repeater, but the filtered result set is empty.\n\t *\n\t *     For example: `item in items | filter:x as results` will store the fragment of the repeated items as `results`, but only after\n\t *     the items have been processed through the filter.\n\t *\n\t *     Please note that `as [variable name] is not an operator but rather a part of ngRepeat micro-syntax so it can be used only at the end\n\t *     (and not as operator, inside an expression).\n\t *\n\t *     For example: `item in items | filter : x | orderBy : order | limitTo : limit as results` .\n\t *\n\t * @example\n\t * This example initializes the scope to a list of names and\n\t * then uses `ngRepeat` to display every person:\n\t  <example module=\"ngAnimate\" deps=\"angular-animate.js\" animations=\"true\">\n\t    <file name=\"index.html\">\n\t      <div ng-init=\"friends = [\n\t        {name:'John', age:25, gender:'boy'},\n\t        {name:'Jessie', age:30, gender:'girl'},\n\t        {name:'Johanna', age:28, gender:'girl'},\n\t        {name:'Joy', age:15, gender:'girl'},\n\t        {name:'Mary', age:28, gender:'girl'},\n\t        {name:'Peter', age:95, gender:'boy'},\n\t        {name:'Sebastian', age:50, gender:'boy'},\n\t        {name:'Erika', age:27, gender:'girl'},\n\t        {name:'Patrick', age:40, gender:'boy'},\n\t        {name:'Samantha', age:60, gender:'girl'}\n\t      ]\">\n\t        I have {{friends.length}} friends. They are:\n\t        <input type=\"search\" ng-model=\"q\" placeholder=\"filter friends...\" aria-label=\"filter friends\" />\n\t        <ul class=\"example-animate-container\">\n\t          <li class=\"animate-repeat\" ng-repeat=\"friend in friends | filter:q as results\">\n\t            [{{$index + 1}}] {{friend.name}} who is {{friend.age}} years old.\n\t          </li>\n\t          <li class=\"animate-repeat\" ng-if=\"results.length == 0\">\n\t            <strong>No results found...</strong>\n\t          </li>\n\t        </ul>\n\t      </div>\n\t    </file>\n\t    <file name=\"animations.css\">\n\t      .example-animate-container {\n\t        background:white;\n\t        border:1px solid black;\n\t        list-style:none;\n\t        margin:0;\n\t        padding:0 10px;\n\t      }\n\n\t      .animate-repeat {\n\t        line-height:40px;\n\t        list-style:none;\n\t        box-sizing:border-box;\n\t      }\n\n\t      .animate-repeat.ng-move,\n\t      .animate-repeat.ng-enter,\n\t      .animate-repeat.ng-leave {\n\t        transition:all linear 0.5s;\n\t      }\n\n\t      .animate-repeat.ng-leave.ng-leave-active,\n\t      .animate-repeat.ng-move,\n\t      .animate-repeat.ng-enter {\n\t        opacity:0;\n\t        max-height:0;\n\t      }\n\n\t      .animate-repeat.ng-leave,\n\t      .animate-repeat.ng-move.ng-move-active,\n\t      .animate-repeat.ng-enter.ng-enter-active {\n\t        opacity:1;\n\t        max-height:40px;\n\t      }\n\t    </file>\n\t    <file name=\"protractor.js\" type=\"protractor\">\n\t      var friends = element.all(by.repeater('friend in friends'));\n\n\t      it('should render initial data set', function() {\n\t        expect(friends.count()).toBe(10);\n\t        expect(friends.get(0).getText()).toEqual('[1] John who is 25 years old.');\n\t        expect(friends.get(1).getText()).toEqual('[2] Jessie who is 30 years old.');\n\t        expect(friends.last().getText()).toEqual('[10] Samantha who is 60 years old.');\n\t        expect(element(by.binding('friends.length')).getText())\n\t            .toMatch(\"I have 10 friends. They are:\");\n\t      });\n\n\t       it('should update repeater when filter predicate changes', function() {\n\t         expect(friends.count()).toBe(10);\n\n\t         element(by.model('q')).sendKeys('ma');\n\n\t         expect(friends.count()).toBe(2);\n\t         expect(friends.get(0).getText()).toEqual('[1] Mary who is 28 years old.');\n\t         expect(friends.last().getText()).toEqual('[2] Samantha who is 60 years old.');\n\t       });\n\t      </file>\n\t    </example>\n\t */\n\tvar ngRepeatDirective = ['$parse', '$animate', function($parse, $animate) {\n\t  var NG_REMOVED = '$$NG_REMOVED';\n\t  var ngRepeatMinErr = minErr('ngRepeat');\n\n\t  var updateScope = function(scope, index, valueIdentifier, value, keyIdentifier, key, arrayLength) {\n\t    // TODO(perf): generate setters to shave off ~40ms or 1-1.5%\n\t    scope[valueIdentifier] = value;\n\t    if (keyIdentifier) scope[keyIdentifier] = key;\n\t    scope.$index = index;\n\t    scope.$first = (index === 0);\n\t    scope.$last = (index === (arrayLength - 1));\n\t    scope.$middle = !(scope.$first || scope.$last);\n\t    // jshint bitwise: false\n\t    scope.$odd = !(scope.$even = (index&1) === 0);\n\t    // jshint bitwise: true\n\t  };\n\n\t  var getBlockStart = function(block) {\n\t    return block.clone[0];\n\t  };\n\n\t  var getBlockEnd = function(block) {\n\t    return block.clone[block.clone.length - 1];\n\t  };\n\n\n\t  return {\n\t    restrict: 'A',\n\t    multiElement: true,\n\t    transclude: 'element',\n\t    priority: 1000,\n\t    terminal: true,\n\t    $$tlb: true,\n\t    compile: function ngRepeatCompile($element, $attr) {\n\t      var expression = $attr.ngRepeat;\n\t      var ngRepeatEndComment = document.createComment(' end ngRepeat: ' + expression + ' ');\n\n\t      var match = expression.match(/^\\s*([\\s\\S]+?)\\s+in\\s+([\\s\\S]+?)(?:\\s+as\\s+([\\s\\S]+?))?(?:\\s+track\\s+by\\s+([\\s\\S]+?))?\\s*$/);\n\n\t      if (!match) {\n\t        throw ngRepeatMinErr('iexp', \"Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.\",\n\t            expression);\n\t      }\n\n\t      var lhs = match[1];\n\t      var rhs = match[2];\n\t      var aliasAs = match[3];\n\t      var trackByExp = match[4];\n\n\t      match = lhs.match(/^(?:(\\s*[\\$\\w]+)|\\(\\s*([\\$\\w]+)\\s*,\\s*([\\$\\w]+)\\s*\\))$/);\n\n\t      if (!match) {\n\t        throw ngRepeatMinErr('iidexp', \"'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.\",\n\t            lhs);\n\t      }\n\t      var valueIdentifier = match[3] || match[1];\n\t      var keyIdentifier = match[2];\n\n\t      if (aliasAs && (!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(aliasAs) ||\n\t          /^(null|undefined|this|\\$index|\\$first|\\$middle|\\$last|\\$even|\\$odd|\\$parent|\\$root|\\$id)$/.test(aliasAs))) {\n\t        throw ngRepeatMinErr('badident', \"alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.\",\n\t          aliasAs);\n\t      }\n\n\t      var trackByExpGetter, trackByIdExpFn, trackByIdArrayFn, trackByIdObjFn;\n\t      var hashFnLocals = {$id: hashKey};\n\n\t      if (trackByExp) {\n\t        trackByExpGetter = $parse(trackByExp);\n\t      } else {\n\t        trackByIdArrayFn = function(key, value) {\n\t          return hashKey(value);\n\t        };\n\t        trackByIdObjFn = function(key) {\n\t          return key;\n\t        };\n\t      }\n\n\t      return function ngRepeatLink($scope, $element, $attr, ctrl, $transclude) {\n\n\t        if (trackByExpGetter) {\n\t          trackByIdExpFn = function(key, value, index) {\n\t            // assign key, value, and $index to the locals so that they can be used in hash functions\n\t            if (keyIdentifier) hashFnLocals[keyIdentifier] = key;\n\t            hashFnLocals[valueIdentifier] = value;\n\t            hashFnLocals.$index = index;\n\t            return trackByExpGetter($scope, hashFnLocals);\n\t          };\n\t        }\n\n\t        // Store a list of elements from previous run. This is a hash where key is the item from the\n\t        // iterator, and the value is objects with following properties.\n\t        //   - scope: bound scope\n\t        //   - element: previous element.\n\t        //   - index: position\n\t        //\n\t        // We are using no-proto object so that we don't need to guard against inherited props via\n\t        // hasOwnProperty.\n\t        var lastBlockMap = createMap();\n\n\t        //watch props\n\t        $scope.$watchCollection(rhs, function ngRepeatAction(collection) {\n\t          var index, length,\n\t              previousNode = $element[0],     // node that cloned nodes should be inserted after\n\t                                              // initialized to the comment node anchor\n\t              nextNode,\n\t              // Same as lastBlockMap but it has the current state. It will become the\n\t              // lastBlockMap on the next iteration.\n\t              nextBlockMap = createMap(),\n\t              collectionLength,\n\t              key, value, // key/value of iteration\n\t              trackById,\n\t              trackByIdFn,\n\t              collectionKeys,\n\t              block,       // last object information {scope, element, id}\n\t              nextBlockOrder,\n\t              elementsToRemove;\n\n\t          if (aliasAs) {\n\t            $scope[aliasAs] = collection;\n\t          }\n\n\t          if (isArrayLike(collection)) {\n\t            collectionKeys = collection;\n\t            trackByIdFn = trackByIdExpFn || trackByIdArrayFn;\n\t          } else {\n\t            trackByIdFn = trackByIdExpFn || trackByIdObjFn;\n\t            // if object, extract keys, in enumeration order, unsorted\n\t            collectionKeys = [];\n\t            for (var itemKey in collection) {\n\t              if (hasOwnProperty.call(collection, itemKey) && itemKey.charAt(0) !== '$') {\n\t                collectionKeys.push(itemKey);\n\t              }\n\t            }\n\t          }\n\n\t          collectionLength = collectionKeys.length;\n\t          nextBlockOrder = new Array(collectionLength);\n\n\t          // locate existing items\n\t          for (index = 0; index < collectionLength; index++) {\n\t            key = (collection === collectionKeys) ? index : collectionKeys[index];\n\t            value = collection[key];\n\t            trackById = trackByIdFn(key, value, index);\n\t            if (lastBlockMap[trackById]) {\n\t              // found previously seen block\n\t              block = lastBlockMap[trackById];\n\t              delete lastBlockMap[trackById];\n\t              nextBlockMap[trackById] = block;\n\t              nextBlockOrder[index] = block;\n\t            } else if (nextBlockMap[trackById]) {\n\t              // if collision detected. restore lastBlockMap and throw an error\n\t              forEach(nextBlockOrder, function(block) {\n\t                if (block && block.scope) lastBlockMap[block.id] = block;\n\t              });\n\t              throw ngRepeatMinErr('dupes',\n\t                  \"Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}\",\n\t                  expression, trackById, value);\n\t            } else {\n\t              // new never before seen block\n\t              nextBlockOrder[index] = {id: trackById, scope: undefined, clone: undefined};\n\t              nextBlockMap[trackById] = true;\n\t            }\n\t          }\n\n\t          // remove leftover items\n\t          for (var blockKey in lastBlockMap) {\n\t            block = lastBlockMap[blockKey];\n\t            elementsToRemove = getBlockNodes(block.clone);\n\t            $animate.leave(elementsToRemove);\n\t            if (elementsToRemove[0].parentNode) {\n\t              // if the element was not removed yet because of pending animation, mark it as deleted\n\t              // so that we can ignore it later\n\t              for (index = 0, length = elementsToRemove.length; index < length; index++) {\n\t                elementsToRemove[index][NG_REMOVED] = true;\n\t              }\n\t            }\n\t            block.scope.$destroy();\n\t          }\n\n\t          // we are not using forEach for perf reasons (trying to avoid #call)\n\t          for (index = 0; index < collectionLength; index++) {\n\t            key = (collection === collectionKeys) ? index : collectionKeys[index];\n\t            value = collection[key];\n\t            block = nextBlockOrder[index];\n\n\t            if (block.scope) {\n\t              // if we have already seen this object, then we need to reuse the\n\t              // associated scope/element\n\n\t              nextNode = previousNode;\n\n\t              // skip nodes that are already pending removal via leave animation\n\t              do {\n\t                nextNode = nextNode.nextSibling;\n\t              } while (nextNode && nextNode[NG_REMOVED]);\n\n\t              if (getBlockStart(block) != nextNode) {\n\t                // existing item which got moved\n\t                $animate.move(getBlockNodes(block.clone), null, jqLite(previousNode));\n\t              }\n\t              previousNode = getBlockEnd(block);\n\t              updateScope(block.scope, index, valueIdentifier, value, keyIdentifier, key, collectionLength);\n\t            } else {\n\t              // new item which we don't know about\n\t              $transclude(function ngRepeatTransclude(clone, scope) {\n\t                block.scope = scope;\n\t                // http://jsperf.com/clone-vs-createcomment\n\t                var endNode = ngRepeatEndComment.cloneNode(false);\n\t                clone[clone.length++] = endNode;\n\n\t                // TODO(perf): support naked previousNode in `enter` to avoid creation of jqLite wrapper?\n\t                $animate.enter(clone, null, jqLite(previousNode));\n\t                previousNode = endNode;\n\t                // Note: We only need the first/last node of the cloned nodes.\n\t                // However, we need to keep the reference to the jqlite wrapper as it might be changed later\n\t                // by a directive with templateUrl when its template arrives.\n\t                block.clone = clone;\n\t                nextBlockMap[block.id] = block;\n\t                updateScope(block.scope, index, valueIdentifier, value, keyIdentifier, key, collectionLength);\n\t              });\n\t            }\n\t          }\n\t          lastBlockMap = nextBlockMap;\n\t        });\n\t      };\n\t    }\n\t  };\n\t}];\n\n\tvar NG_HIDE_CLASS = 'ng-hide';\n\tvar NG_HIDE_IN_PROGRESS_CLASS = 'ng-hide-animate';\n\t/**\n\t * @ngdoc directive\n\t * @name ngShow\n\t * @multiElement\n\t *\n\t * @description\n\t * The `ngShow` directive shows or hides the given HTML element based on the expression\n\t * provided to the `ngShow` attribute. The element is shown or hidden by removing or adding\n\t * the `.ng-hide` CSS class onto the element. The `.ng-hide` CSS class is predefined\n\t * in AngularJS and sets the display style to none (using an !important flag).\n\t * For CSP mode please add `angular-csp.css` to your html file (see {@link ng.directive:ngCsp ngCsp}).\n\t *\n\t * ```html\n\t * <!-- when $scope.myValue is truthy (element is visible) -->\n\t * <div ng-show=\"myValue\"></div>\n\t *\n\t * <!-- when $scope.myValue is falsy (element is hidden) -->\n\t * <div ng-show=\"myValue\" class=\"ng-hide\"></div>\n\t * ```\n\t *\n\t * When the `ngShow` expression evaluates to a falsy value then the `.ng-hide` CSS class is added to the class\n\t * attribute on the element causing it to become hidden. When truthy, the `.ng-hide` CSS class is removed\n\t * from the element causing the element not to appear hidden.\n\t *\n\t * ## Why is !important used?\n\t *\n\t * You may be wondering why !important is used for the `.ng-hide` CSS class. This is because the `.ng-hide` selector\n\t * can be easily overridden by heavier selectors. For example, something as simple\n\t * as changing the display style on a HTML list item would make hidden elements appear visible.\n\t * This also becomes a bigger issue when dealing with CSS frameworks.\n\t *\n\t * By using !important, the show and hide behavior will work as expected despite any clash between CSS selector\n\t * specificity (when !important isn't used with any conflicting styles). If a developer chooses to override the\n\t * styling to change how to hide an element then it is just a matter of using !important in their own CSS code.\n\t *\n\t * ### Overriding `.ng-hide`\n\t *\n\t * By default, the `.ng-hide` class will style the element with `display: none!important`. If you wish to change\n\t * the hide behavior with ngShow/ngHide then this can be achieved by restating the styles for the `.ng-hide`\n\t * class CSS. Note that the selector that needs to be used is actually `.ng-hide:not(.ng-hide-animate)` to cope\n\t * with extra animation classes that can be added.\n\t *\n\t * ```css\n\t * .ng-hide:not(.ng-hide-animate) {\n\t *   /&#42; this is just another form of hiding an element &#42;/\n\t *   display: block!important;\n\t *   position: absolute;\n\t *   top: -9999px;\n\t *   left: -9999px;\n\t * }\n\t * ```\n\t *\n\t * By default you don't need to override in CSS anything and the animations will work around the display style.\n\t *\n\t * ## A note about animations with `ngShow`\n\t *\n\t * Animations in ngShow/ngHide work with the show and hide events that are triggered when the directive expression\n\t * is true and false. This system works like the animation system present with ngClass except that\n\t * you must also include the !important flag to override the display property\n\t * so that you can perform an animation when the element is hidden during the time of the animation.\n\t *\n\t * ```css\n\t * //\n\t * //a working example can be found at the bottom of this page\n\t * //\n\t * .my-element.ng-hide-add, .my-element.ng-hide-remove {\n\t *   /&#42; this is required as of 1.3x to properly\n\t *      apply all styling in a show/hide animation &#42;/\n\t *   transition: 0s linear all;\n\t * }\n\t *\n\t * .my-element.ng-hide-add-active,\n\t * .my-element.ng-hide-remove-active {\n\t *   /&#42; the transition is defined in the active class &#42;/\n\t *   transition: 1s linear all;\n\t * }\n\t *\n\t * .my-element.ng-hide-add { ... }\n\t * .my-element.ng-hide-add.ng-hide-add-active { ... }\n\t * .my-element.ng-hide-remove { ... }\n\t * .my-element.ng-hide-remove.ng-hide-remove-active { ... }\n\t * ```\n\t *\n\t * Keep in mind that, as of AngularJS version 1.3.0-beta.11, there is no need to change the display\n\t * property to block during animation states--ngAnimate will handle the style toggling automatically for you.\n\t *\n\t * @animations\n\t * addClass: `.ng-hide` - happens after the `ngShow` expression evaluates to a truthy value and the just before contents are set to visible\n\t * removeClass: `.ng-hide` - happens after the `ngShow` expression evaluates to a non truthy value and just before the contents are set to hidden\n\t *\n\t * @element ANY\n\t * @param {expression} ngShow If the {@link guide/expression expression} is truthy\n\t *     then the element is shown or hidden respectively.\n\t *\n\t * @example\n\t  <example module=\"ngAnimate\" deps=\"angular-animate.js\" animations=\"true\">\n\t    <file name=\"index.html\">\n\t      Click me: <input type=\"checkbox\" ng-model=\"checked\" aria-label=\"Toggle ngHide\"><br/>\n\t      <div>\n\t        Show:\n\t        <div class=\"check-element animate-show\" ng-show=\"checked\">\n\t          <span class=\"glyphicon glyphicon-thumbs-up\"></span> I show up when your checkbox is checked.\n\t        </div>\n\t      </div>\n\t      <div>\n\t        Hide:\n\t        <div class=\"check-element animate-show\" ng-hide=\"checked\">\n\t          <span class=\"glyphicon glyphicon-thumbs-down\"></span> I hide when your checkbox is checked.\n\t        </div>\n\t      </div>\n\t    </file>\n\t    <file name=\"glyphicons.css\">\n\t      @import url(../../components/bootstrap-3.1.1/css/bootstrap.css);\n\t    </file>\n\t    <file name=\"animations.css\">\n\t      .animate-show {\n\t        line-height: 20px;\n\t        opacity: 1;\n\t        padding: 10px;\n\t        border: 1px solid black;\n\t        background: white;\n\t      }\n\n\t      .animate-show.ng-hide-add, .animate-show.ng-hide-remove {\n\t        transition: all linear 0.5s;\n\t      }\n\n\t      .animate-show.ng-hide {\n\t        line-height: 0;\n\t        opacity: 0;\n\t        padding: 0 10px;\n\t      }\n\n\t      .check-element {\n\t        padding: 10px;\n\t        border: 1px solid black;\n\t        background: white;\n\t      }\n\t    </file>\n\t    <file name=\"protractor.js\" type=\"protractor\">\n\t      var thumbsUp = element(by.css('span.glyphicon-thumbs-up'));\n\t      var thumbsDown = element(by.css('span.glyphicon-thumbs-down'));\n\n\t      it('should check ng-show / ng-hide', function() {\n\t        expect(thumbsUp.isDisplayed()).toBeFalsy();\n\t        expect(thumbsDown.isDisplayed()).toBeTruthy();\n\n\t        element(by.model('checked')).click();\n\n\t        expect(thumbsUp.isDisplayed()).toBeTruthy();\n\t        expect(thumbsDown.isDisplayed()).toBeFalsy();\n\t      });\n\t    </file>\n\t  </example>\n\t */\n\tvar ngShowDirective = ['$animate', function($animate) {\n\t  return {\n\t    restrict: 'A',\n\t    multiElement: true,\n\t    link: function(scope, element, attr) {\n\t      scope.$watch(attr.ngShow, function ngShowWatchAction(value) {\n\t        // we're adding a temporary, animation-specific class for ng-hide since this way\n\t        // we can control when the element is actually displayed on screen without having\n\t        // to have a global/greedy CSS selector that breaks when other animations are run.\n\t        // Read: https://github.com/angular/angular.js/issues/9103#issuecomment-58335845\n\t        $animate[value ? 'removeClass' : 'addClass'](element, NG_HIDE_CLASS, {\n\t          tempClasses: NG_HIDE_IN_PROGRESS_CLASS\n\t        });\n\t      });\n\t    }\n\t  };\n\t}];\n\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngHide\n\t * @multiElement\n\t *\n\t * @description\n\t * The `ngHide` directive shows or hides the given HTML element based on the expression\n\t * provided to the `ngHide` attribute. The element is shown or hidden by removing or adding\n\t * the `ng-hide` CSS class onto the element. The `.ng-hide` CSS class is predefined\n\t * in AngularJS and sets the display style to none (using an !important flag).\n\t * For CSP mode please add `angular-csp.css` to your html file (see {@link ng.directive:ngCsp ngCsp}).\n\t *\n\t * ```html\n\t * <!-- when $scope.myValue is truthy (element is hidden) -->\n\t * <div ng-hide=\"myValue\" class=\"ng-hide\"></div>\n\t *\n\t * <!-- when $scope.myValue is falsy (element is visible) -->\n\t * <div ng-hide=\"myValue\"></div>\n\t * ```\n\t *\n\t * When the `ngHide` expression evaluates to a truthy value then the `.ng-hide` CSS class is added to the class\n\t * attribute on the element causing it to become hidden. When falsy, the `.ng-hide` CSS class is removed\n\t * from the element causing the element not to appear hidden.\n\t *\n\t * ## Why is !important used?\n\t *\n\t * You may be wondering why !important is used for the `.ng-hide` CSS class. This is because the `.ng-hide` selector\n\t * can be easily overridden by heavier selectors. For example, something as simple\n\t * as changing the display style on a HTML list item would make hidden elements appear visible.\n\t * This also becomes a bigger issue when dealing with CSS frameworks.\n\t *\n\t * By using !important, the show and hide behavior will work as expected despite any clash between CSS selector\n\t * specificity (when !important isn't used with any conflicting styles). If a developer chooses to override the\n\t * styling to change how to hide an element then it is just a matter of using !important in their own CSS code.\n\t *\n\t * ### Overriding `.ng-hide`\n\t *\n\t * By default, the `.ng-hide` class will style the element with `display: none!important`. If you wish to change\n\t * the hide behavior with ngShow/ngHide then this can be achieved by restating the styles for the `.ng-hide`\n\t * class in CSS:\n\t *\n\t * ```css\n\t * .ng-hide {\n\t *   /&#42; this is just another form of hiding an element &#42;/\n\t *   display: block!important;\n\t *   position: absolute;\n\t *   top: -9999px;\n\t *   left: -9999px;\n\t * }\n\t * ```\n\t *\n\t * By default you don't need to override in CSS anything and the animations will work around the display style.\n\t *\n\t * ## A note about animations with `ngHide`\n\t *\n\t * Animations in ngShow/ngHide work with the show and hide events that are triggered when the directive expression\n\t * is true and false. This system works like the animation system present with ngClass, except that the `.ng-hide`\n\t * CSS class is added and removed for you instead of your own CSS class.\n\t *\n\t * ```css\n\t * //\n\t * //a working example can be found at the bottom of this page\n\t * //\n\t * .my-element.ng-hide-add, .my-element.ng-hide-remove {\n\t *   transition: 0.5s linear all;\n\t * }\n\t *\n\t * .my-element.ng-hide-add { ... }\n\t * .my-element.ng-hide-add.ng-hide-add-active { ... }\n\t * .my-element.ng-hide-remove { ... }\n\t * .my-element.ng-hide-remove.ng-hide-remove-active { ... }\n\t * ```\n\t *\n\t * Keep in mind that, as of AngularJS version 1.3.0-beta.11, there is no need to change the display\n\t * property to block during animation states--ngAnimate will handle the style toggling automatically for you.\n\t *\n\t * @animations\n\t * removeClass: `.ng-hide` - happens after the `ngHide` expression evaluates to a truthy value and just before the contents are set to hidden\n\t * addClass: `.ng-hide` - happens after the `ngHide` expression evaluates to a non truthy value and just before the contents are set to visible\n\t *\n\t * @element ANY\n\t * @param {expression} ngHide If the {@link guide/expression expression} is truthy then\n\t *     the element is shown or hidden respectively.\n\t *\n\t * @example\n\t  <example module=\"ngAnimate\" deps=\"angular-animate.js\" animations=\"true\">\n\t    <file name=\"index.html\">\n\t      Click me: <input type=\"checkbox\" ng-model=\"checked\" aria-label=\"Toggle ngShow\"><br/>\n\t      <div>\n\t        Show:\n\t        <div class=\"check-element animate-hide\" ng-show=\"checked\">\n\t          <span class=\"glyphicon glyphicon-thumbs-up\"></span> I show up when your checkbox is checked.\n\t        </div>\n\t      </div>\n\t      <div>\n\t        Hide:\n\t        <div class=\"check-element animate-hide\" ng-hide=\"checked\">\n\t          <span class=\"glyphicon glyphicon-thumbs-down\"></span> I hide when your checkbox is checked.\n\t        </div>\n\t      </div>\n\t    </file>\n\t    <file name=\"glyphicons.css\">\n\t      @import url(../../components/bootstrap-3.1.1/css/bootstrap.css);\n\t    </file>\n\t    <file name=\"animations.css\">\n\t      .animate-hide {\n\t        transition: all linear 0.5s;\n\t        line-height: 20px;\n\t        opacity: 1;\n\t        padding: 10px;\n\t        border: 1px solid black;\n\t        background: white;\n\t      }\n\n\t      .animate-hide.ng-hide {\n\t        line-height: 0;\n\t        opacity: 0;\n\t        padding: 0 10px;\n\t      }\n\n\t      .check-element {\n\t        padding: 10px;\n\t        border: 1px solid black;\n\t        background: white;\n\t      }\n\t    </file>\n\t    <file name=\"protractor.js\" type=\"protractor\">\n\t      var thumbsUp = element(by.css('span.glyphicon-thumbs-up'));\n\t      var thumbsDown = element(by.css('span.glyphicon-thumbs-down'));\n\n\t      it('should check ng-show / ng-hide', function() {\n\t        expect(thumbsUp.isDisplayed()).toBeFalsy();\n\t        expect(thumbsDown.isDisplayed()).toBeTruthy();\n\n\t        element(by.model('checked')).click();\n\n\t        expect(thumbsUp.isDisplayed()).toBeTruthy();\n\t        expect(thumbsDown.isDisplayed()).toBeFalsy();\n\t      });\n\t    </file>\n\t  </example>\n\t */\n\tvar ngHideDirective = ['$animate', function($animate) {\n\t  return {\n\t    restrict: 'A',\n\t    multiElement: true,\n\t    link: function(scope, element, attr) {\n\t      scope.$watch(attr.ngHide, function ngHideWatchAction(value) {\n\t        // The comment inside of the ngShowDirective explains why we add and\n\t        // remove a temporary class for the show/hide animation\n\t        $animate[value ? 'addClass' : 'removeClass'](element,NG_HIDE_CLASS, {\n\t          tempClasses: NG_HIDE_IN_PROGRESS_CLASS\n\t        });\n\t      });\n\t    }\n\t  };\n\t}];\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngStyle\n\t * @restrict AC\n\t *\n\t * @description\n\t * The `ngStyle` directive allows you to set CSS style on an HTML element conditionally.\n\t *\n\t * @element ANY\n\t * @param {expression} ngStyle\n\t *\n\t * {@link guide/expression Expression} which evals to an\n\t * object whose keys are CSS style names and values are corresponding values for those CSS\n\t * keys.\n\t *\n\t * Since some CSS style names are not valid keys for an object, they must be quoted.\n\t * See the 'background-color' style in the example below.\n\t *\n\t * @example\n\t   <example>\n\t     <file name=\"index.html\">\n\t        <input type=\"button\" value=\"set color\" ng-click=\"myStyle={color:'red'}\">\n\t        <input type=\"button\" value=\"set background\" ng-click=\"myStyle={'background-color':'blue'}\">\n\t        <input type=\"button\" value=\"clear\" ng-click=\"myStyle={}\">\n\t        <br/>\n\t        <span ng-style=\"myStyle\">Sample Text</span>\n\t        <pre>myStyle={{myStyle}}</pre>\n\t     </file>\n\t     <file name=\"style.css\">\n\t       span {\n\t         color: black;\n\t       }\n\t     </file>\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t       var colorSpan = element(by.css('span'));\n\n\t       it('should check ng-style', function() {\n\t         expect(colorSpan.getCssValue('color')).toBe('rgba(0, 0, 0, 1)');\n\t         element(by.css('input[value=\\'set color\\']')).click();\n\t         expect(colorSpan.getCssValue('color')).toBe('rgba(255, 0, 0, 1)');\n\t         element(by.css('input[value=clear]')).click();\n\t         expect(colorSpan.getCssValue('color')).toBe('rgba(0, 0, 0, 1)');\n\t       });\n\t     </file>\n\t   </example>\n\t */\n\tvar ngStyleDirective = ngDirective(function(scope, element, attr) {\n\t  scope.$watch(attr.ngStyle, function ngStyleWatchAction(newStyles, oldStyles) {\n\t    if (oldStyles && (newStyles !== oldStyles)) {\n\t      forEach(oldStyles, function(val, style) { element.css(style, '');});\n\t    }\n\t    if (newStyles) element.css(newStyles);\n\t  }, true);\n\t});\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngSwitch\n\t * @restrict EA\n\t *\n\t * @description\n\t * The `ngSwitch` directive is used to conditionally swap DOM structure on your template based on a scope expression.\n\t * Elements within `ngSwitch` but without `ngSwitchWhen` or `ngSwitchDefault` directives will be preserved at the location\n\t * as specified in the template.\n\t *\n\t * The directive itself works similar to ngInclude, however, instead of downloading template code (or loading it\n\t * from the template cache), `ngSwitch` simply chooses one of the nested elements and makes it visible based on which element\n\t * matches the value obtained from the evaluated expression. In other words, you define a container element\n\t * (where you place the directive), place an expression on the **`on=\"...\"` attribute**\n\t * (or the **`ng-switch=\"...\"` attribute**), define any inner elements inside of the directive and place\n\t * a when attribute per element. The when attribute is used to inform ngSwitch which element to display when the on\n\t * expression is evaluated. If a matching expression is not found via a when attribute then an element with the default\n\t * attribute is displayed.\n\t *\n\t * <div class=\"alert alert-info\">\n\t * Be aware that the attribute values to match against cannot be expressions. They are interpreted\n\t * as literal string values to match against.\n\t * For example, **`ng-switch-when=\"someVal\"`** will match against the string `\"someVal\"` not against the\n\t * value of the expression `$scope.someVal`.\n\t * </div>\n\n\t * @animations\n\t * enter - happens after the ngSwitch contents change and the matched child element is placed inside the container\n\t * leave - happens just after the ngSwitch contents change and just before the former contents are removed from the DOM\n\t *\n\t * @usage\n\t *\n\t * ```\n\t * <ANY ng-switch=\"expression\">\n\t *   <ANY ng-switch-when=\"matchValue1\">...</ANY>\n\t *   <ANY ng-switch-when=\"matchValue2\">...</ANY>\n\t *   <ANY ng-switch-default>...</ANY>\n\t * </ANY>\n\t * ```\n\t *\n\t *\n\t * @scope\n\t * @priority 1200\n\t * @param {*} ngSwitch|on expression to match against <code>ng-switch-when</code>.\n\t * On child elements add:\n\t *\n\t * * `ngSwitchWhen`: the case statement to match against. If match then this\n\t *   case will be displayed. If the same match appears multiple times, all the\n\t *   elements will be displayed.\n\t * * `ngSwitchDefault`: the default case when no other case match. If there\n\t *   are multiple default cases, all of them will be displayed when no other\n\t *   case match.\n\t *\n\t *\n\t * @example\n\t  <example module=\"switchExample\" deps=\"angular-animate.js\" animations=\"true\">\n\t    <file name=\"index.html\">\n\t      <div ng-controller=\"ExampleController\">\n\t        <select ng-model=\"selection\" ng-options=\"item for item in items\">\n\t        </select>\n\t        <code>selection={{selection}}</code>\n\t        <hr/>\n\t        <div class=\"animate-switch-container\"\n\t          ng-switch on=\"selection\">\n\t            <div class=\"animate-switch\" ng-switch-when=\"settings\">Settings Div</div>\n\t            <div class=\"animate-switch\" ng-switch-when=\"home\">Home Span</div>\n\t            <div class=\"animate-switch\" ng-switch-default>default</div>\n\t        </div>\n\t      </div>\n\t    </file>\n\t    <file name=\"script.js\">\n\t      angular.module('switchExample', ['ngAnimate'])\n\t        .controller('ExampleController', ['$scope', function($scope) {\n\t          $scope.items = ['settings', 'home', 'other'];\n\t          $scope.selection = $scope.items[0];\n\t        }]);\n\t    </file>\n\t    <file name=\"animations.css\">\n\t      .animate-switch-container {\n\t        position:relative;\n\t        background:white;\n\t        border:1px solid black;\n\t        height:40px;\n\t        overflow:hidden;\n\t      }\n\n\t      .animate-switch {\n\t        padding:10px;\n\t      }\n\n\t      .animate-switch.ng-animate {\n\t        transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;\n\n\t        position:absolute;\n\t        top:0;\n\t        left:0;\n\t        right:0;\n\t        bottom:0;\n\t      }\n\n\t      .animate-switch.ng-leave.ng-leave-active,\n\t      .animate-switch.ng-enter {\n\t        top:-50px;\n\t      }\n\t      .animate-switch.ng-leave,\n\t      .animate-switch.ng-enter.ng-enter-active {\n\t        top:0;\n\t      }\n\t    </file>\n\t    <file name=\"protractor.js\" type=\"protractor\">\n\t      var switchElem = element(by.css('[ng-switch]'));\n\t      var select = element(by.model('selection'));\n\n\t      it('should start in settings', function() {\n\t        expect(switchElem.getText()).toMatch(/Settings Div/);\n\t      });\n\t      it('should change to home', function() {\n\t        select.all(by.css('option')).get(1).click();\n\t        expect(switchElem.getText()).toMatch(/Home Span/);\n\t      });\n\t      it('should select default', function() {\n\t        select.all(by.css('option')).get(2).click();\n\t        expect(switchElem.getText()).toMatch(/default/);\n\t      });\n\t    </file>\n\t  </example>\n\t */\n\tvar ngSwitchDirective = ['$animate', function($animate) {\n\t  return {\n\t    require: 'ngSwitch',\n\n\t    // asks for $scope to fool the BC controller module\n\t    controller: ['$scope', function ngSwitchController() {\n\t     this.cases = {};\n\t    }],\n\t    link: function(scope, element, attr, ngSwitchController) {\n\t      var watchExpr = attr.ngSwitch || attr.on,\n\t          selectedTranscludes = [],\n\t          selectedElements = [],\n\t          previousLeaveAnimations = [],\n\t          selectedScopes = [];\n\n\t      var spliceFactory = function(array, index) {\n\t          return function() { array.splice(index, 1); };\n\t      };\n\n\t      scope.$watch(watchExpr, function ngSwitchWatchAction(value) {\n\t        var i, ii;\n\t        for (i = 0, ii = previousLeaveAnimations.length; i < ii; ++i) {\n\t          $animate.cancel(previousLeaveAnimations[i]);\n\t        }\n\t        previousLeaveAnimations.length = 0;\n\n\t        for (i = 0, ii = selectedScopes.length; i < ii; ++i) {\n\t          var selected = getBlockNodes(selectedElements[i].clone);\n\t          selectedScopes[i].$destroy();\n\t          var promise = previousLeaveAnimations[i] = $animate.leave(selected);\n\t          promise.then(spliceFactory(previousLeaveAnimations, i));\n\t        }\n\n\t        selectedElements.length = 0;\n\t        selectedScopes.length = 0;\n\n\t        if ((selectedTranscludes = ngSwitchController.cases['!' + value] || ngSwitchController.cases['?'])) {\n\t          forEach(selectedTranscludes, function(selectedTransclude) {\n\t            selectedTransclude.transclude(function(caseElement, selectedScope) {\n\t              selectedScopes.push(selectedScope);\n\t              var anchor = selectedTransclude.element;\n\t              caseElement[caseElement.length++] = document.createComment(' end ngSwitchWhen: ');\n\t              var block = { clone: caseElement };\n\n\t              selectedElements.push(block);\n\t              $animate.enter(caseElement, anchor.parent(), anchor);\n\t            });\n\t          });\n\t        }\n\t      });\n\t    }\n\t  };\n\t}];\n\n\tvar ngSwitchWhenDirective = ngDirective({\n\t  transclude: 'element',\n\t  priority: 1200,\n\t  require: '^ngSwitch',\n\t  multiElement: true,\n\t  link: function(scope, element, attrs, ctrl, $transclude) {\n\t    ctrl.cases['!' + attrs.ngSwitchWhen] = (ctrl.cases['!' + attrs.ngSwitchWhen] || []);\n\t    ctrl.cases['!' + attrs.ngSwitchWhen].push({ transclude: $transclude, element: element });\n\t  }\n\t});\n\n\tvar ngSwitchDefaultDirective = ngDirective({\n\t  transclude: 'element',\n\t  priority: 1200,\n\t  require: '^ngSwitch',\n\t  multiElement: true,\n\t  link: function(scope, element, attr, ctrl, $transclude) {\n\t    ctrl.cases['?'] = (ctrl.cases['?'] || []);\n\t    ctrl.cases['?'].push({ transclude: $transclude, element: element });\n\t   }\n\t});\n\n\t/**\n\t * @ngdoc directive\n\t * @name ngTransclude\n\t * @restrict EAC\n\t *\n\t * @description\n\t * Directive that marks the insertion point for the transcluded DOM of the nearest parent directive that uses transclusion.\n\t *\n\t * Any existing content of the element that this directive is placed on will be removed before the transcluded content is inserted.\n\t *\n\t * @element ANY\n\t *\n\t * @example\n\t   <example module=\"transcludeExample\">\n\t     <file name=\"index.html\">\n\t       <script>\n\t         angular.module('transcludeExample', [])\n\t          .directive('pane', function(){\n\t             return {\n\t               restrict: 'E',\n\t               transclude: true,\n\t               scope: { title:'@' },\n\t               template: '<div style=\"border: 1px solid black;\">' +\n\t                           '<div style=\"background-color: gray\">{{title}}</div>' +\n\t                           '<ng-transclude></ng-transclude>' +\n\t                         '</div>'\n\t             };\n\t         })\n\t         .controller('ExampleController', ['$scope', function($scope) {\n\t           $scope.title = 'Lorem Ipsum';\n\t           $scope.text = 'Neque porro quisquam est qui dolorem ipsum quia dolor...';\n\t         }]);\n\t       </script>\n\t       <div ng-controller=\"ExampleController\">\n\t         <input ng-model=\"title\" aria-label=\"title\"> <br/>\n\t         <textarea ng-model=\"text\" aria-label=\"text\"></textarea> <br/>\n\t         <pane title=\"{{title}}\">{{text}}</pane>\n\t       </div>\n\t     </file>\n\t     <file name=\"protractor.js\" type=\"protractor\">\n\t        it('should have transcluded', function() {\n\t          var titleElement = element(by.model('title'));\n\t          titleElement.clear();\n\t          titleElement.sendKeys('TITLE');\n\t          var textElement = element(by.model('text'));\n\t          textElement.clear();\n\t          textElement.sendKeys('TEXT');\n\t          expect(element(by.binding('title')).getText()).toEqual('TITLE');\n\t          expect(element(by.binding('text')).getText()).toEqual('TEXT');\n\t        });\n\t     </file>\n\t   </example>\n\t *\n\t */\n\tvar ngTranscludeDirective = ngDirective({\n\t  restrict: 'EAC',\n\t  link: function($scope, $element, $attrs, controller, $transclude) {\n\t    if (!$transclude) {\n\t      throw minErr('ngTransclude')('orphan',\n\t       'Illegal use of ngTransclude directive in the template! ' +\n\t       'No parent directive that requires a transclusion found. ' +\n\t       'Element: {0}',\n\t       startingTag($element));\n\t    }\n\n\t    $transclude(function(clone) {\n\t      $element.empty();\n\t      $element.append(clone);\n\t    });\n\t  }\n\t});\n\n\t/**\n\t * @ngdoc directive\n\t * @name script\n\t * @restrict E\n\t *\n\t * @description\n\t * Load the content of a `<script>` element into {@link ng.$templateCache `$templateCache`}, so that the\n\t * template can be used by {@link ng.directive:ngInclude `ngInclude`},\n\t * {@link ngRoute.directive:ngView `ngView`}, or {@link guide/directive directives}. The type of the\n\t * `<script>` element must be specified as `text/ng-template`, and a cache name for the template must be\n\t * assigned through the element's `id`, which can then be used as a directive's `templateUrl`.\n\t *\n\t * @param {string} type Must be set to `'text/ng-template'`.\n\t * @param {string} id Cache name of the template.\n\t *\n\t * @example\n\t  <example>\n\t    <file name=\"index.html\">\n\t      <script type=\"text/ng-template\" id=\"/tpl.html\">\n\t        Content of the template.\n\t      </script>\n\n\t      <a ng-click=\"currentTpl='/tpl.html'\" id=\"tpl-link\">Load inlined template</a>\n\t      <div id=\"tpl-content\" ng-include src=\"currentTpl\"></div>\n\t    </file>\n\t    <file name=\"protractor.js\" type=\"protractor\">\n\t      it('should load template defined inside script tag', function() {\n\t        element(by.css('#tpl-link')).click();\n\t        expect(element(by.css('#tpl-content')).getText()).toMatch(/Content of the template/);\n\t      });\n\t    </file>\n\t  </example>\n\t */\n\tvar scriptDirective = ['$templateCache', function($templateCache) {\n\t  return {\n\t    restrict: 'E',\n\t    terminal: true,\n\t    compile: function(element, attr) {\n\t      if (attr.type == 'text/ng-template') {\n\t        var templateUrl = attr.id,\n\t            text = element[0].text;\n\n\t        $templateCache.put(templateUrl, text);\n\t      }\n\t    }\n\t  };\n\t}];\n\n\tvar noopNgModelController = { $setViewValue: noop, $render: noop };\n\n\tfunction chromeHack(optionElement) {\n\t  // Workaround for https://code.google.com/p/chromium/issues/detail?id=381459\n\t  // Adding an <option selected=\"selected\"> element to a <select required=\"required\"> should\n\t  // automatically select the new element\n\t  if (optionElement[0].hasAttribute('selected')) {\n\t    optionElement[0].selected = true;\n\t  }\n\t}\n\n\t/**\n\t * @ngdoc type\n\t * @name  select.SelectController\n\t * @description\n\t * The controller for the `<select>` directive. This provides support for reading\n\t * and writing the selected value(s) of the control and also coordinates dynamically\n\t * added `<option>` elements, perhaps by an `ngRepeat` directive.\n\t */\n\tvar SelectController =\n\t        ['$element', '$scope', '$attrs', function($element, $scope, $attrs) {\n\n\t  var self = this,\n\t      optionsMap = new HashMap();\n\n\t  // If the ngModel doesn't get provided then provide a dummy noop version to prevent errors\n\t  self.ngModelCtrl = noopNgModelController;\n\n\t  // The \"unknown\" option is one that is prepended to the list if the viewValue\n\t  // does not match any of the options. When it is rendered the value of the unknown\n\t  // option is '? XXX ?' where XXX is the hashKey of the value that is not known.\n\t  //\n\t  // We can't just jqLite('<option>') since jqLite is not smart enough\n\t  // to create it in <select> and IE barfs otherwise.\n\t  self.unknownOption = jqLite(document.createElement('option'));\n\t  self.renderUnknownOption = function(val) {\n\t    var unknownVal = '? ' + hashKey(val) + ' ?';\n\t    self.unknownOption.val(unknownVal);\n\t    $element.prepend(self.unknownOption);\n\t    $element.val(unknownVal);\n\t  };\n\n\t  $scope.$on('$destroy', function() {\n\t    // disable unknown option so that we don't do work when the whole select is being destroyed\n\t    self.renderUnknownOption = noop;\n\t  });\n\n\t  self.removeUnknownOption = function() {\n\t    if (self.unknownOption.parent()) self.unknownOption.remove();\n\t  };\n\n\n\t  // Read the value of the select control, the implementation of this changes depending\n\t  // upon whether the select can have multiple values and whether ngOptions is at work.\n\t  self.readValue = function readSingleValue() {\n\t    self.removeUnknownOption();\n\t    return $element.val();\n\t  };\n\n\n\t  // Write the value to the select control, the implementation of this changes depending\n\t  // upon whether the select can have multiple values and whether ngOptions is at work.\n\t  self.writeValue = function writeSingleValue(value) {\n\t    if (self.hasOption(value)) {\n\t      self.removeUnknownOption();\n\t      $element.val(value);\n\t      if (value === '') self.emptyOption.prop('selected', true); // to make IE9 happy\n\t    } else {\n\t      if (value == null && self.emptyOption) {\n\t        self.removeUnknownOption();\n\t        $element.val('');\n\t      } else {\n\t        self.renderUnknownOption(value);\n\t      }\n\t    }\n\t  };\n\n\n\t  // Tell the select control that an option, with the given value, has been added\n\t  self.addOption = function(value, element) {\n\t    assertNotHasOwnProperty(value, '\"option value\"');\n\t    if (value === '') {\n\t      self.emptyOption = element;\n\t    }\n\t    var count = optionsMap.get(value) || 0;\n\t    optionsMap.put(value, count + 1);\n\t    self.ngModelCtrl.$render();\n\t    chromeHack(element);\n\t  };\n\n\t  // Tell the select control that an option, with the given value, has been removed\n\t  self.removeOption = function(value) {\n\t    var count = optionsMap.get(value);\n\t    if (count) {\n\t      if (count === 1) {\n\t        optionsMap.remove(value);\n\t        if (value === '') {\n\t          self.emptyOption = undefined;\n\t        }\n\t      } else {\n\t        optionsMap.put(value, count - 1);\n\t      }\n\t    }\n\t  };\n\n\t  // Check whether the select control has an option matching the given value\n\t  self.hasOption = function(value) {\n\t    return !!optionsMap.get(value);\n\t  };\n\n\n\t  self.registerOption = function(optionScope, optionElement, optionAttrs, interpolateValueFn, interpolateTextFn) {\n\n\t    if (interpolateValueFn) {\n\t      // The value attribute is interpolated\n\t      var oldVal;\n\t      optionAttrs.$observe('value', function valueAttributeObserveAction(newVal) {\n\t        if (isDefined(oldVal)) {\n\t          self.removeOption(oldVal);\n\t        }\n\t        oldVal = newVal;\n\t        self.addOption(newVal, optionElement);\n\t      });\n\t    } else if (interpolateTextFn) {\n\t      // The text content is interpolated\n\t      optionScope.$watch(interpolateTextFn, function interpolateWatchAction(newVal, oldVal) {\n\t        optionAttrs.$set('value', newVal);\n\t        if (oldVal !== newVal) {\n\t          self.removeOption(oldVal);\n\t        }\n\t        self.addOption(newVal, optionElement);\n\t      });\n\t    } else {\n\t      // The value attribute is static\n\t      self.addOption(optionAttrs.value, optionElement);\n\t    }\n\n\t    optionElement.on('$destroy', function() {\n\t      self.removeOption(optionAttrs.value);\n\t      self.ngModelCtrl.$render();\n\t    });\n\t  };\n\t}];\n\n\t/**\n\t * @ngdoc directive\n\t * @name select\n\t * @restrict E\n\t *\n\t * @description\n\t * HTML `SELECT` element with angular data-binding.\n\t *\n\t * The `select` directive is used together with {@link ngModel `ngModel`} to provide data-binding\n\t * between the scope and the `<select>` control (including setting default values).\n\t * Ìt also handles dynamic `<option>` elements, which can be added using the {@link ngRepeat `ngRepeat}` or\n\t * {@link ngOptions `ngOptions`} directives.\n\t *\n\t * When an item in the `<select>` menu is selected, the value of the selected option will be bound\n\t * to the model identified by the `ngModel` directive. With static or repeated options, this is\n\t * the content of the `value` attribute or the textContent of the `<option>`, if the value attribute is missing.\n\t * If you want dynamic value attributes, you can use interpolation inside the value attribute.\n\t *\n\t * <div class=\"alert alert-warning\">\n\t * Note that the value of a `select` directive used without `ngOptions` is always a string.\n\t * When the model needs to be bound to a non-string value, you must either explictly convert it\n\t * using a directive (see example below) or use `ngOptions` to specify the set of options.\n\t * This is because an option element can only be bound to string values at present.\n\t * </div>\n\t *\n\t * If the viewValue of `ngModel` does not match any of the options, then the control\n\t * will automatically add an \"unknown\" option, which it then removes when the mismatch is resolved.\n\t *\n\t * Optionally, a single hard-coded `<option>` element, with the value set to an empty string, can\n\t * be nested into the `<select>` element. This element will then represent the `null` or \"not selected\"\n\t * option. See example below for demonstration.\n\t *\n\t * <div class=\"alert alert-info\">\n\t * In many cases, `ngRepeat` can be used on `<option>` elements instead of {@link ng.directive:ngOptions\n\t * ngOptions} to achieve a similar result. However, `ngOptions` provides some benefits, such as\n\t * more flexibility in how the `<select>`'s model is assigned via the `select` **`as`** part of the\n\t * comprehension expression, and additionally in reducing memory and increasing speed by not creating\n\t * a new scope for each repeated instance.\n\t * </div>\n\t *\n\t *\n\t * @param {string} ngModel Assignable angular expression to data-bind to.\n\t * @param {string=} name Property name of the form under which the control is published.\n\t * @param {string=} multiple Allows multiple options to be selected. The selected values will be\n\t *     bound to the model as an array.\n\t * @param {string=} required Sets `required` validation error key if the value is not entered.\n\t * @param {string=} ngRequired Adds required attribute and required validation constraint to\n\t * the element when the ngRequired expression evaluates to true. Use ngRequired instead of required\n\t * when you want to data-bind to the required attribute.\n\t * @param {string=} ngChange Angular expression to be executed when selected option(s) changes due to user\n\t *    interaction with the select element.\n\t * @param {string=} ngOptions sets the options that the select is populated with and defines what is\n\t * set on the model on selection. See {@link ngOptions `ngOptions`}.\n\t *\n\t * @example\n\t * ### Simple `select` elements with static options\n\t *\n\t * <example name=\"static-select\" module=\"staticSelect\">\n\t * <file name=\"index.html\">\n\t * <div ng-controller=\"ExampleController\">\n\t *   <form name=\"myForm\">\n\t *     <label for=\"singleSelect\"> Single select: </label><br>\n\t *     <select name=\"singleSelect\" ng-model=\"data.singleSelect\">\n\t *       <option value=\"option-1\">Option 1</option>\n\t *       <option value=\"option-2\">Option 2</option>\n\t *     </select><br>\n\t *\n\t *     <label for=\"singleSelect\"> Single select with \"not selected\" option and dynamic option values: </label><br>\n\t *     <select name=\"singleSelect\" id=\"singleSelect\" ng-model=\"data.singleSelect\">\n\t *       <option value=\"\">---Please select---</option> <!-- not selected / blank option -->\n\t *       <option value=\"{{data.option1}}\">Option 1</option> <!-- interpolation -->\n\t *       <option value=\"option-2\">Option 2</option>\n\t *     </select><br>\n\t *     <button ng-click=\"forceUnknownOption()\">Force unknown option</button><br>\n\t *     <tt>singleSelect = {{data.singleSelect}}</tt>\n\t *\n\t *     <hr>\n\t *     <label for=\"multipleSelect\"> Multiple select: </label><br>\n\t *     <select name=\"multipleSelect\" id=\"multipleSelect\" ng-model=\"data.multipleSelect\" multiple>\n\t *       <option value=\"option-1\">Option 1</option>\n\t *       <option value=\"option-2\">Option 2</option>\n\t *       <option value=\"option-3\">Option 3</option>\n\t *     </select><br>\n\t *     <tt>multipleSelect = {{data.multipleSelect}}</tt><br/>\n\t *   </form>\n\t * </div>\n\t * </file>\n\t * <file name=\"app.js\">\n\t *  angular.module('staticSelect', [])\n\t *    .controller('ExampleController', ['$scope', function($scope) {\n\t *      $scope.data = {\n\t *       singleSelect: null,\n\t *       multipleSelect: [],\n\t *       option1: 'option-1',\n\t *      };\n\t *\n\t *      $scope.forceUnknownOption = function() {\n\t *        $scope.data.singleSelect = 'nonsense';\n\t *      };\n\t *   }]);\n\t * </file>\n\t *</example>\n\t *\n\t * ### Using `ngRepeat` to generate `select` options\n\t * <example name=\"ngrepeat-select\" module=\"ngrepeatSelect\">\n\t * <file name=\"index.html\">\n\t * <div ng-controller=\"ExampleController\">\n\t *   <form name=\"myForm\">\n\t *     <label for=\"repeatSelect\"> Repeat select: </label>\n\t *     <select name=\"repeatSelect\" id=\"repeatSelect\" ng-model=\"data.repeatSelect\">\n\t *       <option ng-repeat=\"option in data.availableOptions\" value=\"{{option.id}}\">{{option.name}}</option>\n\t *     </select>\n\t *   </form>\n\t *   <hr>\n\t *   <tt>repeatSelect = {{data.repeatSelect}}</tt><br/>\n\t * </div>\n\t * </file>\n\t * <file name=\"app.js\">\n\t *  angular.module('ngrepeatSelect', [])\n\t *    .controller('ExampleController', ['$scope', function($scope) {\n\t *      $scope.data = {\n\t *       repeatSelect: null,\n\t *       availableOptions: [\n\t *         {id: '1', name: 'Option A'},\n\t *         {id: '2', name: 'Option B'},\n\t *         {id: '3', name: 'Option C'}\n\t *       ],\n\t *      };\n\t *   }]);\n\t * </file>\n\t *</example>\n\t *\n\t *\n\t * ### Using `select` with `ngOptions` and setting a default value\n\t * See the {@link ngOptions ngOptions documentation} for more `ngOptions` usage examples.\n\t *\n\t * <example name=\"select-with-default-values\" module=\"defaultValueSelect\">\n\t * <file name=\"index.html\">\n\t * <div ng-controller=\"ExampleController\">\n\t *   <form name=\"myForm\">\n\t *     <label for=\"mySelect\">Make a choice:</label>\n\t *     <select name=\"mySelect\" id=\"mySelect\"\n\t *       ng-options=\"option.name for option in data.availableOptions track by option.id\"\n\t *       ng-model=\"data.selectedOption\"></select>\n\t *   </form>\n\t *   <hr>\n\t *   <tt>option = {{data.selectedOption}}</tt><br/>\n\t * </div>\n\t * </file>\n\t * <file name=\"app.js\">\n\t *  angular.module('defaultValueSelect', [])\n\t *    .controller('ExampleController', ['$scope', function($scope) {\n\t *      $scope.data = {\n\t *       availableOptions: [\n\t *         {id: '1', name: 'Option A'},\n\t *         {id: '2', name: 'Option B'},\n\t *         {id: '3', name: 'Option C'}\n\t *       ],\n\t *       selectedOption: {id: '3', name: 'Option C'} //This sets the default value of the select in the ui\n\t *       };\n\t *   }]);\n\t * </file>\n\t *</example>\n\t *\n\t *\n\t * ### Binding `select` to a non-string value via `ngModel` parsing / formatting\n\t *\n\t * <example name=\"select-with-non-string-options\" module=\"nonStringSelect\">\n\t *   <file name=\"index.html\">\n\t *     <select ng-model=\"model.id\" convert-to-number>\n\t *       <option value=\"0\">Zero</option>\n\t *       <option value=\"1\">One</option>\n\t *       <option value=\"2\">Two</option>\n\t *     </select>\n\t *     {{ model }}\n\t *   </file>\n\t *   <file name=\"app.js\">\n\t *     angular.module('nonStringSelect', [])\n\t *       .run(function($rootScope) {\n\t *         $rootScope.model = { id: 2 };\n\t *       })\n\t *       .directive('convertToNumber', function() {\n\t *         return {\n\t *           require: 'ngModel',\n\t *           link: function(scope, element, attrs, ngModel) {\n\t *             ngModel.$parsers.push(function(val) {\n\t *               return parseInt(val, 10);\n\t *             });\n\t *             ngModel.$formatters.push(function(val) {\n\t *               return '' + val;\n\t *             });\n\t *           }\n\t *         };\n\t *       });\n\t *   </file>\n\t *   <file name=\"protractor.js\" type=\"protractor\">\n\t *     it('should initialize to model', function() {\n\t *       var select = element(by.css('select'));\n\t *       expect(element(by.model('model.id')).$('option:checked').getText()).toEqual('Two');\n\t *     });\n\t *   </file>\n\t * </example>\n\t *\n\t */\n\tvar selectDirective = function() {\n\n\t  return {\n\t    restrict: 'E',\n\t    require: ['select', '?ngModel'],\n\t    controller: SelectController,\n\t    priority: 1,\n\t    link: {\n\t      pre: selectPreLink\n\t    }\n\t  };\n\n\t  function selectPreLink(scope, element, attr, ctrls) {\n\n\t      // if ngModel is not defined, we don't need to do anything\n\t      var ngModelCtrl = ctrls[1];\n\t      if (!ngModelCtrl) return;\n\n\t      var selectCtrl = ctrls[0];\n\n\t      selectCtrl.ngModelCtrl = ngModelCtrl;\n\n\t      // We delegate rendering to the `writeValue` method, which can be changed\n\t      // if the select can have multiple selected values or if the options are being\n\t      // generated by `ngOptions`\n\t      ngModelCtrl.$render = function() {\n\t        selectCtrl.writeValue(ngModelCtrl.$viewValue);\n\t      };\n\n\t      // When the selected item(s) changes we delegate getting the value of the select control\n\t      // to the `readValue` method, which can be changed if the select can have multiple\n\t      // selected values or if the options are being generated by `ngOptions`\n\t      element.on('change', function() {\n\t        scope.$apply(function() {\n\t          ngModelCtrl.$setViewValue(selectCtrl.readValue());\n\t        });\n\t      });\n\n\t      // If the select allows multiple values then we need to modify how we read and write\n\t      // values from and to the control; also what it means for the value to be empty and\n\t      // we have to add an extra watch since ngModel doesn't work well with arrays - it\n\t      // doesn't trigger rendering if only an item in the array changes.\n\t      if (attr.multiple) {\n\n\t        // Read value now needs to check each option to see if it is selected\n\t        selectCtrl.readValue = function readMultipleValue() {\n\t          var array = [];\n\t          forEach(element.find('option'), function(option) {\n\t            if (option.selected) {\n\t              array.push(option.value);\n\t            }\n\t          });\n\t          return array;\n\t        };\n\n\t        // Write value now needs to set the selected property of each matching option\n\t        selectCtrl.writeValue = function writeMultipleValue(value) {\n\t          var items = new HashMap(value);\n\t          forEach(element.find('option'), function(option) {\n\t            option.selected = isDefined(items.get(option.value));\n\t          });\n\t        };\n\n\t        // we have to do it on each watch since ngModel watches reference, but\n\t        // we need to work of an array, so we need to see if anything was inserted/removed\n\t        var lastView, lastViewRef = NaN;\n\t        scope.$watch(function selectMultipleWatch() {\n\t          if (lastViewRef === ngModelCtrl.$viewValue && !equals(lastView, ngModelCtrl.$viewValue)) {\n\t            lastView = shallowCopy(ngModelCtrl.$viewValue);\n\t            ngModelCtrl.$render();\n\t          }\n\t          lastViewRef = ngModelCtrl.$viewValue;\n\t        });\n\n\t        // If we are a multiple select then value is now a collection\n\t        // so the meaning of $isEmpty changes\n\t        ngModelCtrl.$isEmpty = function(value) {\n\t          return !value || value.length === 0;\n\t        };\n\n\t      }\n\t    }\n\t};\n\n\n\t// The option directive is purely designed to communicate the existence (or lack of)\n\t// of dynamically created (and destroyed) option elements to their containing select\n\t// directive via its controller.\n\tvar optionDirective = ['$interpolate', function($interpolate) {\n\t  return {\n\t    restrict: 'E',\n\t    priority: 100,\n\t    compile: function(element, attr) {\n\n\t      if (isDefined(attr.value)) {\n\t        // If the value attribute is defined, check if it contains an interpolation\n\t        var interpolateValueFn = $interpolate(attr.value, true);\n\t      } else {\n\t        // If the value attribute is not defined then we fall back to the\n\t        // text content of the option element, which may be interpolated\n\t        var interpolateTextFn = $interpolate(element.text(), true);\n\t        if (!interpolateTextFn) {\n\t          attr.$set('value', element.text());\n\t        }\n\t      }\n\n\t      return function(scope, element, attr) {\n\n\t        // This is an optimization over using ^^ since we don't want to have to search\n\t        // all the way to the root of the DOM for every single option element\n\t        var selectCtrlName = '$selectController',\n\t            parent = element.parent(),\n\t            selectCtrl = parent.data(selectCtrlName) ||\n\t              parent.parent().data(selectCtrlName); // in case we are in optgroup\n\n\t        if (selectCtrl) {\n\t          selectCtrl.registerOption(scope, element, attr, interpolateValueFn, interpolateTextFn);\n\t        }\n\t      };\n\t    }\n\t  };\n\t}];\n\n\tvar styleDirective = valueFn({\n\t  restrict: 'E',\n\t  terminal: false\n\t});\n\n\tvar requiredDirective = function() {\n\t  return {\n\t    restrict: 'A',\n\t    require: '?ngModel',\n\t    link: function(scope, elm, attr, ctrl) {\n\t      if (!ctrl) return;\n\t      attr.required = true; // force truthy in case we are on non input element\n\n\t      ctrl.$validators.required = function(modelValue, viewValue) {\n\t        return !attr.required || !ctrl.$isEmpty(viewValue);\n\t      };\n\n\t      attr.$observe('required', function() {\n\t        ctrl.$validate();\n\t      });\n\t    }\n\t  };\n\t};\n\n\n\tvar patternDirective = function() {\n\t  return {\n\t    restrict: 'A',\n\t    require: '?ngModel',\n\t    link: function(scope, elm, attr, ctrl) {\n\t      if (!ctrl) return;\n\n\t      var regexp, patternExp = attr.ngPattern || attr.pattern;\n\t      attr.$observe('pattern', function(regex) {\n\t        if (isString(regex) && regex.length > 0) {\n\t          regex = new RegExp('^' + regex + '$');\n\t        }\n\n\t        if (regex && !regex.test) {\n\t          throw minErr('ngPattern')('noregexp',\n\t            'Expected {0} to be a RegExp but was {1}. Element: {2}', patternExp,\n\t            regex, startingTag(elm));\n\t        }\n\n\t        regexp = regex || undefined;\n\t        ctrl.$validate();\n\t      });\n\n\t      ctrl.$validators.pattern = function(modelValue, viewValue) {\n\t        // HTML5 pattern constraint validates the input value, so we validate the viewValue\n\t        return ctrl.$isEmpty(viewValue) || isUndefined(regexp) || regexp.test(viewValue);\n\t      };\n\t    }\n\t  };\n\t};\n\n\n\tvar maxlengthDirective = function() {\n\t  return {\n\t    restrict: 'A',\n\t    require: '?ngModel',\n\t    link: function(scope, elm, attr, ctrl) {\n\t      if (!ctrl) return;\n\n\t      var maxlength = -1;\n\t      attr.$observe('maxlength', function(value) {\n\t        var intVal = toInt(value);\n\t        maxlength = isNaN(intVal) ? -1 : intVal;\n\t        ctrl.$validate();\n\t      });\n\t      ctrl.$validators.maxlength = function(modelValue, viewValue) {\n\t        return (maxlength < 0) || ctrl.$isEmpty(viewValue) || (viewValue.length <= maxlength);\n\t      };\n\t    }\n\t  };\n\t};\n\n\tvar minlengthDirective = function() {\n\t  return {\n\t    restrict: 'A',\n\t    require: '?ngModel',\n\t    link: function(scope, elm, attr, ctrl) {\n\t      if (!ctrl) return;\n\n\t      var minlength = 0;\n\t      attr.$observe('minlength', function(value) {\n\t        minlength = toInt(value) || 0;\n\t        ctrl.$validate();\n\t      });\n\t      ctrl.$validators.minlength = function(modelValue, viewValue) {\n\t        return ctrl.$isEmpty(viewValue) || viewValue.length >= minlength;\n\t      };\n\t    }\n\t  };\n\t};\n\n\tif (window.angular.bootstrap) {\n\t  //AngularJS is already loaded, so we can return here...\n\t  console.log('WARNING: Tried to load angular more than once.');\n\t  return;\n\t}\n\n\t//try to bind to jquery now so that one can write jqLite(document).ready()\n\t//but we will rebind on bootstrap again.\n\tbindJQuery();\n\n\tpublishExternalAPI(angular);\n\n\tangular.module(\"ngLocale\", [], [\"$provide\", function($provide) {\n\tvar PLURAL_CATEGORY = {ZERO: \"zero\", ONE: \"one\", TWO: \"two\", FEW: \"few\", MANY: \"many\", OTHER: \"other\"};\n\tfunction getDecimals(n) {\n\t  n = n + '';\n\t  var i = n.indexOf('.');\n\t  return (i == -1) ? 0 : n.length - i - 1;\n\t}\n\n\tfunction getVF(n, opt_precision) {\n\t  var v = opt_precision;\n\n\t  if (undefined === v) {\n\t    v = Math.min(getDecimals(n), 3);\n\t  }\n\n\t  var base = Math.pow(10, v);\n\t  var f = ((n * base) | 0) % base;\n\t  return {v: v, f: f};\n\t}\n\n\t$provide.value(\"$locale\", {\n\t  \"DATETIME_FORMATS\": {\n\t    \"AMPMS\": [\n\t      \"AM\",\n\t      \"PM\"\n\t    ],\n\t    \"DAY\": [\n\t      \"Sunday\",\n\t      \"Monday\",\n\t      \"Tuesday\",\n\t      \"Wednesday\",\n\t      \"Thursday\",\n\t      \"Friday\",\n\t      \"Saturday\"\n\t    ],\n\t    \"ERANAMES\": [\n\t      \"Before Christ\",\n\t      \"Anno Domini\"\n\t    ],\n\t    \"ERAS\": [\n\t      \"BC\",\n\t      \"AD\"\n\t    ],\n\t    \"FIRSTDAYOFWEEK\": 6,\n\t    \"MONTH\": [\n\t      \"January\",\n\t      \"February\",\n\t      \"March\",\n\t      \"April\",\n\t      \"May\",\n\t      \"June\",\n\t      \"July\",\n\t      \"August\",\n\t      \"September\",\n\t      \"October\",\n\t      \"November\",\n\t      \"December\"\n\t    ],\n\t    \"SHORTDAY\": [\n\t      \"Sun\",\n\t      \"Mon\",\n\t      \"Tue\",\n\t      \"Wed\",\n\t      \"Thu\",\n\t      \"Fri\",\n\t      \"Sat\"\n\t    ],\n\t    \"SHORTMONTH\": [\n\t      \"Jan\",\n\t      \"Feb\",\n\t      \"Mar\",\n\t      \"Apr\",\n\t      \"May\",\n\t      \"Jun\",\n\t      \"Jul\",\n\t      \"Aug\",\n\t      \"Sep\",\n\t      \"Oct\",\n\t      \"Nov\",\n\t      \"Dec\"\n\t    ],\n\t    \"WEEKENDRANGE\": [\n\t      5,\n\t      6\n\t    ],\n\t    \"fullDate\": \"EEEE, MMMM d, y\",\n\t    \"longDate\": \"MMMM d, y\",\n\t    \"medium\": \"MMM d, y h:mm:ss a\",\n\t    \"mediumDate\": \"MMM d, y\",\n\t    \"mediumTime\": \"h:mm:ss a\",\n\t    \"short\": \"M/d/yy h:mm a\",\n\t    \"shortDate\": \"M/d/yy\",\n\t    \"shortTime\": \"h:mm a\"\n\t  },\n\t  \"NUMBER_FORMATS\": {\n\t    \"CURRENCY_SYM\": \"$\",\n\t    \"DECIMAL_SEP\": \".\",\n\t    \"GROUP_SEP\": \",\",\n\t    \"PATTERNS\": [\n\t      {\n\t        \"gSize\": 3,\n\t        \"lgSize\": 3,\n\t        \"maxFrac\": 3,\n\t        \"minFrac\": 0,\n\t        \"minInt\": 1,\n\t        \"negPre\": \"-\",\n\t        \"negSuf\": \"\",\n\t        \"posPre\": \"\",\n\t        \"posSuf\": \"\"\n\t      },\n\t      {\n\t        \"gSize\": 3,\n\t        \"lgSize\": 3,\n\t        \"maxFrac\": 2,\n\t        \"minFrac\": 2,\n\t        \"minInt\": 1,\n\t        \"negPre\": \"-\\u00a4\",\n\t        \"negSuf\": \"\",\n\t        \"posPre\": \"\\u00a4\",\n\t        \"posSuf\": \"\"\n\t      }\n\t    ]\n\t  },\n\t  \"id\": \"en-us\",\n\t  \"pluralCat\": function(n, opt_precision) {  var i = n | 0;  var vf = getVF(n, opt_precision);  if (i == 1 && vf.v == 0) {    return PLURAL_CATEGORY.ONE;  }  return PLURAL_CATEGORY.OTHER;}\n\t});\n\t}]);\n\n\t  jqLite(document).ready(function() {\n\t    angularInit(document, bootstrap);\n\t  });\n\n\t})(window, document);\n\n\t!window.angular.$$csp().noInlineStyle && window.angular.element(document.head).prepend('<style type=\"text/css\">@charset \"UTF-8\";[ng\\\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}</style>');\n\n/***/ },\n/* 23 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(module) {//! moment.js\n\t//! version : 2.11.1\n\t//! authors : Tim Wood, Iskren Chernev, Moment.js contributors\n\t//! license : MIT\n\t//! momentjs.com\n\n\t;(function (global, factory) {\n\t     true ? module.exports = factory() :\n\t    typeof define === 'function' && define.amd ? define(factory) :\n\t    global.moment = factory()\n\t}(this, function () { 'use strict';\n\n\t    var hookCallback;\n\n\t    function utils_hooks__hooks () {\n\t        return hookCallback.apply(null, arguments);\n\t    }\n\n\t    // This is done to register the method called with moment()\n\t    // without creating circular dependencies.\n\t    function setHookCallback (callback) {\n\t        hookCallback = callback;\n\t    }\n\n\t    function isArray(input) {\n\t        return Object.prototype.toString.call(input) === '[object Array]';\n\t    }\n\n\t    function isDate(input) {\n\t        return input instanceof Date || Object.prototype.toString.call(input) === '[object Date]';\n\t    }\n\n\t    function map(arr, fn) {\n\t        var res = [], i;\n\t        for (i = 0; i < arr.length; ++i) {\n\t            res.push(fn(arr[i], i));\n\t        }\n\t        return res;\n\t    }\n\n\t    function hasOwnProp(a, b) {\n\t        return Object.prototype.hasOwnProperty.call(a, b);\n\t    }\n\n\t    function extend(a, b) {\n\t        for (var i in b) {\n\t            if (hasOwnProp(b, i)) {\n\t                a[i] = b[i];\n\t            }\n\t        }\n\n\t        if (hasOwnProp(b, 'toString')) {\n\t            a.toString = b.toString;\n\t        }\n\n\t        if (hasOwnProp(b, 'valueOf')) {\n\t            a.valueOf = b.valueOf;\n\t        }\n\n\t        return a;\n\t    }\n\n\t    function create_utc__createUTC (input, format, locale, strict) {\n\t        return createLocalOrUTC(input, format, locale, strict, true).utc();\n\t    }\n\n\t    function defaultParsingFlags() {\n\t        // We need to deep clone this object.\n\t        return {\n\t            empty           : false,\n\t            unusedTokens    : [],\n\t            unusedInput     : [],\n\t            overflow        : -2,\n\t            charsLeftOver   : 0,\n\t            nullInput       : false,\n\t            invalidMonth    : null,\n\t            invalidFormat   : false,\n\t            userInvalidated : false,\n\t            iso             : false\n\t        };\n\t    }\n\n\t    function getParsingFlags(m) {\n\t        if (m._pf == null) {\n\t            m._pf = defaultParsingFlags();\n\t        }\n\t        return m._pf;\n\t    }\n\n\t    function valid__isValid(m) {\n\t        if (m._isValid == null) {\n\t            var flags = getParsingFlags(m);\n\t            m._isValid = !isNaN(m._d.getTime()) &&\n\t                flags.overflow < 0 &&\n\t                !flags.empty &&\n\t                !flags.invalidMonth &&\n\t                !flags.invalidWeekday &&\n\t                !flags.nullInput &&\n\t                !flags.invalidFormat &&\n\t                !flags.userInvalidated;\n\n\t            if (m._strict) {\n\t                m._isValid = m._isValid &&\n\t                    flags.charsLeftOver === 0 &&\n\t                    flags.unusedTokens.length === 0 &&\n\t                    flags.bigHour === undefined;\n\t            }\n\t        }\n\t        return m._isValid;\n\t    }\n\n\t    function valid__createInvalid (flags) {\n\t        var m = create_utc__createUTC(NaN);\n\t        if (flags != null) {\n\t            extend(getParsingFlags(m), flags);\n\t        }\n\t        else {\n\t            getParsingFlags(m).userInvalidated = true;\n\t        }\n\n\t        return m;\n\t    }\n\n\t    function isUndefined(input) {\n\t        return input === void 0;\n\t    }\n\n\t    // Plugins that add properties should also add the key here (null value),\n\t    // so we can properly clone ourselves.\n\t    var momentProperties = utils_hooks__hooks.momentProperties = [];\n\n\t    function copyConfig(to, from) {\n\t        var i, prop, val;\n\n\t        if (!isUndefined(from._isAMomentObject)) {\n\t            to._isAMomentObject = from._isAMomentObject;\n\t        }\n\t        if (!isUndefined(from._i)) {\n\t            to._i = from._i;\n\t        }\n\t        if (!isUndefined(from._f)) {\n\t            to._f = from._f;\n\t        }\n\t        if (!isUndefined(from._l)) {\n\t            to._l = from._l;\n\t        }\n\t        if (!isUndefined(from._strict)) {\n\t            to._strict = from._strict;\n\t        }\n\t        if (!isUndefined(from._tzm)) {\n\t            to._tzm = from._tzm;\n\t        }\n\t        if (!isUndefined(from._isUTC)) {\n\t            to._isUTC = from._isUTC;\n\t        }\n\t        if (!isUndefined(from._offset)) {\n\t            to._offset = from._offset;\n\t        }\n\t        if (!isUndefined(from._pf)) {\n\t            to._pf = getParsingFlags(from);\n\t        }\n\t        if (!isUndefined(from._locale)) {\n\t            to._locale = from._locale;\n\t        }\n\n\t        if (momentProperties.length > 0) {\n\t            for (i in momentProperties) {\n\t                prop = momentProperties[i];\n\t                val = from[prop];\n\t                if (!isUndefined(val)) {\n\t                    to[prop] = val;\n\t                }\n\t            }\n\t        }\n\n\t        return to;\n\t    }\n\n\t    var updateInProgress = false;\n\n\t    // Moment prototype object\n\t    function Moment(config) {\n\t        copyConfig(this, config);\n\t        this._d = new Date(config._d != null ? config._d.getTime() : NaN);\n\t        // Prevent infinite loop in case updateOffset creates new moment\n\t        // objects.\n\t        if (updateInProgress === false) {\n\t            updateInProgress = true;\n\t            utils_hooks__hooks.updateOffset(this);\n\t            updateInProgress = false;\n\t        }\n\t    }\n\n\t    function isMoment (obj) {\n\t        return obj instanceof Moment || (obj != null && obj._isAMomentObject != null);\n\t    }\n\n\t    function absFloor (number) {\n\t        if (number < 0) {\n\t            return Math.ceil(number);\n\t        } else {\n\t            return Math.floor(number);\n\t        }\n\t    }\n\n\t    function toInt(argumentForCoercion) {\n\t        var coercedNumber = +argumentForCoercion,\n\t            value = 0;\n\n\t        if (coercedNumber !== 0 && isFinite(coercedNumber)) {\n\t            value = absFloor(coercedNumber);\n\t        }\n\n\t        return value;\n\t    }\n\n\t    // compare two arrays, return the number of differences\n\t    function compareArrays(array1, array2, dontConvert) {\n\t        var len = Math.min(array1.length, array2.length),\n\t            lengthDiff = Math.abs(array1.length - array2.length),\n\t            diffs = 0,\n\t            i;\n\t        for (i = 0; i < len; i++) {\n\t            if ((dontConvert && array1[i] !== array2[i]) ||\n\t                (!dontConvert && toInt(array1[i]) !== toInt(array2[i]))) {\n\t                diffs++;\n\t            }\n\t        }\n\t        return diffs + lengthDiff;\n\t    }\n\n\t    function Locale() {\n\t    }\n\n\t    // internal storage for locale config files\n\t    var locales = {};\n\t    var globalLocale;\n\n\t    function normalizeLocale(key) {\n\t        return key ? key.toLowerCase().replace('_', '-') : key;\n\t    }\n\n\t    // pick the locale from the array\n\t    // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each\n\t    // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root\n\t    function chooseLocale(names) {\n\t        var i = 0, j, next, locale, split;\n\n\t        while (i < names.length) {\n\t            split = normalizeLocale(names[i]).split('-');\n\t            j = split.length;\n\t            next = normalizeLocale(names[i + 1]);\n\t            next = next ? next.split('-') : null;\n\t            while (j > 0) {\n\t                locale = loadLocale(split.slice(0, j).join('-'));\n\t                if (locale) {\n\t                    return locale;\n\t                }\n\t                if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n\t                    //the next array item is better than a shallower substring of this one\n\t                    break;\n\t                }\n\t                j--;\n\t            }\n\t            i++;\n\t        }\n\t        return null;\n\t    }\n\n\t    function loadLocale(name) {\n\t        var oldLocale = null;\n\t        // TODO: Find a better way to register and load all the locales in Node\n\t        if (!locales[name] && (typeof module !== 'undefined') &&\n\t                module && module.exports) {\n\t            try {\n\t                oldLocale = globalLocale._abbr;\n\t                __webpack_require__(25)(\"./\" + name);\n\t                // because defineLocale currently also sets the global locale, we\n\t                // want to undo that for lazy loaded locales\n\t                locale_locales__getSetGlobalLocale(oldLocale);\n\t            } catch (e) { }\n\t        }\n\t        return locales[name];\n\t    }\n\n\t    // This function will load locale and then set the global locale.  If\n\t    // no arguments are passed in, it will simply return the current global\n\t    // locale key.\n\t    function locale_locales__getSetGlobalLocale (key, values) {\n\t        var data;\n\t        if (key) {\n\t            if (isUndefined(values)) {\n\t                data = locale_locales__getLocale(key);\n\t            }\n\t            else {\n\t                data = defineLocale(key, values);\n\t            }\n\n\t            if (data) {\n\t                // moment.duration._locale = moment._locale = data;\n\t                globalLocale = data;\n\t            }\n\t        }\n\n\t        return globalLocale._abbr;\n\t    }\n\n\t    function defineLocale (name, values) {\n\t        if (values !== null) {\n\t            values.abbr = name;\n\t            locales[name] = locales[name] || new Locale();\n\t            locales[name].set(values);\n\n\t            // backwards compat for now: also set the locale\n\t            locale_locales__getSetGlobalLocale(name);\n\n\t            return locales[name];\n\t        } else {\n\t            // useful for testing\n\t            delete locales[name];\n\t            return null;\n\t        }\n\t    }\n\n\t    // returns locale data\n\t    function locale_locales__getLocale (key) {\n\t        var locale;\n\n\t        if (key && key._locale && key._locale._abbr) {\n\t            key = key._locale._abbr;\n\t        }\n\n\t        if (!key) {\n\t            return globalLocale;\n\t        }\n\n\t        if (!isArray(key)) {\n\t            //short-circuit everything else\n\t            locale = loadLocale(key);\n\t            if (locale) {\n\t                return locale;\n\t            }\n\t            key = [key];\n\t        }\n\n\t        return chooseLocale(key);\n\t    }\n\n\t    var aliases = {};\n\n\t    function addUnitAlias (unit, shorthand) {\n\t        var lowerCase = unit.toLowerCase();\n\t        aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit;\n\t    }\n\n\t    function normalizeUnits(units) {\n\t        return typeof units === 'string' ? aliases[units] || aliases[units.toLowerCase()] : undefined;\n\t    }\n\n\t    function normalizeObjectUnits(inputObject) {\n\t        var normalizedInput = {},\n\t            normalizedProp,\n\t            prop;\n\n\t        for (prop in inputObject) {\n\t            if (hasOwnProp(inputObject, prop)) {\n\t                normalizedProp = normalizeUnits(prop);\n\t                if (normalizedProp) {\n\t                    normalizedInput[normalizedProp] = inputObject[prop];\n\t                }\n\t            }\n\t        }\n\n\t        return normalizedInput;\n\t    }\n\n\t    function isFunction(input) {\n\t        return input instanceof Function || Object.prototype.toString.call(input) === '[object Function]';\n\t    }\n\n\t    function makeGetSet (unit, keepTime) {\n\t        return function (value) {\n\t            if (value != null) {\n\t                get_set__set(this, unit, value);\n\t                utils_hooks__hooks.updateOffset(this, keepTime);\n\t                return this;\n\t            } else {\n\t                return get_set__get(this, unit);\n\t            }\n\t        };\n\t    }\n\n\t    function get_set__get (mom, unit) {\n\t        return mom.isValid() ?\n\t            mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]() : NaN;\n\t    }\n\n\t    function get_set__set (mom, unit, value) {\n\t        if (mom.isValid()) {\n\t            mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value);\n\t        }\n\t    }\n\n\t    // MOMENTS\n\n\t    function getSet (units, value) {\n\t        var unit;\n\t        if (typeof units === 'object') {\n\t            for (unit in units) {\n\t                this.set(unit, units[unit]);\n\t            }\n\t        } else {\n\t            units = normalizeUnits(units);\n\t            if (isFunction(this[units])) {\n\t                return this[units](value);\n\t            }\n\t        }\n\t        return this;\n\t    }\n\n\t    function zeroFill(number, targetLength, forceSign) {\n\t        var absNumber = '' + Math.abs(number),\n\t            zerosToFill = targetLength - absNumber.length,\n\t            sign = number >= 0;\n\t        return (sign ? (forceSign ? '+' : '') : '-') +\n\t            Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) + absNumber;\n\t    }\n\n\t    var formattingTokens = /(\\[[^\\[]*\\])|(\\\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;\n\n\t    var localFormattingTokens = /(\\[[^\\[]*\\])|(\\\\)?(LTS|LT|LL?L?L?|l{1,4})/g;\n\n\t    var formatFunctions = {};\n\n\t    var formatTokenFunctions = {};\n\n\t    // token:    'M'\n\t    // padded:   ['MM', 2]\n\t    // ordinal:  'Mo'\n\t    // callback: function () { this.month() + 1 }\n\t    function addFormatToken (token, padded, ordinal, callback) {\n\t        var func = callback;\n\t        if (typeof callback === 'string') {\n\t            func = function () {\n\t                return this[callback]();\n\t            };\n\t        }\n\t        if (token) {\n\t            formatTokenFunctions[token] = func;\n\t        }\n\t        if (padded) {\n\t            formatTokenFunctions[padded[0]] = function () {\n\t                return zeroFill(func.apply(this, arguments), padded[1], padded[2]);\n\t            };\n\t        }\n\t        if (ordinal) {\n\t            formatTokenFunctions[ordinal] = function () {\n\t                return this.localeData().ordinal(func.apply(this, arguments), token);\n\t            };\n\t        }\n\t    }\n\n\t    function removeFormattingTokens(input) {\n\t        if (input.match(/\\[[\\s\\S]/)) {\n\t            return input.replace(/^\\[|\\]$/g, '');\n\t        }\n\t        return input.replace(/\\\\/g, '');\n\t    }\n\n\t    function makeFormatFunction(format) {\n\t        var array = format.match(formattingTokens), i, length;\n\n\t        for (i = 0, length = array.length; i < length; i++) {\n\t            if (formatTokenFunctions[array[i]]) {\n\t                array[i] = formatTokenFunctions[array[i]];\n\t            } else {\n\t                array[i] = removeFormattingTokens(array[i]);\n\t            }\n\t        }\n\n\t        return function (mom) {\n\t            var output = '';\n\t            for (i = 0; i < length; i++) {\n\t                output += array[i] instanceof Function ? array[i].call(mom, format) : array[i];\n\t            }\n\t            return output;\n\t        };\n\t    }\n\n\t    // format date using native date object\n\t    function formatMoment(m, format) {\n\t        if (!m.isValid()) {\n\t            return m.localeData().invalidDate();\n\t        }\n\n\t        format = expandFormat(format, m.localeData());\n\t        formatFunctions[format] = formatFunctions[format] || makeFormatFunction(format);\n\n\t        return formatFunctions[format](m);\n\t    }\n\n\t    function expandFormat(format, locale) {\n\t        var i = 5;\n\n\t        function replaceLongDateFormatTokens(input) {\n\t            return locale.longDateFormat(input) || input;\n\t        }\n\n\t        localFormattingTokens.lastIndex = 0;\n\t        while (i >= 0 && localFormattingTokens.test(format)) {\n\t            format = format.replace(localFormattingTokens, replaceLongDateFormatTokens);\n\t            localFormattingTokens.lastIndex = 0;\n\t            i -= 1;\n\t        }\n\n\t        return format;\n\t    }\n\n\t    var match1         = /\\d/;            //       0 - 9\n\t    var match2         = /\\d\\d/;          //      00 - 99\n\t    var match3         = /\\d{3}/;         //     000 - 999\n\t    var match4         = /\\d{4}/;         //    0000 - 9999\n\t    var match6         = /[+-]?\\d{6}/;    // -999999 - 999999\n\t    var match1to2      = /\\d\\d?/;         //       0 - 99\n\t    var match3to4      = /\\d\\d\\d\\d?/;     //     999 - 9999\n\t    var match5to6      = /\\d\\d\\d\\d\\d\\d?/; //   99999 - 999999\n\t    var match1to3      = /\\d{1,3}/;       //       0 - 999\n\t    var match1to4      = /\\d{1,4}/;       //       0 - 9999\n\t    var match1to6      = /[+-]?\\d{1,6}/;  // -999999 - 999999\n\n\t    var matchUnsigned  = /\\d+/;           //       0 - inf\n\t    var matchSigned    = /[+-]?\\d+/;      //    -inf - inf\n\n\t    var matchOffset    = /Z|[+-]\\d\\d:?\\d\\d/gi; // +00:00 -00:00 +0000 -0000 or Z\n\t    var matchShortOffset = /Z|[+-]\\d\\d(?::?\\d\\d)?/gi; // +00 -00 +00:00 -00:00 +0000 -0000 or Z\n\n\t    var matchTimestamp = /[+-]?\\d+(\\.\\d{1,3})?/; // 123456789 123456789.123\n\n\t    // any word (or two) characters or numbers including two/three word month in arabic.\n\t    // includes scottish gaelic two word and hyphenated months\n\t    var matchWord = /[0-9]*['a-z\\u00A0-\\u05FF\\u0700-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]+|[\\u0600-\\u06FF\\/]+(\\s*?[\\u0600-\\u06FF]+){1,2}/i;\n\n\n\t    var regexes = {};\n\n\t    function addRegexToken (token, regex, strictRegex) {\n\t        regexes[token] = isFunction(regex) ? regex : function (isStrict, localeData) {\n\t            return (isStrict && strictRegex) ? strictRegex : regex;\n\t        };\n\t    }\n\n\t    function getParseRegexForToken (token, config) {\n\t        if (!hasOwnProp(regexes, token)) {\n\t            return new RegExp(unescapeFormat(token));\n\t        }\n\n\t        return regexes[token](config._strict, config._locale);\n\t    }\n\n\t    // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript\n\t    function unescapeFormat(s) {\n\t        return regexEscape(s.replace('\\\\', '').replace(/\\\\(\\[)|\\\\(\\])|\\[([^\\]\\[]*)\\]|\\\\(.)/g, function (matched, p1, p2, p3, p4) {\n\t            return p1 || p2 || p3 || p4;\n\t        }));\n\t    }\n\n\t    function regexEscape(s) {\n\t        return s.replace(/[-\\/\\\\^$*+?.()|[\\]{}]/g, '\\\\$&');\n\t    }\n\n\t    var tokens = {};\n\n\t    function addParseToken (token, callback) {\n\t        var i, func = callback;\n\t        if (typeof token === 'string') {\n\t            token = [token];\n\t        }\n\t        if (typeof callback === 'number') {\n\t            func = function (input, array) {\n\t                array[callback] = toInt(input);\n\t            };\n\t        }\n\t        for (i = 0; i < token.length; i++) {\n\t            tokens[token[i]] = func;\n\t        }\n\t    }\n\n\t    function addWeekParseToken (token, callback) {\n\t        addParseToken(token, function (input, array, config, token) {\n\t            config._w = config._w || {};\n\t            callback(input, config._w, config, token);\n\t        });\n\t    }\n\n\t    function addTimeToArrayFromToken(token, input, config) {\n\t        if (input != null && hasOwnProp(tokens, token)) {\n\t            tokens[token](input, config._a, config, token);\n\t        }\n\t    }\n\n\t    var YEAR = 0;\n\t    var MONTH = 1;\n\t    var DATE = 2;\n\t    var HOUR = 3;\n\t    var MINUTE = 4;\n\t    var SECOND = 5;\n\t    var MILLISECOND = 6;\n\t    var WEEK = 7;\n\t    var WEEKDAY = 8;\n\n\t    function daysInMonth(year, month) {\n\t        return new Date(Date.UTC(year, month + 1, 0)).getUTCDate();\n\t    }\n\n\t    // FORMATTING\n\n\t    addFormatToken('M', ['MM', 2], 'Mo', function () {\n\t        return this.month() + 1;\n\t    });\n\n\t    addFormatToken('MMM', 0, 0, function (format) {\n\t        return this.localeData().monthsShort(this, format);\n\t    });\n\n\t    addFormatToken('MMMM', 0, 0, function (format) {\n\t        return this.localeData().months(this, format);\n\t    });\n\n\t    // ALIASES\n\n\t    addUnitAlias('month', 'M');\n\n\t    // PARSING\n\n\t    addRegexToken('M',    match1to2);\n\t    addRegexToken('MM',   match1to2, match2);\n\t    addRegexToken('MMM',  function (isStrict, locale) {\n\t        return locale.monthsShortRegex(isStrict);\n\t    });\n\t    addRegexToken('MMMM', function (isStrict, locale) {\n\t        return locale.monthsRegex(isStrict);\n\t    });\n\n\t    addParseToken(['M', 'MM'], function (input, array) {\n\t        array[MONTH] = toInt(input) - 1;\n\t    });\n\n\t    addParseToken(['MMM', 'MMMM'], function (input, array, config, token) {\n\t        var month = config._locale.monthsParse(input, token, config._strict);\n\t        // if we didn't find a month name, mark the date as invalid.\n\t        if (month != null) {\n\t            array[MONTH] = month;\n\t        } else {\n\t            getParsingFlags(config).invalidMonth = input;\n\t        }\n\t    });\n\n\t    // LOCALES\n\n\t    var MONTHS_IN_FORMAT = /D[oD]?(\\[[^\\[\\]]*\\]|\\s+)+MMMM?/;\n\t    var defaultLocaleMonths = 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_');\n\t    function localeMonths (m, format) {\n\t        return isArray(this._months) ? this._months[m.month()] :\n\t            this._months[MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone'][m.month()];\n\t    }\n\n\t    var defaultLocaleMonthsShort = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_');\n\t    function localeMonthsShort (m, format) {\n\t        return isArray(this._monthsShort) ? this._monthsShort[m.month()] :\n\t            this._monthsShort[MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone'][m.month()];\n\t    }\n\n\t    function localeMonthsParse (monthName, format, strict) {\n\t        var i, mom, regex;\n\n\t        if (!this._monthsParse) {\n\t            this._monthsParse = [];\n\t            this._longMonthsParse = [];\n\t            this._shortMonthsParse = [];\n\t        }\n\n\t        for (i = 0; i < 12; i++) {\n\t            // make the regex if we don't have it already\n\t            mom = create_utc__createUTC([2000, i]);\n\t            if (strict && !this._longMonthsParse[i]) {\n\t                this._longMonthsParse[i] = new RegExp('^' + this.months(mom, '').replace('.', '') + '$', 'i');\n\t                this._shortMonthsParse[i] = new RegExp('^' + this.monthsShort(mom, '').replace('.', '') + '$', 'i');\n\t            }\n\t            if (!strict && !this._monthsParse[i]) {\n\t                regex = '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, '');\n\t                this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i');\n\t            }\n\t            // test the regex\n\t            if (strict && format === 'MMMM' && this._longMonthsParse[i].test(monthName)) {\n\t                return i;\n\t            } else if (strict && format === 'MMM' && this._shortMonthsParse[i].test(monthName)) {\n\t                return i;\n\t            } else if (!strict && this._monthsParse[i].test(monthName)) {\n\t                return i;\n\t            }\n\t        }\n\t    }\n\n\t    // MOMENTS\n\n\t    function setMonth (mom, value) {\n\t        var dayOfMonth;\n\n\t        if (!mom.isValid()) {\n\t            // No op\n\t            return mom;\n\t        }\n\n\t        // TODO: Move this out of here!\n\t        if (typeof value === 'string') {\n\t            value = mom.localeData().monthsParse(value);\n\t            // TODO: Another silent failure?\n\t            if (typeof value !== 'number') {\n\t                return mom;\n\t            }\n\t        }\n\n\t        dayOfMonth = Math.min(mom.date(), daysInMonth(mom.year(), value));\n\t        mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth);\n\t        return mom;\n\t    }\n\n\t    function getSetMonth (value) {\n\t        if (value != null) {\n\t            setMonth(this, value);\n\t            utils_hooks__hooks.updateOffset(this, true);\n\t            return this;\n\t        } else {\n\t            return get_set__get(this, 'Month');\n\t        }\n\t    }\n\n\t    function getDaysInMonth () {\n\t        return daysInMonth(this.year(), this.month());\n\t    }\n\n\t    var defaultMonthsShortRegex = matchWord;\n\t    function monthsShortRegex (isStrict) {\n\t        if (this._monthsParseExact) {\n\t            if (!hasOwnProp(this, '_monthsRegex')) {\n\t                computeMonthsParse.call(this);\n\t            }\n\t            if (isStrict) {\n\t                return this._monthsShortStrictRegex;\n\t            } else {\n\t                return this._monthsShortRegex;\n\t            }\n\t        } else {\n\t            return this._monthsShortStrictRegex && isStrict ?\n\t                this._monthsShortStrictRegex : this._monthsShortRegex;\n\t        }\n\t    }\n\n\t    var defaultMonthsRegex = matchWord;\n\t    function monthsRegex (isStrict) {\n\t        if (this._monthsParseExact) {\n\t            if (!hasOwnProp(this, '_monthsRegex')) {\n\t                computeMonthsParse.call(this);\n\t            }\n\t            if (isStrict) {\n\t                return this._monthsStrictRegex;\n\t            } else {\n\t                return this._monthsRegex;\n\t            }\n\t        } else {\n\t            return this._monthsStrictRegex && isStrict ?\n\t                this._monthsStrictRegex : this._monthsRegex;\n\t        }\n\t    }\n\n\t    function computeMonthsParse () {\n\t        function cmpLenRev(a, b) {\n\t            return b.length - a.length;\n\t        }\n\n\t        var shortPieces = [], longPieces = [], mixedPieces = [],\n\t            i, mom;\n\t        for (i = 0; i < 12; i++) {\n\t            // make the regex if we don't have it already\n\t            mom = create_utc__createUTC([2000, i]);\n\t            shortPieces.push(this.monthsShort(mom, ''));\n\t            longPieces.push(this.months(mom, ''));\n\t            mixedPieces.push(this.months(mom, ''));\n\t            mixedPieces.push(this.monthsShort(mom, ''));\n\t        }\n\t        // Sorting makes sure if one month (or abbr) is a prefix of another it\n\t        // will match the longer piece.\n\t        shortPieces.sort(cmpLenRev);\n\t        longPieces.sort(cmpLenRev);\n\t        mixedPieces.sort(cmpLenRev);\n\t        for (i = 0; i < 12; i++) {\n\t            shortPieces[i] = regexEscape(shortPieces[i]);\n\t            longPieces[i] = regexEscape(longPieces[i]);\n\t            mixedPieces[i] = regexEscape(mixedPieces[i]);\n\t        }\n\n\t        this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');\n\t        this._monthsShortRegex = this._monthsRegex;\n\t        this._monthsStrictRegex = new RegExp('^(' + longPieces.join('|') + ')$', 'i');\n\t        this._monthsShortStrictRegex = new RegExp('^(' + shortPieces.join('|') + ')$', 'i');\n\t    }\n\n\t    function checkOverflow (m) {\n\t        var overflow;\n\t        var a = m._a;\n\n\t        if (a && getParsingFlags(m).overflow === -2) {\n\t            overflow =\n\t                a[MONTH]       < 0 || a[MONTH]       > 11  ? MONTH :\n\t                a[DATE]        < 1 || a[DATE]        > daysInMonth(a[YEAR], a[MONTH]) ? DATE :\n\t                a[HOUR]        < 0 || a[HOUR]        > 24 || (a[HOUR] === 24 && (a[MINUTE] !== 0 || a[SECOND] !== 0 || a[MILLISECOND] !== 0)) ? HOUR :\n\t                a[MINUTE]      < 0 || a[MINUTE]      > 59  ? MINUTE :\n\t                a[SECOND]      < 0 || a[SECOND]      > 59  ? SECOND :\n\t                a[MILLISECOND] < 0 || a[MILLISECOND] > 999 ? MILLISECOND :\n\t                -1;\n\n\t            if (getParsingFlags(m)._overflowDayOfYear && (overflow < YEAR || overflow > DATE)) {\n\t                overflow = DATE;\n\t            }\n\t            if (getParsingFlags(m)._overflowWeeks && overflow === -1) {\n\t                overflow = WEEK;\n\t            }\n\t            if (getParsingFlags(m)._overflowWeekday && overflow === -1) {\n\t                overflow = WEEKDAY;\n\t            }\n\n\t            getParsingFlags(m).overflow = overflow;\n\t        }\n\n\t        return m;\n\t    }\n\n\t    function warn(msg) {\n\t        if (utils_hooks__hooks.suppressDeprecationWarnings === false &&\n\t                (typeof console !==  'undefined') && console.warn) {\n\t            console.warn('Deprecation warning: ' + msg);\n\t        }\n\t    }\n\n\t    function deprecate(msg, fn) {\n\t        var firstTime = true;\n\n\t        return extend(function () {\n\t            if (firstTime) {\n\t                warn(msg + '\\nArguments: ' + Array.prototype.slice.call(arguments).join(', ') + '\\n' + (new Error()).stack);\n\t                firstTime = false;\n\t            }\n\t            return fn.apply(this, arguments);\n\t        }, fn);\n\t    }\n\n\t    var deprecations = {};\n\n\t    function deprecateSimple(name, msg) {\n\t        if (!deprecations[name]) {\n\t            warn(msg);\n\t            deprecations[name] = true;\n\t        }\n\t    }\n\n\t    utils_hooks__hooks.suppressDeprecationWarnings = false;\n\n\t    // iso 8601 regex\n\t    // 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00)\n\t    var extendedIsoRegex = /^\\s*((?:[+-]\\d{6}|\\d{4})-(?:\\d\\d-\\d\\d|W\\d\\d-\\d|W\\d\\d|\\d\\d\\d|\\d\\d))(?:(T| )(\\d\\d(?::\\d\\d(?::\\d\\d(?:[.,]\\d+)?)?)?)([\\+\\-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?/;\n\t    var basicIsoRegex = /^\\s*((?:[+-]\\d{6}|\\d{4})(?:\\d\\d\\d\\d|W\\d\\d\\d|W\\d\\d|\\d\\d\\d|\\d\\d))(?:(T| )(\\d\\d(?:\\d\\d(?:\\d\\d(?:[.,]\\d+)?)?)?)([\\+\\-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?/;\n\n\t    var tzRegex = /Z|[+-]\\d\\d(?::?\\d\\d)?/;\n\n\t    var isoDates = [\n\t        ['YYYYYY-MM-DD', /[+-]\\d{6}-\\d\\d-\\d\\d/],\n\t        ['YYYY-MM-DD', /\\d{4}-\\d\\d-\\d\\d/],\n\t        ['GGGG-[W]WW-E', /\\d{4}-W\\d\\d-\\d/],\n\t        ['GGGG-[W]WW', /\\d{4}-W\\d\\d/, false],\n\t        ['YYYY-DDD', /\\d{4}-\\d{3}/],\n\t        ['YYYY-MM', /\\d{4}-\\d\\d/, false],\n\t        ['YYYYYYMMDD', /[+-]\\d{10}/],\n\t        ['YYYYMMDD', /\\d{8}/],\n\t        // YYYYMM is NOT allowed by the standard\n\t        ['GGGG[W]WWE', /\\d{4}W\\d{3}/],\n\t        ['GGGG[W]WW', /\\d{4}W\\d{2}/, false],\n\t        ['YYYYDDD', /\\d{7}/]\n\t    ];\n\n\t    // iso time formats and regexes\n\t    var isoTimes = [\n\t        ['HH:mm:ss.SSSS', /\\d\\d:\\d\\d:\\d\\d\\.\\d+/],\n\t        ['HH:mm:ss,SSSS', /\\d\\d:\\d\\d:\\d\\d,\\d+/],\n\t        ['HH:mm:ss', /\\d\\d:\\d\\d:\\d\\d/],\n\t        ['HH:mm', /\\d\\d:\\d\\d/],\n\t        ['HHmmss.SSSS', /\\d\\d\\d\\d\\d\\d\\.\\d+/],\n\t        ['HHmmss,SSSS', /\\d\\d\\d\\d\\d\\d,\\d+/],\n\t        ['HHmmss', /\\d\\d\\d\\d\\d\\d/],\n\t        ['HHmm', /\\d\\d\\d\\d/],\n\t        ['HH', /\\d\\d/]\n\t    ];\n\n\t    var aspNetJsonRegex = /^\\/?Date\\((\\-?\\d+)/i;\n\n\t    // date from iso format\n\t    function configFromISO(config) {\n\t        var i, l,\n\t            string = config._i,\n\t            match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string),\n\t            allowTime, dateFormat, timeFormat, tzFormat;\n\n\t        if (match) {\n\t            getParsingFlags(config).iso = true;\n\n\t            for (i = 0, l = isoDates.length; i < l; i++) {\n\t                if (isoDates[i][1].exec(match[1])) {\n\t                    dateFormat = isoDates[i][0];\n\t                    allowTime = isoDates[i][2] !== false;\n\t                    break;\n\t                }\n\t            }\n\t            if (dateFormat == null) {\n\t                config._isValid = false;\n\t                return;\n\t            }\n\t            if (match[3]) {\n\t                for (i = 0, l = isoTimes.length; i < l; i++) {\n\t                    if (isoTimes[i][1].exec(match[3])) {\n\t                        // match[2] should be 'T' or space\n\t                        timeFormat = (match[2] || ' ') + isoTimes[i][0];\n\t                        break;\n\t                    }\n\t                }\n\t                if (timeFormat == null) {\n\t                    config._isValid = false;\n\t                    return;\n\t                }\n\t            }\n\t            if (!allowTime && timeFormat != null) {\n\t                config._isValid = false;\n\t                return;\n\t            }\n\t            if (match[4]) {\n\t                if (tzRegex.exec(match[4])) {\n\t                    tzFormat = 'Z';\n\t                } else {\n\t                    config._isValid = false;\n\t                    return;\n\t                }\n\t            }\n\t            config._f = dateFormat + (timeFormat || '') + (tzFormat || '');\n\t            configFromStringAndFormat(config);\n\t        } else {\n\t            config._isValid = false;\n\t        }\n\t    }\n\n\t    // date from iso format or fallback\n\t    function configFromString(config) {\n\t        var matched = aspNetJsonRegex.exec(config._i);\n\n\t        if (matched !== null) {\n\t            config._d = new Date(+matched[1]);\n\t            return;\n\t        }\n\n\t        configFromISO(config);\n\t        if (config._isValid === false) {\n\t            delete config._isValid;\n\t            utils_hooks__hooks.createFromInputFallback(config);\n\t        }\n\t    }\n\n\t    utils_hooks__hooks.createFromInputFallback = deprecate(\n\t        'moment construction falls back to js Date. This is ' +\n\t        'discouraged and will be removed in upcoming major ' +\n\t        'release. Please refer to ' +\n\t        'https://github.com/moment/moment/issues/1407 for more info.',\n\t        function (config) {\n\t            config._d = new Date(config._i + (config._useUTC ? ' UTC' : ''));\n\t        }\n\t    );\n\n\t    function createDate (y, m, d, h, M, s, ms) {\n\t        //can't just apply() to create a date:\n\t        //http://stackoverflow.com/questions/181348/instantiating-a-javascript-object-by-calling-prototype-constructor-apply\n\t        var date = new Date(y, m, d, h, M, s, ms);\n\n\t        //the date constructor remaps years 0-99 to 1900-1999\n\t        if (y < 100 && y >= 0 && isFinite(date.getFullYear())) {\n\t            date.setFullYear(y);\n\t        }\n\t        return date;\n\t    }\n\n\t    function createUTCDate (y) {\n\t        var date = new Date(Date.UTC.apply(null, arguments));\n\n\t        //the Date.UTC function remaps years 0-99 to 1900-1999\n\t        if (y < 100 && y >= 0 && isFinite(date.getUTCFullYear())) {\n\t            date.setUTCFullYear(y);\n\t        }\n\t        return date;\n\t    }\n\n\t    // FORMATTING\n\n\t    addFormatToken('Y', 0, 0, function () {\n\t        var y = this.year();\n\t        return y <= 9999 ? '' + y : '+' + y;\n\t    });\n\n\t    addFormatToken(0, ['YY', 2], 0, function () {\n\t        return this.year() % 100;\n\t    });\n\n\t    addFormatToken(0, ['YYYY',   4],       0, 'year');\n\t    addFormatToken(0, ['YYYYY',  5],       0, 'year');\n\t    addFormatToken(0, ['YYYYYY', 6, true], 0, 'year');\n\n\t    // ALIASES\n\n\t    addUnitAlias('year', 'y');\n\n\t    // PARSING\n\n\t    addRegexToken('Y',      matchSigned);\n\t    addRegexToken('YY',     match1to2, match2);\n\t    addRegexToken('YYYY',   match1to4, match4);\n\t    addRegexToken('YYYYY',  match1to6, match6);\n\t    addRegexToken('YYYYYY', match1to6, match6);\n\n\t    addParseToken(['YYYYY', 'YYYYYY'], YEAR);\n\t    addParseToken('YYYY', function (input, array) {\n\t        array[YEAR] = input.length === 2 ? utils_hooks__hooks.parseTwoDigitYear(input) : toInt(input);\n\t    });\n\t    addParseToken('YY', function (input, array) {\n\t        array[YEAR] = utils_hooks__hooks.parseTwoDigitYear(input);\n\t    });\n\t    addParseToken('Y', function (input, array) {\n\t        array[YEAR] = parseInt(input, 10);\n\t    });\n\n\t    // HELPERS\n\n\t    function daysInYear(year) {\n\t        return isLeapYear(year) ? 366 : 365;\n\t    }\n\n\t    function isLeapYear(year) {\n\t        return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;\n\t    }\n\n\t    // HOOKS\n\n\t    utils_hooks__hooks.parseTwoDigitYear = function (input) {\n\t        return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);\n\t    };\n\n\t    // MOMENTS\n\n\t    var getSetYear = makeGetSet('FullYear', false);\n\n\t    function getIsLeapYear () {\n\t        return isLeapYear(this.year());\n\t    }\n\n\t    // start-of-first-week - start-of-year\n\t    function firstWeekOffset(year, dow, doy) {\n\t        var // first-week day -- which january is always in the first week (4 for iso, 1 for other)\n\t            fwd = 7 + dow - doy,\n\t            // first-week day local weekday -- which local weekday is fwd\n\t            fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7;\n\n\t        return -fwdlw + fwd - 1;\n\t    }\n\n\t    //http://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday\n\t    function dayOfYearFromWeeks(year, week, weekday, dow, doy) {\n\t        var localWeekday = (7 + weekday - dow) % 7,\n\t            weekOffset = firstWeekOffset(year, dow, doy),\n\t            dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset,\n\t            resYear, resDayOfYear;\n\n\t        if (dayOfYear <= 0) {\n\t            resYear = year - 1;\n\t            resDayOfYear = daysInYear(resYear) + dayOfYear;\n\t        } else if (dayOfYear > daysInYear(year)) {\n\t            resYear = year + 1;\n\t            resDayOfYear = dayOfYear - daysInYear(year);\n\t        } else {\n\t            resYear = year;\n\t            resDayOfYear = dayOfYear;\n\t        }\n\n\t        return {\n\t            year: resYear,\n\t            dayOfYear: resDayOfYear\n\t        };\n\t    }\n\n\t    function weekOfYear(mom, dow, doy) {\n\t        var weekOffset = firstWeekOffset(mom.year(), dow, doy),\n\t            week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1,\n\t            resWeek, resYear;\n\n\t        if (week < 1) {\n\t            resYear = mom.year() - 1;\n\t            resWeek = week + weeksInYear(resYear, dow, doy);\n\t        } else if (week > weeksInYear(mom.year(), dow, doy)) {\n\t            resWeek = week - weeksInYear(mom.year(), dow, doy);\n\t            resYear = mom.year() + 1;\n\t        } else {\n\t            resYear = mom.year();\n\t            resWeek = week;\n\t        }\n\n\t        return {\n\t            week: resWeek,\n\t            year: resYear\n\t        };\n\t    }\n\n\t    function weeksInYear(year, dow, doy) {\n\t        var weekOffset = firstWeekOffset(year, dow, doy),\n\t            weekOffsetNext = firstWeekOffset(year + 1, dow, doy);\n\t        return (daysInYear(year) - weekOffset + weekOffsetNext) / 7;\n\t    }\n\n\t    // Pick the first defined of two or three arguments.\n\t    function defaults(a, b, c) {\n\t        if (a != null) {\n\t            return a;\n\t        }\n\t        if (b != null) {\n\t            return b;\n\t        }\n\t        return c;\n\t    }\n\n\t    function currentDateArray(config) {\n\t        // hooks is actually the exported moment object\n\t        var nowValue = new Date(utils_hooks__hooks.now());\n\t        if (config._useUTC) {\n\t            return [nowValue.getUTCFullYear(), nowValue.getUTCMonth(), nowValue.getUTCDate()];\n\t        }\n\t        return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()];\n\t    }\n\n\t    // convert an array to a date.\n\t    // the array should mirror the parameters below\n\t    // note: all values past the year are optional and will default to the lowest possible value.\n\t    // [year, month, day , hour, minute, second, millisecond]\n\t    function configFromArray (config) {\n\t        var i, date, input = [], currentDate, yearToUse;\n\n\t        if (config._d) {\n\t            return;\n\t        }\n\n\t        currentDate = currentDateArray(config);\n\n\t        //compute day of the year from weeks and weekdays\n\t        if (config._w && config._a[DATE] == null && config._a[MONTH] == null) {\n\t            dayOfYearFromWeekInfo(config);\n\t        }\n\n\t        //if the day of the year is set, figure out what it is\n\t        if (config._dayOfYear) {\n\t            yearToUse = defaults(config._a[YEAR], currentDate[YEAR]);\n\n\t            if (config._dayOfYear > daysInYear(yearToUse)) {\n\t                getParsingFlags(config)._overflowDayOfYear = true;\n\t            }\n\n\t            date = createUTCDate(yearToUse, 0, config._dayOfYear);\n\t            config._a[MONTH] = date.getUTCMonth();\n\t            config._a[DATE] = date.getUTCDate();\n\t        }\n\n\t        // Default to current date.\n\t        // * if no year, month, day of month are given, default to today\n\t        // * if day of month is given, default month and year\n\t        // * if month is given, default only year\n\t        // * if year is given, don't default anything\n\t        for (i = 0; i < 3 && config._a[i] == null; ++i) {\n\t            config._a[i] = input[i] = currentDate[i];\n\t        }\n\n\t        // Zero out whatever was not defaulted, including time\n\t        for (; i < 7; i++) {\n\t            config._a[i] = input[i] = (config._a[i] == null) ? (i === 2 ? 1 : 0) : config._a[i];\n\t        }\n\n\t        // Check for 24:00:00.000\n\t        if (config._a[HOUR] === 24 &&\n\t                config._a[MINUTE] === 0 &&\n\t                config._a[SECOND] === 0 &&\n\t                config._a[MILLISECOND] === 0) {\n\t            config._nextDay = true;\n\t            config._a[HOUR] = 0;\n\t        }\n\n\t        config._d = (config._useUTC ? createUTCDate : createDate).apply(null, input);\n\t        // Apply timezone offset from input. The actual utcOffset can be changed\n\t        // with parseZone.\n\t        if (config._tzm != null) {\n\t            config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);\n\t        }\n\n\t        if (config._nextDay) {\n\t            config._a[HOUR] = 24;\n\t        }\n\t    }\n\n\t    function dayOfYearFromWeekInfo(config) {\n\t        var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow;\n\n\t        w = config._w;\n\t        if (w.GG != null || w.W != null || w.E != null) {\n\t            dow = 1;\n\t            doy = 4;\n\n\t            // TODO: We need to take the current isoWeekYear, but that depends on\n\t            // how we interpret now (local, utc, fixed offset). So create\n\t            // a now version of current config (take local/utc/offset flags, and\n\t            // create now).\n\t            weekYear = defaults(w.GG, config._a[YEAR], weekOfYear(local__createLocal(), 1, 4).year);\n\t            week = defaults(w.W, 1);\n\t            weekday = defaults(w.E, 1);\n\t            if (weekday < 1 || weekday > 7) {\n\t                weekdayOverflow = true;\n\t            }\n\t        } else {\n\t            dow = config._locale._week.dow;\n\t            doy = config._locale._week.doy;\n\n\t            weekYear = defaults(w.gg, config._a[YEAR], weekOfYear(local__createLocal(), dow, doy).year);\n\t            week = defaults(w.w, 1);\n\n\t            if (w.d != null) {\n\t                // weekday -- low day numbers are considered next week\n\t                weekday = w.d;\n\t                if (weekday < 0 || weekday > 6) {\n\t                    weekdayOverflow = true;\n\t                }\n\t            } else if (w.e != null) {\n\t                // local weekday -- counting starts from begining of week\n\t                weekday = w.e + dow;\n\t                if (w.e < 0 || w.e > 6) {\n\t                    weekdayOverflow = true;\n\t                }\n\t            } else {\n\t                // default to begining of week\n\t                weekday = dow;\n\t            }\n\t        }\n\t        if (week < 1 || week > weeksInYear(weekYear, dow, doy)) {\n\t            getParsingFlags(config)._overflowWeeks = true;\n\t        } else if (weekdayOverflow != null) {\n\t            getParsingFlags(config)._overflowWeekday = true;\n\t        } else {\n\t            temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy);\n\t            config._a[YEAR] = temp.year;\n\t            config._dayOfYear = temp.dayOfYear;\n\t        }\n\t    }\n\n\t    // constant that refers to the ISO standard\n\t    utils_hooks__hooks.ISO_8601 = function () {};\n\n\t    // date from string and format string\n\t    function configFromStringAndFormat(config) {\n\t        // TODO: Move this to another part of the creation flow to prevent circular deps\n\t        if (config._f === utils_hooks__hooks.ISO_8601) {\n\t            configFromISO(config);\n\t            return;\n\t        }\n\n\t        config._a = [];\n\t        getParsingFlags(config).empty = true;\n\n\t        // This array is used to make a Date, either with `new Date` or `Date.UTC`\n\t        var string = '' + config._i,\n\t            i, parsedInput, tokens, token, skipped,\n\t            stringLength = string.length,\n\t            totalParsedInputLength = 0;\n\n\t        tokens = expandFormat(config._f, config._locale).match(formattingTokens) || [];\n\n\t        for (i = 0; i < tokens.length; i++) {\n\t            token = tokens[i];\n\t            parsedInput = (string.match(getParseRegexForToken(token, config)) || [])[0];\n\t            // console.log('token', token, 'parsedInput', parsedInput,\n\t            //         'regex', getParseRegexForToken(token, config));\n\t            if (parsedInput) {\n\t                skipped = string.substr(0, string.indexOf(parsedInput));\n\t                if (skipped.length > 0) {\n\t                    getParsingFlags(config).unusedInput.push(skipped);\n\t                }\n\t                string = string.slice(string.indexOf(parsedInput) + parsedInput.length);\n\t                totalParsedInputLength += parsedInput.length;\n\t            }\n\t            // don't parse if it's not a known token\n\t            if (formatTokenFunctions[token]) {\n\t                if (parsedInput) {\n\t                    getParsingFlags(config).empty = false;\n\t                }\n\t                else {\n\t                    getParsingFlags(config).unusedTokens.push(token);\n\t                }\n\t                addTimeToArrayFromToken(token, parsedInput, config);\n\t            }\n\t            else if (config._strict && !parsedInput) {\n\t                getParsingFlags(config).unusedTokens.push(token);\n\t            }\n\t        }\n\n\t        // add remaining unparsed input length to the string\n\t        getParsingFlags(config).charsLeftOver = stringLength - totalParsedInputLength;\n\t        if (string.length > 0) {\n\t            getParsingFlags(config).unusedInput.push(string);\n\t        }\n\n\t        // clear _12h flag if hour is <= 12\n\t        if (getParsingFlags(config).bigHour === true &&\n\t                config._a[HOUR] <= 12 &&\n\t                config._a[HOUR] > 0) {\n\t            getParsingFlags(config).bigHour = undefined;\n\t        }\n\t        // handle meridiem\n\t        config._a[HOUR] = meridiemFixWrap(config._locale, config._a[HOUR], config._meridiem);\n\n\t        configFromArray(config);\n\t        checkOverflow(config);\n\t    }\n\n\n\t    function meridiemFixWrap (locale, hour, meridiem) {\n\t        var isPm;\n\n\t        if (meridiem == null) {\n\t            // nothing to do\n\t            return hour;\n\t        }\n\t        if (locale.meridiemHour != null) {\n\t            return locale.meridiemHour(hour, meridiem);\n\t        } else if (locale.isPM != null) {\n\t            // Fallback\n\t            isPm = locale.isPM(meridiem);\n\t            if (isPm && hour < 12) {\n\t                hour += 12;\n\t            }\n\t            if (!isPm && hour === 12) {\n\t                hour = 0;\n\t            }\n\t            return hour;\n\t        } else {\n\t            // this is not supposed to happen\n\t            return hour;\n\t        }\n\t    }\n\n\t    // date from string and array of format strings\n\t    function configFromStringAndArray(config) {\n\t        var tempConfig,\n\t            bestMoment,\n\n\t            scoreToBeat,\n\t            i,\n\t            currentScore;\n\n\t        if (config._f.length === 0) {\n\t            getParsingFlags(config).invalidFormat = true;\n\t            config._d = new Date(NaN);\n\t            return;\n\t        }\n\n\t        for (i = 0; i < config._f.length; i++) {\n\t            currentScore = 0;\n\t            tempConfig = copyConfig({}, config);\n\t            if (config._useUTC != null) {\n\t                tempConfig._useUTC = config._useUTC;\n\t            }\n\t            tempConfig._f = config._f[i];\n\t            configFromStringAndFormat(tempConfig);\n\n\t            if (!valid__isValid(tempConfig)) {\n\t                continue;\n\t            }\n\n\t            // if there is any input that was not parsed add a penalty for that format\n\t            currentScore += getParsingFlags(tempConfig).charsLeftOver;\n\n\t            //or tokens\n\t            currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10;\n\n\t            getParsingFlags(tempConfig).score = currentScore;\n\n\t            if (scoreToBeat == null || currentScore < scoreToBeat) {\n\t                scoreToBeat = currentScore;\n\t                bestMoment = tempConfig;\n\t            }\n\t        }\n\n\t        extend(config, bestMoment || tempConfig);\n\t    }\n\n\t    function configFromObject(config) {\n\t        if (config._d) {\n\t            return;\n\t        }\n\n\t        var i = normalizeObjectUnits(config._i);\n\t        config._a = map([i.year, i.month, i.day || i.date, i.hour, i.minute, i.second, i.millisecond], function (obj) {\n\t            return obj && parseInt(obj, 10);\n\t        });\n\n\t        configFromArray(config);\n\t    }\n\n\t    function createFromConfig (config) {\n\t        var res = new Moment(checkOverflow(prepareConfig(config)));\n\t        if (res._nextDay) {\n\t            // Adding is smart enough around DST\n\t            res.add(1, 'd');\n\t            res._nextDay = undefined;\n\t        }\n\n\t        return res;\n\t    }\n\n\t    function prepareConfig (config) {\n\t        var input = config._i,\n\t            format = config._f;\n\n\t        config._locale = config._locale || locale_locales__getLocale(config._l);\n\n\t        if (input === null || (format === undefined && input === '')) {\n\t            return valid__createInvalid({nullInput: true});\n\t        }\n\n\t        if (typeof input === 'string') {\n\t            config._i = input = config._locale.preparse(input);\n\t        }\n\n\t        if (isMoment(input)) {\n\t            return new Moment(checkOverflow(input));\n\t        } else if (isArray(format)) {\n\t            configFromStringAndArray(config);\n\t        } else if (format) {\n\t            configFromStringAndFormat(config);\n\t        } else if (isDate(input)) {\n\t            config._d = input;\n\t        } else {\n\t            configFromInput(config);\n\t        }\n\n\t        if (!valid__isValid(config)) {\n\t            config._d = null;\n\t        }\n\n\t        return config;\n\t    }\n\n\t    function configFromInput(config) {\n\t        var input = config._i;\n\t        if (input === undefined) {\n\t            config._d = new Date(utils_hooks__hooks.now());\n\t        } else if (isDate(input)) {\n\t            config._d = new Date(+input);\n\t        } else if (typeof input === 'string') {\n\t            configFromString(config);\n\t        } else if (isArray(input)) {\n\t            config._a = map(input.slice(0), function (obj) {\n\t                return parseInt(obj, 10);\n\t            });\n\t            configFromArray(config);\n\t        } else if (typeof(input) === 'object') {\n\t            configFromObject(config);\n\t        } else if (typeof(input) === 'number') {\n\t            // from milliseconds\n\t            config._d = new Date(input);\n\t        } else {\n\t            utils_hooks__hooks.createFromInputFallback(config);\n\t        }\n\t    }\n\n\t    function createLocalOrUTC (input, format, locale, strict, isUTC) {\n\t        var c = {};\n\n\t        if (typeof(locale) === 'boolean') {\n\t            strict = locale;\n\t            locale = undefined;\n\t        }\n\t        // object construction must be done this way.\n\t        // https://github.com/moment/moment/issues/1423\n\t        c._isAMomentObject = true;\n\t        c._useUTC = c._isUTC = isUTC;\n\t        c._l = locale;\n\t        c._i = input;\n\t        c._f = format;\n\t        c._strict = strict;\n\n\t        return createFromConfig(c);\n\t    }\n\n\t    function local__createLocal (input, format, locale, strict) {\n\t        return createLocalOrUTC(input, format, locale, strict, false);\n\t    }\n\n\t    var prototypeMin = deprecate(\n\t         'moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548',\n\t         function () {\n\t             var other = local__createLocal.apply(null, arguments);\n\t             if (this.isValid() && other.isValid()) {\n\t                 return other < this ? this : other;\n\t             } else {\n\t                 return valid__createInvalid();\n\t             }\n\t         }\n\t     );\n\n\t    var prototypeMax = deprecate(\n\t        'moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548',\n\t        function () {\n\t            var other = local__createLocal.apply(null, arguments);\n\t            if (this.isValid() && other.isValid()) {\n\t                return other > this ? this : other;\n\t            } else {\n\t                return valid__createInvalid();\n\t            }\n\t        }\n\t    );\n\n\t    // Pick a moment m from moments so that m[fn](other) is true for all\n\t    // other. This relies on the function fn to be transitive.\n\t    //\n\t    // moments should either be an array of moment objects or an array, whose\n\t    // first element is an array of moment objects.\n\t    function pickBy(fn, moments) {\n\t        var res, i;\n\t        if (moments.length === 1 && isArray(moments[0])) {\n\t            moments = moments[0];\n\t        }\n\t        if (!moments.length) {\n\t            return local__createLocal();\n\t        }\n\t        res = moments[0];\n\t        for (i = 1; i < moments.length; ++i) {\n\t            if (!moments[i].isValid() || moments[i][fn](res)) {\n\t                res = moments[i];\n\t            }\n\t        }\n\t        return res;\n\t    }\n\n\t    // TODO: Use [].sort instead?\n\t    function min () {\n\t        var args = [].slice.call(arguments, 0);\n\n\t        return pickBy('isBefore', args);\n\t    }\n\n\t    function max () {\n\t        var args = [].slice.call(arguments, 0);\n\n\t        return pickBy('isAfter', args);\n\t    }\n\n\t    var now = function () {\n\t        return Date.now ? Date.now() : +(new Date());\n\t    };\n\n\t    function Duration (duration) {\n\t        var normalizedInput = normalizeObjectUnits(duration),\n\t            years = normalizedInput.year || 0,\n\t            quarters = normalizedInput.quarter || 0,\n\t            months = normalizedInput.month || 0,\n\t            weeks = normalizedInput.week || 0,\n\t            days = normalizedInput.day || 0,\n\t            hours = normalizedInput.hour || 0,\n\t            minutes = normalizedInput.minute || 0,\n\t            seconds = normalizedInput.second || 0,\n\t            milliseconds = normalizedInput.millisecond || 0;\n\n\t        // representation for dateAddRemove\n\t        this._milliseconds = +milliseconds +\n\t            seconds * 1e3 + // 1000\n\t            minutes * 6e4 + // 1000 * 60\n\t            hours * 36e5; // 1000 * 60 * 60\n\t        // Because of dateAddRemove treats 24 hours as different from a\n\t        // day when working around DST, we need to store them separately\n\t        this._days = +days +\n\t            weeks * 7;\n\t        // It is impossible translate months into days without knowing\n\t        // which months you are are talking about, so we have to store\n\t        // it separately.\n\t        this._months = +months +\n\t            quarters * 3 +\n\t            years * 12;\n\n\t        this._data = {};\n\n\t        this._locale = locale_locales__getLocale();\n\n\t        this._bubble();\n\t    }\n\n\t    function isDuration (obj) {\n\t        return obj instanceof Duration;\n\t    }\n\n\t    // FORMATTING\n\n\t    function offset (token, separator) {\n\t        addFormatToken(token, 0, 0, function () {\n\t            var offset = this.utcOffset();\n\t            var sign = '+';\n\t            if (offset < 0) {\n\t                offset = -offset;\n\t                sign = '-';\n\t            }\n\t            return sign + zeroFill(~~(offset / 60), 2) + separator + zeroFill(~~(offset) % 60, 2);\n\t        });\n\t    }\n\n\t    offset('Z', ':');\n\t    offset('ZZ', '');\n\n\t    // PARSING\n\n\t    addRegexToken('Z',  matchShortOffset);\n\t    addRegexToken('ZZ', matchShortOffset);\n\t    addParseToken(['Z', 'ZZ'], function (input, array, config) {\n\t        config._useUTC = true;\n\t        config._tzm = offsetFromString(matchShortOffset, input);\n\t    });\n\n\t    // HELPERS\n\n\t    // timezone chunker\n\t    // '+10:00' > ['10',  '00']\n\t    // '-1530'  > ['-15', '30']\n\t    var chunkOffset = /([\\+\\-]|\\d\\d)/gi;\n\n\t    function offsetFromString(matcher, string) {\n\t        var matches = ((string || '').match(matcher) || []);\n\t        var chunk   = matches[matches.length - 1] || [];\n\t        var parts   = (chunk + '').match(chunkOffset) || ['-', 0, 0];\n\t        var minutes = +(parts[1] * 60) + toInt(parts[2]);\n\n\t        return parts[0] === '+' ? minutes : -minutes;\n\t    }\n\n\t    // Return a moment from input, that is local/utc/zone equivalent to model.\n\t    function cloneWithOffset(input, model) {\n\t        var res, diff;\n\t        if (model._isUTC) {\n\t            res = model.clone();\n\t            diff = (isMoment(input) || isDate(input) ? +input : +local__createLocal(input)) - (+res);\n\t            // Use low-level api, because this fn is low-level api.\n\t            res._d.setTime(+res._d + diff);\n\t            utils_hooks__hooks.updateOffset(res, false);\n\t            return res;\n\t        } else {\n\t            return local__createLocal(input).local();\n\t        }\n\t    }\n\n\t    function getDateOffset (m) {\n\t        // On Firefox.24 Date#getTimezoneOffset returns a floating point.\n\t        // https://github.com/moment/moment/pull/1871\n\t        return -Math.round(m._d.getTimezoneOffset() / 15) * 15;\n\t    }\n\n\t    // HOOKS\n\n\t    // This function will be called whenever a moment is mutated.\n\t    // It is intended to keep the offset in sync with the timezone.\n\t    utils_hooks__hooks.updateOffset = function () {};\n\n\t    // MOMENTS\n\n\t    // keepLocalTime = true means only change the timezone, without\n\t    // affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->\n\t    // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset\n\t    // +0200, so we adjust the time as needed, to be valid.\n\t    //\n\t    // Keeping the time actually adds/subtracts (one hour)\n\t    // from the actual represented time. That is why we call updateOffset\n\t    // a second time. In case it wants us to change the offset again\n\t    // _changeInProgress == true case, then we have to adjust, because\n\t    // there is no such time in the given timezone.\n\t    function getSetOffset (input, keepLocalTime) {\n\t        var offset = this._offset || 0,\n\t            localAdjust;\n\t        if (!this.isValid()) {\n\t            return input != null ? this : NaN;\n\t        }\n\t        if (input != null) {\n\t            if (typeof input === 'string') {\n\t                input = offsetFromString(matchShortOffset, input);\n\t            } else if (Math.abs(input) < 16) {\n\t                input = input * 60;\n\t            }\n\t            if (!this._isUTC && keepLocalTime) {\n\t                localAdjust = getDateOffset(this);\n\t            }\n\t            this._offset = input;\n\t            this._isUTC = true;\n\t            if (localAdjust != null) {\n\t                this.add(localAdjust, 'm');\n\t            }\n\t            if (offset !== input) {\n\t                if (!keepLocalTime || this._changeInProgress) {\n\t                    add_subtract__addSubtract(this, create__createDuration(input - offset, 'm'), 1, false);\n\t                } else if (!this._changeInProgress) {\n\t                    this._changeInProgress = true;\n\t                    utils_hooks__hooks.updateOffset(this, true);\n\t                    this._changeInProgress = null;\n\t                }\n\t            }\n\t            return this;\n\t        } else {\n\t            return this._isUTC ? offset : getDateOffset(this);\n\t        }\n\t    }\n\n\t    function getSetZone (input, keepLocalTime) {\n\t        if (input != null) {\n\t            if (typeof input !== 'string') {\n\t                input = -input;\n\t            }\n\n\t            this.utcOffset(input, keepLocalTime);\n\n\t            return this;\n\t        } else {\n\t            return -this.utcOffset();\n\t        }\n\t    }\n\n\t    function setOffsetToUTC (keepLocalTime) {\n\t        return this.utcOffset(0, keepLocalTime);\n\t    }\n\n\t    function setOffsetToLocal (keepLocalTime) {\n\t        if (this._isUTC) {\n\t            this.utcOffset(0, keepLocalTime);\n\t            this._isUTC = false;\n\n\t            if (keepLocalTime) {\n\t                this.subtract(getDateOffset(this), 'm');\n\t            }\n\t        }\n\t        return this;\n\t    }\n\n\t    function setOffsetToParsedOffset () {\n\t        if (this._tzm) {\n\t            this.utcOffset(this._tzm);\n\t        } else if (typeof this._i === 'string') {\n\t            this.utcOffset(offsetFromString(matchOffset, this._i));\n\t        }\n\t        return this;\n\t    }\n\n\t    function hasAlignedHourOffset (input) {\n\t        if (!this.isValid()) {\n\t            return false;\n\t        }\n\t        input = input ? local__createLocal(input).utcOffset() : 0;\n\n\t        return (this.utcOffset() - input) % 60 === 0;\n\t    }\n\n\t    function isDaylightSavingTime () {\n\t        return (\n\t            this.utcOffset() > this.clone().month(0).utcOffset() ||\n\t            this.utcOffset() > this.clone().month(5).utcOffset()\n\t        );\n\t    }\n\n\t    function isDaylightSavingTimeShifted () {\n\t        if (!isUndefined(this._isDSTShifted)) {\n\t            return this._isDSTShifted;\n\t        }\n\n\t        var c = {};\n\n\t        copyConfig(c, this);\n\t        c = prepareConfig(c);\n\n\t        if (c._a) {\n\t            var other = c._isUTC ? create_utc__createUTC(c._a) : local__createLocal(c._a);\n\t            this._isDSTShifted = this.isValid() &&\n\t                compareArrays(c._a, other.toArray()) > 0;\n\t        } else {\n\t            this._isDSTShifted = false;\n\t        }\n\n\t        return this._isDSTShifted;\n\t    }\n\n\t    function isLocal () {\n\t        return this.isValid() ? !this._isUTC : false;\n\t    }\n\n\t    function isUtcOffset () {\n\t        return this.isValid() ? this._isUTC : false;\n\t    }\n\n\t    function isUtc () {\n\t        return this.isValid() ? this._isUTC && this._offset === 0 : false;\n\t    }\n\n\t    // ASP.NET json date format regex\n\t    var aspNetRegex = /(\\-)?(?:(\\d*)[. ])?(\\d+)\\:(\\d+)(?:\\:(\\d+)\\.?(\\d{3})?)?/;\n\n\t    // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html\n\t    // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere\n\t    var isoRegex = /^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/;\n\n\t    function create__createDuration (input, key) {\n\t        var duration = input,\n\t            // matching against regexp is expensive, do it on demand\n\t            match = null,\n\t            sign,\n\t            ret,\n\t            diffRes;\n\n\t        if (isDuration(input)) {\n\t            duration = {\n\t                ms : input._milliseconds,\n\t                d  : input._days,\n\t                M  : input._months\n\t            };\n\t        } else if (typeof input === 'number') {\n\t            duration = {};\n\t            if (key) {\n\t                duration[key] = input;\n\t            } else {\n\t                duration.milliseconds = input;\n\t            }\n\t        } else if (!!(match = aspNetRegex.exec(input))) {\n\t            sign = (match[1] === '-') ? -1 : 1;\n\t            duration = {\n\t                y  : 0,\n\t                d  : toInt(match[DATE])        * sign,\n\t                h  : toInt(match[HOUR])        * sign,\n\t                m  : toInt(match[MINUTE])      * sign,\n\t                s  : toInt(match[SECOND])      * sign,\n\t                ms : toInt(match[MILLISECOND]) * sign\n\t            };\n\t        } else if (!!(match = isoRegex.exec(input))) {\n\t            sign = (match[1] === '-') ? -1 : 1;\n\t            duration = {\n\t                y : parseIso(match[2], sign),\n\t                M : parseIso(match[3], sign),\n\t                d : parseIso(match[4], sign),\n\t                h : parseIso(match[5], sign),\n\t                m : parseIso(match[6], sign),\n\t                s : parseIso(match[7], sign),\n\t                w : parseIso(match[8], sign)\n\t            };\n\t        } else if (duration == null) {// checks for null or undefined\n\t            duration = {};\n\t        } else if (typeof duration === 'object' && ('from' in duration || 'to' in duration)) {\n\t            diffRes = momentsDifference(local__createLocal(duration.from), local__createLocal(duration.to));\n\n\t            duration = {};\n\t            duration.ms = diffRes.milliseconds;\n\t            duration.M = diffRes.months;\n\t        }\n\n\t        ret = new Duration(duration);\n\n\t        if (isDuration(input) && hasOwnProp(input, '_locale')) {\n\t            ret._locale = input._locale;\n\t        }\n\n\t        return ret;\n\t    }\n\n\t    create__createDuration.fn = Duration.prototype;\n\n\t    function parseIso (inp, sign) {\n\t        // We'd normally use ~~inp for this, but unfortunately it also\n\t        // converts floats to ints.\n\t        // inp may be undefined, so careful calling replace on it.\n\t        var res = inp && parseFloat(inp.replace(',', '.'));\n\t        // apply sign while we're at it\n\t        return (isNaN(res) ? 0 : res) * sign;\n\t    }\n\n\t    function positiveMomentsDifference(base, other) {\n\t        var res = {milliseconds: 0, months: 0};\n\n\t        res.months = other.month() - base.month() +\n\t            (other.year() - base.year()) * 12;\n\t        if (base.clone().add(res.months, 'M').isAfter(other)) {\n\t            --res.months;\n\t        }\n\n\t        res.milliseconds = +other - +(base.clone().add(res.months, 'M'));\n\n\t        return res;\n\t    }\n\n\t    function momentsDifference(base, other) {\n\t        var res;\n\t        if (!(base.isValid() && other.isValid())) {\n\t            return {milliseconds: 0, months: 0};\n\t        }\n\n\t        other = cloneWithOffset(other, base);\n\t        if (base.isBefore(other)) {\n\t            res = positiveMomentsDifference(base, other);\n\t        } else {\n\t            res = positiveMomentsDifference(other, base);\n\t            res.milliseconds = -res.milliseconds;\n\t            res.months = -res.months;\n\t        }\n\n\t        return res;\n\t    }\n\n\t    // TODO: remove 'name' arg after deprecation is removed\n\t    function createAdder(direction, name) {\n\t        return function (val, period) {\n\t            var dur, tmp;\n\t            //invert the arguments, but complain about it\n\t            if (period !== null && !isNaN(+period)) {\n\t                deprecateSimple(name, 'moment().' + name  + '(period, number) is deprecated. Please use moment().' + name + '(number, period).');\n\t                tmp = val; val = period; period = tmp;\n\t            }\n\n\t            val = typeof val === 'string' ? +val : val;\n\t            dur = create__createDuration(val, period);\n\t            add_subtract__addSubtract(this, dur, direction);\n\t            return this;\n\t        };\n\t    }\n\n\t    function add_subtract__addSubtract (mom, duration, isAdding, updateOffset) {\n\t        var milliseconds = duration._milliseconds,\n\t            days = duration._days,\n\t            months = duration._months;\n\n\t        if (!mom.isValid()) {\n\t            // No op\n\t            return;\n\t        }\n\n\t        updateOffset = updateOffset == null ? true : updateOffset;\n\n\t        if (milliseconds) {\n\t            mom._d.setTime(+mom._d + milliseconds * isAdding);\n\t        }\n\t        if (days) {\n\t            get_set__set(mom, 'Date', get_set__get(mom, 'Date') + days * isAdding);\n\t        }\n\t        if (months) {\n\t            setMonth(mom, get_set__get(mom, 'Month') + months * isAdding);\n\t        }\n\t        if (updateOffset) {\n\t            utils_hooks__hooks.updateOffset(mom, days || months);\n\t        }\n\t    }\n\n\t    var add_subtract__add      = createAdder(1, 'add');\n\t    var add_subtract__subtract = createAdder(-1, 'subtract');\n\n\t    function moment_calendar__calendar (time, formats) {\n\t        // We want to compare the start of today, vs this.\n\t        // Getting start-of-today depends on whether we're local/utc/offset or not.\n\t        var now = time || local__createLocal(),\n\t            sod = cloneWithOffset(now, this).startOf('day'),\n\t            diff = this.diff(sod, 'days', true),\n\t            format = diff < -6 ? 'sameElse' :\n\t                diff < -1 ? 'lastWeek' :\n\t                diff < 0 ? 'lastDay' :\n\t                diff < 1 ? 'sameDay' :\n\t                diff < 2 ? 'nextDay' :\n\t                diff < 7 ? 'nextWeek' : 'sameElse';\n\n\t        var output = formats && (isFunction(formats[format]) ? formats[format]() : formats[format]);\n\n\t        return this.format(output || this.localeData().calendar(format, this, local__createLocal(now)));\n\t    }\n\n\t    function clone () {\n\t        return new Moment(this);\n\t    }\n\n\t    function isAfter (input, units) {\n\t        var localInput = isMoment(input) ? input : local__createLocal(input);\n\t        if (!(this.isValid() && localInput.isValid())) {\n\t            return false;\n\t        }\n\t        units = normalizeUnits(!isUndefined(units) ? units : 'millisecond');\n\t        if (units === 'millisecond') {\n\t            return +this > +localInput;\n\t        } else {\n\t            return +localInput < +this.clone().startOf(units);\n\t        }\n\t    }\n\n\t    function isBefore (input, units) {\n\t        var localInput = isMoment(input) ? input : local__createLocal(input);\n\t        if (!(this.isValid() && localInput.isValid())) {\n\t            return false;\n\t        }\n\t        units = normalizeUnits(!isUndefined(units) ? units : 'millisecond');\n\t        if (units === 'millisecond') {\n\t            return +this < +localInput;\n\t        } else {\n\t            return +this.clone().endOf(units) < +localInput;\n\t        }\n\t    }\n\n\t    function isBetween (from, to, units) {\n\t        return this.isAfter(from, units) && this.isBefore(to, units);\n\t    }\n\n\t    function isSame (input, units) {\n\t        var localInput = isMoment(input) ? input : local__createLocal(input),\n\t            inputMs;\n\t        if (!(this.isValid() && localInput.isValid())) {\n\t            return false;\n\t        }\n\t        units = normalizeUnits(units || 'millisecond');\n\t        if (units === 'millisecond') {\n\t            return +this === +localInput;\n\t        } else {\n\t            inputMs = +localInput;\n\t            return +(this.clone().startOf(units)) <= inputMs && inputMs <= +(this.clone().endOf(units));\n\t        }\n\t    }\n\n\t    function isSameOrAfter (input, units) {\n\t        return this.isSame(input, units) || this.isAfter(input,units);\n\t    }\n\n\t    function isSameOrBefore (input, units) {\n\t        return this.isSame(input, units) || this.isBefore(input,units);\n\t    }\n\n\t    function diff (input, units, asFloat) {\n\t        var that,\n\t            zoneDelta,\n\t            delta, output;\n\n\t        if (!this.isValid()) {\n\t            return NaN;\n\t        }\n\n\t        that = cloneWithOffset(input, this);\n\n\t        if (!that.isValid()) {\n\t            return NaN;\n\t        }\n\n\t        zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4;\n\n\t        units = normalizeUnits(units);\n\n\t        if (units === 'year' || units === 'month' || units === 'quarter') {\n\t            output = monthDiff(this, that);\n\t            if (units === 'quarter') {\n\t                output = output / 3;\n\t            } else if (units === 'year') {\n\t                output = output / 12;\n\t            }\n\t        } else {\n\t            delta = this - that;\n\t            output = units === 'second' ? delta / 1e3 : // 1000\n\t                units === 'minute' ? delta / 6e4 : // 1000 * 60\n\t                units === 'hour' ? delta / 36e5 : // 1000 * 60 * 60\n\t                units === 'day' ? (delta - zoneDelta) / 864e5 : // 1000 * 60 * 60 * 24, negate dst\n\t                units === 'week' ? (delta - zoneDelta) / 6048e5 : // 1000 * 60 * 60 * 24 * 7, negate dst\n\t                delta;\n\t        }\n\t        return asFloat ? output : absFloor(output);\n\t    }\n\n\t    function monthDiff (a, b) {\n\t        // difference in months\n\t        var wholeMonthDiff = ((b.year() - a.year()) * 12) + (b.month() - a.month()),\n\t            // b is in (anchor - 1 month, anchor + 1 month)\n\t            anchor = a.clone().add(wholeMonthDiff, 'months'),\n\t            anchor2, adjust;\n\n\t        if (b - anchor < 0) {\n\t            anchor2 = a.clone().add(wholeMonthDiff - 1, 'months');\n\t            // linear across the month\n\t            adjust = (b - anchor) / (anchor - anchor2);\n\t        } else {\n\t            anchor2 = a.clone().add(wholeMonthDiff + 1, 'months');\n\t            // linear across the month\n\t            adjust = (b - anchor) / (anchor2 - anchor);\n\t        }\n\n\t        return -(wholeMonthDiff + adjust);\n\t    }\n\n\t    utils_hooks__hooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ';\n\n\t    function toString () {\n\t        return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ');\n\t    }\n\n\t    function moment_format__toISOString () {\n\t        var m = this.clone().utc();\n\t        if (0 < m.year() && m.year() <= 9999) {\n\t            if (isFunction(Date.prototype.toISOString)) {\n\t                // native implementation is ~50x faster, use it when we can\n\t                return this.toDate().toISOString();\n\t            } else {\n\t                return formatMoment(m, 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]');\n\t            }\n\t        } else {\n\t            return formatMoment(m, 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]');\n\t        }\n\t    }\n\n\t    function format (inputString) {\n\t        var output = formatMoment(this, inputString || utils_hooks__hooks.defaultFormat);\n\t        return this.localeData().postformat(output);\n\t    }\n\n\t    function from (time, withoutSuffix) {\n\t        if (this.isValid() &&\n\t                ((isMoment(time) && time.isValid()) ||\n\t                 local__createLocal(time).isValid())) {\n\t            return create__createDuration({to: this, from: time}).locale(this.locale()).humanize(!withoutSuffix);\n\t        } else {\n\t            return this.localeData().invalidDate();\n\t        }\n\t    }\n\n\t    function fromNow (withoutSuffix) {\n\t        return this.from(local__createLocal(), withoutSuffix);\n\t    }\n\n\t    function to (time, withoutSuffix) {\n\t        if (this.isValid() &&\n\t                ((isMoment(time) && time.isValid()) ||\n\t                 local__createLocal(time).isValid())) {\n\t            return create__createDuration({from: this, to: time}).locale(this.locale()).humanize(!withoutSuffix);\n\t        } else {\n\t            return this.localeData().invalidDate();\n\t        }\n\t    }\n\n\t    function toNow (withoutSuffix) {\n\t        return this.to(local__createLocal(), withoutSuffix);\n\t    }\n\n\t    // If passed a locale key, it will set the locale for this\n\t    // instance.  Otherwise, it will return the locale configuration\n\t    // variables for this instance.\n\t    function locale (key) {\n\t        var newLocaleData;\n\n\t        if (key === undefined) {\n\t            return this._locale._abbr;\n\t        } else {\n\t            newLocaleData = locale_locales__getLocale(key);\n\t            if (newLocaleData != null) {\n\t                this._locale = newLocaleData;\n\t            }\n\t            return this;\n\t        }\n\t    }\n\n\t    var lang = deprecate(\n\t        'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.',\n\t        function (key) {\n\t            if (key === undefined) {\n\t                return this.localeData();\n\t            } else {\n\t                return this.locale(key);\n\t            }\n\t        }\n\t    );\n\n\t    function localeData () {\n\t        return this._locale;\n\t    }\n\n\t    function startOf (units) {\n\t        units = normalizeUnits(units);\n\t        // the following switch intentionally omits break keywords\n\t        // to utilize falling through the cases.\n\t        switch (units) {\n\t        case 'year':\n\t            this.month(0);\n\t            /* falls through */\n\t        case 'quarter':\n\t        case 'month':\n\t            this.date(1);\n\t            /* falls through */\n\t        case 'week':\n\t        case 'isoWeek':\n\t        case 'day':\n\t            this.hours(0);\n\t            /* falls through */\n\t        case 'hour':\n\t            this.minutes(0);\n\t            /* falls through */\n\t        case 'minute':\n\t            this.seconds(0);\n\t            /* falls through */\n\t        case 'second':\n\t            this.milliseconds(0);\n\t        }\n\n\t        // weeks are a special case\n\t        if (units === 'week') {\n\t            this.weekday(0);\n\t        }\n\t        if (units === 'isoWeek') {\n\t            this.isoWeekday(1);\n\t        }\n\n\t        // quarters are also special\n\t        if (units === 'quarter') {\n\t            this.month(Math.floor(this.month() / 3) * 3);\n\t        }\n\n\t        return this;\n\t    }\n\n\t    function endOf (units) {\n\t        units = normalizeUnits(units);\n\t        if (units === undefined || units === 'millisecond') {\n\t            return this;\n\t        }\n\t        return this.startOf(units).add(1, (units === 'isoWeek' ? 'week' : units)).subtract(1, 'ms');\n\t    }\n\n\t    function to_type__valueOf () {\n\t        return +this._d - ((this._offset || 0) * 60000);\n\t    }\n\n\t    function unix () {\n\t        return Math.floor(+this / 1000);\n\t    }\n\n\t    function toDate () {\n\t        return this._offset ? new Date(+this) : this._d;\n\t    }\n\n\t    function toArray () {\n\t        var m = this;\n\t        return [m.year(), m.month(), m.date(), m.hour(), m.minute(), m.second(), m.millisecond()];\n\t    }\n\n\t    function toObject () {\n\t        var m = this;\n\t        return {\n\t            years: m.year(),\n\t            months: m.month(),\n\t            date: m.date(),\n\t            hours: m.hours(),\n\t            minutes: m.minutes(),\n\t            seconds: m.seconds(),\n\t            milliseconds: m.milliseconds()\n\t        };\n\t    }\n\n\t    function toJSON () {\n\t        // JSON.stringify(new Date(NaN)) === 'null'\n\t        return this.isValid() ? this.toISOString() : 'null';\n\t    }\n\n\t    function moment_valid__isValid () {\n\t        return valid__isValid(this);\n\t    }\n\n\t    function parsingFlags () {\n\t        return extend({}, getParsingFlags(this));\n\t    }\n\n\t    function invalidAt () {\n\t        return getParsingFlags(this).overflow;\n\t    }\n\n\t    function creationData() {\n\t        return {\n\t            input: this._i,\n\t            format: this._f,\n\t            locale: this._locale,\n\t            isUTC: this._isUTC,\n\t            strict: this._strict\n\t        };\n\t    }\n\n\t    // FORMATTING\n\n\t    addFormatToken(0, ['gg', 2], 0, function () {\n\t        return this.weekYear() % 100;\n\t    });\n\n\t    addFormatToken(0, ['GG', 2], 0, function () {\n\t        return this.isoWeekYear() % 100;\n\t    });\n\n\t    function addWeekYearFormatToken (token, getter) {\n\t        addFormatToken(0, [token, token.length], 0, getter);\n\t    }\n\n\t    addWeekYearFormatToken('gggg',     'weekYear');\n\t    addWeekYearFormatToken('ggggg',    'weekYear');\n\t    addWeekYearFormatToken('GGGG',  'isoWeekYear');\n\t    addWeekYearFormatToken('GGGGG', 'isoWeekYear');\n\n\t    // ALIASES\n\n\t    addUnitAlias('weekYear', 'gg');\n\t    addUnitAlias('isoWeekYear', 'GG');\n\n\t    // PARSING\n\n\t    addRegexToken('G',      matchSigned);\n\t    addRegexToken('g',      matchSigned);\n\t    addRegexToken('GG',     match1to2, match2);\n\t    addRegexToken('gg',     match1to2, match2);\n\t    addRegexToken('GGGG',   match1to4, match4);\n\t    addRegexToken('gggg',   match1to4, match4);\n\t    addRegexToken('GGGGG',  match1to6, match6);\n\t    addRegexToken('ggggg',  match1to6, match6);\n\n\t    addWeekParseToken(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function (input, week, config, token) {\n\t        week[token.substr(0, 2)] = toInt(input);\n\t    });\n\n\t    addWeekParseToken(['gg', 'GG'], function (input, week, config, token) {\n\t        week[token] = utils_hooks__hooks.parseTwoDigitYear(input);\n\t    });\n\n\t    // MOMENTS\n\n\t    function getSetWeekYear (input) {\n\t        return getSetWeekYearHelper.call(this,\n\t                input,\n\t                this.week(),\n\t                this.weekday(),\n\t                this.localeData()._week.dow,\n\t                this.localeData()._week.doy);\n\t    }\n\n\t    function getSetISOWeekYear (input) {\n\t        return getSetWeekYearHelper.call(this,\n\t                input, this.isoWeek(), this.isoWeekday(), 1, 4);\n\t    }\n\n\t    function getISOWeeksInYear () {\n\t        return weeksInYear(this.year(), 1, 4);\n\t    }\n\n\t    function getWeeksInYear () {\n\t        var weekInfo = this.localeData()._week;\n\t        return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy);\n\t    }\n\n\t    function getSetWeekYearHelper(input, week, weekday, dow, doy) {\n\t        var weeksTarget;\n\t        if (input == null) {\n\t            return weekOfYear(this, dow, doy).year;\n\t        } else {\n\t            weeksTarget = weeksInYear(input, dow, doy);\n\t            if (week > weeksTarget) {\n\t                week = weeksTarget;\n\t            }\n\t            return setWeekAll.call(this, input, week, weekday, dow, doy);\n\t        }\n\t    }\n\n\t    function setWeekAll(weekYear, week, weekday, dow, doy) {\n\t        var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy),\n\t            date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear);\n\n\t        // console.log(\"got\", weekYear, week, weekday, \"set\", date.toISOString());\n\t        this.year(date.getUTCFullYear());\n\t        this.month(date.getUTCMonth());\n\t        this.date(date.getUTCDate());\n\t        return this;\n\t    }\n\n\t    // FORMATTING\n\n\t    addFormatToken('Q', 0, 'Qo', 'quarter');\n\n\t    // ALIASES\n\n\t    addUnitAlias('quarter', 'Q');\n\n\t    // PARSING\n\n\t    addRegexToken('Q', match1);\n\t    addParseToken('Q', function (input, array) {\n\t        array[MONTH] = (toInt(input) - 1) * 3;\n\t    });\n\n\t    // MOMENTS\n\n\t    function getSetQuarter (input) {\n\t        return input == null ? Math.ceil((this.month() + 1) / 3) : this.month((input - 1) * 3 + this.month() % 3);\n\t    }\n\n\t    // FORMATTING\n\n\t    addFormatToken('w', ['ww', 2], 'wo', 'week');\n\t    addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek');\n\n\t    // ALIASES\n\n\t    addUnitAlias('week', 'w');\n\t    addUnitAlias('isoWeek', 'W');\n\n\t    // PARSING\n\n\t    addRegexToken('w',  match1to2);\n\t    addRegexToken('ww', match1to2, match2);\n\t    addRegexToken('W',  match1to2);\n\t    addRegexToken('WW', match1to2, match2);\n\n\t    addWeekParseToken(['w', 'ww', 'W', 'WW'], function (input, week, config, token) {\n\t        week[token.substr(0, 1)] = toInt(input);\n\t    });\n\n\t    // HELPERS\n\n\t    // LOCALES\n\n\t    function localeWeek (mom) {\n\t        return weekOfYear(mom, this._week.dow, this._week.doy).week;\n\t    }\n\n\t    var defaultLocaleWeek = {\n\t        dow : 0, // Sunday is the first day of the week.\n\t        doy : 6  // The week that contains Jan 1st is the first week of the year.\n\t    };\n\n\t    function localeFirstDayOfWeek () {\n\t        return this._week.dow;\n\t    }\n\n\t    function localeFirstDayOfYear () {\n\t        return this._week.doy;\n\t    }\n\n\t    // MOMENTS\n\n\t    function getSetWeek (input) {\n\t        var week = this.localeData().week(this);\n\t        return input == null ? week : this.add((input - week) * 7, 'd');\n\t    }\n\n\t    function getSetISOWeek (input) {\n\t        var week = weekOfYear(this, 1, 4).week;\n\t        return input == null ? week : this.add((input - week) * 7, 'd');\n\t    }\n\n\t    // FORMATTING\n\n\t    addFormatToken('D', ['DD', 2], 'Do', 'date');\n\n\t    // ALIASES\n\n\t    addUnitAlias('date', 'D');\n\n\t    // PARSING\n\n\t    addRegexToken('D',  match1to2);\n\t    addRegexToken('DD', match1to2, match2);\n\t    addRegexToken('Do', function (isStrict, locale) {\n\t        return isStrict ? locale._ordinalParse : locale._ordinalParseLenient;\n\t    });\n\n\t    addParseToken(['D', 'DD'], DATE);\n\t    addParseToken('Do', function (input, array) {\n\t        array[DATE] = toInt(input.match(match1to2)[0], 10);\n\t    });\n\n\t    // MOMENTS\n\n\t    var getSetDayOfMonth = makeGetSet('Date', true);\n\n\t    // FORMATTING\n\n\t    addFormatToken('d', 0, 'do', 'day');\n\n\t    addFormatToken('dd', 0, 0, function (format) {\n\t        return this.localeData().weekdaysMin(this, format);\n\t    });\n\n\t    addFormatToken('ddd', 0, 0, function (format) {\n\t        return this.localeData().weekdaysShort(this, format);\n\t    });\n\n\t    addFormatToken('dddd', 0, 0, function (format) {\n\t        return this.localeData().weekdays(this, format);\n\t    });\n\n\t    addFormatToken('e', 0, 0, 'weekday');\n\t    addFormatToken('E', 0, 0, 'isoWeekday');\n\n\t    // ALIASES\n\n\t    addUnitAlias('day', 'd');\n\t    addUnitAlias('weekday', 'e');\n\t    addUnitAlias('isoWeekday', 'E');\n\n\t    // PARSING\n\n\t    addRegexToken('d',    match1to2);\n\t    addRegexToken('e',    match1to2);\n\t    addRegexToken('E',    match1to2);\n\t    addRegexToken('dd',   matchWord);\n\t    addRegexToken('ddd',  matchWord);\n\t    addRegexToken('dddd', matchWord);\n\n\t    addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config, token) {\n\t        var weekday = config._locale.weekdaysParse(input, token, config._strict);\n\t        // if we didn't get a weekday name, mark the date as invalid\n\t        if (weekday != null) {\n\t            week.d = weekday;\n\t        } else {\n\t            getParsingFlags(config).invalidWeekday = input;\n\t        }\n\t    });\n\n\t    addWeekParseToken(['d', 'e', 'E'], function (input, week, config, token) {\n\t        week[token] = toInt(input);\n\t    });\n\n\t    // HELPERS\n\n\t    function parseWeekday(input, locale) {\n\t        if (typeof input !== 'string') {\n\t            return input;\n\t        }\n\n\t        if (!isNaN(input)) {\n\t            return parseInt(input, 10);\n\t        }\n\n\t        input = locale.weekdaysParse(input);\n\t        if (typeof input === 'number') {\n\t            return input;\n\t        }\n\n\t        return null;\n\t    }\n\n\t    // LOCALES\n\n\t    var defaultLocaleWeekdays = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_');\n\t    function localeWeekdays (m, format) {\n\t        return isArray(this._weekdays) ? this._weekdays[m.day()] :\n\t            this._weekdays[this._weekdays.isFormat.test(format) ? 'format' : 'standalone'][m.day()];\n\t    }\n\n\t    var defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_');\n\t    function localeWeekdaysShort (m) {\n\t        return this._weekdaysShort[m.day()];\n\t    }\n\n\t    var defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_');\n\t    function localeWeekdaysMin (m) {\n\t        return this._weekdaysMin[m.day()];\n\t    }\n\n\t    function localeWeekdaysParse (weekdayName, format, strict) {\n\t        var i, mom, regex;\n\n\t        if (!this._weekdaysParse) {\n\t            this._weekdaysParse = [];\n\t            this._minWeekdaysParse = [];\n\t            this._shortWeekdaysParse = [];\n\t            this._fullWeekdaysParse = [];\n\t        }\n\n\t        for (i = 0; i < 7; i++) {\n\t            // make the regex if we don't have it already\n\n\t            mom = local__createLocal([2000, 1]).day(i);\n\t            if (strict && !this._fullWeekdaysParse[i]) {\n\t                this._fullWeekdaysParse[i] = new RegExp('^' + this.weekdays(mom, '').replace('.', '\\.?') + '$', 'i');\n\t                this._shortWeekdaysParse[i] = new RegExp('^' + this.weekdaysShort(mom, '').replace('.', '\\.?') + '$', 'i');\n\t                this._minWeekdaysParse[i] = new RegExp('^' + this.weekdaysMin(mom, '').replace('.', '\\.?') + '$', 'i');\n\t            }\n\t            if (!this._weekdaysParse[i]) {\n\t                regex = '^' + this.weekdays(mom, '') + '|^' + this.weekdaysShort(mom, '') + '|^' + this.weekdaysMin(mom, '');\n\t                this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i');\n\t            }\n\t            // test the regex\n\t            if (strict && format === 'dddd' && this._fullWeekdaysParse[i].test(weekdayName)) {\n\t                return i;\n\t            } else if (strict && format === 'ddd' && this._shortWeekdaysParse[i].test(weekdayName)) {\n\t                return i;\n\t            } else if (strict && format === 'dd' && this._minWeekdaysParse[i].test(weekdayName)) {\n\t                return i;\n\t            } else if (!strict && this._weekdaysParse[i].test(weekdayName)) {\n\t                return i;\n\t            }\n\t        }\n\t    }\n\n\t    // MOMENTS\n\n\t    function getSetDayOfWeek (input) {\n\t        if (!this.isValid()) {\n\t            return input != null ? this : NaN;\n\t        }\n\t        var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay();\n\t        if (input != null) {\n\t            input = parseWeekday(input, this.localeData());\n\t            return this.add(input - day, 'd');\n\t        } else {\n\t            return day;\n\t        }\n\t    }\n\n\t    function getSetLocaleDayOfWeek (input) {\n\t        if (!this.isValid()) {\n\t            return input != null ? this : NaN;\n\t        }\n\t        var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;\n\t        return input == null ? weekday : this.add(input - weekday, 'd');\n\t    }\n\n\t    function getSetISODayOfWeek (input) {\n\t        if (!this.isValid()) {\n\t            return input != null ? this : NaN;\n\t        }\n\t        // behaves the same as moment#day except\n\t        // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)\n\t        // as a setter, sunday should belong to the previous week.\n\t        return input == null ? this.day() || 7 : this.day(this.day() % 7 ? input : input - 7);\n\t    }\n\n\t    // FORMATTING\n\n\t    addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear');\n\n\t    // ALIASES\n\n\t    addUnitAlias('dayOfYear', 'DDD');\n\n\t    // PARSING\n\n\t    addRegexToken('DDD',  match1to3);\n\t    addRegexToken('DDDD', match3);\n\t    addParseToken(['DDD', 'DDDD'], function (input, array, config) {\n\t        config._dayOfYear = toInt(input);\n\t    });\n\n\t    // HELPERS\n\n\t    // MOMENTS\n\n\t    function getSetDayOfYear (input) {\n\t        var dayOfYear = Math.round((this.clone().startOf('day') - this.clone().startOf('year')) / 864e5) + 1;\n\t        return input == null ? dayOfYear : this.add((input - dayOfYear), 'd');\n\t    }\n\n\t    // FORMATTING\n\n\t    function hFormat() {\n\t        return this.hours() % 12 || 12;\n\t    }\n\n\t    addFormatToken('H', ['HH', 2], 0, 'hour');\n\t    addFormatToken('h', ['hh', 2], 0, hFormat);\n\n\t    addFormatToken('hmm', 0, 0, function () {\n\t        return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2);\n\t    });\n\n\t    addFormatToken('hmmss', 0, 0, function () {\n\t        return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2) +\n\t            zeroFill(this.seconds(), 2);\n\t    });\n\n\t    addFormatToken('Hmm', 0, 0, function () {\n\t        return '' + this.hours() + zeroFill(this.minutes(), 2);\n\t    });\n\n\t    addFormatToken('Hmmss', 0, 0, function () {\n\t        return '' + this.hours() + zeroFill(this.minutes(), 2) +\n\t            zeroFill(this.seconds(), 2);\n\t    });\n\n\t    function meridiem (token, lowercase) {\n\t        addFormatToken(token, 0, 0, function () {\n\t            return this.localeData().meridiem(this.hours(), this.minutes(), lowercase);\n\t        });\n\t    }\n\n\t    meridiem('a', true);\n\t    meridiem('A', false);\n\n\t    // ALIASES\n\n\t    addUnitAlias('hour', 'h');\n\n\t    // PARSING\n\n\t    function matchMeridiem (isStrict, locale) {\n\t        return locale._meridiemParse;\n\t    }\n\n\t    addRegexToken('a',  matchMeridiem);\n\t    addRegexToken('A',  matchMeridiem);\n\t    addRegexToken('H',  match1to2);\n\t    addRegexToken('h',  match1to2);\n\t    addRegexToken('HH', match1to2, match2);\n\t    addRegexToken('hh', match1to2, match2);\n\n\t    addRegexToken('hmm', match3to4);\n\t    addRegexToken('hmmss', match5to6);\n\t    addRegexToken('Hmm', match3to4);\n\t    addRegexToken('Hmmss', match5to6);\n\n\t    addParseToken(['H', 'HH'], HOUR);\n\t    addParseToken(['a', 'A'], function (input, array, config) {\n\t        config._isPm = config._locale.isPM(input);\n\t        config._meridiem = input;\n\t    });\n\t    addParseToken(['h', 'hh'], function (input, array, config) {\n\t        array[HOUR] = toInt(input);\n\t        getParsingFlags(config).bigHour = true;\n\t    });\n\t    addParseToken('hmm', function (input, array, config) {\n\t        var pos = input.length - 2;\n\t        array[HOUR] = toInt(input.substr(0, pos));\n\t        array[MINUTE] = toInt(input.substr(pos));\n\t        getParsingFlags(config).bigHour = true;\n\t    });\n\t    addParseToken('hmmss', function (input, array, config) {\n\t        var pos1 = input.length - 4;\n\t        var pos2 = input.length - 2;\n\t        array[HOUR] = toInt(input.substr(0, pos1));\n\t        array[MINUTE] = toInt(input.substr(pos1, 2));\n\t        array[SECOND] = toInt(input.substr(pos2));\n\t        getParsingFlags(config).bigHour = true;\n\t    });\n\t    addParseToken('Hmm', function (input, array, config) {\n\t        var pos = input.length - 2;\n\t        array[HOUR] = toInt(input.substr(0, pos));\n\t        array[MINUTE] = toInt(input.substr(pos));\n\t    });\n\t    addParseToken('Hmmss', function (input, array, config) {\n\t        var pos1 = input.length - 4;\n\t        var pos2 = input.length - 2;\n\t        array[HOUR] = toInt(input.substr(0, pos1));\n\t        array[MINUTE] = toInt(input.substr(pos1, 2));\n\t        array[SECOND] = toInt(input.substr(pos2));\n\t    });\n\n\t    // LOCALES\n\n\t    function localeIsPM (input) {\n\t        // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays\n\t        // Using charAt should be more compatible.\n\t        return ((input + '').toLowerCase().charAt(0) === 'p');\n\t    }\n\n\t    var defaultLocaleMeridiemParse = /[ap]\\.?m?\\.?/i;\n\t    function localeMeridiem (hours, minutes, isLower) {\n\t        if (hours > 11) {\n\t            return isLower ? 'pm' : 'PM';\n\t        } else {\n\t            return isLower ? 'am' : 'AM';\n\t        }\n\t    }\n\n\n\t    // MOMENTS\n\n\t    // Setting the hour should keep the time, because the user explicitly\n\t    // specified which hour he wants. So trying to maintain the same hour (in\n\t    // a new timezone) makes sense. Adding/subtracting hours does not follow\n\t    // this rule.\n\t    var getSetHour = makeGetSet('Hours', true);\n\n\t    // FORMATTING\n\n\t    addFormatToken('m', ['mm', 2], 0, 'minute');\n\n\t    // ALIASES\n\n\t    addUnitAlias('minute', 'm');\n\n\t    // PARSING\n\n\t    addRegexToken('m',  match1to2);\n\t    addRegexToken('mm', match1to2, match2);\n\t    addParseToken(['m', 'mm'], MINUTE);\n\n\t    // MOMENTS\n\n\t    var getSetMinute = makeGetSet('Minutes', false);\n\n\t    // FORMATTING\n\n\t    addFormatToken('s', ['ss', 2], 0, 'second');\n\n\t    // ALIASES\n\n\t    addUnitAlias('second', 's');\n\n\t    // PARSING\n\n\t    addRegexToken('s',  match1to2);\n\t    addRegexToken('ss', match1to2, match2);\n\t    addParseToken(['s', 'ss'], SECOND);\n\n\t    // MOMENTS\n\n\t    var getSetSecond = makeGetSet('Seconds', false);\n\n\t    // FORMATTING\n\n\t    addFormatToken('S', 0, 0, function () {\n\t        return ~~(this.millisecond() / 100);\n\t    });\n\n\t    addFormatToken(0, ['SS', 2], 0, function () {\n\t        return ~~(this.millisecond() / 10);\n\t    });\n\n\t    addFormatToken(0, ['SSS', 3], 0, 'millisecond');\n\t    addFormatToken(0, ['SSSS', 4], 0, function () {\n\t        return this.millisecond() * 10;\n\t    });\n\t    addFormatToken(0, ['SSSSS', 5], 0, function () {\n\t        return this.millisecond() * 100;\n\t    });\n\t    addFormatToken(0, ['SSSSSS', 6], 0, function () {\n\t        return this.millisecond() * 1000;\n\t    });\n\t    addFormatToken(0, ['SSSSSSS', 7], 0, function () {\n\t        return this.millisecond() * 10000;\n\t    });\n\t    addFormatToken(0, ['SSSSSSSS', 8], 0, function () {\n\t        return this.millisecond() * 100000;\n\t    });\n\t    addFormatToken(0, ['SSSSSSSSS', 9], 0, function () {\n\t        return this.millisecond() * 1000000;\n\t    });\n\n\n\t    // ALIASES\n\n\t    addUnitAlias('millisecond', 'ms');\n\n\t    // PARSING\n\n\t    addRegexToken('S',    match1to3, match1);\n\t    addRegexToken('SS',   match1to3, match2);\n\t    addRegexToken('SSS',  match1to3, match3);\n\n\t    var token;\n\t    for (token = 'SSSS'; token.length <= 9; token += 'S') {\n\t        addRegexToken(token, matchUnsigned);\n\t    }\n\n\t    function parseMs(input, array) {\n\t        array[MILLISECOND] = toInt(('0.' + input) * 1000);\n\t    }\n\n\t    for (token = 'S'; token.length <= 9; token += 'S') {\n\t        addParseToken(token, parseMs);\n\t    }\n\t    // MOMENTS\n\n\t    var getSetMillisecond = makeGetSet('Milliseconds', false);\n\n\t    // FORMATTING\n\n\t    addFormatToken('z',  0, 0, 'zoneAbbr');\n\t    addFormatToken('zz', 0, 0, 'zoneName');\n\n\t    // MOMENTS\n\n\t    function getZoneAbbr () {\n\t        return this._isUTC ? 'UTC' : '';\n\t    }\n\n\t    function getZoneName () {\n\t        return this._isUTC ? 'Coordinated Universal Time' : '';\n\t    }\n\n\t    var momentPrototype__proto = Moment.prototype;\n\n\t    momentPrototype__proto.add               = add_subtract__add;\n\t    momentPrototype__proto.calendar          = moment_calendar__calendar;\n\t    momentPrototype__proto.clone             = clone;\n\t    momentPrototype__proto.diff              = diff;\n\t    momentPrototype__proto.endOf             = endOf;\n\t    momentPrototype__proto.format            = format;\n\t    momentPrototype__proto.from              = from;\n\t    momentPrototype__proto.fromNow           = fromNow;\n\t    momentPrototype__proto.to                = to;\n\t    momentPrototype__proto.toNow             = toNow;\n\t    momentPrototype__proto.get               = getSet;\n\t    momentPrototype__proto.invalidAt         = invalidAt;\n\t    momentPrototype__proto.isAfter           = isAfter;\n\t    momentPrototype__proto.isBefore          = isBefore;\n\t    momentPrototype__proto.isBetween         = isBetween;\n\t    momentPrototype__proto.isSame            = isSame;\n\t    momentPrototype__proto.isSameOrAfter     = isSameOrAfter;\n\t    momentPrototype__proto.isSameOrBefore    = isSameOrBefore;\n\t    momentPrototype__proto.isValid           = moment_valid__isValid;\n\t    momentPrototype__proto.lang              = lang;\n\t    momentPrototype__proto.locale            = locale;\n\t    momentPrototype__proto.localeData        = localeData;\n\t    momentPrototype__proto.max               = prototypeMax;\n\t    momentPrototype__proto.min               = prototypeMin;\n\t    momentPrototype__proto.parsingFlags      = parsingFlags;\n\t    momentPrototype__proto.set               = getSet;\n\t    momentPrototype__proto.startOf           = startOf;\n\t    momentPrototype__proto.subtract          = add_subtract__subtract;\n\t    momentPrototype__proto.toArray           = toArray;\n\t    momentPrototype__proto.toObject          = toObject;\n\t    momentPrototype__proto.toDate            = toDate;\n\t    momentPrototype__proto.toISOString       = moment_format__toISOString;\n\t    momentPrototype__proto.toJSON            = toJSON;\n\t    momentPrototype__proto.toString          = toString;\n\t    momentPrototype__proto.unix              = unix;\n\t    momentPrototype__proto.valueOf           = to_type__valueOf;\n\t    momentPrototype__proto.creationData      = creationData;\n\n\t    // Year\n\t    momentPrototype__proto.year       = getSetYear;\n\t    momentPrototype__proto.isLeapYear = getIsLeapYear;\n\n\t    // Week Year\n\t    momentPrototype__proto.weekYear    = getSetWeekYear;\n\t    momentPrototype__proto.isoWeekYear = getSetISOWeekYear;\n\n\t    // Quarter\n\t    momentPrototype__proto.quarter = momentPrototype__proto.quarters = getSetQuarter;\n\n\t    // Month\n\t    momentPrototype__proto.month       = getSetMonth;\n\t    momentPrototype__proto.daysInMonth = getDaysInMonth;\n\n\t    // Week\n\t    momentPrototype__proto.week           = momentPrototype__proto.weeks        = getSetWeek;\n\t    momentPrototype__proto.isoWeek        = momentPrototype__proto.isoWeeks     = getSetISOWeek;\n\t    momentPrototype__proto.weeksInYear    = getWeeksInYear;\n\t    momentPrototype__proto.isoWeeksInYear = getISOWeeksInYear;\n\n\t    // Day\n\t    momentPrototype__proto.date       = getSetDayOfMonth;\n\t    momentPrototype__proto.day        = momentPrototype__proto.days             = getSetDayOfWeek;\n\t    momentPrototype__proto.weekday    = getSetLocaleDayOfWeek;\n\t    momentPrototype__proto.isoWeekday = getSetISODayOfWeek;\n\t    momentPrototype__proto.dayOfYear  = getSetDayOfYear;\n\n\t    // Hour\n\t    momentPrototype__proto.hour = momentPrototype__proto.hours = getSetHour;\n\n\t    // Minute\n\t    momentPrototype__proto.minute = momentPrototype__proto.minutes = getSetMinute;\n\n\t    // Second\n\t    momentPrototype__proto.second = momentPrototype__proto.seconds = getSetSecond;\n\n\t    // Millisecond\n\t    momentPrototype__proto.millisecond = momentPrototype__proto.milliseconds = getSetMillisecond;\n\n\t    // Offset\n\t    momentPrototype__proto.utcOffset            = getSetOffset;\n\t    momentPrototype__proto.utc                  = setOffsetToUTC;\n\t    momentPrototype__proto.local                = setOffsetToLocal;\n\t    momentPrototype__proto.parseZone            = setOffsetToParsedOffset;\n\t    momentPrototype__proto.hasAlignedHourOffset = hasAlignedHourOffset;\n\t    momentPrototype__proto.isDST                = isDaylightSavingTime;\n\t    momentPrototype__proto.isDSTShifted         = isDaylightSavingTimeShifted;\n\t    momentPrototype__proto.isLocal              = isLocal;\n\t    momentPrototype__proto.isUtcOffset          = isUtcOffset;\n\t    momentPrototype__proto.isUtc                = isUtc;\n\t    momentPrototype__proto.isUTC                = isUtc;\n\n\t    // Timezone\n\t    momentPrototype__proto.zoneAbbr = getZoneAbbr;\n\t    momentPrototype__proto.zoneName = getZoneName;\n\n\t    // Deprecations\n\t    momentPrototype__proto.dates  = deprecate('dates accessor is deprecated. Use date instead.', getSetDayOfMonth);\n\t    momentPrototype__proto.months = deprecate('months accessor is deprecated. Use month instead', getSetMonth);\n\t    momentPrototype__proto.years  = deprecate('years accessor is deprecated. Use year instead', getSetYear);\n\t    momentPrototype__proto.zone   = deprecate('moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779', getSetZone);\n\n\t    var momentPrototype = momentPrototype__proto;\n\n\t    function moment__createUnix (input) {\n\t        return local__createLocal(input * 1000);\n\t    }\n\n\t    function moment__createInZone () {\n\t        return local__createLocal.apply(null, arguments).parseZone();\n\t    }\n\n\t    var defaultCalendar = {\n\t        sameDay : '[Today at] LT',\n\t        nextDay : '[Tomorrow at] LT',\n\t        nextWeek : 'dddd [at] LT',\n\t        lastDay : '[Yesterday at] LT',\n\t        lastWeek : '[Last] dddd [at] LT',\n\t        sameElse : 'L'\n\t    };\n\n\t    function locale_calendar__calendar (key, mom, now) {\n\t        var output = this._calendar[key];\n\t        return isFunction(output) ? output.call(mom, now) : output;\n\t    }\n\n\t    var defaultLongDateFormat = {\n\t        LTS  : 'h:mm:ss A',\n\t        LT   : 'h:mm A',\n\t        L    : 'MM/DD/YYYY',\n\t        LL   : 'MMMM D, YYYY',\n\t        LLL  : 'MMMM D, YYYY h:mm A',\n\t        LLLL : 'dddd, MMMM D, YYYY h:mm A'\n\t    };\n\n\t    function longDateFormat (key) {\n\t        var format = this._longDateFormat[key],\n\t            formatUpper = this._longDateFormat[key.toUpperCase()];\n\n\t        if (format || !formatUpper) {\n\t            return format;\n\t        }\n\n\t        this._longDateFormat[key] = formatUpper.replace(/MMMM|MM|DD|dddd/g, function (val) {\n\t            return val.slice(1);\n\t        });\n\n\t        return this._longDateFormat[key];\n\t    }\n\n\t    var defaultInvalidDate = 'Invalid date';\n\n\t    function invalidDate () {\n\t        return this._invalidDate;\n\t    }\n\n\t    var defaultOrdinal = '%d';\n\t    var defaultOrdinalParse = /\\d{1,2}/;\n\n\t    function ordinal (number) {\n\t        return this._ordinal.replace('%d', number);\n\t    }\n\n\t    function preParsePostFormat (string) {\n\t        return string;\n\t    }\n\n\t    var defaultRelativeTime = {\n\t        future : 'in %s',\n\t        past   : '%s ago',\n\t        s  : 'a few seconds',\n\t        m  : 'a minute',\n\t        mm : '%d minutes',\n\t        h  : 'an hour',\n\t        hh : '%d hours',\n\t        d  : 'a day',\n\t        dd : '%d days',\n\t        M  : 'a month',\n\t        MM : '%d months',\n\t        y  : 'a year',\n\t        yy : '%d years'\n\t    };\n\n\t    function relative__relativeTime (number, withoutSuffix, string, isFuture) {\n\t        var output = this._relativeTime[string];\n\t        return (isFunction(output)) ?\n\t            output(number, withoutSuffix, string, isFuture) :\n\t            output.replace(/%d/i, number);\n\t    }\n\n\t    function pastFuture (diff, output) {\n\t        var format = this._relativeTime[diff > 0 ? 'future' : 'past'];\n\t        return isFunction(format) ? format(output) : format.replace(/%s/i, output);\n\t    }\n\n\t    function locale_set__set (config) {\n\t        var prop, i;\n\t        for (i in config) {\n\t            prop = config[i];\n\t            if (isFunction(prop)) {\n\t                this[i] = prop;\n\t            } else {\n\t                this['_' + i] = prop;\n\t            }\n\t        }\n\t        // Lenient ordinal parsing accepts just a number in addition to\n\t        // number + (possibly) stuff coming from _ordinalParseLenient.\n\t        this._ordinalParseLenient = new RegExp(this._ordinalParse.source + '|' + (/\\d{1,2}/).source);\n\t    }\n\n\t    var prototype__proto = Locale.prototype;\n\n\t    prototype__proto._calendar       = defaultCalendar;\n\t    prototype__proto.calendar        = locale_calendar__calendar;\n\t    prototype__proto._longDateFormat = defaultLongDateFormat;\n\t    prototype__proto.longDateFormat  = longDateFormat;\n\t    prototype__proto._invalidDate    = defaultInvalidDate;\n\t    prototype__proto.invalidDate     = invalidDate;\n\t    prototype__proto._ordinal        = defaultOrdinal;\n\t    prototype__proto.ordinal         = ordinal;\n\t    prototype__proto._ordinalParse   = defaultOrdinalParse;\n\t    prototype__proto.preparse        = preParsePostFormat;\n\t    prototype__proto.postformat      = preParsePostFormat;\n\t    prototype__proto._relativeTime   = defaultRelativeTime;\n\t    prototype__proto.relativeTime    = relative__relativeTime;\n\t    prototype__proto.pastFuture      = pastFuture;\n\t    prototype__proto.set             = locale_set__set;\n\n\t    // Month\n\t    prototype__proto.months            =        localeMonths;\n\t    prototype__proto._months           = defaultLocaleMonths;\n\t    prototype__proto.monthsShort       =        localeMonthsShort;\n\t    prototype__proto._monthsShort      = defaultLocaleMonthsShort;\n\t    prototype__proto.monthsParse       =        localeMonthsParse;\n\t    prototype__proto._monthsRegex      = defaultMonthsRegex;\n\t    prototype__proto.monthsRegex       = monthsRegex;\n\t    prototype__proto._monthsShortRegex = defaultMonthsShortRegex;\n\t    prototype__proto.monthsShortRegex  = monthsShortRegex;\n\n\t    // Week\n\t    prototype__proto.week = localeWeek;\n\t    prototype__proto._week = defaultLocaleWeek;\n\t    prototype__proto.firstDayOfYear = localeFirstDayOfYear;\n\t    prototype__proto.firstDayOfWeek = localeFirstDayOfWeek;\n\n\t    // Day of Week\n\t    prototype__proto.weekdays       =        localeWeekdays;\n\t    prototype__proto._weekdays      = defaultLocaleWeekdays;\n\t    prototype__proto.weekdaysMin    =        localeWeekdaysMin;\n\t    prototype__proto._weekdaysMin   = defaultLocaleWeekdaysMin;\n\t    prototype__proto.weekdaysShort  =        localeWeekdaysShort;\n\t    prototype__proto._weekdaysShort = defaultLocaleWeekdaysShort;\n\t    prototype__proto.weekdaysParse  =        localeWeekdaysParse;\n\n\t    // Hours\n\t    prototype__proto.isPM = localeIsPM;\n\t    prototype__proto._meridiemParse = defaultLocaleMeridiemParse;\n\t    prototype__proto.meridiem = localeMeridiem;\n\n\t    function lists__get (format, index, field, setter) {\n\t        var locale = locale_locales__getLocale();\n\t        var utc = create_utc__createUTC().set(setter, index);\n\t        return locale[field](utc, format);\n\t    }\n\n\t    function list (format, index, field, count, setter) {\n\t        if (typeof format === 'number') {\n\t            index = format;\n\t            format = undefined;\n\t        }\n\n\t        format = format || '';\n\n\t        if (index != null) {\n\t            return lists__get(format, index, field, setter);\n\t        }\n\n\t        var i;\n\t        var out = [];\n\t        for (i = 0; i < count; i++) {\n\t            out[i] = lists__get(format, i, field, setter);\n\t        }\n\t        return out;\n\t    }\n\n\t    function lists__listMonths (format, index) {\n\t        return list(format, index, 'months', 12, 'month');\n\t    }\n\n\t    function lists__listMonthsShort (format, index) {\n\t        return list(format, index, 'monthsShort', 12, 'month');\n\t    }\n\n\t    function lists__listWeekdays (format, index) {\n\t        return list(format, index, 'weekdays', 7, 'day');\n\t    }\n\n\t    function lists__listWeekdaysShort (format, index) {\n\t        return list(format, index, 'weekdaysShort', 7, 'day');\n\t    }\n\n\t    function lists__listWeekdaysMin (format, index) {\n\t        return list(format, index, 'weekdaysMin', 7, 'day');\n\t    }\n\n\t    locale_locales__getSetGlobalLocale('en', {\n\t        ordinalParse: /\\d{1,2}(th|st|nd|rd)/,\n\t        ordinal : function (number) {\n\t            var b = number % 10,\n\t                output = (toInt(number % 100 / 10) === 1) ? 'th' :\n\t                (b === 1) ? 'st' :\n\t                (b === 2) ? 'nd' :\n\t                (b === 3) ? 'rd' : 'th';\n\t            return number + output;\n\t        }\n\t    });\n\n\t    // Side effect imports\n\t    utils_hooks__hooks.lang = deprecate('moment.lang is deprecated. Use moment.locale instead.', locale_locales__getSetGlobalLocale);\n\t    utils_hooks__hooks.langData = deprecate('moment.langData is deprecated. Use moment.localeData instead.', locale_locales__getLocale);\n\n\t    var mathAbs = Math.abs;\n\n\t    function duration_abs__abs () {\n\t        var data           = this._data;\n\n\t        this._milliseconds = mathAbs(this._milliseconds);\n\t        this._days         = mathAbs(this._days);\n\t        this._months       = mathAbs(this._months);\n\n\t        data.milliseconds  = mathAbs(data.milliseconds);\n\t        data.seconds       = mathAbs(data.seconds);\n\t        data.minutes       = mathAbs(data.minutes);\n\t        data.hours         = mathAbs(data.hours);\n\t        data.months        = mathAbs(data.months);\n\t        data.years         = mathAbs(data.years);\n\n\t        return this;\n\t    }\n\n\t    function duration_add_subtract__addSubtract (duration, input, value, direction) {\n\t        var other = create__createDuration(input, value);\n\n\t        duration._milliseconds += direction * other._milliseconds;\n\t        duration._days         += direction * other._days;\n\t        duration._months       += direction * other._months;\n\n\t        return duration._bubble();\n\t    }\n\n\t    // supports only 2.0-style add(1, 's') or add(duration)\n\t    function duration_add_subtract__add (input, value) {\n\t        return duration_add_subtract__addSubtract(this, input, value, 1);\n\t    }\n\n\t    // supports only 2.0-style subtract(1, 's') or subtract(duration)\n\t    function duration_add_subtract__subtract (input, value) {\n\t        return duration_add_subtract__addSubtract(this, input, value, -1);\n\t    }\n\n\t    function absCeil (number) {\n\t        if (number < 0) {\n\t            return Math.floor(number);\n\t        } else {\n\t            return Math.ceil(number);\n\t        }\n\t    }\n\n\t    function bubble () {\n\t        var milliseconds = this._milliseconds;\n\t        var days         = this._days;\n\t        var months       = this._months;\n\t        var data         = this._data;\n\t        var seconds, minutes, hours, years, monthsFromDays;\n\n\t        // if we have a mix of positive and negative values, bubble down first\n\t        // check: https://github.com/moment/moment/issues/2166\n\t        if (!((milliseconds >= 0 && days >= 0 && months >= 0) ||\n\t                (milliseconds <= 0 && days <= 0 && months <= 0))) {\n\t            milliseconds += absCeil(monthsToDays(months) + days) * 864e5;\n\t            days = 0;\n\t            months = 0;\n\t        }\n\n\t        // The following code bubbles up values, see the tests for\n\t        // examples of what that means.\n\t        data.milliseconds = milliseconds % 1000;\n\n\t        seconds           = absFloor(milliseconds / 1000);\n\t        data.seconds      = seconds % 60;\n\n\t        minutes           = absFloor(seconds / 60);\n\t        data.minutes      = minutes % 60;\n\n\t        hours             = absFloor(minutes / 60);\n\t        data.hours        = hours % 24;\n\n\t        days += absFloor(hours / 24);\n\n\t        // convert days to months\n\t        monthsFromDays = absFloor(daysToMonths(days));\n\t        months += monthsFromDays;\n\t        days -= absCeil(monthsToDays(monthsFromDays));\n\n\t        // 12 months -> 1 year\n\t        years = absFloor(months / 12);\n\t        months %= 12;\n\n\t        data.days   = days;\n\t        data.months = months;\n\t        data.years  = years;\n\n\t        return this;\n\t    }\n\n\t    function daysToMonths (days) {\n\t        // 400 years have 146097 days (taking into account leap year rules)\n\t        // 400 years have 12 months === 4800\n\t        return days * 4800 / 146097;\n\t    }\n\n\t    function monthsToDays (months) {\n\t        // the reverse of daysToMonths\n\t        return months * 146097 / 4800;\n\t    }\n\n\t    function as (units) {\n\t        var days;\n\t        var months;\n\t        var milliseconds = this._milliseconds;\n\n\t        units = normalizeUnits(units);\n\n\t        if (units === 'month' || units === 'year') {\n\t            days   = this._days   + milliseconds / 864e5;\n\t            months = this._months + daysToMonths(days);\n\t            return units === 'month' ? months : months / 12;\n\t        } else {\n\t            // handle milliseconds separately because of floating point math errors (issue #1867)\n\t            days = this._days + Math.round(monthsToDays(this._months));\n\t            switch (units) {\n\t                case 'week'   : return days / 7     + milliseconds / 6048e5;\n\t                case 'day'    : return days         + milliseconds / 864e5;\n\t                case 'hour'   : return days * 24    + milliseconds / 36e5;\n\t                case 'minute' : return days * 1440  + milliseconds / 6e4;\n\t                case 'second' : return days * 86400 + milliseconds / 1000;\n\t                // Math.floor prevents floating point math errors here\n\t                case 'millisecond': return Math.floor(days * 864e5) + milliseconds;\n\t                default: throw new Error('Unknown unit ' + units);\n\t            }\n\t        }\n\t    }\n\n\t    // TODO: Use this.as('ms')?\n\t    function duration_as__valueOf () {\n\t        return (\n\t            this._milliseconds +\n\t            this._days * 864e5 +\n\t            (this._months % 12) * 2592e6 +\n\t            toInt(this._months / 12) * 31536e6\n\t        );\n\t    }\n\n\t    function makeAs (alias) {\n\t        return function () {\n\t            return this.as(alias);\n\t        };\n\t    }\n\n\t    var asMilliseconds = makeAs('ms');\n\t    var asSeconds      = makeAs('s');\n\t    var asMinutes      = makeAs('m');\n\t    var asHours        = makeAs('h');\n\t    var asDays         = makeAs('d');\n\t    var asWeeks        = makeAs('w');\n\t    var asMonths       = makeAs('M');\n\t    var asYears        = makeAs('y');\n\n\t    function duration_get__get (units) {\n\t        units = normalizeUnits(units);\n\t        return this[units + 's']();\n\t    }\n\n\t    function makeGetter(name) {\n\t        return function () {\n\t            return this._data[name];\n\t        };\n\t    }\n\n\t    var milliseconds = makeGetter('milliseconds');\n\t    var seconds      = makeGetter('seconds');\n\t    var minutes      = makeGetter('minutes');\n\t    var hours        = makeGetter('hours');\n\t    var days         = makeGetter('days');\n\t    var months       = makeGetter('months');\n\t    var years        = makeGetter('years');\n\n\t    function weeks () {\n\t        return absFloor(this.days() / 7);\n\t    }\n\n\t    var round = Math.round;\n\t    var thresholds = {\n\t        s: 45,  // seconds to minute\n\t        m: 45,  // minutes to hour\n\t        h: 22,  // hours to day\n\t        d: 26,  // days to month\n\t        M: 11   // months to year\n\t    };\n\n\t    // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize\n\t    function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) {\n\t        return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture);\n\t    }\n\n\t    function duration_humanize__relativeTime (posNegDuration, withoutSuffix, locale) {\n\t        var duration = create__createDuration(posNegDuration).abs();\n\t        var seconds  = round(duration.as('s'));\n\t        var minutes  = round(duration.as('m'));\n\t        var hours    = round(duration.as('h'));\n\t        var days     = round(duration.as('d'));\n\t        var months   = round(duration.as('M'));\n\t        var years    = round(duration.as('y'));\n\n\t        var a = seconds < thresholds.s && ['s', seconds]  ||\n\t                minutes <= 1           && ['m']           ||\n\t                minutes < thresholds.m && ['mm', minutes] ||\n\t                hours   <= 1           && ['h']           ||\n\t                hours   < thresholds.h && ['hh', hours]   ||\n\t                days    <= 1           && ['d']           ||\n\t                days    < thresholds.d && ['dd', days]    ||\n\t                months  <= 1           && ['M']           ||\n\t                months  < thresholds.M && ['MM', months]  ||\n\t                years   <= 1           && ['y']           || ['yy', years];\n\n\t        a[2] = withoutSuffix;\n\t        a[3] = +posNegDuration > 0;\n\t        a[4] = locale;\n\t        return substituteTimeAgo.apply(null, a);\n\t    }\n\n\t    // This function allows you to set a threshold for relative time strings\n\t    function duration_humanize__getSetRelativeTimeThreshold (threshold, limit) {\n\t        if (thresholds[threshold] === undefined) {\n\t            return false;\n\t        }\n\t        if (limit === undefined) {\n\t            return thresholds[threshold];\n\t        }\n\t        thresholds[threshold] = limit;\n\t        return true;\n\t    }\n\n\t    function humanize (withSuffix) {\n\t        var locale = this.localeData();\n\t        var output = duration_humanize__relativeTime(this, !withSuffix, locale);\n\n\t        if (withSuffix) {\n\t            output = locale.pastFuture(+this, output);\n\t        }\n\n\t        return locale.postformat(output);\n\t    }\n\n\t    var iso_string__abs = Math.abs;\n\n\t    function iso_string__toISOString() {\n\t        // for ISO strings we do not use the normal bubbling rules:\n\t        //  * milliseconds bubble up until they become hours\n\t        //  * days do not bubble at all\n\t        //  * months bubble up until they become years\n\t        // This is because there is no context-free conversion between hours and days\n\t        // (think of clock changes)\n\t        // and also not between days and months (28-31 days per month)\n\t        var seconds = iso_string__abs(this._milliseconds) / 1000;\n\t        var days         = iso_string__abs(this._days);\n\t        var months       = iso_string__abs(this._months);\n\t        var minutes, hours, years;\n\n\t        // 3600 seconds -> 60 minutes -> 1 hour\n\t        minutes           = absFloor(seconds / 60);\n\t        hours             = absFloor(minutes / 60);\n\t        seconds %= 60;\n\t        minutes %= 60;\n\n\t        // 12 months -> 1 year\n\t        years  = absFloor(months / 12);\n\t        months %= 12;\n\n\n\t        // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js\n\t        var Y = years;\n\t        var M = months;\n\t        var D = days;\n\t        var h = hours;\n\t        var m = minutes;\n\t        var s = seconds;\n\t        var total = this.asSeconds();\n\n\t        if (!total) {\n\t            // this is the same as C#'s (Noda) and python (isodate)...\n\t            // but not other JS (goog.date)\n\t            return 'P0D';\n\t        }\n\n\t        return (total < 0 ? '-' : '') +\n\t            'P' +\n\t            (Y ? Y + 'Y' : '') +\n\t            (M ? M + 'M' : '') +\n\t            (D ? D + 'D' : '') +\n\t            ((h || m || s) ? 'T' : '') +\n\t            (h ? h + 'H' : '') +\n\t            (m ? m + 'M' : '') +\n\t            (s ? s + 'S' : '');\n\t    }\n\n\t    var duration_prototype__proto = Duration.prototype;\n\n\t    duration_prototype__proto.abs            = duration_abs__abs;\n\t    duration_prototype__proto.add            = duration_add_subtract__add;\n\t    duration_prototype__proto.subtract       = duration_add_subtract__subtract;\n\t    duration_prototype__proto.as             = as;\n\t    duration_prototype__proto.asMilliseconds = asMilliseconds;\n\t    duration_prototype__proto.asSeconds      = asSeconds;\n\t    duration_prototype__proto.asMinutes      = asMinutes;\n\t    duration_prototype__proto.asHours        = asHours;\n\t    duration_prototype__proto.asDays         = asDays;\n\t    duration_prototype__proto.asWeeks        = asWeeks;\n\t    duration_prototype__proto.asMonths       = asMonths;\n\t    duration_prototype__proto.asYears        = asYears;\n\t    duration_prototype__proto.valueOf        = duration_as__valueOf;\n\t    duration_prototype__proto._bubble        = bubble;\n\t    duration_prototype__proto.get            = duration_get__get;\n\t    duration_prototype__proto.milliseconds   = milliseconds;\n\t    duration_prototype__proto.seconds        = seconds;\n\t    duration_prototype__proto.minutes        = minutes;\n\t    duration_prototype__proto.hours          = hours;\n\t    duration_prototype__proto.days           = days;\n\t    duration_prototype__proto.weeks          = weeks;\n\t    duration_prototype__proto.months         = months;\n\t    duration_prototype__proto.years          = years;\n\t    duration_prototype__proto.humanize       = humanize;\n\t    duration_prototype__proto.toISOString    = iso_string__toISOString;\n\t    duration_prototype__proto.toString       = iso_string__toISOString;\n\t    duration_prototype__proto.toJSON         = iso_string__toISOString;\n\t    duration_prototype__proto.locale         = locale;\n\t    duration_prototype__proto.localeData     = localeData;\n\n\t    // Deprecations\n\t    duration_prototype__proto.toIsoString = deprecate('toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)', iso_string__toISOString);\n\t    duration_prototype__proto.lang = lang;\n\n\t    // Side effect imports\n\n\t    // FORMATTING\n\n\t    addFormatToken('X', 0, 0, 'unix');\n\t    addFormatToken('x', 0, 0, 'valueOf');\n\n\t    // PARSING\n\n\t    addRegexToken('x', matchSigned);\n\t    addRegexToken('X', matchTimestamp);\n\t    addParseToken('X', function (input, array, config) {\n\t        config._d = new Date(parseFloat(input, 10) * 1000);\n\t    });\n\t    addParseToken('x', function (input, array, config) {\n\t        config._d = new Date(toInt(input));\n\t    });\n\n\t    // Side effect imports\n\n\n\t    utils_hooks__hooks.version = '2.11.1';\n\n\t    setHookCallback(local__createLocal);\n\n\t    utils_hooks__hooks.fn                    = momentPrototype;\n\t    utils_hooks__hooks.min                   = min;\n\t    utils_hooks__hooks.max                   = max;\n\t    utils_hooks__hooks.now                   = now;\n\t    utils_hooks__hooks.utc                   = create_utc__createUTC;\n\t    utils_hooks__hooks.unix                  = moment__createUnix;\n\t    utils_hooks__hooks.months                = lists__listMonths;\n\t    utils_hooks__hooks.isDate                = isDate;\n\t    utils_hooks__hooks.locale                = locale_locales__getSetGlobalLocale;\n\t    utils_hooks__hooks.invalid               = valid__createInvalid;\n\t    utils_hooks__hooks.duration              = create__createDuration;\n\t    utils_hooks__hooks.isMoment              = isMoment;\n\t    utils_hooks__hooks.weekdays              = lists__listWeekdays;\n\t    utils_hooks__hooks.parseZone             = moment__createInZone;\n\t    utils_hooks__hooks.localeData            = locale_locales__getLocale;\n\t    utils_hooks__hooks.isDuration            = isDuration;\n\t    utils_hooks__hooks.monthsShort           = lists__listMonthsShort;\n\t    utils_hooks__hooks.weekdaysMin           = lists__listWeekdaysMin;\n\t    utils_hooks__hooks.defineLocale          = defineLocale;\n\t    utils_hooks__hooks.weekdaysShort         = lists__listWeekdaysShort;\n\t    utils_hooks__hooks.normalizeUnits        = normalizeUnits;\n\t    utils_hooks__hooks.relativeTimeThreshold = duration_humanize__getSetRelativeTimeThreshold;\n\t    utils_hooks__hooks.prototype             = momentPrototype;\n\n\t    var _moment = utils_hooks__hooks;\n\n\t    return _moment;\n\n\t}));\n\t/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(24)(module)))\n\n/***/ },\n/* 24 */\n/***/ function(module, exports) {\n\n\tmodule.exports = function(module) {\r\n\t\tif(!module.webpackPolyfill) {\r\n\t\t\tmodule.deprecate = function() {};\r\n\t\t\tmodule.paths = [];\r\n\t\t\t// module.parent = undefined by default\r\n\t\t\tmodule.children = [];\r\n\t\t\tmodule.webpackPolyfill = 1;\r\n\t\t}\r\n\t\treturn module;\r\n\t}\r\n\n\n/***/ },\n/* 25 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar map = {\n\t\t\"./af\": 26,\n\t\t\"./af.js\": 26,\n\t\t\"./ar\": 27,\n\t\t\"./ar-ma\": 28,\n\t\t\"./ar-ma.js\": 28,\n\t\t\"./ar-sa\": 29,\n\t\t\"./ar-sa.js\": 29,\n\t\t\"./ar-tn\": 30,\n\t\t\"./ar-tn.js\": 30,\n\t\t\"./ar.js\": 27,\n\t\t\"./az\": 31,\n\t\t\"./az.js\": 31,\n\t\t\"./be\": 32,\n\t\t\"./be.js\": 32,\n\t\t\"./bg\": 33,\n\t\t\"./bg.js\": 33,\n\t\t\"./bn\": 34,\n\t\t\"./bn.js\": 34,\n\t\t\"./bo\": 35,\n\t\t\"./bo.js\": 35,\n\t\t\"./br\": 36,\n\t\t\"./br.js\": 36,\n\t\t\"./bs\": 37,\n\t\t\"./bs.js\": 37,\n\t\t\"./ca\": 38,\n\t\t\"./ca.js\": 38,\n\t\t\"./cs\": 39,\n\t\t\"./cs.js\": 39,\n\t\t\"./cv\": 40,\n\t\t\"./cv.js\": 40,\n\t\t\"./cy\": 41,\n\t\t\"./cy.js\": 41,\n\t\t\"./da\": 42,\n\t\t\"./da.js\": 42,\n\t\t\"./de\": 43,\n\t\t\"./de-at\": 44,\n\t\t\"./de-at.js\": 44,\n\t\t\"./de.js\": 43,\n\t\t\"./dv\": 45,\n\t\t\"./dv.js\": 45,\n\t\t\"./el\": 46,\n\t\t\"./el.js\": 46,\n\t\t\"./en-au\": 47,\n\t\t\"./en-au.js\": 47,\n\t\t\"./en-ca\": 48,\n\t\t\"./en-ca.js\": 48,\n\t\t\"./en-gb\": 49,\n\t\t\"./en-gb.js\": 49,\n\t\t\"./en-ie\": 50,\n\t\t\"./en-ie.js\": 50,\n\t\t\"./en-nz\": 51,\n\t\t\"./en-nz.js\": 51,\n\t\t\"./eo\": 52,\n\t\t\"./eo.js\": 52,\n\t\t\"./es\": 53,\n\t\t\"./es.js\": 53,\n\t\t\"./et\": 54,\n\t\t\"./et.js\": 54,\n\t\t\"./eu\": 55,\n\t\t\"./eu.js\": 55,\n\t\t\"./fa\": 56,\n\t\t\"./fa.js\": 56,\n\t\t\"./fi\": 57,\n\t\t\"./fi.js\": 57,\n\t\t\"./fo\": 58,\n\t\t\"./fo.js\": 58,\n\t\t\"./fr\": 59,\n\t\t\"./fr-ca\": 60,\n\t\t\"./fr-ca.js\": 60,\n\t\t\"./fr-ch\": 61,\n\t\t\"./fr-ch.js\": 61,\n\t\t\"./fr.js\": 59,\n\t\t\"./fy\": 62,\n\t\t\"./fy.js\": 62,\n\t\t\"./gd\": 63,\n\t\t\"./gd.js\": 63,\n\t\t\"./gl\": 64,\n\t\t\"./gl.js\": 64,\n\t\t\"./he\": 65,\n\t\t\"./he.js\": 65,\n\t\t\"./hi\": 66,\n\t\t\"./hi.js\": 66,\n\t\t\"./hr\": 67,\n\t\t\"./hr.js\": 67,\n\t\t\"./hu\": 68,\n\t\t\"./hu.js\": 68,\n\t\t\"./hy-am\": 69,\n\t\t\"./hy-am.js\": 69,\n\t\t\"./id\": 70,\n\t\t\"./id.js\": 70,\n\t\t\"./is\": 71,\n\t\t\"./is.js\": 71,\n\t\t\"./it\": 72,\n\t\t\"./it.js\": 72,\n\t\t\"./ja\": 73,\n\t\t\"./ja.js\": 73,\n\t\t\"./jv\": 74,\n\t\t\"./jv.js\": 74,\n\t\t\"./ka\": 75,\n\t\t\"./ka.js\": 75,\n\t\t\"./kk\": 76,\n\t\t\"./kk.js\": 76,\n\t\t\"./km\": 77,\n\t\t\"./km.js\": 77,\n\t\t\"./ko\": 78,\n\t\t\"./ko.js\": 78,\n\t\t\"./lb\": 79,\n\t\t\"./lb.js\": 79,\n\t\t\"./lo\": 80,\n\t\t\"./lo.js\": 80,\n\t\t\"./lt\": 81,\n\t\t\"./lt.js\": 81,\n\t\t\"./lv\": 82,\n\t\t\"./lv.js\": 82,\n\t\t\"./me\": 83,\n\t\t\"./me.js\": 83,\n\t\t\"./mk\": 84,\n\t\t\"./mk.js\": 84,\n\t\t\"./ml\": 85,\n\t\t\"./ml.js\": 85,\n\t\t\"./mr\": 86,\n\t\t\"./mr.js\": 86,\n\t\t\"./ms\": 87,\n\t\t\"./ms-my\": 88,\n\t\t\"./ms-my.js\": 88,\n\t\t\"./ms.js\": 87,\n\t\t\"./my\": 89,\n\t\t\"./my.js\": 89,\n\t\t\"./nb\": 90,\n\t\t\"./nb.js\": 90,\n\t\t\"./ne\": 91,\n\t\t\"./ne.js\": 91,\n\t\t\"./nl\": 92,\n\t\t\"./nl.js\": 92,\n\t\t\"./nn\": 93,\n\t\t\"./nn.js\": 93,\n\t\t\"./pl\": 94,\n\t\t\"./pl.js\": 94,\n\t\t\"./pt\": 95,\n\t\t\"./pt-br\": 96,\n\t\t\"./pt-br.js\": 96,\n\t\t\"./pt.js\": 95,\n\t\t\"./ro\": 97,\n\t\t\"./ro.js\": 97,\n\t\t\"./ru\": 98,\n\t\t\"./ru.js\": 98,\n\t\t\"./se\": 99,\n\t\t\"./se.js\": 99,\n\t\t\"./si\": 100,\n\t\t\"./si.js\": 100,\n\t\t\"./sk\": 101,\n\t\t\"./sk.js\": 101,\n\t\t\"./sl\": 102,\n\t\t\"./sl.js\": 102,\n\t\t\"./sq\": 103,\n\t\t\"./sq.js\": 103,\n\t\t\"./sr\": 104,\n\t\t\"./sr-cyrl\": 105,\n\t\t\"./sr-cyrl.js\": 105,\n\t\t\"./sr.js\": 104,\n\t\t\"./sv\": 106,\n\t\t\"./sv.js\": 106,\n\t\t\"./sw\": 107,\n\t\t\"./sw.js\": 107,\n\t\t\"./ta\": 108,\n\t\t\"./ta.js\": 108,\n\t\t\"./te\": 109,\n\t\t\"./te.js\": 109,\n\t\t\"./th\": 110,\n\t\t\"./th.js\": 110,\n\t\t\"./tl-ph\": 111,\n\t\t\"./tl-ph.js\": 111,\n\t\t\"./tlh\": 112,\n\t\t\"./tlh.js\": 112,\n\t\t\"./tr\": 113,\n\t\t\"./tr.js\": 113,\n\t\t\"./tzl\": 114,\n\t\t\"./tzl.js\": 114,\n\t\t\"./tzm\": 115,\n\t\t\"./tzm-latn\": 116,\n\t\t\"./tzm-latn.js\": 116,\n\t\t\"./tzm.js\": 115,\n\t\t\"./uk\": 117,\n\t\t\"./uk.js\": 117,\n\t\t\"./uz\": 118,\n\t\t\"./uz.js\": 118,\n\t\t\"./vi\": 119,\n\t\t\"./vi.js\": 119,\n\t\t\"./zh-cn\": 120,\n\t\t\"./zh-cn.js\": 120,\n\t\t\"./zh-tw\": 121,\n\t\t\"./zh-tw.js\": 121\n\t};\n\tfunction webpackContext(req) {\n\t\treturn __webpack_require__(webpackContextResolve(req));\n\t};\n\tfunction webpackContextResolve(req) {\n\t\treturn map[req] || (function() { throw new Error(\"Cannot find module '\" + req + \"'.\") }());\n\t};\n\twebpackContext.keys = function webpackContextKeys() {\n\t\treturn Object.keys(map);\n\t};\n\twebpackContext.resolve = webpackContextResolve;\n\tmodule.exports = webpackContext;\n\twebpackContext.id = 25;\n\n\n/***/ },\n/* 26 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : afrikaans (af)\n\t//! author : Werner Mollentze : https://github.com/wernerm\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var af = moment.defineLocale('af', {\n\t        months : 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split('_'),\n\t        monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'),\n\t        weekdays : 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split('_'),\n\t        weekdaysShort : 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'),\n\t        weekdaysMin : 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'),\n\t        meridiemParse: /vm|nm/i,\n\t        isPM : function (input) {\n\t            return /^nm$/i.test(input);\n\t        },\n\t        meridiem : function (hours, minutes, isLower) {\n\t            if (hours < 12) {\n\t                return isLower ? 'vm' : 'VM';\n\t            } else {\n\t                return isLower ? 'nm' : 'NM';\n\t            }\n\t        },\n\t        longDateFormat : {\n\t            LT : 'HH:mm',\n\t            LTS : 'HH:mm:ss',\n\t            L : 'DD/MM/YYYY',\n\t            LL : 'D MMMM YYYY',\n\t            LLL : 'D MMMM YYYY HH:mm',\n\t            LLLL : 'dddd, D MMMM YYYY HH:mm'\n\t        },\n\t        calendar : {\n\t            sameDay : '[Vandag om] LT',\n\t            nextDay : '[Môre om] LT',\n\t            nextWeek : 'dddd [om] LT',\n\t            lastDay : '[Gister om] LT',\n\t            lastWeek : '[Laas] dddd [om] LT',\n\t            sameElse : 'L'\n\t        },\n\t        relativeTime : {\n\t            future : 'oor %s',\n\t            past : '%s gelede',\n\t            s : '\\'n paar sekondes',\n\t            m : '\\'n minuut',\n\t            mm : '%d minute',\n\t            h : '\\'n uur',\n\t            hh : '%d ure',\n\t            d : '\\'n dag',\n\t            dd : '%d dae',\n\t            M : '\\'n maand',\n\t            MM : '%d maande',\n\t            y : '\\'n jaar',\n\t            yy : '%d jaar'\n\t        },\n\t        ordinalParse: /\\d{1,2}(ste|de)/,\n\t        ordinal : function (number) {\n\t            return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de'); // Thanks to Joris Röling : https://github.com/jjupiter\n\t        },\n\t        week : {\n\t            dow : 1, // Maandag is die eerste dag van die week.\n\t            doy : 4  // Die week wat die 4de Januarie bevat is die eerste week van die jaar.\n\t        }\n\t    });\n\n\t    return af;\n\n\t}));\n\n/***/ },\n/* 27 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! Locale: Arabic (ar)\n\t//! Author: Abdel Said: https://github.com/abdelsaid\n\t//! Changes in months, weekdays: Ahmed Elkhatib\n\t//! Native plural forms: forabi https://github.com/forabi\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var symbolMap = {\n\t        '1': '١',\n\t        '2': '٢',\n\t        '3': '٣',\n\t        '4': '٤',\n\t        '5': '٥',\n\t        '6': '٦',\n\t        '7': '٧',\n\t        '8': '٨',\n\t        '9': '٩',\n\t        '0': '٠'\n\t    }, numberMap = {\n\t        '١': '1',\n\t        '٢': '2',\n\t        '٣': '3',\n\t        '٤': '4',\n\t        '٥': '5',\n\t        '٦': '6',\n\t        '٧': '7',\n\t        '٨': '8',\n\t        '٩': '9',\n\t        '٠': '0'\n\t    }, pluralForm = function (n) {\n\t        return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5;\n\t    }, plurals = {\n\t        s : ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],\n\t        m : ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],\n\t        h : ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],\n\t        d : ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],\n\t        M : ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],\n\t        y : ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']\n\t    }, pluralize = function (u) {\n\t        return function (number, withoutSuffix, string, isFuture) {\n\t            var f = pluralForm(number),\n\t                str = plurals[u][pluralForm(number)];\n\t            if (f === 2) {\n\t                str = str[withoutSuffix ? 0 : 1];\n\t            }\n\t            return str.replace(/%d/i, number);\n\t        };\n\t    }, months = [\n\t        'كانون الثاني يناير',\n\t        'شباط فبراير',\n\t        'آذار مارس',\n\t        'نيسان أبريل',\n\t        'أيار مايو',\n\t        'حزيران يونيو',\n\t        'تموز يوليو',\n\t        'آب أغسطس',\n\t        'أيلول سبتمبر',\n\t        'تشرين الأول أكتوبر',\n\t        'تشرين الثاني نوفمبر',\n\t        'كانون الأول ديسمبر'\n\t    ];\n\n\t    var ar = moment.defineLocale('ar', {\n\t        months : months,\n\t        monthsShort : months,\n\t        weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),\n\t        weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),\n\t        weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'HH:mm',\n\t            LTS : 'HH:mm:ss',\n\t            L : 'D/\\u200FM/\\u200FYYYY',\n\t            LL : 'D MMMM YYYY',\n\t            LLL : 'D MMMM YYYY HH:mm',\n\t            LLLL : 'dddd D MMMM YYYY HH:mm'\n\t        },\n\t        meridiemParse: /ص|م/,\n\t        isPM : function (input) {\n\t            return 'م' === input;\n\t        },\n\t        meridiem : function (hour, minute, isLower) {\n\t            if (hour < 12) {\n\t                return 'ص';\n\t            } else {\n\t                return 'م';\n\t            }\n\t        },\n\t        calendar : {\n\t            sameDay: '[اليوم عند الساعة] LT',\n\t            nextDay: '[غدًا عند الساعة] LT',\n\t            nextWeek: 'dddd [عند الساعة] LT',\n\t            lastDay: '[أمس عند الساعة] LT',\n\t            lastWeek: 'dddd [عند الساعة] LT',\n\t            sameElse: 'L'\n\t        },\n\t        relativeTime : {\n\t            future : 'بعد %s',\n\t            past : 'منذ %s',\n\t            s : pluralize('s'),\n\t            m : pluralize('m'),\n\t            mm : pluralize('m'),\n\t            h : pluralize('h'),\n\t            hh : pluralize('h'),\n\t            d : pluralize('d'),\n\t            dd : pluralize('d'),\n\t            M : pluralize('M'),\n\t            MM : pluralize('M'),\n\t            y : pluralize('y'),\n\t            yy : pluralize('y')\n\t        },\n\t        preparse: function (string) {\n\t            return string.replace(/\\u200f/g, '').replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {\n\t                return numberMap[match];\n\t            }).replace(/،/g, ',');\n\t        },\n\t        postformat: function (string) {\n\t            return string.replace(/\\d/g, function (match) {\n\t                return symbolMap[match];\n\t            }).replace(/,/g, '،');\n\t        },\n\t        week : {\n\t            dow : 6, // Saturday is the first day of the week.\n\t            doy : 12  // The week that contains Jan 1st is the first week of the year.\n\t        }\n\t    });\n\n\t    return ar;\n\n\t}));\n\n/***/ },\n/* 28 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : Moroccan Arabic (ar-ma)\n\t//! author : ElFadili Yassine : https://github.com/ElFadiliY\n\t//! author : Abdel Said : https://github.com/abdelsaid\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var ar_ma = moment.defineLocale('ar-ma', {\n\t        months : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),\n\t        monthsShort : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),\n\t        weekdays : 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),\n\t        weekdaysShort : 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),\n\t        weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'HH:mm',\n\t            LTS : 'HH:mm:ss',\n\t            L : 'DD/MM/YYYY',\n\t            LL : 'D MMMM YYYY',\n\t            LLL : 'D MMMM YYYY HH:mm',\n\t            LLLL : 'dddd D MMMM YYYY HH:mm'\n\t        },\n\t        calendar : {\n\t            sameDay: '[اليوم على الساعة] LT',\n\t            nextDay: '[غدا على الساعة] LT',\n\t            nextWeek: 'dddd [على الساعة] LT',\n\t            lastDay: '[أمس على الساعة] LT',\n\t            lastWeek: 'dddd [على الساعة] LT',\n\t            sameElse: 'L'\n\t        },\n\t        relativeTime : {\n\t            future : 'في %s',\n\t            past : 'منذ %s',\n\t            s : 'ثوان',\n\t            m : 'دقيقة',\n\t            mm : '%d دقائق',\n\t            h : 'ساعة',\n\t            hh : '%d ساعات',\n\t            d : 'يوم',\n\t            dd : '%d أيام',\n\t            M : 'شهر',\n\t            MM : '%d أشهر',\n\t            y : 'سنة',\n\t            yy : '%d سنوات'\n\t        },\n\t        week : {\n\t            dow : 6, // Saturday is the first day of the week.\n\t            doy : 12  // The week that contains Jan 1st is the first week of the year.\n\t        }\n\t    });\n\n\t    return ar_ma;\n\n\t}));\n\n/***/ },\n/* 29 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : Arabic Saudi Arabia (ar-sa)\n\t//! author : Suhail Alkowaileet : https://github.com/xsoh\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var symbolMap = {\n\t        '1': '١',\n\t        '2': '٢',\n\t        '3': '٣',\n\t        '4': '٤',\n\t        '5': '٥',\n\t        '6': '٦',\n\t        '7': '٧',\n\t        '8': '٨',\n\t        '9': '٩',\n\t        '0': '٠'\n\t    }, numberMap = {\n\t        '١': '1',\n\t        '٢': '2',\n\t        '٣': '3',\n\t        '٤': '4',\n\t        '٥': '5',\n\t        '٦': '6',\n\t        '٧': '7',\n\t        '٨': '8',\n\t        '٩': '9',\n\t        '٠': '0'\n\t    };\n\n\t    var ar_sa = moment.defineLocale('ar-sa', {\n\t        months : 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),\n\t        monthsShort : 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),\n\t        weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),\n\t        weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),\n\t        weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'HH:mm',\n\t            LTS : 'HH:mm:ss',\n\t            L : 'DD/MM/YYYY',\n\t            LL : 'D MMMM YYYY',\n\t            LLL : 'D MMMM YYYY HH:mm',\n\t            LLLL : 'dddd D MMMM YYYY HH:mm'\n\t        },\n\t        meridiemParse: /ص|م/,\n\t        isPM : function (input) {\n\t            return 'م' === input;\n\t        },\n\t        meridiem : function (hour, minute, isLower) {\n\t            if (hour < 12) {\n\t                return 'ص';\n\t            } else {\n\t                return 'م';\n\t            }\n\t        },\n\t        calendar : {\n\t            sameDay: '[اليوم على الساعة] LT',\n\t            nextDay: '[غدا على الساعة] LT',\n\t            nextWeek: 'dddd [على الساعة] LT',\n\t            lastDay: '[أمس على الساعة] LT',\n\t            lastWeek: 'dddd [على الساعة] LT',\n\t            sameElse: 'L'\n\t        },\n\t        relativeTime : {\n\t            future : 'في %s',\n\t            past : 'منذ %s',\n\t            s : 'ثوان',\n\t            m : 'دقيقة',\n\t            mm : '%d دقائق',\n\t            h : 'ساعة',\n\t            hh : '%d ساعات',\n\t            d : 'يوم',\n\t            dd : '%d أيام',\n\t            M : 'شهر',\n\t            MM : '%d أشهر',\n\t            y : 'سنة',\n\t            yy : '%d سنوات'\n\t        },\n\t        preparse: function (string) {\n\t            return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {\n\t                return numberMap[match];\n\t            }).replace(/،/g, ',');\n\t        },\n\t        postformat: function (string) {\n\t            return string.replace(/\\d/g, function (match) {\n\t                return symbolMap[match];\n\t            }).replace(/,/g, '،');\n\t        },\n\t        week : {\n\t            dow : 6, // Saturday is the first day of the week.\n\t            doy : 12  // The week that contains Jan 1st is the first week of the year.\n\t        }\n\t    });\n\n\t    return ar_sa;\n\n\t}));\n\n/***/ },\n/* 30 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale  : Tunisian Arabic (ar-tn)\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var ar_tn = moment.defineLocale('ar-tn', {\n\t        months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),\n\t        monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),\n\t        weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),\n\t        weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),\n\t        weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),\n\t        longDateFormat: {\n\t            LT: 'HH:mm',\n\t            LTS: 'HH:mm:ss',\n\t            L: 'DD/MM/YYYY',\n\t            LL: 'D MMMM YYYY',\n\t            LLL: 'D MMMM YYYY HH:mm',\n\t            LLLL: 'dddd D MMMM YYYY HH:mm'\n\t        },\n\t        calendar: {\n\t            sameDay: '[اليوم على الساعة] LT',\n\t            nextDay: '[غدا على الساعة] LT',\n\t            nextWeek: 'dddd [على الساعة] LT',\n\t            lastDay: '[أمس على الساعة] LT',\n\t            lastWeek: 'dddd [على الساعة] LT',\n\t            sameElse: 'L'\n\t        },\n\t        relativeTime: {\n\t            future: 'في %s',\n\t            past: 'منذ %s',\n\t            s: 'ثوان',\n\t            m: 'دقيقة',\n\t            mm: '%d دقائق',\n\t            h: 'ساعة',\n\t            hh: '%d ساعات',\n\t            d: 'يوم',\n\t            dd: '%d أيام',\n\t            M: 'شهر',\n\t            MM: '%d أشهر',\n\t            y: 'سنة',\n\t            yy: '%d سنوات'\n\t        },\n\t        week: {\n\t            dow: 1, // Monday is the first day of the week.\n\t            doy: 4 // The week that contains Jan 4th is the first week of the year.\n\t        }\n\t    });\n\n\t    return ar_tn;\n\n\t}));\n\n/***/ },\n/* 31 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : azerbaijani (az)\n\t//! author : topchiyev : https://github.com/topchiyev\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var suffixes = {\n\t        1: '-inci',\n\t        5: '-inci',\n\t        8: '-inci',\n\t        70: '-inci',\n\t        80: '-inci',\n\t        2: '-nci',\n\t        7: '-nci',\n\t        20: '-nci',\n\t        50: '-nci',\n\t        3: '-üncü',\n\t        4: '-üncü',\n\t        100: '-üncü',\n\t        6: '-ncı',\n\t        9: '-uncu',\n\t        10: '-uncu',\n\t        30: '-uncu',\n\t        60: '-ıncı',\n\t        90: '-ıncı'\n\t    };\n\n\t    var az = moment.defineLocale('az', {\n\t        months : 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split('_'),\n\t        monthsShort : 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'),\n\t        weekdays : 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split('_'),\n\t        weekdaysShort : 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'),\n\t        weekdaysMin : 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'HH:mm',\n\t            LTS : 'HH:mm:ss',\n\t            L : 'DD.MM.YYYY',\n\t            LL : 'D MMMM YYYY',\n\t            LLL : 'D MMMM YYYY HH:mm',\n\t            LLLL : 'dddd, D MMMM YYYY HH:mm'\n\t        },\n\t        calendar : {\n\t            sameDay : '[bugün saat] LT',\n\t            nextDay : '[sabah saat] LT',\n\t            nextWeek : '[gələn həftə] dddd [saat] LT',\n\t            lastDay : '[dünən] LT',\n\t            lastWeek : '[keçən həftə] dddd [saat] LT',\n\t            sameElse : 'L'\n\t        },\n\t        relativeTime : {\n\t            future : '%s sonra',\n\t            past : '%s əvvəl',\n\t            s : 'birneçə saniyyə',\n\t            m : 'bir dəqiqə',\n\t            mm : '%d dəqiqə',\n\t            h : 'bir saat',\n\t            hh : '%d saat',\n\t            d : 'bir gün',\n\t            dd : '%d gün',\n\t            M : 'bir ay',\n\t            MM : '%d ay',\n\t            y : 'bir il',\n\t            yy : '%d il'\n\t        },\n\t        meridiemParse: /gecə|səhər|gündüz|axşam/,\n\t        isPM : function (input) {\n\t            return /^(gündüz|axşam)$/.test(input);\n\t        },\n\t        meridiem : function (hour, minute, isLower) {\n\t            if (hour < 4) {\n\t                return 'gecə';\n\t            } else if (hour < 12) {\n\t                return 'səhər';\n\t            } else if (hour < 17) {\n\t                return 'gündüz';\n\t            } else {\n\t                return 'axşam';\n\t            }\n\t        },\n\t        ordinalParse: /\\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,\n\t        ordinal : function (number) {\n\t            if (number === 0) {  // special case for zero\n\t                return number + '-ıncı';\n\t            }\n\t            var a = number % 10,\n\t                b = number % 100 - a,\n\t                c = number >= 100 ? 100 : null;\n\t            return number + (suffixes[a] || suffixes[b] || suffixes[c]);\n\t        },\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 7  // The week that contains Jan 1st is the first week of the year.\n\t        }\n\t    });\n\n\t    return az;\n\n\t}));\n\n/***/ },\n/* 32 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : belarusian (be)\n\t//! author : Dmitry Demidov : https://github.com/demidov91\n\t//! author: Praleska: http://praleska.pro/\n\t//! Author : Menelion Elensúle : https://github.com/Oire\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    function plural(word, num) {\n\t        var forms = word.split('_');\n\t        return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]);\n\t    }\n\t    function relativeTimeWithPlural(number, withoutSuffix, key) {\n\t        var format = {\n\t            'mm': withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін',\n\t            'hh': withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін',\n\t            'dd': 'дзень_дні_дзён',\n\t            'MM': 'месяц_месяцы_месяцаў',\n\t            'yy': 'год_гады_гадоў'\n\t        };\n\t        if (key === 'm') {\n\t            return withoutSuffix ? 'хвіліна' : 'хвіліну';\n\t        }\n\t        else if (key === 'h') {\n\t            return withoutSuffix ? 'гадзіна' : 'гадзіну';\n\t        }\n\t        else {\n\t            return number + ' ' + plural(format[key], +number);\n\t        }\n\t    }\n\n\t    var be = moment.defineLocale('be', {\n\t        months : {\n\t            format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split('_'),\n\t            standalone: 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split('_')\n\t        },\n\t        monthsShort : 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split('_'),\n\t        weekdays : {\n\t            format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split('_'),\n\t            standalone: 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split('_'),\n\t            isFormat: /\\[ ?[Вв] ?(?:мінулую|наступную)? ?\\] ?dddd/\n\t        },\n\t        weekdaysShort : 'нд_пн_ат_ср_чц_пт_сб'.split('_'),\n\t        weekdaysMin : 'нд_пн_ат_ср_чц_пт_сб'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'HH:mm',\n\t            LTS : 'HH:mm:ss',\n\t            L : 'DD.MM.YYYY',\n\t            LL : 'D MMMM YYYY г.',\n\t            LLL : 'D MMMM YYYY г., HH:mm',\n\t            LLLL : 'dddd, D MMMM YYYY г., HH:mm'\n\t        },\n\t        calendar : {\n\t            sameDay: '[Сёння ў] LT',\n\t            nextDay: '[Заўтра ў] LT',\n\t            lastDay: '[Учора ў] LT',\n\t            nextWeek: function () {\n\t                return '[У] dddd [ў] LT';\n\t            },\n\t            lastWeek: function () {\n\t                switch (this.day()) {\n\t                case 0:\n\t                case 3:\n\t                case 5:\n\t                case 6:\n\t                    return '[У мінулую] dddd [ў] LT';\n\t                case 1:\n\t                case 2:\n\t                case 4:\n\t                    return '[У мінулы] dddd [ў] LT';\n\t                }\n\t            },\n\t            sameElse: 'L'\n\t        },\n\t        relativeTime : {\n\t            future : 'праз %s',\n\t            past : '%s таму',\n\t            s : 'некалькі секунд',\n\t            m : relativeTimeWithPlural,\n\t            mm : relativeTimeWithPlural,\n\t            h : relativeTimeWithPlural,\n\t            hh : relativeTimeWithPlural,\n\t            d : 'дзень',\n\t            dd : relativeTimeWithPlural,\n\t            M : 'месяц',\n\t            MM : relativeTimeWithPlural,\n\t            y : 'год',\n\t            yy : relativeTimeWithPlural\n\t        },\n\t        meridiemParse: /ночы|раніцы|дня|вечара/,\n\t        isPM : function (input) {\n\t            return /^(дня|вечара)$/.test(input);\n\t        },\n\t        meridiem : function (hour, minute, isLower) {\n\t            if (hour < 4) {\n\t                return 'ночы';\n\t            } else if (hour < 12) {\n\t                return 'раніцы';\n\t            } else if (hour < 17) {\n\t                return 'дня';\n\t            } else {\n\t                return 'вечара';\n\t            }\n\t        },\n\t        ordinalParse: /\\d{1,2}-(і|ы|га)/,\n\t        ordinal: function (number, period) {\n\t            switch (period) {\n\t            case 'M':\n\t            case 'd':\n\t            case 'DDD':\n\t            case 'w':\n\t            case 'W':\n\t                return (number % 10 === 2 || number % 10 === 3) && (number % 100 !== 12 && number % 100 !== 13) ? number + '-і' : number + '-ы';\n\t            case 'D':\n\t                return number + '-га';\n\t            default:\n\t                return number;\n\t            }\n\t        },\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 7  // The week that contains Jan 1st is the first week of the year.\n\t        }\n\t    });\n\n\t    return be;\n\n\t}));\n\n/***/ },\n/* 33 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : bulgarian (bg)\n\t//! author : Krasen Borisov : https://github.com/kraz\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var bg = moment.defineLocale('bg', {\n\t        months : 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split('_'),\n\t        monthsShort : 'янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'),\n\t        weekdays : 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split('_'),\n\t        weekdaysShort : 'нед_пон_вто_сря_чет_пет_съб'.split('_'),\n\t        weekdaysMin : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'H:mm',\n\t            LTS : 'H:mm:ss',\n\t            L : 'D.MM.YYYY',\n\t            LL : 'D MMMM YYYY',\n\t            LLL : 'D MMMM YYYY H:mm',\n\t            LLLL : 'dddd, D MMMM YYYY H:mm'\n\t        },\n\t        calendar : {\n\t            sameDay : '[Днес в] LT',\n\t            nextDay : '[Утре в] LT',\n\t            nextWeek : 'dddd [в] LT',\n\t            lastDay : '[Вчера в] LT',\n\t            lastWeek : function () {\n\t                switch (this.day()) {\n\t                case 0:\n\t                case 3:\n\t                case 6:\n\t                    return '[В изминалата] dddd [в] LT';\n\t                case 1:\n\t                case 2:\n\t                case 4:\n\t                case 5:\n\t                    return '[В изминалия] dddd [в] LT';\n\t                }\n\t            },\n\t            sameElse : 'L'\n\t        },\n\t        relativeTime : {\n\t            future : 'след %s',\n\t            past : 'преди %s',\n\t            s : 'няколко секунди',\n\t            m : 'минута',\n\t            mm : '%d минути',\n\t            h : 'час',\n\t            hh : '%d часа',\n\t            d : 'ден',\n\t            dd : '%d дни',\n\t            M : 'месец',\n\t            MM : '%d месеца',\n\t            y : 'година',\n\t            yy : '%d години'\n\t        },\n\t        ordinalParse: /\\d{1,2}-(ев|ен|ти|ви|ри|ми)/,\n\t        ordinal : function (number) {\n\t            var lastDigit = number % 10,\n\t                last2Digits = number % 100;\n\t            if (number === 0) {\n\t                return number + '-ев';\n\t            } else if (last2Digits === 0) {\n\t                return number + '-ен';\n\t            } else if (last2Digits > 10 && last2Digits < 20) {\n\t                return number + '-ти';\n\t            } else if (lastDigit === 1) {\n\t                return number + '-ви';\n\t            } else if (lastDigit === 2) {\n\t                return number + '-ри';\n\t            } else if (lastDigit === 7 || lastDigit === 8) {\n\t                return number + '-ми';\n\t            } else {\n\t                return number + '-ти';\n\t            }\n\t        },\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 7  // The week that contains Jan 1st is the first week of the year.\n\t        }\n\t    });\n\n\t    return bg;\n\n\t}));\n\n/***/ },\n/* 34 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : Bengali (bn)\n\t//! author : Kaushik Gandhi : https://github.com/kaushikgandhi\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var symbolMap = {\n\t        '1': '১',\n\t        '2': '২',\n\t        '3': '৩',\n\t        '4': '৪',\n\t        '5': '৫',\n\t        '6': '৬',\n\t        '7': '৭',\n\t        '8': '৮',\n\t        '9': '৯',\n\t        '0': '০'\n\t    },\n\t    numberMap = {\n\t        '১': '1',\n\t        '২': '2',\n\t        '৩': '3',\n\t        '৪': '4',\n\t        '৫': '5',\n\t        '৬': '6',\n\t        '৭': '7',\n\t        '৮': '8',\n\t        '৯': '9',\n\t        '০': '0'\n\t    };\n\n\t    var bn = moment.defineLocale('bn', {\n\t        months : 'জানুয়ারী_ফেবুয়ারী_মার্চ_এপ্রিল_মে_জুন_জুলাই_অগাস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split('_'),\n\t        monthsShort : 'জানু_ফেব_মার্চ_এপর_মে_জুন_জুল_অগ_সেপ্ট_অক্টো_নভ_ডিসেম্'.split('_'),\n\t        weekdays : 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পত্তিবার_শুক্রবার_শনিবার'.split('_'),\n\t        weekdaysShort : 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পত্তি_শুক্র_শনি'.split('_'),\n\t        weekdaysMin : 'রব_সম_মঙ্গ_বু_ব্রিহ_শু_শনি'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'A h:mm সময়',\n\t            LTS : 'A h:mm:ss সময়',\n\t            L : 'DD/MM/YYYY',\n\t            LL : 'D MMMM YYYY',\n\t            LLL : 'D MMMM YYYY, A h:mm সময়',\n\t            LLLL : 'dddd, D MMMM YYYY, A h:mm সময়'\n\t        },\n\t        calendar : {\n\t            sameDay : '[আজ] LT',\n\t            nextDay : '[আগামীকাল] LT',\n\t            nextWeek : 'dddd, LT',\n\t            lastDay : '[গতকাল] LT',\n\t            lastWeek : '[গত] dddd, LT',\n\t            sameElse : 'L'\n\t        },\n\t        relativeTime : {\n\t            future : '%s পরে',\n\t            past : '%s আগে',\n\t            s : 'কয়েক সেকেন্ড',\n\t            m : 'এক মিনিট',\n\t            mm : '%d মিনিট',\n\t            h : 'এক ঘন্টা',\n\t            hh : '%d ঘন্টা',\n\t            d : 'এক দিন',\n\t            dd : '%d দিন',\n\t            M : 'এক মাস',\n\t            MM : '%d মাস',\n\t            y : 'এক বছর',\n\t            yy : '%d বছর'\n\t        },\n\t        preparse: function (string) {\n\t            return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {\n\t                return numberMap[match];\n\t            });\n\t        },\n\t        postformat: function (string) {\n\t            return string.replace(/\\d/g, function (match) {\n\t                return symbolMap[match];\n\t            });\n\t        },\n\t        meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/,\n\t        isPM: function (input) {\n\t            return /^(দুপুর|বিকাল|রাত)$/.test(input);\n\t        },\n\t        //Bengali is a vast language its spoken\n\t        //in different forms in various parts of the world.\n\t        //I have just generalized with most common one used\n\t        meridiem : function (hour, minute, isLower) {\n\t            if (hour < 4) {\n\t                return 'রাত';\n\t            } else if (hour < 10) {\n\t                return 'সকাল';\n\t            } else if (hour < 17) {\n\t                return 'দুপুর';\n\t            } else if (hour < 20) {\n\t                return 'বিকাল';\n\t            } else {\n\t                return 'রাত';\n\t            }\n\t        },\n\t        week : {\n\t            dow : 0, // Sunday is the first day of the week.\n\t            doy : 6  // The week that contains Jan 1st is the first week of the year.\n\t        }\n\t    });\n\n\t    return bn;\n\n\t}));\n\n/***/ },\n/* 35 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : tibetan (bo)\n\t//! author : Thupten N. Chakrishar : https://github.com/vajradog\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var symbolMap = {\n\t        '1': '༡',\n\t        '2': '༢',\n\t        '3': '༣',\n\t        '4': '༤',\n\t        '5': '༥',\n\t        '6': '༦',\n\t        '7': '༧',\n\t        '8': '༨',\n\t        '9': '༩',\n\t        '0': '༠'\n\t    },\n\t    numberMap = {\n\t        '༡': '1',\n\t        '༢': '2',\n\t        '༣': '3',\n\t        '༤': '4',\n\t        '༥': '5',\n\t        '༦': '6',\n\t        '༧': '7',\n\t        '༨': '8',\n\t        '༩': '9',\n\t        '༠': '0'\n\t    };\n\n\t    var bo = moment.defineLocale('bo', {\n\t        months : 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'),\n\t        monthsShort : 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'),\n\t        weekdays : 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split('_'),\n\t        weekdaysShort : 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'),\n\t        weekdaysMin : 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'A h:mm',\n\t            LTS : 'A h:mm:ss',\n\t            L : 'DD/MM/YYYY',\n\t            LL : 'D MMMM YYYY',\n\t            LLL : 'D MMMM YYYY, A h:mm',\n\t            LLLL : 'dddd, D MMMM YYYY, A h:mm'\n\t        },\n\t        calendar : {\n\t            sameDay : '[དི་རིང] LT',\n\t            nextDay : '[སང་ཉིན] LT',\n\t            nextWeek : '[བདུན་ཕྲག་རྗེས་མ], LT',\n\t            lastDay : '[ཁ་སང] LT',\n\t            lastWeek : '[བདུན་ཕྲག་མཐའ་མ] dddd, LT',\n\t            sameElse : 'L'\n\t        },\n\t        relativeTime : {\n\t            future : '%s ལ་',\n\t            past : '%s སྔན་ལ',\n\t            s : 'ལམ་སང',\n\t            m : 'སྐར་མ་གཅིག',\n\t            mm : '%d སྐར་མ',\n\t            h : 'ཆུ་ཚོད་གཅིག',\n\t            hh : '%d ཆུ་ཚོད',\n\t            d : 'ཉིན་གཅིག',\n\t            dd : '%d ཉིན་',\n\t            M : 'ཟླ་བ་གཅིག',\n\t            MM : '%d ཟླ་བ',\n\t            y : 'ལོ་གཅིག',\n\t            yy : '%d ལོ'\n\t        },\n\t        preparse: function (string) {\n\t            return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match) {\n\t                return numberMap[match];\n\t            });\n\t        },\n\t        postformat: function (string) {\n\t            return string.replace(/\\d/g, function (match) {\n\t                return symbolMap[match];\n\t            });\n\t        },\n\t        meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,\n\t        isPM: function (input) {\n\t            return /^(ཉིན་གུང|དགོང་དག|མཚན་མོ)$/.test(input);\n\t        },\n\t        meridiem : function (hour, minute, isLower) {\n\t            if (hour < 4) {\n\t                return 'མཚན་མོ';\n\t            } else if (hour < 10) {\n\t                return 'ཞོགས་ཀས';\n\t            } else if (hour < 17) {\n\t                return 'ཉིན་གུང';\n\t            } else if (hour < 20) {\n\t                return 'དགོང་དག';\n\t            } else {\n\t                return 'མཚན་མོ';\n\t            }\n\t        },\n\t        week : {\n\t            dow : 0, // Sunday is the first day of the week.\n\t            doy : 6  // The week that contains Jan 1st is the first week of the year.\n\t        }\n\t    });\n\n\t    return bo;\n\n\t}));\n\n/***/ },\n/* 36 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : breton (br)\n\t//! author : Jean-Baptiste Le Duigou : https://github.com/jbleduigou\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    function relativeTimeWithMutation(number, withoutSuffix, key) {\n\t        var format = {\n\t            'mm': 'munutenn',\n\t            'MM': 'miz',\n\t            'dd': 'devezh'\n\t        };\n\t        return number + ' ' + mutation(format[key], number);\n\t    }\n\t    function specialMutationForYears(number) {\n\t        switch (lastNumber(number)) {\n\t        case 1:\n\t        case 3:\n\t        case 4:\n\t        case 5:\n\t        case 9:\n\t            return number + ' bloaz';\n\t        default:\n\t            return number + ' vloaz';\n\t        }\n\t    }\n\t    function lastNumber(number) {\n\t        if (number > 9) {\n\t            return lastNumber(number % 10);\n\t        }\n\t        return number;\n\t    }\n\t    function mutation(text, number) {\n\t        if (number === 2) {\n\t            return softMutation(text);\n\t        }\n\t        return text;\n\t    }\n\t    function softMutation(text) {\n\t        var mutationTable = {\n\t            'm': 'v',\n\t            'b': 'v',\n\t            'd': 'z'\n\t        };\n\t        if (mutationTable[text.charAt(0)] === undefined) {\n\t            return text;\n\t        }\n\t        return mutationTable[text.charAt(0)] + text.substring(1);\n\t    }\n\n\t    var br = moment.defineLocale('br', {\n\t        months : 'Genver_C\\'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split('_'),\n\t        monthsShort : 'Gen_C\\'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'),\n\t        weekdays : 'Sul_Lun_Meurzh_Merc\\'her_Yaou_Gwener_Sadorn'.split('_'),\n\t        weekdaysShort : 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'),\n\t        weekdaysMin : 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'h[e]mm A',\n\t            LTS : 'h[e]mm:ss A',\n\t            L : 'DD/MM/YYYY',\n\t            LL : 'D [a viz] MMMM YYYY',\n\t            LLL : 'D [a viz] MMMM YYYY h[e]mm A',\n\t            LLLL : 'dddd, D [a viz] MMMM YYYY h[e]mm A'\n\t        },\n\t        calendar : {\n\t            sameDay : '[Hiziv da] LT',\n\t            nextDay : '[Warc\\'hoazh da] LT',\n\t            nextWeek : 'dddd [da] LT',\n\t            lastDay : '[Dec\\'h da] LT',\n\t            lastWeek : 'dddd [paset da] LT',\n\t            sameElse : 'L'\n\t        },\n\t        relativeTime : {\n\t            future : 'a-benn %s',\n\t            past : '%s \\'zo',\n\t            s : 'un nebeud segondennoù',\n\t            m : 'ur vunutenn',\n\t            mm : relativeTimeWithMutation,\n\t            h : 'un eur',\n\t            hh : '%d eur',\n\t            d : 'un devezh',\n\t            dd : relativeTimeWithMutation,\n\t            M : 'ur miz',\n\t            MM : relativeTimeWithMutation,\n\t            y : 'ur bloaz',\n\t            yy : specialMutationForYears\n\t        },\n\t        ordinalParse: /\\d{1,2}(añ|vet)/,\n\t        ordinal : function (number) {\n\t            var output = (number === 1) ? 'añ' : 'vet';\n\t            return number + output;\n\t        },\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 4  // The week that contains Jan 4th is the first week of the year.\n\t        }\n\t    });\n\n\t    return br;\n\n\t}));\n\n/***/ },\n/* 37 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : bosnian (bs)\n\t//! author : Nedim Cholich : https://github.com/frontyard\n\t//! based on (hr) translation by Bojan Marković\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    function translate(number, withoutSuffix, key) {\n\t        var result = number + ' ';\n\t        switch (key) {\n\t        case 'm':\n\t            return withoutSuffix ? 'jedna minuta' : 'jedne minute';\n\t        case 'mm':\n\t            if (number === 1) {\n\t                result += 'minuta';\n\t            } else if (number === 2 || number === 3 || number === 4) {\n\t                result += 'minute';\n\t            } else {\n\t                result += 'minuta';\n\t            }\n\t            return result;\n\t        case 'h':\n\t            return withoutSuffix ? 'jedan sat' : 'jednog sata';\n\t        case 'hh':\n\t            if (number === 1) {\n\t                result += 'sat';\n\t            } else if (number === 2 || number === 3 || number === 4) {\n\t                result += 'sata';\n\t            } else {\n\t                result += 'sati';\n\t            }\n\t            return result;\n\t        case 'dd':\n\t            if (number === 1) {\n\t                result += 'dan';\n\t            } else {\n\t                result += 'dana';\n\t            }\n\t            return result;\n\t        case 'MM':\n\t            if (number === 1) {\n\t                result += 'mjesec';\n\t            } else if (number === 2 || number === 3 || number === 4) {\n\t                result += 'mjeseca';\n\t            } else {\n\t                result += 'mjeseci';\n\t            }\n\t            return result;\n\t        case 'yy':\n\t            if (number === 1) {\n\t                result += 'godina';\n\t            } else if (number === 2 || number === 3 || number === 4) {\n\t                result += 'godine';\n\t            } else {\n\t                result += 'godina';\n\t            }\n\t            return result;\n\t        }\n\t    }\n\n\t    var bs = moment.defineLocale('bs', {\n\t        months : 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split('_'),\n\t        monthsShort : 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split('_'),\n\t        weekdays : 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),\n\t        weekdaysShort : 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),\n\t        weekdaysMin : 'ne_po_ut_sr_če_pe_su'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'H:mm',\n\t            LTS : 'H:mm:ss',\n\t            L : 'DD. MM. YYYY',\n\t            LL : 'D. MMMM YYYY',\n\t            LLL : 'D. MMMM YYYY H:mm',\n\t            LLLL : 'dddd, D. MMMM YYYY H:mm'\n\t        },\n\t        calendar : {\n\t            sameDay  : '[danas u] LT',\n\t            nextDay  : '[sutra u] LT',\n\t            nextWeek : function () {\n\t                switch (this.day()) {\n\t                case 0:\n\t                    return '[u] [nedjelju] [u] LT';\n\t                case 3:\n\t                    return '[u] [srijedu] [u] LT';\n\t                case 6:\n\t                    return '[u] [subotu] [u] LT';\n\t                case 1:\n\t                case 2:\n\t                case 4:\n\t                case 5:\n\t                    return '[u] dddd [u] LT';\n\t                }\n\t            },\n\t            lastDay  : '[jučer u] LT',\n\t            lastWeek : function () {\n\t                switch (this.day()) {\n\t                case 0:\n\t                case 3:\n\t                    return '[prošlu] dddd [u] LT';\n\t                case 6:\n\t                    return '[prošle] [subote] [u] LT';\n\t                case 1:\n\t                case 2:\n\t                case 4:\n\t                case 5:\n\t                    return '[prošli] dddd [u] LT';\n\t                }\n\t            },\n\t            sameElse : 'L'\n\t        },\n\t        relativeTime : {\n\t            future : 'za %s',\n\t            past   : 'prije %s',\n\t            s      : 'par sekundi',\n\t            m      : translate,\n\t            mm     : translate,\n\t            h      : translate,\n\t            hh     : translate,\n\t            d      : 'dan',\n\t            dd     : translate,\n\t            M      : 'mjesec',\n\t            MM     : translate,\n\t            y      : 'godinu',\n\t            yy     : translate\n\t        },\n\t        ordinalParse: /\\d{1,2}\\./,\n\t        ordinal : '%d.',\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 7  // The week that contains Jan 1st is the first week of the year.\n\t        }\n\t    });\n\n\t    return bs;\n\n\t}));\n\n/***/ },\n/* 38 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : catalan (ca)\n\t//! author : Juan G. Hurtado : https://github.com/juanghurtado\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var ca = moment.defineLocale('ca', {\n\t        months : 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split('_'),\n\t        monthsShort : 'gen._febr._mar._abr._mai._jun._jul._ag._set._oct._nov._des.'.split('_'),\n\t        weekdays : 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split('_'),\n\t        weekdaysShort : 'dg._dl._dt._dc._dj._dv._ds.'.split('_'),\n\t        weekdaysMin : 'Dg_Dl_Dt_Dc_Dj_Dv_Ds'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'H:mm',\n\t            LTS : 'H:mm:ss',\n\t            L : 'DD/MM/YYYY',\n\t            LL : 'D MMMM YYYY',\n\t            LLL : 'D MMMM YYYY H:mm',\n\t            LLLL : 'dddd D MMMM YYYY H:mm'\n\t        },\n\t        calendar : {\n\t            sameDay : function () {\n\t                return '[avui a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';\n\t            },\n\t            nextDay : function () {\n\t                return '[demà a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';\n\t            },\n\t            nextWeek : function () {\n\t                return 'dddd [a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';\n\t            },\n\t            lastDay : function () {\n\t                return '[ahir a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';\n\t            },\n\t            lastWeek : function () {\n\t                return '[el] dddd [passat a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';\n\t            },\n\t            sameElse : 'L'\n\t        },\n\t        relativeTime : {\n\t            future : 'en %s',\n\t            past : 'fa %s',\n\t            s : 'uns segons',\n\t            m : 'un minut',\n\t            mm : '%d minuts',\n\t            h : 'una hora',\n\t            hh : '%d hores',\n\t            d : 'un dia',\n\t            dd : '%d dies',\n\t            M : 'un mes',\n\t            MM : '%d mesos',\n\t            y : 'un any',\n\t            yy : '%d anys'\n\t        },\n\t        ordinalParse: /\\d{1,2}(r|n|t|è|a)/,\n\t        ordinal : function (number, period) {\n\t            var output = (number === 1) ? 'r' :\n\t                (number === 2) ? 'n' :\n\t                (number === 3) ? 'r' :\n\t                (number === 4) ? 't' : 'è';\n\t            if (period === 'w' || period === 'W') {\n\t                output = 'a';\n\t            }\n\t            return number + output;\n\t        },\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 4  // The week that contains Jan 4th is the first week of the year.\n\t        }\n\t    });\n\n\t    return ca;\n\n\t}));\n\n/***/ },\n/* 39 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : czech (cs)\n\t//! author : petrbela : https://github.com/petrbela\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var months = 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split('_'),\n\t        monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_');\n\t    function plural(n) {\n\t        return (n > 1) && (n < 5) && (~~(n / 10) !== 1);\n\t    }\n\t    function translate(number, withoutSuffix, key, isFuture) {\n\t        var result = number + ' ';\n\t        switch (key) {\n\t        case 's':  // a few seconds / in a few seconds / a few seconds ago\n\t            return (withoutSuffix || isFuture) ? 'pár sekund' : 'pár sekundami';\n\t        case 'm':  // a minute / in a minute / a minute ago\n\t            return withoutSuffix ? 'minuta' : (isFuture ? 'minutu' : 'minutou');\n\t        case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago\n\t            if (withoutSuffix || isFuture) {\n\t                return result + (plural(number) ? 'minuty' : 'minut');\n\t            } else {\n\t                return result + 'minutami';\n\t            }\n\t            break;\n\t        case 'h':  // an hour / in an hour / an hour ago\n\t            return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou');\n\t        case 'hh': // 9 hours / in 9 hours / 9 hours ago\n\t            if (withoutSuffix || isFuture) {\n\t                return result + (plural(number) ? 'hodiny' : 'hodin');\n\t            } else {\n\t                return result + 'hodinami';\n\t            }\n\t            break;\n\t        case 'd':  // a day / in a day / a day ago\n\t            return (withoutSuffix || isFuture) ? 'den' : 'dnem';\n\t        case 'dd': // 9 days / in 9 days / 9 days ago\n\t            if (withoutSuffix || isFuture) {\n\t                return result + (plural(number) ? 'dny' : 'dní');\n\t            } else {\n\t                return result + 'dny';\n\t            }\n\t            break;\n\t        case 'M':  // a month / in a month / a month ago\n\t            return (withoutSuffix || isFuture) ? 'měsíc' : 'měsícem';\n\t        case 'MM': // 9 months / in 9 months / 9 months ago\n\t            if (withoutSuffix || isFuture) {\n\t                return result + (plural(number) ? 'měsíce' : 'měsíců');\n\t            } else {\n\t                return result + 'měsíci';\n\t            }\n\t            break;\n\t        case 'y':  // a year / in a year / a year ago\n\t            return (withoutSuffix || isFuture) ? 'rok' : 'rokem';\n\t        case 'yy': // 9 years / in 9 years / 9 years ago\n\t            if (withoutSuffix || isFuture) {\n\t                return result + (plural(number) ? 'roky' : 'let');\n\t            } else {\n\t                return result + 'lety';\n\t            }\n\t            break;\n\t        }\n\t    }\n\n\t    var cs = moment.defineLocale('cs', {\n\t        months : months,\n\t        monthsShort : monthsShort,\n\t        monthsParse : (function (months, monthsShort) {\n\t            var i, _monthsParse = [];\n\t            for (i = 0; i < 12; i++) {\n\t                // use custom parser to solve problem with July (červenec)\n\t                _monthsParse[i] = new RegExp('^' + months[i] + '$|^' + monthsShort[i] + '$', 'i');\n\t            }\n\t            return _monthsParse;\n\t        }(months, monthsShort)),\n\t        shortMonthsParse : (function (monthsShort) {\n\t            var i, _shortMonthsParse = [];\n\t            for (i = 0; i < 12; i++) {\n\t                _shortMonthsParse[i] = new RegExp('^' + monthsShort[i] + '$', 'i');\n\t            }\n\t            return _shortMonthsParse;\n\t        }(monthsShort)),\n\t        longMonthsParse : (function (months) {\n\t            var i, _longMonthsParse = [];\n\t            for (i = 0; i < 12; i++) {\n\t                _longMonthsParse[i] = new RegExp('^' + months[i] + '$', 'i');\n\t            }\n\t            return _longMonthsParse;\n\t        }(months)),\n\t        weekdays : 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'),\n\t        weekdaysShort : 'ne_po_út_st_čt_pá_so'.split('_'),\n\t        weekdaysMin : 'ne_po_út_st_čt_pá_so'.split('_'),\n\t        longDateFormat : {\n\t            LT: 'H:mm',\n\t            LTS : 'H:mm:ss',\n\t            L : 'DD.MM.YYYY',\n\t            LL : 'D. MMMM YYYY',\n\t            LLL : 'D. MMMM YYYY H:mm',\n\t            LLLL : 'dddd D. MMMM YYYY H:mm'\n\t        },\n\t        calendar : {\n\t            sameDay: '[dnes v] LT',\n\t            nextDay: '[zítra v] LT',\n\t            nextWeek: function () {\n\t                switch (this.day()) {\n\t                case 0:\n\t                    return '[v neděli v] LT';\n\t                case 1:\n\t                case 2:\n\t                    return '[v] dddd [v] LT';\n\t                case 3:\n\t                    return '[ve středu v] LT';\n\t                case 4:\n\t                    return '[ve čtvrtek v] LT';\n\t                case 5:\n\t                    return '[v pátek v] LT';\n\t                case 6:\n\t                    return '[v sobotu v] LT';\n\t                }\n\t            },\n\t            lastDay: '[včera v] LT',\n\t            lastWeek: function () {\n\t                switch (this.day()) {\n\t                case 0:\n\t                    return '[minulou neděli v] LT';\n\t                case 1:\n\t                case 2:\n\t                    return '[minulé] dddd [v] LT';\n\t                case 3:\n\t                    return '[minulou středu v] LT';\n\t                case 4:\n\t                case 5:\n\t                    return '[minulý] dddd [v] LT';\n\t                case 6:\n\t                    return '[minulou sobotu v] LT';\n\t                }\n\t            },\n\t            sameElse: 'L'\n\t        },\n\t        relativeTime : {\n\t            future : 'za %s',\n\t            past : 'před %s',\n\t            s : translate,\n\t            m : translate,\n\t            mm : translate,\n\t            h : translate,\n\t            hh : translate,\n\t            d : translate,\n\t            dd : translate,\n\t            M : translate,\n\t            MM : translate,\n\t            y : translate,\n\t            yy : translate\n\t        },\n\t        ordinalParse : /\\d{1,2}\\./,\n\t        ordinal : '%d.',\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 4  // The week that contains Jan 4th is the first week of the year.\n\t        }\n\t    });\n\n\t    return cs;\n\n\t}));\n\n/***/ },\n/* 40 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : chuvash (cv)\n\t//! author : Anatoly Mironov : https://github.com/mirontoli\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var cv = moment.defineLocale('cv', {\n\t        months : 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split('_'),\n\t        monthsShort : 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'),\n\t        weekdays : 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split('_'),\n\t        weekdaysShort : 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'),\n\t        weekdaysMin : 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'HH:mm',\n\t            LTS : 'HH:mm:ss',\n\t            L : 'DD-MM-YYYY',\n\t            LL : 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]',\n\t            LLL : 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',\n\t            LLLL : 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm'\n\t        },\n\t        calendar : {\n\t            sameDay: '[Паян] LT [сехетре]',\n\t            nextDay: '[Ыран] LT [сехетре]',\n\t            lastDay: '[Ӗнер] LT [сехетре]',\n\t            nextWeek: '[Ҫитес] dddd LT [сехетре]',\n\t            lastWeek: '[Иртнӗ] dddd LT [сехетре]',\n\t            sameElse: 'L'\n\t        },\n\t        relativeTime : {\n\t            future : function (output) {\n\t                var affix = /сехет$/i.exec(output) ? 'рен' : /ҫул$/i.exec(output) ? 'тан' : 'ран';\n\t                return output + affix;\n\t            },\n\t            past : '%s каялла',\n\t            s : 'пӗр-ик ҫеккунт',\n\t            m : 'пӗр минут',\n\t            mm : '%d минут',\n\t            h : 'пӗр сехет',\n\t            hh : '%d сехет',\n\t            d : 'пӗр кун',\n\t            dd : '%d кун',\n\t            M : 'пӗр уйӑх',\n\t            MM : '%d уйӑх',\n\t            y : 'пӗр ҫул',\n\t            yy : '%d ҫул'\n\t        },\n\t        ordinalParse: /\\d{1,2}-мӗш/,\n\t        ordinal : '%d-мӗш',\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 7  // The week that contains Jan 1st is the first week of the year.\n\t        }\n\t    });\n\n\t    return cv;\n\n\t}));\n\n/***/ },\n/* 41 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : Welsh (cy)\n\t//! author : Robert Allen\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var cy = moment.defineLocale('cy', {\n\t        months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split('_'),\n\t        monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split('_'),\n\t        weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split('_'),\n\t        weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'),\n\t        weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'),\n\t        // time formats are the same as en-gb\n\t        longDateFormat: {\n\t            LT: 'HH:mm',\n\t            LTS : 'HH:mm:ss',\n\t            L: 'DD/MM/YYYY',\n\t            LL: 'D MMMM YYYY',\n\t            LLL: 'D MMMM YYYY HH:mm',\n\t            LLLL: 'dddd, D MMMM YYYY HH:mm'\n\t        },\n\t        calendar: {\n\t            sameDay: '[Heddiw am] LT',\n\t            nextDay: '[Yfory am] LT',\n\t            nextWeek: 'dddd [am] LT',\n\t            lastDay: '[Ddoe am] LT',\n\t            lastWeek: 'dddd [diwethaf am] LT',\n\t            sameElse: 'L'\n\t        },\n\t        relativeTime: {\n\t            future: 'mewn %s',\n\t            past: '%s yn ôl',\n\t            s: 'ychydig eiliadau',\n\t            m: 'munud',\n\t            mm: '%d munud',\n\t            h: 'awr',\n\t            hh: '%d awr',\n\t            d: 'diwrnod',\n\t            dd: '%d diwrnod',\n\t            M: 'mis',\n\t            MM: '%d mis',\n\t            y: 'blwyddyn',\n\t            yy: '%d flynedd'\n\t        },\n\t        ordinalParse: /\\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,\n\t        // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh\n\t        ordinal: function (number) {\n\t            var b = number,\n\t                output = '',\n\t                lookup = [\n\t                    '', 'af', 'il', 'ydd', 'ydd', 'ed', 'ed', 'ed', 'fed', 'fed', 'fed', // 1af to 10fed\n\t                    'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'fed' // 11eg to 20fed\n\t                ];\n\t            if (b > 20) {\n\t                if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) {\n\t                    output = 'fed'; // not 30ain, 70ain or 90ain\n\t                } else {\n\t                    output = 'ain';\n\t                }\n\t            } else if (b > 0) {\n\t                output = lookup[b];\n\t            }\n\t            return number + output;\n\t        },\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 4  // The week that contains Jan 4th is the first week of the year.\n\t        }\n\t    });\n\n\t    return cy;\n\n\t}));\n\n/***/ },\n/* 42 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : danish (da)\n\t//! author : Ulrik Nielsen : https://github.com/mrbase\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var da = moment.defineLocale('da', {\n\t        months : 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split('_'),\n\t        monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),\n\t        weekdays : 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),\n\t        weekdaysShort : 'søn_man_tir_ons_tor_fre_lør'.split('_'),\n\t        weekdaysMin : 'sø_ma_ti_on_to_fr_lø'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'HH:mm',\n\t            LTS : 'HH:mm:ss',\n\t            L : 'DD/MM/YYYY',\n\t            LL : 'D. MMMM YYYY',\n\t            LLL : 'D. MMMM YYYY HH:mm',\n\t            LLLL : 'dddd [d.] D. MMMM YYYY HH:mm'\n\t        },\n\t        calendar : {\n\t            sameDay : '[I dag kl.] LT',\n\t            nextDay : '[I morgen kl.] LT',\n\t            nextWeek : 'dddd [kl.] LT',\n\t            lastDay : '[I går kl.] LT',\n\t            lastWeek : '[sidste] dddd [kl] LT',\n\t            sameElse : 'L'\n\t        },\n\t        relativeTime : {\n\t            future : 'om %s',\n\t            past : '%s siden',\n\t            s : 'få sekunder',\n\t            m : 'et minut',\n\t            mm : '%d minutter',\n\t            h : 'en time',\n\t            hh : '%d timer',\n\t            d : 'en dag',\n\t            dd : '%d dage',\n\t            M : 'en måned',\n\t            MM : '%d måneder',\n\t            y : 'et år',\n\t            yy : '%d år'\n\t        },\n\t        ordinalParse: /\\d{1,2}\\./,\n\t        ordinal : '%d.',\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 4  // The week that contains Jan 4th is the first week of the year.\n\t        }\n\t    });\n\n\t    return da;\n\n\t}));\n\n/***/ },\n/* 43 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : german (de)\n\t//! author : lluchs : https://github.com/lluchs\n\t//! author: Menelion Elensúle: https://github.com/Oire\n\t//! author : Mikolaj Dadela : https://github.com/mik01aj\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    function processRelativeTime(number, withoutSuffix, key, isFuture) {\n\t        var format = {\n\t            'm': ['eine Minute', 'einer Minute'],\n\t            'h': ['eine Stunde', 'einer Stunde'],\n\t            'd': ['ein Tag', 'einem Tag'],\n\t            'dd': [number + ' Tage', number + ' Tagen'],\n\t            'M': ['ein Monat', 'einem Monat'],\n\t            'MM': [number + ' Monate', number + ' Monaten'],\n\t            'y': ['ein Jahr', 'einem Jahr'],\n\t            'yy': [number + ' Jahre', number + ' Jahren']\n\t        };\n\t        return withoutSuffix ? format[key][0] : format[key][1];\n\t    }\n\n\t    var de = moment.defineLocale('de', {\n\t        months : 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),\n\t        monthsShort : 'Jan._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),\n\t        weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),\n\t        weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),\n\t        weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),\n\t        longDateFormat : {\n\t            LT: 'HH:mm',\n\t            LTS: 'HH:mm:ss',\n\t            L : 'DD.MM.YYYY',\n\t            LL : 'D. MMMM YYYY',\n\t            LLL : 'D. MMMM YYYY HH:mm',\n\t            LLLL : 'dddd, D. MMMM YYYY HH:mm'\n\t        },\n\t        calendar : {\n\t            sameDay: '[heute um] LT [Uhr]',\n\t            sameElse: 'L',\n\t            nextDay: '[morgen um] LT [Uhr]',\n\t            nextWeek: 'dddd [um] LT [Uhr]',\n\t            lastDay: '[gestern um] LT [Uhr]',\n\t            lastWeek: '[letzten] dddd [um] LT [Uhr]'\n\t        },\n\t        relativeTime : {\n\t            future : 'in %s',\n\t            past : 'vor %s',\n\t            s : 'ein paar Sekunden',\n\t            m : processRelativeTime,\n\t            mm : '%d Minuten',\n\t            h : processRelativeTime,\n\t            hh : '%d Stunden',\n\t            d : processRelativeTime,\n\t            dd : processRelativeTime,\n\t            M : processRelativeTime,\n\t            MM : processRelativeTime,\n\t            y : processRelativeTime,\n\t            yy : processRelativeTime\n\t        },\n\t        ordinalParse: /\\d{1,2}\\./,\n\t        ordinal : '%d.',\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 4  // The week that contains Jan 4th is the first week of the year.\n\t        }\n\t    });\n\n\t    return de;\n\n\t}));\n\n/***/ },\n/* 44 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : austrian german (de-at)\n\t//! author : lluchs : https://github.com/lluchs\n\t//! author: Menelion Elensúle: https://github.com/Oire\n\t//! author : Martin Groller : https://github.com/MadMG\n\t//! author : Mikolaj Dadela : https://github.com/mik01aj\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    function processRelativeTime(number, withoutSuffix, key, isFuture) {\n\t        var format = {\n\t            'm': ['eine Minute', 'einer Minute'],\n\t            'h': ['eine Stunde', 'einer Stunde'],\n\t            'd': ['ein Tag', 'einem Tag'],\n\t            'dd': [number + ' Tage', number + ' Tagen'],\n\t            'M': ['ein Monat', 'einem Monat'],\n\t            'MM': [number + ' Monate', number + ' Monaten'],\n\t            'y': ['ein Jahr', 'einem Jahr'],\n\t            'yy': [number + ' Jahre', number + ' Jahren']\n\t        };\n\t        return withoutSuffix ? format[key][0] : format[key][1];\n\t    }\n\n\t    var de_at = moment.defineLocale('de-at', {\n\t        months : 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),\n\t        monthsShort : 'Jän._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),\n\t        weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),\n\t        weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),\n\t        weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),\n\t        longDateFormat : {\n\t            LT: 'HH:mm',\n\t            LTS: 'HH:mm:ss',\n\t            L : 'DD.MM.YYYY',\n\t            LL : 'D. MMMM YYYY',\n\t            LLL : 'D. MMMM YYYY HH:mm',\n\t            LLLL : 'dddd, D. MMMM YYYY HH:mm'\n\t        },\n\t        calendar : {\n\t            sameDay: '[heute um] LT [Uhr]',\n\t            sameElse: 'L',\n\t            nextDay: '[morgen um] LT [Uhr]',\n\t            nextWeek: 'dddd [um] LT [Uhr]',\n\t            lastDay: '[gestern um] LT [Uhr]',\n\t            lastWeek: '[letzten] dddd [um] LT [Uhr]'\n\t        },\n\t        relativeTime : {\n\t            future : 'in %s',\n\t            past : 'vor %s',\n\t            s : 'ein paar Sekunden',\n\t            m : processRelativeTime,\n\t            mm : '%d Minuten',\n\t            h : processRelativeTime,\n\t            hh : '%d Stunden',\n\t            d : processRelativeTime,\n\t            dd : processRelativeTime,\n\t            M : processRelativeTime,\n\t            MM : processRelativeTime,\n\t            y : processRelativeTime,\n\t            yy : processRelativeTime\n\t        },\n\t        ordinalParse: /\\d{1,2}\\./,\n\t        ordinal : '%d.',\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 4  // The week that contains Jan 4th is the first week of the year.\n\t        }\n\t    });\n\n\t    return de_at;\n\n\t}));\n\n/***/ },\n/* 45 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : dhivehi (dv)\n\t//! author : Jawish Hameed : https://github.com/jawish\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var months = [\n\t        'ޖެނުއަރީ',\n\t        'ފެބްރުއަރީ',\n\t        'މާރިޗު',\n\t        'އޭޕްރީލު',\n\t        'މޭ',\n\t        'ޖޫން',\n\t        'ޖުލައި',\n\t        'އޯގަސްޓު',\n\t        'ސެޕްޓެމްބަރު',\n\t        'އޮކްޓޯބަރު',\n\t        'ނޮވެމްބަރު',\n\t        'ޑިސެމްބަރު'\n\t    ], weekdays = [\n\t        'އާދިއްތަ',\n\t        'ހޯމަ',\n\t        'އަންގާރަ',\n\t        'ބުދަ',\n\t        'ބުރާސްފަތި',\n\t        'ހުކުރު',\n\t        'ހޮނިހިރު'\n\t    ];\n\n\t    var dv = moment.defineLocale('dv', {\n\t        months : months,\n\t        monthsShort : months,\n\t        weekdays : weekdays,\n\t        weekdaysShort : weekdays,\n\t        weekdaysMin : 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'),\n\t        longDateFormat : {\n\n\t            LT : 'HH:mm',\n\t            LTS : 'HH:mm:ss',\n\t            L : 'D/M/YYYY',\n\t            LL : 'D MMMM YYYY',\n\t            LLL : 'D MMMM YYYY HH:mm',\n\t            LLLL : 'dddd D MMMM YYYY HH:mm'\n\t        },\n\t        meridiemParse: /މކ|މފ/,\n\t        isPM : function (input) {\n\t            return '' === input;\n\t        },\n\t        meridiem : function (hour, minute, isLower) {\n\t            if (hour < 12) {\n\t                return 'މކ';\n\t            } else {\n\t                return 'މފ';\n\t            }\n\t        },\n\t        calendar : {\n\t            sameDay : '[މިއަދު] LT',\n\t            nextDay : '[މާދަމާ] LT',\n\t            nextWeek : 'dddd LT',\n\t            lastDay : '[އިއްޔެ] LT',\n\t            lastWeek : '[ފާއިތުވި] dddd LT',\n\t            sameElse : 'L'\n\t        },\n\t        relativeTime : {\n\t            future : 'ތެރޭގައި %s',\n\t            past : 'ކުރިން %s',\n\t            s : 'ސިކުންތުކޮޅެއް',\n\t            m : 'މިނިޓެއް',\n\t            mm : 'މިނިޓު %d',\n\t            h : 'ގަޑިއިރެއް',\n\t            hh : 'ގަޑިއިރު %d',\n\t            d : 'ދުވަހެއް',\n\t            dd : 'ދުވަސް %d',\n\t            M : 'މަހެއް',\n\t            MM : 'މަސް %d',\n\t            y : 'އަހަރެއް',\n\t            yy : 'އަހަރު %d'\n\t        },\n\t        preparse: function (string) {\n\t            return string.replace(/،/g, ',');\n\t        },\n\t        postformat: function (string) {\n\t            return string.replace(/,/g, '،');\n\t        },\n\t        week : {\n\t            dow : 7,  // Sunday is the first day of the week.\n\t            doy : 12  // The week that contains Jan 1st is the first week of the year.\n\t        }\n\t    });\n\n\t    return dv;\n\n\t}));\n\n/***/ },\n/* 46 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : modern greek (el)\n\t//! author : Aggelos Karalias : https://github.com/mehiel\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\t    function isFunction(input) {\n\t        return input instanceof Function || Object.prototype.toString.call(input) === '[object Function]';\n\t    }\n\n\n\t    var el = moment.defineLocale('el', {\n\t        monthsNominativeEl : 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split('_'),\n\t        monthsGenitiveEl : 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split('_'),\n\t        months : function (momentToFormat, format) {\n\t            if (/D/.test(format.substring(0, format.indexOf('MMMM')))) { // if there is a day number before 'MMMM'\n\t                return this._monthsGenitiveEl[momentToFormat.month()];\n\t            } else {\n\t                return this._monthsNominativeEl[momentToFormat.month()];\n\t            }\n\t        },\n\t        monthsShort : 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'),\n\t        weekdays : 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split('_'),\n\t        weekdaysShort : 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'),\n\t        weekdaysMin : 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'),\n\t        meridiem : function (hours, minutes, isLower) {\n\t            if (hours > 11) {\n\t                return isLower ? 'μμ' : 'ΜΜ';\n\t            } else {\n\t                return isLower ? 'πμ' : 'ΠΜ';\n\t            }\n\t        },\n\t        isPM : function (input) {\n\t            return ((input + '').toLowerCase()[0] === 'μ');\n\t        },\n\t        meridiemParse : /[ΠΜ]\\.?Μ?\\.?/i,\n\t        longDateFormat : {\n\t            LT : 'h:mm A',\n\t            LTS : 'h:mm:ss A',\n\t            L : 'DD/MM/YYYY',\n\t            LL : 'D MMMM YYYY',\n\t            LLL : 'D MMMM YYYY h:mm A',\n\t            LLLL : 'dddd, D MMMM YYYY h:mm A'\n\t        },\n\t        calendarEl : {\n\t            sameDay : '[Σήμερα {}] LT',\n\t            nextDay : '[Αύριο {}] LT',\n\t            nextWeek : 'dddd [{}] LT',\n\t            lastDay : '[Χθες {}] LT',\n\t            lastWeek : function () {\n\t                switch (this.day()) {\n\t                    case 6:\n\t                        return '[το προηγούμενο] dddd [{}] LT';\n\t                    default:\n\t                        return '[την προηγούμενη] dddd [{}] LT';\n\t                }\n\t            },\n\t            sameElse : 'L'\n\t        },\n\t        calendar : function (key, mom) {\n\t            var output = this._calendarEl[key],\n\t                hours = mom && mom.hours();\n\t            if (isFunction(output)) {\n\t                output = output.apply(mom);\n\t            }\n\t            return output.replace('{}', (hours % 12 === 1 ? 'στη' : 'στις'));\n\t        },\n\t        relativeTime : {\n\t            future : 'σε %s',\n\t            past : '%s πριν',\n\t            s : 'λίγα δευτερόλεπτα',\n\t            m : 'ένα λεπτό',\n\t            mm : '%d λεπτά',\n\t            h : 'μία ώρα',\n\t            hh : '%d ώρες',\n\t            d : 'μία μέρα',\n\t            dd : '%d μέρες',\n\t            M : 'ένας μήνας',\n\t            MM : '%d μήνες',\n\t            y : 'ένας χρόνος',\n\t            yy : '%d χρόνια'\n\t        },\n\t        ordinalParse: /\\d{1,2}η/,\n\t        ordinal: '%dη',\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 4  // The week that contains Jan 4st is the first week of the year.\n\t        }\n\t    });\n\n\t    return el;\n\n\t}));\n\n/***/ },\n/* 47 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : australian english (en-au)\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var en_au = moment.defineLocale('en-au', {\n\t        months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),\n\t        monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n\t        weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),\n\t        weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n\t        weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'h:mm A',\n\t            LTS : 'h:mm:ss A',\n\t            L : 'DD/MM/YYYY',\n\t            LL : 'D MMMM YYYY',\n\t            LLL : 'D MMMM YYYY h:mm A',\n\t            LLLL : 'dddd, D MMMM YYYY h:mm A'\n\t        },\n\t        calendar : {\n\t            sameDay : '[Today at] LT',\n\t            nextDay : '[Tomorrow at] LT',\n\t            nextWeek : 'dddd [at] LT',\n\t            lastDay : '[Yesterday at] LT',\n\t            lastWeek : '[Last] dddd [at] LT',\n\t            sameElse : 'L'\n\t        },\n\t        relativeTime : {\n\t            future : 'in %s',\n\t            past : '%s ago',\n\t            s : 'a few seconds',\n\t            m : 'a minute',\n\t            mm : '%d minutes',\n\t            h : 'an hour',\n\t            hh : '%d hours',\n\t            d : 'a day',\n\t            dd : '%d days',\n\t            M : 'a month',\n\t            MM : '%d months',\n\t            y : 'a year',\n\t            yy : '%d years'\n\t        },\n\t        ordinalParse: /\\d{1,2}(st|nd|rd|th)/,\n\t        ordinal : function (number) {\n\t            var b = number % 10,\n\t                output = (~~(number % 100 / 10) === 1) ? 'th' :\n\t                (b === 1) ? 'st' :\n\t                (b === 2) ? 'nd' :\n\t                (b === 3) ? 'rd' : 'th';\n\t            return number + output;\n\t        },\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 4  // The week that contains Jan 4th is the first week of the year.\n\t        }\n\t    });\n\n\t    return en_au;\n\n\t}));\n\n/***/ },\n/* 48 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : canadian english (en-ca)\n\t//! author : Jonathan Abourbih : https://github.com/jonbca\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var en_ca = moment.defineLocale('en-ca', {\n\t        months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),\n\t        monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n\t        weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),\n\t        weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n\t        weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'h:mm A',\n\t            LTS : 'h:mm:ss A',\n\t            L : 'YYYY-MM-DD',\n\t            LL : 'D MMMM, YYYY',\n\t            LLL : 'D MMMM, YYYY h:mm A',\n\t            LLLL : 'dddd, D MMMM, YYYY h:mm A'\n\t        },\n\t        calendar : {\n\t            sameDay : '[Today at] LT',\n\t            nextDay : '[Tomorrow at] LT',\n\t            nextWeek : 'dddd [at] LT',\n\t            lastDay : '[Yesterday at] LT',\n\t            lastWeek : '[Last] dddd [at] LT',\n\t            sameElse : 'L'\n\t        },\n\t        relativeTime : {\n\t            future : 'in %s',\n\t            past : '%s ago',\n\t            s : 'a few seconds',\n\t            m : 'a minute',\n\t            mm : '%d minutes',\n\t            h : 'an hour',\n\t            hh : '%d hours',\n\t            d : 'a day',\n\t            dd : '%d days',\n\t            M : 'a month',\n\t            MM : '%d months',\n\t            y : 'a year',\n\t            yy : '%d years'\n\t        },\n\t        ordinalParse: /\\d{1,2}(st|nd|rd|th)/,\n\t        ordinal : function (number) {\n\t            var b = number % 10,\n\t                output = (~~(number % 100 / 10) === 1) ? 'th' :\n\t                (b === 1) ? 'st' :\n\t                (b === 2) ? 'nd' :\n\t                (b === 3) ? 'rd' : 'th';\n\t            return number + output;\n\t        }\n\t    });\n\n\t    return en_ca;\n\n\t}));\n\n/***/ },\n/* 49 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : great britain english (en-gb)\n\t//! author : Chris Gedrim : https://github.com/chrisgedrim\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var en_gb = moment.defineLocale('en-gb', {\n\t        months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),\n\t        monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n\t        weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),\n\t        weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n\t        weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'HH:mm',\n\t            LTS : 'HH:mm:ss',\n\t            L : 'DD/MM/YYYY',\n\t            LL : 'D MMMM YYYY',\n\t            LLL : 'D MMMM YYYY HH:mm',\n\t            LLLL : 'dddd, D MMMM YYYY HH:mm'\n\t        },\n\t        calendar : {\n\t            sameDay : '[Today at] LT',\n\t            nextDay : '[Tomorrow at] LT',\n\t            nextWeek : 'dddd [at] LT',\n\t            lastDay : '[Yesterday at] LT',\n\t            lastWeek : '[Last] dddd [at] LT',\n\t            sameElse : 'L'\n\t        },\n\t        relativeTime : {\n\t            future : 'in %s',\n\t            past : '%s ago',\n\t            s : 'a few seconds',\n\t            m : 'a minute',\n\t            mm : '%d minutes',\n\t            h : 'an hour',\n\t            hh : '%d hours',\n\t            d : 'a day',\n\t            dd : '%d days',\n\t            M : 'a month',\n\t            MM : '%d months',\n\t            y : 'a year',\n\t            yy : '%d years'\n\t        },\n\t        ordinalParse: /\\d{1,2}(st|nd|rd|th)/,\n\t        ordinal : function (number) {\n\t            var b = number % 10,\n\t                output = (~~(number % 100 / 10) === 1) ? 'th' :\n\t                (b === 1) ? 'st' :\n\t                (b === 2) ? 'nd' :\n\t                (b === 3) ? 'rd' : 'th';\n\t            return number + output;\n\t        },\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 4  // The week that contains Jan 4th is the first week of the year.\n\t        }\n\t    });\n\n\t    return en_gb;\n\n\t}));\n\n/***/ },\n/* 50 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : Irish english (en-ie)\n\t//! author : Chris Cartlidge : https://github.com/chriscartlidge\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var en_ie = moment.defineLocale('en-ie', {\n\t        months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),\n\t        monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n\t        weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),\n\t        weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n\t        weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'HH:mm',\n\t            LTS : 'HH:mm:ss',\n\t            L : 'DD-MM-YYYY',\n\t            LL : 'D MMMM YYYY',\n\t            LLL : 'D MMMM YYYY HH:mm',\n\t            LLLL : 'dddd D MMMM YYYY HH:mm'\n\t        },\n\t        calendar : {\n\t            sameDay : '[Today at] LT',\n\t            nextDay : '[Tomorrow at] LT',\n\t            nextWeek : 'dddd [at] LT',\n\t            lastDay : '[Yesterday at] LT',\n\t            lastWeek : '[Last] dddd [at] LT',\n\t            sameElse : 'L'\n\t        },\n\t        relativeTime : {\n\t            future : 'in %s',\n\t            past : '%s ago',\n\t            s : 'a few seconds',\n\t            m : 'a minute',\n\t            mm : '%d minutes',\n\t            h : 'an hour',\n\t            hh : '%d hours',\n\t            d : 'a day',\n\t            dd : '%d days',\n\t            M : 'a month',\n\t            MM : '%d months',\n\t            y : 'a year',\n\t            yy : '%d years'\n\t        },\n\t        ordinalParse: /\\d{1,2}(st|nd|rd|th)/,\n\t        ordinal : function (number) {\n\t            var b = number % 10,\n\t                output = (~~(number % 100 / 10) === 1) ? 'th' :\n\t                (b === 1) ? 'st' :\n\t                (b === 2) ? 'nd' :\n\t                (b === 3) ? 'rd' : 'th';\n\t            return number + output;\n\t        },\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 4  // The week that contains Jan 4th is the first week of the year.\n\t        }\n\t    });\n\n\t    return en_ie;\n\n\t}));\n\n/***/ },\n/* 51 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : New Zealand english (en-nz)\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var en_nz = moment.defineLocale('en-nz', {\n\t        months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),\n\t        monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n\t        weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),\n\t        weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n\t        weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'h:mm A',\n\t            LTS : 'h:mm:ss A',\n\t            L : 'DD/MM/YYYY',\n\t            LL : 'D MMMM YYYY',\n\t            LLL : 'D MMMM YYYY h:mm A',\n\t            LLLL : 'dddd, D MMMM YYYY h:mm A'\n\t        },\n\t        calendar : {\n\t            sameDay : '[Today at] LT',\n\t            nextDay : '[Tomorrow at] LT',\n\t            nextWeek : 'dddd [at] LT',\n\t            lastDay : '[Yesterday at] LT',\n\t            lastWeek : '[Last] dddd [at] LT',\n\t            sameElse : 'L'\n\t        },\n\t        relativeTime : {\n\t            future : 'in %s',\n\t            past : '%s ago',\n\t            s : 'a few seconds',\n\t            m : 'a minute',\n\t            mm : '%d minutes',\n\t            h : 'an hour',\n\t            hh : '%d hours',\n\t            d : 'a day',\n\t            dd : '%d days',\n\t            M : 'a month',\n\t            MM : '%d months',\n\t            y : 'a year',\n\t            yy : '%d years'\n\t        },\n\t        ordinalParse: /\\d{1,2}(st|nd|rd|th)/,\n\t        ordinal : function (number) {\n\t            var b = number % 10,\n\t                output = (~~(number % 100 / 10) === 1) ? 'th' :\n\t                (b === 1) ? 'st' :\n\t                (b === 2) ? 'nd' :\n\t                (b === 3) ? 'rd' : 'th';\n\t            return number + output;\n\t        },\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 4  // The week that contains Jan 4th is the first week of the year.\n\t        }\n\t    });\n\n\t    return en_nz;\n\n\t}));\n\n/***/ },\n/* 52 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : esperanto (eo)\n\t//! author : Colin Dean : https://github.com/colindean\n\t//! komento: Mi estas malcerta se mi korekte traktis akuzativojn en tiu traduko.\n\t//!          Se ne, bonvolu korekti kaj avizi min por ke mi povas lerni!\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var eo = moment.defineLocale('eo', {\n\t        months : 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split('_'),\n\t        monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec'.split('_'),\n\t        weekdays : 'Dimanĉo_Lundo_Mardo_Merkredo_Ĵaŭdo_Vendredo_Sabato'.split('_'),\n\t        weekdaysShort : 'Dim_Lun_Mard_Merk_Ĵaŭ_Ven_Sab'.split('_'),\n\t        weekdaysMin : 'Di_Lu_Ma_Me_Ĵa_Ve_Sa'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'HH:mm',\n\t            LTS : 'HH:mm:ss',\n\t            L : 'YYYY-MM-DD',\n\t            LL : 'D[-an de] MMMM, YYYY',\n\t            LLL : 'D[-an de] MMMM, YYYY HH:mm',\n\t            LLLL : 'dddd, [la] D[-an de] MMMM, YYYY HH:mm'\n\t        },\n\t        meridiemParse: /[ap]\\.t\\.m/i,\n\t        isPM: function (input) {\n\t            return input.charAt(0).toLowerCase() === 'p';\n\t        },\n\t        meridiem : function (hours, minutes, isLower) {\n\t            if (hours > 11) {\n\t                return isLower ? 'p.t.m.' : 'P.T.M.';\n\t            } else {\n\t                return isLower ? 'a.t.m.' : 'A.T.M.';\n\t            }\n\t        },\n\t        calendar : {\n\t            sameDay : '[Hodiaŭ je] LT',\n\t            nextDay : '[Morgaŭ je] LT',\n\t            nextWeek : 'dddd [je] LT',\n\t            lastDay : '[Hieraŭ je] LT',\n\t            lastWeek : '[pasinta] dddd [je] LT',\n\t            sameElse : 'L'\n\t        },\n\t        relativeTime : {\n\t            future : 'je %s',\n\t            past : 'antaŭ %s',\n\t            s : 'sekundoj',\n\t            m : 'minuto',\n\t            mm : '%d minutoj',\n\t            h : 'horo',\n\t            hh : '%d horoj',\n\t            d : 'tago',//ne 'diurno', ĉar estas uzita por proksimumo\n\t            dd : '%d tagoj',\n\t            M : 'monato',\n\t            MM : '%d monatoj',\n\t            y : 'jaro',\n\t            yy : '%d jaroj'\n\t        },\n\t        ordinalParse: /\\d{1,2}a/,\n\t        ordinal : '%da',\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 7  // The week that contains Jan 1st is the first week of the year.\n\t        }\n\t    });\n\n\t    return eo;\n\n\t}));\n\n/***/ },\n/* 53 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : spanish (es)\n\t//! author : Julio Napurí : https://github.com/julionc\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),\n\t        monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_');\n\n\t    var es = moment.defineLocale('es', {\n\t        months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),\n\t        monthsShort : function (m, format) {\n\t            if (/-MMM-/.test(format)) {\n\t                return monthsShort[m.month()];\n\t            } else {\n\t                return monthsShortDot[m.month()];\n\t            }\n\t        },\n\t        weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),\n\t        weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),\n\t        weekdaysMin : 'do_lu_ma_mi_ju_vi_sá'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'H:mm',\n\t            LTS : 'H:mm:ss',\n\t            L : 'DD/MM/YYYY',\n\t            LL : 'D [de] MMMM [de] YYYY',\n\t            LLL : 'D [de] MMMM [de] YYYY H:mm',\n\t            LLLL : 'dddd, D [de] MMMM [de] YYYY H:mm'\n\t        },\n\t        calendar : {\n\t            sameDay : function () {\n\t                return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';\n\t            },\n\t            nextDay : function () {\n\t                return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';\n\t            },\n\t            nextWeek : function () {\n\t                return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';\n\t            },\n\t            lastDay : function () {\n\t                return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';\n\t            },\n\t            lastWeek : function () {\n\t                return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';\n\t            },\n\t            sameElse : 'L'\n\t        },\n\t        relativeTime : {\n\t            future : 'en %s',\n\t            past : 'hace %s',\n\t            s : 'unos segundos',\n\t            m : 'un minuto',\n\t            mm : '%d minutos',\n\t            h : 'una hora',\n\t            hh : '%d horas',\n\t            d : 'un día',\n\t            dd : '%d días',\n\t            M : 'un mes',\n\t            MM : '%d meses',\n\t            y : 'un año',\n\t            yy : '%d años'\n\t        },\n\t        ordinalParse : /\\d{1,2}º/,\n\t        ordinal : '%dº',\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 4  // The week that contains Jan 4th is the first week of the year.\n\t        }\n\t    });\n\n\t    return es;\n\n\t}));\n\n/***/ },\n/* 54 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : estonian (et)\n\t//! author : Henry Kehlmann : https://github.com/madhenry\n\t//! improvements : Illimar Tambek : https://github.com/ragulka\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    function processRelativeTime(number, withoutSuffix, key, isFuture) {\n\t        var format = {\n\t            's' : ['mõne sekundi', 'mõni sekund', 'paar sekundit'],\n\t            'm' : ['ühe minuti', 'üks minut'],\n\t            'mm': [number + ' minuti', number + ' minutit'],\n\t            'h' : ['ühe tunni', 'tund aega', 'üks tund'],\n\t            'hh': [number + ' tunni', number + ' tundi'],\n\t            'd' : ['ühe päeva', 'üks päev'],\n\t            'M' : ['kuu aja', 'kuu aega', 'üks kuu'],\n\t            'MM': [number + ' kuu', number + ' kuud'],\n\t            'y' : ['ühe aasta', 'aasta', 'üks aasta'],\n\t            'yy': [number + ' aasta', number + ' aastat']\n\t        };\n\t        if (withoutSuffix) {\n\t            return format[key][2] ? format[key][2] : format[key][1];\n\t        }\n\t        return isFuture ? format[key][0] : format[key][1];\n\t    }\n\n\t    var et = moment.defineLocale('et', {\n\t        months        : 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split('_'),\n\t        monthsShort   : 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split('_'),\n\t        weekdays      : 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split('_'),\n\t        weekdaysShort : 'P_E_T_K_N_R_L'.split('_'),\n\t        weekdaysMin   : 'P_E_T_K_N_R_L'.split('_'),\n\t        longDateFormat : {\n\t            LT   : 'H:mm',\n\t            LTS : 'H:mm:ss',\n\t            L    : 'DD.MM.YYYY',\n\t            LL   : 'D. MMMM YYYY',\n\t            LLL  : 'D. MMMM YYYY H:mm',\n\t            LLLL : 'dddd, D. MMMM YYYY H:mm'\n\t        },\n\t        calendar : {\n\t            sameDay  : '[Täna,] LT',\n\t            nextDay  : '[Homme,] LT',\n\t            nextWeek : '[Järgmine] dddd LT',\n\t            lastDay  : '[Eile,] LT',\n\t            lastWeek : '[Eelmine] dddd LT',\n\t            sameElse : 'L'\n\t        },\n\t        relativeTime : {\n\t            future : '%s pärast',\n\t            past   : '%s tagasi',\n\t            s      : processRelativeTime,\n\t            m      : processRelativeTime,\n\t            mm     : processRelativeTime,\n\t            h      : processRelativeTime,\n\t            hh     : processRelativeTime,\n\t            d      : processRelativeTime,\n\t            dd     : '%d päeva',\n\t            M      : processRelativeTime,\n\t            MM     : processRelativeTime,\n\t            y      : processRelativeTime,\n\t            yy     : processRelativeTime\n\t        },\n\t        ordinalParse: /\\d{1,2}\\./,\n\t        ordinal : '%d.',\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 4  // The week that contains Jan 4th is the first week of the year.\n\t        }\n\t    });\n\n\t    return et;\n\n\t}));\n\n/***/ },\n/* 55 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : euskara (eu)\n\t//! author : Eneko Illarramendi : https://github.com/eillarra\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var eu = moment.defineLocale('eu', {\n\t        months : 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split('_'),\n\t        monthsShort : 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split('_'),\n\t        weekdays : 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split('_'),\n\t        weekdaysShort : 'ig._al._ar._az._og._ol._lr.'.split('_'),\n\t        weekdaysMin : 'ig_al_ar_az_og_ol_lr'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'HH:mm',\n\t            LTS : 'HH:mm:ss',\n\t            L : 'YYYY-MM-DD',\n\t            LL : 'YYYY[ko] MMMM[ren] D[a]',\n\t            LLL : 'YYYY[ko] MMMM[ren] D[a] HH:mm',\n\t            LLLL : 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm',\n\t            l : 'YYYY-M-D',\n\t            ll : 'YYYY[ko] MMM D[a]',\n\t            lll : 'YYYY[ko] MMM D[a] HH:mm',\n\t            llll : 'ddd, YYYY[ko] MMM D[a] HH:mm'\n\t        },\n\t        calendar : {\n\t            sameDay : '[gaur] LT[etan]',\n\t            nextDay : '[bihar] LT[etan]',\n\t            nextWeek : 'dddd LT[etan]',\n\t            lastDay : '[atzo] LT[etan]',\n\t            lastWeek : '[aurreko] dddd LT[etan]',\n\t            sameElse : 'L'\n\t        },\n\t        relativeTime : {\n\t            future : '%s barru',\n\t            past : 'duela %s',\n\t            s : 'segundo batzuk',\n\t            m : 'minutu bat',\n\t            mm : '%d minutu',\n\t            h : 'ordu bat',\n\t            hh : '%d ordu',\n\t            d : 'egun bat',\n\t            dd : '%d egun',\n\t            M : 'hilabete bat',\n\t            MM : '%d hilabete',\n\t            y : 'urte bat',\n\t            yy : '%d urte'\n\t        },\n\t        ordinalParse: /\\d{1,2}\\./,\n\t        ordinal : '%d.',\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 7  // The week that contains Jan 1st is the first week of the year.\n\t        }\n\t    });\n\n\t    return eu;\n\n\t}));\n\n/***/ },\n/* 56 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : Persian (fa)\n\t//! author : Ebrahim Byagowi : https://github.com/ebraminio\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var symbolMap = {\n\t        '1': '۱',\n\t        '2': '۲',\n\t        '3': '۳',\n\t        '4': '۴',\n\t        '5': '۵',\n\t        '6': '۶',\n\t        '7': '۷',\n\t        '8': '۸',\n\t        '9': '۹',\n\t        '0': '۰'\n\t    }, numberMap = {\n\t        '۱': '1',\n\t        '۲': '2',\n\t        '۳': '3',\n\t        '۴': '4',\n\t        '۵': '5',\n\t        '۶': '6',\n\t        '۷': '7',\n\t        '۸': '8',\n\t        '۹': '9',\n\t        '۰': '0'\n\t    };\n\n\t    var fa = moment.defineLocale('fa', {\n\t        months : 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),\n\t        monthsShort : 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),\n\t        weekdays : 'یک\\u200cشنبه_دوشنبه_سه\\u200cشنبه_چهارشنبه_پنج\\u200cشنبه_جمعه_شنبه'.split('_'),\n\t        weekdaysShort : 'یک\\u200cشنبه_دوشنبه_سه\\u200cشنبه_چهارشنبه_پنج\\u200cشنبه_جمعه_شنبه'.split('_'),\n\t        weekdaysMin : 'ی_د_س_چ_پ_ج_ش'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'HH:mm',\n\t            LTS : 'HH:mm:ss',\n\t            L : 'DD/MM/YYYY',\n\t            LL : 'D MMMM YYYY',\n\t            LLL : 'D MMMM YYYY HH:mm',\n\t            LLLL : 'dddd, D MMMM YYYY HH:mm'\n\t        },\n\t        meridiemParse: /قبل از ظهر|بعد از ظهر/,\n\t        isPM: function (input) {\n\t            return /بعد از ظهر/.test(input);\n\t        },\n\t        meridiem : function (hour, minute, isLower) {\n\t            if (hour < 12) {\n\t                return 'قبل از ظهر';\n\t            } else {\n\t                return 'بعد از ظهر';\n\t            }\n\t        },\n\t        calendar : {\n\t            sameDay : '[امروز ساعت] LT',\n\t            nextDay : '[فردا ساعت] LT',\n\t            nextWeek : 'dddd [ساعت] LT',\n\t            lastDay : '[دیروز ساعت] LT',\n\t            lastWeek : 'dddd [پیش] [ساعت] LT',\n\t            sameElse : 'L'\n\t        },\n\t        relativeTime : {\n\t            future : 'در %s',\n\t            past : '%s پیش',\n\t            s : 'چندین ثانیه',\n\t            m : 'یک دقیقه',\n\t            mm : '%d دقیقه',\n\t            h : 'یک ساعت',\n\t            hh : '%d ساعت',\n\t            d : 'یک روز',\n\t            dd : '%d روز',\n\t            M : 'یک ماه',\n\t            MM : '%d ماه',\n\t            y : 'یک سال',\n\t            yy : '%d سال'\n\t        },\n\t        preparse: function (string) {\n\t            return string.replace(/[۰-۹]/g, function (match) {\n\t                return numberMap[match];\n\t            }).replace(/،/g, ',');\n\t        },\n\t        postformat: function (string) {\n\t            return string.replace(/\\d/g, function (match) {\n\t                return symbolMap[match];\n\t            }).replace(/,/g, '،');\n\t        },\n\t        ordinalParse: /\\d{1,2}م/,\n\t        ordinal : '%dم',\n\t        week : {\n\t            dow : 6, // Saturday is the first day of the week.\n\t            doy : 12 // The week that contains Jan 1st is the first week of the year.\n\t        }\n\t    });\n\n\t    return fa;\n\n\t}));\n\n/***/ },\n/* 57 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : finnish (fi)\n\t//! author : Tarmo Aidantausta : https://github.com/bleadof\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var numbersPast = 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split(' '),\n\t        numbersFuture = [\n\t            'nolla', 'yhden', 'kahden', 'kolmen', 'neljän', 'viiden', 'kuuden',\n\t            numbersPast[7], numbersPast[8], numbersPast[9]\n\t        ];\n\t    function translate(number, withoutSuffix, key, isFuture) {\n\t        var result = '';\n\t        switch (key) {\n\t        case 's':\n\t            return isFuture ? 'muutaman sekunnin' : 'muutama sekunti';\n\t        case 'm':\n\t            return isFuture ? 'minuutin' : 'minuutti';\n\t        case 'mm':\n\t            result = isFuture ? 'minuutin' : 'minuuttia';\n\t            break;\n\t        case 'h':\n\t            return isFuture ? 'tunnin' : 'tunti';\n\t        case 'hh':\n\t            result = isFuture ? 'tunnin' : 'tuntia';\n\t            break;\n\t        case 'd':\n\t            return isFuture ? 'päivän' : 'päivä';\n\t        case 'dd':\n\t            result = isFuture ? 'päivän' : 'päivää';\n\t            break;\n\t        case 'M':\n\t            return isFuture ? 'kuukauden' : 'kuukausi';\n\t        case 'MM':\n\t            result = isFuture ? 'kuukauden' : 'kuukautta';\n\t            break;\n\t        case 'y':\n\t            return isFuture ? 'vuoden' : 'vuosi';\n\t        case 'yy':\n\t            result = isFuture ? 'vuoden' : 'vuotta';\n\t            break;\n\t        }\n\t        result = verbalNumber(number, isFuture) + ' ' + result;\n\t        return result;\n\t    }\n\t    function verbalNumber(number, isFuture) {\n\t        return number < 10 ? (isFuture ? numbersFuture[number] : numbersPast[number]) : number;\n\t    }\n\n\t    var fi = moment.defineLocale('fi', {\n\t        months : 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split('_'),\n\t        monthsShort : 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split('_'),\n\t        weekdays : 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split('_'),\n\t        weekdaysShort : 'su_ma_ti_ke_to_pe_la'.split('_'),\n\t        weekdaysMin : 'su_ma_ti_ke_to_pe_la'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'HH.mm',\n\t            LTS : 'HH.mm.ss',\n\t            L : 'DD.MM.YYYY',\n\t            LL : 'Do MMMM[ta] YYYY',\n\t            LLL : 'Do MMMM[ta] YYYY, [klo] HH.mm',\n\t            LLLL : 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm',\n\t            l : 'D.M.YYYY',\n\t            ll : 'Do MMM YYYY',\n\t            lll : 'Do MMM YYYY, [klo] HH.mm',\n\t            llll : 'ddd, Do MMM YYYY, [klo] HH.mm'\n\t        },\n\t        calendar : {\n\t            sameDay : '[tänään] [klo] LT',\n\t            nextDay : '[huomenna] [klo] LT',\n\t            nextWeek : 'dddd [klo] LT',\n\t            lastDay : '[eilen] [klo] LT',\n\t            lastWeek : '[viime] dddd[na] [klo] LT',\n\t            sameElse : 'L'\n\t        },\n\t        relativeTime : {\n\t            future : '%s päästä',\n\t            past : '%s sitten',\n\t            s : translate,\n\t            m : translate,\n\t            mm : translate,\n\t            h : translate,\n\t            hh : translate,\n\t            d : translate,\n\t            dd : translate,\n\t            M : translate,\n\t            MM : translate,\n\t            y : translate,\n\t            yy : translate\n\t        },\n\t        ordinalParse: /\\d{1,2}\\./,\n\t        ordinal : '%d.',\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 4  // The week that contains Jan 4th is the first week of the year.\n\t        }\n\t    });\n\n\t    return fi;\n\n\t}));\n\n/***/ },\n/* 58 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : faroese (fo)\n\t//! author : Ragnar Johannesen : https://github.com/ragnar123\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var fo = moment.defineLocale('fo', {\n\t        months : 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split('_'),\n\t        monthsShort : 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),\n\t        weekdays : 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split('_'),\n\t        weekdaysShort : 'sun_mán_týs_mik_hós_frí_ley'.split('_'),\n\t        weekdaysMin : 'su_má_tý_mi_hó_fr_le'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'HH:mm',\n\t            LTS : 'HH:mm:ss',\n\t            L : 'DD/MM/YYYY',\n\t            LL : 'D MMMM YYYY',\n\t            LLL : 'D MMMM YYYY HH:mm',\n\t            LLLL : 'dddd D. MMMM, YYYY HH:mm'\n\t        },\n\t        calendar : {\n\t            sameDay : '[Í dag kl.] LT',\n\t            nextDay : '[Í morgin kl.] LT',\n\t            nextWeek : 'dddd [kl.] LT',\n\t            lastDay : '[Í gjár kl.] LT',\n\t            lastWeek : '[síðstu] dddd [kl] LT',\n\t            sameElse : 'L'\n\t        },\n\t        relativeTime : {\n\t            future : 'um %s',\n\t            past : '%s síðani',\n\t            s : 'fá sekund',\n\t            m : 'ein minutt',\n\t            mm : '%d minuttir',\n\t            h : 'ein tími',\n\t            hh : '%d tímar',\n\t            d : 'ein dagur',\n\t            dd : '%d dagar',\n\t            M : 'ein mánaði',\n\t            MM : '%d mánaðir',\n\t            y : 'eitt ár',\n\t            yy : '%d ár'\n\t        },\n\t        ordinalParse: /\\d{1,2}\\./,\n\t        ordinal : '%d.',\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 4  // The week that contains Jan 4th is the first week of the year.\n\t        }\n\t    });\n\n\t    return fo;\n\n\t}));\n\n/***/ },\n/* 59 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : french (fr)\n\t//! author : John Fischer : https://github.com/jfroffice\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var fr = moment.defineLocale('fr', {\n\t        months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),\n\t        monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),\n\t        weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),\n\t        weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),\n\t        weekdaysMin : 'Di_Lu_Ma_Me_Je_Ve_Sa'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'HH:mm',\n\t            LTS : 'HH:mm:ss',\n\t            L : 'DD/MM/YYYY',\n\t            LL : 'D MMMM YYYY',\n\t            LLL : 'D MMMM YYYY HH:mm',\n\t            LLLL : 'dddd D MMMM YYYY HH:mm'\n\t        },\n\t        calendar : {\n\t            sameDay: '[Aujourd\\'hui à] LT',\n\t            nextDay: '[Demain à] LT',\n\t            nextWeek: 'dddd [à] LT',\n\t            lastDay: '[Hier à] LT',\n\t            lastWeek: 'dddd [dernier à] LT',\n\t            sameElse: 'L'\n\t        },\n\t        relativeTime : {\n\t            future : 'dans %s',\n\t            past : 'il y a %s',\n\t            s : 'quelques secondes',\n\t            m : 'une minute',\n\t            mm : '%d minutes',\n\t            h : 'une heure',\n\t            hh : '%d heures',\n\t            d : 'un jour',\n\t            dd : '%d jours',\n\t            M : 'un mois',\n\t            MM : '%d mois',\n\t            y : 'un an',\n\t            yy : '%d ans'\n\t        },\n\t        ordinalParse: /\\d{1,2}(er|)/,\n\t        ordinal : function (number) {\n\t            return number + (number === 1 ? 'er' : '');\n\t        },\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 4  // The week that contains Jan 4th is the first week of the year.\n\t        }\n\t    });\n\n\t    return fr;\n\n\t}));\n\n/***/ },\n/* 60 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : canadian french (fr-ca)\n\t//! author : Jonathan Abourbih : https://github.com/jonbca\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var fr_ca = moment.defineLocale('fr-ca', {\n\t        months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),\n\t        monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),\n\t        weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),\n\t        weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),\n\t        weekdaysMin : 'Di_Lu_Ma_Me_Je_Ve_Sa'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'HH:mm',\n\t            LTS : 'HH:mm:ss',\n\t            L : 'YYYY-MM-DD',\n\t            LL : 'D MMMM YYYY',\n\t            LLL : 'D MMMM YYYY HH:mm',\n\t            LLLL : 'dddd D MMMM YYYY HH:mm'\n\t        },\n\t        calendar : {\n\t            sameDay: '[Aujourd\\'hui à] LT',\n\t            nextDay: '[Demain à] LT',\n\t            nextWeek: 'dddd [à] LT',\n\t            lastDay: '[Hier à] LT',\n\t            lastWeek: 'dddd [dernier à] LT',\n\t            sameElse: 'L'\n\t        },\n\t        relativeTime : {\n\t            future : 'dans %s',\n\t            past : 'il y a %s',\n\t            s : 'quelques secondes',\n\t            m : 'une minute',\n\t            mm : '%d minutes',\n\t            h : 'une heure',\n\t            hh : '%d heures',\n\t            d : 'un jour',\n\t            dd : '%d jours',\n\t            M : 'un mois',\n\t            MM : '%d mois',\n\t            y : 'un an',\n\t            yy : '%d ans'\n\t        },\n\t        ordinalParse: /\\d{1,2}(er|e)/,\n\t        ordinal : function (number) {\n\t            return number + (number === 1 ? 'er' : 'e');\n\t        }\n\t    });\n\n\t    return fr_ca;\n\n\t}));\n\n/***/ },\n/* 61 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : swiss french (fr)\n\t//! author : Gaspard Bucher : https://github.com/gaspard\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var fr_ch = moment.defineLocale('fr-ch', {\n\t        months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),\n\t        monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),\n\t        weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),\n\t        weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),\n\t        weekdaysMin : 'Di_Lu_Ma_Me_Je_Ve_Sa'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'HH:mm',\n\t            LTS : 'HH:mm:ss',\n\t            L : 'DD.MM.YYYY',\n\t            LL : 'D MMMM YYYY',\n\t            LLL : 'D MMMM YYYY HH:mm',\n\t            LLLL : 'dddd D MMMM YYYY HH:mm'\n\t        },\n\t        calendar : {\n\t            sameDay: '[Aujourd\\'hui à] LT',\n\t            nextDay: '[Demain à] LT',\n\t            nextWeek: 'dddd [à] LT',\n\t            lastDay: '[Hier à] LT',\n\t            lastWeek: 'dddd [dernier à] LT',\n\t            sameElse: 'L'\n\t        },\n\t        relativeTime : {\n\t            future : 'dans %s',\n\t            past : 'il y a %s',\n\t            s : 'quelques secondes',\n\t            m : 'une minute',\n\t            mm : '%d minutes',\n\t            h : 'une heure',\n\t            hh : '%d heures',\n\t            d : 'un jour',\n\t            dd : '%d jours',\n\t            M : 'un mois',\n\t            MM : '%d mois',\n\t            y : 'un an',\n\t            yy : '%d ans'\n\t        },\n\t        ordinalParse: /\\d{1,2}(er|e)/,\n\t        ordinal : function (number) {\n\t            return number + (number === 1 ? 'er' : 'e');\n\t        },\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 4  // The week that contains Jan 4th is the first week of the year.\n\t        }\n\t    });\n\n\t    return fr_ch;\n\n\t}));\n\n/***/ },\n/* 62 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : frisian (fy)\n\t//! author : Robin van der Vliet : https://github.com/robin0van0der0v\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var monthsShortWithDots = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split('_'),\n\t        monthsShortWithoutDots = 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_');\n\n\t    var fy = moment.defineLocale('fy', {\n\t        months : 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split('_'),\n\t        monthsShort : function (m, format) {\n\t            if (/-MMM-/.test(format)) {\n\t                return monthsShortWithoutDots[m.month()];\n\t            } else {\n\t                return monthsShortWithDots[m.month()];\n\t            }\n\t        },\n\t        weekdays : 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split('_'),\n\t        weekdaysShort : 'si._mo._ti._wo._to._fr._so.'.split('_'),\n\t        weekdaysMin : 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'HH:mm',\n\t            LTS : 'HH:mm:ss',\n\t            L : 'DD-MM-YYYY',\n\t            LL : 'D MMMM YYYY',\n\t            LLL : 'D MMMM YYYY HH:mm',\n\t            LLLL : 'dddd D MMMM YYYY HH:mm'\n\t        },\n\t        calendar : {\n\t            sameDay: '[hjoed om] LT',\n\t            nextDay: '[moarn om] LT',\n\t            nextWeek: 'dddd [om] LT',\n\t            lastDay: '[juster om] LT',\n\t            lastWeek: '[ôfrûne] dddd [om] LT',\n\t            sameElse: 'L'\n\t        },\n\t        relativeTime : {\n\t            future : 'oer %s',\n\t            past : '%s lyn',\n\t            s : 'in pear sekonden',\n\t            m : 'ien minút',\n\t            mm : '%d minuten',\n\t            h : 'ien oere',\n\t            hh : '%d oeren',\n\t            d : 'ien dei',\n\t            dd : '%d dagen',\n\t            M : 'ien moanne',\n\t            MM : '%d moannen',\n\t            y : 'ien jier',\n\t            yy : '%d jierren'\n\t        },\n\t        ordinalParse: /\\d{1,2}(ste|de)/,\n\t        ordinal : function (number) {\n\t            return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');\n\t        },\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 4  // The week that contains Jan 4th is the first week of the year.\n\t        }\n\t    });\n\n\t    return fy;\n\n\t}));\n\n/***/ },\n/* 63 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : great britain scottish gealic (gd)\n\t//! author : Jon Ashdown : https://github.com/jonashdown\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var months = [\n\t        'Am Faoilleach', 'An Gearran', 'Am Màrt', 'An Giblean', 'An Cèitean', 'An t-Ògmhios', 'An t-Iuchar', 'An Lùnastal', 'An t-Sultain', 'An Dàmhair', 'An t-Samhain', 'An Dùbhlachd'\n\t    ];\n\n\t    var monthsShort = ['Faoi', 'Gear', 'Màrt', 'Gibl', 'Cèit', 'Ògmh', 'Iuch', 'Lùn', 'Sult', 'Dàmh', 'Samh', 'Dùbh'];\n\n\t    var weekdays = ['Didòmhnaich', 'Diluain', 'Dimàirt', 'Diciadain', 'Diardaoin', 'Dihaoine', 'Disathairne'];\n\n\t    var weekdaysShort = ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'];\n\n\t    var weekdaysMin = ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa'];\n\n\t    var gd = moment.defineLocale('gd', {\n\t        months : months,\n\t        monthsShort : monthsShort,\n\t        monthsParseExact : true,\n\t        weekdays : weekdays,\n\t        weekdaysShort : weekdaysShort,\n\t        weekdaysMin : weekdaysMin,\n\t        longDateFormat : {\n\t            LT : 'HH:mm',\n\t            LTS : 'HH:mm:ss',\n\t            L : 'DD/MM/YYYY',\n\t            LL : 'D MMMM YYYY',\n\t            LLL : 'D MMMM YYYY HH:mm',\n\t            LLLL : 'dddd, D MMMM YYYY HH:mm'\n\t        },\n\t        calendar : {\n\t            sameDay : '[An-diugh aig] LT',\n\t            nextDay : '[A-màireach aig] LT',\n\t            nextWeek : 'dddd [aig] LT',\n\t            lastDay : '[An-dè aig] LT',\n\t            lastWeek : 'dddd [seo chaidh] [aig] LT',\n\t            sameElse : 'L'\n\t        },\n\t        relativeTime : {\n\t            future : 'ann an %s',\n\t            past : 'bho chionn %s',\n\t            s : 'beagan diogan',\n\t            m : 'mionaid',\n\t            mm : '%d mionaidean',\n\t            h : 'uair',\n\t            hh : '%d uairean',\n\t            d : 'latha',\n\t            dd : '%d latha',\n\t            M : 'mìos',\n\t            MM : '%d mìosan',\n\t            y : 'bliadhna',\n\t            yy : '%d bliadhna'\n\t        },\n\t        ordinalParse : /\\d{1,2}(d|na|mh)/,\n\t        ordinal : function (number) {\n\t            var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';\n\t            return number + output;\n\t        },\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 4  // The week that contains Jan 4th is the first week of the year.\n\t        }\n\t    });\n\n\t    return gd;\n\n\t}));\n\n/***/ },\n/* 64 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : galician (gl)\n\t//! author : Juan G. Hurtado : https://github.com/juanghurtado\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var gl = moment.defineLocale('gl', {\n\t        months : 'Xaneiro_Febreiro_Marzo_Abril_Maio_Xuño_Xullo_Agosto_Setembro_Outubro_Novembro_Decembro'.split('_'),\n\t        monthsShort : 'Xan._Feb._Mar._Abr._Mai._Xuñ._Xul._Ago._Set._Out._Nov._Dec.'.split('_'),\n\t        weekdays : 'Domingo_Luns_Martes_Mércores_Xoves_Venres_Sábado'.split('_'),\n\t        weekdaysShort : 'Dom._Lun._Mar._Mér._Xov._Ven._Sáb.'.split('_'),\n\t        weekdaysMin : 'Do_Lu_Ma_Mé_Xo_Ve_Sá'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'H:mm',\n\t            LTS : 'H:mm:ss',\n\t            L : 'DD/MM/YYYY',\n\t            LL : 'D MMMM YYYY',\n\t            LLL : 'D MMMM YYYY H:mm',\n\t            LLLL : 'dddd D MMMM YYYY H:mm'\n\t        },\n\t        calendar : {\n\t            sameDay : function () {\n\t                return '[hoxe ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT';\n\t            },\n\t            nextDay : function () {\n\t                return '[mañá ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT';\n\t            },\n\t            nextWeek : function () {\n\t                return 'dddd [' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';\n\t            },\n\t            lastDay : function () {\n\t                return '[onte ' + ((this.hours() !== 1) ? 'á' : 'a') + '] LT';\n\t            },\n\t            lastWeek : function () {\n\t                return '[o] dddd [pasado ' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';\n\t            },\n\t            sameElse : 'L'\n\t        },\n\t        relativeTime : {\n\t            future : function (str) {\n\t                if (str === 'uns segundos') {\n\t                    return 'nuns segundos';\n\t                }\n\t                return 'en ' + str;\n\t            },\n\t            past : 'hai %s',\n\t            s : 'uns segundos',\n\t            m : 'un minuto',\n\t            mm : '%d minutos',\n\t            h : 'unha hora',\n\t            hh : '%d horas',\n\t            d : 'un día',\n\t            dd : '%d días',\n\t            M : 'un mes',\n\t            MM : '%d meses',\n\t            y : 'un ano',\n\t            yy : '%d anos'\n\t        },\n\t        ordinalParse : /\\d{1,2}º/,\n\t        ordinal : '%dº',\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 7  // The week that contains Jan 1st is the first week of the year.\n\t        }\n\t    });\n\n\t    return gl;\n\n\t}));\n\n/***/ },\n/* 65 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : Hebrew (he)\n\t//! author : Tomer Cohen : https://github.com/tomer\n\t//! author : Moshe Simantov : https://github.com/DevelopmentIL\n\t//! author : Tal Ater : https://github.com/TalAter\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var he = moment.defineLocale('he', {\n\t        months : 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split('_'),\n\t        monthsShort : 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split('_'),\n\t        weekdays : 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'),\n\t        weekdaysShort : 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'),\n\t        weekdaysMin : 'א_ב_ג_ד_ה_ו_ש'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'HH:mm',\n\t            LTS : 'HH:mm:ss',\n\t            L : 'DD/MM/YYYY',\n\t            LL : 'D [ב]MMMM YYYY',\n\t            LLL : 'D [ב]MMMM YYYY HH:mm',\n\t            LLLL : 'dddd, D [ב]MMMM YYYY HH:mm',\n\t            l : 'D/M/YYYY',\n\t            ll : 'D MMM YYYY',\n\t            lll : 'D MMM YYYY HH:mm',\n\t            llll : 'ddd, D MMM YYYY HH:mm'\n\t        },\n\t        calendar : {\n\t            sameDay : '[היום ב־]LT',\n\t            nextDay : '[מחר ב־]LT',\n\t            nextWeek : 'dddd [בשעה] LT',\n\t            lastDay : '[אתמול ב־]LT',\n\t            lastWeek : '[ביום] dddd [האחרון בשעה] LT',\n\t            sameElse : 'L'\n\t        },\n\t        relativeTime : {\n\t            future : 'בעוד %s',\n\t            past : 'לפני %s',\n\t            s : 'מספר שניות',\n\t            m : 'דקה',\n\t            mm : '%d דקות',\n\t            h : 'שעה',\n\t            hh : function (number) {\n\t                if (number === 2) {\n\t                    return 'שעתיים';\n\t                }\n\t                return number + ' שעות';\n\t            },\n\t            d : 'יום',\n\t            dd : function (number) {\n\t                if (number === 2) {\n\t                    return 'יומיים';\n\t                }\n\t                return number + ' ימים';\n\t            },\n\t            M : 'חודש',\n\t            MM : function (number) {\n\t                if (number === 2) {\n\t                    return 'חודשיים';\n\t                }\n\t                return number + ' חודשים';\n\t            },\n\t            y : 'שנה',\n\t            yy : function (number) {\n\t                if (number === 2) {\n\t                    return 'שנתיים';\n\t                } else if (number % 10 === 0 && number !== 10) {\n\t                    return number + ' שנה';\n\t                }\n\t                return number + ' שנים';\n\t            }\n\t        }\n\t    });\n\n\t    return he;\n\n\t}));\n\n/***/ },\n/* 66 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : hindi (hi)\n\t//! author : Mayank Singhal : https://github.com/mayanksinghal\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var symbolMap = {\n\t        '1': '१',\n\t        '2': '२',\n\t        '3': '३',\n\t        '4': '४',\n\t        '5': '५',\n\t        '6': '६',\n\t        '7': '७',\n\t        '8': '८',\n\t        '9': '९',\n\t        '0': '०'\n\t    },\n\t    numberMap = {\n\t        '१': '1',\n\t        '२': '2',\n\t        '३': '3',\n\t        '४': '4',\n\t        '५': '5',\n\t        '६': '6',\n\t        '७': '7',\n\t        '८': '8',\n\t        '९': '9',\n\t        '०': '0'\n\t    };\n\n\t    var hi = moment.defineLocale('hi', {\n\t        months : 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split('_'),\n\t        monthsShort : 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split('_'),\n\t        weekdays : 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),\n\t        weekdaysShort : 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'),\n\t        weekdaysMin : 'र_सो_मं_बु_गु_शु_श'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'A h:mm बजे',\n\t            LTS : 'A h:mm:ss बजे',\n\t            L : 'DD/MM/YYYY',\n\t            LL : 'D MMMM YYYY',\n\t            LLL : 'D MMMM YYYY, A h:mm बजे',\n\t            LLLL : 'dddd, D MMMM YYYY, A h:mm बजे'\n\t        },\n\t        calendar : {\n\t            sameDay : '[आज] LT',\n\t            nextDay : '[कल] LT',\n\t            nextWeek : 'dddd, LT',\n\t            lastDay : '[कल] LT',\n\t            lastWeek : '[पिछले] dddd, LT',\n\t            sameElse : 'L'\n\t        },\n\t        relativeTime : {\n\t            future : '%s में',\n\t            past : '%s पहले',\n\t            s : 'कुछ ही क्षण',\n\t            m : 'एक मिनट',\n\t            mm : '%d मिनट',\n\t            h : 'एक घंटा',\n\t            hh : '%d घंटे',\n\t            d : 'एक दिन',\n\t            dd : '%d दिन',\n\t            M : 'एक महीने',\n\t            MM : '%d महीने',\n\t            y : 'एक वर्ष',\n\t            yy : '%d वर्ष'\n\t        },\n\t        preparse: function (string) {\n\t            return string.replace(/[१२३४५६७८९०]/g, function (match) {\n\t                return numberMap[match];\n\t            });\n\t        },\n\t        postformat: function (string) {\n\t            return string.replace(/\\d/g, function (match) {\n\t                return symbolMap[match];\n\t            });\n\t        },\n\t        // Hindi notation for meridiems are quite fuzzy in practice. While there exists\n\t        // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi.\n\t        meridiemParse: /रात|सुबह|दोपहर|शाम/,\n\t        meridiemHour : function (hour, meridiem) {\n\t            if (hour === 12) {\n\t                hour = 0;\n\t            }\n\t            if (meridiem === 'रात') {\n\t                return hour < 4 ? hour : hour + 12;\n\t            } else if (meridiem === 'सुबह') {\n\t                return hour;\n\t            } else if (meridiem === 'दोपहर') {\n\t                return hour >= 10 ? hour : hour + 12;\n\t            } else if (meridiem === 'शाम') {\n\t                return hour + 12;\n\t            }\n\t        },\n\t        meridiem : function (hour, minute, isLower) {\n\t            if (hour < 4) {\n\t                return 'रात';\n\t            } else if (hour < 10) {\n\t                return 'सुबह';\n\t            } else if (hour < 17) {\n\t                return 'दोपहर';\n\t            } else if (hour < 20) {\n\t                return 'शाम';\n\t            } else {\n\t                return 'रात';\n\t            }\n\t        },\n\t        week : {\n\t            dow : 0, // Sunday is the first day of the week.\n\t            doy : 6  // The week that contains Jan 1st is the first week of the year.\n\t        }\n\t    });\n\n\t    return hi;\n\n\t}));\n\n/***/ },\n/* 67 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : hrvatski (hr)\n\t//! author : Bojan Marković : https://github.com/bmarkovic\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    function translate(number, withoutSuffix, key) {\n\t        var result = number + ' ';\n\t        switch (key) {\n\t        case 'm':\n\t            return withoutSuffix ? 'jedna minuta' : 'jedne minute';\n\t        case 'mm':\n\t            if (number === 1) {\n\t                result += 'minuta';\n\t            } else if (number === 2 || number === 3 || number === 4) {\n\t                result += 'minute';\n\t            } else {\n\t                result += 'minuta';\n\t            }\n\t            return result;\n\t        case 'h':\n\t            return withoutSuffix ? 'jedan sat' : 'jednog sata';\n\t        case 'hh':\n\t            if (number === 1) {\n\t                result += 'sat';\n\t            } else if (number === 2 || number === 3 || number === 4) {\n\t                result += 'sata';\n\t            } else {\n\t                result += 'sati';\n\t            }\n\t            return result;\n\t        case 'dd':\n\t            if (number === 1) {\n\t                result += 'dan';\n\t            } else {\n\t                result += 'dana';\n\t            }\n\t            return result;\n\t        case 'MM':\n\t            if (number === 1) {\n\t                result += 'mjesec';\n\t            } else if (number === 2 || number === 3 || number === 4) {\n\t                result += 'mjeseca';\n\t            } else {\n\t                result += 'mjeseci';\n\t            }\n\t            return result;\n\t        case 'yy':\n\t            if (number === 1) {\n\t                result += 'godina';\n\t            } else if (number === 2 || number === 3 || number === 4) {\n\t                result += 'godine';\n\t            } else {\n\t                result += 'godina';\n\t            }\n\t            return result;\n\t        }\n\t    }\n\n\t    var hr = moment.defineLocale('hr', {\n\t        months : {\n\t            format: 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split('_'),\n\t            standalone: 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split('_')\n\t        },\n\t        monthsShort : 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split('_'),\n\t        weekdays : 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),\n\t        weekdaysShort : 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),\n\t        weekdaysMin : 'ne_po_ut_sr_če_pe_su'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'H:mm',\n\t            LTS : 'H:mm:ss',\n\t            L : 'DD. MM. YYYY',\n\t            LL : 'D. MMMM YYYY',\n\t            LLL : 'D. MMMM YYYY H:mm',\n\t            LLLL : 'dddd, D. MMMM YYYY H:mm'\n\t        },\n\t        calendar : {\n\t            sameDay  : '[danas u] LT',\n\t            nextDay  : '[sutra u] LT',\n\t            nextWeek : function () {\n\t                switch (this.day()) {\n\t                case 0:\n\t                    return '[u] [nedjelju] [u] LT';\n\t                case 3:\n\t                    return '[u] [srijedu] [u] LT';\n\t                case 6:\n\t                    return '[u] [subotu] [u] LT';\n\t                case 1:\n\t                case 2:\n\t                case 4:\n\t                case 5:\n\t                    return '[u] dddd [u] LT';\n\t                }\n\t            },\n\t            lastDay  : '[jučer u] LT',\n\t            lastWeek : function () {\n\t                switch (this.day()) {\n\t                case 0:\n\t                case 3:\n\t                    return '[prošlu] dddd [u] LT';\n\t                case 6:\n\t                    return '[prošle] [subote] [u] LT';\n\t                case 1:\n\t                case 2:\n\t                case 4:\n\t                case 5:\n\t                    return '[prošli] dddd [u] LT';\n\t                }\n\t            },\n\t            sameElse : 'L'\n\t        },\n\t        relativeTime : {\n\t            future : 'za %s',\n\t            past   : 'prije %s',\n\t            s      : 'par sekundi',\n\t            m      : translate,\n\t            mm     : translate,\n\t            h      : translate,\n\t            hh     : translate,\n\t            d      : 'dan',\n\t            dd     : translate,\n\t            M      : 'mjesec',\n\t            MM     : translate,\n\t            y      : 'godinu',\n\t            yy     : translate\n\t        },\n\t        ordinalParse: /\\d{1,2}\\./,\n\t        ordinal : '%d.',\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 7  // The week that contains Jan 1st is the first week of the year.\n\t        }\n\t    });\n\n\t    return hr;\n\n\t}));\n\n/***/ },\n/* 68 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : hungarian (hu)\n\t//! author : Adam Brunner : https://github.com/adambrunner\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var weekEndings = 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(' ');\n\t    function translate(number, withoutSuffix, key, isFuture) {\n\t        var num = number,\n\t            suffix;\n\t        switch (key) {\n\t        case 's':\n\t            return (isFuture || withoutSuffix) ? 'néhány másodperc' : 'néhány másodperce';\n\t        case 'm':\n\t            return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce');\n\t        case 'mm':\n\t            return num + (isFuture || withoutSuffix ? ' perc' : ' perce');\n\t        case 'h':\n\t            return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája');\n\t        case 'hh':\n\t            return num + (isFuture || withoutSuffix ? ' óra' : ' órája');\n\t        case 'd':\n\t            return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja');\n\t        case 'dd':\n\t            return num + (isFuture || withoutSuffix ? ' nap' : ' napja');\n\t        case 'M':\n\t            return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');\n\t        case 'MM':\n\t            return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');\n\t        case 'y':\n\t            return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve');\n\t        case 'yy':\n\t            return num + (isFuture || withoutSuffix ? ' év' : ' éve');\n\t        }\n\t        return '';\n\t    }\n\t    function week(isFuture) {\n\t        return (isFuture ? '' : '[múlt] ') + '[' + weekEndings[this.day()] + '] LT[-kor]';\n\t    }\n\n\t    var hu = moment.defineLocale('hu', {\n\t        months : 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split('_'),\n\t        monthsShort : 'jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec'.split('_'),\n\t        weekdays : 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'),\n\t        weekdaysShort : 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'),\n\t        weekdaysMin : 'v_h_k_sze_cs_p_szo'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'H:mm',\n\t            LTS : 'H:mm:ss',\n\t            L : 'YYYY.MM.DD.',\n\t            LL : 'YYYY. MMMM D.',\n\t            LLL : 'YYYY. MMMM D. H:mm',\n\t            LLLL : 'YYYY. MMMM D., dddd H:mm'\n\t        },\n\t        meridiemParse: /de|du/i,\n\t        isPM: function (input) {\n\t            return input.charAt(1).toLowerCase() === 'u';\n\t        },\n\t        meridiem : function (hours, minutes, isLower) {\n\t            if (hours < 12) {\n\t                return isLower === true ? 'de' : 'DE';\n\t            } else {\n\t                return isLower === true ? 'du' : 'DU';\n\t            }\n\t        },\n\t        calendar : {\n\t            sameDay : '[ma] LT[-kor]',\n\t            nextDay : '[holnap] LT[-kor]',\n\t            nextWeek : function () {\n\t                return week.call(this, true);\n\t            },\n\t            lastDay : '[tegnap] LT[-kor]',\n\t            lastWeek : function () {\n\t                return week.call(this, false);\n\t            },\n\t            sameElse : 'L'\n\t        },\n\t        relativeTime : {\n\t            future : '%s múlva',\n\t            past : '%s',\n\t            s : translate,\n\t            m : translate,\n\t            mm : translate,\n\t            h : translate,\n\t            hh : translate,\n\t            d : translate,\n\t            dd : translate,\n\t            M : translate,\n\t            MM : translate,\n\t            y : translate,\n\t            yy : translate\n\t        },\n\t        ordinalParse: /\\d{1,2}\\./,\n\t        ordinal : '%d.',\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 7  // The week that contains Jan 1st is the first week of the year.\n\t        }\n\t    });\n\n\t    return hu;\n\n\t}));\n\n/***/ },\n/* 69 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : Armenian (hy-am)\n\t//! author : Armendarabyan : https://github.com/armendarabyan\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var hy_am = moment.defineLocale('hy-am', {\n\t        months : {\n\t            format: 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split('_'),\n\t            standalone: 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split('_')\n\t        },\n\t        monthsShort : 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_'),\n\t        weekdays : 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split('_'),\n\t        weekdaysShort : 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),\n\t        weekdaysMin : 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'HH:mm',\n\t            LTS : 'HH:mm:ss',\n\t            L : 'DD.MM.YYYY',\n\t            LL : 'D MMMM YYYY թ.',\n\t            LLL : 'D MMMM YYYY թ., HH:mm',\n\t            LLLL : 'dddd, D MMMM YYYY թ., HH:mm'\n\t        },\n\t        calendar : {\n\t            sameDay: '[այսօր] LT',\n\t            nextDay: '[վաղը] LT',\n\t            lastDay: '[երեկ] LT',\n\t            nextWeek: function () {\n\t                return 'dddd [օրը ժամը] LT';\n\t            },\n\t            lastWeek: function () {\n\t                return '[անցած] dddd [օրը ժամը] LT';\n\t            },\n\t            sameElse: 'L'\n\t        },\n\t        relativeTime : {\n\t            future : '%s հետո',\n\t            past : '%s առաջ',\n\t            s : 'մի քանի վայրկյան',\n\t            m : 'րոպե',\n\t            mm : '%d րոպե',\n\t            h : 'ժամ',\n\t            hh : '%d ժամ',\n\t            d : 'օր',\n\t            dd : '%d օր',\n\t            M : 'ամիս',\n\t            MM : '%d ամիս',\n\t            y : 'տարի',\n\t            yy : '%d տարի'\n\t        },\n\t        meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,\n\t        isPM: function (input) {\n\t            return /^(ցերեկվա|երեկոյան)$/.test(input);\n\t        },\n\t        meridiem : function (hour) {\n\t            if (hour < 4) {\n\t                return 'գիշերվա';\n\t            } else if (hour < 12) {\n\t                return 'առավոտվա';\n\t            } else if (hour < 17) {\n\t                return 'ցերեկվա';\n\t            } else {\n\t                return 'երեկոյան';\n\t            }\n\t        },\n\t        ordinalParse: /\\d{1,2}|\\d{1,2}-(ին|րդ)/,\n\t        ordinal: function (number, period) {\n\t            switch (period) {\n\t            case 'DDD':\n\t            case 'w':\n\t            case 'W':\n\t            case 'DDDo':\n\t                if (number === 1) {\n\t                    return number + '-ին';\n\t                }\n\t                return number + '-րդ';\n\t            default:\n\t                return number;\n\t            }\n\t        },\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 7  // The week that contains Jan 1st is the first week of the year.\n\t        }\n\t    });\n\n\t    return hy_am;\n\n\t}));\n\n/***/ },\n/* 70 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : Bahasa Indonesia (id)\n\t//! author : Mohammad Satrio Utomo : https://github.com/tyok\n\t//! reference: http://id.wikisource.org/wiki/Pedoman_Umum_Ejaan_Bahasa_Indonesia_yang_Disempurnakan\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var id = moment.defineLocale('id', {\n\t        months : 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split('_'),\n\t        monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des'.split('_'),\n\t        weekdays : 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'),\n\t        weekdaysShort : 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'),\n\t        weekdaysMin : 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'HH.mm',\n\t            LTS : 'HH.mm.ss',\n\t            L : 'DD/MM/YYYY',\n\t            LL : 'D MMMM YYYY',\n\t            LLL : 'D MMMM YYYY [pukul] HH.mm',\n\t            LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'\n\t        },\n\t        meridiemParse: /pagi|siang|sore|malam/,\n\t        meridiemHour : function (hour, meridiem) {\n\t            if (hour === 12) {\n\t                hour = 0;\n\t            }\n\t            if (meridiem === 'pagi') {\n\t                return hour;\n\t            } else if (meridiem === 'siang') {\n\t                return hour >= 11 ? hour : hour + 12;\n\t            } else if (meridiem === 'sore' || meridiem === 'malam') {\n\t                return hour + 12;\n\t            }\n\t        },\n\t        meridiem : function (hours, minutes, isLower) {\n\t            if (hours < 11) {\n\t                return 'pagi';\n\t            } else if (hours < 15) {\n\t                return 'siang';\n\t            } else if (hours < 19) {\n\t                return 'sore';\n\t            } else {\n\t                return 'malam';\n\t            }\n\t        },\n\t        calendar : {\n\t            sameDay : '[Hari ini pukul] LT',\n\t            nextDay : '[Besok pukul] LT',\n\t            nextWeek : 'dddd [pukul] LT',\n\t            lastDay : '[Kemarin pukul] LT',\n\t            lastWeek : 'dddd [lalu pukul] LT',\n\t            sameElse : 'L'\n\t        },\n\t        relativeTime : {\n\t            future : 'dalam %s',\n\t            past : '%s yang lalu',\n\t            s : 'beberapa detik',\n\t            m : 'semenit',\n\t            mm : '%d menit',\n\t            h : 'sejam',\n\t            hh : '%d jam',\n\t            d : 'sehari',\n\t            dd : '%d hari',\n\t            M : 'sebulan',\n\t            MM : '%d bulan',\n\t            y : 'setahun',\n\t            yy : '%d tahun'\n\t        },\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 7  // The week that contains Jan 1st is the first week of the year.\n\t        }\n\t    });\n\n\t    return id;\n\n\t}));\n\n/***/ },\n/* 71 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : icelandic (is)\n\t//! author : Hinrik Örn Sigurðsson : https://github.com/hinrik\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    function plural(n) {\n\t        if (n % 100 === 11) {\n\t            return true;\n\t        } else if (n % 10 === 1) {\n\t            return false;\n\t        }\n\t        return true;\n\t    }\n\t    function translate(number, withoutSuffix, key, isFuture) {\n\t        var result = number + ' ';\n\t        switch (key) {\n\t        case 's':\n\t            return withoutSuffix || isFuture ? 'nokkrar sekúndur' : 'nokkrum sekúndum';\n\t        case 'm':\n\t            return withoutSuffix ? 'mínúta' : 'mínútu';\n\t        case 'mm':\n\t            if (plural(number)) {\n\t                return result + (withoutSuffix || isFuture ? 'mínútur' : 'mínútum');\n\t            } else if (withoutSuffix) {\n\t                return result + 'mínúta';\n\t            }\n\t            return result + 'mínútu';\n\t        case 'hh':\n\t            if (plural(number)) {\n\t                return result + (withoutSuffix || isFuture ? 'klukkustundir' : 'klukkustundum');\n\t            }\n\t            return result + 'klukkustund';\n\t        case 'd':\n\t            if (withoutSuffix) {\n\t                return 'dagur';\n\t            }\n\t            return isFuture ? 'dag' : 'degi';\n\t        case 'dd':\n\t            if (plural(number)) {\n\t                if (withoutSuffix) {\n\t                    return result + 'dagar';\n\t                }\n\t                return result + (isFuture ? 'daga' : 'dögum');\n\t            } else if (withoutSuffix) {\n\t                return result + 'dagur';\n\t            }\n\t            return result + (isFuture ? 'dag' : 'degi');\n\t        case 'M':\n\t            if (withoutSuffix) {\n\t                return 'mánuður';\n\t            }\n\t            return isFuture ? 'mánuð' : 'mánuði';\n\t        case 'MM':\n\t            if (plural(number)) {\n\t                if (withoutSuffix) {\n\t                    return result + 'mánuðir';\n\t                }\n\t                return result + (isFuture ? 'mánuði' : 'mánuðum');\n\t            } else if (withoutSuffix) {\n\t                return result + 'mánuður';\n\t            }\n\t            return result + (isFuture ? 'mánuð' : 'mánuði');\n\t        case 'y':\n\t            return withoutSuffix || isFuture ? 'ár' : 'ári';\n\t        case 'yy':\n\t            if (plural(number)) {\n\t                return result + (withoutSuffix || isFuture ? 'ár' : 'árum');\n\t            }\n\t            return result + (withoutSuffix || isFuture ? 'ár' : 'ári');\n\t        }\n\t    }\n\n\t    var is = moment.defineLocale('is', {\n\t        months : 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split('_'),\n\t        monthsShort : 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'),\n\t        weekdays : 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split('_'),\n\t        weekdaysShort : 'sun_mán_þri_mið_fim_fös_lau'.split('_'),\n\t        weekdaysMin : 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'H:mm',\n\t            LTS : 'H:mm:ss',\n\t            L : 'DD/MM/YYYY',\n\t            LL : 'D. MMMM YYYY',\n\t            LLL : 'D. MMMM YYYY [kl.] H:mm',\n\t            LLLL : 'dddd, D. MMMM YYYY [kl.] H:mm'\n\t        },\n\t        calendar : {\n\t            sameDay : '[í dag kl.] LT',\n\t            nextDay : '[á morgun kl.] LT',\n\t            nextWeek : 'dddd [kl.] LT',\n\t            lastDay : '[í gær kl.] LT',\n\t            lastWeek : '[síðasta] dddd [kl.] LT',\n\t            sameElse : 'L'\n\t        },\n\t        relativeTime : {\n\t            future : 'eftir %s',\n\t            past : 'fyrir %s síðan',\n\t            s : translate,\n\t            m : translate,\n\t            mm : translate,\n\t            h : 'klukkustund',\n\t            hh : translate,\n\t            d : translate,\n\t            dd : translate,\n\t            M : translate,\n\t            MM : translate,\n\t            y : translate,\n\t            yy : translate\n\t        },\n\t        ordinalParse: /\\d{1,2}\\./,\n\t        ordinal : '%d.',\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 4  // The week that contains Jan 4th is the first week of the year.\n\t        }\n\t    });\n\n\t    return is;\n\n\t}));\n\n/***/ },\n/* 72 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : italian (it)\n\t//! author : Lorenzo : https://github.com/aliem\n\t//! author: Mattia Larentis: https://github.com/nostalgiaz\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var it = moment.defineLocale('it', {\n\t        months : 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split('_'),\n\t        monthsShort : 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),\n\t        weekdays : 'Domenica_Lunedì_Martedì_Mercoledì_Giovedì_Venerdì_Sabato'.split('_'),\n\t        weekdaysShort : 'Dom_Lun_Mar_Mer_Gio_Ven_Sab'.split('_'),\n\t        weekdaysMin : 'Do_Lu_Ma_Me_Gi_Ve_Sa'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'HH:mm',\n\t            LTS : 'HH:mm:ss',\n\t            L : 'DD/MM/YYYY',\n\t            LL : 'D MMMM YYYY',\n\t            LLL : 'D MMMM YYYY HH:mm',\n\t            LLLL : 'dddd, D MMMM YYYY HH:mm'\n\t        },\n\t        calendar : {\n\t            sameDay: '[Oggi alle] LT',\n\t            nextDay: '[Domani alle] LT',\n\t            nextWeek: 'dddd [alle] LT',\n\t            lastDay: '[Ieri alle] LT',\n\t            lastWeek: function () {\n\t                switch (this.day()) {\n\t                    case 0:\n\t                        return '[la scorsa] dddd [alle] LT';\n\t                    default:\n\t                        return '[lo scorso] dddd [alle] LT';\n\t                }\n\t            },\n\t            sameElse: 'L'\n\t        },\n\t        relativeTime : {\n\t            future : function (s) {\n\t                return ((/^[0-9].+$/).test(s) ? 'tra' : 'in') + ' ' + s;\n\t            },\n\t            past : '%s fa',\n\t            s : 'alcuni secondi',\n\t            m : 'un minuto',\n\t            mm : '%d minuti',\n\t            h : 'un\\'ora',\n\t            hh : '%d ore',\n\t            d : 'un giorno',\n\t            dd : '%d giorni',\n\t            M : 'un mese',\n\t            MM : '%d mesi',\n\t            y : 'un anno',\n\t            yy : '%d anni'\n\t        },\n\t        ordinalParse : /\\d{1,2}º/,\n\t        ordinal: '%dº',\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 4  // The week that contains Jan 4th is the first week of the year.\n\t        }\n\t    });\n\n\t    return it;\n\n\t}));\n\n/***/ },\n/* 73 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : japanese (ja)\n\t//! author : LI Long : https://github.com/baryon\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var ja = moment.defineLocale('ja', {\n\t        months : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),\n\t        monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),\n\t        weekdays : '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'),\n\t        weekdaysShort : '日_月_火_水_木_金_土'.split('_'),\n\t        weekdaysMin : '日_月_火_水_木_金_土'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'Ah時m分',\n\t            LTS : 'Ah時m分s秒',\n\t            L : 'YYYY/MM/DD',\n\t            LL : 'YYYY年M月D日',\n\t            LLL : 'YYYY年M月D日Ah時m分',\n\t            LLLL : 'YYYY年M月D日Ah時m分 dddd'\n\t        },\n\t        meridiemParse: /午前|午後/i,\n\t        isPM : function (input) {\n\t            return input === '午後';\n\t        },\n\t        meridiem : function (hour, minute, isLower) {\n\t            if (hour < 12) {\n\t                return '午前';\n\t            } else {\n\t                return '午後';\n\t            }\n\t        },\n\t        calendar : {\n\t            sameDay : '[今日] LT',\n\t            nextDay : '[明日] LT',\n\t            nextWeek : '[来週]dddd LT',\n\t            lastDay : '[昨日] LT',\n\t            lastWeek : '[前週]dddd LT',\n\t            sameElse : 'L'\n\t        },\n\t        relativeTime : {\n\t            future : '%s後',\n\t            past : '%s前',\n\t            s : '数秒',\n\t            m : '1分',\n\t            mm : '%d分',\n\t            h : '1時間',\n\t            hh : '%d時間',\n\t            d : '1日',\n\t            dd : '%d日',\n\t            M : '1ヶ月',\n\t            MM : '%dヶ月',\n\t            y : '1年',\n\t            yy : '%d年'\n\t        }\n\t    });\n\n\t    return ja;\n\n\t}));\n\n/***/ },\n/* 74 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : Boso Jowo (jv)\n\t//! author : Rony Lantip : https://github.com/lantip\n\t//! reference: http://jv.wikipedia.org/wiki/Basa_Jawa\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var jv = moment.defineLocale('jv', {\n\t        months : 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split('_'),\n\t        monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'),\n\t        weekdays : 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'),\n\t        weekdaysShort : 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'),\n\t        weekdaysMin : 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'HH.mm',\n\t            LTS : 'HH.mm.ss',\n\t            L : 'DD/MM/YYYY',\n\t            LL : 'D MMMM YYYY',\n\t            LLL : 'D MMMM YYYY [pukul] HH.mm',\n\t            LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'\n\t        },\n\t        meridiemParse: /enjing|siyang|sonten|ndalu/,\n\t        meridiemHour : function (hour, meridiem) {\n\t            if (hour === 12) {\n\t                hour = 0;\n\t            }\n\t            if (meridiem === 'enjing') {\n\t                return hour;\n\t            } else if (meridiem === 'siyang') {\n\t                return hour >= 11 ? hour : hour + 12;\n\t            } else if (meridiem === 'sonten' || meridiem === 'ndalu') {\n\t                return hour + 12;\n\t            }\n\t        },\n\t        meridiem : function (hours, minutes, isLower) {\n\t            if (hours < 11) {\n\t                return 'enjing';\n\t            } else if (hours < 15) {\n\t                return 'siyang';\n\t            } else if (hours < 19) {\n\t                return 'sonten';\n\t            } else {\n\t                return 'ndalu';\n\t            }\n\t        },\n\t        calendar : {\n\t            sameDay : '[Dinten puniko pukul] LT',\n\t            nextDay : '[Mbenjang pukul] LT',\n\t            nextWeek : 'dddd [pukul] LT',\n\t            lastDay : '[Kala wingi pukul] LT',\n\t            lastWeek : 'dddd [kepengker pukul] LT',\n\t            sameElse : 'L'\n\t        },\n\t        relativeTime : {\n\t            future : 'wonten ing %s',\n\t            past : '%s ingkang kepengker',\n\t            s : 'sawetawis detik',\n\t            m : 'setunggal menit',\n\t            mm : '%d menit',\n\t            h : 'setunggal jam',\n\t            hh : '%d jam',\n\t            d : 'sedinten',\n\t            dd : '%d dinten',\n\t            M : 'sewulan',\n\t            MM : '%d wulan',\n\t            y : 'setaun',\n\t            yy : '%d taun'\n\t        },\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 7  // The week that contains Jan 1st is the first week of the year.\n\t        }\n\t    });\n\n\t    return jv;\n\n\t}));\n\n/***/ },\n/* 75 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : Georgian (ka)\n\t//! author : Irakli Janiashvili : https://github.com/irakli-janiashvili\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var ka = moment.defineLocale('ka', {\n\t        months : {\n\t            standalone: 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split('_'),\n\t            format: 'იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს'.split('_')\n\t        },\n\t        monthsShort : 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split('_'),\n\t        weekdays : {\n\t            standalone: 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split('_'),\n\t            format: 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split('_'),\n\t            isFormat: /(წინა|შემდეგ)/\n\t        },\n\t        weekdaysShort : 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'),\n\t        weekdaysMin : 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'h:mm A',\n\t            LTS : 'h:mm:ss A',\n\t            L : 'DD/MM/YYYY',\n\t            LL : 'D MMMM YYYY',\n\t            LLL : 'D MMMM YYYY h:mm A',\n\t            LLLL : 'dddd, D MMMM YYYY h:mm A'\n\t        },\n\t        calendar : {\n\t            sameDay : '[დღეს] LT[-ზე]',\n\t            nextDay : '[ხვალ] LT[-ზე]',\n\t            lastDay : '[გუშინ] LT[-ზე]',\n\t            nextWeek : '[შემდეგ] dddd LT[-ზე]',\n\t            lastWeek : '[წინა] dddd LT-ზე',\n\t            sameElse : 'L'\n\t        },\n\t        relativeTime : {\n\t            future : function (s) {\n\t                return (/(წამი|წუთი|საათი|წელი)/).test(s) ?\n\t                    s.replace(/ი$/, 'ში') :\n\t                    s + 'ში';\n\t            },\n\t            past : function (s) {\n\t                if ((/(წამი|წუთი|საათი|დღე|თვე)/).test(s)) {\n\t                    return s.replace(/(ი|ე)$/, 'ის წინ');\n\t                }\n\t                if ((/წელი/).test(s)) {\n\t                    return s.replace(/წელი$/, 'წლის წინ');\n\t                }\n\t            },\n\t            s : 'რამდენიმე წამი',\n\t            m : 'წუთი',\n\t            mm : '%d წუთი',\n\t            h : 'საათი',\n\t            hh : '%d საათი',\n\t            d : 'დღე',\n\t            dd : '%d დღე',\n\t            M : 'თვე',\n\t            MM : '%d თვე',\n\t            y : 'წელი',\n\t            yy : '%d წელი'\n\t        },\n\t        ordinalParse: /0|1-ლი|მე-\\d{1,2}|\\d{1,2}-ე/,\n\t        ordinal : function (number) {\n\t            if (number === 0) {\n\t                return number;\n\t            }\n\t            if (number === 1) {\n\t                return number + '-ლი';\n\t            }\n\t            if ((number < 20) || (number <= 100 && (number % 20 === 0)) || (number % 100 === 0)) {\n\t                return 'მე-' + number;\n\t            }\n\t            return number + '-ე';\n\t        },\n\t        week : {\n\t            dow : 1,\n\t            doy : 7\n\t        }\n\t    });\n\n\t    return ka;\n\n\t}));\n\n/***/ },\n/* 76 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : kazakh (kk)\n\t//! authors : Nurlan Rakhimzhanov : https://github.com/nurlan\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var suffixes = {\n\t        0: '-ші',\n\t        1: '-ші',\n\t        2: '-ші',\n\t        3: '-ші',\n\t        4: '-ші',\n\t        5: '-ші',\n\t        6: '-шы',\n\t        7: '-ші',\n\t        8: '-ші',\n\t        9: '-шы',\n\t        10: '-шы',\n\t        20: '-шы',\n\t        30: '-шы',\n\t        40: '-шы',\n\t        50: '-ші',\n\t        60: '-шы',\n\t        70: '-ші',\n\t        80: '-ші',\n\t        90: '-шы',\n\t        100: '-ші'\n\t    };\n\n\t    var kk = moment.defineLocale('kk', {\n\t        months : 'Қаңтар_Ақпан_Наурыз_Сәуір_Мамыр_Маусым_Шілде_Тамыз_Қыркүйек_Қазан_Қараша_Желтоқсан'.split('_'),\n\t        monthsShort : 'Қаң_Ақп_Нау_Сәу_Мам_Мау_Шіл_Там_Қыр_Қаз_Қар_Жел'.split('_'),\n\t        weekdays : 'Жексенбі_Дүйсенбі_Сейсенбі_Сәрсенбі_Бейсенбі_Жұма_Сенбі'.split('_'),\n\t        weekdaysShort : 'Жек_Дүй_Сей_Сәр_Бей_Жұм_Сен'.split('_'),\n\t        weekdaysMin : 'Жк_Дй_Сй_Ср_Бй_Жм_Сн'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'HH:mm',\n\t            LTS : 'HH:mm:ss',\n\t            L : 'DD.MM.YYYY',\n\t            LL : 'D MMMM YYYY',\n\t            LLL : 'D MMMM YYYY HH:mm',\n\t            LLLL : 'dddd, D MMMM YYYY HH:mm'\n\t        },\n\t        calendar : {\n\t            sameDay : '[Бүгін сағат] LT',\n\t            nextDay : '[Ертең сағат] LT',\n\t            nextWeek : 'dddd [сағат] LT',\n\t            lastDay : '[Кеше сағат] LT',\n\t            lastWeek : '[Өткен аптаның] dddd [сағат] LT',\n\t            sameElse : 'L'\n\t        },\n\t        relativeTime : {\n\t            future : '%s ішінде',\n\t            past : '%s бұрын',\n\t            s : 'бірнеше секунд',\n\t            m : 'бір минут',\n\t            mm : '%d минут',\n\t            h : 'бір сағат',\n\t            hh : '%d сағат',\n\t            d : 'бір күн',\n\t            dd : '%d күн',\n\t            M : 'бір ай',\n\t            MM : '%d ай',\n\t            y : 'бір жыл',\n\t            yy : '%d жыл'\n\t        },\n\t        ordinalParse: /\\d{1,2}-(ші|шы)/,\n\t        ordinal : function (number) {\n\t            var a = number % 10,\n\t                b = number >= 100 ? 100 : null;\n\t            return number + (suffixes[number] || suffixes[a] || suffixes[b]);\n\t        },\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 7  // The week that contains Jan 1st is the first week of the year.\n\t        }\n\t    });\n\n\t    return kk;\n\n\t}));\n\n/***/ },\n/* 77 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : khmer (km)\n\t//! author : Kruy Vanna : https://github.com/kruyvanna\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var km = moment.defineLocale('km', {\n\t        months: 'មករា_កុម្ភៈ_មិនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'),\n\t        monthsShort: 'មករា_កុម្ភៈ_មិនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'),\n\t        weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),\n\t        weekdaysShort: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),\n\t        weekdaysMin: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),\n\t        longDateFormat: {\n\t            LT: 'HH:mm',\n\t            LTS : 'HH:mm:ss',\n\t            L: 'DD/MM/YYYY',\n\t            LL: 'D MMMM YYYY',\n\t            LLL: 'D MMMM YYYY HH:mm',\n\t            LLLL: 'dddd, D MMMM YYYY HH:mm'\n\t        },\n\t        calendar: {\n\t            sameDay: '[ថ្ងៃនេះ ម៉ោង] LT',\n\t            nextDay: '[ស្អែក ម៉ោង] LT',\n\t            nextWeek: 'dddd [ម៉ោង] LT',\n\t            lastDay: '[ម្សិលមិញ ម៉ោង] LT',\n\t            lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT',\n\t            sameElse: 'L'\n\t        },\n\t        relativeTime: {\n\t            future: '%sទៀត',\n\t            past: '%sមុន',\n\t            s: 'ប៉ុន្មានវិនាទី',\n\t            m: 'មួយនាទី',\n\t            mm: '%d នាទី',\n\t            h: 'មួយម៉ោង',\n\t            hh: '%d ម៉ោង',\n\t            d: 'មួយថ្ងៃ',\n\t            dd: '%d ថ្ងៃ',\n\t            M: 'មួយខែ',\n\t            MM: '%d ខែ',\n\t            y: 'មួយឆ្នាំ',\n\t            yy: '%d ឆ្នាំ'\n\t        },\n\t        week: {\n\t            dow: 1, // Monday is the first day of the week.\n\t            doy: 4 // The week that contains Jan 4th is the first week of the year.\n\t        }\n\t    });\n\n\t    return km;\n\n\t}));\n\n/***/ },\n/* 78 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : korean (ko)\n\t//!\n\t//! authors\n\t//!\n\t//! - Kyungwook, Park : https://github.com/kyungw00k\n\t//! - Jeeeyul Lee <jeeeyul@gmail.com>\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var ko = moment.defineLocale('ko', {\n\t        months : '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),\n\t        monthsShort : '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),\n\t        weekdays : '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'),\n\t        weekdaysShort : '일_월_화_수_목_금_토'.split('_'),\n\t        weekdaysMin : '일_월_화_수_목_금_토'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'A h시 m분',\n\t            LTS : 'A h시 m분 s초',\n\t            L : 'YYYY.MM.DD',\n\t            LL : 'YYYY년 MMMM D일',\n\t            LLL : 'YYYY년 MMMM D일 A h시 m분',\n\t            LLLL : 'YYYY년 MMMM D일 dddd A h시 m분'\n\t        },\n\t        calendar : {\n\t            sameDay : '오늘 LT',\n\t            nextDay : '내일 LT',\n\t            nextWeek : 'dddd LT',\n\t            lastDay : '어제 LT',\n\t            lastWeek : '지난주 dddd LT',\n\t            sameElse : 'L'\n\t        },\n\t        relativeTime : {\n\t            future : '%s 후',\n\t            past : '%s 전',\n\t            s : '몇초',\n\t            ss : '%d초',\n\t            m : '일분',\n\t            mm : '%d분',\n\t            h : '한시간',\n\t            hh : '%d시간',\n\t            d : '하루',\n\t            dd : '%d일',\n\t            M : '한달',\n\t            MM : '%d달',\n\t            y : '일년',\n\t            yy : '%d년'\n\t        },\n\t        ordinalParse : /\\d{1,2}일/,\n\t        ordinal : '%d일',\n\t        meridiemParse : /오전|오후/,\n\t        isPM : function (token) {\n\t            return token === '오후';\n\t        },\n\t        meridiem : function (hour, minute, isUpper) {\n\t            return hour < 12 ? '오전' : '오후';\n\t        }\n\t    });\n\n\t    return ko;\n\n\t}));\n\n/***/ },\n/* 79 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : Luxembourgish (lb)\n\t//! author : mweimerskirch : https://github.com/mweimerskirch, David Raison : https://github.com/kwisatz\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    function processRelativeTime(number, withoutSuffix, key, isFuture) {\n\t        var format = {\n\t            'm': ['eng Minutt', 'enger Minutt'],\n\t            'h': ['eng Stonn', 'enger Stonn'],\n\t            'd': ['een Dag', 'engem Dag'],\n\t            'M': ['ee Mount', 'engem Mount'],\n\t            'y': ['ee Joer', 'engem Joer']\n\t        };\n\t        return withoutSuffix ? format[key][0] : format[key][1];\n\t    }\n\t    function processFutureTime(string) {\n\t        var number = string.substr(0, string.indexOf(' '));\n\t        if (eifelerRegelAppliesToNumber(number)) {\n\t            return 'a ' + string;\n\t        }\n\t        return 'an ' + string;\n\t    }\n\t    function processPastTime(string) {\n\t        var number = string.substr(0, string.indexOf(' '));\n\t        if (eifelerRegelAppliesToNumber(number)) {\n\t            return 'viru ' + string;\n\t        }\n\t        return 'virun ' + string;\n\t    }\n\t    /**\n\t     * Returns true if the word before the given number loses the '-n' ending.\n\t     * e.g. 'an 10 Deeg' but 'a 5 Deeg'\n\t     *\n\t     * @param number {integer}\n\t     * @returns {boolean}\n\t     */\n\t    function eifelerRegelAppliesToNumber(number) {\n\t        number = parseInt(number, 10);\n\t        if (isNaN(number)) {\n\t            return false;\n\t        }\n\t        if (number < 0) {\n\t            // Negative Number --> always true\n\t            return true;\n\t        } else if (number < 10) {\n\t            // Only 1 digit\n\t            if (4 <= number && number <= 7) {\n\t                return true;\n\t            }\n\t            return false;\n\t        } else if (number < 100) {\n\t            // 2 digits\n\t            var lastDigit = number % 10, firstDigit = number / 10;\n\t            if (lastDigit === 0) {\n\t                return eifelerRegelAppliesToNumber(firstDigit);\n\t            }\n\t            return eifelerRegelAppliesToNumber(lastDigit);\n\t        } else if (number < 10000) {\n\t            // 3 or 4 digits --> recursively check first digit\n\t            while (number >= 10) {\n\t                number = number / 10;\n\t            }\n\t            return eifelerRegelAppliesToNumber(number);\n\t        } else {\n\t            // Anything larger than 4 digits: recursively check first n-3 digits\n\t            number = number / 1000;\n\t            return eifelerRegelAppliesToNumber(number);\n\t        }\n\t    }\n\n\t    var lb = moment.defineLocale('lb', {\n\t        months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),\n\t        monthsShort: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),\n\t        weekdays: 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split('_'),\n\t        weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'),\n\t        weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'),\n\t        longDateFormat: {\n\t            LT: 'H:mm [Auer]',\n\t            LTS: 'H:mm:ss [Auer]',\n\t            L: 'DD.MM.YYYY',\n\t            LL: 'D. MMMM YYYY',\n\t            LLL: 'D. MMMM YYYY H:mm [Auer]',\n\t            LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]'\n\t        },\n\t        calendar: {\n\t            sameDay: '[Haut um] LT',\n\t            sameElse: 'L',\n\t            nextDay: '[Muer um] LT',\n\t            nextWeek: 'dddd [um] LT',\n\t            lastDay: '[Gëschter um] LT',\n\t            lastWeek: function () {\n\t                // Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule\n\t                switch (this.day()) {\n\t                    case 2:\n\t                    case 4:\n\t                        return '[Leschten] dddd [um] LT';\n\t                    default:\n\t                        return '[Leschte] dddd [um] LT';\n\t                }\n\t            }\n\t        },\n\t        relativeTime : {\n\t            future : processFutureTime,\n\t            past : processPastTime,\n\t            s : 'e puer Sekonnen',\n\t            m : processRelativeTime,\n\t            mm : '%d Minutten',\n\t            h : processRelativeTime,\n\t            hh : '%d Stonnen',\n\t            d : processRelativeTime,\n\t            dd : '%d Deeg',\n\t            M : processRelativeTime,\n\t            MM : '%d Méint',\n\t            y : processRelativeTime,\n\t            yy : '%d Joer'\n\t        },\n\t        ordinalParse: /\\d{1,2}\\./,\n\t        ordinal: '%d.',\n\t        week: {\n\t            dow: 1, // Monday is the first day of the week.\n\t            doy: 4  // The week that contains Jan 4th is the first week of the year.\n\t        }\n\t    });\n\n\t    return lb;\n\n\t}));\n\n/***/ },\n/* 80 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : lao (lo)\n\t//! author : Ryan Hart : https://github.com/ryanhart2\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var lo = moment.defineLocale('lo', {\n\t        months : 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),\n\t        monthsShort : 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),\n\t        weekdays : 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),\n\t        weekdaysShort : 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),\n\t        weekdaysMin : 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'HH:mm',\n\t            LTS : 'HH:mm:ss',\n\t            L : 'DD/MM/YYYY',\n\t            LL : 'D MMMM YYYY',\n\t            LLL : 'D MMMM YYYY HH:mm',\n\t            LLLL : 'ວັນdddd D MMMM YYYY HH:mm'\n\t        },\n\t        meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/,\n\t        isPM: function (input) {\n\t            return input === 'ຕອນແລງ';\n\t        },\n\t        meridiem : function (hour, minute, isLower) {\n\t            if (hour < 12) {\n\t                return 'ຕອນເຊົ້າ';\n\t            } else {\n\t                return 'ຕອນແລງ';\n\t            }\n\t        },\n\t        calendar : {\n\t            sameDay : '[ມື້ນີ້ເວລາ] LT',\n\t            nextDay : '[ມື້ອື່ນເວລາ] LT',\n\t            nextWeek : '[ວັນ]dddd[ໜ້າເວລາ] LT',\n\t            lastDay : '[ມື້ວານນີ້ເວລາ] LT',\n\t            lastWeek : '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT',\n\t            sameElse : 'L'\n\t        },\n\t        relativeTime : {\n\t            future : 'ອີກ %s',\n\t            past : '%sຜ່ານມາ',\n\t            s : 'ບໍ່ເທົ່າໃດວິນາທີ',\n\t            m : '1 ນາທີ',\n\t            mm : '%d ນາທີ',\n\t            h : '1 ຊົ່ວໂມງ',\n\t            hh : '%d ຊົ່ວໂມງ',\n\t            d : '1 ມື້',\n\t            dd : '%d ມື້',\n\t            M : '1 ເດືອນ',\n\t            MM : '%d ເດືອນ',\n\t            y : '1 ປີ',\n\t            yy : '%d ປີ'\n\t        },\n\t        ordinalParse: /(ທີ່)\\d{1,2}/,\n\t        ordinal : function (number) {\n\t            return 'ທີ່' + number;\n\t        }\n\t    });\n\n\t    return lo;\n\n\t}));\n\n/***/ },\n/* 81 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : Lithuanian (lt)\n\t//! author : Mindaugas Mozūras : https://github.com/mmozuras\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var units = {\n\t        'm' : 'minutė_minutės_minutę',\n\t        'mm': 'minutės_minučių_minutes',\n\t        'h' : 'valanda_valandos_valandą',\n\t        'hh': 'valandos_valandų_valandas',\n\t        'd' : 'diena_dienos_dieną',\n\t        'dd': 'dienos_dienų_dienas',\n\t        'M' : 'mėnuo_mėnesio_mėnesį',\n\t        'MM': 'mėnesiai_mėnesių_mėnesius',\n\t        'y' : 'metai_metų_metus',\n\t        'yy': 'metai_metų_metus'\n\t    };\n\t    function translateSeconds(number, withoutSuffix, key, isFuture) {\n\t        if (withoutSuffix) {\n\t            return 'kelios sekundės';\n\t        } else {\n\t            return isFuture ? 'kelių sekundžių' : 'kelias sekundes';\n\t        }\n\t    }\n\t    function translateSingular(number, withoutSuffix, key, isFuture) {\n\t        return withoutSuffix ? forms(key)[0] : (isFuture ? forms(key)[1] : forms(key)[2]);\n\t    }\n\t    function special(number) {\n\t        return number % 10 === 0 || (number > 10 && number < 20);\n\t    }\n\t    function forms(key) {\n\t        return units[key].split('_');\n\t    }\n\t    function translate(number, withoutSuffix, key, isFuture) {\n\t        var result = number + ' ';\n\t        if (number === 1) {\n\t            return result + translateSingular(number, withoutSuffix, key[0], isFuture);\n\t        } else if (withoutSuffix) {\n\t            return result + (special(number) ? forms(key)[1] : forms(key)[0]);\n\t        } else {\n\t            if (isFuture) {\n\t                return result + forms(key)[1];\n\t            } else {\n\t                return result + (special(number) ? forms(key)[1] : forms(key)[2]);\n\t            }\n\t        }\n\t    }\n\t    var lt = moment.defineLocale('lt', {\n\t        months : {\n\t            format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split('_'),\n\t            standalone: 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split('_')\n\t        },\n\t        monthsShort : 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'),\n\t        weekdays : {\n\t            format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split('_'),\n\t            standalone: 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split('_'),\n\t            isFormat: /dddd HH:mm/\n\t        },\n\t        weekdaysShort : 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'),\n\t        weekdaysMin : 'S_P_A_T_K_Pn_Š'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'HH:mm',\n\t            LTS : 'HH:mm:ss',\n\t            L : 'YYYY-MM-DD',\n\t            LL : 'YYYY [m.] MMMM D [d.]',\n\t            LLL : 'YYYY [m.] MMMM D [d.], HH:mm [val.]',\n\t            LLLL : 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]',\n\t            l : 'YYYY-MM-DD',\n\t            ll : 'YYYY [m.] MMMM D [d.]',\n\t            lll : 'YYYY [m.] MMMM D [d.], HH:mm [val.]',\n\t            llll : 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]'\n\t        },\n\t        calendar : {\n\t            sameDay : '[Šiandien] LT',\n\t            nextDay : '[Rytoj] LT',\n\t            nextWeek : 'dddd LT',\n\t            lastDay : '[Vakar] LT',\n\t            lastWeek : '[Praėjusį] dddd LT',\n\t            sameElse : 'L'\n\t        },\n\t        relativeTime : {\n\t            future : 'po %s',\n\t            past : 'prieš %s',\n\t            s : translateSeconds,\n\t            m : translateSingular,\n\t            mm : translate,\n\t            h : translateSingular,\n\t            hh : translate,\n\t            d : translateSingular,\n\t            dd : translate,\n\t            M : translateSingular,\n\t            MM : translate,\n\t            y : translateSingular,\n\t            yy : translate\n\t        },\n\t        ordinalParse: /\\d{1,2}-oji/,\n\t        ordinal : function (number) {\n\t            return number + '-oji';\n\t        },\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 4  // The week that contains Jan 4th is the first week of the year.\n\t        }\n\t    });\n\n\t    return lt;\n\n\t}));\n\n/***/ },\n/* 82 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : latvian (lv)\n\t//! author : Kristaps Karlsons : https://github.com/skakri\n\t//! author : Jānis Elmeris : https://github.com/JanisE\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var units = {\n\t        'm': 'minūtes_minūtēm_minūte_minūtes'.split('_'),\n\t        'mm': 'minūtes_minūtēm_minūte_minūtes'.split('_'),\n\t        'h': 'stundas_stundām_stunda_stundas'.split('_'),\n\t        'hh': 'stundas_stundām_stunda_stundas'.split('_'),\n\t        'd': 'dienas_dienām_diena_dienas'.split('_'),\n\t        'dd': 'dienas_dienām_diena_dienas'.split('_'),\n\t        'M': 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),\n\t        'MM': 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),\n\t        'y': 'gada_gadiem_gads_gadi'.split('_'),\n\t        'yy': 'gada_gadiem_gads_gadi'.split('_')\n\t    };\n\t    /**\n\t     * @param withoutSuffix boolean true = a length of time; false = before/after a period of time.\n\t     */\n\t    function format(forms, number, withoutSuffix) {\n\t        if (withoutSuffix) {\n\t            // E.g. \"21 minūte\", \"3 minūtes\".\n\t            return number % 10 === 1 && number !== 11 ? forms[2] : forms[3];\n\t        } else {\n\t            // E.g. \"21 minūtes\" as in \"pēc 21 minūtes\".\n\t            // E.g. \"3 minūtēm\" as in \"pēc 3 minūtēm\".\n\t            return number % 10 === 1 && number !== 11 ? forms[0] : forms[1];\n\t        }\n\t    }\n\t    function relativeTimeWithPlural(number, withoutSuffix, key) {\n\t        return number + ' ' + format(units[key], number, withoutSuffix);\n\t    }\n\t    function relativeTimeWithSingular(number, withoutSuffix, key) {\n\t        return format(units[key], number, withoutSuffix);\n\t    }\n\t    function relativeSeconds(number, withoutSuffix) {\n\t        return withoutSuffix ? 'dažas sekundes' : 'dažām sekundēm';\n\t    }\n\n\t    var lv = moment.defineLocale('lv', {\n\t        months : 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split('_'),\n\t        monthsShort : 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'),\n\t        weekdays : 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split('_'),\n\t        weekdaysShort : 'Sv_P_O_T_C_Pk_S'.split('_'),\n\t        weekdaysMin : 'Sv_P_O_T_C_Pk_S'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'HH:mm',\n\t            LTS : 'HH:mm:ss',\n\t            L : 'DD.MM.YYYY.',\n\t            LL : 'YYYY. [gada] D. MMMM',\n\t            LLL : 'YYYY. [gada] D. MMMM, HH:mm',\n\t            LLLL : 'YYYY. [gada] D. MMMM, dddd, HH:mm'\n\t        },\n\t        calendar : {\n\t            sameDay : '[Šodien pulksten] LT',\n\t            nextDay : '[Rīt pulksten] LT',\n\t            nextWeek : 'dddd [pulksten] LT',\n\t            lastDay : '[Vakar pulksten] LT',\n\t            lastWeek : '[Pagājušā] dddd [pulksten] LT',\n\t            sameElse : 'L'\n\t        },\n\t        relativeTime : {\n\t            future : 'pēc %s',\n\t            past : 'pirms %s',\n\t            s : relativeSeconds,\n\t            m : relativeTimeWithSingular,\n\t            mm : relativeTimeWithPlural,\n\t            h : relativeTimeWithSingular,\n\t            hh : relativeTimeWithPlural,\n\t            d : relativeTimeWithSingular,\n\t            dd : relativeTimeWithPlural,\n\t            M : relativeTimeWithSingular,\n\t            MM : relativeTimeWithPlural,\n\t            y : relativeTimeWithSingular,\n\t            yy : relativeTimeWithPlural\n\t        },\n\t        ordinalParse: /\\d{1,2}\\./,\n\t        ordinal : '%d.',\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 4  // The week that contains Jan 4th is the first week of the year.\n\t        }\n\t    });\n\n\t    return lv;\n\n\t}));\n\n/***/ },\n/* 83 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : Montenegrin (me)\n\t//! author : Miodrag Nikač <miodrag@restartit.me> : https://github.com/miodragnikac\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var translator = {\n\t        words: { //Different grammatical cases\n\t            m: ['jedan minut', 'jednog minuta'],\n\t            mm: ['minut', 'minuta', 'minuta'],\n\t            h: ['jedan sat', 'jednog sata'],\n\t            hh: ['sat', 'sata', 'sati'],\n\t            dd: ['dan', 'dana', 'dana'],\n\t            MM: ['mjesec', 'mjeseca', 'mjeseci'],\n\t            yy: ['godina', 'godine', 'godina']\n\t        },\n\t        correctGrammaticalCase: function (number, wordKey) {\n\t            return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]);\n\t        },\n\t        translate: function (number, withoutSuffix, key) {\n\t            var wordKey = translator.words[key];\n\t            if (key.length === 1) {\n\t                return withoutSuffix ? wordKey[0] : wordKey[1];\n\t            } else {\n\t                return number + ' ' + translator.correctGrammaticalCase(number, wordKey);\n\t            }\n\t        }\n\t    };\n\n\t    var me = moment.defineLocale('me', {\n\t        months: ['januar', 'februar', 'mart', 'april', 'maj', 'jun', 'jul', 'avgust', 'septembar', 'oktobar', 'novembar', 'decembar'],\n\t        monthsShort: ['jan.', 'feb.', 'mar.', 'apr.', 'maj', 'jun', 'jul', 'avg.', 'sep.', 'okt.', 'nov.', 'dec.'],\n\t        weekdays: ['nedjelja', 'ponedjeljak', 'utorak', 'srijeda', 'četvrtak', 'petak', 'subota'],\n\t        weekdaysShort: ['ned.', 'pon.', 'uto.', 'sri.', 'čet.', 'pet.', 'sub.'],\n\t        weekdaysMin: ['ne', 'po', 'ut', 'sr', 'če', 'pe', 'su'],\n\t        longDateFormat: {\n\t            LT: 'H:mm',\n\t            LTS : 'H:mm:ss',\n\t            L: 'DD. MM. YYYY',\n\t            LL: 'D. MMMM YYYY',\n\t            LLL: 'D. MMMM YYYY H:mm',\n\t            LLLL: 'dddd, D. MMMM YYYY H:mm'\n\t        },\n\t        calendar: {\n\t            sameDay: '[danas u] LT',\n\t            nextDay: '[sjutra u] LT',\n\n\t            nextWeek: function () {\n\t                switch (this.day()) {\n\t                case 0:\n\t                    return '[u] [nedjelju] [u] LT';\n\t                case 3:\n\t                    return '[u] [srijedu] [u] LT';\n\t                case 6:\n\t                    return '[u] [subotu] [u] LT';\n\t                case 1:\n\t                case 2:\n\t                case 4:\n\t                case 5:\n\t                    return '[u] dddd [u] LT';\n\t                }\n\t            },\n\t            lastDay  : '[juče u] LT',\n\t            lastWeek : function () {\n\t                var lastWeekDays = [\n\t                    '[prošle] [nedjelje] [u] LT',\n\t                    '[prošlog] [ponedjeljka] [u] LT',\n\t                    '[prošlog] [utorka] [u] LT',\n\t                    '[prošle] [srijede] [u] LT',\n\t                    '[prošlog] [četvrtka] [u] LT',\n\t                    '[prošlog] [petka] [u] LT',\n\t                    '[prošle] [subote] [u] LT'\n\t                ];\n\t                return lastWeekDays[this.day()];\n\t            },\n\t            sameElse : 'L'\n\t        },\n\t        relativeTime : {\n\t            future : 'za %s',\n\t            past   : 'prije %s',\n\t            s      : 'nekoliko sekundi',\n\t            m      : translator.translate,\n\t            mm     : translator.translate,\n\t            h      : translator.translate,\n\t            hh     : translator.translate,\n\t            d      : 'dan',\n\t            dd     : translator.translate,\n\t            M      : 'mjesec',\n\t            MM     : translator.translate,\n\t            y      : 'godinu',\n\t            yy     : translator.translate\n\t        },\n\t        ordinalParse: /\\d{1,2}\\./,\n\t        ordinal : '%d.',\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 7  // The week that contains Jan 1st is the first week of the year.\n\t        }\n\t    });\n\n\t    return me;\n\n\t}));\n\n/***/ },\n/* 84 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : macedonian (mk)\n\t//! author : Borislav Mickov : https://github.com/B0k0\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var mk = moment.defineLocale('mk', {\n\t        months : 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split('_'),\n\t        monthsShort : 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split('_'),\n\t        weekdays : 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split('_'),\n\t        weekdaysShort : 'нед_пон_вто_сре_чет_пет_саб'.split('_'),\n\t        weekdaysMin : 'нe_пo_вт_ср_че_пе_сa'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'H:mm',\n\t            LTS : 'H:mm:ss',\n\t            L : 'D.MM.YYYY',\n\t            LL : 'D MMMM YYYY',\n\t            LLL : 'D MMMM YYYY H:mm',\n\t            LLLL : 'dddd, D MMMM YYYY H:mm'\n\t        },\n\t        calendar : {\n\t            sameDay : '[Денес во] LT',\n\t            nextDay : '[Утре во] LT',\n\t            nextWeek : '[Во] dddd [во] LT',\n\t            lastDay : '[Вчера во] LT',\n\t            lastWeek : function () {\n\t                switch (this.day()) {\n\t                case 0:\n\t                case 3:\n\t                case 6:\n\t                    return '[Изминатата] dddd [во] LT';\n\t                case 1:\n\t                case 2:\n\t                case 4:\n\t                case 5:\n\t                    return '[Изминатиот] dddd [во] LT';\n\t                }\n\t            },\n\t            sameElse : 'L'\n\t        },\n\t        relativeTime : {\n\t            future : 'после %s',\n\t            past : 'пред %s',\n\t            s : 'неколку секунди',\n\t            m : 'минута',\n\t            mm : '%d минути',\n\t            h : 'час',\n\t            hh : '%d часа',\n\t            d : 'ден',\n\t            dd : '%d дена',\n\t            M : 'месец',\n\t            MM : '%d месеци',\n\t            y : 'година',\n\t            yy : '%d години'\n\t        },\n\t        ordinalParse: /\\d{1,2}-(ев|ен|ти|ви|ри|ми)/,\n\t        ordinal : function (number) {\n\t            var lastDigit = number % 10,\n\t                last2Digits = number % 100;\n\t            if (number === 0) {\n\t                return number + '-ев';\n\t            } else if (last2Digits === 0) {\n\t                return number + '-ен';\n\t            } else if (last2Digits > 10 && last2Digits < 20) {\n\t                return number + '-ти';\n\t            } else if (lastDigit === 1) {\n\t                return number + '-ви';\n\t            } else if (lastDigit === 2) {\n\t                return number + '-ри';\n\t            } else if (lastDigit === 7 || lastDigit === 8) {\n\t                return number + '-ми';\n\t            } else {\n\t                return number + '-ти';\n\t            }\n\t        },\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 7  // The week that contains Jan 1st is the first week of the year.\n\t        }\n\t    });\n\n\t    return mk;\n\n\t}));\n\n/***/ },\n/* 85 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : malayalam (ml)\n\t//! author : Floyd Pink : https://github.com/floydpink\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var ml = moment.defineLocale('ml', {\n\t        months : 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split('_'),\n\t        monthsShort : 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split('_'),\n\t        weekdays : 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split('_'),\n\t        weekdaysShort : 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'),\n\t        weekdaysMin : 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'A h:mm -നു',\n\t            LTS : 'A h:mm:ss -നു',\n\t            L : 'DD/MM/YYYY',\n\t            LL : 'D MMMM YYYY',\n\t            LLL : 'D MMMM YYYY, A h:mm -നു',\n\t            LLLL : 'dddd, D MMMM YYYY, A h:mm -നു'\n\t        },\n\t        calendar : {\n\t            sameDay : '[ഇന്ന്] LT',\n\t            nextDay : '[നാളെ] LT',\n\t            nextWeek : 'dddd, LT',\n\t            lastDay : '[ഇന്നലെ] LT',\n\t            lastWeek : '[കഴിഞ്ഞ] dddd, LT',\n\t            sameElse : 'L'\n\t        },\n\t        relativeTime : {\n\t            future : '%s കഴിഞ്ഞ്',\n\t            past : '%s മുൻപ്',\n\t            s : 'അൽപ നിമിഷങ്ങൾ',\n\t            m : 'ഒരു മിനിറ്റ്',\n\t            mm : '%d മിനിറ്റ്',\n\t            h : 'ഒരു മണിക്കൂർ',\n\t            hh : '%d മണിക്കൂർ',\n\t            d : 'ഒരു ദിവസം',\n\t            dd : '%d ദിവസം',\n\t            M : 'ഒരു മാസം',\n\t            MM : '%d മാസം',\n\t            y : 'ഒരു വർഷം',\n\t            yy : '%d വർഷം'\n\t        },\n\t        meridiemParse: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,\n\t        isPM : function (input) {\n\t            return /^(ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി)$/.test(input);\n\t        },\n\t        meridiem : function (hour, minute, isLower) {\n\t            if (hour < 4) {\n\t                return 'രാത്രി';\n\t            } else if (hour < 12) {\n\t                return 'രാവിലെ';\n\t            } else if (hour < 17) {\n\t                return 'ഉച്ച കഴിഞ്ഞ്';\n\t            } else if (hour < 20) {\n\t                return 'വൈകുന്നേരം';\n\t            } else {\n\t                return 'രാത്രി';\n\t            }\n\t        }\n\t    });\n\n\t    return ml;\n\n\t}));\n\n/***/ },\n/* 86 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : Marathi (mr)\n\t//! author : Harshad Kale : https://github.com/kalehv\n\t//! author : Vivek Athalye : https://github.com/vnathalye\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var symbolMap = {\n\t        '1': '१',\n\t        '2': '२',\n\t        '3': '३',\n\t        '4': '४',\n\t        '5': '५',\n\t        '6': '६',\n\t        '7': '७',\n\t        '8': '८',\n\t        '9': '९',\n\t        '0': '०'\n\t    },\n\t    numberMap = {\n\t        '१': '1',\n\t        '२': '2',\n\t        '३': '3',\n\t        '४': '4',\n\t        '५': '5',\n\t        '६': '6',\n\t        '७': '7',\n\t        '८': '8',\n\t        '९': '9',\n\t        '०': '0'\n\t    };\n\n\t    function relativeTimeMr(number, withoutSuffix, string, isFuture)\n\t    {\n\t        var output = '';\n\t        if (withoutSuffix) {\n\t            switch (string) {\n\t                case 's': output = 'काही सेकंद'; break;\n\t                case 'm': output = 'एक मिनिट'; break;\n\t                case 'mm': output = '%d मिनिटे'; break;\n\t                case 'h': output = 'एक तास'; break;\n\t                case 'hh': output = '%d तास'; break;\n\t                case 'd': output = 'एक दिवस'; break;\n\t                case 'dd': output = '%d दिवस'; break;\n\t                case 'M': output = 'एक महिना'; break;\n\t                case 'MM': output = '%d महिने'; break;\n\t                case 'y': output = 'एक वर्ष'; break;\n\t                case 'yy': output = '%d वर्षे'; break;\n\t            }\n\t        }\n\t        else {\n\t            switch (string) {\n\t                case 's': output = 'काही सेकंदां'; break;\n\t                case 'm': output = 'एका मिनिटा'; break;\n\t                case 'mm': output = '%d मिनिटां'; break;\n\t                case 'h': output = 'एका तासा'; break;\n\t                case 'hh': output = '%d तासां'; break;\n\t                case 'd': output = 'एका दिवसा'; break;\n\t                case 'dd': output = '%d दिवसां'; break;\n\t                case 'M': output = 'एका महिन्या'; break;\n\t                case 'MM': output = '%d महिन्यां'; break;\n\t                case 'y': output = 'एका वर्षा'; break;\n\t                case 'yy': output = '%d वर्षां'; break;\n\t            }\n\t        }\n\t        return output.replace(/%d/i, number);\n\t    }\n\n\t    var mr = moment.defineLocale('mr', {\n\t        months : 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split('_'),\n\t        monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split('_'),\n\t        weekdays : 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),\n\t        weekdaysShort : 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'),\n\t        weekdaysMin : 'र_सो_मं_बु_गु_शु_श'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'A h:mm वाजता',\n\t            LTS : 'A h:mm:ss वाजता',\n\t            L : 'DD/MM/YYYY',\n\t            LL : 'D MMMM YYYY',\n\t            LLL : 'D MMMM YYYY, A h:mm वाजता',\n\t            LLLL : 'dddd, D MMMM YYYY, A h:mm वाजता'\n\t        },\n\t        calendar : {\n\t            sameDay : '[आज] LT',\n\t            nextDay : '[उद्या] LT',\n\t            nextWeek : 'dddd, LT',\n\t            lastDay : '[काल] LT',\n\t            lastWeek: '[मागील] dddd, LT',\n\t            sameElse : 'L'\n\t        },\n\t        relativeTime : {\n\t            future: '%sमध्ये',\n\t            past: '%sपूर्वी',\n\t            s: relativeTimeMr,\n\t            m: relativeTimeMr,\n\t            mm: relativeTimeMr,\n\t            h: relativeTimeMr,\n\t            hh: relativeTimeMr,\n\t            d: relativeTimeMr,\n\t            dd: relativeTimeMr,\n\t            M: relativeTimeMr,\n\t            MM: relativeTimeMr,\n\t            y: relativeTimeMr,\n\t            yy: relativeTimeMr\n\t        },\n\t        preparse: function (string) {\n\t            return string.replace(/[१२३४५६७८९०]/g, function (match) {\n\t                return numberMap[match];\n\t            });\n\t        },\n\t        postformat: function (string) {\n\t            return string.replace(/\\d/g, function (match) {\n\t                return symbolMap[match];\n\t            });\n\t        },\n\t        meridiemParse: /रात्री|सकाळी|दुपारी|सायंकाळी/,\n\t        meridiemHour : function (hour, meridiem) {\n\t            if (hour === 12) {\n\t                hour = 0;\n\t            }\n\t            if (meridiem === 'रात्री') {\n\t                return hour < 4 ? hour : hour + 12;\n\t            } else if (meridiem === 'सकाळी') {\n\t                return hour;\n\t            } else if (meridiem === 'दुपारी') {\n\t                return hour >= 10 ? hour : hour + 12;\n\t            } else if (meridiem === 'सायंकाळी') {\n\t                return hour + 12;\n\t            }\n\t        },\n\t        meridiem: function (hour, minute, isLower) {\n\t            if (hour < 4) {\n\t                return 'रात्री';\n\t            } else if (hour < 10) {\n\t                return 'सकाळी';\n\t            } else if (hour < 17) {\n\t                return 'दुपारी';\n\t            } else if (hour < 20) {\n\t                return 'सायंकाळी';\n\t            } else {\n\t                return 'रात्री';\n\t            }\n\t        },\n\t        week : {\n\t            dow : 0, // Sunday is the first day of the week.\n\t            doy : 6  // The week that contains Jan 1st is the first week of the year.\n\t        }\n\t    });\n\n\t    return mr;\n\n\t}));\n\n/***/ },\n/* 87 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : Bahasa Malaysia (ms-MY)\n\t//! author : Weldan Jamili : https://github.com/weldan\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var ms = moment.defineLocale('ms', {\n\t        months : 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),\n\t        monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),\n\t        weekdays : 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),\n\t        weekdaysShort : 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),\n\t        weekdaysMin : 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'HH.mm',\n\t            LTS : 'HH.mm.ss',\n\t            L : 'DD/MM/YYYY',\n\t            LL : 'D MMMM YYYY',\n\t            LLL : 'D MMMM YYYY [pukul] HH.mm',\n\t            LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'\n\t        },\n\t        meridiemParse: /pagi|tengahari|petang|malam/,\n\t        meridiemHour: function (hour, meridiem) {\n\t            if (hour === 12) {\n\t                hour = 0;\n\t            }\n\t            if (meridiem === 'pagi') {\n\t                return hour;\n\t            } else if (meridiem === 'tengahari') {\n\t                return hour >= 11 ? hour : hour + 12;\n\t            } else if (meridiem === 'petang' || meridiem === 'malam') {\n\t                return hour + 12;\n\t            }\n\t        },\n\t        meridiem : function (hours, minutes, isLower) {\n\t            if (hours < 11) {\n\t                return 'pagi';\n\t            } else if (hours < 15) {\n\t                return 'tengahari';\n\t            } else if (hours < 19) {\n\t                return 'petang';\n\t            } else {\n\t                return 'malam';\n\t            }\n\t        },\n\t        calendar : {\n\t            sameDay : '[Hari ini pukul] LT',\n\t            nextDay : '[Esok pukul] LT',\n\t            nextWeek : 'dddd [pukul] LT',\n\t            lastDay : '[Kelmarin pukul] LT',\n\t            lastWeek : 'dddd [lepas pukul] LT',\n\t            sameElse : 'L'\n\t        },\n\t        relativeTime : {\n\t            future : 'dalam %s',\n\t            past : '%s yang lepas',\n\t            s : 'beberapa saat',\n\t            m : 'seminit',\n\t            mm : '%d minit',\n\t            h : 'sejam',\n\t            hh : '%d jam',\n\t            d : 'sehari',\n\t            dd : '%d hari',\n\t            M : 'sebulan',\n\t            MM : '%d bulan',\n\t            y : 'setahun',\n\t            yy : '%d tahun'\n\t        },\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 7  // The week that contains Jan 1st is the first week of the year.\n\t        }\n\t    });\n\n\t    return ms;\n\n\t}));\n\n/***/ },\n/* 88 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : Bahasa Malaysia (ms-MY)\n\t//! author : Weldan Jamili : https://github.com/weldan\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var ms_my = moment.defineLocale('ms-my', {\n\t        months : 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),\n\t        monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),\n\t        weekdays : 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),\n\t        weekdaysShort : 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),\n\t        weekdaysMin : 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'HH.mm',\n\t            LTS : 'HH.mm.ss',\n\t            L : 'DD/MM/YYYY',\n\t            LL : 'D MMMM YYYY',\n\t            LLL : 'D MMMM YYYY [pukul] HH.mm',\n\t            LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'\n\t        },\n\t        meridiemParse: /pagi|tengahari|petang|malam/,\n\t        meridiemHour: function (hour, meridiem) {\n\t            if (hour === 12) {\n\t                hour = 0;\n\t            }\n\t            if (meridiem === 'pagi') {\n\t                return hour;\n\t            } else if (meridiem === 'tengahari') {\n\t                return hour >= 11 ? hour : hour + 12;\n\t            } else if (meridiem === 'petang' || meridiem === 'malam') {\n\t                return hour + 12;\n\t            }\n\t        },\n\t        meridiem : function (hours, minutes, isLower) {\n\t            if (hours < 11) {\n\t                return 'pagi';\n\t            } else if (hours < 15) {\n\t                return 'tengahari';\n\t            } else if (hours < 19) {\n\t                return 'petang';\n\t            } else {\n\t                return 'malam';\n\t            }\n\t        },\n\t        calendar : {\n\t            sameDay : '[Hari ini pukul] LT',\n\t            nextDay : '[Esok pukul] LT',\n\t            nextWeek : 'dddd [pukul] LT',\n\t            lastDay : '[Kelmarin pukul] LT',\n\t            lastWeek : 'dddd [lepas pukul] LT',\n\t            sameElse : 'L'\n\t        },\n\t        relativeTime : {\n\t            future : 'dalam %s',\n\t            past : '%s yang lepas',\n\t            s : 'beberapa saat',\n\t            m : 'seminit',\n\t            mm : '%d minit',\n\t            h : 'sejam',\n\t            hh : '%d jam',\n\t            d : 'sehari',\n\t            dd : '%d hari',\n\t            M : 'sebulan',\n\t            MM : '%d bulan',\n\t            y : 'setahun',\n\t            yy : '%d tahun'\n\t        },\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 7  // The week that contains Jan 1st is the first week of the year.\n\t        }\n\t    });\n\n\t    return ms_my;\n\n\t}));\n\n/***/ },\n/* 89 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : Burmese (my)\n\t//! author : Squar team, mysquar.com\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var symbolMap = {\n\t        '1': '၁',\n\t        '2': '၂',\n\t        '3': '၃',\n\t        '4': '၄',\n\t        '5': '၅',\n\t        '6': '၆',\n\t        '7': '၇',\n\t        '8': '၈',\n\t        '9': '၉',\n\t        '0': '၀'\n\t    }, numberMap = {\n\t        '၁': '1',\n\t        '၂': '2',\n\t        '၃': '3',\n\t        '၄': '4',\n\t        '၅': '5',\n\t        '၆': '6',\n\t        '၇': '7',\n\t        '၈': '8',\n\t        '၉': '9',\n\t        '၀': '0'\n\t    };\n\n\t    var my = moment.defineLocale('my', {\n\t        months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split('_'),\n\t        monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'),\n\t        weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split('_'),\n\t        weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),\n\t        weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),\n\n\t        longDateFormat: {\n\t            LT: 'HH:mm',\n\t            LTS: 'HH:mm:ss',\n\t            L: 'DD/MM/YYYY',\n\t            LL: 'D MMMM YYYY',\n\t            LLL: 'D MMMM YYYY HH:mm',\n\t            LLLL: 'dddd D MMMM YYYY HH:mm'\n\t        },\n\t        calendar: {\n\t            sameDay: '[ယနေ.] LT [မှာ]',\n\t            nextDay: '[မနက်ဖြန်] LT [မှာ]',\n\t            nextWeek: 'dddd LT [မှာ]',\n\t            lastDay: '[မနေ.က] LT [မှာ]',\n\t            lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]',\n\t            sameElse: 'L'\n\t        },\n\t        relativeTime: {\n\t            future: 'လာမည့် %s မှာ',\n\t            past: 'လွန်ခဲ့သော %s က',\n\t            s: 'စက္ကန်.အနည်းငယ်',\n\t            m: 'တစ်မိနစ်',\n\t            mm: '%d မိနစ်',\n\t            h: 'တစ်နာရီ',\n\t            hh: '%d နာရီ',\n\t            d: 'တစ်ရက်',\n\t            dd: '%d ရက်',\n\t            M: 'တစ်လ',\n\t            MM: '%d လ',\n\t            y: 'တစ်နှစ်',\n\t            yy: '%d နှစ်'\n\t        },\n\t        preparse: function (string) {\n\t            return string.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (match) {\n\t                return numberMap[match];\n\t            });\n\t        },\n\t        postformat: function (string) {\n\t            return string.replace(/\\d/g, function (match) {\n\t                return symbolMap[match];\n\t            });\n\t        },\n\t        week: {\n\t            dow: 1, // Monday is the first day of the week.\n\t            doy: 4 // The week that contains Jan 1st is the first week of the year.\n\t        }\n\t    });\n\n\t    return my;\n\n\t}));\n\n/***/ },\n/* 90 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : norwegian bokmål (nb)\n\t//! authors : Espen Hovlandsdal : https://github.com/rexxars\n\t//!           Sigurd Gartmann : https://github.com/sigurdga\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var nb = moment.defineLocale('nb', {\n\t        months : 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),\n\t        monthsShort : 'jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),\n\t        weekdays : 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),\n\t        weekdaysShort : 'sø._ma._ti._on._to._fr._lø.'.split('_'),\n\t        weekdaysMin : 'sø_ma_ti_on_to_fr_lø'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'HH:mm',\n\t            LTS : 'HH:mm:ss',\n\t            L : 'DD.MM.YYYY',\n\t            LL : 'D. MMMM YYYY',\n\t            LLL : 'D. MMMM YYYY [kl.] HH:mm',\n\t            LLLL : 'dddd D. MMMM YYYY [kl.] HH:mm'\n\t        },\n\t        calendar : {\n\t            sameDay: '[i dag kl.] LT',\n\t            nextDay: '[i morgen kl.] LT',\n\t            nextWeek: 'dddd [kl.] LT',\n\t            lastDay: '[i går kl.] LT',\n\t            lastWeek: '[forrige] dddd [kl.] LT',\n\t            sameElse: 'L'\n\t        },\n\t        relativeTime : {\n\t            future : 'om %s',\n\t            past : 'for %s siden',\n\t            s : 'noen sekunder',\n\t            m : 'ett minutt',\n\t            mm : '%d minutter',\n\t            h : 'en time',\n\t            hh : '%d timer',\n\t            d : 'en dag',\n\t            dd : '%d dager',\n\t            M : 'en måned',\n\t            MM : '%d måneder',\n\t            y : 'ett år',\n\t            yy : '%d år'\n\t        },\n\t        ordinalParse: /\\d{1,2}\\./,\n\t        ordinal : '%d.',\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 4  // The week that contains Jan 4th is the first week of the year.\n\t        }\n\t    });\n\n\t    return nb;\n\n\t}));\n\n/***/ },\n/* 91 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : nepali/nepalese\n\t//! author : suvash : https://github.com/suvash\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var symbolMap = {\n\t        '1': '१',\n\t        '2': '२',\n\t        '3': '३',\n\t        '4': '४',\n\t        '5': '५',\n\t        '6': '६',\n\t        '7': '७',\n\t        '8': '८',\n\t        '9': '९',\n\t        '0': '०'\n\t    },\n\t    numberMap = {\n\t        '१': '1',\n\t        '२': '2',\n\t        '३': '3',\n\t        '४': '4',\n\t        '५': '5',\n\t        '६': '6',\n\t        '७': '7',\n\t        '८': '8',\n\t        '९': '9',\n\t        '०': '0'\n\t    };\n\n\t    var ne = moment.defineLocale('ne', {\n\t        months : 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split('_'),\n\t        monthsShort : 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split('_'),\n\t        weekdays : 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split('_'),\n\t        weekdaysShort : 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'),\n\t        weekdaysMin : 'आ._सो._मं._बु._बि._शु._श.'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'Aको h:mm बजे',\n\t            LTS : 'Aको h:mm:ss बजे',\n\t            L : 'DD/MM/YYYY',\n\t            LL : 'D MMMM YYYY',\n\t            LLL : 'D MMMM YYYY, Aको h:mm बजे',\n\t            LLLL : 'dddd, D MMMM YYYY, Aको h:mm बजे'\n\t        },\n\t        preparse: function (string) {\n\t            return string.replace(/[१२३४५६७८९०]/g, function (match) {\n\t                return numberMap[match];\n\t            });\n\t        },\n\t        postformat: function (string) {\n\t            return string.replace(/\\d/g, function (match) {\n\t                return symbolMap[match];\n\t            });\n\t        },\n\t        meridiemParse: /राति|बिहान|दिउँसो|साँझ/,\n\t        meridiemHour : function (hour, meridiem) {\n\t            if (hour === 12) {\n\t                hour = 0;\n\t            }\n\t            if (meridiem === 'राति') {\n\t                return hour < 4 ? hour : hour + 12;\n\t            } else if (meridiem === 'बिहान') {\n\t                return hour;\n\t            } else if (meridiem === 'दिउँसो') {\n\t                return hour >= 10 ? hour : hour + 12;\n\t            } else if (meridiem === 'साँझ') {\n\t                return hour + 12;\n\t            }\n\t        },\n\t        meridiem : function (hour, minute, isLower) {\n\t            if (hour < 3) {\n\t                return 'राति';\n\t            } else if (hour < 12) {\n\t                return 'बिहान';\n\t            } else if (hour < 16) {\n\t                return 'दिउँसो';\n\t            } else if (hour < 20) {\n\t                return 'साँझ';\n\t            } else {\n\t                return 'राति';\n\t            }\n\t        },\n\t        calendar : {\n\t            sameDay : '[आज] LT',\n\t            nextDay : '[भोलि] LT',\n\t            nextWeek : '[आउँदो] dddd[,] LT',\n\t            lastDay : '[हिजो] LT',\n\t            lastWeek : '[गएको] dddd[,] LT',\n\t            sameElse : 'L'\n\t        },\n\t        relativeTime : {\n\t            future : '%sमा',\n\t            past : '%s अगाडि',\n\t            s : 'केही क्षण',\n\t            m : 'एक मिनेट',\n\t            mm : '%d मिनेट',\n\t            h : 'एक घण्टा',\n\t            hh : '%d घण्टा',\n\t            d : 'एक दिन',\n\t            dd : '%d दिन',\n\t            M : 'एक महिना',\n\t            MM : '%d महिना',\n\t            y : 'एक बर्ष',\n\t            yy : '%d बर्ष'\n\t        },\n\t        week : {\n\t            dow : 0, // Sunday is the first day of the week.\n\t            doy : 6  // The week that contains Jan 1st is the first week of the year.\n\t        }\n\t    });\n\n\t    return ne;\n\n\t}));\n\n/***/ },\n/* 92 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : dutch (nl)\n\t//! author : Joris Röling : https://github.com/jjupiter\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'),\n\t        monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_');\n\n\t    var nl = moment.defineLocale('nl', {\n\t        months : 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'),\n\t        monthsShort : function (m, format) {\n\t            if (/-MMM-/.test(format)) {\n\t                return monthsShortWithoutDots[m.month()];\n\t            } else {\n\t                return monthsShortWithDots[m.month()];\n\t            }\n\t        },\n\t        weekdays : 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),\n\t        weekdaysShort : 'zo._ma._di._wo._do._vr._za.'.split('_'),\n\t        weekdaysMin : 'Zo_Ma_Di_Wo_Do_Vr_Za'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'HH:mm',\n\t            LTS : 'HH:mm:ss',\n\t            L : 'DD-MM-YYYY',\n\t            LL : 'D MMMM YYYY',\n\t            LLL : 'D MMMM YYYY HH:mm',\n\t            LLLL : 'dddd D MMMM YYYY HH:mm'\n\t        },\n\t        calendar : {\n\t            sameDay: '[vandaag om] LT',\n\t            nextDay: '[morgen om] LT',\n\t            nextWeek: 'dddd [om] LT',\n\t            lastDay: '[gisteren om] LT',\n\t            lastWeek: '[afgelopen] dddd [om] LT',\n\t            sameElse: 'L'\n\t        },\n\t        relativeTime : {\n\t            future : 'over %s',\n\t            past : '%s geleden',\n\t            s : 'een paar seconden',\n\t            m : 'één minuut',\n\t            mm : '%d minuten',\n\t            h : 'één uur',\n\t            hh : '%d uur',\n\t            d : 'één dag',\n\t            dd : '%d dagen',\n\t            M : 'één maand',\n\t            MM : '%d maanden',\n\t            y : 'één jaar',\n\t            yy : '%d jaar'\n\t        },\n\t        ordinalParse: /\\d{1,2}(ste|de)/,\n\t        ordinal : function (number) {\n\t            return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');\n\t        },\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 4  // The week that contains Jan 4th is the first week of the year.\n\t        }\n\t    });\n\n\t    return nl;\n\n\t}));\n\n/***/ },\n/* 93 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : norwegian nynorsk (nn)\n\t//! author : https://github.com/mechuwind\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var nn = moment.defineLocale('nn', {\n\t        months : 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),\n\t        monthsShort : 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),\n\t        weekdays : 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'),\n\t        weekdaysShort : 'sun_mån_tys_ons_tor_fre_lau'.split('_'),\n\t        weekdaysMin : 'su_må_ty_on_to_fr_lø'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'HH:mm',\n\t            LTS : 'HH:mm:ss',\n\t            L : 'DD.MM.YYYY',\n\t            LL : 'D. MMMM YYYY',\n\t            LLL : 'D. MMMM YYYY [kl.] H:mm',\n\t            LLLL : 'dddd D. MMMM YYYY [kl.] HH:mm'\n\t        },\n\t        calendar : {\n\t            sameDay: '[I dag klokka] LT',\n\t            nextDay: '[I morgon klokka] LT',\n\t            nextWeek: 'dddd [klokka] LT',\n\t            lastDay: '[I går klokka] LT',\n\t            lastWeek: '[Føregåande] dddd [klokka] LT',\n\t            sameElse: 'L'\n\t        },\n\t        relativeTime : {\n\t            future : 'om %s',\n\t            past : 'for %s sidan',\n\t            s : 'nokre sekund',\n\t            m : 'eit minutt',\n\t            mm : '%d minutt',\n\t            h : 'ein time',\n\t            hh : '%d timar',\n\t            d : 'ein dag',\n\t            dd : '%d dagar',\n\t            M : 'ein månad',\n\t            MM : '%d månader',\n\t            y : 'eit år',\n\t            yy : '%d år'\n\t        },\n\t        ordinalParse: /\\d{1,2}\\./,\n\t        ordinal : '%d.',\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 4  // The week that contains Jan 4th is the first week of the year.\n\t        }\n\t    });\n\n\t    return nn;\n\n\t}));\n\n/***/ },\n/* 94 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : polish (pl)\n\t//! author : Rafal Hirsz : https://github.com/evoL\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var monthsNominative = 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split('_'),\n\t        monthsSubjective = 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split('_');\n\t    function plural(n) {\n\t        return (n % 10 < 5) && (n % 10 > 1) && ((~~(n / 10) % 10) !== 1);\n\t    }\n\t    function translate(number, withoutSuffix, key) {\n\t        var result = number + ' ';\n\t        switch (key) {\n\t        case 'm':\n\t            return withoutSuffix ? 'minuta' : 'minutę';\n\t        case 'mm':\n\t            return result + (plural(number) ? 'minuty' : 'minut');\n\t        case 'h':\n\t            return withoutSuffix  ? 'godzina'  : 'godzinę';\n\t        case 'hh':\n\t            return result + (plural(number) ? 'godziny' : 'godzin');\n\t        case 'MM':\n\t            return result + (plural(number) ? 'miesiące' : 'miesięcy');\n\t        case 'yy':\n\t            return result + (plural(number) ? 'lata' : 'lat');\n\t        }\n\t    }\n\n\t    var pl = moment.defineLocale('pl', {\n\t        months : function (momentToFormat, format) {\n\t            if (format === '') {\n\t                // Hack: if format empty we know this is used to generate\n\t                // RegExp by moment. Give then back both valid forms of months\n\t                // in RegExp ready format.\n\t                return '(' + monthsSubjective[momentToFormat.month()] + '|' + monthsNominative[momentToFormat.month()] + ')';\n\t            } else if (/D MMMM/.test(format)) {\n\t                return monthsSubjective[momentToFormat.month()];\n\t            } else {\n\t                return monthsNominative[momentToFormat.month()];\n\t            }\n\t        },\n\t        monthsShort : 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'),\n\t        weekdays : 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split('_'),\n\t        weekdaysShort : 'nie_pon_wt_śr_czw_pt_sb'.split('_'),\n\t        weekdaysMin : 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'HH:mm',\n\t            LTS : 'HH:mm:ss',\n\t            L : 'DD.MM.YYYY',\n\t            LL : 'D MMMM YYYY',\n\t            LLL : 'D MMMM YYYY HH:mm',\n\t            LLLL : 'dddd, D MMMM YYYY HH:mm'\n\t        },\n\t        calendar : {\n\t            sameDay: '[Dziś o] LT',\n\t            nextDay: '[Jutro o] LT',\n\t            nextWeek: '[W] dddd [o] LT',\n\t            lastDay: '[Wczoraj o] LT',\n\t            lastWeek: function () {\n\t                switch (this.day()) {\n\t                case 0:\n\t                    return '[W zeszłą niedzielę o] LT';\n\t                case 3:\n\t                    return '[W zeszłą środę o] LT';\n\t                case 6:\n\t                    return '[W zeszłą sobotę o] LT';\n\t                default:\n\t                    return '[W zeszły] dddd [o] LT';\n\t                }\n\t            },\n\t            sameElse: 'L'\n\t        },\n\t        relativeTime : {\n\t            future : 'za %s',\n\t            past : '%s temu',\n\t            s : 'kilka sekund',\n\t            m : translate,\n\t            mm : translate,\n\t            h : translate,\n\t            hh : translate,\n\t            d : '1 dzień',\n\t            dd : '%d dni',\n\t            M : 'miesiąc',\n\t            MM : translate,\n\t            y : 'rok',\n\t            yy : translate\n\t        },\n\t        ordinalParse: /\\d{1,2}\\./,\n\t        ordinal : '%d.',\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 4  // The week that contains Jan 4th is the first week of the year.\n\t        }\n\t    });\n\n\t    return pl;\n\n\t}));\n\n/***/ },\n/* 95 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : portuguese (pt)\n\t//! author : Jefferson : https://github.com/jalex79\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var pt = moment.defineLocale('pt', {\n\t        months : 'Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro'.split('_'),\n\t        monthsShort : 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),\n\t        weekdays : 'Domingo_Segunda-Feira_Terça-Feira_Quarta-Feira_Quinta-Feira_Sexta-Feira_Sábado'.split('_'),\n\t        weekdaysShort : 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),\n\t        weekdaysMin : 'Dom_2ª_3ª_4ª_5ª_6ª_Sáb'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'HH:mm',\n\t            LTS : 'HH:mm:ss',\n\t            L : 'DD/MM/YYYY',\n\t            LL : 'D [de] MMMM [de] YYYY',\n\t            LLL : 'D [de] MMMM [de] YYYY HH:mm',\n\t            LLLL : 'dddd, D [de] MMMM [de] YYYY HH:mm'\n\t        },\n\t        calendar : {\n\t            sameDay: '[Hoje às] LT',\n\t            nextDay: '[Amanhã às] LT',\n\t            nextWeek: 'dddd [às] LT',\n\t            lastDay: '[Ontem às] LT',\n\t            lastWeek: function () {\n\t                return (this.day() === 0 || this.day() === 6) ?\n\t                    '[Último] dddd [às] LT' : // Saturday + Sunday\n\t                    '[Última] dddd [às] LT'; // Monday - Friday\n\t            },\n\t            sameElse: 'L'\n\t        },\n\t        relativeTime : {\n\t            future : 'em %s',\n\t            past : 'há %s',\n\t            s : 'segundos',\n\t            m : 'um minuto',\n\t            mm : '%d minutos',\n\t            h : 'uma hora',\n\t            hh : '%d horas',\n\t            d : 'um dia',\n\t            dd : '%d dias',\n\t            M : 'um mês',\n\t            MM : '%d meses',\n\t            y : 'um ano',\n\t            yy : '%d anos'\n\t        },\n\t        ordinalParse: /\\d{1,2}º/,\n\t        ordinal : '%dº',\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 4  // The week that contains Jan 4th is the first week of the year.\n\t        }\n\t    });\n\n\t    return pt;\n\n\t}));\n\n/***/ },\n/* 96 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : brazilian portuguese (pt-br)\n\t//! author : Caio Ribeiro Pereira : https://github.com/caio-ribeiro-pereira\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var pt_br = moment.defineLocale('pt-br', {\n\t        months : 'Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro'.split('_'),\n\t        monthsShort : 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),\n\t        weekdays : 'Domingo_Segunda-Feira_Terça-Feira_Quarta-Feira_Quinta-Feira_Sexta-Feira_Sábado'.split('_'),\n\t        weekdaysShort : 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),\n\t        weekdaysMin : 'Dom_2ª_3ª_4ª_5ª_6ª_Sáb'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'HH:mm',\n\t            LTS : 'HH:mm:ss',\n\t            L : 'DD/MM/YYYY',\n\t            LL : 'D [de] MMMM [de] YYYY',\n\t            LLL : 'D [de] MMMM [de] YYYY [às] HH:mm',\n\t            LLLL : 'dddd, D [de] MMMM [de] YYYY [às] HH:mm'\n\t        },\n\t        calendar : {\n\t            sameDay: '[Hoje às] LT',\n\t            nextDay: '[Amanhã às] LT',\n\t            nextWeek: 'dddd [às] LT',\n\t            lastDay: '[Ontem às] LT',\n\t            lastWeek: function () {\n\t                return (this.day() === 0 || this.day() === 6) ?\n\t                    '[Último] dddd [às] LT' : // Saturday + Sunday\n\t                    '[Última] dddd [às] LT'; // Monday - Friday\n\t            },\n\t            sameElse: 'L'\n\t        },\n\t        relativeTime : {\n\t            future : 'em %s',\n\t            past : '%s atrás',\n\t            s : 'poucos segundos',\n\t            m : 'um minuto',\n\t            mm : '%d minutos',\n\t            h : 'uma hora',\n\t            hh : '%d horas',\n\t            d : 'um dia',\n\t            dd : '%d dias',\n\t            M : 'um mês',\n\t            MM : '%d meses',\n\t            y : 'um ano',\n\t            yy : '%d anos'\n\t        },\n\t        ordinalParse: /\\d{1,2}º/,\n\t        ordinal : '%dº'\n\t    });\n\n\t    return pt_br;\n\n\t}));\n\n/***/ },\n/* 97 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : romanian (ro)\n\t//! author : Vlad Gurdiga : https://github.com/gurdiga\n\t//! author : Valentin Agachi : https://github.com/avaly\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    function relativeTimeWithPlural(number, withoutSuffix, key) {\n\t        var format = {\n\t                'mm': 'minute',\n\t                'hh': 'ore',\n\t                'dd': 'zile',\n\t                'MM': 'luni',\n\t                'yy': 'ani'\n\t            },\n\t            separator = ' ';\n\t        if (number % 100 >= 20 || (number >= 100 && number % 100 === 0)) {\n\t            separator = ' de ';\n\t        }\n\t        return number + separator + format[key];\n\t    }\n\n\t    var ro = moment.defineLocale('ro', {\n\t        months : 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split('_'),\n\t        monthsShort : 'ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split('_'),\n\t        weekdays : 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'),\n\t        weekdaysShort : 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'),\n\t        weekdaysMin : 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'H:mm',\n\t            LTS : 'H:mm:ss',\n\t            L : 'DD.MM.YYYY',\n\t            LL : 'D MMMM YYYY',\n\t            LLL : 'D MMMM YYYY H:mm',\n\t            LLLL : 'dddd, D MMMM YYYY H:mm'\n\t        },\n\t        calendar : {\n\t            sameDay: '[azi la] LT',\n\t            nextDay: '[mâine la] LT',\n\t            nextWeek: 'dddd [la] LT',\n\t            lastDay: '[ieri la] LT',\n\t            lastWeek: '[fosta] dddd [la] LT',\n\t            sameElse: 'L'\n\t        },\n\t        relativeTime : {\n\t            future : 'peste %s',\n\t            past : '%s în urmă',\n\t            s : 'câteva secunde',\n\t            m : 'un minut',\n\t            mm : relativeTimeWithPlural,\n\t            h : 'o oră',\n\t            hh : relativeTimeWithPlural,\n\t            d : 'o zi',\n\t            dd : relativeTimeWithPlural,\n\t            M : 'o lună',\n\t            MM : relativeTimeWithPlural,\n\t            y : 'un an',\n\t            yy : relativeTimeWithPlural\n\t        },\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 7  // The week that contains Jan 1st is the first week of the year.\n\t        }\n\t    });\n\n\t    return ro;\n\n\t}));\n\n/***/ },\n/* 98 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : russian (ru)\n\t//! author : Viktorminator : https://github.com/Viktorminator\n\t//! Author : Menelion Elensúle : https://github.com/Oire\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    function plural(word, num) {\n\t        var forms = word.split('_');\n\t        return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]);\n\t    }\n\t    function relativeTimeWithPlural(number, withoutSuffix, key) {\n\t        var format = {\n\t            'mm': withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут',\n\t            'hh': 'час_часа_часов',\n\t            'dd': 'день_дня_дней',\n\t            'MM': 'месяц_месяца_месяцев',\n\t            'yy': 'год_года_лет'\n\t        };\n\t        if (key === 'm') {\n\t            return withoutSuffix ? 'минута' : 'минуту';\n\t        }\n\t        else {\n\t            return number + ' ' + plural(format[key], +number);\n\t        }\n\t    }\n\t    var monthsParse = [/^янв/i, /^фев/i, /^мар/i, /^апр/i, /^ма[й|я]/i, /^июн/i, /^июл/i, /^авг/i, /^сен/i, /^окт/i, /^ноя/i, /^дек/i];\n\n\t    var ru = moment.defineLocale('ru', {\n\t        months : {\n\t            format: 'Января_Февраля_Марта_Апреля_Мая_Июня_Июля_Августа_Сентября_Октября_Ноября_Декабря'.split('_'),\n\t            standalone: 'Январь_Февраль_Март_Апрель_Май_Июнь_Июль_Август_Сентябрь_Октябрь_Ноябрь_Декабрь'.split('_')\n\t        },\n\t        monthsShort : {\n\t            format: 'янв_фев_мар_апр_мая_июня_июля_авг_сен_окт_ноя_дек'.split('_'),\n\t            standalone: 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split('_')\n\t        },\n\t        weekdays : {\n\t            standalone: 'Воскресенье_Понедельник_Вторник_Среда_Четверг_Пятница_Суббота'.split('_'),\n\t            format: 'Воскресенье_Понедельник_Вторник_Среду_Четверг_Пятницу_Субботу'.split('_'),\n\t            isFormat: /\\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\\] ?dddd/\n\t        },\n\t        weekdaysShort : 'Вс_Пн_Вт_Ср_Чт_Пт_Сб'.split('_'),\n\t        weekdaysMin : 'Вс_Пн_Вт_Ср_Чт_Пт_Сб'.split('_'),\n\t        monthsParse : monthsParse,\n\t        longMonthsParse : monthsParse,\n\t        shortMonthsParse : monthsParse,\n\t        longDateFormat : {\n\t            LT : 'HH:mm',\n\t            LTS : 'HH:mm:ss',\n\t            L : 'DD.MM.YYYY',\n\t            LL : 'D MMMM YYYY г.',\n\t            LLL : 'D MMMM YYYY г., HH:mm',\n\t            LLLL : 'dddd, D MMMM YYYY г., HH:mm'\n\t        },\n\t        calendar : {\n\t            sameDay: '[Сегодня в] LT',\n\t            nextDay: '[Завтра в] LT',\n\t            lastDay: '[Вчера в] LT',\n\t            nextWeek: function (now) {\n\t                if (now.week() !== this.week()) {\n\t                    switch (this.day()) {\n\t                    case 0:\n\t                        return '[В следующее] dddd [в] LT';\n\t                    case 1:\n\t                    case 2:\n\t                    case 4:\n\t                        return '[В следующий] dddd [в] LT';\n\t                    case 3:\n\t                    case 5:\n\t                    case 6:\n\t                        return '[В следующую] dddd [в] LT';\n\t                    }\n\t                } else {\n\t                    if (this.day() === 2) {\n\t                        return '[Во] dddd [в] LT';\n\t                    } else {\n\t                        return '[В] dddd [в] LT';\n\t                    }\n\t                }\n\t            },\n\t            lastWeek: function (now) {\n\t                if (now.week() !== this.week()) {\n\t                    switch (this.day()) {\n\t                    case 0:\n\t                        return '[В прошлое] dddd [в] LT';\n\t                    case 1:\n\t                    case 2:\n\t                    case 4:\n\t                        return '[В прошлый] dddd [в] LT';\n\t                    case 3:\n\t                    case 5:\n\t                    case 6:\n\t                        return '[В прошлую] dddd [в] LT';\n\t                    }\n\t                } else {\n\t                    if (this.day() === 2) {\n\t                        return '[Во] dddd [в] LT';\n\t                    } else {\n\t                        return '[В] dddd [в] LT';\n\t                    }\n\t                }\n\t            },\n\t            sameElse: 'L'\n\t        },\n\t        relativeTime : {\n\t            future : 'через %s',\n\t            past : '%s назад',\n\t            s : 'несколько секунд',\n\t            m : relativeTimeWithPlural,\n\t            mm : relativeTimeWithPlural,\n\t            h : 'час',\n\t            hh : relativeTimeWithPlural,\n\t            d : 'день',\n\t            dd : relativeTimeWithPlural,\n\t            M : 'месяц',\n\t            MM : relativeTimeWithPlural,\n\t            y : 'год',\n\t            yy : relativeTimeWithPlural\n\t        },\n\t        meridiemParse: /ночи|утра|дня|вечера/i,\n\t        isPM : function (input) {\n\t            return /^(дня|вечера)$/.test(input);\n\t        },\n\t        meridiem : function (hour, minute, isLower) {\n\t            if (hour < 4) {\n\t                return 'ночи';\n\t            } else if (hour < 12) {\n\t                return 'утра';\n\t            } else if (hour < 17) {\n\t                return 'дня';\n\t            } else {\n\t                return 'вечера';\n\t            }\n\t        },\n\t        ordinalParse: /\\d{1,2}-(й|го|я)/,\n\t        ordinal: function (number, period) {\n\t            switch (period) {\n\t            case 'M':\n\t            case 'd':\n\t            case 'DDD':\n\t                return number + '-й';\n\t            case 'D':\n\t                return number + '-го';\n\t            case 'w':\n\t            case 'W':\n\t                return number + '-я';\n\t            default:\n\t                return number;\n\t            }\n\t        },\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 7  // The week that contains Jan 1st is the first week of the year.\n\t        }\n\t    });\n\n\t    return ru;\n\n\t}));\n\n/***/ },\n/* 99 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : Northern Sami (se)\n\t//! authors : Bård Rolstad Henriksen : https://github.com/karamell\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\n\t    var se = moment.defineLocale('se', {\n\t        months : 'ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu'.split('_'),\n\t        monthsShort : 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split('_'),\n\t        weekdays : 'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split('_'),\n\t        weekdaysShort : 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'),\n\t        weekdaysMin : 's_v_m_g_d_b_L'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'HH:mm',\n\t            LTS : 'HH:mm:ss',\n\t            L : 'DD.MM.YYYY',\n\t            LL : 'MMMM D. [b.] YYYY',\n\t            LLL : 'MMMM D. [b.] YYYY [ti.] HH:mm',\n\t            LLLL : 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm'\n\t        },\n\t        calendar : {\n\t            sameDay: '[otne ti] LT',\n\t            nextDay: '[ihttin ti] LT',\n\t            nextWeek: 'dddd [ti] LT',\n\t            lastDay: '[ikte ti] LT',\n\t            lastWeek: '[ovddit] dddd [ti] LT',\n\t            sameElse: 'L'\n\t        },\n\t        relativeTime : {\n\t            future : '%s geažes',\n\t            past : 'maŋit %s',\n\t            s : 'moadde sekunddat',\n\t            m : 'okta minuhta',\n\t            mm : '%d minuhtat',\n\t            h : 'okta diimmu',\n\t            hh : '%d diimmut',\n\t            d : 'okta beaivi',\n\t            dd : '%d beaivvit',\n\t            M : 'okta mánnu',\n\t            MM : '%d mánut',\n\t            y : 'okta jahki',\n\t            yy : '%d jagit'\n\t        },\n\t        ordinalParse: /\\d{1,2}\\./,\n\t        ordinal : '%d.',\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 4  // The week that contains Jan 4th is the first week of the year.\n\t        }\n\t    });\n\n\t    return se;\n\n\t}));\n\n/***/ },\n/* 100 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : Sinhalese (si)\n\t//! author : Sampath Sitinamaluwa : https://github.com/sampathsris\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    /*jshint -W100*/\n\t    var si = moment.defineLocale('si', {\n\t        months : 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split('_'),\n\t        monthsShort : 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split('_'),\n\t        weekdays : 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split('_'),\n\t        weekdaysShort : 'ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන'.split('_'),\n\t        weekdaysMin : 'ඉ_ස_අ_බ_බ්‍ර_සි_සෙ'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'a h:mm',\n\t            LTS : 'a h:mm:ss',\n\t            L : 'YYYY/MM/DD',\n\t            LL : 'YYYY MMMM D',\n\t            LLL : 'YYYY MMMM D, a h:mm',\n\t            LLLL : 'YYYY MMMM D [වැනි] dddd, a h:mm:ss'\n\t        },\n\t        calendar : {\n\t            sameDay : '[අද] LT[ට]',\n\t            nextDay : '[හෙට] LT[ට]',\n\t            nextWeek : 'dddd LT[ට]',\n\t            lastDay : '[ඊයේ] LT[ට]',\n\t            lastWeek : '[පසුගිය] dddd LT[ට]',\n\t            sameElse : 'L'\n\t        },\n\t        relativeTime : {\n\t            future : '%sකින්',\n\t            past : '%sකට පෙර',\n\t            s : 'තත්පර කිහිපය',\n\t            m : 'මිනිත්තුව',\n\t            mm : 'මිනිත්තු %d',\n\t            h : 'පැය',\n\t            hh : 'පැය %d',\n\t            d : 'දිනය',\n\t            dd : 'දින %d',\n\t            M : 'මාසය',\n\t            MM : 'මාස %d',\n\t            y : 'වසර',\n\t            yy : 'වසර %d'\n\t        },\n\t        ordinalParse: /\\d{1,2} වැනි/,\n\t        ordinal : function (number) {\n\t            return number + ' වැනි';\n\t        },\n\t        meridiem : function (hours, minutes, isLower) {\n\t            if (hours > 11) {\n\t                return isLower ? 'ප.ව.' : 'පස් වරු';\n\t            } else {\n\t                return isLower ? 'පෙ.ව.' : 'පෙර වරු';\n\t            }\n\t        }\n\t    });\n\n\t    return si;\n\n\t}));\n\n/***/ },\n/* 101 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : slovak (sk)\n\t//! author : Martin Minka : https://github.com/k2s\n\t//! based on work of petrbela : https://github.com/petrbela\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var months = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split('_'),\n\t        monthsShort = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_');\n\t    function plural(n) {\n\t        return (n > 1) && (n < 5);\n\t    }\n\t    function translate(number, withoutSuffix, key, isFuture) {\n\t        var result = number + ' ';\n\t        switch (key) {\n\t        case 's':  // a few seconds / in a few seconds / a few seconds ago\n\t            return (withoutSuffix || isFuture) ? 'pár sekúnd' : 'pár sekundami';\n\t        case 'm':  // a minute / in a minute / a minute ago\n\t            return withoutSuffix ? 'minúta' : (isFuture ? 'minútu' : 'minútou');\n\t        case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago\n\t            if (withoutSuffix || isFuture) {\n\t                return result + (plural(number) ? 'minúty' : 'minút');\n\t            } else {\n\t                return result + 'minútami';\n\t            }\n\t            break;\n\t        case 'h':  // an hour / in an hour / an hour ago\n\t            return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou');\n\t        case 'hh': // 9 hours / in 9 hours / 9 hours ago\n\t            if (withoutSuffix || isFuture) {\n\t                return result + (plural(number) ? 'hodiny' : 'hodín');\n\t            } else {\n\t                return result + 'hodinami';\n\t            }\n\t            break;\n\t        case 'd':  // a day / in a day / a day ago\n\t            return (withoutSuffix || isFuture) ? 'deň' : 'dňom';\n\t        case 'dd': // 9 days / in 9 days / 9 days ago\n\t            if (withoutSuffix || isFuture) {\n\t                return result + (plural(number) ? 'dni' : 'dní');\n\t            } else {\n\t                return result + 'dňami';\n\t            }\n\t            break;\n\t        case 'M':  // a month / in a month / a month ago\n\t            return (withoutSuffix || isFuture) ? 'mesiac' : 'mesiacom';\n\t        case 'MM': // 9 months / in 9 months / 9 months ago\n\t            if (withoutSuffix || isFuture) {\n\t                return result + (plural(number) ? 'mesiace' : 'mesiacov');\n\t            } else {\n\t                return result + 'mesiacmi';\n\t            }\n\t            break;\n\t        case 'y':  // a year / in a year / a year ago\n\t            return (withoutSuffix || isFuture) ? 'rok' : 'rokom';\n\t        case 'yy': // 9 years / in 9 years / 9 years ago\n\t            if (withoutSuffix || isFuture) {\n\t                return result + (plural(number) ? 'roky' : 'rokov');\n\t            } else {\n\t                return result + 'rokmi';\n\t            }\n\t            break;\n\t        }\n\t    }\n\n\t    var sk = moment.defineLocale('sk', {\n\t        months : months,\n\t        monthsShort : monthsShort,\n\t        weekdays : 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'),\n\t        weekdaysShort : 'ne_po_ut_st_št_pi_so'.split('_'),\n\t        weekdaysMin : 'ne_po_ut_st_št_pi_so'.split('_'),\n\t        longDateFormat : {\n\t            LT: 'H:mm',\n\t            LTS : 'H:mm:ss',\n\t            L : 'DD.MM.YYYY',\n\t            LL : 'D. MMMM YYYY',\n\t            LLL : 'D. MMMM YYYY H:mm',\n\t            LLLL : 'dddd D. MMMM YYYY H:mm'\n\t        },\n\t        calendar : {\n\t            sameDay: '[dnes o] LT',\n\t            nextDay: '[zajtra o] LT',\n\t            nextWeek: function () {\n\t                switch (this.day()) {\n\t                case 0:\n\t                    return '[v nedeľu o] LT';\n\t                case 1:\n\t                case 2:\n\t                    return '[v] dddd [o] LT';\n\t                case 3:\n\t                    return '[v stredu o] LT';\n\t                case 4:\n\t                    return '[vo štvrtok o] LT';\n\t                case 5:\n\t                    return '[v piatok o] LT';\n\t                case 6:\n\t                    return '[v sobotu o] LT';\n\t                }\n\t            },\n\t            lastDay: '[včera o] LT',\n\t            lastWeek: function () {\n\t                switch (this.day()) {\n\t                case 0:\n\t                    return '[minulú nedeľu o] LT';\n\t                case 1:\n\t                case 2:\n\t                    return '[minulý] dddd [o] LT';\n\t                case 3:\n\t                    return '[minulú stredu o] LT';\n\t                case 4:\n\t                case 5:\n\t                    return '[minulý] dddd [o] LT';\n\t                case 6:\n\t                    return '[minulú sobotu o] LT';\n\t                }\n\t            },\n\t            sameElse: 'L'\n\t        },\n\t        relativeTime : {\n\t            future : 'za %s',\n\t            past : 'pred %s',\n\t            s : translate,\n\t            m : translate,\n\t            mm : translate,\n\t            h : translate,\n\t            hh : translate,\n\t            d : translate,\n\t            dd : translate,\n\t            M : translate,\n\t            MM : translate,\n\t            y : translate,\n\t            yy : translate\n\t        },\n\t        ordinalParse: /\\d{1,2}\\./,\n\t        ordinal : '%d.',\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 4  // The week that contains Jan 4th is the first week of the year.\n\t        }\n\t    });\n\n\t    return sk;\n\n\t}));\n\n/***/ },\n/* 102 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : slovenian (sl)\n\t//! author : Robert Sedovšek : https://github.com/sedovsek\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    function processRelativeTime(number, withoutSuffix, key, isFuture) {\n\t        var result = number + ' ';\n\t        switch (key) {\n\t        case 's':\n\t            return withoutSuffix || isFuture ? 'nekaj sekund' : 'nekaj sekundami';\n\t        case 'm':\n\t            return withoutSuffix ? 'ena minuta' : 'eno minuto';\n\t        case 'mm':\n\t            if (number === 1) {\n\t                result += withoutSuffix ? 'minuta' : 'minuto';\n\t            } else if (number === 2) {\n\t                result += withoutSuffix || isFuture ? 'minuti' : 'minutama';\n\t            } else if (number < 5) {\n\t                result += withoutSuffix || isFuture ? 'minute' : 'minutami';\n\t            } else {\n\t                result += withoutSuffix || isFuture ? 'minut' : 'minutami';\n\t            }\n\t            return result;\n\t        case 'h':\n\t            return withoutSuffix ? 'ena ura' : 'eno uro';\n\t        case 'hh':\n\t            if (number === 1) {\n\t                result += withoutSuffix ? 'ura' : 'uro';\n\t            } else if (number === 2) {\n\t                result += withoutSuffix || isFuture ? 'uri' : 'urama';\n\t            } else if (number < 5) {\n\t                result += withoutSuffix || isFuture ? 'ure' : 'urami';\n\t            } else {\n\t                result += withoutSuffix || isFuture ? 'ur' : 'urami';\n\t            }\n\t            return result;\n\t        case 'd':\n\t            return withoutSuffix || isFuture ? 'en dan' : 'enim dnem';\n\t        case 'dd':\n\t            if (number === 1) {\n\t                result += withoutSuffix || isFuture ? 'dan' : 'dnem';\n\t            } else if (number === 2) {\n\t                result += withoutSuffix || isFuture ? 'dni' : 'dnevoma';\n\t            } else {\n\t                result += withoutSuffix || isFuture ? 'dni' : 'dnevi';\n\t            }\n\t            return result;\n\t        case 'M':\n\t            return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem';\n\t        case 'MM':\n\t            if (number === 1) {\n\t                result += withoutSuffix || isFuture ? 'mesec' : 'mesecem';\n\t            } else if (number === 2) {\n\t                result += withoutSuffix || isFuture ? 'meseca' : 'mesecema';\n\t            } else if (number < 5) {\n\t                result += withoutSuffix || isFuture ? 'mesece' : 'meseci';\n\t            } else {\n\t                result += withoutSuffix || isFuture ? 'mesecev' : 'meseci';\n\t            }\n\t            return result;\n\t        case 'y':\n\t            return withoutSuffix || isFuture ? 'eno leto' : 'enim letom';\n\t        case 'yy':\n\t            if (number === 1) {\n\t                result += withoutSuffix || isFuture ? 'leto' : 'letom';\n\t            } else if (number === 2) {\n\t                result += withoutSuffix || isFuture ? 'leti' : 'letoma';\n\t            } else if (number < 5) {\n\t                result += withoutSuffix || isFuture ? 'leta' : 'leti';\n\t            } else {\n\t                result += withoutSuffix || isFuture ? 'let' : 'leti';\n\t            }\n\t            return result;\n\t        }\n\t    }\n\n\t    var sl = moment.defineLocale('sl', {\n\t        months : 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split('_'),\n\t        monthsShort : 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split('_'),\n\t        weekdays : 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),\n\t        weekdaysShort : 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),\n\t        weekdaysMin : 'ne_po_to_sr_če_pe_so'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'H:mm',\n\t            LTS : 'H:mm:ss',\n\t            L : 'DD. MM. YYYY',\n\t            LL : 'D. MMMM YYYY',\n\t            LLL : 'D. MMMM YYYY H:mm',\n\t            LLLL : 'dddd, D. MMMM YYYY H:mm'\n\t        },\n\t        calendar : {\n\t            sameDay  : '[danes ob] LT',\n\t            nextDay  : '[jutri ob] LT',\n\n\t            nextWeek : function () {\n\t                switch (this.day()) {\n\t                case 0:\n\t                    return '[v] [nedeljo] [ob] LT';\n\t                case 3:\n\t                    return '[v] [sredo] [ob] LT';\n\t                case 6:\n\t                    return '[v] [soboto] [ob] LT';\n\t                case 1:\n\t                case 2:\n\t                case 4:\n\t                case 5:\n\t                    return '[v] dddd [ob] LT';\n\t                }\n\t            },\n\t            lastDay  : '[včeraj ob] LT',\n\t            lastWeek : function () {\n\t                switch (this.day()) {\n\t                case 0:\n\t                    return '[prejšnjo] [nedeljo] [ob] LT';\n\t                case 3:\n\t                    return '[prejšnjo] [sredo] [ob] LT';\n\t                case 6:\n\t                    return '[prejšnjo] [soboto] [ob] LT';\n\t                case 1:\n\t                case 2:\n\t                case 4:\n\t                case 5:\n\t                    return '[prejšnji] dddd [ob] LT';\n\t                }\n\t            },\n\t            sameElse : 'L'\n\t        },\n\t        relativeTime : {\n\t            future : 'čez %s',\n\t            past   : 'pred %s',\n\t            s      : processRelativeTime,\n\t            m      : processRelativeTime,\n\t            mm     : processRelativeTime,\n\t            h      : processRelativeTime,\n\t            hh     : processRelativeTime,\n\t            d      : processRelativeTime,\n\t            dd     : processRelativeTime,\n\t            M      : processRelativeTime,\n\t            MM     : processRelativeTime,\n\t            y      : processRelativeTime,\n\t            yy     : processRelativeTime\n\t        },\n\t        ordinalParse: /\\d{1,2}\\./,\n\t        ordinal : '%d.',\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 7  // The week that contains Jan 1st is the first week of the year.\n\t        }\n\t    });\n\n\t    return sl;\n\n\t}));\n\n/***/ },\n/* 103 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : Albanian (sq)\n\t//! author : Flakërim Ismani : https://github.com/flakerimi\n\t//! author: Menelion Elensúle: https://github.com/Oire (tests)\n\t//! author : Oerd Cukalla : https://github.com/oerd (fixes)\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var sq = moment.defineLocale('sq', {\n\t        months : 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split('_'),\n\t        monthsShort : 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'),\n\t        weekdays : 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split('_'),\n\t        weekdaysShort : 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'),\n\t        weekdaysMin : 'D_H_Ma_Më_E_P_Sh'.split('_'),\n\t        meridiemParse: /PD|MD/,\n\t        isPM: function (input) {\n\t            return input.charAt(0) === 'M';\n\t        },\n\t        meridiem : function (hours, minutes, isLower) {\n\t            return hours < 12 ? 'PD' : 'MD';\n\t        },\n\t        longDateFormat : {\n\t            LT : 'HH:mm',\n\t            LTS : 'HH:mm:ss',\n\t            L : 'DD/MM/YYYY',\n\t            LL : 'D MMMM YYYY',\n\t            LLL : 'D MMMM YYYY HH:mm',\n\t            LLLL : 'dddd, D MMMM YYYY HH:mm'\n\t        },\n\t        calendar : {\n\t            sameDay : '[Sot në] LT',\n\t            nextDay : '[Nesër në] LT',\n\t            nextWeek : 'dddd [në] LT',\n\t            lastDay : '[Dje në] LT',\n\t            lastWeek : 'dddd [e kaluar në] LT',\n\t            sameElse : 'L'\n\t        },\n\t        relativeTime : {\n\t            future : 'në %s',\n\t            past : '%s më parë',\n\t            s : 'disa sekonda',\n\t            m : 'një minutë',\n\t            mm : '%d minuta',\n\t            h : 'një orë',\n\t            hh : '%d orë',\n\t            d : 'një ditë',\n\t            dd : '%d ditë',\n\t            M : 'një muaj',\n\t            MM : '%d muaj',\n\t            y : 'një vit',\n\t            yy : '%d vite'\n\t        },\n\t        ordinalParse: /\\d{1,2}\\./,\n\t        ordinal : '%d.',\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 4  // The week that contains Jan 4th is the first week of the year.\n\t        }\n\t    });\n\n\t    return sq;\n\n\t}));\n\n/***/ },\n/* 104 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : Serbian-latin (sr)\n\t//! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var translator = {\n\t        words: { //Different grammatical cases\n\t            m: ['jedan minut', 'jedne minute'],\n\t            mm: ['minut', 'minute', 'minuta'],\n\t            h: ['jedan sat', 'jednog sata'],\n\t            hh: ['sat', 'sata', 'sati'],\n\t            dd: ['dan', 'dana', 'dana'],\n\t            MM: ['mesec', 'meseca', 'meseci'],\n\t            yy: ['godina', 'godine', 'godina']\n\t        },\n\t        correctGrammaticalCase: function (number, wordKey) {\n\t            return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]);\n\t        },\n\t        translate: function (number, withoutSuffix, key) {\n\t            var wordKey = translator.words[key];\n\t            if (key.length === 1) {\n\t                return withoutSuffix ? wordKey[0] : wordKey[1];\n\t            } else {\n\t                return number + ' ' + translator.correctGrammaticalCase(number, wordKey);\n\t            }\n\t        }\n\t    };\n\n\t    var sr = moment.defineLocale('sr', {\n\t        months: ['januar', 'februar', 'mart', 'april', 'maj', 'jun', 'jul', 'avgust', 'septembar', 'oktobar', 'novembar', 'decembar'],\n\t        monthsShort: ['jan.', 'feb.', 'mar.', 'apr.', 'maj', 'jun', 'jul', 'avg.', 'sep.', 'okt.', 'nov.', 'dec.'],\n\t        weekdays: ['nedelja', 'ponedeljak', 'utorak', 'sreda', 'četvrtak', 'petak', 'subota'],\n\t        weekdaysShort: ['ned.', 'pon.', 'uto.', 'sre.', 'čet.', 'pet.', 'sub.'],\n\t        weekdaysMin: ['ne', 'po', 'ut', 'sr', 'če', 'pe', 'su'],\n\t        longDateFormat: {\n\t            LT: 'H:mm',\n\t            LTS : 'H:mm:ss',\n\t            L: 'DD. MM. YYYY',\n\t            LL: 'D. MMMM YYYY',\n\t            LLL: 'D. MMMM YYYY H:mm',\n\t            LLLL: 'dddd, D. MMMM YYYY H:mm'\n\t        },\n\t        calendar: {\n\t            sameDay: '[danas u] LT',\n\t            nextDay: '[sutra u] LT',\n\t            nextWeek: function () {\n\t                switch (this.day()) {\n\t                case 0:\n\t                    return '[u] [nedelju] [u] LT';\n\t                case 3:\n\t                    return '[u] [sredu] [u] LT';\n\t                case 6:\n\t                    return '[u] [subotu] [u] LT';\n\t                case 1:\n\t                case 2:\n\t                case 4:\n\t                case 5:\n\t                    return '[u] dddd [u] LT';\n\t                }\n\t            },\n\t            lastDay  : '[juče u] LT',\n\t            lastWeek : function () {\n\t                var lastWeekDays = [\n\t                    '[prošle] [nedelje] [u] LT',\n\t                    '[prošlog] [ponedeljka] [u] LT',\n\t                    '[prošlog] [utorka] [u] LT',\n\t                    '[prošle] [srede] [u] LT',\n\t                    '[prošlog] [četvrtka] [u] LT',\n\t                    '[prošlog] [petka] [u] LT',\n\t                    '[prošle] [subote] [u] LT'\n\t                ];\n\t                return lastWeekDays[this.day()];\n\t            },\n\t            sameElse : 'L'\n\t        },\n\t        relativeTime : {\n\t            future : 'za %s',\n\t            past   : 'pre %s',\n\t            s      : 'nekoliko sekundi',\n\t            m      : translator.translate,\n\t            mm     : translator.translate,\n\t            h      : translator.translate,\n\t            hh     : translator.translate,\n\t            d      : 'dan',\n\t            dd     : translator.translate,\n\t            M      : 'mesec',\n\t            MM     : translator.translate,\n\t            y      : 'godinu',\n\t            yy     : translator.translate\n\t        },\n\t        ordinalParse: /\\d{1,2}\\./,\n\t        ordinal : '%d.',\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 7  // The week that contains Jan 1st is the first week of the year.\n\t        }\n\t    });\n\n\t    return sr;\n\n\t}));\n\n/***/ },\n/* 105 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : Serbian-cyrillic (sr-cyrl)\n\t//! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var translator = {\n\t        words: { //Different grammatical cases\n\t            m: ['један минут', 'једне минуте'],\n\t            mm: ['минут', 'минуте', 'минута'],\n\t            h: ['један сат', 'једног сата'],\n\t            hh: ['сат', 'сата', 'сати'],\n\t            dd: ['дан', 'дана', 'дана'],\n\t            MM: ['месец', 'месеца', 'месеци'],\n\t            yy: ['година', 'године', 'година']\n\t        },\n\t        correctGrammaticalCase: function (number, wordKey) {\n\t            return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]);\n\t        },\n\t        translate: function (number, withoutSuffix, key) {\n\t            var wordKey = translator.words[key];\n\t            if (key.length === 1) {\n\t                return withoutSuffix ? wordKey[0] : wordKey[1];\n\t            } else {\n\t                return number + ' ' + translator.correctGrammaticalCase(number, wordKey);\n\t            }\n\t        }\n\t    };\n\n\t    var sr_cyrl = moment.defineLocale('sr-cyrl', {\n\t        months: ['јануар', 'фебруар', 'март', 'април', 'мај', 'јун', 'јул', 'август', 'септембар', 'октобар', 'новембар', 'децембар'],\n\t        monthsShort: ['јан.', 'феб.', 'мар.', 'апр.', 'мај', 'јун', 'јул', 'авг.', 'сеп.', 'окт.', 'нов.', 'дец.'],\n\t        weekdays: ['недеља', 'понедељак', 'уторак', 'среда', 'четвртак', 'петак', 'субота'],\n\t        weekdaysShort: ['нед.', 'пон.', 'уто.', 'сре.', 'чет.', 'пет.', 'суб.'],\n\t        weekdaysMin: ['не', 'по', 'ут', 'ср', 'че', 'пе', 'су'],\n\t        longDateFormat: {\n\t            LT: 'H:mm',\n\t            LTS : 'H:mm:ss',\n\t            L: 'DD. MM. YYYY',\n\t            LL: 'D. MMMM YYYY',\n\t            LLL: 'D. MMMM YYYY H:mm',\n\t            LLLL: 'dddd, D. MMMM YYYY H:mm'\n\t        },\n\t        calendar: {\n\t            sameDay: '[данас у] LT',\n\t            nextDay: '[сутра у] LT',\n\t            nextWeek: function () {\n\t                switch (this.day()) {\n\t                case 0:\n\t                    return '[у] [недељу] [у] LT';\n\t                case 3:\n\t                    return '[у] [среду] [у] LT';\n\t                case 6:\n\t                    return '[у] [суботу] [у] LT';\n\t                case 1:\n\t                case 2:\n\t                case 4:\n\t                case 5:\n\t                    return '[у] dddd [у] LT';\n\t                }\n\t            },\n\t            lastDay  : '[јуче у] LT',\n\t            lastWeek : function () {\n\t                var lastWeekDays = [\n\t                    '[прошле] [недеље] [у] LT',\n\t                    '[прошлог] [понедељка] [у] LT',\n\t                    '[прошлог] [уторка] [у] LT',\n\t                    '[прошле] [среде] [у] LT',\n\t                    '[прошлог] [четвртка] [у] LT',\n\t                    '[прошлог] [петка] [у] LT',\n\t                    '[прошле] [суботе] [у] LT'\n\t                ];\n\t                return lastWeekDays[this.day()];\n\t            },\n\t            sameElse : 'L'\n\t        },\n\t        relativeTime : {\n\t            future : 'за %s',\n\t            past   : 'пре %s',\n\t            s      : 'неколико секунди',\n\t            m      : translator.translate,\n\t            mm     : translator.translate,\n\t            h      : translator.translate,\n\t            hh     : translator.translate,\n\t            d      : 'дан',\n\t            dd     : translator.translate,\n\t            M      : 'месец',\n\t            MM     : translator.translate,\n\t            y      : 'годину',\n\t            yy     : translator.translate\n\t        },\n\t        ordinalParse: /\\d{1,2}\\./,\n\t        ordinal : '%d.',\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 7  // The week that contains Jan 1st is the first week of the year.\n\t        }\n\t    });\n\n\t    return sr_cyrl;\n\n\t}));\n\n/***/ },\n/* 106 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : swedish (sv)\n\t//! author : Jens Alm : https://github.com/ulmus\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var sv = moment.defineLocale('sv', {\n\t        months : 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split('_'),\n\t        monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),\n\t        weekdays : 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),\n\t        weekdaysShort : 'sön_mån_tis_ons_tor_fre_lör'.split('_'),\n\t        weekdaysMin : 'sö_må_ti_on_to_fr_lö'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'HH:mm',\n\t            LTS : 'HH:mm:ss',\n\t            L : 'YYYY-MM-DD',\n\t            LL : 'D MMMM YYYY',\n\t            LLL : 'D MMMM YYYY HH:mm',\n\t            LLLL : 'dddd D MMMM YYYY HH:mm'\n\t        },\n\t        calendar : {\n\t            sameDay: '[Idag] LT',\n\t            nextDay: '[Imorgon] LT',\n\t            lastDay: '[Igår] LT',\n\t            nextWeek: '[På] dddd LT',\n\t            lastWeek: '[I] dddd[s] LT',\n\t            sameElse: 'L'\n\t        },\n\t        relativeTime : {\n\t            future : 'om %s',\n\t            past : 'för %s sedan',\n\t            s : 'några sekunder',\n\t            m : 'en minut',\n\t            mm : '%d minuter',\n\t            h : 'en timme',\n\t            hh : '%d timmar',\n\t            d : 'en dag',\n\t            dd : '%d dagar',\n\t            M : 'en månad',\n\t            MM : '%d månader',\n\t            y : 'ett år',\n\t            yy : '%d år'\n\t        },\n\t        ordinalParse: /\\d{1,2}(e|a)/,\n\t        ordinal : function (number) {\n\t            var b = number % 10,\n\t                output = (~~(number % 100 / 10) === 1) ? 'e' :\n\t                (b === 1) ? 'a' :\n\t                (b === 2) ? 'a' :\n\t                (b === 3) ? 'e' : 'e';\n\t            return number + output;\n\t        },\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 4  // The week that contains Jan 4th is the first week of the year.\n\t        }\n\t    });\n\n\t    return sv;\n\n\t}));\n\n/***/ },\n/* 107 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : swahili (sw)\n\t//! author : Fahad Kassim : https://github.com/fadsel\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var sw = moment.defineLocale('sw', {\n\t        months : 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split('_'),\n\t        monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'),\n\t        weekdays : 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split('_'),\n\t        weekdaysShort : 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'),\n\t        weekdaysMin : 'J2_J3_J4_J5_Al_Ij_J1'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'HH:mm',\n\t            LTS : 'HH:mm:ss',\n\t            L : 'DD.MM.YYYY',\n\t            LL : 'D MMMM YYYY',\n\t            LLL : 'D MMMM YYYY HH:mm',\n\t            LLLL : 'dddd, D MMMM YYYY HH:mm'\n\t        },\n\t        calendar : {\n\t            sameDay : '[leo saa] LT',\n\t            nextDay : '[kesho saa] LT',\n\t            nextWeek : '[wiki ijayo] dddd [saat] LT',\n\t            lastDay : '[jana] LT',\n\t            lastWeek : '[wiki iliyopita] dddd [saat] LT',\n\t            sameElse : 'L'\n\t        },\n\t        relativeTime : {\n\t            future : '%s baadaye',\n\t            past : 'tokea %s',\n\t            s : 'hivi punde',\n\t            m : 'dakika moja',\n\t            mm : 'dakika %d',\n\t            h : 'saa limoja',\n\t            hh : 'masaa %d',\n\t            d : 'siku moja',\n\t            dd : 'masiku %d',\n\t            M : 'mwezi mmoja',\n\t            MM : 'miezi %d',\n\t            y : 'mwaka mmoja',\n\t            yy : 'miaka %d'\n\t        },\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 7  // The week that contains Jan 1st is the first week of the year.\n\t        }\n\t    });\n\n\t    return sw;\n\n\t}));\n\n/***/ },\n/* 108 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : tamil (ta)\n\t//! author : Arjunkumar Krishnamoorthy : https://github.com/tk120404\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var symbolMap = {\n\t        '1': '௧',\n\t        '2': '௨',\n\t        '3': '௩',\n\t        '4': '௪',\n\t        '5': '௫',\n\t        '6': '௬',\n\t        '7': '௭',\n\t        '8': '௮',\n\t        '9': '௯',\n\t        '0': '௦'\n\t    }, numberMap = {\n\t        '௧': '1',\n\t        '௨': '2',\n\t        '௩': '3',\n\t        '௪': '4',\n\t        '௫': '5',\n\t        '௬': '6',\n\t        '௭': '7',\n\t        '௮': '8',\n\t        '௯': '9',\n\t        '௦': '0'\n\t    };\n\n\t    var ta = moment.defineLocale('ta', {\n\t        months : 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),\n\t        monthsShort : 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),\n\t        weekdays : 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split('_'),\n\t        weekdaysShort : 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split('_'),\n\t        weekdaysMin : 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'HH:mm',\n\t            LTS : 'HH:mm:ss',\n\t            L : 'DD/MM/YYYY',\n\t            LL : 'D MMMM YYYY',\n\t            LLL : 'D MMMM YYYY, HH:mm',\n\t            LLLL : 'dddd, D MMMM YYYY, HH:mm'\n\t        },\n\t        calendar : {\n\t            sameDay : '[இன்று] LT',\n\t            nextDay : '[நாளை] LT',\n\t            nextWeek : 'dddd, LT',\n\t            lastDay : '[நேற்று] LT',\n\t            lastWeek : '[கடந்த வாரம்] dddd, LT',\n\t            sameElse : 'L'\n\t        },\n\t        relativeTime : {\n\t            future : '%s இல்',\n\t            past : '%s முன்',\n\t            s : 'ஒரு சில விநாடிகள்',\n\t            m : 'ஒரு நிமிடம்',\n\t            mm : '%d நிமிடங்கள்',\n\t            h : 'ஒரு மணி நேரம்',\n\t            hh : '%d மணி நேரம்',\n\t            d : 'ஒரு நாள்',\n\t            dd : '%d நாட்கள்',\n\t            M : 'ஒரு மாதம்',\n\t            MM : '%d மாதங்கள்',\n\t            y : 'ஒரு வருடம்',\n\t            yy : '%d ஆண்டுகள்'\n\t        },\n\t        ordinalParse: /\\d{1,2}வது/,\n\t        ordinal : function (number) {\n\t            return number + 'வது';\n\t        },\n\t        preparse: function (string) {\n\t            return string.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function (match) {\n\t                return numberMap[match];\n\t            });\n\t        },\n\t        postformat: function (string) {\n\t            return string.replace(/\\d/g, function (match) {\n\t                return symbolMap[match];\n\t            });\n\t        },\n\t        // refer http://ta.wikipedia.org/s/1er1\n\t        meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,\n\t        meridiem : function (hour, minute, isLower) {\n\t            if (hour < 2) {\n\t                return ' யாமம்';\n\t            } else if (hour < 6) {\n\t                return ' வைகறை';  // வைகறை\n\t            } else if (hour < 10) {\n\t                return ' காலை'; // காலை\n\t            } else if (hour < 14) {\n\t                return ' நண்பகல்'; // நண்பகல்\n\t            } else if (hour < 18) {\n\t                return ' எற்பாடு'; // எற்பாடு\n\t            } else if (hour < 22) {\n\t                return ' மாலை'; // மாலை\n\t            } else {\n\t                return ' யாமம்';\n\t            }\n\t        },\n\t        meridiemHour : function (hour, meridiem) {\n\t            if (hour === 12) {\n\t                hour = 0;\n\t            }\n\t            if (meridiem === 'யாமம்') {\n\t                return hour < 2 ? hour : hour + 12;\n\t            } else if (meridiem === 'வைகறை' || meridiem === 'காலை') {\n\t                return hour;\n\t            } else if (meridiem === 'நண்பகல்') {\n\t                return hour >= 10 ? hour : hour + 12;\n\t            } else {\n\t                return hour + 12;\n\t            }\n\t        },\n\t        week : {\n\t            dow : 0, // Sunday is the first day of the week.\n\t            doy : 6  // The week that contains Jan 1st is the first week of the year.\n\t        }\n\t    });\n\n\t    return ta;\n\n\t}));\n\n/***/ },\n/* 109 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : telugu (te)\n\t//! author : Krishna Chaitanya Thota : https://github.com/kcthota\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var te = moment.defineLocale('te', {\n\t        months : 'జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జూలై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్'.split('_'),\n\t        monthsShort : 'జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జూలై_ఆగ._సెప్._అక్టో._నవ._డిసె.'.split('_'),\n\t        weekdays : 'ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం'.split('_'),\n\t        weekdaysShort : 'ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని'.split('_'),\n\t        weekdaysMin : 'ఆ_సో_మం_బు_గు_శు_శ'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'A h:mm',\n\t            LTS : 'A h:mm:ss',\n\t            L : 'DD/MM/YYYY',\n\t            LL : 'D MMMM YYYY',\n\t            LLL : 'D MMMM YYYY, A h:mm',\n\t            LLLL : 'dddd, D MMMM YYYY, A h:mm'\n\t        },\n\t        calendar : {\n\t            sameDay : '[నేడు] LT',\n\t            nextDay : '[రేపు] LT',\n\t            nextWeek : 'dddd, LT',\n\t            lastDay : '[నిన్న] LT',\n\t            lastWeek : '[గత] dddd, LT',\n\t            sameElse : 'L'\n\t        },\n\t        relativeTime : {\n\t            future : '%s లో',\n\t            past : '%s క్రితం',\n\t            s : 'కొన్ని క్షణాలు',\n\t            m : 'ఒక నిమిషం',\n\t            mm : '%d నిమిషాలు',\n\t            h : 'ఒక గంట',\n\t            hh : '%d గంటలు',\n\t            d : 'ఒక రోజు',\n\t            dd : '%d రోజులు',\n\t            M : 'ఒక నెల',\n\t            MM : '%d నెలలు',\n\t            y : 'ఒక సంవత్సరం',\n\t            yy : '%d సంవత్సరాలు'\n\t        },\n\t        ordinalParse : /\\d{1,2}వ/,\n\t        ordinal : '%dవ',\n\t        meridiemParse: /రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,\n\t        meridiemHour : function (hour, meridiem) {\n\t            if (hour === 12) {\n\t                hour = 0;\n\t            }\n\t            if (meridiem === 'రాత్రి') {\n\t                return hour < 4 ? hour : hour + 12;\n\t            } else if (meridiem === 'ఉదయం') {\n\t                return hour;\n\t            } else if (meridiem === 'మధ్యాహ్నం') {\n\t                return hour >= 10 ? hour : hour + 12;\n\t            } else if (meridiem === 'సాయంత్రం') {\n\t                return hour + 12;\n\t            }\n\t        },\n\t        meridiem : function (hour, minute, isLower) {\n\t            if (hour < 4) {\n\t                return 'రాత్రి';\n\t            } else if (hour < 10) {\n\t                return 'ఉదయం';\n\t            } else if (hour < 17) {\n\t                return 'మధ్యాహ్నం';\n\t            } else if (hour < 20) {\n\t                return 'సాయంత్రం';\n\t            } else {\n\t                return 'రాత్రి';\n\t            }\n\t        },\n\t        week : {\n\t            dow : 0, // Sunday is the first day of the week.\n\t            doy : 6  // The week that contains Jan 1st is the first week of the year.\n\t        }\n\t    });\n\n\t    return te;\n\n\t}));\n\n/***/ },\n/* 110 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : thai (th)\n\t//! author : Kridsada Thanabulpong : https://github.com/sirn\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var th = moment.defineLocale('th', {\n\t        months : 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split('_'),\n\t        monthsShort : 'มกรา_กุมภา_มีนา_เมษา_พฤษภา_มิถุนา_กรกฎา_สิงหา_กันยา_ตุลา_พฤศจิกา_ธันวา'.split('_'),\n\t        weekdays : 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'),\n\t        weekdaysShort : 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), // yes, three characters difference\n\t        weekdaysMin : 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'H นาฬิกา m นาที',\n\t            LTS : 'H นาฬิกา m นาที s วินาที',\n\t            L : 'YYYY/MM/DD',\n\t            LL : 'D MMMM YYYY',\n\t            LLL : 'D MMMM YYYY เวลา H นาฬิกา m นาที',\n\t            LLLL : 'วันddddที่ D MMMM YYYY เวลา H นาฬิกา m นาที'\n\t        },\n\t        meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/,\n\t        isPM: function (input) {\n\t            return input === 'หลังเที่ยง';\n\t        },\n\t        meridiem : function (hour, minute, isLower) {\n\t            if (hour < 12) {\n\t                return 'ก่อนเที่ยง';\n\t            } else {\n\t                return 'หลังเที่ยง';\n\t            }\n\t        },\n\t        calendar : {\n\t            sameDay : '[วันนี้ เวลา] LT',\n\t            nextDay : '[พรุ่งนี้ เวลา] LT',\n\t            nextWeek : 'dddd[หน้า เวลา] LT',\n\t            lastDay : '[เมื่อวานนี้ เวลา] LT',\n\t            lastWeek : '[วัน]dddd[ที่แล้ว เวลา] LT',\n\t            sameElse : 'L'\n\t        },\n\t        relativeTime : {\n\t            future : 'อีก %s',\n\t            past : '%sที่แล้ว',\n\t            s : 'ไม่กี่วินาที',\n\t            m : '1 นาที',\n\t            mm : '%d นาที',\n\t            h : '1 ชั่วโมง',\n\t            hh : '%d ชั่วโมง',\n\t            d : '1 วัน',\n\t            dd : '%d วัน',\n\t            M : '1 เดือน',\n\t            MM : '%d เดือน',\n\t            y : '1 ปี',\n\t            yy : '%d ปี'\n\t        }\n\t    });\n\n\t    return th;\n\n\t}));\n\n/***/ },\n/* 111 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : Tagalog/Filipino (tl-ph)\n\t//! author : Dan Hagman\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var tl_ph = moment.defineLocale('tl-ph', {\n\t        months : 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split('_'),\n\t        monthsShort : 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),\n\t        weekdays : 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split('_'),\n\t        weekdaysShort : 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),\n\t        weekdaysMin : 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'HH:mm',\n\t            LTS : 'HH:mm:ss',\n\t            L : 'MM/D/YYYY',\n\t            LL : 'MMMM D, YYYY',\n\t            LLL : 'MMMM D, YYYY HH:mm',\n\t            LLLL : 'dddd, MMMM DD, YYYY HH:mm'\n\t        },\n\t        calendar : {\n\t            sameDay: '[Ngayon sa] LT',\n\t            nextDay: '[Bukas sa] LT',\n\t            nextWeek: 'dddd [sa] LT',\n\t            lastDay: '[Kahapon sa] LT',\n\t            lastWeek: 'dddd [huling linggo] LT',\n\t            sameElse: 'L'\n\t        },\n\t        relativeTime : {\n\t            future : 'sa loob ng %s',\n\t            past : '%s ang nakalipas',\n\t            s : 'ilang segundo',\n\t            m : 'isang minuto',\n\t            mm : '%d minuto',\n\t            h : 'isang oras',\n\t            hh : '%d oras',\n\t            d : 'isang araw',\n\t            dd : '%d araw',\n\t            M : 'isang buwan',\n\t            MM : '%d buwan',\n\t            y : 'isang taon',\n\t            yy : '%d taon'\n\t        },\n\t        ordinalParse: /\\d{1,2}/,\n\t        ordinal : function (number) {\n\t            return number;\n\t        },\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 4  // The week that contains Jan 4th is the first week of the year.\n\t        }\n\t    });\n\n\t    return tl_ph;\n\n\t}));\n\n/***/ },\n/* 112 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : Klingon (tlh)\n\t//! author : Dominika Kruk : https://github.com/amaranthrose\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var numbersNouns = 'pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut'.split('_');\n\n\t    function translateFuture(output) {\n\t        var time = output;\n\t        time = (output.indexOf('jaj') !== -1) ?\n\t    \ttime.slice(0, -3) + 'leS' :\n\t    \t(output.indexOf('jar') !== -1) ?\n\t    \ttime.slice(0, -3) + 'waQ' :\n\t    \t(output.indexOf('DIS') !== -1) ?\n\t    \ttime.slice(0, -3) + 'nem' :\n\t    \ttime + ' pIq';\n\t        return time;\n\t    }\n\n\t    function translatePast(output) {\n\t        var time = output;\n\t        time = (output.indexOf('jaj') !== -1) ?\n\t    \ttime.slice(0, -3) + 'Hu’' :\n\t    \t(output.indexOf('jar') !== -1) ?\n\t    \ttime.slice(0, -3) + 'wen' :\n\t    \t(output.indexOf('DIS') !== -1) ?\n\t    \ttime.slice(0, -3) + 'ben' :\n\t    \ttime + ' ret';\n\t        return time;\n\t    }\n\n\t    function translate(number, withoutSuffix, string, isFuture) {\n\t        var numberNoun = numberAsNoun(number);\n\t        switch (string) {\n\t            case 'mm':\n\t                return numberNoun + ' tup';\n\t            case 'hh':\n\t                return numberNoun + ' rep';\n\t            case 'dd':\n\t                return numberNoun + ' jaj';\n\t            case 'MM':\n\t                return numberNoun + ' jar';\n\t            case 'yy':\n\t                return numberNoun + ' DIS';\n\t        }\n\t    }\n\n\t    function numberAsNoun(number) {\n\t        var hundred = Math.floor((number % 1000) / 100),\n\t    \tten = Math.floor((number % 100) / 10),\n\t    \tone = number % 10,\n\t    \tword = '';\n\t        if (hundred > 0) {\n\t            word += numbersNouns[hundred] + 'vatlh';\n\t        }\n\t        if (ten > 0) {\n\t            word += ((word !== '') ? ' ' : '') + numbersNouns[ten] + 'maH';\n\t        }\n\t        if (one > 0) {\n\t            word += ((word !== '') ? ' ' : '') + numbersNouns[one];\n\t        }\n\t        return (word === '') ? 'pagh' : word;\n\t    }\n\n\t    var tlh = moment.defineLocale('tlh', {\n\t        months : 'tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’'.split('_'),\n\t        monthsShort : 'jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’'.split('_'),\n\t        weekdays : 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),\n\t        weekdaysShort : 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),\n\t        weekdaysMin : 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'HH:mm',\n\t            LTS : 'HH:mm:ss',\n\t            L : 'DD.MM.YYYY',\n\t            LL : 'D MMMM YYYY',\n\t            LLL : 'D MMMM YYYY HH:mm',\n\t            LLLL : 'dddd, D MMMM YYYY HH:mm'\n\t        },\n\t        calendar : {\n\t            sameDay: '[DaHjaj] LT',\n\t            nextDay: '[wa’leS] LT',\n\t            nextWeek: 'LLL',\n\t            lastDay: '[wa’Hu’] LT',\n\t            lastWeek: 'LLL',\n\t            sameElse: 'L'\n\t        },\n\t        relativeTime : {\n\t            future : translateFuture,\n\t            past : translatePast,\n\t            s : 'puS lup',\n\t            m : 'wa’ tup',\n\t            mm : translate,\n\t            h : 'wa’ rep',\n\t            hh : translate,\n\t            d : 'wa’ jaj',\n\t            dd : translate,\n\t            M : 'wa’ jar',\n\t            MM : translate,\n\t            y : 'wa’ DIS',\n\t            yy : translate\n\t        },\n\t        ordinalParse: /\\d{1,2}\\./,\n\t        ordinal : '%d.',\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 4  // The week that contains Jan 4th is the first week of the year.\n\t        }\n\t    });\n\n\t    return tlh;\n\n\t}));\n\n/***/ },\n/* 113 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : turkish (tr)\n\t//! authors : Erhan Gundogan : https://github.com/erhangundogan,\n\t//!           Burak Yiğit Kaya: https://github.com/BYK\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var suffixes = {\n\t        1: '\\'inci',\n\t        5: '\\'inci',\n\t        8: '\\'inci',\n\t        70: '\\'inci',\n\t        80: '\\'inci',\n\t        2: '\\'nci',\n\t        7: '\\'nci',\n\t        20: '\\'nci',\n\t        50: '\\'nci',\n\t        3: '\\'üncü',\n\t        4: '\\'üncü',\n\t        100: '\\'üncü',\n\t        6: '\\'ncı',\n\t        9: '\\'uncu',\n\t        10: '\\'uncu',\n\t        30: '\\'uncu',\n\t        60: '\\'ıncı',\n\t        90: '\\'ıncı'\n\t    };\n\n\t    var tr = moment.defineLocale('tr', {\n\t        months : 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split('_'),\n\t        monthsShort : 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'),\n\t        weekdays : 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split('_'),\n\t        weekdaysShort : 'Paz_Pts_Sal_Çar_Per_Cum_Cts'.split('_'),\n\t        weekdaysMin : 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'HH:mm',\n\t            LTS : 'HH:mm:ss',\n\t            L : 'DD.MM.YYYY',\n\t            LL : 'D MMMM YYYY',\n\t            LLL : 'D MMMM YYYY HH:mm',\n\t            LLLL : 'dddd, D MMMM YYYY HH:mm'\n\t        },\n\t        calendar : {\n\t            sameDay : '[bugün saat] LT',\n\t            nextDay : '[yarın saat] LT',\n\t            nextWeek : '[haftaya] dddd [saat] LT',\n\t            lastDay : '[dün] LT',\n\t            lastWeek : '[geçen hafta] dddd [saat] LT',\n\t            sameElse : 'L'\n\t        },\n\t        relativeTime : {\n\t            future : '%s sonra',\n\t            past : '%s önce',\n\t            s : 'birkaç saniye',\n\t            m : 'bir dakika',\n\t            mm : '%d dakika',\n\t            h : 'bir saat',\n\t            hh : '%d saat',\n\t            d : 'bir gün',\n\t            dd : '%d gün',\n\t            M : 'bir ay',\n\t            MM : '%d ay',\n\t            y : 'bir yıl',\n\t            yy : '%d yıl'\n\t        },\n\t        ordinalParse: /\\d{1,2}'(inci|nci|üncü|ncı|uncu|ıncı)/,\n\t        ordinal : function (number) {\n\t            if (number === 0) {  // special case for zero\n\t                return number + '\\'ıncı';\n\t            }\n\t            var a = number % 10,\n\t                b = number % 100 - a,\n\t                c = number >= 100 ? 100 : null;\n\t            return number + (suffixes[a] || suffixes[b] || suffixes[c]);\n\t        },\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 7  // The week that contains Jan 1st is the first week of the year.\n\t        }\n\t    });\n\n\t    return tr;\n\n\t}));\n\n/***/ },\n/* 114 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : talossan (tzl)\n\t//! author : Robin van der Vliet : https://github.com/robin0van0der0v with the help of Iustì Canun\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\n\t    // After the year there should be a slash and the amount of years since December 26, 1979 in Roman numerals.\n\t    // This is currently too difficult (maybe even impossible) to add.\n\t    var tzl = moment.defineLocale('tzl', {\n\t        months : 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split('_'),\n\t        monthsShort : 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split('_'),\n\t        weekdays : 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split('_'),\n\t        weekdaysShort : 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'),\n\t        weekdaysMin : 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'HH.mm',\n\t            LTS : 'HH.mm.ss',\n\t            L : 'DD.MM.YYYY',\n\t            LL : 'D. MMMM [dallas] YYYY',\n\t            LLL : 'D. MMMM [dallas] YYYY HH.mm',\n\t            LLLL : 'dddd, [li] D. MMMM [dallas] YYYY HH.mm'\n\t        },\n\t        meridiem : function (hours, minutes, isLower) {\n\t            if (hours > 11) {\n\t                return isLower ? 'd\\'o' : 'D\\'O';\n\t            } else {\n\t                return isLower ? 'd\\'a' : 'D\\'A';\n\t            }\n\t        },\n\t        calendar : {\n\t            sameDay : '[oxhi à] LT',\n\t            nextDay : '[demà à] LT',\n\t            nextWeek : 'dddd [à] LT',\n\t            lastDay : '[ieiri à] LT',\n\t            lastWeek : '[sür el] dddd [lasteu à] LT',\n\t            sameElse : 'L'\n\t        },\n\t        relativeTime : {\n\t            future : 'osprei %s',\n\t            past : 'ja%s',\n\t            s : processRelativeTime,\n\t            m : processRelativeTime,\n\t            mm : processRelativeTime,\n\t            h : processRelativeTime,\n\t            hh : processRelativeTime,\n\t            d : processRelativeTime,\n\t            dd : processRelativeTime,\n\t            M : processRelativeTime,\n\t            MM : processRelativeTime,\n\t            y : processRelativeTime,\n\t            yy : processRelativeTime\n\t        },\n\t        ordinalParse: /\\d{1,2}\\./,\n\t        ordinal : '%d.',\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 4  // The week that contains Jan 4th is the first week of the year.\n\t        }\n\t    });\n\n\t    function processRelativeTime(number, withoutSuffix, key, isFuture) {\n\t        var format = {\n\t            's': ['viensas secunds', '\\'iensas secunds'],\n\t            'm': ['\\'n míut', '\\'iens míut'],\n\t            'mm': [number + ' míuts', '' + number + ' míuts'],\n\t            'h': ['\\'n þora', '\\'iensa þora'],\n\t            'hh': [number + ' þoras', '' + number + ' þoras'],\n\t            'd': ['\\'n ziua', '\\'iensa ziua'],\n\t            'dd': [number + ' ziuas', '' + number + ' ziuas'],\n\t            'M': ['\\'n mes', '\\'iens mes'],\n\t            'MM': [number + ' mesen', '' + number + ' mesen'],\n\t            'y': ['\\'n ar', '\\'iens ar'],\n\t            'yy': [number + ' ars', '' + number + ' ars']\n\t        };\n\t        return isFuture ? format[key][0] : (withoutSuffix ? format[key][0] : format[key][1]);\n\t    }\n\n\t    return tzl;\n\n\t}));\n\n/***/ },\n/* 115 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : Morocco Central Atlas Tamaziɣt (tzm)\n\t//! author : Abdel Said : https://github.com/abdelsaid\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var tzm = moment.defineLocale('tzm', {\n\t        months : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),\n\t        monthsShort : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),\n\t        weekdays : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),\n\t        weekdaysShort : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),\n\t        weekdaysMin : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'HH:mm',\n\t            LTS: 'HH:mm:ss',\n\t            L : 'DD/MM/YYYY',\n\t            LL : 'D MMMM YYYY',\n\t            LLL : 'D MMMM YYYY HH:mm',\n\t            LLLL : 'dddd D MMMM YYYY HH:mm'\n\t        },\n\t        calendar : {\n\t            sameDay: '[ⴰⵙⴷⵅ ⴴ] LT',\n\t            nextDay: '[ⴰⵙⴽⴰ ⴴ] LT',\n\t            nextWeek: 'dddd [ⴴ] LT',\n\t            lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT',\n\t            lastWeek: 'dddd [ⴴ] LT',\n\t            sameElse: 'L'\n\t        },\n\t        relativeTime : {\n\t            future : 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s',\n\t            past : 'ⵢⴰⵏ %s',\n\t            s : 'ⵉⵎⵉⴽ',\n\t            m : 'ⵎⵉⵏⵓⴺ',\n\t            mm : '%d ⵎⵉⵏⵓⴺ',\n\t            h : 'ⵙⴰⵄⴰ',\n\t            hh : '%d ⵜⴰⵙⵙⴰⵄⵉⵏ',\n\t            d : 'ⴰⵙⵙ',\n\t            dd : '%d oⵙⵙⴰⵏ',\n\t            M : 'ⴰⵢoⵓⵔ',\n\t            MM : '%d ⵉⵢⵢⵉⵔⵏ',\n\t            y : 'ⴰⵙⴳⴰⵙ',\n\t            yy : '%d ⵉⵙⴳⴰⵙⵏ'\n\t        },\n\t        week : {\n\t            dow : 6, // Saturday is the first day of the week.\n\t            doy : 12  // The week that contains Jan 1st is the first week of the year.\n\t        }\n\t    });\n\n\t    return tzm;\n\n\t}));\n\n/***/ },\n/* 116 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : Morocco Central Atlas Tamaziɣt in Latin (tzm-latn)\n\t//! author : Abdel Said : https://github.com/abdelsaid\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var tzm_latn = moment.defineLocale('tzm-latn', {\n\t        months : 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),\n\t        monthsShort : 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),\n\t        weekdays : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),\n\t        weekdaysShort : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),\n\t        weekdaysMin : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'HH:mm',\n\t            LTS : 'HH:mm:ss',\n\t            L : 'DD/MM/YYYY',\n\t            LL : 'D MMMM YYYY',\n\t            LLL : 'D MMMM YYYY HH:mm',\n\t            LLLL : 'dddd D MMMM YYYY HH:mm'\n\t        },\n\t        calendar : {\n\t            sameDay: '[asdkh g] LT',\n\t            nextDay: '[aska g] LT',\n\t            nextWeek: 'dddd [g] LT',\n\t            lastDay: '[assant g] LT',\n\t            lastWeek: 'dddd [g] LT',\n\t            sameElse: 'L'\n\t        },\n\t        relativeTime : {\n\t            future : 'dadkh s yan %s',\n\t            past : 'yan %s',\n\t            s : 'imik',\n\t            m : 'minuḍ',\n\t            mm : '%d minuḍ',\n\t            h : 'saɛa',\n\t            hh : '%d tassaɛin',\n\t            d : 'ass',\n\t            dd : '%d ossan',\n\t            M : 'ayowr',\n\t            MM : '%d iyyirn',\n\t            y : 'asgas',\n\t            yy : '%d isgasn'\n\t        },\n\t        week : {\n\t            dow : 6, // Saturday is the first day of the week.\n\t            doy : 12  // The week that contains Jan 1st is the first week of the year.\n\t        }\n\t    });\n\n\t    return tzm_latn;\n\n\t}));\n\n/***/ },\n/* 117 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : ukrainian (uk)\n\t//! author : zemlanin : https://github.com/zemlanin\n\t//! Author : Menelion Elensúle : https://github.com/Oire\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    function plural(word, num) {\n\t        var forms = word.split('_');\n\t        return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]);\n\t    }\n\t    function relativeTimeWithPlural(number, withoutSuffix, key) {\n\t        var format = {\n\t            'mm': withoutSuffix ? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин',\n\t            'hh': withoutSuffix ? 'година_години_годин' : 'годину_години_годин',\n\t            'dd': 'день_дні_днів',\n\t            'MM': 'місяць_місяці_місяців',\n\t            'yy': 'рік_роки_років'\n\t        };\n\t        if (key === 'm') {\n\t            return withoutSuffix ? 'хвилина' : 'хвилину';\n\t        }\n\t        else if (key === 'h') {\n\t            return withoutSuffix ? 'година' : 'годину';\n\t        }\n\t        else {\n\t            return number + ' ' + plural(format[key], +number);\n\t        }\n\t    }\n\t    function weekdaysCaseReplace(m, format) {\n\t        var weekdays = {\n\t            'nominative': 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split('_'),\n\t            'accusative': 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split('_'),\n\t            'genitive': 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split('_')\n\t        },\n\t        nounCase = (/(\\[[ВвУу]\\]) ?dddd/).test(format) ?\n\t            'accusative' :\n\t            ((/\\[?(?:минулої|наступної)? ?\\] ?dddd/).test(format) ?\n\t                'genitive' :\n\t                'nominative');\n\t        return weekdays[nounCase][m.day()];\n\t    }\n\t    function processHoursFunction(str) {\n\t        return function () {\n\t            return str + 'о' + (this.hours() === 11 ? 'б' : '') + '] LT';\n\t        };\n\t    }\n\n\t    var uk = moment.defineLocale('uk', {\n\t        months : {\n\t            'format': 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split('_'),\n\t            'standalone': 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split('_')\n\t        },\n\t        monthsShort : 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split('_'),\n\t        weekdays : weekdaysCaseReplace,\n\t        weekdaysShort : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),\n\t        weekdaysMin : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'HH:mm',\n\t            LTS : 'HH:mm:ss',\n\t            L : 'DD.MM.YYYY',\n\t            LL : 'D MMMM YYYY р.',\n\t            LLL : 'D MMMM YYYY р., HH:mm',\n\t            LLLL : 'dddd, D MMMM YYYY р., HH:mm'\n\t        },\n\t        calendar : {\n\t            sameDay: processHoursFunction('[Сьогодні '),\n\t            nextDay: processHoursFunction('[Завтра '),\n\t            lastDay: processHoursFunction('[Вчора '),\n\t            nextWeek: processHoursFunction('[У] dddd ['),\n\t            lastWeek: function () {\n\t                switch (this.day()) {\n\t                case 0:\n\t                case 3:\n\t                case 5:\n\t                case 6:\n\t                    return processHoursFunction('[Минулої] dddd [').call(this);\n\t                case 1:\n\t                case 2:\n\t                case 4:\n\t                    return processHoursFunction('[Минулого] dddd [').call(this);\n\t                }\n\t            },\n\t            sameElse: 'L'\n\t        },\n\t        relativeTime : {\n\t            future : 'за %s',\n\t            past : '%s тому',\n\t            s : 'декілька секунд',\n\t            m : relativeTimeWithPlural,\n\t            mm : relativeTimeWithPlural,\n\t            h : 'годину',\n\t            hh : relativeTimeWithPlural,\n\t            d : 'день',\n\t            dd : relativeTimeWithPlural,\n\t            M : 'місяць',\n\t            MM : relativeTimeWithPlural,\n\t            y : 'рік',\n\t            yy : relativeTimeWithPlural\n\t        },\n\t        // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason\n\t        meridiemParse: /ночі|ранку|дня|вечора/,\n\t        isPM: function (input) {\n\t            return /^(дня|вечора)$/.test(input);\n\t        },\n\t        meridiem : function (hour, minute, isLower) {\n\t            if (hour < 4) {\n\t                return 'ночі';\n\t            } else if (hour < 12) {\n\t                return 'ранку';\n\t            } else if (hour < 17) {\n\t                return 'дня';\n\t            } else {\n\t                return 'вечора';\n\t            }\n\t        },\n\t        ordinalParse: /\\d{1,2}-(й|го)/,\n\t        ordinal: function (number, period) {\n\t            switch (period) {\n\t            case 'M':\n\t            case 'd':\n\t            case 'DDD':\n\t            case 'w':\n\t            case 'W':\n\t                return number + '-й';\n\t            case 'D':\n\t                return number + '-го';\n\t            default:\n\t                return number;\n\t            }\n\t        },\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 7  // The week that contains Jan 1st is the first week of the year.\n\t        }\n\t    });\n\n\t    return uk;\n\n\t}));\n\n/***/ },\n/* 118 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : uzbek (uz)\n\t//! author : Sardor Muminov : https://github.com/muminoff\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var uz = moment.defineLocale('uz', {\n\t        months : 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split('_'),\n\t        monthsShort : 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),\n\t        weekdays : 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'),\n\t        weekdaysShort : 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'),\n\t        weekdaysMin : 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'HH:mm',\n\t            LTS : 'HH:mm:ss',\n\t            L : 'DD/MM/YYYY',\n\t            LL : 'D MMMM YYYY',\n\t            LLL : 'D MMMM YYYY HH:mm',\n\t            LLLL : 'D MMMM YYYY, dddd HH:mm'\n\t        },\n\t        calendar : {\n\t            sameDay : '[Бугун соат] LT [да]',\n\t            nextDay : '[Эртага] LT [да]',\n\t            nextWeek : 'dddd [куни соат] LT [да]',\n\t            lastDay : '[Кеча соат] LT [да]',\n\t            lastWeek : '[Утган] dddd [куни соат] LT [да]',\n\t            sameElse : 'L'\n\t        },\n\t        relativeTime : {\n\t            future : 'Якин %s ичида',\n\t            past : 'Бир неча %s олдин',\n\t            s : 'фурсат',\n\t            m : 'бир дакика',\n\t            mm : '%d дакика',\n\t            h : 'бир соат',\n\t            hh : '%d соат',\n\t            d : 'бир кун',\n\t            dd : '%d кун',\n\t            M : 'бир ой',\n\t            MM : '%d ой',\n\t            y : 'бир йил',\n\t            yy : '%d йил'\n\t        },\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 7  // The week that contains Jan 4th is the first week of the year.\n\t        }\n\t    });\n\n\t    return uz;\n\n\t}));\n\n/***/ },\n/* 119 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : vietnamese (vi)\n\t//! author : Bang Nguyen : https://github.com/bangnk\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var vi = moment.defineLocale('vi', {\n\t        months : 'tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12'.split('_'),\n\t        monthsShort : 'Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12'.split('_'),\n\t        weekdays : 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split('_'),\n\t        weekdaysShort : 'CN_T2_T3_T4_T5_T6_T7'.split('_'),\n\t        weekdaysMin : 'CN_T2_T3_T4_T5_T6_T7'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'HH:mm',\n\t            LTS : 'HH:mm:ss',\n\t            L : 'DD/MM/YYYY',\n\t            LL : 'D MMMM [năm] YYYY',\n\t            LLL : 'D MMMM [năm] YYYY HH:mm',\n\t            LLLL : 'dddd, D MMMM [năm] YYYY HH:mm',\n\t            l : 'DD/M/YYYY',\n\t            ll : 'D MMM YYYY',\n\t            lll : 'D MMM YYYY HH:mm',\n\t            llll : 'ddd, D MMM YYYY HH:mm'\n\t        },\n\t        calendar : {\n\t            sameDay: '[Hôm nay lúc] LT',\n\t            nextDay: '[Ngày mai lúc] LT',\n\t            nextWeek: 'dddd [tuần tới lúc] LT',\n\t            lastDay: '[Hôm qua lúc] LT',\n\t            lastWeek: 'dddd [tuần rồi lúc] LT',\n\t            sameElse: 'L'\n\t        },\n\t        relativeTime : {\n\t            future : '%s tới',\n\t            past : '%s trước',\n\t            s : 'vài giây',\n\t            m : 'một phút',\n\t            mm : '%d phút',\n\t            h : 'một giờ',\n\t            hh : '%d giờ',\n\t            d : 'một ngày',\n\t            dd : '%d ngày',\n\t            M : 'một tháng',\n\t            MM : '%d tháng',\n\t            y : 'một năm',\n\t            yy : '%d năm'\n\t        },\n\t        ordinalParse: /\\d{1,2}/,\n\t        ordinal : function (number) {\n\t            return number;\n\t        },\n\t        week : {\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 4  // The week that contains Jan 4th is the first week of the year.\n\t        }\n\t    });\n\n\t    return vi;\n\n\t}));\n\n/***/ },\n/* 120 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : chinese (zh-cn)\n\t//! author : suupic : https://github.com/suupic\n\t//! author : Zeno Zeng : https://github.com/zenozeng\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var zh_cn = moment.defineLocale('zh-cn', {\n\t        months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),\n\t        monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),\n\t        weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),\n\t        weekdaysShort : '周日_周一_周二_周三_周四_周五_周六'.split('_'),\n\t        weekdaysMin : '日_一_二_三_四_五_六'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'Ah点mm分',\n\t            LTS : 'Ah点m分s秒',\n\t            L : 'YYYY-MM-DD',\n\t            LL : 'YYYY年MMMD日',\n\t            LLL : 'YYYY年MMMD日Ah点mm分',\n\t            LLLL : 'YYYY年MMMD日ddddAh点mm分',\n\t            l : 'YYYY-MM-DD',\n\t            ll : 'YYYY年MMMD日',\n\t            lll : 'YYYY年MMMD日Ah点mm分',\n\t            llll : 'YYYY年MMMD日ddddAh点mm分'\n\t        },\n\t        meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,\n\t        meridiemHour: function (hour, meridiem) {\n\t            if (hour === 12) {\n\t                hour = 0;\n\t            }\n\t            if (meridiem === '凌晨' || meridiem === '早上' ||\n\t                    meridiem === '上午') {\n\t                return hour;\n\t            } else if (meridiem === '下午' || meridiem === '晚上') {\n\t                return hour + 12;\n\t            } else {\n\t                // '中午'\n\t                return hour >= 11 ? hour : hour + 12;\n\t            }\n\t        },\n\t        meridiem : function (hour, minute, isLower) {\n\t            var hm = hour * 100 + minute;\n\t            if (hm < 600) {\n\t                return '凌晨';\n\t            } else if (hm < 900) {\n\t                return '早上';\n\t            } else if (hm < 1130) {\n\t                return '上午';\n\t            } else if (hm < 1230) {\n\t                return '中午';\n\t            } else if (hm < 1800) {\n\t                return '下午';\n\t            } else {\n\t                return '晚上';\n\t            }\n\t        },\n\t        calendar : {\n\t            sameDay : function () {\n\t                return this.minutes() === 0 ? '[今天]Ah[点整]' : '[今天]LT';\n\t            },\n\t            nextDay : function () {\n\t                return this.minutes() === 0 ? '[明天]Ah[点整]' : '[明天]LT';\n\t            },\n\t            lastDay : function () {\n\t                return this.minutes() === 0 ? '[昨天]Ah[点整]' : '[昨天]LT';\n\t            },\n\t            nextWeek : function () {\n\t                var startOfWeek, prefix;\n\t                startOfWeek = moment().startOf('week');\n\t                prefix = this.unix() - startOfWeek.unix() >= 7 * 24 * 3600 ? '[下]' : '[本]';\n\t                return this.minutes() === 0 ? prefix + 'dddAh点整' : prefix + 'dddAh点mm';\n\t            },\n\t            lastWeek : function () {\n\t                var startOfWeek, prefix;\n\t                startOfWeek = moment().startOf('week');\n\t                prefix = this.unix() < startOfWeek.unix()  ? '[上]' : '[本]';\n\t                return this.minutes() === 0 ? prefix + 'dddAh点整' : prefix + 'dddAh点mm';\n\t            },\n\t            sameElse : 'LL'\n\t        },\n\t        ordinalParse: /\\d{1,2}(日|月|周)/,\n\t        ordinal : function (number, period) {\n\t            switch (period) {\n\t            case 'd':\n\t            case 'D':\n\t            case 'DDD':\n\t                return number + '日';\n\t            case 'M':\n\t                return number + '月';\n\t            case 'w':\n\t            case 'W':\n\t                return number + '周';\n\t            default:\n\t                return number;\n\t            }\n\t        },\n\t        relativeTime : {\n\t            future : '%s内',\n\t            past : '%s前',\n\t            s : '几秒',\n\t            m : '1 分钟',\n\t            mm : '%d 分钟',\n\t            h : '1 小时',\n\t            hh : '%d 小时',\n\t            d : '1 天',\n\t            dd : '%d 天',\n\t            M : '1 个月',\n\t            MM : '%d 个月',\n\t            y : '1 年',\n\t            yy : '%d 年'\n\t        },\n\t        week : {\n\t            // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效\n\t            dow : 1, // Monday is the first day of the week.\n\t            doy : 4  // The week that contains Jan 4th is the first week of the year.\n\t        }\n\t    });\n\n\t    return zh_cn;\n\n\t}));\n\n/***/ },\n/* 121 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t//! moment.js locale configuration\n\t//! locale : traditional chinese (zh-tw)\n\t//! author : Ben : https://github.com/ben-lin\n\n\t;(function (global, factory) {\n\t    true ? factory(__webpack_require__(23)) :\n\t   typeof define === 'function' && define.amd ? define(['moment'], factory) :\n\t   factory(global.moment)\n\t}(this, function (moment) { 'use strict';\n\n\n\t    var zh_tw = moment.defineLocale('zh-tw', {\n\t        months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),\n\t        monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),\n\t        weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),\n\t        weekdaysShort : '週日_週一_週二_週三_週四_週五_週六'.split('_'),\n\t        weekdaysMin : '日_一_二_三_四_五_六'.split('_'),\n\t        longDateFormat : {\n\t            LT : 'Ah點mm分',\n\t            LTS : 'Ah點m分s秒',\n\t            L : 'YYYY年MMMD日',\n\t            LL : 'YYYY年MMMD日',\n\t            LLL : 'YYYY年MMMD日Ah點mm分',\n\t            LLLL : 'YYYY年MMMD日ddddAh點mm分',\n\t            l : 'YYYY年MMMD日',\n\t            ll : 'YYYY年MMMD日',\n\t            lll : 'YYYY年MMMD日Ah點mm分',\n\t            llll : 'YYYY年MMMD日ddddAh點mm分'\n\t        },\n\t        meridiemParse: /早上|上午|中午|下午|晚上/,\n\t        meridiemHour : function (hour, meridiem) {\n\t            if (hour === 12) {\n\t                hour = 0;\n\t            }\n\t            if (meridiem === '早上' || meridiem === '上午') {\n\t                return hour;\n\t            } else if (meridiem === '中午') {\n\t                return hour >= 11 ? hour : hour + 12;\n\t            } else if (meridiem === '下午' || meridiem === '晚上') {\n\t                return hour + 12;\n\t            }\n\t        },\n\t        meridiem : function (hour, minute, isLower) {\n\t            var hm = hour * 100 + minute;\n\t            if (hm < 900) {\n\t                return '早上';\n\t            } else if (hm < 1130) {\n\t                return '上午';\n\t            } else if (hm < 1230) {\n\t                return '中午';\n\t            } else if (hm < 1800) {\n\t                return '下午';\n\t            } else {\n\t                return '晚上';\n\t            }\n\t        },\n\t        calendar : {\n\t            sameDay : '[今天]LT',\n\t            nextDay : '[明天]LT',\n\t            nextWeek : '[下]ddddLT',\n\t            lastDay : '[昨天]LT',\n\t            lastWeek : '[上]ddddLT',\n\t            sameElse : 'L'\n\t        },\n\t        ordinalParse: /\\d{1,2}(日|月|週)/,\n\t        ordinal : function (number, period) {\n\t            switch (period) {\n\t            case 'd' :\n\t            case 'D' :\n\t            case 'DDD' :\n\t                return number + '日';\n\t            case 'M' :\n\t                return number + '月';\n\t            case 'w' :\n\t            case 'W' :\n\t                return number + '週';\n\t            default :\n\t                return number;\n\t            }\n\t        },\n\t        relativeTime : {\n\t            future : '%s內',\n\t            past : '%s前',\n\t            s : '幾秒',\n\t            m : '一分鐘',\n\t            mm : '%d分鐘',\n\t            h : '一小時',\n\t            hh : '%d小時',\n\t            d : '一天',\n\t            dd : '%d天',\n\t            M : '一個月',\n\t            MM : '%d個月',\n\t            y : '一年',\n\t            yy : '%d年'\n\t        }\n\t    });\n\n\t    return zh_tw;\n\n\t}));\n\n/***/ },\n/* 122 */\n/***/ function(module, exports) {\n\n\t/*\n\t LumX v0.3.9\n\t (c) 2014-2015 LumApps http://ui.lumapps.com\n\t License: MIT\n\t*/\n\t/* global angular */\n\n\tangular.module('lumx.utils', [\n\t    'lumx.utils.transclude',\n\t    'lumx.utils.transclude-replace'\n\t]);\n\n\tangular.module('lumx', [\n\t    'lumx.utils',\n\t    'lumx.ripple',\n\t    'lumx.notification',\n\t    'lumx.dropdown',\n\t    'lumx.text-field',\n\t    'lumx.dialog',\n\t    'lumx.select',\n\t    'lumx.scrollbar',\n\t    'lumx.thumbnail',\n\t    'lumx.tabs',\n\t    'lumx.tooltip',\n\t    'lumx.file-input',\n\t    'lumx.progress',\n\t    'lumx.search-filter',\n\t    'lumx.date-picker'\n\t]);\n\t/* global angular */\n\t'use strict'; // jshint ignore:line\n\n\n\tangular.module('lumx.utils.transclude-replace', [])\n\t    .directive('ngTranscludeReplace', ['$log', function ($log) {\n\t        return {\n\t            terminal: true,\n\t            restrict: 'EA',\n\t            link: function ($scope, $element, $attr, ctrl, transclude)\n\t            {\n\t                if (!transclude)\n\t                {\n\t                    $log.error('orphan',\n\t                         'Illegal use of ngTranscludeReplace directive in the template! ' +\n\t                         'No parent directive that requires a transclusion found. ');\n\t                    return;\n\t                }\n\n\t                transclude(function(clone)\n\t                {\n\t                    if (clone.length)\n\t                    {\n\t                        $element.replaceWith(clone);\n\t                    }\n\t                    else\n\t                    {\n\t                        $element.remove();\n\t                    }\n\t                });\n\t            }\n\t        };\n\t    }]);\n\t/* global angular */\n\t'use strict'; // jshint ignore:line\n\n\n\tangular.module('lumx.utils.transclude', [])\n\t    .config(['$provide', function($provide)\n\t    {\n\t        $provide.decorator('ngTranscludeDirective', ['$delegate', function($delegate)\n\t        {\n\t            $delegate.shift();\n\n\t            return $delegate;\n\t        }]);\n\t    }])\n\t    .directive('ngTransclude', function()\n\t    {\n\t        return {\n\t            restrict: 'EAC',\n\t            link: function(scope, element, attrs, ctrl, transclude)\n\t            {\n\t                var iScopeType = attrs.ngTransclude || 'sibling';\n\n\t                switch (iScopeType)\n\t                {\n\t                    case 'sibling':\n\t                        transclude(function(clone)\n\t                        {\n\t                            element.empty();\n\t                            element.append(clone);\n\t                        });\n\t                        break;\n\t                    case 'parent':\n\t                        transclude(scope, function(clone)\n\t                        {\n\t                            element.empty();\n\t                            element.append(clone);\n\t                        });\n\t                        break;\n\t                    case 'child':\n\t                        var iChildScope = scope.$new();\n\n\t                        transclude(iChildScope, function(clone)\n\t                        {\n\t                            element.empty();\n\t                            element.append(clone);\n\t                            element.on('$destroy', function()\n\t                            {\n\t                                iChildScope.$destroy();\n\t                            });\n\t                        });\n\t                        break;\n\t                    default:\n\t                        var count = parseInt(iScopeType);\n\t                        if (!isNaN(count))\n\t                        {\n\t                            var toClone = scope;\n\t                            for (var idx = 0; idx < count; idx++)\n\t                            {\n\t                                if (toClone.$parent)\n\t                                {\n\t                                    toClone = toClone.$parent;\n\t                                }\n\t                                else\n\t                                {\n\t                                    break;\n\t                                }\n\t                            }\n\n\t                            transclude(toClone, function(clone)\n\t                            {\n\t                                element.empty();\n\t                                element.append(clone);\n\t                            });\n\t                        }\n\t                }\n\t            }\n\t        };\n\t    });\n\n\t/* global angular */\n\t/* global moment */\n\t/* global navigator */\n\t'use strict'; // jshint ignore:line\n\n\n\tangular.module('lumx.date-picker', [])\n\t    .controller('lxDatePickerController', ['$scope', '$timeout', '$window', function($scope, $timeout, $window)\n\t    {\n\t        var self = this,\n\t            activeLocale,\n\t            $datePicker,\n\t            $datePickerFilter,\n\t            $datePickerContainer;\n\n\t        this.init = function(element, locale)\n\t        {\n\t            $datePicker = element.find('.lx-date-picker');\n\t            $datePickerContainer = element;\n\n\t            self.build(locale);\n\t        };\n\n\t        this.build = function(locale)\n\t        {\n\t            if (locale === activeLocale)\n\t            {\n\t                return;\n\t            }\n\n\t            activeLocale = locale;\n\n\t            moment.locale(activeLocale);\n\n\t            if (angular.isDefined($scope.model))\n\t            {\n\t                $scope.selected = {\n\t                    model: moment($scope.model).format('LL'),\n\t                    date: $scope.model\n\t                };\n\n\t                $scope.activeDate = moment($scope.model);\n\t            }\n\t            else\n\t            {\n\t                $scope.selected = {\n\t                    model: undefined,\n\t                    date: new Date()\n\t                };\n\n\t                $scope.activeDate = moment();\n\t            }\n\n\t            $scope.moment = moment;\n\n\t            $scope.days = [];\n\t            $scope.daysOfWeek = [moment.weekdaysMin(1), moment.weekdaysMin(2), moment.weekdaysMin(3), moment.weekdaysMin(4), moment.weekdaysMin(5), moment.weekdaysMin(6), moment.weekdaysMin(0)];\n\t                \n\t            $scope.years = [];\n\n\t            for (var y = moment().year() - 100; y <= moment().year() + 100; y++)\n\t            {\n\t                $scope.years.push(y);\n\t            }\n\n\t            generateCalendar();\n\t        };\n\n\t        $scope.previousMonth = function()\n\t        {\n\t            $scope.activeDate = $scope.activeDate.subtract(1, 'month');\n\t            generateCalendar();\n\t        };\n\n\t        $scope.nextMonth = function()\n\t        {\n\t            $scope.activeDate = $scope.activeDate.add(1, 'month');\n\t            generateCalendar();\n\t        };\n\n\t        $scope.select = function(day)\n\t        {\n\t            $scope.selected = {\n\t                model: day.format('LL'),\n\t                date: day.toDate()\n\t            };\n\n\t            $scope.model = day.toDate();\n\n\t            generateCalendar();\n\t        };\n\n\t        $scope.selectYear = function(year)\n\t        {\n\t            $scope.yearSelection = false;\n\n\t            $scope.selected.model = moment($scope.selected.date).year(year).format('LL');\n\t            $scope.selected.date = moment($scope.selected.date).year(year).toDate();\n\t            $scope.model = moment($scope.selected.date).toDate();\n\t            $scope.activeDate = $scope.activeDate.add(year - $scope.activeDate.year(), 'year');\n\n\t            generateCalendar();\n\t        };\n\n\t        $scope.openPicker = function()\n\t        {\n\t            $scope.yearSelection = false;\n\n\t            $datePickerFilter = angular.element('<div/>', {\n\t                class: 'lx-date-filter'\n\t            });\n\n\t            $datePickerFilter\n\t                .appendTo('body')\n\t                .bind('click', function()\n\t                {\n\t                    $scope.closePicker();\n\t                });\n\n\t            $datePicker\n\t                .appendTo('body')\n\t                .show();\n\n\t            $timeout(function()\n\t            {\n\t                $datePickerFilter.addClass('lx-date-filter--is-shown');\n\t                $datePicker.addClass('lx-date-picker--is-shown');\n\t            }, 100);\n\t        };\n\n\t        $scope.closePicker = function()\n\t        {\n\t            $datePickerFilter.removeClass('lx-date-filter--is-shown');\n\t            $datePicker.removeClass('lx-date-picker--is-shown');\n\n\t            $timeout(function()\n\t            {\n\t                $datePickerFilter.remove();\n\n\t                $datePicker\n\t                    .hide()\n\t                    .appendTo($datePickerContainer);\n\t            }, 600);\n\t        };\n\n\t        $scope.displayYearSelection = function()\n\t        {\n\t            var calendarHeight = angular.element('.lx-date-picker__calendar').outerHeight(),\n\t                $yearSelector = angular.element('.lx-date-picker__year-selector');\n\n\t            $yearSelector.css({ height: calendarHeight });\n\n\t            $scope.yearSelection = true;\n\t            \n\t            $timeout(function()\n\t            {\n\t                var $activeYear = angular.element('.lx-date-picker__year--is-active');\n\n\t                $yearSelector.scrollTop($yearSelector.scrollTop() + $activeYear.position().top - $yearSelector.height()/2 + $activeYear.height()/2);\n\t            });\n\t        };\n\n\t        function generateCalendar()\n\t        {\n\t            var days = [],\n\t                previousDay = angular.copy($scope.activeDate).date(0),\n\t                firstDayOfMonth = angular.copy($scope.activeDate).date(1),\n\t                lastDayOfMonth = angular.copy(firstDayOfMonth).endOf('month'),\n\t                maxDays = angular.copy(lastDayOfMonth).date();\n\n\t            $scope.emptyFirstDays = [];\n\n\t            for (var i = firstDayOfMonth.day() === 0 ? 6 : firstDayOfMonth.day() - 1; i > 0; i--)\n\t            {\n\t                $scope.emptyFirstDays.push({});\n\t            }\n\n\t            for (var j = 0; j < maxDays; j++)\n\t            {\n\t                var date = angular.copy(previousDay.add(1, 'days'));\n\n\t                date.selected = angular.isDefined($scope.selected.model) && date.isSame($scope.selected.date, 'day');\n\t                date.today = date.isSame(moment(), 'day');\n\n\t                days.push(date);\n\t            }\n\n\t            $scope.emptyLastDays = [];\n\n\t            for (var k = 7 - (lastDayOfMonth.day() === 0 ? 7 : lastDayOfMonth.day()); k > 0; k--)\n\t            {\n\t                $scope.emptyLastDays.push({});\n\t            }\n\t            \n\t            $scope.days = days;\n\t        }\n\t    }])\n\t    .directive('lxDatePicker', function()\n\t    {\n\t        return {\n\t            restrict: 'AE',\n\t            controller: 'lxDatePickerController',\n\t            scope: {\n\t                model: '=',\n\t                label: '@'\n\t            },\n\t            templateUrl: 'date-picker.html',\n\t            link: function(scope, element, attrs, ctrl)\n\t            {\n\t                ctrl.init(element, checkLocale(attrs.locale));\n\n\t                attrs.$observe('locale', function()\n\t                {\n\t                    ctrl.build(checkLocale(attrs.locale));\n\t                });\n\n\t                function checkLocale(locale)\n\t                {\n\t                    if (!locale)\n\t                    {\n\t                        return (navigator.language !== null ? navigator.language : navigator.browserLanguage).split(\"_\")[0].split(\"-\")[0] || 'en';\n\t                    }\n\n\t                    return locale;\n\t                }\n\t            }\n\t        };\n\t    });\n\t/* global angular */\n\t'use strict'; // jshint ignore:line\n\n\n\tangular.module('lumx.dialog', [])\n\t    .service('LxDialogService', ['$timeout', '$interval', '$window', function($timeout, $interval, $window)\n\t    {\n\t        var self = this,\n\t            dialogInterval,\n\t            dialogFilter,\n\t            dialogHeight,\n\t            activeDialogId,\n\t            scopeMap = {};\n\n\t        this.registerScope = function(dialogId, dialogScope)\n\t        {\n\t            scopeMap[dialogId] = dialogScope;\n\t        };\n\n\t        this.open = function(dialogId)\n\t        {\n\t            activeDialogId = dialogId;\n\n\t            dialogFilter = angular.element('<div/>', {\n\t                class: 'dialog-filter'\n\t            });\n\n\t            dialogFilter\n\t                .appendTo('body')\n\t                .bind('click', function()\n\t                {\n\t                    self.close(dialogId);\n\t                });\n\n\t            scopeMap[dialogId].element\n\t                .appendTo('body')\n\t                .show();\n\n\t            $timeout(function()\n\t            {\n\t                scopeMap[dialogId].isOpened = true;\n\n\t                dialogFilter.addClass('dialog-filter--is-shown');\n\t                scopeMap[dialogId].element.addClass('dialog--is-shown');\n\t            }, 100);\n\n\t            dialogInterval = $interval(function()\n\t            {\n\t                if (scopeMap[dialogId].element.outerHeight() !== dialogHeight)\n\t                {\n\t                    checkDialogHeight(dialogId);\n\t                    dialogHeight = scopeMap[dialogId].element.outerHeight();\n\t                }\n\t            }, 500);\n\t        };\n\n\t        this.close = function(dialogId)\n\t        {\n\t            activeDialogId = undefined;\n\n\t            $interval.cancel(dialogInterval);\n\n\t            dialogFilter.removeClass('dialog-filter--is-shown');\n\t            scopeMap[dialogId].element.removeClass('dialog--is-shown');\n\t            scopeMap[dialogId].onclose();\n\n\t            $timeout(function()\n\t            {\n\t                dialogFilter.remove();\n\n\t                scopeMap[dialogId].element\n\t                    .hide()\n\t                    .removeClass('dialog--is-fixed')\n\t                    .appendTo(scopeMap[dialogId].parent);\n\n\t                scopeMap[dialogId].isOpened = false;\n\t                dialogHeight = undefined;\n\t            }, 600);\n\t        };\n\n\t        function checkDialogHeight(dialogId)\n\t        {\n\t            var dialogMargin = 60,\n\t                dialog = scopeMap[dialogId].element,\n\t                dialogHeader = dialog.find('.dialog__header'),\n\t                dialogContent = dialog.find('.dialog__content'),\n\t                dialogActions = dialog.find('.dialog__actions'),\n\t                dialogScrollable = angular.element('<div/>', { class: 'dialog__scrollable' }),\n\t                HeightToCheck = dialogMargin + dialogHeader.outerHeight() + dialogContent.outerHeight() + dialogActions.outerHeight();\n\n\t            if (HeightToCheck >= $window.innerHeight)\n\t            {\n\t                dialog.addClass('dialog--is-fixed');\n\n\t                if (dialog.find('.dialog__scrollable').length === 0)\n\t                {\n\t                    dialogScrollable.css({ top: dialogHeader.outerHeight(), bottom: dialogActions.outerHeight() });\n\t                    dialogContent.wrap(dialogScrollable);\n\t                }\n\t            }\n\t            else\n\t            {\n\t                dialog.removeClass('dialog--is-fixed');\n\n\t                if (dialog.find('.dialog__scrollable').length > 0)\n\t                {\n\t                    dialogContent.unwrap();\n\t                }\n\t            }\n\t        }\n\n\t        angular.element($window).bind('resize', function()\n\t        {\n\t            if (angular.isDefined(activeDialogId))\n\t            {\n\t                checkDialogHeight(activeDialogId);\n\t            }\n\t        });\n\t    }])\n\t    .controller('LxDialogController', ['$scope', 'LxDialogService', function($scope, LxDialogService)\n\t    {\n\t        this.init = function(element, id)\n\t        {\n\t            $scope.isOpened = false;\n\t            $scope.element = element;\n\t            $scope.parent = element.parent();\n\n\t            LxDialogService.registerScope(id, $scope);\n\t        };\n\t    }])\n\t    .directive('lxDialog', function()\n\t    {\n\t        return {\n\t            restrict: 'E',\n\t            controller: 'LxDialogController',\n\t            scope: {\n\t                onclose: '&'\n\t            },\n\t            template: '<div><div ng-if=\"isOpened\" ng-transclude=\"2\"></div></div>',\n\t            replace: true,\n\t            transclude: true,\n\t            link: function(scope, element, attrs, ctrl)\n\t            {\n\t                attrs.$observe('id', function(newId)\n\t                {\n\t                    if (newId)\n\t                    {\n\t                        ctrl.init(element, newId);\n\t                    }\n\t                });\n\t            }\n\t        };\n\t    })\n\t    .directive('lxDialogClose', ['LxDialogService', function(LxDialogService)\n\t    {\n\t        return {\n\t            restrict: 'A',\n\t            link: function(scope, element)\n\t            {\n\t                element.bind('click', function()\n\t                {\n\t                    LxDialogService.close(element.parents('.dialog').attr('id'));\n\t                });\n\t            }\n\t        };\n\t    }]);\n\n\t/* global angular */\n\t'use strict'; // jshint ignore:line\n\n\n\tangular.module('lumx.dropdown', [])\n\t    .service('LxDropdownService', ['$document', function($document)\n\t    {\n\t        var openScope = null;\n\n\t        function open(dropdownScope)\n\t        {\n\t            if (!openScope)\n\t            {\n\t                $document.bind('click', closeDropdown);\n\t            }\n\n\t            if (openScope && openScope !== dropdownScope)\n\t            {\n\t                openScope.isOpened = false;\n\t            }\n\n\t            openScope = dropdownScope;\n\t        }\n\n\t        function close(dropdownScope)\n\t        {\n\t            if (openScope === dropdownScope)\n\t            {\n\t                openScope = null;\n\t                $document.unbind('click', closeDropdown);\n\t            }\n\t        }\n\n\t        function closeDropdown()\n\t        {\n\t            if (!openScope) { return; }\n\n\t            openScope.$apply(function()\n\t            {\n\t                openScope.isOpened = false;\n\t            });\n\t        }\n\n\t        return {\n\t            open: open,\n\t            close: close\n\t        };\n\t    }])\n\t    .controller('LxDropdownController', ['$scope', '$timeout', '$window', 'LxDropdownService', function($scope, $timeout, $window, LxDropdownService)\n\t    {\n\t        var dropdown,\n\t            dropdownMenu;\n\n\t        $scope.isOpened = false;\n\t        $scope.isDropped = false;\n\n\t        this.registerDropdown = function(element)\n\t        {\n\t            dropdown = element;\n\n\t            $scope.position = angular.isDefined($scope.position) ? $scope.position : 'left';\n\t        };\n\n\t        this.registerDropdownMenu = function(element)\n\t        {\n\t            dropdownMenu = element;\n\t        };\n\n\t        this.toggle = function()\n\t        {\n\t            $scope.isOpened = !$scope.isOpened;\n\t        };\n\n\t        function linkList()\n\t        {\n\t            $scope.isDropped = false;\n\n\t            closeDropdownMenu();\n\t        }\n\n\t        function unlinkList()\n\t        {\n\t            $scope.isDropped = true;\n\n\t            dropdownMenu.appendTo('body');\n\n\t            $timeout(function()\n\t            {\n\t                setDropdownMenuCss();\n\t                openDropdownMenu();\n\t            });\n\t        }\n\n\t        function setDropdownMenuCss()\n\t        {\n\t            var top,\n\t                bottom,\n\t                left = 'auto',\n\t                right = 'auto';\n\n\t            if (angular.isDefined($scope.fromTop))\n\t            {\n\t                top = dropdown.offset().top;\n\t                bottom = $window.innerHeight - dropdown.offset().top;\n\t            }\n\t            else\n\t            {\n\t                top = dropdown.offset().top + dropdown.outerHeight();\n\t                bottom = $window.innerHeight - dropdown.offset().top - dropdown.outerHeight();\n\t            }\n\n\t            if ($scope.position === 'left')\n\t            {\n\t                left = dropdown.offset().left;\n\t            }\n\t            else if ($scope.position === 'right')\n\t            {\n\t                right = $window.innerWidth - (dropdown.offset().left + dropdown.outerWidth());\n\t            }\n\t            else if ($scope.position === 'center')\n\t            {\n\t                left = (dropdown.offset().left - (dropdownMenu.outerWidth() / 2)) + (dropdown.outerWidth() / 2);\n\t            }\n\n\t            if ($scope.direction === 'up')\n\t            {\n\t                dropdownMenu.css(\n\t                    {\n\t                        left: left,\n\t                        right: right,\n\t                        bottom: bottom\n\t                    });\n\t            }\n\t            else\n\t            {\n\t                dropdownMenu.css(\n\t                {\n\t                    left: left,\n\t                    right: right,\n\t                    top: top\n\t                });\n\t            }\n\n\t            if (angular.isDefined($scope.width))\n\t            {\n\t                if ($scope.width === 'full')\n\t                {\n\t                    dropdownMenu.css('width', dropdown.outerWidth());\n\t                }\n\t                else\n\t                {\n\t                    dropdownMenu.css('width', dropdown.outerWidth() + parseInt($scope.width));\n\t                }\n\t            }\n\t        }\n\n\t        function openDropdownMenu()\n\t        {\n\t            var dropdownMenuWidth = dropdownMenu.outerWidth(),\n\t                dropdownMenuHeight = dropdownMenu.outerHeight();\n\n\t            dropdownMenu.css({\n\t                width: 0,\n\t                height: 0,\n\t                opacity: 1\n\t            });\n\n\t            dropdownMenu.find('.dropdown-dropdownMenu__content').css({\n\t                width: dropdownMenuWidth,\n\t                height: dropdownMenuHeight\n\t            });\n\n\t            dropdownMenu.velocity({\n\t                width: dropdownMenuWidth\n\t            }, {\n\t                duration: 200,\n\t                easing: 'easeOutQuint',\n\t                queue: false\n\t            });\n\n\t            dropdownMenu.velocity({\n\t                height: dropdownMenuHeight\n\t            }, {\n\t                duration: 500,\n\t                easing: 'easeOutQuint',\n\t                queue: false,\n\t                complete: function()\n\t                {\n\t                    if (angular.isDefined($scope.width))\n\t                    {\n\t                        dropdownMenu.css({ height: 'auto' });\n\t                    }\n\t                    else\n\t                    {\n\t                        dropdownMenu.css({ width: 'auto', height: 'auto' });\n\t                    }\n\n\t                    dropdownMenu.find('.dropdown-menu__content').removeAttr('style');\n\t                }\n\t            });\n\n\t            dropdown.addClass('dropdown--is-active');\n\t        }\n\n\t        function closeDropdownMenu()\n\t        {\n\t            dropdownMenu.velocity({\n\t                width: 0,\n\t                height: 0,\n\t            }, {\n\t                duration: 200,\n\t                easing: 'easeOutQuint',\n\t                complete: function()\n\t                {\n\t                    dropdownMenu\n\t                        .appendTo(dropdown)\n\t                        .removeAttr('style');\n\n\t                    dropdown.removeClass('dropdown--is-active');\n\t                }\n\t            });\n\t        }\n\n\t        $scope.$watch('isOpened', function(isOpened)\n\t        {\n\t            if (isOpened)\n\t            {\n\t                unlinkList();\n\t                LxDropdownService.open($scope);\n\t            }\n\t            else\n\t            {\n\t                linkList();\n\t                LxDropdownService.close($scope);\n\t            }\n\t        });\n\n\t        angular.element($window).bind('resize, scroll', function()\n\t        {\n\t            if ($scope.isDropped)\n\t            {\n\t                setDropdownMenuCss();\n\t            }\n\t        });\n\n\t        $scope.$on('$locationChangeSuccess', function()\n\t        {\n\t            $scope.isOpened = false;\n\t        });\n\n\t        $scope.$on('$destroy', function()\n\t        {\n\t            dropdownMenu.remove();\n\t            LxDropdownService.close($scope);\n\t        });\n\t    }])\n\t    .directive('lxDropdown', function()\n\t    {\n\t        return {\n\t            restrict: 'E',\n\t            controller: 'LxDropdownController',\n\t            templateUrl: 'dropdown.html',\n\t            transclude: true,\n\t            replace: true,\n\t            scope: {\n\t                position: '@',\n\t                width: '@',\n\t                fromTop: '@',\n\t                direction: '@'\n\t            },\n\t            link: function(scope, element, attrs, ctrl)\n\t            {\n\t                ctrl.registerDropdown(element);\n\t            }\n\t        };\n\t    })\n\t    .directive('lxDropdownToggle', function()\n\t    {\n\t        return {\n\t            restrict: 'A',\n\t            require: '^lxDropdown',\n\t            templateUrl: 'dropdown-toggle.html',\n\t            replace: true,\n\t            transclude: true,\n\t            link: function(scope, element, attrs, ctrl)\n\t            {\n\t                element.bind('click', function(event)\n\t                {\n\t                    event.stopPropagation();\n\n\t                    scope.$apply(function()\n\t                    {\n\t                        ctrl.toggle();\n\t                    });\n\t                });\n\t            }\n\t        };\n\t    })\n\t    .directive('lxDropdownMenu', function()\n\t    {\n\t        return {\n\t            restrict: 'E',\n\t            require: '^lxDropdown',\n\t            templateUrl: 'dropdown-menu.html',\n\t            transclude: true,\n\t            replace: true,\n\t            link: function(scope, element, attrs, ctrl)\n\t            {\n\t                ctrl.registerDropdownMenu(element);\n\t                element.on('click', function(event)\n\t                {\n\t                    event.stopPropagation();\n\n\t                    scope.$apply(function()\n\t                    {\n\t                        ctrl.toggle();\n\t                    });\n\t                });\n\t            }\n\t        };\n\t    })\n\t    .directive('lxDropdownFilter', ['$timeout', function($timeout)\n\t    {\n\t        return {\n\t            restrict: 'A',\n\t            link: function(scope, element)\n\t            {\n\t                element.bind('click', function(event)\n\t                {\n\t                    event.stopPropagation();\n\t                });\n\n\t                $timeout(function()\n\t                {\n\t                    element.find('input').focus();\n\t                }, 200);\n\t            }\n\t        };\n\t    }]);\n\n\t/* global angular */\n\t'use strict'; // jshint ignore:line\n\n\n\tangular.module('lumx.file-input', [])\n\t    .directive('lxFileInput', ['$timeout', function($timeout)\n\t    {\n\t        return {\n\t            restrict: 'E',\n\t            scope: {\n\t                label: '@',\n\t                value: '=',\n\t                change: '&'\n\t            },\n\t            templateUrl: 'file-input.html',\n\t            replace: true,\n\t            link: function(scope, element)\n\t            {\n\t                var $input = element.find('input'),\n\t                    $fileName = element.find('.input-file__filename');\n\n\t                $input\n\t                    .addClass('input-file__input')\n\t                    .on('change', function()\n\t                    {\n\t                        $timeout(function()\n\t                        {\n\t                            setFileName($input.val());\n\t                            element.addClass('input-file--is-focused');\n\t                        });\n\n\t                        // handle change function\n\t                        if (angular.isDefined(scope.change))\n\t                        {\n\t                            // return the file element, the new value and the old value to the callback\n\t                            scope.change({e: $input[0].files[0], newValue: $input.val(), oldValue: $fileName.text()});\n\t                        }\n\t                    })\n\t                    .on('blur', function()\n\t                    {\n\t                        element.removeClass('input-file--is-focused');\n\t                    });\n\n\t                function setFileName(val)\n\t                {\n\t                    if (val)\n\t                    {\n\t                        $fileName.text(val.replace(/C:\\\\fakepath\\\\/i, ''));\n\n\t                        element.addClass('input-file--is-active');\n\t                    }\n\t                }\n\n\t                scope.$watch('value', function(value)\n\t                {\n\t                    setFileName(value);\n\t                });\n\t            }\n\t        };\n\t    }]);\n\t/* global angular */\n\t/* global window */\n\t'use strict'; // jshint ignore:line\n\n\n\tangular.module('lumx.notification', [])\n\t    .service('LxNotificationService', ['$injector', '$rootScope', '$timeout' , function($injector, $rootScope, $timeout)\n\t    {\n\t        //\n\t        // PRIVATE MEMBERS\n\t        //\n\t        var notificationList = [],\n\t            dialogFilter,\n\t            dialog;\n\n\t        //\n\t        // NOTIFICATION\n\t        //\n\n\t        // private\n\t        function getElementHeight(elem)\n\t        {\n\t            return parseFloat(window.getComputedStyle(elem, null).height);\n\t        }\n\n\t        // private\n\t        function moveNotificationUp()\n\t        {\n\t            var newNotifIndex = notificationList.length - 1;\n\t            notificationList[newNotifIndex].height = getElementHeight(notificationList[newNotifIndex].elem[0]);\n\t            \n\t            var upOffset = 0;\n\t            \n\t            for (var idx = newNotifIndex; idx >= 0; idx--)\n\t            {\n\t                if (notificationList.length > 1 && idx !== newNotifIndex)\n\t                {\n\t                    upOffset = 24 + notificationList[newNotifIndex].height;\n\t                    \n\t                    notificationList[idx].margin += upOffset;\n\t                    notificationList[idx].elem.css('marginBottom', notificationList[idx].margin + 'px');\n\t                }\n\t            }\n\t        }\n\n\t        // private\n\t        function deleteNotification(notification)\n\t        {\n\t            var notifIndex = notificationList.indexOf(notification);\n\t            \n\t            var dnOffset = 24 + notificationList[notifIndex].height;\n\n\t            for (var idx = 0; idx < notifIndex; idx++)\n\t            {\n\t                if (notificationList.length > 1)\n\t                {\n\t                    notificationList[idx].margin -= dnOffset;\n\t                    notificationList[idx].elem.css('marginBottom', notificationList[idx].margin + 'px');\n\t                }\n\t            }\n\n\t            notification.elem.remove();\n\t            notificationList.splice(notifIndex, 1);\n\t        }\n\n\t        function notify(text, icon, sticky, color)\n\t        {\n\t            var notificationTimeout;\n\t            var notification = angular.element('<div/>', {\n\t                class: 'notification'\n\t            });\n\n\t            var notificationText = angular.element('<span/>', {\n\t                class: 'notification__content',\n\t                text: text\n\t            });\n\n\t            if (angular.isDefined(icon))\n\t            {\n\t                var notificationIcon = angular.element('<i/>', {\n\t                    class: 'notification__icon mdi mdi-' + icon\n\t                });\n\n\t                notification\n\t                    .addClass('notification--has-icon')\n\t                    .append(notificationIcon);\n\t            }\n\n\t            if (angular.isDefined(color))\n\t            {\n\t                notification.addClass('notification--' + color);\n\t            }\n\n\t            notification\n\t                .append(notificationText)\n\t                .appendTo('body');\n\n\t            var data = { elem: notification, margin: 0 };\n\t            notificationList.push(data);\n\t            moveNotificationUp();\n\n\t            notification.bind('click', function()\n\t            {\n\t                deleteNotification(data);\n\n\t                if(angular.isDefined(notificationTimeout))\n\t                {\n\t                    $timeout.cancel(notificationTimeout);\n\t                }\n\t            });\n\n\t            if (angular.isUndefined(sticky) || !sticky)\n\t            {\n\t                notificationTimeout = $timeout(function()\n\t                {\n\t                    deleteNotification(data);\n\t                }, 6000);\n\t            }\n\t        }\n\n\t        function success(text, sticky)\n\t        {\n\t            notify(text, 'check', sticky, 'green');\n\t        }\n\n\t        function error(text, sticky)\n\t        {\n\t            notify(text, 'alert-circle', sticky, 'red');\n\t        }\n\n\t        function warning(text, sticky)\n\t        {\n\t            notify(text, 'alert', sticky, 'orange');\n\t        }\n\n\t        function info(text, sticky)\n\t        {\n\t            notify(text, 'information-outline', sticky, 'blue');\n\t        }\n\n\n\t        //\n\t        // ALERT & CONFIRM\n\t        //\n\n\t        // private\n\t        function buildDialogHeader(title)\n\t        {\n\t            // DOM elements\n\t            var dialogHeader = angular.element('<div/>', {\n\t                class: 'dialog__header p++ fs-title',\n\t                text: title\n\t            });\n\n\t            return dialogHeader;\n\t        }\n\n\t        // private\n\t        function buildDialogContent(text)\n\t        {\n\t            // DOM elements\n\t            var dialogContent = angular.element('<div/>', {\n\t                class: 'dialog__content p++ pt0 tc-black-2',\n\t                text: text\n\t            });\n\n\t            return dialogContent;\n\t        }\n\n\t        // private\n\t        function buildDialogActions(buttons, callback)\n\t        {\n\t            var $compile = $injector.get('$compile');\n\n\t            // DOM elements\n\t            var dialogActions = angular.element('<div/>', {\n\t                class: 'dialog__actions'\n\t            });\n\n\t            var dialogLastBtn = angular.element('<button/>', {\n\t                class: 'btn btn--m btn--blue btn--flat',\n\t                text: buttons.ok\n\t            });\n\n\t            // Cancel button\n\t            if (angular.isDefined(buttons.cancel))\n\t            {\n\t                // DOM elements\n\t                var dialogFirstBtn = angular.element('<button/>', {\n\t                    class: 'btn btn--m btn--red btn--flat',\n\t                    text: buttons.cancel\n\t                });\n\n\t                // Compilation\n\t                dialogFirstBtn.attr('lx-ripple', '');\n\t                $compile(dialogFirstBtn)($rootScope);\n\n\t                // DOM link\n\t                dialogActions.append(dialogFirstBtn);\n\n\t                // Event management\n\t                dialogFirstBtn.bind('click', function()\n\t                {\n\t                    callback(false);\n\t                    closeDialog();\n\t                });\n\t            }\n\n\t            // Compilation\n\t            dialogLastBtn.attr('lx-ripple', '');\n\t            $compile(dialogLastBtn)($rootScope);\n\n\t            // DOM link\n\t            dialogActions.append(dialogLastBtn);\n\n\t            // Event management\n\t            dialogLastBtn.bind('click', function()\n\t            {\n\t                callback(true);\n\t                closeDialog();\n\t            });\n\n\t            return dialogActions;\n\t        }\n\n\t        function confirm(title, text, buttons, callback)\n\t        {\n\t            // DOM elements\n\t            dialogFilter = angular.element('<div/>', {\n\t                class: 'dialog-filter'\n\t            });\n\n\t            dialog = angular.element('<div/>', {\n\t                class: 'dialog dialog--alert'\n\t            });\n\n\t            var dialogHeader = buildDialogHeader(title);\n\t            var dialogContent = buildDialogContent(text);\n\t            var dialogActions = buildDialogActions(buttons, callback);\n\n\t            // DOM link\n\t            dialogFilter.appendTo('body');\n\n\t            dialog\n\t                .append(dialogHeader)\n\t                .append(dialogContent)\n\t                .append(dialogActions)\n\t                .appendTo('body')\n\t                .show();\n\n\t            // Starting animaton\n\t            $timeout(function()\n\t            {\n\t                dialogFilter.addClass('dialog-filter--is-shown');\n\t                dialog.addClass('dialog--is-shown');\n\t            }, 100);\n\t        }\n\n\t        function alert(title, text, button, callback)\n\t        {\n\t            // DOM elements\n\t            dialogFilter = angular.element('<div/>', {\n\t                class: 'dialog-filter'\n\t            });\n\n\t            dialog = angular.element('<div/>', {\n\t                class: 'dialog dialog--alert'\n\t            });\n\n\t            var dialogHeader = buildDialogHeader(title);\n\t            var dialogContent = buildDialogContent(text);\n\t            var dialogActions = buildDialogActions({ ok: button }, callback);\n\n\t            // DOM link\n\t            dialogFilter.appendTo('body');\n\n\t            dialog\n\t                .append(dialogHeader)\n\t                .append(dialogContent)\n\t                .append(dialogActions)\n\t                .appendTo('body')\n\t                .show();\n\n\t            // Starting animaton\n\t            $timeout(function()\n\t            {\n\t                dialogFilter.addClass('dialog-filter--is-shown');\n\t                dialog.addClass('dialog--is-shown');\n\t            }, 100);\n\t        }\n\n\t        // private\n\t        function closeDialog()\n\t        {\n\t            // Starting animaton\n\t            dialogFilter.removeClass('dialog-filter--is-shown');\n\t            dialog.removeClass('dialog--is-shown');\n\n\t            // After animaton\n\t            $timeout(function()\n\t            {\n\t                dialogFilter.remove();\n\t                dialog.remove();\n\t            }, 600);\n\t        }\n\n\t        // Public API\n\t        return {\n\t            alert: alert,\n\t            confirm: confirm,\n\t            error: error,\n\t            info: info,\n\t            notify: notify,\n\t            success: success,\n\t            warning: warning\n\t        };\n\t    }]);\n\n\t/* global angular */\n\t/* global document */\n\t'use strict'; // jshint ignore:line\n\n\n\tangular.module('lumx.progress', [])\n\t    .service('LxProgressService', ['$timeout', '$interval', function($timeout, $interval)\n\t    {\n\t        var progressCircularIsShown = false,\n\t            progressCircular,\n\t            progressCircularSvg,\n\t            progressCircularPath,\n\t            progressLinearIsShown = false,\n\t            progressLinear,\n\t            progressLinearBackground,\n\t            progressLinearFirstBar,\n\t            progressLinearSecondBar;\n\n\t        function init()\n\t        {\n\t            // Circular\n\t            progressCircular = document.createElement('div');\n\t            progressCircular.setAttribute('class', 'progress-circular');\n\n\t            progressCircularSvg = document.createElementNS('http://www.w3.org/2000/svg', 'svg');\n\t            progressCircularSvg.setAttribute('class', 'progress-circular__svg');\n\n\t            progressCircularPath = document.createElementNS('http://www.w3.org/2000/svg', 'circle');\n\t            progressCircularPath.setAttribute('class', 'progress-circular__path');\n\t            progressCircularPath.setAttribute('cx', '50');\n\t            progressCircularPath.setAttribute('cy', '50');\n\t            progressCircularPath.setAttribute('r', '20');\n\t            progressCircularPath.setAttribute('fill', 'none');\n\t            progressCircularPath.setAttribute('stroke-miterlimit', '10');\n\n\t            progressCircularSvg.appendChild(progressCircularPath);\n\t            progressCircular.appendChild(progressCircularSvg);\n\n\t            // Linear\n\t            progressLinear = angular.element('<div/>', { 'class': 'progress-linear' });\n\t            progressLinearBackground = angular.element('<div/>', { 'class': 'progress-linear__background' });\n\t            progressLinearFirstBar = angular.element('<div/>', { 'class': 'progress-linear__bar progress-linear__bar--first' });\n\t            progressLinearSecondBar = angular.element('<div/>', { 'class': 'progress-linear__bar progress-linear__bar--second' });\n\n\t            progressLinear\n\t                .append(progressLinearBackground)\n\t                .append(progressLinearFirstBar)\n\t                .append(progressLinearSecondBar);\n\t        }\n\n\t        function showCircular(color, container)\n\t        {\n\t            if (!progressCircularIsShown)\n\t            {\n\t                showCircularProgress(color, container);\n\t            }\n\t        }\n\n\t        function hideCircular()\n\t        {\n\t            if (progressCircularIsShown)\n\t            {\n\t                hideCircularProgress();\n\t            }\n\t        }\n\n\t        function showCircularProgress(color, container)\n\t        {\n\t            progressCircularIsShown = true;\n\n\t            progressCircularPath.setAttribute('stroke', color);\n\n\t            if (angular.isDefined(container))\n\t            {\n\t                document.querySelector(container).appendChild(progressCircular);\n\t            }\n\t            else\n\t            {\n\t                document.getElementsByTagName('body')[0].appendChild(progressCircular);\n\t            }\n\n\t            $timeout(function()\n\t            {\n\t                progressCircular.setAttribute('class', 'progress-circular progress-circular--is-shown');\n\t            });\n\t        }\n\n\t        function hideCircularProgress()\n\t        {\n\t            progressCircular.setAttribute('class', 'progress-circular');\n\n\t            $timeout(function()\n\t            {\n\t                progressCircular.remove();\n\n\t                progressCircularIsShown = false;\n\t            }, 400);\n\t        }\n\n\t        function showLinear(color, container)\n\t        {\n\t            if (!progressLinearIsShown)\n\t            {\n\t                showLinearProgress(color, container);\n\t            }\n\t        }\n\n\t        function hideLinear()\n\t        {\n\t            if (progressLinearIsShown)\n\t            {\n\t                hideLinearProgress();\n\t            }\n\t        }\n\n\t        function showLinearProgress(color, container)\n\t        {\n\t            progressLinearIsShown = true;\n\n\t            progressLinearBackground.css({ backgroundColor: color });\n\t            progressLinearFirstBar.css({ backgroundColor: color });\n\t            progressLinearSecondBar.css({ backgroundColor: color });\n\n\t            if (angular.isDefined(container))\n\t            {\n\t                progressLinear.appendTo(container);\n\t            }\n\t            else\n\t            {\n\t                progressLinear.appendTo('body');\n\t            }\n\n\t            $timeout(function()\n\t            {\n\t                progressLinear.addClass('progress-linear--is-shown');\n\t            });\n\t        }\n\n\t        function hideLinearProgress()\n\t        {\n\t            progressLinear.removeClass('progress-linear--is-shown');\n\n\t            $timeout(function()\n\t            {\n\t                progressLinear.remove();\n\n\t                progressLinearIsShown = false;\n\t            }, 400);\n\t        }\n\n\t        init();\n\n\t        return {\n\t            circular: {\n\t                show: showCircular,\n\t                hide: hideCircular\n\t            },\n\t            linear: {\n\t                show: showLinear,\n\t                hide: hideLinear\n\t            }\n\t        };\n\t    }]);\n\n\t/* global angular */\n\t'use strict'; // jshint ignore:line\n\n\n\tangular.module('lumx.ripple', [])\n\t    .directive('lxRipple', ['$timeout', function($timeout)\n\t    {\n\t        return {\n\t            restrict: 'A',\n\t            link: function(scope, element, attrs)\n\t            {\n\t                var timeout;\n\n\t                element\n\t                    .css({\n\t                        position: 'relative',\n\t                        overflow: 'hidden'\n\t                    })\n\t                    .bind('mousedown', function(e)\n\t                    {\n\t                        var ripple;\n\n\t                        if (element.find('.ripple').length === 0)\n\t                        {\n\t                            ripple = angular.element('<span/>', {\n\t                                class: 'ripple'\n\t                            });\n\n\t                            if (attrs.lxRipple)\n\t                            {\n\t                                ripple.addClass('bgc-' + attrs.lxRipple);\n\t                            }\n\n\t                            element.prepend(ripple);\n\t                        }\n\t                        else\n\t                        {\n\t                            ripple = element.find('.ripple');\n\t                        }\n\n\t                        ripple.removeClass('ripple--is-animated');\n\n\t                        if (!ripple.height() && !ripple.width())\n\t                        {\n\t                            var diameter = Math.max(element.outerWidth(), element.outerHeight());\n\n\t                            ripple.css({ height: diameter, width: diameter });\n\t                        }\n\n\t                        var x = e.pageX - element.offset().left - ripple.width() / 2;\n\t                        var y = e.pageY - element.offset().top - ripple.height() / 2;\n\n\t                        ripple.css({ top: y+'px', left: x+'px' }).addClass('ripple--is-animated');\n\n\t                        timeout = $timeout(function()\n\t                        {\n\t                            ripple.removeClass('ripple--is-animated');\n\t                        }, 651);\n\t                    });\n\n\t                scope.$on('$destroy', function()\n\t                {\n\t                    $timeout.cancel(timeout);\n\t                });\n\t            }\n\t        };\n\t    }]);\n\n\t/* global angular */\n\t'use strict'; // jshint ignore:line\n\n\n\tangular.module('lumx.scrollbar', [])\n\t    .service('LxScrollbarService', ['$window', '$timeout', function($window, $timeout)\n\t    {\n\t        var scopeMap = {};\n\n\t        function update()\n\t        {\n\t            angular.element($window).trigger('resize');\n\t        }\n\n\t        function setScrollPercent(id, newVal)\n\t        {\n\t            if(angular.isDefined(id) && id !== '')\n\t            {\n\t                $timeout(function() {\n\t                    scopeMap[id] = newVal;\n\t                });\n\t            }\n\t        }\n\n\t        function getScrollPercent(id)\n\t        {\n\t            return scopeMap[id];\n\t        }\n\n\t        return {\n\t            update: update,\n\t            setScrollPercent: setScrollPercent,\n\t            getScrollPercent: getScrollPercent\n\t        };\n\n\t    }])\n\t    .controller('LxScrollbarController', ['$scope', '$window', 'LxScrollbarService',\n\t        function($scope, $window, LxScrollbarService)\n\t    {\n\t        var mousePosition,\n\t            scrollbarId,\n\t            scrollbarContainer,\n\t            scrollbarContainerHeight,\n\t            scrollbarContent,\n\t            scrollbarContentHeight,\n\t            scrollbarYAxis,\n\t            scrollbarYAxisHandle,\n\t            scrollbarYAxisHandlePosition,\n\t            scrollBottom;\n\n\t        this.setElementId = function(id)\n\t        {\n\t            scrollbarId = id;\n\t        };\n\n\t        this.init = function(element)\n\t        {\n\t            scrollbarContainer = element;\n\n\t            scrollbarContainer\n\t                .addClass('scrollbar-container')\n\t                .wrapInner('<div class=\"scrollbar-content\"></div>');\n\n\t            scrollbarContent = scrollbarContainer.find('.scrollbar-content');\n\n\t            scrollbarYAxis = angular.element('<div/>', {\n\t                class: 'scrollbar-y-axis'\n\t            });\n\n\t            scrollbarYAxisHandle = angular.element('<div/>', {\n\t                class: 'scrollbar-y-axis__handle'\n\t            });\n\n\t            scrollbarYAxis\n\t                .append(scrollbarYAxisHandle)\n\t                .prependTo(scrollbarContainer);\n\n\t            scrollbarYAxisHandle.bind('mousedown', function()\n\t            {\n\t                var handlePosition,\n\t                    scrollPercent,\n\t                    scrollPosition;\n\n\t                angular.element($window).bind('mousemove', function(event)\n\t                {\n\t                    if ($window.innerWidth >= 1024)\n\t                    {\n\t                        event.preventDefault();\n\n\t                        scrollbarYAxis.addClass('scrollbar-y-axis--is-dragging');\n\n\t                        if (angular.isUndefined(mousePosition))\n\t                        {\n\t                            mousePosition = event.pageY;\n\t                        }\n\n\t                        if (angular.isUndefined(scrollbarYAxisHandlePosition))\n\t                        {\n\t                            scrollbarYAxisHandlePosition = scrollbarYAxisHandle.position().top;\n\t                        }\n\n\t                        handlePosition = (event.pageY - mousePosition) + scrollbarYAxisHandlePosition;\n\t                        scrollPercent = handlePosition / (scrollbarContainerHeight - scrollbarYAxisHandle.outerHeight());\n\t                        scrollPosition = scrollBottom * scrollPercent;\n\n\t                        updateScroll(handlePosition, scrollPosition);\n\t                    }\n\t                });\n\t            });\n\n\t            angular.element($window).bind('mouseup', function()\n\t            {\n\t                if ($window.innerWidth >= 1024)\n\t                {\n\t                    scrollbarYAxis.removeClass('scrollbar-y-axis--is-dragging');\n\n\t                    mousePosition = undefined;\n\t                    scrollbarYAxisHandlePosition = undefined;\n\n\t                    angular.element($window).unbind('mousemove');\n\t                }\n\t            });\n\n\t            scrollbarContainer.bind('mousewheel', function(event)\n\t            {\n\t                if ($window.innerWidth >= 1024)\n\t                {\n\t                    event.preventDefault();\n\n\t                    var scrollPercent = scrollbarContainer.scrollTop() / scrollBottom,\n\t                        scrollPosition = (scrollbarContainerHeight - scrollbarYAxisHandle.outerHeight()) * scrollPercent;\n\n\t                    updateScroll(scrollPosition, scrollbarContainer.scrollTop() + event.originalEvent.wheelDelta * -1);\n\t                }\n\t            });\n\n\t            $scope.$watch(function()\n\t            {\n\t                return scrollbarContainer.outerHeight() || scrollbarContent.outerHeight();\n\t            },\n\t            function(newValue)\n\t            {\n\t                if (angular.isNumber(newValue) && $window.innerWidth >= 1024)\n\t                {\n\t                    initScrollbar();\n\t                }\n\t            });\n\t        };\n\n\t        function initScrollbar()\n\t        {\n\t            scrollbarContainerHeight = scrollbarContainer.outerHeight();\n\t            scrollbarContentHeight = scrollbarContent.outerHeight();\n\t            scrollBottom = scrollbarContentHeight - scrollbarContainerHeight;\n\n\t            if (scrollbarContentHeight <= scrollbarContainerHeight)\n\t            {\n\t                scrollbarYAxis.hide();\n\t            }\n\t            else\n\t            {\n\t                scrollbarYAxis.show();\n\n\t                updatePosition(0, 0);\n\n\t                scrollbarYAxis.css({ height: scrollbarContainerHeight });\n\t                scrollbarYAxisHandle.css({ height: (scrollbarContainerHeight / scrollbarContentHeight) * 100 + '%' });\n\t            }\n\t        }\n\n\t        function updateScroll(handlePosition, scrollPosition)\n\t        {\n\t            if (scrollPosition >= 0 && scrollPosition <= scrollBottom)\n\t            {\n\t                updatePosition(handlePosition, scrollPosition);\n\t            }\n\t            else\n\t            {\n\t                if (scrollPosition < 0)\n\t                {\n\t                    updatePosition(0, 0);\n\t                }\n\t                else\n\t                {\n\t                    updatePosition(scrollbarContainerHeight - scrollbarYAxisHandle.outerHeight(), scrollBottom);\n\t                }\n\t            }\n\t        }\n\n\t        function updatePosition(handlePosition, scrollPosition)\n\t        {\n\t            scrollbarYAxisHandle.css({ top: handlePosition });\n\t            scrollbarYAxis.css({ top: scrollPosition });\n\t            scrollbarContainer.scrollTop(scrollPosition);\n\t            if(angular.isDefined(scrollbarId))\n\t            {\n\t                LxScrollbarService.setScrollPercent(scrollbarId, (scrollPosition / scrollBottom) * 100);\n\t            }\n\t        }\n\n\t        angular.element($window).bind('resize', function()\n\t        {\n\t            if ($window.innerWidth < 1024)\n\t            {\n\t                scrollbarYAxis.hide();\n\t            }\n\t            else\n\t            {\n\t                initScrollbar();\n\t            }\n\t        });\n\t    }])\n\t    .directive('lxScrollbar', function()\n\t    {\n\t        return {\n\t            restrict: 'AE',\n\t            controller: 'LxScrollbarController',\n\t            link: function(scope, element, attrs, ctrl)\n\t            {\n\t                ctrl.init(element);\n\t                attrs.$observe('id', function (id)\n\t                {\n\t                    if (angular.isDefined(id))\n\t                    {\n\t                        ctrl.setElementId(id);\n\t                    }\n\t                });\n\t            }\n\t        };\n\t    });\n\t/* global angular */\n\t'use strict'; // jshint ignore:line\n\n\n\tangular.module('lumx.search-filter', [])\n\t    .directive('lxSearchFilter', ['$timeout', function($timeout)\n\t    {\n\t        return {\n\t            restrict: 'E',\n\t            templateUrl: 'search-filter.html',\n\t            scope: {\n\t                model: '=?',\n\t                theme: '@',\n\t                placeholder: '@'\n\t            },\n\t            link: function(scope, element, attrs)\n\t            {\n\t                var $input = element.find('.search-filter__input'),\n\t                    $label = element.find('.search-filter__label'),\n\t                    $searchFilter = element.find('.search-filter'),\n\t                    $searchFilterContainer = element.find('.search-filter__container');\n\n\t                scope.closed = angular.isDefined(attrs.closed);\n\n\t                if (angular.isUndefined(scope.theme))\n\t                {\n\t                    scope.theme = 'light';\n\t                }\n\n\t                attrs.$observe('filterWidth', function(filterWidth)\n\t                {\n\t                    $searchFilterContainer.css({ width: filterWidth });\n\t                });\n\n\t                // Events\n\t                $input\n\t                    .on('blur', function()\n\t                    {\n\t                        if (angular.isDefined(attrs.closed) && !$input.val())\n\t                        {\n\t                            $searchFilter.velocity({ \n\t                                width: 40\n\t                            }, {\n\t                                duration: 400,\n\t                                easing: 'easeOutQuint',\n\t                                queue: false\n\t                            });\n\t                        }\n\t                    });\n\n\t                $label.on('click', function()\n\t                {\n\t                    if (angular.isDefined(attrs.closed))\n\t                    {\n\t                        $searchFilter.velocity({ \n\t                            width: attrs.filterWidth ? attrs.filterWidth: 240\n\t                        }, {\n\t                            duration: 400,\n\t                            easing: 'easeOutQuint',\n\t                            queue: false\n\t                        });\n\n\t                        $timeout(function()\n\t                        {\n\t                            $input.focus();\n\t                        }, 401);\n\t                    }\n\t                    else\n\t                    {\n\t                        $input.focus();\n\t                    }\n\t                });\n\n\t                scope.clear = function()\n\t                {\n\t                    scope.model = undefined;\n\n\t                    $input.focus();\n\t                };\n\t            }\n\t        };\n\t    }]);\n\n\t/* global angular */\n\t'use strict'; // jshint ignore:line\n\n\n\tangular.module('lumx.select', [])\n\t    .controller('LxSelectController', ['$scope', '$compile', '$filter', '$interpolate', '$sce', '$timeout',\n\t                                       function($scope, $compile, $filter, $interpolate, $sce, $timeout)\n\t    {\n\t        var newModel = false,\n\t            newSelection = true;\n\n\t        $scope.data = {\n\t            filter: '',\n\t            selected: [],\n\t            loading: false\n\t        };\n\n\t        function arrayObjectIndexOf(arr, obj)\n\t        {\n\t            for (var i = 0; i < arr.length; i++)\n\t            {\n\t                if (angular.equals(arr[i], obj))\n\t                {\n\t                    return i;\n\t                }\n\t            }\n\t            return -1;\n\t        }\n\n\n\t        // Link methods\n\t        this.registerTransclude = function(transclude)\n\t        {\n\t            $scope.data.selectedTransclude = transclude;\n\t        };\n\n\t        this.getScope = function()\n\t        {\n\t            return $scope;\n\t        };\n\n\t        // Selection management\n\t        function select(choice)\n\t        {\n\t            newSelection = false;\n\t            if ($scope.multiple)\n\t            {\n\t                if (arrayObjectIndexOf($scope.data.selected, choice) === -1)\n\t                {\n\t                    $scope.data.selected.push(choice);\n\t                }\n\t            }\n\t            else\n\t            {\n\t                $scope.data.selected = [choice];\n\t            }\n\t        }\n\n\t        function unselect(element, event)\n\t        {\n\t            newSelection = false;\n\t            if (!$scope.allowClear && !$scope.multiple)\n\t            {\n\t                return;\n\t            }\n\n\t            if (angular.isDefined(event) && !$scope.multiple)\n\t            {\n\t                event.stopPropagation();\n\t            }\n\n\t            var index = arrayObjectIndexOf($scope.data.selected, element);\n\t            if (index !== -1)\n\t            {\n\t                $scope.data.selected.splice(index, 1);\n\t            }\n\t        }\n\n\t        function toggle(choice, event)\n\t        {\n\t            if (angular.isDefined(event) && $scope.multiple)\n\t            {\n\t                event.stopPropagation();\n\t            }\n\n\t            if ($scope.multiple && isSelected(choice))\n\t            {\n\t                unselect(choice);\n\t            }\n\t            else\n\t            {\n\t                select(choice);\n\t            }\n\t        }\n\n\t        // Getters\n\t        function isSelected(choice)\n\t        {\n\t            return angular.isDefined($scope.data.selected) && arrayObjectIndexOf($scope.data.selected, choice) !== -1;\n\t        }\n\n\t        function hasNoResults()\n\t        {\n\t            return angular.isUndefined($scope.choices()) || $filter('filter')($scope.choices(), $scope.data.filter).length === 0;\n\t        }\n\n\t        function filterNeeded()\n\t        {\n\t            return angular.isDefined($scope.minLength) && angular.isDefined($scope.data.filter) && $scope.data.filter.length < $scope.minLength;\n\t        }\n\n\t        function isHelperVisible()\n\t        {\n\t            return $scope.loading !== 'true' && (filterNeeded() || (hasNoResults() && !filterNeeded()));\n\t        }\n\n\t        function isChoicesVisible()\n\t        {\n\t            return $scope.loading !== 'true' && !hasNoResults() && !filterNeeded();\n\t        }\n\n\t        /**\n\t         * Return the array of selected elements. Always return an array (ie. returns an empty array in case\n\t         * selected list is undefined in the scope).\n\t         */\n\t        function getSelectedElements()\n\t        {\n\t            return angular.isDefined($scope.data.selected) ? $scope.data.selected : [];\n\t        }\n\n\t        function getSelectedTemplate()\n\t        {\n\t            return $sce.trustAsHtml($scope.data.selectedTemplate);\n\t        }\n\n\t        function convertValue(newValue, conversion, callback)\n\t        {\n\t            var convertedData = $scope.multiple ? [] : undefined;\n\t            var loading = [];\n\n\t            if (!newValue || ($scope.multiple && newValue.length === 0))\n\t            {\n\t                callback(convertedData);\n\t                return;\n\t            }\n\n\t            $scope.data.loading = true;\n\t            if ($scope.multiple)\n\t            {\n\t                if (angular.isDefined(conversion))\n\t                {\n\t                    var callbackCalled = false;\n\t                    var convertionCallback = function(idx)\n\t                    {\n\t                        return function(data)\n\t                        {\n\t                            // Timeout to be sure for the callbacks to be executed after the for loop is finished\n\t                            $timeout(function()\n\t                            {\n\t                                // Add the result in the selected list and remove the index from the loading list\n\t                                if (data !== undefined)\n\t                                {\n\t                                    convertedData.splice(idx, 0, data);\n\t                                }\n\t                                loading.splice(loading.indexOf(idx), 1);\n\n\t                                // If the loading list is empty, update the $scope and stop the loading animation\n\t                                if (loading.length === 0 && !callbackCalled)\n\t                                {\n\t                                    callbackCalled = true;\n\t                                    $scope.data.loading = false;\n\t                                    callback(convertedData);\n\t                                }\n\t                            });\n\t                        };\n\t                    };\n\n\t                    for (var idx in newValue)\n\t                    {\n\t                        loading.push(idx);\n\n\t                        // Call the method\n\t                        conversion(newValue[idx], convertionCallback(idx));\n\t                    }\n\t                }\n\t                else\n\t                {\n\t                    callback(newValue);\n\t                }\n\t            }\n\t            else\n\t            {\n\t                if (angular.isDefined(conversion))\n\t                {\n\t                    $scope.data.loading = true;\n\t                    conversion(newValue, function(data)\n\t                    {\n\t                        $scope.data.loading = false;\n\t                        callback(data);\n\t                    });\n\t                }\n\t                else\n\t                {\n\t                    callback(newValue);\n\t                }\n\t            }\n\t        }\n\n\t        // Watchers\n\t        $scope.$watch('ngModel.$modelValue', function(newValue)\n\t        {\n\t            if (newModel)\n\t            {\n\t                newModel = false;\n\t                return;\n\t            }\n\n\t            convertValue(newValue,\n\t                         $scope.modelToSelection,\n\t                         function(newConvertedValue)\n\t            {\n\t                newSelection = true;\n\n\t                var value = newConvertedValue !== undefined ? angular.copy(newConvertedValue) : [];\n\t                if (!$scope.multiple)\n\t                {\n\t                    value = newConvertedValue !== undefined ? [angular.copy(newConvertedValue)] : [];\n\t                }\n\n\t                $scope.data.selected = value;\n\t            });\n\t        });\n\n\t        $scope.$watch('data.selected', function(newValue)\n\t        {\n\t            if (angular.isDefined(newValue) && angular.isDefined($scope.data.selectedTransclude))\n\t            {\n\t                var newScope = $scope.$new();\n\t                $scope.data.selectedTemplate = '';\n\n\t                angular.forEach(newValue, function(selectedElement)\n\t                {\n\t                    newScope.$selected = selectedElement;\n\n\t                    $scope.data.selectedTransclude(newScope, function(clone)\n\t                    {\n\t                        var div = angular.element('<div/>'),\n\t                        element = $compile(clone)(newScope),\n\t                        content = $interpolate(clone.html())(newScope);\n\n\t                        element.html(content);\n\n\t                        div.append(element);\n\n\t                        if ($scope.multiple)\n\t                        {\n\t                            div.find('span').addClass('lx-select__tag');\n\t                        }\n\n\t                        $scope.data.selectedTemplate += div.html();\n\t                    });\n\t                });\n\t            }\n\n\t            if (newSelection)\n\t            {\n\t                newSelection = false;\n\t                return;\n\t            }\n\n\t            var data = newValue;\n\t            if(!$scope.multiple)\n\t            {\n\t                if (newValue)\n\t                {\n\t                    data = newValue[0];\n\t                }\n\t                else\n\t                {\n\t                    data = undefined;\n\t                }\n\t            }\n\n\t            convertValue(data,\n\t                         $scope.selectionToModel,\n\t                         function(newConvertedValue)\n\t            {\n\t                newModel = true;\n\n\t                if ($scope.change)\n\t                {\n\t                    $scope.change({ newValue: angular.copy(newConvertedValue), oldValue: angular.copy($scope.ngModel.$modelValue) });\n\t                }\n\t                $scope.ngModel.$setViewValue(angular.copy(newConvertedValue));\n\t            });\n\t        }, true);\n\n\t        $scope.$watch('data.filter', function(newValue, oldValue)\n\t        {\n\t            if(angular.isUndefined($scope.minLength) || (newValue && $scope.minLength <= newValue.length))\n\t            {\n\t                if ($scope.filter)\n\t                {\n\t                    $scope.filter(newValue, oldValue);\n\t                }\n\t            }\n\t        });\n\n\t        // Public API\n\t        $scope.select = select;\n\t        $scope.unselect = unselect;\n\t        $scope.toggle = toggle;\n\t        $scope.isChoicesVisible = isChoicesVisible;\n\t        $scope.isHelperVisible = isHelperVisible;\n\t        $scope.isSelected = isSelected;\n\t        $scope.filterNeeded = filterNeeded;\n\t        $scope.getSelectedElements = getSelectedElements;\n\t        $scope.getSelectedTemplate = getSelectedTemplate;\n\t        $scope.hasNoResults = hasNoResults;\n\t    }])\n\t    .directive('lxSelect', function()\n\t    {\n\t        return {\n\t            restrict: 'AE',\n\t            controller: 'LxSelectController',\n\t            require: '?ngModel',\n\t            scope: true,\n\t            templateUrl: 'select.html',\n\t            transclude: true,\n\t            replace: true,\n\t            link: function(scope, element, attrs, ngModel)\n\t            {\n\t                scope.multiple = angular.isDefined(attrs.multiple);\n\t                scope.floatingLabel = angular.isDefined(attrs.floatingLabel);\n\t                scope.tree = angular.isDefined(attrs.tree);\n\t                scope.ngModel = ngModel;\n\n\t                // Default values\n\t                scope.placeholder = '';\n\t                scope.loading = '';\n\t                scope.minLength = 0;\n\t                scope.allowClear = '';\n\t                scope.choices = function() { return []; };\n\t                scope.change = undefined;\n\t                scope.filter = undefined;\n\t                scope.selectionToModel = undefined;\n\t                scope.modelToSelection = undefined;\n\n\t                attrs.$observe('placeholder', function(newValue)\n\t                {\n\t                    scope.placeholder = newValue;\n\t                });\n\n\t                attrs.$observe('loading', function(newValue)\n\t                {\n\t                    scope.loading = newValue;\n\t                });\n\n\t                attrs.$observe('minLength', function(newValue)\n\t                {\n\t                    scope.minLength = newValue;\n\t                });\n\n\t                attrs.$observe('allowClear', function(newValue)\n\t                {\n\t                    scope.allowClear = newValue;\n\t                });\n\n\t                attrs.$observe('choices', function(newValue)\n\t                {\n\t                    scope.choices = function()\n\t                    {\n\t                        return scope.$eval(newValue);\n\t                    };\n\t                });\n\n\t                attrs.$observe('change', function(newValue)\n\t                {\n\t                    scope.change = function(newData, oldData)\n\t                    {\n\t                        return scope.$eval(newValue, { newValue: newData, oldValue: oldData });\n\t                    };\n\t                });\n\n\t                attrs.$observe('filter', function(newValue)\n\t                {\n\t                    scope.filter = function(newFilter, oldFilter)\n\t                    {\n\t                        return scope.$eval(newValue, { newValue: newFilter, oldValue: oldFilter });\n\t                    };\n\t                });\n\n\t                var selectionToModel = function(newValue)\n\t                {\n\t                    scope.selectionToModel = function(selection, callback)\n\t                    {\n\t                        return scope.$eval(newValue, { data: selection, callback: callback });\n\t                    };\n\t                };\n\n\t                if (angular.isDefined(attrs.selectionToModel))\n\t                {\n\t                    selectionToModel(attrs.selectionToModel);\n\t                }\n\n\t                attrs.$observe('selectionToModel', selectionToModel);\n\n\t                var modelToSelection = function(newValue)\n\t                {\n\t                    scope.modelToSelection = function(model, callback)\n\t                    {\n\t                        return scope.$eval(newValue, { data: model, callback: callback });\n\t                    };\n\t                };\n\n\t                if (angular.isDefined(attrs.modelToSelection))\n\t                {\n\t                    modelToSelection(attrs.modelToSelection);\n\t                }\n\t                \n\t                attrs.$observe('modelToSelection', modelToSelection);\n\t            }\n\t        };\n\t    })\n\t    .directive('lxSelectSelected', function()\n\t    {\n\t        return {\n\t            restrict: 'E',\n\t            require: '^lxSelect',\n\t            templateUrl: 'select-selected.html',\n\t            transclude: true,\n\t            link: function(scope, element, attrs, ctrl, transclude)\n\t            {\n\t                ctrl.registerTransclude(transclude);\n\t            }\n\t        };\n\t    })\n\t    .directive('lxSelectChoices', function()\n\t    {\n\t        return {\n\t            restrict: 'E',\n\t            require: '^lxSelect',\n\t            templateUrl: 'select-choices.html',\n\t            transclude: true\n\t        };\n\t    });\n\n\t/* global angular */\n\t'use strict'; // jshint ignore:line\n\n\n\tangular.module('lumx.tabs', [])\n\t    .controller('LxTabsController', ['$scope', '$sce', '$timeout', '$window', function($scope, $sce, $timeout, $window)\n\t    {\n\t        var tabs = [],\n\t            links,\n\t            indicator;\n\n\t        $scope.activeTab = angular.isUndefined($scope.activeTab) ? 0 : $scope.activeTab;\n\n\t        this.init = function(element)\n\t        {\n\t            links = element.find('.tabs__links');\n\t            indicator = element.find('.tabs__indicator');\n\t        };\n\n\t        this.getScope = function()\n\t        {\n\t            return $scope;\n\t        };\n\n\t        this.addTab = function(tabScope)\n\t        {\n\t            tabs.push(tabScope);\n\n\t            $timeout(function()\n\t            {\n\t                setIndicatorPosition();\n\t            });\n\n\t            return (tabs.length - 1);\n\t        };\n\n\t        this.removeTab = function(tabScope)\n\t        {\n\t            var idx = tabs.indexOf(tabScope);\n\n\t            if (idx !== -1)\n\t            {\n\t                for (var tabIdx = idx + 1; tabIdx < tabs.length; ++tabIdx)\n\t                {\n\t                    --tabs[tabIdx].index;\n\t                }\n\n\t                tabs.splice(idx, 1);\n\n\t                if (idx === $scope.activeTab)\n\t                {\n\t                    $scope.activeTab = 0;\n\t                    $timeout(function()\n\t                    {\n\t                        setIndicatorPosition(idx);\n\t                    });\n\t                }\n\t                else if(idx < $scope.activeTab)\n\t                {\n\t                    var old = $scope.activeTab;\n\t                    $scope.activeTab = old - 1;\n\n\t                    $timeout(function()\n\t                    {\n\t                        setIndicatorPosition(old);\n\t                    });\n\t                }\n\t                else\n\t                {\n\t                    $timeout(function()\n\t                    {\n\t                        setIndicatorPosition();\n\t                    });\n\t                }\n\t            }\n\t        };\n\n\t        function getTabs()\n\t        {\n\t            return tabs;\n\t        }\n\n\t        function setActiveTab(index)\n\t        {\n\t            $timeout(function()\n\t            {\n\t                $scope.activeTab = index;\n\t            });\n\t        }\n\n\t        function setLinksColor(newTab)\n\t        {\n\t            links.find('.tabs-link').removeClass('tc-' + $scope.indicator);\n\t            links.find('.tabs-link').eq(newTab).addClass('tc-' + $scope.indicator);\n\t        }\n\n\t        function setIndicatorPosition(oldTab)\n\t        {\n\t            var direction;\n\n\t            if ($scope.activeTab > oldTab)\n\t            {\n\t                direction = 'right';\n\t            }\n\t            else\n\t            {\n\t                direction = 'left';\n\t            }\n\n\t            var tabsWidth = links.outerWidth(),\n\t                activeTab = links.find('.tabs-link').eq($scope.activeTab),\n\t                activeTabWidth = activeTab.outerWidth(),\n\t                indicatorLeft = activeTab.position().left,\n\t                indicatorRight = tabsWidth - (indicatorLeft + activeTabWidth);\n\n\t            if (angular.isUndefined(oldTab))\n\t            {\n\t                indicator.css({\n\t                    left: indicatorLeft,\n\t                    right: indicatorRight\n\t                });\n\t            }\n\t            else\n\t            {\n\t                var animationProperties = {\n\t                    duration: 200,\n\t                    easing: 'easeOutQuint'\n\t                };\n\n\t                if (direction === 'left')\n\t                {\n\t                    indicator.velocity({\n\t                        left: indicatorLeft\n\t                    }, animationProperties);\n\n\t                    indicator.velocity({\n\t                        right: indicatorRight\n\t                    }, animationProperties);\n\t                }\n\t                else\n\t                {\n\t                    indicator.velocity({\n\t                        right: indicatorRight\n\t                    }, animationProperties);\n\n\t                    indicator.velocity({\n\t                        left: indicatorLeft\n\t                    }, animationProperties);\n\t                }\n\t            }\n\t        }\n\n\t        $scope.$watch('activeTab', function(newIndex, oldIndex)\n\t        {\n\t            if (newIndex !== oldIndex)\n\t            {\n\t                $timeout(function()\n\t                {\n\t                    setLinksColor(newIndex);\n\t                    setIndicatorPosition(oldIndex);\n\t                });\n\t            }\n\t        });\n\n\t        angular.element($window).bind('resize', function()\n\t        {\n\t            setIndicatorPosition();\n\t        });\n\n\t        // Public API\n\t        $scope.getTabs = getTabs;\n\t        $scope.setActiveTab = setActiveTab;\n\t    }])\n\t    .directive('lxTabs', function()\n\t    {\n\t        return {\n\t            restrict: 'E',\n\t            controller: 'LxTabsController',\n\t            templateUrl: 'tabs.html',\n\t            transclude: true,\n\t            replace: true,\n\t            scope: {\n\t                activeTab: '=?',\n\t                linksTc: '@',\n\t                linksBgc: '@',\n\t                indicator: '@',\n\t                noDivider: '@',\n\t                zDepth: '@',\n\t                layout: '@'\n\t            },\n\t            link: function(scope, element, attrs, ctrl)\n\t            {\n\t                ctrl.init(element);\n\n\t                if (angular.isUndefined(scope.linksTc))\n\t                {\n\t                    scope.linksTc = 'dark';\n\t                }\n\n\t                if (angular.isUndefined(scope.linksBgc))\n\t                {\n\t                    scope.linksBgc = 'white';\n\t                }\n\n\t                if (angular.isUndefined(scope.indicator))\n\t                {\n\t                    scope.indicator = 'blue-500';\n\t                }\n\n\t                if (angular.isUndefined(scope.zDepth))\n\t                {\n\t                    scope.zDepth = '0';\n\t                }\n\n\t                if (angular.isUndefined(scope.layout))\n\t                {\n\t                    scope.layout = 'full';\n\t                }\n\t            }\n\t        };\n\t    })\n\t    .directive('lxTab', function()\n\t    {\n\t        return {\n\t            require: '^lxTabs',\n\t            restrict: 'E',\n\t            scope: {\n\t                heading: '@',\n\t                icon: '@'\n\t            },\n\t            templateUrl: 'tab.html',\n\t            transclude: true,\n\t            replace: true,\n\t            link: function(scope, element, attrs, ctrl)\n\t            {\n\t                scope.data = ctrl.getScope();\n\t                scope.index = ctrl.addTab(scope);\n\n\t                scope.$on('$destroy', function(scope)\n\t                {\n\t                    ctrl.removeTab(scope.currentScope);\n\t                });\n\t            }\n\t        };\n\t    })\n\t    .directive('lxTabLink', function()\n\t    {\n\t        return {\n\t            require: '^lxTabs',\n\t            restrict: 'A',\n\t            link: function(scope, element)\n\t            {\n\t                if (scope.activeTab === element.parent().index())\n\t                {\n\t                    element.addClass('tc-' + scope.indicator);\n\t                }\n\n\t                element\n\t                    .on('mouseenter', function()\n\t                    {\n\t                        if (scope.activeTab !== element.parent().index())\n\t                        {\n\t                            element.addClass('tc-' + scope.indicator);\n\t                        }\n\t                    })\n\t                    .on('mouseleave', function()\n\t                    {\n\t                        if (scope.activeTab !== element.parent().index())\n\t                        {\n\t                            element.removeClass('tc-' + scope.indicator);\n\t                        }\n\t                    });\n\t            }\n\t        };\n\t    });\n\n\t/* global angular */\n\t'use strict'; // jshint ignore:line\n\n\n\tangular.module('lumx.text-field', [])\n\t    .directive('lxTextField', ['$timeout', function($timeout)\n\t    {\n\t        return {\n\t            restrict: 'E',\n\t            scope: {\n\t                label: '@',\n\t                disabled: '&',\n\t                error: '&',\n\t                valid: '&',\n\t                fixedLabel: '&',\n\t                icon: '@',\n\t                theme: '@'\n\t            },\n\t            templateUrl: 'text-field.html',\n\t            replace: true,\n\t            transclude: true,\n\t            link: function(scope, element, attrs, ctrl, transclude)\n\t            {\n\t                if (angular.isUndefined(scope.theme))\n\t                {\n\t                    scope.theme = 'light';\n\t                }\n\n\t                var modelController,\n\t                    $field;\n\n\t                scope.data = {\n\t                    focused: false,\n\t                    model: undefined\n\t                };\n\n\t                function focusUpdate()\n\t                {\n\t                    scope.data.focused = true;\n\t                    scope.$apply();\n\t                }\n\n\t                function blurUpdate()\n\t                {\n\t                    scope.data.focused = false;\n\t                    scope.$apply();\n\t                }\n\n\t                function modelUpdate()\n\t                {\n\t                    scope.data.model = modelController.$modelValue || $field.val();\n\t                }\n\n\t                function valueUpdate()\n\t                {\n\t                    modelUpdate();\n\t                    scope.$apply();\n\t                }\n\n\t                function updateTextareaHeight()\n\t                {\n\t                    $timeout(function()\n\t                    {\n\t                        $field\n\t                            .removeAttr('style')\n\t                            .css({ height: $field[0].scrollHeight + 'px' });\n\t                    });\n\t                }\n\n\t                transclude(function()\n\t                {\n\t                    $field = element.find('textarea');\n\n\t                    if ($field[0])\n\t                    {\n\t                        updateTextareaHeight();\n\n\t                        $field.on('cut paste drop keydown', function()\n\t                        {\n\t                            updateTextareaHeight();\n\t                        });\n\t                    }\n\t                    else\n\t                    {\n\t                        $field = element.find('input');\n\t                    }\n\n\t                    $field.addClass('text-field__input');\n\t                    $field.on('focus', focusUpdate);\n\t                    $field.on('blur', blurUpdate);\n\t                    $field.on('propertychange change click keyup input paste', valueUpdate);\n\n\t                    modelController = $field.data('$ngModelController');\n\n\t                    scope.$watch(function()\n\t                    {\n\t                        return modelController.$modelValue;\n\t                    }, modelUpdate);\n\t                });\n\t            }\n\t        };\n\t    }]);\n\n\t/* global angular */\n\t/* global Image */\n\t'use strict'; // jshint ignore:line\n\n\n\tangular.module('lumx.thumbnail', [])\n\t    .controller('LxThumbnailController', ['$scope', function($scope)\n\t        {\n\t            this.init = function(element)\n\t            {\n\t                $scope.element = element;\n\t            };\n\n\t            this.prepareImage = function()\n\t            {\n\t                $scope.isLoading = true;\n\n\t                var img = new Image();\n\n\t                img.src = $scope.thumbnailSrc;\n\n\t                $scope.element.css({\n\t                    width: $scope.thumbnailWidth + 'px',\n\t                    height: $scope.thumbnailHeight + 'px'\n\t                });\n\n\t                img.onload = function()\n\t                {\n\t                    $scope.originalWidth = img.width;\n\t                    $scope.originalHeight = img.height;\n\n\t                    addImage();\n\n\t                    $scope.isLoading = false;\n\t                };\n\t            };\n\n\t            function addImage()\n\t            {\n\t                var imageSizeWidthRatio = $scope.thumbnailWidth / $scope.originalWidth,\n\t                    imageSizeWidth = $scope.thumbnailWidth,\n\t                    imageSizeHeight = $scope.originalHeight * imageSizeWidthRatio;\n\n\t                if (imageSizeHeight < $scope.thumbnailHeight)\n\t                {\n\t                    var resizeFactor = $scope.thumbnailHeight / imageSizeHeight;\n\n\t                    imageSizeHeight = $scope.thumbnailHeight;\n\t                    imageSizeWidth = resizeFactor * imageSizeWidth;\n\t                }\n\n\t                $scope.element.css({\n\t                    'background': 'url(' + $scope.thumbnailSrc + ') no-repeat',\n\t                    'background-position': 'center',\n\t                    'background-size': imageSizeWidth + 'px ' + imageSizeHeight + 'px',\n\t                    'overflow': 'hidden'\n\t                });\n\t            }\n\t        }])\n\t    .directive('lxThumbnail', function()\n\t    {\n\t        return {\n\t            restrict: 'E',\n\t            template: '<div class=\"thumbnail\" ng-class=\"{ \\'thumbnail--is-loading\\': isLoading }\"></div>',\n\t            replace: true,\n\t            controller: 'LxThumbnailController',\n\t            scope: {\n\t                thumbnailSrc: '@',\n\t                thumbnailWidth: '@',\n\t                thumbnailHeight: '@'\n\t            },\n\t            link: function(scope, element, attrs, ctrl)\n\t            {\n\t                ctrl.init(element);\n\n\t                attrs.$observe('thumbnailSrc', function()\n\t                {\n\t                    if (attrs.thumbnailSrc)\n\t                    {\n\t                        ctrl.prepareImage();\n\t                    }\n\t                });\n\n\t                attrs.$observe('thumbnailWidth', function()\n\t                {\n\t                    if (attrs.thumbnailWidth)\n\t                    {\n\t                        ctrl.prepareImage();\n\t                    }\n\t                });\n\n\t                attrs.$observe('thumbnailHeight', function()\n\t                {\n\t                    if (attrs.thumbnailHeight)\n\t                    {\n\t                        ctrl.prepareImage();\n\t                    }\n\t                });\n\t            }\n\t        };\n\t    });\n\t/* global angular */\n\t'use strict'; // jshint ignore:line\n\n\n\tangular.module('lumx.tooltip', [])\n\t    .controller('LxTooltipController', ['$scope', '$timeout', function($scope, $timeout)\n\t    {\n\t        var self = this,\n\t            tooltip,\n\t            tooltipContent,\n\t            tooltipPosition,\n\t            tooltipColor,\n\t            tooltipLabel,\n\t            tooltipBackground,\n\t            tooltipTrigger;\n\n\t        this.init = function(element, attrs)\n\t        {\n\t            tooltipTrigger = element;\n\n\t            tooltipContent = attrs.lxTooltip;\n\t            tooltipPosition = angular.isDefined(attrs.tooltipPosition) ? attrs.tooltipPosition : 'top';\n\t            tooltipColor = angular.isDefined(attrs.tooltipColor) ? attrs.tooltipColor : 'black';\n\n\t            tooltip = angular.element('<div/>',\n\t            {\n\t                class: 'tooltip tooltip--' + tooltipPosition + ' tooltip--' + tooltipColor\n\t            });\n\n\t            tooltipBackground = angular.element('<div/>',\n\t            {\n\t                class: 'tooltip__background'\n\t            });\n\n\t            tooltipLabel = angular.element('<span/>',\n\t            {\n\t                class: 'tooltip__label',\n\t                text: tooltipContent\n\t            });\n\n\t            tooltipTrigger\n\t                .bind('mouseenter', function()\n\t                {\n\t                    self.showTooltip();\n\t                });\n\n\t            tooltipTrigger\n\t                .bind('mouseleave', function()\n\t                {\n\t                    self.hideTooltip();\n\t                });\n\t        };\n\n\t        this.showTooltip = function()\n\t        {\n\t            var width = tooltipTrigger.outerWidth(),\n\t                height = tooltipTrigger.outerHeight(),\n\t                top = tooltipTrigger.offset().top,\n\t                left = tooltipTrigger.offset().left;\n\n\t            tooltip\n\t                .append(tooltipBackground)\n\t                .append(tooltipLabel)\n\t                .appendTo('body');\n\n\t            if (tooltipPosition === 'top')\n\t            {\n\t                tooltip.css(\n\t                {\n\t                    left: left - (tooltip.outerWidth() / 2) + (width / 2),\n\t                    top: top - tooltip.outerHeight()\n\t                });\n\t            }\n\t            else if (tooltipPosition === 'bottom')\n\t            {\n\t                tooltip.css(\n\t                {\n\t                    left: left - (tooltip.outerWidth() / 2) + (width / 2),\n\t                    top: top + height\n\t                });\n\t            }\n\t            else if (tooltipPosition === 'left')\n\t            {\n\t                tooltip.css(\n\t                {\n\t                    left: left - tooltip.outerWidth(),\n\t                    top: top + (height / 2) - (tooltip.outerHeight() / 2)\n\t                });\n\t            }\n\t            else if (tooltipPosition === 'right')\n\t            {\n\t                tooltip.css(\n\t                {\n\t                    left: left + width,\n\t                    top: top + (height / 2) - (tooltip.outerHeight() / 2)\n\t                });\n\t            }\n\n\t            tooltip.addClass('tooltip--is-active');\n\t        };\n\n\t        this.hideTooltip = function()\n\t        {\n\t            tooltip.removeClass('tooltip--is-active');\n\n\t            $timeout(function()\n\t            {\n\t                tooltip.remove();\n\t            }, 200);\n\t        };\n\n\t        $scope.$on('$destroy', function(scope)\n\t        {\n\t            tooltip.remove();\n\t        });\n\t    }])\n\t    .directive('lxTooltip', function()\n\t    {\n\t        return {\n\t            restrict: 'A',\n\t            controller: 'LxTooltipController',\n\t            link: function(scope, element, attrs, ctrl)\n\t            {\n\t                attrs.$observe('lxTooltip', function()\n\t                {\n\t                    if (attrs.lxTooltip)\n\t                    {\n\t                        ctrl.init(element, attrs);\n\t                    }\n\t                });\n\t            }\n\t        };\n\t    });\n\n\tangular.module(\"lumx.dropdown\").run(['$templateCache', function(a) { a.put('dropdown.html', '<div class=\"dropdown\" ng-transclude=\"parent\"></div>\\n' +\n\t    '');\n\t\ta.put('dropdown-toggle.html', '<div ng-transclude=\"1\"></div>\\n' +\n\t    '');\n\t\ta.put('dropdown-menu.html', '<div class=\"dropdown-menu dropdown-menu--{{ position }}\" ng-class=\"{ \\'dropdown__menu--is-dropped\\': isDropped }\">\\n' +\n\t    '    <div class=\"dropdown-menu__content\" ng-transclude=\"2\" ng-if=\"isDropped\"></div>\\n' +\n\t    '</div>\\n' +\n\t    '');\n\t\t }]);\n\tangular.module(\"lumx.file-input\").run(['$templateCache', function(a) { a.put('file-input.html', '<div class=\"input-file\">\\n' +\n\t    '    <span class=\"input-file__label\">{{ label }}</span>\\n' +\n\t    '    <span class=\"input-file__filename\"></span>\\n' +\n\t    '    <input type=\"file\">\\n' +\n\t    '</div>');\n\t\t }]);\n\tangular.module(\"lumx.text-field\").run(['$templateCache', function(a) { a.put('text-field.html', '<div class=\"text-field text-field--{{ theme }}-theme\"\\n' +\n\t    '     ng-class=\"{ \\'text-field--is-valid\\': valid(),\\n' +\n\t    '                 \\'text-field--has-error\\': error(),\\n' +\n\t    '                 \\'text-field--is-disabled\\': disabled(),\\n' +\n\t    '                 \\'text-field--fixed-label\\': fixedLabel(),\\n' +\n\t    '                 \\'text-field--is-active\\': data.model || data.focused,\\n' +\n\t    '                 \\'text-field--is-focused\\': data.focused,\\n' +\n\t    '                 \\'text-field--label-hidden\\': fixedLabel() && data.model,\\n' +\n\t    '                 \\'text-field--with-icon\\': icon && fixedLabel() }\">\\n' +\n\t    '    <label class=\"text-field__label\">\\n' +\n\t    '        {{ label }}\\n' +\n\t    '    </label>\\n' +\n\t    '\\n' +\n\t    '    <div class=\"text-field__icon\" ng-if=\"icon && fixedLabel() \">\\n' +\n\t    '        <i class=\"mdi mdi-{{ icon }}\"></i>\\n' +\n\t    '    </div>\\n' +\n\t    '\\n' +\n\t    '    <div ng-transclude=\"1\"></div>\\n' +\n\t    '</div>\\n' +\n\t    '');\n\t\t }]);\n\tangular.module(\"lumx.search-filter\").run(['$templateCache', function(a) { a.put('search-filter.html', '<div class=\"search-filter search-filter--{{ theme }}-theme\"\\n' +\n\t    '     ng-class=\"{ \\'search-filter--is-focused\\': model,\\n' +\n\t    '                 \\'search-filter--is-closed\\': closed }\">\\n' +\n\t    '    <div class=\"search-filter__container\">\\n' +\n\t    '        <label class=\"search-filter__label\"><i class=\"mdi mdi-magnify\"></i></label>\\n' +\n\t    '        <input type=\"text\" class=\"search-filter__input\" placeholder=\"{{ placeholder }}\" ng-model=\"model\">\\n' +\n\t    '        <span class=\"search-filter__cancel\" ng-click=\"clear()\"><i class=\"mdi mdi-close-circle\"></i></span>\\n' +\n\t    '    </div>\\n' +\n\t    '</div>');\n\t\t }]);\n\tangular.module(\"lumx.select\").run(['$templateCache', function(a) { a.put('select.html', '<div class=\"lx-select\"\\n' +\n\t    '     ng-class=\"{ \\'lx-select--is-unique\\': !multiple,\\n' +\n\t    '                 \\'lx-select--is-multiple\\': multiple }\">\\n' +\n\t    '    <lx-dropdown width=\"32\" from-top>\\n' +\n\t    '        <div ng-transclude=\"parent\"></div>\\n' +\n\t    '    </lx-dropdown>\\n' +\n\t    '</div>\\n' +\n\t    '');\n\t\ta.put('select-selected.html', '<div lx-dropdown-toggle>\\n' +\n\t    '    <span class=\"lx-select__floating-label\" ng-if=\"getSelectedElements().length !== 0 && floatingLabel\">{{ placeholder }}</span>\\n' +\n\t    '\\n' +\n\t    '    <div class=\"lx-select__selected\"\\n' +\n\t    '         ng-class=\"{ \\'lx-select__selected--is-unique\\': !multiple,\\n' +\n\t    '                     \\'lx-select__selected--is-multiple\\': multiple && getSelectedElements().length > 0,\\n' +\n\t    '                     \\'lx-select__selected--placeholder\\': getSelectedElements().length === 0 }\"\\n' +\n\t    '         lx-ripple>\\n' +\n\t    '        <span ng-if=\"getSelectedElements().length === 0\">{{ placeholder }}</span>\\n' +\n\t    '\\n' +\n\t    '        <!-- ng-repeat is used to manage the initialization of the $select even for non-multiple selects -->\\n' +\n\t    '        <div ng-repeat=\"$selected in getSelectedElements()\" ng-if=\"!multiple\">\\n' +\n\t    '            <i class=\"lx-select__close mdi mdi-close-circle\" ng-click=\"unselect($selected, $event)\" ng-if=\"allowClear\"></i>\\n' +\n\t    '            <span ng-transclude=\"child\"></span>\\n' +\n\t    '        </div>\\n' +\n\t    '\\n' +\n\t    '        <div ng-if=\"multiple\">\\n' +\n\t    '            <div class=\"lx-select__tag\" ng-repeat=\"$selected in getSelectedElements()\">\\n' +\n\t    '                <span ng-transclude=\"child\"></span>\\n' +\n\t    '            </div>\\n' +\n\t    '        </div>\\n' +\n\t    '    </div>\\n' +\n\t    '</div>');\n\t\ta.put('select-choices.html', '<lx-dropdown-menu class=\"lx-select__choices\">\\n' +\n\t    '    <ul ng-if=\"!tree\">\\n' +\n\t    '        <li ng-if=\"getSelectedElements().length > 0\">\\n' +\n\t    '            <div class=\"lx-select__chosen\"\\n' +\n\t    '                 ng-class=\"{ \\'lx-select__chosen--is-multiple\\': multiple }\"\\n' +\n\t    '                 ng-bind-html=\"getSelectedTemplate()\"></div>\\n' +\n\t    '        </li>\\n' +\n\t    '\\n' +\n\t    '        <li>\\n' +\n\t    '            <div class=\"lx-select__filter dropdown-filter\">\\n' +\n\t    '                <lx-search-filter model=\"data.filter\" filter-width=\"100%\" lx-dropdown-filter></lx-search-filter>\\n' +\n\t    '            </div>\\n' +\n\t    '        </li>\\n' +\n\t    '\\n' +\n\t    '        <li class=\"lx-select__help\" ng-if=\"isHelperVisible()\">\\n' +\n\t    '            <span ng-if=\"filterNeeded()\">Type minimum {{ minLength }} to search</span>\\n' +\n\t    '            <span ng-if=\"hasNoResults() && !filterNeeded()\">No results!</span>\\n' +\n\t    '        </li>\\n' +\n\t    '\\n' +\n\t    '        <li ng-repeat=\"$choice in choices() | filter:data.filter\" ng-if=\"isChoicesVisible()\">\\n' +\n\t    '            <a class=\"lx-select__choice dropdown-link\"\\n' +\n\t    '               ng-class=\"{ \\'lx-select__choice--is-multiple\\': multiple,\\n' +\n\t    '                           \\'lx-select__choice--is-selected\\': isSelected($choice) }\"\\n' +\n\t    '               ng-click=\"toggle($choice, $event)\"\\n' +\n\t    '               ng-transclude=\"child\"></a>\\n' +\n\t    '        </li>\\n' +\n\t    '\\n' +\n\t    '        <li class=\"lx-select__loader\" ng-if=\"loading === \\'true\\'\">\\n' +\n\t    '            <i class=\"mdi mdi-reload\"></i>\\n' +\n\t    '        </li>\\n' +\n\t    '    </ul>\\n' +\n\t    '</lx-dropdown-menu>');\n\t\t }]);\n\tangular.module(\"lumx.tabs\").run(['$templateCache', function(a) { a.put('tabs.html', '<div class=\"tabs tabs--theme-{{ linksTc }} tabs--layout-{{ layout }}\"\\n' +\n\t    '     ng-class=\"{ \\'tabs--no-divider\\': noDivider }\">\\n' +\n\t    '    <ul class=\"tabs__links bgc-{{ linksBgc }} z-depth{{ zDepth }}\">\\n' +\n\t    '        <li ng-repeat=\"tab in getTabs()\">\\n' +\n\t    '            <a lx-tab-link\\n' +\n\t    '               class=\"tabs-link\"\\n' +\n\t    '               ng-class=\"{ \\'tabs-link--is-active\\': $index === activeTab }\"\\n' +\n\t    '               ng-click=\"setActiveTab($index)\"\\n' +\n\t    '               lx-ripple=\"{{ indicator }}\">\\n' +\n\t    '               <span ng-if=\"tab.icon !== undefined\"><i class=\"mdi mdi-{{ tab.icon }}\"></i></span>\\n' +\n\t    '               <span ng-if=\"tab.icon === undefined\">{{ tab.heading }}</i></span>\\n' +\n\t    '            </a>\\n' +\n\t    '        </li>\\n' +\n\t    '    </ul>\\n' +\n\t    '\\n' +\n\t    '    <div class=\"tabs__panes\" ng-transclude=\"1\"></div>\\n' +\n\t    '\\n' +\n\t    '    <div class=\"tabs__indicator bgc-{{ indicator }}\"></div>\\n' +\n\t    '</div>\\n' +\n\t    '');\n\t\ta.put('tab.html', '<div class=\"tabs-pane\" ng-if=\"index === data.activeTab\" ng-transclude=\"2\"></div>\\n' +\n\t    '');\n\t\t }]);\n\tangular.module(\"lumx.date-picker\").run(['$templateCache', function(a) { a.put('date-picker.html', '<div class=\"lx-date\">\\n' +\n\t    '    <!-- Date picker input -->\\n' +\n\t    '    <lx-text-field class=\"lx-date-input\" label=\"{{ label }}\" ng-click=\"openPicker()\">\\n' +\n\t    '        <input type=\"text\" ng-model=\"selected.model\" ng-disabled=\"true\">\\n' +\n\t    '    </lx-text-field>\\n' +\n\t    '\\n' +\n\t    '    <!-- Date picker -->\\n' +\n\t    '    <div class=\"lx-date-picker\">\\n' +\n\t    '        <!-- Current day of week -->\\n' +\n\t    '        <div class=\"lx-date-picker__current-day-of-week\">\\n' +\n\t    '            <span>{{ moment(selected.date).format(\\'dddd\\') }}</span>\\n' +\n\t    '        </div>\\n' +\n\t    '\\n' +\n\t    '        <!-- Current date -->\\n' +\n\t    '        <div class=\"lx-date-picker__current-date\">\\n' +\n\t    '            <span ng-class=\"{ \\'tc-white-1\\': !yearSelection, \\'tc-white-3\\': yearSelection }\">{{ moment(selected.date).format(\\'MMM\\') }}</span>\\n' +\n\t    '            <strong ng-class=\"{ \\'tc-white-1\\': !yearSelection, \\'tc-white-3\\': yearSelection }\">{{ moment(selected.date).format(\\'DD\\') }}</strong>\\n' +\n\t    '            <a ng-class=\"{ \\'tc-white-3\\': !yearSelection, \\'tc-white-1\\': yearSelection }\" ng-click=\"displayYearSelection()\">{{ moment(selected.date).format(\\'YYYY\\') }}</a>\\n' +\n\t    '        </div>\\n' +\n\t    '\\n' +\n\t    '        <!-- Calendar -->\\n' +\n\t    '        <div class=\"lx-date-picker__calendar\" ng-if=\"!yearSelection\">\\n' +\n\t    '            <div class=\"lx-date-picker__nav\">\\n' +\n\t    '                <button class=\"btn btn--xs btn--teal btn--icon\" lx-ripple ng-click=\"previousMonth()\">\\n' +\n\t    '                    <i class=\"mdi mdi-chevron-left\"></i>\\n' +\n\t    '                </button>\\n' +\n\t    '\\n' +\n\t    '                <span>{{ activeDate.format(\\'MMMM YYYY\\') }}</span>\\n' +\n\t    '\\n' +\n\t    '                <button class=\"btn btn--xs btn--teal btn--icon\" lx-ripple ng-click=\"nextMonth()\">\\n' +\n\t    '                    <i class=\"mdi mdi-chevron-right\"></i>\\n' +\n\t    '                </button>\\n' +\n\t    '            </div>\\n' +\n\t    '\\n' +\n\t    '            <div class=\"lx-date-picker__days-of-week\">\\n' +\n\t    '                <span ng-repeat=\"day in daysOfWeek\">{{ day }}</span>\\n' +\n\t    '            </div>\\n' +\n\t    '\\n' +\n\t    '            <div class=\"lx-date-picker__days\">\\n' +\n\t    '                <span class=\"lx-date-picker__day lx-date-picker__day--is-empty\"\\n' +\n\t    '                      ng-repeat=\"x in emptyFirstDays\">&nbsp;</span><!--\\n' +\n\t    '\\n' +\n\t    '             --><div class=\"lx-date-picker__day\"\\n' +\n\t    '                     ng-class=\"{ \\'lx-date-picker__day--is-selected\\': day.selected,\\n' +\n\t    '                                 \\'lx-date-picker__day--is-today\\': day.today }\"\\n' +\n\t    '                     ng-repeat=\"day in days\">\\n' +\n\t    '                    <a ng-click=\"select(day)\">{{ day ? day.format(\\'D\\') : \\'\\' }}</a>\\n' +\n\t    '                </div><!--\\n' +\n\t    '\\n' +\n\t    '             --><span class=\"lx-date-picker__day lx-date-picker__day--is-empty\"\\n' +\n\t    '                      ng-repeat=\"x in emptyLastDays\">&nbsp;</span>\\n' +\n\t    '            </div>\\n' +\n\t    '        </div>\\n' +\n\t    '\\n' +\n\t    '        <!-- Year selection -->\\n' +\n\t    '        <div class=\"lx-date-picker__year-selector\" ng-show=\"yearSelection\">\\n' +\n\t    '            <a class=\"lx-date-picker__year\"\\n' +\n\t    '                 ng-class=\"{ \\'lx-date-picker__year--is-active\\': year == activeDate.format(\\'YYYY\\') }\"\\n' +\n\t    '                 ng-repeat=\"year in years\"\\n' +\n\t    '                 ng-click=\"selectYear(year)\"\\n' +\n\t    '                 ng-if=\"yearSelection\">\\n' +\n\t    '                <span>{{ year }}</span>\\n' +\n\t    '            </a>\\n' +\n\t    '        </div>\\n' +\n\t    '\\n' +\n\t    '        <!-- Actions -->\\n' +\n\t    '        <div class=\"lx-date-picker__actions\">\\n' +\n\t    '            <button class=\"btn btn--m btn--teal btn--flat\" lx-ripple ng-click=\"closePicker()\">Ok</button>\\n' +\n\t    '        </div>\\n' +\n\t    '    </div>\\n' +\n\t    '</div>');\n\t\t }]);\n\n/***/ },\n/* 123 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\n\tmodule.exports = angular.module('app', ['lumx',\n\t/* modules */\n\t__webpack_require__(124).name]);\n\n/***/ },\n/* 124 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\n\tObject.defineProperty(exports, \"__esModule\", {\n\t  value: true\n\t});\n\texports.default = angular.module('app.layout', []).directive('lumxNavbar', __webpack_require__(125));\n\n/***/ },\n/* 125 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\n\tObject.defineProperty(exports, \"__esModule\", {\n\t  value: true\n\t});\n\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n\tvar NavCtrl = function NavCtrl() {\n\t  _classCallCheck(this, NavCtrl);\n\n\t  this.app = __webpack_require__(126);\n\t};\n\n\texports.default = function () {\n\t  __webpack_require__(127);\n\t  return {\n\t    controller: NavCtrl,\n\t    controllerAs: 'nav',\n\t    template: __webpack_require__(129)\n\t  };\n\t};\n\n/***/ },\n/* 126 */\n/***/ function(module, exports) {\n\n\tmodule.exports = {\n\t\t\"title\": \"Module Loaders\",\n\t\t\"version\": \"0.3.0\",\n\t\t\"links\": [\n\t\t\t{\n\t\t\t\t\"text\": \"Webpack\",\n\t\t\t\t\"link\": \"http://webpack.github.io\"\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"text\": \"Require.js\",\n\t\t\t\t\"link\": \"http://requirejs.org/\"\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"text\": \"Jspm\",\n\t\t\t\t\"link\": \"http://jspm.io/\"\n\t\t\t}\n\t\t]\n\t};\n\n/***/ },\n/* 127 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// style-loader: Adds some css to the DOM by adding a <style> tag\n\n\t// load the styles\n\tvar content = __webpack_require__(128);\n\tif(typeof content === 'string') content = [[module.id, content, '']];\n\t// add the styles to the DOM\n\tvar update = __webpack_require__(8)(content, {});\n\tif(content.locals) module.exports = content.locals;\n\t// Hot Module Replacement\n\tif(true) {\n\t\t// When the styles change, update the <style> tags\n\t\tif(!content.locals) {\n\t\t\tmodule.hot.accept(128, function() {\n\t\t\t\tvar newContent = __webpack_require__(128);\n\t\t\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\t\t\t\tupdate(newContent);\n\t\t\t});\n\t\t}\n\t\t// When the module is disposed, remove the <style> tags\n\t\tmodule.hot.dispose(function() { update(); });\n\t}\n\n/***/ },\n/* 128 */\n/***/ function(module, exports, __webpack_require__) {\n\n\texports = module.exports = __webpack_require__(7)();\n\t// imports\n\n\n\t// module\n\texports.push([module.id, \".header {\\n  position: fixed;\\n  top: 0;\\n  right: 0;\\n  left: 0;\\n  z-index: 999;\\n  height: 60px;\\n  padding: 12px;\\n  background-color: #4fc1e9;\\n  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); }\\n\\n.main-nav--title {\\n  margin: 0 0 10px 10px; }\\n\\n.main-nav--icon {\\n  position: absolute;\\n  margin: 5px; }\\n\\n.main-logo__link {\\n  text-decoration: none;\\n  color: white; }\\n\\n.menu-icon {\\n  fill: white; }\\n\\n.main-nav--version {\\n  font-size: 0.5em;\\n  color: #F4F4F4; }\\n\\n.main-nav__link {\\n  display: block;\\n  padding: 0 12px;\\n  border-radius: 2px;\\n  font-size: 18px;\\n  font-size: 1.125rem;\\n  font-weight: 600;\\n  color: white;\\n  line-height: 36px;\\n  text-decoration: none; }\\n\\n@media screen and (min-width: 1201px) {\\n  .menubar {\\n    display: none; } }\\n\\n@media screen and (max-width: 1200px) {\\n  .menubar {\\n    float: left; } }\\n\\n.home .menubar {\\n  display: none; }\\n\\n.main-logo {\\n  float: left; }\\n\\n.main-logo__link {\\n  display: block;\\n  padding: 4px 6px;\\n  border-radius: 2px;\\n  font-size: 24px;\\n  font-size: 1.5rem; }\\n\\n.main-logo__link img {\\n  display: block;\\n  height: 28px; }\\n\\n.main-nav {\\n  float: right; }\\n\\n.main-nav ul li {\\n  float: left; }\\n\\n@media screen and (max-width: 630px) {\\n  .main-nav--title {\\n    font-size: 0.85em; }\\n  .main-nav--version {\\n    display: none; }\\n  .main-nav--lap-and-up {\\n    display: none; } }\\n\\n@media screen and (min-width: 631px) {\\n  .main-nav--palm {\\n    display: none; } }\\n\\n@media screen and (min-width: 481px) and (max-width: 1023px) {\\n  .main-nav__link {\\n    font-size: 14px;\\n    font-size: 0.875rem; } }\\n\", \"\"]);\n\n\t// exports\n\n\n/***/ },\n/* 129 */\n/***/ function(module, exports) {\n\n\tmodule.exports = \"<header class=\\\"header bgc-light-blue-600\\\" ng-cloak>\\n  <h1 class=\\\"main-logo\\\">\\n    <a href=\\\"/\\\" class=\\\"main-logo__link\\\" lx-ripple=\\\"white\\\">\\n      <span class=\\\"main-nav--title\\\">{{::nav.app.title}} </span>\\n      <span class=\\\"main-nav--version\\\">v{{::nav.app.version}}</span>\\n    </a>\\n  </h1>\\n\\n  <nav class=\\\"main-nav main-nav--lap-and-up\\\">\\n    <ul>\\n      <li ng-repeat=\\\"n in nav.app.links\\\">\\n        <a href=\\\"{{::n.link}}\\\" class=\\\"main-nav__link\\\" lx-ripple=\\\"white\\\">\\n          {{::n.text}}</a>\\n      </li>\\n    </ul>\\n  </nav>\\n  <nav class=\\\"main-nav main-nav--palm\\\">\\n    <lx-dropdown position=\\\"right\\\" from-top=\\\"true\\\" width=\\\"150px\\\">\\n      <button class=\\\"btn btn--l btn--white btn--icon\\\" lx-ripple=\\\"white\\\" lx-dropdown-toggle>\\n        <i class=\\\"mdi mdi-dots-vertical\\\"></i>\\n      </button>\\n\\n      <lx-dropdown-menu>\\n        <ul>\\n          <li ng-repeat=\\\"n in nav.app.links\\\">\\n            <a ng-href=\\\"{{::n.link}}\\\" class=\\\"main-nav__link\\\" lx-ripple=\\\"white\\\">\\n              <span style=\\\"color: rgba(0, 0, 0, 0.541176)\\\">{{::n.text}}</span>\\n            </a>\\n          </li>\\n        </ul>\\n      </lx-dropdown-menu>\\n    </lx-dropdown>\\n  </nav>\\n</header>\\n\"\n\n/***/ }\n/******/ ]);"
  },
  {
    "path": "Part3/app/core/bootstrap.js",
    "content": "/*jshint browser:true */\n'use strict';\n\nrequire('./vendor.js')();\nvar appModule = require('../index');\n\nif (MODE.production) { // jshint ignore:line\n  require('./config/production')(appModule);\n}\n\nangular.element(document).ready(() => {\n  angular.bootstrap(document, [appModule.name], {\n      //strictDi: true\n    }\n  );\n});"
  },
  {
    "path": "Part3/app/core/config/production.js",
    "content": "export default (appModule) => {\n  appModule.config(($compileProvider, $httpProvider) => {\n    $compileProvider.debugInfoEnabled(false);\n    $httpProvider.useApplyAsync(true);\n  });\n};\n"
  },
  {
    "path": "Part3/app/core/layout.js",
    "content": "export default angular.module('app.layout', [])\n  .directive('lumxNavbar', require('./nav/nav'));"
  },
  {
    "path": "Part3/app/core/nav/nav.html",
    "content": "<header class=\"header bgc-light-blue-600\" ng-cloak>\n  <h1 class=\"main-logo\">\n    <a href=\"/\" class=\"main-logo__link\" lx-ripple=\"white\">\n      <span class=\"main-nav--title\">{{::nav.app.title}} </span>\n      <span class=\"main-nav--version\">v{{::nav.app.version}}</span>\n    </a>\n  </h1>\n\n  <nav class=\"main-nav main-nav--lap-and-up\">\n    <ul>\n      <li ng-repeat=\"n in nav.app.links\">\n        <a href=\"{{::n.link}}\" class=\"main-nav__link\" lx-ripple=\"white\">\n          {{::n.text}}</a>\n      </li>\n    </ul>\n  </nav>\n  <nav class=\"main-nav main-nav--palm\">\n    <lx-dropdown position=\"right\" from-top=\"true\" width=\"150px\">\n      <button class=\"btn btn--l btn--white btn--icon\" lx-ripple=\"white\" lx-dropdown-toggle>\n        <i class=\"mdi mdi-dots-vertical\"></i>\n      </button>\n\n      <lx-dropdown-menu>\n        <ul>\n          <li ng-repeat=\"n in nav.app.links\">\n            <a ng-href=\"{{::n.link}}\" class=\"main-nav__link\" lx-ripple=\"white\">\n              <span style=\"color: rgba(0, 0, 0, 0.541176)\">{{::n.text}}</span>\n            </a>\n          </li>\n        </ul>\n      </lx-dropdown-menu>\n    </lx-dropdown>\n  </nav>\n</header>\n"
  },
  {
    "path": "Part3/app/core/nav/nav.js",
    "content": "class NavCtrl {\n  constructor() {\n    this.app = require('index.json');\n  }\n}\n\nexport default () => {\n  require('./nav.scss');\n  return {\n    controller: NavCtrl,\n    controllerAs: 'nav',\n    template: require('./nav.html')\n  };\n};"
  },
  {
    "path": "Part3/app/core/nav/nav.scss",
    "content": ".header {\n  position: fixed;\n  top: 0;\n  right: 0;\n  left: 0;\n  z-index: 999;\n  height: 60px;\n  padding: 12px;\n  background-color: #4fc1e9;\n  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);\n}\n\n.main-nav--title {\n  margin: 0 0 10px 10px;\n}\n\n.main-nav--icon {\n  position: absolute;\n  margin: 5px;\n}\n\n.main-logo__link {\n  text-decoration: none;\n  color: white;\n}\n\n.menu-icon {\n  fill: white;\n}\n\n.main-nav--version {\n  font-size: 0.5em;\n  color: #F4F4F4;\n}\n\n.main-nav__link {\n  display: block;\n  padding: 0 12px;\n  border-radius: 2px;\n  font-size: 18px;\n  font-size: 1.125rem;\n  font-weight: 600;\n  color: white;\n  line-height: 36px;\n  text-decoration: none;\n}\n\n@media screen and (min-width: 1201px) {\n  .menubar {\n    display: none;\n  }\n}\n\n@media screen and (max-width: 1200px) {\n  .menubar {\n    float: left;\n  }\n}\n\n.home .menubar {\n  display: none;\n}\n\n.main-logo {\n  float: left;\n}\n\n.main-logo__link {\n  display: block;\n  padding: 4px 6px;\n  border-radius: 2px;\n  font-size: 24px;\n  font-size: 1.5rem;\n}\n\n.main-logo__link img {\n  display: block;\n  height: 28px;\n}\n\n.main-nav {\n  float: right;\n}\n\n.main-nav ul li {\n  float: left;\n}\n\n@media screen and (max-width: 630px) {\n  .main-nav--title {\n    font-size: 0.85em;\n  }\n  .main-nav--version {\n    display: none;\n  }\n  .main-nav--lap-and-up {\n    display: none;\n  }\n}\n\n@media screen and (min-width: 631px) {\n  .main-nav--palm {\n    display: none;\n  }\n}\n\n@media screen and (min-width: 481px) and (max-width: 1023px) {\n  .main-nav__link {\n    font-size: 14px;\n    font-size: 0.875rem;\n  }\n}\n"
  },
  {
    "path": "Part3/app/core/vendor.js",
    "content": "module.exports = function () {\n  /* Styles */\n  require('../index.scss');\n  require('../../node_modules/mdi/css/materialdesignicons.min.css');\n  require('../../node_modules/node-lumx/dist/scss/_lumx.scss');\n  /* JS */\n  global.$ = global.jQuery = require('jquery');\n  require('velocity-animate');\n  require('angular');\n  global.moment = require('moment');\n  require('node-lumx');\n};"
  },
  {
    "path": "Part3/app/index.html",
    "content": "<!doctype html>\n<html lang=\"en\">\n<head>\n  <meta charset=\"UTF-8\">\n  <title>Webpack Angular Part 2</title>\n</head>\n<body>\n\n<lumx-navbar></lumx-navbar>\n<p>Angular is working: {{1 + 1 === 2}}</p>\n\n<p class=\"fs-headline\">Icons: <i class=\"mdi mdi-twitter\"></i> @Sh_McK</p>\n\n<script src=\"bundle.js\"></script>\n</body>\n</html>"
  },
  {
    "path": "Part3/app/index.js",
    "content": "'use strict';\n\nmodule.exports = angular.module('app', [\n  'lumx',\n  /* modules */\n  require('./core/layout').name\n]);"
  },
  {
    "path": "Part3/app/index.json",
    "content": "{\n  \"title\": \"Module Loaders\",\n  \"version\": \"0.3.0\",\n  \"links\": [{\n    \"text\": \"Webpack\",\n    \"link\": \"http://webpack.github.io\"\n  }, {\n    \"text\": \"Require.js\",\n    \"link\": \"http://requirejs.org/\"\n  }, {\n    \"text\": \"Jspm\",\n    \"link\": \"http://jspm.io/\"\n  }]\n}"
  },
  {
    "path": "Part3/app/index.scss",
    "content": ""
  },
  {
    "path": "Part3/package.json",
    "content": "{\n  \"name\": \"WebpackAngular\",\n  \"version\": \"0.2.0\",\n  \"description\": \"Webpack require examples\",\n  \"main\": \"app/index.js\",\n  \"scripts\": {\n    \"start\": \"node node_modules/.bin/webpack-dev-server --content-base app --hot\",\n    \"start-win\": \"node_modules\\\\.bin\\\\webpack-dev-server.cmd -—content-base app --hot\"\n  },\n  \"author\": \"Shawn McKay <me@shmck.com\",\n  \"license\": \"ISC\",\n  \"dependencies\": {\n    \"angular\": \"1.4.8\",\n    \"bourbon\": \"4.2.6\",\n    \"jquery\": \"2.2.0\",\n    \"mdi\": \"1.4.57\",\n    \"moment\": \"2.11.1\",\n    \"node-lumx\": \"1.0.0\",\n    \"velocity-animate\": \"1.2.3\"\n  },\n  \"devDependencies\": {\n    \"babel-core\": \"6.4.0\",\n    \"babel-loader\": \"6.2.1\",\n    \"babel-preset-es2015\": \"6.3.13\",\n    \"css-loader\": \"0.23.1\",\n    \"file-loader\": \"0.8.5\",\n    \"imports-loader\": \"0.6.5\",\n    \"jshint\": \"2.9.1\",\n    \"jshint-loader\": \"0.8.3\",\n    \"json-loader\": \"0.5.4\",\n    \"ng-annotate-loader\": \"0.1.0\",\n    \"node-sass\": \"3.4.2\",\n    \"raw-loader\": \"0.5.1\",\n    \"sass-loader\": \"3.1.2\",\n    \"style-loader\": \"0.13.0\",\n    \"webpack\": \"1.12.11\",\n    \"webpack-dev-server\": \"1.14.1\"\n  }\n}\n"
  },
  {
    "path": "Part3/webpack.config.js",
    "content": "'use strict';\nvar webpack = require('webpack'),\n  path = require('path'),\n  APP = __dirname + '/app';\n\nmodule.exports = {\n  context: APP,\n  entry: {\n    app: ['webpack/hot/dev-server', './core/bootstrap.js']\n  },\n  output: {\n    path: APP,\n    filename: 'bundle.js'\n  },\n  module: {\n    loaders: [\n      {\n        test: /\\.scss$/,\n        loader: 'style!css!sass'\n      },\n      {\n        test: /\\.css$/,\n        loader: \"style!css\"\n      },\n      {\n        test: /\\.js$/,\n        loader: 'ng-annotate!babel?presets[]=es2015!jshint',\n        exclude: /node_modules|bower_components/\n      },\n      {\n        test: /\\.(woff|woff2|ttf|eot|svg)(\\?]?.*)?$/,\n        loader : 'file-loader?name=res/[name].[ext]?[hash]'\n      },\n      {\n        test: /\\.html/,\n        loader: 'raw'\n      },\n      {\n        test: /\\.json/,\n        loader: 'json'\n      }\n    ]\n  },\n  resolve: {\n    root: APP\n  },\n  plugins: [\n    new webpack.HotModuleReplacementPlugin(),\n    new webpack.DefinePlugin({\n      MODE: {\n        production: process.env.NODE_ENV === 'production'\n      }\n    })\n  ]\n};\n"
  },
  {
    "path": "README.md",
    "content": "# Webpack Angular Demos\n\nDemos for using Webpack + Angular + Lumx.\n\n* [Part 1: Getting Started](http://www.shmck.com/webpack-angular-part-1/)\n* [Part 2: Adding Dependencies](http://www.shmck.com/webpack-angular-part-2/)\n* [Part 3: 6 Ways to Use Require](http://www.shmck.com/webpack-angular-part-3/)\n"
  }
]