[
  {
    "path": ".codoopts",
    "content": "--title \"Codo Documentation\"\nlib/\nthemes/\n"
  },
  {
    "path": ".gitignore",
    "content": ".DS_Store\nnode_modules\n.bundle\n.idea\ndoc\nnpm-debug.log\n"
  },
  {
    "path": ".travis.yml",
    "content": "language: node_js\nbranches:\n  only:\n    - master\n    - 1.x\nnotifications:\n  recipients:\n    - michi@netzpiraten.ch\n    - boris@staal.io\n"
  },
  {
    "path": "Gruntfile.coffee",
    "content": "module.exports = (grunt) ->\n\n  grunt.loadNpmTasks 'grunt-release'\n\n  grunt.initConfig\n    release:\n      options:\n        bump: false\n        add: false\n        commit: false\n        push: false"
  },
  {
    "path": "LICENSE.md",
    "content": "# MIT License\n\nCopyright (c) 2012-2013 Michael Kessler, Boris Staal\n\nTemplate components are derivative works of YARD (http://yardoc.org)  \nCopyright (c) Loren Segal and licensed under the MIT license\n\nPermission is hereby granted, free of charge, to any person\nobtaining a copy of this software and associated documentation\nfiles (the \"Software\"), to deal in the Software without\nrestriction, including without limitation the rights to use,\ncopy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the\nSoftware is furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES\nOF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\nHOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\nWHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\nOTHER DEALINGS IN THE SOFTWARE.\n"
  },
  {
    "path": "README.md",
    "content": "# Codo [![Build Status](https://secure.travis-ci.org/coffeedoc/codo.png)](https://travis-ci.org/coffeedoc/codo)\n\nCodo is a [CoffeeScript](http://coffeescript.org/) API documentation generator, similar to [YARD](http://yardoc.org/).\nIts generated documentation is focused on CoffeeScript class syntax for classical inheritance.\n\n## Features\n\n* Detects classes, methods, constants, mixins & concerns.\n* Many tags to add semantics to your code.\n* Generates a nice site to browse your code documentation in various ways.\n* Can be used to assure minimum documentation\n* ~~Documentation generation and hosting as a service on [CoffeeDoc.info](http://coffeedoc.info)~~ (we no longer have the access to domain and the service is currently inaccessible)\n\n## Codo in action\n\nAnnotate your source with Codo tags to add semantic information to your code. It looks like this:\n\n```CoffeeScript\n# Base class for all animals.\n#\n# @example How to subclass an animal\n#   class Lion extends Animal\n#     move: (direction, speed): ->\n#\nclass Example.Animal\n\n  # The Answer to the Ultimate Question of Life, the Universe, and Everything\n  @ANSWER = 42\n\n  # Construct a new animal.\n  #\n  # @param [String] name the name of the animal\n  # @param [Date] birthDate when the animal was born\n  #\n  constructor: (@name, @birthDate = new Date()) ->\n\n  # Move the animal.\n  #\n  # @example Move an animal\n  #   new Lion('Simba').move(direction: 'south', speed: 12)\n  #\n  # @param [Object] options the moving options\n  # @option options [String] direction the moving direction\n  # @option options [Number] speed the speed in mph\n  #\n  move: (options = {}) ->\n```\n\nThen generate the documentation with the `codo` command line tool. You can browse some\ngenerated Codo documentation on [CoffeeDoc.info](http://coffeedoc.info) to get a feeling how you can navigate in various ways through your code layers.\n\nIn the `Example` namespace you'll find some classes and mixins that makes absolutely no sense, its purpose is only to show the many features Codo offers.\n\n## Installation\n\nCodo is available in NPM and can be installed with:\n\n```bash\n$ npm install -g codo\n```\n\nPlease have a look at the [CHANGELOG](https://github.com/coffeedoc/codo/releases) when upgrading to a newer Codo version with `npm update`.\n\n## Tags\n\nYou have to annotate your code with Codo tags to give it some meaning to the parser that generates the documentation. Each tag starts with the `@` sign followed by the tag name. See the following overview for a minimal description of all available tags. Most tags are self-explaining and the one that aren't are described afterwards in more detail.\n\nTags can take multiple lines, just indent subsequent lines by two spaces.\n\n### Overview\n\nThe following table shows the list of all available tags in alphabetical order with its expected options. An option in parenthesis is optional and the square brackets are part of the Codo tag format and must actually be written. Some tags can be defined multiple times and they can be applied to different contexts, either in the comment for a class, a comment for a mixin or in a method comment.\n\n<table>\n  <thead>\n    <tr>\n      <td><strong>Tag format</strong></td>\n      <td><strong>Multiple occurrences</strong></td>\n      <td><strong>Classes</strong></td>\n      <td><strong>Mixins</strong></td>\n      <td><strong>Methods</strong></td>\n    </tr>\n  </thead>\n  <tbody>\n    <tr>\n      <td><strong>@namespace</strong> namespace</td>\n      <td></td>\n      <td>&#10004;</td>\n      <td>&#10004;</td>\n      <td></td>\n    </tr>\n    <tr>\n      <td><strong>@abstract</strong> (message)</td>\n      <td></td>\n      <td>&#10004;</td>\n      <td>&#10004;</td>\n      <td>&#10004;</td>\n    </tr>\n    <tr>\n      <td><strong>@author</strong> name</td>\n      <td>&#10004;</td>\n      <td>&#10004;</td>\n      <td>&#10004;</td>\n      <td>&#10004;</td>\n    </tr>\n    <tr>\n      <td><strong>@concern</strong> mixin</td>\n      <td>&#10004;</td>\n      <td>&#10004;</td>\n      <td></td>\n      <td></td>\n    </tr>\n    <tr>\n      <td><strong>@copyright</strong> name</td>\n      <td></td>\n      <td>&#10004;</td>\n      <td>&#10004;</td>\n      <td>&#10004;</td>\n    </tr>\n    <tr>\n      <td><strong>@deprecated</strong></td>\n      <td></td>\n      <td>&#10004;</td>\n      <td>&#10004;</td>\n      <td>&#10004;</td>\n    </tr>\n    <tr>\n      <td><strong>@example</strong> (title)<br/>&nbsp;&nbsp;Code</td>\n      <td>&#10004;</td>\n      <td>&#10004;</td>\n      <td>&#10004;</td>\n      <td>&#10004;</td>\n    </tr>\n    <tr>\n      <td><strong>@extend</strong> mixin</td>\n      <td>&#10004;</td>\n      <td>&#10004;</td>\n      <td></td>\n      <td></td>\n    </tr>\n    <tr>\n      <td><strong>@include</strong> mixin</td>\n      <td>&#10004;</td>\n      <td>&#10004;</td>\n      <td></td>\n      <td></td>\n    </tr>\n    <tr>\n      <td><strong>@note</strong> message</td>\n      <td>&#10004;</td>\n      <td>&#10004;</td>\n      <td>&#10004;</td>\n      <td>&#10004;</td>\n    </tr>\n    <tr>\n      <td><strong>@method</strong> signature<br/>&nbsp;&nbsp;Method tags</td>\n      <td>&#10004;</td>\n      <td>&#10004;</td>\n      <td></td>\n      <td></td>\n    </tr>\n    <tr>\n      <td><strong>@mixin</strong></td>\n      <td></td>\n      <td></td>\n      <td>&#10004;</td>\n      <td></td>\n    </tr>\n    <tr>\n      <td><strong>@option</strong> option [type] name description</td>\n      <td>&#10004;</td>\n      <td></td>\n      <td></td>\n      <td>&#10004;</td>\n    </tr>\n    <tr>\n      <td><strong>@event</strong> name [description]<br />&nbsp;&nbsp;Event tags</td>\n      <td>&#10004;</td>\n      <td>&#10004;</td>\n      <td></td>\n      <td>&#10004;</td>\n    </tr>\n    <tr>\n      <td><strong>@overload</strong> signature<br/>&nbsp;&nbsp;Method tags</td>\n      <td>&#10004;</td>\n      <td></td>\n      <td></td>\n      <td>&#10004;</td>\n    </tr>\n    <tr>\n      <td>\n        <strong>@param</strong> [type] name description<br/>\n        <strong>@param</strong> name [type] description<br/>\n      </td>\n      <td>&#10004;</td>\n      <td></td>\n      <td></td>\n      <td>&#10004;</td>\n    </tr>\n    <tr>\n      <td><strong>@private</strong></td>\n      <td></td>\n      <td>&#10004;</td>\n      <td>&#10004;</td>\n      <td>&#10004;</td>\n    </tr>\n    <tr>\n      <td><strong>@property</strong> [type] description</td>\n      <td></td>\n      <td></td>\n      <td></td>\n      <td>&#10004;</td>\n    </tr>\n    <tr>\n      <td><strong>@public</strong></td>\n      <td></td>\n      <td>&#10004;</td>\n      <td></td>\n      <td>&#10004;</td> \n    </tr> \n    <tr>\n      <td><strong>@return</strong> [type] description</td>\n      <td></td>\n      <td></td>\n      <td></td>\n      <td>&#10004;</td>\n    </tr>\n    <tr>\n      <td><strong>@see</strong> link/reference</td>\n      <td>&#10004;</td>\n      <td>&#10004;</td>\n      <td>&#10004;</td>\n      <td>&#10004;</td>\n    </tr>\n    <tr>\n      <td><strong>@since</strong> version</td>\n      <td></td>\n      <td>&#10004;</td>\n      <td>&#10004;</td>\n      <td>&#10004;</td>\n    </tr>\n    <tr>\n      <td><strong>@throw</strong> message</td>\n      <td>&#10004;</td>\n      <td></td>\n      <td></td>\n      <td>&#10004;</td>\n    </tr>\n    <tr>\n      <td><strong>@todo</strong> message</td>\n      <td>&#10004;</td>\n      <td>&#10004;</td>\n      <td>&#10004;</td>\n      <td>&#10004;</td>\n    </tr>\n    <tr>\n      <td><strong>@version</strong> version</td>\n      <td></td>\n      <td>&#10004;</td>\n      <td>&#10004;</td>\n      <td>&#10004;</td>\n    </tr>\n    <tr>\n      <td><strong>@nodoc</strong></td>\n      <td></td>\n      <td>&#10004;</td>\n      <td>&#10004;</td>\n      <td>&#10004;</td>\n    </tr>\n  </tbody>\n</table>\n\n### Alternative syntax\n\nYou can also use curly braces instead of square brackets if you prefer:\n\n```CoffeeScript\n# Move the animal.\n#\n# @example Move an animal\n#   new Lion('Simba').move('south', 12)\n#\n# @param {Object} options the moving options\n# @option options {String} direction the moving direction\n# @option options {Number} speed the speed in mph\n#\nmove: (options = {}) ->\n```\n\nIt's also possible to use [CoffeeScript block comments](http://coffeescript.org/#strings) instead of the normal\ncomments. If you solely use block comments, you may want to use the `--cautious` flag to disable the internal comment conversion.\n\n```CoffeeScript\n###\nMove the animal.\n\n@example Move an animal\n  new Lion('Simba').move('south', 12)\n\n@param [Object] options the moving options\n@option options [String] direction the moving direction\n@option options [Number] speed the speed in mph\n###\nmove: (options = {}) ->\n```\n\nIf you want to compile your JavaScript with Google Closure and make use of the special block comments with an asterisk, you want to use the `--closure` flag so that Codo ignores the asterisk.\n\n### Parameters\n\nThere are two different format recognized for your parameters, so you can chose your favorite. This one is with the\nparameter after the parameter type:\n\n```CoffeeScript\n# Feed the animal\n#\n# @param [World.Food] food the food to eat\n# @param [Object] options the feeding options\n# @option options [String] time the time to feed\n#\nfeed: (food) ->\n```\n\nAnd this one with the name before the type:\n\n```CoffeeScript\n# Feed the animal\n#\n# @param food [World.Food] the food to eat\n# @param options [Object] the feeding options\n# @option options time [String] the time to feed\n#\nfeed: (food) ->\n```\n\nThe parameter type can contain multiple comma separated types:\n\n```CoffeeScript\n# Feed the animal\n#\n# @param [String, Char] input\n# @return [Integer, Float] output\n#\ndo: (input) ->\n```\n\nEach known type will be automatically linked. Also named parameters are recognized:\n\n```CoffeeScript\nclass Classmate\n\n  # @param {string} name Full name (first + last)\n  # @param {string} phone Phone number\n  # @param {obj} picture JPG of the person\n  constructor: ( {@name, @phone, picture} ) ->\n\n  # @param {string} reason Why I'm no longer friends\n  # @param {Date} revisit_decision_on When to reconsider\n  unfriend: ( {reason, revisit_decision_on} ) ->\n```\n\n### Options\n\nIf you have an object as parameter and you like to define the accepted properties as options to the method, you can use the `@options` tag:\n\n\n```CoffeeScript\n# Feed the animal\n#\n# @param [Object] options the calculation options\n# @option options [Integer] age the age of the animal\n# @option options [Integer] weight the weight of the animal\n#\nexpectationOfLife: (options) ->\n```\n\nThe first parameter to the option tag is the parameter name it describes, followed by the parameter type, name and\ndescription.\n\n### Types\n\nThe object types for the `@param`, `@option` and `@return` tags are parsed for known classes or mixins and linked. You can also define types for Arrays with:\n\n```CoffeeScript\n#\n# @param [World.Region] region the region of the herd\n# @return [Array<Animals>] the animals in the herd\n#\ngetHerdMembers: (regions) ->\n```\n\n### Properties\n\nYou can mark an instance variable as property of the class by using the `@property` tag like:\n\n```CoffeeScript\nclass Person\n\n  # @property [Array<String>] the nicknames\n  nicknames: []\n```\n\nIn addition, the following properties pattern is detected:\n\n```CoffeeScript\nclass Person\n\n  get = (props) => @::__defineGetter__ name, getter for name, getter of props\n  set = (props) => @::__defineSetter__ name, setter for name, setter of props\n\n  # @property [String] The person name\n  get name: -> @_name\n  set name: (@_name) ->\n\n  # The persons age\n  get age: -> @_age\n```\n\nIf you follow this convention, they will be shown in the generated documentation with its read/write status shown. To specify type of the property, use the `@property` tag.\n\n### Method overloading\n\nIf you allow your method to take different parameters, you can describe the method overloading with the `@overload` tag:\n\n```CoffeeScript\n# This is a generic Store set method.\n#\n# @overload set(key, value)\n#   Sets a value on key\n#   @param [Symbol] key describe key param\n#   @param [Object] value describe value param\n#\n# @overload set(value)\n#   Sets a value on the default key `:foo`\n#   @param [Object] value describe value param\n#   @return [Boolean] true when success\n#\nset: (args...) ->\n```\n\nThe `@overload` tag must be followed by the alternative method signature that will appear in the documentation, followed by any method tag indented by two spaces.\n\n### Virtual methods\n\nIf you copy over functions from other objects without using mixins or concerns, you can add documentation for this\nvirtual (or dynamic) method with the `@method` tag:\n\n```CoffeeScript\n# This class has a virtual method, that doesn't\n# exist in the source but appears in the documentation.\n#\n# @method #set(key, value)\n#   Sets a value on key\n#   @param [Symbol] key describe key param\n#   @param [Object] value describe value param\n#\nclass VirtualMethods\n```\n\nThe `@method` tag must be followed by the method signature that will appear in the documentation, followed\nby any method tag indented by two spaces. The difference to the `@overload` tag beside the different context is that the signature should contain either the instance prefix `#` or the class prefix `.`.\n\n### Mixins\n\nIt's common practice to mix in objects to share common logic when inheritance is not suited. You can read\nmore about mixins in the [The Little Book on CoffeeScript](http://arcturo.github.io/library/coffeescript/03_classes.html).\n\nSimply mark any plain CoffeeScript object with the `@mixin` tag to have a mixin page generated that supports many tags:\n\n```CoffeeScript\n# Speed calculation for animal.\n#\n# @mixin\n# @author Rockstar Ninja\n#\nExample.Animal.Speed =\n\n  # Get the distance the animal will put back in a certain time.\n  #\n  # @param [Integer] time Number of seconds\n  # @return [Integer] The distance in miles\n  #\n  distance: (time) ->\n```\n\nNext mark the target object that includes one or multiple mixins:\n\n```CoffeeScript\n# @include Example.Animal.Speed\nclass Example.Animal.Lion\n```\n\nand you'll see the mixin methods appear as instance methods in the lion class documentation. You can also extend a mixin:\n\n```CoffeeScript\n# @extend Example.Animal.Speed\nclass Example.Animal.Lion\n```\n\nso its methods will show up as class methods.\n\n#### Concerns\n\nA concern is a combination of two mixins, one for instance methods and the other for class methods and it's automatically detected when a mixin has both a `ClassMethods` and an `InstanceMethods` property:\n\n```CoffeeScript\n# Speed calculations for animal.\n#\n# @mixin\n# @author Rockstar Ninja\n#\nExample.Animal.Speed =\n\n  InstanceMethods:\n\n    # Get the distance the animal will put back in a certain time.\n    #\n    # @param [Integer] time Number of seconds\n    # @return [Integer] The distance in miles\n    #\n    distance: (time) ->\n\n  ClassMethods:\n\n    # Get the common speed of the animal in MPH.\n    #\n    # @param [Integer] age The age of the animal\n    # @return [Integer] The speed in MPH\n    #\n    speed: (age) ->\n```\n\nYou can use `@concern` to include and extend the correspondent properties:\n\n```CoffeeScript\n# @concern Example.Animal.Speed\nclass Example.Animal.Lion\n```\n\n### Non-class methods and variables\n\nYou can also document your non-class, top level functions and constants within a file. As soon Codo detects these types within a file, it will be added to the file list and you can browse your file methods and constants.\n\n## Text processing\n\n### GitHub Flavored Markdown\n\nCodo class, mixin and method documentation and extra files written in\n[Markdown](http://daringfireball.net/projects/markdown/) syntax are rendered as full\n[GitHub Flavored Markdown](https://github.github.com/github-flavored-markdown/).\n\nThe `@return`, `@param`, `@option`, `@see`, `@author`, `@copyright`, `@note`, `@todo`, `@since`, `@version` and\n`@deprecated` tags rendered with a limited Markdown syntax, which means that only inline elements will be returned.\n\n### Automatically link references\n\nCodo comments and all tag texts will be parsed for references to other classes, methods and mixins, and are automatically linked. The reference searching will not take place within code blocks, thus you can avoid reference searching errors by surround your code block that contains curly braces with backticks.\n\nThere are several ways of link types supported and all can take an optional label after the link.\n\n* Normal URL links: `{http://coffeescript.org/}` or `{http://coffeescript.org/ Try CoffeeScript}`\n* Link to a class or mixin: `{Animal.Lion}` or `{Animal.Lion The mighty lion}`\n* Direct link to an instance method: `{Animal.Lion#walk}` or `{Animal.Lion#walk The lion walks}`\n* Direct link to a class method: `{Animal.Lion.constructor}` or `{Animal.Lion.constructor A new king was born}`\n* Direct link to a module method: `{MyModule~method}` or `{MyModule~method ZOMG I can even refer modules!}`\n\nThe `@see` tag supports the same link types, just without the curly braces:\n\n```CoffeeScript\n@see https://en.wikipedia.org/wiki/Lion The wikipedia page about lions\n```\n\n## Generate\n\nAfter the installation you will have a `codo` binary that can be used to generate the documentation recursively for all CoffeeScript files within a directory.\n\n```bash\n$ codo --help\nUsage: codo [options] [source_files [- extra_files]]\n\nOptions:\n  --help, -h          Show this help                          \n  --version           Show version                            \n  --extension, -x     Coffee files extension                                 [default: \"coffee\"]\n  --output, -o        The output directory                                   [default: \"./doc\"]\n  --min-coverage, -m  Require a minimum percentage to be documented or fail  [default: 0]\n  --test, -t          Do not create any output files. Use with min-coverage  [default: 0]\n  --theme             The theme to be used                                   [default: \"default\"]\n  --name, -n          The project name used                   \n  --readme, -r        The readme file used                    \n  --quiet, -q         Supress warnings                                       [default: false]\n  --verbose, -v       Show parsing errors                                    [default: false]\n  --undocumented, -u  List undocumented objects                              [default: false]\n  --closure           Try to parse closure-like block comments               [default: false]\n  --private, -p       Show privates                                          [default: false]\n  --analytics, -a     The Google analytics ID                                [default: false]\n  --title, -t         HTML Title                                             [default: \"Codo Documentation\"]\n```\n\nCodo wants to be smart and tries to detect the best default settings for the sources, the readme, the extra files and the project name, so the above defaults may be different on your project.\n\n### Project defaults\n\nYou can define your project defaults by writing your command line options to a `.codoopts` file:\n\n```bash\n--name       \"Codo\"\n--readme     README.md\n--title      \"Codo Documentation\"\n--private\n--quiet\n--extension  coffee\n--output     ./doc\n./src\n-\nLICENSE\nCHANGELOG.md\n```\n\nPut each option flag on a separate line, followed by the source directories or files, and optionally any extra file that should be included into the documentation separated by a dash (`-`). If your extra file has the extension `.md`, it'll be rendered as Markdown.\n\n### API usage\n\nIf you want to use codo in your build tool, you can require `codo/lib/command.coffee`:\n\n```coffeescript\nCodoCLI = require 'codo/lib/command.coffee'\ncodoCLI = new CodoCLI()\ncodoCLI.generate \"path/to/base/dir\", options, (exitCode) -> process.exit exitCode\n```\n\n`option` is an object with options as above. Please note that they are *not* CamelCase (e.g. `min-coverage`\n instead of `minCoverage`). Furthermore only global defaults will be used, project defaults are ignored\n if Codo is used via API.\n\n## Keyboard navigation\n\nYou can quickly search and jump through the documentation by using the fuzzy finder dialog:\n\n* Open fuzzy finder dialog: `T`\n\nIn frame mode you can toggle the list naviation frame on the left side:\n\n* Toggle list view: `L`\n\nYou can focus a list in frame mode or toggle a tab in frameless mode:\n\n* Class list: `C`\n* Mixin list: `I`\n* File list: `F`\n* Method list: `M`\n* Extras list: `E`\n\nYou can focus and blur the search input:\n\n* Focus search input: `S`\n* Blur search input: `Esc`\n\nIn frameless mode you can close the list tab:\n\n* Close list tab: `Esc`\n\n## Report issues\n\nIssues hosted at [GitHub Issues](https://github.com/coffeedoc/codo/issues).\n\nThe Codo specs are template based, so make sure you provide a code snippet that can be added as failing spec to the\nproject when reporting an issue with parsing your CoffeeScript code. The other thing that might be useful is the actual exception happening (run with `-d`).\n\n## Development\n\nSource hosted at [GitHub](https://github.com/coffeedoc/codo).\n\nPull requests are very welcome! Please try to follow these simple rules if applicable:\n\n* Please create a topic branch for every separate change you make.\n* Make sure your patches are well tested.\n* Update the documentation.\n* Update the README.\n* Update the CHANGELOG for noteworthy changes.\n* Please **do not change** the version number.\n\n## Alternatives\n\n* [Docco](http://jashkenas.github.io/docco/) is a quick-and-dirty, literate-programming-style documentation generator.\n* [CoffeeDoc](https://github.com/omarkhan/coffeedoc) an alternative API documentation generator for CoffeeScript.\n* [JsDoc](https://github.com/micmath/jsdoc) an automatic documentation generator for JavaScript.\n* [Dox](https://github.com/tj/dox) JavaScript documentation generator for node using markdown and jsdoc.\n\n## Core Team\n\n* [Boris Staal](https://github.com/inossidabile) ([@_inossidabile](http://twitter.com/#!/_inossidabile))\n* [Michael Kessler](https://github.com/netzpirat) ([@netzpirat](http://twitter.com/#!/netzpirat), [FlinkFinger](http://www.blackbeans.ch))\n\n## Acknowledgment\n\n- [Jeremy Ashkenas](https://github.com/jashkenas) for [CoffeeScript](http://coffeescript.org/), that mighty language\nthat compiles to JavaScript and makes me enjoy JavaScript development.\n- [Loren Segal](https://github.com/lsegal) for creating YARD and giving me the perfect documentation syntax for\ndynamic programming languages.\n- [Stratus Editor](https://github.com/stratuseditor) for open sourcing their [fuzzy filter](https://github.com/stratuseditor/fuzzy-filter).\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2012-2016 Michael Kessler, Boris Staal\n\nTemplate components are derivative works of YARD (http://yardoc.org)  \nCopyright (c) Loren Segal and licensed under the MIT license\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/coffeedoc/codo/trend.png)](https://bitdeli.com/free \"Bitdeli Badge\")\n\n"
  },
  {
    "path": "bin/codo",
    "content": "#!/usr/bin/env node\n\n'use strict';\n\nvar compiler = require('coffee-script');\nvar location = require('path').join(\n  __dirname, '..', 'lib', 'command'\n)\n\nif (compiler.register) {\n  compiler.register();\n}\n\nrequire(location).run();"
  },
  {
    "path": "lib/_entities.coffee",
    "content": "module.exports = Entities = {}"
  },
  {
    "path": "lib/_meta.coffee",
    "content": "module.exports = Meta = {}"
  },
  {
    "path": "lib/_tools.coffee",
    "content": "module.exports = Tools = {}"
  },
  {
    "path": "lib/codo.coffee",
    "content": "FS          = require 'fs'\nPath        = require 'path'\nwalkdir     = require 'walkdir'\nWinston     = require 'winston'\n\nmodule.exports = Codo =\n\n  Environment: require './environment'\n\n  Tools:\n    Markdown:   require './tools/markdown'\n    Referencer: require './tools/referencer'\n\n  Entities:\n    File:      require './entities/file'\n    Class:     require './entities/class'\n    Method:    require './entities/method'\n    Variable:  require './entities/variable'\n    Property:  require './entities/property'\n    Mixin:     require './entities/mixin'\n    Extra:     require './entities/extra'\n\n  Meta:\n    Method:    require './meta/method'\n    Parameter: require './meta/parameter'\n\n  version: ->\n    JSON.parse(\n      FS.readFileSync(Path.join(__dirname, '..', 'package.json'), 'utf-8')\n    )['version']\n\n  parseProject: (path, options={}) ->\n    options.name      ||= @detectName(path)\n    options.readme    ||= @detectReadme(path)\n    options.basedir   ||= path\n    options.extension ||= 'coffee'\n\n    environment = new @Environment(options)\n\n    if environment.options.readme\n      environment.readExtra(Path.join path, environment.options.readme)\n\n    for extra in (options.extras || @detectExtras(path))\n      environment.readExtra(Path.join path, extra)\n\n    for input in (options.inputs || [path])\n      if FS.existsSync(input)\n        if FS.lstatSync(input).isDirectory()\n          for filename in walkdir.sync(input) when filename.match(\"\\\\._?#{options.extension}$\")\n            environment.readCoffee(filename)\n        else\n          environment.readCoffee(Path.resolve input)\n      else\n        Winston.warn(\"#{input} (#{Path.join process.cwd(), input}) skipped – does not exist\")\n\n    environment.linkify()\n    environment\n\n  detectDefaults: (path) ->\n    results =\n      _: []\n\n    try\n      if FS.existsSync(Path.join path, '.codoopts')\n        configs = FS.readFileSync Path.join(path, '.codoopts'), 'utf8'\n\n        for config in configs.split('\\n')\n          # Key value configs\n          if option = /^-{1,2}([\\w-]+)\\s+(['\"])?(.*?)\\2?$/.exec config\n            results[option[1]] = option[3]\n\n          # Boolean configs\n          else if bool = /^-{1,2}([\\w-]+)\\s*$/.exec config\n            results[bool[1]] = true\n\n          # Argv configs\n          else if config != ''\n            results._.push(config)\n\n      results\n\n    catch error\n      Winston.error(\"Cannot parse .codoopts file: #{error.message}\") unless @quiet\n\n\n  # Find the project name by either parse `package.json`\n  # or get the current working directory name.\n  #\n  detectName: (path) ->\n    if FS.existsSync(Path.join path, 'package.json')\n      name = JSON.parse(FS.readFileSync Path.join(path, 'package.json'), 'utf-8')['name']\n\n    if !name && FS.existsSync(Path.join path, '.git', 'config')\n      config = FS.readFileSync(Path.join(path, '.git', 'config'), 'utf-8')\n      name   = /github\\.com[:/][^/]+\\/(.*)\\.git/.exec(config)?[1]\n\n    if !name\n      name = Path.basename(path)\n\n    return name.charAt(0).toUpperCase() + name.slice(1)\n\n  # Find the project README.\n  #\n  detectReadme: (path) ->\n    attempts = [\n      'README.markdown'\n      'README.md'\n      'README'\n    ]\n\n    return attempt for attempt in attempts when FS.existsSync(Path.join path, attempt)\n\n  # Find extra project files.\n  #\n  detectExtras: (path) ->\n    [\n      'CHANGELOG'\n      'CHANGELOG.markdown'\n      'CHANGELOG.md'\n      'AUTHORS'\n      'AUTHORS.md'\n      'AUTHORS.markdown'\n      'LICENSE'\n      'LICENSE.md'\n      'LICENSE.markdown'\n      'LICENSE.MIT'\n      'LICENSE.GPL'\n      'README.markdown'\n      'README.md'\n      'README'\n    ].filter (attempt) -> FS.existsSync(Path.join path, attempt)\n"
  },
  {
    "path": "lib/command.coffee",
    "content": "Path     = require 'path'\nCodo     = require './codo'\nOptimist = require 'optimist'\nTheme    = require '../themes/default/lib/theme'\nTable    = require 'cli-table'\ncolors   = require 'colors/safe'\n\nmodule.exports = class Command\n  options: [\n    {name: 'help', alias: 'h', describe: 'Show this help'}\n    {name: 'version', describe: 'Show version'}\n    {name: 'extension', alias: 'x', describe: 'Coffee files extension', default: 'coffee'}\n    {name: 'output', alias: 'o', describe: 'The output directory', default: './doc'}\n    {name: 'min-coverage', alias: 'm', describe: 'Require a minimum percentage to be documented or fail', default: '0'}\n    {name: 'output-dir'}\n    {name: 'theme', describe: 'The theme to be used', default: 'default'}\n    {name: 'name', alias: 'n', describe: 'The project name used'}\n    {name: 'readme', alias: 'r', describe: 'The readme file used'}\n    {name: 'quiet', alias: 'q', describe: 'Supress warnings', boolean: true, default: false}\n    {name: 'verbose', alias: 'v', describe: 'Show parsing errors', boolean: true, default: false}\n    {name: 'undocumented', alias: 'u', describe: 'List undocumented objects', boolean: true, default: false}\n    {name: 'closure', describe: 'Try to parse closure-like block comments', boolean: true, default: false}\n    {name: 'debug', alias: 'd', boolean: true}\n  ]\n\n  @run: ->\n    new @().run (code) ->\n      process.exit code\n\n  extendOptimist: (optimist, defaults={}, options={}) ->\n    for option in options\n      optimist.options option.name,\n        alias: option.alias,\n        describe: option.describe,\n        boolean: option.boolean,\n        default: defaults[option.name] || defaults[option.alias] || option.default\n\n  lookupTheme: (name) ->\n    if name == 'default'\n      @theme = Theme\n    else\n      try\n        @theme = require \"codo-theme-#{name}\"\n      catch\n        try\n          @theme = require Path.resolve(\"node_modules/codo-theme-#{name}\")\n        catch\n          console.log \"Error loading theme #{name}: are you sure you have codo-theme-#{name} package installed?\"\n          process.exit()\n\n  prepareOptions: (optimist, defaults) ->\n    options = optimist.argv\n    options._.push entry for entry in defaults._\n\n    keyword = 'inputs'\n    for entry in options._\n      if entry == '-'\n        keyword = 'extras'\n      else\n        options[keyword] ?= []\n        options[keyword].push entry\n\n    delete options._\n\n    options\n\n  run: (cb) ->\n    defaults = Codo.detectDefaults(process.cwd())\n\n    optimist = Optimist.usage('Usage: $0 [options] [source_files [- extra_files]]')\n    @extendOptimist(optimist, defaults, @options)\n\n    @theme = @lookupTheme(optimist.argv.theme)\n    @extendOptimist(optimist, defaults, @theme::options)\n\n    @options = @prepareOptions(optimist, defaults)\n\n    if @options['output-dir']\n      console.log \"The usage of outdated `--output-dir` option detected. Please switch to `--output`.\"\n      process.exit()\n\n    if @options.help\n      console.log optimist.help()\n    else if @options.version\n      console.log Codo.version()\n    else\n      @generate(process.cwd(), @options, cb)\n\n  collectStats: (environment) ->\n    sections =\n      Classes:\n        total: environment.allClasses().length\n        undocumented: environment.allClasses().filter((e) -> !e.documentation?).map (x) ->\n          [x.name, x.file.path]\n\n      Mixins:\n        total: environment.allMixins().length\n        undocumented: environment.allMixins().filter((e) -> !e.documentation?).map (x) ->\n          [x.name, x.file.path]\n\n      Methods:\n        total: environment.allMethods().length\n        undocumented: environment.allMethods().filter((e) -> !e.entity.documentation?).map (x) ->\n          [\"#{x.entity.name} (#{x.owner.name})\", x.owner.file.path]\n\n    sections\n\n  generate: (dir = process.cwd(), options = @options, cb) ->\n    for option in @options\n      if option.default?\n        options[option.name] ?= option.default\n    @theme ?= @lookupTheme(options.theme)\n\n    for option in @theme::options\n      if option.default?\n        options[option.name] ?= option.default\n\n    environment = Codo.parseProject(dir, options)\n    sections    = @collectStats(environment)\n\n    unless options.test\n      @theme.compile(environment)\n\n    overall      = 0\n    undocumented = 0\n\n    for section, data of sections\n      overall      += data.total\n      undocumented += data.undocumented.length\n\n    if options.undocumented\n      for section, data of sections when data.undocumented.length != 0\n        table = new Table\n          head: [section, 'Path']\n\n        table.push(entry) for entry in data.undocumented\n        unless options.test\n          console.log table.toString()\n          console.log ''\n    else\n      table = new Table\n        head: ['', 'Total', 'Undocumented']\n\n      undocumented_percent = 100/overall*undocumented || 0\n\n      table.push(\n        ['Files', environment.allFiles().length, ''],\n        ['Extras', environment.allExtras().length, ''],\n        ['Classes', sections['Classes'].total, sections['Classes'].undocumented.length],\n        ['Mixins', sections['Mixins'].total, sections['Mixins'].undocumented.length],\n        ['Methods', sections['Methods'].total, sections['Methods'].undocumented.length]\n      )\n\n      unless options.test\n        console.log table.toString()\n        console.log ''\n        console.log \"  Totally documented: #{(100 - undocumented_percent).toFixed(2)}%\"\n        console.log ''\n\n    documentedRatio = 100 - (100*undocumented/overall).toFixed(2)\n    if documentedRatio < options[\"min-coverage\"]\n      unless options.test\n        console.error colors.red(\"  Expected \" + options[\"min-coverage\"] +\n                       \"% to be documented, but only \" + documentedRatio + \"% were.\")\n      cb 1 if cb\n    else\n      cb() if cb\n"
  },
  {
    "path": "lib/documentation.coffee",
    "content": "module.exports = class Documentation\n\n  constructor: (comment) ->\n    @parseTags(comment)\n  \n  # Parse the given lines and adds the result\n  # to the result object.\n  #\n  # @param [Array<String>] lines the lines to parse\n  #\n  parseTags: (lines) ->\n    comment = []\n\n    while (line = lines.shift()) isnt undefined\n\n      # Look ahead\n      unless /^@example|@overload|@method|@event/.exec line\n        while /^\\s{2}\\S+/.test(lines[0])\n          line += lines.shift().substring(1)\n\n      if property = /^@nodoc/i.exec line\n        @nodoc = true\n\n      if property = /^@property\\s+[\\[\\{](.+?)[\\]\\}](?:\\s+(.+))?/i.exec line\n        @property = property[1]\n        lines.unshift property[2] if property[2]?\n\n      else if returns = /^@return\\s+[\\[\\{](.+?)[\\]\\}](?:\\s+(.+))?/i.exec line\n        @returns =\n          type: returns[1]\n          description: returns[2]\n\n      else if returns = /^@return\\s+(.+)/i.exec line\n        @returns =\n          type: '?'\n          description: returns[1]\n\n      else if throws = /^@throw\\s+[\\[\\{](.+?)[\\]\\}](?:\\s+(.+))?/i.exec line\n        @throws ?= []\n        @throws.push\n          type: throws[1]\n          description: throws[2]\n\n      else if throws = /^@throw\\s+(.+)/i.exec line\n        @throws ?= []\n        @throws.push\n          type: '?'\n          description: throws[1]\n\n      else if param = /^@param\\s+[\\[\\{](.+?)[\\]}]\\s+\\[([^\\]]+)](?:\\s+(.+))?/i.exec line\n        @params ?= []\n        if paramNameVal = /^([^ ]+)\\s*=\\s*([^ ]+)/.exec param[2]\n          paramName = paramNameVal[1]\n          defValue = paramNameVal[2]\n        else\n          defValue = null\n          paramName = param[2]\n        @params.push\n          type: param[1]\n          name: paramName\n          description: param[3]\n          defaultState: defValue\n          optional: yes\n\n      else if param = /^@param\\s+([^ ]+)\\s+[\\[\\{](.+?)[\\]\\}](?:\\s+(.+))?/i.exec line\n        @params ?= []\n        @params.push\n          type: param[2]\n          name: param[1]\n          description: param[3]\n\n      else if param = /^@param\\s+[\\[\\{](.+?)[\\]\\}]\\s+([^ ]+)(?:\\s+(.+))?/i.exec line\n        @params ?= []\n        @params.push\n          type: param[1]\n          name: param[2]\n          description: param[3]\n\n      else if option = /^@option\\s+([^ ]+)\\s+[\\[\\{](.+?)[\\]\\}]\\s+([^ ]+)(?:\\s+(.+))?/i.exec line\n        @options ?= {}\n        @options[option[1]] ?= []\n\n        @options[option[1]].push\n          type: option[2]\n          name: option[3]\n          description: option[4]\n\n      else if option = /^@option\\s+([^ ]+)\\s+([^ ]+)\\s+[\\[\\{](.+?)[\\]\\}](?:\\s+(.+))?/i.exec line\n        @options ?= {}\n        @options[option[1]] ?= []\n\n        @options[option[1]].push\n          type: option[3]\n          name: option[2]\n          description: option[4]\n\n      else if see = /^@see\\s+([^\\s]+)(?:\\s+(.+))?/i.exec line\n        @see ?= []\n        @see.push\n          reference: see[1]\n          label: see[2]\n\n      else if author = /^@author\\s+(.+)/i.exec line\n        @authors ?= []\n        @authors.push author[1] || ''\n\n      else if copyright = /^@copyright\\s+(.+)/i.exec line\n        @copyright = copyright[1] || ''\n\n      else if note = /^@note\\s+(.+)/i.exec line\n        @notes ?= []\n        @notes.push note[1] || ''\n\n      else if todo = /^@todo\\s+(.+)/i.exec line\n        @todos ?= []\n        @todos.push todo[1] || ''\n\n      else if example = /^@example(?:\\s+(.+))?/i.exec line\n        title = example[1] || ''\n        code = []\n\n        while /^\\s{2}.*/.test(lines[0]) or (/^$/.test(lines[0]) and /^\\s{2}.*/.test(lines[1]))\n          code.push lines.shift().substring(2)\n\n        if code.length isnt 0\n          @examples ?= []\n          @examples.push\n            title: title\n            code: code.join '\\n'\n\n      else if namespace = /^@namespace\\s+(.+)/i.exec line\n        @namespace = namespace[1] || ''\n\n      else if abstract = /^@abstract(?:\\s+(.+))?/i.exec line\n        @abstract = abstract[1] || ''\n\n      else if /^@private/.exec line\n        @private = true\n\n      else if /^@public/.exec line\n        @public = true\n      \n      else if since = /^@since\\s+(.+)/i.exec line\n        @since = since[1] || ''\n\n      else if version = /^@version\\s+(.+)/i.exec line\n        @version = version[1] || ''\n\n      else if deprecated = /^@deprecated(\\s+)?(.*)/i.exec line\n        @deprecated = deprecated[2] || ''\n\n      else if mixin = /^@mixin/i.exec line\n        @mixin = true\n\n      else if concern = /^@concern\\s+(.+)/i.exec line\n        @concerns ?= []\n        @concerns.push concern[1]\n\n      else if include = /^@include\\s+(.+)/i.exec line\n        @includes ?= []\n        @includes.push include[1]\n\n      else if extend = /^@extend\\s+(.+)/i.exec line\n        @extends ?= []\n        @extends.push extend[1]\n\n      else if event = /^@event\\s+(\\S+)(\\s+(.+))?/i.exec line\n        @events ?= []\n\n        innerComment = []\n        innerComment.push(event[2]) if event[2]\n        doc = {}\n\n        while /^\\s{2}.*/.test(lines[0]) || /^\\s*$/.test(lines[0])\n          innerComment.push lines.shift().substring(2)\n\n        @parseTags.call(doc, innerComment) if innerComment\n\n        @events.push\n          name: event[1]\n          documentation: doc\n\n      else if overload = /^@overload\\s+(.+)/i.exec line\n        signature = overload[1]\n        innerComment = []\n\n        while /^\\s{2}.*/.test(lines[0]) || /^\\s*$/.test(lines[0])\n          innerComment.push lines.shift().substring(2)\n\n        if innerComment.length != 0\n          @overloads ?= []\n\n          doc = {}\n          @parseTags.call doc, innerComment\n\n          @overloads.push\n            signature: signature\n            documentation: doc\n\n      else if method = /^@method\\s+(.+)/i.exec line\n        signature = method[1]\n        innerComment = []\n\n        while /^\\s{2}.*/.test(lines[0]) or /^\\s*$/.test(lines[0])\n          innerComment.push lines.shift().substring(2)\n\n        if innerComment.length isnt 0\n          @methods ?= []\n\n          doc = {}\n          @parseTags.call doc, innerComment\n\n          @methods.push\n            signature: signature\n            documentation: doc\n      else\n        comment.push line\n\n    text = comment.join('\\n')\n    @comment = text.trim()\n\n    sentence = /((?:.|\\n)*?[.#][\\s$])/.exec(text)\n    sentence = sentence[1].replace(/\\s*#\\s*$/, '') if sentence\n    @summary = (sentence || text || '').trim()\n\n  inspect: ->\n    {\n      comment: @comment\n      summary: @summary\n      notes: @notes\n      see: @see\n\n      namespace: @namespace\n      abstract: @abstract\n      private: @private\n      public: @public\n      deprecated: @deprecated\n      version: @version\n      since: @since\n\n      authors: @authors\n      copyright: @copyright\n      todos: @todos\n\n      includes: @includes\n      extends: @extends\n      concerns: @concerns\n      \n      examples: @examples\n      \n      params: @params\n      options: @options\n      returns: @returns\n      throws: @throws\n      overloads: @overloads\n\n      events: @events\n      methods: @methods\n      property: @property\n    }\n"
  },
  {
    "path": "lib/entities/class.coffee",
    "content": "Entity     = require '../entity'\nMethod     = require './method'\nVariable   = require './variable'\nProperty   = require './property'\nMixin      = require './mixin'\nMetaMethod = require '../meta/method'\nEntities   = require '../_entities'\nWinston    = require 'winston'\n\nmodule.exports = class Entities.Class extends Entity\n  @name = \"Class\"\n\n  @looksLike: (node) ->\n    node.constructor.name is 'Class' && node.variable?.base?.value?\n\n  constructor: (@environment, @file, @node) ->\n    [@selfish, @container] = @determineContainment(@node.variable)\n\n    @parent        = @fetchParent(@node.parent) if @node.parent\n    @documentation = @node.documentation\n\n    @name        = @fetchName(@node.variable, @selfish, @container)\n    @methods     = []\n    @variables   = []\n    @properties  = []\n    @includes    = []\n    @extends     = []\n    @concerns    = []\n    @descendants = []\n\n    name = @name.split('.')\n    @basename  = name.pop()\n    @namespace = @documentation?.namespace or name.join('.')\n\n    if @environment.options.debug\n      Winston.info \"Creating new Class Entity\"\n      Winston.info \" name: \" + @name\n      Winston.info \" documentation: \" + @documentation\n\n    @\n\n  # Determines if the class definition at given node is using @assignation\n  # and if in such case this class is nested into another one\n  determineContainment: (node) ->\n    if node.base?.value == 'this'\n      selfish   = true                   # class @Foo\n      container = @lookup(Class, node)   # class Foo \\n class @Bar\n\n    [selfish, container]\n\n  fetchParent: (source) ->\n    [selfish, container] = @determineContainment(source)\n    @fetchName(source, selfish, container)\n\n  fetchName: (source, selfish, container) ->\n    name = []\n\n    # Nested class definition inherits \n    # the namespace from the containing class\n    name.push container.name if container\n\n    # Take the actual name of assignation unless\n    # we are prefixed with `@`\n    name.push source.base.value if !selfish && source.base?\n\n    # Get the rest of actual assignation path\n    if source.properties\n      name.push prop.name.value for prop in source.properties when prop.name?\n\n    # Here comes the magic!\n    name.join('.')\n\n  linkify: ->\n    super\n\n    for node in @node.body.expressions\n\n      if node.constructor.name == 'Assign' && node.entities?\n        @linkifyAssign(node)\n\n      if node.constructor.name == 'Value'\n        @linkifyValue(node)\n\n      if node.constructor.name == 'Call' && node.entities?\n        @linkifyCall(node)\n\n    @linkifyParent()\n    @linkifyMixins()\n\n  linkifyAssign: (node) ->\n    for entity in node.entities when entity.selfish\n      # class Foo\n      #   @foo = ->            \n      if entity instanceof Method\n        entity.kind = 'static'\n        @methods.push entity\n\n      # class Foo\n      #   @foo = 'test'\n      if entity instanceof Variable \n        entity.kind = 'static'\n        @variables.push entity\n\n  linkifyValue: (node) ->\n    for property in node.base.properties when property.entities?\n      for entity in property.entities\n        # class Foo\n        #   @foo: ->\n        #   foo: ->\n        if entity instanceof Method\n          entity.kind = if entity.selfish then 'static' else 'dynamic'\n          @methods.push entity\n\n        # class Foo\n        #   foo: 'test'\n        if entity instanceof Variable \n          entity.kind = if entity.selfish then 'static' else 'dynamic'\n          @variables.push entity\n\n        if entity instanceof Property\n          @properties.push entity\n\n  linkifyCall: (node) ->\n    for entity in node.entities\n      if entity instanceof Property\n        found = false\n\n        for property in @properties\n          if property.name == entity.name\n            entity.unite(property)\n            found = true\n\n        @properties.push(entity) unless found\n\n  linkifyParent: ->\n    if @parent\n      @parent = @environment.find(Class, @parent) || @parent\n      @parent.descendants?.push(@)\n\n  linkifyMixins: ->\n    if @documentation?.includes?\n      for entry in @documentation.includes\n        mixin = @environment.find(Mixin, entry) || entry\n        @includes.push(mixin)\n        mixin.inclusions?.push(@)\n\n    if @documentation?.extends?\n      for entry in @documentation.extends\n        mixin = @environment.find(Mixin, entry) || entry\n        @extends.push(mixin)\n        mixin.extensions?.push(@)\n\n    if @documentation?.concerns?\n      for entry in @documentation.concerns\n        mixin = @environment.find(Mixin, entry) || entry\n        @concerns.push(mixin)\n        mixin.concerns?.push(@)\n\n  effectiveMethods: ->\n    return @_effectiveMethods if @_effectiveMethods?\n\n    @_effectiveMethods = []\n\n    for method in @methods\n      @_effectiveMethods.push(MetaMethod.fromMethodEntity method)\n\n    if @documentation?.methods\n      for method in @documentation.methods\n        @_effectiveMethods.push(MetaMethod.fromDocumentationMethod method)\n\n    @_effectiveMethods\n\n  allMethods: ->\n    methods = @effectiveMethods().map (method) =>\n      {\n        entity: method\n        owner: @\n      }\n\n    resolvers =\n      includes: 'effectiveInclusionMethods'\n      extends: 'effectiveExtensionMethods'\n      concerns: 'effectiveConcernMethods'\n\n    for storage, resolver of resolvers\n      for mixin in @[storage]\n        if mixin[resolver]\n          for method in mixin[resolver]()\n            methods.push\n              entity: method\n              owner: mixin\n\n    methods\n\n  inherited: (getter) ->\n    return [] if !@parent || !@parent.name?\n\n    found   = {}\n    entries = getter()\n\n    entries.filter (entry) ->\n      found[entry.entity.name] = true unless found[entry.entity.name]\n\n  inheritedMethods: ->\n    @_inheritedMethods ||= @inherited =>\n      @parent.allMethods().concat @parent.inheritedMethods()\n\n  inheritedVariables: ->\n    @_inheritedVariables ||= @inherited =>\n      variables = @parent.variables.map (variable) =>\n        {\n          entity: variable\n          owner: @parent\n        }\n\n      variables.concat @parent.inheritedVariables()\n\n  inheritedProperties: ->\n    @_inheritedProperties ||= @inherited =>\n      properties = @parent.properties.map (property) =>\n        {\n          entity: property\n          owner: @parent\n        }\n\n      properties.concat @parent.inheritedProperties()\n\n  inspect: ->\n    {\n      file:          @file.path\n      documentation: @documentation?.inspect()\n      selfish:       @selfish\n      name:          @name\n      container:     @container?.inspect()\n      parent:        @parent?.inspect?() || @parent\n      methods:       @methods.map (x) -> x.inspect()\n      variables:     @variables.map (x) -> x.inspect()\n      properties:    @properties.map (x) -> x.inspect()\n      includes:      @includes.map (x) -> x.inspect?() || x\n      extends:       @extends.map (x) -> x.inspect?() || x\n      concerns:      @concerns.map (x) -> x.inspect?() || x\n    }"
  },
  {
    "path": "lib/entities/extra.coffee",
    "content": "FS       = require 'fs'\nPath     = require 'path'\nEntities = require '../_entities'\nMarkdown = require '../tools/markdown'\n\nmodule.exports = class Entities.Extra\n  @name: \"Extra\"\n\n  constructor: (@environment, @path) ->\n    @name    = Path.relative(@environment.options.basedir, @path)\n    @content = FS.readFileSync @path, 'utf-8'\n\n    if @environment.options.debug\n      Winston.info \"Creating new Extra Entity\"\n      Winston.info \" name: \" + @name\n      Winston.info \" content: \" + @content\n\n    @parsed = if /\\.(markdown|md)$/.test @path\n      Markdown.convert(@content)\n    else\n      \"<p>\"+@content.replace(/\\n/g, '<br/>')+\"</p>\"\n\n  linkify: ->\n\n  inspect: ->\n    {\n      path: @path,\n      parsed: @parsed\n    }"
  },
  {
    "path": "lib/entities/file.coffee",
    "content": "Entity     = require '../entity'\nPath       = require 'path'\nMethod     = require './method'\nVariable   = require './variable'\nMixin      = require './mixin'\nClass      = require './class'\nMetaMethod = require '../meta/method'\nEntities   = require '../_entities'\nWinston    = require 'winston'\n\nmodule.exports = class Entities.File extends Entity\n  @Name: \"File\"\n\n  constructor: (@environment, @path, @node) ->\n    @file      = @\n    @name      = Path.relative(@environment.options.basedir, @path)\n    @basename  = Path.basename(@name)\n    @dirname   = Path.dirname(@name)\n    @methods   = []\n    @variables = []\n    @mixins    = []\n    @classes   = []\n    if @environment.options.debug\n      Winston.info \"Creating new File Entity\"\n      Winston.info \" name: \" + @name\n      Winston.info \" path: \" + @path\n\n  linkify: ->\n    super\n\n    for node in @node.expressions\n      # Checking direct members\n      unless entities = node.entities\n        # And members prefixed with `module.exports =`\n        if node.variable?.base?.value == 'module'\n          if node.variable?.properties?[0]?.name?.value == 'exports'\n            entities = node.value?.entities\n\n      if entities\n        for entity in entities\n          if entity instanceof Method\n            @methods.push(entity) if entity.name.length > 0\n          if entity instanceof Variable\n            @variables.push entity\n          if entity instanceof Mixin\n            @mixins.push entity\n          if entity instanceof Class\n            @classes.push entity\n\n  effectiveMethods: ->\n    @_effectiveMethods ||= @methods.map (method) -> MetaMethod.fromMethodEntity method\n\n  inspect: ->\n    {\n      file:          @name\n      methods:       @methods.map (x) -> x.inspect()\n      variables:     @variables.map (x) -> x.inspect()\n    }\n"
  },
  {
    "path": "lib/entities/method.coffee",
    "content": "Entity    = require '../entity'\nParameter = require '../meta/parameter'\nEntities  = require '../_entities'\nWinston = require 'winston'\n\nmodule.exports = class Entities.Method extends Entity\n  @name: \"Method\"\n\n  @looksLike: (node) ->\n    node.constructor.name == 'Assign' && node.value?.constructor.name == 'Code'\n\n  constructor: (@environment, @file, @node) ->\n    Winston.info \"Creating new Method Entity\" if @environment.options.debug\n\n    @name = [@node.variable.base.value]\n    @name.push prop.name.value for prop in @node.variable.properties when prop.name?\n\n    if @name[0] == 'this'\n      @selfish = true\n      @name    = @name.slice(1)\n\n    if @name[0] == 'module' && @name[1] == 'exports'\n      @name = @name.slice(2)\n\n    if @name[0] == 'exports'\n      @name = @name.slice(1)\n\n    @name  = @name.join('.')\n    @bound = @node.value.bound\n\n    @documentation = @node.documentation\n\n    @parameters = @node.value.params.map (node) ->\n      Parameter.fromNode(node)\n\n    if @environment.options.debug\n      Winston.info \" name: \" + @name\n      Winston.info \" documentation: \" + @documentation\n\n  inspect: ->\n    {\n      file:          @file.path\n      name:          @name\n      bound:         @bound\n      documentation: @documentation?.inspect()\n      selfish:       @selfish\n      kind:          @kind\n      parameters:    @parameters.map (x) -> x.inspect()\n    }\n"
  },
  {
    "path": "lib/entities/mixin.coffee",
    "content": "Entity     = require '../entity'\nMethod     = require './method'\nVariable   = require './variable'\nMetaMethod = require '../meta/method'\nEntities   = require '../_entities'\nWinston    = require 'winston'\n\nmodule.exports = class Entities.Mixin extends Entity\n  @name: \"Mixin\"\n\n  @looksLike: (node) ->\n    node.constructor.name == 'Assign' && node.value?.base?.properties?\n\n  @is: (node) ->\n    node.documentation?.mixin && super(node)\n\n  @isConcernSection: (node) ->\n    node.constructor.name == 'Assign' &&\n    node.value?.constructor.name == 'Value' &&\n    (\n      node.variable.base.value == 'ClassMethods' ||\n      node.variable.base.value == 'InstanceMethods'\n    )\n\n  constructor: (@environment, @file, @node) ->\n    [@name, @selfish] = @fetchName()\n\n    @documentation = @node.documentation\n    @methods       = []\n    @variables     = []\n    @inclusions    = []\n    @extensions    = []\n    @concerns      = []\n\n    for property in @node.value.base.properties\n      # Recognize assigned code on the mixin\n      @concern = true if @constructor.isConcernSection(property)\n\n    if @concern\n      @classMethods = []\n      @instanceMethods = []\n\n    name = @name.split('.')\n    @basename  = name.pop()\n    @namespace = @documentation?.namespace or name.join('.')\n    if @environment.options.debug\n      Winston.info \"Creating new Mixin Entity\"\n      Winston.info \" name: \" + @name\n      Winston.info \" documentation: \" + @documentation\n\n\n  linkify: ->\n    super\n\n    @grabMethods @methods, @node\n\n    if @concern\n      for property in @node.value.base.properties\n        # Recognize concerns as inner mixins\n        if property.value?.constructor.name is 'Value'\n          switch property.variable.base.value\n            when 'ClassMethods'\n              @grabMethods @classMethods, property\n\n            when 'InstanceMethods'\n              @grabMethods @instanceMethods, property\n\n  grabMethods: (container, node) ->\n    for property in node.value.base.properties\n      if property.entities?\n        for entity in property.entities\n          # Foo =\n          #   foo: ->\n          container.push entity if entity instanceof Method\n\n  aggregateEffectiveMethods: (kind) ->\n    methods   = []\n    overrides = {}\n\n    overrides.kind = kind if kind?\n\n    for method in @methods\n      methods.push(MetaMethod.fromMethodEntity method, overrides)\n\n    if @documentation.methods\n      for method in @documentation.methods\n        methods.push(MetaMethod.fromDocumentationMethod method, overrides)\n\n    methods\n\n  effectiveMethods: ->\n    return @effectiveConcernMethods() if @concern\n    @_effectiveMethods ||= @aggregateEffectiveMethods()\n\n  effectiveInclusionMethods: ->\n    @_effectiveInclusionMethods ||= @aggregateEffectiveMethods('dynamic')\n\n  effectiveExtensionMethods: ->\n    @_effectiveExtensionMethods ||= @aggregateEffectiveMethods('static')\n\n  effectiveConcernMethods: ->\n    return @_effectiveConcernMethods if @_effectiveConcernMethods?\n\n    @_effectiveConcernMethods = []\n\n    for method in @classMethods\n      @_effectiveConcernMethods.push(MetaMethod.fromMethodEntity method, kind: 'static')\n\n    for method in @instanceMethods\n      @_effectiveConcernMethods.push(MetaMethod.fromMethodEntity method, kind: 'dynamic')\n\n    if @documentation.methods\n      for method in @documentation.methods\n        @_effectiveConcernMethods.push(MetaMethod.fromDocumentationMethod method)\n\n    @_effectiveConcernMethods\n\n  inspect: ->\n    {\n      file:            @file.path\n      name:            @name\n      concern:         @concern\n      documentation:   @documentation?.inspect()\n      selfish:         @selfish\n      methods:         @methods.map (x) -> x.inspect()\n      classMethods:    @classMethods?.map (x) -> x.inspect()\n      instanceMethods: @instanceMethods?.map (x) -> x.inspect()\n      variables:       @variables.map (x) -> x.inspect()\n    }\n"
  },
  {
    "path": "lib/entities/property.coffee",
    "content": "Entity   = require '../entity'\nEntities = require '../_entities'\nWinston  = require 'winston'\n\n#\n# Supported formats:\n#\n#   foo: []\n#\n#   get foo: ->\n#   set foo: (value) ->\n#\n#   @property 'foo'\n#   @property 'foo', ->\n#   @property 'foo',\n#     get: ->\n#     set: (value) ->\n#\nmodule.exports = class Entities.Property extends Entity\n  @name: \"Property\"\n\n  @looksLike: (node) ->\n    (node.constructor.name == 'Assign' && node.value?.constructor.name == 'Value') ||\n    (node.constructor.name == 'Call' && node.variable?.base?.value == 'this') ||\n    (\n      node.constructor.name == 'Call' &&\n      node.args?[0]?.base?.properties?[0]?.variable?.base?.value &&\n      (node.variable?.base?.value == 'set' || node.variable?.base?.value == 'get')\n    )\n\n  @is: (node) ->\n    super(node) && (\n      node.documentation?.property || \n      (node.constructor.name == 'Call' && node.variable?.base?.value != 'this')\n    )\n\n  constructor: (@environment, @file, @node) ->\n    if @node.constructor.name == 'Call' && @node.variable?.base?.value != 'this'\n      @name   = @node.args[0].base.properties[0].variable.base.value\n      @setter = @node.variable.base.value == 'set'\n      @getter = @node.variable.base.value == 'get'\n    else if @node.constructor.name == 'Call' && @node.variable?.base?.value == 'this'\n      @name = @node.args[0].base.value.replace(/[\"']/g, '')\n\n      if @node.args.length > 1\n        if @node.args[1].constructor.name == 'Value'\n          # @property 'test', {set: ->, get: ->}\n          @setter = false\n          @getter = false\n          for property in @node.args[1].base?.properties\n            @setter = true if property.variable?.base.value == 'set'\n            @getter = true if property.variable?.base.value == 'get'\n        else\n          # @property 'test', ->\n          @setter = false\n          @getter = true\n      else\n        # @property 'test'\n        @setter = true\n        @getter = true\n    else\n      [@name, @selfish] = @fetchVariableName()\n      @setter = true\n      @getter = true\n\n    @documentation = @node.documentation\n    if @environment.options.debug\n      Winston.info \"Creating new Property Entity\"\n      Winston.info \" name: \" + @name\n      Winston.info \" documentation: \" + @documentation\n\n\n  fetchVariableName: ->\n    @fetchName()\n\n  unite: (property) ->\n    for attribute in ['documentation', 'getter', 'setter']\n      property[attribute] = @[attribute] = property[attribute] || @[attribute]\n\n  inspect: ->\n    {\n      file:          @file.path\n      name:          @name\n      getter:        @getter\n      setter:        @setter\n      documentation: @documentation?.inspect()\n    }\n"
  },
  {
    "path": "lib/entities/variable.coffee",
    "content": "Entity   = require '../entity'\nEntities = require '../_entities'\nWinston  = require 'winston'\n\nmodule.exports = class Entities.Variable extends Entity\n  @name: \"Variable\"\n\n  @looksLike: (node) ->\n    node.constructor.name == 'Assign' && node.value?.constructor.name == 'Value' && node.variable?.base?.value? && node.value.base.constructor.name isnt 'Call'\n\n  @is: (node) ->\n    !node.documentation?.property && !node.documentation?.mixin && super(node)\n\n  constructor: (@environment, @file, @node) ->\n    [@name, @selfish] = @fetchName()\n\n    @constant = /^[A-Z_-]*$/.test @name\n\n    try\n      @value = @node.value.base.compile\n        indent: ''\n\n      # Workaround to replace CoffeeScript internal\n      # representations with something reasonable\n      @value = 'undefined' if @value == 'void 0'\n\n    @documentation = @node.documentation\n    if @environment.options.debug\n      Winston.info \"Creating new Variable Entity\"\n      Winston.info \" name: \" + @name\n      Winston.info \" documentation: \" + @documentation\n\n  inspect: ->\n    {\n      file:          @file.path\n      name:          @name\n      constant:      @constant\n      value:         @value\n      documentation: @documentation?.inspect()\n      selfish:       @selfish\n      kind:          @kind\n    }\n"
  },
  {
    "path": "lib/entity.coffee",
    "content": "# Base class for all entities.\n#\nmodule.exports = class Entity\n\n  @is: (node) ->\n    !node.documentation?.nodoc\n\n  linkify: ->\n\n  visible: ->\n    @environment.options.private || !@node.documentation?.private\n\n  fetchName: ->\n    name = [@node.variable.base.value]\n    name.push prop.name.value for prop in @node.variable.properties when prop.name?\n\n    if name[0] == 'this'\n      selfish = true\n      name    = name.slice(1)\n\n    [name.join('.'), selfish]\n\n  lookup: (Entity, node) ->\n    if node.ancestor\n      if node.ancestor.entities?\n        for entity in node.ancestor.entities\n          return entity if entity instanceof Entity\n\n      @lookup Entity, node.ancestor"
  },
  {
    "path": "lib/environment.coffee",
    "content": "FS        = require 'fs'\nPath      = require 'path'\nTraverser = require './traverser'\n\nFile      = require './entities/file'\nClass     = require './entities/class'\nMethod    = require './entities/method'\nVariable  = require './entities/variable'\nProperty  = require './entities/property'\nMixin     = require './entities/mixin'\nExtra     = require './entities/extra'\nwalkdir   = require 'walkdir'\nWinston   = require 'winston'\n\nmodule.exports = class Environment\n\n  @read: (files, options={}) ->\n    files       = [files] unless Array.isArray(files)\n    environment = new @(options)\n\n    environment.readCoffee(file) for file in files\n    environment.linkify()\n    environment\n\n  constructor: (@options={}) ->\n    @version = JSON.parse(\n      FS.readFileSync(Path.join(__dirname, '..', 'package.json'), 'utf-8')\n    )['version']\n\n    @options.name    ?= 'Unknown Project'\n    @options.verbose ?= false\n    @options.debug   ?= false\n    @options.cautios ?= false\n    @options.quiet   ?= false\n    @options.closure ?= false\n    @options.output  ?= 'doc'\n    @options.basedir ?= process.cwd()\n\n    @needles    = []\n    @entities   = []\n    @references = {}\n    @parsed     = {}\n\n    @needles.push Class\n    @needles.push Method\n    @needles.push Variable\n    @needles.push Property\n    @needles.push Mixin\n\n  readCoffee: (file) ->\n    return if @parsed[file]\n    Winston.info(\"Parsing Codo file #{file}\") if @options.verbose\n\n    try\n      Traverser.read(file, @)\n    catch error\n      throw error if @options.debug\n      Winston.error(\"Cannot parse Coffee file #{file}: #{error.message}\") unless @options.quiet\n    finally\n      @parsed[file] = true\n\n  readExtra: (file) ->\n    return if @parsed[file]\n    Winston.info(\"Parsing Extra file #{file}\") if @options.verbose\n\n    try\n      @registerEntity(new Extra @, file)\n    catch error\n      throw error if @options.debug\n      Winston.error(\"Cannot parse Extra file #{file}: #{error.message}\") unless @options.quiet\n    finally\n      @parsed[file] = true\n\n  registerEntity: (entity) ->\n    @entities.push entity\n\n  all: (Entity, haystack = []) ->\n    for entity in @entities\n      haystack.push(entity) if entity instanceof Entity\n    haystack\n\n  visibleFiles:     -> @allFiles()\n  visibleClasses:   -> @allClasses().filter((x) -> x.visible())\n  visibleMixins:    -> @allMixins().filter((x) -> x.visible())\n  visibleExtras:    -> @allExtras()\n  visibleMethods:   -> @allMethods().filter((x) -> x.entity.visible && x.owner.visible())\n  visibleVariables: -> @allVariables()\n\n  allFiles:   -> @_allFiles   ||= @all(File)\n  allClasses: -> @_allClasses ||= @all(Class)\n  allMixins:  -> @_allMixins  ||= @all(Mixin)\n  allExtras:  -> @_allExtras  ||= @all(Extra)\n  allMethods: ->\n    return @_allMethods if @_allMethods?\n\n    @_allMethods = []\n\n    for source in [@allFiles(), @allClasses(), @allMixins()]\n      for entry in source\n        for method in entry.effectiveMethods()\n          @_allMethods.push {entity: method, owner: entry}\n\n    @_allMethods.sort (a, b) ->\n      return -1 if a.entity.name < b.entity.name\n      return 1  if a.entity.name > b.entity.name\n      return 0\n\n  allVariables: ->\n    return @_allVariables if @_allVariables?\n\n    @_allVariables = []\n\n    for source in [@allFiles(), @allClasses(), @allMixins()]\n      for entry in source\n        for variable in entry.variables\n          @_allVariables.push {entity: variable, owner: entry}\n\n    @_allVariables\n\n\n  find: (Entity, name) ->\n    for entity in @entities\n      if entity instanceof Entity && entity.name == name\n        return entity\n\n  findReadme: ->\n    @find Extra, Path.relative(@options.basedir, @options.readme)\n\n  linkify: ->\n    entity.linkify() for entity in @entities\n\n    for basics in [@allFiles(), @allClasses(), @allMixins()]\n      for basic in basics\n        @references[basic.name] = basic\n\n    for variable in @allVariables()\n      keyword = variable.owner.name + '.' + variable.entity.name\n      @references[keyword] = variable\n\n    for method in @allMethods()\n      keyword = method.owner.name + method.entity.shortSignature()\n      @references[keyword] = method\n\n  reference: (needle, context='') ->\n    needle = needle.split(' ')[0]\n\n    if @references[needle]\n      @references[needle]\n    else if @references[context+needle]\n      @references[context+needle]\n    else\n      needle\n\n  inspect: ->\n    @entities.map (entity) -> entity.inspect()"
  },
  {
    "path": "lib/meta/method.coffee",
    "content": "Parameter = require './parameter'\nMeta      = require '../_meta'\n\nmodule.exports = class Meta.Method\n\n  @override: (options, overrides) ->\n    options[key] = value for key, value of overrides\n    options\n\n  @fromMethodEntity: (entity, overrides={}) ->\n    options =\n      name: entity.name.match(/[$A-Za-z_\\x7f-\\uffff][$\\w\\x7f-\\uffff]*/)?[0]\n      kind: entity.kind || ''\n      bound: entity.bound\n      parameters: entity.parameters.map (x) -> x.toString()\n      visible: entity.visible()\n      documentation: entity.documentation\n\n    new @(@override options, overrides)\n\n  @fromDocumentationMethod: (entry, overrides={}) ->\n    kind = switch entry.signature[0]\n      when '#'\n        'dynamic'\n      when '.'\n        'static'\n\n    options =\n      name: entry.signature.replace /^[\\#\\.]?[\"']?([^\\(\"']+)\\(.+/, '$1'\n      kind: kind || ''\n      parameters: Parameter.fromSignature(entry.signature).map (x) -> x.toString()\n      documentation: entry.documentation\n      visible: true # force this to be always visible\n\n    new @(@override options, overrides)\n\n  constructor: (options={}) ->\n    @constructor.override @, options\n\n  effectiveOverloads: ->\n    return @_effectiveOverloads if @_effectiveOverloads?\n\n    @_effectiveOverloads = []\n\n    if @documentation?.overloads\n      for overload in @documentation.overloads\n        @_effectiveOverloads.push(Method.fromDocumentationMethod overload)\n    else\n      @_effectiveOverloads.push(@)\n\n    @_effectiveOverloads\n\n  kindSignature: ->\n    switch @kind\n      when 'dynamic'\n        '#'\n      when 'static'\n        '.'\n      else\n        '~'\n\n  shortSignature: ->\n    @kindSignature() + @name\n\n  typeSignature: ->\n    '('+(@documentation?.returns?.type || 'void')+')'\n\n  paramsSignature: ->\n    '('+@parameters.join(', ')+')'\n\n  inspect: ->\n    {\n      name: @name,\n      kind: @kind,\n      bound: @bound,\n      parameters: @parameters\n    }\n"
  },
  {
    "path": "lib/meta/parameter.coffee",
    "content": "CoffeeScript = require 'coffee-script'\nMeta         = require '../_meta'\n\nmodule.exports = class Meta.Parameter\n\n  @fromNode: (node) ->\n    new @ @fetchName(node), !!node.splat, @fetchDefault(node)\n\n  @fromSignature: (signature) ->\n    signature = signature.replace /^.([^\\(]+)/, \"x=\"\n    nodes = CoffeeScript.nodes(\"#{signature} ->\").expressions[0].value.params\n    nodes.map (node) => @fromNode(node)\n\n  @fetchName: (node) ->\n    # Normal attribute `do: (it) ->`\n    name = node.name.value\n\n    # Named parameters a la python:\n    #  `make_fac : ({numerator, divisor}) ->`\n    # Also works for class constructors:\n    #  `constructor : ( { @name, @key, opts }) ->\n    unless name\n      if (o = node.name.objects)?\n        vars = for v in o\n          if v.base\n            if v.base.value is 'this' then v.properties[0].name.value\n            else v.base.value\n          else if v.variable && v.value\n            \"#{v.variable.base.value}:#{v.value.base.value}\"\n          else throw new Error('Unhandled syntax')\n        name = \"{#{vars.join ', '}}\"\n\n    # Assigned attributes `do: (@it) ->`\n    unless name\n      if node.name.properties\n        name = node.name.properties[0]?.name.value\n\n    name\n\n  @fetchDefault: (node) ->\n    try\n      node.value?.compile\n        indent: ''\n\n    catch error\n      if node?.value?.base?.value is 'this'\n        value = node.value.properties[0]?.name.compile\n          indent: ''\n\n        \"@#{value}\"\n\n  constructor: (@name, @splat, @default) ->\n\n  toString: ->\n    splat = '...' if @splat\n    defauld = \" = #{@default}\" if @default\n\n    [@name, splat, defauld].join('')\n\n  inspect: ->\n    {\n      name: @name\n      splat: @splat\n      default: @default\n    }\n"
  },
  {
    "path": "lib/tools/markdown.coffee",
    "content": "marked = require 'marked'\nTools  = require '../_tools'\n\n# It looks like all the markdown libraries for node doesn't get\n# GitHub flavored markdown right. This helper class post-processes\n# the best available output from the marked library to conform to\n# GHM. In addition the allowed tags can be limited.\n#\nmodule.exports = class Tools.Markdown\n\n  # Tags to keep when parsing is limited\n  @limitedTags: 'a,abbr,acronym,b,big,cite,code,del,em,i,ins,sub,sup,span,small,strike,strong,q,tt,u'\n\n  # Convert markdown to Html. If the param `limit`\n  # is true, then all unwanted elements are stripped from the\n  # result and also all existing newlines.\n  #\n  # @param [String] markdown the markdown markup\n  # @param [Boolean] limit if elements should be limited\n  #\n  @convert: (markdown, limit = false, allowed = Markdown.limitedTags) ->\n    return if markdown is undefined\n\n    html = marked(markdown)\n\n    if limit\n      html = html.replace(/\\n/, ' ')\n      html = Markdown.limit(html, allowed)\n\n    # Remove newlines around open and closing paragraph tags\n    html = html.replace /(?:\\n+)?<(\\/?p)>(?:\\n+)?/mg, '<$1>'\n\n    # Add '.html' to relative markdown links\n    html = html.replace /href=\"(?!https?:\\/\\/)(.*\\.md)\"/mg, 'href=\"$1.html\"'\n\n    html\n\n  # Strips all unwanted tag from the html\n  #\n  # @param [String] html the Html to clean\n  # @param [String] allowed the comma separated list of allowed tags\n  # @return [String] the cleaned Html\n  #\n  @limit: (html, allowed) ->\n    allowed = allowed.split ','\n\n    replace = (html) ->\n      result = html.replace /<([a-z0-9]+)\\s*(?:\\s[^>]+)?>([\\s\\S]+?)<\\/\\1>/g, (match, tag, text) ->\n        if allowed.indexOf(tag) is -1 then text else match\n      if result == html\n        result\n      else\n        replace(result)\n    replace(html)\n\n"
  },
  {
    "path": "lib/tools/referencer.coffee",
    "content": "Tools = require '../_tools'\n\nmodule.exports = class Tools.Referencer\n\n  constructor: (@environment) ->\n\n  resolve: (text, replacer) ->\n    # Make curly braces within code blocks undetectable\n    text = text.replace /\\`[^\\`]*\\`/mg, (match) -> match.replace(/\\{/mg, \"\\u0091\").replace(/\\}/mg, \"\\u0092\")\n\n    # Search for references and replace them\n    text = text.replace /\\{([^\\}]*)\\}/gm, (match, link) =>\n      link  = link.split(' ')\n      href  = link.shift()\n      label = link.join(' ')\n\n      replacement = @environment.reference(href)\n\n      if replacement != href || /\\:\\/\\/\\w+((\\:\\d+)?\\/\\S*)?/.test(href)\n        replacer replacement, label || href\n      else\n        match\n\n    # Restore curly braces within code blocks\n    text = text.replace /\\`[^\\`]*\\`/mg, (match) -> match.replace(/\\u0091/mg, '{').replace(/\\u0092/mg, '}')\n"
  },
  {
    "path": "lib/traverser.coffee",
    "content": "FS            = require 'fs'\n_             = require 'underscore'\n_.str         = require 'underscore.string'\nCoffeeScript  = require 'coffee-script'\nEnvironment   = require './environment'\nDocumentation = require './documentation'\nFile          = require './entities/file'\nWinston       = require 'winston'\n\n#\n# The class takes CS nodes tree and recursively injects\n# additional meta-data into it:\n#\n#   1. For each possible node it tries every registered\n#      entity and pushes an instance of it into tree if it suites.\n#   2. For every suitable node it finds the suitable comment block\n#      respecting things like `this.` and `module.exports =` and\n#      links it to the tree as well.\n#\n# Since the transformation is happening upside down, nested entities\n# can interact with initialized parents (for instance a class can find\n# parent class; method can find the class/mixin/file it belongs to).\n#\nmodule.exports = class Traverser\n\n  @read: (file, environment) ->\n    content = FS.readFileSync(file, 'utf8')\n    content = @convertComments(content, environment.options.closure) unless environment.options.cautios\n\n    new @(file, content, environment)\n\n  # Attach each parent to its children, so we are able\n  # to traverse the ancestor parse tree. Since the\n  # parent attribute is already used in the class node,\n  # the parent is stored as `ancestor`.\n  #\n  # @param [Base] nodes the CoffeeScript nodes\n  #\n  @linkAncestors: (node) ->\n    node.eachChild (child) =>\n      child.ancestor = node\n      @linkAncestors child\n\n    node\n\n  # Convert the comments to block comments,\n  # so they appear in the nodes.\n  #\n  # The methods replaces starting # symbols with invisible\n  # unicode whitespace to keep empty lines formatted.\n  #\n  # @param [String] content the CoffeeScript file content\n  #\n  @convertComments: (content, closure=false) ->\n    result         = []\n    comment        = []\n    inComment      = false\n    inBlockComment = false\n    indentComment  = 0\n\n    for line in content.split('\\n')\n\n      blockComment = /^\\s*#{3}/.exec(line) && !/^\\s*#{3}.+#{3}/.exec(line)\n\n      if blockComment || inBlockComment\n        line = line.replace /#{3}\\*/, \"###\" if closure\n        inBlockComment = !inBlockComment if blockComment\n        result.push line\n      else\n        commentLine = /^(\\s*#)\\s?(\\s*.*)/.exec(line)\n        if commentLine\n          if inComment\n            comment.push @whitespace(indentComment) + commentLine[2]?.replace /#/g, \"\\u0091#\"\n          else\n            inComment = true\n            indentComment =  commentLine[1].length - 1\n\n            comment.push @whitespace(indentComment) + '###'\n            comment.push @whitespace(indentComment) + commentLine[2]?.replace /#/g, \"\\u0091#\"\n        else\n          if inComment\n            inComment = false\n            comment.push @whitespace(indentComment) + '###'\n\n            # Push here comments only before certain lines\n            if ///\n                 ( # class Foo\n                   class\\s*@?[$A-Za-z_\\x7f-\\uffff][$\\w\\x7f-\\uffff]*\n                 | # variable =\n                   ^\\s*[$A-Za-z_\\x7f-\\uffff][$\\w\\x7f-\\uffff.]*\\s+\\=\n                 | # method: ->\n                   (?:[$A-Za-z_\\x7f-\\uffff][$\\w\\x7f-\\uffff]*|[\"'].*[\"'])\\s*:\\s*(\\(.*\\)\\s*)?[-=]>\n                 | # @method = ->\n                   @[A-Za-z_\\x7f-\\uffff][$\\w\\x7f-\\uffff]*\\s*=\\s*(\\(.*\\)\\s*)?[-=]>\n                 | # CONSTANT\n                   ^\\s*@[$A-Z_][A-Z_]*\n                 | # property:\n                   ^\\s*[$A-Za-z_\\x7f-\\uffff][$\\w\\x7f-\\uffff]*:\n                 | # @property 'foo'\n                   @[A-Za-z_\\x7f-\\uffff][$\\w\\x7f-\\uffff]*\\s+['\"].+['\"]\n                 )\n               ///.exec line\n\n              result.push c for c in comment\n\n            comment = []\n\n          result.push line\n\n    result.join('\\n')\n\n  # Whitespace helper function\n  #\n  # @param [Number] n the number of spaces\n  # @return [String] the space string\n  #\n  @whitespace: (n) ->\n    a = []\n    while a.length < n\n      a.push ' '\n    a.join ''\n\n  constructor: (@path, @content, @environment) ->\n    @environment ?= new Environment\n    @history      = []\n    @root         = @constructor.linkAncestors(CoffeeScript.nodes @content)\n    @file         = @prepare(@root, @path, File)\n\n    @root.traverseChildren true, (node) =>\n      for Entity in @environment.needles when Entity.looksLike(node)\n        Winston.info \"Adding entity \" + Entity.name if @environment.options.debug\n        @prepare(node, @file, Entity)\n\n      @history.push node\n\n  prepare: (node, file, Entity) ->\n    node.entities ?= []\n\n    unless node.documentation?\n      # Find actual comment node\n      previous = @history[@history.length-1]\n\n      if @environment.options.debug\n        Winston.info \"Type of previous is \" + previous?.constructor.name\n        Winston.info \"History is \" + @history.map (entry) -> entry.constructor.name\n\n      switch previous?.constructor.name\n        # A comment is preceding the entity declaration\n        when 'Comment'\n          doc = previous\n\n        when 'Literal', 'PropertyName'\n          # The node is exported `module.exports = ...`, take the comment before `module`\n          if previous.value is 'exports'\n            previous = @history[@history.length-6]\n            doc = previous if previous?.constructor.name is 'Comment'\n\n        # An assign that is handled as an object by CoffeeScript\n        when 'Obj'\n          if @history[@history.length-2]?.constructor.name is 'Value'\n            previous = @history[@history.length-3]\n            doc = previous if previous?.constructor.name is 'Comment'\n\n        # An operator precedes the definition, e.g. `new class ClassName`\n        when 'Op'\n          previous = @history[@history.length-2]\n          doc = previous if previous?.constructor.name is 'Comment'\n\n      Winston.info \"Doc is \" + doc?.comment if @environment.options.debug\n      if doc?.comment?\n        node.documentation = new Documentation(@leftTrimBlock doc.comment)\n\n    if Entity.is(node)\n      entity = new Entity @environment, file, node\n\n      node.entities.push(entity)\n      @environment.registerEntity(entity)\n\n      entity\n\n  # Detect whitespace on the left and removes\n  # the minimum whitespace ammount.\n  #\n  # The method additionally drops invisible UTF\n  # whitespace introduced by `convertComments`\n  #\n  # @example left trim all lines\n  #   leftTrimBlock(['', '  Escape at maximum speed.', '', '  @param (see #move)', '  '])\n  #   => ['', 'Escape at maximum speed.', '', '@param (see #move)', '']\n  #\n  # This will keep indention for examples intact.\n  #\n  # @param [Array<String>] lines the comment lines\n  # @return [Array<String>] lines left trimmed lines\n  #\n  leftTrimBlock: (text) ->\n    return unless text\n\n    lines = text.replace(/\\u0091/gm, '').split('\\n')\n\n    # Detect minimal left trim amount\n    trimMap = lines.map (line) ->\n      line.length - _.str.ltrim(line).length if line.length != 0\n\n    minimalTrim = _.min _.without(trimMap, undefined)\n\n    # If we have a common amount of left trim\n    if minimalTrim > 0 && minimalTrim < Infinity\n\n      # Trim same amount of left space on each line\n      lines = for line in lines\n        line = line.substring(minimalTrim, line.length)\n        line\n\n    # Strip empty prepending lines\n    lines = lines.slice(1) while lines[0].length == 0\n\n    # Strip empty postponing lines\n    lines = lines.slice(0, -1) while lines[lines.length-1].length == 0\n\n    lines\n\n  inspect: ->\n    @environment.inspect()\n"
  },
  {
    "path": "package.json",
    "content": "{\n  \"name\": \"codo\",\n  \"description\": \"A CoffeeScript documentation generator.\",\n  \"keywords\": [\n    \"coffeescript\",\n    \"doc\"\n  ],\n  \"author\": \"Michael Kessler <michi@netzpiraten.ch>\",\n  \"maintainers\": [\n    {\n      \"name\": \"Michael Kessler\"\n    },\n    {\n      \"name\": \"Boris Staal\"\n    }\n  ],\n  \"version\": \"2.1.2\",\n  \"license\": \"MIT\",\n  \"engines\": {\n    \"node\": \">=0.9.0\"\n  },\n  \"directories\": {\n    \"lib\": \"./src\",\n    \"theme/default/assets\": \"./theme/default/assets\",\n    \"theme/default/templates\": \"./theme/default/templates\"\n  },\n  \"main\": \"./lib/codo.coffee\",\n  \"bin\": {\n    \"codo\": \"./bin/codo\"\n  },\n  \"dependencies\": {\n    \"coffee-script\": \">= 1.6.0\",\n    \"walkdir\": \">= 0.0.2\",\n    \"optimist\": \">= 0.3.0\",\n    \"marked\": \">= 0.2.10\",\n    \"underscore\": \">= 0.1.0\",\n    \"underscore.string\": \">= 0.1.0\",\n    \"haml-coffee\": \">= 0.6.0\",\n    \"mkdirp\": \">= 0.1.0\",\n    \"connect\": \">= 0.1.0\",\n    \"colors\": \">= 1.1.2\",\n    \"async\": \">= 0.1.22\",\n    \"mincer\": \"~0.5.11\",\n    \"stylus\": \"~0.38.0\",\n    \"nib\": \"~1.0.0\",\n    \"winston\": \"~0.8.0\",\n    \"cli-table\": \"~0.2.0\",\n    \"strftime\": \"~0.6.2\"\n  },\n  \"devDependencies\": {\n    \"diff\": \">=2.1.1\",\n    \"jasmine-node\": \">= 1.13.1\",\n    \"deep-eql\": \"*\",\n    \"rimraf\": \"~2.2.2\",\n    \"grunt\": \"~0.4.1\",\n    \"grunt-release\": \"~0.6.0\"\n  },\n  \"homepage\": \"https://github.com/coffeedoc/codo\",\n  \"repository\": {\n    \"type\": \"git\",\n    \"url\": \"git://github.com/coffeedoc/codo.git\"\n  },\n  \"bugs\": {\n    \"url\": \"https://github.com/coffeedoc/codo/issues\"\n  },\n  \"scripts\": {\n    \"test\": \"jasmine-node --coffee spec\"\n  }\n}\n"
  },
  {
    "path": "spec/_templates/angular/angular-with-new.coffee",
    "content": "module.exports = require('angular').module 'module-name', ['some-dependency']\n.factory 'a-factory', ['some-dependency', (someDependency) ->\n  ###\n   This is a testy test class with a documenty documentation\n  ###\n  new class MyTestClass\n]\n.name"
  },
  {
    "path": "spec/_templates/angular/angular-with-new.json",
    "content": "[\n  {\n    \"file\": \"spec/_templates/angular/angular-with-new.coffee\",\n    \"methods\": [],\n    \"variables\": []\n  },\n  {\n    \"file\": \"spec/_templates/angular/angular-with-new.coffee\",\n    \"documentation\": {\n      \"comment\": \"This is a testy test class with a documenty documentation\",\n      \"summary\": \"This is a testy test class with a documenty documentation\"\n    },\n    \"name\": \"MyTestClass\",\n    \"methods\": [],\n    \"variables\": [],\n    \"properties\": [],\n    \"includes\": [],\n    \"extends\": [],\n    \"concerns\": []\n  }\n]"
  },
  {
    "path": "spec/_templates/angular/angular.coffee",
    "content": "module.exports = require('angular').module 'module-name', ['some-dependency']\n.factory 'a-factory', ['some-dependency', (someDependency) ->\n  ###\n   This is a testy test class with a documenty documentation\n  ###\n  class MyTestClass\n]\n.name"
  },
  {
    "path": "spec/_templates/angular/angular.json",
    "content": "[\n  {\n    \"file\": \"spec/_templates/angular/angular.coffee\",\n    \"methods\": [],\n    \"variables\": []\n  },\n  {\n    \"file\": \"spec/_templates/angular/angular.coffee\",\n    \"documentation\": {\n      \"comment\": \"This is a testy test class with a documenty documentation\",\n      \"summary\": \"This is a testy test class with a documenty documentation\"\n    },\n    \"name\": \"MyTestClass\",\n    \"methods\": [],\n    \"variables\": [],\n    \"properties\": [],\n    \"includes\": [],\n    \"extends\": [],\n    \"concerns\": []\n  }\n]"
  },
  {
    "path": "spec/_templates/classes/class_description_markdown.coffee",
    "content": "# Codo - the CoffeeScript API documentation generator\n#\n# # Header 1\n#\n# This is a paragraph.\n#\n# ## Header 2\n#\n# This is a paragraph.\n#\n# ### Header 3\n#\n# This is a paragraph.\n#\n# #### Header 4\n#\n# This is a paragraph.\n#\n# ##### Header 5\n#\n# This is a paragraph.\n#\n# ###### Header 6\n#\n# This is a paragraph.\n#\n# @abstract _Template methods_ must be implemented\n# @note Also notes have _now_ <del>Markdown</del>\n# @todo Allow **markdown** in todos\n#\n# @author Mickey\n# @author **Donald**\n# @copyright _No Copyright_\n# @since **1.0.0**\n# @version _1.1.0_\n# @deprecated **nobody** uses this\n#\nclass TestMarkdownDocumentation\n"
  },
  {
    "path": "spec/_templates/classes/class_description_markdown.json",
    "content": "[\n  {\n    \"file\": \"spec/_templates/classes/class_description_markdown.coffee\",\n    \"methods\": [],\n    \"variables\": []\n  },\n  {\n    \"file\": \"spec/_templates/classes/class_description_markdown.coffee\",\n    \"documentation\": {\n      \"comment\": \"Codo - the CoffeeScript API documentation generator\\n\\n# Header 1\\n\\nThis is a paragraph.\\n\\n## Header 2\\n\\nThis is a paragraph.\\n\\n### Header 3\\n\\nThis is a paragraph.\\n\\n#### Header 4\\n\\nThis is a paragraph.\\n\\n##### Header 5\\n\\nThis is a paragraph.\\n\\n###### Header 6\\n\\nThis is a paragraph.\",\n      \"summary\": \"Codo - the CoffeeScript API documentation generator\",\n      \"notes\": [\n        \"Also notes have _now_ <del>Markdown</del>\"\n      ],\n      \"abstract\": \"_Template methods_ must be implemented\",\n      \"deprecated\": \"**nobody** uses this\",\n      \"version\": \"_1.1.0_\",\n      \"since\": \"**1.0.0**\",\n      \"authors\": [\n        \"Mickey\",\n        \"**Donald**\"\n      ],\n      \"copyright\": \"_No Copyright_\",\n      \"todos\": [\n        \"Allow **markdown** in todos\"\n      ]\n    },\n    \"name\": \"TestMarkdownDocumentation\",\n    \"methods\": [],\n    \"variables\": [],\n    \"properties\": [],\n    \"includes\": [],\n    \"extends\": [],\n    \"concerns\": []\n  }\n]"
  },
  {
    "path": "spec/_templates/classes/class_documentation.coffee",
    "content": "# This is a test class with `inline.dot`. Beware.\n#\n# @note Please use\n#   this carefully\n# @note For internal use only\n#\n# @example\n#   Class.getType('cat')\n#\n# @example Use it in this way\n#   new Class()\n#\n# @example Alternatively also this is possible\n#   cl = Class.for(obj)\n#   cl.execute()\n#\n# @todo Clean up socket handler\n# @todo Refactor\n#   property factory\n# @author Netzpirat\n# @author Plasticman\n# @abstract Each listener implementation must inherit\n# @private\n# @public\n# @deprecated Use other class\n#   which is thread safe\n# @since 1.0.0\n# @version 1.0.2\n#\nclass TestClassDocumentation\n"
  },
  {
    "path": "spec/_templates/classes/class_documentation.json",
    "content": "[\n  {\n    \"file\": \"spec/_templates/classes/class_documentation.coffee\",\n    \"methods\": [],\n    \"variables\": []\n  },\n  {\n    \"file\": \"spec/_templates/classes/class_documentation.coffee\",\n    \"documentation\": {\n      \"comment\": \"This is a test class with `inline.dot`. Beware.\",\n      \"summary\": \"This is a test class with `inline.dot`.\",\n      \"notes\": [\n        \"Please use this carefully\",\n        \"For internal use only\"\n      ],\n      \"abstract\": \"Each listener implementation must inherit\",\n      \"private\": true,\n      \"public\": true,\n      \"deprecated\": \"Use other class which is thread safe\",\n      \"version\": \"1.0.2\",\n      \"since\": \"1.0.0\",\n      \"authors\": [\n        \"Netzpirat\",\n        \"Plasticman\"\n      ],\n      \"todos\": [\n        \"Clean up socket handler\",\n        \"Refactor property factory\"\n      ],\n      \"examples\": [\n        {\n          \"title\": \"\",\n          \"code\": \"Class.getType('cat')\"\n        },\n        {\n          \"title\": \"Use it in this way\",\n          \"code\": \"new Class()\"\n        },\n        {\n          \"title\": \"Alternatively also this is possible\",\n          \"code\": \"cl = Class.for(obj)\\ncl.execute()\"\n        }\n      ]\n    },\n    \"name\": \"TestClassDocumentation\",\n    \"methods\": [],\n    \"variables\": [],\n    \"properties\": [],\n    \"includes\": [],\n    \"extends\": [],\n    \"concerns\": []\n  }\n]\n"
  },
  {
    "path": "spec/_templates/classes/class_extends.coffee",
    "content": "class NS.Clazz extends Another.Clazz\n"
  },
  {
    "path": "spec/_templates/classes/class_extends.json",
    "content": "[\n  {\n    \"file\": \"spec/_templates/classes/class_extends.coffee\",\n    \"methods\": [],\n    \"variables\": []\n  },\n  {\n    \"file\": \"spec/_templates/classes/class_extends.coffee\",\n    \"name\": \"NS.Clazz\",\n    \"parent\": \"Another.Clazz\",\n    \"methods\": [],\n    \"variables\": [],\n    \"properties\": [],\n    \"includes\": [],\n    \"extends\": [],\n    \"concerns\": []\n  }\n]"
  },
  {
    "path": "spec/_templates/classes/empty_class.coffee",
    "content": "class A\n\nclass extends A"
  },
  {
    "path": "spec/_templates/classes/empty_class.json",
    "content": "[\n  {\n    \"file\": \"spec/_templates/classes/empty_class.coffee\",\n    \"methods\": [],\n    \"variables\": []\n  },\n  {\n    \"file\": \"spec/_templates/classes/empty_class.coffee\",\n    \"name\": \"A\",\n    \"methods\": [],\n    \"variables\": [],\n    \"properties\": [],\n    \"includes\": [],\n    \"extends\": [],\n    \"concerns\": []\n  }\n]"
  },
  {
    "path": "spec/_templates/classes/export_class.coffee",
    "content": "# Yep, this should be assigned to the class\nmodule.exports = class TestExportClass\n"
  },
  {
    "path": "spec/_templates/classes/export_class.json",
    "content": "[\n  {\n    \"file\": \"spec/_templates/classes/export_class.coffee\",\n    \"methods\": [],\n    \"variables\": []\n  },\n  {\n    \"file\": \"spec/_templates/classes/export_class.coffee\",\n    \"documentation\": {\n      \"comment\": \"Yep, this should be assigned to the class\",\n      \"summary\": \"Yep, this should be assigned to the class\"\n    },\n    \"name\": \"TestExportClass\",\n    \"methods\": [],\n    \"variables\": [],\n    \"properties\": [],\n    \"includes\": [],\n    \"extends\": [],\n    \"concerns\": []\n  }\n]"
  },
  {
    "path": "spec/_templates/classes/global_class.coffee",
    "content": "# This is a test class\nclass @GlobalTestClass"
  },
  {
    "path": "spec/_templates/classes/global_class.json",
    "content": "[\n  {\n    \"file\": \"spec/_templates/classes/global_class.coffee\",\n    \"methods\": [],\n    \"variables\": []\n  },\n  {\n    \"file\": \"spec/_templates/classes/global_class.coffee\",\n    \"documentation\": {\n      \"comment\": \"This is a test class\",\n      \"summary\": \"This is a test class\"\n    },\n    \"selfish\": true,\n    \"name\": \"GlobalTestClass\",\n    \"methods\": [],\n    \"variables\": [],\n    \"properties\": [],\n    \"includes\": [],\n    \"extends\": [],\n    \"concerns\": []\n  }\n]"
  },
  {
    "path": "spec/_templates/classes/inner_class.coffee",
    "content": "class Tower.Model.Relation.HasMany extends Tower.Model.Relation\n  class @Scope \n  class @Scope2 extends @Scope"
  },
  {
    "path": "spec/_templates/classes/inner_class.json",
    "content": "[\n  {\n    \"file\": \"spec/_templates/classes/inner_class.coffee\",\n    \"methods\": [],\n    \"variables\": []\n  },\n  {\n    \"file\": \"spec/_templates/classes/inner_class.coffee\",\n    \"name\": \"Tower.Model.Relation.HasMany\",\n    \"parent\": \"Tower.Model.Relation\",\n    \"methods\": [],\n    \"variables\": [],\n    \"properties\": [],\n    \"includes\": [],\n    \"extends\": [],\n    \"concerns\": []\n  },\n  {\n    \"file\": \"spec/_templates/classes/inner_class.coffee\",\n    \"selfish\": true,\n    \"name\": \"Tower.Model.Relation.HasMany.Scope\",\n    \"container\": {\n      \"file\": \"spec/_templates/classes/inner_class.coffee\",\n      \"name\": \"Tower.Model.Relation.HasMany\",\n      \"parent\": \"Tower.Model.Relation\",\n      \"methods\": [],\n      \"variables\": [],\n      \"properties\": [],\n      \"includes\": [],\n      \"extends\": [],\n      \"concerns\": []\n    },\n    \"methods\": [],\n    \"variables\": [],\n    \"properties\": [],\n    \"includes\": [],\n    \"extends\": [],\n    \"concerns\": []\n  },\n  {\n    \"file\": \"spec/_templates/classes/inner_class.coffee\",\n    \"selfish\": true,\n    \"name\": \"Tower.Model.Relation.HasMany.Scope2\",\n    \"container\": {\n      \"file\": \"spec/_templates/classes/inner_class.coffee\",\n      \"name\": \"Tower.Model.Relation.HasMany\",\n      \"parent\": \"Tower.Model.Relation\",\n      \"methods\": [],\n      \"variables\": [],\n      \"properties\": [],\n      \"includes\": [],\n      \"extends\": [],\n      \"concerns\": []\n    },\n    \"parent\": {\n      \"file\": \"spec/_templates/classes/inner_class.coffee\",\n      \"selfish\": true,\n      \"name\": \"Tower.Model.Relation.HasMany.Scope\",\n      \"container\": {\n        \"file\": \"spec/_templates/classes/inner_class.coffee\",\n        \"name\": \"Tower.Model.Relation.HasMany\",\n        \"parent\": \"Tower.Model.Relation\",\n        \"methods\": [],\n        \"variables\": [],\n        \"properties\": [],\n        \"includes\": [],\n        \"extends\": [],\n        \"concerns\": []\n      },\n      \"methods\": [],\n      \"variables\": [],\n      \"properties\": [],\n      \"includes\": [],\n      \"extends\": [],\n      \"concerns\": []\n    },\n    \"methods\": [],\n    \"variables\": [],\n    \"properties\": [],\n    \"includes\": [],\n    \"extends\": [],\n    \"concerns\": []\n  }\n]"
  },
  {
    "path": "spec/_templates/classes/namespaced_class.coffee",
    "content": "# Test description\nclass Some.Namespace.MyClass\n\n# Test description\nclass @Another.Namespace.MyClass\n\n# Test description\n# @namespace Manual.Namespace\nclass MyClass"
  },
  {
    "path": "spec/_templates/classes/namespaced_class.json",
    "content": "[\n  {\n    \"file\": \"spec/_templates/classes/namespaced_class.coffee\",\n    \"methods\": [],\n    \"variables\": []\n  },\n  {\n    \"file\": \"spec/_templates/classes/namespaced_class.coffee\",\n    \"documentation\": {\n      \"comment\": \"Test description\",\n      \"summary\": \"Test description\"\n    },\n    \"name\": \"Some.Namespace.MyClass\",\n    \"methods\": [],\n    \"variables\": [],\n    \"properties\": [],\n    \"includes\": [],\n    \"extends\": [],\n    \"concerns\": []\n  },\n  {\n    \"file\": \"spec/_templates/classes/namespaced_class.coffee\",\n    \"documentation\": {\n      \"comment\": \"Test description\",\n      \"summary\": \"Test description\"\n    },\n    \"selfish\": true,\n    \"name\": \"Another.Namespace.MyClass\",\n    \"methods\": [],\n    \"variables\": [],\n    \"properties\": [],\n    \"includes\": [],\n    \"extends\": [],\n    \"concerns\": []\n  },\n  {\n    \"file\": \"spec/_templates/classes/namespaced_class.coffee\",\n    \"documentation\": {\n      \"comment\": \"Test description\",\n      \"summary\": \"Test description\",\n      \"namespace\": \"Manual.Namespace\"\n    },\n    \"name\": \"MyClass\",\n    \"methods\": [],\n    \"variables\": [],\n    \"properties\": [],\n    \"includes\": [],\n    \"extends\": [],\n    \"concerns\": []\n  }\n]"
  },
  {
    "path": "spec/_templates/classes/simple_class.coffee",
    "content": "class MyTestClass\n"
  },
  {
    "path": "spec/_templates/classes/simple_class.json",
    "content": "[\n  {\n    \"file\": \"spec/_templates/classes/simple_class.coffee\",\n    \"methods\": [],\n    \"variables\": []\n  },\n  {\n    \"file\": \"spec/_templates/classes/simple_class.coffee\",\n    \"name\": \"MyTestClass\",\n    \"methods\": [],\n    \"variables\": [],\n    \"properties\": [],\n    \"includes\": [],\n    \"extends\": [],\n    \"concerns\": []\n  }\n]"
  },
  {
    "path": "spec/_templates/complicateds/methods.coffee",
    "content": "# @include Mixin\n# @extend Mixin\n# @concern Concern\n#\n# @method #x(key, value)\n#   Sets a value\n#\nclass Class\n  z: ->\n\n# @mixin\nMixin =\n  m: ->\n\n# @mixin\nConcern =\n  ClassMethods:\n    cs: ->\n\n  InstanceMethods:\n    cd: ->\n\nclass Subclass extends Class\n  x: ->\n\nclass Subsubclass extends Subclass\n  y: ->"
  },
  {
    "path": "spec/_templates/complicateds/variables.coffee",
    "content": "class Class\n  z: '123'\n\nclass Subclass extends Class\n  z: '456'\n\nclass Subsubclass extends Subclass\n  y: '123'"
  },
  {
    "path": "spec/_templates/environment/class.coffee",
    "content": "#\n# @include LookAndFeel\n#\nclass Fluffy"
  },
  {
    "path": "spec/_templates/environment/mixin.coffee",
    "content": "#\n# @mixin\n#\nLookAndFeel =\n  look: ->\n  feel: ->"
  },
  {
    "path": "spec/_templates/environment/result.json",
    "content": "[\n  {\n    \"file\": \"spec/_templates/environment/class.coffee\",\n    \"methods\": [],\n    \"variables\": []\n  },\n  {\n    \"file\": \"spec/_templates/environment/class.coffee\",\n    \"documentation\": {\n      \"comment\": \"\",\n      \"summary\": \"\",\n      \"includes\": [\n        \"LookAndFeel\"\n      ]\n    },\n    \"name\": \"Fluffy\",\n    \"methods\": [],\n    \"variables\": [],\n    \"properties\": [],\n    \"includes\": [\n      {\n        \"file\": \"spec/_templates/environment/mixin.coffee\",\n        \"name\": \"LookAndFeel\",\n        \"documentation\": {\n          \"comment\": \"\",\n          \"summary\": \"\"\n        },\n        \"methods\": [\n          {\n            \"file\": \"spec/_templates/environment/mixin.coffee\",\n            \"name\": \"look\",\n            \"bound\": false,\n            \"parameters\": []\n          },\n          {\n            \"file\": \"spec/_templates/environment/mixin.coffee\",\n            \"name\": \"feel\",\n            \"bound\": false,\n            \"parameters\": []\n          }\n        ],\n        \"variables\": []\n      }\n    ],\n    \"extends\": [],\n    \"concerns\": []\n  },\n  {\n    \"file\": \"spec/_templates/environment/mixin.coffee\",\n    \"methods\": [],\n    \"variables\": []\n  },\n  {\n    \"file\": \"spec/_templates/environment/mixin.coffee\",\n    \"name\": \"LookAndFeel\",\n    \"documentation\": {\n      \"comment\": \"\",\n      \"summary\": \"\"\n    },\n    \"methods\": [\n      {\n        \"file\": \"spec/_templates/environment/mixin.coffee\",\n        \"name\": \"look\",\n        \"bound\": false,\n        \"parameters\": []\n      },\n      {\n        \"file\": \"spec/_templates/environment/mixin.coffee\",\n        \"name\": \"feel\",\n        \"bound\": false,\n        \"parameters\": []\n      }\n    ],\n    \"variables\": []\n  },\n  {\n    \"file\": \"spec/_templates/environment/mixin.coffee\",\n    \"name\": \"look\",\n    \"bound\": false,\n    \"parameters\": []\n  },\n  {\n    \"file\": \"spec/_templates/environment/mixin.coffee\",\n    \"name\": \"feel\",\n    \"bound\": false,\n    \"parameters\": []\n  }\n]"
  },
  {
    "path": "spec/_templates/example/CHANGELOG",
    "content": "Changelog\n\nThis project is actually so incredible that it never changes.\n\nSeriously!!!"
  },
  {
    "path": "spec/_templates/example/README.md",
    "content": "# Readme\n\nThat's how we do it, this is how we do it (c)"
  },
  {
    "path": "spec/_templates/example/package.json",
    "content": "{\n  \"name\": \"example\",\n  \"description\": \"The best ever project about lines and wildness!\",\n  \"keywords\": [\n    \"coffeescript\",\n    \"doc\"\n  ],\n  \"version\": \"0.1.0\"\n}"
  },
  {
    "path": "spec/_templates/example/src/angry_animal.coffee",
    "content": "# Ola-la\n# @abstract\nTROLOLO = 'test'\n\n# @mixin\nExample.AngryAnimal =\n  roar: ->\n\n# Ola-la once more\n#\n# @overload ?globalMethod(a, b)\n#   Overload this animal for once!\n#\n# @deprecated Don't use it anymore!\nglobalMethod = ({a, b}) ->"
  },
  {
    "path": "spec/_templates/example/src/animal.coffee",
    "content": "# Base class for all animals.\n#\n# @note This is not used for codo, its purpose is to show\n#   all possible tags within a class.\n#\n# @todo Provide more examples\n#\n# @example How to subclass an animal\n#   class Lion extends Animal\n#     move: (direction, speed): ->\n#\n# @abstract Each animal implementation must inherit from {Animal}\n#\n# @author Michael Kessler\n# @deprecated This class is not used anymore\n# @version 0.2.0\n# @since 0.1.0\n#\nclass Example.Animal\n\n  # The Answer to the Ultimate Question of Life, the Universe, and Everything\n  @ANSWER = 42\n\n  # Construct a new animal.\n  #\n  # @todo Clean up\n  # @param [String] name the name of the animal\n  # @param [Date] birthDate when the animal was born\n  #\n  constructor: (@name, @birthDate = new Date()) ->\n\n  # Move the animal.\n  #\n  # @example Move an animal\n  #   new Lion('Simba').move('south', 12)\n  #\n  # @abstract\n  # @param [Object] options the moving options\n  # @option options [String] direction the moving direction\n  # @option options [Number] speed the speed in mph\n  #\n  move: (options = {}) ->\n\n  # Copulate another animal.\n  #\n  # @note Don't take it seriously\n  #\n  # @private\n  # @author Michael Kessler\n  # @param [Animal] animal the partner animal\n  # @return [Boolean] true when success\n  # @deprecated Do not copulate\n  # @version 0.2.0\n  # @since 0.1.0\n  #\n  copulate: (animal) =>\n\n  # Moves all animal into the ark.\n  #\n  # @return [Boolean] true when all in Ark\n  #\n  @enterArk: ->\n"
  },
  {
    "path": "spec/_templates/example/src/lion.coffee",
    "content": "# A dangerous lion. Take care.\n#\n# @author Simba\n# @see http://en.wikipedia.org/wiki/Lion\n# @include Example.AngryAnimal\n# @extend MissingMixin\n#\nclass Example.Animal.Lion extends Example.Animal\n\n  # Maximum speed in MPH\n  @MAX_SPEED = 50\n\n  # Move the lion fast\n  #\n  # @param [String] direction the moving direction\n  # @param [Number] speed the moving speed\n  #\n  move: (direction, speed) ->\n    super({ diection: direction, speed: speed })\n\n  # Escape at maximum speed.\n  #\n  # @param (see #move)\n  #\n  escape: (direction) ->\n    @move(direction, @MAX_SPEED)\n"
  },
  {
    "path": "spec/_templates/example/src/over_documented_class.coffee",
    "content": "#\n# This class is SO DOCUMENTED! Seriously, Just look at that! This is so incredible!\n#\n# It even has some links: {http://www.google.com Google for instance} {OverDocumentedClass}\n# {OverDocumentedClass itself} {http://www.github.com} {OverDocumentedMixin~mixed_method}\n# {Casper The ghost!}\n#\n# @abstract It's so abstract! ^_^ {http://www.github.com}\n# @author The great Yoda {http://www.github.com}\n# @include OverDocumentedMixin\n# @include Casper\n# @extend OverDocumentedMixin\n# @extend Casper\n# @copyright The great Yoda {http://www.github.com}\n# @deprecated Don't use this anymore!!11\n# @example Foobar\n#   foo = bar\n# @note Never fortget this thing! {http://www.github.com}\n# @method #virtual_method({a, b})\n#   This is the virtual method ZOMG\n# @private\n# @see www.github.com\n# @since 1.0\n# @todo Run with the wolves {http://www.github.com}\n# @version 1.1\nclass OverDocumentedClass\n\n  # The constant that is SO DOCUMENTED as well (I feel sick about it)\n  # @abstract It's so abstract! ^_^ {http://www.github.com}\n  # @author The great Yoda {http://www.github.com}\n  # @copyright The great Yoda {http://www.github.com}\n  # @deprecated Don't use this anymore!!11\n  # @example Foobar\n  #   foo = bar\n  # @note Never fortget this thing! {http://www.github.com}\n  # @private\n  # @see www.github.com\n  # @since 1.0\n  # @todo Run with the wolves {http://www.github.com}\n  # @version 1.1\n  CONSTANT:\n    foo: 'bar'\n\n  # @property [OverDocumentedClass] Returns the {OverDocumentedClass clone}.\n  @property 'clone',\n    get: -> new OverDocumentedClass\n\n  # @abstract It's so abstract! ^_^ {http://www.github.com}\n  # @author The great Yoda {http://www.github.com}\n  # @copyright The great Yoda {http://www.github.com}\n  # @deprecated Don't use this anymore!!11\n  # @example Foobar\n  #   foo = bar\n  # @note Never fortget this thing! {http://www.github.com}\n  # @private\n  # @see www.github.com\n  # @since 1.0\n  # @todo Run with the wolves {http://www.github.com}\n  # @version 1.1\n  # @throw [OverDocumentedClass] EXCEPTION OMG\n  # @return [OverDocumentedClass] RETVAL OMG\n  # @param [String] foo                 The first parameter\n  # @param [Integer] bar                The second parameter (all of a sudden)\n  # @option options [String] option     The only option (wtf?)\n  # @event simpleEvent\n  # @event notSoSimpleEvent             Having description\n  # @event complicatedEvent\n  #   Having description and parameters\n  #   @param [String]                   The string\n  @class_method: (foo, bar, options={}) ->\n\n  # @abstract It's so abstract! ^_^ {http://www.github.com}\n  # @author The great Yoda {http://www.github.com}\n  # @copyright The great Yoda {http://www.github.com}\n  # @deprecated Don't use this anymore!!11\n  # @example Foobar\n  #   foo = bar\n  # @note Never fortget this thing! {http://www.github.com}\n  # @private\n  # @see www.github.com\n  # @since 1.0\n  # @todo Run with the wolves {http://www.github.com}\n  # @version 1.1\n  # @throw [String] EXCEPTION OMG\n  # @return [String] RETVAL OMG\n  # @overload #instance_method(foo, bar)\n  #   Obviously you can omit the last parameter\n  # @overload #instance_method(foo, bar, options)\n  #   Or you can set it!\n  instance_method: (foo, bar, options={}) ->"
  },
  {
    "path": "spec/_templates/example/src/over_documented_mixin.coffee",
    "content": "#\n# This mixin is SO DOCUMENTED! Seriously, Just look at that! This is so incredible!\n#\n# It even has some links: {http://www.google.com Google for instance} {OverDocumentedMixin}\n# {OverDocumentedMixin itself} {http://www.github.com} {OverDocumentedClass.class_method}\n# {Casper The ghost!}\n#\n# @mixin\n# @abstract It's so abstract! ^_^ {http://www.github.com}\n# @author The great Yoda {http://www.github.com}\n# @copyright The great Yoda {http://www.github.com}\n# @deprecated Don't use this anymore!!11\n# @example Foobar\n#   foo = bar\n# @note Never fortget this thing! {http://www.github.com}\n# @method #virtual_method({a, b})\n#   This is the virtual method ZOMG\n# @private\n# @see www.github.com\n# @since 1.0\n# @todo Run with the wolves {http://www.github.com}\n# @version 1.1\nOverDocumentedMixin =\n\n  mixed_method: ->"
  },
  {
    "path": "spec/_templates/extras/README",
    "content": "This is a test README"
  },
  {
    "path": "spec/_templates/extras/README.md",
    "content": "# This is a test README\n\nWe even have some content here. [With links!](http://github.com)\n\n## And nested menus\n\nAnd even more content\n\n### Actually...\n\nI feel terribly sick writing this. It's like talking to myself.\n\n[With relative markdown links too](SomeOtherFile.md)\n"
  },
  {
    "path": "spec/_templates/files/non_class_file.coffee",
    "content": "# The greeting\nGREETING = 'Hay'\n\n# Hey, check this out!\nmodule.exports = FOO = 'Foo constant!'\n\n# Says hello to a person\n#\n# @param [String] name the name of the person\n#\nhello = (name) ->\n  console.log GREETING, name\n\n# Says bye to a person\n#\n# @param [String] name the name of the person\n#\nbye = (name) ->\n  console.log \"Bye, bye #{ name }\"\n\n# Say hi to a person\n#\n# @param [String] name the name of the person\n#\nmodule.exports.sayHi = (hi) -> console.log \"Hi #{ hi}!\"\n\n# A fooer for fooing foos.\n#\n# @note Foo\nmodule.exports = foo = (foos) ->\n  logger.info 'Fooing...'"
  },
  {
    "path": "spec/_templates/files/non_class_file.json",
    "content": "[\n  {\n    \"file\": \"spec/_templates/files/non_class_file.coffee\",\n    \"methods\": [\n      {\n        \"file\": \"spec/_templates/files/non_class_file.coffee\",\n        \"name\": \"hello\",\n        \"bound\": false,\n        \"documentation\": {\n          \"comment\": \"Says hello to a person\",\n          \"summary\": \"Says hello to a person\",\n          \"params\": [\n            {\n              \"type\": \"String\",\n              \"name\": \"name\",\n              \"description\": \"the name of the person\"\n            }\n          ]\n        },\n        \"parameters\": [\n          {\n            \"name\": \"name\",\n            \"splat\": false\n          }\n        ]\n      },\n      {\n        \"file\": \"spec/_templates/files/non_class_file.coffee\",\n        \"name\": \"bye\",\n        \"bound\": false,\n        \"documentation\": {\n          \"comment\": \"Says bye to a person\",\n          \"summary\": \"Says bye to a person\",\n          \"params\": [\n            {\n              \"type\": \"String\",\n              \"name\": \"name\",\n              \"description\": \"the name of the person\"\n            }\n          ]\n        },\n        \"parameters\": [\n          {\n            \"name\": \"name\",\n            \"splat\": false\n          }\n        ]\n      },\n      {\n        \"file\": \"spec/_templates/files/non_class_file.coffee\",\n        \"name\": \"sayHi\",\n        \"bound\": false,\n        \"documentation\": {\n          \"comment\": \"Say hi to a person\",\n          \"summary\": \"Say hi to a person\",\n          \"params\": [\n            {\n              \"type\": \"String\",\n              \"name\": \"name\",\n              \"description\": \"the name of the person\"\n            }\n          ]\n        },\n        \"parameters\": [\n          {\n            \"name\": \"hi\",\n            \"splat\": false\n          }\n        ]\n      },\n      {\n        \"file\": \"spec/_templates/files/non_class_file.coffee\",\n        \"name\": \"foo\",\n        \"bound\": false,\n        \"documentation\": {\n          \"comment\": \"A fooer for fooing foos.\",\n          \"summary\": \"A fooer for fooing foos.\",\n          \"notes\": [\n            \"Foo\"\n          ]\n        },\n        \"parameters\": [\n          {\n            \"name\": \"foos\",\n            \"splat\": false\n          }\n        ]\n      }\n    ],\n    \"variables\": [\n      {\n        \"file\": \"spec/_templates/files/non_class_file.coffee\",\n        \"name\": \"GREETING\",\n        \"constant\": true,\n        \"value\": \"'Hay'\",\n        \"documentation\": {\n          \"comment\": \"The greeting\",\n          \"summary\": \"The greeting\"\n        }\n      },\n      {\n        \"file\": \"spec/_templates/files/non_class_file.coffee\",\n        \"name\": \"FOO\",\n        \"constant\": true,\n        \"value\": \"'Foo constant!'\",\n        \"documentation\": {\n          \"comment\": \"Hey, check this out!\",\n          \"summary\": \"Hey, check this out!\"\n        }\n      }\n    ]\n  },\n  {\n    \"file\": \"spec/_templates/files/non_class_file.coffee\",\n    \"name\": \"GREETING\",\n    \"constant\": true,\n    \"value\": \"'Hay'\",\n    \"documentation\": {\n      \"comment\": \"The greeting\",\n      \"summary\": \"The greeting\"\n    }\n  },\n  {\n    \"file\": \"spec/_templates/files/non_class_file.coffee\",\n    \"name\": \"FOO\",\n    \"constant\": true,\n    \"value\": \"'Foo constant!'\",\n    \"documentation\": {\n      \"comment\": \"Hey, check this out!\",\n      \"summary\": \"Hey, check this out!\"\n    }\n  },\n  {\n    \"file\": \"spec/_templates/files/non_class_file.coffee\",\n    \"name\": \"hello\",\n    \"bound\": false,\n    \"documentation\": {\n      \"comment\": \"Says hello to a person\",\n      \"summary\": \"Says hello to a person\",\n      \"params\": [\n        {\n          \"type\": \"String\",\n          \"name\": \"name\",\n          \"description\": \"the name of the person\"\n        }\n      ]\n    },\n    \"parameters\": [\n      {\n        \"name\": \"name\",\n        \"splat\": false\n      }\n    ]\n  },\n  {\n    \"file\": \"spec/_templates/files/non_class_file.coffee\",\n    \"name\": \"bye\",\n    \"bound\": false,\n    \"documentation\": {\n      \"comment\": \"Says bye to a person\",\n      \"summary\": \"Says bye to a person\",\n      \"params\": [\n        {\n          \"type\": \"String\",\n          \"name\": \"name\",\n          \"description\": \"the name of the person\"\n        }\n      ]\n    },\n    \"parameters\": [\n      {\n        \"name\": \"name\",\n        \"splat\": false\n      }\n    ]\n  },\n  {\n    \"file\": \"spec/_templates/files/non_class_file.coffee\",\n    \"name\": \"sayHi\",\n    \"bound\": false,\n    \"documentation\": {\n      \"comment\": \"Say hi to a person\",\n      \"summary\": \"Say hi to a person\",\n      \"params\": [\n        {\n          \"type\": \"String\",\n          \"name\": \"name\",\n          \"description\": \"the name of the person\"\n        }\n      ]\n    },\n    \"parameters\": [\n      {\n        \"name\": \"hi\",\n        \"splat\": false\n      }\n    ]\n  },\n  {\n    \"file\": \"spec/_templates/files/non_class_file.coffee\",\n    \"name\": \"foo\",\n    \"bound\": false,\n    \"documentation\": {\n      \"comment\": \"A fooer for fooing foos.\",\n      \"summary\": \"A fooer for fooing foos.\",\n      \"notes\": [\n        \"Foo\"\n      ]\n    },\n    \"parameters\": [\n      {\n        \"name\": \"foos\",\n        \"splat\": false\n      }\n    ]\n  }\n]"
  },
  {
    "path": "spec/_templates/methods/assigned_parameters.coffee",
    "content": "class TestAssignedParameters\n  help: (@me) ->\n"
  },
  {
    "path": "spec/_templates/methods/assigned_parameters.json",
    "content": "[\n  {\n    \"file\": \"spec/_templates/methods/assigned_parameters.coffee\",\n    \"methods\": [],\n    \"variables\": []\n  },\n  {\n    \"file\": \"spec/_templates/methods/assigned_parameters.coffee\",\n    \"name\": \"TestAssignedParameters\",\n    \"methods\": [\n      {\n        \"file\": \"spec/_templates/methods/assigned_parameters.coffee\",\n        \"name\": \"help\",\n        \"bound\": false,\n        \"kind\": \"dynamic\",\n        \"parameters\": [\n          {\n            \"name\": \"me\",\n            \"splat\": false\n          }\n        ]\n      }\n    ],\n    \"variables\": [],\n    \"properties\": [],\n    \"includes\": [],\n    \"extends\": [],\n    \"concerns\": []\n  },\n  {\n    \"file\": \"spec/_templates/methods/assigned_parameters.coffee\",\n    \"name\": \"help\",\n    \"bound\": false,\n    \"kind\": \"dynamic\",\n    \"parameters\": [\n      {\n        \"name\": \"me\",\n        \"splat\": false\n      }\n    ]\n  }\n]"
  },
  {
    "path": "spec/_templates/methods/class_methods.coffee",
    "content": "class TestClassMethods\n\n  @helper: ->\n\n  @another: (a, b) ->\n\n  @withDefault: (a = 2, c, d = 'hi', d, e = { a: 2 }, f = new TestClassMethods()) ->\n\n  @nowWithSpalt: (foo, bar...) ->\n\n  @andSoDoesThis = (foo, bar) ->\n"
  },
  {
    "path": "spec/_templates/methods/class_methods.json",
    "content": "[\n  {\n    \"file\": \"spec/_templates/methods/class_methods.coffee\",\n    \"methods\": [],\n    \"variables\": []\n  },\n  {\n    \"file\": \"spec/_templates/methods/class_methods.coffee\",\n    \"name\": \"TestClassMethods\",\n    \"methods\": [\n      {\n        \"file\": \"spec/_templates/methods/class_methods.coffee\",\n        \"name\": \"helper\",\n        \"bound\": false,\n        \"selfish\": true,\n        \"kind\": \"static\",\n        \"parameters\": []\n      },\n      {\n        \"file\": \"spec/_templates/methods/class_methods.coffee\",\n        \"name\": \"another\",\n        \"bound\": false,\n        \"selfish\": true,\n        \"kind\": \"static\",\n        \"parameters\": [\n          {\n            \"name\": \"a\",\n            \"splat\": false\n          },\n          {\n            \"name\": \"b\",\n            \"splat\": false\n          }\n        ]\n      },\n      {\n        \"file\": \"spec/_templates/methods/class_methods.coffee\",\n        \"name\": \"withDefault\",\n        \"bound\": false,\n        \"selfish\": true,\n        \"kind\": \"static\",\n        \"parameters\": [\n          {\n            \"name\": \"a\",\n            \"splat\": false,\n            \"default\": \"2\"\n          },\n          {\n            \"name\": \"c\",\n            \"splat\": false\n          },\n          {\n            \"name\": \"d\",\n            \"splat\": false,\n            \"default\": \"'hi'\"\n          },\n          {\n            \"name\": \"d\",\n            \"splat\": false\n          },\n          {\n            \"name\": \"e\",\n            \"splat\": false,\n            \"default\": \"{\\n  a: 2\\n}\"\n          },\n          {\n            \"name\": \"f\",\n            \"splat\": false,\n            \"default\": \"new TestClassMethods()\"\n          }\n        ]\n      },\n      {\n        \"file\": \"spec/_templates/methods/class_methods.coffee\",\n        \"name\": \"nowWithSpalt\",\n        \"bound\": false,\n        \"selfish\": true,\n        \"kind\": \"static\",\n        \"parameters\": [\n          {\n            \"name\": \"foo\",\n            \"splat\": false\n          },\n          {\n            \"name\": \"bar\",\n            \"splat\": true\n          }\n        ]\n      },\n      {\n        \"file\": \"spec/_templates/methods/class_methods.coffee\",\n        \"name\": \"andSoDoesThis\",\n        \"bound\": false,\n        \"selfish\": true,\n        \"kind\": \"static\",\n        \"parameters\": [\n          {\n            \"name\": \"foo\",\n            \"splat\": false\n          },\n          {\n            \"name\": \"bar\",\n            \"splat\": false\n          }\n        ]\n      }\n    ],\n    \"variables\": [],\n    \"properties\": [],\n    \"includes\": [],\n    \"extends\": [],\n    \"concerns\": []\n  },\n  {\n    \"file\": \"spec/_templates/methods/class_methods.coffee\",\n    \"name\": \"helper\",\n    \"bound\": false,\n    \"selfish\": true,\n    \"kind\": \"static\",\n    \"parameters\": []\n  },\n  {\n    \"file\": \"spec/_templates/methods/class_methods.coffee\",\n    \"name\": \"another\",\n    \"bound\": false,\n    \"selfish\": true,\n    \"kind\": \"static\",\n    \"parameters\": [\n      {\n        \"name\": \"a\",\n        \"splat\": false\n      },\n      {\n        \"name\": \"b\",\n        \"splat\": false\n      }\n    ]\n  },\n  {\n    \"file\": \"spec/_templates/methods/class_methods.coffee\",\n    \"name\": \"withDefault\",\n    \"bound\": false,\n    \"selfish\": true,\n    \"kind\": \"static\",\n    \"parameters\": [\n      {\n        \"name\": \"a\",\n        \"splat\": false,\n        \"default\": \"2\"\n      },\n      {\n        \"name\": \"c\",\n        \"splat\": false\n      },\n      {\n        \"name\": \"d\",\n        \"splat\": false,\n        \"default\": \"'hi'\"\n      },\n      {\n        \"name\": \"d\",\n        \"splat\": false\n      },\n      {\n        \"name\": \"e\",\n        \"splat\": false,\n        \"default\": \"{\\n  a: 2\\n}\"\n      },\n      {\n        \"name\": \"f\",\n        \"splat\": false,\n        \"default\": \"new TestClassMethods()\"\n      }\n    ]\n  },\n  {\n    \"file\": \"spec/_templates/methods/class_methods.coffee\",\n    \"name\": \"a\",\n    \"constant\": false,\n    \"value\": \"2\"\n  },\n  {\n    \"file\": \"spec/_templates/methods/class_methods.coffee\",\n    \"name\": \"nowWithSpalt\",\n    \"bound\": false,\n    \"selfish\": true,\n    \"kind\": \"static\",\n    \"parameters\": [\n      {\n        \"name\": \"foo\",\n        \"splat\": false\n      },\n      {\n        \"name\": \"bar\",\n        \"splat\": true\n      }\n    ]\n  },\n  {\n    \"file\": \"spec/_templates/methods/class_methods.coffee\",\n    \"name\": \"andSoDoesThis\",\n    \"bound\": false,\n    \"selfish\": true,\n    \"kind\": \"static\",\n    \"parameters\": [\n      {\n        \"name\": \"foo\",\n        \"splat\": false\n      },\n      {\n        \"name\": \"bar\",\n        \"splat\": false\n      }\n    ]\n  }\n]"
  },
  {
    "path": "spec/_templates/methods/curly_method_documentation.coffee",
    "content": "class App.TestMethodDocumentation extends App.Doc\n\n  # Should be overloaded to change fetch limit.\n  #\n  # @return Number of items per fetch\n  #\n  fetchLimit: () -> 5\n\n  # Do it!\n  #\n  # @see #undo for more information\n  #\n  # @private\n  # @param {String} it The thing to do\n  # @param again {Boolean} Do it again\n  # @param {Object} options The do options\n  # @option options {String} speed The speed\n  # @option options {Number} repeat How wany time to repeat\n  # @option options {Array<Tasks>} tasks The tasks to do\n  # @return {Boolean} When successful executed\n  #\n  do: (it, again, options) ->\n\n  # Do it!\n  #\n  # @see #undo for more information\n  #\n  # @private\n  # @param {String} it The thing to do\n  # @param again {Boolean} Do it again\n  # @param {Object} options The do options\n  # @option options {String} speed The speed\n  # @option options {Number} repeat How wany time to repeat\n  # @option options {Array<Tasks>} tasks The tasks to do\n  # @return {Boolean} When successful executed\n  #\n  doWithoutSpace:(it, again, options)->\n\n  # Do it!\n  #\n  # @see {#undo} for more information\n  #\n  # @private\n  # @param {String} it The thing to do\n  # @param {Object} options The do options\n  # @option options {String} speed The speed\n  # @option options {Number} repeat How wany time to repeat\n  # @option options {Array<Tasks>} tasks The tasks to do\n  # @return {Boolean} When successful executed\n  #\n  @lets_do_it = (it, options) ->\n"
  },
  {
    "path": "spec/_templates/methods/curly_method_documentation.json",
    "content": "[\n  {\n    \"file\": \"spec/_templates/methods/curly_method_documentation.coffee\",\n    \"methods\": [],\n    \"variables\": []\n  },\n  {\n    \"file\": \"spec/_templates/methods/curly_method_documentation.coffee\",\n    \"name\": \"App.TestMethodDocumentation\",\n    \"parent\": \"App.Doc\",\n    \"methods\": [\n      {\n        \"file\": \"spec/_templates/methods/curly_method_documentation.coffee\",\n        \"name\": \"fetchLimit\",\n        \"bound\": false,\n        \"documentation\": {\n          \"comment\": \"Should be overloaded to change fetch limit.\",\n          \"summary\": \"Should be overloaded to change fetch limit.\",\n          \"returns\": {\n            \"type\": \"?\",\n            \"description\": \"Number of items per fetch\"\n          }\n        },\n        \"kind\": \"dynamic\",\n        \"parameters\": []\n      },\n      {\n        \"file\": \"spec/_templates/methods/curly_method_documentation.coffee\",\n        \"name\": \"do\",\n        \"bound\": false,\n        \"documentation\": {\n          \"comment\": \"Do it!\",\n          \"summary\": \"Do it!\",\n          \"see\": [\n            {\n              \"reference\": \"#undo\",\n              \"label\": \"for more information\"\n            }\n          ],\n          \"private\": true,\n          \"params\": [\n            {\n              \"type\": \"String\",\n              \"name\": \"it\",\n              \"description\": \"The thing to do\"\n            },\n            {\n              \"type\": \"Boolean\",\n              \"name\": \"again\",\n              \"description\": \"Do it again\"\n            },\n            {\n              \"type\": \"Object\",\n              \"name\": \"options\",\n              \"description\": \"The do options\"\n            }\n          ],\n          \"options\": {\n            \"options\": [\n              {\n                \"type\": \"String\",\n                \"name\": \"speed\",\n                \"description\": \"The speed\"\n              },\n              {\n                \"type\": \"Number\",\n                \"name\": \"repeat\",\n                \"description\": \"How wany time to repeat\"\n              },\n              {\n                \"type\": \"Array<Tasks>\",\n                \"name\": \"tasks\",\n                \"description\": \"The tasks to do\"\n              }\n            ]\n          },\n          \"returns\": {\n            \"type\": \"Boolean\",\n            \"description\": \"When successful executed\"\n          }\n        },\n        \"kind\": \"dynamic\",\n        \"parameters\": [\n          {\n            \"name\": \"it\",\n            \"splat\": false\n          },\n          {\n            \"name\": \"again\",\n            \"splat\": false\n          },\n          {\n            \"name\": \"options\",\n            \"splat\": false\n          }\n        ]\n      },\n      {\n        \"file\": \"spec/_templates/methods/curly_method_documentation.coffee\",\n        \"name\": \"doWithoutSpace\",\n        \"bound\": false,\n        \"documentation\": {\n          \"comment\": \"Do it!\",\n          \"summary\": \"Do it!\",\n          \"see\": [\n            {\n              \"reference\": \"#undo\",\n              \"label\": \"for more information\"\n            }\n          ],\n          \"private\": true,\n          \"params\": [\n            {\n              \"type\": \"String\",\n              \"name\": \"it\",\n              \"description\": \"The thing to do\"\n            },\n            {\n              \"type\": \"Boolean\",\n              \"name\": \"again\",\n              \"description\": \"Do it again\"\n            },\n            {\n              \"type\": \"Object\",\n              \"name\": \"options\",\n              \"description\": \"The do options\"\n            }\n          ],\n          \"options\": {\n            \"options\": [\n              {\n                \"type\": \"String\",\n                \"name\": \"speed\",\n                \"description\": \"The speed\"\n              },\n              {\n                \"type\": \"Number\",\n                \"name\": \"repeat\",\n                \"description\": \"How wany time to repeat\"\n              },\n              {\n                \"type\": \"Array<Tasks>\",\n                \"name\": \"tasks\",\n                \"description\": \"The tasks to do\"\n              }\n            ]\n          },\n          \"returns\": {\n            \"type\": \"Boolean\",\n            \"description\": \"When successful executed\"\n          }\n        },\n        \"kind\": \"dynamic\",\n        \"parameters\": [\n          {\n            \"name\": \"it\",\n            \"splat\": false\n          },\n          {\n            \"name\": \"again\",\n            \"splat\": false\n          },\n          {\n            \"name\": \"options\",\n            \"splat\": false\n          }\n        ]\n      },\n      {\n        \"file\": \"spec/_templates/methods/curly_method_documentation.coffee\",\n        \"name\": \"lets_do_it\",\n        \"bound\": false,\n        \"documentation\": {\n          \"comment\": \"Do it!\",\n          \"summary\": \"Do it!\",\n          \"see\": [\n            {\n              \"reference\": \"{#undo}\",\n              \"label\": \"for more information\"\n            }\n          ],\n          \"private\": true,\n          \"params\": [\n            {\n              \"type\": \"String\",\n              \"name\": \"it\",\n              \"description\": \"The thing to do\"\n            },\n            {\n              \"type\": \"Object\",\n              \"name\": \"options\",\n              \"description\": \"The do options\"\n            }\n          ],\n          \"options\": {\n            \"options\": [\n              {\n                \"type\": \"String\",\n                \"name\": \"speed\",\n                \"description\": \"The speed\"\n              },\n              {\n                \"type\": \"Number\",\n                \"name\": \"repeat\",\n                \"description\": \"How wany time to repeat\"\n              },\n              {\n                \"type\": \"Array<Tasks>\",\n                \"name\": \"tasks\",\n                \"description\": \"The tasks to do\"\n              }\n            ]\n          },\n          \"returns\": {\n            \"type\": \"Boolean\",\n            \"description\": \"When successful executed\"\n          }\n        },\n        \"selfish\": true,\n        \"kind\": \"static\",\n        \"parameters\": [\n          {\n            \"name\": \"it\",\n            \"splat\": false\n          },\n          {\n            \"name\": \"options\",\n            \"splat\": false\n          }\n        ]\n      }\n    ],\n    \"variables\": [],\n    \"properties\": [],\n    \"includes\": [],\n    \"extends\": [],\n    \"concerns\": []\n  },\n  {\n    \"file\": \"spec/_templates/methods/curly_method_documentation.coffee\",\n    \"name\": \"fetchLimit\",\n    \"bound\": false,\n    \"documentation\": {\n      \"comment\": \"Should be overloaded to change fetch limit.\",\n      \"summary\": \"Should be overloaded to change fetch limit.\",\n      \"returns\": {\n        \"type\": \"?\",\n        \"description\": \"Number of items per fetch\"\n      }\n    },\n    \"kind\": \"dynamic\",\n    \"parameters\": []\n  },\n  {\n    \"file\": \"spec/_templates/methods/curly_method_documentation.coffee\",\n    \"name\": \"do\",\n    \"bound\": false,\n    \"documentation\": {\n      \"comment\": \"Do it!\",\n      \"summary\": \"Do it!\",\n      \"see\": [\n        {\n          \"reference\": \"#undo\",\n          \"label\": \"for more information\"\n        }\n      ],\n      \"private\": true,\n      \"params\": [\n        {\n          \"type\": \"String\",\n          \"name\": \"it\",\n          \"description\": \"The thing to do\"\n        },\n        {\n          \"type\": \"Boolean\",\n          \"name\": \"again\",\n          \"description\": \"Do it again\"\n        },\n        {\n          \"type\": \"Object\",\n          \"name\": \"options\",\n          \"description\": \"The do options\"\n        }\n      ],\n      \"options\": {\n        \"options\": [\n          {\n            \"type\": \"String\",\n            \"name\": \"speed\",\n            \"description\": \"The speed\"\n          },\n          {\n            \"type\": \"Number\",\n            \"name\": \"repeat\",\n            \"description\": \"How wany time to repeat\"\n          },\n          {\n            \"type\": \"Array<Tasks>\",\n            \"name\": \"tasks\",\n            \"description\": \"The tasks to do\"\n          }\n        ]\n      },\n      \"returns\": {\n        \"type\": \"Boolean\",\n        \"description\": \"When successful executed\"\n      }\n    },\n    \"kind\": \"dynamic\",\n    \"parameters\": [\n      {\n        \"name\": \"it\",\n        \"splat\": false\n      },\n      {\n        \"name\": \"again\",\n        \"splat\": false\n      },\n      {\n        \"name\": \"options\",\n        \"splat\": false\n      }\n    ]\n  },\n  {\n    \"file\": \"spec/_templates/methods/curly_method_documentation.coffee\",\n    \"name\": \"doWithoutSpace\",\n    \"bound\": false,\n    \"documentation\": {\n      \"comment\": \"Do it!\",\n      \"summary\": \"Do it!\",\n      \"see\": [\n        {\n          \"reference\": \"#undo\",\n          \"label\": \"for more information\"\n        }\n      ],\n      \"private\": true,\n      \"params\": [\n        {\n          \"type\": \"String\",\n          \"name\": \"it\",\n          \"description\": \"The thing to do\"\n        },\n        {\n          \"type\": \"Boolean\",\n          \"name\": \"again\",\n          \"description\": \"Do it again\"\n        },\n        {\n          \"type\": \"Object\",\n          \"name\": \"options\",\n          \"description\": \"The do options\"\n        }\n      ],\n      \"options\": {\n        \"options\": [\n          {\n            \"type\": \"String\",\n            \"name\": \"speed\",\n            \"description\": \"The speed\"\n          },\n          {\n            \"type\": \"Number\",\n            \"name\": \"repeat\",\n            \"description\": \"How wany time to repeat\"\n          },\n          {\n            \"type\": \"Array<Tasks>\",\n            \"name\": \"tasks\",\n            \"description\": \"The tasks to do\"\n          }\n        ]\n      },\n      \"returns\": {\n        \"type\": \"Boolean\",\n        \"description\": \"When successful executed\"\n      }\n    },\n    \"kind\": \"dynamic\",\n    \"parameters\": [\n      {\n        \"name\": \"it\",\n        \"splat\": false\n      },\n      {\n        \"name\": \"again\",\n        \"splat\": false\n      },\n      {\n        \"name\": \"options\",\n        \"splat\": false\n      }\n    ]\n  },\n  {\n    \"file\": \"spec/_templates/methods/curly_method_documentation.coffee\",\n    \"name\": \"lets_do_it\",\n    \"bound\": false,\n    \"documentation\": {\n      \"comment\": \"Do it!\",\n      \"summary\": \"Do it!\",\n      \"see\": [\n        {\n          \"reference\": \"{#undo}\",\n          \"label\": \"for more information\"\n        }\n      ],\n      \"private\": true,\n      \"params\": [\n        {\n          \"type\": \"String\",\n          \"name\": \"it\",\n          \"description\": \"The thing to do\"\n        },\n        {\n          \"type\": \"Object\",\n          \"name\": \"options\",\n          \"description\": \"The do options\"\n        }\n      ],\n      \"options\": {\n        \"options\": [\n          {\n            \"type\": \"String\",\n            \"name\": \"speed\",\n            \"description\": \"The speed\"\n          },\n          {\n            \"type\": \"Number\",\n            \"name\": \"repeat\",\n            \"description\": \"How wany time to repeat\"\n          },\n          {\n            \"type\": \"Array<Tasks>\",\n            \"name\": \"tasks\",\n            \"description\": \"The tasks to do\"\n          }\n        ]\n      },\n      \"returns\": {\n        \"type\": \"Boolean\",\n        \"description\": \"When successful executed\"\n      }\n    },\n    \"selfish\": true,\n    \"kind\": \"static\",\n    \"parameters\": [\n      {\n        \"name\": \"it\",\n        \"splat\": false\n      },\n      {\n        \"name\": \"options\",\n        \"splat\": false\n      }\n    ]\n  }\n]"
  },
  {
    "path": "spec/_templates/methods/dynamic_methods.coffee",
    "content": "# This class has virtual methods, which doesn't\n# exist in the source but appears in the documentation.\n#\n# @method #set(key, value)\n#   Sets a value\n#   @param [String] key describe key param\n#   @param [Object] value describe value param\n#   @option value [String] string\n#   @option value [Integer] number\n#   @option value [Object] whatever\n#\n# @method .get(key)\n#   Gets a value\n#   @param [String] key describe key param\n#   @return [Object] describe value param\n#\n# @method #delete({key, passion}, foo='bar')\n#   Deletes a key from the data.\n#\n#   Another line\n#\n#   @param [String] key describe key param\n#\n#   @example Delete a key.\n#     emv = new Example.Methods.Virtual\n#     emv.set 'foo', 'bar'\n#     val = emv.get 'foo'\n#\n#     # now, proclaim you're done with foo.\n#     emv.delete 'foo'\n#\n# This line should be part of the class description, and the method declaration\n# shouldn't have messed it up.\n#\nclass Example.Methods.Virtual\n"
  },
  {
    "path": "spec/_templates/methods/dynamic_methods.json",
    "content": "[\n  {\n    \"file\": \"spec/_templates/methods/dynamic_methods.coffee\",\n    \"methods\": [],\n    \"variables\": []\n  },\n  {\n    \"file\": \"spec/_templates/methods/dynamic_methods.coffee\",\n    \"documentation\": {\n      \"comment\": \"This class has virtual methods, which doesn't\\nexist in the source but appears in the documentation.\\n\\nThis line should be part of the class description, and the method declaration\\nshouldn't have messed it up.\",\n      \"summary\": \"This class has virtual methods, which doesn't\\nexist in the source but appears in the documentation.\",\n      \"methods\": [\n        {\n          \"signature\": \"#set(key, value)\",\n          \"documentation\": {\n            \"params\": [\n              {\n                \"type\": \"String\",\n                \"name\": \"key\",\n                \"description\": \"describe key param\"\n              },\n              {\n                \"type\": \"Object\",\n                \"name\": \"value\",\n                \"description\": \"describe value param\"\n              }\n            ],\n            \"options\": {\n              \"value\": [\n                {\n                  \"type\": \"String\",\n                  \"name\": \"string\"\n                },\n                {\n                  \"type\": \"Integer\",\n                  \"name\": \"number\"\n                },\n                {\n                  \"type\": \"Object\",\n                  \"name\": \"whatever\"\n                }\n              ]\n            },\n            \"comment\": \"Sets a value\",\n            \"summary\": \"Sets a value\"\n          }\n        },\n        {\n          \"signature\": \".get(key)\",\n          \"documentation\": {\n            \"params\": [\n              {\n                \"type\": \"String\",\n                \"name\": \"key\",\n                \"description\": \"describe key param\"\n              }\n            ],\n            \"returns\": {\n              \"type\": \"Object\",\n              \"description\": \"describe value param\"\n            },\n            \"comment\": \"Gets a value\",\n            \"summary\": \"Gets a value\"\n          }\n        },\n        {\n          \"signature\": \"#delete({key, passion}, foo='bar')\",\n          \"documentation\": {\n            \"params\": [\n              {\n                \"type\": \"String\",\n                \"name\": \"key\",\n                \"description\": \"describe key param\"\n              }\n            ],\n            \"examples\": [\n              {\n                \"title\": \"Delete a key.\",\n                \"code\": \"emv = new Example.Methods.Virtual\\nemv.set 'foo', 'bar'\\nval = emv.get 'foo'\\n\\n# now, proclaim you're done with foo.\\nemv.delete 'foo'\"\n              }\n            ],\n            \"comment\": \"Deletes a key from the data.\\n\\nAnother line\",\n            \"summary\": \"Deletes a key from the data.\"\n          }\n        }\n      ]\n    },\n    \"name\": \"Example.Methods.Virtual\",\n    \"methods\": [],\n    \"variables\": [],\n    \"properties\": [],\n    \"includes\": [],\n    \"extends\": [],\n    \"concerns\": []\n  }\n]"
  },
  {
    "path": "spec/_templates/methods/instance_methods.coffee",
    "content": "class TestInstanceMethods\n\n  helper: ->\n\n  another: (param, obj) ->\n\n  anotherWithValues: (param = 123, obj = { a: 1 }, yup, comp = new TestInstanceMethods()) ->\n\n  nowWithSpalt: (foo, bar...) ->\n\n  bound: =>\n\n  # This is not exposed to the outside world.\n  internalToClassClosure = -> alert 'internal!'\n"
  },
  {
    "path": "spec/_templates/methods/instance_methods.json",
    "content": "[\n  {\n    \"file\": \"spec/_templates/methods/instance_methods.coffee\",\n    \"methods\": [],\n    \"variables\": []\n  },\n  {\n    \"file\": \"spec/_templates/methods/instance_methods.coffee\",\n    \"name\": \"TestInstanceMethods\",\n    \"methods\": [\n      {\n        \"file\": \"spec/_templates/methods/instance_methods.coffee\",\n        \"name\": \"helper\",\n        \"bound\": false,\n        \"kind\": \"dynamic\",\n        \"parameters\": []\n      },\n      {\n        \"file\": \"spec/_templates/methods/instance_methods.coffee\",\n        \"name\": \"another\",\n        \"bound\": false,\n        \"kind\": \"dynamic\",\n        \"parameters\": [\n          {\n            \"name\": \"param\",\n            \"splat\": false\n          },\n          {\n            \"name\": \"obj\",\n            \"splat\": false\n          }\n        ]\n      },\n      {\n        \"file\": \"spec/_templates/methods/instance_methods.coffee\",\n        \"name\": \"anotherWithValues\",\n        \"bound\": false,\n        \"kind\": \"dynamic\",\n        \"parameters\": [\n          {\n            \"name\": \"param\",\n            \"splat\": false,\n            \"default\": \"123\"\n          },\n          {\n            \"name\": \"obj\",\n            \"splat\": false,\n            \"default\": \"{\\n  a: 1\\n}\"\n          },\n          {\n            \"name\": \"yup\",\n            \"splat\": false\n          },\n          {\n            \"name\": \"comp\",\n            \"splat\": false,\n            \"default\": \"new TestInstanceMethods()\"\n          }\n        ]\n      },\n      {\n        \"file\": \"spec/_templates/methods/instance_methods.coffee\",\n        \"name\": \"nowWithSpalt\",\n        \"bound\": false,\n        \"kind\": \"dynamic\",\n        \"parameters\": [\n          {\n            \"name\": \"foo\",\n            \"splat\": false\n          },\n          {\n            \"name\": \"bar\",\n            \"splat\": true\n          }\n        ]\n      },\n      {\n        \"file\": \"spec/_templates/methods/instance_methods.coffee\",\n        \"name\": \"bound\",\n        \"bound\": true,\n        \"kind\": \"dynamic\",\n        \"parameters\": []\n      }\n    ],\n    \"variables\": [],\n    \"properties\": [],\n    \"includes\": [],\n    \"extends\": [],\n    \"concerns\": []\n  },\n  {\n    \"file\": \"spec/_templates/methods/instance_methods.coffee\",\n    \"name\": \"helper\",\n    \"bound\": false,\n    \"kind\": \"dynamic\",\n    \"parameters\": []\n  },\n  {\n    \"file\": \"spec/_templates/methods/instance_methods.coffee\",\n    \"name\": \"another\",\n    \"bound\": false,\n    \"kind\": \"dynamic\",\n    \"parameters\": [\n      {\n        \"name\": \"param\",\n        \"splat\": false\n      },\n      {\n        \"name\": \"obj\",\n        \"splat\": false\n      }\n    ]\n  },\n  {\n    \"file\": \"spec/_templates/methods/instance_methods.coffee\",\n    \"name\": \"anotherWithValues\",\n    \"bound\": false,\n    \"kind\": \"dynamic\",\n    \"parameters\": [\n      {\n        \"name\": \"param\",\n        \"splat\": false,\n        \"default\": \"123\"\n      },\n      {\n        \"name\": \"obj\",\n        \"splat\": false,\n        \"default\": \"{\\n  a: 1\\n}\"\n      },\n      {\n        \"name\": \"yup\",\n        \"splat\": false\n      },\n      {\n        \"name\": \"comp\",\n        \"splat\": false,\n        \"default\": \"new TestInstanceMethods()\"\n      }\n    ]\n  },\n  {\n    \"file\": \"spec/_templates/methods/instance_methods.coffee\",\n    \"name\": \"a\",\n    \"constant\": false,\n    \"value\": \"1\"\n  },\n  {\n    \"file\": \"spec/_templates/methods/instance_methods.coffee\",\n    \"name\": \"nowWithSpalt\",\n    \"bound\": false,\n    \"kind\": \"dynamic\",\n    \"parameters\": [\n      {\n        \"name\": \"foo\",\n        \"splat\": false\n      },\n      {\n        \"name\": \"bar\",\n        \"splat\": true\n      }\n    ]\n  },\n  {\n    \"file\": \"spec/_templates/methods/instance_methods.coffee\",\n    \"name\": \"bound\",\n    \"bound\": true,\n    \"kind\": \"dynamic\",\n    \"parameters\": []\n  },\n  {\n    \"file\": \"spec/_templates/methods/instance_methods.coffee\",\n    \"name\": \"internalToClassClosure\",\n    \"bound\": false,\n    \"documentation\": {\n      \"comment\": \"This is not exposed to the outside world.\",\n      \"summary\": \"This is not exposed to the outside world.\"\n    },\n    \"parameters\": []\n  }\n]"
  },
  {
    "path": "spec/_templates/methods/method_documentation.coffee",
    "content": "class App.TestMethodDocumentation extends App.Doc\n\n  # Should be overloaded to change fetch limit.\n  #\n  # @public\n  # @return Number of items per fetch\n  #\n  fetchLimit: () -> 5\n\n  # Do it!\n  #\n  # @see #undo for more information\n  #\n  # @private\n  # @param [String] it The thing to do\n  # @param again [Boolean] Do it again\n  # @param [Object] options The do options\n  # @option options [String] speed The speed\n  # @option options [Number] repeat How wany time to repeat\n  # @option options [Array<Tasks>] tasks The tasks to do\n  # @return [Boolean] When successful executed\n  # @throw [TypeError] when it can't be done\n  #\n  do: (it, again, options) ->\n\n  # Do it!\n  #\n  # @see #undo for more information\n  #\n  # @private\n  # @param [String] it The thing to do\n  # @param again [Boolean] Do it again\n  # @param [Object] options The do options\n  # @option options [String] speed The speed\n  # @option options [Number] repeat How wany time to repeat\n  # @option options [Array<Tasks>] tasks The tasks to do\n  # @return [Boolean] When successful executed\n  #\n  doWithoutSpace:(it, again, options)->\n\n  # Do it!\n  #\n  # @see {#undo} for more information\n  #\n  # @private\n  # @param [String] it The thing to do\n  # @param [Object] options The do options\n  # @option options [String] speed The speed\n  # @option options [Number] repeat How wany time to repeat\n  # @option options [Array<Tasks>] tasks The tasks to do\n  # @return [Boolean] When successful executed\n  #\n  @lets_do_it = (it, options) ->\n"
  },
  {
    "path": "spec/_templates/methods/method_documentation.json",
    "content": "[\n  {\n    \"file\": \"spec/_templates/methods/method_documentation.coffee\",\n    \"methods\": [],\n    \"variables\": []\n  },\n  {\n    \"file\": \"spec/_templates/methods/method_documentation.coffee\",\n    \"name\": \"App.TestMethodDocumentation\",\n    \"parent\": \"App.Doc\",\n    \"methods\": [\n      {\n        \"file\": \"spec/_templates/methods/method_documentation.coffee\",\n        \"name\": \"fetchLimit\",\n        \"bound\": false,\n        \"documentation\": {\n          \"comment\": \"Should be overloaded to change fetch limit.\",\n          \"summary\": \"Should be overloaded to change fetch limit.\",\n          \"public\": true,\n          \"returns\": {\n            \"type\": \"?\",\n            \"description\": \"Number of items per fetch\"\n          }\n        },\n        \"kind\": \"dynamic\",\n        \"parameters\": []\n      },\n      {\n        \"file\": \"spec/_templates/methods/method_documentation.coffee\",\n        \"name\": \"do\",\n        \"bound\": false,\n        \"documentation\": {\n          \"comment\": \"Do it!\",\n          \"summary\": \"Do it!\",\n          \"see\": [\n            {\n              \"reference\": \"#undo\",\n              \"label\": \"for more information\"\n            }\n          ],\n          \"private\": true,\n          \"params\": [\n            {\n              \"type\": \"String\",\n              \"name\": \"it\",\n              \"description\": \"The thing to do\"\n            },\n            {\n              \"type\": \"Boolean\",\n              \"name\": \"again\",\n              \"description\": \"Do it again\"\n            },\n            {\n              \"type\": \"Object\",\n              \"name\": \"options\",\n              \"description\": \"The do options\"\n            }\n          ],\n          \"options\": {\n            \"options\": [\n              {\n                \"type\": \"String\",\n                \"name\": \"speed\",\n                \"description\": \"The speed\"\n              },\n              {\n                \"type\": \"Number\",\n                \"name\": \"repeat\",\n                \"description\": \"How wany time to repeat\"\n              },\n              {\n                \"type\": \"Array<Tasks>\",\n                \"name\": \"tasks\",\n                \"description\": \"The tasks to do\"\n              }\n            ]\n          },\n          \"returns\": {\n            \"type\": \"Boolean\",\n            \"description\": \"When successful executed\"\n          },\n          \"throws\": [\n            {\n              \"type\": \"TypeError\",\n              \"description\": \"when it can't be done\"\n            }\n          ]\n        },\n        \"kind\": \"dynamic\",\n        \"parameters\": [\n          {\n            \"name\": \"it\",\n            \"splat\": false\n          },\n          {\n            \"name\": \"again\",\n            \"splat\": false\n          },\n          {\n            \"name\": \"options\",\n            \"splat\": false\n          }\n        ]\n      },\n      {\n        \"file\": \"spec/_templates/methods/method_documentation.coffee\",\n        \"name\": \"doWithoutSpace\",\n        \"bound\": false,\n        \"documentation\": {\n          \"comment\": \"Do it!\",\n          \"summary\": \"Do it!\",\n          \"see\": [\n            {\n              \"reference\": \"#undo\",\n              \"label\": \"for more information\"\n            }\n          ],\n          \"private\": true,\n          \"params\": [\n            {\n              \"type\": \"String\",\n              \"name\": \"it\",\n              \"description\": \"The thing to do\"\n            },\n            {\n              \"type\": \"Boolean\",\n              \"name\": \"again\",\n              \"description\": \"Do it again\"\n            },\n            {\n              \"type\": \"Object\",\n              \"name\": \"options\",\n              \"description\": \"The do options\"\n            }\n          ],\n          \"options\": {\n            \"options\": [\n              {\n                \"type\": \"String\",\n                \"name\": \"speed\",\n                \"description\": \"The speed\"\n              },\n              {\n                \"type\": \"Number\",\n                \"name\": \"repeat\",\n                \"description\": \"How wany time to repeat\"\n              },\n              {\n                \"type\": \"Array<Tasks>\",\n                \"name\": \"tasks\",\n                \"description\": \"The tasks to do\"\n              }\n            ]\n          },\n          \"returns\": {\n            \"type\": \"Boolean\",\n            \"description\": \"When successful executed\"\n          }\n        },\n        \"kind\": \"dynamic\",\n        \"parameters\": [\n          {\n            \"name\": \"it\",\n            \"splat\": false\n          },\n          {\n            \"name\": \"again\",\n            \"splat\": false\n          },\n          {\n            \"name\": \"options\",\n            \"splat\": false\n          }\n        ]\n      },\n      {\n        \"file\": \"spec/_templates/methods/method_documentation.coffee\",\n        \"name\": \"lets_do_it\",\n        \"bound\": false,\n        \"documentation\": {\n          \"comment\": \"Do it!\",\n          \"summary\": \"Do it!\",\n          \"see\": [\n            {\n              \"reference\": \"{#undo}\",\n              \"label\": \"for more information\"\n            }\n          ],\n          \"private\": true,\n          \"params\": [\n            {\n              \"type\": \"String\",\n              \"name\": \"it\",\n              \"description\": \"The thing to do\"\n            },\n            {\n              \"type\": \"Object\",\n              \"name\": \"options\",\n              \"description\": \"The do options\"\n            }\n          ],\n          \"options\": {\n            \"options\": [\n              {\n                \"type\": \"String\",\n                \"name\": \"speed\",\n                \"description\": \"The speed\"\n              },\n              {\n                \"type\": \"Number\",\n                \"name\": \"repeat\",\n                \"description\": \"How wany time to repeat\"\n              },\n              {\n                \"type\": \"Array<Tasks>\",\n                \"name\": \"tasks\",\n                \"description\": \"The tasks to do\"\n              }\n            ]\n          },\n          \"returns\": {\n            \"type\": \"Boolean\",\n            \"description\": \"When successful executed\"\n          }\n        },\n        \"selfish\": true,\n        \"kind\": \"static\",\n        \"parameters\": [\n          {\n            \"name\": \"it\",\n            \"splat\": false\n          },\n          {\n            \"name\": \"options\",\n            \"splat\": false\n          }\n        ]\n      }\n    ],\n    \"variables\": [],\n    \"properties\": [],\n    \"includes\": [],\n    \"extends\": [],\n    \"concerns\": []\n  },\n  {\n    \"file\": \"spec/_templates/methods/method_documentation.coffee\",\n    \"name\": \"fetchLimit\",\n    \"bound\": false,\n    \"documentation\": {\n      \"comment\": \"Should be overloaded to change fetch limit.\",\n      \"summary\": \"Should be overloaded to change fetch limit.\",\n      \"public\": true,\n      \"returns\": {\n        \"type\": \"?\",\n        \"description\": \"Number of items per fetch\"\n      }\n    },\n    \"kind\": \"dynamic\",\n    \"parameters\": []\n  },\n  {\n    \"file\": \"spec/_templates/methods/method_documentation.coffee\",\n    \"name\": \"do\",\n    \"bound\": false,\n    \"documentation\": {\n      \"comment\": \"Do it!\",\n      \"summary\": \"Do it!\",\n      \"see\": [\n        {\n          \"reference\": \"#undo\",\n          \"label\": \"for more information\"\n        }\n      ],\n      \"private\": true,\n      \"params\": [\n        {\n          \"type\": \"String\",\n          \"name\": \"it\",\n          \"description\": \"The thing to do\"\n        },\n        {\n          \"type\": \"Boolean\",\n          \"name\": \"again\",\n          \"description\": \"Do it again\"\n        },\n        {\n          \"type\": \"Object\",\n          \"name\": \"options\",\n          \"description\": \"The do options\"\n        }\n      ],\n      \"options\": {\n        \"options\": [\n          {\n            \"type\": \"String\",\n            \"name\": \"speed\",\n            \"description\": \"The speed\"\n          },\n          {\n            \"type\": \"Number\",\n            \"name\": \"repeat\",\n            \"description\": \"How wany time to repeat\"\n          },\n          {\n            \"type\": \"Array<Tasks>\",\n            \"name\": \"tasks\",\n            \"description\": \"The tasks to do\"\n          }\n        ]\n      },\n      \"returns\": {\n        \"type\": \"Boolean\",\n        \"description\": \"When successful executed\"\n      },\n      \"throws\": [\n        {\n          \"type\": \"TypeError\",\n          \"description\": \"when it can't be done\"\n        }\n      ]\n    },\n    \"kind\": \"dynamic\",\n    \"parameters\": [\n      {\n        \"name\": \"it\",\n        \"splat\": false\n      },\n      {\n        \"name\": \"again\",\n        \"splat\": false\n      },\n      {\n        \"name\": \"options\",\n        \"splat\": false\n      }\n    ]\n  },\n  {\n    \"file\": \"spec/_templates/methods/method_documentation.coffee\",\n    \"name\": \"doWithoutSpace\",\n    \"bound\": false,\n    \"documentation\": {\n      \"comment\": \"Do it!\",\n      \"summary\": \"Do it!\",\n      \"see\": [\n        {\n          \"reference\": \"#undo\",\n          \"label\": \"for more information\"\n        }\n      ],\n      \"private\": true,\n      \"params\": [\n        {\n          \"type\": \"String\",\n          \"name\": \"it\",\n          \"description\": \"The thing to do\"\n        },\n        {\n          \"type\": \"Boolean\",\n          \"name\": \"again\",\n          \"description\": \"Do it again\"\n        },\n        {\n          \"type\": \"Object\",\n          \"name\": \"options\",\n          \"description\": \"The do options\"\n        }\n      ],\n      \"options\": {\n        \"options\": [\n          {\n            \"type\": \"String\",\n            \"name\": \"speed\",\n            \"description\": \"The speed\"\n          },\n          {\n            \"type\": \"Number\",\n            \"name\": \"repeat\",\n            \"description\": \"How wany time to repeat\"\n          },\n          {\n            \"type\": \"Array<Tasks>\",\n            \"name\": \"tasks\",\n            \"description\": \"The tasks to do\"\n          }\n        ]\n      },\n      \"returns\": {\n        \"type\": \"Boolean\",\n        \"description\": \"When successful executed\"\n      }\n    },\n    \"kind\": \"dynamic\",\n    \"parameters\": [\n      {\n        \"name\": \"it\",\n        \"splat\": false\n      },\n      {\n        \"name\": \"again\",\n        \"splat\": false\n      },\n      {\n        \"name\": \"options\",\n        \"splat\": false\n      }\n    ]\n  },\n  {\n    \"file\": \"spec/_templates/methods/method_documentation.coffee\",\n    \"name\": \"lets_do_it\",\n    \"bound\": false,\n    \"documentation\": {\n      \"comment\": \"Do it!\",\n      \"summary\": \"Do it!\",\n      \"see\": [\n        {\n          \"reference\": \"{#undo}\",\n          \"label\": \"for more information\"\n        }\n      ],\n      \"private\": true,\n      \"params\": [\n        {\n          \"type\": \"String\",\n          \"name\": \"it\",\n          \"description\": \"The thing to do\"\n        },\n        {\n          \"type\": \"Object\",\n          \"name\": \"options\",\n          \"description\": \"The do options\"\n        }\n      ],\n      \"options\": {\n        \"options\": [\n          {\n            \"type\": \"String\",\n            \"name\": \"speed\",\n            \"description\": \"The speed\"\n          },\n          {\n            \"type\": \"Number\",\n            \"name\": \"repeat\",\n            \"description\": \"How wany time to repeat\"\n          },\n          {\n            \"type\": \"Array<Tasks>\",\n            \"name\": \"tasks\",\n            \"description\": \"The tasks to do\"\n          }\n        ]\n      },\n      \"returns\": {\n        \"type\": \"Boolean\",\n        \"description\": \"When successful executed\"\n      }\n    },\n    \"selfish\": true,\n    \"kind\": \"static\",\n    \"parameters\": [\n      {\n        \"name\": \"it\",\n        \"splat\": false\n      },\n      {\n        \"name\": \"options\",\n        \"splat\": false\n      }\n    ]\n  }\n]\n"
  },
  {
    "path": "spec/_templates/methods/method_events.coffee",
    "content": "class Example.Events\n\n  # This is a generic Events emit method.\n  #\n  # @event theBasic.One\n  # @event theWeirdOne Omg this event is so weird o_O\n  # @event theComplicatedOne\n  #   This is the complicated event yo\n  #   @param [String] the incredible string\n  #\n  # This should be more description for the method itself, and events\n  # shouldn't have messed it up.\n  #\n  emit: (args...) ->\n"
  },
  {
    "path": "spec/_templates/methods/method_events.json",
    "content": "[\n  {\n    \"file\": \"spec/_templates/methods/method_events.coffee\",\n    \"methods\": [],\n    \"variables\": []\n  },\n  {\n    \"file\": \"spec/_templates/methods/method_events.coffee\",\n    \"name\": \"Example.Events\",\n    \"methods\": [\n      {\n        \"file\": \"spec/_templates/methods/method_events.coffee\",\n        \"name\": \"emit\",\n        \"bound\": false,\n        \"documentation\": {\n          \"comment\": \"This is a generic Events emit method.\\n\\nThis should be more description for the method itself, and events\\nshouldn't have messed it up.\",\n          \"summary\": \"This is a generic Events emit method.\",\n          \"events\": [\n            {\n              \"name\": \"theBasic.One\",\n              \"documentation\": {\n                \"comment\": \"\",\n                \"summary\": \"\"\n              }\n            },\n            {\n              \"name\": \"theWeirdOne\",\n              \"documentation\": {\n                \"comment\": \"Omg this event is so weird o_O\",\n                \"summary\": \"Omg this event is so weird o_O\"\n              }\n            },\n            {\n              \"name\": \"theComplicatedOne\",\n              \"documentation\": {\n                \"params\": [\n                  {\n                    \"type\": \"String\",\n                    \"name\": \"the\",\n                    \"description\": \"incredible string\"\n                  }\n                ],\n                \"comment\": \"This is the complicated event yo\",\n                \"summary\": \"This is the complicated event yo\"\n              }\n            }\n          ]\n        },\n        \"kind\": \"dynamic\",\n        \"parameters\": [\n          {\n            \"name\": \"args\",\n            \"splat\": true\n          }\n        ]\n      }\n    ],\n    \"variables\": [],\n    \"properties\": [],\n    \"includes\": [],\n    \"extends\": [],\n    \"concerns\": []\n  },\n  {\n    \"file\": \"spec/_templates/methods/method_events.coffee\",\n    \"name\": \"emit\",\n    \"bound\": false,\n    \"documentation\": {\n      \"comment\": \"This is a generic Events emit method.\\n\\nThis should be more description for the method itself, and events\\nshouldn't have messed it up.\",\n      \"summary\": \"This is a generic Events emit method.\",\n      \"events\": [\n        {\n          \"name\": \"theBasic.One\",\n          \"documentation\": {\n            \"comment\": \"\",\n            \"summary\": \"\"\n          }\n        },\n        {\n          \"name\": \"theWeirdOne\",\n          \"documentation\": {\n            \"comment\": \"Omg this event is so weird o_O\",\n            \"summary\": \"Omg this event is so weird o_O\"\n          }\n        },\n        {\n          \"name\": \"theComplicatedOne\",\n          \"documentation\": {\n            \"params\": [\n              {\n                \"type\": \"String\",\n                \"name\": \"the\",\n                \"description\": \"incredible string\"\n              }\n            ],\n            \"comment\": \"This is the complicated event yo\",\n            \"summary\": \"This is the complicated event yo\"\n          }\n        }\n      ]\n    },\n    \"kind\": \"dynamic\",\n    \"parameters\": [\n      {\n        \"name\": \"args\",\n        \"splat\": true\n      }\n    ]\n  }\n]"
  },
  {
    "path": "spec/_templates/methods/method_example.coffee",
    "content": "class TestExample\n\n  # @example Run generation\n  #   codo = require 'codo'\n  #\n  #   file = (filename, content) ->\n  #     console.log \"New file %s with content %s\", filename, content\n  #\n  #   done = (err) ->\n  #     if err\n  #       console.log \"Cannot generate documentation:\", err\n  #     else\n  #       console.log \"Documentation generated\"\n  #\n  #   codo.run file, done\n  run: ->\n"
  },
  {
    "path": "spec/_templates/methods/method_example.json",
    "content": "[\n  {\n    \"file\": \"spec/_templates/methods/method_example.coffee\",\n    \"methods\": [],\n    \"variables\": []\n  },\n  {\n    \"file\": \"spec/_templates/methods/method_example.coffee\",\n    \"name\": \"TestExample\",\n    \"methods\": [\n      {\n        \"file\": \"spec/_templates/methods/method_example.coffee\",\n        \"name\": \"run\",\n        \"bound\": false,\n        \"documentation\": {\n          \"comment\": \"\",\n          \"summary\": \"\",\n          \"examples\": [\n            {\n              \"title\": \"Run generation\",\n              \"code\": \"codo = require 'codo'\\n\\nfile = (filename, content) ->\\n  console.log \\\"New file %s with content %s\\\", filename, content\\n\\ndone = (err) ->\\n  if err\\n    console.log \\\"Cannot generate documentation:\\\", err\\n  else\\n    console.log \\\"Documentation generated\\\"\\n\\ncodo.run file, done\"\n            }\n          ]\n        },\n        \"kind\": \"dynamic\",\n        \"parameters\": []\n      }\n    ],\n    \"variables\": [],\n    \"properties\": [],\n    \"includes\": [],\n    \"extends\": [],\n    \"concerns\": []\n  },\n  {\n    \"file\": \"spec/_templates/methods/method_example.coffee\",\n    \"name\": \"run\",\n    \"bound\": false,\n    \"documentation\": {\n      \"comment\": \"\",\n      \"summary\": \"\",\n      \"examples\": [\n        {\n          \"title\": \"Run generation\",\n          \"code\": \"codo = require 'codo'\\n\\nfile = (filename, content) ->\\n  console.log \\\"New file %s with content %s\\\", filename, content\\n\\ndone = (err) ->\\n  if err\\n    console.log \\\"Cannot generate documentation:\\\", err\\n  else\\n    console.log \\\"Documentation generated\\\"\\n\\ncodo.run file, done\"\n        }\n      ]\n    },\n    \"kind\": \"dynamic\",\n    \"parameters\": []\n  }\n]"
  },
  {
    "path": "spec/_templates/methods/named_parameters.coffee",
    "content": "class TestNamedParameters\n  constructor : ({@cat, @dog, eel}, @fish, gorilla = 400, hog...) ->\n\n  burp : ({a, b, c}, e = 20, {f, g, h}, i = 10) ->\n"
  },
  {
    "path": "spec/_templates/methods/named_parameters.json",
    "content": "[\n  {\n    \"file\": \"spec/_templates/methods/named_parameters.coffee\",\n    \"methods\": [],\n    \"variables\": []\n  },\n  {\n    \"file\": \"spec/_templates/methods/named_parameters.coffee\",\n    \"name\": \"TestNamedParameters\",\n    \"methods\": [\n      {\n        \"file\": \"spec/_templates/methods/named_parameters.coffee\",\n        \"name\": \"constructor\",\n        \"bound\": false,\n        \"kind\": \"dynamic\",\n        \"parameters\": [\n          {\n            \"name\": \"{cat, dog, eel}\",\n            \"splat\": false\n          },\n          {\n            \"name\": \"fish\",\n            \"splat\": false\n          },\n          {\n            \"name\": \"gorilla\",\n            \"splat\": false,\n            \"default\": \"400\"\n          },\n          {\n            \"name\": \"hog\",\n            \"splat\": true\n          }\n        ]\n      },\n      {\n        \"file\": \"spec/_templates/methods/named_parameters.coffee\",\n        \"name\": \"burp\",\n        \"bound\": false,\n        \"kind\": \"dynamic\",\n        \"parameters\": [\n          {\n            \"name\": \"{a, b, c}\",\n            \"splat\": false\n          },\n          {\n            \"name\": \"e\",\n            \"splat\": false,\n            \"default\": \"20\"\n          },\n          {\n            \"name\": \"{f, g, h}\",\n            \"splat\": false\n          },\n          {\n            \"name\": \"i\",\n            \"splat\": false,\n            \"default\": \"10\"\n          }\n        ]\n      }\n    ],\n    \"variables\": [],\n    \"properties\": [],\n    \"includes\": [],\n    \"extends\": [],\n    \"concerns\": []\n  },\n  {\n    \"file\": \"spec/_templates/methods/named_parameters.coffee\",\n    \"name\": \"constructor\",\n    \"bound\": false,\n    \"kind\": \"dynamic\",\n    \"parameters\": [\n      {\n        \"name\": \"{cat, dog, eel}\",\n        \"splat\": false\n      },\n      {\n        \"name\": \"fish\",\n        \"splat\": false\n      },\n      {\n        \"name\": \"gorilla\",\n        \"splat\": false,\n        \"default\": \"400\"\n      },\n      {\n        \"name\": \"hog\",\n        \"splat\": true\n      }\n    ]\n  },\n  {\n    \"file\": \"spec/_templates/methods/named_parameters.coffee\",\n    \"name\": \"burp\",\n    \"bound\": false,\n    \"kind\": \"dynamic\",\n    \"parameters\": [\n      {\n        \"name\": \"{a, b, c}\",\n        \"splat\": false\n      },\n      {\n        \"name\": \"e\",\n        \"splat\": false,\n        \"default\": \"20\"\n      },\n      {\n        \"name\": \"{f, g, h}\",\n        \"splat\": false\n      },\n      {\n        \"name\": \"i\",\n        \"splat\": false,\n        \"default\": \"10\"\n      }\n    ]\n  }\n]"
  },
  {
    "path": "spec/_templates/methods/overload_method.coffee",
    "content": "class Example.Overload\n\n  # This is a generic Store set method.\n  #\n  # @overload set(key, value)\n  #   Sets a value on key\n  #   @param [Symbol] key describe key param\n  #   @param [Object] value describe value param\n  #   @param [Object] options the options\n  #   @option options test [String] the test option\n  #\n  # @overload set(value)\n  #\n  #   Sets a value on the default key `:foo`\n  #\n  #   @param [Object] value describe value param\n  #   @return [Boolean] true when success\n  #\n  # This should be more description for the method itself, and overload\n  # shouldn't have messed it up.\n  #\n  set: (args...) ->\n"
  },
  {
    "path": "spec/_templates/methods/overload_method.json",
    "content": "[\n  {\n    \"file\": \"spec/_templates/methods/overload_method.coffee\",\n    \"methods\": [],\n    \"variables\": []\n  },\n  {\n    \"file\": \"spec/_templates/methods/overload_method.coffee\",\n    \"name\": \"Example.Overload\",\n    \"methods\": [\n      {\n        \"file\": \"spec/_templates/methods/overload_method.coffee\",\n        \"name\": \"set\",\n        \"bound\": false,\n        \"documentation\": {\n          \"comment\": \"This is a generic Store set method.\\n\\nThis should be more description for the method itself, and overload\\nshouldn't have messed it up.\",\n          \"summary\": \"This is a generic Store set method.\",\n          \"overloads\": [\n            {\n              \"signature\": \"set(key, value)\",\n              \"documentation\": {\n                \"params\": [\n                  {\n                    \"type\": \"Symbol\",\n                    \"name\": \"key\",\n                    \"description\": \"describe key param\"\n                  },\n                  {\n                    \"type\": \"Object\",\n                    \"name\": \"value\",\n                    \"description\": \"describe value param\"\n                  },\n                  {\n                    \"type\": \"Object\",\n                    \"name\": \"options\",\n                    \"description\": \"the options\"\n                  }\n                ],\n                \"options\": {\n                  \"options\": [\n                    {\n                      \"type\": \"String\",\n                      \"name\": \"test\",\n                      \"description\": \"the test option\"\n                    }\n                  ]\n                },\n                \"comment\": \"Sets a value on key\",\n                \"summary\": \"Sets a value on key\"\n              }\n            },\n            {\n              \"signature\": \"set(value)\",\n              \"documentation\": {\n                \"params\": [\n                  {\n                    \"type\": \"Object\",\n                    \"name\": \"value\",\n                    \"description\": \"describe value param\"\n                  }\n                ],\n                \"returns\": {\n                  \"type\": \"Boolean\",\n                  \"description\": \"true when success\"\n                },\n                \"comment\": \"Sets a value on the default key `:foo`\",\n                \"summary\": \"Sets a value on the default key `:foo`\"\n              }\n            }\n          ]\n        },\n        \"kind\": \"dynamic\",\n        \"parameters\": [\n          {\n            \"name\": \"args\",\n            \"splat\": true\n          }\n        ]\n      }\n    ],\n    \"variables\": [],\n    \"properties\": [],\n    \"includes\": [],\n    \"extends\": [],\n    \"concerns\": []\n  },\n  {\n    \"file\": \"spec/_templates/methods/overload_method.coffee\",\n    \"name\": \"set\",\n    \"bound\": false,\n    \"documentation\": {\n      \"comment\": \"This is a generic Store set method.\\n\\nThis should be more description for the method itself, and overload\\nshouldn't have messed it up.\",\n      \"summary\": \"This is a generic Store set method.\",\n      \"overloads\": [\n        {\n          \"signature\": \"set(key, value)\",\n          \"documentation\": {\n            \"params\": [\n              {\n                \"type\": \"Symbol\",\n                \"name\": \"key\",\n                \"description\": \"describe key param\"\n              },\n              {\n                \"type\": \"Object\",\n                \"name\": \"value\",\n                \"description\": \"describe value param\"\n              },\n              {\n                \"type\": \"Object\",\n                \"name\": \"options\",\n                \"description\": \"the options\"\n              }\n            ],\n            \"options\": {\n              \"options\": [\n                {\n                  \"type\": \"String\",\n                  \"name\": \"test\",\n                  \"description\": \"the test option\"\n                }\n              ]\n            },\n            \"comment\": \"Sets a value on key\",\n            \"summary\": \"Sets a value on key\"\n          }\n        },\n        {\n          \"signature\": \"set(value)\",\n          \"documentation\": {\n            \"params\": [\n              {\n                \"type\": \"Object\",\n                \"name\": \"value\",\n                \"description\": \"describe value param\"\n              }\n            ],\n            \"returns\": {\n              \"type\": \"Boolean\",\n              \"description\": \"true when success\"\n            },\n            \"comment\": \"Sets a value on the default key `:foo`\",\n            \"summary\": \"Sets a value on the default key `:foo`\"\n          }\n        }\n      ]\n    },\n    \"kind\": \"dynamic\",\n    \"parameters\": [\n      {\n        \"name\": \"args\",\n        \"splat\": true\n      }\n    ]\n  }\n]"
  },
  {
    "path": "spec/_templates/mixins/concern.coffee",
    "content": "# This is my concern\n# @mixin\nExample.Mixins.Concern =\n\n  ClassMethods:\n    # @param [String] a This is the a parameter\n    # @param [String] b This is the a parameter\n    # @param [String] c This is the a parameter\n    a: (a, b, c) ->\n\n    # @param [String] x This is the x parameter\n    # @param [String] y This is the y parameter\n    # @param [String] z This is the z parameter\n    z: (x, y, z) ->\n\n  InstanceMethods:\n    # Say hi\n    # @param [String] to the name\n    hi: (to) ->\n    # Say goodbye\n    # @param [String] to the name\n    goodbye: (to) ->\n\n# @concern Example.Mixins.Concern\nclass Example.Concern\n"
  },
  {
    "path": "spec/_templates/mixins/concern.json",
    "content": "[\n  {\n    \"file\": \"spec/_templates/mixins/concern.coffee\",\n    \"methods\": [],\n    \"variables\": []\n  },\n  {\n    \"file\": \"spec/_templates/mixins/concern.coffee\",\n    \"name\": \"Example.Mixins.Concern\",\n    \"concern\": true,\n    \"documentation\": {\n      \"comment\": \"This is my concern\",\n      \"summary\": \"This is my concern\"\n    },\n    \"methods\": [],\n    \"classMethods\": [\n      {\n        \"file\": \"spec/_templates/mixins/concern.coffee\",\n        \"name\": \"a\",\n        \"bound\": false,\n        \"documentation\": {\n          \"comment\": \"\",\n          \"summary\": \"\",\n          \"params\": [\n            {\n              \"type\": \"String\",\n              \"name\": \"a\",\n              \"description\": \"This is the a parameter\"\n            },\n            {\n              \"type\": \"String\",\n              \"name\": \"b\",\n              \"description\": \"This is the a parameter\"\n            },\n            {\n              \"type\": \"String\",\n              \"name\": \"c\",\n              \"description\": \"This is the a parameter\"\n            }\n          ]\n        },\n        \"parameters\": [\n          {\n            \"name\": \"a\",\n            \"splat\": false\n          },\n          {\n            \"name\": \"b\",\n            \"splat\": false\n          },\n          {\n            \"name\": \"c\",\n            \"splat\": false\n          }\n        ]\n      },\n      {\n        \"file\": \"spec/_templates/mixins/concern.coffee\",\n        \"name\": \"z\",\n        \"bound\": false,\n        \"documentation\": {\n          \"comment\": \"\",\n          \"summary\": \"\",\n          \"params\": [\n            {\n              \"type\": \"String\",\n              \"name\": \"x\",\n              \"description\": \"This is the x parameter\"\n            },\n            {\n              \"type\": \"String\",\n              \"name\": \"y\",\n              \"description\": \"This is the y parameter\"\n            },\n            {\n              \"type\": \"String\",\n              \"name\": \"z\",\n              \"description\": \"This is the z parameter\"\n            }\n          ]\n        },\n        \"parameters\": [\n          {\n            \"name\": \"x\",\n            \"splat\": false\n          },\n          {\n            \"name\": \"y\",\n            \"splat\": false\n          },\n          {\n            \"name\": \"z\",\n            \"splat\": false\n          }\n        ]\n      }\n    ],\n    \"instanceMethods\": [\n      {\n        \"file\": \"spec/_templates/mixins/concern.coffee\",\n        \"name\": \"hi\",\n        \"bound\": false,\n        \"documentation\": {\n          \"comment\": \"Say hi\",\n          \"summary\": \"Say hi\",\n          \"params\": [\n            {\n              \"type\": \"String\",\n              \"name\": \"to\",\n              \"description\": \"the name\"\n            }\n          ]\n        },\n        \"parameters\": [\n          {\n            \"name\": \"to\",\n            \"splat\": false\n          }\n        ]\n      },\n      {\n        \"file\": \"spec/_templates/mixins/concern.coffee\",\n        \"name\": \"goodbye\",\n        \"bound\": false,\n        \"documentation\": {\n          \"comment\": \"Say goodbye\",\n          \"summary\": \"Say goodbye\",\n          \"params\": [\n            {\n              \"type\": \"String\",\n              \"name\": \"to\",\n              \"description\": \"the name\"\n            }\n          ]\n        },\n        \"parameters\": [\n          {\n            \"name\": \"to\",\n            \"splat\": false\n          }\n        ]\n      }\n    ],\n    \"variables\": []\n  },\n  {\n    \"file\": \"spec/_templates/mixins/concern.coffee\",\n    \"name\": \"ClassMethods\",\n    \"constant\": false,\n    \"value\": \"{\\n\\n  /*\\n  @param [String] a This is the a parameter\\n  @param [String] b This is the a parameter\\n  @param [String] c This is the a parameter\\n   */\\n  a: function(a, b, c) {},\\n\\n  /*\\n  @param [String] x This is the x parameter\\n  @param [String] y This is the y parameter\\n  @param [String] z This is the z parameter\\n   */\\n  z: function(x, y, z) {}\\n}\"\n  },\n  {\n    \"file\": \"spec/_templates/mixins/concern.coffee\",\n    \"name\": \"a\",\n    \"bound\": false,\n    \"documentation\": {\n      \"comment\": \"\",\n      \"summary\": \"\",\n      \"params\": [\n        {\n          \"type\": \"String\",\n          \"name\": \"a\",\n          \"description\": \"This is the a parameter\"\n        },\n        {\n          \"type\": \"String\",\n          \"name\": \"b\",\n          \"description\": \"This is the a parameter\"\n        },\n        {\n          \"type\": \"String\",\n          \"name\": \"c\",\n          \"description\": \"This is the a parameter\"\n        }\n      ]\n    },\n    \"parameters\": [\n      {\n        \"name\": \"a\",\n        \"splat\": false\n      },\n      {\n        \"name\": \"b\",\n        \"splat\": false\n      },\n      {\n        \"name\": \"c\",\n        \"splat\": false\n      }\n    ]\n  },\n  {\n    \"file\": \"spec/_templates/mixins/concern.coffee\",\n    \"name\": \"z\",\n    \"bound\": false,\n    \"documentation\": {\n      \"comment\": \"\",\n      \"summary\": \"\",\n      \"params\": [\n        {\n          \"type\": \"String\",\n          \"name\": \"x\",\n          \"description\": \"This is the x parameter\"\n        },\n        {\n          \"type\": \"String\",\n          \"name\": \"y\",\n          \"description\": \"This is the y parameter\"\n        },\n        {\n          \"type\": \"String\",\n          \"name\": \"z\",\n          \"description\": \"This is the z parameter\"\n        }\n      ]\n    },\n    \"parameters\": [\n      {\n        \"name\": \"x\",\n        \"splat\": false\n      },\n      {\n        \"name\": \"y\",\n        \"splat\": false\n      },\n      {\n        \"name\": \"z\",\n        \"splat\": false\n      }\n    ]\n  },\n  {\n    \"file\": \"spec/_templates/mixins/concern.coffee\",\n    \"name\": \"InstanceMethods\",\n    \"constant\": false,\n    \"value\": \"{\\n\\n  /*\\n  Say hi\\n  @param [String] to the name\\n   */\\n  hi: function(to) {},\\n\\n  /*\\n  Say goodbye\\n  @param [String] to the name\\n   */\\n  goodbye: function(to) {}\\n}\"\n  },\n  {\n    \"file\": \"spec/_templates/mixins/concern.coffee\",\n    \"name\": \"hi\",\n    \"bound\": false,\n    \"documentation\": {\n      \"comment\": \"Say hi\",\n      \"summary\": \"Say hi\",\n      \"params\": [\n        {\n          \"type\": \"String\",\n          \"name\": \"to\",\n          \"description\": \"the name\"\n        }\n      ]\n    },\n    \"parameters\": [\n      {\n        \"name\": \"to\",\n        \"splat\": false\n      }\n    ]\n  },\n  {\n    \"file\": \"spec/_templates/mixins/concern.coffee\",\n    \"name\": \"goodbye\",\n    \"bound\": false,\n    \"documentation\": {\n      \"comment\": \"Say goodbye\",\n      \"summary\": \"Say goodbye\",\n      \"params\": [\n        {\n          \"type\": \"String\",\n          \"name\": \"to\",\n          \"description\": \"the name\"\n        }\n      ]\n    },\n    \"parameters\": [\n      {\n        \"name\": \"to\",\n        \"splat\": false\n      }\n    ]\n  },\n  {\n    \"file\": \"spec/_templates/mixins/concern.coffee\",\n    \"documentation\": {\n      \"comment\": \"\",\n      \"summary\": \"\",\n      \"concerns\": [\n        \"Example.Mixins.Concern\"\n      ]\n    },\n    \"name\": \"Example.Concern\",\n    \"methods\": [],\n    \"variables\": [],\n    \"properties\": [],\n    \"includes\": [],\n    \"extends\": [],\n    \"concerns\": [\n      {\n        \"file\": \"spec/_templates/mixins/concern.coffee\",\n        \"name\": \"Example.Mixins.Concern\",\n        \"concern\": true,\n        \"documentation\": {\n          \"comment\": \"This is my concern\",\n          \"summary\": \"This is my concern\"\n        },\n        \"methods\": [],\n        \"classMethods\": [\n          {\n            \"file\": \"spec/_templates/mixins/concern.coffee\",\n            \"name\": \"a\",\n            \"bound\": false,\n            \"documentation\": {\n              \"comment\": \"\",\n              \"summary\": \"\",\n              \"params\": [\n                {\n                  \"type\": \"String\",\n                  \"name\": \"a\",\n                  \"description\": \"This is the a parameter\"\n                },\n                {\n                  \"type\": \"String\",\n                  \"name\": \"b\",\n                  \"description\": \"This is the a parameter\"\n                },\n                {\n                  \"type\": \"String\",\n                  \"name\": \"c\",\n                  \"description\": \"This is the a parameter\"\n                }\n              ]\n            },\n            \"parameters\": [\n              {\n                \"name\": \"a\",\n                \"splat\": false\n              },\n              {\n                \"name\": \"b\",\n                \"splat\": false\n              },\n              {\n                \"name\": \"c\",\n                \"splat\": false\n              }\n            ]\n          },\n          {\n            \"file\": \"spec/_templates/mixins/concern.coffee\",\n            \"name\": \"z\",\n            \"bound\": false,\n            \"documentation\": {\n              \"comment\": \"\",\n              \"summary\": \"\",\n              \"params\": [\n                {\n                  \"type\": \"String\",\n                  \"name\": \"x\",\n                  \"description\": \"This is the x parameter\"\n                },\n                {\n                  \"type\": \"String\",\n                  \"name\": \"y\",\n                  \"description\": \"This is the y parameter\"\n                },\n                {\n                  \"type\": \"String\",\n                  \"name\": \"z\",\n                  \"description\": \"This is the z parameter\"\n                }\n              ]\n            },\n            \"parameters\": [\n              {\n                \"name\": \"x\",\n                \"splat\": false\n              },\n              {\n                \"name\": \"y\",\n                \"splat\": false\n              },\n              {\n                \"name\": \"z\",\n                \"splat\": false\n              }\n            ]\n          }\n        ],\n        \"instanceMethods\": [\n          {\n            \"file\": \"spec/_templates/mixins/concern.coffee\",\n            \"name\": \"hi\",\n            \"bound\": false,\n            \"documentation\": {\n              \"comment\": \"Say hi\",\n              \"summary\": \"Say hi\",\n              \"params\": [\n                {\n                  \"type\": \"String\",\n                  \"name\": \"to\",\n                  \"description\": \"the name\"\n                }\n              ]\n            },\n            \"parameters\": [\n              {\n                \"name\": \"to\",\n                \"splat\": false\n              }\n            ]\n          },\n          {\n            \"file\": \"spec/_templates/mixins/concern.coffee\",\n            \"name\": \"goodbye\",\n            \"bound\": false,\n            \"documentation\": {\n              \"comment\": \"Say goodbye\",\n              \"summary\": \"Say goodbye\",\n              \"params\": [\n                {\n                  \"type\": \"String\",\n                  \"name\": \"to\",\n                  \"description\": \"the name\"\n                }\n              ]\n            },\n            \"parameters\": [\n              {\n                \"name\": \"to\",\n                \"splat\": false\n              }\n            ]\n          }\n        ],\n        \"variables\": []\n      }\n    ]\n  }\n]"
  },
  {
    "path": "spec/_templates/mixins/extend_mixin.coffee",
    "content": "# @mixin\nName.Space.MyMixin =\n  hello: ->\n  goodbye: ->\n\n# @extend Name.Space.MyMixin\nclass SomeNamespace.MyClass\n"
  },
  {
    "path": "spec/_templates/mixins/extend_mixin.json",
    "content": "[\n  {\n    \"file\": \"spec/_templates/mixins/extend_mixin.coffee\",\n    \"methods\": [],\n    \"variables\": []\n  },\n  {\n    \"file\": \"spec/_templates/mixins/extend_mixin.coffee\",\n    \"name\": \"Name.Space.MyMixin\",\n    \"documentation\": {\n      \"comment\": \"\",\n      \"summary\": \"\"\n    },\n    \"methods\": [\n      {\n        \"file\": \"spec/_templates/mixins/extend_mixin.coffee\",\n        \"name\": \"hello\",\n        \"bound\": false,\n        \"parameters\": []\n      },\n      {\n        \"file\": \"spec/_templates/mixins/extend_mixin.coffee\",\n        \"name\": \"goodbye\",\n        \"bound\": false,\n        \"parameters\": []\n      }\n    ],\n    \"variables\": []\n  },\n  {\n    \"file\": \"spec/_templates/mixins/extend_mixin.coffee\",\n    \"name\": \"hello\",\n    \"bound\": false,\n    \"parameters\": []\n  },\n  {\n    \"file\": \"spec/_templates/mixins/extend_mixin.coffee\",\n    \"name\": \"goodbye\",\n    \"bound\": false,\n    \"parameters\": []\n  },\n  {\n    \"file\": \"spec/_templates/mixins/extend_mixin.coffee\",\n    \"documentation\": {\n      \"comment\": \"\",\n      \"summary\": \"\",\n      \"extends\": [\n        \"Name.Space.MyMixin\"\n      ]\n    },\n    \"name\": \"SomeNamespace.MyClass\",\n    \"methods\": [],\n    \"variables\": [],\n    \"properties\": [],\n    \"includes\": [],\n    \"extends\": [\n      {\n        \"file\": \"spec/_templates/mixins/extend_mixin.coffee\",\n        \"name\": \"Name.Space.MyMixin\",\n        \"documentation\": {\n          \"comment\": \"\",\n          \"summary\": \"\"\n        },\n        \"methods\": [\n          {\n            \"file\": \"spec/_templates/mixins/extend_mixin.coffee\",\n            \"name\": \"hello\",\n            \"bound\": false,\n            \"parameters\": []\n          },\n          {\n            \"file\": \"spec/_templates/mixins/extend_mixin.coffee\",\n            \"name\": \"goodbye\",\n            \"bound\": false,\n            \"parameters\": []\n          }\n        ],\n        \"variables\": []\n      }\n    ],\n    \"concerns\": []\n  }\n]"
  },
  {
    "path": "spec/_templates/mixins/include_mixin.coffee",
    "content": "# @mixin\nName.Space.MyMixin =\n  hello: ->\n  goodbye: ->\n\n# @include Name.Space.MyMixin\nclass SomeNamespace.MyClass\n"
  },
  {
    "path": "spec/_templates/mixins/include_mixin.json",
    "content": "[\n  {\n    \"file\": \"spec/_templates/mixins/include_mixin.coffee\",\n    \"methods\": [],\n    \"variables\": []\n  },\n  {\n    \"file\": \"spec/_templates/mixins/include_mixin.coffee\",\n    \"name\": \"Name.Space.MyMixin\",\n    \"documentation\": {\n      \"comment\": \"\",\n      \"summary\": \"\"\n    },\n    \"methods\": [\n      {\n        \"file\": \"spec/_templates/mixins/include_mixin.coffee\",\n        \"name\": \"hello\",\n        \"bound\": false,\n        \"parameters\": []\n      },\n      {\n        \"file\": \"spec/_templates/mixins/include_mixin.coffee\",\n        \"name\": \"goodbye\",\n        \"bound\": false,\n        \"parameters\": []\n      }\n    ],\n    \"variables\": []\n  },\n  {\n    \"file\": \"spec/_templates/mixins/include_mixin.coffee\",\n    \"name\": \"hello\",\n    \"bound\": false,\n    \"parameters\": []\n  },\n  {\n    \"file\": \"spec/_templates/mixins/include_mixin.coffee\",\n    \"name\": \"goodbye\",\n    \"bound\": false,\n    \"parameters\": []\n  },\n  {\n    \"file\": \"spec/_templates/mixins/include_mixin.coffee\",\n    \"documentation\": {\n      \"comment\": \"\",\n      \"summary\": \"\",\n      \"includes\": [\n        \"Name.Space.MyMixin\"\n      ]\n    },\n    \"name\": \"SomeNamespace.MyClass\",\n    \"methods\": [],\n    \"variables\": [],\n    \"properties\": [],\n    \"includes\": [\n      {\n        \"file\": \"spec/_templates/mixins/include_mixin.coffee\",\n        \"name\": \"Name.Space.MyMixin\",\n        \"documentation\": {\n          \"comment\": \"\",\n          \"summary\": \"\"\n        },\n        \"methods\": [\n          {\n            \"file\": \"spec/_templates/mixins/include_mixin.coffee\",\n            \"name\": \"hello\",\n            \"bound\": false,\n            \"parameters\": []\n          },\n          {\n            \"file\": \"spec/_templates/mixins/include_mixin.coffee\",\n            \"name\": \"goodbye\",\n            \"bound\": false,\n            \"parameters\": []\n          }\n        ],\n        \"variables\": []\n      }\n    ],\n    \"extends\": [],\n    \"concerns\": []\n  }\n]"
  },
  {
    "path": "spec/_templates/mixins/missing_mixins.coffee",
    "content": "# @include Name.Space.MyMixin\n# @extend Name.Space.MyMixin\nclass SomeNamespace.MyClass\n"
  },
  {
    "path": "spec/_templates/mixins/missing_mixins.json",
    "content": "[\n  {\n    \"file\": \"spec/_templates/mixins/missing_mixins.coffee\",\n    \"methods\": [],\n    \"variables\": []\n  },\n  {\n    \"file\": \"spec/_templates/mixins/missing_mixins.coffee\",\n    \"documentation\": {\n      \"comment\": \"\",\n      \"summary\": \"\",\n      \"includes\": [\n        \"Name.Space.MyMixin\"\n      ],\n      \"extends\": [\n        \"Name.Space.MyMixin\"\n      ]\n    },\n    \"name\": \"SomeNamespace.MyClass\",\n    \"methods\": [],\n    \"variables\": [],\n    \"properties\": [],\n    \"includes\": [\n      \"Name.Space.MyMixin\"\n    ],\n    \"extends\": [\n      \"Name.Space.MyMixin\"\n    ],\n    \"concerns\": []\n  }\n]"
  },
  {
    "path": "spec/_templates/mixins/mixin_documentation.coffee",
    "content": "# This is a test module with `inline.dot`. Beware.\n#\n# @note Please use\n#   this carefully\n# @note For internal use only\n#\n# @example Use it in this way\n#   class Rumba\n#     @include Foo.Bar\n#\n# @todo Clean up socket handler\n# @todo Refactor\n#   property factory\n# @author Netzpirat\n# @author Supermakaka\n# @abstract Each listener implementation must include\n# @private\n# @deprecated Use other module\n#   which is thread safe\n# @since 1.0.0\n# @version 1.0.2\n#\n# @namespace Manual.Namespace\n# @mixin\n#\nFoo.Bar = {}\n"
  },
  {
    "path": "spec/_templates/mixins/mixin_documentation.json",
    "content": "[\n  {\n    \"file\": \"spec/_templates/mixins/mixin_documentation.coffee\",\n    \"methods\": [],\n    \"variables\": []\n  },\n  {\n    \"file\": \"spec/_templates/mixins/mixin_documentation.coffee\",\n    \"name\": \"Foo.Bar\",\n    \"documentation\": {\n      \"comment\": \"This is a test module with `inline.dot`. Beware.\",\n      \"summary\": \"This is a test module with `inline.dot`.\",\n      \"notes\": [\n        \"Please use this carefully\",\n        \"For internal use only\"\n      ],\n      \"abstract\": \"Each listener implementation must include\",\n      \"private\": true,\n      \"deprecated\": \"Use other module which is thread safe\",\n      \"version\": \"1.0.2\",\n      \"since\": \"1.0.0\",\n      \"authors\": [\n        \"Netzpirat\",\n        \"Supermakaka\"\n      ],\n      \"todos\": [\n        \"Clean up socket handler\",\n        \"Refactor property factory\"\n      ],\n      \"examples\": [\n        {\n          \"title\": \"Use it in this way\",\n          \"code\": \"class Rumba\\n  @include Foo.Bar\"\n        }\n      ],\n      \"namespace\": \"Manual.Namespace\"\n    },\n    \"methods\": [],\n    \"variables\": []\n  }\n]"
  },
  {
    "path": "spec/_templates/mixins/mixin_methods.coffee",
    "content": "#\n# @method #set(key, value)\n#   Sets a value\n#   @param [String] key describe key param\n#   @param [Object] value describe value param\n#   @option value [String] string\n#   @option value [Integer] number\n#   @option value [Object] whatever\n#\n# @mixin\nFoo =\n\n  helper: ->\n\n  another: (a, b) ->\n\n  withDefault: (a = 2, c, d = 'hi', d, e = { a: 2 }, f = new TestClassMethods()) ->\n\n  nowWithSpalt: (foo, bar...) ->\n"
  },
  {
    "path": "spec/_templates/mixins/mixin_methods.json",
    "content": "[\n  {\n    \"file\": \"spec/_templates/mixins/mixin_methods.coffee\",\n    \"methods\": [],\n    \"variables\": []\n  },\n  {\n    \"file\": \"spec/_templates/mixins/mixin_methods.coffee\",\n    \"name\": \"Foo\",\n    \"documentation\": {\n      \"comment\": \"\",\n      \"summary\": \"\",\n      \"methods\": [\n        {\n          \"signature\": \"#set(key, value)\",\n          \"documentation\": {\n            \"params\": [\n              {\n                \"type\": \"String\",\n                \"name\": \"key\",\n                \"description\": \"describe key param\"\n              },\n              {\n                \"type\": \"Object\",\n                \"name\": \"value\",\n                \"description\": \"describe value param\"\n              }\n            ],\n            \"options\": {\n              \"value\": [\n                {\n                  \"type\": \"String\",\n                  \"name\": \"string\"\n                },\n                {\n                  \"type\": \"Integer\",\n                  \"name\": \"number\"\n                },\n                {\n                  \"type\": \"Object\",\n                  \"name\": \"whatever\"\n                }\n              ]\n            },\n            \"comment\": \"Sets a value\",\n            \"summary\": \"Sets a value\"\n          }\n        }\n      ]\n    },\n    \"methods\": [\n      {\n        \"file\": \"spec/_templates/mixins/mixin_methods.coffee\",\n        \"name\": \"helper\",\n        \"bound\": false,\n        \"parameters\": []\n      },\n      {\n        \"file\": \"spec/_templates/mixins/mixin_methods.coffee\",\n        \"name\": \"another\",\n        \"bound\": false,\n        \"parameters\": [\n          {\n            \"name\": \"a\",\n            \"splat\": false\n          },\n          {\n            \"name\": \"b\",\n            \"splat\": false\n          }\n        ]\n      },\n      {\n        \"file\": \"spec/_templates/mixins/mixin_methods.coffee\",\n        \"name\": \"withDefault\",\n        \"bound\": false,\n        \"parameters\": [\n          {\n            \"name\": \"a\",\n            \"splat\": false,\n            \"default\": \"2\"\n          },\n          {\n            \"name\": \"c\",\n            \"splat\": false\n          },\n          {\n            \"name\": \"d\",\n            \"splat\": false,\n            \"default\": \"'hi'\"\n          },\n          {\n            \"name\": \"d\",\n            \"splat\": false\n          },\n          {\n            \"name\": \"e\",\n            \"splat\": false,\n            \"default\": \"{\\n  a: 2\\n}\"\n          },\n          {\n            \"name\": \"f\",\n            \"splat\": false,\n            \"default\": \"new TestClassMethods()\"\n          }\n        ]\n      },\n      {\n        \"file\": \"spec/_templates/mixins/mixin_methods.coffee\",\n        \"name\": \"nowWithSpalt\",\n        \"bound\": false,\n        \"parameters\": [\n          {\n            \"name\": \"foo\",\n            \"splat\": false\n          },\n          {\n            \"name\": \"bar\",\n            \"splat\": true\n          }\n        ]\n      }\n    ],\n    \"variables\": []\n  },\n  {\n    \"file\": \"spec/_templates/mixins/mixin_methods.coffee\",\n    \"name\": \"helper\",\n    \"bound\": false,\n    \"parameters\": []\n  },\n  {\n    \"file\": \"spec/_templates/mixins/mixin_methods.coffee\",\n    \"name\": \"another\",\n    \"bound\": false,\n    \"parameters\": [\n      {\n        \"name\": \"a\",\n        \"splat\": false\n      },\n      {\n        \"name\": \"b\",\n        \"splat\": false\n      }\n    ]\n  },\n  {\n    \"file\": \"spec/_templates/mixins/mixin_methods.coffee\",\n    \"name\": \"withDefault\",\n    \"bound\": false,\n    \"parameters\": [\n      {\n        \"name\": \"a\",\n        \"splat\": false,\n        \"default\": \"2\"\n      },\n      {\n        \"name\": \"c\",\n        \"splat\": false\n      },\n      {\n        \"name\": \"d\",\n        \"splat\": false,\n        \"default\": \"'hi'\"\n      },\n      {\n        \"name\": \"d\",\n        \"splat\": false\n      },\n      {\n        \"name\": \"e\",\n        \"splat\": false,\n        \"default\": \"{\\n  a: 2\\n}\"\n      },\n      {\n        \"name\": \"f\",\n        \"splat\": false,\n        \"default\": \"new TestClassMethods()\"\n      }\n    ]\n  },\n  {\n    \"file\": \"spec/_templates/mixins/mixin_methods.coffee\",\n    \"name\": \"a\",\n    \"constant\": false,\n    \"value\": \"2\"\n  },\n  {\n    \"file\": \"spec/_templates/mixins/mixin_methods.coffee\",\n    \"name\": \"nowWithSpalt\",\n    \"bound\": false,\n    \"parameters\": [\n      {\n        \"name\": \"foo\",\n        \"splat\": false\n      },\n      {\n        \"name\": \"bar\",\n        \"splat\": true\n      }\n    ]\n  }\n]"
  },
  {
    "path": "spec/_templates/properties/properties.coffee",
    "content": "# Property test class. It's almost the most difficult\n# part to come up with stupid examples.\n#\nmodule.exports = class Person\n\n  # @property [Array<String>] The nicknames\n  #\n  # All the nicknames the person is known by.\n  nicknames: []\n\n  # @property [Object]\n  # The entity's position\n  position:\n    x: 0\n    y: 0\n\n  # Language helpers\n  get = (props) => @::__defineGetter__ name, getter for name, getter of props\n  set = (props) => @::__defineSetter__ name, setter for name, setter of props\n\n  # @property [String] The first name\n  get firstname: -> @_firstname\n  set firstname: (@_firstname) ->\n\n  # The last name\n  get lastname: -> @_lastname\n  set lastname: (@_lastname) ->\n\n  # @property [Date] The day\n  #   (of birth)\n  get birth: -> @_birth\n\n  # The twitter handle\n  get twitter: -> @_twitter\n\n  # @property [String] The confession\n  set confession: (@_confession) ->\n\n  # @property [String] Something different\n  @property 'test', \n    get: -> 'test'\n    set: (k,v) ->\n\n  # @property [String] Something different 2\n  @property 'test2', -> 'test'\n\n  # @property [String] Something different 3\n  @property 'test3', set: -> 'test'\n\n  # The email address offer\n  set email: (@_email) ->\n\n  # This should not be swallowed\n  test: ->"
  },
  {
    "path": "spec/_templates/properties/properties.json",
    "content": "[\n  {\n    \"file\": \"spec/_templates/properties/properties.coffee\",\n    \"methods\": [],\n    \"variables\": []\n  },\n  {\n    \"file\": \"spec/_templates/properties/properties.coffee\",\n    \"documentation\": {\n      \"comment\": \"Property test class. It's almost the most difficult\\npart to come up with stupid examples.\",\n      \"summary\": \"Property test class.\"\n    },\n    \"name\": \"Person\",\n    \"methods\": [\n      {\n        \"file\": \"spec/_templates/properties/properties.coffee\",\n        \"name\": \"test\",\n        \"bound\": false,\n        \"documentation\": {\n          \"comment\": \"This should not be swallowed\",\n          \"summary\": \"This should not be swallowed\"\n        },\n        \"kind\": \"dynamic\",\n        \"parameters\": []\n      }\n    ],\n    \"variables\": [],\n    \"properties\": [\n      {\n        \"file\": \"spec/_templates/properties/properties.coffee\",\n        \"name\": \"nicknames\",\n        \"getter\": true,\n        \"setter\": true,\n        \"documentation\": {\n          \"comment\": \"The nicknames\\n\\nAll the nicknames the person is known by.\",\n          \"summary\": \"The nicknames\\n\\nAll the nicknames the person is known by.\",\n          \"property\": \"Array<String>\"\n        }\n      },\n      {\n        \"file\": \"spec/_templates/properties/properties.coffee\",\n        \"name\": \"position\",\n        \"getter\": true,\n        \"setter\": true,\n        \"documentation\": {\n          \"comment\": \"The entity's position\",\n          \"summary\": \"The entity's position\",\n          \"property\": \"Object\"\n        }\n      },\n      {\n        \"file\": \"spec/_templates/properties/properties.coffee\",\n        \"name\": \"firstname\",\n        \"getter\": true,\n        \"setter\": true,\n        \"documentation\": {\n          \"comment\": \"The first name\",\n          \"summary\": \"The first name\",\n          \"property\": \"String\"\n        }\n      },\n      {\n        \"file\": \"spec/_templates/properties/properties.coffee\",\n        \"name\": \"lastname\",\n        \"getter\": true,\n        \"setter\": true,\n        \"documentation\": {\n          \"comment\": \"The last name\",\n          \"summary\": \"The last name\"\n        }\n      },\n      {\n        \"file\": \"spec/_templates/properties/properties.coffee\",\n        \"name\": \"birth\",\n        \"getter\": true,\n        \"setter\": false,\n        \"documentation\": {\n          \"comment\": \"The day (of birth)\",\n          \"summary\": \"The day (of birth)\",\n          \"property\": \"Date\"\n        }\n      },\n      {\n        \"file\": \"spec/_templates/properties/properties.coffee\",\n        \"name\": \"twitter\",\n        \"getter\": true,\n        \"setter\": false,\n        \"documentation\": {\n          \"comment\": \"The twitter handle\",\n          \"summary\": \"The twitter handle\"\n        }\n      },\n      {\n        \"file\": \"spec/_templates/properties/properties.coffee\",\n        \"name\": \"confession\",\n        \"getter\": false,\n        \"setter\": true,\n        \"documentation\": {\n          \"comment\": \"The confession\",\n          \"summary\": \"The confession\",\n          \"property\": \"String\"\n        }\n      },\n      {\n        \"file\": \"spec/_templates/properties/properties.coffee\",\n        \"name\": \"test\",\n        \"getter\": true,\n        \"setter\": true,\n        \"documentation\": {\n          \"comment\": \"Something different\",\n          \"summary\": \"Something different\",\n          \"property\": \"String\"\n        }\n      },\n      {\n        \"file\": \"spec/_templates/properties/properties.coffee\",\n        \"name\": \"test2\",\n        \"getter\": true,\n        \"setter\": false,\n        \"documentation\": {\n          \"comment\": \"Something different 2\",\n          \"summary\": \"Something different 2\",\n          \"property\": \"String\"\n        }\n      },\n      {\n        \"file\": \"spec/_templates/properties/properties.coffee\",\n        \"name\": \"test3\",\n        \"getter\": false,\n        \"setter\": true,\n        \"documentation\": {\n          \"comment\": \"Something different 3\",\n          \"summary\": \"Something different 3\",\n          \"property\": \"String\"\n        }\n      },\n      {\n        \"file\": \"spec/_templates/properties/properties.coffee\",\n        \"name\": \"email\",\n        \"getter\": false,\n        \"setter\": true,\n        \"documentation\": {\n          \"comment\": \"The email address offer\",\n          \"summary\": \"The email address offer\"\n        }\n      }\n    ],\n    \"includes\": [],\n    \"extends\": [],\n    \"concerns\": []\n  },\n  {\n    \"file\": \"spec/_templates/properties/properties.coffee\",\n    \"name\": \"nicknames\",\n    \"getter\": true,\n    \"setter\": true,\n    \"documentation\": {\n      \"comment\": \"The nicknames\\n\\nAll the nicknames the person is known by.\",\n      \"summary\": \"The nicknames\\n\\nAll the nicknames the person is known by.\",\n      \"property\": \"Array<String>\"\n    }\n  },\n  {\n    \"file\": \"spec/_templates/properties/properties.coffee\",\n    \"name\": \"position\",\n    \"getter\": true,\n    \"setter\": true,\n    \"documentation\": {\n      \"comment\": \"The entity's position\",\n      \"summary\": \"The entity's position\",\n      \"property\": \"Object\"\n    }\n  },\n  {\n    \"file\": \"spec/_templates/properties/properties.coffee\",\n    \"name\": \"x\",\n    \"constant\": false,\n    \"value\": \"0\"\n  },\n  {\n    \"file\": \"spec/_templates/properties/properties.coffee\",\n    \"name\": \"y\",\n    \"constant\": false,\n    \"value\": \"0\"\n  },\n  {\n    \"file\": \"spec/_templates/properties/properties.coffee\",\n    \"name\": \"get\",\n    \"bound\": true,\n    \"documentation\": {\n      \"comment\": \"Language helpers\",\n      \"summary\": \"Language helpers\"\n    },\n    \"parameters\": [\n      {\n        \"name\": \"props\",\n        \"splat\": false\n      }\n    ]\n  },\n  {\n    \"file\": \"spec/_templates/properties/properties.coffee\",\n    \"name\": \"set\",\n    \"bound\": true,\n    \"parameters\": [\n      {\n        \"name\": \"props\",\n        \"splat\": false\n      }\n    ]\n  },\n  {\n    \"file\": \"spec/_templates/properties/properties.coffee\",\n    \"name\": \"firstname\",\n    \"getter\": true,\n    \"setter\": true,\n    \"documentation\": {\n      \"comment\": \"The first name\",\n      \"summary\": \"The first name\",\n      \"property\": \"String\"\n    }\n  },\n  {\n    \"file\": \"spec/_templates/properties/properties.coffee\",\n    \"name\": \"firstname\",\n    \"bound\": false,\n    \"parameters\": []\n  },\n  {\n    \"file\": \"spec/_templates/properties/properties.coffee\",\n    \"name\": \"firstname\",\n    \"getter\": true,\n    \"setter\": true,\n    \"documentation\": {\n      \"comment\": \"The first name\",\n      \"summary\": \"The first name\",\n      \"property\": \"String\"\n    }\n  },\n  {\n    \"file\": \"spec/_templates/properties/properties.coffee\",\n    \"name\": \"firstname\",\n    \"bound\": false,\n    \"parameters\": [\n      {\n        \"name\": \"_firstname\",\n        \"splat\": false\n      }\n    ]\n  },\n  {\n    \"file\": \"spec/_templates/properties/properties.coffee\",\n    \"name\": \"lastname\",\n    \"getter\": true,\n    \"setter\": true,\n    \"documentation\": {\n      \"comment\": \"The last name\",\n      \"summary\": \"The last name\"\n    }\n  },\n  {\n    \"file\": \"spec/_templates/properties/properties.coffee\",\n    \"name\": \"lastname\",\n    \"bound\": false,\n    \"parameters\": []\n  },\n  {\n    \"file\": \"spec/_templates/properties/properties.coffee\",\n    \"name\": \"lastname\",\n    \"getter\": true,\n    \"setter\": true,\n    \"documentation\": {\n      \"comment\": \"The last name\",\n      \"summary\": \"The last name\"\n    }\n  },\n  {\n    \"file\": \"spec/_templates/properties/properties.coffee\",\n    \"name\": \"lastname\",\n    \"bound\": false,\n    \"parameters\": [\n      {\n        \"name\": \"_lastname\",\n        \"splat\": false\n      }\n    ]\n  },\n  {\n    \"file\": \"spec/_templates/properties/properties.coffee\",\n    \"name\": \"birth\",\n    \"getter\": true,\n    \"setter\": false,\n    \"documentation\": {\n      \"comment\": \"The day (of birth)\",\n      \"summary\": \"The day (of birth)\",\n      \"property\": \"Date\"\n    }\n  },\n  {\n    \"file\": \"spec/_templates/properties/properties.coffee\",\n    \"name\": \"birth\",\n    \"bound\": false,\n    \"parameters\": []\n  },\n  {\n    \"file\": \"spec/_templates/properties/properties.coffee\",\n    \"name\": \"twitter\",\n    \"getter\": true,\n    \"setter\": false,\n    \"documentation\": {\n      \"comment\": \"The twitter handle\",\n      \"summary\": \"The twitter handle\"\n    }\n  },\n  {\n    \"file\": \"spec/_templates/properties/properties.coffee\",\n    \"name\": \"twitter\",\n    \"bound\": false,\n    \"parameters\": []\n  },\n  {\n    \"file\": \"spec/_templates/properties/properties.coffee\",\n    \"name\": \"confession\",\n    \"getter\": false,\n    \"setter\": true,\n    \"documentation\": {\n      \"comment\": \"The confession\",\n      \"summary\": \"The confession\",\n      \"property\": \"String\"\n    }\n  },\n  {\n    \"file\": \"spec/_templates/properties/properties.coffee\",\n    \"name\": \"confession\",\n    \"bound\": false,\n    \"parameters\": [\n      {\n        \"name\": \"_confession\",\n        \"splat\": false\n      }\n    ]\n  },\n  {\n    \"file\": \"spec/_templates/properties/properties.coffee\",\n    \"name\": \"test\",\n    \"getter\": true,\n    \"setter\": true,\n    \"documentation\": {\n      \"comment\": \"Something different\",\n      \"summary\": \"Something different\",\n      \"property\": \"String\"\n    }\n  },\n  {\n    \"file\": \"spec/_templates/properties/properties.coffee\",\n    \"name\": \"get\",\n    \"bound\": false,\n    \"parameters\": []\n  },\n  {\n    \"file\": \"spec/_templates/properties/properties.coffee\",\n    \"name\": \"set\",\n    \"bound\": false,\n    \"parameters\": [\n      {\n        \"name\": \"k\",\n        \"splat\": false\n      },\n      {\n        \"name\": \"v\",\n        \"splat\": false\n      }\n    ]\n  },\n  {\n    \"file\": \"spec/_templates/properties/properties.coffee\",\n    \"name\": \"test2\",\n    \"getter\": true,\n    \"setter\": false,\n    \"documentation\": {\n      \"comment\": \"Something different 2\",\n      \"summary\": \"Something different 2\",\n      \"property\": \"String\"\n    }\n  },\n  {\n    \"file\": \"spec/_templates/properties/properties.coffee\",\n    \"name\": \"test3\",\n    \"getter\": false,\n    \"setter\": true,\n    \"documentation\": {\n      \"comment\": \"Something different 3\",\n      \"summary\": \"Something different 3\",\n      \"property\": \"String\"\n    }\n  },\n  {\n    \"file\": \"spec/_templates/properties/properties.coffee\",\n    \"name\": \"set\",\n    \"bound\": false,\n    \"parameters\": []\n  },\n  {\n    \"file\": \"spec/_templates/properties/properties.coffee\",\n    \"name\": \"email\",\n    \"getter\": false,\n    \"setter\": true,\n    \"documentation\": {\n      \"comment\": \"The email address offer\",\n      \"summary\": \"The email address offer\"\n    }\n  },\n  {\n    \"file\": \"spec/_templates/properties/properties.coffee\",\n    \"name\": \"email\",\n    \"bound\": false,\n    \"parameters\": [\n      {\n        \"name\": \"_email\",\n        \"splat\": false\n      }\n    ]\n  },\n  {\n    \"file\": \"spec/_templates/properties/properties.coffee\",\n    \"name\": \"test\",\n    \"bound\": false,\n    \"documentation\": {\n      \"comment\": \"This should not be swallowed\",\n      \"summary\": \"This should not be swallowed\"\n    },\n    \"kind\": \"dynamic\",\n    \"parameters\": []\n  }\n]"
  },
  {
    "path": "spec/_templates/variables/class_variables.coffee",
    "content": "class TestClassVariables\n\n  @empty = undefined\n\n  @test = 'Hi'\n\n  @another = ['a', 'b']\n\n  @more =\n    a: 1\n    b: 2\n"
  },
  {
    "path": "spec/_templates/variables/class_variables.json",
    "content": "[\n  {\n    \"file\": \"spec/_templates/variables/class_variables.coffee\",\n    \"methods\": [],\n    \"variables\": []\n  },\n  {\n    \"file\": \"spec/_templates/variables/class_variables.coffee\",\n    \"name\": \"TestClassVariables\",\n    \"methods\": [],\n    \"variables\": [\n      {\n        \"file\": \"spec/_templates/variables/class_variables.coffee\",\n        \"name\": \"empty\",\n        \"constant\": false,\n        \"value\": \"undefined\",\n        \"selfish\": true,\n        \"kind\": \"static\"\n      },\n      {\n        \"file\": \"spec/_templates/variables/class_variables.coffee\",\n        \"name\": \"test\",\n        \"constant\": false,\n        \"value\": \"'Hi'\",\n        \"selfish\": true,\n        \"kind\": \"static\"\n      },\n      {\n        \"file\": \"spec/_templates/variables/class_variables.coffee\",\n        \"name\": \"another\",\n        \"constant\": false,\n        \"value\": \"['a', 'b']\",\n        \"selfish\": true,\n        \"kind\": \"static\"\n      },\n      {\n        \"file\": \"spec/_templates/variables/class_variables.coffee\",\n        \"name\": \"more\",\n        \"constant\": false,\n        \"value\": \"{\\n  a: 1,\\n  b: 2\\n}\",\n        \"selfish\": true,\n        \"kind\": \"static\"\n      }\n    ],\n    \"properties\": [],\n    \"includes\": [],\n    \"extends\": [],\n    \"concerns\": []\n  },\n  {\n    \"file\": \"spec/_templates/variables/class_variables.coffee\",\n    \"name\": \"empty\",\n    \"constant\": false,\n    \"value\": \"undefined\",\n    \"selfish\": true,\n    \"kind\": \"static\"\n  },\n  {\n    \"file\": \"spec/_templates/variables/class_variables.coffee\",\n    \"name\": \"test\",\n    \"constant\": false,\n    \"value\": \"'Hi'\",\n    \"selfish\": true,\n    \"kind\": \"static\"\n  },\n  {\n    \"file\": \"spec/_templates/variables/class_variables.coffee\",\n    \"name\": \"another\",\n    \"constant\": false,\n    \"value\": \"['a', 'b']\",\n    \"selfish\": true,\n    \"kind\": \"static\"\n  },\n  {\n    \"file\": \"spec/_templates/variables/class_variables.coffee\",\n    \"name\": \"more\",\n    \"constant\": false,\n    \"value\": \"{\\n  a: 1,\\n  b: 2\\n}\",\n    \"selfish\": true,\n    \"kind\": \"static\"\n  },\n  {\n    \"file\": \"spec/_templates/variables/class_variables.coffee\",\n    \"name\": \"a\",\n    \"constant\": false,\n    \"value\": \"1\"\n  },\n  {\n    \"file\": \"spec/_templates/variables/class_variables.coffee\",\n    \"name\": \"b\",\n    \"constant\": false,\n    \"value\": \"2\"\n  }\n]"
  },
  {
    "path": "spec/_templates/variables/constant_variables.coffee",
    "content": "class TestContstantVariables\n\n  # Modify it here\n  @TEST = 'Hi'\n\n  @ANOTHER_CONST: ['a', 'b']\n"
  },
  {
    "path": "spec/_templates/variables/constant_variables.json",
    "content": "[\n  {\n    \"file\": \"spec/_templates/variables/constant_variables.coffee\",\n    \"methods\": [],\n    \"variables\": []\n  },\n  {\n    \"file\": \"spec/_templates/variables/constant_variables.coffee\",\n    \"name\": \"TestContstantVariables\",\n    \"methods\": [],\n    \"variables\": [\n      {\n        \"file\": \"spec/_templates/variables/constant_variables.coffee\",\n        \"name\": \"TEST\",\n        \"constant\": true,\n        \"value\": \"'Hi'\",\n        \"documentation\": {\n          \"comment\": \"Modify it here\",\n          \"summary\": \"Modify it here\"\n        },\n        \"selfish\": true,\n        \"kind\": \"static\"\n      },\n      {\n        \"file\": \"spec/_templates/variables/constant_variables.coffee\",\n        \"name\": \"ANOTHER_CONST\",\n        \"constant\": true,\n        \"value\": \"['a', 'b']\",\n        \"selfish\": true,\n        \"kind\": \"static\"\n      }\n    ],\n    \"properties\": [],\n    \"includes\": [],\n    \"extends\": [],\n    \"concerns\": []\n  },\n  {\n    \"file\": \"spec/_templates/variables/constant_variables.coffee\",\n    \"name\": \"TEST\",\n    \"constant\": true,\n    \"value\": \"'Hi'\",\n    \"documentation\": {\n      \"comment\": \"Modify it here\",\n      \"summary\": \"Modify it here\"\n    },\n    \"selfish\": true,\n    \"kind\": \"static\"\n  },\n  {\n    \"file\": \"spec/_templates/variables/constant_variables.coffee\",\n    \"name\": \"ANOTHER_CONST\",\n    \"constant\": true,\n    \"value\": \"['a', 'b']\",\n    \"selfish\": true,\n    \"kind\": \"static\"\n  }\n]"
  },
  {
    "path": "spec/_templates/variables/instance_variables.coffee",
    "content": "class TestInstanceVariables\n\n  empty: undefined\n\n  test: 'Hi'\n\n  another: ['a', 'b']\n\n  more:\n    a: 1\n    b: 2\n"
  },
  {
    "path": "spec/_templates/variables/instance_variables.json",
    "content": "[\n  {\n    \"file\": \"spec/_templates/variables/instance_variables.coffee\",\n    \"methods\": [],\n    \"variables\": []\n  },\n  {\n    \"file\": \"spec/_templates/variables/instance_variables.coffee\",\n    \"name\": \"TestInstanceVariables\",\n    \"methods\": [],\n    \"variables\": [\n      {\n        \"file\": \"spec/_templates/variables/instance_variables.coffee\",\n        \"name\": \"empty\",\n        \"constant\": false,\n        \"value\": \"undefined\",\n        \"kind\": \"dynamic\"\n      },\n      {\n        \"file\": \"spec/_templates/variables/instance_variables.coffee\",\n        \"name\": \"test\",\n        \"constant\": false,\n        \"value\": \"'Hi'\",\n        \"kind\": \"dynamic\"\n      },\n      {\n        \"file\": \"spec/_templates/variables/instance_variables.coffee\",\n        \"name\": \"another\",\n        \"constant\": false,\n        \"value\": \"['a', 'b']\",\n        \"kind\": \"dynamic\"\n      },\n      {\n        \"file\": \"spec/_templates/variables/instance_variables.coffee\",\n        \"name\": \"more\",\n        \"constant\": false,\n        \"value\": \"{\\n  a: 1,\\n  b: 2\\n}\",\n        \"kind\": \"dynamic\"\n      }\n    ],\n    \"properties\": [],\n    \"includes\": [],\n    \"extends\": [],\n    \"concerns\": []\n  },\n  {\n    \"file\": \"spec/_templates/variables/instance_variables.coffee\",\n    \"name\": \"empty\",\n    \"constant\": false,\n    \"value\": \"undefined\",\n    \"kind\": \"dynamic\"\n  },\n  {\n    \"file\": \"spec/_templates/variables/instance_variables.coffee\",\n    \"name\": \"test\",\n    \"constant\": false,\n    \"value\": \"'Hi'\",\n    \"kind\": \"dynamic\"\n  },\n  {\n    \"file\": \"spec/_templates/variables/instance_variables.coffee\",\n    \"name\": \"another\",\n    \"constant\": false,\n    \"value\": \"['a', 'b']\",\n    \"kind\": \"dynamic\"\n  },\n  {\n    \"file\": \"spec/_templates/variables/instance_variables.coffee\",\n    \"name\": \"more\",\n    \"constant\": false,\n    \"value\": \"{\\n  a: 1,\\n  b: 2\\n}\",\n    \"kind\": \"dynamic\"\n  },\n  {\n    \"file\": \"spec/_templates/variables/instance_variables.coffee\",\n    \"name\": \"a\",\n    \"constant\": false,\n    \"value\": \"1\"\n  },\n  {\n    \"file\": \"spec/_templates/variables/instance_variables.coffee\",\n    \"name\": \"b\",\n    \"constant\": false,\n    \"value\": \"2\"\n  }\n]"
  },
  {
    "path": "spec/lib/api_spec.coffee",
    "content": "API = require '../../lib/command.coffee'\nPath = require 'path'\n\ndescribe 'API', ->\n\n  it 'parses project', (done) ->\n    api = new API()\n    api.generate Path.join(__dirname, '../_templates/example'), { test: true }, (err) ->\n      expect(err).toBeUndefined()\n      done()\n\n  it 'fails if coverage is too low', (done) ->\n    api = new API()\n    api.generate Path.join(__dirname, '../_templates/example'), { test: true, \"min-coverage\": 90 }, (err) ->\n      expect(err).toBe 1\n      done()\n\n"
  },
  {
    "path": "spec/lib/codo_spec.coffee",
    "content": "Path = require 'path'\nCodo = require '../../lib/codo'\n\ndescribe 'Codo', ->\n\n  it 'parses project', ->\n    environment = Codo.parseProject(Path.join __dirname, '../_templates/example')\n    \n    expect(environment.allFiles().map (file) -> file.inspect().file).toEqual [\n      'src/angry_animal.coffee',\n      'src/animal.coffee',\n      'src/lion.coffee',\n      'src/over_documented_class.coffee',\n      'src/over_documented_mixin.coffee'\n    ].map (file) -> Path.normalize file\n\n    expect(environment.allExtras().map (e) -> e.name).toEqual [\n      'README.md', 'CHANGELOG'\n    ]\n\n    expect(environment.options.readme).toEqual 'README.md'"
  },
  {
    "path": "spec/lib/entities/class_spec.coffee",
    "content": "Environment = require '../../../lib/environment'\nMethod = require '../../../lib/entities/mixin'\n\ndescribe 'Class', ->\n\n  it 'lists effective methods', ->\n\n    environment = Environment.read('spec/_templates/complicateds/methods.coffee')\n    methods     = environment.entities[1].effectiveMethods()\n\n    expect(methods[0].inspect()).toEqual { name: 'z', kind: 'dynamic', bound: false, parameters: [] }\n    expect(methods[1].inspect()).toEqual { name : 'x', kind : 'dynamic', parameters : [ 'key', 'value' ] }\n\n  it 'lists inherited methods', ->\n\n    environment = Environment.read('spec/_templates/complicateds/methods.coffee')\n    methods     = environment.entities[12].inheritedMethods().map (x) -> x.entity.inspect()\n\n    expect(methods).toEqual(\n      [\n        { name: 'x', kind: 'dynamic', bound: false, parameters: [  ] },\n        { name: 'z', kind: 'dynamic', bound: false, parameters: [  ] },\n        { name: 'm', kind: 'dynamic', bound: false, parameters: [  ] },\n        { name: 'cs', kind: 'static', bound: false, parameters: [  ] },\n        { name: 'cd', kind: 'dynamic', bound: false, parameters: [  ] }\n      ]\n    )\n\n  it 'lists inherited variables', ->\n\n    environment = Environment.read('spec/_templates/complicateds/variables.coffee')\n    variables   = environment.entities[5].inheritedVariables().map (x) -> x.entity.inspect()\n\n    expect(variables).toEqual(\n      [\n        {\n          file: 'spec/_templates/complicateds/variables.coffee',\n          name: 'z',\n          constant: false,\n          value: \"'456'\",\n          kind: 'dynamic'\n        }\n      ]\n    )"
  },
  {
    "path": "spec/lib/entities/mixin_spec.coffee",
    "content": "Environment = require '../../../lib/environment'\nMethod = require '../../../lib/entities/mixin'\n\ndescribe 'Mixin', ->\n\n  describe 'effective methods', ->\n\n    it 'get listed for inclusion', ->\n      environment = Environment.read('spec/_templates/mixins/mixin_methods.coffee')\n      methods     = environment.entities[1].effectiveInclusionMethods().map (m) -> m.inspect()\n\n      expect(methods).toEqual(\n        [\n          { name: 'helper', kind: 'dynamic', bound: false, parameters: [] },\n          { name: 'another', kind: 'dynamic', bound: false, parameters: [ 'a', 'b' ] },\n          {\n            name: 'withDefault',\n            kind: 'dynamic',\n            bound: false,\n            parameters: [\n              'a = 2',\n              'c',\n              'd = \\'hi\\'',\n              'd',\n              'e = {\\n  a: 2\\n}',\n              'f = new TestClassMethods()'\n            ]\n          },\n          {\n            name: 'nowWithSpalt',\n            kind: 'dynamic',\n            bound: false,\n            parameters: [ 'foo', 'bar...' ]\n          },\n          { name: 'set', kind: 'dynamic', parameters: [ 'key', 'value' ] }\n        ]\n      )\n\n    it 'get listed for extension', ->\n      environment = Environment.read('spec/_templates/mixins/mixin_methods.coffee')\n      methods     = environment.entities[1].effectiveExtensionMethods().map (m) -> m.inspect()\n\n      expect(methods).toEqual(\n        [\n          { name: 'helper', kind: 'static', bound: false, parameters: [] },\n          { name: 'another', kind: 'static', bound: false, parameters: [ 'a', 'b' ] },\n          {\n            name: 'withDefault',\n            kind: 'static',\n            bound: false,\n            parameters: [\n              'a = 2',\n              'c',\n              'd = \\'hi\\'',\n              'd',\n              'e = {\\n  a: 2\\n}',\n              'f = new TestClassMethods()'\n            ]\n          },\n          {\n            name: 'nowWithSpalt',\n            kind: 'static',\n            bound: false,\n            parameters: [ 'foo', 'bar...' ]\n          },\n          { name: 'set', kind: 'static', parameters: [ 'key', 'value' ] }\n        ]\n      )\n\n    it 'get listed for concern', ->\n      environment = Environment.read('spec/_templates/mixins/concern.coffee')\n      methods     = environment.entities[1].effectiveConcernMethods().map (m) -> m.inspect()\n\n      expect(methods).toEqual(\n        [\n          { name: 'a', kind: 'static', bound: false, parameters: [ 'a', 'b', 'c' ] },\n          { name: 'z', kind: 'static', bound: false, parameters: [ 'x', 'y', 'z' ] },\n          { name: 'hi', kind: 'dynamic', bound: false, parameters: [ 'to' ] },\n          { name: 'goodbye', kind: 'dynamic', bound: false, parameters: [ 'to' ] } ]\n      )"
  },
  {
    "path": "spec/lib/environment_spec.coffee",
    "content": "FS          = require 'fs'\njsdiff      = require 'diff'\nPath        = require 'path'\nwalkdir     = require 'walkdir'\nEnvironment = require '../../lib/environment'\n\nnormalizePathsInObject = (obj) ->\n  return if typeof obj is \"string\"\n  if obj.file? then obj.file = Path.normalize obj.file\n  for key, val of obj # ['variables', 'methods', 'properties', 'includes', 'container', 'parent', 'extends']\n    if Array.isArray val\n      val.forEach normalizePathsInObject\n    else normalizePathsInObject obj[key]\n\nbeforeEach ->\n  @addMatchers\n    toTraverseTo: (expected) ->\n      environment = new Environment\n      parser      = environment.readCoffee(@actual)\n\n      environment.linkify()\n\n      actual = JSON.parse JSON.stringify environment.inspect()\n      expected = JSON.parse FS.readFileSync(expected, 'utf8')\n\n      expected.forEach (entry) -> normalizePathsInObject entry\n\n      diff = \"\"\n      for part in jsdiff.diffJson(expected, actual)\n        if part.added\n          diff += part.value.green\n        else if part.removed\n          diff += part.value.red\n        else\n          diff += part.value\n      diff\n\n      @message = ->\n        report = \"\\n-------------------- CoffeeScript ----------------------\\n\"\n        report += parser.content\n        report += \"\\n--------------------- JSON diff -----------------------\\n\"\n        report += diff\n        report += \"\\n-------------------------------------------------------\\n\"\n\n      require('deep-eql')(expected, actual)\n\ndescribe 'Environment', ->\n\n  describe 'Extras', ->\n    beforeEach -> @environment = new Environment\n\n    it 'reads plain text', ->\n      @environment.readExtra 'spec/_templates/extras/README'\n      expect(@environment.allExtras().map (e) -> e.inspect()).toEqual([{\n        path: 'spec/_templates/extras/README',\n        parsed: '<p>This is a test README</p>'\n      }])\n\n    it 'reads markdown', ->\n      @environment.readExtra 'spec/_templates/extras/README.md'\n      expect(@environment.allExtras().map (e) -> e.inspect()).toEqual([{\n        path: 'spec/_templates/extras/README.md',\n        parsed: '<h1 id=\"this-is-a-test-readme\">This is a test README</h1><p>We even have some content here. <a href=\"http://github.com\">With links!</a></p><h2 id=\"and-nested-menus\">And nested menus</h2><p>And even more content</p><h3 id=\"actually-\">Actually...</h3><p>I feel terribly sick writing this. It&#39;s like talking to myself.</p>'\n        parsed: '<h1 id=\"this-is-a-test-readme\">This is a test README</h1><p>We even have some content here. <a href=\"http://github.com\">With links!</a></p><h2 id=\"and-nested-menus\">And nested menus</h2><p>And even more content</p><h3 id=\"actually-\">Actually...</h3><p>I feel terribly sick writing this. It&#39;s like talking to myself.</p><p><a href=\"SomeOtherFile.md.html\">With relative markdown links too</a></p>'\n      }])\n\n  describe 'Class', ->\n    for filename in walkdir.sync './spec/_templates/classes' when filename.match /\\.coffee$/\n      do (filename) ->\n        it \"parses #{filename}\", ->\n          expect(filename.substring process.cwd().length + 1)\n            .toTraverseTo(filename.replace(/\\.coffee$/, '.json'))\n\n  describe 'Variable', ->\n    for filename in walkdir.sync './spec/_templates/variables' when filename.match /\\.coffee$/\n      do (filename) ->\n        it \"parses #{filename}\", ->\n          expect(filename.substring process.cwd().length + 1)\n            .toTraverseTo(filename.replace(/\\.coffee$/, '.json'))\n\n  describe 'Property', ->\n    for filename in walkdir.sync './spec/_templates/properties' when filename.match /\\.coffee$/\n      do (filename) ->\n        it \"parses #{filename}\", ->\n          expect(filename.substring process.cwd().length + 1)\n            .toTraverseTo(filename.replace(/\\.coffee$/, '.json'))\n\n  describe 'File', ->\n    it 'parses non-class file', ->\n      expect(Path.normalize 'spec/_templates/files/non_class_file.coffee').toTraverseTo(\n        'spec/_templates/files/non_class_file.json'\n      )\n\n  describe 'Mixin', ->\n    for filename in walkdir.sync './spec/_templates/mixins' when filename.match /\\.coffee$/\n      do (filename) ->\n        it \"parses #{filename}\", ->\n          expect(filename.substring process.cwd().length + 1)\n            .toTraverseTo(filename.replace(/\\.coffee$/, '.json'))\n\n  describe 'Method', ->\n    for filename in walkdir.sync './spec/_templates/methods' when filename.match /\\.coffee$/\n      do (filename) ->\n        it \"parses #{filename}\", ->\n          expect(filename.substring process.cwd().length + 1)\n            .toTraverseTo(filename.replace(/\\.coffee$/, '.json'))\n\n  describe 'Angular', ->\n    for filename in walkdir.sync './spec/_templates/angular' when filename.match /\\.coffee$/\n      do (filename) ->\n        it \"parses #{filename}\", ->\n          expect(filename.substring process.cwd().length + 1)\n            .toTraverseTo(filename.replace(/\\.coffee$/, '.json'))\n\n  describe 'Environment', ->\n    it 'handles multiple files', ->\n      environment = Environment.read [\n        'spec/_templates/environment/class.coffee',\n        'spec/_templates/environment/mixin.coffee'\n      ].map Path.normalize\n\n      actual = JSON.stringify(environment.inspect(), null, 2)\n      expected = JSON.parse FS.readFileSync 'spec/_templates/environment/result.json', 'utf8'\n      expected.forEach normalizePathsInObject\n      expected = JSON.stringify expected, null, 2\n      expect(actual).toEqual expected\n      expect(Object.keys environment.references).toEqual [ \n        'spec/_templates/environment/class.coffee',\n        'spec/_templates/environment/mixin.coffee',\n        'Fluffy', 'LookAndFeel', 'LookAndFeel~feel', 'LookAndFeel~look'\n      ].map Path.normalize"
  },
  {
    "path": "spec/lib/meta/method_spec.coffee",
    "content": "Environment = require '../../../lib/environment'\nMethod = require '../../../lib/meta/method'\n\ndescribe 'Method', ->\n\n  it 'parses documentation', ->\n    environment = Environment.read('spec/_templates/methods/dynamic_methods.coffee')\n\n    method = Method.fromDocumentationMethod environment.entities[1].documentation.methods[0]\n    expect(method.inspect()).toEqual\n      name: 'set'\n      kind: 'dynamic'\n      parameters: ['key', 'value']\n\n    method = Method.fromDocumentationMethod environment.entities[1].documentation.methods[1]\n    expect(method.inspect()).toEqual\n      name: 'get'\n      kind: 'static'\n      parameters: ['key']\n\n    method = Method.fromDocumentationMethod environment.entities[1].documentation.methods[2]\n    expect(method.inspect()).toEqual\n      name: 'delete'\n      kind: 'dynamic'\n      parameters: ['{key, passion}', \"foo = 'bar'\"]\n\n  it 'parses entities', ->\n    environment = Environment.read('spec/_templates/methods/method_documentation.coffee')\n\n    method = Method.fromMethodEntity environment.entities[2]\n    expect(method.inspect()).toEqual\n      name: 'fetchLimit'\n      kind: 'dynamic'\n      bound: false\n      parameters: []\n\n    method = Method.fromMethodEntity environment.entities[3]\n    expect(method.inspect()).toEqual\n      name: 'do'\n      kind: 'dynamic'\n      bound: false\n      parameters: ['it', 'again', 'options']\n\n    method = Method.fromMethodEntity environment.entities[4]\n    expect(method.inspect()).toEqual\n      name: 'doWithoutSpace'\n      kind: 'dynamic'\n      bound: false\n      parameters: ['it', 'again', 'options']\n\n    method = Method.fromMethodEntity environment.entities[5]\n    expect(method.inspect()).toEqual\n      name: 'lets_do_it'\n      kind: 'static'\n      bound: false\n      parameters: ['it', 'options']\n"
  },
  {
    "path": "spec/lib/meta/parameter_spec.coffee",
    "content": "Parameter = require '../../../lib/meta/parameter'\n\ndescribe 'Parameter', ->\n\n  describe 'signature parsing', ->\n    it 'understands basic stuff', ->\n\n      expect(\n        Parameter.fromSignature('#foo(a,b)').map (x) -> x.inspect()\n      ).toEqual [\n        {\n          name: 'a'\n          splat: false\n        },\n        {\n          name: 'b',\n          splat: false\n        }\n      ]\n\n    it 'understands complex stuff', ->\n\n      expect(\n        Parameter.fromSignature('#foo({a,b}, x=\"test\", y...)').map (x) -> x.inspect()\n      ).toEqual [\n        {\n          name: '{a, b}'\n          splat: false\n        },\n        {\n          name: 'x',\n          splat: false\n          default: '\"test\"'\n        },\n        {\n          name: 'y'\n          splat: true\n        }\n      ]\n"
  },
  {
    "path": "spec/lib/tools/markdown_spec.coffee",
    "content": "Markdown = require '../../../lib/tools/markdown'\njsdiff      = require 'diff'\n\ndescribe 'Markdown', ->\n  describe 'limited markdown conversion', ->\n    limit = true\n\n    it 'removes non-inline tags', ->\n      markdown = \"\"\"\n      # A markdown list\n      - THING_1\n      - THING_2 - A long, mulitline\n        list element\n      \"\"\"\n\n      expect(Markdown.convert(markdown, limit)).toEqual(\"\"\"\n      A markdown list \n      THING_1\n      THING_2 - A long, mulitline\n      list element\n\n\n      \"\"\")\n"
  },
  {
    "path": "spec/themes/default/lib/templater_spec.coffee",
    "content": "Environment = require '../../../../lib/environment'\nTemplater = require '../../../../themes/default/lib/templater'\n\ndescribe 'Templater', ->\n\n  it 'parses all the templates', ->\n\n    templater = new Templater(new Environment)\n\n    expect(Object.keys(templater.JST)).toEqual(\n      [\n        'alphabetical_index',\n        'class',\n        'class_list',\n        'extra',\n        'extra_list',\n        'file',\n        'file_list',\n        'frames',\n        'layout/footer',\n        'layout/header',\n        'layout/intro',\n        'method_list',\n        'mixin',\n        'mixin_list',\n        'partials/documentation',\n        'partials/list_nav',\n        'partials/method_list',\n        'partials/method_signature',\n        'partials/method_summary',\n        'partials/type_link',\n        'partials/variable_list'\n      ]\n    )"
  },
  {
    "path": "spec/themes/default/lib/theme_spec.coffee",
    "content": "OS          = require 'os'\nPath        = require 'path'\nEnvironment = require '../../../../lib/environment'\nTheme       = require '../../../../themes/default/lib/theme'\nrimraf      = require 'rimraf'\n\ndescribe 'Theme', ->\n  beforeEach ->\n    @output = Path.join OS.tmpdir(), 'codo_theme_spec'\n    rimraf.sync @output\n\n  it 'generates', ->\n    environment = new Environment output: @output\n\n    environment.readExtra 'spec/_templates/example/CHANGELOG'\n    environment.readExtra 'spec/_templates/example/README.md', true\n\n    environment.readCoffee 'spec/_templates/example/src/over_documented_class.coffee'\n    environment.readCoffee 'spec/_templates/example/src/over_documented_mixin.coffee'\n\n    environment.linkify()\n\n    Theme.compile(environment)"
  },
  {
    "path": "spec/themes/default/lib/tree_builder_spec.coffee",
    "content": "TreeBuilder = require '../../../../themes/default/lib/tree_builder'\n\ndescribe 'Tree Builder', ->\n\n  it 'builds proper tree', ->\n\n    data = [\n      {name: 'foo.bar'},\n      {name: 'foo.bar.baz'},\n      {name: 'foo.baz'},\n      {name: 'dummy'}\n    ]\n\n    builder = new TreeBuilder data, (entry) ->\n      path = entry.name.split('.')\n      [path.pop(), path]\n\n    expect(builder.tree).toEqual [\n      {\n        name:'foo',\n        children:[\n          {\n            name:'bar',\n            children:[\n              {\n                name:'baz',\n                children:[],\n                entity:{\n                  name:'foo.bar.baz'\n                }\n              }\n            ],\n            entity:{\n              name:'foo.bar'\n            }\n          },\n          {\n            name:'baz',\n            children:[],\n            entity:{\n              name:'foo.baz'\n            }\n          }\n        ],\n        entity:undefined\n      },\n      {\n        name:'dummy',\n        children:[],\n        entity:{\n          name:'dummy'\n        }\n      }\n    ]"
  },
  {
    "path": "themes/default/assets/javascript/application.js",
    "content": "//= require_tree './vendor'\n//= require ./codo\n//= require ./sidebar\n//= require ./toc\n//= require ./keys\n//= require ./fuzzy\n//= require ./frames"
  },
  {
    "path": "themes/default/assets/javascript/codo.coffee",
    "content": "$ ->\n\n  # Highlight code\n  $('pre code').each (i, e) -> hljs.highlightBlock e, '  '\n\n  # Show external links in the main doc to avoid frame blocking by X-Frame-Options.\n  $('#content a').each -> $(@).attr('target', '_top') if /^https?:\\/\\//i.test $(@).attr('href')"
  },
  {
    "path": "themes/default/assets/javascript/frames.coffee",
    "content": "$ ->\n  if $('frameset').length > 0\n    parser = document.createElement('a')\n    parser.href = location.href\n    starter = parser.hash.substr(1)\n\n    if starter.length > 0\n      $('#content')[0].contentWindow.location.href = starter\n\n    $('#content').load ->\n      hash = encodeURI(@contentWindow.location.href)\n\n      if history.pushState\n        history.replaceState(null, document.title, '#'+hash);\n      else\n        location.hash = hash"
  },
  {
    "path": "themes/default/assets/javascript/fuzzy.coffee",
    "content": "$ ->\n\n  $('#search_frame').hide()\n  window.lastSearch = ''\n\n  # Global fuzzy search\n  #\n  $('#fuzzySearch input').keyup (event) ->\n    text = $(@).val()\n    resultList = $('#fuzzySearch ol')\n\n    if event.keyCode is 13\n      location.href = $('#fuzzySearch ol li.selected a').attr 'href'\n\n    else if event.keyCode is 38\n      items = resultList.children()\n      index = items.index($('#fuzzySearch ol li.selected'))\n      $(items.get(index)).removeClass 'selected'\n      index -= 1\n      index = items.length - 1 if index is -1\n      $(items.get(index)).addClass 'selected'\n\n    else if event.keyCode is 40\n      items = resultList.children()\n      index = items.index($('#fuzzySearch ol li.selected'))\n      $(items.get(index)).removeClass 'selected'\n      index += 1\n      index = 0 if index is items.length\n      $(items.get(index)).addClass 'selected'\n\n    else if text && text isnt lastSearch\n      window.lastSearch = text\n      resultList.empty()\n      path = $('#base').attr 'data-path'\n      matches = fuzzy text, _.pluck(searchData, 't'), { limit: 25 }\n      highlights = fuzzy text, _.pluck(searchData, 't'), { pre: '<span>', post: '</span>', limit: 25 }\n\n      for match, index in matches\n        data = _.find(searchData, (d) -> d.t is match)\n        resultList.append $(\"<li><a href='#{ path }#{ data.p }'>#{ highlights[index] }</a>#{ if data.h then \"<small>(#{ data.h })</small>\" else '' }</li>\")\n\n      $('#fuzzySearch ol li:first').addClass 'selected'\n      $('#fuzzySearch').height(resultList.height() + 45)\n      $('#fuzzySearch ol li').each (i, el) ->\n        if i % 2 is 0 then $(el).addClass('stripe') else $(el).removeClass('stripe')\n\n    else if text isnt lastSearch\n      resultList.empty()\n      $('#fuzzySearch').height(45)\n\n"
  },
  {
    "path": "themes/default/assets/javascript/keys.coffee",
    "content": "$ ->\n\n  loadSearch = (url, link) ->\n    parent.frames.list.location.href = url unless /#{ url }$/.test parent.frames.list.location.href\n\n  # Allow ESC to blur #search\n  key.filter = (e) ->\n    tagname = (e.target || e.srcElement).tagName\n    tagname isnt 'INPUT' || e.keyCode is 27 || e.ctrlKey is true\n\n  # Focus search input\n  key 's', (e) ->\n    e.preventDefault()\n\n    try\n      parent.frames.list.$('#search input').focus().select()\n\n    try\n      $('#search input').focus().select()\n\n  # Unblur the search input\n  key 'esc', ->\n    try\n      parent.frames.list.$('#search input').blur()\n      parent.frames.main.$('#help').hide()\n      parent.frames.main.$('#fuzzySearch').hide()\n\n    try\n      parent.$(\"#search .active\").click()\n      parent.$('#help').hide()\n      parent.$('#fuzzySearch').hide()\n\n    try\n      $('#search input').blur()\n      $('#help').hide()\n      $('#fuzzySearch').hide()\n\n  # Hide list navigation\n  # FIXME: Manually resize the frame confuses the toggle\n  key 'l', ->\n    body = $(parent.document.body)\n\n    if body.data('toggled')\n      parent.document.body.cols = '25%, *'\n      body.data 'toggled', false\n    else\n      parent.document.body.cols = '0, *'\n      body.data 'toggled', true\n\n  # List navigation\n  key 'c', -> loadSearch 'class_list.html', 'class_list_link'\n  key 'm', -> loadSearch 'method_list.html', 'method_list_link'\n  key 'i', -> loadSearch 'mixin_list.html', 'mixin_list_link'\n  key 'f', -> loadSearch 'file_list.html', 'file_list_link'\n  key 'e', -> loadSearch 'extra_list.html', 'extra_list_link'\n\n  # Show help\n  key 'h', ->\n    try\n      parent.frames.main.$('#help').toggle()\n    catch\n      try\n        $('#help').toggle()\n\n  # Fuzzy class search\n  key 't', (e) ->\n    e.preventDefault()\n\n    try\n      $('#fuzzySearch').toggle()\n      $('#fuzzySearch input').focus().select()\n\n    try\n      parent.frames.main.$('#fuzzySearch').show()\n      parent.frames.main.$('#fuzzySearch input').focus().select()"
  },
  {
    "path": "themes/default/assets/javascript/sidebar.coffee",
    "content": "$ ->\n\n  # Create stripes\n  window.createStripes = ->\n    $('#content.list li:visible').each (i, el) ->\n      if i % 2 is 0 then $(el).addClass('stripe') else $(el).removeClass('stripe')\n\n  # Indent nested Lists\n  window.indentTree = (el, width) ->\n    $(el).find('> ul').each ->\n      $(@).find('> li').css 'padding-left', \"#{ width }px\"\n      window.indentTree $(@), width + 20\n\n\n  #\n  # Add tree arrow links\n  #\n  $('#content.tree ul > ul').each ->\n    $(@).prev().prepend $('<a href=\"#\" class=\"toggle\"></a>')\n\n  #\n  # Search List\n  #\n  $('#search input').keyup (event) ->\n    search = $(@).val().toLowerCase()\n\n    if search.length == 0\n      $('#content.list ul li').each ->\n        if $('#content').hasClass 'tree'\n          $(@).removeClass 'result'\n          $(@).css 'padding-left', $(@).data 'padding'\n        $(@).show()\n    else\n      $('#content.list ul li').each ->\n        if $(@).find('a').text().toLowerCase().indexOf(search) == -1\n          $(@).hide()\n        else\n          if $('#content').hasClass 'tree'\n            $(@).addClass 'result'\n            padding = $(@).css('padding-left')\n            $(@).data 'padding', padding unless padding == '0px'\n            $(@).css 'padding-left', 0\n          $(@).show()\n\n    window.createStripes()\n\n  #\n  # Navigate from a Search List\n  #\n  $('body #content.list ul').on 'click', 'li', (event) ->\n    link = $(@).find('a:not(.toggle)').attr('href')\n    top.frames['main'].location.href = link if link && link != '#'\n    event.preventDefault()\n\n  #\n  # Collapse/expand sub trees\n  #\n  $('#content.tree a.toggle').click ->\n    $(@).toggleClass 'collapsed'\n    $(@).parent().next().toggle()\n    window.createStripes()\n\n  #\n  # Initialize\n  #\n  indentTree $('#content.list > ul'), 20\n  createStripes()"
  },
  {
    "path": "themes/default/assets/javascript/toc.coffee",
    "content": "$ ->\n\n  #\n  # Create file TOC from the headings\n  #\n  $('#filecontents').each ->\n    nav = $('nav.toc')\n    target = nav\n    level = 0\n    ancestors = []\n\n    for heading, index in $('h2,h3,h4,h5,h6', @)\n      heading = $(heading)\n      heading.before $(\"<a name='toc_#{ index }'></a>\")\n\n      depth = parseInt heading.get(0).tagName.substring(1)\n\n      # Create a nested list\n      if depth > level\n        list = $('<ol></ol>')\n        target.append list\n        ancestors.push target\n\n        target = list\n        level = depth\n\n      # Go up one list level\n      else if depth < level\n        target = ancestors.pop() for i in [0...level - depth]\n        target = $('nav.toc ol:first') unless target\n        level = depth\n\n      target.append $(\"<li><a href='#toc_#{ index }'>#{ heading.text() }</a></li>\")\n\n    nav.hide() if $('ol', nav).length is 0\n\n  #\n  # Toggle the TOC visibility\n  #\n  $('a.hide_toc').click -> $('nav.toc').toggleClass 'hidden'\n\n  #\n  # Toggle the float position status between floating and inline\n  #\n  $('a.float_toc').click ->\n    $('nav.toc').toggleClass 'inline'\n    $(@).text if $('nav.toc').hasClass 'inline' then 'float' else 'left'\n"
  },
  {
    "path": "themes/default/assets/javascript/vendor/fuzzy.coffee",
    "content": "# Taken from: https://github.com/stratuseditor/fuzzy-filter/blob/master/index.coffee\n\n# Public: Filter a list of items.\n#\n# pattern - The fuzzy String to match against.\n# items   - An Array of String.\n# options - (optional)\n#         * pre         - String to insert before matching text.\n#         * post        - String to insert after matching text.\n#         * limit       - Integer maximum number of results.\n#         * separator   - String separator. Match against the last\n#                         section of the String by default.\n#         * ignorecase  - Boolean (default: true).\n#         * ignorespace - Boolean (default: true).\n#         * separate    - Boolean (default: false). If set to true, the\n#                         function returns an array of an array of strings,\n#                         where each array is\n#                         [beforeLastSeparator, afterLastSeparator].\n#                         If set, `separator` must also be passed.\n#\n# Note: If `pre` is passed, you also have to pass `post` (and vice-versa).\n#\n# Examples\n#\n#   fuzzy = require 'fuzzy-filter'\n#   fuzzy \"cs\", [\"cheese\", \"pickles\", \"crackers\", \"pirate attack\", \"cs!!\"]\n#   # => [\"cs!!\", \"cheese\", \"crackers\"]\n#\n#   fuzzy \"cs\", [\"cheese\", \"pickles\", \"crackers\", \"pirate attack\", \"cs!!\"],\n#     pre:  \"<b>\"\n#     post: \"</b>\"\n#   # => [\"<b>cs</b>!!\", \"<b>c</b>hee<b>s</b>e\", \"<b>c</b>racker<b>s</b>\"]\n#\n#   fuzzy \"cs\", [\"cookies\", \"cheese/pie\", \"fried/cheese\", \"cheese/cookies\"],\n#     pre:       \"<b>\"\n#     post:      \"</b>\"\n#     separator: \"/\"\n#   # => [ \"<b>c</b>ookie<b>s</b>\"\n#   #    , \"fried/<b>c</b>hee<b>s</b>e\"\n#   #    , \"cheese/<b>c</b>ookie<b>s</b>\" ]\n#\n#   fuzzy \"cs/\", [\"cookies\", \"cheese/pie\", \"fried/cheese\", \"cheese/cookies\"],\n#     pre:       \"<b>\"\n#     post:      \"</b>\"\n#     separator: \"/\"\n#   # => [ \"<b>c</b>hee<b>s</b>e/pie\"\n#   #    , \"<b>c</b>hee<b>s</b>e/cookies\" ]\n#\n#   fuzzy \"cs/p\", [\"cookies\", \"cheese/pie\", \"fried/cheese\", \"cheese/cookies\"],\n#     pre:       \"<b>\"\n#     post:      \"</b>\"\n#     separator: \"/\"\n#   # => [\"<b>c</b>hee<b>s</b>e/<b>p</b>ie\"]\n#\n#   fuzzy \"cs/p\", [\"cookies\", \"cheese/pie\", \"fried/cheese\", \"cheese/cookies\"],\n#     pre:       \"<b>\"\n#     post:      \"</b>\"\n#     separator: \"/\"\n#     separate:  true\n#   # => [ [\"<b>c</b>hee<b>s</b>e\", \"<b>p</b>ie\"] ]\n#\n# Returns an Array of String.\nwindow.fuzzy = (pattern, items, options={}) ->\n  {pre, post, limit, separator, ignorecase, ignorespace, separate} = options\n  ignorecase  ?= true\n  ignorespace ?= true\n  separate    ?= false\n\n  # `separate` requires a separator.\n  if separate && !separator\n    throw new Error \"You must pass a separator when options.separate is true.\"\n\n  pattern     = pattern.replace /\\s/g, \"\" if ignorespace\n  matches     = []\n  flags       = (ignorecase && \"i\") || \"\"\n  doHighlight = pre && post\n\n  # Internal:\n  # before - The matched text before the last separator.\n  # after  - The matched text after the last separator.\n  # method - \"unshift\" or \"push\"\n  addMatch = (before, after, method) ->\n    if separate\n      matches[method] [before, after]\n    else\n      if before\n        matches[method] before + separator + after\n      else\n        matches[method] after\n\n\n  # Internal: Add a match to the end of the matches Array.\n  # Returns nothing.\n  appendMatch = (before, after) ->\n    addMatch before, after, \"push\"\n\n  # Internal: Prepend a match to the matches Array.\n  # Returns nothing.\n  prependMatch = (before, after) ->\n    addMatch before, after, \"unshift\"\n\n  if separator\n    preParts    = pattern.split separator\n    postPart    = preParts.pop()\n    prePart     = preParts.join separator\n    inner       = _.map preParts, ((p) -> makePattern(p))\n    inner       = inner.join \".*?#{ separator }.*?\"\n    preSepRegex = new RegExp \"^.*?#{ inner }.*?$\", flags\n  else\n    preParts     = false\n    postPart     = pattern\n    preSepRegex  = false\n  postSepRegex = new RegExp \"^.*?#{ makePattern(postPart) }.*$\", flags\n\n  for item in items\n    break if matches.length == limit\n    hasTextBeforeSeparator = separator && !!~item.indexOf(separator)\n\n    # Match the beginning of the item.\n    if !hasTextBeforeSeparator && item.indexOf(pattern) == 0\n      if doHighlight\n        len = pattern.length\n        prependMatch \"\", pre + item.slice(0, len) + post + item.slice(len)\n      else\n        prependMatch \"\", item\n      continue\n\n    if hasTextBeforeSeparator\n      parts   = item.split separator\n      preSep  = parts[0..-2].join separator\n      postSep = _.last parts\n    else\n      preSep  = \"\"\n      postSep = item\n\n    # Match the part before the last separator.\n    isMatch   = !preSepRegex  || preSepRegex.test(preSep)\n    # Match the part after the last separator.\n    isMatch &&= !postSepRegex || postSepRegex.test(postSep)\n    continue unless isMatch\n\n    if doHighlight\n      after = surroundMatch postSep, postPart, pre, post, ignorecase\n      if hasTextBeforeSeparator\n        before = surroundMatch preSep, prePart, pre, post, ignorecase\n        appendMatch before, after\n      else\n        appendMatch \"\", after\n    else\n      appendMatch preSep, postSep\n\n  return matches\n\n\n\n# Internal:\n#\n# Returns a String to be turned into a RegExp.\nmakePattern = (pattern) ->\n  chars = pattern.split \"\"\n  regex = []\n  for c in chars\n    c = if c is \"\\\\\" then \"\\\\\\\\\" else c\n    regex.push \"([#{ c }])\"\n  return regex.join \"[^/]*?\"\n\n\n# Internal:\n#\n# Examples\n#\n#   surroundMatch \"cheese\", \"cs\", \"<b>\", \"</b>\"\n#   # => \"<b>c</b>hee<b>s</b>e\"\n#\n# Returns String.\nsurroundMatch = (string, pattern, pre, post, ignorecase) ->\n  done     = \"\"\n  pattern  = pattern.split \"\"\n  nextChar = pattern.shift()\n  for c in string.split(\"\")\n    if nextChar\n      sameChar = false\n      if ignorecase && c.toLowerCase() == nextChar.toLowerCase()\n        sameChar = true\n      else if !ignorecase && c == nextChar\n        sameChar = true\n\n      if sameChar\n        done    += \"#{pre}#{c}#{post}\"\n        nextChar = pattern.shift()\n        continue\n\n    done += c\n  return done\n"
  },
  {
    "path": "themes/default/assets/javascript/vendor/highlight.coffeescript.js",
    "content": "//= require ./highlight\n\n/*\nLanguage: CoffeeScript\nAuthor: Dmytrii Nagirniak <dnagir@gmail.com>\nContributors: Oleg Efimov <efimovov@gmail.com>\nDescription: CoffeeScript is a programming language that transcompiles to JavaScript. For info about language see http://coffeescript.org/\n*/\n\nhljs.LANGUAGES.coffeescript = function() {\n  var keywords = {\n    'keyword': {\n      // JS keywords\n      'in': 1, 'if': 1, 'for': 1, 'while': 1, 'finally': 1,\n      'new': 1, 'do': 1, 'return': 1, 'else': 1,\n      'break': 1, 'catch': 1, 'instanceof': 1, 'throw': 1,\n      'try': 1, 'this': 1, 'switch': 1, 'continue': 1, 'typeof': 1,\n      'delete': 1, 'debugger': 1,\n      'class': 1, 'extends': 1, 'super': 1,\n      // Coffee keywords\n      'then': 1, 'unless': 1, 'until': 1, 'loop': 2, 'of': 2, 'by': 1, 'when': 2,\n      'and': 1, 'or': 1, 'is': 1, 'isnt': 2, 'not': 1\n    },\n    'literal': {\n      // JS literals\n      'true': 1, 'false': 1, 'null': 1, 'undefined': 1,\n      // Coffee literals\n      'yes': 1, 'no': 1, 'on': 1, 'off': 1\n    },\n    'reserved': {\n      'case': 1, 'default': 1, 'function': 1, 'var': 1, 'void': 1, 'with': 1,\n      'const': 1, 'let': 1, 'enum': 1, 'export': 1, 'import': 1, 'native': 1,\n      '__hasProp': 1 , '__extends': 1 , '__slice': 1 , '__bind': 1 , '__indexOf': 1\n    }\n  };\n\n  var JS_IDENT_RE = '[A-Za-z$_][0-9A-Za-z$_]*';\n\n  var COFFEE_QUOTE_STRING_SUBST_MODE = {\n    className: 'subst',\n    begin: '#\\\\{', end: '}',\n    keywords: keywords,\n    contains: [hljs.C_NUMBER_MODE, hljs.BINARY_NUMBER_MODE]\n  };\n\n  var COFFEE_QUOTE_STRING_MODE = {\n    className: 'string',\n    begin: '\"', end: '\"',\n    relevance: 0,\n    contains: [hljs.BACKSLASH_ESCAPE, COFFEE_QUOTE_STRING_SUBST_MODE]\n  };\n\n  var COFFEE_HEREDOC_MODE = {\n    className: 'string',\n    begin: '\"\"\"', end: '\"\"\"',\n    contains: [hljs.BACKSLASH_ESCAPE, COFFEE_QUOTE_STRING_SUBST_MODE]\n  };\n\n  var COFFEE_HERECOMMENT_MODE = {\n    className: 'comment',\n    begin: '###', end: '###'\n  };\n\n  var COFFEE_HEREGEX_MODE = {\n    className: 'regexp',\n    begin: '///', end: '///',\n    contains: [hljs.HASH_COMMENT_MODE]\n  };\n\n  var COFFEE_FUNCTION_DECLARATION_MODE = {\n    className: 'function',\n    begin: JS_IDENT_RE + '\\\\s*=\\\\s*(\\\\(.+\\\\))?\\\\s*[-=]>',\n    returnBegin: true,\n    contains: [\n      {\n        className: 'title',\n        begin: JS_IDENT_RE\n      },\n      {\n        className: 'params',\n        begin: '\\\\(', end: '\\\\)'\n      }\n    ]\n  };\n\n  var COFFEE_EMBEDDED_JAVASCRIPT = {\n    className: 'javascript',\n    begin: '`', end: '`',\n    excludeBegin: true, excludeEnd: true,\n    subLanguage: 'javascript'\n  };\n\n  return {\n    defaultMode: {\n      keywords: keywords,\n      contains: [\n        // Numbers \n        hljs.C_NUMBER_MODE,\n        hljs.BINARY_NUMBER_MODE,\n        // Strings\n        hljs.APOS_STRING_MODE,\n        COFFEE_HEREDOC_MODE, // Should be before COFFEE_QUOTE_STRING_MODE for greater priority\n        COFFEE_QUOTE_STRING_MODE,\n        // Comments\n        COFFEE_HERECOMMENT_MODE, // Should be before hljs.HASH_COMMENT_MODE for greater priority\n        hljs.HASH_COMMENT_MODE,\n        // CoffeeScript specific modes\n        COFFEE_HEREGEX_MODE,\n        COFFEE_EMBEDDED_JAVASCRIPT,\n        COFFEE_FUNCTION_DECLARATION_MODE\n      ]\n    }\n  };\n}();\n"
  },
  {
    "path": "themes/default/assets/javascript/vendor/highlight.js",
    "content": "/*\nSyntax highlighting with language autodetection.\nhttp://softwaremaniacs.org/soft/highlight/\n*/\n\nvar hljs = new function() {\n\n  /* Utility functions */\n\n  function escape(value) {\n    return value.replace(/&/gm, '&amp;').replace(/</gm, '&lt;');\n  }\n\n  function langRe(language, value, global) {\n    return RegExp(\n      value,\n      'm' + (language.case_insensitive ? 'i' : '') + (global ? 'g' : '')\n    );\n  }\n\n  function findCode(pre) {\n    for (var i = 0; i < pre.childNodes.length; i++) {\n      var node = pre.childNodes[i];\n      if (node.nodeName == 'CODE')\n        return node;\n      if (!(node.nodeType == 3 && node.nodeValue.match(/\\s+/)))\n        break;\n    }\n  }\n\n  function blockText(block, ignoreNewLines) {\n    var result = '';\n    for (var i = 0; i < block.childNodes.length; i++)\n      if (block.childNodes[i].nodeType == 3) {\n        var chunk = block.childNodes[i].nodeValue;\n        if (ignoreNewLines)\n          chunk = chunk.replace(/\\n/g, '');\n        result += chunk;\n      } else if (block.childNodes[i].nodeName == 'BR')\n        result += '\\n';\n      else\n        result += blockText(block.childNodes[i]);\n    // Thank you, MSIE...\n    if (/MSIE [678]/.test(navigator.userAgent))\n      result = result.replace(/\\r/g, '\\n');\n    return result;\n  }\n\n  function blockLanguage(block) {\n    var classes = block.className.split(/\\s+/);\n    classes = classes.concat(block.parentNode.className.split(/\\s+/));\n    for (var i = 0; i < classes.length; i++) {\n      var class_ = classes[i].replace(/^language-/, '');\n      if (languages[class_] || class_ == 'no-highlight') {\n        return class_;\n      }\n    }\n  }\n\n  /* Stream merging */\n\n  function nodeStream(node) {\n    var result = [];\n    (function (node, offset) {\n      for (var i = 0; i < node.childNodes.length; i++) {\n        if (node.childNodes[i].nodeType == 3)\n          offset += node.childNodes[i].nodeValue.length;\n        else if (node.childNodes[i].nodeName == 'BR')\n          offset += 1;\n        else if (node.childNodes[i].nodeType == 1) {\n          result.push({\n            event: 'start',\n            offset: offset,\n            node: node.childNodes[i]\n          });\n          offset = arguments.callee(node.childNodes[i], offset);\n          result.push({\n            event: 'stop',\n            offset: offset,\n            node: node.childNodes[i]\n          });\n        }\n      }\n      return offset;\n    })(node, 0);\n    return result;\n  }\n\n  function mergeStreams(stream1, stream2, value) {\n    var processed = 0;\n    var result = '';\n    var nodeStack = [];\n\n    function selectStream() {\n      if (stream1.length && stream2.length) {\n        if (stream1[0].offset != stream2[0].offset)\n          return (stream1[0].offset < stream2[0].offset) ? stream1 : stream2;\n        else {\n          /*\n          To avoid starting the stream just before it should stop the order is\n          ensured that stream1 always starts first and closes last:\n\n          if (event1 == 'start' && event2 == 'start')\n            return stream1;\n          if (event1 == 'start' && event2 == 'stop')\n            return stream2;\n          if (event1 == 'stop' && event2 == 'start')\n            return stream1;\n          if (event1 == 'stop' && event2 == 'stop')\n            return stream2;\n\n          ... which is collapsed to:\n          */\n          return stream2[0].event == 'start' ? stream1 : stream2;\n        }\n      } else {\n        return stream1.length ? stream1 : stream2;\n      }\n    }\n\n    function open(node) {\n      var result = '<' + node.nodeName.toLowerCase();\n      for (var i = 0; i < node.attributes.length; i++) {\n        var attribute = node.attributes[i];\n        result += ' ' + attribute.nodeName.toLowerCase();\n        if (attribute.value !== undefined && attribute.value !== false && attribute.value !== null) {\n          result += '=\"' + escape(attribute.value) + '\"';\n        }\n      }\n      return result + '>';\n    }\n\n    while (stream1.length || stream2.length) {\n      var current = selectStream().splice(0, 1)[0];\n      result += escape(value.substr(processed, current.offset - processed));\n      processed = current.offset;\n      if ( current.event == 'start') {\n        result += open(current.node);\n        nodeStack.push(current.node);\n      } else if (current.event == 'stop') {\n        var node, i = nodeStack.length;\n        do {\n          i--;\n          node = nodeStack[i];\n          result += ('</' + node.nodeName.toLowerCase() + '>');\n        } while (node != current.node);\n        nodeStack.splice(i, 1);\n        while (i < nodeStack.length) {\n          result += open(nodeStack[i]);\n          i++;\n        }\n      }\n    }\n    return result + escape(value.substr(processed));\n  }\n\n  /* Initialization */\n\n  function compileModes() {\n\n    function compileMode(mode, language, is_default) {\n      if (mode.compiled)\n        return;\n      var group;\n\n      if (!is_default) {\n        mode.beginRe = langRe(language, mode.begin ? mode.begin : '\\\\B|\\\\b');\n        if (!mode.end && !mode.endsWithParent)\n          mode.end = '\\\\B|\\\\b';\n        if (mode.end)\n          mode.endRe = langRe(language, mode.end);\n      }\n      if (mode.illegal)\n        mode.illegalRe = langRe(language, mode.illegal);\n      if (mode.relevance === undefined)\n        mode.relevance = 1;\n      if (mode.keywords) {\n        mode.lexemsRe = langRe(language, mode.lexems || hljs.IDENT_RE, true);\n        for (var className in mode.keywords) {\n          if (!mode.keywords.hasOwnProperty(className))\n            continue;\n          if (mode.keywords[className] instanceof Object) {\n            group = mode.keywords[className];\n          } else {\n            group = mode.keywords;\n            className = 'keyword';\n          }\n          for (var keyword in group) {\n            if (!group.hasOwnProperty(keyword))\n              continue;\n            mode.keywords[keyword] = [className, group[keyword]];\n          }\n        }\n      }\n      if (!mode.contains) {\n        mode.contains = [];\n      }\n      // compiled flag is set before compiling submodes to avoid self-recursion\n      // (see lisp where quoted_list contains quoted_list)\n      mode.compiled = true;\n      for (var i = 0; i < mode.contains.length; i++) {\n        if (mode.contains[i] == 'self') {\n          mode.contains[i] = mode;\n        }\n        compileMode(mode.contains[i], language, false);\n      }\n      if (mode.starts) {\n        compileMode(mode.starts, language, false);\n      }\n    }\n\n    for (var i in languages) {\n      if (!languages.hasOwnProperty(i))\n        continue;\n      compileMode(languages[i].defaultMode, languages[i], true);\n    }\n  }\n\n  /*\n  Core highlighting function. Accepts a language name and a string with the\n  code to highlight. Returns an object with the following properties:\n\n  - relevance (int)\n  - keyword_count (int)\n  - value (an HTML string with highlighting markup)\n\n  */\n  function highlight(language_name, value) {\n    if (!compileModes.called) {\n      compileModes();\n      compileModes.called = true;\n    }\n\n    function subMode(lexem, mode) {\n      for (var i = 0; i < mode.contains.length; i++) {\n        if (mode.contains[i].beginRe.test(lexem)) {\n          return mode.contains[i];\n        }\n      }\n    }\n\n    function endOfMode(mode_index, lexem) {\n      if (modes[mode_index].end && modes[mode_index].endRe.test(lexem))\n        return 1;\n      if (modes[mode_index].endsWithParent) {\n        var level = endOfMode(mode_index - 1, lexem);\n        return level ? level + 1 : 0;\n      }\n      return 0;\n    }\n\n    function isIllegal(lexem, mode) {\n      return mode.illegal && mode.illegalRe.test(lexem);\n    }\n\n    function compileTerminators(mode, language) {\n      var terminators = [];\n\n      for (var i = 0; i < mode.contains.length; i++) {\n        terminators.push(mode.contains[i].begin);\n      }\n\n      var index = modes.length - 1;\n      do {\n        if (modes[index].end) {\n          terminators.push(modes[index].end);\n        }\n        index--;\n      } while (modes[index + 1].endsWithParent);\n\n      if (mode.illegal) {\n        terminators.push(mode.illegal);\n      }\n\n      return langRe(language, '(' + terminators.join('|') + ')', true);\n    }\n\n    function eatModeChunk(value, index) {\n      var mode = modes[modes.length - 1];\n      if (!mode.terminators) {\n        mode.terminators = compileTerminators(mode, language);\n      }\n      mode.terminators.lastIndex = index;\n      var match = mode.terminators.exec(value);\n      if (match)\n        return [value.substr(index, match.index - index), match[0], false];\n      else\n        return [value.substr(index), '', true];\n    }\n\n    function keywordMatch(mode, match) {\n      var match_str = language.case_insensitive ? match[0].toLowerCase() : match[0];\n      var value = mode.keywords[match_str];\n      if (value && value instanceof Array)\n          return value;\n      return false;\n    }\n\n    function processKeywords(buffer, mode) {\n      buffer = escape(buffer);\n      if (!mode.keywords)\n        return buffer;\n      var result = '';\n      var last_index = 0;\n      mode.lexemsRe.lastIndex = 0;\n      var match = mode.lexemsRe.exec(buffer);\n      while (match) {\n        result += buffer.substr(last_index, match.index - last_index);\n        var keyword_match = keywordMatch(mode, match);\n        if (keyword_match) {\n          keyword_count += keyword_match[1];\n          result += '<span class=\"'+ keyword_match[0] +'\">' + match[0] + '</span>';\n        } else {\n          result += match[0];\n        }\n        last_index = mode.lexemsRe.lastIndex;\n        match = mode.lexemsRe.exec(buffer);\n      }\n      return result + buffer.substr(last_index, buffer.length - last_index);\n    }\n\n    function processBuffer(buffer, mode) {\n      if (mode.subLanguage && languages[mode.subLanguage]) {\n        var result = highlight(mode.subLanguage, buffer);\n        keyword_count += result.keyword_count;\n        return result.value;\n      } else {\n        return processKeywords(buffer, mode);\n      }\n    }\n\n    function startNewMode(mode, lexem) {\n      var markup = mode.className?'<span class=\"' + mode.className + '\">':'';\n      if (mode.returnBegin) {\n        result += markup;\n        mode.buffer = '';\n      } else if (mode.excludeBegin) {\n        result += escape(lexem) + markup;\n        mode.buffer = '';\n      } else {\n        result += markup;\n        mode.buffer = lexem;\n      }\n      modes.push(mode);\n      relevance += mode.relevance;\n    }\n\n    function processModeInfo(buffer, lexem, end) {\n      var current_mode = modes[modes.length - 1];\n      if (end) {\n        result += processBuffer(current_mode.buffer + buffer, current_mode);\n        return false;\n      }\n\n      var new_mode = subMode(lexem, current_mode);\n      if (new_mode) {\n        result += processBuffer(current_mode.buffer + buffer, current_mode);\n        startNewMode(new_mode, lexem);\n        return new_mode.returnBegin;\n      }\n\n      var end_level = endOfMode(modes.length - 1, lexem);\n      if (end_level) {\n        var markup = current_mode.className?'</span>':'';\n        if (current_mode.returnEnd) {\n          result += processBuffer(current_mode.buffer + buffer, current_mode) + markup;\n        } else if (current_mode.excludeEnd) {\n          result += processBuffer(current_mode.buffer + buffer, current_mode) + markup + escape(lexem);\n        } else {\n          result += processBuffer(current_mode.buffer + buffer + lexem, current_mode) + markup;\n        }\n        while (end_level > 1) {\n          markup = modes[modes.length - 2].className?'</span>':'';\n          result += markup;\n          end_level--;\n          modes.length--;\n        }\n        var last_ended_mode = modes[modes.length - 1];\n        modes.length--;\n        modes[modes.length - 1].buffer = '';\n        if (last_ended_mode.starts) {\n          startNewMode(last_ended_mode.starts, '');\n        }\n        return current_mode.returnEnd;\n      }\n\n      if (isIllegal(lexem, current_mode))\n        throw 'Illegal';\n    }\n\n    var language = languages[language_name];\n    var modes = [language.defaultMode];\n    var relevance = 0;\n    var keyword_count = 0;\n    var result = '';\n    try {\n      var mode_info, index = 0;\n      language.defaultMode.buffer = '';\n      do {\n        mode_info = eatModeChunk(value, index);\n        var return_lexem = processModeInfo(mode_info[0], mode_info[1], mode_info[2]);\n        index += mode_info[0].length;\n        if (!return_lexem) {\n          index += mode_info[1].length;\n        }\n      } while (!mode_info[2]);\n      if(modes.length > 1)\n        throw 'Illegal';\n      return {\n        relevance: relevance,\n        keyword_count: keyword_count,\n        value: result\n      };\n    } catch (e) {\n      if (e == 'Illegal') {\n        return {\n          relevance: 0,\n          keyword_count: 0,\n          value: escape(value)\n        };\n      } else {\n        throw e;\n      }\n    }\n  }\n\n  /*\n  Highlighting with language detection. Accepts a string with the code to\n  highlight. Returns an object with the following properties:\n\n  - language (detected language)\n  - relevance (int)\n  - keyword_count (int)\n  - value (an HTML string with highlighting markup)\n  - second_best (object with the same structure for second-best heuristically\n    detected language, may be absent)\n\n  */\n  function highlightAuto(text) {\n    var result = {\n      keyword_count: 0,\n      relevance: 0,\n      value: escape(text)\n    };\n    var second_best = result;\n    for (var key in languages) {\n      if (!languages.hasOwnProperty(key))\n        continue;\n      var current = highlight(key, text);\n      current.language = key;\n      if (current.keyword_count + current.relevance > second_best.keyword_count + second_best.relevance) {\n        second_best = current;\n      }\n      if (current.keyword_count + current.relevance > result.keyword_count + result.relevance) {\n        second_best = result;\n        result = current;\n      }\n    }\n    if (second_best.language) {\n      result.second_best = second_best;\n    }\n    return result;\n  }\n\n  /*\n  Post-processing of the highlighted markup:\n\n  - replace TABs with something more useful\n  - replace real line-breaks with '<br>' for non-pre containers\n\n  */\n  function fixMarkup(value, tabReplace, useBR) {\n    if (tabReplace) {\n      value = value.replace(/^((<[^>]+>|\\t)+)/gm, function(match, p1, offset, s) {\n        return p1.replace(/\\t/g, tabReplace);\n      });\n    }\n    if (useBR) {\n      value = value.replace(/\\n/g, '<br>');\n    }\n    return value;\n  }\n\n  /*\n  Applies highlighting to a DOM node containing code. Accepts a DOM node and\n  two optional parameters for fixMarkup.\n  */\n  function highlightBlock(block, tabReplace, useBR) {\n    var text = blockText(block, useBR);\n    var language = blockLanguage(block);\n    var result, pre;\n    if (language == 'no-highlight')\n        return;\n    if (language) {\n      result = highlight(language, text);\n    } else {\n      result = highlightAuto(text);\n      language = result.language;\n    }\n    var original = nodeStream(block);\n    if (original.length) {\n      pre = document.createElement('pre');\n      pre.innerHTML = result.value;\n      result.value = mergeStreams(original, nodeStream(pre), text);\n    }\n    result.value = fixMarkup(result.value, tabReplace, useBR);\n\n    var class_name = block.className;\n    if (!class_name.match('(\\\\s|^)(language-)?' + language + '(\\\\s|$)')) {\n      class_name = class_name ? (class_name + ' ' + language) : language;\n    }\n    if (/MSIE [678]/.test(navigator.userAgent) && block.tagName == 'CODE' && block.parentNode.tagName == 'PRE') {\n      // This is for backwards compatibility only. IE needs this strange\n      // hack becasue it cannot just cleanly replace <code> block contents.\n      pre = block.parentNode;\n      var container = document.createElement('div');\n      container.innerHTML = '<pre><code>' + result.value + '</code></pre>';\n      block = container.firstChild.firstChild;\n      container.firstChild.className = pre.className;\n      pre.parentNode.replaceChild(container.firstChild, pre);\n    } else {\n      block.innerHTML = result.value;\n    }\n    block.className = class_name;\n    block.result = {\n      language: language,\n      kw: result.keyword_count,\n      re: result.relevance\n    };\n    if (result.second_best) {\n      block.second_best = {\n        language: result.second_best.language,\n        kw: result.second_best.keyword_count,\n        re: result.second_best.relevance\n      };\n    }\n  }\n\n  /*\n  Applies highlighting to all <pre><code>..</code></pre> blocks on a page.\n  */\n  function initHighlighting() {\n    if (initHighlighting.called)\n      return;\n    initHighlighting.called = true;\n    var pres = document.getElementsByTagName('pre');\n    for (var i = 0; i < pres.length; i++) {\n      var code = findCode(pres[i]);\n      if (code)\n        highlightBlock(code, hljs.tabReplace);\n    }\n  }\n\n  /*\n  Attaches highlighting to the page load event.\n  */\n  function initHighlightingOnLoad() {\n    if (window.addEventListener) {\n      window.addEventListener('DOMContentLoaded', initHighlighting, false);\n      window.addEventListener('load', initHighlighting, false);\n    } else if (window.attachEvent)\n      window.attachEvent('onload', initHighlighting);\n    else\n      window.onload = initHighlighting;\n  }\n\n  var languages = {}; // a shortcut to avoid writing \"this.\" everywhere\n\n  /* Interface definition */\n\n  this.LANGUAGES = languages;\n  this.highlight = highlight;\n  this.highlightAuto = highlightAuto;\n  this.fixMarkup = fixMarkup;\n  this.highlightBlock = highlightBlock;\n  this.initHighlighting = initHighlighting;\n  this.initHighlightingOnLoad = initHighlightingOnLoad;\n\n  // Common regexps\n  this.IDENT_RE = '[a-zA-Z][a-zA-Z0-9_]*';\n  this.UNDERSCORE_IDENT_RE = '[a-zA-Z_][a-zA-Z0-9_]*';\n  this.NUMBER_RE = '\\\\b\\\\d+(\\\\.\\\\d+)?';\n  this.C_NUMBER_RE = '\\\\b(0[xX][a-fA-F0-9]+|(\\\\d+(\\\\.\\\\d*)?|\\\\.\\\\d+)([eE][-+]?\\\\d+)?)'; // 0x..., 0..., decimal, float\n  this.BINARY_NUMBER_RE = '\\\\b(0b[01]+)'; // 0b...\n  this.RE_STARTERS_RE = '!|!=|!==|%|%=|&|&&|&=|\\\\*|\\\\*=|\\\\+|\\\\+=|,|\\\\.|-|-=|/|/=|:|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|\\\\?|\\\\[|\\\\{|\\\\(|\\\\^|\\\\^=|\\\\||\\\\|=|\\\\|\\\\||~';\n\n  // Common modes\n  this.BACKSLASH_ESCAPE = {\n    begin: '\\\\\\\\.', relevance: 0\n  };\n  this.APOS_STRING_MODE = {\n    className: 'string',\n    begin: '\\'', end: '\\'',\n    illegal: '\\\\n',\n    contains: [this.BACKSLASH_ESCAPE],\n    relevance: 0\n  };\n  this.QUOTE_STRING_MODE = {\n    className: 'string',\n    begin: '\"', end: '\"',\n    illegal: '\\\\n',\n    contains: [this.BACKSLASH_ESCAPE],\n    relevance: 0\n  };\n  this.C_LINE_COMMENT_MODE = {\n    className: 'comment',\n    begin: '//', end: '$'\n  };\n  this.C_BLOCK_COMMENT_MODE = {\n    className: 'comment',\n    begin: '/\\\\*', end: '\\\\*/'\n  };\n  this.HASH_COMMENT_MODE = {\n    className: 'comment',\n    begin: '#', end: '$'\n  };\n  this.NUMBER_MODE = {\n    className: 'number',\n    begin: this.NUMBER_RE,\n    relevance: 0\n  };\n  this.C_NUMBER_MODE = {\n    className: 'number',\n    begin: this.C_NUMBER_RE,\n    relevance: 0\n  };\n  this.BINARY_NUMBER_MODE = {\n    className: 'number',\n    begin: this.BINARY_NUMBER_RE,\n    relevance: 0\n  };\n\n  // Utility functions\n  this.inherit = function(parent, obj) {\n    var result = {}\n    for (var key in parent)\n      result[key] = parent[key];\n    if (obj)\n      for (var key in obj)\n        result[key] = obj[key];\n    return result;\n  }\n}();\n"
  },
  {
    "path": "themes/default/assets/javascript/vendor/jquery.js",
    "content": "/*!\n * jQuery JavaScript Library v1.8.1\n * http://jquery.com/\n *\n * Includes Sizzle.js\n * http://sizzlejs.com/\n *\n * Copyright 2012 jQuery Foundation and other contributors\n * Released under the MIT license\n * http://jquery.org/license\n *\n * Date: Thu Aug 30 2012 17:17:22 GMT-0400 (Eastern Daylight Time)\n */\n(function( window, undefined ) {\nvar\n\t// A central reference to the root jQuery(document)\n\trootjQuery,\n\n\t// The deferred used on DOM ready\n\treadyList,\n\n\t// Use the correct document accordingly with window argument (sandbox)\n\tdocument = window.document,\n\tlocation = window.location,\n\tnavigator = window.navigator,\n\n\t// Map over jQuery in case of overwrite\n\t_jQuery = window.jQuery,\n\n\t// Map over the $ in case of overwrite\n\t_$ = window.$,\n\n\t// Save a reference to some core methods\n\tcore_push = Array.prototype.push,\n\tcore_slice = Array.prototype.slice,\n\tcore_indexOf = Array.prototype.indexOf,\n\tcore_toString = Object.prototype.toString,\n\tcore_hasOwn = Object.prototype.hasOwnProperty,\n\tcore_trim = String.prototype.trim,\n\n\t// Define a local copy of jQuery\n\tjQuery = function( selector, context ) {\n\t\t// The jQuery object is actually just the init constructor 'enhanced'\n\t\treturn new jQuery.fn.init( selector, context, rootjQuery );\n\t},\n\n\t// Used for matching numbers\n\tcore_pnum = /[\\-+]?(?:\\d*\\.|)\\d+(?:[eE][\\-+]?\\d+|)/.source,\n\n\t// Used for detecting and trimming whitespace\n\tcore_rnotwhite = /\\S/,\n\tcore_rspace = /\\s+/,\n\n\t// Make sure we trim BOM and NBSP (here's looking at you, Safari 5.0 and IE)\n\trtrim = /^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g,\n\n\t// A simple way to check for HTML strings\n\t// Prioritize #id over <tag> to avoid XSS via location.hash (#9521)\n\trquickExpr = /^(?:[^#<]*(<[\\w\\W]+>)[^>]*$|#([\\w\\-]*)$)/,\n\n\t// Match a standalone tag\n\trsingleTag = /^<(\\w+)\\s*\\/?>(?:<\\/\\1>|)$/,\n\n\t// JSON RegExp\n\trvalidchars = /^[\\],:{}\\s]*$/,\n\trvalidbraces = /(?:^|:|,)(?:\\s*\\[)+/g,\n\trvalidescape = /\\\\(?:[\"\\\\\\/bfnrt]|u[\\da-fA-F]{4})/g,\n\trvalidtokens = /\"[^\"\\\\\\r\\n]*\"|true|false|null|-?(?:\\d\\d*\\.|)\\d+(?:[eE][\\-+]?\\d+|)/g,\n\n\t// Matches dashed string for camelizing\n\trmsPrefix = /^-ms-/,\n\trdashAlpha = /-([\\da-z])/gi,\n\n\t// Used by jQuery.camelCase as callback to replace()\n\tfcamelCase = function( all, letter ) {\n\t\treturn ( letter + \"\" ).toUpperCase();\n\t},\n\n\t// The ready event handler and self cleanup method\n\tDOMContentLoaded = function() {\n\t\tif ( document.addEventListener ) {\n\t\t\tdocument.removeEventListener( \"DOMContentLoaded\", DOMContentLoaded, false );\n\t\t\tjQuery.ready();\n\t\t} else if ( document.readyState === \"complete\" ) {\n\t\t\t// we're here because readyState === \"complete\" in oldIE\n\t\t\t// which is good enough for us to call the dom ready!\n\t\t\tdocument.detachEvent( \"onreadystatechange\", DOMContentLoaded );\n\t\t\tjQuery.ready();\n\t\t}\n\t},\n\n\t// [[Class]] -> type pairs\n\tclass2type = {};\n\njQuery.fn = jQuery.prototype = {\n\tconstructor: jQuery,\n\tinit: function( selector, context, rootjQuery ) {\n\t\tvar match, elem, ret, doc;\n\n\t\t// Handle $(\"\"), $(null), $(undefined), $(false)\n\t\tif ( !selector ) {\n\t\t\treturn this;\n\t\t}\n\n\t\t// Handle $(DOMElement)\n\t\tif ( selector.nodeType ) {\n\t\t\tthis.context = this[0] = selector;\n\t\t\tthis.length = 1;\n\t\t\treturn this;\n\t\t}\n\n\t\t// Handle HTML strings\n\t\tif ( typeof selector === \"string\" ) {\n\t\t\tif ( selector.charAt(0) === \"<\" && selector.charAt( selector.length - 1 ) === \">\" && selector.length >= 3 ) {\n\t\t\t\t// Assume that strings that start and end with <> are HTML and skip the regex check\n\t\t\t\tmatch = [ null, selector, null ];\n\n\t\t\t} else {\n\t\t\t\tmatch = rquickExpr.exec( selector );\n\t\t\t}\n\n\t\t\t// Match html or make sure no context is specified for #id\n\t\t\tif ( match && (match[1] || !context) ) {\n\n\t\t\t\t// HANDLE: $(html) -> $(array)\n\t\t\t\tif ( match[1] ) {\n\t\t\t\t\tcontext = context instanceof jQuery ? context[0] : context;\n\t\t\t\t\tdoc = ( context && context.nodeType ? context.ownerDocument || context : document );\n\n\t\t\t\t\t// scripts is true for back-compat\n\t\t\t\t\tselector = jQuery.parseHTML( match[1], doc, true );\n\t\t\t\t\tif ( rsingleTag.test( match[1] ) && jQuery.isPlainObject( context ) ) {\n\t\t\t\t\t\tthis.attr.call( selector, context, true );\n\t\t\t\t\t}\n\n\t\t\t\t\treturn jQuery.merge( this, selector );\n\n\t\t\t\t// HANDLE: $(#id)\n\t\t\t\t} else {\n\t\t\t\t\telem = document.getElementById( match[2] );\n\n\t\t\t\t\t// Check parentNode to catch when Blackberry 4.6 returns\n\t\t\t\t\t// nodes that are no longer in the document #6963\n\t\t\t\t\tif ( elem && elem.parentNode ) {\n\t\t\t\t\t\t// Handle the case where IE and Opera return items\n\t\t\t\t\t\t// by name instead of ID\n\t\t\t\t\t\tif ( elem.id !== match[2] ) {\n\t\t\t\t\t\t\treturn rootjQuery.find( selector );\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Otherwise, we inject the element directly into the jQuery object\n\t\t\t\t\t\tthis.length = 1;\n\t\t\t\t\t\tthis[0] = elem;\n\t\t\t\t\t}\n\n\t\t\t\t\tthis.context = document;\n\t\t\t\t\tthis.selector = selector;\n\t\t\t\t\treturn this;\n\t\t\t\t}\n\n\t\t\t// HANDLE: $(expr, $(...))\n\t\t\t} else if ( !context || context.jquery ) {\n\t\t\t\treturn ( context || rootjQuery ).find( selector );\n\n\t\t\t// HANDLE: $(expr, context)\n\t\t\t// (which is just equivalent to: $(context).find(expr)\n\t\t\t} else {\n\t\t\t\treturn this.constructor( context ).find( selector );\n\t\t\t}\n\n\t\t// HANDLE: $(function)\n\t\t// Shortcut for document ready\n\t\t} else if ( jQuery.isFunction( selector ) ) {\n\t\t\treturn rootjQuery.ready( selector );\n\t\t}\n\n\t\tif ( selector.selector !== undefined ) {\n\t\t\tthis.selector = selector.selector;\n\t\t\tthis.context = selector.context;\n\t\t}\n\n\t\treturn jQuery.makeArray( selector, this );\n\t},\n\n\t// Start with an empty selector\n\tselector: \"\",\n\n\t// The current version of jQuery being used\n\tjquery: \"1.8.1\",\n\n\t// The default length of a jQuery object is 0\n\tlength: 0,\n\n\t// The number of elements contained in the matched element set\n\tsize: function() {\n\t\treturn this.length;\n\t},\n\n\ttoArray: function() {\n\t\treturn core_slice.call( this );\n\t},\n\n\t// Get the Nth element in the matched element set OR\n\t// Get the whole matched element set as a clean array\n\tget: function( num ) {\n\t\treturn num == null ?\n\n\t\t\t// Return a 'clean' array\n\t\t\tthis.toArray() :\n\n\t\t\t// Return just the object\n\t\t\t( num < 0 ? this[ this.length + num ] : this[ num ] );\n\t},\n\n\t// Take an array of elements and push it onto the stack\n\t// (returning the new matched element set)\n\tpushStack: function( elems, name, selector ) {\n\n\t\t// Build a new jQuery matched element set\n\t\tvar ret = jQuery.merge( this.constructor(), elems );\n\n\t\t// Add the old object onto the stack (as a reference)\n\t\tret.prevObject = this;\n\n\t\tret.context = this.context;\n\n\t\tif ( name === \"find\" ) {\n\t\t\tret.selector = this.selector + ( this.selector ? \" \" : \"\" ) + selector;\n\t\t} else if ( name ) {\n\t\t\tret.selector = this.selector + \".\" + name + \"(\" + selector + \")\";\n\t\t}\n\n\t\t// Return the newly-formed element set\n\t\treturn ret;\n\t},\n\n\t// Execute a callback for every element in the matched set.\n\t// (You can seed the arguments with an array of args, but this is\n\t// only used internally.)\n\teach: function( callback, args ) {\n\t\treturn jQuery.each( this, callback, args );\n\t},\n\n\tready: function( fn ) {\n\t\t// Add the callback\n\t\tjQuery.ready.promise().done( fn );\n\n\t\treturn this;\n\t},\n\n\teq: function( i ) {\n\t\ti = +i;\n\t\treturn i === -1 ?\n\t\t\tthis.slice( i ) :\n\t\t\tthis.slice( i, i + 1 );\n\t},\n\n\tfirst: function() {\n\t\treturn this.eq( 0 );\n\t},\n\n\tlast: function() {\n\t\treturn this.eq( -1 );\n\t},\n\n\tslice: function() {\n\t\treturn this.pushStack( core_slice.apply( this, arguments ),\n\t\t\t\"slice\", core_slice.call(arguments).join(\",\") );\n\t},\n\n\tmap: function( callback ) {\n\t\treturn this.pushStack( jQuery.map(this, function( elem, i ) {\n\t\t\treturn callback.call( elem, i, elem );\n\t\t}));\n\t},\n\n\tend: function() {\n\t\treturn this.prevObject || this.constructor(null);\n\t},\n\n\t// For internal use only.\n\t// Behaves like an Array's method, not like a jQuery method.\n\tpush: core_push,\n\tsort: [].sort,\n\tsplice: [].splice\n};\n\n// Give the init function the jQuery prototype for later instantiation\njQuery.fn.init.prototype = jQuery.fn;\n\njQuery.extend = jQuery.fn.extend = function() {\n\tvar options, name, src, copy, copyIsArray, clone,\n\t\ttarget = arguments[0] || {},\n\t\ti = 1,\n\t\tlength = arguments.length,\n\t\tdeep = false;\n\n\t// Handle a deep copy situation\n\tif ( typeof target === \"boolean\" ) {\n\t\tdeep = target;\n\t\ttarget = arguments[1] || {};\n\t\t// skip the boolean and the target\n\t\ti = 2;\n\t}\n\n\t// Handle case when target is a string or something (possible in deep copy)\n\tif ( typeof target !== \"object\" && !jQuery.isFunction(target) ) {\n\t\ttarget = {};\n\t}\n\n\t// extend jQuery itself if only one argument is passed\n\tif ( length === i ) {\n\t\ttarget = this;\n\t\t--i;\n\t}\n\n\tfor ( ; i < length; i++ ) {\n\t\t// Only deal with non-null/undefined values\n\t\tif ( (options = arguments[ i ]) != null ) {\n\t\t\t// Extend the base object\n\t\t\tfor ( name in options ) {\n\t\t\t\tsrc = target[ name ];\n\t\t\t\tcopy = options[ name ];\n\n\t\t\t\t// Prevent never-ending loop\n\t\t\t\tif ( target === copy ) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t// Recurse if we're merging plain objects or arrays\n\t\t\t\tif ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) {\n\t\t\t\t\tif ( copyIsArray ) {\n\t\t\t\t\t\tcopyIsArray = false;\n\t\t\t\t\t\tclone = src && jQuery.isArray(src) ? src : [];\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tclone = src && jQuery.isPlainObject(src) ? src : {};\n\t\t\t\t\t}\n\n\t\t\t\t\t// Never move original objects, clone them\n\t\t\t\t\ttarget[ name ] = jQuery.extend( deep, clone, copy );\n\n\t\t\t\t// Don't bring in undefined values\n\t\t\t\t} else if ( copy !== undefined ) {\n\t\t\t\t\ttarget[ name ] = copy;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// Return the modified object\n\treturn target;\n};\n\njQuery.extend({\n\tnoConflict: 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// Is the DOM ready to be used? Set to true once it occurs.\n\tisReady: false,\n\n\t// A counter to track how many items to wait for before\n\t// the ready event fires. See #6781\n\treadyWait: 1,\n\n\t// Hold (or release) the ready event\n\tholdReady: function( hold ) {\n\t\tif ( hold ) {\n\t\t\tjQuery.readyWait++;\n\t\t} else {\n\t\t\tjQuery.ready( true );\n\t\t}\n\t},\n\n\t// Handle when the DOM is ready\n\tready: function( wait ) {\n\n\t\t// Abort if there are pending holds or we're already ready\n\t\tif ( wait === true ? --jQuery.readyWait : jQuery.isReady ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).\n\t\tif ( !document.body ) {\n\t\t\treturn setTimeout( jQuery.ready, 1 );\n\t\t}\n\n\t\t// Remember that the DOM is ready\n\t\tjQuery.isReady = true;\n\n\t\t// If a normal DOM Ready event fired, decrement, and wait if need be\n\t\tif ( wait !== true && --jQuery.readyWait > 0 ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// If there are functions bound, to execute\n\t\treadyList.resolveWith( document, [ jQuery ] );\n\n\t\t// Trigger any bound ready events\n\t\tif ( jQuery.fn.trigger ) {\n\t\t\tjQuery( document ).trigger(\"ready\").off(\"ready\");\n\t\t}\n\t},\n\n\t// See test/unit/core.js for details concerning isFunction.\n\t// Since version 1.3, DOM methods and functions like alert\n\t// aren't supported. They return false on IE (#2968).\n\tisFunction: function( obj ) {\n\t\treturn jQuery.type(obj) === \"function\";\n\t},\n\n\tisArray: Array.isArray || function( obj ) {\n\t\treturn jQuery.type(obj) === \"array\";\n\t},\n\n\tisWindow: function( obj ) {\n\t\treturn obj != null && obj == obj.window;\n\t},\n\n\tisNumeric: function( obj ) {\n\t\treturn !isNaN( parseFloat(obj) ) && isFinite( obj );\n\t},\n\n\ttype: function( obj ) {\n\t\treturn obj == null ?\n\t\t\tString( obj ) :\n\t\t\tclass2type[ core_toString.call(obj) ] || \"object\";\n\t},\n\n\tisPlainObject: function( obj ) {\n\t\t// Must be an Object.\n\t\t// Because of IE, we also have to check the presence of the constructor property.\n\t\t// Make sure that DOM nodes and window objects don't pass through, as well\n\t\tif ( !obj || jQuery.type(obj) !== \"object\" || obj.nodeType || jQuery.isWindow( obj ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\ttry {\n\t\t\t// Not own constructor property must be Object\n\t\t\tif ( obj.constructor &&\n\t\t\t\t!core_hasOwn.call(obj, \"constructor\") &&\n\t\t\t\t!core_hasOwn.call(obj.constructor.prototype, \"isPrototypeOf\") ) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} catch ( e ) {\n\t\t\t// IE8,9 Will throw exceptions on certain host objects #9897\n\t\t\treturn false;\n\t\t}\n\n\t\t// Own properties are enumerated firstly, so to speed up,\n\t\t// if last one is own, then all properties are own.\n\n\t\tvar key;\n\t\tfor ( key in obj ) {}\n\n\t\treturn key === undefined || core_hasOwn.call( obj, key );\n\t},\n\n\tisEmptyObject: function( obj ) {\n\t\tvar name;\n\t\tfor ( name in obj ) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t},\n\n\terror: function( msg ) {\n\t\tthrow new Error( msg );\n\t},\n\n\t// data: string of html\n\t// context (optional): If specified, the fragment will be created in this context, defaults to document\n\t// scripts (optional): If true, will include scripts passed in the html string\n\tparseHTML: function( data, context, scripts ) {\n\t\tvar parsed;\n\t\tif ( !data || typeof data !== \"string\" ) {\n\t\t\treturn null;\n\t\t}\n\t\tif ( typeof context === \"boolean\" ) {\n\t\t\tscripts = context;\n\t\t\tcontext = 0;\n\t\t}\n\t\tcontext = context || document;\n\n\t\t// Single tag\n\t\tif ( (parsed = rsingleTag.exec( data )) ) {\n\t\t\treturn [ context.createElement( parsed[1] ) ];\n\t\t}\n\n\t\tparsed = jQuery.buildFragment( [ data ], context, scripts ? null : [] );\n\t\treturn jQuery.merge( [],\n\t\t\t(parsed.cacheable ? jQuery.clone( parsed.fragment ) : parsed.fragment).childNodes );\n\t},\n\n\tparseJSON: function( data ) {\n\t\tif ( !data || typeof data !== \"string\") {\n\t\t\treturn null;\n\t\t}\n\n\t\t// Make sure leading/trailing whitespace is removed (IE can't handle it)\n\t\tdata = jQuery.trim( data );\n\n\t\t// Attempt to parse using the native JSON parser first\n\t\tif ( window.JSON && window.JSON.parse ) {\n\t\t\treturn window.JSON.parse( data );\n\t\t}\n\n\t\t// Make sure the incoming data is actual JSON\n\t\t// Logic borrowed from http://json.org/json2.js\n\t\tif ( rvalidchars.test( data.replace( rvalidescape, \"@\" )\n\t\t\t.replace( rvalidtokens, \"]\" )\n\t\t\t.replace( rvalidbraces, \"\")) ) {\n\n\t\t\treturn ( new Function( \"return \" + data ) )();\n\n\t\t}\n\t\tjQuery.error( \"Invalid JSON: \" + data );\n\t},\n\n\t// Cross-browser xml parsing\n\tparseXML: function( data ) {\n\t\tvar xml, tmp;\n\t\tif ( !data || typeof data !== \"string\" ) {\n\t\t\treturn null;\n\t\t}\n\t\ttry {\n\t\t\tif ( window.DOMParser ) { // Standard\n\t\t\t\ttmp = new DOMParser();\n\t\t\t\txml = tmp.parseFromString( data , \"text/xml\" );\n\t\t\t} else { // IE\n\t\t\t\txml = new ActiveXObject( \"Microsoft.XMLDOM\" );\n\t\t\t\txml.async = \"false\";\n\t\t\t\txml.loadXML( data );\n\t\t\t}\n\t\t} catch( e ) {\n\t\t\txml = undefined;\n\t\t}\n\t\tif ( !xml || !xml.documentElement || xml.getElementsByTagName( \"parsererror\" ).length ) {\n\t\t\tjQuery.error( \"Invalid XML: \" + data );\n\t\t}\n\t\treturn xml;\n\t},\n\n\tnoop: function() {},\n\n\t// Evaluates a script in a global context\n\t// Workarounds based on findings by Jim Driscoll\n\t// http://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-javascript-global-context\n\tglobalEval: function( data ) {\n\t\tif ( data && core_rnotwhite.test( data ) ) {\n\t\t\t// We use execScript on Internet Explorer\n\t\t\t// We use an anonymous function so that context is window\n\t\t\t// rather than jQuery in Firefox\n\t\t\t( window.execScript || function( data ) {\n\t\t\t\twindow[ \"eval\" ].call( window, data );\n\t\t\t} )( data );\n\t\t}\n\t},\n\n\t// Convert dashed to camelCase; used by the css and data modules\n\t// Microsoft forgot to hump their vendor prefix (#9572)\n\tcamelCase: function( string ) {\n\t\treturn string.replace( rmsPrefix, \"ms-\" ).replace( rdashAlpha, fcamelCase );\n\t},\n\n\tnodeName: function( elem, name ) {\n\t\treturn elem.nodeName && elem.nodeName.toUpperCase() === name.toUpperCase();\n\t},\n\n\t// args is for internal usage only\n\teach: function( obj, callback, args ) {\n\t\tvar name,\n\t\t\ti = 0,\n\t\t\tlength = obj.length,\n\t\t\tisObj = length === undefined || jQuery.isFunction( obj );\n\n\t\tif ( args ) {\n\t\t\tif ( isObj ) {\n\t\t\t\tfor ( name in obj ) {\n\t\t\t\t\tif ( callback.apply( obj[ name ], args ) === 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 < length; ) {\n\t\t\t\t\tif ( callback.apply( obj[ i++ ], args ) === 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// A special, fast, case for the most common use of each\n\t\t} else {\n\t\t\tif ( isObj ) {\n\t\t\t\tfor ( name in obj ) {\n\t\t\t\t\tif ( callback.call( obj[ name ], name, obj[ name ] ) === 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 < length; ) {\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\t\t}\n\n\t\treturn obj;\n\t},\n\n\t// Use native String.trim function wherever possible\n\ttrim: core_trim && !core_trim.call(\"\\uFEFF\\xA0\") ?\n\t\tfunction( text ) {\n\t\t\treturn text == null ?\n\t\t\t\t\"\" :\n\t\t\t\tcore_trim.call( text );\n\t\t} :\n\n\t\t// Otherwise use our own trimming functionality\n\t\tfunction( text ) {\n\t\t\treturn text == null ?\n\t\t\t\t\"\" :\n\t\t\t\ttext.toString().replace( rtrim, \"\" );\n\t\t},\n\n\t// results is for internal usage only\n\tmakeArray: function( arr, results ) {\n\t\tvar type,\n\t\t\tret = results || [];\n\n\t\tif ( arr != null ) {\n\t\t\t// The window, strings (and functions) also have 'length'\n\t\t\t// Tweaked logic slightly to handle Blackberry 4.7 RegExp issues #6930\n\t\t\ttype = jQuery.type( arr );\n\n\t\t\tif ( arr.length == null || type === \"string\" || type === \"function\" || type === \"regexp\" || jQuery.isWindow( arr ) ) {\n\t\t\t\tcore_push.call( ret, arr );\n\t\t\t} else {\n\t\t\t\tjQuery.merge( ret, arr );\n\t\t\t}\n\t\t}\n\n\t\treturn ret;\n\t},\n\n\tinArray: function( elem, arr, i ) {\n\t\tvar len;\n\n\t\tif ( arr ) {\n\t\t\tif ( core_indexOf ) {\n\t\t\t\treturn core_indexOf.call( arr, elem, i );\n\t\t\t}\n\n\t\t\tlen = arr.length;\n\t\t\ti = i ? i < 0 ? Math.max( 0, len + i ) : i : 0;\n\n\t\t\tfor ( ; i < len; i++ ) {\n\t\t\t\t// Skip accessing in sparse arrays\n\t\t\t\tif ( i in arr && arr[ i ] === elem ) {\n\t\t\t\t\treturn i;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn -1;\n\t},\n\n\tmerge: function( first, second ) {\n\t\tvar l = second.length,\n\t\t\ti = first.length,\n\t\t\tj = 0;\n\n\t\tif ( typeof l === \"number\" ) {\n\t\t\tfor ( ; j < l; j++ ) {\n\t\t\t\tfirst[ i++ ] = second[ j ];\n\t\t\t}\n\n\t\t} else {\n\t\t\twhile ( second[j] !== undefined ) {\n\t\t\t\tfirst[ i++ ] = second[ j++ ];\n\t\t\t}\n\t\t}\n\n\t\tfirst.length = i;\n\n\t\treturn first;\n\t},\n\n\tgrep: function( elems, callback, inv ) {\n\t\tvar retVal,\n\t\t\tret = [],\n\t\t\ti = 0,\n\t\t\tlength = elems.length;\n\t\tinv = !!inv;\n\n\t\t// Go through the array, only saving the items\n\t\t// that pass the validator function\n\t\tfor ( ; i < length; i++ ) {\n\t\t\tretVal = !!callback( elems[ i ], i );\n\t\t\tif ( inv !== retVal ) {\n\t\t\t\tret.push( elems[ i ] );\n\t\t\t}\n\t\t}\n\n\t\treturn ret;\n\t},\n\n\t// arg is for internal usage only\n\tmap: function( elems, callback, arg ) {\n\t\tvar value, key,\n\t\t\tret = [],\n\t\t\ti = 0,\n\t\t\tlength = elems.length,\n\t\t\t// jquery objects are treated as arrays\n\t\t\tisArray = elems instanceof jQuery || length !== undefined && typeof length === \"number\" && ( ( length > 0 && elems[ 0 ] && elems[ length -1 ] ) || length === 0 || jQuery.isArray( elems ) ) ;\n\n\t\t// Go through the array, translating each of the items to their\n\t\tif ( isArray ) {\n\t\t\tfor ( ; i < length; i++ ) {\n\t\t\t\tvalue = callback( elems[ i ], i, arg );\n\n\t\t\t\tif ( value != null ) {\n\t\t\t\t\tret[ ret.length ] = value;\n\t\t\t\t}\n\t\t\t}\n\n\t\t// Go through every key on the object,\n\t\t} else {\n\t\t\tfor ( key in elems ) {\n\t\t\t\tvalue = callback( elems[ key ], key, arg );\n\n\t\t\t\tif ( value != null ) {\n\t\t\t\t\tret[ ret.length ] = value;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Flatten any nested arrays\n\t\treturn ret.concat.apply( [], ret );\n\t},\n\n\t// A global GUID counter for objects\n\tguid: 1,\n\n\t// Bind a function to a context, optionally partially applying any\n\t// arguments.\n\tproxy: function( fn, context ) {\n\t\tvar tmp, args, proxy;\n\n\t\tif ( typeof context === \"string\" ) {\n\t\t\ttmp = fn[ context ];\n\t\t\tcontext = fn;\n\t\t\tfn = tmp;\n\t\t}\n\n\t\t// Quick check to determine if target is callable, in the spec\n\t\t// this throws a TypeError, but we will just return undefined.\n\t\tif ( !jQuery.isFunction( fn ) ) {\n\t\t\treturn undefined;\n\t\t}\n\n\t\t// Simulated bind\n\t\targs = core_slice.call( arguments, 2 );\n\t\tproxy = function() {\n\t\t\treturn fn.apply( context, args.concat( core_slice.call( arguments ) ) );\n\t\t};\n\n\t\t// Set the guid of unique handler to the same of original handler, so it can be removed\n\t\tproxy.guid = fn.guid = fn.guid || proxy.guid || jQuery.guid++;\n\n\t\treturn proxy;\n\t},\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\taccess: function( elems, fn, key, value, chainable, emptyGet, pass ) {\n\t\tvar exec,\n\t\t\tbulk = key == null,\n\t\t\ti = 0,\n\t\t\tlength = elems.length;\n\n\t\t// Sets many values\n\t\tif ( key && typeof key === \"object\" ) {\n\t\t\tfor ( i in key ) {\n\t\t\t\tjQuery.access( elems, fn, i, key[i], 1, emptyGet, value );\n\t\t\t}\n\t\t\tchainable = 1;\n\n\t\t// Sets one value\n\t\t} else if ( value !== undefined ) {\n\t\t\t// Optionally, function values get executed if exec is true\n\t\t\texec = pass === undefined && jQuery.isFunction( value );\n\n\t\t\tif ( bulk ) {\n\t\t\t\t// Bulk operations only iterate when executing function values\n\t\t\t\tif ( exec ) {\n\t\t\t\t\texec = fn;\n\t\t\t\t\tfn = function( elem, key, value ) {\n\t\t\t\t\t\treturn exec.call( jQuery( elem ), value );\n\t\t\t\t\t};\n\n\t\t\t\t// Otherwise they run against the entire set\n\t\t\t\t} else {\n\t\t\t\t\tfn.call( elems, value );\n\t\t\t\t\tfn = null;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( fn ) {\n\t\t\t\tfor (; i < length; i++ ) {\n\t\t\t\t\tfn( elems[i], key, exec ? value.call( elems[i], i, fn( elems[i], key ) ) : value, pass );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tchainable = 1;\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\tlength ? fn( elems[0], key ) : emptyGet;\n\t},\n\n\tnow: function() {\n\t\treturn ( new Date() ).getTime();\n\t}\n});\n\njQuery.ready.promise = function( obj ) {\n\tif ( !readyList ) {\n\n\t\treadyList = jQuery.Deferred();\n\n\t\t// Catch cases where $(document).ready() is called after the browser event has already occurred.\n\t\t// we once tried to use readyState \"interactive\" here, but it caused issues like the one\n\t\t// discovered by ChrisS here: http://bugs.jquery.com/ticket/12282#comment:15\n\t\tif ( document.readyState === \"complete\" ) {\n\t\t\t// Handle it asynchronously to allow scripts the opportunity to delay ready\n\t\t\tsetTimeout( jQuery.ready, 1 );\n\n\t\t// Standards-based browsers support DOMContentLoaded\n\t\t} else if ( document.addEventListener ) {\n\t\t\t// Use the handy event callback\n\t\t\tdocument.addEventListener( \"DOMContentLoaded\", DOMContentLoaded, false );\n\n\t\t\t// A fallback to window.onload, that will always work\n\t\t\twindow.addEventListener( \"load\", jQuery.ready, false );\n\n\t\t// If IE event model is used\n\t\t} else {\n\t\t\t// Ensure firing before onload, maybe late but safe also for iframes\n\t\t\tdocument.attachEvent( \"onreadystatechange\", DOMContentLoaded );\n\n\t\t\t// A fallback to window.onload, that will always work\n\t\t\twindow.attachEvent( \"onload\", jQuery.ready );\n\n\t\t\t// If IE and not a frame\n\t\t\t// continually check to see if the document is ready\n\t\t\tvar top = false;\n\n\t\t\ttry {\n\t\t\t\ttop = window.frameElement == null && document.documentElement;\n\t\t\t} catch(e) {}\n\n\t\t\tif ( top && top.doScroll ) {\n\t\t\t\t(function doScrollCheck() {\n\t\t\t\t\tif ( !jQuery.isReady ) {\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t// Use the trick by Diego Perini\n\t\t\t\t\t\t\t// http://javascript.nwbox.com/IEContentLoaded/\n\t\t\t\t\t\t\ttop.doScroll(\"left\");\n\t\t\t\t\t\t} catch(e) {\n\t\t\t\t\t\t\treturn setTimeout( doScrollCheck, 50 );\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// and execute any waiting functions\n\t\t\t\t\t\tjQuery.ready();\n\t\t\t\t\t}\n\t\t\t\t})();\n\t\t\t}\n\t\t}\n\t}\n\treturn readyList.promise( obj );\n};\n\n// Populate the class2type map\njQuery.each(\"Boolean Number String Function Array Date RegExp Object\".split(\" \"), function(i, name) {\n\tclass2type[ \"[object \" + name + \"]\" ] = name.toLowerCase();\n});\n\n// All jQuery objects should point back to these\nrootjQuery = jQuery(document);\n// String to Object options format cache\nvar optionsCache = {};\n\n// Convert String-formatted options into Object-formatted ones and store in cache\nfunction createOptions( options ) {\n\tvar object = optionsCache[ options ] = {};\n\tjQuery.each( options.split( core_rspace ), function( _, flag ) {\n\t\tobject[ flag ] = true;\n\t});\n\treturn object;\n}\n\n/*\n * Create a callback list using the following parameters:\n *\n *\toptions: an optional list of space-separated options that will change how\n *\t\t\tthe callback list behaves or a more traditional option object\n *\n * By default a callback list will act like an event callback list and can be\n * \"fired\" multiple times.\n *\n * Possible options:\n *\n *\tonce:\t\t\twill ensure the callback list can only be fired once (like a Deferred)\n *\n *\tmemory:\t\t\twill keep track of previous values and will call any callback added\n *\t\t\t\t\tafter the list has been fired right away with the latest \"memorized\"\n *\t\t\t\t\tvalues (like a Deferred)\n *\n *\tunique:\t\t\twill ensure a callback can only be added once (no duplicate in the list)\n *\n *\tstopOnFalse:\tinterrupt callings when a callback returns false\n *\n */\njQuery.Callbacks = function( options ) {\n\n\t// Convert options from String-formatted to Object-formatted if needed\n\t// (we check in cache first)\n\toptions = typeof options === \"string\" ?\n\t\t( optionsCache[ options ] || createOptions( options ) ) :\n\t\tjQuery.extend( {}, options );\n\n\tvar // Last fire value (for non-forgettable lists)\n\t\tmemory,\n\t\t// Flag to know if list was already fired\n\t\tfired,\n\t\t// Flag to know if list is currently firing\n\t\tfiring,\n\t\t// First callback to fire (used internally by add and fireWith)\n\t\tfiringStart,\n\t\t// End of the loop when firing\n\t\tfiringLength,\n\t\t// Index of currently firing callback (modified by remove if needed)\n\t\tfiringIndex,\n\t\t// Actual callback list\n\t\tlist = [],\n\t\t// Stack of fire calls for repeatable lists\n\t\tstack = !options.once && [],\n\t\t// Fire callbacks\n\t\tfire = function( data ) {\n\t\t\tmemory = options.memory && data;\n\t\t\tfired = true;\n\t\t\tfiringIndex = firingStart || 0;\n\t\t\tfiringStart = 0;\n\t\t\tfiringLength = list.length;\n\t\t\tfiring = true;\n\t\t\tfor ( ; list && firingIndex < firingLength; firingIndex++ ) {\n\t\t\t\tif ( list[ firingIndex ].apply( data[ 0 ], data[ 1 ] ) === false && options.stopOnFalse ) {\n\t\t\t\t\tmemory = false; // To prevent further calls using add\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfiring = false;\n\t\t\tif ( list ) {\n\t\t\t\tif ( stack ) {\n\t\t\t\t\tif ( stack.length ) {\n\t\t\t\t\t\tfire( stack.shift() );\n\t\t\t\t\t}\n\t\t\t\t} else if ( memory ) {\n\t\t\t\t\tlist = [];\n\t\t\t\t} else {\n\t\t\t\t\tself.disable();\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t// Actual Callbacks object\n\t\tself = {\n\t\t\t// Add a callback or a collection of callbacks to the list\n\t\t\tadd: function() {\n\t\t\t\tif ( list ) {\n\t\t\t\t\t// First, we save the current length\n\t\t\t\t\tvar start = list.length;\n\t\t\t\t\t(function add( args ) {\n\t\t\t\t\t\tjQuery.each( args, function( _, arg ) {\n\t\t\t\t\t\t\tvar type = jQuery.type( arg );\n\t\t\t\t\t\t\tif ( type === \"function\" && ( !options.unique || !self.has( arg ) ) ) {\n\t\t\t\t\t\t\t\tlist.push( arg );\n\t\t\t\t\t\t\t} else if ( arg && arg.length && type !== \"string\" ) {\n\t\t\t\t\t\t\t\t// Inspect recursively\n\t\t\t\t\t\t\t\tadd( arg );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t})( arguments );\n\t\t\t\t\t// Do we need to add the callbacks to the\n\t\t\t\t\t// current firing batch?\n\t\t\t\t\tif ( firing ) {\n\t\t\t\t\t\tfiringLength = list.length;\n\t\t\t\t\t// With memory, if we're not firing then\n\t\t\t\t\t// we should call right away\n\t\t\t\t\t} else if ( memory ) {\n\t\t\t\t\t\tfiringStart = start;\n\t\t\t\t\t\tfire( memory );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn this;\n\t\t\t},\n\t\t\t// Remove a callback from the list\n\t\t\tremove: function() {\n\t\t\t\tif ( list ) {\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\t\t\t\t\t\t\t// Handle firing indexes\n\t\t\t\t\t\t\tif ( firing ) {\n\t\t\t\t\t\t\t\tif ( index <= firingLength ) {\n\t\t\t\t\t\t\t\t\tfiringLength--;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif ( index <= firingIndex ) {\n\t\t\t\t\t\t\t\t\tfiringIndex--;\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\treturn this;\n\t\t\t},\n\t\t\t// Control if a given callback is in the list\n\t\t\thas: function( fn ) {\n\t\t\t\treturn jQuery.inArray( fn, list ) > -1;\n\t\t\t},\n\t\t\t// Remove all callbacks from the list\n\t\t\tempty: function() {\n\t\t\t\tlist = [];\n\t\t\t\treturn this;\n\t\t\t},\n\t\t\t// Have the list do nothing anymore\n\t\t\tdisable: function() {\n\t\t\t\tlist = stack = memory = undefined;\n\t\t\t\treturn this;\n\t\t\t},\n\t\t\t// Is it disabled?\n\t\t\tdisabled: function() {\n\t\t\t\treturn !list;\n\t\t\t},\n\t\t\t// Lock the list in its current state\n\t\t\tlock: function() {\n\t\t\t\tstack = undefined;\n\t\t\t\tif ( !memory ) {\n\t\t\t\t\tself.disable();\n\t\t\t\t}\n\t\t\t\treturn this;\n\t\t\t},\n\t\t\t// Is it locked?\n\t\t\tlocked: function() {\n\t\t\t\treturn !stack;\n\t\t\t},\n\t\t\t// Call all callbacks with the given context and arguments\n\t\t\tfireWith: function( context, args ) {\n\t\t\t\targs = args || [];\n\t\t\t\targs = [ context, args.slice ? args.slice() : args ];\n\t\t\t\tif ( list && ( !fired || stack ) ) {\n\t\t\t\t\tif ( firing ) {\n\t\t\t\t\t\tstack.push( args );\n\t\t\t\t\t} else {\n\t\t\t\t\t\tfire( args );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn this;\n\t\t\t},\n\t\t\t// Call all the callbacks with the given arguments\n\t\t\tfire: function() {\n\t\t\t\tself.fireWith( this, arguments );\n\t\t\t\treturn this;\n\t\t\t},\n\t\t\t// To know if the callbacks have already been called at least once\n\t\t\tfired: function() {\n\t\t\t\treturn !!fired;\n\t\t\t}\n\t\t};\n\n\treturn self;\n};\njQuery.extend({\n\n\tDeferred: function( func ) {\n\t\tvar tuples = [\n\t\t\t\t// action, add listener, listener list, final state\n\t\t\t\t[ \"resolve\", \"done\", jQuery.Callbacks(\"once memory\"), \"resolved\" ],\n\t\t\t\t[ \"reject\", \"fail\", jQuery.Callbacks(\"once memory\"), \"rejected\" ],\n\t\t\t\t[ \"notify\", \"progress\", jQuery.Callbacks(\"memory\") ]\n\t\t\t],\n\t\t\tstate = \"pending\",\n\t\t\tpromise = {\n\t\t\t\tstate: function() {\n\t\t\t\t\treturn state;\n\t\t\t\t},\n\t\t\t\talways: function() {\n\t\t\t\t\tdeferred.done( arguments ).fail( arguments );\n\t\t\t\t\treturn this;\n\t\t\t\t},\n\t\t\t\tthen: function( /* fnDone, fnFail, fnProgress */ ) {\n\t\t\t\t\tvar fns = arguments;\n\t\t\t\t\treturn jQuery.Deferred(function( newDefer ) {\n\t\t\t\t\t\tjQuery.each( tuples, function( i, tuple ) {\n\t\t\t\t\t\t\tvar action = tuple[ 0 ],\n\t\t\t\t\t\t\t\tfn = fns[ i ];\n\t\t\t\t\t\t\t// deferred[ done | fail | progress ] for forwarding actions to newDefer\n\t\t\t\t\t\t\tdeferred[ tuple[1] ]( jQuery.isFunction( fn ) ?\n\t\t\t\t\t\t\t\tfunction() {\n\t\t\t\t\t\t\t\t\tvar returned = 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.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\t\t.progress( newDefer.notify );\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tnewDefer[ action + \"With\" ]( this === deferred ? newDefer : this, [ returned ] );\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\tnewDefer[ action ]\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t});\n\t\t\t\t\t\tfns = null;\n\t\t\t\t\t}).promise();\n\t\t\t\t},\n\t\t\t\t// Get a promise for this deferred\n\t\t\t\t// If obj is provided, the promise aspect is added to the object\n\t\t\t\tpromise: function( obj ) {\n\t\t\t\t\treturn typeof obj === \"object\" ? jQuery.extend( obj, promise ) : promise;\n\t\t\t\t}\n\t\t\t},\n\t\t\tdeferred = {};\n\n\t\t// Keep pipe for back-compat\n\t\tpromise.pipe = promise.then;\n\n\t\t// Add list-specific methods\n\t\tjQuery.each( tuples, function( i, tuple ) {\n\t\t\tvar list = tuple[ 2 ],\n\t\t\t\tstateString = tuple[ 3 ];\n\n\t\t\t// promise[ done | fail | progress ] = list.add\n\t\t\tpromise[ tuple[1] ] = list.add;\n\n\t\t\t// Handle state\n\t\t\tif ( stateString ) {\n\t\t\t\tlist.add(function() {\n\t\t\t\t\t// state = [ resolved | rejected ]\n\t\t\t\t\tstate = stateString;\n\n\t\t\t\t// [ reject_list | resolve_list ].disable; progress_list.lock\n\t\t\t\t}, tuples[ i ^ 1 ][ 2 ].disable, tuples[ 2 ][ 2 ].lock );\n\t\t\t}\n\n\t\t\t// deferred[ resolve | reject | notify ] = list.fire\n\t\t\tdeferred[ tuple[0] ] = list.fire;\n\t\t\tdeferred[ tuple[0] + \"With\" ] = list.fireWith;\n\t\t});\n\n\t\t// Make the deferred a promise\n\t\tpromise.promise( deferred );\n\n\t\t// Call given func if any\n\t\tif ( func ) {\n\t\t\tfunc.call( deferred, deferred );\n\t\t}\n\n\t\t// All done!\n\t\treturn deferred;\n\t},\n\n\t// Deferred helper\n\twhen: function( subordinate /* , ..., subordinateN */ ) {\n\t\tvar i = 0,\n\t\t\tresolveValues = core_slice.call( arguments ),\n\t\t\tlength = resolveValues.length,\n\n\t\t\t// the count of uncompleted subordinates\n\t\t\tremaining = length !== 1 || ( subordinate && jQuery.isFunction( subordinate.promise ) ) ? length : 0,\n\n\t\t\t// the master Deferred. If resolveValues consist of only a single Deferred, just use that.\n\t\t\tdeferred = remaining === 1 ? subordinate : jQuery.Deferred(),\n\n\t\t\t// Update function for both resolve and progress values\n\t\t\tupdateFunc = function( i, contexts, values ) {\n\t\t\t\treturn function( value ) {\n\t\t\t\t\tcontexts[ i ] = this;\n\t\t\t\t\tvalues[ i ] = arguments.length > 1 ? core_slice.call( arguments ) : value;\n\t\t\t\t\tif( values === progressValues ) {\n\t\t\t\t\t\tdeferred.notifyWith( contexts, values );\n\t\t\t\t\t} else if ( !( --remaining ) ) {\n\t\t\t\t\t\tdeferred.resolveWith( contexts, values );\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t},\n\n\t\t\tprogressValues, progressContexts, resolveContexts;\n\n\t\t// add listeners to Deferred subordinates; treat others as resolved\n\t\tif ( length > 1 ) {\n\t\t\tprogressValues = new Array( length );\n\t\t\tprogressContexts = new Array( length );\n\t\t\tresolveContexts = new Array( length );\n\t\t\tfor ( ; i < length; i++ ) {\n\t\t\t\tif ( resolveValues[ i ] && jQuery.isFunction( resolveValues[ i ].promise ) ) {\n\t\t\t\t\tresolveValues[ i ].promise()\n\t\t\t\t\t\t.done( updateFunc( i, resolveContexts, resolveValues ) )\n\t\t\t\t\t\t.fail( deferred.reject )\n\t\t\t\t\t\t.progress( updateFunc( i, progressContexts, progressValues ) );\n\t\t\t\t} else {\n\t\t\t\t\t--remaining;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// if we're not waiting on anything, resolve the master\n\t\tif ( !remaining ) {\n\t\t\tdeferred.resolveWith( resolveContexts, resolveValues );\n\t\t}\n\n\t\treturn deferred.promise();\n\t}\n});\njQuery.support = (function() {\n\n\tvar support,\n\t\tall,\n\t\ta,\n\t\tselect,\n\t\topt,\n\t\tinput,\n\t\tfragment,\n\t\teventName,\n\t\ti,\n\t\tisSupported,\n\t\tclickFn,\n\t\tdiv = document.createElement(\"div\");\n\n\t// Preliminary tests\n\tdiv.setAttribute( \"className\", \"t\" );\n\tdiv.innerHTML = \"  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>\";\n\n\tall = div.getElementsByTagName(\"*\");\n\ta = div.getElementsByTagName(\"a\")[ 0 ];\n\ta.style.cssText = \"top:1px;float:left;opacity:.5\";\n\n\t// Can't get basic test support\n\tif ( !all || !all.length || !a ) {\n\t\treturn {};\n\t}\n\n\t// First batch of supports tests\n\tselect = document.createElement(\"select\");\n\topt = select.appendChild( document.createElement(\"option\") );\n\tinput = div.getElementsByTagName(\"input\")[ 0 ];\n\n\tsupport = {\n\t\t// IE strips leading whitespace when .innerHTML is used\n\t\tleadingWhitespace: ( div.firstChild.nodeType === 3 ),\n\n\t\t// Make sure that tbody elements aren't automatically inserted\n\t\t// IE will insert them into empty tables\n\t\ttbody: !div.getElementsByTagName(\"tbody\").length,\n\n\t\t// Make sure that link elements get serialized correctly by innerHTML\n\t\t// This requires a wrapper element in IE\n\t\thtmlSerialize: !!div.getElementsByTagName(\"link\").length,\n\n\t\t// Get the style information from getAttribute\n\t\t// (IE uses .cssText instead)\n\t\tstyle: /top/.test( a.getAttribute(\"style\") ),\n\n\t\t// Make sure that URLs aren't manipulated\n\t\t// (IE normalizes it by default)\n\t\threfNormalized: ( a.getAttribute(\"href\") === \"/a\" ),\n\n\t\t// Make sure that element opacity exists\n\t\t// (IE uses filter instead)\n\t\t// Use a regex to work around a WebKit issue. See #5145\n\t\topacity: /^0.5/.test( a.style.opacity ),\n\n\t\t// Verify style float existence\n\t\t// (IE uses styleFloat instead of cssFloat)\n\t\tcssFloat: !!a.style.cssFloat,\n\n\t\t// Make sure that if no value is specified for a checkbox\n\t\t// that it defaults to \"on\".\n\t\t// (WebKit defaults to \"\" instead)\n\t\tcheckOn: ( input.value === \"on\" ),\n\n\t\t// Make sure that a selected-by-default option has a working selected property.\n\t\t// (WebKit defaults to false instead of true, IE too, if it's in an optgroup)\n\t\toptSelected: opt.selected,\n\n\t\t// Test setAttribute on camelCase class. If it works, we need attrFixes when doing get/setAttribute (ie6/7)\n\t\tgetSetAttribute: div.className !== \"t\",\n\n\t\t// Tests for enctype support on a form(#6743)\n\t\tenctype: !!document.createElement(\"form\").enctype,\n\n\t\t// Makes sure cloning an html5 element does not cause problems\n\t\t// Where outerHTML is undefined, this still works\n\t\thtml5Clone: document.createElement(\"nav\").cloneNode( true ).outerHTML !== \"<:nav></:nav>\",\n\n\t\t// jQuery.support.boxModel DEPRECATED in 1.8 since we don't support Quirks Mode\n\t\tboxModel: ( document.compatMode === \"CSS1Compat\" ),\n\n\t\t// Will be defined later\n\t\tsubmitBubbles: true,\n\t\tchangeBubbles: true,\n\t\tfocusinBubbles: false,\n\t\tdeleteExpando: true,\n\t\tnoCloneEvent: true,\n\t\tinlineBlockNeedsLayout: false,\n\t\tshrinkWrapBlocks: false,\n\t\treliableMarginRight: true,\n\t\tboxSizingReliable: true,\n\t\tpixelPosition: false\n\t};\n\n\t// Make sure checked status is properly cloned\n\tinput.checked = true;\n\tsupport.noCloneChecked = input.cloneNode( true ).checked;\n\n\t// Make sure that the options inside disabled selects aren't marked as disabled\n\t// (WebKit marks them as disabled)\n\tselect.disabled = true;\n\tsupport.optDisabled = !opt.disabled;\n\n\t// Test to see if it's possible to delete an expando from an element\n\t// Fails in Internet Explorer\n\ttry {\n\t\tdelete div.test;\n\t} catch( e ) {\n\t\tsupport.deleteExpando = false;\n\t}\n\n\tif ( !div.addEventListener && div.attachEvent && div.fireEvent ) {\n\t\tdiv.attachEvent( \"onclick\", clickFn = function() {\n\t\t\t// Cloning a node shouldn't copy over any\n\t\t\t// bound event handlers (IE does this)\n\t\t\tsupport.noCloneEvent = false;\n\t\t});\n\t\tdiv.cloneNode( true ).fireEvent(\"onclick\");\n\t\tdiv.detachEvent( \"onclick\", clickFn );\n\t}\n\n\t// Check if a radio maintains its value\n\t// after being appended to the DOM\n\tinput = document.createElement(\"input\");\n\tinput.value = \"t\";\n\tinput.setAttribute( \"type\", \"radio\" );\n\tsupport.radioValue = input.value === \"t\";\n\n\tinput.setAttribute( \"checked\", \"checked\" );\n\n\t// #11217 - WebKit loses check when the name is after the checked attribute\n\tinput.setAttribute( \"name\", \"t\" );\n\n\tdiv.appendChild( input );\n\tfragment = document.createDocumentFragment();\n\tfragment.appendChild( div.lastChild );\n\n\t// WebKit doesn't clone checked state correctly in fragments\n\tsupport.checkClone = fragment.cloneNode( true ).cloneNode( true ).lastChild.checked;\n\n\t// Check if a disconnected checkbox will retain its checked\n\t// value of true after appended to the DOM (IE6/7)\n\tsupport.appendChecked = input.checked;\n\n\tfragment.removeChild( input );\n\tfragment.appendChild( div );\n\n\t// Technique from Juriy Zaytsev\n\t// http://perfectionkills.com/detecting-event-support-without-browser-sniffing/\n\t// We only care about the case where non-standard event systems\n\t// are used, namely in IE. Short-circuiting here helps us to\n\t// avoid an eval call (in setAttribute) which can cause CSP\n\t// to go haywire. See: https://developer.mozilla.org/en/Security/CSP\n\tif ( div.attachEvent ) {\n\t\tfor ( i in {\n\t\t\tsubmit: true,\n\t\t\tchange: true,\n\t\t\tfocusin: true\n\t\t}) {\n\t\t\teventName = \"on\" + i;\n\t\t\tisSupported = ( eventName in div );\n\t\t\tif ( !isSupported ) {\n\t\t\t\tdiv.setAttribute( eventName, \"return;\" );\n\t\t\t\tisSupported = ( typeof div[ eventName ] === \"function\" );\n\t\t\t}\n\t\t\tsupport[ i + \"Bubbles\" ] = isSupported;\n\t\t}\n\t}\n\n\t// Run tests that need a body at doc ready\n\tjQuery(function() {\n\t\tvar container, div, tds, marginDiv,\n\t\t\tdivReset = \"padding:0;margin:0;border:0;display:block;overflow:hidden;\",\n\t\t\tbody = document.getElementsByTagName(\"body\")[0];\n\n\t\tif ( !body ) {\n\t\t\t// Return for frameset docs that don't have a body\n\t\t\treturn;\n\t\t}\n\n\t\tcontainer = document.createElement(\"div\");\n\t\tcontainer.style.cssText = \"visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px\";\n\t\tbody.insertBefore( container, body.firstChild );\n\n\t\t// Construct the test element\n\t\tdiv = document.createElement(\"div\");\n\t\tcontainer.appendChild( div );\n\n\t\t// Check if table cells still have offsetWidth/Height when they are set\n\t\t// to display:none and there are still other visible table cells in a\n\t\t// table row; if so, offsetWidth/Height are not reliable for use when\n\t\t// determining if an element has been hidden directly using\n\t\t// display:none (it is still safe to use offsets if a parent element is\n\t\t// hidden; don safety goggles and see bug #4512 for more information).\n\t\t// (only IE 8 fails this test)\n\t\tdiv.innerHTML = \"<table><tr><td></td><td>t</td></tr></table>\";\n\t\ttds = div.getElementsByTagName(\"td\");\n\t\ttds[ 0 ].style.cssText = \"padding:0;margin:0;border:0;display:none\";\n\t\tisSupported = ( tds[ 0 ].offsetHeight === 0 );\n\n\t\ttds[ 0 ].style.display = \"\";\n\t\ttds[ 1 ].style.display = \"none\";\n\n\t\t// Check if empty table cells still have offsetWidth/Height\n\t\t// (IE <= 8 fail this test)\n\t\tsupport.reliableHiddenOffsets = isSupported && ( tds[ 0 ].offsetHeight === 0 );\n\n\t\t// Check box-sizing and margin behavior\n\t\tdiv.innerHTML = \"\";\n\t\tdiv.style.cssText = \"box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;\";\n\t\tsupport.boxSizing = ( div.offsetWidth === 4 );\n\t\tsupport.doesNotIncludeMarginInBodyOffset = ( body.offsetTop !== 1 );\n\n\t\t// NOTE: To any future maintainer, we've window.getComputedStyle\n\t\t// because jsdom on node.js will break without it.\n\t\tif ( window.getComputedStyle ) {\n\t\t\tsupport.pixelPosition = ( window.getComputedStyle( div, null ) || {} ).top !== \"1%\";\n\t\t\tsupport.boxSizingReliable = ( window.getComputedStyle( div, null ) || { width: \"4px\" } ).width === \"4px\";\n\n\t\t\t// Check if div with explicit width and no margin-right incorrectly\n\t\t\t// gets computed margin-right based on width of container. For more\n\t\t\t// info see bug #3333\n\t\t\t// Fails in WebKit before Feb 2011 nightlies\n\t\t\t// WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right\n\t\t\tmarginDiv = document.createElement(\"div\");\n\t\t\tmarginDiv.style.cssText = div.style.cssText = divReset;\n\t\t\tmarginDiv.style.marginRight = marginDiv.style.width = \"0\";\n\t\t\tdiv.style.width = \"1px\";\n\t\t\tdiv.appendChild( marginDiv );\n\t\t\tsupport.reliableMarginRight =\n\t\t\t\t!parseFloat( ( window.getComputedStyle( marginDiv, null ) || {} ).marginRight );\n\t\t}\n\n\t\tif ( typeof div.style.zoom !== \"undefined\" ) {\n\t\t\t// Check if natively block-level elements act like inline-block\n\t\t\t// elements when setting their display to 'inline' and giving\n\t\t\t// them layout\n\t\t\t// (IE < 8 does this)\n\t\t\tdiv.innerHTML = \"\";\n\t\t\tdiv.style.cssText = divReset + \"width:1px;padding:1px;display:inline;zoom:1\";\n\t\t\tsupport.inlineBlockNeedsLayout = ( div.offsetWidth === 3 );\n\n\t\t\t// Check if elements with layout shrink-wrap their children\n\t\t\t// (IE 6 does this)\n\t\t\tdiv.style.display = \"block\";\n\t\t\tdiv.style.overflow = \"visible\";\n\t\t\tdiv.innerHTML = \"<div></div>\";\n\t\t\tdiv.firstChild.style.width = \"5px\";\n\t\t\tsupport.shrinkWrapBlocks = ( div.offsetWidth !== 3 );\n\n\t\t\tcontainer.style.zoom = 1;\n\t\t}\n\n\t\t// Null elements to avoid leaks in IE\n\t\tbody.removeChild( container );\n\t\tcontainer = div = tds = marginDiv = null;\n\t});\n\n\t// Null elements to avoid leaks in IE\n\tfragment.removeChild( div );\n\tall = a = select = opt = input = fragment = div = null;\n\n\treturn support;\n})();\nvar rbrace = /(?:\\{[\\s\\S]*\\}|\\[[\\s\\S]*\\])$/,\n\trmultiDash = /([A-Z])/g;\n\njQuery.extend({\n\tcache: {},\n\n\tdeletedIds: [],\n\n\t// Please use with caution\n\tuuid: 0,\n\n\t// Unique for each copy of jQuery on the page\n\t// Non-digits removed to match rinlinejQuery\n\texpando: \"jQuery\" + ( jQuery.fn.jquery + Math.random() ).replace( /\\D/g, \"\" ),\n\n\t// The following elements throw uncatchable exceptions if you\n\t// attempt to add expando properties to them.\n\tnoData: {\n\t\t\"embed\": true,\n\t\t// Ban all objects except for Flash (which handle expandos)\n\t\t\"object\": \"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\",\n\t\t\"applet\": true\n\t},\n\n\thasData: function( elem ) {\n\t\telem = elem.nodeType ? jQuery.cache[ elem[jQuery.expando] ] : elem[ jQuery.expando ];\n\t\treturn !!elem && !isEmptyDataObject( elem );\n\t},\n\n\tdata: function( elem, name, data, pvt /* Internal Use Only */ ) {\n\t\tif ( !jQuery.acceptData( elem ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\tvar thisCache, ret,\n\t\t\tinternalKey = jQuery.expando,\n\t\t\tgetByName = typeof name === \"string\",\n\n\t\t\t// We have to handle DOM nodes and JS objects differently because IE6-7\n\t\t\t// can't GC object references properly across the DOM-JS boundary\n\t\t\tisNode = elem.nodeType,\n\n\t\t\t// Only DOM nodes need the global jQuery cache; JS object data is\n\t\t\t// attached directly to the object so GC can occur automatically\n\t\t\tcache = isNode ? jQuery.cache : elem,\n\n\t\t\t// Only defining an ID for JS objects if its cache already exists allows\n\t\t\t// the code to shortcut on the same path as a DOM node with no cache\n\t\t\tid = isNode ? elem[ internalKey ] : elem[ internalKey ] && internalKey;\n\n\t\t// Avoid doing any more work than we need to when trying to get data on an\n\t\t// object that has no data at all\n\t\tif ( (!id || !cache[id] || (!pvt && !cache[id].data)) && getByName && data === undefined ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( !id ) {\n\t\t\t// Only DOM nodes need a new unique ID for each element since their data\n\t\t\t// ends up in the global cache\n\t\t\tif ( isNode ) {\n\t\t\t\telem[ internalKey ] = id = jQuery.deletedIds.pop() || ++jQuery.uuid;\n\t\t\t} else {\n\t\t\t\tid = internalKey;\n\t\t\t}\n\t\t}\n\n\t\tif ( !cache[ id ] ) {\n\t\t\tcache[ id ] = {};\n\n\t\t\t// Avoids exposing jQuery metadata on plain JS objects when the object\n\t\t\t// is serialized using JSON.stringify\n\t\t\tif ( !isNode ) {\n\t\t\t\tcache[ id ].toJSON = jQuery.noop;\n\t\t\t}\n\t\t}\n\n\t\t// An object can be passed to jQuery.data instead of a key/value pair; this gets\n\t\t// shallow copied over onto the existing cache\n\t\tif ( typeof name === \"object\" || typeof name === \"function\" ) {\n\t\t\tif ( pvt ) {\n\t\t\t\tcache[ id ] = jQuery.extend( cache[ id ], name );\n\t\t\t} else {\n\t\t\t\tcache[ id ].data = jQuery.extend( cache[ id ].data, name );\n\t\t\t}\n\t\t}\n\n\t\tthisCache = cache[ id ];\n\n\t\t// jQuery data() is stored in a separate object inside the object's internal data\n\t\t// cache in order to avoid key collisions between internal data and user-defined\n\t\t// data.\n\t\tif ( !pvt ) {\n\t\t\tif ( !thisCache.data ) {\n\t\t\t\tthisCache.data = {};\n\t\t\t}\n\n\t\t\tthisCache = thisCache.data;\n\t\t}\n\n\t\tif ( data !== undefined ) {\n\t\t\tthisCache[ jQuery.camelCase( name ) ] = data;\n\t\t}\n\n\t\t// Check for both converted-to-camel and non-converted data property names\n\t\t// If a data property was specified\n\t\tif ( getByName ) {\n\n\t\t\t// First Try to find as-is property data\n\t\t\tret = thisCache[ name ];\n\n\t\t\t// Test for null|undefined property data\n\t\t\tif ( ret == null ) {\n\n\t\t\t\t// Try to find the camelCased property\n\t\t\t\tret = thisCache[ jQuery.camelCase( name ) ];\n\t\t\t}\n\t\t} else {\n\t\t\tret = thisCache;\n\t\t}\n\n\t\treturn ret;\n\t},\n\n\tremoveData: function( elem, name, pvt /* Internal Use Only */ ) {\n\t\tif ( !jQuery.acceptData( elem ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\tvar thisCache, i, l,\n\n\t\t\tisNode = elem.nodeType,\n\n\t\t\t// See jQuery.data for more information\n\t\t\tcache = isNode ? jQuery.cache : elem,\n\t\t\tid = isNode ? elem[ jQuery.expando ] : jQuery.expando;\n\n\t\t// If there is already no cache entry for this object, there is no\n\t\t// purpose in continuing\n\t\tif ( !cache[ id ] ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( name ) {\n\n\t\t\tthisCache = pvt ? cache[ id ] : cache[ id ].data;\n\n\t\t\tif ( thisCache ) {\n\n\t\t\t\t// Support array or space separated string names for data keys\n\t\t\t\tif ( !jQuery.isArray( name ) ) {\n\n\t\t\t\t\t// try the string as a key before any manipulation\n\t\t\t\t\tif ( name in thisCache ) {\n\t\t\t\t\t\tname = [ name ];\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\t// split the camel cased version by spaces unless a key with the spaces exists\n\t\t\t\t\t\tname = jQuery.camelCase( name );\n\t\t\t\t\t\tif ( name in thisCache ) {\n\t\t\t\t\t\t\tname = [ name ];\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tname = name.split(\" \");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tfor ( i = 0, l = name.length; i < l; i++ ) {\n\t\t\t\t\tdelete thisCache[ name[i] ];\n\t\t\t\t}\n\n\t\t\t\t// If there is no data left in the cache, we want to continue\n\t\t\t\t// and let the cache object itself get destroyed\n\t\t\t\tif ( !( pvt ? isEmptyDataObject : jQuery.isEmptyObject )( thisCache ) ) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// See jQuery.data for more information\n\t\tif ( !pvt ) {\n\t\t\tdelete cache[ id ].data;\n\n\t\t\t// Don't destroy the parent cache unless the internal data object\n\t\t\t// had been the only thing left in it\n\t\t\tif ( !isEmptyDataObject( cache[ id ] ) ) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\t// Destroy the cache\n\t\tif ( isNode ) {\n\t\t\tjQuery.cleanData( [ elem ], true );\n\n\t\t// Use delete when supported for expandos or `cache` is not a window per isWindow (#10080)\n\t\t} else if ( jQuery.support.deleteExpando || cache != cache.window ) {\n\t\t\tdelete cache[ id ];\n\n\t\t// When all else fails, null\n\t\t} else {\n\t\t\tcache[ id ] = null;\n\t\t}\n\t},\n\n\t// For internal use only.\n\t_data: function( elem, name, data ) {\n\t\treturn jQuery.data( elem, name, data, true );\n\t},\n\n\t// A method for determining if a DOM node can handle the data expando\n\tacceptData: function( elem ) {\n\t\tvar noData = elem.nodeName && jQuery.noData[ elem.nodeName.toLowerCase() ];\n\n\t\t// nodes accept data unless otherwise specified; rejection can be conditional\n\t\treturn !noData || noData !== true && elem.getAttribute(\"classid\") === noData;\n\t}\n});\n\njQuery.fn.extend({\n\tdata: function( key, value ) {\n\t\tvar parts, part, attr, name, l,\n\t\t\telem = this[0],\n\t\t\ti = 0,\n\t\t\tdata = null;\n\n\t\t// Gets all values\n\t\tif ( key === undefined ) {\n\t\t\tif ( this.length ) {\n\t\t\t\tdata = jQuery.data( elem );\n\n\t\t\t\tif ( elem.nodeType === 1 && !jQuery._data( elem, \"parsedAttrs\" ) ) {\n\t\t\t\t\tattr = elem.attributes;\n\t\t\t\t\tfor ( l = attr.length; i < l; i++ ) {\n\t\t\t\t\t\tname = attr[i].name;\n\n\t\t\t\t\t\tif ( name.indexOf( \"data-\" ) === 0 ) {\n\t\t\t\t\t\t\tname = jQuery.camelCase( name.substring(5) );\n\n\t\t\t\t\t\t\tdataAttr( elem, name, data[ name ] );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tjQuery._data( elem, \"parsedAttrs\", true );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn data;\n\t\t}\n\n\t\t// Sets multiple values\n\t\tif ( typeof key === \"object\" ) {\n\t\t\treturn this.each(function() {\n\t\t\t\tjQuery.data( this, key );\n\t\t\t});\n\t\t}\n\n\t\tparts = key.split( \".\", 2 );\n\t\tparts[1] = parts[1] ? \".\" + parts[1] : \"\";\n\t\tpart = parts[1] + \"!\";\n\n\t\treturn jQuery.access( this, function( value ) {\n\n\t\t\tif ( value === undefined ) {\n\t\t\t\tdata = this.triggerHandler( \"getData\" + part, [ parts[0] ] );\n\n\t\t\t\t// Try to fetch any internally stored data first\n\t\t\t\tif ( data === undefined && elem ) {\n\t\t\t\t\tdata = jQuery.data( elem, key );\n\t\t\t\t\tdata = dataAttr( elem, key, data );\n\t\t\t\t}\n\n\t\t\t\treturn data === undefined && parts[1] ?\n\t\t\t\t\tthis.data( parts[0] ) :\n\t\t\t\t\tdata;\n\t\t\t}\n\n\t\t\tparts[1] = value;\n\t\t\tthis.each(function() {\n\t\t\t\tvar self = jQuery( this );\n\n\t\t\t\tself.triggerHandler( \"setData\" + part, parts );\n\t\t\t\tjQuery.data( this, key, value );\n\t\t\t\tself.triggerHandler( \"changeData\" + part, parts );\n\t\t\t});\n\t\t}, null, value, arguments.length > 1, null, false );\n\t},\n\n\tremoveData: function( key ) {\n\t\treturn this.each(function() {\n\t\t\tjQuery.removeData( this, key );\n\t\t});\n\t}\n});\n\nfunction dataAttr( elem, key, data ) {\n\t// If nothing was found internally, try to fetch any\n\t// data from the HTML5 data-* attribute\n\tif ( data === undefined && elem.nodeType === 1 ) {\n\n\t\tvar name = \"data-\" + key.replace( rmultiDash, \"-$1\" ).toLowerCase();\n\n\t\tdata = elem.getAttribute( name );\n\n\t\tif ( typeof data === \"string\" ) {\n\t\t\ttry {\n\t\t\t\tdata = data === \"true\" ? true :\n\t\t\t\tdata === \"false\" ? false :\n\t\t\t\tdata === \"null\" ? null :\n\t\t\t\t// Only convert to a number if it doesn't change the string\n\t\t\t\t+data + \"\" === data ? +data :\n\t\t\t\trbrace.test( data ) ? jQuery.parseJSON( data ) :\n\t\t\t\t\tdata;\n\t\t\t} catch( e ) {}\n\n\t\t\t// Make sure we set the data so it isn't changed later\n\t\t\tjQuery.data( elem, key, data );\n\n\t\t} else {\n\t\t\tdata = undefined;\n\t\t}\n\t}\n\n\treturn data;\n}\n\n// checks a cache object for emptiness\nfunction isEmptyDataObject( obj ) {\n\tvar name;\n\tfor ( name in obj ) {\n\n\t\t// if the public data object is empty, the private is still empty\n\t\tif ( name === \"data\" && jQuery.isEmptyObject( obj[name] ) ) {\n\t\t\tcontinue;\n\t\t}\n\t\tif ( name !== \"toJSON\" ) {\n\t\t\treturn false;\n\t\t}\n\t}\n\n\treturn true;\n}\njQuery.extend({\n\tqueue: function( elem, type, data ) {\n\t\tvar queue;\n\n\t\tif ( elem ) {\n\t\t\ttype = ( type || \"fx\" ) + \"queue\";\n\t\t\tqueue = jQuery._data( elem, type );\n\n\t\t\t// Speed up dequeue by getting out quickly if this is just a lookup\n\t\t\tif ( data ) {\n\t\t\t\tif ( !queue || jQuery.isArray(data) ) {\n\t\t\t\t\tqueue = jQuery._data( elem, type, jQuery.makeArray(data) );\n\t\t\t\t} else {\n\t\t\t\t\tqueue.push( data );\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn queue || [];\n\t\t}\n\t},\n\n\tdequeue: function( elem, type ) {\n\t\ttype = type || \"fx\";\n\n\t\tvar queue = jQuery.queue( elem, type ),\n\t\t\tstartLength = queue.length,\n\t\t\tfn = queue.shift(),\n\t\t\thooks = jQuery._queueHooks( elem, type ),\n\t\t\tnext = function() {\n\t\t\t\tjQuery.dequeue( elem, type );\n\t\t\t};\n\n\t\t// If the fx queue is dequeued, always remove the progress sentinel\n\t\tif ( fn === \"inprogress\" ) {\n\t\t\tfn = queue.shift();\n\t\t\tstartLength--;\n\t\t}\n\n\t\tif ( fn ) {\n\n\t\t\t// Add a progress sentinel to prevent the fx queue from being\n\t\t\t// automatically dequeued\n\t\t\tif ( type === \"fx\" ) {\n\t\t\t\tqueue.unshift( \"inprogress\" );\n\t\t\t}\n\n\t\t\t// clear up the last queue stop function\n\t\t\tdelete hooks.stop;\n\t\t\tfn.call( elem, next, hooks );\n\t\t}\n\n\t\tif ( !startLength && hooks ) {\n\t\t\thooks.empty.fire();\n\t\t}\n\t},\n\n\t// not intended for public consumption - generates a queueHooks object, or returns the current one\n\t_queueHooks: function( elem, type ) {\n\t\tvar key = type + \"queueHooks\";\n\t\treturn jQuery._data( elem, key ) || jQuery._data( elem, key, {\n\t\t\tempty: jQuery.Callbacks(\"once memory\").add(function() {\n\t\t\t\tjQuery.removeData( elem, type + \"queue\", true );\n\t\t\t\tjQuery.removeData( elem, key, true );\n\t\t\t})\n\t\t});\n\t}\n});\n\njQuery.fn.extend({\n\tqueue: function( type, data ) {\n\t\tvar setter = 2;\n\n\t\tif ( typeof type !== \"string\" ) {\n\t\t\tdata = type;\n\t\t\ttype = \"fx\";\n\t\t\tsetter--;\n\t\t}\n\n\t\tif ( arguments.length < setter ) {\n\t\t\treturn jQuery.queue( this[0], type );\n\t\t}\n\n\t\treturn data === undefined ?\n\t\t\tthis :\n\t\t\tthis.each(function() {\n\t\t\t\tvar queue = jQuery.queue( this, type, data );\n\n\t\t\t\t// ensure a hooks for this queue\n\t\t\t\tjQuery._queueHooks( this, type );\n\n\t\t\t\tif ( type === \"fx\" && queue[0] !== \"inprogress\" ) {\n\t\t\t\t\tjQuery.dequeue( this, type );\n\t\t\t\t}\n\t\t\t});\n\t},\n\tdequeue: function( type ) {\n\t\treturn this.each(function() {\n\t\t\tjQuery.dequeue( this, type );\n\t\t});\n\t},\n\t// Based off of the plugin by Clint Helfers, with permission.\n\t// http://blindsignals.com/index.php/2009/07/jquery-delay/\n\tdelay: 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 = setTimeout( next, time );\n\t\t\thooks.stop = function() {\n\t\t\t\tclearTimeout( timeout );\n\t\t\t};\n\t\t});\n\t},\n\tclearQueue: function( type ) {\n\t\treturn this.queue( type || \"fx\", [] );\n\t},\n\t// Get a promise resolved when queues of a certain type\n\t// are emptied (fx is the type by default)\n\tpromise: function( type, obj ) {\n\t\tvar tmp,\n\t\t\tcount = 1,\n\t\t\tdefer = jQuery.Deferred(),\n\t\t\telements = this,\n\t\t\ti = this.length,\n\t\t\tresolve = function() {\n\t\t\t\tif ( !( --count ) ) {\n\t\t\t\t\tdefer.resolveWith( elements, [ elements ] );\n\t\t\t\t}\n\t\t\t};\n\n\t\tif ( typeof type !== \"string\" ) {\n\t\t\tobj = type;\n\t\t\ttype = undefined;\n\t\t}\n\t\ttype = type || \"fx\";\n\n\t\twhile( i-- ) {\n\t\t\ttmp = jQuery._data( elements[ i ], type + \"queueHooks\" );\n\t\t\tif ( tmp && tmp.empty ) {\n\t\t\t\tcount++;\n\t\t\t\ttmp.empty.add( resolve );\n\t\t\t}\n\t\t}\n\t\tresolve();\n\t\treturn defer.promise( obj );\n\t}\n});\nvar nodeHook, boolHook, fixSpecified,\n\trclass = /[\\t\\r\\n]/g,\n\trreturn = /\\r/g,\n\trtype = /^(?:button|input)$/i,\n\trfocusable = /^(?:button|input|object|select|textarea)$/i,\n\trclickable = /^a(?:rea|)$/i,\n\trboolean = /^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,\n\tgetSetAttribute = jQuery.support.getSetAttribute;\n\njQuery.fn.extend({\n\tattr: function( name, value ) {\n\t\treturn jQuery.access( this, jQuery.attr, name, value, arguments.length > 1 );\n\t},\n\n\tremoveAttr: function( name ) {\n\t\treturn this.each(function() {\n\t\t\tjQuery.removeAttr( this, name );\n\t\t});\n\t},\n\n\tprop: function( name, value ) {\n\t\treturn jQuery.access( this, jQuery.prop, name, value, arguments.length > 1 );\n\t},\n\n\tremoveProp: function( name ) {\n\t\tname = jQuery.propFix[ name ] || name;\n\t\treturn this.each(function() {\n\t\t\t// try/catch handles cases where IE balks (such as removing a property on window)\n\t\t\ttry {\n\t\t\t\tthis[ name ] = undefined;\n\t\t\t\tdelete this[ name ];\n\t\t\t} catch( e ) {}\n\t\t});\n\t},\n\n\taddClass: function( value ) {\n\t\tvar classNames, i, l, elem,\n\t\t\tsetClass, c, cl;\n\n\t\tif ( jQuery.isFunction( value ) ) {\n\t\t\treturn this.each(function( j ) {\n\t\t\t\tjQuery( this ).addClass( value.call(this, j, this.className) );\n\t\t\t});\n\t\t}\n\n\t\tif ( value && typeof value === \"string\" ) {\n\t\t\tclassNames = value.split( core_rspace );\n\n\t\t\tfor ( i = 0, l = this.length; i < l; i++ ) {\n\t\t\t\telem = this[ i ];\n\n\t\t\t\tif ( elem.nodeType === 1 ) {\n\t\t\t\t\tif ( !elem.className && classNames.length === 1 ) {\n\t\t\t\t\t\telem.className = value;\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsetClass = \" \" + elem.className + \" \";\n\n\t\t\t\t\t\tfor ( c = 0, cl = classNames.length; c < cl; c++ ) {\n\t\t\t\t\t\t\tif ( !~setClass.indexOf( \" \" + classNames[ c ] + \" \" ) ) {\n\t\t\t\t\t\t\t\tsetClass += classNames[ c ] + \" \";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telem.className = jQuery.trim( setClass );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn this;\n\t},\n\n\tremoveClass: function( value ) {\n\t\tvar removes, className, elem, c, cl, i, l;\n\n\t\tif ( jQuery.isFunction( value ) ) {\n\t\t\treturn this.each(function( j ) {\n\t\t\t\tjQuery( this ).removeClass( value.call(this, j, this.className) );\n\t\t\t});\n\t\t}\n\t\tif ( (value && typeof value === \"string\") || value === undefined ) {\n\t\t\tremoves = ( value || \"\" ).split( core_rspace );\n\n\t\t\tfor ( i = 0, l = this.length; i < l; i++ ) {\n\t\t\t\telem = this[ i ];\n\t\t\t\tif ( elem.nodeType === 1 && elem.className ) {\n\n\t\t\t\t\tclassName = (\" \" + elem.className + \" \").replace( rclass, \" \" );\n\n\t\t\t\t\t// loop over each item in the removal list\n\t\t\t\t\tfor ( c = 0, cl = removes.length; c < cl; c++ ) {\n\t\t\t\t\t\t// Remove until there is nothing to remove,\n\t\t\t\t\t\twhile ( className.indexOf(\" \" + removes[ c ] + \" \") > -1 ) {\n\t\t\t\t\t\t\tclassName = className.replace( \" \" + removes[ c ] + \" \" , \" \" );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telem.className = value ? jQuery.trim( className ) : \"\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn this;\n\t},\n\n\ttoggleClass: function( value, stateVal ) {\n\t\tvar type = typeof value,\n\t\t\tisBool = typeof stateVal === \"boolean\";\n\n\t\tif ( jQuery.isFunction( value ) ) {\n\t\t\treturn this.each(function( i ) {\n\t\t\t\tjQuery( this ).toggleClass( value.call(this, i, this.className, stateVal), stateVal );\n\t\t\t});\n\t\t}\n\n\t\treturn this.each(function() {\n\t\t\tif ( type === \"string\" ) {\n\t\t\t\t// toggle individual class names\n\t\t\t\tvar className,\n\t\t\t\t\ti = 0,\n\t\t\t\t\tself = jQuery( this ),\n\t\t\t\t\tstate = stateVal,\n\t\t\t\t\tclassNames = value.split( core_rspace );\n\n\t\t\t\twhile ( (className = classNames[ i++ ]) ) {\n\t\t\t\t\t// check each className given, space separated list\n\t\t\t\t\tstate = isBool ? state : !self.hasClass( className );\n\t\t\t\t\tself[ state ? \"addClass\" : \"removeClass\" ]( className );\n\t\t\t\t}\n\n\t\t\t} else if ( type === \"undefined\" || type === \"boolean\" ) {\n\t\t\t\tif ( this.className ) {\n\t\t\t\t\t// store className if set\n\t\t\t\t\tjQuery._data( this, \"__className__\", this.className );\n\t\t\t\t}\n\n\t\t\t\t// toggle whole className\n\t\t\t\tthis.className = this.className || value === false ? \"\" : jQuery._data( this, \"__className__\" ) || \"\";\n\t\t\t}\n\t\t});\n\t},\n\n\thasClass: function( selector ) {\n\t\tvar className = \" \" + selector + \" \",\n\t\t\ti = 0,\n\t\t\tl = this.length;\n\t\tfor ( ; i < l; i++ ) {\n\t\t\tif ( this[i].nodeType === 1 && (\" \" + this[i].className + \" \").replace(rclass, \" \").indexOf( className ) > -1 ) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t},\n\n\tval: function( value ) {\n\t\tvar hooks, ret, isFunction,\n\t\t\telem = this[0];\n\n\t\tif ( !arguments.length ) {\n\t\t\tif ( elem ) {\n\t\t\t\thooks = jQuery.valHooks[ elem.type ] || jQuery.valHooks[ elem.nodeName.toLowerCase() ];\n\n\t\t\t\tif ( hooks && \"get\" in hooks && (ret = hooks.get( elem, \"value\" )) !== undefined ) {\n\t\t\t\t\treturn ret;\n\t\t\t\t}\n\n\t\t\t\tret = elem.value;\n\n\t\t\t\treturn typeof ret === \"string\" ?\n\t\t\t\t\t// handle most common string cases\n\t\t\t\t\tret.replace(rreturn, \"\") :\n\t\t\t\t\t// handle cases where value is null/undef or number\n\t\t\t\t\tret == null ? \"\" : ret;\n\t\t\t}\n\n\t\t\treturn;\n\t\t}\n\n\t\tisFunction = jQuery.isFunction( value );\n\n\t\treturn this.each(function( i ) {\n\t\t\tvar val,\n\t\t\t\tself = jQuery(this);\n\n\t\t\tif ( this.nodeType !== 1 ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif ( isFunction ) {\n\t\t\t\tval = value.call( this, i, self.val() );\n\t\t\t} else {\n\t\t\t\tval = value;\n\t\t\t}\n\n\t\t\t// Treat null/undefined as \"\"; convert numbers to string\n\t\t\tif ( val == null ) {\n\t\t\t\tval = \"\";\n\t\t\t} else if ( typeof val === \"number\" ) {\n\t\t\t\tval += \"\";\n\t\t\t} else if ( jQuery.isArray( val ) ) {\n\t\t\t\tval = jQuery.map(val, function ( value ) {\n\t\t\t\t\treturn value == null ? \"\" : value + \"\";\n\t\t\t\t});\n\t\t\t}\n\n\t\t\thooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ];\n\n\t\t\t// If set returns undefined, fall back to normal setting\n\t\t\tif ( !hooks || !(\"set\" in hooks) || hooks.set( this, val, \"value\" ) === undefined ) {\n\t\t\t\tthis.value = val;\n\t\t\t}\n\t\t});\n\t}\n});\n\njQuery.extend({\n\tvalHooks: {\n\t\toption: {\n\t\t\tget: function( elem ) {\n\t\t\t\t// attributes.value is undefined in Blackberry 4.7 but\n\t\t\t\t// uses .value. See #6932\n\t\t\t\tvar val = elem.attributes.value;\n\t\t\t\treturn !val || val.specified ? elem.value : elem.text;\n\t\t\t}\n\t\t},\n\t\tselect: {\n\t\t\tget: function( elem ) {\n\t\t\t\tvar value, i, max, option,\n\t\t\t\t\tindex = elem.selectedIndex,\n\t\t\t\t\tvalues = [],\n\t\t\t\t\toptions = elem.options,\n\t\t\t\t\tone = elem.type === \"select-one\";\n\n\t\t\t\t// Nothing was selected\n\t\t\t\tif ( index < 0 ) {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\n\t\t\t\t// Loop through all the selected options\n\t\t\t\ti = one ? index : 0;\n\t\t\t\tmax = one ? index + 1 : options.length;\n\t\t\t\tfor ( ; i < max; i++ ) {\n\t\t\t\t\toption = options[ i ];\n\n\t\t\t\t\t// Don't return options that are disabled or in a disabled optgroup\n\t\t\t\t\tif ( option.selected && (jQuery.support.optDisabled ? !option.disabled : option.getAttribute(\"disabled\") === null) &&\n\t\t\t\t\t\t\t(!option.parentNode.disabled || !jQuery.nodeName( option.parentNode, \"optgroup\" )) ) {\n\n\t\t\t\t\t\t// Get the specific value for the option\n\t\t\t\t\t\tvalue = jQuery( option ).val();\n\n\t\t\t\t\t\t// We don't need an array for one selects\n\t\t\t\t\t\tif ( one ) {\n\t\t\t\t\t\t\treturn value;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Multi-Selects return an array\n\t\t\t\t\t\tvalues.push( value );\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Fixes Bug #2551 -- select.val() broken in IE after form.reset()\n\t\t\t\tif ( one && !values.length && options.length ) {\n\t\t\t\t\treturn jQuery( options[ index ] ).val();\n\t\t\t\t}\n\n\t\t\t\treturn values;\n\t\t\t},\n\n\t\t\tset: function( elem, value ) {\n\t\t\t\tvar values = jQuery.makeArray( value );\n\n\t\t\t\tjQuery(elem).find(\"option\").each(function() {\n\t\t\t\t\tthis.selected = jQuery.inArray( jQuery(this).val(), values ) >= 0;\n\t\t\t\t});\n\n\t\t\t\tif ( !values.length ) {\n\t\t\t\t\telem.selectedIndex = -1;\n\t\t\t\t}\n\t\t\t\treturn values;\n\t\t\t}\n\t\t}\n\t},\n\n\t// Unused in 1.8, left in so attrFn-stabbers won't die; remove in 1.9\n\tattrFn: {},\n\n\tattr: function( elem, name, value, pass ) {\n\t\tvar ret, hooks, notxml,\n\t\t\tnType = elem.nodeType;\n\n\t\t// don't get/set attributes on text, comment and attribute nodes\n\t\tif ( !elem || nType === 3 || nType === 8 || nType === 2 ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( pass && jQuery.isFunction( jQuery.fn[ name ] ) ) {\n\t\t\treturn jQuery( elem )[ name ]( value );\n\t\t}\n\n\t\t// Fallback to prop when attributes are not supported\n\t\tif ( typeof elem.getAttribute === \"undefined\" ) {\n\t\t\treturn jQuery.prop( elem, name, value );\n\t\t}\n\n\t\tnotxml = nType !== 1 || !jQuery.isXMLDoc( elem );\n\n\t\t// All attributes are lowercase\n\t\t// Grab necessary hook if one is defined\n\t\tif ( notxml ) {\n\t\t\tname = name.toLowerCase();\n\t\t\thooks = jQuery.attrHooks[ name ] || ( rboolean.test( name ) ? boolHook : nodeHook );\n\t\t}\n\n\t\tif ( value !== undefined ) {\n\n\t\t\tif ( value === null ) {\n\t\t\t\tjQuery.removeAttr( elem, name );\n\t\t\t\treturn;\n\n\t\t\t} else if ( hooks && \"set\" in hooks && notxml && (ret = hooks.set( elem, value, name )) !== undefined ) {\n\t\t\t\treturn ret;\n\n\t\t\t} else {\n\t\t\t\telem.setAttribute( name, \"\" + value );\n\t\t\t\treturn value;\n\t\t\t}\n\n\t\t} else if ( hooks && \"get\" in hooks && notxml && (ret = hooks.get( elem, name )) !== null ) {\n\t\t\treturn ret;\n\n\t\t} else {\n\n\t\t\tret = elem.getAttribute( name );\n\n\t\t\t// Non-existent attributes return null, we normalize to undefined\n\t\t\treturn ret === null ?\n\t\t\t\tundefined :\n\t\t\t\tret;\n\t\t}\n\t},\n\n\tremoveAttr: function( elem, value ) {\n\t\tvar propName, attrNames, name, isBool,\n\t\t\ti = 0;\n\n\t\tif ( value && elem.nodeType === 1 ) {\n\n\t\t\tattrNames = value.split( core_rspace );\n\n\t\t\tfor ( ; i < attrNames.length; i++ ) {\n\t\t\t\tname = attrNames[ i ];\n\n\t\t\t\tif ( name ) {\n\t\t\t\t\tpropName = jQuery.propFix[ name ] || name;\n\t\t\t\t\tisBool = rboolean.test( name );\n\n\t\t\t\t\t// See #9699 for explanation of this approach (setting first, then removal)\n\t\t\t\t\t// Do not do this for boolean attributes (see #10870)\n\t\t\t\t\tif ( !isBool ) {\n\t\t\t\t\t\tjQuery.attr( elem, name, \"\" );\n\t\t\t\t\t}\n\t\t\t\t\telem.removeAttribute( getSetAttribute ? name : propName );\n\n\t\t\t\t\t// Set corresponding property to false for boolean attributes\n\t\t\t\t\tif ( isBool && propName in elem ) {\n\t\t\t\t\t\telem[ propName ] = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t},\n\n\tattrHooks: {\n\t\ttype: {\n\t\t\tset: function( elem, value ) {\n\t\t\t\t// We can't allow the type property to be changed (since it causes problems in IE)\n\t\t\t\tif ( rtype.test( elem.nodeName ) && elem.parentNode ) {\n\t\t\t\t\tjQuery.error( \"type property can't be changed\" );\n\t\t\t\t} else if ( !jQuery.support.radioValue && value === \"radio\" && jQuery.nodeName(elem, \"input\") ) {\n\t\t\t\t\t// Setting the type on a radio button after the value resets the value in IE6-9\n\t\t\t\t\t// Reset value to it's default in case type is set after value\n\t\t\t\t\t// This is for element creation\n\t\t\t\t\tvar val = elem.value;\n\t\t\t\t\telem.setAttribute( \"type\", value );\n\t\t\t\t\tif ( val ) {\n\t\t\t\t\t\telem.value = val;\n\t\t\t\t\t}\n\t\t\t\t\treturn value;\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t// Use the value property for back compat\n\t\t// Use the nodeHook for button elements in IE6/7 (#1954)\n\t\tvalue: {\n\t\t\tget: function( elem, name ) {\n\t\t\t\tif ( nodeHook && jQuery.nodeName( elem, \"button\" ) ) {\n\t\t\t\t\treturn nodeHook.get( elem, name );\n\t\t\t\t}\n\t\t\t\treturn name in elem ?\n\t\t\t\t\telem.value :\n\t\t\t\t\tnull;\n\t\t\t},\n\t\t\tset: function( elem, value, name ) {\n\t\t\t\tif ( nodeHook && jQuery.nodeName( elem, \"button\" ) ) {\n\t\t\t\t\treturn nodeHook.set( elem, value, name );\n\t\t\t\t}\n\t\t\t\t// Does not return so that setAttribute is also used\n\t\t\t\telem.value = value;\n\t\t\t}\n\t\t}\n\t},\n\n\tpropFix: {\n\t\ttabindex: \"tabIndex\",\n\t\treadonly: \"readOnly\",\n\t\t\"for\": \"htmlFor\",\n\t\t\"class\": \"className\",\n\t\tmaxlength: \"maxLength\",\n\t\tcellspacing: \"cellSpacing\",\n\t\tcellpadding: \"cellPadding\",\n\t\trowspan: \"rowSpan\",\n\t\tcolspan: \"colSpan\",\n\t\tusemap: \"useMap\",\n\t\tframeborder: \"frameBorder\",\n\t\tcontenteditable: \"contentEditable\"\n\t},\n\n\tprop: function( elem, name, value ) {\n\t\tvar ret, hooks, notxml,\n\t\t\tnType = elem.nodeType;\n\n\t\t// don't get/set properties on text, comment and attribute nodes\n\t\tif ( !elem || nType === 3 || nType === 8 || nType === 2 ) {\n\t\t\treturn;\n\t\t}\n\n\t\tnotxml = nType !== 1 || !jQuery.isXMLDoc( elem );\n\n\t\tif ( notxml ) {\n\t\t\t// Fix name and attach hooks\n\t\t\tname = jQuery.propFix[ name ] || name;\n\t\t\thooks = jQuery.propHooks[ name ];\n\t\t}\n\n\t\tif ( value !== undefined ) {\n\t\t\tif ( hooks && \"set\" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) {\n\t\t\t\treturn ret;\n\n\t\t\t} else {\n\t\t\t\treturn ( elem[ name ] = value );\n\t\t\t}\n\n\t\t} else {\n\t\t\tif ( hooks && \"get\" in hooks && (ret = hooks.get( elem, name )) !== null ) {\n\t\t\t\treturn ret;\n\n\t\t\t} else {\n\t\t\t\treturn elem[ name ];\n\t\t\t}\n\t\t}\n\t},\n\n\tpropHooks: {\n\t\ttabIndex: {\n\t\t\tget: function( elem ) {\n\t\t\t\t// elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set\n\t\t\t\t// http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/\n\t\t\t\tvar attributeNode = elem.getAttributeNode(\"tabindex\");\n\n\t\t\t\treturn attributeNode && attributeNode.specified ?\n\t\t\t\t\tparseInt( attributeNode.value, 10 ) :\n\t\t\t\t\trfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ?\n\t\t\t\t\t\t0 :\n\t\t\t\t\t\tundefined;\n\t\t\t}\n\t\t}\n\t}\n});\n\n// Hook for boolean attributes\nboolHook = {\n\tget: function( elem, name ) {\n\t\t// Align boolean attributes with corresponding properties\n\t\t// Fall back to attribute presence where some booleans are not supported\n\t\tvar attrNode,\n\t\t\tproperty = jQuery.prop( elem, name );\n\t\treturn property === true || typeof property !== \"boolean\" && ( attrNode = elem.getAttributeNode(name) ) && attrNode.nodeValue !== false ?\n\t\t\tname.toLowerCase() :\n\t\t\tundefined;\n\t},\n\tset: function( elem, value, name ) {\n\t\tvar propName;\n\t\tif ( value === false ) {\n\t\t\t// Remove boolean attributes when set to false\n\t\t\tjQuery.removeAttr( elem, name );\n\t\t} else {\n\t\t\t// value is true since we know at this point it's type boolean and not false\n\t\t\t// Set boolean attributes to the same name and set the DOM property\n\t\t\tpropName = jQuery.propFix[ name ] || name;\n\t\t\tif ( propName in elem ) {\n\t\t\t\t// Only set the IDL specifically if it already exists on the element\n\t\t\t\telem[ propName ] = true;\n\t\t\t}\n\n\t\t\telem.setAttribute( name, name.toLowerCase() );\n\t\t}\n\t\treturn name;\n\t}\n};\n\n// IE6/7 do not support getting/setting some attributes with get/setAttribute\nif ( !getSetAttribute ) {\n\n\tfixSpecified = {\n\t\tname: true,\n\t\tid: true,\n\t\tcoords: true\n\t};\n\n\t// Use this for any attribute in IE6/7\n\t// This fixes almost every IE6/7 issue\n\tnodeHook = jQuery.valHooks.button = {\n\t\tget: function( elem, name ) {\n\t\t\tvar ret;\n\t\t\tret = elem.getAttributeNode( name );\n\t\t\treturn ret && ( fixSpecified[ name ] ? ret.value !== \"\" : ret.specified ) ?\n\t\t\t\tret.value :\n\t\t\t\tundefined;\n\t\t},\n\t\tset: function( elem, value, name ) {\n\t\t\t// Set the existing or create a new attribute node\n\t\t\tvar ret = elem.getAttributeNode( name );\n\t\t\tif ( !ret ) {\n\t\t\t\tret = document.createAttribute( name );\n\t\t\t\telem.setAttributeNode( ret );\n\t\t\t}\n\t\t\treturn ( ret.value = value + \"\" );\n\t\t}\n\t};\n\n\t// Set width and height to auto instead of 0 on empty string( Bug #8150 )\n\t// This is for removals\n\tjQuery.each([ \"width\", \"height\" ], function( i, name ) {\n\t\tjQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], {\n\t\t\tset: function( elem, value ) {\n\t\t\t\tif ( value === \"\" ) {\n\t\t\t\t\telem.setAttribute( name, \"auto\" );\n\t\t\t\t\treturn value;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t});\n\n\t// Set contenteditable to false on removals(#10429)\n\t// Setting to empty string throws an error as an invalid value\n\tjQuery.attrHooks.contenteditable = {\n\t\tget: nodeHook.get,\n\t\tset: function( elem, value, name ) {\n\t\t\tif ( value === \"\" ) {\n\t\t\t\tvalue = \"false\";\n\t\t\t}\n\t\t\tnodeHook.set( elem, value, name );\n\t\t}\n\t};\n}\n\n\n// Some attributes require a special call on IE\nif ( !jQuery.support.hrefNormalized ) {\n\tjQuery.each([ \"href\", \"src\", \"width\", \"height\" ], function( i, name ) {\n\t\tjQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], {\n\t\t\tget: function( elem ) {\n\t\t\t\tvar ret = elem.getAttribute( name, 2 );\n\t\t\t\treturn ret === null ? undefined : ret;\n\t\t\t}\n\t\t});\n\t});\n}\n\nif ( !jQuery.support.style ) {\n\tjQuery.attrHooks.style = {\n\t\tget: function( elem ) {\n\t\t\t// Return undefined in the case of empty string\n\t\t\t// Normalize to lowercase since IE uppercases css property names\n\t\t\treturn elem.style.cssText.toLowerCase() || undefined;\n\t\t},\n\t\tset: function( elem, value ) {\n\t\t\treturn ( elem.style.cssText = \"\" + value );\n\t\t}\n\t};\n}\n\n// Safari mis-reports the default selected property of an option\n// Accessing the parent's selectedIndex property fixes it\nif ( !jQuery.support.optSelected ) {\n\tjQuery.propHooks.selected = jQuery.extend( jQuery.propHooks.selected, {\n\t\tget: function( elem ) {\n\t\t\tvar parent = elem.parentNode;\n\n\t\t\tif ( parent ) {\n\t\t\t\tparent.selectedIndex;\n\n\t\t\t\t// Make sure that it also works with optgroups, see #5701\n\t\t\t\tif ( parent.parentNode ) {\n\t\t\t\t\tparent.parentNode.selectedIndex;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn null;\n\t\t}\n\t});\n}\n\n// IE6/7 call enctype encoding\nif ( !jQuery.support.enctype ) {\n\tjQuery.propFix.enctype = \"encoding\";\n}\n\n// Radios and checkboxes getter/setter\nif ( !jQuery.support.checkOn ) {\n\tjQuery.each([ \"radio\", \"checkbox\" ], function() {\n\t\tjQuery.valHooks[ this ] = {\n\t\t\tget: function( elem ) {\n\t\t\t\t// Handle the case where in Webkit \"\" is returned instead of \"on\" if a value isn't specified\n\t\t\t\treturn elem.getAttribute(\"value\") === null ? \"on\" : elem.value;\n\t\t\t}\n\t\t};\n\t});\n}\njQuery.each([ \"radio\", \"checkbox\" ], function() {\n\tjQuery.valHooks[ this ] = jQuery.extend( jQuery.valHooks[ this ], {\n\t\tset: function( elem, value ) {\n\t\t\tif ( jQuery.isArray( value ) ) {\n\t\t\t\treturn ( elem.checked = jQuery.inArray( jQuery(elem).val(), value ) >= 0 );\n\t\t\t}\n\t\t}\n\t});\n});\nvar rformElems = /^(?:textarea|input|select)$/i,\n\trtypenamespace = /^([^\\.]*|)(?:\\.(.+)|)$/,\n\trhoverHack = /(?:^|\\s)hover(\\.\\S+|)\\b/,\n\trkeyEvent = /^key/,\n\trmouseEvent = /^(?:mouse|contextmenu)|click/,\n\trfocusMorph = /^(?:focusinfocus|focusoutblur)$/,\n\thoverHack = function( events ) {\n\t\treturn jQuery.event.special.hover ? events : events.replace( rhoverHack, \"mouseenter$1 mouseleave$1\" );\n\t};\n\n/*\n * Helper functions for managing events -- not part of the public interface.\n * Props to Dean Edwards' addEvent library for many of the ideas.\n */\njQuery.event = {\n\n\tadd: function( elem, types, handler, data, selector ) {\n\n\t\tvar elemData, eventHandle, events,\n\t\t\tt, tns, type, namespaces, handleObj,\n\t\t\thandleObjIn, handlers, special;\n\n\t\t// Don't attach events to noData or text/comment nodes (allow plain objects tho)\n\t\tif ( elem.nodeType === 3 || elem.nodeType === 8 || !types || !handler || !(elemData = jQuery._data( elem )) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Caller can pass in an object of custom data in lieu of the handler\n\t\tif ( handler.handler ) {\n\t\t\thandleObjIn = handler;\n\t\t\thandler = handleObjIn.handler;\n\t\t\tselector = handleObjIn.selector;\n\t\t}\n\n\t\t// Make sure that the handler has a unique ID, used to find/remove it later\n\t\tif ( !handler.guid ) {\n\t\t\thandler.guid = jQuery.guid++;\n\t\t}\n\n\t\t// Init the element's event structure and main handler, if this is the first\n\t\tevents = elemData.events;\n\t\tif ( !events ) {\n\t\t\telemData.events = events = {};\n\t\t}\n\t\teventHandle = elemData.handle;\n\t\tif ( !eventHandle ) {\n\t\t\telemData.handle = eventHandle = function( e ) {\n\t\t\t\t// Discard the second event of a jQuery.event.trigger() and\n\t\t\t\t// when an event is called after a page has unloaded\n\t\t\t\treturn typeof jQuery !== \"undefined\" && (!e || jQuery.event.triggered !== e.type) ?\n\t\t\t\t\tjQuery.event.dispatch.apply( eventHandle.elem, arguments ) :\n\t\t\t\t\tundefined;\n\t\t\t};\n\t\t\t// Add elem as a property of the handle fn to prevent a memory leak with IE non-native events\n\t\t\teventHandle.elem = elem;\n\t\t}\n\n\t\t// Handle multiple events separated by a space\n\t\t// jQuery(...).bind(\"mouseover mouseout\", fn);\n\t\ttypes = jQuery.trim( hoverHack(types) ).split( \" \" );\n\t\tfor ( t = 0; t < types.length; t++ ) {\n\n\t\t\ttns = rtypenamespace.exec( types[t] ) || [];\n\t\t\ttype = tns[1];\n\t\t\tnamespaces = ( tns[2] || \"\" ).split( \".\" ).sort();\n\n\t\t\t// If event changes its type, use the special event handlers for the changed type\n\t\t\tspecial = jQuery.event.special[ type ] || {};\n\n\t\t\t// If selector defined, determine special event api type, otherwise given type\n\t\t\ttype = ( selector ? special.delegateType : special.bindType ) || type;\n\n\t\t\t// Update special based on newly reset type\n\t\t\tspecial = jQuery.event.special[ type ] || {};\n\n\t\t\t// handleObj is passed to all event handlers\n\t\t\thandleObj = jQuery.extend({\n\t\t\t\ttype: type,\n\t\t\t\torigType: tns[1],\n\t\t\t\tdata: data,\n\t\t\t\thandler: handler,\n\t\t\t\tguid: handler.guid,\n\t\t\t\tselector: selector,\n\t\t\t\tnamespace: namespaces.join(\".\")\n\t\t\t}, handleObjIn );\n\n\t\t\t// Init the event handler queue if we're the first\n\t\t\thandlers = events[ type ];\n\t\t\tif ( !handlers ) {\n\t\t\t\thandlers = events[ type ] = [];\n\t\t\t\thandlers.delegateCount = 0;\n\n\t\t\t\t// Only use addEventListener/attachEvent if the special events handler returns false\n\t\t\t\tif ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) {\n\t\t\t\t\t// Bind the global event handler to the element\n\t\t\t\t\tif ( elem.addEventListener ) {\n\t\t\t\t\t\telem.addEventListener( type, eventHandle, false );\n\n\t\t\t\t\t} else if ( elem.attachEvent ) {\n\t\t\t\t\t\telem.attachEvent( \"on\" + type, eventHandle );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( special.add ) {\n\t\t\t\tspecial.add.call( elem, handleObj );\n\n\t\t\t\tif ( !handleObj.handler.guid ) {\n\t\t\t\t\thandleObj.handler.guid = handler.guid;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Add to the element's handler list, delegates in front\n\t\t\tif ( selector ) {\n\t\t\t\thandlers.splice( handlers.delegateCount++, 0, handleObj );\n\t\t\t} else {\n\t\t\t\thandlers.push( handleObj );\n\t\t\t}\n\n\t\t\t// Keep track of which events have ever been used, for event optimization\n\t\t\tjQuery.event.global[ type ] = true;\n\t\t}\n\n\t\t// Nullify elem to prevent memory leaks in IE\n\t\telem = null;\n\t},\n\n\tglobal: {},\n\n\t// Detach an event or set of events from an element\n\tremove: function( elem, types, handler, selector, mappedTypes ) {\n\n\t\tvar t, tns, type, origType, namespaces, origCount,\n\t\t\tj, events, special, eventType, handleObj,\n\t\t\telemData = jQuery.hasData( elem ) && jQuery._data( elem );\n\n\t\tif ( !elemData || !(events = elemData.events) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Once for each type.namespace in types; type may be omitted\n\t\ttypes = jQuery.trim( hoverHack( types || \"\" ) ).split(\" \");\n\t\tfor ( t = 0; t < types.length; t++ ) {\n\t\t\ttns = rtypenamespace.exec( types[t] ) || [];\n\t\t\ttype = origType = tns[1];\n\t\t\tnamespaces = tns[2];\n\n\t\t\t// Unbind all events (on this namespace, if provided) for the element\n\t\t\tif ( !type ) {\n\t\t\t\tfor ( type in events ) {\n\t\t\t\t\tjQuery.event.remove( elem, type + types[ t ], handler, selector, true );\n\t\t\t\t}\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tspecial = jQuery.event.special[ type ] || {};\n\t\t\ttype = ( selector? special.delegateType : special.bindType ) || type;\n\t\t\teventType = events[ type ] || [];\n\t\t\torigCount = eventType.length;\n\t\t\tnamespaces = namespaces ? new RegExp(\"(^|\\\\.)\" + namespaces.split(\".\").sort().join(\"\\\\.(?:.*\\\\.|)\") + \"(\\\\.|$)\") : null;\n\n\t\t\t// Remove matching events\n\t\t\tfor ( j = 0; j < eventType.length; j++ ) {\n\t\t\t\thandleObj = eventType[ j ];\n\n\t\t\t\tif ( ( mappedTypes || origType === handleObj.origType ) &&\n\t\t\t\t\t ( !handler || handler.guid === handleObj.guid ) &&\n\t\t\t\t\t ( !namespaces || namespaces.test( handleObj.namespace ) ) &&\n\t\t\t\t\t ( !selector || selector === handleObj.selector || selector === \"**\" && handleObj.selector ) ) {\n\t\t\t\t\teventType.splice( j--, 1 );\n\n\t\t\t\t\tif ( handleObj.selector ) {\n\t\t\t\t\t\teventType.delegateCount--;\n\t\t\t\t\t}\n\t\t\t\t\tif ( special.remove ) {\n\t\t\t\t\t\tspecial.remove.call( elem, handleObj );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Remove generic event handler if we removed something and no more handlers exist\n\t\t\t// (avoids potential for endless recursion during removal of special event handlers)\n\t\t\tif ( eventType.length === 0 && origCount !== eventType.length ) {\n\t\t\t\tif ( !special.teardown || special.teardown.call( elem, namespaces, elemData.handle ) === false ) {\n\t\t\t\t\tjQuery.removeEvent( elem, type, elemData.handle );\n\t\t\t\t}\n\n\t\t\t\tdelete events[ type ];\n\t\t\t}\n\t\t}\n\n\t\t// Remove the expando if it's no longer used\n\t\tif ( jQuery.isEmptyObject( events ) ) {\n\t\t\tdelete elemData.handle;\n\n\t\t\t// removeData also checks for emptiness and clears the expando if empty\n\t\t\t// so use it instead of delete\n\t\t\tjQuery.removeData( elem, \"events\", true );\n\t\t}\n\t},\n\n\t// Events that are safe to short-circuit if no handlers are attached.\n\t// Native DOM events should not be added, they may have inline handlers.\n\tcustomEvent: {\n\t\t\"getData\": true,\n\t\t\"setData\": true,\n\t\t\"changeData\": true\n\t},\n\n\ttrigger: function( event, data, elem, onlyHandlers ) {\n\t\t// Don't do events on text and comment nodes\n\t\tif ( elem && (elem.nodeType === 3 || elem.nodeType === 8) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Event object or event type\n\t\tvar cache, exclusive, i, cur, old, ontype, special, handle, eventPath, bubbleType,\n\t\t\ttype = event.type || event,\n\t\t\tnamespaces = [];\n\n\t\t// focus/blur morphs to focusin/out; ensure we're not firing them right now\n\t\tif ( rfocusMorph.test( type + jQuery.event.triggered ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( type.indexOf( \"!\" ) >= 0 ) {\n\t\t\t// Exclusive events trigger only for the exact event (no namespaces)\n\t\t\ttype = type.slice(0, -1);\n\t\t\texclusive = true;\n\t\t}\n\n\t\tif ( type.indexOf( \".\" ) >= 0 ) {\n\t\t\t// Namespaced trigger; create a regexp to match event type in handle()\n\t\t\tnamespaces = type.split(\".\");\n\t\t\ttype = namespaces.shift();\n\t\t\tnamespaces.sort();\n\t\t}\n\n\t\tif ( (!elem || jQuery.event.customEvent[ type ]) && !jQuery.event.global[ type ] ) {\n\t\t\t// No jQuery handlers for this event type, and it can't have inline handlers\n\t\t\treturn;\n\t\t}\n\n\t\t// Caller can pass in an Event, Object, or just an event type string\n\t\tevent = typeof event === \"object\" ?\n\t\t\t// jQuery.Event object\n\t\t\tevent[ jQuery.expando ] ? event :\n\t\t\t// Object literal\n\t\t\tnew jQuery.Event( type, event ) :\n\t\t\t// Just the event type (string)\n\t\t\tnew jQuery.Event( type );\n\n\t\tevent.type = type;\n\t\tevent.isTrigger = true;\n\t\tevent.exclusive = exclusive;\n\t\tevent.namespace = namespaces.join( \".\" );\n\t\tevent.namespace_re = event.namespace? new RegExp(\"(^|\\\\.)\" + namespaces.join(\"\\\\.(?:.*\\\\.|)\") + \"(\\\\.|$)\") : null;\n\t\tontype = type.indexOf( \":\" ) < 0 ? \"on\" + type : \"\";\n\n\t\t// Handle a global trigger\n\t\tif ( !elem ) {\n\n\t\t\t// TODO: Stop taunting the data cache; remove global events and always attach to document\n\t\t\tcache = jQuery.cache;\n\t\t\tfor ( i in cache ) {\n\t\t\t\tif ( cache[ i ].events && cache[ i ].events[ type ] ) {\n\t\t\t\t\tjQuery.event.trigger( event, data, cache[ i ].handle.elem, true );\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\n\t\t// Clean up the event in case it is being reused\n\t\tevent.result = undefined;\n\t\tif ( !event.target ) {\n\t\t\tevent.target = elem;\n\t\t}\n\n\t\t// Clone any incoming data and prepend the event, creating the handler arg list\n\t\tdata = data != null ? jQuery.makeArray( data ) : [];\n\t\tdata.unshift( event );\n\n\t\t// Allow special events to draw outside the lines\n\t\tspecial = jQuery.event.special[ type ] || {};\n\t\tif ( special.trigger && special.trigger.apply( elem, data ) === false ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Determine event propagation path in advance, per W3C events spec (#9951)\n\t\t// Bubble up to document, then to window; watch for a global ownerDocument var (#9724)\n\t\teventPath = [[ elem, special.bindType || type ]];\n\t\tif ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) {\n\n\t\t\tbubbleType = special.delegateType || type;\n\t\t\tcur = rfocusMorph.test( bubbleType + type ) ? elem : elem.parentNode;\n\t\t\tfor ( old = elem; cur; cur = cur.parentNode ) {\n\t\t\t\teventPath.push([ cur, bubbleType ]);\n\t\t\t\told = cur;\n\t\t\t}\n\n\t\t\t// Only add window if we got to document (e.g., not plain obj or detached DOM)\n\t\t\tif ( old === (elem.ownerDocument || document) ) {\n\t\t\t\teventPath.push([ old.defaultView || old.parentWindow || window, bubbleType ]);\n\t\t\t}\n\t\t}\n\n\t\t// Fire handlers on the event path\n\t\tfor ( i = 0; i < eventPath.length && !event.isPropagationStopped(); i++ ) {\n\n\t\t\tcur = eventPath[i][0];\n\t\t\tevent.type = eventPath[i][1];\n\n\t\t\thandle = ( jQuery._data( cur, \"events\" ) || {} )[ event.type ] && jQuery._data( cur, \"handle\" );\n\t\t\tif ( handle ) {\n\t\t\t\thandle.apply( cur, data );\n\t\t\t}\n\t\t\t// Note that this is a bare JS function and not a jQuery handler\n\t\t\thandle = ontype && cur[ ontype ];\n\t\t\tif ( handle && jQuery.acceptData( cur ) && handle.apply( cur, data ) === false ) {\n\t\t\t\tevent.preventDefault();\n\t\t\t}\n\t\t}\n\t\tevent.type = type;\n\n\t\t// If nobody prevented the default action, do it now\n\t\tif ( !onlyHandlers && !event.isDefaultPrevented() ) {\n\n\t\t\tif ( (!special._default || special._default.apply( elem.ownerDocument, data ) === false) &&\n\t\t\t\t!(type === \"click\" && jQuery.nodeName( elem, \"a\" )) && jQuery.acceptData( elem ) ) {\n\n\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// Can't use an .isFunction() check here because IE6/7 fails that test.\n\t\t\t\t// Don't do default actions on window, that's where global variables be (#6170)\n\t\t\t\t// IE<9 dies on focus/blur to hidden element (#1486)\n\t\t\t\tif ( ontype && elem[ type ] && ((type !== \"focus\" && type !== \"blur\") || event.target.offsetWidth !== 0) && !jQuery.isWindow( elem ) ) {\n\n\t\t\t\t\t// Don't re-trigger an onFOO event when we call its FOO() method\n\t\t\t\t\told = elem[ ontype ];\n\n\t\t\t\t\tif ( old ) {\n\t\t\t\t\t\telem[ ontype ] = null;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Prevent re-triggering of the same event, since we already bubbled it above\n\t\t\t\t\tjQuery.event.triggered = type;\n\t\t\t\t\telem[ type ]();\n\t\t\t\t\tjQuery.event.triggered = undefined;\n\n\t\t\t\t\tif ( old ) {\n\t\t\t\t\t\telem[ ontype ] = old;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn event.result;\n\t},\n\n\tdispatch: function( event ) {\n\n\t\t// Make a writable jQuery.Event from the native event object\n\t\tevent = jQuery.event.fix( event || window.event );\n\n\t\tvar i, j, cur, ret, selMatch, matched, matches, handleObj, sel, related,\n\t\t\thandlers = ( (jQuery._data( this, \"events\" ) || {} )[ event.type ] || []),\n\t\t\tdelegateCount = handlers.delegateCount,\n\t\t\targs = [].slice.call( arguments ),\n\t\t\trun_all = !event.exclusive && !event.namespace,\n\t\t\tspecial = jQuery.event.special[ event.type ] || {},\n\t\t\thandlerQueue = [];\n\n\t\t// Use the fix-ed jQuery.Event rather than the (read-only) native event\n\t\targs[0] = event;\n\t\tevent.delegateTarget = this;\n\n\t\t// Call the preDispatch hook for the mapped type, and let it bail if desired\n\t\tif ( special.preDispatch && special.preDispatch.call( this, event ) === false ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Determine handlers that should run if there are delegated events\n\t\t// Avoid non-left-click bubbling in Firefox (#3861)\n\t\tif ( delegateCount && !(event.button && event.type === \"click\") ) {\n\n\t\t\tfor ( cur = event.target; cur != this; cur = cur.parentNode || this ) {\n\n\t\t\t\t// Don't process clicks (ONLY) on disabled elements (#6911, #8165, #11382, #11764)\n\t\t\t\tif ( cur.disabled !== true || event.type !== \"click\" ) {\n\t\t\t\t\tselMatch = {};\n\t\t\t\t\tmatches = [];\n\t\t\t\t\tfor ( i = 0; i < delegateCount; i++ ) {\n\t\t\t\t\t\thandleObj = handlers[ i ];\n\t\t\t\t\t\tsel = handleObj.selector;\n\n\t\t\t\t\t\tif ( selMatch[ sel ] === undefined ) {\n\t\t\t\t\t\t\tselMatch[ sel ] = jQuery( sel, this ).index( cur ) >= 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif ( selMatch[ sel ] ) {\n\t\t\t\t\t\t\tmatches.push( handleObj );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif ( matches.length ) {\n\t\t\t\t\t\thandlerQueue.push({ elem: cur, matches: matches });\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Add the remaining (directly-bound) handlers\n\t\tif ( handlers.length > delegateCount ) {\n\t\t\thandlerQueue.push({ elem: this, matches: handlers.slice( delegateCount ) });\n\t\t}\n\n\t\t// Run delegates first; they may want to stop propagation beneath us\n\t\tfor ( i = 0; i < handlerQueue.length && !event.isPropagationStopped(); i++ ) {\n\t\t\tmatched = handlerQueue[ i ];\n\t\t\tevent.currentTarget = matched.elem;\n\n\t\t\tfor ( j = 0; j < matched.matches.length && !event.isImmediatePropagationStopped(); j++ ) {\n\t\t\t\thandleObj = matched.matches[ j ];\n\n\t\t\t\t// Triggered event must either 1) be non-exclusive and have no namespace, or\n\t\t\t\t// 2) have namespace(s) a subset or equal to those in the bound event (both can have no namespace).\n\t\t\t\tif ( run_all || (!event.namespace && !handleObj.namespace) || event.namespace_re && event.namespace_re.test( handleObj.namespace ) ) {\n\n\t\t\t\t\tevent.data = handleObj.data;\n\t\t\t\t\tevent.handleObj = handleObj;\n\n\t\t\t\t\tret = ( (jQuery.event.special[ handleObj.origType ] || {}).handle || handleObj.handler )\n\t\t\t\t\t\t\t.apply( matched.elem, args );\n\n\t\t\t\t\tif ( ret !== undefined ) {\n\t\t\t\t\t\tevent.result = ret;\n\t\t\t\t\t\tif ( ret === false ) {\n\t\t\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\t\t\tevent.stopPropagation();\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// Call the postDispatch hook for the mapped type\n\t\tif ( special.postDispatch ) {\n\t\t\tspecial.postDispatch.call( this, event );\n\t\t}\n\n\t\treturn event.result;\n\t},\n\n\t// Includes some event props shared by KeyEvent and MouseEvent\n\t// *** attrChange attrName relatedNode srcElement  are not normalized, non-W3C, deprecated, will be removed in 1.8 ***\n\tprops: \"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which\".split(\" \"),\n\n\tfixHooks: {},\n\n\tkeyHooks: {\n\t\tprops: \"char charCode key keyCode\".split(\" \"),\n\t\tfilter: function( event, original ) {\n\n\t\t\t// Add which for key events\n\t\t\tif ( event.which == null ) {\n\t\t\t\tevent.which = original.charCode != null ? original.charCode : original.keyCode;\n\t\t\t}\n\n\t\t\treturn event;\n\t\t}\n\t},\n\n\tmouseHooks: {\n\t\tprops: \"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement\".split(\" \"),\n\t\tfilter: function( event, original ) {\n\t\t\tvar eventDoc, doc, body,\n\t\t\t\tbutton = original.button,\n\t\t\t\tfromElement = original.fromElement;\n\n\t\t\t// Calculate pageX/Y if missing and clientX/Y available\n\t\t\tif ( event.pageX == null && original.clientX != null ) {\n\t\t\t\teventDoc = event.target.ownerDocument || document;\n\t\t\t\tdoc = eventDoc.documentElement;\n\t\t\t\tbody = eventDoc.body;\n\n\t\t\t\tevent.pageX = original.clientX + ( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) - ( doc && doc.clientLeft || body && body.clientLeft || 0 );\n\t\t\t\tevent.pageY = original.clientY + ( doc && doc.scrollTop  || body && body.scrollTop  || 0 ) - ( doc && doc.clientTop  || body && body.clientTop  || 0 );\n\t\t\t}\n\n\t\t\t// Add relatedTarget, if necessary\n\t\t\tif ( !event.relatedTarget && fromElement ) {\n\t\t\t\tevent.relatedTarget = fromElement === event.target ? original.toElement : fromElement;\n\t\t\t}\n\n\t\t\t// Add which for click: 1 === left; 2 === middle; 3 === right\n\t\t\t// Note: button is not normalized, so don't use it\n\t\t\tif ( !event.which && button !== undefined ) {\n\t\t\t\tevent.which = ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) );\n\t\t\t}\n\n\t\t\treturn event;\n\t\t}\n\t},\n\n\tfix: function( event ) {\n\t\tif ( event[ jQuery.expando ] ) {\n\t\t\treturn event;\n\t\t}\n\n\t\t// Create a writable copy of the event object and normalize some properties\n\t\tvar i, prop,\n\t\t\toriginalEvent = event,\n\t\t\tfixHook = jQuery.event.fixHooks[ event.type ] || {},\n\t\t\tcopy = fixHook.props ? this.props.concat( fixHook.props ) : this.props;\n\n\t\tevent = jQuery.Event( originalEvent );\n\n\t\tfor ( i = copy.length; i; ) {\n\t\t\tprop = copy[ --i ];\n\t\t\tevent[ prop ] = originalEvent[ prop ];\n\t\t}\n\n\t\t// Fix target property, if necessary (#1925, IE 6/7/8 & Safari2)\n\t\tif ( !event.target ) {\n\t\t\tevent.target = originalEvent.srcElement || document;\n\t\t}\n\n\t\t// Target should not be a text node (#504, Safari)\n\t\tif ( event.target.nodeType === 3 ) {\n\t\t\tevent.target = event.target.parentNode;\n\t\t}\n\n\t\t// For mouse/key events, metaKey==false if it's undefined (#3368, #11328; IE6/7/8)\n\t\tevent.metaKey = !!event.metaKey;\n\n\t\treturn fixHook.filter? fixHook.filter( event, originalEvent ) : event;\n\t},\n\n\tspecial: {\n\t\tload: {\n\t\t\t// Prevent triggered image.load events from bubbling to window.load\n\t\t\tnoBubble: true\n\t\t},\n\n\t\tfocus: {\n\t\t\tdelegateType: \"focusin\"\n\t\t},\n\t\tblur: {\n\t\t\tdelegateType: \"focusout\"\n\t\t},\n\n\t\tbeforeunload: {\n\t\t\tsetup: function( data, namespaces, eventHandle ) {\n\t\t\t\t// We only want to do this special case on windows\n\t\t\t\tif ( jQuery.isWindow( this ) ) {\n\t\t\t\t\tthis.onbeforeunload = eventHandle;\n\t\t\t\t}\n\t\t\t},\n\n\t\t\tteardown: function( namespaces, eventHandle ) {\n\t\t\t\tif ( this.onbeforeunload === eventHandle ) {\n\t\t\t\t\tthis.onbeforeunload = null;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t},\n\n\tsimulate: function( type, elem, event, bubble ) {\n\t\t// Piggyback on a donor event to simulate a different one.\n\t\t// Fake originalEvent to avoid donor's stopPropagation, but if the\n\t\t// simulated event prevents default then we do the same on the donor.\n\t\tvar e = jQuery.extend(\n\t\t\tnew jQuery.Event(),\n\t\t\tevent,\n\t\t\t{ type: type,\n\t\t\t\tisSimulated: true,\n\t\t\t\toriginalEvent: {}\n\t\t\t}\n\t\t);\n\t\tif ( bubble ) {\n\t\t\tjQuery.event.trigger( e, null, elem );\n\t\t} else {\n\t\t\tjQuery.event.dispatch.call( elem, e );\n\t\t}\n\t\tif ( e.isDefaultPrevented() ) {\n\t\t\tevent.preventDefault();\n\t\t}\n\t}\n};\n\n// Some plugins are using, but it's undocumented/deprecated and will be removed.\n// The 1.7 special event interface should provide all the hooks needed now.\njQuery.event.handle = jQuery.event.dispatch;\n\njQuery.removeEvent = document.removeEventListener ?\n\tfunction( elem, type, handle ) {\n\t\tif ( elem.removeEventListener ) {\n\t\t\telem.removeEventListener( type, handle, false );\n\t\t}\n\t} :\n\tfunction( elem, type, handle ) {\n\t\tvar name = \"on\" + type;\n\n\t\tif ( elem.detachEvent ) {\n\n\t\t\t// #8545, #7054, preventing memory leaks for custom events in IE6-8 –\n\t\t\t// detachEvent needed property on element, by name of that event, to properly expose it to GC\n\t\t\tif ( typeof elem[ name ] === \"undefined\" ) {\n\t\t\t\telem[ name ] = null;\n\t\t\t}\n\n\t\t\telem.detachEvent( name, handle );\n\t\t}\n\t};\n\njQuery.Event = function( src, props ) {\n\t// Allow instantiation without the 'new' keyword\n\tif ( !(this instanceof jQuery.Event) ) {\n\t\treturn new jQuery.Event( src, props );\n\t}\n\n\t// Event object\n\tif ( src && src.type ) {\n\t\tthis.originalEvent = src;\n\t\tthis.type = src.type;\n\n\t\t// Events bubbling up the document may have been marked as prevented\n\t\t// by a handler lower down the tree; reflect the correct value.\n\t\tthis.isDefaultPrevented = ( src.defaultPrevented || src.returnValue === false ||\n\t\t\tsrc.getPreventDefault && src.getPreventDefault() ) ? returnTrue : returnFalse;\n\n\t// Event type\n\t} else {\n\t\tthis.type = src;\n\t}\n\n\t// Put explicitly provided properties onto the event object\n\tif ( props ) {\n\t\tjQuery.extend( this, props );\n\t}\n\n\t// Create a timestamp if incoming event doesn't have one\n\tthis.timeStamp = src && src.timeStamp || jQuery.now();\n\n\t// Mark it as fixed\n\tthis[ jQuery.expando ] = true;\n};\n\nfunction returnFalse() {\n\treturn false;\n}\nfunction returnTrue() {\n\treturn true;\n}\n\n// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding\n// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html\njQuery.Event.prototype = {\n\tpreventDefault: function() {\n\t\tthis.isDefaultPrevented = returnTrue;\n\n\t\tvar e = this.originalEvent;\n\t\tif ( !e ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// if preventDefault exists run it on the original event\n\t\tif ( e.preventDefault ) {\n\t\t\te.preventDefault();\n\n\t\t// otherwise set the returnValue property of the original event to false (IE)\n\t\t} else {\n\t\t\te.returnValue = false;\n\t\t}\n\t},\n\tstopPropagation: function() {\n\t\tthis.isPropagationStopped = returnTrue;\n\n\t\tvar e = this.originalEvent;\n\t\tif ( !e ) {\n\t\t\treturn;\n\t\t}\n\t\t// if stopPropagation exists run it on the original event\n\t\tif ( e.stopPropagation ) {\n\t\t\te.stopPropagation();\n\t\t}\n\t\t// otherwise set the cancelBubble property of the original event to true (IE)\n\t\te.cancelBubble = true;\n\t},\n\tstopImmediatePropagation: function() {\n\t\tthis.isImmediatePropagationStopped = returnTrue;\n\t\tthis.stopPropagation();\n\t},\n\tisDefaultPrevented: returnFalse,\n\tisPropagationStopped: returnFalse,\n\tisImmediatePropagationStopped: returnFalse\n};\n\n// Create mouseenter/leave events using mouseover/out and event-time checks\njQuery.each({\n\tmouseenter: \"mouseover\",\n\tmouseleave: \"mouseout\"\n}, function( orig, fix ) {\n\tjQuery.event.special[ orig ] = {\n\t\tdelegateType: fix,\n\t\tbindType: fix,\n\n\t\thandle: function( event ) {\n\t\t\tvar ret,\n\t\t\t\ttarget = this,\n\t\t\t\trelated = event.relatedTarget,\n\t\t\t\thandleObj = event.handleObj,\n\t\t\t\tselector = handleObj.selector;\n\n\t\t\t// For mousenter/leave call the handler if related is outside the target.\n\t\t\t// NB: No relatedTarget if the mouse left/entered the browser window\n\t\t\tif ( !related || (related !== target && !jQuery.contains( target, related )) ) {\n\t\t\t\tevent.type = handleObj.origType;\n\t\t\t\tret = handleObj.handler.apply( this, arguments );\n\t\t\t\tevent.type = fix;\n\t\t\t}\n\t\t\treturn ret;\n\t\t}\n\t};\n});\n\n// IE submit delegation\nif ( !jQuery.support.submitBubbles ) {\n\n\tjQuery.event.special.submit = {\n\t\tsetup: function() {\n\t\t\t// Only need this for delegated form submit events\n\t\t\tif ( jQuery.nodeName( this, \"form\" ) ) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t// Lazy-add a submit handler when a descendant form may potentially be submitted\n\t\t\tjQuery.event.add( this, \"click._submit keypress._submit\", function( e ) {\n\t\t\t\t// Node name check avoids a VML-related crash in IE (#9807)\n\t\t\t\tvar elem = e.target,\n\t\t\t\t\tform = jQuery.nodeName( elem, \"input\" ) || jQuery.nodeName( elem, \"button\" ) ? elem.form : undefined;\n\t\t\t\tif ( form && !jQuery._data( form, \"_submit_attached\" ) ) {\n\t\t\t\t\tjQuery.event.add( form, \"submit._submit\", function( event ) {\n\t\t\t\t\t\tevent._submit_bubble = true;\n\t\t\t\t\t});\n\t\t\t\t\tjQuery._data( form, \"_submit_attached\", true );\n\t\t\t\t}\n\t\t\t});\n\t\t\t// return undefined since we don't need an event listener\n\t\t},\n\n\t\tpostDispatch: function( event ) {\n\t\t\t// If form was submitted by the user, bubble the event up the tree\n\t\t\tif ( event._submit_bubble ) {\n\t\t\t\tdelete event._submit_bubble;\n\t\t\t\tif ( this.parentNode && !event.isTrigger ) {\n\t\t\t\t\tjQuery.event.simulate( \"submit\", this.parentNode, event, true );\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\tteardown: function() {\n\t\t\t// Only need this for delegated form submit events\n\t\t\tif ( jQuery.nodeName( this, \"form\" ) ) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t// Remove delegated handlers; cleanData eventually reaps submit handlers attached above\n\t\t\tjQuery.event.remove( this, \"._submit\" );\n\t\t}\n\t};\n}\n\n// IE change delegation and checkbox/radio fix\nif ( !jQuery.support.changeBubbles ) {\n\n\tjQuery.event.special.change = {\n\n\t\tsetup: function() {\n\n\t\t\tif ( rformElems.test( this.nodeName ) ) {\n\t\t\t\t// IE doesn't fire change on a check/radio until blur; trigger it on click\n\t\t\t\t// after a propertychange. Eat the blur-change in special.change.handle.\n\t\t\t\t// This still fires onchange a second time for check/radio after blur.\n\t\t\t\tif ( this.type === \"checkbox\" || this.type === \"radio\" ) {\n\t\t\t\t\tjQuery.event.add( this, \"propertychange._change\", function( event ) {\n\t\t\t\t\t\tif ( event.originalEvent.propertyName === \"checked\" ) {\n\t\t\t\t\t\t\tthis._just_changed = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\tjQuery.event.add( this, \"click._change\", function( event ) {\n\t\t\t\t\t\tif ( this._just_changed && !event.isTrigger ) {\n\t\t\t\t\t\t\tthis._just_changed = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// Allow triggered, simulated change events (#11500)\n\t\t\t\t\t\tjQuery.event.simulate( \"change\", this, event, true );\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t// Delegated event; lazy-add a change handler on descendant inputs\n\t\t\tjQuery.event.add( this, \"beforeactivate._change\", function( e ) {\n\t\t\t\tvar elem = e.target;\n\n\t\t\t\tif ( rformElems.test( elem.nodeName ) && !jQuery._data( elem, \"_change_attached\" ) ) {\n\t\t\t\t\tjQuery.event.add( elem, \"change._change\", function( event ) {\n\t\t\t\t\t\tif ( this.parentNode && !event.isSimulated && !event.isTrigger ) {\n\t\t\t\t\t\t\tjQuery.event.simulate( \"change\", this.parentNode, event, true );\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\tjQuery._data( elem, \"_change_attached\", true );\n\t\t\t\t}\n\t\t\t});\n\t\t},\n\n\t\thandle: function( event ) {\n\t\t\tvar elem = event.target;\n\n\t\t\t// Swallow native change events from checkbox/radio, we already triggered them above\n\t\t\tif ( this !== elem || event.isSimulated || event.isTrigger || (elem.type !== \"radio\" && elem.type !== \"checkbox\") ) {\n\t\t\t\treturn event.handleObj.handler.apply( this, arguments );\n\t\t\t}\n\t\t},\n\n\t\tteardown: function() {\n\t\t\tjQuery.event.remove( this, \"._change\" );\n\n\t\t\treturn !rformElems.test( this.nodeName );\n\t\t}\n\t};\n}\n\n// Create \"bubbling\" focus and blur events\nif ( !jQuery.support.focusinBubbles ) {\n\tjQuery.each({ focus: \"focusin\", blur: \"focusout\" }, function( orig, fix ) {\n\n\t\t// Attach a single capturing handler while someone wants focusin/focusout\n\t\tvar attaches = 0,\n\t\t\thandler = function( event ) {\n\t\t\t\tjQuery.event.simulate( fix, event.target, jQuery.event.fix( event ), true );\n\t\t\t};\n\n\t\tjQuery.event.special[ fix ] = {\n\t\t\tsetup: function() {\n\t\t\t\tif ( attaches++ === 0 ) {\n\t\t\t\t\tdocument.addEventListener( orig, handler, true );\n\t\t\t\t}\n\t\t\t},\n\t\t\tteardown: function() {\n\t\t\t\tif ( --attaches === 0 ) {\n\t\t\t\t\tdocument.removeEventListener( orig, handler, true );\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t});\n}\n\njQuery.fn.extend({\n\n\ton: function( types, selector, data, fn, /*INTERNAL*/ 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\t\t\t// ( types-Object, selector, data )\n\t\t\tif ( typeof selector !== \"string\" ) { // && selector != null\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\tthis.on( type, selector, data, types[ type ], one );\n\t\t\t}\n\t\t\treturn this;\n\t\t}\n\n\t\tif ( data == null && fn == null ) {\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\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\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\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\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 this.each( function() {\n\t\t\tjQuery.event.add( this, types, fn, data, selector );\n\t\t});\n\t},\n\tone: function( types, selector, data, fn ) {\n\t\treturn this.on( types, selector, data, fn, 1 );\n\t},\n\toff: function( types, selector, fn ) {\n\t\tvar handleObj, type;\n\t\tif ( types && types.preventDefault && types.handleObj ) {\n\t\t\t// ( event )  dispatched jQuery.Event\n\t\t\thandleObj = types.handleObj;\n\t\t\tjQuery( types.delegateTarget ).off(\n\t\t\t\thandleObj.namespace ? handleObj.origType + \".\" + handleObj.namespace : handleObj.origType,\n\t\t\t\thandleObj.selector,\n\t\t\t\thandleObj.handler\n\t\t\t);\n\t\t\treturn this;\n\t\t}\n\t\tif ( typeof types === \"object\" ) {\n\t\t\t// ( types-object [, selector] )\n\t\t\tfor ( type in types ) {\n\t\t\t\tthis.off( type, selector, types[ type ] );\n\t\t\t}\n\t\t\treturn this;\n\t\t}\n\t\tif ( selector === false || typeof selector === \"function\" ) {\n\t\t\t// ( types [, fn] )\n\t\t\tfn = selector;\n\t\t\tselector = undefined;\n\t\t}\n\t\tif ( fn === false ) {\n\t\t\tfn = returnFalse;\n\t\t}\n\t\treturn this.each(function() {\n\t\t\tjQuery.event.remove( this, types, fn, selector );\n\t\t});\n\t},\n\n\tbind: function( types, data, fn ) {\n\t\treturn this.on( types, null, data, fn );\n\t},\n\tunbind: function( types, fn ) {\n\t\treturn this.off( types, null, fn );\n\t},\n\n\tlive: function( types, data, fn ) {\n\t\tjQuery( this.context ).on( types, this.selector, data, fn );\n\t\treturn this;\n\t},\n\tdie: function( types, fn ) {\n\t\tjQuery( this.context ).off( types, this.selector || \"**\", fn );\n\t\treturn this;\n\t},\n\n\tdelegate: function( selector, types, data, fn ) {\n\t\treturn this.on( types, selector, data, fn );\n\t},\n\tundelegate: function( selector, types, fn ) {\n\t\t// ( namespace ) or ( selector, types [, fn] )\n\t\treturn arguments.length == 1? this.off( selector, \"**\" ) : this.off( types, selector || \"**\", fn );\n\t},\n\n\ttrigger: function( type, data ) {\n\t\treturn this.each(function() {\n\t\t\tjQuery.event.trigger( type, data, this );\n\t\t});\n\t},\n\ttriggerHandler: function( type, data ) {\n\t\tif ( this[0] ) {\n\t\t\treturn jQuery.event.trigger( type, data, this[0], true );\n\t\t}\n\t},\n\n\ttoggle: function( fn ) {\n\t\t// Save reference to arguments for access in closure\n\t\tvar args = arguments,\n\t\t\tguid = fn.guid || jQuery.guid++,\n\t\t\ti = 0,\n\t\t\ttoggler = function( event ) {\n\t\t\t\t// Figure out which function to execute\n\t\t\t\tvar lastToggle = ( jQuery._data( this, \"lastToggle\" + fn.guid ) || 0 ) % i;\n\t\t\t\tjQuery._data( this, \"lastToggle\" + fn.guid, lastToggle + 1 );\n\n\t\t\t\t// Make sure that clicks stop\n\t\t\t\tevent.preventDefault();\n\n\t\t\t\t// and execute the function\n\t\t\t\treturn args[ lastToggle ].apply( this, arguments ) || false;\n\t\t\t};\n\n\t\t// link all the functions, so any of them can unbind this click handler\n\t\ttoggler.guid = guid;\n\t\twhile ( i < args.length ) {\n\t\t\targs[ i++ ].guid = guid;\n\t\t}\n\n\t\treturn this.click( toggler );\n\t},\n\n\thover: function( fnOver, fnOut ) {\n\t\treturn this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );\n\t}\n});\n\njQuery.each( (\"blur focus focusin focusout load resize scroll unload click dblclick \" +\n\t\"mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave \" +\n\t\"change select submit keydown keypress keyup error contextmenu\").split(\" \"), function( i, name ) {\n\n\t// Handle event binding\n\tjQuery.fn[ name ] = function( data, fn ) {\n\t\tif ( fn == null ) {\n\t\t\tfn = data;\n\t\t\tdata = null;\n\t\t}\n\n\t\treturn arguments.length > 0 ?\n\t\t\tthis.on( name, null, data, fn ) :\n\t\t\tthis.trigger( name );\n\t};\n\n\tif ( rkeyEvent.test( name ) ) {\n\t\tjQuery.event.fixHooks[ name ] = jQuery.event.keyHooks;\n\t}\n\n\tif ( rmouseEvent.test( name ) ) {\n\t\tjQuery.event.fixHooks[ name ] = jQuery.event.mouseHooks;\n\t}\n});\n/*!\n * Sizzle CSS Selector Engine\n *  Copyright 2012 jQuery Foundation and other contributors\n *  Released under the MIT license\n *  http://sizzlejs.com/\n */\n(function( window, undefined ) {\n\nvar dirruns,\n\tcachedruns,\n\tassertGetIdNotName,\n\tExpr,\n\tgetText,\n\tisXML,\n\tcontains,\n\tcompile,\n\tsortOrder,\n\thasDuplicate,\n\n\tbaseHasDuplicate = true,\n\tstrundefined = \"undefined\",\n\n\texpando = ( \"sizcache\" + Math.random() ).replace( \".\", \"\" ),\n\n\tdocument = window.document,\n\tdocElem = document.documentElement,\n\tdone = 0,\n\tslice = [].slice,\n\tpush = [].push,\n\n\t// Augment a function for special use by Sizzle\n\tmarkFunction = function( fn, value ) {\n\t\tfn[ expando ] = value || true;\n\t\treturn fn;\n\t},\n\n\tcreateCache = function() {\n\t\tvar cache = {},\n\t\t\tkeys = [];\n\n\t\treturn markFunction(function( key, value ) {\n\t\t\t// Only keep the most recent entries\n\t\t\tif ( keys.push( key ) > Expr.cacheLength ) {\n\t\t\t\tdelete cache[ keys.shift() ];\n\t\t\t}\n\n\t\t\treturn (cache[ key ] = value);\n\t\t}, cache );\n\t},\n\n\tclassCache = createCache(),\n\ttokenCache = createCache(),\n\tcompilerCache = createCache(),\n\n\t// Regex\n\n\t// Whitespace characters http://www.w3.org/TR/css3-selectors/#whitespace\n\twhitespace = \"[\\\\x20\\\\t\\\\r\\\\n\\\\f]\",\n\t// http://www.w3.org/TR/css3-syntax/#characters\n\tcharacterEncoding = \"(?:\\\\\\\\.|[-\\\\w]|[^\\\\x00-\\\\xa0])+\",\n\n\t// Loosely modeled on CSS identifier characters\n\t// An unquoted value should be a CSS identifier (http://www.w3.org/TR/css3-selectors/#attribute-selectors)\n\t// Proper syntax: http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier\n\tidentifier = characterEncoding.replace( \"w\", \"w#\" ),\n\n\t// Acceptable operators http://www.w3.org/TR/selectors/#attribute-selectors\n\toperators = \"([*^$|!~]?=)\",\n\tattributes = \"\\\\[\" + whitespace + \"*(\" + characterEncoding + \")\" + whitespace +\n\t\t\"*(?:\" + operators + whitespace + \"*(?:(['\\\"])((?:\\\\\\\\.|[^\\\\\\\\])*?)\\\\3|(\" + identifier + \")|)|)\" + whitespace + \"*\\\\]\",\n\n\t// Prefer arguments not in parens/brackets,\n\t//   then attribute selectors and non-pseudos (denoted by :),\n\t//   then anything else\n\t// These preferences are here to reduce the number of selectors\n\t//   needing tokenize in the PSEUDO preFilter\n\tpseudos = \":(\" + characterEncoding + \")(?:\\\\((?:(['\\\"])((?:\\\\\\\\.|[^\\\\\\\\])*?)\\\\2|([^()[\\\\]]*|(?:(?:\" + attributes + \")|[^:]|\\\\\\\\.)*|.*))\\\\)|)\",\n\n\t// For matchExpr.POS and matchExpr.needsContext\n\tpos = \":(nth|eq|gt|lt|first|last|even|odd)(?:\\\\(((?:-\\\\d)?\\\\d*)\\\\)|)(?=[^-]|$)\",\n\n\t// Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter\n\trtrim = new RegExp( \"^\" + whitespace + \"+|((?:^|[^\\\\\\\\])(?:\\\\\\\\.)*)\" + whitespace + \"+$\", \"g\" ),\n\n\trcomma = new RegExp( \"^\" + whitespace + \"*,\" + whitespace + \"*\" ),\n\trcombinators = new RegExp( \"^\" + whitespace + \"*([\\\\x20\\\\t\\\\r\\\\n\\\\f>+~])\" + whitespace + \"*\" ),\n\trpseudo = new RegExp( pseudos ),\n\n\t// Easily-parseable/retrievable ID or TAG or CLASS selectors\n\trquickExpr = /^(?:#([\\w\\-]+)|(\\w+)|\\.([\\w\\-]+))$/,\n\n\trnot = /^:not/,\n\trsibling = /[\\x20\\t\\r\\n\\f]*[+~]/,\n\trendsWithNot = /:not\\($/,\n\n\trheader = /h\\d/i,\n\trinputs = /input|select|textarea|button/i,\n\n\trbackslash = /\\\\(?!\\\\)/g,\n\n\tmatchExpr = {\n\t\t\"ID\": new RegExp( \"^#(\" + characterEncoding + \")\" ),\n\t\t\"CLASS\": new RegExp( \"^\\\\.(\" + characterEncoding + \")\" ),\n\t\t\"NAME\": new RegExp( \"^\\\\[name=['\\\"]?(\" + characterEncoding + \")['\\\"]?\\\\]\" ),\n\t\t\"TAG\": new RegExp( \"^(\" + characterEncoding.replace( \"w\", \"w*\" ) + \")\" ),\n\t\t\"ATTR\": new RegExp( \"^\" + attributes ),\n\t\t\"PSEUDO\": new RegExp( \"^\" + pseudos ),\n\t\t\"CHILD\": new RegExp( \"^:(only|nth|last|first)-child(?:\\\\(\" + whitespace +\n\t\t\t\"*(even|odd|(([+-]|)(\\\\d*)n|)\" + whitespace + \"*(?:([+-]|)\" + whitespace +\n\t\t\t\"*(\\\\d+)|))\" + whitespace + \"*\\\\)|)\", \"i\" ),\n\t\t\"POS\": new RegExp( pos, \"ig\" ),\n\t\t// For use in libraries implementing .is()\n\t\t\"needsContext\": new RegExp( \"^\" + whitespace + \"*[>+~]|\" + pos, \"i\" )\n\t},\n\n\t// Support\n\n\t// Used for testing something on an element\n\tassert = function( 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// release memory in IE\n\t\t\tdiv = null;\n\t\t}\n\t},\n\n\t// Check if getElementsByTagName(\"*\") returns only elements\n\tassertTagNameNoComments = assert(function( div ) {\n\t\tdiv.appendChild( document.createComment(\"\") );\n\t\treturn !div.getElementsByTagName(\"*\").length;\n\t}),\n\n\t// Check if getAttribute returns normalized href attributes\n\tassertHrefNotNormalized = assert(function( div ) {\n\t\tdiv.innerHTML = \"<a href='#'></a>\";\n\t\treturn div.firstChild && typeof div.firstChild.getAttribute !== strundefined &&\n\t\t\tdiv.firstChild.getAttribute(\"href\") === \"#\";\n\t}),\n\n\t// Check if attributes should be retrieved by attribute nodes\n\tassertAttributes = assert(function( div ) {\n\t\tdiv.innerHTML = \"<select></select>\";\n\t\tvar type = typeof div.lastChild.getAttribute(\"multiple\");\n\t\t// IE8 returns a string for some attributes even when not present\n\t\treturn type !== \"boolean\" && type !== \"string\";\n\t}),\n\n\t// Check if getElementsByClassName can be trusted\n\tassertUsableClassName = assert(function( div ) {\n\t\t// Opera can't find a second classname (in 9.6)\n\t\tdiv.innerHTML = \"<div class='hidden e'></div><div class='hidden'></div>\";\n\t\tif ( !div.getElementsByClassName || !div.getElementsByClassName(\"e\").length ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Safari 3.2 caches class attributes and doesn't catch changes\n\t\tdiv.lastChild.className = \"e\";\n\t\treturn div.getElementsByClassName(\"e\").length === 2;\n\t}),\n\n\t// Check if getElementById returns elements by name\n\t// Check if getElementsByName privileges form controls or returns elements by ID\n\tassertUsableName = assert(function( div ) {\n\t\t// Inject content\n\t\tdiv.id = expando + 0;\n\t\tdiv.innerHTML = \"<a name='\" + expando + \"'></a><div name='\" + expando + \"'></div>\";\n\t\tdocElem.insertBefore( div, docElem.firstChild );\n\n\t\t// Test\n\t\tvar pass = document.getElementsByName &&\n\t\t\t// buggy browsers will return fewer than the correct 2\n\t\t\tdocument.getElementsByName( expando ).length === 2 +\n\t\t\t// buggy browsers will return more than the correct 0\n\t\t\tdocument.getElementsByName( expando + 0 ).length;\n\t\tassertGetIdNotName = !document.getElementById( expando );\n\n\t\t// Cleanup\n\t\tdocElem.removeChild( div );\n\n\t\treturn pass;\n\t});\n\n// If slice is not available, provide a backup\ntry {\n\tslice.call( docElem.childNodes, 0 )[0].nodeType;\n} catch ( e ) {\n\tslice = function( i ) {\n\t\tvar elem, results = [];\n\t\tfor ( ; (elem = this[i]); i++ ) {\n\t\t\tresults.push( elem );\n\t\t}\n\t\treturn results;\n\t};\n}\n\nfunction Sizzle( selector, context, results, seed ) {\n\tresults = results || [];\n\tcontext = context || document;\n\tvar match, elem, xml, m,\n\t\tnodeType = context.nodeType;\n\n\tif ( nodeType !== 1 && nodeType !== 9 ) {\n\t\treturn [];\n\t}\n\n\tif ( !selector || typeof selector !== \"string\" ) {\n\t\treturn results;\n\t}\n\n\txml = isXML( context );\n\n\tif ( !xml && !seed ) {\n\t\tif ( (match = rquickExpr.exec( selector )) ) {\n\t\t\t// Speed-up: Sizzle(\"#ID\")\n\t\t\tif ( (m = match[1]) ) {\n\t\t\t\tif ( nodeType === 9 ) {\n\t\t\t\t\telem = context.getElementById( m );\n\t\t\t\t\t// Check parentNode to catch when Blackberry 4.6 returns\n\t\t\t\t\t// nodes that are no longer in the document #6963\n\t\t\t\t\tif ( elem && elem.parentNode ) {\n\t\t\t\t\t\t// Handle the case where IE, Opera, and Webkit return items\n\t\t\t\t\t\t// by name instead of ID\n\t\t\t\t\t\tif ( elem.id === m ) {\n\t\t\t\t\t\t\tresults.push( elem );\n\t\t\t\t\t\t\treturn results;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn results;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t// Context is not a document\n\t\t\t\t\tif ( context.ownerDocument && (elem = context.ownerDocument.getElementById( m )) &&\n\t\t\t\t\t\tcontains( context, elem ) && elem.id === m ) {\n\t\t\t\t\t\tresults.push( elem );\n\t\t\t\t\t\treturn results;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t// Speed-up: Sizzle(\"TAG\")\n\t\t\t} else if ( match[2] ) {\n\t\t\t\tpush.apply( results, slice.call(context.getElementsByTagName( selector ), 0) );\n\t\t\t\treturn results;\n\n\t\t\t// Speed-up: Sizzle(\".CLASS\")\n\t\t\t} else if ( (m = match[3]) && assertUsableClassName && context.getElementsByClassName ) {\n\t\t\t\tpush.apply( results, slice.call(context.getElementsByClassName( m ), 0) );\n\t\t\t\treturn results;\n\t\t\t}\n\t\t}\n\t}\n\n\t// All others\n\treturn select( selector, context, results, seed, xml );\n}\n\nSizzle.matches = function( expr, elements ) {\n\treturn Sizzle( expr, null, null, elements );\n};\n\nSizzle.matchesSelector = function( elem, expr ) {\n\treturn Sizzle( expr, null, null, [ elem ] ).length > 0;\n};\n\n// Returns a function to use in pseudos for input types\nfunction createInputPseudo( type ) {\n\treturn function( elem ) {\n\t\tvar name = elem.nodeName.toLowerCase();\n\t\treturn name === \"input\" && elem.type === type;\n\t};\n}\n\n// Returns a function to use in pseudos for buttons\nfunction createButtonPseudo( type ) {\n\treturn function( elem ) {\n\t\tvar name = elem.nodeName.toLowerCase();\n\t\treturn (name === \"input\" || name === \"button\") && elem.type === type;\n\t};\n}\n\n/**\n * Utility function for retrieving the text value of an array of DOM nodes\n * @param {Array|Element} elem\n */\ngetText = Sizzle.getText = function( elem ) {\n\tvar node,\n\t\tret = \"\",\n\t\ti = 0,\n\t\tnodeType = elem.nodeType;\n\n\tif ( nodeType ) {\n\t\tif ( 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 (see #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\t} else {\n\n\t\t// If no nodeType, this is expected to be an array\n\t\tfor ( ; (node = elem[i]); i++ ) {\n\t\t\t// Do not traverse comment nodes\n\t\t\tret += getText( node );\n\t\t}\n\t}\n\treturn ret;\n};\n\nisXML = Sizzle.isXML = function isXML( elem ) {\n\t// documentElement is verified for cases where it doesn't yet exist\n\t// (such as loading iframes in IE - #4833)\n\tvar documentElement = elem && (elem.ownerDocument || elem).documentElement;\n\treturn documentElement ? documentElement.nodeName !== \"HTML\" : false;\n};\n\n// Element contains another\ncontains = Sizzle.contains = docElem.contains ?\n\tfunction( a, b ) {\n\t\tvar adown = a.nodeType === 9 ? a.documentElement : a,\n\t\t\tbup = b && b.parentNode;\n\t\treturn a === bup || !!( bup && bup.nodeType === 1 && adown.contains && adown.contains(bup) );\n\t} :\n\tdocElem.compareDocumentPosition ?\n\tfunction( a, b ) {\n\t\treturn b && !!( a.compareDocumentPosition( b ) & 16 );\n\t} :\n\tfunction( a, b ) {\n\t\twhile ( (b = b.parentNode) ) {\n\t\t\tif ( b === a ) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t};\n\nSizzle.attr = function( elem, name ) {\n\tvar attr,\n\t\txml = isXML( elem );\n\n\tif ( !xml ) {\n\t\tname = name.toLowerCase();\n\t}\n\tif ( Expr.attrHandle[ name ] ) {\n\t\treturn Expr.attrHandle[ name ]( elem );\n\t}\n\tif ( assertAttributes || xml ) {\n\t\treturn elem.getAttribute( name );\n\t}\n\tattr = elem.getAttributeNode( name );\n\treturn attr ?\n\t\ttypeof elem[ name ] === \"boolean\" ?\n\t\t\telem[ name ] ? name : null :\n\t\t\tattr.specified ? attr.value : null :\n\t\tnull;\n};\n\nExpr = Sizzle.selectors = {\n\n\t// Can be adjusted by the user\n\tcacheLength: 50,\n\n\tcreatePseudo: markFunction,\n\n\tmatch: matchExpr,\n\n\torder: new RegExp( \"ID|TAG\" +\n\t\t(assertUsableName ? \"|NAME\" : \"\") +\n\t\t(assertUsableClassName ? \"|CLASS\" : \"\")\n\t),\n\n\t// IE6/7 return a modified href\n\tattrHandle: assertHrefNotNormalized ?\n\t\t{} :\n\t\t{\n\t\t\t\"href\": function( elem ) {\n\t\t\t\treturn elem.getAttribute( \"href\", 2 );\n\t\t\t},\n\t\t\t\"type\": function( elem ) {\n\t\t\t\treturn elem.getAttribute(\"type\");\n\t\t\t}\n\t\t},\n\n\tfind: {\n\t\t\"ID\": assertGetIdNotName ?\n\t\t\tfunction( id, context, xml ) {\n\t\t\t\tif ( typeof context.getElementById !== strundefined && !xml ) {\n\t\t\t\t\tvar m = context.getElementById( id );\n\t\t\t\t\t// Check parentNode to catch when Blackberry 4.6 returns\n\t\t\t\t\t// nodes that are no longer in the document #6963\n\t\t\t\t\treturn m && m.parentNode ? [m] : [];\n\t\t\t\t}\n\t\t\t} :\n\t\t\tfunction( id, context, xml ) {\n\t\t\t\tif ( typeof context.getElementById !== strundefined && !xml ) {\n\t\t\t\t\tvar m = context.getElementById( id );\n\n\t\t\t\t\treturn m ?\n\t\t\t\t\t\tm.id === id || typeof m.getAttributeNode !== strundefined && m.getAttributeNode(\"id\").value === id ?\n\t\t\t\t\t\t\t[m] :\n\t\t\t\t\t\t\tundefined :\n\t\t\t\t\t\t[];\n\t\t\t\t}\n\t\t\t},\n\n\t\t\"TAG\": assertTagNameNoComments ?\n\t\t\tfunction( tag, context ) {\n\t\t\t\tif ( typeof context.getElementsByTagName !== strundefined ) {\n\t\t\t\t\treturn context.getElementsByTagName( tag );\n\t\t\t\t}\n\t\t\t} :\n\t\t\tfunction( tag, context ) {\n\t\t\t\tvar results = context.getElementsByTagName( tag );\n\n\t\t\t\t// Filter out possible comments\n\t\t\t\tif ( tag === \"*\" ) {\n\t\t\t\t\tvar elem,\n\t\t\t\t\t\ttmp = [],\n\t\t\t\t\t\ti = 0;\n\n\t\t\t\t\tfor ( ; (elem = results[i]); 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\"NAME\": function( tag, context ) {\n\t\t\tif ( typeof context.getElementsByName !== strundefined ) {\n\t\t\t\treturn context.getElementsByName( name );\n\t\t\t}\n\t\t},\n\n\t\t\"CLASS\": function( className, context, xml ) {\n\t\t\tif ( typeof context.getElementsByClassName !== strundefined && !xml ) {\n\t\t\t\treturn context.getElementsByClassName( className );\n\t\t\t}\n\t\t}\n\t},\n\n\trelative: {\n\t\t\">\": { dir: \"parentNode\", first: true },\n\t\t\" \": { dir: \"parentNode\" },\n\t\t\"+\": { dir: \"previousSibling\", first: true },\n\t\t\"~\": { dir: \"previousSibling\" }\n\t},\n\n\tpreFilter: {\n\t\t\"ATTR\": function( match ) {\n\t\t\tmatch[1] = match[1].replace( rbackslash, \"\" );\n\n\t\t\t// Move the given value to match[3] whether quoted or unquoted\n\t\t\tmatch[3] = ( match[4] || match[5] || \"\" ).replace( rbackslash, \"\" );\n\n\t\t\tif ( match[2] === \"~=\" ) {\n\t\t\t\tmatch[3] = \" \" + match[3] + \" \";\n\t\t\t}\n\n\t\t\treturn match.slice( 0, 4 );\n\t\t},\n\n\t\t\"CHILD\": function( match ) {\n\t\t\t/* matches from matchExpr.CHILD\n\t\t\t\t1 type (only|nth|...)\n\t\t\t\t2 argument (even|odd|\\d*|\\d*n([+-]\\d+)?|...)\n\t\t\t\t3 xn-component of xn+y argument ([+-]?\\d*n|)\n\t\t\t\t4 sign of xn-component\n\t\t\t\t5 x of xn-component\n\t\t\t\t6 sign of y-component\n\t\t\t\t7 y of y-component\n\t\t\t*/\n\t\t\tmatch[1] = match[1].toLowerCase();\n\n\t\t\tif ( match[1] === \"nth\" ) {\n\t\t\t\t// nth-child requires argument\n\t\t\t\tif ( !match[2] ) {\n\t\t\t\t\tSizzle.error( match[0] );\n\t\t\t\t}\n\n\t\t\t\t// numeric x and y parameters for Expr.filter.CHILD\n\t\t\t\t// remember that false/true cast respectively to 0/1\n\t\t\t\tmatch[3] = +( match[3] ? match[4] + (match[5] || 1) : 2 * ( match[2] === \"even\" || match[2] === \"odd\" ) );\n\t\t\t\tmatch[4] = +( ( match[6] + match[7] ) || match[2] === \"odd\" );\n\n\t\t\t// other types prohibit arguments\n\t\t\t} else if ( match[2] ) {\n\t\t\t\tSizzle.error( match[0] );\n\t\t\t}\n\n\t\t\treturn match;\n\t\t},\n\n\t\t\"PSEUDO\": function( match, context, xml ) {\n\t\t\tvar unquoted, excess;\n\t\t\tif ( matchExpr[\"CHILD\"].test( match[0] ) ) {\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\tif ( match[3] ) {\n\t\t\t\tmatch[2] = match[3];\n\t\t\t} else if ( (unquoted = match[4]) ) {\n\t\t\t\t// Only check arguments that contain a pseudo\n\t\t\t\tif ( rpseudo.test(unquoted) &&\n\t\t\t\t\t// Get excess from tokenize (recursively)\n\t\t\t\t\t(excess = tokenize( unquoted, context, xml, 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\tunquoted = unquoted.slice( 0, excess );\n\t\t\t\t\tmatch[0] = match[0].slice( 0, excess );\n\t\t\t\t}\n\t\t\t\tmatch[2] = unquoted;\n\t\t\t}\n\n\t\t\t// Return only captures needed by the pseudo filter method (type and argument)\n\t\t\treturn match.slice( 0, 3 );\n\t\t}\n\t},\n\n\tfilter: {\n\t\t\"ID\": assertGetIdNotName ?\n\t\t\tfunction( id ) {\n\t\t\t\tid = id.replace( rbackslash, \"\" );\n\t\t\t\treturn function( elem ) {\n\t\t\t\t\treturn elem.getAttribute(\"id\") === id;\n\t\t\t\t};\n\t\t\t} :\n\t\t\tfunction( id ) {\n\t\t\t\tid = id.replace( rbackslash, \"\" );\n\t\t\t\treturn function( elem ) {\n\t\t\t\t\tvar node = typeof elem.getAttributeNode !== strundefined && elem.getAttributeNode(\"id\");\n\t\t\t\t\treturn node && node.value === id;\n\t\t\t\t};\n\t\t\t},\n\n\t\t\"TAG\": function( nodeName ) {\n\t\t\tif ( nodeName === \"*\" ) {\n\t\t\t\treturn function() { return true; };\n\t\t\t}\n\t\t\tnodeName = nodeName.replace( rbackslash, \"\" ).toLowerCase();\n\n\t\t\treturn function( elem ) {\n\t\t\t\treturn elem.nodeName && elem.nodeName.toLowerCase() === nodeName;\n\t\t\t};\n\t\t},\n\n\t\t\"CLASS\": function( className ) {\n\t\t\tvar pattern = classCache[ expando ][ className ];\n\t\t\tif ( !pattern ) {\n\t\t\t\tpattern = classCache( className, new RegExp(\"(^|\" + whitespace + \")\" + className + \"(\" + whitespace + \"|$)\") );\n\t\t\t}\n\t\t\treturn function( elem ) {\n\t\t\t\treturn pattern.test( elem.className || (typeof elem.getAttribute !== strundefined && elem.getAttribute(\"class\")) || \"\" );\n\t\t\t};\n\t\t},\n\n\t\t\"ATTR\": function( name, operator, check ) {\n\t\t\tif ( !operator ) {\n\t\t\t\treturn function( elem ) {\n\t\t\t\t\treturn Sizzle.attr( elem, name ) != null;\n\t\t\t\t};\n\t\t\t}\n\n\t\t\treturn function( elem ) {\n\t\t\t\tvar result = Sizzle.attr( elem, name ),\n\t\t\t\t\tvalue = result + \"\";\n\n\t\t\t\tif ( result == null ) {\n\t\t\t\t\treturn operator === \"!=\";\n\t\t\t\t}\n\n\t\t\t\tswitch ( operator ) {\n\t\t\t\t\tcase \"=\":\n\t\t\t\t\t\treturn value === check;\n\t\t\t\t\tcase \"!=\":\n\t\t\t\t\t\treturn value !== check;\n\t\t\t\t\tcase \"^=\":\n\t\t\t\t\t\treturn check && value.indexOf( check ) === 0;\n\t\t\t\t\tcase \"*=\":\n\t\t\t\t\t\treturn check && value.indexOf( check ) > -1;\n\t\t\t\t\tcase \"$=\":\n\t\t\t\t\t\treturn check && value.substr( value.length - check.length ) === check;\n\t\t\t\t\tcase \"~=\":\n\t\t\t\t\t\treturn ( \" \" + value + \" \" ).indexOf( check ) > -1;\n\t\t\t\t\tcase \"|=\":\n\t\t\t\t\t\treturn value === check || value.substr( 0, check.length + 1 ) === check + \"-\";\n\t\t\t\t}\n\t\t\t};\n\t\t},\n\n\t\t\"CHILD\": function( type, argument, first, last ) {\n\n\t\t\tif ( type === \"nth\" ) {\n\t\t\t\tvar doneName = done++;\n\n\t\t\t\treturn function( elem ) {\n\t\t\t\t\tvar parent, diff,\n\t\t\t\t\t\tcount = 0,\n\t\t\t\t\t\tnode = elem;\n\n\t\t\t\t\tif ( first === 1 && last === 0 ) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\n\t\t\t\t\tparent = elem.parentNode;\n\n\t\t\t\t\tif ( parent && (parent[ expando ] !== doneName || !elem.sizset) ) {\n\t\t\t\t\t\tfor ( node = parent.firstChild; node; node = node.nextSibling ) {\n\t\t\t\t\t\t\tif ( node.nodeType === 1 ) {\n\t\t\t\t\t\t\t\tnode.sizset = ++count;\n\t\t\t\t\t\t\t\tif ( node === elem ) {\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\n\t\t\t\t\t\tparent[ expando ] = doneName;\n\t\t\t\t\t}\n\n\t\t\t\t\tdiff = elem.sizset - last;\n\n\t\t\t\t\tif ( first === 0 ) {\n\t\t\t\t\t\treturn diff === 0;\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn ( diff % first === 0 && diff / first >= 0 );\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t}\n\n\t\t\treturn function( elem ) {\n\t\t\t\tvar node = elem;\n\n\t\t\t\tswitch ( type ) {\n\t\t\t\t\tcase \"only\":\n\t\t\t\t\tcase \"first\":\n\t\t\t\t\t\twhile ( (node = node.previousSibling) ) {\n\t\t\t\t\t\t\tif ( node.nodeType === 1 ) {\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif ( type === \"first\" ) {\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tnode = elem;\n\n\t\t\t\t\t\t/* falls through */\n\t\t\t\t\tcase \"last\":\n\t\t\t\t\t\twhile ( (node = node.nextSibling) ) {\n\t\t\t\t\t\t\tif ( node.nodeType === 1 ) {\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t};\n\t\t},\n\n\t\t\"PSEUDO\": function( pseudo, argument, context, xml ) {\n\t\t\t// pseudo-class names are case-insensitive\n\t\t\t// http://www.w3.org/TR/selectors/#pseudo-classes\n\t\t\t// Prioritize by case sensitivity in case custom pseudos are added with uppercase letters\n\t\t\tvar args,\n\t\t\t\tfn = Expr.pseudos[ pseudo ] || Expr.pseudos[ pseudo.toLowerCase() ];\n\n\t\t\tif ( !fn ) {\n\t\t\t\tSizzle.error( \"unsupported pseudo: \" + pseudo );\n\t\t\t}\n\n\t\t\t// The user may use createPseudo to indicate that\n\t\t\t// arguments are needed to create the filter function\n\t\t\t// just as Sizzle does\n\t\t\tif ( !fn[ expando ] ) {\n\t\t\t\tif ( fn.length > 1 ) {\n\t\t\t\t\targs = [ pseudo, pseudo, \"\", argument ];\n\t\t\t\t\treturn function( elem ) {\n\t\t\t\t\t\treturn fn( elem, 0, args );\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\treturn fn;\n\t\t\t}\n\n\t\t\treturn fn( argument, context, xml );\n\t\t}\n\t},\n\n\tpseudos: {\n\t\t\"not\": markFunction(function( selector, context, xml ) {\n\t\t\t// Trim the selector passed to compile\n\t\t\t// to avoid treating leading and trailing\n\t\t\t// spaces as combinators\n\t\t\tvar matcher = compile( selector.replace( rtrim, \"$1\" ), context, xml );\n\t\t\treturn function( elem ) {\n\t\t\t\treturn !matcher( elem );\n\t\t\t};\n\t\t}),\n\n\t\t\"enabled\": function( elem ) {\n\t\t\treturn elem.disabled === false;\n\t\t},\n\n\t\t\"disabled\": function( elem ) {\n\t\t\treturn elem.disabled === true;\n\t\t},\n\n\t\t\"checked\": function( elem ) {\n\t\t\t// In CSS3, :checked should return both checked and selected elements\n\t\t\t// http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked\n\t\t\tvar nodeName = elem.nodeName.toLowerCase();\n\t\t\treturn (nodeName === \"input\" && !!elem.checked) || (nodeName === \"option\" && !!elem.selected);\n\t\t},\n\n\t\t\"selected\": function( elem ) {\n\t\t\t// Accessing this property makes selected-by-default\n\t\t\t// options in Safari work properly\n\t\t\tif ( elem.parentNode ) {\n\t\t\t\telem.parentNode.selectedIndex;\n\t\t\t}\n\n\t\t\treturn elem.selected === true;\n\t\t},\n\n\t\t\"parent\": function( elem ) {\n\t\t\treturn !Expr.pseudos[\"empty\"]( elem );\n\t\t},\n\n\t\t\"empty\": function( elem ) {\n\t\t\t// http://www.w3.org/TR/selectors/#empty-pseudo\n\t\t\t// :empty is only affected by element nodes and content nodes(including text(3), cdata(4)),\n\t\t\t//   not comment, processing instructions, or others\n\t\t\t// Thanks to Diego Perini for the nodeName shortcut\n\t\t\t//   Greater than \"@\" means alpha characters (specifically not starting with \"#\" or \"?\")\n\t\t\tvar nodeType;\n\t\t\telem = elem.firstChild;\n\t\t\twhile ( elem ) {\n\t\t\t\tif ( elem.nodeName > \"@\" || (nodeType = elem.nodeType) === 3 || nodeType === 4 ) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\telem = elem.nextSibling;\n\t\t\t}\n\t\t\treturn true;\n\t\t},\n\n\t\t\"contains\": markFunction(function( text ) {\n\t\t\treturn function( elem ) {\n\t\t\t\treturn ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1;\n\t\t\t};\n\t\t}),\n\n\t\t\"has\": markFunction(function( selector ) {\n\t\t\treturn function( elem ) {\n\t\t\t\treturn Sizzle( selector, elem ).length > 0;\n\t\t\t};\n\t\t}),\n\n\t\t\"header\": function( elem ) {\n\t\t\treturn rheader.test( elem.nodeName );\n\t\t},\n\n\t\t\"text\": function( elem ) {\n\t\t\tvar type, attr;\n\t\t\t// IE6 and 7 will map elem.type to 'text' for new HTML5 types (search, etc)\n\t\t\t// use getAttribute instead to test this case\n\t\t\treturn elem.nodeName.toLowerCase() === \"input\" &&\n\t\t\t\t(type = elem.type) === \"text\" &&\n\t\t\t\t( (attr = elem.getAttribute(\"type\")) == null || attr.toLowerCase() === type );\n\t\t},\n\n\t\t// Input types\n\t\t\"radio\": createInputPseudo(\"radio\"),\n\t\t\"checkbox\": createInputPseudo(\"checkbox\"),\n\t\t\"file\": createInputPseudo(\"file\"),\n\t\t\"password\": createInputPseudo(\"password\"),\n\t\t\"image\": createInputPseudo(\"image\"),\n\n\t\t\"submit\": createButtonPseudo(\"submit\"),\n\t\t\"reset\": createButtonPseudo(\"reset\"),\n\n\t\t\"button\": function( elem ) {\n\t\t\tvar name = elem.nodeName.toLowerCase();\n\t\t\treturn name === \"input\" && elem.type === \"button\" || name === \"button\";\n\t\t},\n\n\t\t\"input\": function( elem ) {\n\t\t\treturn rinputs.test( elem.nodeName );\n\t\t},\n\n\t\t\"focus\": function( elem ) {\n\t\t\tvar doc = elem.ownerDocument;\n\t\t\treturn elem === doc.activeElement && (!doc.hasFocus || doc.hasFocus()) && !!(elem.type || elem.href);\n\t\t},\n\n\t\t\"active\": function( elem ) {\n\t\t\treturn elem === elem.ownerDocument.activeElement;\n\t\t}\n\t},\n\n\tsetFilters: {\n\t\t\"first\": function( elements, argument, not ) {\n\t\t\treturn not ? elements.slice( 1 ) : [ elements[0] ];\n\t\t},\n\n\t\t\"last\": function( elements, argument, not ) {\n\t\t\tvar elem = elements.pop();\n\t\t\treturn not ? elements : [ elem ];\n\t\t},\n\n\t\t\"even\": function( elements, argument, not ) {\n\t\t\tvar results = [],\n\t\t\t\ti = not ? 1 : 0,\n\t\t\t\tlen = elements.length;\n\t\t\tfor ( ; i < len; i = i + 2 ) {\n\t\t\t\tresults.push( elements[i] );\n\t\t\t}\n\t\t\treturn results;\n\t\t},\n\n\t\t\"odd\": function( elements, argument, not ) {\n\t\t\tvar results = [],\n\t\t\t\ti = not ? 0 : 1,\n\t\t\t\tlen = elements.length;\n\t\t\tfor ( ; i < len; i = i + 2 ) {\n\t\t\t\tresults.push( elements[i] );\n\t\t\t}\n\t\t\treturn results;\n\t\t},\n\n\t\t\"lt\": function( elements, argument, not ) {\n\t\t\treturn not ? elements.slice( +argument ) : elements.slice( 0, +argument );\n\t\t},\n\n\t\t\"gt\": function( elements, argument, not ) {\n\t\t\treturn not ? elements.slice( 0, +argument + 1 ) : elements.slice( +argument + 1 );\n\t\t},\n\n\t\t\"eq\": function( elements, argument, not ) {\n\t\t\tvar elem = elements.splice( +argument, 1 );\n\t\t\treturn not ? elements : elem;\n\t\t}\n\t}\n};\n\nfunction siblingCheck( a, b, ret ) {\n\tif ( a === b ) {\n\t\treturn ret;\n\t}\n\n\tvar cur = a.nextSibling;\n\n\twhile ( cur ) {\n\t\tif ( cur === b ) {\n\t\t\treturn -1;\n\t\t}\n\n\t\tcur = cur.nextSibling;\n\t}\n\n\treturn 1;\n}\n\nsortOrder = docElem.compareDocumentPosition ?\n\tfunction( a, b ) {\n\t\tif ( a === b ) {\n\t\t\thasDuplicate = true;\n\t\t\treturn 0;\n\t\t}\n\n\t\treturn ( !a.compareDocumentPosition || !b.compareDocumentPosition ?\n\t\t\ta.compareDocumentPosition :\n\t\t\ta.compareDocumentPosition(b) & 4\n\t\t) ? -1 : 1;\n\t} :\n\tfunction( a, b ) {\n\t\t// The nodes are identical, we can exit early\n\t\tif ( a === b ) {\n\t\t\thasDuplicate = true;\n\t\t\treturn 0;\n\n\t\t// Fallback to using sourceIndex (in IE) if it's available on both nodes\n\t\t} else if ( a.sourceIndex && b.sourceIndex ) {\n\t\t\treturn a.sourceIndex - b.sourceIndex;\n\t\t}\n\n\t\tvar al, bl,\n\t\t\tap = [],\n\t\t\tbp = [],\n\t\t\taup = a.parentNode,\n\t\t\tbup = b.parentNode,\n\t\t\tcur = aup;\n\n\t\t// If the nodes are siblings (or identical) we can do a quick check\n\t\tif ( aup === bup ) {\n\t\t\treturn siblingCheck( a, b );\n\n\t\t// If no parents were found then the nodes are disconnected\n\t\t} else if ( !aup ) {\n\t\t\treturn -1;\n\n\t\t} else if ( !bup ) {\n\t\t\treturn 1;\n\t\t}\n\n\t\t// Otherwise they're somewhere else in the tree so we need\n\t\t// to build up a full list of the parentNodes for comparison\n\t\twhile ( cur ) {\n\t\t\tap.unshift( cur );\n\t\t\tcur = cur.parentNode;\n\t\t}\n\n\t\tcur = bup;\n\n\t\twhile ( cur ) {\n\t\t\tbp.unshift( cur );\n\t\t\tcur = cur.parentNode;\n\t\t}\n\n\t\tal = ap.length;\n\t\tbl = bp.length;\n\n\t\t// Start walking down the tree looking for a discrepancy\n\t\tfor ( var i = 0; i < al && i < bl; i++ ) {\n\t\t\tif ( ap[i] !== bp[i] ) {\n\t\t\t\treturn siblingCheck( ap[i], bp[i] );\n\t\t\t}\n\t\t}\n\n\t\t// We ended someplace up the tree so do a sibling check\n\t\treturn i === al ?\n\t\t\tsiblingCheck( a, bp[i], -1 ) :\n\t\t\tsiblingCheck( ap[i], b, 1 );\n\t};\n\n// Always assume the presence of duplicates if sort doesn't\n// pass them to our comparison function (as in Google Chrome).\n[0, 0].sort( sortOrder );\nbaseHasDuplicate = !hasDuplicate;\n\n// Document sorting and removing duplicates\nSizzle.uniqueSort = function( results ) {\n\tvar elem,\n\t\ti = 1;\n\n\thasDuplicate = baseHasDuplicate;\n\tresults.sort( sortOrder );\n\n\tif ( hasDuplicate ) {\n\t\tfor ( ; (elem = results[i]); i++ ) {\n\t\t\tif ( elem === results[ i - 1 ] ) {\n\t\t\t\tresults.splice( i--, 1 );\n\t\t\t}\n\t\t}\n\t}\n\n\treturn results;\n};\n\nSizzle.error = function( msg ) {\n\tthrow new Error( \"Syntax error, unrecognized expression: \" + msg );\n};\n\nfunction tokenize( selector, context, xml, parseOnly ) {\n\tvar matched, match, tokens, type,\n\t\tsoFar, groups, group, i,\n\t\tpreFilters, filters,\n\t\tcheckContext = !xml && context !== document,\n\t\t// Token cache should maintain spaces\n\t\tkey = ( checkContext ? \"<s>\" : \"\" ) + selector.replace( rtrim, \"$1<s>\" ),\n\t\tcached = tokenCache[ expando ][ key ];\n\n\tif ( cached ) {\n\t\treturn parseOnly ? 0 : slice.call( cached, 0 );\n\t}\n\n\tsoFar = selector;\n\tgroups = [];\n\ti = 0;\n\tpreFilters = Expr.preFilter;\n\tfilters = Expr.filter;\n\n\twhile ( soFar ) {\n\n\t\t// Comma and first run\n\t\tif ( !matched || (match = rcomma.exec( soFar )) ) {\n\t\t\tif ( match ) {\n\t\t\t\tsoFar = soFar.slice( match[0].length );\n\t\t\t\ttokens.selector = group;\n\t\t\t}\n\t\t\tgroups.push( tokens = [] );\n\t\t\tgroup = \"\";\n\n\t\t\t// Need to make sure we're within a narrower context if necessary\n\t\t\t// Adding a descendant combinator will generate what is needed\n\t\t\tif ( checkContext ) {\n\t\t\t\tsoFar = \" \" + soFar;\n\t\t\t}\n\t\t}\n\n\t\tmatched = false;\n\n\t\t// Combinators\n\t\tif ( (match = rcombinators.exec( soFar )) ) {\n\t\t\tgroup += match[0];\n\t\t\tsoFar = soFar.slice( match[0].length );\n\n\t\t\t// Cast descendant combinators to space\n\t\t\tmatched = tokens.push({\n\t\t\t\tpart: match.pop().replace( rtrim, \" \" ),\n\t\t\t\tstring: match[0],\n\t\t\t\tcaptures: match\n\t\t\t});\n\t\t}\n\n\t\t// Filters\n\t\tfor ( type in filters ) {\n\t\t\tif ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] ||\n\t\t\t\t( match = preFilters[ type ](match, context, xml) )) ) {\n\n\t\t\t\tgroup += match[0];\n\t\t\t\tsoFar = soFar.slice( match[0].length );\n\t\t\t\tmatched = tokens.push({\n\t\t\t\t\tpart: type,\n\t\t\t\t\tstring: match.shift(),\n\t\t\t\t\tcaptures: match\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\n\t\tif ( !matched ) {\n\t\t\tbreak;\n\t\t}\n\t}\n\n\t// Attach the full group as a selector\n\tif ( group ) {\n\t\ttokens.selector = group;\n\t}\n\n\t// Return the length of the invalid excess\n\t// if we're just parsing\n\t// Otherwise, throw an error or return tokens\n\treturn parseOnly ?\n\t\tsoFar.length :\n\t\tsoFar ?\n\t\t\tSizzle.error( selector ) :\n\t\t\t// Cache the tokens\n\t\t\tslice.call( tokenCache(key, groups), 0 );\n}\n\nfunction addCombinator( matcher, combinator, context, xml ) {\n\tvar dir = combinator.dir,\n\t\tdoneName = done++;\n\n\tif ( !matcher ) {\n\t\t// If there is no matcher to check, check against the context\n\t\tmatcher = function( elem ) {\n\t\t\treturn elem === context;\n\t\t};\n\t}\n\treturn combinator.first ?\n\t\tfunction( elem ) {\n\t\t\twhile ( (elem = elem[ dir ]) ) {\n\t\t\t\tif ( elem.nodeType === 1 ) {\n\t\t\t\t\treturn matcher( elem ) && elem;\n\t\t\t\t}\n\t\t\t}\n\t\t} :\n\t\txml ?\n\t\t\tfunction( elem ) {\n\t\t\t\twhile ( (elem = elem[ dir ]) ) {\n\t\t\t\t\tif ( elem.nodeType === 1 ) {\n\t\t\t\t\t\tif ( matcher( elem ) ) {\n\t\t\t\t\t\t\treturn elem;\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\tfunction( elem ) {\n\t\t\t\tvar cache,\n\t\t\t\t\tdirkey = doneName + \".\" + dirruns,\n\t\t\t\t\tcachedkey = dirkey + \".\" + cachedruns;\n\t\t\t\twhile ( (elem = elem[ dir ]) ) {\n\t\t\t\t\tif ( elem.nodeType === 1 ) {\n\t\t\t\t\t\tif ( (cache = elem[ expando ]) === cachedkey ) {\n\t\t\t\t\t\t\treturn elem.sizset;\n\t\t\t\t\t\t} else if ( typeof cache === \"string\" && cache.indexOf(dirkey) === 0 ) {\n\t\t\t\t\t\t\tif ( elem.sizset ) {\n\t\t\t\t\t\t\t\treturn elem;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\telem[ expando ] = cachedkey;\n\t\t\t\t\t\t\tif ( matcher( elem ) ) {\n\t\t\t\t\t\t\t\telem.sizset = true;\n\t\t\t\t\t\t\t\treturn elem;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telem.sizset = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t};\n}\n\nfunction addMatcher( higher, deeper ) {\n\treturn higher ?\n\t\tfunction( elem ) {\n\t\t\tvar result = deeper( elem );\n\t\t\treturn result && higher( result === true ? elem : result );\n\t\t} :\n\t\tdeeper;\n}\n\n// [\"TAG\", \">\", \"ID\", \" \", \"CLASS\"]\nfunction matcherFromTokens( tokens, context, xml ) {\n\tvar token, matcher,\n\t\ti = 0;\n\n\tfor ( ; (token = tokens[i]); i++ ) {\n\t\tif ( Expr.relative[ token.part ] ) {\n\t\t\tmatcher = addCombinator( matcher, Expr.relative[ token.part ], context, xml );\n\t\t} else {\n\t\t\tmatcher = addMatcher( matcher, Expr.filter[ token.part ].apply(null, token.captures.concat( context, xml )) );\n\t\t}\n\t}\n\n\treturn matcher;\n}\n\nfunction matcherFromGroupMatchers( matchers ) {\n\treturn function( elem ) {\n\t\tvar matcher,\n\t\t\tj = 0;\n\t\tfor ( ; (matcher = matchers[j]); j++ ) {\n\t\t\tif ( matcher(elem) ) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t};\n}\n\ncompile = Sizzle.compile = function( selector, context, xml ) {\n\tvar group, i, len,\n\t\tcached = compilerCache[ expando ][ selector ];\n\n\t// Return a cached group function if already generated (context dependent)\n\tif ( cached && cached.context === context ) {\n\t\treturn cached;\n\t}\n\n\t// Generate a function of recursive functions that can be used to check each element\n\tgroup = tokenize( selector, context, xml );\n\tfor ( i = 0, len = group.length; i < len; i++ ) {\n\t\tgroup[i] = matcherFromTokens(group[i], context, xml);\n\t}\n\n\t// Cache the compiled function\n\tcached = compilerCache( selector, matcherFromGroupMatchers(group) );\n\tcached.context = context;\n\tcached.runs = cached.dirruns = 0;\n\treturn cached;\n};\n\nfunction multipleContexts( selector, contexts, results, seed ) {\n\tvar i = 0,\n\t\tlen = contexts.length;\n\tfor ( ; i < len; i++ ) {\n\t\tSizzle( selector, contexts[i], results, seed );\n\t}\n}\n\nfunction handlePOSGroup( selector, posfilter, argument, contexts, seed, not ) {\n\tvar results,\n\t\tfn = Expr.setFilters[ posfilter.toLowerCase() ];\n\n\tif ( !fn ) {\n\t\tSizzle.error( posfilter );\n\t}\n\n\tif ( selector || !(results = seed) ) {\n\t\tmultipleContexts( selector || \"*\", contexts, (results = []), seed );\n\t}\n\n\treturn results.length > 0 ? fn( results, argument, not ) : [];\n}\n\nfunction handlePOS( groups, context, results, seed ) {\n\tvar group, part, j, groupLen, token, selector,\n\t\tanchor, elements, match, matched,\n\t\tlastIndex, currentContexts, not,\n\t\ti = 0,\n\t\tlen = groups.length,\n\t\trpos = matchExpr[\"POS\"],\n\t\t// This is generated here in case matchExpr[\"POS\"] is extended\n\t\trposgroups = new RegExp( \"^\" + rpos.source + \"(?!\" + whitespace + \")\", \"i\" ),\n\t\t// This is for making sure non-participating\n\t\t// matching groups are represented cross-browser (IE6-8)\n\t\tsetUndefined = function() {\n\t\t\tvar i = 1,\n\t\t\t\tlen = arguments.length - 2;\n\t\t\tfor ( ; i < len; i++ ) {\n\t\t\t\tif ( arguments[i] === undefined ) {\n\t\t\t\t\tmatch[i] = undefined;\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\n\tfor ( ; i < len; i++ ) {\n\t\tgroup = groups[i];\n\t\tpart = \"\";\n\t\telements = seed;\n\t\tfor ( j = 0, groupLen = group.length; j < groupLen; j++ ) {\n\t\t\ttoken = group[j];\n\t\t\tselector = token.string;\n\t\t\tif ( token.part === \"PSEUDO\" ) {\n\t\t\t\t// Reset regex index to 0\n\t\t\t\trpos.exec(\"\");\n\t\t\t\tanchor = 0;\n\t\t\t\twhile ( (match = rpos.exec( selector )) ) {\n\t\t\t\t\tmatched = true;\n\t\t\t\t\tlastIndex = rpos.lastIndex = match.index + match[0].length;\n\t\t\t\t\tif ( lastIndex > anchor ) {\n\t\t\t\t\t\tpart += selector.slice( anchor, match.index );\n\t\t\t\t\t\tanchor = lastIndex;\n\t\t\t\t\t\tcurrentContexts = [ context ];\n\n\t\t\t\t\t\tif ( rcombinators.test(part) ) {\n\t\t\t\t\t\t\tif ( elements ) {\n\t\t\t\t\t\t\t\tcurrentContexts = elements;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telements = seed;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif ( (not = rendsWithNot.test( part )) ) {\n\t\t\t\t\t\t\tpart = part.slice( 0, -5 ).replace( rcombinators, \"$&*\" );\n\t\t\t\t\t\t\tanchor++;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif ( match.length > 1 ) {\n\t\t\t\t\t\t\tmatch[0].replace( rposgroups, setUndefined );\n\t\t\t\t\t\t}\n\t\t\t\t\t\telements = handlePOSGroup( part, match[1], match[2], currentContexts, elements, not );\n\t\t\t\t\t}\n\t\t\t\t\tpart = \"\";\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tif ( !matched ) {\n\t\t\t\tpart += selector;\n\t\t\t}\n\t\t\tmatched = false;\n\t\t}\n\n\t\tif ( part ) {\n\t\t\tif ( rcombinators.test(part) ) {\n\t\t\t\tmultipleContexts( part, elements || [ context ], results, seed );\n\t\t\t} else {\n\t\t\t\tSizzle( part, context, results, seed ? seed.concat(elements) : elements );\n\t\t\t}\n\t\t} else {\n\t\t\tpush.apply( results, elements );\n\t\t}\n\t}\n\n\t// Do not sort if this is a single filter\n\treturn len === 1 ? results : Sizzle.uniqueSort( results );\n}\n\nfunction select( selector, context, results, seed, xml ) {\n\t// Remove excessive whitespace\n\tselector = selector.replace( rtrim, \"$1\" );\n\tvar elements, matcher, cached, elem,\n\t\ti, tokens, token, lastToken, findContext, type,\n\t\tmatch = tokenize( selector, context, xml ),\n\t\tcontextNodeType = context.nodeType;\n\n\t// POS handling\n\tif ( matchExpr[\"POS\"].test(selector) ) {\n\t\treturn handlePOS( match, context, results, seed );\n\t}\n\n\tif ( seed ) {\n\t\telements = slice.call( seed, 0 );\n\n\t// To maintain document order, only narrow the\n\t// set if there is one group\n\t} else if ( match.length === 1 ) {\n\n\t\t// Take a shortcut and set the context if the root selector is an ID\n\t\tif ( (tokens = slice.call( match[0], 0 )).length > 2 &&\n\t\t\t\t(token = tokens[0]).part === \"ID\" &&\n\t\t\t\tcontextNodeType === 9 && !xml &&\n\t\t\t\tExpr.relative[ tokens[1].part ] ) {\n\n\t\t\tcontext = Expr.find[\"ID\"]( token.captures[0].replace( rbackslash, \"\" ), context, xml )[0];\n\t\t\tif ( !context ) {\n\t\t\t\treturn results;\n\t\t\t}\n\n\t\t\tselector = selector.slice( tokens.shift().string.length );\n\t\t}\n\n\t\tfindContext = ( (match = rsibling.exec( tokens[0].string )) && !match.index && context.parentNode ) || context;\n\n\t\t// Reduce the set if possible\n\t\tlastToken = \"\";\n\t\tfor ( i = tokens.length - 1; i >= 0; i-- ) {\n\t\t\ttoken = tokens[i];\n\t\t\ttype = token.part;\n\t\t\tlastToken = token.string + lastToken;\n\t\t\tif ( Expr.relative[ type ] ) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif ( Expr.order.test(type) ) {\n\t\t\t\telements = Expr.find[ type ]( token.captures[0].replace( rbackslash, \"\" ), findContext, xml );\n\t\t\t\tif ( elements == null ) {\n\t\t\t\t\tcontinue;\n\t\t\t\t} else {\n\t\t\t\t\tselector = selector.slice( 0, selector.length - lastToken.length ) +\n\t\t\t\t\t\tlastToken.replace( matchExpr[ type ], \"\" );\n\n\t\t\t\t\tif ( !selector ) {\n\t\t\t\t\t\tpush.apply( results, slice.call(elements, 0) );\n\t\t\t\t\t}\n\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// Only loop over the given elements once\n\tif ( selector ) {\n\t\tmatcher = compile( selector, context, xml );\n\t\tdirruns = matcher.dirruns++;\n\t\tif ( elements == null ) {\n\t\t\telements = Expr.find[\"TAG\"]( \"*\", (rsibling.test( selector ) && context.parentNode) || context );\n\t\t}\n\n\t\tfor ( i = 0; (elem = elements[i]); i++ ) {\n\t\t\tcachedruns = matcher.runs++;\n\t\t\tif ( matcher(elem) ) {\n\t\t\t\tresults.push( elem );\n\t\t\t}\n\t\t}\n\t}\n\n\treturn results;\n}\n\nif ( document.querySelectorAll ) {\n\t(function() {\n\t\tvar disconnectedMatch,\n\t\t\toldSelect = select,\n\t\t\trescape = /'|\\\\/g,\n\t\t\trattributeQuotes = /\\=[\\x20\\t\\r\\n\\f]*([^'\"\\]]*)[\\x20\\t\\r\\n\\f]*\\]/g,\n\t\t\trbuggyQSA = [],\n\t\t\t// matchesSelector(:active) reports false when true (IE9/Opera 11.5)\n\t\t\t// A support test would require too much code (would include document ready)\n\t\t\t// just skip matchesSelector for :active\n\t\t\trbuggyMatches = [\":active\"],\n\t\t\tmatches = docElem.matchesSelector ||\n\t\t\t\tdocElem.mozMatchesSelector ||\n\t\t\t\tdocElem.webkitMatchesSelector ||\n\t\t\t\tdocElem.oMatchesSelector ||\n\t\t\t\tdocElem.msMatchesSelector;\n\n\t\t// Build QSA regex\n\t\t// Regex strategy adopted from Diego Perini\n\t\tassert(function( div ) {\n\t\t\t// Select is set to empty string on purpose\n\t\t\t// This is to test IE's treatment of not explictly\n\t\t\t// setting a boolean content attribute,\n\t\t\t// since its presence should be enough\n\t\t\t// http://bugs.jquery.com/ticket/12359\n\t\t\tdiv.innerHTML = \"<select><option selected=''></option></select>\";\n\n\t\t\t// IE8 - Some boolean attributes are not treated correctly\n\t\t\tif ( !div.querySelectorAll(\"[selected]\").length ) {\n\t\t\t\trbuggyQSA.push( \"\\\\[\" + whitespace + \"*(?:checked|disabled|ismap|multiple|readonly|selected|value)\" );\n\t\t\t}\n\n\t\t\t// Webkit/Opera - :checked should return selected option elements\n\t\t\t// http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked\n\t\t\t// IE8 throws error here (do not put tests after this one)\n\t\t\tif ( !div.querySelectorAll(\":checked\").length ) {\n\t\t\t\trbuggyQSA.push(\":checked\");\n\t\t\t}\n\t\t});\n\n\t\tassert(function( div ) {\n\n\t\t\t// Opera 10-12/IE9 - ^= $= *= and empty values\n\t\t\t// Should not select anything\n\t\t\tdiv.innerHTML = \"<p test=''></p>\";\n\t\t\tif ( div.querySelectorAll(\"[test^='']\").length ) {\n\t\t\t\trbuggyQSA.push( \"[*^$]=\" + whitespace + \"*(?:\\\"\\\"|'')\" );\n\t\t\t}\n\n\t\t\t// FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled)\n\t\t\t// IE8 throws error here (do not put tests after this one)\n\t\t\tdiv.innerHTML = \"<input type='hidden'/>\";\n\t\t\tif ( !div.querySelectorAll(\":enabled\").length ) {\n\t\t\t\trbuggyQSA.push(\":enabled\", \":disabled\");\n\t\t\t}\n\t\t});\n\n\t\trbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join(\"|\") );\n\n\t\tselect = function( selector, context, results, seed, xml ) {\n\t\t\t// Only use querySelectorAll when not filtering,\n\t\t\t// when this is not xml,\n\t\t\t// and when no QSA bugs apply\n\t\t\tif ( !seed && !xml && (!rbuggyQSA || !rbuggyQSA.test( selector )) ) {\n\t\t\t\tif ( context.nodeType === 9 ) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tpush.apply( results, slice.call(context.querySelectorAll( selector ), 0) );\n\t\t\t\t\t\treturn results;\n\t\t\t\t\t} catch(qsaError) {}\n\t\t\t\t// qSA works strangely on Element-rooted queries\n\t\t\t\t// We can work around this by specifying an extra ID on the root\n\t\t\t\t// and working up from there (Thanks to Andrew Dupont for the technique)\n\t\t\t\t// IE 8 doesn't work on object elements\n\t\t\t\t} else if ( context.nodeType === 1 && context.nodeName.toLowerCase() !== \"object\" ) {\n\t\t\t\t\tvar groups, i, len,\n\t\t\t\t\t\told = context.getAttribute(\"id\"),\n\t\t\t\t\t\tnid = old || expando,\n\t\t\t\t\t\tnewContext = rsibling.test( selector ) && context.parentNode || context;\n\n\t\t\t\t\tif ( old ) {\n\t\t\t\t\t\tnid = nid.replace( rescape, \"\\\\$&\" );\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcontext.setAttribute( \"id\", nid );\n\t\t\t\t\t}\n\n\t\t\t\t\tgroups = tokenize(selector, context, xml);\n\t\t\t\t\t// Trailing space is unnecessary\n\t\t\t\t\t// There is always a context check\n\t\t\t\t\tnid = \"[id='\" + nid + \"']\";\n\t\t\t\t\tfor ( i = 0, len = groups.length; i < len; i++ ) {\n\t\t\t\t\t\tgroups[i] = nid + groups[i].selector;\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\tpush.apply( results, slice.call( newContext.querySelectorAll(\n\t\t\t\t\t\t\tgroups.join(\",\")\n\t\t\t\t\t\t), 0 ) );\n\t\t\t\t\t\treturn results;\n\t\t\t\t\t} catch(qsaError) {\n\t\t\t\t\t} finally {\n\t\t\t\t\t\tif ( !old ) {\n\t\t\t\t\t\t\tcontext.removeAttribute(\"id\");\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 oldSelect( selector, context, results, seed, xml );\n\t\t};\n\n\t\tif ( matches ) {\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\tdisconnectedMatch = 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\ttry {\n\t\t\t\t\tmatches.call( div, \"[test!='']:sizzle\" );\n\t\t\t\t\trbuggyMatches.push( matchExpr[\"PSEUDO\"].source, matchExpr[\"POS\"].source, \"!=\" );\n\t\t\t\t} catch ( e ) {}\n\t\t\t});\n\n\t\t\t// rbuggyMatches always contains :active, so no need for a length check\n\t\t\trbuggyMatches = /* rbuggyMatches.length && */ new RegExp( rbuggyMatches.join(\"|\") );\n\n\t\t\tSizzle.matchesSelector = function( elem, expr ) {\n\t\t\t\t// Make sure that attribute selectors are quoted\n\t\t\t\texpr = expr.replace( rattributeQuotes, \"='$1']\" );\n\n\t\t\t\t// rbuggyMatches always contains :active, so no need for an existence check\n\t\t\t\tif ( !isXML( elem ) && !rbuggyMatches.test( expr ) && (!rbuggyQSA || !rbuggyQSA.test( expr )) ) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tvar ret = matches.call( elem, expr );\n\n\t\t\t\t\t\t// IE 9's matchesSelector returns false on disconnected nodes\n\t\t\t\t\t\tif ( ret || disconnectedMatch ||\n\t\t\t\t\t\t\t\t// As well, disconnected nodes are said to be in a document\n\t\t\t\t\t\t\t\t// fragment in IE 9\n\t\t\t\t\t\t\t\telem.document && elem.document.nodeType !== 11 ) {\n\t\t\t\t\t\t\treturn ret;\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch(e) {}\n\t\t\t\t}\n\n\t\t\t\treturn Sizzle( expr, null, null, [ elem ] ).length > 0;\n\t\t\t};\n\t\t}\n\t})();\n}\n\n// Deprecated\nExpr.setFilters[\"nth\"] = Expr.setFilters[\"eq\"];\n\n// Back-compat\nExpr.filters = Expr.pseudos;\n\n// Override sizzle attribute retrieval\nSizzle.attr = jQuery.attr;\njQuery.find = Sizzle;\njQuery.expr = Sizzle.selectors;\njQuery.expr[\":\"] = jQuery.expr.pseudos;\njQuery.unique = Sizzle.uniqueSort;\njQuery.text = Sizzle.getText;\njQuery.isXMLDoc = Sizzle.isXML;\njQuery.contains = Sizzle.contains;\n\n\n})( window );\nvar runtil = /Until$/,\n\trparentsprev = /^(?:parents|prev(?:Until|All))/,\n\tisSimple = /^.[^:#\\[\\.,]*$/,\n\trneedsContext = jQuery.expr.match.needsContext,\n\t// methods guaranteed to produce a unique set when starting from a unique set\n\tguaranteedUnique = {\n\t\tchildren: true,\n\t\tcontents: true,\n\t\tnext: true,\n\t\tprev: true\n\t};\n\njQuery.fn.extend({\n\tfind: function( selector ) {\n\t\tvar i, l, length, n, r, ret,\n\t\t\tself = this;\n\n\t\tif ( typeof selector !== \"string\" ) {\n\t\t\treturn jQuery( selector ).filter(function() {\n\t\t\t\tfor ( i = 0, l = self.length; i < l; i++ ) {\n\t\t\t\t\tif ( jQuery.contains( self[ i ], this ) ) {\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\tret = this.pushStack( \"\", \"find\", selector );\n\n\t\tfor ( i = 0, l = this.length; i < l; i++ ) {\n\t\t\tlength = ret.length;\n\t\t\tjQuery.find( selector, this[i], ret );\n\n\t\t\tif ( i > 0 ) {\n\t\t\t\t// Make sure that the results are unique\n\t\t\t\tfor ( n = length; n < ret.length; n++ ) {\n\t\t\t\t\tfor ( r = 0; r < length; r++ ) {\n\t\t\t\t\t\tif ( ret[r] === ret[n] ) {\n\t\t\t\t\t\t\tret.splice(n--, 1);\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}\n\t\t\t}\n\t\t}\n\n\t\treturn ret;\n\t},\n\n\thas: function( target ) {\n\t\tvar i,\n\t\t\ttargets = jQuery( target, this ),\n\t\t\tlen = targets.length;\n\n\t\treturn this.filter(function() {\n\t\t\tfor ( i = 0; i < len; i++ ) {\n\t\t\t\tif ( jQuery.contains( this, targets[i] ) ) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t},\n\n\tnot: function( selector ) {\n\t\treturn this.pushStack( winnow(this, selector, false), \"not\", selector);\n\t},\n\n\tfilter: function( selector ) {\n\t\treturn this.pushStack( winnow(this, selector, true), \"filter\", selector );\n\t},\n\n\tis: function( selector ) {\n\t\treturn !!selector && (\n\t\t\ttypeof selector === \"string\" ?\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\trneedsContext.test( selector ) ?\n\t\t\t\t\tjQuery( selector, this.context ).index( this[0] ) >= 0 :\n\t\t\t\t\tjQuery.filter( selector, this ).length > 0 :\n\t\t\t\tthis.filter( selector ).length > 0 );\n\t},\n\n\tclosest: function( selectors, context ) {\n\t\tvar cur,\n\t\t\ti = 0,\n\t\t\tl = this.length,\n\t\t\tret = [],\n\t\t\tpos = rneedsContext.test( selectors ) || typeof selectors !== \"string\" ?\n\t\t\t\tjQuery( selectors, context || this.context ) :\n\t\t\t\t0;\n\n\t\tfor ( ; i < l; i++ ) {\n\t\t\tcur = this[i];\n\n\t\t\twhile ( cur && cur.ownerDocument && cur !== context && cur.nodeType !== 11 ) {\n\t\t\t\tif ( pos ? pos.index(cur) > -1 : jQuery.find.matchesSelector(cur, selectors) ) {\n\t\t\t\t\tret.push( cur );\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcur = cur.parentNode;\n\t\t\t}\n\t\t}\n\n\t\tret = ret.length > 1 ? jQuery.unique( ret ) : ret;\n\n\t\treturn this.pushStack( ret, \"closest\", selectors );\n\t},\n\n\t// Determine the position of an element within\n\t// the matched set of elements\n\tindex: function( elem ) {\n\n\t\t// No argument, return index in parent\n\t\tif ( !elem ) {\n\t\t\treturn ( this[0] && this[0].parentNode ) ? this.prevAll().length : -1;\n\t\t}\n\n\t\t// index in selector\n\t\tif ( typeof elem === \"string\" ) {\n\t\t\treturn jQuery.inArray( this[0], jQuery( elem ) );\n\t\t}\n\n\t\t// Locate the position of the desired element\n\t\treturn jQuery.inArray(\n\t\t\t// If it receives a jQuery object, the first element is used\n\t\t\telem.jquery ? elem[0] : elem, this );\n\t},\n\n\tadd: function( selector, context ) {\n\t\tvar set = typeof selector === \"string\" ?\n\t\t\t\tjQuery( selector, context ) :\n\t\t\t\tjQuery.makeArray( selector && selector.nodeType ? [ selector ] : selector ),\n\t\t\tall = jQuery.merge( this.get(), set );\n\n\t\treturn this.pushStack( isDisconnected( set[0] ) || isDisconnected( all[0] ) ?\n\t\t\tall :\n\t\t\tjQuery.unique( all ) );\n\t},\n\n\taddBack: function( selector ) {\n\t\treturn this.add( selector == null ?\n\t\t\tthis.prevObject : this.prevObject.filter(selector)\n\t\t);\n\t}\n});\n\njQuery.fn.andSelf = jQuery.fn.addBack;\n\n// A painfully simple check to see if an element is disconnected\n// from a document (should be improved, where feasible).\nfunction isDisconnected( node ) {\n\treturn !node || !node.parentNode || node.parentNode.nodeType === 11;\n}\n\nfunction sibling( cur, dir ) {\n\tdo {\n\t\tcur = cur[ dir ];\n\t} while ( cur && cur.nodeType !== 1 );\n\n\treturn cur;\n}\n\njQuery.each({\n\tparent: function( elem ) {\n\t\tvar parent = elem.parentNode;\n\t\treturn parent && parent.nodeType !== 11 ? parent : null;\n\t},\n\tparents: function( elem ) {\n\t\treturn jQuery.dir( elem, \"parentNode\" );\n\t},\n\tparentsUntil: function( elem, i, until ) {\n\t\treturn jQuery.dir( elem, \"parentNode\", until );\n\t},\n\tnext: function( elem ) {\n\t\treturn sibling( elem, \"nextSibling\" );\n\t},\n\tprev: function( elem ) {\n\t\treturn sibling( elem, \"previousSibling\" );\n\t},\n\tnextAll: function( elem ) {\n\t\treturn jQuery.dir( elem, \"nextSibling\" );\n\t},\n\tprevAll: function( elem ) {\n\t\treturn jQuery.dir( elem, \"previousSibling\" );\n\t},\n\tnextUntil: function( elem, i, until ) {\n\t\treturn jQuery.dir( elem, \"nextSibling\", until );\n\t},\n\tprevUntil: function( elem, i, until ) {\n\t\treturn jQuery.dir( elem, \"previousSibling\", until );\n\t},\n\tsiblings: function( elem ) {\n\t\treturn jQuery.sibling( ( elem.parentNode || {} ).firstChild, elem );\n\t},\n\tchildren: function( elem ) {\n\t\treturn jQuery.sibling( elem.firstChild );\n\t},\n\tcontents: function( elem ) {\n\t\treturn jQuery.nodeName( elem, \"iframe\" ) ?\n\t\t\telem.contentDocument || elem.contentWindow.document :\n\t\t\tjQuery.merge( [], elem.childNodes );\n\t}\n}, function( name, fn ) {\n\tjQuery.fn[ name ] = function( until, selector ) {\n\t\tvar ret = jQuery.map( this, fn, until );\n\n\t\tif ( !runtil.test( name ) ) {\n\t\t\tselector = until;\n\t\t}\n\n\t\tif ( selector && typeof selector === \"string\" ) {\n\t\t\tret = jQuery.filter( selector, ret );\n\t\t}\n\n\t\tret = this.length > 1 && !guaranteedUnique[ name ] ? jQuery.unique( ret ) : ret;\n\n\t\tif ( this.length > 1 && rparentsprev.test( name ) ) {\n\t\t\tret = ret.reverse();\n\t\t}\n\n\t\treturn this.pushStack( ret, name, core_slice.call( arguments ).join(\",\") );\n\t};\n});\n\njQuery.extend({\n\tfilter: function( expr, elems, not ) {\n\t\tif ( not ) {\n\t\t\texpr = \":not(\" + expr + \")\";\n\t\t}\n\n\t\treturn elems.length === 1 ?\n\t\t\tjQuery.find.matchesSelector(elems[0], expr) ? [ elems[0] ] : [] :\n\t\t\tjQuery.find.matches(expr, elems);\n\t},\n\n\tdir: function( elem, dir, until ) {\n\t\tvar matched = [],\n\t\t\tcur = elem[ dir ];\n\n\t\twhile ( cur && cur.nodeType !== 9 && (until === undefined || cur.nodeType !== 1 || !jQuery( cur ).is( until )) ) {\n\t\t\tif ( cur.nodeType === 1 ) {\n\t\t\t\tmatched.push( cur );\n\t\t\t}\n\t\t\tcur = cur[dir];\n\t\t}\n\t\treturn matched;\n\t},\n\n\tsibling: function( n, elem ) {\n\t\tvar r = [];\n\n\t\tfor ( ; n; n = n.nextSibling ) {\n\t\t\tif ( n.nodeType === 1 && n !== elem ) {\n\t\t\t\tr.push( n );\n\t\t\t}\n\t\t}\n\n\t\treturn r;\n\t}\n});\n\n// Implement the identical functionality for filter and not\nfunction winnow( elements, qualifier, keep ) {\n\n\t// Can't pass null or undefined to indexOf in Firefox 4\n\t// Set to 0 to skip string check\n\tqualifier = qualifier || 0;\n\n\tif ( jQuery.isFunction( qualifier ) ) {\n\t\treturn jQuery.grep(elements, function( elem, i ) {\n\t\t\tvar retVal = !!qualifier.call( elem, i, elem );\n\t\t\treturn retVal === keep;\n\t\t});\n\n\t} else if ( qualifier.nodeType ) {\n\t\treturn jQuery.grep(elements, function( elem, i ) {\n\t\t\treturn ( elem === qualifier ) === keep;\n\t\t});\n\n\t} else if ( typeof qualifier === \"string\" ) {\n\t\tvar filtered = jQuery.grep(elements, function( elem ) {\n\t\t\treturn elem.nodeType === 1;\n\t\t});\n\n\t\tif ( isSimple.test( qualifier ) ) {\n\t\t\treturn jQuery.filter(qualifier, filtered, !keep);\n\t\t} else {\n\t\t\tqualifier = jQuery.filter( qualifier, filtered );\n\t\t}\n\t}\n\n\treturn jQuery.grep(elements, function( elem, i ) {\n\t\treturn ( jQuery.inArray( elem, qualifier ) >= 0 ) === keep;\n\t});\n}\nfunction createSafeFragment( document ) {\n\tvar list = nodeNames.split( \"|\" ),\n\tsafeFrag = document.createDocumentFragment();\n\n\tif ( safeFrag.createElement ) {\n\t\twhile ( list.length ) {\n\t\t\tsafeFrag.createElement(\n\t\t\t\tlist.pop()\n\t\t\t);\n\t\t}\n\t}\n\treturn safeFrag;\n}\n\nvar nodeNames = \"abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|\" +\n\t\t\"header|hgroup|mark|meter|nav|output|progress|section|summary|time|video\",\n\trinlinejQuery = / jQuery\\d+=\"(?:null|\\d+)\"/g,\n\trleadingWhitespace = /^\\s+/,\n\trxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\\w:]+)[^>]*)\\/>/gi,\n\trtagName = /<([\\w:]+)/,\n\trtbody = /<tbody/i,\n\trhtml = /<|&#?\\w+;/,\n\trnoInnerhtml = /<(?:script|style|link)/i,\n\trnocache = /<(?:script|object|embed|option|style)/i,\n\trnoshimcache = new RegExp(\"<(?:\" + nodeNames + \")[\\\\s/>]\", \"i\"),\n\trcheckableType = /^(?:checkbox|radio)$/,\n\t// checked=\"checked\" or checked\n\trchecked = /checked\\s*(?:[^=]|=\\s*.checked.)/i,\n\trscriptType = /\\/(java|ecma)script/i,\n\trcleanScript = /^\\s*<!(?:\\[CDATA\\[|\\-\\-)|[\\]\\-]{2}>\\s*$/g,\n\twrapMap = {\n\t\toption: [ 1, \"<select multiple='multiple'>\", \"</select>\" ],\n\t\tlegend: [ 1, \"<fieldset>\", \"</fieldset>\" ],\n\t\tthead: [ 1, \"<table>\", \"</table>\" ],\n\t\ttr: [ 2, \"<table><tbody>\", \"</tbody></table>\" ],\n\t\ttd: [ 3, \"<table><tbody><tr>\", \"</tr></tbody></table>\" ],\n\t\tcol: [ 2, \"<table><tbody></tbody><colgroup>\", \"</colgroup></table>\" ],\n\t\tarea: [ 1, \"<map>\", \"</map>\" ],\n\t\t_default: [ 0, \"\", \"\" ]\n\t},\n\tsafeFragment = createSafeFragment( document ),\n\tfragmentDiv = safeFragment.appendChild( document.createElement(\"div\") );\n\nwrapMap.optgroup = wrapMap.option;\nwrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;\nwrapMap.th = wrapMap.td;\n\n// IE6-8 can't serialize link, script, style, or any html5 (NoScope) tags,\n// unless wrapped in a div with non-breaking characters in front of it.\nif ( !jQuery.support.htmlSerialize ) {\n\twrapMap._default = [ 1, \"X<div>\", \"</div>\" ];\n}\n\njQuery.fn.extend({\n\ttext: function( value ) {\n\t\treturn jQuery.access( this, function( value ) {\n\t\t\treturn value === undefined ?\n\t\t\t\tjQuery.text( this ) :\n\t\t\t\tthis.empty().append( ( this[0] && this[0].ownerDocument || document ).createTextNode( value ) );\n\t\t}, null, value, arguments.length );\n\t},\n\n\twrapAll: function( html ) {\n\t\tif ( jQuery.isFunction( html ) ) {\n\t\t\treturn this.each(function(i) {\n\t\t\t\tjQuery(this).wrapAll( html.call(this, i) );\n\t\t\t});\n\t\t}\n\n\t\tif ( this[0] ) {\n\t\t\t// The elements to wrap the target around\n\t\t\tvar wrap = jQuery( html, this[0].ownerDocument ).eq(0).clone(true);\n\n\t\t\tif ( this[0].parentNode ) {\n\t\t\t\twrap.insertBefore( this[0] );\n\t\t\t}\n\n\t\t\twrap.map(function() {\n\t\t\t\tvar elem = this;\n\n\t\t\t\twhile ( elem.firstChild && elem.firstChild.nodeType === 1 ) {\n\t\t\t\t\telem = elem.firstChild;\n\t\t\t\t}\n\n\t\t\t\treturn elem;\n\t\t\t}).append( this );\n\t\t}\n\n\t\treturn this;\n\t},\n\n\twrapInner: function( html ) {\n\t\tif ( jQuery.isFunction( html ) ) {\n\t\t\treturn this.each(function(i) {\n\t\t\t\tjQuery(this).wrapInner( html.call(this, i) );\n\t\t\t});\n\t\t}\n\n\t\treturn this.each(function() {\n\t\t\tvar self = jQuery( this ),\n\t\t\t\tcontents = self.contents();\n\n\t\t\tif ( contents.length ) {\n\t\t\t\tcontents.wrapAll( html );\n\n\t\t\t} else {\n\t\t\t\tself.append( html );\n\t\t\t}\n\t\t});\n\t},\n\n\twrap: function( html ) {\n\t\tvar isFunction = jQuery.isFunction( html );\n\n\t\treturn this.each(function(i) {\n\t\t\tjQuery( this ).wrapAll( isFunction ? html.call(this, i) : html );\n\t\t});\n\t},\n\n\tunwrap: function() {\n\t\treturn this.parent().each(function() {\n\t\t\tif ( !jQuery.nodeName( this, \"body\" ) ) {\n\t\t\t\tjQuery( this ).replaceWith( this.childNodes );\n\t\t\t}\n\t\t}).end();\n\t},\n\n\tappend: function() {\n\t\treturn this.domManip(arguments, true, function( elem ) {\n\t\t\tif ( this.nodeType === 1 || this.nodeType === 11 ) {\n\t\t\t\tthis.appendChild( elem );\n\t\t\t}\n\t\t});\n\t},\n\n\tprepend: function() {\n\t\treturn this.domManip(arguments, true, function( elem ) {\n\t\t\tif ( this.nodeType === 1 || this.nodeType === 11 ) {\n\t\t\t\tthis.insertBefore( elem, this.firstChild );\n\t\t\t}\n\t\t});\n\t},\n\n\tbefore: function() {\n\t\tif ( !isDisconnected( this[0] ) ) {\n\t\t\treturn this.domManip(arguments, false, function( elem ) {\n\t\t\t\tthis.parentNode.insertBefore( elem, this );\n\t\t\t});\n\t\t}\n\n\t\tif ( arguments.length ) {\n\t\t\tvar set = jQuery.clean( arguments );\n\t\t\treturn this.pushStack( jQuery.merge( set, this ), \"before\", this.selector );\n\t\t}\n\t},\n\n\tafter: function() {\n\t\tif ( !isDisconnected( this[0] ) ) {\n\t\t\treturn this.domManip(arguments, false, function( elem ) {\n\t\t\t\tthis.parentNode.insertBefore( elem, this.nextSibling );\n\t\t\t});\n\t\t}\n\n\t\tif ( arguments.length ) {\n\t\t\tvar set = jQuery.clean( arguments );\n\t\t\treturn this.pushStack( jQuery.merge( this, set ), \"after\", this.selector );\n\t\t}\n\t},\n\n\t// keepData is for internal use only--do not document\n\tremove: function( selector, keepData ) {\n\t\tvar elem,\n\t\t\ti = 0;\n\n\t\tfor ( ; (elem = this[i]) != null; i++ ) {\n\t\t\tif ( !selector || jQuery.filter( selector, [ elem ] ).length ) {\n\t\t\t\tif ( !keepData && elem.nodeType === 1 ) {\n\t\t\t\t\tjQuery.cleanData( elem.getElementsByTagName(\"*\") );\n\t\t\t\t\tjQuery.cleanData( [ elem ] );\n\t\t\t\t}\n\n\t\t\t\tif ( elem.parentNode ) {\n\t\t\t\t\telem.parentNode.removeChild( elem );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn this;\n\t},\n\n\tempty: function() {\n\t\tvar elem,\n\t\t\ti = 0;\n\n\t\tfor ( ; (elem = this[i]) != null; i++ ) {\n\t\t\t// Remove element nodes and prevent memory leaks\n\t\t\tif ( elem.nodeType === 1 ) {\n\t\t\t\tjQuery.cleanData( elem.getElementsByTagName(\"*\") );\n\t\t\t}\n\n\t\t\t// Remove any remaining nodes\n\t\t\twhile ( elem.firstChild ) {\n\t\t\t\telem.removeChild( elem.firstChild );\n\t\t\t}\n\t\t}\n\n\t\treturn this;\n\t},\n\n\tclone: function( dataAndEvents, deepDataAndEvents ) {\n\t\tdataAndEvents = dataAndEvents == null ? false : dataAndEvents;\n\t\tdeepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents;\n\n\t\treturn this.map( function () {\n\t\t\treturn jQuery.clone( this, dataAndEvents, deepDataAndEvents );\n\t\t});\n\t},\n\n\thtml: function( value ) {\n\t\treturn jQuery.access( this, function( value ) {\n\t\t\tvar elem = this[0] || {},\n\t\t\t\ti = 0,\n\t\t\t\tl = this.length;\n\n\t\t\tif ( value === undefined ) {\n\t\t\t\treturn elem.nodeType === 1 ?\n\t\t\t\t\telem.innerHTML.replace( rinlinejQuery, \"\" ) :\n\t\t\t\t\tundefined;\n\t\t\t}\n\n\t\t\t// See if we can take a shortcut and just use innerHTML\n\t\t\tif ( typeof value === \"string\" && !rnoInnerhtml.test( value ) &&\n\t\t\t\t( jQuery.support.htmlSerialize || !rnoshimcache.test( value )  ) &&\n\t\t\t\t( jQuery.support.leadingWhitespace || !rleadingWhitespace.test( value ) ) &&\n\t\t\t\t!wrapMap[ ( rtagName.exec( value ) || [\"\", \"\"] )[1].toLowerCase() ] ) {\n\n\t\t\t\tvalue = value.replace( rxhtmlTag, \"<$1></$2>\" );\n\n\t\t\t\ttry {\n\t\t\t\t\tfor (; i < l; i++ ) {\n\t\t\t\t\t\t// Remove element nodes and prevent memory leaks\n\t\t\t\t\t\telem = this[i] || {};\n\t\t\t\t\t\tif ( elem.nodeType === 1 ) {\n\t\t\t\t\t\t\tjQuery.cleanData( elem.getElementsByTagName( \"*\" ) );\n\t\t\t\t\t\t\telem.innerHTML = value;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\telem = 0;\n\n\t\t\t\t// If using innerHTML throws an exception, use the fallback method\n\t\t\t\t} catch(e) {}\n\t\t\t}\n\n\t\t\tif ( elem ) {\n\t\t\t\tthis.empty().append( value );\n\t\t\t}\n\t\t}, null, value, arguments.length );\n\t},\n\n\treplaceWith: function( value ) {\n\t\tif ( !isDisconnected( this[0] ) ) {\n\t\t\t// Make sure that the elements are removed from the DOM before they are inserted\n\t\t\t// this can help fix replacing a parent with child elements\n\t\t\tif ( jQuery.isFunction( value ) ) {\n\t\t\t\treturn this.each(function(i) {\n\t\t\t\t\tvar self = jQuery(this), old = self.html();\n\t\t\t\t\tself.replaceWith( value.call( this, i, old ) );\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tif ( typeof value !== \"string\" ) {\n\t\t\t\tvalue = jQuery( value ).detach();\n\t\t\t}\n\n\t\t\treturn this.each(function() {\n\t\t\t\tvar next = this.nextSibling,\n\t\t\t\t\tparent = this.parentNode;\n\n\t\t\t\tjQuery( this ).remove();\n\n\t\t\t\tif ( next ) {\n\t\t\t\t\tjQuery(next).before( value );\n\t\t\t\t} else {\n\t\t\t\t\tjQuery(parent).append( value );\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\n\t\treturn this.length ?\n\t\t\tthis.pushStack( jQuery(jQuery.isFunction(value) ? value() : value), \"replaceWith\", value ) :\n\t\t\tthis;\n\t},\n\n\tdetach: function( selector ) {\n\t\treturn this.remove( selector, true );\n\t},\n\n\tdomManip: function( args, table, callback ) {\n\n\t\t// Flatten any nested arrays\n\t\targs = [].concat.apply( [], args );\n\n\t\tvar results, first, fragment, iNoClone,\n\t\t\ti = 0,\n\t\t\tvalue = args[0],\n\t\t\tscripts = [],\n\t\t\tl = this.length;\n\n\t\t// We can't cloneNode fragments that contain checked, in WebKit\n\t\tif ( !jQuery.support.checkClone && l > 1 && typeof value === \"string\" && rchecked.test( value ) ) {\n\t\t\treturn this.each(function() {\n\t\t\t\tjQuery(this).domManip( args, table, callback );\n\t\t\t});\n\t\t}\n\n\t\tif ( jQuery.isFunction(value) ) {\n\t\t\treturn this.each(function(i) {\n\t\t\t\tvar self = jQuery(this);\n\t\t\t\targs[0] = value.call( this, i, table ? self.html() : undefined );\n\t\t\t\tself.domManip( args, table, callback );\n\t\t\t});\n\t\t}\n\n\t\tif ( this[0] ) {\n\t\t\tresults = jQuery.buildFragment( args, this, scripts );\n\t\t\tfragment = results.fragment;\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\tif ( first ) {\n\t\t\t\ttable = table && jQuery.nodeName( first, \"tr\" );\n\n\t\t\t\t// Use the original fragment for the last item 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\t// Fragments from the fragment cache must always be cloned and never used in place.\n\t\t\t\tfor ( iNoClone = results.cacheable || l - 1; i < l; i++ ) {\n\t\t\t\t\tcallback.call(\n\t\t\t\t\t\ttable && jQuery.nodeName( this[i], \"table\" ) ?\n\t\t\t\t\t\t\tfindOrAppend( this[i], \"tbody\" ) :\n\t\t\t\t\t\t\tthis[i],\n\t\t\t\t\t\ti === iNoClone ?\n\t\t\t\t\t\t\tfragment :\n\t\t\t\t\t\t\tjQuery.clone( fragment, true, true )\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Fix #11809: Avoid leaking memory\n\t\t\tfragment = first = null;\n\n\t\t\tif ( scripts.length ) {\n\t\t\t\tjQuery.each( scripts, function( i, elem ) {\n\t\t\t\t\tif ( elem.src ) {\n\t\t\t\t\t\tif ( jQuery.ajax ) {\n\t\t\t\t\t\t\tjQuery.ajax({\n\t\t\t\t\t\t\t\turl: elem.src,\n\t\t\t\t\t\t\t\ttype: \"GET\",\n\t\t\t\t\t\t\t\tdataType: \"script\",\n\t\t\t\t\t\t\t\tasync: false,\n\t\t\t\t\t\t\t\tglobal: false,\n\t\t\t\t\t\t\t\t\"throws\": true\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tjQuery.error(\"no ajax\");\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tjQuery.globalEval( ( elem.text || elem.textContent || elem.innerHTML || \"\" ).replace( rcleanScript, \"\" ) );\n\t\t\t\t\t}\n\n\t\t\t\t\tif ( elem.parentNode ) {\n\t\t\t\t\t\telem.parentNode.removeChild( elem );\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\n\t\treturn this;\n\t}\n});\n\nfunction findOrAppend( elem, tag ) {\n\treturn elem.getElementsByTagName( tag )[0] || elem.appendChild( elem.ownerDocument.createElement( tag ) );\n}\n\nfunction cloneCopyEvent( src, dest ) {\n\n\tif ( dest.nodeType !== 1 || !jQuery.hasData( src ) ) {\n\t\treturn;\n\t}\n\n\tvar type, i, l,\n\t\toldData = jQuery._data( src ),\n\t\tcurData = jQuery._data( dest, oldData ),\n\t\tevents = oldData.events;\n\n\tif ( events ) {\n\t\tdelete curData.handle;\n\t\tcurData.events = {};\n\n\t\tfor ( type in events ) {\n\t\t\tfor ( i = 0, l = events[ type ].length; i < l; i++ ) {\n\t\t\t\tjQuery.event.add( dest, type, events[ type ][ i ] );\n\t\t\t}\n\t\t}\n\t}\n\n\t// make the cloned public data object a copy from the original\n\tif ( curData.data ) {\n\t\tcurData.data = jQuery.extend( {}, curData.data );\n\t}\n}\n\nfunction cloneFixAttributes( src, dest ) {\n\tvar nodeName;\n\n\t// We do not need to do anything for non-Elements\n\tif ( dest.nodeType !== 1 ) {\n\t\treturn;\n\t}\n\n\t// clearAttributes removes the attributes, which we don't want,\n\t// but also removes the attachEvent events, which we *do* want\n\tif ( dest.clearAttributes ) {\n\t\tdest.clearAttributes();\n\t}\n\n\t// mergeAttributes, in contrast, only merges back on the\n\t// original attributes, not the events\n\tif ( dest.mergeAttributes ) {\n\t\tdest.mergeAttributes( src );\n\t}\n\n\tnodeName = dest.nodeName.toLowerCase();\n\n\tif ( nodeName === \"object\" ) {\n\t\t// IE6-10 improperly clones children of object elements using classid.\n\t\t// IE10 throws NoModificationAllowedError if parent is null, #12132.\n\t\tif ( dest.parentNode ) {\n\t\t\tdest.outerHTML = src.outerHTML;\n\t\t}\n\n\t\t// This path appears unavoidable for IE9. When cloning an object\n\t\t// element in IE9, the outerHTML strategy above is not sufficient.\n\t\t// If the src has innerHTML and the destination does not,\n\t\t// copy the src.innerHTML into the dest.innerHTML. #10324\n\t\tif ( jQuery.support.html5Clone && (src.innerHTML && !jQuery.trim(dest.innerHTML)) ) {\n\t\t\tdest.innerHTML = src.innerHTML;\n\t\t}\n\n\t} else if ( nodeName === \"input\" && rcheckableType.test( src.type ) ) {\n\t\t// IE6-8 fails to persist the checked state of a cloned checkbox\n\t\t// or radio button. Worse, IE6-7 fail to give the cloned element\n\t\t// a checked appearance if the defaultChecked value isn't also set\n\n\t\tdest.defaultChecked = dest.checked = src.checked;\n\n\t\t// IE6-7 get confused and end up setting the value of a cloned\n\t\t// checkbox/radio button to an empty string instead of \"on\"\n\t\tif ( dest.value !== src.value ) {\n\t\t\tdest.value = src.value;\n\t\t}\n\n\t// IE6-8 fails to return the selected option to the default selected\n\t// state when cloning options\n\t} else if ( nodeName === \"option\" ) {\n\t\tdest.selected = src.defaultSelected;\n\n\t// IE6-8 fails to set the defaultValue to the correct value when\n\t// cloning other types of input fields\n\t} else if ( nodeName === \"input\" || nodeName === \"textarea\" ) {\n\t\tdest.defaultValue = src.defaultValue;\n\n\t// IE blanks contents when cloning scripts\n\t} else if ( nodeName === \"script\" && dest.text !== src.text ) {\n\t\tdest.text = src.text;\n\t}\n\n\t// Event data gets referenced instead of copied if the expando\n\t// gets copied too\n\tdest.removeAttribute( jQuery.expando );\n}\n\njQuery.buildFragment = function( args, context, scripts ) {\n\tvar fragment, cacheable, cachehit,\n\t\tfirst = args[ 0 ];\n\n\t// Set context from what may come in as undefined or a jQuery collection or a node\n\t// Updated to fix #12266 where accessing context[0] could throw an exception in IE9/10 &\n\t// also doubles as fix for #8950 where plain objects caused createDocumentFragment exception\n\tcontext = context || document;\n\tcontext = !context.nodeType && context[0] || context;\n\tcontext = context.ownerDocument || context;\n\n\t// Only cache \"small\" (1/2 KB) HTML strings that are associated with the main document\n\t// Cloning options loses the selected state, so don't cache them\n\t// IE 6 doesn't like it when you put <object> or <embed> elements in a fragment\n\t// Also, WebKit does not clone 'checked' attributes on cloneNode, so don't cache\n\t// Lastly, IE6,7,8 will not correctly reuse cached fragments that were created from unknown elems #10501\n\tif ( args.length === 1 && typeof first === \"string\" && first.length < 512 && context === document &&\n\t\tfirst.charAt(0) === \"<\" && !rnocache.test( first ) &&\n\t\t(jQuery.support.checkClone || !rchecked.test( first )) &&\n\t\t(jQuery.support.html5Clone || !rnoshimcache.test( first )) ) {\n\n\t\t// Mark cacheable and look for a hit\n\t\tcacheable = true;\n\t\tfragment = jQuery.fragments[ first ];\n\t\tcachehit = fragment !== undefined;\n\t}\n\n\tif ( !fragment ) {\n\t\tfragment = context.createDocumentFragment();\n\t\tjQuery.clean( args, context, fragment, scripts );\n\n\t\t// Update the cache, but only store false\n\t\t// unless this is a second parsing of the same content\n\t\tif ( cacheable ) {\n\t\t\tjQuery.fragments[ first ] = cachehit && fragment;\n\t\t}\n\t}\n\n\treturn { fragment: fragment, cacheable: cacheable };\n};\n\njQuery.fragments = {};\n\njQuery.each({\n\tappendTo: \"append\",\n\tprependTo: \"prepend\",\n\tinsertBefore: \"before\",\n\tinsertAfter: \"after\",\n\treplaceAll: \"replaceWith\"\n}, function( name, original ) {\n\tjQuery.fn[ name ] = function( selector ) {\n\t\tvar elems,\n\t\t\ti = 0,\n\t\t\tret = [],\n\t\t\tinsert = jQuery( selector ),\n\t\t\tl = insert.length,\n\t\t\tparent = this.length === 1 && this[0].parentNode;\n\n\t\tif ( (parent == null || parent && parent.nodeType === 11 && parent.childNodes.length === 1) && l === 1 ) {\n\t\t\tinsert[ original ]( this[0] );\n\t\t\treturn this;\n\t\t} else {\n\t\t\tfor ( ; i < l; i++ ) {\n\t\t\t\telems = ( i > 0 ? this.clone(true) : this ).get();\n\t\t\t\tjQuery( insert[i] )[ original ]( elems );\n\t\t\t\tret = ret.concat( elems );\n\t\t\t}\n\n\t\t\treturn this.pushStack( ret, name, insert.selector );\n\t\t}\n\t};\n});\n\nfunction getAll( elem ) {\n\tif ( typeof elem.getElementsByTagName !== \"undefined\" ) {\n\t\treturn elem.getElementsByTagName( \"*\" );\n\n\t} else if ( typeof elem.querySelectorAll !== \"undefined\" ) {\n\t\treturn elem.querySelectorAll( \"*\" );\n\n\t} else {\n\t\treturn [];\n\t}\n}\n\n// Used in clean, fixes the defaultChecked property\nfunction fixDefaultChecked( elem ) {\n\tif ( rcheckableType.test( elem.type ) ) {\n\t\telem.defaultChecked = elem.checked;\n\t}\n}\n\njQuery.extend({\n\tclone: function( elem, dataAndEvents, deepDataAndEvents ) {\n\t\tvar srcElements,\n\t\t\tdestElements,\n\t\t\ti,\n\t\t\tclone;\n\n\t\tif ( jQuery.support.html5Clone || jQuery.isXMLDoc(elem) || !rnoshimcache.test( \"<\" + elem.nodeName + \">\" ) ) {\n\t\t\tclone = elem.cloneNode( true );\n\n\t\t// IE<=8 does not properly clone detached, unknown element nodes\n\t\t} else {\n\t\t\tfragmentDiv.innerHTML = elem.outerHTML;\n\t\t\tfragmentDiv.removeChild( clone = fragmentDiv.firstChild );\n\t\t}\n\n\t\tif ( (!jQuery.support.noCloneEvent || !jQuery.support.noCloneChecked) &&\n\t\t\t\t(elem.nodeType === 1 || elem.nodeType === 11) && !jQuery.isXMLDoc(elem) ) {\n\t\t\t// IE copies events bound via attachEvent when using cloneNode.\n\t\t\t// Calling detachEvent on the clone will also remove the events\n\t\t\t// from the original. In order to get around this, we use some\n\t\t\t// proprietary methods to clear the events. Thanks to MooTools\n\t\t\t// guys for this hotness.\n\n\t\t\tcloneFixAttributes( elem, clone );\n\n\t\t\t// Using Sizzle here is crazy slow, so we use getElementsByTagName instead\n\t\t\tsrcElements = getAll( elem );\n\t\t\tdestElements = getAll( clone );\n\n\t\t\t// Weird iteration because IE will replace the length property\n\t\t\t// with an element if you are cloning the body and one of the\n\t\t\t// elements on the page has a name or id of \"length\"\n\t\t\tfor ( i = 0; srcElements[i]; ++i ) {\n\t\t\t\t// Ensure that the destination node is not null; Fixes #9587\n\t\t\t\tif ( destElements[i] ) {\n\t\t\t\t\tcloneFixAttributes( srcElements[i], destElements[i] );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Copy the events from the original to the clone\n\t\tif ( dataAndEvents ) {\n\t\t\tcloneCopyEvent( elem, clone );\n\n\t\t\tif ( deepDataAndEvents ) {\n\t\t\t\tsrcElements = getAll( elem );\n\t\t\t\tdestElements = getAll( clone );\n\n\t\t\t\tfor ( i = 0; srcElements[i]; ++i ) {\n\t\t\t\t\tcloneCopyEvent( srcElements[i], destElements[i] );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tsrcElements = destElements = null;\n\n\t\t// Return the cloned set\n\t\treturn clone;\n\t},\n\n\tclean: function( elems, context, fragment, scripts ) {\n\t\tvar i, j, elem, tag, wrap, depth, div, hasBody, tbody, len, handleScript, jsTags,\n\t\t\tsafe = context === document && safeFragment,\n\t\t\tret = [];\n\n\t\t// Ensure that context is a document\n\t\tif ( !context || typeof context.createDocumentFragment === \"undefined\" ) {\n\t\t\tcontext = document;\n\t\t}\n\n\t\t// Use the already-created safe fragment if context permits\n\t\tfor ( i = 0; (elem = elems[i]) != null; i++ ) {\n\t\t\tif ( typeof elem === \"number\" ) {\n\t\t\t\telem += \"\";\n\t\t\t}\n\n\t\t\tif ( !elem ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// Convert html string into DOM nodes\n\t\t\tif ( typeof elem === \"string\" ) {\n\t\t\t\tif ( !rhtml.test( elem ) ) {\n\t\t\t\t\telem = context.createTextNode( elem );\n\t\t\t\t} else {\n\t\t\t\t\t// Ensure a safe container in which to render the html\n\t\t\t\t\tsafe = safe || createSafeFragment( context );\n\t\t\t\t\tdiv = context.createElement(\"div\");\n\t\t\t\t\tsafe.appendChild( div );\n\n\t\t\t\t\t// Fix \"XHTML\"-style tags in all browsers\n\t\t\t\t\telem = elem.replace(rxhtmlTag, \"<$1></$2>\");\n\n\t\t\t\t\t// Go to html and back, then peel off extra wrappers\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\tdepth = wrap[0];\n\t\t\t\t\tdiv.innerHTML = wrap[1] + elem + wrap[2];\n\n\t\t\t\t\t// Move to the right depth\n\t\t\t\t\twhile ( depth-- ) {\n\t\t\t\t\t\tdiv = div.lastChild;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Remove IE's autoinserted <tbody> from table fragments\n\t\t\t\t\tif ( !jQuery.support.tbody ) {\n\n\t\t\t\t\t\t// String was a <table>, *may* have spurious <tbody>\n\t\t\t\t\t\thasBody = rtbody.test(elem);\n\t\t\t\t\t\t\ttbody = tag === \"table\" && !hasBody ?\n\t\t\t\t\t\t\t\tdiv.firstChild && div.firstChild.childNodes :\n\n\t\t\t\t\t\t\t\t// String was a bare <thead> or <tfoot>\n\t\t\t\t\t\t\t\twrap[1] === \"<table>\" && !hasBody ?\n\t\t\t\t\t\t\t\t\tdiv.childNodes :\n\t\t\t\t\t\t\t\t\t[];\n\n\t\t\t\t\t\tfor ( j = tbody.length - 1; j >= 0 ; --j ) {\n\t\t\t\t\t\t\tif ( jQuery.nodeName( tbody[ j ], \"tbody\" ) && !tbody[ j ].childNodes.length ) {\n\t\t\t\t\t\t\t\ttbody[ j ].parentNode.removeChild( tbody[ j ] );\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// IE completely kills leading whitespace when innerHTML is used\n\t\t\t\t\tif ( !jQuery.support.leadingWhitespace && rleadingWhitespace.test( elem ) ) {\n\t\t\t\t\t\tdiv.insertBefore( context.createTextNode( rleadingWhitespace.exec(elem)[0] ), div.firstChild );\n\t\t\t\t\t}\n\n\t\t\t\t\telem = div.childNodes;\n\n\t\t\t\t\t// Take out of fragment container (we need a fresh div each time)\n\t\t\t\t\tdiv.parentNode.removeChild( div );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( elem.nodeType ) {\n\t\t\t\tret.push( elem );\n\t\t\t} else {\n\t\t\t\tjQuery.merge( ret, elem );\n\t\t\t}\n\t\t}\n\n\t\t// Fix #11356: Clear elements from safeFragment\n\t\tif ( div ) {\n\t\t\telem = div = safe = null;\n\t\t}\n\n\t\t// Reset defaultChecked for any radios and checkboxes\n\t\t// about to be appended to the DOM in IE 6/7 (#8060)\n\t\tif ( !jQuery.support.appendChecked ) {\n\t\t\tfor ( i = 0; (elem = ret[i]) != null; i++ ) {\n\t\t\t\tif ( jQuery.nodeName( elem, \"input\" ) ) {\n\t\t\t\t\tfixDefaultChecked( elem );\n\t\t\t\t} else if ( typeof elem.getElementsByTagName !== \"undefined\" ) {\n\t\t\t\t\tjQuery.grep( elem.getElementsByTagName(\"input\"), fixDefaultChecked );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Append elements to a provided document fragment\n\t\tif ( fragment ) {\n\t\t\t// Special handling of each script element\n\t\t\thandleScript = function( elem ) {\n\t\t\t\t// Check if we consider it executable\n\t\t\t\tif ( !elem.type || rscriptType.test( elem.type ) ) {\n\t\t\t\t\t// Detach the script and store it in the scripts array (if provided) or the fragment\n\t\t\t\t\t// Return truthy to indicate that it has been handled\n\t\t\t\t\treturn scripts ?\n\t\t\t\t\t\tscripts.push( elem.parentNode ? elem.parentNode.removeChild( elem ) : elem ) :\n\t\t\t\t\t\tfragment.appendChild( elem );\n\t\t\t\t}\n\t\t\t};\n\n\t\t\tfor ( i = 0; (elem = ret[i]) != null; i++ ) {\n\t\t\t\t// Check if we're done after handling an executable script\n\t\t\t\tif ( !( jQuery.nodeName( elem, \"script\" ) && handleScript( elem ) ) ) {\n\t\t\t\t\t// Append to fragment and handle embedded scripts\n\t\t\t\t\tfragment.appendChild( elem );\n\t\t\t\t\tif ( typeof elem.getElementsByTagName !== \"undefined\" ) {\n\t\t\t\t\t\t// handleScript alters the DOM, so use jQuery.merge to ensure snapshot iteration\n\t\t\t\t\t\tjsTags = jQuery.grep( jQuery.merge( [], elem.getElementsByTagName(\"script\") ), handleScript );\n\n\t\t\t\t\t\t// Splice the scripts into ret after their former ancestor and advance our index beyond them\n\t\t\t\t\t\tret.splice.apply( ret, [i + 1, 0].concat( jsTags ) );\n\t\t\t\t\t\ti += jsTags.length;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn ret;\n\t},\n\n\tcleanData: function( elems, /* internal */ acceptData ) {\n\t\tvar data, id, elem, type,\n\t\t\ti = 0,\n\t\t\tinternalKey = jQuery.expando,\n\t\t\tcache = jQuery.cache,\n\t\t\tdeleteExpando = jQuery.support.deleteExpando,\n\t\t\tspecial = jQuery.event.special;\n\n\t\tfor ( ; (elem = elems[i]) != null; i++ ) {\n\n\t\t\tif ( acceptData || jQuery.acceptData( elem ) ) {\n\n\t\t\t\tid = elem[ internalKey ];\n\t\t\t\tdata = id && cache[ id ];\n\n\t\t\t\tif ( data ) {\n\t\t\t\t\tif ( data.events ) {\n\t\t\t\t\t\tfor ( type in data.events ) {\n\t\t\t\t\t\t\tif ( special[ type ] ) {\n\t\t\t\t\t\t\t\tjQuery.event.remove( elem, type );\n\n\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} else {\n\t\t\t\t\t\t\t\tjQuery.removeEvent( elem, type, data.handle );\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// Remove cache only if it was not already removed by jQuery.event.remove\n\t\t\t\t\tif ( cache[ id ] ) {\n\n\t\t\t\t\t\tdelete cache[ id ];\n\n\t\t\t\t\t\t// IE does not allow us to delete expando properties from nodes,\n\t\t\t\t\t\t// nor does it have a removeAttribute function on Document nodes;\n\t\t\t\t\t\t// we must handle all of these cases\n\t\t\t\t\t\tif ( deleteExpando ) {\n\t\t\t\t\t\t\tdelete elem[ internalKey ];\n\n\t\t\t\t\t\t} else if ( elem.removeAttribute ) {\n\t\t\t\t\t\t\telem.removeAttribute( internalKey );\n\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\telem[ internalKey ] = null;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tjQuery.deletedIds.push( id );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n});\n// Limit scope pollution from any deprecated API\n(function() {\n\nvar matched, browser;\n\n// Use of jQuery.browser is frowned upon.\n// More details: http://api.jquery.com/jQuery.browser\n// jQuery.uaMatch maintained for back-compat\njQuery.uaMatch = function( ua ) {\n\tua = ua.toLowerCase();\n\n\tvar match = /(chrome)[ \\/]([\\w.]+)/.exec( ua ) ||\n\t\t/(webkit)[ \\/]([\\w.]+)/.exec( ua ) ||\n\t\t/(opera)(?:.*version|)[ \\/]([\\w.]+)/.exec( ua ) ||\n\t\t/(msie) ([\\w.]+)/.exec( ua ) ||\n\t\tua.indexOf(\"compatible\") < 0 && /(mozilla)(?:.*? rv:([\\w.]+)|)/.exec( ua ) ||\n\t\t[];\n\n\treturn {\n\t\tbrowser: match[ 1 ] || \"\",\n\t\tversion: match[ 2 ] || \"0\"\n\t};\n};\n\nmatched = jQuery.uaMatch( navigator.userAgent );\nbrowser = {};\n\nif ( matched.browser ) {\n\tbrowser[ matched.browser ] = true;\n\tbrowser.version = matched.version;\n}\n\n// Chrome is Webkit, but Webkit is also Safari.\nif ( browser.chrome ) {\n\tbrowser.webkit = true;\n} else if ( browser.webkit ) {\n\tbrowser.safari = true;\n}\n\njQuery.browser = browser;\n\njQuery.sub = function() {\n\tfunction jQuerySub( selector, context ) {\n\t\treturn new jQuerySub.fn.init( selector, context );\n\t}\n\tjQuery.extend( true, jQuerySub, this );\n\tjQuerySub.superclass = this;\n\tjQuerySub.fn = jQuerySub.prototype = this();\n\tjQuerySub.fn.constructor = jQuerySub;\n\tjQuerySub.sub = this.sub;\n\tjQuerySub.fn.init = function init( selector, context ) {\n\t\tif ( context && context instanceof jQuery && !(context instanceof jQuerySub) ) {\n\t\t\tcontext = jQuerySub( context );\n\t\t}\n\n\t\treturn jQuery.fn.init.call( this, selector, context, rootjQuerySub );\n\t};\n\tjQuerySub.fn.init.prototype = jQuerySub.fn;\n\tvar rootjQuerySub = jQuerySub(document);\n\treturn jQuerySub;\n};\n\n})();\nvar curCSS, iframe, iframeDoc,\n\tralpha = /alpha\\([^)]*\\)/i,\n\tropacity = /opacity=([^)]*)/,\n\trposition = /^(top|right|bottom|left)$/,\n\t// swappable if display is none or starts with table except \"table\", \"table-cell\", or \"table-caption\"\n\t// see here for display values: https://developer.mozilla.org/en-US/docs/CSS/display\n\trdisplayswap = /^(none|table(?!-c[ea]).+)/,\n\trmargin = /^margin/,\n\trnumsplit = new RegExp( \"^(\" + core_pnum + \")(.*)$\", \"i\" ),\n\trnumnonpx = new RegExp( \"^(\" + core_pnum + \")(?!px)[a-z%]+$\", \"i\" ),\n\trrelNum = new RegExp( \"^([-+])=(\" + core_pnum + \")\", \"i\" ),\n\telemdisplay = {},\n\n\tcssShow = { position: \"absolute\", visibility: \"hidden\", display: \"block\" },\n\tcssNormalTransform = {\n\t\tletterSpacing: 0,\n\t\tfontWeight: 400\n\t},\n\n\tcssExpand = [ \"Top\", \"Right\", \"Bottom\", \"Left\" ],\n\tcssPrefixes = [ \"Webkit\", \"O\", \"Moz\", \"ms\" ],\n\n\teventsToggle = jQuery.fn.toggle;\n\n// return a css property mapped to a potentially vendor prefixed property\nfunction vendorPropName( style, name ) {\n\n\t// shortcut for names that are not vendor prefixed\n\tif ( name in style ) {\n\t\treturn name;\n\t}\n\n\t// check for vendor prefixed names\n\tvar capName = name.charAt(0).toUpperCase() + name.slice(1),\n\t\torigName = name,\n\t\ti = cssPrefixes.length;\n\n\twhile ( i-- ) {\n\t\tname = cssPrefixes[ i ] + capName;\n\t\tif ( name in style ) {\n\t\t\treturn name;\n\t\t}\n\t}\n\n\treturn origName;\n}\n\nfunction isHidden( elem, el ) {\n\telem = el || elem;\n\treturn jQuery.css( elem, \"display\" ) === \"none\" || !jQuery.contains( elem.ownerDocument, elem );\n}\n\nfunction showHide( elements, show ) {\n\tvar elem, display,\n\t\tvalues = [],\n\t\tindex = 0,\n\t\tlength = elements.length;\n\n\tfor ( ; index < length; index++ ) {\n\t\telem = elements[ index ];\n\t\tif ( !elem.style ) {\n\t\t\tcontinue;\n\t\t}\n\t\tvalues[ index ] = jQuery._data( elem, \"olddisplay\" );\n\t\tif ( show ) {\n\t\t\t// Reset the inline display of this element to learn if it is\n\t\t\t// being hidden by cascaded rules or not\n\t\t\tif ( !values[ index ] && elem.style.display === \"none\" ) {\n\t\t\t\telem.style.display = \"\";\n\t\t\t}\n\n\t\t\t// Set elements which have been overridden with display: none\n\t\t\t// in a stylesheet to whatever the default browser style is\n\t\t\t// for such an element\n\t\t\tif ( elem.style.display === \"\" && isHidden( elem ) ) {\n\t\t\t\tvalues[ index ] = jQuery._data( elem, \"olddisplay\", css_defaultDisplay(elem.nodeName) );\n\t\t\t}\n\t\t} else {\n\t\t\tdisplay = curCSS( elem, \"display\" );\n\n\t\t\tif ( !values[ index ] && display !== \"none\" ) {\n\t\t\t\tjQuery._data( elem, \"olddisplay\", display );\n\t\t\t}\n\t\t}\n\t}\n\n\t// Set the display of most of the elements in a second loop\n\t// to avoid the constant reflow\n\tfor ( index = 0; index < length; index++ ) {\n\t\telem = elements[ index ];\n\t\tif ( !elem.style ) {\n\t\t\tcontinue;\n\t\t}\n\t\tif ( !show || elem.style.display === \"none\" || elem.style.display === \"\" ) {\n\t\t\telem.style.display = show ? values[ index ] || \"\" : \"none\";\n\t\t}\n\t}\n\n\treturn elements;\n}\n\njQuery.fn.extend({\n\tcss: function( name, value ) {\n\t\treturn jQuery.access( this, function( elem, name, value ) {\n\t\t\treturn value !== undefined ?\n\t\t\t\tjQuery.style( elem, name, value ) :\n\t\t\t\tjQuery.css( elem, name );\n\t\t}, name, value, arguments.length > 1 );\n\t},\n\tshow: function() {\n\t\treturn showHide( this, true );\n\t},\n\thide: function() {\n\t\treturn showHide( this );\n\t},\n\ttoggle: function( state, fn2 ) {\n\t\tvar bool = typeof state === \"boolean\";\n\n\t\tif ( jQuery.isFunction( state ) && jQuery.isFunction( fn2 ) ) {\n\t\t\treturn eventsToggle.apply( this, arguments );\n\t\t}\n\n\t\treturn this.each(function() {\n\t\t\tif ( bool ? state : isHidden( this ) ) {\n\t\t\t\tjQuery( this ).show();\n\t\t\t} else {\n\t\t\t\tjQuery( this ).hide();\n\t\t\t}\n\t\t});\n\t}\n});\n\njQuery.extend({\n\t// Add in style property hooks for overriding the default\n\t// behavior of getting and setting a style property\n\tcssHooks: {\n\t\topacity: {\n\t\t\tget: function( elem, computed ) {\n\t\t\t\tif ( computed ) {\n\t\t\t\t\t// We should always get a number back from opacity\n\t\t\t\t\tvar ret = curCSS( elem, \"opacity\" );\n\t\t\t\t\treturn ret === \"\" ? \"1\" : ret;\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t},\n\n\t// Exclude the following css properties to add px\n\tcssNumber: {\n\t\t\"fillOpacity\": true,\n\t\t\"fontWeight\": true,\n\t\t\"lineHeight\": true,\n\t\t\"opacity\": true,\n\t\t\"orphans\": true,\n\t\t\"widows\": true,\n\t\t\"zIndex\": true,\n\t\t\"zoom\": true\n\t},\n\n\t// Add in properties whose names you wish to fix before\n\t// setting or getting the value\n\tcssProps: {\n\t\t// normalize float css property\n\t\t\"float\": jQuery.support.cssFloat ? \"cssFloat\" : \"styleFloat\"\n\t},\n\n\t// Get and set the style property on a DOM Node\n\tstyle: function( elem, name, value, extra ) {\n\t\t// Don't set styles on text and comment nodes\n\t\tif ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Make sure that we're working with the right name\n\t\tvar ret, type, hooks,\n\t\t\torigName = jQuery.camelCase( name ),\n\t\t\tstyle = elem.style;\n\n\t\tname = jQuery.cssProps[ origName ] || ( jQuery.cssProps[ origName ] = vendorPropName( style, origName ) );\n\n\t\t// gets hook for the prefixed version\n\t\t// followed by the unprefixed version\n\t\thooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];\n\n\t\t// Check if we're setting a value\n\t\tif ( value !== undefined ) {\n\t\t\ttype = typeof value;\n\n\t\t\t// convert relative number strings (+= or -=) to relative numbers. #7345\n\t\t\tif ( type === \"string\" && (ret = rrelNum.exec( value )) ) {\n\t\t\t\tvalue = ( ret[1] + 1 ) * ret[2] + parseFloat( jQuery.css( elem, name ) );\n\t\t\t\t// Fixes bug #9237\n\t\t\t\ttype = \"number\";\n\t\t\t}\n\n\t\t\t// Make sure that NaN and null values aren't set. See: #7116\n\t\t\tif ( value == null || type === \"number\" && isNaN( value ) ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// If a number was passed in, add 'px' to the (except for certain CSS properties)\n\t\t\tif ( type === \"number\" && !jQuery.cssNumber[ origName ] ) {\n\t\t\t\tvalue += \"px\";\n\t\t\t}\n\n\t\t\t// If a hook was provided, use that value, otherwise just set the specified value\n\t\t\tif ( !hooks || !(\"set\" in hooks) || (value = hooks.set( elem, value, extra )) !== undefined ) {\n\t\t\t\t// Wrapped to prevent IE from throwing errors when 'invalid' values are provided\n\t\t\t\t// Fixes bug #5509\n\t\t\t\ttry {\n\t\t\t\t\tstyle[ name ] = value;\n\t\t\t\t} catch(e) {}\n\t\t\t}\n\n\t\t} else {\n\t\t\t// If a hook was provided get the non-computed value from there\n\t\t\tif ( hooks && \"get\" in hooks && (ret = hooks.get( elem, false, extra )) !== undefined ) {\n\t\t\t\treturn ret;\n\t\t\t}\n\n\t\t\t// Otherwise just get the value from the style object\n\t\t\treturn style[ name ];\n\t\t}\n\t},\n\n\tcss: function( elem, name, numeric, extra ) {\n\t\tvar val, num, hooks,\n\t\t\torigName = jQuery.camelCase( name );\n\n\t\t// Make sure that we're working with the right name\n\t\tname = jQuery.cssProps[ origName ] || ( jQuery.cssProps[ origName ] = vendorPropName( elem.style, origName ) );\n\n\t\t// gets hook for the prefixed version\n\t\t// followed by the unprefixed version\n\t\thooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];\n\n\t\t// If a hook was provided get the computed value from there\n\t\tif ( hooks && \"get\" in hooks ) {\n\t\t\tval = hooks.get( elem, true, extra );\n\t\t}\n\n\t\t// Otherwise, if a way to get the computed value exists, use that\n\t\tif ( val === undefined ) {\n\t\t\tval = curCSS( elem, name );\n\t\t}\n\n\t\t//convert \"normal\" to computed value\n\t\tif ( val === \"normal\" && name in cssNormalTransform ) {\n\t\t\tval = cssNormalTransform[ name ];\n\t\t}\n\n\t\t// Return, converting to number if forced or a qualifier was provided and val looks numeric\n\t\tif ( numeric || extra !== undefined ) {\n\t\t\tnum = parseFloat( val );\n\t\t\treturn numeric || jQuery.isNumeric( num ) ? num || 0 : val;\n\t\t}\n\t\treturn val;\n\t},\n\n\t// A method for quickly swapping in/out CSS properties to get correct calculations\n\tswap: function( elem, options, callback ) {\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.call( elem );\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// NOTE: To any future maintainer, we've window.getComputedStyle\n// because jsdom on node.js will break without it.\nif ( window.getComputedStyle ) {\n\tcurCSS = function( elem, name ) {\n\t\tvar ret, width, minWidth, maxWidth,\n\t\t\tcomputed = window.getComputedStyle( elem, null ),\n\t\t\tstyle = elem.style;\n\n\t\tif ( computed ) {\n\n\t\t\tret = computed[ name ];\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// Chrome < 17 and Safari 5.0 uses \"computed value\" instead of \"used value\" for margin-right\n\t\t\t// Safari 5.1.7 (at least) returns percentage for a larger set of values, but width seems to be reliably pixels\n\t\t\t// this is against the CSSOM draft spec: http://dev.w3.org/csswg/cssom/#resolved-values\n\t\t\tif ( rnumnonpx.test( ret ) && rmargin.test( name ) ) {\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\tstyle.minWidth = style.maxWidth = style.width = ret;\n\t\t\t\tret = computed.width;\n\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;\n\t};\n} else if ( document.documentElement.currentStyle ) {\n\tcurCSS = function( elem, name ) {\n\t\tvar left, rsLeft,\n\t\t\tret = elem.currentStyle && elem.currentStyle[ name ],\n\t\t\tstyle = elem.style;\n\n\t\t// Avoid setting ret to empty string here\n\t\t// so we don't default to auto\n\t\tif ( ret == null && style && style[ name ] ) {\n\t\t\tret = style[ name ];\n\t\t}\n\n\t\t// From the awesome hack by Dean Edwards\n\t\t// http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291\n\n\t\t// If we're not dealing with a regular pixel number\n\t\t// but a number that has a weird ending, we need to convert it to pixels\n\t\t// but not position css attributes, as those are proportional to the parent element instead\n\t\t// and we can't measure the parent instead because it might trigger a \"stacking dolls\" problem\n\t\tif ( rnumnonpx.test( ret ) && !rposition.test( name ) ) {\n\n\t\t\t// Remember the original values\n\t\t\tleft = style.left;\n\t\t\trsLeft = elem.runtimeStyle && elem.runtimeStyle.left;\n\n\t\t\t// Put in the new values to get a computed value out\n\t\t\tif ( rsLeft ) {\n\t\t\t\telem.runtimeStyle.left = elem.currentStyle.left;\n\t\t\t}\n\t\t\tstyle.left = name === \"fontSize\" ? \"1em\" : ret;\n\t\t\tret = style.pixelLeft + \"px\";\n\n\t\t\t// Revert the changed values\n\t\t\tstyle.left = left;\n\t\t\tif ( rsLeft ) {\n\t\t\t\telem.runtimeStyle.left = rsLeft;\n\t\t\t}\n\t\t}\n\n\t\treturn ret === \"\" ? \"auto\" : ret;\n\t};\n}\n\nfunction setPositiveNumber( elem, value, subtract ) {\n\tvar matches = rnumsplit.exec( value );\n\treturn matches ?\n\t\t\tMath.max( 0, matches[ 1 ] - ( subtract || 0 ) ) + ( matches[ 2 ] || \"px\" ) :\n\t\t\tvalue;\n}\n\nfunction augmentWidthOrHeight( elem, name, extra, isBorderBox ) {\n\tvar i = extra === ( isBorderBox ? \"border\" : \"content\" ) ?\n\t\t// If we already have the right measurement, avoid augmentation\n\t\t4 :\n\t\t// Otherwise initialize for horizontal or vertical properties\n\t\tname === \"width\" ? 1 : 0,\n\n\t\tval = 0;\n\n\tfor ( ; i < 4; i += 2 ) {\n\t\t// both box models exclude margin, so add it if we want it\n\t\tif ( extra === \"margin\" ) {\n\t\t\t// we use jQuery.css instead of curCSS here\n\t\t\t// because of the reliableMarginRight CSS hook!\n\t\t\tval += jQuery.css( elem, extra + cssExpand[ i ], true );\n\t\t}\n\n\t\t// From this point on we use curCSS for maximum performance (relevant in animations)\n\t\tif ( isBorderBox ) {\n\t\t\t// border-box includes padding, so remove it if we want content\n\t\t\tif ( extra === \"content\" ) {\n\t\t\t\tval -= parseFloat( curCSS( elem, \"padding\" + cssExpand[ i ] ) ) || 0;\n\t\t\t}\n\n\t\t\t// at this point, extra isn't border nor margin, so remove border\n\t\t\tif ( extra !== \"margin\" ) {\n\t\t\t\tval -= parseFloat( curCSS( elem, \"border\" + cssExpand[ i ] + \"Width\" ) ) || 0;\n\t\t\t}\n\t\t} else {\n\t\t\t// at this point, extra isn't content, so add padding\n\t\t\tval += parseFloat( curCSS( elem, \"padding\" + cssExpand[ i ] ) ) || 0;\n\n\t\t\t// at this point, extra isn't content nor padding, so add border\n\t\t\tif ( extra !== \"padding\" ) {\n\t\t\t\tval += parseFloat( curCSS( elem, \"border\" + cssExpand[ i ] + \"Width\" ) ) || 0;\n\t\t\t}\n\t\t}\n\t}\n\n\treturn val;\n}\n\nfunction getWidthOrHeight( elem, name, extra ) {\n\n\t// Start with offset property, which is equivalent to the border-box value\n\tvar val = name === \"width\" ? elem.offsetWidth : elem.offsetHeight,\n\t\tvalueIsBorderBox = true,\n\t\tisBorderBox = jQuery.support.boxSizing && jQuery.css( elem, \"boxSizing\" ) === \"border-box\";\n\n\t// some non-html elements return undefined for offsetWidth, so check for null/undefined\n\t// svg - https://bugzilla.mozilla.org/show_bug.cgi?id=649285\n\t// MathML - https://bugzilla.mozilla.org/show_bug.cgi?id=491668\n\tif ( val <= 0 || val == null ) {\n\t\t// Fall back to computed then uncomputed css if necessary\n\t\tval = curCSS( elem, name );\n\t\tif ( val < 0 || val == null ) {\n\t\t\tval = elem.style[ name ];\n\t\t}\n\n\t\t// Computed unit is not pixels. Stop here and return.\n\t\tif ( rnumnonpx.test(val) ) {\n\t\t\treturn val;\n\t\t}\n\n\t\t// we need the check for style in case a browser which returns unreliable values\n\t\t// for getComputedStyle silently falls back to the reliable elem.style\n\t\tvalueIsBorderBox = isBorderBox && ( jQuery.support.boxSizingReliable || val === elem.style[ name ] );\n\n\t\t// Normalize \"\", auto, and prepare for extra\n\t\tval = parseFloat( val ) || 0;\n\t}\n\n\t// use the active box-sizing model to add/subtract irrelevant styles\n\treturn ( val +\n\t\taugmentWidthOrHeight(\n\t\t\telem,\n\t\t\tname,\n\t\t\textra || ( isBorderBox ? \"border\" : \"content\" ),\n\t\t\tvalueIsBorderBox\n\t\t)\n\t) + \"px\";\n}\n\n\n// Try to determine the default display value of an element\nfunction css_defaultDisplay( nodeName ) {\n\tif ( elemdisplay[ nodeName ] ) {\n\t\treturn elemdisplay[ nodeName ];\n\t}\n\n\tvar elem = jQuery( \"<\" + nodeName + \">\" ).appendTo( document.body ),\n\t\tdisplay = elem.css(\"display\");\n\telem.remove();\n\n\t// If the simple way fails,\n\t// get element's real default display by attaching it to a temp iframe\n\tif ( display === \"none\" || display === \"\" ) {\n\t\t// Use the already-created iframe if possible\n\t\tiframe = document.body.appendChild(\n\t\t\tiframe || jQuery.extend( document.createElement(\"iframe\"), {\n\t\t\t\tframeBorder: 0,\n\t\t\t\twidth: 0,\n\t\t\t\theight: 0\n\t\t\t})\n\t\t);\n\n\t\t// Create a cacheable copy of the iframe document on first call.\n\t\t// IE and Opera will allow us to reuse the iframeDoc without re-writing the fake HTML\n\t\t// document to it; WebKit & Firefox won't allow reusing the iframe document.\n\t\tif ( !iframeDoc || !iframe.createElement ) {\n\t\t\tiframeDoc = ( iframe.contentWindow || iframe.contentDocument ).document;\n\t\t\tiframeDoc.write(\"<!doctype html><html><body>\");\n\t\t\tiframeDoc.close();\n\t\t}\n\n\t\telem = iframeDoc.body.appendChild( iframeDoc.createElement(nodeName) );\n\n\t\tdisplay = curCSS( elem, \"display\" );\n\t\tdocument.body.removeChild( iframe );\n\t}\n\n\t// Store the correct default display\n\telemdisplay[ nodeName ] = display;\n\n\treturn display;\n}\n\njQuery.each([ \"height\", \"width\" ], function( i, name ) {\n\tjQuery.cssHooks[ name ] = {\n\t\tget: function( elem, computed, extra ) {\n\t\t\tif ( computed ) {\n\t\t\t\t// certain elements can have dimension info if we invisibly show them\n\t\t\t\t// however, it must have a current display style that would benefit from this\n\t\t\t\tif ( elem.offsetWidth === 0 && rdisplayswap.test( curCSS( elem, \"display\" ) ) ) {\n\t\t\t\t\treturn jQuery.swap( elem, cssShow, function() {\n\t\t\t\t\t\treturn getWidthOrHeight( elem, name, extra );\n\t\t\t\t\t});\n\t\t\t\t} else {\n\t\t\t\t\treturn getWidthOrHeight( elem, name, extra );\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\tset: function( elem, value, extra ) {\n\t\t\treturn setPositiveNumber( elem, value, extra ?\n\t\t\t\taugmentWidthOrHeight(\n\t\t\t\t\telem,\n\t\t\t\t\tname,\n\t\t\t\t\textra,\n\t\t\t\t\tjQuery.support.boxSizing && jQuery.css( elem, \"boxSizing\" ) === \"border-box\"\n\t\t\t\t) : 0\n\t\t\t);\n\t\t}\n\t};\n});\n\nif ( !jQuery.support.opacity ) {\n\tjQuery.cssHooks.opacity = {\n\t\tget: function( elem, computed ) {\n\t\t\t// IE uses filters for opacity\n\t\t\treturn ropacity.test( (computed && elem.currentStyle ? elem.currentStyle.filter : elem.style.filter) || \"\" ) ?\n\t\t\t\t( 0.01 * parseFloat( RegExp.$1 ) ) + \"\" :\n\t\t\t\tcomputed ? \"1\" : \"\";\n\t\t},\n\n\t\tset: function( elem, value ) {\n\t\t\tvar style = elem.style,\n\t\t\t\tcurrentStyle = elem.currentStyle,\n\t\t\t\topacity = jQuery.isNumeric( value ) ? \"alpha(opacity=\" + value * 100 + \")\" : \"\",\n\t\t\t\tfilter = currentStyle && currentStyle.filter || style.filter || \"\";\n\n\t\t\t// IE has trouble with opacity if it does not have layout\n\t\t\t// Force it by setting the zoom level\n\t\t\tstyle.zoom = 1;\n\n\t\t\t// if setting opacity to 1, and no other filters exist - attempt to remove filter attribute #6652\n\t\t\tif ( value >= 1 && jQuery.trim( filter.replace( ralpha, \"\" ) ) === \"\" &&\n\t\t\t\tstyle.removeAttribute ) {\n\n\t\t\t\t// Setting style.filter to null, \"\" & \" \" still leave \"filter:\" in the cssText\n\t\t\t\t// if \"filter:\" is present at all, clearType is disabled, we want to avoid this\n\t\t\t\t// style.removeAttribute is IE Only, but so apparently is this code path...\n\t\t\t\tstyle.removeAttribute( \"filter\" );\n\n\t\t\t\t// if there there is no filter style applied in a css rule, we are done\n\t\t\t\tif ( currentStyle && !currentStyle.filter ) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// otherwise, set new filter values\n\t\t\tstyle.filter = ralpha.test( filter ) ?\n\t\t\t\tfilter.replace( ralpha, opacity ) :\n\t\t\t\tfilter + \" \" + opacity;\n\t\t}\n\t};\n}\n\n// These hooks cannot be added until DOM ready because the support test\n// for it is not run until after DOM ready\njQuery(function() {\n\tif ( !jQuery.support.reliableMarginRight ) {\n\t\tjQuery.cssHooks.marginRight = {\n\t\t\tget: function( elem, computed ) {\n\t\t\t\t// WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right\n\t\t\t\t// Work around by temporarily setting element display to inline-block\n\t\t\t\treturn jQuery.swap( elem, { \"display\": \"inline-block\" }, function() {\n\t\t\t\t\tif ( computed ) {\n\t\t\t\t\t\treturn curCSS( elem, \"marginRight\" );\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t};\n\t}\n\n\t// Webkit bug: https://bugs.webkit.org/show_bug.cgi?id=29084\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, we just check for it here\n\tif ( !jQuery.support.pixelPosition && jQuery.fn.position ) {\n\t\tjQuery.each( [ \"top\", \"left\" ], function( i, prop ) {\n\t\t\tjQuery.cssHooks[ prop ] = {\n\t\t\t\tget: function( elem, computed ) {\n\t\t\t\t\tif ( computed ) {\n\t\t\t\t\t\tvar ret = curCSS( elem, prop );\n\t\t\t\t\t\t// if curCSS returns percentage, fallback to offset\n\t\t\t\t\t\treturn rnumnonpx.test( ret ) ? jQuery( elem ).position()[ prop ] + \"px\" : ret;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t};\n\t\t});\n\t}\n\n});\n\nif ( jQuery.expr && jQuery.expr.filters ) {\n\tjQuery.expr.filters.hidden = function( elem ) {\n\t\treturn ( elem.offsetWidth === 0 && elem.offsetHeight === 0 ) || (!jQuery.support.reliableHiddenOffsets && ((elem.style && elem.style.display) || curCSS( elem, \"display\" )) === \"none\");\n\t};\n\n\tjQuery.expr.filters.visible = function( elem ) {\n\t\treturn !jQuery.expr.filters.hidden( elem );\n\t};\n}\n\n// These hooks are used by animate to expand properties\njQuery.each({\n\tmargin: \"\",\n\tpadding: \"\",\n\tborder: \"Width\"\n}, function( prefix, suffix ) {\n\tjQuery.cssHooks[ prefix + suffix ] = {\n\t\texpand: function( value ) {\n\t\t\tvar i,\n\n\t\t\t\t// assumes a single number if not a string\n\t\t\t\tparts = typeof value === \"string\" ? value.split(\" \") : [ value ],\n\t\t\t\texpanded = {};\n\n\t\t\tfor ( i = 0; i < 4; i++ ) {\n\t\t\t\texpanded[ prefix + cssExpand[ i ] + suffix ] =\n\t\t\t\t\tparts[ i ] || parts[ i - 2 ] || parts[ 0 ];\n\t\t\t}\n\n\t\t\treturn expanded;\n\t\t}\n\t};\n\n\tif ( !rmargin.test( prefix ) ) {\n\t\tjQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber;\n\t}\n});\nvar r20 = /%20/g,\n\trbracket = /\\[\\]$/,\n\trCRLF = /\\r?\\n/g,\n\trinput = /^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,\n\trselectTextarea = /^(?:select|textarea)/i;\n\njQuery.fn.extend({\n\tserialize: function() {\n\t\treturn jQuery.param( this.serializeArray() );\n\t},\n\tserializeArray: function() {\n\t\treturn this.map(function(){\n\t\t\treturn this.elements ? jQuery.makeArray( this.elements ) : this;\n\t\t})\n\t\t.filter(function(){\n\t\t\treturn this.name && !this.disabled &&\n\t\t\t\t( this.checked || rselectTextarea.test( this.nodeName ) ||\n\t\t\t\t\trinput.test( this.type ) );\n\t\t})\n\t\t.map(function( i, elem ){\n\t\t\tvar val = jQuery( this ).val();\n\n\t\t\treturn val == null ?\n\t\t\t\tnull :\n\t\t\t\tjQuery.isArray( val ) ?\n\t\t\t\t\tjQuery.map( val, function( val, i ){\n\t\t\t\t\t\treturn { name: elem.name, value: val.replace( rCRLF, \"\\r\\n\" ) };\n\t\t\t\t\t}) :\n\t\t\t\t\t{ name: elem.name, value: val.replace( rCRLF, \"\\r\\n\" ) };\n\t\t}).get();\n\t}\n});\n\n//Serialize an array of form elements or a set of\n//key/values into a query string\njQuery.param = function( a, traditional ) {\n\tvar prefix,\n\t\ts = [],\n\t\tadd = function( key, value ) {\n\t\t\t// If value is a function, invoke it and return its value\n\t\t\tvalue = jQuery.isFunction( value ) ? value() : ( value == null ? \"\" : value );\n\t\t\ts[ s.length ] = encodeURIComponent( key ) + \"=\" + encodeURIComponent( value );\n\t\t};\n\n\t// Set traditional to true for jQuery <= 1.3.2 behavior.\n\tif ( traditional === undefined ) {\n\t\ttraditional = jQuery.ajaxSettings && jQuery.ajaxSettings.traditional;\n\t}\n\n\t// If an array was passed in, assume that it is an array of form elements.\n\tif ( jQuery.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {\n\t\t// Serialize the form elements\n\t\tjQuery.each( a, function() {\n\t\t\tadd( this.name, this.value );\n\t\t});\n\n\t} else {\n\t\t// If traditional, encode the \"old\" way (the way 1.3.2 or older\n\t\t// did it), otherwise encode params recursively.\n\t\tfor ( prefix in a ) {\n\t\t\tbuildParams( prefix, a[ prefix ], traditional, add );\n\t\t}\n\t}\n\n\t// Return the resulting serialization\n\treturn s.join( \"&\" ).replace( r20, \"+\" );\n};\n\nfunction buildParams( prefix, obj, traditional, add ) {\n\tvar name;\n\n\tif ( jQuery.isArray( obj ) ) {\n\t\t// Serialize array item.\n\t\tjQuery.each( obj, function( i, v ) {\n\t\t\tif ( traditional || rbracket.test( prefix ) ) {\n\t\t\t\t// Treat each array item as a scalar.\n\t\t\t\tadd( prefix, v );\n\n\t\t\t} else {\n\t\t\t\t// If array item is non-scalar (array or object), encode its\n\t\t\t\t// numeric index to resolve deserialization ambiguity issues.\n\t\t\t\t// Note that rack (as of 1.0.0) can't currently deserialize\n\t\t\t\t// nested arrays properly, and attempting to do so may cause\n\t\t\t\t// a server error. Possible fixes are to modify rack's\n\t\t\t\t// deserialization algorithm or to provide an option or flag\n\t\t\t\t// to force array serialization to be shallow.\n\t\t\t\tbuildParams( prefix + \"[\" + ( typeof v === \"object\" ? i : \"\" ) + \"]\", v, traditional, add );\n\t\t\t}\n\t\t});\n\n\t} else if ( !traditional && jQuery.type( obj ) === \"object\" ) {\n\t\t// Serialize object item.\n\t\tfor ( name in obj ) {\n\t\t\tbuildParams( prefix + \"[\" + name + \"]\", obj[ name ], traditional, add );\n\t\t}\n\n\t} else {\n\t\t// Serialize scalar item.\n\t\tadd( prefix, obj );\n\t}\n}\nvar // Document location\n\tajaxLocation,\n\t// Document location segments\n\tajaxLocParts,\n\n\trhash = /#.*$/,\n\trheaders = /^(.*?):[ \\t]*([^\\r\\n]*)\\r?$/mg, // IE leaves an \\r character at EOL\n\t// #7653, #8125, #8152: local protocol detection\n\trlocalProtocol = /^(?:about|app|app\\-storage|.+\\-extension|file|res|widget):$/,\n\trnoContent = /^(?:GET|HEAD)$/,\n\trprotocol = /^\\/\\//,\n\trquery = /\\?/,\n\trscript = /<script\\b[^<]*(?:(?!<\\/script>)<[^<]*)*<\\/script>/gi,\n\trts = /([?&])_=[^&]*/,\n\trurl = /^([\\w\\+\\.\\-]+:)(?:\\/\\/([^\\/?#:]*)(?::(\\d+)|)|)/,\n\n\t// Keep a copy of the old load method\n\t_load = jQuery.fn.load,\n\n\t/* Prefilters\n\t * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)\n\t * 2) These are called:\n\t *    - BEFORE asking for a transport\n\t *    - AFTER param serialization (s.data is a string if s.processData is true)\n\t * 3) key is the dataType\n\t * 4) the catchall symbol \"*\" can be used\n\t * 5) execution will start with transport dataType and THEN continue down to \"*\" if needed\n\t */\n\tprefilters = {},\n\n\t/* Transports bindings\n\t * 1) key is the dataType\n\t * 2) the catchall symbol \"*\" can be used\n\t * 3) selection will start with transport dataType and THEN go to \"*\" if needed\n\t */\n\ttransports = {},\n\n\t// Avoid comment-prolog char sequence (#10098); must appease lint and evade compression\n\tallTypes = [\"*/\"] + [\"*\"];\n\n// #8138, IE may throw an exception when accessing\n// a field from window.location if document.domain has been set\ntry {\n\tajaxLocation = location.href;\n} catch( e ) {\n\t// Use the href attribute of an A element\n\t// since IE will modify it given document.location\n\tajaxLocation = document.createElement( \"a\" );\n\tajaxLocation.href = \"\";\n\tajaxLocation = ajaxLocation.href;\n}\n\n// Segment location into parts\najaxLocParts = rurl.exec( ajaxLocation.toLowerCase() ) || [];\n\n// Base \"constructor\" for jQuery.ajaxPrefilter and jQuery.ajaxTransport\nfunction addToPrefiltersOrTransports( structure ) {\n\n\t// dataTypeExpression is optional and defaults to \"*\"\n\treturn function( dataTypeExpression, func ) {\n\n\t\tif ( typeof dataTypeExpression !== \"string\" ) {\n\t\t\tfunc = dataTypeExpression;\n\t\t\tdataTypeExpression = \"*\";\n\t\t}\n\n\t\tvar dataType, list, placeBefore,\n\t\t\tdataTypes = dataTypeExpression.toLowerCase().split( core_rspace ),\n\t\t\ti = 0,\n\t\t\tlength = dataTypes.length;\n\n\t\tif ( jQuery.isFunction( func ) ) {\n\t\t\t// For each dataType in the dataTypeExpression\n\t\t\tfor ( ; i < length; i++ ) {\n\t\t\t\tdataType = dataTypes[ i ];\n\t\t\t\t// We control if we're asked to add before\n\t\t\t\t// any existing element\n\t\t\t\tplaceBefore = /^\\+/.test( dataType );\n\t\t\t\tif ( placeBefore ) {\n\t\t\t\t\tdataType = dataType.substr( 1 ) || \"*\";\n\t\t\t\t}\n\t\t\t\tlist = structure[ dataType ] = structure[ dataType ] || [];\n\t\t\t\t// then we add to the structure accordingly\n\t\t\t\tlist[ placeBefore ? \"unshift\" : \"push\" ]( func );\n\t\t\t}\n\t\t}\n\t};\n}\n\n// Base inspection function for prefilters and transports\nfunction inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR,\n\t\tdataType /* internal */, inspected /* internal */ ) {\n\n\tdataType = dataType || options.dataTypes[ 0 ];\n\tinspected = inspected || {};\n\n\tinspected[ dataType ] = true;\n\n\tvar selection,\n\t\tlist = structure[ dataType ],\n\t\ti = 0,\n\t\tlength = list ? list.length : 0,\n\t\texecuteOnly = ( structure === prefilters );\n\n\tfor ( ; i < length && ( executeOnly || !selection ); i++ ) {\n\t\tselection = list[ i ]( options, originalOptions, jqXHR );\n\t\t// If we got redirected to another dataType\n\t\t// we try there if executing only and not done already\n\t\tif ( typeof selection === \"string\" ) {\n\t\t\tif ( !executeOnly || inspected[ selection ] ) {\n\t\t\t\tselection = undefined;\n\t\t\t} else {\n\t\t\t\toptions.dataTypes.unshift( selection );\n\t\t\t\tselection = inspectPrefiltersOrTransports(\n\t\t\t\t\t\tstructure, options, originalOptions, jqXHR, selection, inspected );\n\t\t\t}\n\t\t}\n\t}\n\t// If we're only executing or nothing was selected\n\t// we try the catchall dataType if not done already\n\tif ( ( executeOnly || !selection ) && !inspected[ \"*\" ] ) {\n\t\tselection = inspectPrefiltersOrTransports(\n\t\t\t\tstructure, options, originalOptions, jqXHR, \"*\", inspected );\n\t}\n\t// unnecessary when only executing (prefilters)\n\t// but it'll be ignored by the caller in that case\n\treturn selection;\n}\n\n// A special extend for ajax options\n// that takes \"flat\" options (not to be deep extended)\n// Fixes #9887\nfunction ajaxExtend( target, src ) {\n\tvar key, deep,\n\t\tflatOptions = jQuery.ajaxSettings.flatOptions || {};\n\tfor ( key in src ) {\n\t\tif ( src[ key ] !== undefined ) {\n\t\t\t( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ];\n\t\t}\n\t}\n\tif ( deep ) {\n\t\tjQuery.extend( true, target, deep );\n\t}\n}\n\njQuery.fn.load = function( url, params, callback ) {\n\tif ( typeof url !== \"string\" && _load ) {\n\t\treturn _load.apply( this, arguments );\n\t}\n\n\t// Don't do a request if no elements are being requested\n\tif ( !this.length ) {\n\t\treturn this;\n\t}\n\n\tvar selector, type, response,\n\t\tself = this,\n\t\toff = url.indexOf(\" \");\n\n\tif ( off >= 0 ) {\n\t\tselector = url.slice( off, url.length );\n\t\turl = url.slice( 0, off );\n\t}\n\n\t// If it's a function\n\tif ( jQuery.isFunction( params ) ) {\n\n\t\t// We assume that it's the callback\n\t\tcallback = params;\n\t\tparams = undefined;\n\n\t// Otherwise, build a param string\n\t} else if ( params && typeof params === \"object\" ) {\n\t\ttype = \"POST\";\n\t}\n\n\t// Request the remote document\n\tjQuery.ajax({\n\t\turl: url,\n\n\t\t// if \"type\" variable is undefined, then \"GET\" method will be used\n\t\ttype: type,\n\t\tdataType: \"html\",\n\t\tdata: params,\n\t\tcomplete: function( jqXHR, status ) {\n\t\t\tif ( callback ) {\n\t\t\t\tself.each( callback, response || [ jqXHR.responseText, status, jqXHR ] );\n\t\t\t}\n\t\t}\n\t}).done(function( responseText ) {\n\n\t\t// Save response for use in complete callback\n\t\tresponse = arguments;\n\n\t\t// See if a selector was specified\n\t\tself.html( selector ?\n\n\t\t\t// Create a dummy div to hold the results\n\t\t\tjQuery(\"<div>\")\n\n\t\t\t\t// inject the contents of the document in, removing the scripts\n\t\t\t\t// to avoid any 'Permission Denied' errors in IE\n\t\t\t\t.append( responseText.replace( rscript, \"\" ) )\n\n\t\t\t\t// Locate the specified elements\n\t\t\t\t.find( selector ) :\n\n\t\t\t// If not, just inject the full result\n\t\t\tresponseText );\n\n\t});\n\n\treturn this;\n};\n\n// Attach a bunch of functions for handling common AJAX events\njQuery.each( \"ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend\".split( \" \" ), function( i, o ){\n\tjQuery.fn[ o ] = function( f ){\n\t\treturn this.on( o, f );\n\t};\n});\n\njQuery.each( [ \"get\", \"post\" ], function( i, method ) {\n\tjQuery[ method ] = function( url, data, callback, type ) {\n\t\t// shift arguments if data argument was omitted\n\t\tif ( jQuery.isFunction( data ) ) {\n\t\t\ttype = type || callback;\n\t\t\tcallback = data;\n\t\t\tdata = undefined;\n\t\t}\n\n\t\treturn jQuery.ajax({\n\t\t\ttype: method,\n\t\t\turl: url,\n\t\t\tdata: data,\n\t\t\tsuccess: callback,\n\t\t\tdataType: type\n\t\t});\n\t};\n});\n\njQuery.extend({\n\n\tgetScript: function( url, callback ) {\n\t\treturn jQuery.get( url, undefined, callback, \"script\" );\n\t},\n\n\tgetJSON: function( url, data, callback ) {\n\t\treturn jQuery.get( url, data, callback, \"json\" );\n\t},\n\n\t// Creates a full fledged settings object into target\n\t// with both ajaxSettings and settings fields.\n\t// If target is omitted, writes into ajaxSettings.\n\tajaxSetup: function( target, settings ) {\n\t\tif ( settings ) {\n\t\t\t// Building a settings object\n\t\t\tajaxExtend( target, jQuery.ajaxSettings );\n\t\t} else {\n\t\t\t// Extending ajaxSettings\n\t\t\tsettings = target;\n\t\t\ttarget = jQuery.ajaxSettings;\n\t\t}\n\t\tajaxExtend( target, settings );\n\t\treturn target;\n\t},\n\n\tajaxSettings: {\n\t\turl: ajaxLocation,\n\t\tisLocal: rlocalProtocol.test( ajaxLocParts[ 1 ] ),\n\t\tglobal: true,\n\t\ttype: \"GET\",\n\t\tcontentType: \"application/x-www-form-urlencoded; charset=UTF-8\",\n\t\tprocessData: true,\n\t\tasync: true,\n\t\t/*\n\t\ttimeout: 0,\n\t\tdata: null,\n\t\tdataType: null,\n\t\tusername: null,\n\t\tpassword: null,\n\t\tcache: null,\n\t\tthrows: false,\n\t\ttraditional: false,\n\t\theaders: {},\n\t\t*/\n\n\t\taccepts: {\n\t\t\txml: \"application/xml, text/xml\",\n\t\t\thtml: \"text/html\",\n\t\t\ttext: \"text/plain\",\n\t\t\tjson: \"application/json, text/javascript\",\n\t\t\t\"*\": allTypes\n\t\t},\n\n\t\tcontents: {\n\t\t\txml: /xml/,\n\t\t\thtml: /html/,\n\t\t\tjson: /json/\n\t\t},\n\n\t\tresponseFields: {\n\t\t\txml: \"responseXML\",\n\t\t\ttext: \"responseText\"\n\t\t},\n\n\t\t// List of data converters\n\t\t// 1) key format is \"source_type destination_type\" (a single space in-between)\n\t\t// 2) the catchall symbol \"*\" can be used for source_type\n\t\tconverters: {\n\n\t\t\t// Convert anything to text\n\t\t\t\"* text\": window.String,\n\n\t\t\t// Text to html (true = no transformation)\n\t\t\t\"text html\": true,\n\n\t\t\t// Evaluate text as a json expression\n\t\t\t\"text json\": jQuery.parseJSON,\n\n\t\t\t// Parse text as xml\n\t\t\t\"text xml\": jQuery.parseXML\n\t\t},\n\n\t\t// For options that shouldn't be deep extended:\n\t\t// you can add your own custom options here if\n\t\t// and when you create one that shouldn't be\n\t\t// deep extended (see ajaxExtend)\n\t\tflatOptions: {\n\t\t\tcontext: true,\n\t\t\turl: true\n\t\t}\n\t},\n\n\tajaxPrefilter: addToPrefiltersOrTransports( prefilters ),\n\tajaxTransport: addToPrefiltersOrTransports( transports ),\n\n\t// Main method\n\tajax: function( url, options ) {\n\n\t\t// If url is an object, simulate pre-1.5 signature\n\t\tif ( typeof url === \"object\" ) {\n\t\t\toptions = url;\n\t\t\turl = undefined;\n\t\t}\n\n\t\t// Force options to be an object\n\t\toptions = options || {};\n\n\t\tvar // ifModified key\n\t\t\tifModifiedKey,\n\t\t\t// Response headers\n\t\t\tresponseHeadersString,\n\t\t\tresponseHeaders,\n\t\t\t// transport\n\t\t\ttransport,\n\t\t\t// timeout handle\n\t\t\ttimeoutTimer,\n\t\t\t// Cross-domain detection vars\n\t\t\tparts,\n\t\t\t// To know if global events are to be dispatched\n\t\t\tfireGlobals,\n\t\t\t// Loop variable\n\t\t\ti,\n\t\t\t// Create the final options object\n\t\t\ts = jQuery.ajaxSetup( {}, options ),\n\t\t\t// Callbacks context\n\t\t\tcallbackContext = s.context || s,\n\t\t\t// Context for global events\n\t\t\t// It's the callbackContext if one was provided in the options\n\t\t\t// and if it's a DOM node or a jQuery collection\n\t\t\tglobalEventContext = callbackContext !== s &&\n\t\t\t\t( callbackContext.nodeType || callbackContext instanceof jQuery ) ?\n\t\t\t\t\t\tjQuery( callbackContext ) : jQuery.event,\n\t\t\t// Deferreds\n\t\t\tdeferred = jQuery.Deferred(),\n\t\t\tcompleteDeferred = jQuery.Callbacks( \"once memory\" ),\n\t\t\t// Status-dependent callbacks\n\t\t\tstatusCode = s.statusCode || {},\n\t\t\t// Headers (they are sent all at once)\n\t\t\trequestHeaders = {},\n\t\t\trequestHeadersNames = {},\n\t\t\t// The jqXHR state\n\t\t\tstate = 0,\n\t\t\t// Default abort message\n\t\t\tstrAbort = \"canceled\",\n\t\t\t// Fake xhr\n\t\t\tjqXHR = {\n\n\t\t\t\treadyState: 0,\n\n\t\t\t\t// Caches the header\n\t\t\t\tsetRequestHeader: function( name, value ) {\n\t\t\t\t\tif ( !state ) {\n\t\t\t\t\t\tvar lname = name.toLowerCase();\n\t\t\t\t\t\tname = requestHeadersNames[ lname ] = requestHeadersNames[ lname ] || name;\n\t\t\t\t\t\trequestHeaders[ name ] = value;\n\t\t\t\t\t}\n\t\t\t\t\treturn this;\n\t\t\t\t},\n\n\t\t\t\t// Raw string\n\t\t\t\tgetAllResponseHeaders: function() {\n\t\t\t\t\treturn state === 2 ? responseHeadersString : null;\n\t\t\t\t},\n\n\t\t\t\t// Builds headers hashtable if needed\n\t\t\t\tgetResponseHeader: function( key ) {\n\t\t\t\t\tvar match;\n\t\t\t\t\tif ( state === 2 ) {\n\t\t\t\t\t\tif ( !responseHeaders ) {\n\t\t\t\t\t\t\tresponseHeaders = {};\n\t\t\t\t\t\t\twhile( ( match = rheaders.exec( responseHeadersString ) ) ) {\n\t\t\t\t\t\t\t\tresponseHeaders[ match[1].toLowerCase() ] = match[ 2 ];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tmatch = responseHeaders[ key.toLowerCase() ];\n\t\t\t\t\t}\n\t\t\t\t\treturn match === undefined ? null : match;\n\t\t\t\t},\n\n\t\t\t\t// Overrides response content-type header\n\t\t\t\toverrideMimeType: function( type ) {\n\t\t\t\t\tif ( !state ) {\n\t\t\t\t\t\ts.mimeType = type;\n\t\t\t\t\t}\n\t\t\t\t\treturn this;\n\t\t\t\t},\n\n\t\t\t\t// Cancel the request\n\t\t\t\tabort: function( statusText ) {\n\t\t\t\t\tstatusText = statusText || strAbort;\n\t\t\t\t\tif ( transport ) {\n\t\t\t\t\t\ttransport.abort( statusText );\n\t\t\t\t\t}\n\t\t\t\t\tdone( 0, statusText );\n\t\t\t\t\treturn this;\n\t\t\t\t}\n\t\t\t};\n\n\t\t// Callback for when everything is done\n\t\t// It is defined here because jslint complains if it is declared\n\t\t// at the end of the function (which would be more logical and readable)\n\t\tfunction done( status, nativeStatusText, responses, headers ) {\n\t\t\tvar isSuccess, success, error, response, modified,\n\t\t\t\tstatusText = nativeStatusText;\n\n\t\t\t// Called once\n\t\t\tif ( state === 2 ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// State is \"done\" now\n\t\t\tstate = 2;\n\n\t\t\t// Clear timeout if it exists\n\t\t\tif ( timeoutTimer ) {\n\t\t\t\tclearTimeout( timeoutTimer );\n\t\t\t}\n\n\t\t\t// Dereference transport for early garbage collection\n\t\t\t// (no matter how long the jqXHR object will be used)\n\t\t\ttransport = undefined;\n\n\t\t\t// Cache response headers\n\t\t\tresponseHeadersString = headers || \"\";\n\n\t\t\t// Set readyState\n\t\t\tjqXHR.readyState = status > 0 ? 4 : 0;\n\n\t\t\t// Get response data\n\t\t\tif ( responses ) {\n\t\t\t\tresponse = ajaxHandleResponses( s, jqXHR, responses );\n\t\t\t}\n\n\t\t\t// If successful, handle type chaining\n\t\t\tif ( status >= 200 && status < 300 || status === 304 ) {\n\n\t\t\t\t// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.\n\t\t\t\tif ( s.ifModified ) {\n\n\t\t\t\t\tmodified = jqXHR.getResponseHeader(\"Last-Modified\");\n\t\t\t\t\tif ( modified ) {\n\t\t\t\t\t\tjQuery.lastModified[ ifModifiedKey ] = modified;\n\t\t\t\t\t}\n\t\t\t\t\tmodified = jqXHR.getResponseHeader(\"Etag\");\n\t\t\t\t\tif ( modified ) {\n\t\t\t\t\t\tjQuery.etag[ ifModifiedKey ] = modified;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// If not modified\n\t\t\t\tif ( status === 304 ) {\n\n\t\t\t\t\tstatusText = \"notmodified\";\n\t\t\t\t\tisSuccess = true;\n\n\t\t\t\t// If we have data\n\t\t\t\t} else {\n\n\t\t\t\t\tisSuccess = ajaxConvert( s, response );\n\t\t\t\t\tstatusText = isSuccess.state;\n\t\t\t\t\tsuccess = isSuccess.data;\n\t\t\t\t\terror = isSuccess.error;\n\t\t\t\t\tisSuccess = !error;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// We extract error from statusText\n\t\t\t\t// then normalize statusText and status for non-aborts\n\t\t\t\terror = statusText;\n\t\t\t\tif ( !statusText || status ) {\n\t\t\t\t\tstatusText = \"error\";\n\t\t\t\t\tif ( status < 0 ) {\n\t\t\t\t\t\tstatus = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Set data for the fake xhr object\n\t\t\tjqXHR.status = status;\n\t\t\tjqXHR.statusText = \"\" + ( nativeStatusText || statusText );\n\n\t\t\t// Success/Error\n\t\t\tif ( isSuccess ) {\n\t\t\t\tdeferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] );\n\t\t\t} else {\n\t\t\t\tdeferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] );\n\t\t\t}\n\n\t\t\t// Status-dependent callbacks\n\t\t\tjqXHR.statusCode( statusCode );\n\t\t\tstatusCode = undefined;\n\n\t\t\tif ( fireGlobals ) {\n\t\t\t\tglobalEventContext.trigger( \"ajax\" + ( isSuccess ? \"Success\" : \"Error\" ),\n\t\t\t\t\t\t[ jqXHR, s, isSuccess ? success : error ] );\n\t\t\t}\n\n\t\t\t// Complete\n\t\t\tcompleteDeferred.fireWith( callbackContext, [ jqXHR, statusText ] );\n\n\t\t\tif ( fireGlobals ) {\n\t\t\t\tglobalEventContext.trigger( \"ajaxComplete\", [ jqXHR, s ] );\n\t\t\t\t// Handle the global AJAX counter\n\t\t\t\tif ( !( --jQuery.active ) ) {\n\t\t\t\t\tjQuery.event.trigger( \"ajaxStop\" );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Attach deferreds\n\t\tdeferred.promise( jqXHR );\n\t\tjqXHR.success = jqXHR.done;\n\t\tjqXHR.error = jqXHR.fail;\n\t\tjqXHR.complete = completeDeferred.add;\n\n\t\t// Status-dependent callbacks\n\t\tjqXHR.statusCode = function( map ) {\n\t\t\tif ( map ) {\n\t\t\t\tvar tmp;\n\t\t\t\tif ( state < 2 ) {\n\t\t\t\t\tfor ( tmp in map ) {\n\t\t\t\t\t\tstatusCode[ tmp ] = [ statusCode[tmp], map[tmp] ];\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\ttmp = map[ jqXHR.status ];\n\t\t\t\t\tjqXHR.always( tmp );\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn this;\n\t\t};\n\n\t\t// Remove hash character (#7531: and string promotion)\n\t\t// Add protocol if not provided (#5866: IE7 issue with protocol-less urls)\n\t\t// We also use the url parameter if available\n\t\ts.url = ( ( url || s.url ) + \"\" ).replace( rhash, \"\" ).replace( rprotocol, ajaxLocParts[ 1 ] + \"//\" );\n\n\t\t// Extract dataTypes list\n\t\ts.dataTypes = jQuery.trim( s.dataType || \"*\" ).toLowerCase().split( core_rspace );\n\n\t\t// Determine if a cross-domain request is in order\n\t\tif ( s.crossDomain == null ) {\n\t\t\tparts = rurl.exec( s.url.toLowerCase() );\n\t\t\ts.crossDomain = !!( parts &&\n\t\t\t\t( parts[ 1 ] != ajaxLocParts[ 1 ] || parts[ 2 ] != ajaxLocParts[ 2 ] ||\n\t\t\t\t\t( parts[ 3 ] || ( parts[ 1 ] === \"http:\" ? 80 : 443 ) ) !=\n\t\t\t\t\t\t( ajaxLocParts[ 3 ] || ( ajaxLocParts[ 1 ] === \"http:\" ? 80 : 443 ) ) )\n\t\t\t);\n\t\t}\n\n\t\t// Convert data if not already a string\n\t\tif ( s.data && s.processData && typeof s.data !== \"string\" ) {\n\t\t\ts.data = jQuery.param( s.data, s.traditional );\n\t\t}\n\n\t\t// Apply prefilters\n\t\tinspectPrefiltersOrTransports( prefilters, s, options, jqXHR );\n\n\t\t// If request was aborted inside a prefilter, stop there\n\t\tif ( state === 2 ) {\n\t\t\treturn jqXHR;\n\t\t}\n\n\t\t// We can fire global events as of now if asked to\n\t\tfireGlobals = s.global;\n\n\t\t// Uppercase the type\n\t\ts.type = s.type.toUpperCase();\n\n\t\t// Determine if request has content\n\t\ts.hasContent = !rnoContent.test( s.type );\n\n\t\t// Watch for a new set of requests\n\t\tif ( fireGlobals && jQuery.active++ === 0 ) {\n\t\t\tjQuery.event.trigger( \"ajaxStart\" );\n\t\t}\n\n\t\t// More options handling for requests with no content\n\t\tif ( !s.hasContent ) {\n\n\t\t\t// If data is available, append data to url\n\t\t\tif ( s.data ) {\n\t\t\t\ts.url += ( rquery.test( s.url ) ? \"&\" : \"?\" ) + s.data;\n\t\t\t\t// #9682: remove data so that it's not used in an eventual retry\n\t\t\t\tdelete s.data;\n\t\t\t}\n\n\t\t\t// Get ifModifiedKey before adding the anti-cache parameter\n\t\t\tifModifiedKey = s.url;\n\n\t\t\t// Add anti-cache in url if needed\n\t\t\tif ( s.cache === false ) {\n\n\t\t\t\tvar ts = jQuery.now(),\n\t\t\t\t\t// try replacing _= if it is there\n\t\t\t\t\tret = s.url.replace( rts, \"$1_=\" + ts );\n\n\t\t\t\t// if nothing was replaced, add timestamp to the end\n\t\t\t\ts.url = ret + ( ( ret === s.url ) ? ( rquery.test( s.url ) ? \"&\" : \"?\" ) + \"_=\" + ts : \"\" );\n\t\t\t}\n\t\t}\n\n\t\t// Set the correct header, if data is being sent\n\t\tif ( s.data && s.hasContent && s.contentType !== false || options.contentType ) {\n\t\t\tjqXHR.setRequestHeader( \"Content-Type\", s.contentType );\n\t\t}\n\n\t\t// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.\n\t\tif ( s.ifModified ) {\n\t\t\tifModifiedKey = ifModifiedKey || s.url;\n\t\t\tif ( jQuery.lastModified[ ifModifiedKey ] ) {\n\t\t\t\tjqXHR.setRequestHeader( \"If-Modified-Since\", jQuery.lastModified[ ifModifiedKey ] );\n\t\t\t}\n\t\t\tif ( jQuery.etag[ ifModifiedKey ] ) {\n\t\t\t\tjqXHR.setRequestHeader( \"If-None-Match\", jQuery.etag[ ifModifiedKey ] );\n\t\t\t}\n\t\t}\n\n\t\t// Set the Accepts header for the server, depending on the dataType\n\t\tjqXHR.setRequestHeader(\n\t\t\t\"Accept\",\n\t\t\ts.dataTypes[ 0 ] && s.accepts[ s.dataTypes[0] ] ?\n\t\t\t\ts.accepts[ s.dataTypes[0] ] + ( s.dataTypes[ 0 ] !== \"*\" ? \", \" + allTypes + \"; q=0.01\" : \"\" ) :\n\t\t\t\ts.accepts[ \"*\" ]\n\t\t);\n\n\t\t// Check for headers option\n\t\tfor ( i in s.headers ) {\n\t\t\tjqXHR.setRequestHeader( i, s.headers[ i ] );\n\t\t}\n\n\t\t// Allow custom headers/mimetypes and early abort\n\t\tif ( s.beforeSend && ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || state === 2 ) ) {\n\t\t\t\t// Abort if not done already and return\n\t\t\t\treturn jqXHR.abort();\n\n\t\t}\n\n\t\t// aborting is no longer a cancellation\n\t\tstrAbort = \"abort\";\n\n\t\t// Install callbacks on deferreds\n\t\tfor ( i in { success: 1, error: 1, complete: 1 } ) {\n\t\t\tjqXHR[ i ]( s[ i ] );\n\t\t}\n\n\t\t// Get transport\n\t\ttransport = inspectPrefiltersOrTransports( transports, s, options, jqXHR );\n\n\t\t// If no transport, we auto-abort\n\t\tif ( !transport ) {\n\t\t\tdone( -1, \"No Transport\" );\n\t\t} else {\n\t\t\tjqXHR.readyState = 1;\n\t\t\t// Send global event\n\t\t\tif ( fireGlobals ) {\n\t\t\t\tglobalEventContext.trigger( \"ajaxSend\", [ jqXHR, s ] );\n\t\t\t}\n\t\t\t// Timeout\n\t\t\tif ( s.async && s.timeout > 0 ) {\n\t\t\t\ttimeoutTimer = setTimeout( function(){\n\t\t\t\t\tjqXHR.abort( \"timeout\" );\n\t\t\t\t}, s.timeout );\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\tstate = 1;\n\t\t\t\ttransport.send( requestHeaders, done );\n\t\t\t} catch (e) {\n\t\t\t\t// Propagate exception as error if not done\n\t\t\t\tif ( state < 2 ) {\n\t\t\t\t\tdone( -1, e );\n\t\t\t\t// Simply rethrow otherwise\n\t\t\t\t} else {\n\t\t\t\t\tthrow e;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn jqXHR;\n\t},\n\n\t// Counter for holding the number of active queries\n\tactive: 0,\n\n\t// Last-Modified header cache for next request\n\tlastModified: {},\n\tetag: {}\n\n});\n\n/* Handles responses to an ajax request:\n * - sets all responseXXX fields accordingly\n * - finds the right dataType (mediates between content-type and expected dataType)\n * - returns the corresponding response\n */\nfunction ajaxHandleResponses( s, jqXHR, responses ) {\n\n\tvar ct, type, finalDataType, firstDataType,\n\t\tcontents = s.contents,\n\t\tdataTypes = s.dataTypes,\n\t\tresponseFields = s.responseFields;\n\n\t// Fill responseXXX fields\n\tfor ( type in responseFields ) {\n\t\tif ( type in responses ) {\n\t\t\tjqXHR[ responseFields[type] ] = responses[ type ];\n\t\t}\n\t}\n\n\t// Remove auto dataType and get content-type in the process\n\twhile( dataTypes[ 0 ] === \"*\" ) {\n\t\tdataTypes.shift();\n\t\tif ( ct === undefined ) {\n\t\t\tct = s.mimeType || jqXHR.getResponseHeader( \"content-type\" );\n\t\t}\n\t}\n\n\t// Check if we're dealing with a known content-type\n\tif ( ct ) {\n\t\tfor ( type in contents ) {\n\t\t\tif ( contents[ type ] && contents[ type ].test( ct ) ) {\n\t\t\t\tdataTypes.unshift( type );\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n\t// Check to see if we have a response for the expected dataType\n\tif ( dataTypes[ 0 ] in responses ) {\n\t\tfinalDataType = dataTypes[ 0 ];\n\t} else {\n\t\t// Try convertible dataTypes\n\t\tfor ( type in responses ) {\n\t\t\tif ( !dataTypes[ 0 ] || s.converters[ type + \" \" + dataTypes[0] ] ) {\n\t\t\t\tfinalDataType = type;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif ( !firstDataType ) {\n\t\t\t\tfirstDataType = type;\n\t\t\t}\n\t\t}\n\t\t// Or just use first one\n\t\tfinalDataType = finalDataType || firstDataType;\n\t}\n\n\t// If we found a dataType\n\t// We add the dataType to the list if needed\n\t// and return the corresponding response\n\tif ( finalDataType ) {\n\t\tif ( finalDataType !== dataTypes[ 0 ] ) {\n\t\t\tdataTypes.unshift( finalDataType );\n\t\t}\n\t\treturn responses[ finalDataType ];\n\t}\n}\n\n// Chain conversions given the request and the original response\nfunction ajaxConvert( s, response ) {\n\n\tvar conv, conv2, current, tmp,\n\t\t// Work with a copy of dataTypes in case we need to modify it for conversion\n\t\tdataTypes = s.dataTypes.slice(),\n\t\tprev = dataTypes[ 0 ],\n\t\tconverters = {},\n\t\ti = 0;\n\n\t// Apply the dataFilter if provided\n\tif ( s.dataFilter ) {\n\t\tresponse = s.dataFilter( response, s.dataType );\n\t}\n\n\t// Create converters map with lowercased keys\n\tif ( dataTypes[ 1 ] ) {\n\t\tfor ( conv in s.converters ) {\n\t\t\tconverters[ conv.toLowerCase() ] = s.converters[ conv ];\n\t\t}\n\t}\n\n\t// Convert to each sequential dataType, tolerating list modification\n\tfor ( ; (current = dataTypes[++i]); ) {\n\n\t\t// There's only work to do if current dataType is non-auto\n\t\tif ( current !== \"*\" ) {\n\n\t\t\t// Convert response if prev dataType is non-auto and differs from current\n\t\t\tif ( prev !== \"*\" && prev !== current ) {\n\n\t\t\t\t// Seek a direct converter\n\t\t\t\tconv = converters[ prev + \" \" + current ] || converters[ \"* \" + current ];\n\n\t\t\t\t// If none found, seek a pair\n\t\t\t\tif ( !conv ) {\n\t\t\t\t\tfor ( conv2 in converters ) {\n\n\t\t\t\t\t\t// If conv2 outputs current\n\t\t\t\t\t\ttmp = conv2.split(\" \");\n\t\t\t\t\t\tif ( tmp[ 1 ] === current ) {\n\n\t\t\t\t\t\t\t// If prev can be converted to accepted input\n\t\t\t\t\t\t\tconv = converters[ prev + \" \" + tmp[ 0 ] ] ||\n\t\t\t\t\t\t\t\tconverters[ \"* \" + tmp[ 0 ] ];\n\t\t\t\t\t\t\tif ( conv ) {\n\t\t\t\t\t\t\t\t// Condense equivalence converters\n\t\t\t\t\t\t\t\tif ( conv === true ) {\n\t\t\t\t\t\t\t\t\tconv = converters[ conv2 ];\n\n\t\t\t\t\t\t\t\t// Otherwise, insert the intermediate dataType\n\t\t\t\t\t\t\t\t} else if ( converters[ conv2 ] !== true ) {\n\t\t\t\t\t\t\t\t\tcurrent = tmp[ 0 ];\n\t\t\t\t\t\t\t\t\tdataTypes.splice( i--, 0, current );\n\t\t\t\t\t\t\t\t}\n\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}\n\t\t\t\t}\n\n\t\t\t\t// Apply converter (if not an equivalence)\n\t\t\t\tif ( conv !== true ) {\n\n\t\t\t\t\t// Unless errors are allowed to bubble, catch and return them\n\t\t\t\t\tif ( conv && s[\"throws\"] ) {\n\t\t\t\t\t\tresponse = conv( response );\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tresponse = conv( response );\n\t\t\t\t\t\t} catch ( e ) {\n\t\t\t\t\t\t\treturn { state: \"parsererror\", error: conv ? e : \"No conversion from \" + prev + \" to \" + current };\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// Update prev for next iteration\n\t\t\tprev = current;\n\t\t}\n\t}\n\n\treturn { state: \"success\", data: response };\n}\nvar oldCallbacks = [],\n\trquestion = /\\?/,\n\trjsonp = /(=)\\?(?=&|$)|\\?\\?/,\n\tnonce = jQuery.now();\n\n// Default jsonp settings\njQuery.ajaxSetup({\n\tjsonp: \"callback\",\n\tjsonpCallback: function() {\n\t\tvar callback = oldCallbacks.pop() || ( jQuery.expando + \"_\" + ( nonce++ ) );\n\t\tthis[ callback ] = true;\n\t\treturn callback;\n\t}\n});\n\n// Detect, normalize options and install callbacks for jsonp requests\njQuery.ajaxPrefilter( \"json jsonp\", function( s, originalSettings, jqXHR ) {\n\n\tvar callbackName, overwritten, responseContainer,\n\t\tdata = s.data,\n\t\turl = s.url,\n\t\thasCallback = s.jsonp !== false,\n\t\treplaceInUrl = hasCallback && rjsonp.test( url ),\n\t\treplaceInData = hasCallback && !replaceInUrl && typeof data === \"string\" &&\n\t\t\t!( s.contentType || \"\" ).indexOf(\"application/x-www-form-urlencoded\") &&\n\t\t\trjsonp.test( data );\n\n\t// Handle iff the expected data type is \"jsonp\" or we have a parameter to set\n\tif ( s.dataTypes[ 0 ] === \"jsonp\" || replaceInUrl || replaceInData ) {\n\n\t\t// Get callback name, remembering preexisting value associated with it\n\t\tcallbackName = s.jsonpCallback = jQuery.isFunction( s.jsonpCallback ) ?\n\t\t\ts.jsonpCallback() :\n\t\t\ts.jsonpCallback;\n\t\toverwritten = window[ callbackName ];\n\n\t\t// Insert callback into url or form data\n\t\tif ( replaceInUrl ) {\n\t\t\ts.url = url.replace( rjsonp, \"$1\" + callbackName );\n\t\t} else if ( replaceInData ) {\n\t\t\ts.data = data.replace( rjsonp, \"$1\" + callbackName );\n\t\t} else if ( hasCallback ) {\n\t\t\ts.url += ( rquestion.test( url ) ? \"&\" : \"?\" ) + s.jsonp + \"=\" + callbackName;\n\t\t}\n\n\t\t// Use data converter to retrieve json after script execution\n\t\ts.converters[\"script json\"] = function() {\n\t\t\tif ( !responseContainer ) {\n\t\t\t\tjQuery.error( callbackName + \" was not called\" );\n\t\t\t}\n\t\t\treturn responseContainer[ 0 ];\n\t\t};\n\n\t\t// force json dataType\n\t\ts.dataTypes[ 0 ] = \"json\";\n\n\t\t// Install callback\n\t\twindow[ callbackName ] = function() {\n\t\t\tresponseContainer = arguments;\n\t\t};\n\n\t\t// Clean-up function (fires after converters)\n\t\tjqXHR.always(function() {\n\t\t\t// Restore preexisting value\n\t\t\twindow[ callbackName ] = overwritten;\n\n\t\t\t// Save back as free\n\t\t\tif ( s[ callbackName ] ) {\n\t\t\t\t// make sure that re-using the options doesn't screw things around\n\t\t\t\ts.jsonpCallback = originalSettings.jsonpCallback;\n\n\t\t\t\t// save the callback name for future use\n\t\t\t\toldCallbacks.push( callbackName );\n\t\t\t}\n\n\t\t\t// Call if it was a function and we have a response\n\t\t\tif ( responseContainer && jQuery.isFunction( overwritten ) ) {\n\t\t\t\toverwritten( responseContainer[ 0 ] );\n\t\t\t}\n\n\t\t\tresponseContainer = overwritten = undefined;\n\t\t});\n\n\t\t// Delegate to script\n\t\treturn \"script\";\n\t}\n});\n// Install script dataType\njQuery.ajaxSetup({\n\taccepts: {\n\t\tscript: \"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript\"\n\t},\n\tcontents: {\n\t\tscript: /javascript|ecmascript/\n\t},\n\tconverters: {\n\t\t\"text script\": function( text ) {\n\t\t\tjQuery.globalEval( text );\n\t\t\treturn text;\n\t\t}\n\t}\n});\n\n// Handle cache's special case and global\njQuery.ajaxPrefilter( \"script\", function( s ) {\n\tif ( s.cache === undefined ) {\n\t\ts.cache = false;\n\t}\n\tif ( s.crossDomain ) {\n\t\ts.type = \"GET\";\n\t\ts.global = false;\n\t}\n});\n\n// Bind script tag hack transport\njQuery.ajaxTransport( \"script\", function(s) {\n\n\t// This transport only deals with cross domain requests\n\tif ( s.crossDomain ) {\n\n\t\tvar script,\n\t\t\thead = document.head || document.getElementsByTagName( \"head\" )[0] || document.documentElement;\n\n\t\treturn {\n\n\t\t\tsend: function( _, callback ) {\n\n\t\t\t\tscript = document.createElement( \"script\" );\n\n\t\t\t\tscript.async = \"async\";\n\n\t\t\t\tif ( s.scriptCharset ) {\n\t\t\t\t\tscript.charset = s.scriptCharset;\n\t\t\t\t}\n\n\t\t\t\tscript.src = s.url;\n\n\t\t\t\t// Attach handlers for all browsers\n\t\t\t\tscript.onload = script.onreadystatechange = function( _, isAbort ) {\n\n\t\t\t\t\tif ( isAbort || !script.readyState || /loaded|complete/.test( script.readyState ) ) {\n\n\t\t\t\t\t\t// Handle memory leak in IE\n\t\t\t\t\t\tscript.onload = script.onreadystatechange = null;\n\n\t\t\t\t\t\t// Remove the script\n\t\t\t\t\t\tif ( head && script.parentNode ) {\n\t\t\t\t\t\t\thead.removeChild( script );\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Dereference the script\n\t\t\t\t\t\tscript = undefined;\n\n\t\t\t\t\t\t// Callback if not abort\n\t\t\t\t\t\tif ( !isAbort ) {\n\t\t\t\t\t\t\tcallback( 200, \"success\" );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\t// Use insertBefore instead of appendChild  to circumvent an IE6 bug.\n\t\t\t\t// This arises when a base node is used (#2709 and #4378).\n\t\t\t\thead.insertBefore( script, head.firstChild );\n\t\t\t},\n\n\t\t\tabort: function() {\n\t\t\t\tif ( script ) {\n\t\t\t\t\tscript.onload( 0, 1 );\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t}\n});\nvar xhrCallbacks,\n\t// #5280: Internet Explorer will keep connections alive if we don't abort on unload\n\txhrOnUnloadAbort = window.ActiveXObject ? function() {\n\t\t// Abort all pending requests\n\t\tfor ( var key in xhrCallbacks ) {\n\t\t\txhrCallbacks[ key ]( 0, 1 );\n\t\t}\n\t} : false,\n\txhrId = 0;\n\n// Functions to create xhrs\nfunction createStandardXHR() {\n\ttry {\n\t\treturn new window.XMLHttpRequest();\n\t} catch( e ) {}\n}\n\nfunction createActiveXHR() {\n\ttry {\n\t\treturn new window.ActiveXObject( \"Microsoft.XMLHTTP\" );\n\t} catch( e ) {}\n}\n\n// Create the request object\n// (This is still attached to ajaxSettings for backward compatibility)\njQuery.ajaxSettings.xhr = window.ActiveXObject ?\n\t/* Microsoft failed to properly\n\t * implement the XMLHttpRequest in IE7 (can't request local files),\n\t * so we use the ActiveXObject when it is available\n\t * Additionally XMLHttpRequest can be disabled in IE7/IE8 so\n\t * we need a fallback.\n\t */\n\tfunction() {\n\t\treturn !this.isLocal && createStandardXHR() || createActiveXHR();\n\t} :\n\t// For all other browsers, use the standard XMLHttpRequest object\n\tcreateStandardXHR;\n\n// Determine support properties\n(function( xhr ) {\n\tjQuery.extend( jQuery.support, {\n\t\tajax: !!xhr,\n\t\tcors: !!xhr && ( \"withCredentials\" in xhr )\n\t});\n})( jQuery.ajaxSettings.xhr() );\n\n// Create transport if the browser can provide an xhr\nif ( jQuery.support.ajax ) {\n\n\tjQuery.ajaxTransport(function( s ) {\n\t\t// Cross domain only allowed if supported through XMLHttpRequest\n\t\tif ( !s.crossDomain || jQuery.support.cors ) {\n\n\t\t\tvar callback;\n\n\t\t\treturn {\n\t\t\t\tsend: function( headers, complete ) {\n\n\t\t\t\t\t// Get a new xhr\n\t\t\t\t\tvar handle, i,\n\t\t\t\t\t\txhr = s.xhr();\n\n\t\t\t\t\t// Open the socket\n\t\t\t\t\t// Passing null username, generates a login popup on Opera (#2865)\n\t\t\t\t\tif ( s.username ) {\n\t\t\t\t\t\txhr.open( s.type, s.url, s.async, s.username, s.password );\n\t\t\t\t\t} else {\n\t\t\t\t\t\txhr.open( s.type, s.url, s.async );\n\t\t\t\t\t}\n\n\t\t\t\t\t// Apply custom fields if provided\n\t\t\t\t\tif ( s.xhrFields ) {\n\t\t\t\t\t\tfor ( i in s.xhrFields ) {\n\t\t\t\t\t\t\txhr[ i ] = s.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 ( s.mimeType && xhr.overrideMimeType ) {\n\t\t\t\t\t\txhr.overrideMimeType( s.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 ( !s.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// Need an extra try/catch for cross domain requests in Firefox 3\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfor ( i in headers ) {\n\t\t\t\t\t\t\txhr.setRequestHeader( i, headers[ i ] );\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch( _ ) {}\n\n\t\t\t\t\t// Do send the request\n\t\t\t\t\t// This may raise an exception which is actually\n\t\t\t\t\t// handled in jQuery.ajax (so no try/catch here)\n\t\t\t\t\txhr.send( ( s.hasContent && s.data ) || null );\n\n\t\t\t\t\t// Listener\n\t\t\t\t\tcallback = function( _, isAbort ) {\n\n\t\t\t\t\t\tvar status,\n\t\t\t\t\t\t\tstatusText,\n\t\t\t\t\t\t\tresponseHeaders,\n\t\t\t\t\t\t\tresponses,\n\t\t\t\t\t\t\txml;\n\n\t\t\t\t\t\t// Firefox throws exceptions when accessing properties\n\t\t\t\t\t\t// of an xhr when a network error occurred\n\t\t\t\t\t\t// http://helpful.knobs-dials.com/index.php/Component_returned_failure_code:_0x80040111_(NS_ERROR_NOT_AVAILABLE)\n\t\t\t\t\t\ttry {\n\n\t\t\t\t\t\t\t// Was never called and is aborted or complete\n\t\t\t\t\t\t\tif ( callback && ( isAbort || xhr.readyState === 4 ) ) {\n\n\t\t\t\t\t\t\t\t// Only called once\n\t\t\t\t\t\t\t\tcallback = undefined;\n\n\t\t\t\t\t\t\t\t// Do not keep as active anymore\n\t\t\t\t\t\t\t\tif ( handle ) {\n\t\t\t\t\t\t\t\t\txhr.onreadystatechange = jQuery.noop;\n\t\t\t\t\t\t\t\t\tif ( xhrOnUnloadAbort ) {\n\t\t\t\t\t\t\t\t\t\tdelete xhrCallbacks[ handle ];\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\t// If it's an abort\n\t\t\t\t\t\t\t\tif ( isAbort ) {\n\t\t\t\t\t\t\t\t\t// Abort it manually if needed\n\t\t\t\t\t\t\t\t\tif ( xhr.readyState !== 4 ) {\n\t\t\t\t\t\t\t\t\t\txhr.abort();\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\tstatus = xhr.status;\n\t\t\t\t\t\t\t\t\tresponseHeaders = xhr.getAllResponseHeaders();\n\t\t\t\t\t\t\t\t\tresponses = {};\n\t\t\t\t\t\t\t\t\txml = xhr.responseXML;\n\n\t\t\t\t\t\t\t\t\t// Construct response list\n\t\t\t\t\t\t\t\t\tif ( xml && xml.documentElement /* #4958 */ ) {\n\t\t\t\t\t\t\t\t\t\tresponses.xml = xml;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t// When requesting binary data, IE6-9 will throw an exception\n\t\t\t\t\t\t\t\t\t// on any attempt to access responseText (#11426)\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\tresponses.text = xhr.responseText;\n\t\t\t\t\t\t\t\t\t} catch( _ ) {\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t// Firefox throws an exception when accessing\n\t\t\t\t\t\t\t\t\t// statusText for faulty cross-domain requests\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\tstatusText = xhr.statusText;\n\t\t\t\t\t\t\t\t\t} catch( e ) {\n\t\t\t\t\t\t\t\t\t\t// We normalize with Webkit giving an empty statusText\n\t\t\t\t\t\t\t\t\t\tstatusText = \"\";\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t// Filter status for non standard behaviors\n\n\t\t\t\t\t\t\t\t\t// If the request is local and we have data: assume a success\n\t\t\t\t\t\t\t\t\t// (success with no data won't get notified, that's the best we\n\t\t\t\t\t\t\t\t\t// can do given current implementations)\n\t\t\t\t\t\t\t\t\tif ( !status && s.isLocal && !s.crossDomain ) {\n\t\t\t\t\t\t\t\t\t\tstatus = responses.text ? 200 : 404;\n\t\t\t\t\t\t\t\t\t// IE - #1450: sometimes returns 1223 when it should be 204\n\t\t\t\t\t\t\t\t\t} else if ( status === 1223 ) {\n\t\t\t\t\t\t\t\t\t\tstatus = 204;\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} catch( firefoxAccessException ) {\n\t\t\t\t\t\t\tif ( !isAbort ) {\n\t\t\t\t\t\t\t\tcomplete( -1, firefoxAccessException );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Call complete if needed\n\t\t\t\t\t\tif ( responses ) {\n\t\t\t\t\t\t\tcomplete( status, statusText, responses, responseHeaders );\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\n\t\t\t\t\tif ( !s.async ) {\n\t\t\t\t\t\t// if we're in sync mode we fire the callback\n\t\t\t\t\t\tcallback();\n\t\t\t\t\t} else if ( xhr.readyState === 4 ) {\n\t\t\t\t\t\t// (IE6 & IE7) if it's in cache and has been\n\t\t\t\t\t\t// retrieved directly we need to fire the callback\n\t\t\t\t\t\tsetTimeout( callback, 0 );\n\t\t\t\t\t} else {\n\t\t\t\t\t\thandle = ++xhrId;\n\t\t\t\t\t\tif ( xhrOnUnloadAbort ) {\n\t\t\t\t\t\t\t// Create the active xhrs callbacks list if needed\n\t\t\t\t\t\t\t// and attach the unload handler\n\t\t\t\t\t\t\tif ( !xhrCallbacks ) {\n\t\t\t\t\t\t\t\txhrCallbacks = {};\n\t\t\t\t\t\t\t\tjQuery( window ).unload( xhrOnUnloadAbort );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// Add to list of active xhrs callbacks\n\t\t\t\t\t\t\txhrCallbacks[ handle ] = callback;\n\t\t\t\t\t\t}\n\t\t\t\t\t\txhr.onreadystatechange = callback;\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(0,1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t};\n\t\t}\n\t});\n}\nvar fxNow, timerId,\n\trfxtypes = /^(?:toggle|show|hide)$/,\n\trfxnum = new RegExp( \"^(?:([-+])=|)(\" + core_pnum + \")([a-z%]*)$\", \"i\" ),\n\trrun = /queueHooks$/,\n\tanimationPrefilters = [ defaultPrefilter ],\n\ttweeners = {\n\t\t\"*\": [function( prop, value ) {\n\t\t\tvar end, unit, prevScale,\n\t\t\t\ttween = this.createTween( prop, value ),\n\t\t\t\tparts = rfxnum.exec( value ),\n\t\t\t\ttarget = tween.cur(),\n\t\t\t\tstart = +target || 0,\n\t\t\t\tscale = 1;\n\n\t\t\tif ( parts ) {\n\t\t\t\tend = +parts[2];\n\t\t\t\tunit = parts[3] || ( jQuery.cssNumber[ prop ] ? \"\" : \"px\" );\n\n\t\t\t\t// We need to compute starting value\n\t\t\t\tif ( unit !== \"px\" && start ) {\n\t\t\t\t\t// Iteratively approximate from a nonzero starting point\n\t\t\t\t\t// Prefer the current property, because this process will be trivial if it uses the same units\n\t\t\t\t\t// Fallback to end or a simple constant\n\t\t\t\t\tstart = jQuery.css( tween.elem, prop, true ) || end || 1;\n\n\t\t\t\t\tdo {\n\t\t\t\t\t\t// If previous iteration zeroed out, double until we get *something*\n\t\t\t\t\t\t// Use a string for doubling factor so we don't accidentally see scale as unchanged below\n\t\t\t\t\t\tprevScale = scale = scale || \".5\";\n\n\t\t\t\t\t\t// Adjust and apply\n\t\t\t\t\t\tstart = start / scale;\n\t\t\t\t\t\tjQuery.style( tween.elem, prop, start + unit );\n\n\t\t\t\t\t\t// Update scale, tolerating zeroes from tween.cur()\n\t\t\t\t\t\tscale = tween.cur() / target;\n\n\t\t\t\t\t// Stop looping if we've hit the mark or scale is unchanged\n\t\t\t\t\t} while ( scale !== 1 && scale !== prevScale );\n\t\t\t\t}\n\n\t\t\t\ttween.unit = unit;\n\t\t\t\ttween.start = start;\n\t\t\t\t// If a +=/-= token was provided, we're doing a relative animation\n\t\t\t\ttween.end = parts[1] ? start + ( parts[1] + 1 ) * end : end;\n\t\t\t}\n\t\t\treturn tween;\n\t\t}]\n\t};\n\n// Animations created synchronously will run synchronously\nfunction createFxNow() {\n\tsetTimeout(function() {\n\t\tfxNow = undefined;\n\t}, 0 );\n\treturn ( fxNow = jQuery.now() );\n}\n\nfunction createTweens( animation, props ) {\n\tjQuery.each( props, function( prop, value ) {\n\t\tvar collection = ( tweeners[ prop ] || [] ).concat( tweeners[ \"*\" ] ),\n\t\t\tindex = 0,\n\t\t\tlength = collection.length;\n\t\tfor ( ; index < length; index++ ) {\n\t\t\tif ( collection[ index ].call( animation, prop, value ) ) {\n\n\t\t\t\t// we're done with this property\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t});\n}\n\nfunction Animation( elem, properties, options ) {\n\tvar result,\n\t\tindex = 0,\n\t\ttweenerIndex = 0,\n\t\tlength = animationPrefilters.length,\n\t\tdeferred = jQuery.Deferred().always( function() {\n\t\t\t// don't match elem in the :animated selector\n\t\t\tdelete tick.elem;\n\t\t}),\n\t\ttick = function() {\n\t\t\tvar currentTime = fxNow || createFxNow(),\n\t\t\t\tremaining = Math.max( 0, animation.startTime + animation.duration - currentTime ),\n\t\t\t\tpercent = 1 - ( remaining / animation.duration || 0 ),\n\t\t\t\tindex = 0,\n\t\t\t\tlength = animation.tweens.length;\n\n\t\t\tfor ( ; index < length ; index++ ) {\n\t\t\t\tanimation.tweens[ index ].run( percent );\n\t\t\t}\n\n\t\t\tdeferred.notifyWith( elem, [ animation, percent, remaining ]);\n\n\t\t\tif ( percent < 1 && length ) {\n\t\t\t\treturn remaining;\n\t\t\t} else {\n\t\t\t\tdeferred.resolveWith( elem, [ animation ] );\n\t\t\t\treturn false;\n\t\t\t}\n\t\t},\n\t\tanimation = deferred.promise({\n\t\t\telem: elem,\n\t\t\tprops: jQuery.extend( {}, properties ),\n\t\t\topts: jQuery.extend( true, { specialEasing: {} }, options ),\n\t\t\toriginalProperties: properties,\n\t\t\toriginalOptions: options,\n\t\t\tstartTime: fxNow || createFxNow(),\n\t\t\tduration: options.duration,\n\t\t\ttweens: [],\n\t\t\tcreateTween: function( prop, end, easing ) {\n\t\t\t\tvar tween = jQuery.Tween( elem, animation.opts, prop, end,\n\t\t\t\t\t\tanimation.opts.specialEasing[ prop ] || animation.opts.easing );\n\t\t\t\tanimation.tweens.push( tween );\n\t\t\t\treturn tween;\n\t\t\t},\n\t\t\tstop: function( gotoEnd ) {\n\t\t\t\tvar index = 0,\n\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// otherwise we skip this part\n\t\t\t\t\tlength = gotoEnd ? animation.tweens.length : 0;\n\n\t\t\t\tfor ( ; index < length ; index++ ) {\n\t\t\t\t\tanimation.tweens[ index ].run( 1 );\n\t\t\t\t}\n\n\t\t\t\t// resolve when we played the last frame\n\t\t\t\t// otherwise, reject\n\t\t\t\tif ( gotoEnd ) {\n\t\t\t\t\tdeferred.resolveWith( elem, [ animation, gotoEnd ] );\n\t\t\t\t} else {\n\t\t\t\t\tdeferred.rejectWith( elem, [ animation, gotoEnd ] );\n\t\t\t\t}\n\t\t\t\treturn this;\n\t\t\t}\n\t\t}),\n\t\tprops = animation.props;\n\n\tpropFilter( props, animation.opts.specialEasing );\n\n\tfor ( ; index < length ; index++ ) {\n\t\tresult = animationPrefilters[ index ].call( animation, elem, props, animation.opts );\n\t\tif ( result ) {\n\t\t\treturn result;\n\t\t}\n\t}\n\n\tcreateTweens( animation, props );\n\n\tif ( jQuery.isFunction( animation.opts.start ) ) {\n\t\tanimation.opts.start.call( elem, animation );\n\t}\n\n\tjQuery.fx.timer(\n\t\tjQuery.extend( tick, {\n\t\t\tanim: animation,\n\t\t\tqueue: animation.opts.queue,\n\t\t\telem: elem\n\t\t})\n\t);\n\n\t// attach callbacks from options\n\treturn animation.progress( animation.opts.progress )\n\t\t.done( animation.opts.done, animation.opts.complete )\n\t\t.fail( animation.opts.fail )\n\t\t.always( animation.opts.always );\n}\n\nfunction propFilter( props, specialEasing ) {\n\tvar index, name, easing, value, hooks;\n\n\t// camelCase, specialEasing and expand cssHook pass\n\tfor ( index in props ) {\n\t\tname = jQuery.camelCase( index );\n\t\teasing = specialEasing[ name ];\n\t\tvalue = props[ index ];\n\t\tif ( jQuery.isArray( value ) ) {\n\t\t\teasing = value[ 1 ];\n\t\t\tvalue = props[ index ] = value[ 0 ];\n\t\t}\n\n\t\tif ( index !== name ) {\n\t\t\tprops[ name ] = value;\n\t\t\tdelete props[ index ];\n\t\t}\n\n\t\thooks = jQuery.cssHooks[ name ];\n\t\tif ( hooks && \"expand\" in hooks ) {\n\t\t\tvalue = hooks.expand( value );\n\t\t\tdelete props[ name ];\n\n\t\t\t// not quite $.extend, this wont overwrite keys already present.\n\t\t\t// also - reusing 'index' from above because we have the correct \"name\"\n\t\t\tfor ( index in value ) {\n\t\t\t\tif ( !( index in props ) ) {\n\t\t\t\t\tprops[ index ] = value[ index ];\n\t\t\t\t\tspecialEasing[ index ] = easing;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tspecialEasing[ name ] = easing;\n\t\t}\n\t}\n}\n\njQuery.Animation = jQuery.extend( Animation, {\n\n\ttweener: function( props, callback ) {\n\t\tif ( jQuery.isFunction( props ) ) {\n\t\t\tcallback = props;\n\t\t\tprops = [ \"*\" ];\n\t\t} else {\n\t\t\tprops = props.split(\" \");\n\t\t}\n\n\t\tvar prop,\n\t\t\tindex = 0,\n\t\t\tlength = props.length;\n\n\t\tfor ( ; index < length ; index++ ) {\n\t\t\tprop = props[ index ];\n\t\t\ttweeners[ prop ] = tweeners[ prop ] || [];\n\t\t\ttweeners[ prop ].unshift( callback );\n\t\t}\n\t},\n\n\tprefilter: function( callback, prepend ) {\n\t\tif ( prepend ) {\n\t\t\tanimationPrefilters.unshift( callback );\n\t\t} else {\n\t\t\tanimationPrefilters.push( callback );\n\t\t}\n\t}\n});\n\nfunction defaultPrefilter( elem, props, opts ) {\n\tvar index, prop, value, length, dataShow, tween, hooks, oldfire,\n\t\tanim = this,\n\t\tstyle = elem.style,\n\t\torig = {},\n\t\thandled = [],\n\t\thidden = elem.nodeType && isHidden( elem );\n\n\t// handle queue: false promises\n\tif ( !opts.queue ) {\n\t\thooks = jQuery._queueHooks( elem, \"fx\" );\n\t\tif ( hooks.unqueued == null ) {\n\t\t\thooks.unqueued = 0;\n\t\t\toldfire = hooks.empty.fire;\n\t\t\thooks.empty.fire = function() {\n\t\t\t\tif ( !hooks.unqueued ) {\n\t\t\t\t\toldfire();\n\t\t\t\t}\n\t\t\t};\n\t\t}\n\t\thooks.unqueued++;\n\n\t\tanim.always(function() {\n\t\t\t// doing this makes sure that the complete handler will be called\n\t\t\t// before this completes\n\t\t\tanim.always(function() {\n\t\t\t\thooks.unqueued--;\n\t\t\t\tif ( !jQuery.queue( elem, \"fx\" ).length ) {\n\t\t\t\t\thooks.empty.fire();\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\t}\n\n\t// height/width overflow pass\n\tif ( elem.nodeType === 1 && ( \"height\" in props || \"width\" in props ) ) {\n\t\t// Make sure that nothing sneaks out\n\t\t// Record all 3 overflow attributes because IE does not\n\t\t// change the overflow attribute when overflowX and\n\t\t// overflowY are set to the same value\n\t\topts.overflow = [ style.overflow, style.overflowX, style.overflowY ];\n\n\t\t// Set display property to inline-block for height/width\n\t\t// animations on inline elements that are having width/height animated\n\t\tif ( jQuery.css( elem, \"display\" ) === \"inline\" &&\n\t\t\t\tjQuery.css( elem, \"float\" ) === \"none\" ) {\n\n\t\t\t// inline-level elements accept inline-block;\n\t\t\t// block-level elements need to be inline with layout\n\t\t\tif ( !jQuery.support.inlineBlockNeedsLayout || css_defaultDisplay( elem.nodeName ) === \"inline\" ) {\n\t\t\t\tstyle.display = \"inline-block\";\n\n\t\t\t} else {\n\t\t\t\tstyle.zoom = 1;\n\t\t\t}\n\t\t}\n\t}\n\n\tif ( opts.overflow ) {\n\t\tstyle.overflow = \"hidden\";\n\t\tif ( !jQuery.support.shrinkWrapBlocks ) {\n\t\t\tanim.done(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\t}\n\n\n\t// show/hide pass\n\tfor ( index in props ) {\n\t\tvalue = props[ index ];\n\t\tif ( rfxtypes.exec( value ) ) {\n\t\t\tdelete props[ index ];\n\t\t\tif ( value === ( hidden ? \"hide\" : \"show\" ) ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\thandled.push( index );\n\t\t}\n\t}\n\n\tlength = handled.length;\n\tif ( length ) {\n\t\tdataShow = jQuery._data( elem, \"fxshow\" ) || jQuery._data( elem, \"fxshow\", {} );\n\t\tif ( hidden ) {\n\t\t\tjQuery( elem ).show();\n\t\t} else {\n\t\t\tanim.done(function() {\n\t\t\t\tjQuery( elem ).hide();\n\t\t\t});\n\t\t}\n\t\tanim.done(function() {\n\t\t\tvar prop;\n\t\t\tjQuery.removeData( elem, \"fxshow\", true );\n\t\t\tfor ( prop in orig ) {\n\t\t\t\tjQuery.style( elem, prop, orig[ prop ] );\n\t\t\t}\n\t\t});\n\t\tfor ( index = 0 ; index < length ; index++ ) {\n\t\t\tprop = handled[ index ];\n\t\t\ttween = anim.createTween( prop, hidden ? dataShow[ prop ] : 0 );\n\t\t\torig[ prop ] = dataShow[ prop ] || jQuery.style( elem, prop );\n\n\t\t\tif ( !( prop in dataShow ) ) {\n\t\t\t\tdataShow[ prop ] = tween.start;\n\t\t\t\tif ( hidden ) {\n\t\t\t\t\ttween.end = tween.start;\n\t\t\t\t\ttween.start = prop === \"width\" || prop === \"height\" ? 1 : 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n\nfunction Tween( elem, options, prop, end, easing ) {\n\treturn new Tween.prototype.init( elem, options, prop, end, easing );\n}\njQuery.Tween = Tween;\n\nTween.prototype = {\n\tconstructor: Tween,\n\tinit: function( elem, options, prop, end, easing, unit ) {\n\t\tthis.elem = elem;\n\t\tthis.prop = prop;\n\t\tthis.easing = easing || \"swing\";\n\t\tthis.options = options;\n\t\tthis.start = this.now = this.cur();\n\t\tthis.end = end;\n\t\tthis.unit = unit || ( jQuery.cssNumber[ prop ] ? \"\" : \"px\" );\n\t},\n\tcur: function() {\n\t\tvar hooks = Tween.propHooks[ this.prop ];\n\n\t\treturn hooks && hooks.get ?\n\t\t\thooks.get( this ) :\n\t\t\tTween.propHooks._default.get( this );\n\t},\n\trun: function( percent ) {\n\t\tvar eased,\n\t\t\thooks = Tween.propHooks[ this.prop ];\n\n\t\tif ( this.options.duration ) {\n\t\t\tthis.pos = eased = jQuery.easing[ this.easing ](\n\t\t\t\tpercent, this.options.duration * percent, 0, 1, this.options.duration\n\t\t\t);\n\t\t} else {\n\t\t\tthis.pos = eased = percent;\n\t\t}\n\t\tthis.now = ( this.end - this.start ) * eased + this.start;\n\n\t\tif ( this.options.step ) {\n\t\t\tthis.options.step.call( this.elem, this.now, this );\n\t\t}\n\n\t\tif ( hooks && hooks.set ) {\n\t\t\thooks.set( this );\n\t\t} else {\n\t\t\tTween.propHooks._default.set( this );\n\t\t}\n\t\treturn this;\n\t}\n};\n\nTween.prototype.init.prototype = Tween.prototype;\n\nTween.propHooks = {\n\t_default: {\n\t\tget: function( tween ) {\n\t\t\tvar result;\n\n\t\t\tif ( tween.elem[ tween.prop ] != null &&\n\t\t\t\t(!tween.elem.style || tween.elem.style[ tween.prop ] == null) ) {\n\t\t\t\treturn tween.elem[ tween.prop ];\n\t\t\t}\n\n\t\t\t// passing any value as a 4th parameter to .css will automatically\n\t\t\t// attempt a parseFloat and fallback to a string if the parse fails\n\t\t\t// so, simple values such as \"10px\" are parsed to Float.\n\t\t\t// complex values such as \"rotate(1rad)\" are returned as is.\n\t\t\tresult = jQuery.css( tween.elem, tween.prop, false, \"\" );\n\t\t\t// Empty strings, null, undefined and \"auto\" are converted to 0.\n\t\t\treturn !result || result === \"auto\" ? 0 : result;\n\t\t},\n\t\tset: function( tween ) {\n\t\t\t// use step hook for back compat - use cssHook if its there - use .style if its\n\t\t\t// available and use plain properties where available\n\t\t\tif ( jQuery.fx.step[ tween.prop ] ) {\n\t\t\t\tjQuery.fx.step[ tween.prop ]( tween );\n\t\t\t} else if ( tween.elem.style && ( tween.elem.style[ jQuery.cssProps[ tween.prop ] ] != null || jQuery.cssHooks[ tween.prop ] ) ) {\n\t\t\t\tjQuery.style( tween.elem, tween.prop, tween.now + tween.unit );\n\t\t\t} else {\n\t\t\t\ttween.elem[ tween.prop ] = tween.now;\n\t\t\t}\n\t\t}\n\t}\n};\n\n// Remove in 2.0 - this supports IE8's panic based approach\n// to setting things on disconnected nodes\n\nTween.propHooks.scrollTop = Tween.propHooks.scrollLeft = {\n\tset: function( tween ) {\n\t\tif ( tween.elem.nodeType && tween.elem.parentNode ) {\n\t\t\ttween.elem[ tween.prop ] = tween.now;\n\t\t}\n\t}\n};\n\njQuery.each([ \"toggle\", \"show\", \"hide\" ], function( i, name ) {\n\tvar cssFn = jQuery.fn[ name ];\n\tjQuery.fn[ name ] = function( speed, easing, callback ) {\n\t\treturn speed == null || typeof speed === \"boolean\" ||\n\t\t\t// special check for .toggle( handler, handler, ... )\n\t\t\t( !i && jQuery.isFunction( speed ) && jQuery.isFunction( easing ) ) ?\n\t\t\tcssFn.apply( this, arguments ) :\n\t\t\tthis.animate( genFx( name, true ), speed, easing, callback );\n\t};\n});\n\njQuery.fn.extend({\n\tfadeTo: function( speed, to, easing, callback ) {\n\n\t\t// show any hidden elements after setting opacity to 0\n\t\treturn this.filter( isHidden ).css( \"opacity\", 0 ).show()\n\n\t\t\t// animate to the value specified\n\t\t\t.end().animate({ opacity: to }, speed, easing, callback );\n\t},\n\tanimate: function( prop, speed, easing, callback ) {\n\t\tvar empty = jQuery.isEmptyObject( prop ),\n\t\t\toptall = jQuery.speed( speed, easing, callback ),\n\t\t\tdoAnimation = function() {\n\t\t\t\t// Operate on a copy of prop so per-property easing won't be lost\n\t\t\t\tvar anim = Animation( this, jQuery.extend( {}, prop ), optall );\n\n\t\t\t\t// Empty animations resolve immediately\n\t\t\t\tif ( empty ) {\n\t\t\t\t\tanim.stop( true );\n\t\t\t\t}\n\t\t\t};\n\n\t\treturn empty || optall.queue === false ?\n\t\t\tthis.each( doAnimation ) :\n\t\t\tthis.queue( optall.queue, doAnimation );\n\t},\n\tstop: function( type, clearQueue, gotoEnd ) {\n\t\tvar stopQueue = function( hooks ) {\n\t\t\tvar stop = hooks.stop;\n\t\t\tdelete hooks.stop;\n\t\t\tstop( gotoEnd );\n\t\t};\n\n\t\tif ( typeof type !== \"string\" ) {\n\t\t\tgotoEnd = clearQueue;\n\t\t\tclearQueue = type;\n\t\t\ttype = undefined;\n\t\t}\n\t\tif ( clearQueue && type !== false ) {\n\t\t\tthis.queue( type || \"fx\", [] );\n\t\t}\n\n\t\treturn this.each(function() {\n\t\t\tvar dequeue = true,\n\t\t\t\tindex = type != null && type + \"queueHooks\",\n\t\t\t\ttimers = jQuery.timers,\n\t\t\t\tdata = jQuery._data( this );\n\n\t\t\tif ( index ) {\n\t\t\t\tif ( data[ index ] && data[ index ].stop ) {\n\t\t\t\t\tstopQueue( data[ index ] );\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tfor ( index in data ) {\n\t\t\t\t\tif ( data[ index ] && data[ index ].stop && rrun.test( index ) ) {\n\t\t\t\t\t\tstopQueue( data[ index ] );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor ( index = timers.length; index--; ) {\n\t\t\t\tif ( timers[ index ].elem === this && (type == null || timers[ index ].queue === type) ) {\n\t\t\t\t\ttimers[ index ].anim.stop( gotoEnd );\n\t\t\t\t\tdequeue = false;\n\t\t\t\t\ttimers.splice( index, 1 );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// start the next in the queue if the last step wasn't forced\n\t\t\t// timers currently will call their complete callbacks, which will dequeue\n\t\t\t// but only if they were gotoEnd\n\t\t\tif ( dequeue || !gotoEnd ) {\n\t\t\t\tjQuery.dequeue( this, type );\n\t\t\t}\n\t\t});\n\t}\n});\n\n// Generate parameters to create a standard animation\nfunction genFx( type, includeWidth ) {\n\tvar which,\n\t\tattrs = { height: type },\n\t\ti = 0;\n\n\t// if we include width, step value is 1 to do all cssExpand values,\n\t// if we don't include width, step value is 2 to skip over Left and Right\n\tincludeWidth = includeWidth? 1 : 0;\n\tfor( ; i < 4 ; i += 2 - includeWidth ) {\n\t\twhich = cssExpand[ i ];\n\t\tattrs[ \"margin\" + which ] = attrs[ \"padding\" + which ] = type;\n\t}\n\n\tif ( includeWidth ) {\n\t\tattrs.opacity = attrs.width = type;\n\t}\n\n\treturn attrs;\n}\n\n// Generate shortcuts for custom animations\njQuery.each({\n\tslideDown: genFx(\"show\"),\n\tslideUp: genFx(\"hide\"),\n\tslideToggle: genFx(\"toggle\"),\n\tfadeIn: { opacity: \"show\" },\n\tfadeOut: { opacity: \"hide\" },\n\tfadeToggle: { opacity: \"toggle\" }\n}, function( name, props ) {\n\tjQuery.fn[ name ] = function( speed, easing, callback ) {\n\t\treturn this.animate( props, speed, easing, callback );\n\t};\n});\n\njQuery.speed = function( speed, easing, fn ) {\n\tvar opt = speed && typeof speed === \"object\" ? jQuery.extend( {}, speed ) : {\n\t\tcomplete: fn || !fn && easing ||\n\t\t\tjQuery.isFunction( speed ) && speed,\n\t\tduration: speed,\n\t\teasing: fn && easing || easing && !jQuery.isFunction( easing ) && easing\n\t};\n\n\topt.duration = jQuery.fx.off ? 0 : typeof opt.duration === \"number\" ? opt.duration :\n\t\topt.duration in jQuery.fx.speeds ? jQuery.fx.speeds[ opt.duration ] : jQuery.fx.speeds._default;\n\n\t// normalize opt.queue - true/undefined/null -> \"fx\"\n\tif ( opt.queue == null || opt.queue === true ) {\n\t\topt.queue = \"fx\";\n\t}\n\n\t// Queueing\n\topt.old = opt.complete;\n\n\topt.complete = function() {\n\t\tif ( jQuery.isFunction( opt.old ) ) {\n\t\t\topt.old.call( this );\n\t\t}\n\n\t\tif ( opt.queue ) {\n\t\t\tjQuery.dequeue( this, opt.queue );\n\t\t}\n\t};\n\n\treturn opt;\n};\n\njQuery.easing = {\n\tlinear: function( p ) {\n\t\treturn p;\n\t},\n\tswing: function( p ) {\n\t\treturn 0.5 - Math.cos( p*Math.PI ) / 2;\n\t}\n};\n\njQuery.timers = [];\njQuery.fx = Tween.prototype.init;\njQuery.fx.tick = function() {\n\tvar timer,\n\t\ttimers = jQuery.timers,\n\t\ti = 0;\n\n\tfor ( ; i < timers.length; i++ ) {\n\t\ttimer = timers[ i ];\n\t\t// Checks the timer has not already been removed\n\t\tif ( !timer() && timers[ i ] === timer ) {\n\t\t\ttimers.splice( i--, 1 );\n\t\t}\n\t}\n\n\tif ( !timers.length ) {\n\t\tjQuery.fx.stop();\n\t}\n};\n\njQuery.fx.timer = function( timer ) {\n\tif ( timer() && jQuery.timers.push( timer ) && !timerId ) {\n\t\ttimerId = setInterval( jQuery.fx.tick, jQuery.fx.interval );\n\t}\n};\n\njQuery.fx.interval = 13;\n\njQuery.fx.stop = function() {\n\tclearInterval( timerId );\n\ttimerId = null;\n};\n\njQuery.fx.speeds = {\n\tslow: 600,\n\tfast: 200,\n\t// Default speed\n\t_default: 400\n};\n\n// Back Compat <1.8 extension point\njQuery.fx.step = {};\n\nif ( jQuery.expr && jQuery.expr.filters ) {\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}\nvar rroot = /^(?:body|html)$/i;\n\njQuery.fn.offset = function( options ) {\n\tif ( arguments.length ) {\n\t\treturn options === undefined ?\n\t\t\tthis :\n\t\t\tthis.each(function( i ) {\n\t\t\t\tjQuery.offset.setOffset( this, options, i );\n\t\t\t});\n\t}\n\n\tvar box, docElem, body, win, clientTop, clientLeft, scrollTop, scrollLeft, top, left,\n\t\telem = this[ 0 ],\n\t\tdoc = elem && elem.ownerDocument;\n\n\tif ( !doc ) {\n\t\treturn;\n\t}\n\n\tif ( (body = doc.body) === elem ) {\n\t\treturn jQuery.offset.bodyOffset( elem );\n\t}\n\n\tdocElem = doc.documentElement;\n\n\t// Make sure we're not dealing with a disconnected DOM node\n\tif ( !jQuery.contains( docElem, elem ) ) {\n\t\treturn { top: 0, left: 0 };\n\t}\n\n\tbox = elem.getBoundingClientRect();\n\twin = getWindow( doc );\n\tclientTop  = docElem.clientTop  || body.clientTop  || 0;\n\tclientLeft = docElem.clientLeft || body.clientLeft || 0;\n\tscrollTop  = win.pageYOffset || docElem.scrollTop;\n\tscrollLeft = win.pageXOffset || docElem.scrollLeft;\n\ttop  = box.top  + scrollTop  - clientTop;\n\tleft = box.left + scrollLeft - clientLeft;\n\n\treturn { top: top, left: left };\n};\n\njQuery.offset = {\n\n\tbodyOffset: function( body ) {\n\t\tvar top = body.offsetTop,\n\t\t\tleft = body.offsetLeft;\n\n\t\tif ( jQuery.support.doesNotIncludeMarginInBodyOffset ) {\n\t\t\ttop  += parseFloat( jQuery.css(body, \"marginTop\") ) || 0;\n\t\t\tleft += parseFloat( jQuery.css(body, \"marginLeft\") ) || 0;\n\t\t}\n\n\t\treturn { top: top, left: left };\n\t},\n\n\tsetOffset: function( elem, options, i ) {\n\t\tvar position = jQuery.css( elem, \"position\" );\n\n\t\t// set position first, in-case top/left are set even on static elem\n\t\tif ( position === \"static\" ) {\n\t\t\telem.style.position = \"relative\";\n\t\t}\n\n\t\tvar curElem = jQuery( elem ),\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\" ) && jQuery.inArray(\"auto\", [curCSSTop, curCSSLeft]) > -1,\n\t\t\tprops = {}, curPosition = {}, curTop, curLeft;\n\n\t\t// need to be able to calculate position if either top or left is auto and position is either absolute or fixed\n\t\tif ( calculatePosition ) {\n\t\t\tcurPosition = curElem.position();\n\t\t\tcurTop = curPosition.top;\n\t\t\tcurLeft = curPosition.left;\n\t\t} else {\n\t\t\tcurTop = parseFloat( curCSSTop ) || 0;\n\t\t\tcurLeft = parseFloat( curCSSLeft ) || 0;\n\t\t}\n\n\t\tif ( jQuery.isFunction( options ) ) {\n\t\t\toptions = options.call( elem, i, curOffset );\n\t\t}\n\n\t\tif ( options.top != null ) {\n\t\t\tprops.top = ( options.top - curOffset.top ) + curTop;\n\t\t}\n\t\tif ( options.left != null ) {\n\t\t\tprops.left = ( options.left - curOffset.left ) + curLeft;\n\t\t}\n\n\t\tif ( \"using\" in options ) {\n\t\t\toptions.using.call( elem, props );\n\t\t} else {\n\t\t\tcurElem.css( props );\n\t\t}\n\t}\n};\n\n\njQuery.fn.extend({\n\n\tposition: function() {\n\t\tif ( !this[0] ) {\n\t\t\treturn;\n\t\t}\n\n\t\tvar elem = this[0],\n\n\t\t// Get *real* offsetParent\n\t\toffsetParent = this.offsetParent(),\n\n\t\t// Get correct offsets\n\t\toffset       = this.offset(),\n\t\tparentOffset = rroot.test(offsetParent[0].nodeName) ? { top: 0, left: 0 } : offsetParent.offset();\n\n\t\t// Subtract element margins\n\t\t// note: when an element has margin: auto the offsetLeft and marginLeft\n\t\t// are the same in Safari causing offset.left to incorrectly be 0\n\t\toffset.top  -= parseFloat( jQuery.css(elem, \"marginTop\") ) || 0;\n\t\toffset.left -= parseFloat( jQuery.css(elem, \"marginLeft\") ) || 0;\n\n\t\t// Add offsetParent borders\n\t\tparentOffset.top  += parseFloat( jQuery.css(offsetParent[0], \"borderTopWidth\") ) || 0;\n\t\tparentOffset.left += parseFloat( jQuery.css(offsetParent[0], \"borderLeftWidth\") ) || 0;\n\n\t\t// Subtract the two offsets\n\t\treturn {\n\t\t\ttop:  offset.top  - parentOffset.top,\n\t\t\tleft: offset.left - parentOffset.left\n\t\t};\n\t},\n\n\toffsetParent: function() {\n\t\treturn this.map(function() {\n\t\t\tvar offsetParent = this.offsetParent || document.body;\n\t\t\twhile ( offsetParent && (!rroot.test(offsetParent.nodeName) && jQuery.css(offsetParent, \"position\") === \"static\") ) {\n\t\t\t\toffsetParent = offsetParent.offsetParent;\n\t\t\t}\n\t\t\treturn offsetParent || document.body;\n\t\t});\n\t}\n});\n\n\n// Create scrollLeft and scrollTop methods\njQuery.each( {scrollLeft: \"pageXOffset\", scrollTop: \"pageYOffset\"}, function( method, prop ) {\n\tvar top = /Y/.test( prop );\n\n\tjQuery.fn[ method ] = function( val ) {\n\t\treturn jQuery.access( this, function( elem, method, val ) {\n\t\t\tvar win = getWindow( elem );\n\n\t\t\tif ( val === undefined ) {\n\t\t\t\treturn win ? (prop in win) ? win[ prop ] :\n\t\t\t\t\twin.document.documentElement[ method ] :\n\t\t\t\t\telem[ method ];\n\t\t\t}\n\n\t\t\tif ( win ) {\n\t\t\t\twin.scrollTo(\n\t\t\t\t\t!top ? val : jQuery( win ).scrollLeft(),\n\t\t\t\t\t top ? val : jQuery( win ).scrollTop()\n\t\t\t\t);\n\n\t\t\t} else {\n\t\t\t\telem[ method ] = val;\n\t\t\t}\n\t\t}, method, val, arguments.length, null );\n\t};\n});\n\nfunction getWindow( elem ) {\n\treturn jQuery.isWindow( elem ) ?\n\t\telem :\n\t\telem.nodeType === 9 ?\n\t\t\telem.defaultView || elem.parentWindow :\n\t\t\tfalse;\n}\n// Create innerHeight, innerWidth, height, width, outerHeight and outerWidth methods\njQuery.each( { Height: \"height\", Width: \"width\" }, function( name, type ) {\n\tjQuery.each( { padding: \"inner\" + name, content: type, \"\": \"outer\" + name }, function( defaultExtra, funcName ) {\n\t\t// margin is only for outerHeight, outerWidth\n\t\tjQuery.fn[ funcName ] = function( margin, value ) {\n\t\t\tvar chainable = arguments.length && ( defaultExtra || typeof margin !== \"boolean\" ),\n\t\t\t\textra = defaultExtra || ( margin === true || value === true ? \"margin\" : \"border\" );\n\n\t\t\treturn jQuery.access( this, function( elem, type, value ) {\n\t\t\t\tvar doc;\n\n\t\t\t\tif ( jQuery.isWindow( elem ) ) {\n\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// isn't a whole lot we can do. See pull request at this URL for discussion:\n\t\t\t\t\t// https://github.com/jquery/jquery/pull/764\n\t\t\t\t\treturn elem.document.documentElement[ \"client\" + name ];\n\t\t\t\t}\n\n\t\t\t\t// Get document width or height\n\t\t\t\tif ( elem.nodeType === 9 ) {\n\t\t\t\t\tdoc = elem.documentElement;\n\n\t\t\t\t\t// Either scroll[Width/Height] or offset[Width/Height] or client[Width/Height], whichever is greatest\n\t\t\t\t\t// unfortunately, this causes bug #3838 in IE6/8 only, but there is currently no good, small way to fix it.\n\t\t\t\t\treturn Math.max(\n\t\t\t\t\t\telem.body[ \"scroll\" + name ], doc[ \"scroll\" + name ],\n\t\t\t\t\t\telem.body[ \"offset\" + name ], doc[ \"offset\" + name ],\n\t\t\t\t\t\tdoc[ \"client\" + name ]\n\t\t\t\t\t);\n\t\t\t\t}\n\n\t\t\t\treturn value === undefined ?\n\t\t\t\t\t// Get width or height on the element, requesting but not forcing parseFloat\n\t\t\t\t\tjQuery.css( elem, type, value, extra ) :\n\n\t\t\t\t\t// Set width or height on the element\n\t\t\t\t\tjQuery.style( elem, type, value, extra );\n\t\t\t}, type, chainable ? margin : undefined, chainable, null );\n\t\t};\n\t});\n});\n// Expose jQuery to the global object\nwindow.jQuery = window.$ = jQuery;\n\n// Expose jQuery as an AMD module, but only for AMD loaders that\n// understand the issues with loading multiple versions of jQuery\n// in a page that all might call define(). The loader will indicate\n// they have special allowances for multiple jQuery versions by\n// specifying define.amd.jQuery = true. Register as a named module,\n// since jQuery can be concatenated with other files that may use define,\n// but not use a proper concatenation script that understands anonymous\n// AMD modules. A named AMD is safest and most robust way to register.\n// Lowercase jquery is used because AMD module names are derived from\n// file names, and jQuery is normally delivered in a lowercase file name.\n// Do this after creating the global so that if an AMD module wants to call\n// noConflict to hide this version of jQuery, it will work.\nif ( typeof define === \"function\" && define.amd && define.amd.jQuery ) {\n\tdefine( \"jquery\", [], function () { return jQuery; } );\n}\n\n})( window );\n"
  },
  {
    "path": "themes/default/assets/javascript/vendor/keymaster.js",
    "content": "//     keymaster.js\n//     (c) 2011 Thomas Fuchs\n//     keymaster.js may be freely distributed under the MIT license.\n\n;(function(global){\n  var k,\n    _handlers = {},\n    _mods = { 16: false, 18: false, 17: false, 91: false },\n    _scope = 'all',\n    // modifier keys\n    _MODIFIERS = {\n      '⇧': 16, shift: 16,\n      '⌥': 18, alt: 18, option: 18,\n      '⌃': 17, ctrl: 17, control: 17,\n      '⌘': 91, command: 91\n    },\n    // special keys\n    _MAP = {\n      backspace: 8, tab: 9, clear: 12,\n      enter: 13, 'return': 13,\n      esc: 27, escape: 27, space: 32,\n      left: 37, up: 38,\n      right: 39, down: 40,\n      del: 46, 'delete': 46,\n      home: 36, end: 35,\n      pageup: 33, pagedown: 34,\n      ',': 188, '.': 190, '/': 191,\n      '`': 192, '-': 189, '=': 187,\n      ';': 186, '\\'': 222,\n      '[': 219, ']': 221, '\\\\': 220\n    };\n\n  for(k=1;k<20;k++) _MODIFIERS['f'+k] = 111+k;\n\n  // IE doesn't support Array#indexOf, so have a simple replacement\n  function index(array, item){\n    var i = array.length;\n    while(i--) if(array[i]===item) return i;\n    return -1;\n  }\n\n  // handle keydown event\n  function dispatch(event, scope){\n    var key, handler, k, i, modifiersMatch;\n    key = event.keyCode;\n\n    // if a modifier key, set the key.<modifierkeyname> property to true and return\n    if(key == 93 || key == 224) key = 91; // right command on webkit, command on Gecko\n    if(key in _mods) {\n      _mods[key] = true;\n      // 'assignKey' from inside this closure is exported to window.key\n      for(k in _MODIFIERS) if(_MODIFIERS[k] == key) assignKey[k] = true;\n      return;\n    }\n\n    // see if we need to ignore the keypress (ftiler() can can be overridden)\n    // by default ignore key presses if a select, textarea, or input is focused\n    if(!assignKey.filter.call(this, event)) return;\n\n    // abort if no potentially matching shortcuts found\n    if (!(key in _handlers)) return;\n\n    // for each potential shortcut\n    for (i = 0; i < _handlers[key].length; i++) {\n      handler = _handlers[key][i];\n\n      // see if it's in the current scope\n      if(handler.scope == scope || handler.scope == 'all'){\n        // check if modifiers match if any\n        modifiersMatch = handler.mods.length > 0;\n        for(k in _mods)\n          if((!_mods[k] && index(handler.mods, +k) > -1) ||\n            (_mods[k] && index(handler.mods, +k) == -1)) modifiersMatch = false;\n        // call the handler and stop the event if neccessary\n        if((handler.mods.length == 0 && !_mods[16] && !_mods[18] && !_mods[17] && !_mods[91]) || modifiersMatch){\n          if(handler.method(event, handler)===false){\n            if(event.preventDefault) event.preventDefault();\n              else event.returnValue = false;\n            if(event.stopPropagation) event.stopPropagation();\n            if(event.cancelBubble) event.cancelBubble = true;\n          }\n        }\n      }\n\t}\n  };\n\n  // unset modifier keys on keyup\n  function clearModifier(event){\n    var key = event.keyCode, k;\n    if(key == 93 || key == 224) key = 91;\n    if(key in _mods) {\n      _mods[key] = false;\n      for(k in _MODIFIERS) if(_MODIFIERS[k] == key) assignKey[k] = false;\n    }\n  };\n\n  function resetModifiers() {\n    for(k in _mods) _mods[k] = false;\n    for(k in _MODIFIERS) assignKey[k] = false;\n  }\n\n  // parse and assign shortcut\n  function assignKey(key, scope, method){\n    var keys, mods, i, mi;\n    if (method === undefined) {\n      method = scope;\n      scope = 'all';\n    }\n    key = key.replace(/\\s/g,'');\n    keys = key.split(',');\n\n    if((keys[keys.length-1])=='')\n      keys[keys.length-2] += ',';\n    // for each shortcut\n    for (i = 0; i < keys.length; i++) {\n      // set modifier keys if any\n      mods = [];\n      key = keys[i].split('+');\n      if(key.length > 1){\n        mods = key.slice(0,key.length-1);\n        for (mi = 0; mi < mods.length; mi++)\n          mods[mi] = _MODIFIERS[mods[mi]];\n        key = [key[key.length-1]];\n      }\n      // convert to keycode and...\n      key = key[0]\n      key = _MAP[key] || key.toUpperCase().charCodeAt(0);\n      // ...store handler\n      if (!(key in _handlers)) _handlers[key] = [];\n      _handlers[key].push({ shortcut: keys[i], scope: scope, method: method, key: keys[i], mods: mods });\n    }\n  };\n\n  function filter(event){\n    var tagName = (event.target || event.srcElement).tagName;\n    // ignore keypressed in any elements that support keyboard data input\n    return !(tagName == 'INPUT' || tagName == 'SELECT' || tagName == 'TEXTAREA');\n  }\n\n  // initialize key.<modifier> to false\n  for(k in _MODIFIERS) assignKey[k] = false;\n\n  // set current scope (default 'all')\n  function setScope(scope){ _scope = scope || 'all' };\n  function getScope(){ return _scope || 'all' };\n\n  // delete all handlers for a given scope\n  function deleteScope(scope){\n    var key, handlers, i;\n\n    for (key in _handlers) {\n      handlers = _handlers[key];\n      for (i = 0; i < handlers.length; ) {\n        if (handlers[i].scope === scope) handlers.splice(i, 1);\n        else i++;\n      }\n    }\n  };\n\n  // cross-browser events\n  function addEvent(object, event, method) {\n    if (object.addEventListener)\n      object.addEventListener(event, method, false);\n    else if(object.attachEvent)\n      object.attachEvent('on'+event, function(){ method(window.event) });\n  };\n\n  // set the handlers globally on document\n  addEvent(document, 'keydown', function(event) { dispatch(event, _scope) }); // Passing _scope to a callback to ensure it remains the same by execution. Fixes #48\n  addEvent(document, 'keyup', clearModifier);\n\n  // reset modifiers to false whenever the window is (re)focused.\n  addEvent(window, 'focus', resetModifiers);\n\n  // set window.key and window.key.set/get/deleteScope, and the default filter\n  global.key = assignKey;\n  global.key.setScope = setScope;\n  global.key.getScope = getScope;\n  global.key.deleteScope = deleteScope;\n  global.key.filter = filter;\n\n  if(typeof module !== 'undefined') module.exports = key;\n\n})(this);\n"
  },
  {
    "path": "themes/default/assets/javascript/vendor/underscore.js",
    "content": "//     Underscore.js 1.3.3\n//     (c) 2009-2012 Jeremy Ashkenas, DocumentCloud Inc.\n//     Underscore is freely distributable under the MIT license.\n//     Portions of Underscore are inspired or borrowed from Prototype,\n//     Oliver Steele's Functional, and John Resig's Micro-Templating.\n//     For all details and documentation:\n//     http://documentcloud.github.com/underscore\n\n(function() {\n\n  // Baseline setup\n  // --------------\n\n  // Establish the root object, `window` in the browser, or `global` on the server.\n  var root = this;\n\n  // Save the previous value of the `_` variable.\n  var previousUnderscore = root._;\n\n  // Establish the object that gets returned to break out of a loop iteration.\n  var breaker = {};\n\n  // Save bytes in the minified (but not gzipped) version:\n  var ArrayProto = Array.prototype, ObjProto = Object.prototype, FuncProto = Function.prototype;\n\n  // Create quick reference variables for speed access to core prototypes.\n  var slice            = ArrayProto.slice,\n      unshift          = ArrayProto.unshift,\n      toString         = ObjProto.toString,\n      hasOwnProperty   = ObjProto.hasOwnProperty;\n\n  // All **ECMAScript 5** native function implementations that we hope to use\n  // are declared here.\n  var\n    nativeForEach      = ArrayProto.forEach,\n    nativeMap          = ArrayProto.map,\n    nativeReduce       = ArrayProto.reduce,\n    nativeReduceRight  = ArrayProto.reduceRight,\n    nativeFilter       = ArrayProto.filter,\n    nativeEvery        = ArrayProto.every,\n    nativeSome         = ArrayProto.some,\n    nativeIndexOf      = ArrayProto.indexOf,\n    nativeLastIndexOf  = ArrayProto.lastIndexOf,\n    nativeIsArray      = Array.isArray,\n    nativeKeys         = Object.keys,\n    nativeBind         = FuncProto.bind;\n\n  // Create a safe reference to the Underscore object for use below.\n  var _ = function(obj) { return new wrapper(obj); };\n\n  // Export the Underscore object for **Node.js**, with\n  // backwards-compatibility for the old `require()` API. If we're in\n  // the browser, add `_` as a global object via a string identifier,\n  // for Closure Compiler \"advanced\" mode.\n  if (typeof exports !== 'undefined') {\n    if (typeof module !== 'undefined' && module.exports) {\n      exports = module.exports = _;\n    }\n    exports._ = _;\n  } else {\n    root['_'] = _;\n  }\n\n  // Current version.\n  _.VERSION = '1.3.3';\n\n  // Collection Functions\n  // --------------------\n\n  // The cornerstone, an `each` implementation, aka `forEach`.\n  // Handles objects with the built-in `forEach`, arrays, and raw objects.\n  // Delegates to **ECMAScript 5**'s native `forEach` if available.\n  var each = _.each = _.forEach = function(obj, iterator, context) {\n    if (obj == null) return;\n    if (nativeForEach && obj.forEach === nativeForEach) {\n      obj.forEach(iterator, context);\n    } else if (obj.length === +obj.length) {\n      for (var i = 0, l = obj.length; i < l; i++) {\n        if (i in obj && iterator.call(context, obj[i], i, obj) === breaker) return;\n      }\n    } else {\n      for (var key in obj) {\n        if (_.has(obj, key)) {\n          if (iterator.call(context, obj[key], key, obj) === breaker) return;\n        }\n      }\n    }\n  };\n\n  // Return the results of applying the iterator to each element.\n  // Delegates to **ECMAScript 5**'s native `map` if available.\n  _.map = _.collect = function(obj, iterator, context) {\n    var results = [];\n    if (obj == null) return results;\n    if (nativeMap && obj.map === nativeMap) return obj.map(iterator, context);\n    each(obj, function(value, index, list) {\n      results[results.length] = iterator.call(context, value, index, list);\n    });\n    if (obj.length === +obj.length) results.length = obj.length;\n    return results;\n  };\n\n  // **Reduce** builds up a single result from a list of values, aka `inject`,\n  // or `foldl`. Delegates to **ECMAScript 5**'s native `reduce` if available.\n  _.reduce = _.foldl = _.inject = function(obj, iterator, memo, context) {\n    var initial = arguments.length > 2;\n    if (obj == null) obj = [];\n    if (nativeReduce && obj.reduce === nativeReduce) {\n      if (context) iterator = _.bind(iterator, context);\n      return initial ? obj.reduce(iterator, memo) : obj.reduce(iterator);\n    }\n    each(obj, function(value, index, list) {\n      if (!initial) {\n        memo = value;\n        initial = true;\n      } else {\n        memo = iterator.call(context, memo, value, index, list);\n      }\n    });\n    if (!initial) throw new TypeError('Reduce of empty array with no initial value');\n    return memo;\n  };\n\n  // The right-associative version of reduce, also known as `foldr`.\n  // Delegates to **ECMAScript 5**'s native `reduceRight` if available.\n  _.reduceRight = _.foldr = function(obj, iterator, memo, context) {\n    var initial = arguments.length > 2;\n    if (obj == null) obj = [];\n    if (nativeReduceRight && obj.reduceRight === nativeReduceRight) {\n      if (context) iterator = _.bind(iterator, context);\n      return initial ? obj.reduceRight(iterator, memo) : obj.reduceRight(iterator);\n    }\n    var reversed = _.toArray(obj).reverse();\n    if (context && !initial) iterator = _.bind(iterator, context);\n    return initial ? _.reduce(reversed, iterator, memo, context) : _.reduce(reversed, iterator);\n  };\n\n  // Return the first value which passes a truth test. Aliased as `detect`.\n  _.find = _.detect = function(obj, iterator, context) {\n    var result;\n    any(obj, function(value, index, list) {\n      if (iterator.call(context, value, index, list)) {\n        result = value;\n        return true;\n      }\n    });\n    return result;\n  };\n\n  // Return all the elements that pass a truth test.\n  // Delegates to **ECMAScript 5**'s native `filter` if available.\n  // Aliased as `select`.\n  _.filter = _.select = function(obj, iterator, context) {\n    var results = [];\n    if (obj == null) return results;\n    if (nativeFilter && obj.filter === nativeFilter) return obj.filter(iterator, context);\n    each(obj, function(value, index, list) {\n      if (iterator.call(context, value, index, list)) results[results.length] = value;\n    });\n    return results;\n  };\n\n  // Return all the elements for which a truth test fails.\n  _.reject = function(obj, iterator, context) {\n    var results = [];\n    if (obj == null) return results;\n    each(obj, function(value, index, list) {\n      if (!iterator.call(context, value, index, list)) results[results.length] = value;\n    });\n    return results;\n  };\n\n  // Determine whether all of the elements match a truth test.\n  // Delegates to **ECMAScript 5**'s native `every` if available.\n  // Aliased as `all`.\n  _.every = _.all = function(obj, iterator, context) {\n    var result = true;\n    if (obj == null) return result;\n    if (nativeEvery && obj.every === nativeEvery) return obj.every(iterator, context);\n    each(obj, function(value, index, list) {\n      if (!(result = result && iterator.call(context, value, index, list))) return breaker;\n    });\n    return !!result;\n  };\n\n  // Determine if at least one element in the object matches a truth test.\n  // Delegates to **ECMAScript 5**'s native `some` if available.\n  // Aliased as `any`.\n  var any = _.some = _.any = function(obj, iterator, context) {\n    iterator || (iterator = _.identity);\n    var result = false;\n    if (obj == null) return result;\n    if (nativeSome && obj.some === nativeSome) return obj.some(iterator, context);\n    each(obj, function(value, index, list) {\n      if (result || (result = iterator.call(context, value, index, list))) return breaker;\n    });\n    return !!result;\n  };\n\n  // Determine if a given value is included in the array or object using `===`.\n  // Aliased as `contains`.\n  _.include = _.contains = function(obj, target) {\n    var found = false;\n    if (obj == null) return found;\n    if (nativeIndexOf && obj.indexOf === nativeIndexOf) return obj.indexOf(target) != -1;\n    found = any(obj, function(value) {\n      return value === target;\n    });\n    return found;\n  };\n\n  // Invoke a method (with arguments) on every item in a collection.\n  _.invoke = function(obj, method) {\n    var args = slice.call(arguments, 2);\n    return _.map(obj, function(value) {\n      return (_.isFunction(method) ? method || value : value[method]).apply(value, args);\n    });\n  };\n\n  // Convenience version of a common use case of `map`: fetching a property.\n  _.pluck = function(obj, key) {\n    return _.map(obj, function(value){ return value[key]; });\n  };\n\n  // Return the maximum element or (element-based computation).\n  _.max = function(obj, iterator, context) {\n    if (!iterator && _.isArray(obj) && obj[0] === +obj[0]) return Math.max.apply(Math, obj);\n    if (!iterator && _.isEmpty(obj)) return -Infinity;\n    var result = {computed : -Infinity};\n    each(obj, function(value, index, list) {\n      var computed = iterator ? iterator.call(context, value, index, list) : value;\n      computed >= result.computed && (result = {value : value, computed : computed});\n    });\n    return result.value;\n  };\n\n  // Return the minimum element (or element-based computation).\n  _.min = function(obj, iterator, context) {\n    if (!iterator && _.isArray(obj) && obj[0] === +obj[0]) return Math.min.apply(Math, obj);\n    if (!iterator && _.isEmpty(obj)) return Infinity;\n    var result = {computed : Infinity};\n    each(obj, function(value, index, list) {\n      var computed = iterator ? iterator.call(context, value, index, list) : value;\n      computed < result.computed && (result = {value : value, computed : computed});\n    });\n    return result.value;\n  };\n\n  // Shuffle an array.\n  _.shuffle = function(obj) {\n    var shuffled = [], rand;\n    each(obj, function(value, index, list) {\n      rand = Math.floor(Math.random() * (index + 1));\n      shuffled[index] = shuffled[rand];\n      shuffled[rand] = value;\n    });\n    return shuffled;\n  };\n\n  // Sort the object's values by a criterion produced by an iterator.\n  _.sortBy = function(obj, val, context) {\n    var iterator = _.isFunction(val) ? val : function(obj) { return obj[val]; };\n    return _.pluck(_.map(obj, function(value, index, list) {\n      return {\n        value : value,\n        criteria : iterator.call(context, value, index, list)\n      };\n    }).sort(function(left, right) {\n      var a = left.criteria, b = right.criteria;\n      if (a === void 0) return 1;\n      if (b === void 0) return -1;\n      return a < b ? -1 : a > b ? 1 : 0;\n    }), 'value');\n  };\n\n  // Groups the object's values by a criterion. Pass either a string attribute\n  // to group by, or a function that returns the criterion.\n  _.groupBy = function(obj, val) {\n    var result = {};\n    var iterator = _.isFunction(val) ? val : function(obj) { return obj[val]; };\n    each(obj, function(value, index) {\n      var key = iterator(value, index);\n      (result[key] || (result[key] = [])).push(value);\n    });\n    return result;\n  };\n\n  // Use a comparator function to figure out at what index an object should\n  // be inserted so as to maintain order. Uses binary search.\n  _.sortedIndex = function(array, obj, iterator) {\n    iterator || (iterator = _.identity);\n    var low = 0, high = array.length;\n    while (low < high) {\n      var mid = (low + high) >> 1;\n      iterator(array[mid]) < iterator(obj) ? low = mid + 1 : high = mid;\n    }\n    return low;\n  };\n\n  // Safely convert anything iterable into a real, live array.\n  _.toArray = function(obj) {\n    if (!obj)                                     return [];\n    if (_.isArray(obj))                           return slice.call(obj);\n    if (_.isArguments(obj))                       return slice.call(obj);\n    if (obj.toArray && _.isFunction(obj.toArray)) return obj.toArray();\n    return _.values(obj);\n  };\n\n  // Return the number of elements in an object.\n  _.size = function(obj) {\n    return _.isArray(obj) ? obj.length : _.keys(obj).length;\n  };\n\n  // Array Functions\n  // ---------------\n\n  // Get the first element of an array. Passing **n** will return the first N\n  // values in the array. Aliased as `head` and `take`. The **guard** check\n  // allows it to work with `_.map`.\n  _.first = _.head = _.take = function(array, n, guard) {\n    return (n != null) && !guard ? slice.call(array, 0, n) : array[0];\n  };\n\n  // Returns everything but the last entry of the array. Especcialy useful on\n  // the arguments object. Passing **n** will return all the values in\n  // the array, excluding the last N. The **guard** check allows it to work with\n  // `_.map`.\n  _.initial = function(array, n, guard) {\n    return slice.call(array, 0, array.length - ((n == null) || guard ? 1 : n));\n  };\n\n  // Get the last element of an array. Passing **n** will return the last N\n  // values in the array. The **guard** check allows it to work with `_.map`.\n  _.last = function(array, n, guard) {\n    if ((n != null) && !guard) {\n      return slice.call(array, Math.max(array.length - n, 0));\n    } else {\n      return array[array.length - 1];\n    }\n  };\n\n  // Returns everything but the first entry of the array. Aliased as `tail`.\n  // Especially useful on the arguments object. Passing an **index** will return\n  // the rest of the values in the array from that index onward. The **guard**\n  // check allows it to work with `_.map`.\n  _.rest = _.tail = function(array, index, guard) {\n    return slice.call(array, (index == null) || guard ? 1 : index);\n  };\n\n  // Trim out all falsy values from an array.\n  _.compact = function(array) {\n    return _.filter(array, function(value){ return !!value; });\n  };\n\n  // Return a completely flattened version of an array.\n  _.flatten = function(array, shallow) {\n    return _.reduce(array, function(memo, value) {\n      if (_.isArray(value)) return memo.concat(shallow ? value : _.flatten(value));\n      memo[memo.length] = value;\n      return memo;\n    }, []);\n  };\n\n  // Return a version of the array that does not contain the specified value(s).\n  _.without = function(array) {\n    return _.difference(array, slice.call(arguments, 1));\n  };\n\n  // Produce a duplicate-free version of the array. If the array has already\n  // been sorted, you have the option of using a faster algorithm.\n  // Aliased as `unique`.\n  _.uniq = _.unique = function(array, isSorted, iterator) {\n    var initial = iterator ? _.map(array, iterator) : array;\n    var results = [];\n    // The `isSorted` flag is irrelevant if the array only contains two elements.\n    if (array.length < 3) isSorted = true;\n    _.reduce(initial, function (memo, value, index) {\n      if (isSorted ? _.last(memo) !== value || !memo.length : !_.include(memo, value)) {\n        memo.push(value);\n        results.push(array[index]);\n      }\n      return memo;\n    }, []);\n    return results;\n  };\n\n  // Produce an array that contains the union: each distinct element from all of\n  // the passed-in arrays.\n  _.union = function() {\n    return _.uniq(_.flatten(arguments, true));\n  };\n\n  // Produce an array that contains every item shared between all the\n  // passed-in arrays. (Aliased as \"intersect\" for back-compat.)\n  _.intersection = _.intersect = function(array) {\n    var rest = slice.call(arguments, 1);\n    return _.filter(_.uniq(array), function(item) {\n      return _.every(rest, function(other) {\n        return _.indexOf(other, item) >= 0;\n      });\n    });\n  };\n\n  // Take the difference between one array and a number of other arrays.\n  // Only the elements present in just the first array will remain.\n  _.difference = function(array) {\n    var rest = _.flatten(slice.call(arguments, 1), true);\n    return _.filter(array, function(value){ return !_.include(rest, value); });\n  };\n\n  // Zip together multiple lists into a single array -- elements that share\n  // an index go together.\n  _.zip = function() {\n    var args = slice.call(arguments);\n    var length = _.max(_.pluck(args, 'length'));\n    var results = new Array(length);\n    for (var i = 0; i < length; i++) results[i] = _.pluck(args, \"\" + i);\n    return results;\n  };\n\n  // If the browser doesn't supply us with indexOf (I'm looking at you, **MSIE**),\n  // we need this function. Return the position of the first occurrence of an\n  // item in an array, or -1 if the item is not included in the array.\n  // Delegates to **ECMAScript 5**'s native `indexOf` if available.\n  // If the array is large and already in sort order, pass `true`\n  // for **isSorted** to use binary search.\n  _.indexOf = function(array, item, isSorted) {\n    if (array == null) return -1;\n    var i, l;\n    if (isSorted) {\n      i = _.sortedIndex(array, item);\n      return array[i] === item ? i : -1;\n    }\n    if (nativeIndexOf && array.indexOf === nativeIndexOf) return array.indexOf(item);\n    for (i = 0, l = array.length; i < l; i++) if (i in array && array[i] === item) return i;\n    return -1;\n  };\n\n  // Delegates to **ECMAScript 5**'s native `lastIndexOf` if available.\n  _.lastIndexOf = function(array, item) {\n    if (array == null) return -1;\n    if (nativeLastIndexOf && array.lastIndexOf === nativeLastIndexOf) return array.lastIndexOf(item);\n    var i = array.length;\n    while (i--) if (i in array && array[i] === item) return i;\n    return -1;\n  };\n\n  // Generate an integer Array containing an arithmetic progression. A port of\n  // the native Python `range()` function. See\n  // [the Python documentation](http://docs.python.org/library/functions.html#range).\n  _.range = function(start, stop, step) {\n    if (arguments.length <= 1) {\n      stop = start || 0;\n      start = 0;\n    }\n    step = arguments[2] || 1;\n\n    var len = Math.max(Math.ceil((stop - start) / step), 0);\n    var idx = 0;\n    var range = new Array(len);\n\n    while(idx < len) {\n      range[idx++] = start;\n      start += step;\n    }\n\n    return range;\n  };\n\n  // Function (ahem) Functions\n  // ------------------\n\n  // Reusable constructor function for prototype setting.\n  var ctor = function(){};\n\n  // Create a function bound to a given object (assigning `this`, and arguments,\n  // optionally). Binding with arguments is also known as `curry`.\n  // Delegates to **ECMAScript 5**'s native `Function.bind` if available.\n  // We check for `func.bind` first, to fail fast when `func` is undefined.\n  _.bind = function bind(func, context) {\n    var bound, args;\n    if (func.bind === nativeBind && nativeBind) return nativeBind.apply(func, slice.call(arguments, 1));\n    if (!_.isFunction(func)) throw new TypeError;\n    args = slice.call(arguments, 2);\n    return bound = function() {\n      if (!(this instanceof bound)) return func.apply(context, args.concat(slice.call(arguments)));\n      ctor.prototype = func.prototype;\n      var self = new ctor;\n      var result = func.apply(self, args.concat(slice.call(arguments)));\n      if (Object(result) === result) return result;\n      return self;\n    };\n  };\n\n  // Bind all of an object's methods to that object. Useful for ensuring that\n  // all callbacks defined on an object belong to it.\n  _.bindAll = function(obj) {\n    var funcs = slice.call(arguments, 1);\n    if (funcs.length == 0) funcs = _.functions(obj);\n    each(funcs, function(f) { obj[f] = _.bind(obj[f], obj); });\n    return obj;\n  };\n\n  // Memoize an expensive function by storing its results.\n  _.memoize = function(func, hasher) {\n    var memo = {};\n    hasher || (hasher = _.identity);\n    return function() {\n      var key = hasher.apply(this, arguments);\n      return _.has(memo, key) ? memo[key] : (memo[key] = func.apply(this, arguments));\n    };\n  };\n\n  // Delays a function for the given number of milliseconds, and then calls\n  // it with the arguments supplied.\n  _.delay = function(func, wait) {\n    var args = slice.call(arguments, 2);\n    return setTimeout(function(){ return func.apply(null, args); }, wait);\n  };\n\n  // Defers a function, scheduling it to run after the current call stack has\n  // cleared.\n  _.defer = function(func) {\n    return _.delay.apply(_, [func, 1].concat(slice.call(arguments, 1)));\n  };\n\n  // Returns a function, that, when invoked, will only be triggered at most once\n  // during a given window of time.\n  _.throttle = function(func, wait) {\n    var context, args, timeout, throttling, more, result;\n    var whenDone = _.debounce(function(){ more = throttling = false; }, wait);\n    return function() {\n      context = this; args = arguments;\n      var later = function() {\n        timeout = null;\n        if (more) func.apply(context, args);\n        whenDone();\n      };\n      if (!timeout) timeout = setTimeout(later, wait);\n      if (throttling) {\n        more = true;\n      } else {\n        result = func.apply(context, args);\n      }\n      whenDone();\n      throttling = true;\n      return result;\n    };\n  };\n\n  // Returns a function, that, as long as it continues to be invoked, will not\n  // be triggered. The function will be called after it stops being called for\n  // N milliseconds. If `immediate` is passed, trigger the function on the\n  // leading edge, instead of the trailing.\n  _.debounce = function(func, wait, immediate) {\n    var timeout;\n    return function() {\n      var context = this, args = arguments;\n      var later = function() {\n        timeout = null;\n        if (!immediate) func.apply(context, args);\n      };\n      if (immediate && !timeout) func.apply(context, args);\n      clearTimeout(timeout);\n      timeout = setTimeout(later, wait);\n    };\n  };\n\n  // Returns a function that will be executed at most one time, no matter how\n  // often you call it. Useful for lazy initialization.\n  _.once = function(func) {\n    var ran = false, memo;\n    return function() {\n      if (ran) return memo;\n      ran = true;\n      return memo = func.apply(this, arguments);\n    };\n  };\n\n  // Returns the first function passed as an argument to the second,\n  // allowing you to adjust arguments, run code before and after, and\n  // conditionally execute the original function.\n  _.wrap = function(func, wrapper) {\n    return function() {\n      var args = [func].concat(slice.call(arguments, 0));\n      return wrapper.apply(this, args);\n    };\n  };\n\n  // Returns a function that is the composition of a list of functions, each\n  // consuming the return value of the function that follows.\n  _.compose = function() {\n    var funcs = arguments;\n    return function() {\n      var args = arguments;\n      for (var i = funcs.length - 1; i >= 0; i--) {\n        args = [funcs[i].apply(this, args)];\n      }\n      return args[0];\n    };\n  };\n\n  // Returns a function that will only be executed after being called N times.\n  _.after = function(times, func) {\n    if (times <= 0) return func();\n    return function() {\n      if (--times < 1) { return func.apply(this, arguments); }\n    };\n  };\n\n  // Object Functions\n  // ----------------\n\n  // Retrieve the names of an object's properties.\n  // Delegates to **ECMAScript 5**'s native `Object.keys`\n  _.keys = nativeKeys || function(obj) {\n    if (obj !== Object(obj)) throw new TypeError('Invalid object');\n    var keys = [];\n    for (var key in obj) if (_.has(obj, key)) keys[keys.length] = key;\n    return keys;\n  };\n\n  // Retrieve the values of an object's properties.\n  _.values = function(obj) {\n    return _.map(obj, _.identity);\n  };\n\n  // Return a sorted list of the function names available on the object.\n  // Aliased as `methods`\n  _.functions = _.methods = function(obj) {\n    var names = [];\n    for (var key in obj) {\n      if (_.isFunction(obj[key])) names.push(key);\n    }\n    return names.sort();\n  };\n\n  // Extend a given object with all the properties in passed-in object(s).\n  _.extend = function(obj) {\n    each(slice.call(arguments, 1), function(source) {\n      for (var prop in source) {\n        obj[prop] = source[prop];\n      }\n    });\n    return obj;\n  };\n\n  // Return a copy of the object only containing the whitelisted properties.\n  _.pick = function(obj) {\n    var result = {};\n    each(_.flatten(slice.call(arguments, 1)), function(key) {\n      if (key in obj) result[key] = obj[key];\n    });\n    return result;\n  };\n\n  // Fill in a given object with default properties.\n  _.defaults = function(obj) {\n    each(slice.call(arguments, 1), function(source) {\n      for (var prop in source) {\n        if (obj[prop] == null) obj[prop] = source[prop];\n      }\n    });\n    return obj;\n  };\n\n  // Create a (shallow-cloned) duplicate of an object.\n  _.clone = function(obj) {\n    if (!_.isObject(obj)) return obj;\n    return _.isArray(obj) ? obj.slice() : _.extend({}, obj);\n  };\n\n  // Invokes interceptor with the obj, and then returns obj.\n  // The primary purpose of this method is to \"tap into\" a method chain, in\n  // order to perform operations on intermediate results within the chain.\n  _.tap = function(obj, interceptor) {\n    interceptor(obj);\n    return obj;\n  };\n\n  // Internal recursive comparison function.\n  function eq(a, b, stack) {\n    // Identical objects are equal. `0 === -0`, but they aren't identical.\n    // See the Harmony `egal` proposal: http://wiki.ecmascript.org/doku.php?id=harmony:egal.\n    if (a === b) return a !== 0 || 1 / a == 1 / b;\n    // A strict comparison is necessary because `null == undefined`.\n    if (a == null || b == null) return a === b;\n    // Unwrap any wrapped objects.\n    if (a._chain) a = a._wrapped;\n    if (b._chain) b = b._wrapped;\n    // Invoke a custom `isEqual` method if one is provided.\n    if (a.isEqual && _.isFunction(a.isEqual)) return a.isEqual(b);\n    if (b.isEqual && _.isFunction(b.isEqual)) return b.isEqual(a);\n    // Compare `[[Class]]` names.\n    var className = toString.call(a);\n    if (className != toString.call(b)) return false;\n    switch (className) {\n      // Strings, numbers, dates, and booleans are compared by value.\n      case '[object String]':\n        // Primitives and their corresponding object wrappers are equivalent; thus, `\"5\"` is\n        // equivalent to `new String(\"5\")`.\n        return a == String(b);\n      case '[object Number]':\n        // `NaN`s are equivalent, but non-reflexive. An `egal` comparison is performed for\n        // other numeric values.\n        return a != +a ? b != +b : (a == 0 ? 1 / a == 1 / b : a == +b);\n      case '[object Date]':\n      case '[object Boolean]':\n        // Coerce dates and booleans to numeric primitive values. Dates are compared by their\n        // millisecond representations. Note that invalid dates with millisecond representations\n        // of `NaN` are not equivalent.\n        return +a == +b;\n      // RegExps are compared by their source patterns and flags.\n      case '[object RegExp]':\n        return a.source == b.source &&\n               a.global == b.global &&\n               a.multiline == b.multiline &&\n               a.ignoreCase == b.ignoreCase;\n    }\n    if (typeof a != 'object' || typeof b != 'object') return false;\n    // Assume equality for cyclic structures. The algorithm for detecting cyclic\n    // structures is adapted from ES 5.1 section 15.12.3, abstract operation `JO`.\n    var length = stack.length;\n    while (length--) {\n      // Linear search. Performance is inversely proportional to the number of\n      // unique nested structures.\n      if (stack[length] == a) return true;\n    }\n    // Add the first object to the stack of traversed objects.\n    stack.push(a);\n    var size = 0, result = true;\n    // Recursively compare objects and arrays.\n    if (className == '[object Array]') {\n      // Compare array lengths to determine if a deep comparison is necessary.\n      size = a.length;\n      result = size == b.length;\n      if (result) {\n        // Deep compare the contents, ignoring non-numeric properties.\n        while (size--) {\n          // Ensure commutative equality for sparse arrays.\n          if (!(result = size in a == size in b && eq(a[size], b[size], stack))) break;\n        }\n      }\n    } else {\n      // Objects with different constructors are not equivalent.\n      if ('constructor' in a != 'constructor' in b || a.constructor != b.constructor) return false;\n      // Deep compare objects.\n      for (var key in a) {\n        if (_.has(a, key)) {\n          // Count the expected number of properties.\n          size++;\n          // Deep compare each member.\n          if (!(result = _.has(b, key) && eq(a[key], b[key], stack))) break;\n        }\n      }\n      // Ensure that both objects contain the same number of properties.\n      if (result) {\n        for (key in b) {\n          if (_.has(b, key) && !(size--)) break;\n        }\n        result = !size;\n      }\n    }\n    // Remove the first object from the stack of traversed objects.\n    stack.pop();\n    return result;\n  }\n\n  // Perform a deep comparison to check if two objects are equal.\n  _.isEqual = function(a, b) {\n    return eq(a, b, []);\n  };\n\n  // Is a given array, string, or object empty?\n  // An \"empty\" object has no enumerable own-properties.\n  _.isEmpty = function(obj) {\n    if (obj == null) return true;\n    if (_.isArray(obj) || _.isString(obj)) return obj.length === 0;\n    for (var key in obj) if (_.has(obj, key)) return false;\n    return true;\n  };\n\n  // Is a given value a DOM element?\n  _.isElement = function(obj) {\n    return !!(obj && obj.nodeType == 1);\n  };\n\n  // Is a given value an array?\n  // Delegates to ECMA5's native Array.isArray\n  _.isArray = nativeIsArray || function(obj) {\n    return toString.call(obj) == '[object Array]';\n  };\n\n  // Is a given variable an object?\n  _.isObject = function(obj) {\n    return obj === Object(obj);\n  };\n\n  // Is a given variable an arguments object?\n  _.isArguments = function(obj) {\n    return toString.call(obj) == '[object Arguments]';\n  };\n  if (!_.isArguments(arguments)) {\n    _.isArguments = function(obj) {\n      return !!(obj && _.has(obj, 'callee'));\n    };\n  }\n\n  // Is a given value a function?\n  _.isFunction = function(obj) {\n    return toString.call(obj) == '[object Function]';\n  };\n\n  // Is a given value a string?\n  _.isString = function(obj) {\n    return toString.call(obj) == '[object String]';\n  };\n\n  // Is a given value a number?\n  _.isNumber = function(obj) {\n    return toString.call(obj) == '[object Number]';\n  };\n\n  // Is a given object a finite number?\n  _.isFinite = function(obj) {\n    return _.isNumber(obj) && isFinite(obj);\n  };\n\n  // Is the given value `NaN`?\n  _.isNaN = function(obj) {\n    // `NaN` is the only value for which `===` is not reflexive.\n    return obj !== obj;\n  };\n\n  // Is a given value a boolean?\n  _.isBoolean = function(obj) {\n    return obj === true || obj === false || toString.call(obj) == '[object Boolean]';\n  };\n\n  // Is a given value a date?\n  _.isDate = function(obj) {\n    return toString.call(obj) == '[object Date]';\n  };\n\n  // Is the given value a regular expression?\n  _.isRegExp = function(obj) {\n    return toString.call(obj) == '[object RegExp]';\n  };\n\n  // Is a given value equal to null?\n  _.isNull = function(obj) {\n    return obj === null;\n  };\n\n  // Is a given variable undefined?\n  _.isUndefined = function(obj) {\n    return obj === void 0;\n  };\n\n  // Has own property?\n  _.has = function(obj, key) {\n    return hasOwnProperty.call(obj, key);\n  };\n\n  // Utility Functions\n  // -----------------\n\n  // Run Underscore.js in *noConflict* mode, returning the `_` variable to its\n  // previous owner. Returns a reference to the Underscore object.\n  _.noConflict = function() {\n    root._ = previousUnderscore;\n    return this;\n  };\n\n  // Keep the identity function around for default iterators.\n  _.identity = function(value) {\n    return value;\n  };\n\n  // Run a function **n** times.\n  _.times = function (n, iterator, context) {\n    for (var i = 0; i < n; i++) iterator.call(context, i);\n  };\n\n  // Escape a string for HTML interpolation.\n  _.escape = function(string) {\n    return (''+string).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;').replace(/'/g, '&#x27;').replace(/\\//g,'&#x2F;');\n  };\n\n  // If the value of the named property is a function then invoke it;\n  // otherwise, return it.\n  _.result = function(object, property) {\n    if (object == null) return null;\n    var value = object[property];\n    return _.isFunction(value) ? value.call(object) : value;\n  };\n\n  // Add your own custom functions to the Underscore object, ensuring that\n  // they're correctly added to the OOP wrapper as well.\n  _.mixin = function(obj) {\n    each(_.functions(obj), function(name){\n      addToWrapper(name, _[name] = obj[name]);\n    });\n  };\n\n  // Generate a unique integer id (unique within the entire client session).\n  // Useful for temporary DOM ids.\n  var idCounter = 0;\n  _.uniqueId = function(prefix) {\n    var id = idCounter++;\n    return prefix ? prefix + id : id;\n  };\n\n  // By default, Underscore uses ERB-style template delimiters, change the\n  // following template settings to use alternative delimiters.\n  _.templateSettings = {\n    evaluate    : /<%([\\s\\S]+?)%>/g,\n    interpolate : /<%=([\\s\\S]+?)%>/g,\n    escape      : /<%-([\\s\\S]+?)%>/g\n  };\n\n  // When customizing `templateSettings`, if you don't want to define an\n  // interpolation, evaluation or escaping regex, we need one that is\n  // guaranteed not to match.\n  var noMatch = /.^/;\n\n  // Certain characters need to be escaped so that they can be put into a\n  // string literal.\n  var escapes = {\n    '\\\\': '\\\\',\n    \"'\": \"'\",\n    'r': '\\r',\n    'n': '\\n',\n    't': '\\t',\n    'u2028': '\\u2028',\n    'u2029': '\\u2029'\n  };\n\n  for (var p in escapes) escapes[escapes[p]] = p;\n  var escaper = /\\\\|'|\\r|\\n|\\t|\\u2028|\\u2029/g;\n  var unescaper = /\\\\(\\\\|'|r|n|t|u2028|u2029)/g;\n\n  // Within an interpolation, evaluation, or escaping, remove HTML escaping\n  // that had been previously added.\n  var unescape = function(code) {\n    return code.replace(unescaper, function(match, escape) {\n      return escapes[escape];\n    });\n  };\n\n  // JavaScript micro-templating, similar to John Resig's implementation.\n  // Underscore templating handles arbitrary delimiters, preserves whitespace,\n  // and correctly escapes quotes within interpolated code.\n  _.template = function(text, data, settings) {\n    settings = _.defaults(settings || {}, _.templateSettings);\n\n    // Compile the template source, taking care to escape characters that\n    // cannot be included in a string literal and then unescape them in code\n    // blocks.\n    var source = \"__p+='\" + text\n      .replace(escaper, function(match) {\n        return '\\\\' + escapes[match];\n      })\n      .replace(settings.escape || noMatch, function(match, code) {\n        return \"'+\\n_.escape(\" + unescape(code) + \")+\\n'\";\n      })\n      .replace(settings.interpolate || noMatch, function(match, code) {\n        return \"'+\\n(\" + unescape(code) + \")+\\n'\";\n      })\n      .replace(settings.evaluate || noMatch, function(match, code) {\n        return \"';\\n\" + unescape(code) + \"\\n;__p+='\";\n      }) + \"';\\n\";\n\n    // If a variable is not specified, place data values in local scope.\n    if (!settings.variable) source = 'with(obj||{}){\\n' + source + '}\\n';\n\n    source = \"var __p='';\" +\n      \"var print=function(){__p+=Array.prototype.join.call(arguments, '')};\\n\" +\n      source + \"return __p;\\n\";\n\n    var render = new Function(settings.variable || 'obj', '_', source);\n    if (data) return render(data, _);\n    var template = function(data) {\n      return render.call(this, data, _);\n    };\n\n    // Provide the compiled function source as a convenience for build time\n    // precompilation.\n    template.source = 'function(' + (settings.variable || 'obj') + '){\\n' +\n      source + '}';\n\n    return template;\n  };\n\n  // Add a \"chain\" function, which will delegate to the wrapper.\n  _.chain = function(obj) {\n    return _(obj).chain();\n  };\n\n  // The OOP Wrapper\n  // ---------------\n\n  // If Underscore is called as a function, it returns a wrapped object that\n  // can be used OO-style. This wrapper holds altered versions of all the\n  // underscore functions. Wrapped objects may be chained.\n  var wrapper = function(obj) { this._wrapped = obj; };\n\n  // Expose `wrapper.prototype` as `_.prototype`\n  _.prototype = wrapper.prototype;\n\n  // Helper function to continue chaining intermediate results.\n  var result = function(obj, chain) {\n    return chain ? _(obj).chain() : obj;\n  };\n\n  // A method to easily add functions to the OOP wrapper.\n  var addToWrapper = function(name, func) {\n    wrapper.prototype[name] = function() {\n      var args = slice.call(arguments);\n      unshift.call(args, this._wrapped);\n      return result(func.apply(_, args), this._chain);\n    };\n  };\n\n  // Add all of the Underscore functions to the wrapper object.\n  _.mixin(_);\n\n  // Add all mutator Array functions to the wrapper.\n  each(['pop', 'push', 'reverse', 'shift', 'sort', 'splice', 'unshift'], function(name) {\n    var method = ArrayProto[name];\n    wrapper.prototype[name] = function() {\n      var wrapped = this._wrapped;\n      method.apply(wrapped, arguments);\n      var length = wrapped.length;\n      if ((name == 'shift' || name == 'splice') && length === 0) delete wrapped[0];\n      return result(wrapped, this._chain);\n    };\n  });\n\n  // Add all accessor Array functions to the wrapper.\n  each(['concat', 'join', 'slice'], function(name) {\n    var method = ArrayProto[name];\n    wrapper.prototype[name] = function() {\n      return result(method.apply(this._wrapped, arguments), this._chain);\n    };\n  });\n\n  // Start chaining a wrapped Underscore object.\n  wrapper.prototype.chain = function() {\n    this._chain = true;\n    return this;\n  };\n\n  // Extracts the result from a wrapped and chained object.\n  wrapper.prototype.value = function() {\n    return this._wrapped;\n  };\n\n}).call(this);\n"
  },
  {
    "path": "themes/default/assets/stylesheets/alphabetical_index.styl",
    "content": ".alphaindex {\n  margin-top: 0;\n  font-size: 22px;\n}\n\n.noborder {\n  border-top: 0px;\n  margin-top: 0;\n  padding-top: 4px;\n}\n\n.title {\n  margin-bottom: 10px;\n}\n\n#files {\n  padding: 0;\n  font-size: 1.1em;\n\n  li {\n    list-style: none;\n    display: inline;\n    padding: 7px 12px;\n    line-height: 35px;\n    background: #F0F0F0;\n    margin-right: 5px;\n  }\n}\n\n.index {\n  column-count: 3;\n  column-width: 33%;\n\n  > ul {\n    margin: 0;\n    padding: 0;\n    padding-bottom: 10px;\n\n    font-size: 1.1em;\n    list-style: none;\n\n    > li.letter {\n      -webkit-column-break-after: avoid;\n\n      font-size: 1.4em;\n      padding-bottom: 10px;\n      text-transform: uppercase;\n    }\n\n    > ul {\n      margin: 0;\n      padding-left: 20px;\n\n      small {\n        color: #666;\n        font-size: 0.7em;\n      }\n    }\n  }\n}\n"
  },
  {
    "path": "themes/default/assets/stylesheets/application.styl",
    "content": "//= require_tree ./vendor\n\n@import 'nib';\n@import 'base';\n@import 'class';\n@import 'footer';\n@import 'header';\n@import 'alphabetical_index';\n@import 'lists';\n@import 'toc';"
  },
  {
    "path": "themes/default/assets/stylesheets/base.styl",
    "content": "body {\n  padding: 0 5px;\n  font-family: \"Lucida Sans\", \"Lucida Grande\", Verdana, Arial, sans-serif;\n  font-size: 13px;\n}\n\nh1 {\n  font-size: 25px;\n  margin: 0.8em 0 0.5em;\n  padding-top: 4px;\n  border-top: 1px dotted #d5d5d5;\n}\n\nh2 {\n  padding: 0;\n  padding-bottom: 3px;\n  border-bottom: 1px #aaa solid;\n  font-size: 1.4em;\n  margin: 1.8em 0 0.5em;\n}\n\n#base {\n  display: none;\n}\n\n#fuzzySearch {\n  box-shadow: rgba(0, 0, 0, 0.5) 0px 10px 30px 10px;\n  border-radius: 10px;\n\n  position: fixed;\n  z-index: 8000;\n\n  left: 0;\n  right: 0;\n  top: 25px;\n\n  width: 80%;\n  height: 45px;\n\n  margin: 0 auto;\n\n  display: none;\n\n  background-color: #fff;\n  padding-top: 25px;\n  padding-bottom: 25px;\n\n  input {\n    margin-left: 10%;\n    border-radius: 5px;\n    width: 80%;\n    border: 2px solid #05a;\n    font-size: 20px;\n    padding: 5px;\n  }\n\n  ol {\n    list-style-type: none;\n    margin: 10px 0 0 0;\n    padding: 0;\n\n    li {\n      padding: 3px;\n\n      &.stripe {\n        background: #F0F0F0;\n      }\n\n      &.selected {\n        background: #05a;\n\n        a {\n          color: #fff;\n\n          &:visited {\n            color: #fff;\n          }\n\n          &:hover {\n            color: #05a;\n          }\n\n          span {\n            color: #05a;\n          }\n        }\n      }\n\n      a {\n        color: #05a;\n        font-size: 18px;\n        text-decoration: none;\n\n        &:visited {\n          color: #05a;\n        }\n\n        &:hover {\n          background: #ffffa5;\n        }\n\n        span {\n          background-color: #ff0;\n        }\n      }\n\n      small {\n        font-size: 14px;\n        padding-left: 10px;\n        color: #888;\n      }\n    }\n  }\n}\n\n#help {\n  box-shadow: rgba(0, 0, 0, 0.5) 0px 10px 30px 10px;\n  border-radius: 10px;\n\n  position: fixed;\n  z-index: 8000;\n\n  left: 0;\n  right: 0;\n  top: 50%;\n\n  width: 500px;\n  height: 460px;\n\n  margin: 0 auto;\n  margin-top: -265px;\n\n  display: none;\n\n  padding: 25px;\n\n  background-color: #fff;\n\n  ul {\n    list-style-type: none;\n\n    margin: 0;\n    padding: 0;\n\n    li {\n      height: 35px;\n\n      span {\n        box-shadow: rgba(0, 0, 0, 0.5) 1px 1px 2px;\n        border-radius: 3px;\n\n        display: block;\n        float: left;\n\n        width: 50px;\n\n        padding: 5px;\n        margin-right: 20px;\n\n        background: #eee;\n        text-align: center;\n      }\n\n      font-weight: bold;\n    }\n  }\n}\n\n#content {\n  a:link, a:visited {\n    text-decoration: none;\n    color: #05a;\n  }\n\n  a:hover {\n    background: #ffffa5;\n  }\n\n  #filecontents {\n    img {\n      border: 0;\n    }\n\n    li {\n      line-height: 25px;\n    }\n\n    table {\n      padding: 0;\n      border-collapse: collapse;\n      border-spacing: 0;\n\n      tr {\n        border-top: 1px solid #CCC;\n        background-color: white;\n        margin: 0;\n        padding: 0;\n\n        td {\n          border: 1px solid #CCC;\n          text-align: left;\n          margin: 0;\n          padding: 6px 13px;\n        }\n      }\n    }\n  }\n}\n"
  },
  {
    "path": "themes/default/assets/stylesheets/class.styl",
    "content": "#content {\n\n  table.box {\n    font-size: 1em;\n    line-height: 2;\n\n    border-spacing: 0;\n    border-collapse: collapse;\n\n    tr {\n      background-color: #fff;\n\n      &:first-child {\n        background-color: #EEE;\n      }\n\n      td {\n        border: 1px solid #AAA;\n      }\n\n      td:first-child {\n        width: 100px;\n        padding-right: 10px;\n\n        text-align: right;\n        font-weight: bold;\n      }\n\n      td:last-child {\n        min-width: 420px;\n        padding-left: 10px;\n        padding-right: 10px;\n      }\n    }\n  }\n\n  h1 .note, li .note, .properties .note, .method_details .signature .note {\n    font-weight: normal;\n    padding: 3px 5px;\n    position: relative;\n    top: -3px;\n    text-transform: capitalize;\n    display: inline;\n  }\n\n  .method_details .signature .note {\n    font-size: 0.6em;\n    top: -1px;\n  }\n\n  h1 .note {\n    font-size: 0.5em;\n  }\n\n  li .note {\n    top: 0px;\n    font-size: 0.9em;\n  }\n\n  .properties .note {\n    top: 0px;\n    font-size: 0.85em;\n  }\n\n  ul.summary, .properties {\n    list-style: none;\n    font-family: monospace;\n    font-size: 1em;\n    line-height: 1.5em;\n\n    li {\n      margin-bottom: 5px;\n    }\n\n    .signature {\n      border-radius: 3px;\n\n      padding: 1px 10px;\n      color: #05A;\n      background: #EAEAFF;\n      border: 1px solid #DFDFE5;\n\n      a:hover {\n        background: transparent;\n      }\n    }\n\n    li[deprecated] .signature {\n      text-decoration: line-through;\n    }\n\n    .signature + .note.title {\n      margin-left: 7px;\n    }\n\n    .desc {\n      margin-left: 32px;\n      display: block;\n      font-family: sans-serif;\n\n      p {\n        padding: 0;\n        margin: 0;\n      }\n    }\n  }\n\n  dl.constants {\n    dt {\n      font-weight: bold;\n    }\n  }\n\n  dl.constants, dl.properties {\n    margin-left: 40px;\n\n    dt {\n      font-size: 1.1em;\n      margin-bottom: 5px;\n\n      .docstring {\n        margin-left: 32px;\n        font-size: 0.9em;\n        font-weight: normal;\n      }\n    }\n\n    dd {\n      margin-bottom: 18px;\n    }\n  }\n\n  .method_details {\n    border-top: 1px dotted #AAA;\n    margin-top: 15px;\n    padding-top: 0;\n\n    &:first-child {\n      border: none;\n    }\n\n    p.signature {\n      border-radius: 3px;\n\n      font-size: 1.1em;\n      font-weight: normal;\n      font-family: Monaco, Consolas, Courier, monospace;\n      padding: 6px 10px;\n      margin-top: 18px;\n      background: #E5E8FF;\n      border: 1px solid #D8D8E5;\n    }\n  }\n\n  .tags {\n    font-size: 13px;\n\n    h3 {\n      font-size: 1em;\n      margin-bottom: 3px;\n    }\n\n    ul {\n      margin-top: 0px;\n      padding-left: 30px;\n      list-style: square;\n\n      .name {\n        font-family: monospace;\n        font-weight: bold;\n      }\n\n      .defaultState {\n        font-style: italic;\n      }\n    }\n\n    .overloads {\n      h3 {\n        margin-bottom: 0px;\n      }\n\n      .overload {\n        margin-left: 20px;\n\n        p.signature {\n          padding-top: 2px;\n          padding-bottom: 2px;\n        }\n      }\n    }\n\n    .events {\n      h3 {\n        margin-bottom: 0px;\n      }\n\n      .event {\n        margin-left: 20px;\n\n        p.signature {\n          padding-top: 2px;\n          padding-bottom: 2px;\n        }\n      }\n    }\n  }\n\n  .note {\n    border-radius: 3px;\n\n    margin-top: 10px;\n\n    color: #222;\n    background: #E3E4E3;\n    border: 1px solid #D5D5D5;\n    padding: 7px 10px;\n    display: block;\n  }\n\n  .deprecated {\n    background: #FFE5E5;\n    border-color: #E9DADA;\n  }\n\n  .writeonly {\n    background: #d3ff97;\n    border-color: #c3eb8b;\n  }\n\n  .readonly {\n    background: #FFE5E5;\n    border-color: #E9DADA;\n  }\n\n  .bound {\n    background: #d3ff97;\n    border-color: #c3eb8b;\n  }\n\n  .todo {\n    background: #FFFFC5;\n    border-color: #ECECAA;\n  }\n\n  .private {\n    background: #D5D5D5;\n    border-color: #C5C5C5;\n  }\n\n  .constructor {\n    color: white;\n    background: #6A98D6;\n    border-color: #6689D6;\n  }\n\n  h3.inherited, h3.included, h3.extended {\n    font-style: italic;\n    font-family: \"Lucida Sans\", \"Lucida Grande\", Verdana, Arial, sans-serif;\n    font-weight: normal;\n    padding: 0;\n    margin: 0;\n    margin-top: 12px;\n    margin-bottom: 3px;\n    font-size: 13px;\n  }\n\n  p.inherited, p.included, p.extended {\n    word-spacing: 5px;\n    font-size: 1.2em;\n    padding: 0;\n    margin: 0;\n    margin-left: 25px;\n\n    a {\n      font-family: monospace;\n      font-size: 0.9em;\n    }\n  }\n}\n"
  },
  {
    "path": "themes/default/assets/stylesheets/footer.styl",
    "content": "#footer {\n  margin-top: 15px;\n  border-top: 1px solid #ccc;\n  text-align: center;\n  padding: 7px 0;\n\n  font-size: 12px;\n  color: #999;\n\n  a:link, a:visited {\n    color: #999;\n    text-decoration: none;\n    border-bottom: 1px dotted #bbd;\n  }\n\n  a:hover {\n    color: #05a;\n  }\n}\n"
  },
  {
    "path": "themes/default/assets/stylesheets/header.styl",
    "content": "#menu {\n  font-size: 1.3em;\n  color: #bbb;\n  top: -5px;\n  position: relative;\n\n  .title, a {\n    font-size: 0.7em;\n  }\n\n  .title a {\n    font-size: 1em;\n  }\n\n  .title {\n    color: #555;\n  }\n\n  a:link, a:visited {\n    color: #333;\n    text-decoration: none;\n    border-bottom: 1px dotted #bbd;\n  }\n\n  a:hover {\n    color: #05a;\n  }\n}\n\n#header {\n  nav {\n    float: right;\n\n    color: #000;\n    font-size: 0.7em;\n\n    ul {\n      list-style-type: none;\n      &, & li {\n        margin: 0px;\n        padding: 0px;\n        display: inline;\n      }\n      margin: 4px !important;\n    }\n\n    a {\n      font-size: 1em;\n    }\n  }\n\n  #search {\n    float: right;\n    margin-top: -3px;\n\n    a:link, a:visited {\n      box-shadow: #ddd -1px 1px 3px;\n      border-bottom-left-radius: 3px;\n      border-bottom-right-radius: 3px;\n\n      display: block;\n      float: left;\n\n      margin-right: 4px;\n      padding: 8px 10px;\n\n      color: #05a;\n      background: #eaf0ff;\n\n      text-decoration: none;\n      border: 1px solid #d8d8e5;\n    }\n\n    a:hover {\n      background: #f5faff;\n      color: #06b;\n    }\n\n    a.active {\n      border-top-left-radius: 5px;\n      border-top-right-radius: 5px;\n\n      padding-bottom: 20px;\n\n      color: #fff;\n      background: #568;\n\n      border: 1px solid #457;\n    }\n\n    a.inactive {\n      color: #999;\n    }\n  }\n}\n\n#search_frame {\n  box-shadow: #aaa -7px 5px 25px;\n\n  display: none;\n  position: absolute;\n  overflow-y: scroll;\n\n  z-index: 9999;\n\n  top: 36px;\n  right: 18px;\n\n  width: 500px;\n  height: 80%;\n\n  background: white;\n  border: 1px solid #999;\n  border-collapse: collapse;\n}\n\n"
  },
  {
    "path": "themes/default/assets/stylesheets/lists.styl",
    "content": "body.list {\n  padding: 0;\n  margin: 0;\n}\n\nbody {\n  #content.list {\n    #search {\n      position: relative;\n      margin-top: 5px;\n      margin-left: 10px;\n    }\n  }\n}\n\n#content.list.tree {\n  > ul {\n    margin-top: 13px !important;\n  }\n\n  ul {\n    font-size: 16px;\n\n    margin: 0;\n    padding: 0;\n\n    li {\n      margin: 0;\n      padding: 5px;\n\n      color: #000;\n      font-size: 1em;\n      list-style: none;\n\n      white-space: nowrap;\n      overflow: hidden;\n\n      cursor: pointer;\n\n      &.namespace {\n        overflow: visible;\n      }\n\n      > a.toggle {\n        display: block;\n        float: left;\n\n        width: 10px;\n        height: 10px;\n\n        margin-top: 5px;\n        margin-left: 5px;\n\n        background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAASCAYAAABb0P4QAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAK8AAACvABQqw0mAAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTM5jWRgMAAAAVdEVYdENyZWF0aW9uIFRpbWUAMy8xNC8wOeNZPpQAAAE2SURBVDiNrZTBccIwEEXfelIAHUA6CZ24BGaWO+FuzZAK4k6gg5QAdGAq+Bxs2Yqx7BzyL7Llp/VfzZeQhCTc/ezuGzKKnKSzpCxXJM8fwNXda3df5RZETlIt6YUzSQDs93sl8w3wBZxCCE10GM1OcWbWjB2mWgEH4Mfdyxm3PSepBHibgQE2wLe7r4HjEidpnXMYdQPKEMJcsZ4zs2POYQOcaPfwMVOo58zsAdMt18BuoVDPxUJRacELbXv3hUIX2vYmOUvi8C8ydz/ThjXrqKqqLbDIAdsCKBd+Wo7GWa7o9qzOQHVVVXeAbs+yHHCH4aTsaCOQqunmUy1yBUAXkdMIfMlgF5EXLo2OpV/c/Up7jG4hhHcYLgWzAZXUc2b2ixsfvc/RmNNfOXD3Q/oeL9axJE1yT9IOoUu6MGUkAAAAAElFTkSuQmCC');\n        background-repeat: no-repeat;\n        background-position: 0px -10px;\n\n        &.collapsed {\n          background-position: 0px 0px;\n        }\n      }\n\n      > span, a {\n        margin-left: 20px;\n        text-decoration: none;\n      }\n\n      > a.toggle + span, a.toggle + a {\n        margin-left: 5px;\n      }\n\n      small {\n        color: #888;\n        white-space: nowrap;\n      }\n\n      small.namespace {\n        display: none;\n      }\n\n      &.result {\n\n        a.toggle {\n          visibility: hidden;\n        }\n\n        small.namespace {\n          display: inline;\n        }\n\n        small.parent {\n          display: none;\n        }\n      }\n    }\n  }\n}\n\n#content.list {\n  padding: 0;\n  margin: 0;\n\n  h1 {\n    padding: 12px 10px;\n    padding-bottom: 10px;\n    margin: 0;\n    font-size: 1.4em;\n  }\n\n  a:hover {\n    background: transparent;\n  }\n\n  nav {\n    margin-left: 10px;\n  }\n\n  #search {\n    color: #888;\n\n    input {\n      border-radius: 3px;\n      border: 1px solid #BBB;\n    }\n  }\n\n  a {\n    color: #05A;\n    cursor: pointer;\n    text-decoration: none;\n  }\n\n  a:hover {\n    text-decoration: underline;\n  }\n\n  ul {\n    padding: 0;\n    list-style: none;\n    margin-left: 0;\n\n    li[deprecated] {\n      text-decoration: line-through;\n    }\n\n    li {\n      padding: 5px;\n      padding-left: 12px;\n      margin: 0;\n      font-size: 1.1em;\n      list-style: none;\n\n      color: #888;\n      cursor: pointer;\n\n      &.stripe {\n        background: #F0F0F0;\n      }\n\n      &:hover {\n        background: #ddd;\n      }\n    }\n  }\n}\n"
  },
  {
    "path": "themes/default/assets/stylesheets/toc.styl",
    "content": "nav.toc {\n  box-shadow: #bbb -2px 2px 6px;\n\n  overflow: hidden;\n  float: right;\n\n  z-index: 500;\n  right: 0px;\n  max-width: 300px;\n\n  padding: 20px;\n  padding-right: 30px;\n\n  margin-left: 20px;\n  margin-bottom: 20px;\n\n  background: white;\n  border: 1px solid #DDD;\n\n  p.title {\n    margin-top: 5px;\n  }\n\n  ol {\n    padding-left: 1.8em;\n  }\n\n  li {\n    font-size: 1.1em;\n    line-height: 1.7em;\n  }\n\n  > ol > li {\n    font-size: 1.1em;\n    font-weight: bold;\n  }\n\n  ol > ol {\n    font-size: 0.9em;\n  }\n}\n\nnav.toc.inline {\n  box-shadow: #fff 0px 0px 0px;\n\n  position: relative;\n  float: none;\n\n  padding: 0;\n  margin: 5px 0 0 0;\n\n  border: 0px;\n\n  &.hidden {\n    background: none;\n    padding: 0;\n    text-align: left;\n  }\n}\n\nnav.toc.hidden {\n  height: 26px;\n  width: 140px;\n\n  padding: 5px;\n  background: #F6F6F6;\n\n  text-align: center;\n\n  p.title small {\n    display: none;\n  }\n}\n"
  },
  {
    "path": "themes/default/assets/stylesheets/vendor/highlight.css",
    "content": "pre code{display:block;padding:.5em;background:#f0f0f0}pre code,pre .subst,pre .tag .title,pre .lisp .title,pre .clojure .built_in,pre .nginx .title{color:black}pre .string,pre .title,pre .constant,pre .parent,pre .tag .value,pre .rules .value,pre .rules .value .number,pre .preprocessor,pre .haml .symbol,pre .ruby .symbol,pre .ruby .symbol .string,pre .aggregate,pre .template_tag,pre .django .variable,pre .smalltalk .class,pre .addition,pre .flow,pre .stream,pre .bash .variable,pre .apache .tag,pre .apache .cbracket,pre .tex .command,pre .tex .special,pre .erlang_repl .function_or_atom,pre .asciidoc .header,pre .markdown .header,pre .coffeescript .attribute{color:#800}pre .comment,pre .annotation,pre .template_comment,pre .diff .header,pre .chunk,pre .asciidoc .blockquote,pre .markdown .blockquote{color:#888}pre .number,pre .date,pre .regexp,pre .literal,pre .hexcolor,pre .smalltalk .symbol,pre .smalltalk .char,pre .go .constant,pre .change,pre .lasso .variable,pre .asciidoc .bullet,pre .markdown .bullet,pre .asciidoc .link_url,pre .markdown .link_url{color:#080}pre .label,pre .javadoc,pre .ruby .string,pre .decorator,pre .filter .argument,pre .localvars,pre .array,pre .attr_selector,pre .important,pre .pseudo,pre .pi,pre .haml .bullet,pre .doctype,pre .deletion,pre .envvar,pre .shebang,pre .apache .sqbracket,pre .nginx .built_in,pre .tex .formula,pre .erlang_repl .reserved,pre .prompt,pre .asciidoc .link_label,pre .markdown .link_label,pre .vhdl .attribute,pre .clojure .attribute,pre .asciidoc .attribute,pre .lasso .attribute,pre .coffeescript .property{color:#88F}pre .keyword,pre .id,pre .title,pre .built_in,pre .aggregate,pre .css .tag,pre .javadoctag,pre .phpdoc,pre .yardoctag,pre .smalltalk .class,pre .winutils,pre .bash .variable,pre .apache .tag,pre .go .typename,pre .tex .command,pre .asciidoc .strong,pre .markdown .strong,pre .request,pre .status{font-weight:bold}pre .asciidoc .emphasis,pre .markdown .emphasis{font-style:italic}pre .nginx .built_in{font-weight:normal}pre .coffeescript .javascript,pre .javascript .xml,pre .lasso .markup,pre .tex .formula,pre .xml .javascript,pre .xml .vbscript,pre .xml .css,pre .xml .cdata{opacity:.5}"
  },
  {
    "path": "themes/default/lib/_theme.coffee",
    "content": "module.exports = {}"
  },
  {
    "path": "themes/default/lib/templater.coffee",
    "content": "FS      = require 'fs'\nPath    = require 'path'\nmkdirp  = require 'mkdirp'\n_       = require 'underscore'\nhamlc   = require 'haml-coffee'\nwalkdir = require 'walkdir'\nMincer  = require 'mincer'\nNib     = require 'nib'\nTheme   = require './_theme'\n\nmodule.exports = class Theme.Templater\n\n  sourceOf: (subject) ->\n    Path.join(__dirname, '..', subject)\n\n  constructor: (@destination) ->\n    Mincer.StylusEngine.configure (stylus) => stylus.use Nib()\n    Mincer.CoffeeEngine.configure bare: false\n\n    @JST = []\n\n    templates = @sourceOf('templates')\n\n    for template in walkdir.sync(templates)\n      unless FS.lstatSync(template).isDirectory()\n        relative = Path.relative(templates, template)\n        dirname  = Path.dirname(relative)\n        basename = Path.basename(template, '.hamlc')\n\n        keyword = basename\n        keyword = dirname + '/' + basename unless dirname == '.'\n\n        @JST[keyword] = hamlc.compile FS.readFileSync(template, 'utf8'),\n          escapeAttributes: false\n\n  compileAsset: (from, to=false) ->\n    mincer = new Mincer.Environment()\n    mincer.appendPath @sourceOf('assets')\n\n    asset = mincer.findAsset(from)\n    file  = Path.join(@destination, to || from)\n    dir   = Path.dirname(file)\n\n    mkdirp.sync(dir)\n    FS.writeFileSync(file, asset.buffer)\n\n  # Render the given template with the context and the\n  # global context object merged as template data. Writes\n  # the file as the output filename.\n  #\n  # @param [String] template the template name\n  # @param [Object] context the context object\n  # @param [String] filename the output file name\n  #\n  render: (template, context = {}, filename = '') ->\n    html = @JST[template](context)\n\n    if filename.length > 0\n      file = Path.join @destination, filename\n      dir  = Path.dirname(file)\n\n      mkdirp.sync(dir)\n      FS.writeFileSync(file, html)\n\n    html\n"
  },
  {
    "path": "themes/default/lib/theme.coffee",
    "content": "strftime    = require 'strftime'\nFS          = require 'fs'\nPath        = require 'path'\nTemplater   = require './templater'\nTreeBuilder = require './tree_builder'\n\nTheme = require './_theme'\nCodo  = require '../../../lib/codo'\n\nmodule.exports = class Theme.Theme\n\n  options: [\n    {name: 'private', alias: 'p', describe: 'Show privates', boolean: true, default: false}\n    {name: 'analytics', alias: 'a', describe: 'The Google analytics ID', default: false}\n    {name: 'title', alias: 't', describe: 'HTML Title', default: 'CoffeeScript API Documentation'}\n  ]\n\n  @compile: (environment) ->\n    theme = new @(environment)\n    theme.compile()\n\n  constructor: (@environment) ->\n    @templater  = new Templater(@environment.options.output)\n    @referencer = new Codo.Tools.Referencer(@environment)\n\n  compile: ->\n    @templater.compileAsset('javascript/application.js')\n    @templater.compileAsset('stylesheets/application.css')\n\n    @renderAlphabeticalIndex()\n    @render 'method_list', 'method_list.html'\n\n    @renderClasses()\n    @renderMixins()\n    @renderFiles()\n    @renderExtras()\n    @renderIndex()\n    @renderFuzzySearchData()\n\n  #\n  # HELPERS\n  #\n  awareOf: (needle) ->\n    @environment.references[needle]?\n\n  reference: (needle, prefix) ->\n    @pathFor(@environment.reference(needle), undefined, prefix)\n\n  anchorFor: (entity) ->\n    if entity instanceof Codo.Meta.Method\n      \"#{entity.name}-#{entity.kind}\"\n    else if entity instanceof Codo.Entities.Property\n      \"#{entity.name}-property\"\n    else if entity instanceof Codo.Entities.Variable\n      \"#{entity.name}-variable\"\n\n  pathFor: (kind, entity, prefix='') ->\n    unless entity?\n      entity = kind\n      kind = 'class'  if entity instanceof Codo.Entities.Class\n      kind = 'mixin'  if entity instanceof Codo.Entities.Mixin\n      kind = 'file'   if entity instanceof Codo.Entities.File\n      kind = 'extra'  if entity instanceof Codo.Entities.Extra\n      kind = 'method' if entity.entity instanceof Codo.Meta.Method\n      kind = 'variable' if entity.entity instanceof Codo.Entities.Variable\n      kind = 'property' if entity.entity instanceof Codo.Entities.Property\n\n    switch kind\n      when 'file', 'extra'\n        prefix + kind + '/' + entity.name + '.html'\n      when 'class', 'mixin'\n        prefix + kind + '/' + entity.name.replace(/\\./, '/') + '.html'\n      when 'method', 'variable', 'property'\n        @pathFor(entity.owner, undefined, prefix) + '#' + @anchorFor(entity.entity)\n      else\n        entity\n\n  activate: (text, prefix, limit=false) ->\n    text = @referencer.resolve text, (link, label) =>\n      \"<a href='#{@pathFor link, undefined, prefix}'>#{label}</a>\"\n\n    Codo.Tools.Markdown.convert(text, limit)\n\n  generateBreadcrumbs: (entries = []) ->\n    entries     = [entries] unless Array.isArray(entries)\n    breadcrumbs = []\n\n    if @environment.options.readme\n      breadcrumbs.push\n        href:  @pathFor('extra', @environment.findReadme())\n        title: @environment.options.name\n\n    breadcrumbs.push(href: 'alphabetical_index.html', title: 'Index')\n\n    for entry in entries\n      if entry instanceof Object\n        breadcrumbs.push entry\n      else\n        breadcrumbs.push {title: entry}\n\n    breadcrumbs\n\n  calculatePath: (filename) ->\n    dirname = Path.dirname(filename)\n    dirname.split(/[\\/\\\\]/).map(-> '..').join('/')+'/' unless dirname == '.'\n\n  render: (source, destination, context={}) ->\n    globalContext =\n      environment: @environment\n      path:        @calculatePath(destination)\n      strftime:    strftime\n      anchorFor:   @anchorFor\n      pathFor:     @pathFor\n      reference:   @reference\n      awareOf:     @awareOf\n      activate:    => @activate(arguments...)\n      render:      (template, context={}) =>\n        context[key] = value for key, value of globalContext\n        @templater.render template, context\n\n    context[key] = value for key, value of globalContext\n    @templater.render source, context, destination\n\n  #\n  # RENDERERS\n  #\n\n  # Generate the alphabetical index of all classes and mixins.\n  #\n  renderAlphabeticalIndex: ->\n    classes = {}\n    mixins  = {}\n    files   = {}\n\n    # Sort in character group\n    for code in [97..122]\n      char = String.fromCharCode(code)\n      map  = [\n        [@environment.visibleClasses(), classes],\n        [@environment.visibleMixins(), mixins],\n        [@environment.visibleFiles(), files]\n      ]\n\n      for [list, storage] in map\n        for entry in list\n          if entry.basename.toLowerCase()[0] == char\n            storage[char] ?= []\n            storage[char].push(entry) \n\n    @render 'alphabetical_index', 'alphabetical_index.html',\n      classes: classes\n      mixins:  mixins\n      files:   files\n\n  renderIndex: ->\n    list = if @environment.visibleClasses().length > 0\n        'class_list.html'\n      else if @environment.visibleFiles().length > 0\n        'file_list.html'\n      else if @environment.visibleMixins().length > 0\n        'mixin_list.html'\n      else if @environment.visibleExtras().length > 0\n        'extra_list.html'\n      else\n        'method_list.html'\n\n    main = if @environment.options.readme\n      @pathFor('extra', @environment.findReadme())\n    else\n      'alphabetical_index.html'\n\n    @render 'frames', 'index.html',\n      list: list\n      main: main\n\n  renderClasses: ->\n    @render 'class_list', 'class_list.html',\n      tree: TreeBuilder.build @environment.visibleClasses(), (klass) ->\n        [klass.basename, klass.namespace.split('.')]\n\n    for klass in @environment.visibleClasses()\n      @render 'class', @pathFor('class', klass),\n        entity: klass,\n        breadcrumbs: @generateBreadcrumbs(klass.name.split '.')\n\n  renderMixins: ->\n    @render 'mixin_list', 'mixin_list.html',\n      tree: TreeBuilder.build @environment.visibleMixins(), (klass) ->\n        [klass.basename, klass.namespace.split('.')]\n\n    for mixin in @environment.visibleMixins()\n      @render 'mixin', @pathFor('mixin', mixin),\n        entity: mixin\n        breadcrumbs: @generateBreadcrumbs(mixin.name.split '.')\n\n  renderFiles: ->\n    @render 'file_list', 'file_list.html',\n      tree: TreeBuilder.build @environment.visibleFiles(), (file) ->\n        [file.basename, file.dirname.split('/')]\n\n    for file in @environment.visibleFiles()\n      @render 'file', @pathFor('file', file),\n        entity: file,\n        breadcrumbs: @generateBreadcrumbs(file.name.split '/')\n\n  renderExtras: ->\n    @render 'extra_list', 'extra_list.html',\n      tree: TreeBuilder.build @environment.visibleExtras(), (extra) ->\n        result = extra.name.split('/')\n        [result.pop(), result]\n\n    for extra in @environment.visibleExtras()\n      @render 'extra', @pathFor('extra', extra),\n        entity: extra\n        breadcrumbs: @generateBreadcrumbs(extra.name.split '/')\n\n  renderFuzzySearchData: ->\n    search = []\n    everything = [\n      @environment.visibleClasses(),\n      @environment.visibleMixins(),\n      @environment.visibleFiles(),\n      @environment.visibleExtras()\n    ]\n\n    for basics in everything\n      for basic in basics\n        search.push\n          t: basic.name\n          p: @pathFor(basic)\n\n    for method in @environment.visibleMethods()\n      search.push\n        t: \"#{method.owner.name}#{method.entity.shortSignature()}\"\n        p: @pathFor(method)\n\n    content = 'window.searchData = ' + JSON.stringify(search)\n    output  = Path.join(@environment.options.output, 'javascript', 'search.js')\n\n    FS.writeFileSync output, content"
  },
  {
    "path": "themes/default/lib/tree_builder.coffee",
    "content": "Theme = require './_theme'\n\nmodule.exports = class Theme.TreeBuilder\n\n  @build: (collection, resolver) ->\n    (new @ collection, resolver).tree\n\n  constructor: (@collection, @resolver) ->\n    @tree = []\n\n    for entry in @collection\n      do (entry) =>\n        storage      = @tree\n        [name, path] = @resolver(entry)\n\n        for segment in path when segment.length > 0\n          storage = @situate(storage, segment)\n\n        @situate(storage, name, entry)\n\n\n  situate: (storage, name, entity) ->\n    for entry in storage\n      if entry.name == name\n        entry.entity = entry.entity || entity\n        return entry.children\n\n    storage.push entry = \n      name:     name\n      children: []\n      entity:   entity\n\n    entry.children"
  },
  {
    "path": "themes/default/templates/alphabetical_index.hamlc",
    "content": "!!!\n%html\n  != @render 'layout/header'\n  %body\n    != @render 'layout/intro'\n\n    #content\n      %h1.noborder.title= @title\n\n      #listing\n        %h1.alphaindex Alphabetical Index\n\n        %h2 Extra File Listing\n\n        - if @environment.visibleExtras().length > 0\n          %ul#files\n            - for extra in @environment.visibleExtras()\n              %li\n                %a{href: @pathFor('extra', extra, @path), title: extra.name}\n                  = extra.name\n\n        - if @environment.visibleClasses().length > 0\n          %h2 Class Listing A-Z\n\n          .index\n            - for char, classes of @classes\n              %ul\n                %li.letter= char\n                %ul\n                  - for klass in classes\n                    %li\n                      %a{href: @pathFor('class', klass, @path)}\n                        = klass.basename\n\n                      - if klass.namespace\n                        %small\n                          = surround '(', ')', -> klass.namespace\n\n        - if @environment.visibleMixins().length > 0\n          %h2 Mixins Listing A-Z\n\n          .index\n            - for char, mixins of @mixins\n              %ul\n                %li.letter= char\n                %ul\n                  - for mixin in mixins\n                    %li\n                      %a{href: @pathFor('mixin', mixin, @path)}\n                        = mixin.basename\n\n                      - if mixin.namespace\n                        %small\n                          = surround '(', ')', -> mixin.namespace\n\n        - if @environment.visibleFiles().length > 0\n          %h2 File Listing A-Z\n\n          .index\n            - for char, files of @files\n              %ul\n                %li.letter= char\n                %ul\n                  - for file in files\n                    %li\n                      %a{href: @pathFor('file', file, @path)}\n                        = file.basename\n\n                      - if file.dirname\n                        %small\n                          = surround '(', ')', -> file.dirname\n\n    != @render 'layout/footer'\n"
  },
  {
    "path": "themes/default/templates/class.hamlc",
    "content": "!!!\n%html\n  != @render 'layout/header'\n  %body\n    != @render 'layout/intro', breadcrumbs: @breadcrumbs\n\n    #content\n      %h1\n        Class:\n        = @entity.name\n\n        - if @entity.documentation?.abstract?\n          %span.note.title Abstract\n\n        - if @entity.documentation?.deprecated?\n          %span.deprecated.note.title Deprecated\n\n        - if @entity.documentation?.private?\n          %span.private.note.title Private\n\n        - if @entity.documentation?.public?\n          %span.public.note.title Public\n\n      %table.box\n        %tr\n          %td Defined in:\n          %td= @entity.file.name\n\n        - if @entity.parent\n          %tr\n            %td Inherits:\n            %td\n              - if @entity.parent.visible?()\n                %a{href: @pathFor('class', @entity.parent, @path)}= @entity.parent.name\n              - else\n                = @entity.parent.name || @entity.parent\n\n        - if @entity.extends.length > 0\n          %tr\n            %td Extends:\n            %td\n              - for extension, i in @entity.extends\n                - if extension.visible?()\n                  %a{href: @pathFor('mixin', extension, @path)}= extension.name\n                - else\n                  = extension.name || extension\n\n        - if @entity.includes.length > 0\n          %tr\n            %td Includes:\n            %td\n              - for include, i in @entity.includes\n                - if include.visible?()\n                  %a{href: @pathFor('mixin', include, @path)}= include.name\n                - else\n                  = include.name || include\n\n        - if @entity.concerns.length > 0\n          %tr\n            %td Concerns:\n            %td\n              - for concern, i in @entity.concerns\n                - if concern.visible?()\n                  %a{href: @pathFor('mixin', concern, @path)}= concern.name\n                - else\n                  = concern.name || concern\n\n\n      - if @entity.documentation?\n        %h2 Overview\n        != @render 'partials/documentation', documentation: @entity.documentation, kind: 'class'\n\n\n      - if @entity.descendants.filter((x) -> x.visible()).length > 0\n        %h2 Direct Known Subclasses\n        %p.children\n          - for descendant in @entity.descendants.filter((x) -> x.visible())\n            %a{href: @pathFor('class', descendant, @path)}= descendant.name\n\n\n      - if @entity.properties.length > 0 || @entity.inheritedProperties().length > 0\n        %h2 Property Summary\n\n        - if @entity.properties.length > 0\n          %dl.properties\n            - for property in @entity.properties\n              %dt{id: @anchorFor(property)}\n                %span.signature\n                  - if property.documentation?.property\n                    = \"(#{property.documentation.property})\"\n                  - else\n                    (?)\n                  %b\n                    = property.name\n                - unless property.setter\n                  %span.readonly.note.title Readonly\n                - unless property.getter\n                  %span.writeonly.note.title Writeonly\n              %dd.desc\n                != @activate property.documentation.comment, @path, true\n\n        - if @entity.parent?.visible?() && @entity.inheritedProperties().length > 0\n          %h3.inherited\n            Properties inherited from\n            %a{href: @pathFor('class', @entity.parent, @path)}= @entity.parent.name\n          %p.inherited\n            - for property in @entity.inheritedProperties()\n              %a{href: @pathFor(property, undefined, @path)}= property.entity.name\n\n\n      - if @entity.variables.length > 0 || @entity.parent?.visible?() && @entity.inheritedVariables().length > 0\n        %h2 Variables Summary\n        != @render 'partials/variable_list', variables: @entity.variables\n\n        - if @entity.parent?.visible?() && @entity.inheritedVariables().length > 0\n          %h3.inherited\n            Variable inherited from\n            %a{href: @pathFor('class', @entity.parent, @path)}= @entity.parent.name\n          %p.inherited\n            - for variable in @entity.inheritedVariables()\n              %a{href: @pathFor(variable, undefined, @path)}= variable.entity.name\n\n\n      - staticMethods  = @entity.effectiveMethods().filter (m) -> m.kind == 'static' && m.visible\n      - dynamicMethods = @entity.effectiveMethods().filter (m) -> m.kind == 'dynamic' && m.name != 'constructor' && m.visible\n      - constructor    = @entity.effectiveMethods().filter (m) -> m.kind == 'dynamic' && m.name == 'constructor'\n\n      - if staticMethods.length > 0\n        %h2 Class Method Summary\n        != @render 'partials/method_summary', methods: staticMethods\n\n      - if dynamicMethods.length > 0\n        %h2 Instance Method Summary\n        != @render 'partials/method_summary', methods: dynamicMethods\n\n      - if @entity.parent?.visible?() && @entity.inheritedMethods().filter((x) -> x.entity.visible).length > 0\n        %h2\n          %small Inherited Method Summary\n\n          %h3.inherited\n            Methods inherited from\n            %a{href: @pathFor('class', @entity.parent, @path)}= @entity.parent.name\n          %p.inherited\n            - for method in @entity.inheritedMethods().filter((x) -> x.entity.visible)\n              %a{href: @pathFor(method, undefined, @path)}= method.entity.shortSignature()\n\n      - if @entity.extends.filter((x) -> x.visible?()).length > 0\n        %h2\n          %small Extended Method Summary\n\n        - for mixin in @entity.extends.filter((x) -> x.visible?())\n          %h3.inherited\n            Methods extended from\n            %a{href: @pathFor('mixin', mixin, @path)}= mixin.name\n          %p.inherited\n            - for method in mixin.effectiveExtensionMethods().filter((x) -> x.visible)\n              %a{href: \"#{@pathFor 'mixin', mixin, @path}##{@anchorFor(method)}\"}= method.shortSignature()\n\n      - if @entity.includes.filter((x) -> x.visible?()).length > 0\n        %h2\n          %small Included Method Summary\n\n        - for mixin in @entity.includes.filter((x) -> x.visible?())\n          %h3.inherited\n            Methods included from\n            %a{href: @pathFor('mixin', mixin, @path)}= mixin.name\n          %p.inherited\n            - for method in mixin.effectiveInclusionMethods().filter((x) -> x.visible)\n              %a{href: \"#{@pathFor 'mixin', mixin, @path}##{@anchorFor(method)}\"}= method.shortSignature()\n\n\n      - if @entity.concerns.filter((x) -> x.visible?()).length > 0\n        %h2\n          %small Concerned Method Summary\n\n        - for mixin in @entity.concerns.filter((x) -> x.visible?())\n          %h3.inherited\n            Methods concerned from\n            %a{href: @pathFor('mixin', mixin, @path)}= mixin.name\n          %p.inherited\n            - for method in mixin.effectiveConcernMethods().filter((x) -> x.visible)\n              %a{href: \"#{@pathFor 'mixin', mixin, @path}##{@anchorFor(method)}\"}= method.shortSignature()\n\n      - if staticMethods.length > 0\n        %h2 Class Method Details\n        != @render 'partials/method_list', methods: staticMethods\n\n      - if constructor.length == 1\n        %h2 Constructor Details\n        != @render 'partials/method_list', methods: constructor\n\n      - if dynamicMethods.length > 0\n        %h2 Instance Method Details\n        != @render 'partials/method_list', methods: dynamicMethods\n\n    != @render 'layout/footer'\n"
  },
  {
    "path": "themes/default/templates/class_list.hamlc",
    "content": "!!!\n%html\n  != @render 'layout/header'\n  %body.list\n    #content.tree.list\n      %h1.full_list_header Class List\n\n      != @render 'partials/list_nav'\n\n      #search\n        Search:\n        %input{ type: 'text' }\n\n      - createLevel = (tree) =>\n        %ul\n          - for entry in tree\n            %li\n              - if entry.entity\n                %a{href: @pathFor('class', entry.entity, @path), target: 'main'}\n                  = entry.entity.basename\n                - if entry.entity.parent\n                  %small.parent\n                    <\n                    = entry.entity.parent.name || entry.entity.parent\n                %small.namespace\n                  = entry.entity.namespace\n              - else\n                %span\n                  = entry.name\n\n            = createLevel(entry.children) if entry.children.length > 0\n\n      = createLevel @tree\n"
  },
  {
    "path": "themes/default/templates/extra.hamlc",
    "content": "!!!\n%html\n  != @render 'layout/header'\n  %body\n    != @render 'layout/intro', breadcrumbs: @breadcrumbs\n\n    #content\n      %nav.toc\n        %p.title\n          %a.hide_toc{href: '#'}\n            %strong Table of Contents\n          %small\n            != surround '(', ')', ->\n              %a.float_toc{href: '#'}> left\n      #filecontents\n        != @entity.parsed\n\n    != @render 'layout/footer'\n"
  },
  {
    "path": "themes/default/templates/extra_list.hamlc",
    "content": "!!!\n%html\n  != @render 'layout/header'\n  %body.list\n    #content.tree.list\n      %h1.full_list_header File List\n\n      != @render 'partials/list_nav'\n\n      #search\n        Search:\n        %input{ type: 'text' }\n\n      - createLevel = (tree) =>\n        %ul\n          - for entry in tree\n            %li\n              - if entry.entity\n                %a{href: @pathFor('extra', entry.entity, @path), target: 'main'}\n                  = entry.name\n              - else\n                %span\n                  = entry.name\n\n            = createLevel(entry.children) if entry.children.length > 0\n\n      = createLevel @tree"
  },
  {
    "path": "themes/default/templates/file.hamlc",
    "content": "!!!\n%html\n  != @render 'layout/header'\n  %body\n    != @render 'layout/intro', breadcrumbs: @breadcrumbs\n\n    #content\n      %h1\n        File:\n        = @entity.basename\n\n      %table.box\n        %tr\n          %td Defined in:\n          %td= @entity.dirname\n        - if @entity.classes.length > 0\n          %tr\n            %td\n              Classes:\n            %td\n              - for klass in @entity.classes\n                %a{href: @pathFor('class', klass, @path)}\n                  = klass.name\n        - if @entity.mixins.length > 0\n          %tr\n            %td\n              Mixins:\n            %td\n              - for mixin in @entity.mixins\n                %a{href: @pathFor('mixin', mixin, @path)}\n                  = mixin.name\n\n      - if @entity.variables.length > 0\n        %h2 Variables Summary\n        != @render 'partials/variable_list', variables: @entity.variables\n\n      - if @entity.effectiveMethods().length > 0\n        %h2 Method Summary\n        != @render 'partials/method_summary', methods: @entity.effectiveMethods()\n\n        %h2 Method Details\n        != @render 'partials/method_list', methods: @entity.effectiveMethods()\n\n    != @render 'layout/footer'\n"
  },
  {
    "path": "themes/default/templates/file_list.hamlc",
    "content": "!!!\n%html\n  != @render 'layout/header'\n  %body.list\n    #content.tree.list\n      %h1.full_list_header File List\n\n      != @render 'partials/list_nav'\n\n      #search\n        Search:\n        %input{ type: 'text' }\n\n      - createLevel = (tree) =>\n        %ul\n          - for entry in tree\n            %li\n              - if entry.entity\n                %a{href: @pathFor('file', entry.entity, @path), target: 'main'}\n                  = entry.entity.basename\n                %small.namespace\n                  = entry.entity.dirname\n              - else\n                %span\n                  = entry.name\n\n            = createLevel(entry.children) if entry.children.length > 0\n\n      = createLevel @tree"
  },
  {
    "path": "themes/default/templates/frames.hamlc",
    "content": "!!!\n%html\n  != @render 'layout/header'\n  %frameset{ cols: '25%, *' }\n    %frame{ name: 'list', src: \"#{@list}\" }\n    %frame#content{ name: 'main', src: \"#{@main}\" }"
  },
  {
    "path": "themes/default/templates/layout/footer.hamlc",
    "content": "#footer\n\n  By\n  %a{href: 'https://github.com/coffeedoc/codo', title: 'CoffeeScript API documentation generator'}\n    Codo\n  = @environment.version\n\n  &#10034;\n\n  Press H to see the keyboard shortcuts\n\n  &#10034;\n\n  %a{href: 'http://twitter.com/netzpirat', target: '_parent'} @netzpirat\n\n  &#10034;\n\n  %a{href: 'http://twitter.com/_inossidabile', target: '_parent'} @_inossidabile\n\n%iframe#search_frame\n\n#fuzzySearch\n  %input{type: 'text'}\n  %ol\n\n#help\n  %p\n    Quickly fuzzy find classes, mixins, methods, file:\n  %ul\n    %li\n      %span T\n      Open fuzzy finder dialog\n\n  %p\n    Control the navigation frame:\n  %ul\n    %li\n      %span L\n      Toggle list view\n    %li\n      %span C\n      Show class list\n    %li\n      %span I\n      Show mixin list\n    %li\n      %span F\n      Show file list\n    %li\n      %span M\n      Show method list\n    %li\n      %span E\n      Show extras list\n\n  %p\n    You can focus and blur the search input:\n  %ul\n    %li\n      %span S\n      Focus search input\n    %li\n      %span Esc\n      Blur search input\n"
  },
  {
    "path": "themes/default/templates/layout/header.hamlc",
    "content": "%head\n  %meta{charset: 'UTF-8'}\n  %title= @environment.options.title\n\n  %script{src: \"#{@path}javascript/application.js\"}\n  %script{src: \"#{@path}javascript/search.js\"}\n  %link{rel: 'stylesheet', href: \"#{@path}stylesheets/application.css\", type: 'text/css'}\n\n  - if @environment.options.analytics\n    :javascript\n      var _gaq = _gaq || [];\n      _gaq.push(['_setAccount', '#{@analytics}']);\n      _gaq.push(['_trackPageview']);\n\n      (function() {\n        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;\n        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';\n        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);\n      })();\n"
  },
  {
    "path": "themes/default/templates/layout/intro.hamlc",
    "content": "#base{data: {path: @path}}\n#header\n  #menu\n    - if @breadcrumbs?.length > 0\n      - current = @breadcrumbs.pop()\n      - for breadcrumb in @breadcrumbs\n        - if breadcrumb.href\n          %a{href: \"#{@path}#{breadcrumb.href}\", title: breadcrumb.title}\n            = breadcrumb.title\n        - else\n          %span.title= breadcrumb.title\n        &raquo;\n      %span.title= current.title"
  },
  {
    "path": "themes/default/templates/method_list.hamlc",
    "content": "!!!\n%html\n  != @render 'layout/header'\n  %body.list\n    #content.list\n      %h1.full_list_header Method List\n\n      != @render 'partials/list_nav'\n\n      #search\n        Search:\n        %input{ type: 'text' }\n\n      %ul\n        - for method in @environment.visibleMethods()\n          %li{deprecated: if method.documentation?.deprecated then true else false}\n            %a{href: @pathFor(method), target: 'main', title: method.entity.name}\n              = method.entity.shortSignature()              \n            %small\n              = surround '(', ')', -> method.owner.name\n"
  },
  {
    "path": "themes/default/templates/mixin.hamlc",
    "content": "!!!\n%html\n  != @render 'layout/header'\n  %body\n    != @render 'layout/intro', breadcrumbs: @breadcrumbs\n\n    #content\n      %h1\n        Mixin:\n        = @entity.name\n\n        - if @entity.documentation?.abstract\n          %span.note.title Abstract\n\n        - if @entity.documentation?.deprecated\n          %span.deprecated.note.title Deprecated\n\n        - if @entity.concern\n          %span.note.concern Concern\n\n        - if @entity.documentation?.private\n          %span.note.private Private\n\n      %table.box\n        %tr\n          %td Defined in:\n          %td= @entity.file.name\n\n        - if @entity.extensions.filter((x) -> x.visible()).length > 0\n          %tr\n            %td Extended in:\n            %td\n              - for klass in @entity.extensions.filter((x) -> x.visible())\n                %a{href: @pathFor('class', klass, @path)}= klass.name\n\n        - if @entity.inclusions.filter((x) -> x.visible()).length > 0\n          %tr\n            %td Included in:\n            %td\n              - for klass in @entity.inclusions.filter((x) -> x.visible())\n                %a{href: @pathFor('class', klass, @path)}= klass.name\n\n        - if @entity.concerns.filter((x) -> x.visible()).length > 0\n          %tr\n            %td Concerned in:\n            %td\n              - for klass in @entity.concerns.filter((x) -> x.visible())\n                %a{href: @pathFor('class', klass, @path)}= klass.name\n\n\n      - if @entity.documentation?\n        %h2 Overview\n\n        != @render 'partials/documentation', documentation: @entity.documentation, kind: 'mixin'\n\n      - if @entity.concern\n\n        - staticMethods  = @entity.effectiveConcernMethods().filter (m) -> m.kind == 'static' && m.visible\n        - dynamicMethods = @entity.effectiveConcernMethods().filter (m) -> m.kind == 'dynamic' && m.visible\n\n        - if staticMethods.length > 0\n          %h2 Class Method Summary\n          != @render 'partials/method_summary', methods: staticMethods\n\n        - if dynamicMethods.length > 0\n          %h2 Instance Method Summary\n          != @render 'partials/method_summary', methods: dynamicMethods\n\n        - if staticMethods.length > 0\n          %h2 Class Method Details\n          != @render 'partials/method_list', methods: staticMethods\n\n        - if dynamicMethods.length > 0\n          %h2 Instance Method Details\n          != @render 'partials/method_list', methods: dynamicMethods\n\n      - else\n        - if @entity.effectiveMethods().length > 0\n          %h2 Method Summary\n          != @render 'partials/method_summary', methods: @entity.effectiveMethods().filter((m) -> m.visible)\n\n          %h2 Method Details\n          != @render 'partials/method_list', methods: @entity.effectiveMethods().filter((m) -> m.visible)\n\n    != @render 'layout/footer'\n"
  },
  {
    "path": "themes/default/templates/mixin_list.hamlc",
    "content": "!!!\n%html\n  != @render 'layout/header'\n  %body.list\n    #content.tree.list\n      %h1.full_list_header Mixin List\n\n      != @render 'partials/list_nav'\n\n      #search\n        Search:\n        %input{ type: 'text' }\n\n      - createLevel = (tree) =>\n        %ul\n          - for entry in tree\n            %li\n              - if entry.entity\n                %a{href: @pathFor('mixin', entry.entity, @path), target: 'main'}\n                  = entry.entity.basename\n                - if entry.entity.parent\n                  %small.parent\n                    <\n                    = entry.entity.parent.name\n                %small.namespace\n                  = entry.entity.namespace\n              - else\n                %span\n                  = entry.name\n\n            = createLevel(entry.children) if entry.children.length > 0\n\n      = createLevel @tree\n"
  },
  {
    "path": "themes/default/templates/partials/documentation.hamlc",
    "content": "- if @documentation\n\n  - show_description = false\n  - show_description ||= @documentation[field] for field in ['deprecated', 'abstract', 'todos', 'notes', 'comment', 'examples']\n\n  - if show_description\n    .docstring\n\n      - if @documentation.deprecated?\n        .note.deprecated\n          %strong Deprecated.\n          != @activate @documentation.deprecated, @path, true\n\n      - if @documentation.abstract?\n        .note.abstract\n          %strong\n            This\n            = @kind\n            is abstract.\n          != @activate @documentation.abstract, @path, true\n\n      - if @documentation.todos\n        - for todo in @documentation.todos\n          .note.todo\n            %strong TODO:\n            != @activate todo, @path, true\n\n      - if @documentation.notes\n        - for note in @documentation.notes\n          .note\n            %strong Note:\n            != @activate note, @path, true\n\n      != @activate @documentation.comment, @path\n\n      - if @documentation.examples\n        .examples\n          %h3 Examples:\n\n          - for example in @documentation.examples\n            %h4\n              = example.title\n            %pre\n              %code.coffeescript= example.code\n\n  .tags\n    - if @documentation.params\n      %h3 Parameters:\n      %ul.param\n        - for param in @documentation.params\n          %li\n            - if param.optional\n              %span.name= '['+param.name+']'\n            - else\n              %span.name= param.name\n            %span.type\n              (\n                != @render('partials/type_link', type: param.type)\n              )\n            - if param.defaultState\n              %span.defaultState= ' = '+param.defaultState\n            - if param.description\n              &mdash;\n              %span.desc!= @activate param.description, @path, true\n\n    - if @documentation.options\n      - for hash, options of @documentation.options\n        %h3\n          Options Hash:\n          = surround '(', '):', -> hash\n        %ul.options\n          - for option in options\n            %li\n              %span.name= option.name\n              %span.type\n                (\n                  != @render('partials/type_link', type: option.type)\n                )\n              - if option.description\n                &mdash;\n                %span.desc!= @activate option.description, @path, true\n\n    - if @documentation.events\n      .events\n        %h3 Events:\n        - for event in @documentation.events\n          .event\n            %p.signature\n              = event.name\n            != @render('partials/documentation', documentation: event.documentation)\n\n    - if @documentation.throws\n      %h3 Throws:\n      %ul.throw\n        - for throws in @documentation.throws\n          %li\n            %span.type\n            - if throws.description\n              (\n                != @render('partials/type_link', type: throws.type)\n              )\n              &mdash;\n              %span.desc!= @activate throws.description, @path, true\n            - else\n              != @render('partials/type_link', type: throws.type)\n\n    - if @documentation.returns\n      %h3 Returns:\n      %ul.return\n        %li\n          %span.type\n          - if @documentation.returns.description\n            (\n              != @render('partials/type_link', type: @documentation.returns.type)\n            )\n            &mdash;\n            %span.desc!= @activate @documentation.returns.description, @path, true\n          - else\n            != @render('partials/type_link', type: @documentation.returns.type)\n\n    - if @documentation.authors\n      %h3 Author:\n      %ul.author\n        - for author in @documentation.authors\n          %li\n            != @activate author, @path, true\n\n    - if @documentation.copyright\n      %h3 Copyright:\n      %ul.copyright\n        %li\n          != @activate @documentation.copyright, @path, true\n\n    - if @documentation.since\n      %h3 Since:\n      %ul.since\n        %li\n          != @activate @documentation.since, @path, true\n\n    - if @documentation.version\n      %h3 Version:\n      %ul.version\n        %li\n          != @activate @documentation.version, @path, true\n\n    - if @documentation.see\n      %h3 See also:\n      %ul.see\n        - for see in @documentation.see\n          %li\n            - if see.reference && see.label\n              %a{href: @reference(see.reference, @path)}= see.label\n            - else if see.reference\n              %a{href: @reference(see.reference, @path)}= see.reference\n            - else\n              = see.label\n\n    - if @documentation.overloads && @entity?.effectiveOverloads?\n      .overloads\n        %h3 Overloads:\n        - for overload in @entity.effectiveOverloads()\n          .overload\n            %p.signature\n              != @render 'partials/method_signature', method: overload\n            != @render('partials/documentation', documentation: overload.documentation, type: 'overload')\n"
  },
  {
    "path": "themes/default/templates/partials/list_nav.hamlc",
    "content": "%nav\n  - if @environment.visibleClasses().length > 0\n    %a{target: '_self', href: 'class_list.html'}\n      Classes\n\n  - if @environment.visibleMixins().length > 0\n    %a{target: '_self', href: 'mixin_list.html'}\n      Mixins\n\n  - if @environment.visibleFiles().length > 0\n    %a{target: '_self', href: 'file_list.html'}\n      Files\n\n  - if @environment.visibleMethods().length > 0\n    %a{target: '_self', href: 'method_list.html'}\n      Methods\n\n  - if @environment.visibleExtras().length > 0\n    %a{target: '_self', href: 'extra_list.html'}\n      Extras\n"
  },
  {
    "path": "themes/default/templates/partials/method_list.hamlc",
    "content": ".methods\n  - for method in @methods\n    .method_details\n      %p.signature{id: \"#{method.name}-#{method.kind}\"}\n        - for overload in method.effectiveOverloads()\n          != @render 'partials/method_signature', method: overload\n          - if overload.bound\n            %span.bound.note Bound\n          - if overload.documentation?.private\n            %span.private.note Private\n          %br\n\n      != @render 'partials/documentation', documentation: method.documentation, kind: 'method', entity: method\n"
  },
  {
    "path": "themes/default/templates/partials/method_signature.hamlc",
    "content": "= @method.kindSignature()\n= @method.typeSignature()\n%b= @method.name\n%span>= @method.paramsSignature()"
  },
  {
    "path": "themes/default/templates/partials/method_summary.hamlc",
    "content": "%ul.summary\n  - for method in @methods\n    %li{deprecated: if method.documentation?.deprecated? then true else false}\n\n      %span.signature\n        %a{href: '#'+@anchorFor(method)}\n          != @render 'partials/method_signature', method: method.effectiveOverloads()[0]\n\n      - if method.name == 'constructor'\n        %span.constructor.note.title Constructor\n\n      - if method.bound\n        %span.bound.note.title Bound\n\n      - if method.documentation?.private?\n        %span.private.note.title Private\n\n      - if method.documentation?.abstract?\n        %span.abstract.note.title Abstract\n\n      - if method.documentation?.deprecated?\n        %span.deprecated.note.title Deprecated\n\n      %span.desc\n        - if method.documentation?.deprecated?\n          %strong Deprecated.\n          != @activate method.documentation?.deprecated, @path, true\n        - else if method.documentation?.summary\n          != @activate method.documentation?.summary, @path, true\n"
  },
  {
    "path": "themes/default/templates/partials/type_link.hamlc",
    "content": "- if @awareOf(@type)\n  %tt<>\n    %a{href: @reference(@type, @path)}<>\n      = @type\n- else\n  %tt<>\n    = @type"
  },
  {
    "path": "themes/default/templates/partials/variable_list.hamlc",
    "content": "- if @variables? && @variables.length > 0\n  %dl.constants\n    - for variable in @variables\n      %dt{ id: \"#{variable.name}-variable\" }\n        = variable.name\n        \\=\n      %dd\n        %pre\n          %code.coffeescript= variable.value\n        != @render 'partials/documentation', documentation: variable.documentation, kind: 'variable'"
  }
]