From 6480260e952e2ddc454f55ddcea8eb3a2f0de088 Mon Sep 17 00:00:00 2001 From: Matt Kennedy Date: Sun, 12 Apr 2015 14:42:07 -0400 Subject: [PATCH] Adding ARM template generator. --- README.md | 2 + .../ChildCustomScriptExtensionFragment.js | 74 + .../Fragments/DataDiskFragment.js | 56 + .../Fragments/DomainNameFragment.js | 33 + .../Fragments/InputEndpointFragment.js | 67 + .../Fragments/ServiceCertificateFragment.js | 59 + .../Fragments/StorageAccountFragment.js | 39 + .../Fragments/VirtualMachineFragment.js | 304 + .../Fragments/VirtualNetworkFragment.js | 54 + src/arm/TemplateGenerator/Readme.txt | 27 + src/arm/TemplateGenerator/composeTemplate.cmd | 42 + src/arm/TemplateGenerator/data.ts | 3 + .../TemplateGenerator/definitions/jquery.d.ts | 1703 + src/arm/TemplateGenerator/fragments.js | 20 + src/arm/TemplateGenerator/generator.ts | 28 + src/arm/TemplateGenerator/libraries/Array.ts | 48 + .../libraries/DeploymentTemplate.ts | 38 + src/arm/TemplateGenerator/libraries/Error.ts | 28 + .../TemplateGenerator/libraries/Fragment.ts | 330 + .../libraries/FragmentDefinition.ts | 73 + .../TemplateGenerator/libraries/IFragment.ts | 36 + .../libraries/IPv4Address.ts | 93 + .../TemplateGenerator/libraries/IPv4Subnet.ts | 344 + src/arm/TemplateGenerator/libraries/String.ts | 77 + .../libraries/TemplateFactory.ts | 72 + .../libraries/jquery-2.1.0.js | 9111 +++ src/arm/TemplateGenerator/main.js | 30 + src/arm/TemplateGenerator/nodejs/node.exe | Bin 0 -> 6936424 bytes .../nodejs/node_etw_provider.man | 96 + .../nodejs/node_modules/npm/.npmignore | 26 + .../nodejs/node_modules/npm/.tern-project | 7 + .../nodejs/node_modules/npm/AUTHORS | 115 + .../nodejs/node_modules/npm/LICENSE | 235 + .../nodejs/node_modules/npm/Makefile | 219 + .../nodejs/node_modules/npm/README.md | 239 + .../npm/bin/node-gyp-bin/node-gyp | 2 + .../npm/bin/node-gyp-bin/node-gyp.cmd | 1 + .../nodejs/node_modules/npm/bin/npm | 13 + .../nodejs/node_modules/npm/bin/npm-cli.js | 86 + .../nodejs/node_modules/npm/bin/npm.cmd | 6 + .../node_modules/npm/bin/read-package-json.js | 22 + .../nodejs/node_modules/npm/cli.js | 2 + .../nodejs/node_modules/npm/configure | 33 + .../node_modules/npm/doc/api/npm-bin.md | 13 + .../node_modules/npm/doc/api/npm-bugs.md | 19 + .../node_modules/npm/doc/api/npm-commands.md | 22 + .../node_modules/npm/doc/api/npm-config.md | 45 + .../node_modules/npm/doc/api/npm-deprecate.md | 34 + .../node_modules/npm/doc/api/npm-docs.md | 19 + .../node_modules/npm/doc/api/npm-edit.md | 24 + .../node_modules/npm/doc/api/npm-explore.md | 18 + .../npm/doc/api/npm-help-search.md | 30 + .../node_modules/npm/doc/api/npm-init.md | 29 + .../node_modules/npm/doc/api/npm-install.md | 19 + .../node_modules/npm/doc/api/npm-link.md | 33 + .../node_modules/npm/doc/api/npm-load.md | 26 + .../nodejs/node_modules/npm/doc/api/npm-ls.md | 56 + .../node_modules/npm/doc/api/npm-outdated.md | 13 + .../node_modules/npm/doc/api/npm-owner.md | 31 + .../node_modules/npm/doc/api/npm-pack.md | 19 + .../node_modules/npm/doc/api/npm-prefix.md | 15 + .../node_modules/npm/doc/api/npm-prune.md | 17 + .../node_modules/npm/doc/api/npm-publish.md | 30 + .../node_modules/npm/doc/api/npm-rebuild.md | 16 + .../node_modules/npm/doc/api/npm-restart.md | 22 + .../node_modules/npm/doc/api/npm-root.md | 15 + .../npm/doc/api/npm-run-script.md | 27 + .../node_modules/npm/doc/api/npm-search.md | 35 + .../npm/doc/api/npm-shrinkwrap.md | 20 + .../node_modules/npm/doc/api/npm-start.md | 13 + .../node_modules/npm/doc/api/npm-stop.md | 13 + .../node_modules/npm/doc/api/npm-submodule.md | 28 + .../node_modules/npm/doc/api/npm-tag.md | 23 + .../node_modules/npm/doc/api/npm-test.md | 16 + .../node_modules/npm/doc/api/npm-uninstall.md | 16 + .../node_modules/npm/doc/api/npm-unpublish.md | 20 + .../node_modules/npm/doc/api/npm-update.md | 11 + .../node_modules/npm/doc/api/npm-version.md | 18 + .../node_modules/npm/doc/api/npm-view.md | 93 + .../node_modules/npm/doc/api/npm-whoami.md | 15 + .../nodejs/node_modules/npm/doc/api/npm.md | 116 + .../nodejs/node_modules/npm/doc/api/repo.md | 19 + .../node_modules/npm/doc/cli/npm-adduser.md | 38 + .../node_modules/npm/doc/cli/npm-bin.md | 19 + .../node_modules/npm/doc/cli/npm-bugs.md | 40 + .../node_modules/npm/doc/cli/npm-build.md | 22 + .../node_modules/npm/doc/cli/npm-bundle.md | 14 + .../node_modules/npm/doc/cli/npm-cache.md | 72 + .../npm/doc/cli/npm-completion.md | 29 + .../node_modules/npm/doc/cli/npm-config.md | 70 + .../node_modules/npm/doc/cli/npm-dedupe.md | 53 + .../node_modules/npm/doc/cli/npm-deprecate.md | 26 + .../node_modules/npm/doc/cli/npm-docs.md | 40 + .../node_modules/npm/doc/cli/npm-edit.md | 37 + .../node_modules/npm/doc/cli/npm-explore.md | 40 + .../npm/doc/cli/npm-help-search.md | 35 + .../node_modules/npm/doc/cli/npm-help.md | 40 + .../node_modules/npm/doc/cli/npm-init.md | 25 + .../node_modules/npm/doc/cli/npm-install.md | 243 + .../node_modules/npm/doc/cli/npm-link.md | 62 + .../nodejs/node_modules/npm/doc/cli/npm-ls.md | 74 + .../node_modules/npm/doc/cli/npm-outdated.md | 17 + .../node_modules/npm/doc/cli/npm-owner.md | 33 + .../node_modules/npm/doc/cli/npm-pack.md | 27 + .../node_modules/npm/doc/cli/npm-prefix.md | 19 + .../node_modules/npm/doc/cli/npm-prune.md | 21 + .../node_modules/npm/doc/cli/npm-publish.md | 30 + .../node_modules/npm/doc/cli/npm-rebuild.md | 20 + .../node_modules/npm/doc/cli/npm-restart.md | 22 + .../nodejs/node_modules/npm/doc/cli/npm-rm.md | 21 + .../node_modules/npm/doc/cli/npm-root.md | 19 + .../npm/doc/cli/npm-run-script.md | 21 + .../node_modules/npm/doc/cli/npm-search.md | 22 + .../npm/doc/cli/npm-shrinkwrap.md | 185 + .../node_modules/npm/doc/cli/npm-star.md | 22 + .../node_modules/npm/doc/cli/npm-stars.md | 22 + .../node_modules/npm/doc/cli/npm-start.md | 18 + .../node_modules/npm/doc/cli/npm-stop.md | 18 + .../node_modules/npm/doc/cli/npm-submodule.md | 28 + .../node_modules/npm/doc/cli/npm-tag.md | 19 + .../node_modules/npm/doc/cli/npm-test.md | 21 + .../node_modules/npm/doc/cli/npm-uninstall.md | 21 + .../node_modules/npm/doc/cli/npm-unpublish.md | 32 + .../node_modules/npm/doc/cli/npm-update.md | 24 + .../node_modules/npm/doc/cli/npm-version.md | 45 + .../node_modules/npm/doc/cli/npm-view.md | 89 + .../node_modules/npm/doc/cli/npm-whoami.md | 17 + .../nodejs/node_modules/npm/doc/cli/npm.md | 157 + .../nodejs/node_modules/npm/doc/cli/repo.md | 26 + .../node_modules/npm/doc/files/npm-folders.md | 211 + .../node_modules/npm/doc/files/npmrc.md | 59 + .../npm/doc/files/package.json.md | 569 + .../npm/doc/misc/npm-coding-style.md | 181 + .../node_modules/npm/doc/misc/npm-config.md | 827 + .../npm/doc/misc/npm-developers.md | 207 + .../node_modules/npm/doc/misc/npm-disputes.md | 98 + .../node_modules/npm/doc/misc/npm-faq.md | 355 + .../node_modules/npm/doc/misc/npm-index.md | 411 + .../node_modules/npm/doc/misc/npm-registry.md | 69 + .../node_modules/npm/doc/misc/npm-scripts.md | 245 + .../node_modules/npm/doc/misc/removing-npm.md | 54 + .../node_modules/npm/doc/misc/semver.md | 111 + .../node_modules/npm/html/doc/README.html | 274 + .../npm/html/doc/api/npm-bin.html | 53 + .../npm/html/doc/api/npm-bugs.html | 59 + .../npm/html/doc/api/npm-commands.html | 62 + .../npm/html/doc/api/npm-config.html | 67 + .../npm/html/doc/api/npm-deprecate.html | 66 + .../npm/html/doc/api/npm-docs.html | 59 + .../npm/html/doc/api/npm-edit.html | 64 + .../npm/html/doc/api/npm-explore.html | 58 + .../npm/html/doc/api/npm-help-search.html | 66 + .../npm/html/doc/api/npm-init.html | 69 + .../npm/html/doc/api/npm-install.html | 59 + .../npm/html/doc/api/npm-link.html | 73 + .../npm/html/doc/api/npm-load.html | 66 + .../node_modules/npm/html/doc/api/npm-ls.html | 93 + .../npm/html/doc/api/npm-outdated.html | 53 + .../npm/html/doc/api/npm-owner.html | 68 + .../npm/html/doc/api/npm-pack.html | 59 + .../npm/html/doc/api/npm-prefix.html | 55 + .../npm/html/doc/api/npm-prune.html | 57 + .../npm/html/doc/api/npm-publish.html | 66 + .../npm/html/doc/api/npm-rebuild.html | 56 + .../npm/html/doc/api/npm-restart.html | 61 + .../npm/html/doc/api/npm-root.html | 55 + .../npm/html/doc/api/npm-run-script.html | 63 + .../npm/html/doc/api/npm-search.html | 66 + .../npm/html/doc/api/npm-shrinkwrap.html | 60 + .../npm/html/doc/api/npm-start.html | 53 + .../npm/html/doc/api/npm-stop.html | 53 + .../npm/html/doc/api/npm-submodule.html | 67 + .../npm/html/doc/api/npm-tag.html | 63 + .../npm/html/doc/api/npm-test.html | 56 + .../npm/html/doc/api/npm-uninstall.html | 56 + .../npm/html/doc/api/npm-unpublish.html | 60 + .../npm/html/doc/api/npm-update.html | 52 + .../npm/html/doc/api/npm-version.html | 58 + .../npm/html/doc/api/npm-view.html | 133 + .../npm/html/doc/api/npm-whoami.html | 55 + .../node_modules/npm/html/doc/api/npm.html | 126 + .../node_modules/npm/html/doc/api/repo.html | 59 + .../npm/html/doc/cli/npm-adduser.html | 73 + .../npm/html/doc/cli/npm-bin.html | 54 + .../npm/html/doc/cli/npm-bugs.html | 70 + .../npm/html/doc/cli/npm-build.html | 59 + .../npm/html/doc/cli/npm-bundle.html | 54 + .../npm/html/doc/cli/npm-cache.html | 100 + .../npm/html/doc/cli/npm-completion.html | 67 + .../npm/html/doc/cli/npm-config.html | 106 + .../npm/html/doc/cli/npm-dedupe.html | 91 + .../npm/html/doc/cli/npm-deprecate.html | 65 + .../npm/html/doc/cli/npm-docs.html | 71 + .../npm/html/doc/cli/npm-edit.html | 71 + .../npm/html/doc/cli/npm-explore.html | 74 + .../npm/html/doc/cli/npm-help-search.html | 72 + .../npm/html/doc/cli/npm-help.html | 70 + .../npm/html/doc/cli/npm-init.html | 63 + .../npm/html/doc/cli/npm-install.html | 175 + .../npm/html/doc/cli/npm-link.html | 95 + .../node_modules/npm/html/doc/cli/npm-ls.html | 102 + .../npm/html/doc/cli/npm-outdated.html | 55 + .../npm/html/doc/cli/npm-owner.html | 68 + .../npm/html/doc/cli/npm-pack.html | 63 + .../npm/html/doc/cli/npm-prefix.html | 54 + .../npm/html/doc/cli/npm-prune.html | 59 + .../npm/html/doc/cli/npm-publish.html | 63 + .../npm/html/doc/cli/npm-rebuild.html | 59 + .../npm/html/doc/cli/npm-restart.html | 58 + .../node_modules/npm/html/doc/cli/npm-rm.html | 56 + .../npm/html/doc/cli/npm-root.html | 54 + .../npm/html/doc/cli/npm-run-script.html | 57 + .../npm/html/doc/cli/npm-search.html | 58 + .../npm/html/doc/cli/npm-shrinkwrap.html | 217 + .../npm/html/doc/cli/npm-star.html | 60 + .../npm/html/doc/cli/npm-stars.html | 59 + .../npm/html/doc/cli/npm-start.html | 54 + .../npm/html/doc/cli/npm-stop.html | 54 + .../npm/html/doc/cli/npm-submodule.html | 67 + .../npm/html/doc/cli/npm-tag.html | 55 + .../npm/html/doc/cli/npm-test.html | 57 + .../npm/html/doc/cli/npm-uninstall.html | 56 + .../npm/html/doc/cli/npm-unpublish.html | 68 + .../npm/html/doc/cli/npm-update.html | 60 + .../npm/html/doc/cli/npm-version.html | 83 + .../npm/html/doc/cli/npm-view.html | 124 + .../npm/html/doc/cli/npm-whoami.html | 54 + .../node_modules/npm/html/doc/cli/npm.html | 169 + .../node_modules/npm/html/doc/cli/repo.html | 64 + .../npm/html/doc/files/npm-folders.html | 239 + .../npm/html/doc/files/npm-global.html | 239 + .../npm/html/doc/files/npm-json.html | 570 + .../npm/html/doc/files/npmrc.html | 93 + .../npm/html/doc/files/package.json.html | 570 + .../node_modules/npm/html/doc/index.html | 450 + .../npm/html/doc/misc/npm-coding-style.html | 216 + .../npm/html/doc/misc/npm-config.html | 751 + .../npm/html/doc/misc/npm-developers.html | 208 + .../npm/html/doc/misc/npm-disputes.html | 125 + .../npm/html/doc/misc/npm-faq.html | 374 + .../npm/html/doc/misc/npm-index.html | 450 + .../npm/html/doc/misc/npm-registry.html | 105 + .../npm/html/doc/misc/npm-scripts.html | 257 + .../npm/html/doc/misc/removing-npm.html | 92 + .../npm/html/doc/misc/semver.html | 128 + .../node_modules/npm/html/docfoot-script.html | 31 + .../nodejs/node_modules/npm/html/docfoot.html | 2 + .../nodejs/node_modules/npm/html/dochead.html | 8 + .../nodejs/node_modules/npm/html/favicon.ico | Bin 0 -> 7094 bytes .../nodejs/node_modules/npm/html/index.html | 95 + .../node_modules/npm/html/static/style.css | 350 + .../npm/html/static/webfonts/23242D_3_0.eot | Bin 0 -> 9662 bytes .../npm/html/static/webfonts/23242D_3_0.ttf | Bin 0 -> 9356 bytes .../npm/html/static/webfonts/23242D_3_0.woff | Bin 0 -> 4373 bytes .../nodejs/node_modules/npm/lib/adduser.js | 138 + .../nodejs/node_modules/npm/lib/bin.js | 18 + .../nodejs/node_modules/npm/lib/bugs.js | 43 + .../nodejs/node_modules/npm/lib/build.js | 225 + .../nodejs/node_modules/npm/lib/cache.js | 1240 + .../nodejs/node_modules/npm/lib/completion.js | 253 + .../nodejs/node_modules/npm/lib/config.js | 277 + .../nodejs/node_modules/npm/lib/dedupe.js | 346 + .../nodejs/node_modules/npm/lib/deprecate.js | 47 + .../nodejs/node_modules/npm/lib/docs.js | 29 + .../nodejs/node_modules/npm/lib/edit.js | 32 + .../nodejs/node_modules/npm/lib/explore.js | 36 + .../nodejs/node_modules/npm/lib/faq.js | 8 + .../nodejs/node_modules/npm/lib/get.js | 12 + .../node_modules/npm/lib/help-search.js | 216 + .../nodejs/node_modules/npm/lib/help.js | 231 + .../nodejs/node_modules/npm/lib/init.js | 36 + .../nodejs/node_modules/npm/lib/install.js | 1085 + .../nodejs/node_modules/npm/lib/link.js | 169 + .../nodejs/node_modules/npm/lib/ls.js | 354 + .../nodejs/node_modules/npm/lib/npm.js | 519 + .../nodejs/node_modules/npm/lib/outdated.js | 161 + .../nodejs/node_modules/npm/lib/owner.js | 205 + .../nodejs/node_modules/npm/lib/pack.js | 65 + .../nodejs/node_modules/npm/lib/prefix.js | 11 + .../nodejs/node_modules/npm/lib/prune.js | 40 + .../nodejs/node_modules/npm/lib/publish.js | 117 + .../nodejs/node_modules/npm/lib/rebuild.js | 74 + .../nodejs/node_modules/npm/lib/repo.js | 29 + .../nodejs/node_modules/npm/lib/restart.js | 1 + .../nodejs/node_modules/npm/lib/root.js | 11 + .../nodejs/node_modules/npm/lib/run-script.js | 102 + .../nodejs/node_modules/npm/lib/search.js | 262 + .../nodejs/node_modules/npm/lib/set.js | 13 + .../nodejs/node_modules/npm/lib/shrinkwrap.js | 69 + .../nodejs/node_modules/npm/lib/star.js | 33 + .../nodejs/node_modules/npm/lib/stars.js | 27 + .../nodejs/node_modules/npm/lib/start.js | 1 + .../nodejs/node_modules/npm/lib/stop.js | 1 + .../nodejs/node_modules/npm/lib/submodule.js | 119 + .../nodejs/node_modules/npm/lib/substack.js | 20 + .../nodejs/node_modules/npm/lib/tag.js | 18 + .../nodejs/node_modules/npm/lib/test.js | 14 + .../nodejs/node_modules/npm/lib/unbuild.js | 109 + .../nodejs/node_modules/npm/lib/uninstall.js | 127 + .../nodejs/node_modules/npm/lib/unpublish.js | 83 + .../nodejs/node_modules/npm/lib/update.js | 43 + .../node_modules/npm/lib/utils/completion.sh | 54 + .../lib/utils/completion/file-completion.js | 26 + .../lib/utils/completion/installed-deep.js | 46 + .../lib/utils/completion/installed-shallow.js | 79 + .../npm/lib/utils/error-handler.js | 326 + .../node_modules/npm/lib/utils/fetch.js | 93 + .../node_modules/npm/lib/utils/find-prefix.js | 57 + .../node_modules/npm/lib/utils/gently-rm.js | 45 + .../node_modules/npm/lib/utils/is-git-url.js | 13 + .../node_modules/npm/lib/utils/lifecycle.js | 309 + .../nodejs/node_modules/npm/lib/utils/link.js | 39 + .../nodejs/node_modules/npm/lib/utils/tar.js | 323 + .../nodejs/node_modules/npm/lib/version.js | 119 + .../nodejs/node_modules/npm/lib/view.js | 246 + .../nodejs/node_modules/npm/lib/visnup.js | 42 + .../nodejs/node_modules/npm/lib/whoami.js | 13 + .../nodejs/node_modules/npm/lib/xmas.js | 56 + .../node_modules/npm/man/man1/npm-README.1 | 325 + .../node_modules/npm/man/man1/npm-adduser.1 | 63 + .../node_modules/npm/man/man1/npm-bin.1 | 40 + .../node_modules/npm/man/man1/npm-bugs.1 | 76 + .../node_modules/npm/man/man1/npm-build.1 | 43 + .../node_modules/npm/man/man1/npm-bundle.1 | 23 + .../node_modules/npm/man/man1/npm-cache.1 | 103 + .../npm/man/man1/npm-completion.1 | 47 + .../node_modules/npm/man/man1/npm-config.1 | 112 + .../node_modules/npm/man/man1/npm-dedupe.1 | 90 + .../node_modules/npm/man/man1/npm-deprecate.1 | 48 + .../node_modules/npm/man/man1/npm-docs.1 | 74 + .../node_modules/npm/man/man1/npm-edit.1 | 66 + .../node_modules/npm/man/man1/npm-explore.1 | 76 + .../npm/man/man1/npm-help-search.1 | 59 + .../node_modules/npm/man/man1/npm-help.1 | 77 + .../node_modules/npm/man/man1/npm-init.1 | 43 + .../node_modules/npm/man/man1/npm-install.1 | 422 + .../node_modules/npm/man/man1/npm-link.1 | 118 + .../nodejs/node_modules/npm/man/man1/npm-ls.1 | 136 + .../node_modules/npm/man/man1/npm-outdated.1 | 32 + .../node_modules/npm/man/man1/npm-owner.1 | 58 + .../node_modules/npm/man/man1/npm-pack.1 | 48 + .../node_modules/npm/man/man1/npm-prefix.1 | 40 + .../node_modules/npm/man/man1/npm-prune.1 | 37 + .../node_modules/npm/man/man1/npm-publish.1 | 53 + .../node_modules/npm/man/man1/npm-rebuild.1 | 36 + .../node_modules/npm/man/man1/npm-restart.1 | 42 + .../nodejs/node_modules/npm/man/man1/npm-rm.1 | 42 + .../node_modules/npm/man/man1/npm-root.1 | 40 + .../npm/man/man1/npm-run-script.1 | 41 + .../node_modules/npm/man/man1/npm-search.1 | 42 + .../npm/man/man1/npm-shrinkwrap.1 | 275 + .../node_modules/npm/man/man1/npm-star.1 | 39 + .../node_modules/npm/man/man1/npm-stars.1 | 40 + .../node_modules/npm/man/man1/npm-start.1 | 37 + .../node_modules/npm/man/man1/npm-stop.1 | 37 + .../node_modules/npm/man/man1/npm-submodule.1 | 42 + .../node_modules/npm/man/man1/npm-tag.1 | 37 + .../node_modules/npm/man/man1/npm-test.1 | 41 + .../node_modules/npm/man/man1/npm-uninstall.1 | 42 + .../node_modules/npm/man/man1/npm-unpublish.1 | 53 + .../node_modules/npm/man/man1/npm-update.1 | 45 + .../node_modules/npm/man/man1/npm-version.1 | 75 + .../node_modules/npm/man/man1/npm-view.1 | 185 + .../node_modules/npm/man/man1/npm-whoami.1 | 34 + .../nodejs/node_modules/npm/man/man1/npm.1 | 233 + .../nodejs/node_modules/npm/man/man1/repo.1 | 45 + .../node_modules/npm/man/man3/npm-bin.3 | 21 + .../node_modules/npm/man/man3/npm-bugs.3 | 28 + .../node_modules/npm/man/man3/npm-commands.3 | 35 + .../node_modules/npm/man/man3/npm-config.3 | 69 + .../node_modules/npm/man/man3/npm-deprecate.3 | 57 + .../node_modules/npm/man/man3/npm-docs.3 | 28 + .../node_modules/npm/man/man3/npm-edit.3 | 35 + .../node_modules/npm/man/man3/npm-explore.3 | 28 + .../npm/man/man3/npm-help-search.3 | 51 + .../node_modules/npm/man/man3/npm-init.3 | 39 + .../node_modules/npm/man/man3/npm-install.3 | 29 + .../node_modules/npm/man/man3/npm-link.3 | 53 + .../node_modules/npm/man/man3/npm-load.3 | 44 + .../nodejs/node_modules/npm/man/man3/npm-ls.3 | 86 + .../node_modules/npm/man/man3/npm-outdated.3 | 21 + .../node_modules/npm/man/man3/npm-owner.3 | 52 + .../node_modules/npm/man/man3/npm-pack.3 | 28 + .../node_modules/npm/man/man3/npm-prefix.3 | 24 + .../node_modules/npm/man/man3/npm-prune.3 | 27 + .../node_modules/npm/man/man3/npm-publish.3 | 51 + .../node_modules/npm/man/man3/npm-rebuild.3 | 22 + .../node_modules/npm/man/man3/npm-restart.3 | 37 + .../node_modules/npm/man/man3/npm-root.3 | 24 + .../npm/man/man3/npm-run-script.3 | 48 + .../node_modules/npm/man/man3/npm-search.3 | 64 + .../npm/man/man3/npm-shrinkwrap.3 | 30 + .../node_modules/npm/man/man3/npm-start.3 | 21 + .../node_modules/npm/man/man3/npm-stop.3 | 21 + .../node_modules/npm/man/man3/npm-submodule.3 | 42 + .../node_modules/npm/man/man3/npm-tag.3 | 31 + .../node_modules/npm/man/man3/npm-test.3 | 25 + .../node_modules/npm/man/man3/npm-uninstall.3 | 25 + .../node_modules/npm/man/man3/npm-unpublish.3 | 30 + .../node_modules/npm/man/man3/npm-update.3 | 18 + .../node_modules/npm/man/man3/npm-version.3 | 27 + .../node_modules/npm/man/man3/npm-view.3 | 176 + .../node_modules/npm/man/man3/npm-whoami.3 | 24 + .../nodejs/node_modules/npm/man/man3/npm.3 | 162 + .../nodejs/node_modules/npm/man/man3/repo.3 | 28 + .../node_modules/npm/man/man5/npm-folders.5 | 264 + .../node_modules/npm/man/man5/npm-global.5 | 264 + .../node_modules/npm/man/man5/npm-json.5 | 809 + .../nodejs/node_modules/npm/man/man5/npmrc.5 | 89 + .../node_modules/npm/man/man5/package.json.5 | 809 + .../npm/man/man7/npm-coding-style.7 | 254 + .../node_modules/npm/man/man7/npm-config.7 | 1454 + .../npm/man/man7/npm-developers.7 | 335 + .../node_modules/npm/man/man7/npm-disputes.7 | 145 + .../node_modules/npm/man/man7/npm-faq.7 | 468 + .../node_modules/npm/man/man7/npm-index.7 | 307 + .../node_modules/npm/man/man7/npm-registry.7 | 82 + .../node_modules/npm/man/man7/npm-scripts.7 | 354 + .../node_modules/npm/man/man7/removing-npm.7 | 107 + .../nodejs/node_modules/npm/man/man7/semver.7 | 172 + .../npm/node_modules/abbrev/LICENSE | 23 + .../npm/node_modules/abbrev/README.md | 23 + .../npm/node_modules/abbrev/lib/abbrev.js | 111 + .../npm/node_modules/abbrev/package.json | 25 + .../npm/node_modules/ansi/.npmignore | 1 + .../npm/node_modules/ansi/README.md | 99 + .../node_modules/ansi/examples/beep/index.js | 16 + .../node_modules/ansi/examples/clear/index.js | 15 + .../ansi/examples/cursorPosition.js | 24 + .../ansi/examples/imgcat/index.js | 50 + .../ansi/examples/imgcat/yoshi.png | Bin 0 -> 1341 bytes .../ansi/examples/progress/index.js | 87 + .../node_modules/ansi/examples/starwars.js | 39 + .../npm/node_modules/ansi/lib/ansi.js | 368 + .../npm/node_modules/ansi/lib/newlines.js | 71 + .../npm/node_modules/ansi/package.json | 56 + .../npm/node_modules/archy/README.markdown | 92 + .../npm/node_modules/archy/index.js | 35 + .../npm/node_modules/archy/package.json | 52 + .../npm/node_modules/block-stream/LICENCE | 25 + .../npm/node_modules/block-stream/README.md | 14 + .../block-stream/bench/block-stream-pause.js | 70 + .../block-stream/bench/block-stream.js | 68 + .../block-stream/bench/dropper-pause.js | 70 + .../block-stream/bench/dropper.js | 68 + .../node_modules/block-stream/block-stream.js | 209 + .../node_modules/block-stream/package.json | 35 + .../node_modules/block-stream/test/basic.js | 27 + .../block-stream/test/nopad-thorough.js | 68 + .../node_modules/block-stream/test/nopad.js | 57 + .../block-stream/test/pause-resume.js | 73 + .../block-stream/test/thorough.js | 68 + .../block-stream/test/two-stream.js | 59 + .../child-process-close/README.md | 45 + .../node_modules/child-process-close/index.js | 48 + .../child-process-close/package.json | 37 + .../child-process-close/test/test-exec.js | 50 + .../child-process-close/test/test-fork.js | 41 + .../test/test-spawn-and-execfile.js | 73 + .../child-process-close/test/test.js | 41 + .../child-process-close/test/worker-fork.js | 3 + .../child-process-close/test/worker-spawn.js | 5 + .../npm/node_modules/chmodr/LICENSE | 27 + .../npm/node_modules/chmodr/README.md | 3 + .../npm/node_modules/chmodr/chmodr.js | 54 + .../npm/node_modules/chmodr/package.json | 28 + .../npm/node_modules/chmodr/test/basic.js | 63 + .../npm/node_modules/chmodr/test/sync.js | 58 + .../npm/node_modules/chownr/LICENCE | 25 + .../npm/node_modules/chownr/README.md | 3 + .../npm/node_modules/chownr/chownr.js | 41 + .../npm/node_modules/chownr/package.json | 42 + .../npm/node_modules/cmd-shim/.npmignore | 16 + .../npm/node_modules/cmd-shim/LICENSE | 27 + .../npm/node_modules/cmd-shim/README.md | 40 + .../npm/node_modules/cmd-shim/index.js | 180 + .../npm/node_modules/cmd-shim/package.json | 31 + .../node_modules/cmd-shim/test/00-setup.js | 36 + .../npm/node_modules/cmd-shim/test/basic.js | 169 + .../node_modules/cmd-shim/test/zz-cleanup.js | 13 + .../npm/node_modules/editor/README.markdown | 54 + .../npm/node_modules/editor/example/beep.json | 5 + .../npm/node_modules/editor/example/edit.js | 4 + .../npm/node_modules/editor/index.js | 26 + .../npm/node_modules/editor/package.json | 44 + .../npm/node_modules/fstream-npm/.npmignore | 2 + .../npm/node_modules/fstream-npm/LICENCE | 25 + .../npm/node_modules/fstream-npm/README.md | 18 + .../fstream-npm/example/bundle.js | 13 + .../fstream-npm/example/dir-tar.js | 19 + .../node_modules/fstream-npm/example/dir.js | 25 + .../fstream-npm/example/example.js | 12 + .../fstream-npm/example/ig-tar.js | 19 + .../node_modules/fstream-npm/example/tar.js | 25 + .../node_modules/fstream-npm/fstream-npm.js | 323 + .../node_modules/fstream-ignore/.npmignore | 1 + .../node_modules/fstream-ignore/LICENSE | 27 + .../node_modules/fstream-ignore/README.md | 22 + .../fstream-ignore/example/basic.js | 13 + .../node_modules/fstream-ignore/ignore.js | 275 + .../node_modules/fstream-ignore/package.json | 36 + .../node_modules/fstream-ignore/test/.ignore | 2 + .../fstream-ignore/test/.npmignore | 1 + .../fstream-ignore/test/00-setup.js | 71 + .../node_modules/fstream-ignore/test/basic.js | 28 + .../fstream-ignore/test/common.js | 40 + .../fstream-ignore/test/ignore-most.js | 41 + .../fstream-ignore/test/nested-ignores.js | 51 + .../fstream-ignore/test/unignore-child.js | 38 + .../fstream-ignore/test/zz-cleanup.js | 10 + .../npm/node_modules/fstream-npm/package.json | 27 + .../npm/node_modules/fstream/.npmignore | 5 + .../npm/node_modules/fstream/.travis.yml | 3 + .../npm/node_modules/fstream/LICENSE | 27 + .../npm/node_modules/fstream/README.md | 76 + .../fstream/examples/filter-pipe.js | 131 + .../npm/node_modules/fstream/examples/pipe.js | 115 + .../node_modules/fstream/examples/reader.js | 54 + .../fstream/examples/symlink-write.js | 24 + .../npm/node_modules/fstream/fstream.js | 31 + .../npm/node_modules/fstream/lib/abstract.js | 85 + .../npm/node_modules/fstream/lib/collect.js | 67 + .../node_modules/fstream/lib/dir-reader.js | 250 + .../node_modules/fstream/lib/dir-writer.js | 171 + .../node_modules/fstream/lib/file-reader.js | 147 + .../node_modules/fstream/lib/file-writer.js | 100 + .../npm/node_modules/fstream/lib/get-type.js | 32 + .../node_modules/fstream/lib/link-reader.js | 54 + .../node_modules/fstream/lib/link-writer.js | 95 + .../node_modules/fstream/lib/proxy-reader.js | 93 + .../node_modules/fstream/lib/proxy-writer.js | 109 + .../npm/node_modules/fstream/lib/reader.js | 259 + .../node_modules/fstream/lib/socket-reader.js | 38 + .../npm/node_modules/fstream/lib/writer.js | 389 + .../npm/node_modules/fstream/package.json | 38 + .../github-url-from-git/.npmignore | 1 + .../github-url-from-git/History.md | 10 + .../node_modules/github-url-from-git/Makefile | 5 + .../github-url-from-git/Readme.md | 41 + .../node_modules/github-url-from-git/index.js | 12 + .../github-url-from-git/package.json | 31 + .../node_modules/github-url-from-git/test.js | 40 + .../npm/node_modules/glob/.npmignore | 2 + .../npm/node_modules/glob/.travis.yml | 3 + .../npm/node_modules/glob/LICENSE | 27 + .../npm/node_modules/glob/README.md | 250 + .../npm/node_modules/glob/examples/g.js | 9 + .../node_modules/glob/examples/usr-local.js | 9 + .../npm/node_modules/glob/glob.js | 675 + .../npm/node_modules/glob/package.json | 38 + .../npm/node_modules/glob/test/00-setup.js | 176 + .../node_modules/glob/test/bash-comparison.js | 63 + .../node_modules/glob/test/bash-results.json | 349 + .../npm/node_modules/glob/test/cwd-test.js | 55 + .../node_modules/glob/test/globstar-match.js | 19 + .../npm/node_modules/glob/test/mark.js | 74 + .../node_modules/glob/test/nocase-nomagic.js | 113 + .../node_modules/glob/test/pause-resume.js | 73 + .../node_modules/glob/test/root-nomount.js | 39 + .../npm/node_modules/glob/test/root.js | 46 + .../npm/node_modules/glob/test/stat.js | 32 + .../npm/node_modules/glob/test/zz-cleanup.js | 11 + .../npm/node_modules/graceful-fs/.npmignore | 1 + .../npm/node_modules/graceful-fs/LICENSE | 27 + .../npm/node_modules/graceful-fs/README.md | 33 + .../node_modules/graceful-fs/graceful-fs.js | 152 + .../npm/node_modules/graceful-fs/package.json | 48 + .../npm/node_modules/graceful-fs/polyfills.js | 228 + .../npm/node_modules/graceful-fs/test/open.js | 39 + .../npm/node_modules/inherits/LICENSE | 14 + .../npm/node_modules/inherits/README.md | 42 + .../npm/node_modules/inherits/inherits.js | 1 + .../npm/node_modules/inherits/package.json | 39 + .../node_modules/npm/node_modules/ini/LICENSE | 23 + .../npm/node_modules/ini/README.md | 79 + .../node_modules/npm/node_modules/ini/ini.js | 166 + .../npm/node_modules/ini/package.json | 29 + .../npm/node_modules/ini/test/bar.js | 23 + .../node_modules/ini/test/fixtures/foo.ini | 47 + .../npm/node_modules/ini/test/foo.js | 71 + .../node_modules/init-package-json/README.md | 43 + .../init-package-json/default-input.js | 179 + .../node_modules/init-package-json/example.js | 14 + .../init-package-json/init-package-json.js | 129 + .../node_modules/promzard/.npmignore | 1 + .../node_modules/promzard/README.md | 133 + .../node_modules/promzard/example/index.js | 11 + .../promzard/example/npm-init/README.md | 8 + .../promzard/example/npm-init/init-input.js | 191 + .../promzard/example/npm-init/init.js | 37 + .../promzard/example/npm-init/package.json | 10 + .../promzard/example/substack-input.js | 61 + .../node_modules/promzard/package.json | 30 + .../node_modules/promzard/promzard.js | 216 + .../node_modules/promzard/test/basic.js | 83 + .../node_modules/promzard/test/exports.input | 5 + .../node_modules/promzard/test/exports.js | 48 + .../node_modules/promzard/test/fn.input | 18 + .../node_modules/promzard/test/fn.js | 56 + .../node_modules/promzard/test/simple.input | 8 + .../node_modules/promzard/test/simple.js | 30 + .../init-package-json/package.json | 46 + .../init-package-json/test/basic.input | 15 + .../init-package-json/test/basic.js | 35 + .../npm/node_modules/lockfile/LICENSE | 27 + .../npm/node_modules/lockfile/README.md | 81 + .../npm/node_modules/lockfile/lockfile.js | 266 + .../npm/node_modules/lockfile/package.json | 41 + .../npm/node_modules/lockfile/test/basic.js | 263 + .../lockfile/test/fixtures/bad-child.js | 5 + .../lockfile/test/fixtures/child.js | 3 + .../npm/node_modules/lru-cache/.npmignore | 1 + .../npm/node_modules/lru-cache/AUTHORS | 8 + .../npm/node_modules/lru-cache/LICENSE | 23 + .../npm/node_modules/lru-cache/README.md | 97 + .../node_modules/lru-cache/lib/lru-cache.js | 257 + .../npm/node_modules/lru-cache/package.json | 59 + .../npm/node_modules/lru-cache/s.js | 25 + .../npm/node_modules/lru-cache/test/basic.js | 329 + .../node_modules/lru-cache/test/foreach.js | 52 + .../lru-cache/test/memory-leak.js | 50 + .../npm/node_modules/minimatch/LICENSE | 23 + .../npm/node_modules/minimatch/README.md | 218 + .../npm/node_modules/minimatch/minimatch.js | 1079 + .../minimatch/node_modules/sigmund/LICENSE | 27 + .../minimatch/node_modules/sigmund/README.md | 53 + .../minimatch/node_modules/sigmund/bench.js | 283 + .../node_modules/sigmund/package.json | 45 + .../minimatch/node_modules/sigmund/sigmund.js | 39 + .../node_modules/sigmund/test/basic.js | 24 + .../npm/node_modules/minimatch/package.json | 39 + .../npm/node_modules/minimatch/test/basic.js | 399 + .../minimatch/test/brace-expand.js | 33 + .../node_modules/minimatch/test/caching.js | 14 + .../node_modules/minimatch/test/defaults.js | 274 + .../npm/node_modules/mkdirp/.npmignore | 2 + .../npm/node_modules/mkdirp/.travis.yml | 5 + .../npm/node_modules/mkdirp/LICENSE | 21 + .../npm/node_modules/mkdirp/README.markdown | 63 + .../npm/node_modules/mkdirp/examples/pow.js | 6 + .../npm/node_modules/mkdirp/index.js | 82 + .../npm/node_modules/mkdirp/package.json | 34 + .../npm/node_modules/mkdirp/test/chmod.js | 38 + .../npm/node_modules/mkdirp/test/clobber.js | 37 + .../npm/node_modules/mkdirp/test/mkdirp.js | 28 + .../npm/node_modules/mkdirp/test/perm.js | 32 + .../npm/node_modules/mkdirp/test/perm_sync.js | 39 + .../npm/node_modules/mkdirp/test/race.js | 41 + .../npm/node_modules/mkdirp/test/rel.js | 32 + .../npm/node_modules/mkdirp/test/return.js | 25 + .../node_modules/mkdirp/test/return_sync.js | 24 + .../npm/node_modules/mkdirp/test/root.js | 18 + .../npm/node_modules/mkdirp/test/sync.js | 32 + .../npm/node_modules/mkdirp/test/umask.js | 28 + .../node_modules/mkdirp/test/umask_sync.js | 32 + .../npm/node_modules/node-gyp/.jshintrc | 7 + .../npm/node_modules/node-gyp/.npmignore | 1 + .../npm/node_modules/node-gyp/LICENSE | 24 + .../npm/node_modules/node-gyp/README.md | 163 + .../npm/node_modules/node-gyp/addon.gypi | 59 + .../npm/node_modules/node-gyp/bin/node-gyp.js | 133 + .../npm/node_modules/node-gyp/gyp/.npmignore | 1 + .../npm/node_modules/node-gyp/gyp/AUTHORS | 8 + .../npm/node_modules/node-gyp/gyp/DEPS | 26 + .../npm/node_modules/node-gyp/gyp/LICENSE | 27 + .../npm/node_modules/node-gyp/gyp/MANIFEST | 21 + .../npm/node_modules/node-gyp/gyp/OWNERS | 1 + .../node_modules/node-gyp/gyp/PRESUBMIT.py | 116 + .../node-gyp/gyp/codereview.settings | 10 + .../node-gyp/gyp/data/win/large-pdb-shim.cc | 12 + .../npm/node_modules/node-gyp/gyp/gyp | 18 + .../npm/node_modules/node-gyp/gyp/gyp.bat | 5 + .../npm/node_modules/node-gyp/gyp/gyp_dummy.c | 7 + .../npm/node_modules/node-gyp/gyp/gyptest.py | 267 + .../node-gyp/gyp/pylib/gyp/MSVSNew.py | 339 + .../node-gyp/gyp/pylib/gyp/MSVSProject.py | 208 + .../node-gyp/gyp/pylib/gyp/MSVSSettings.py | 1046 + .../gyp/pylib/gyp/MSVSSettings_test.py | 1482 + .../node-gyp/gyp/pylib/gyp/MSVSToolFile.py | 58 + .../node-gyp/gyp/pylib/gyp/MSVSUserFile.py | 147 + .../node-gyp/gyp/pylib/gyp/MSVSUtil.py | 212 + .../node-gyp/gyp/pylib/gyp/MSVSVersion.py | 373 + .../node-gyp/gyp/pylib/gyp/SCons.py | 199 + .../node-gyp/gyp/pylib/gyp/__init__.py | 532 + .../node-gyp/gyp/pylib/gyp/common.py | 491 + .../node-gyp/gyp/pylib/gyp/common_test.py | 72 + .../node-gyp/gyp/pylib/gyp/easy_xml.py | 157 + .../node-gyp/gyp/pylib/gyp/easy_xml_test.py | 103 + .../gyp/pylib/gyp/generator/__init__.py | 0 .../gyp/pylib/gyp/generator/android.py | 1099 + .../gyp/generator/dump_dependency_json.py | 93 + .../gyp/pylib/gyp/generator/eclipse.py | 277 + .../node-gyp/gyp/pylib/gyp/generator/gypd.py | 87 + .../node-gyp/gyp/pylib/gyp/generator/gypsh.py | 56 + .../node-gyp/gyp/pylib/gyp/generator/make.py | 2151 + .../node-gyp/gyp/pylib/gyp/generator/msvs.py | 3123 + .../gyp/pylib/gyp/generator/msvs_test.py | 37 + .../node-gyp/gyp/pylib/gyp/generator/ninja.py | 1809 + .../gyp/pylib/gyp/generator/ninja_test.py | 44 + .../node-gyp/gyp/pylib/gyp/generator/scons.py | 1072 + .../node-gyp/gyp/pylib/gyp/generator/xcode.py | 1239 + .../node-gyp/gyp/pylib/gyp/input.py | 2679 + .../node-gyp/gyp/pylib/gyp/mac_tool.py | 223 + .../node-gyp/gyp/pylib/gyp/msvs_emulation.py | 771 + .../node-gyp/gyp/pylib/gyp/ninja_syntax.py | 152 + .../node-gyp/gyp/pylib/gyp/sun_tool.py | 51 + .../node-gyp/gyp/pylib/gyp/win_tool.py | 193 + .../node-gyp/gyp/pylib/gyp/xcode_emulation.py | 1083 + .../node-gyp/gyp/pylib/gyp/xcodeproj_file.py | 2870 + .../node-gyp/gyp/pylib/gyp/xml_fix.py | 69 + .../npm/node_modules/node-gyp/gyp/pylintrc | 307 + .../node_modules/node-gyp/gyp/samples/samples | 81 + .../node-gyp/gyp/samples/samples.bat | 5 + .../npm/node_modules/node-gyp/gyp/setup.py | 26 + .../node_modules/node-gyp/gyp/tools/README | 15 + .../node-gyp/gyp/tools/Xcode/README | 5 + .../tools/Xcode/Specifications/gyp.pbfilespec | 27 + .../tools/Xcode/Specifications/gyp.xclangspec | 226 + .../node-gyp/gyp/tools/emacs/README | 12 + .../node-gyp/gyp/tools/emacs/gyp-tests.el | 63 + .../node-gyp/gyp/tools/emacs/gyp.el | 251 + .../gyp/tools/emacs/run-unit-tests.sh | 7 + .../gyp/tools/emacs/testdata/media.gyp | 1105 + .../tools/emacs/testdata/media.gyp.fontified | 1107 + .../node-gyp/gyp/tools/graphviz.py | 100 + .../node-gyp/gyp/tools/pretty_gyp.py | 155 + .../node-gyp/gyp/tools/pretty_sln.py | 168 + .../node-gyp/gyp/tools/pretty_vcproj.py | 329 + .../npm/node_modules/node-gyp/lib/build.js | 275 + .../npm/node_modules/node-gyp/lib/clean.js | 22 + .../node_modules/node-gyp/lib/configure.js | 431 + .../npm/node_modules/node-gyp/lib/install.js | 351 + .../npm/node_modules/node-gyp/lib/list.js | 33 + .../npm/node_modules/node-gyp/lib/node-gyp.js | 224 + .../npm/node_modules/node-gyp/lib/rebuild.js | 16 + .../npm/node_modules/node-gyp/lib/remove.js | 56 + .../npm/node_modules/node-gyp/package.json | 54 + .../npm/node_modules/nopt/.npmignore | 1 + .../npm/node_modules/nopt/LICENSE | 23 + .../npm/node_modules/nopt/README.md | 210 + .../npm/node_modules/nopt/bin/nopt.js | 51 + .../node_modules/nopt/examples/my-program.js | 30 + .../npm/node_modules/nopt/lib/nopt.js | 612 + .../npm/node_modules/nopt/package.json | 35 + .../npm-registry-client/.npmignore | 3 + .../node_modules/npm-registry-client/LICENSE | 27 + .../npm-registry-client/README.md | 157 + .../node_modules/npm-registry-client/index.js | 71 + .../npm-registry-client/lib/adduser.js | 137 + .../npm-registry-client/lib/get.js | 178 + .../npm-registry-client/lib/publish.js | 112 + .../npm-registry-client/lib/request.js | 305 + .../npm-registry-client/lib/star.js | 29 + .../npm-registry-client/lib/stars.js | 9 + .../npm-registry-client/lib/tag.js | 6 + .../npm-registry-client/lib/unpublish.js | 103 + .../npm-registry-client/lib/upload.js | 22 + .../node_modules/couch-login/.npmignore | 4 + .../node_modules/couch-login/LICENSE | 27 + .../node_modules/couch-login/README.md | 260 + .../node_modules/couch-login/couch-login.js | 385 + .../node_modules/couch-login/package.json | 31 + .../node_modules/couch-login/test/00-setup.js | 100 + .../node_modules/couch-login/test/basic.js | 298 + .../test/fixtures/_replicator.couch | Bin 0 -> 4194 bytes .../couch-login/test/fixtures/couch.ini | 25 + .../couch-login/test/fixtures/registry.couch | Bin 0 -> 24674 bytes .../node_modules/couch-login/test/registry.js | 252 + .../couch-login/test/reset-then-signup.js | 112 + .../couch-login/test/zz-teardown.js | 23 + .../npm-registry-client/package.json | 43 + .../npm-registry-client/test/00-setup.js | 10 + .../npm-registry-client/test/adduser-new.js | 51 + .../test/adduser-update.js | 68 + .../npm-registry-client/test/basic.js | 32 + .../test/fixtures/server.js | 56 + .../test/fixtures/underscore/1.3.3/cache.json | 1 + .../test/fixtures/underscore/cache.json | 1 + .../npm-registry-client/test/retries.js | 46 + .../npm-registry-client/test/zz-cleanup.js | 10 + .../node_modules/npm-user-validate/.npmignore | 13 + .../npm-user-validate/.travis.yml | 4 + .../node_modules/npm-user-validate/LICENSE | 27 + .../node_modules/npm-user-validate/README.md | 6 + .../npm-user-validate/npm-user-validate.js | 49 + .../npm-user-validate/package.json | 37 + .../npm-user-validate/test/email.test.js | 26 + .../npm-user-validate/test/pw.test.js | 32 + .../npm-user-validate/test/username.test.js | 26 + .../npm/node_modules/npmconf/.npmignore | 1 + .../npm/node_modules/npmconf/LICENSE | 27 + .../npm/node_modules/npmconf/README.md | 33 + .../npm/node_modules/npmconf/config-defs.js | 427 + .../node_modules/config-chain/.npmignore | 3 + .../npmconf/node_modules/config-chain/LICENCE | 22 + .../node_modules/config-chain/index.js | 282 + .../node_modules/proto-list/LICENSE | 23 + .../node_modules/proto-list/README.md | 3 + .../node_modules/proto-list/package.json | 32 + .../node_modules/proto-list/proto-list.js | 81 + .../node_modules/proto-list/test/basic.js | 61 + .../node_modules/config-chain/package.json | 32 + .../node_modules/config-chain/readme.markdown | 228 + .../node_modules/config-chain/test/broken.js | 10 + .../config-chain/test/broken.json | 21 + .../config-chain/test/chain-class.js | 100 + .../node_modules/config-chain/test/env.js | 10 + .../config-chain/test/find-file.js | 13 + .../config-chain/test/ignore-unfound-file.js | 5 + .../node_modules/config-chain/test/ini.js | 18 + .../node_modules/config-chain/test/save.js | 59 + .../npm/node_modules/npmconf/npmconf.js | 338 + .../npm/node_modules/npmconf/package.json | 47 + .../npm/node_modules/npmconf/test/00-setup.js | 27 + .../npm/node_modules/npmconf/test/basic.js | 73 + .../npm/node_modules/npmconf/test/builtin.js | 72 + .../npmconf/test/fixtures/builtin | 1 + .../npmconf/test/fixtures/globalconfig | 1 + .../npmconf/test/fixtures/userconfig | 22 + .../npm/node_modules/npmconf/test/save.js | 74 + .../npm/node_modules/npmlog/LICENSE | 27 + .../npm/node_modules/npmlog/README.md | 153 + .../npm/node_modules/npmlog/example.js | 39 + .../npm/node_modules/npmlog/log.js | 154 + .../npm/node_modules/npmlog/package.json | 32 + .../npm/node_modules/npmlog/test/basic.js | 461 + .../npm/node_modules/once/LICENSE | 27 + .../npm/node_modules/once/README.md | 33 + .../npm/node_modules/once/once.js | 19 + .../npm/node_modules/once/package.json | 35 + .../npm/node_modules/once/test/once.js | 18 + .../npm/node_modules/opener/LICENSE.txt | 14 + .../npm/node_modules/opener/README.md | 44 + .../npm/node_modules/opener/opener.js | 55 + .../npm/node_modules/opener/package.json | 34 + .../npm/node_modules/osenv/LICENSE | 25 + .../npm/node_modules/osenv/README.md | 63 + .../npm/node_modules/osenv/osenv.js | 80 + .../npm/node_modules/osenv/package.json | 38 + .../npm/node_modules/osenv/test/unix.js | 76 + .../npm/node_modules/osenv/test/windows.js | 82 + .../npm/node_modules/read-installed/LICENSE | 27 + .../npm/node_modules/read-installed/README.md | 16 + .../node_modules/read-installed/package.json | 34 + .../read-installed/read-installed.js | 333 + .../node_modules/read-installed/test/basic.js | 34 + .../node_modules/read-package-json/LICENSE | 27 + .../node_modules/read-package-json/README.md | 166 + .../normalize-package-data/.npmignore | 1 + .../normalize-package-data/.travis.yml | 4 + .../normalize-package-data/AUTHORS | 3 + .../normalize-package-data/LICENSE | 30 + .../normalize-package-data/README.md | 99 + .../lib/extract_description.js | 13 + .../normalize-package-data/lib/fixer.js | 370 + .../normalize-package-data/lib/normalize.js | 36 + .../normalize-package-data/lib/typos.json | 24 + .../github-url-from-git/.npmignore | 1 + .../github-url-from-git/History.md | 10 + .../node_modules/github-url-from-git/Makefile | 5 + .../github-url-from-git/Readme.md | 41 + .../node_modules/github-url-from-git/index.js | 12 + .../github-url-from-git/package.json | 27 + .../node_modules/github-url-from-git/test.js | 40 + .../normalize-package-data/package.json | 43 + .../normalize-package-data/test/basic.js | 34 + .../test/consistency.js | 36 + .../test/fixtures/async.json | 36 + .../test/fixtures/bcrypt.json | 56 + .../test/fixtures/coffee-script.json | 35 + .../test/fixtures/http-server.json | 53 + .../test/fixtures/movefile.json | 21 + .../test/fixtures/node-module_exist.json | 26 + .../test/fixtures/npm.json | 135 + .../test/fixtures/read-package-json.json | 27 + .../test/fixtures/request.json | 39 + .../test/fixtures/underscore.json | 17 + .../test/github-urls.js | 46 + .../normalize-package-data/test/normalize.js | 135 + .../normalize-package-data/test/strict.js | 54 + .../normalize-package-data/test/typo.js | 108 + .../read-package-json/package.json | 37 + .../read-package-json/read-json.js | 349 + .../read-package-json/test/basic.js | 45 + .../read-package-json/test/bom.js | 19 + .../read-package-json/test/fixtures/bom.json | 6 + .../test/fixtures/nobom.json | 6 + .../test/fixtures/not-json.css | 37 + .../read-package-json/test/non-json.js | 78 + .../npm/node_modules/read/.npmignore | 2 + .../npm/node_modules/read/LICENCE | 25 + .../npm/node_modules/read/README.md | 53 + .../npm/node_modules/read/example/example.js | 13 + .../npm/node_modules/read/lib/read.js | 113 + .../read/node_modules/mute-stream/LICENSE | 27 + .../read/node_modules/mute-stream/README.md | 68 + .../read/node_modules/mute-stream/mute.js | 140 + .../node_modules/mute-stream/package.json | 37 + .../node_modules/mute-stream/test/basic.js | 207 + .../npm/node_modules/read/package.json | 35 + .../node_modules/npm/node_modules/read/rs.js | 4 + .../npm/node_modules/read/test/basic.js | 60 + .../npm/node_modules/read/test/defaults.js | 60 + .../npm/node_modules/read/test/many.js | 83 + .../npm/node_modules/request/.npmignore | 1 + .../npm/node_modules/request/LICENSE | 55 + .../npm/node_modules/request/README.md | 344 + .../npm/node_modules/request/index.js | 1392 + .../request/node_modules/aws-sign/LICENSE | 55 + .../request/node_modules/aws-sign/README.md | 4 + .../request/node_modules/aws-sign/index.js | 202 + .../node_modules/aws-sign/package.json | 27 + .../request/node_modules/cookie-jar/LICENSE | 55 + .../request/node_modules/cookie-jar/README.md | 4 + .../request/node_modules/cookie-jar/index.js | 67 + .../request/node_modules/cookie-jar/jar.js | 72 + .../node_modules/cookie-jar/package.json | 30 + .../node_modules/cookie-jar/tests/run.js | 40 + .../cookie-jar/tests/test-cookie.js | 29 + .../cookie-jar/tests/test-cookiejar.js | 90 + .../node_modules/forever-agent/LICENSE | 55 + .../node_modules/forever-agent/README.md | 4 + .../node_modules/forever-agent/index.js | 119 + .../node_modules/forever-agent/package.json | 27 + .../request/node_modules/form-data/License | 19 + .../request/node_modules/form-data/Readme.md | 148 + .../node_modules/form-data/lib/form_data.js | 317 + .../form-data/node_modules/async/LICENSE | 19 + .../form-data/node_modules/async/README.md | 1414 + .../node_modules/async/component.json | 11 + .../form-data/node_modules/async/lib/async.js | 955 + .../form-data/node_modules/async/package.json | 42 + .../node_modules/combined-stream/.npmignore | 3 + .../node_modules/combined-stream/License | 19 + .../node_modules/combined-stream/Makefile | 7 + .../node_modules/combined-stream/Readme.md | 132 + .../combined-stream/lib/combined_stream.js | 185 + .../node_modules/delayed-stream/.npmignore | 2 + .../node_modules/delayed-stream/License | 19 + .../node_modules/delayed-stream/Makefile | 7 + .../node_modules/delayed-stream/Readme.md | 154 + .../delayed-stream/lib/delayed_stream.js | 99 + .../node_modules/delayed-stream/package.json | 31 + .../delayed-stream/test/common.js | 6 + .../integration/test-delayed-http-upload.js | 38 + .../test-delayed-stream-auto-pause.js | 21 + .../integration/test-delayed-stream-pause.js | 14 + .../test/integration/test-delayed-stream.js | 48 + .../integration/test-handle-source-errors.js | 15 + .../test/integration/test-max-data-size.js | 18 + .../test/integration/test-pipe-resumes.js | 13 + .../test/integration/test-proxy-readable.js | 13 + .../node_modules/delayed-stream/test/run.js | 7 + .../node_modules/combined-stream/package.json | 32 + .../combined-stream/test/common.js | 23 + .../combined-stream/test/fixture/file1.txt | 256 + .../combined-stream/test/fixture/file2.txt | 256 + .../test/integration/test-callback-streams.js | 27 + .../test/integration/test-data-size.js | 34 + ...delayed-streams-and-buffers-and-strings.js | 38 + .../test/integration/test-delayed-streams.js | 35 + .../test/integration/test-empty-string.js | 39 + .../test/integration/test-is-stream-like.js | 17 + .../test/integration/test-max-data-size.js | 24 + .../test/integration/test-unpaused-streams.js | 30 + .../node_modules/combined-stream/test/run.js | 7 + .../node_modules/form-data/package.json | 39 + .../request/node_modules/hawk/.npmignore | 18 + .../request/node_modules/hawk/.travis.yml | 5 + .../request/node_modules/hawk/LICENSE | 24 + .../request/node_modules/hawk/Makefile | 10 + .../request/node_modules/hawk/README.md | 627 + .../node_modules/hawk/example/usage.js | 78 + .../request/node_modules/hawk/images/hawk.png | Bin 0 -> 6945 bytes .../request/node_modules/hawk/images/logo.png | Bin 0 -> 71732 bytes .../request/node_modules/hawk/index.js | 1 + .../request/node_modules/hawk/lib/browser.js | 485 + .../request/node_modules/hawk/lib/client.js | 367 + .../request/node_modules/hawk/lib/crypto.js | 111 + .../request/node_modules/hawk/lib/index.js | 15 + .../request/node_modules/hawk/lib/server.js | 524 + .../request/node_modules/hawk/lib/utils.js | 183 + .../hawk/node_modules/boom/.npmignore | 18 + .../hawk/node_modules/boom/.travis.yml | 5 + .../hawk/node_modules/boom/LICENSE | 24 + .../hawk/node_modules/boom/Makefile | 11 + .../hawk/node_modules/boom/README.md | 6 + .../hawk/node_modules/boom/images/boom.png | Bin 0 -> 29479 bytes .../hawk/node_modules/boom/index.js | 1 + .../hawk/node_modules/boom/lib/index.js | 207 + .../hawk/node_modules/boom/package.json | 46 + .../hawk/node_modules/boom/test/index.js | 245 + .../hawk/node_modules/cryptiles/.npmignore | 18 + .../hawk/node_modules/cryptiles/.travis.yml | 5 + .../hawk/node_modules/cryptiles/LICENSE | 24 + .../hawk/node_modules/cryptiles/Makefile | 11 + .../hawk/node_modules/cryptiles/README.md | 6 + .../hawk/node_modules/cryptiles/index.js | 1 + .../hawk/node_modules/cryptiles/lib/index.js | 68 + .../hawk/node_modules/cryptiles/package.json | 47 + .../hawk/node_modules/cryptiles/test/index.js | 101 + .../hawk/node_modules/hoek/.npmignore | 18 + .../hawk/node_modules/hoek/.travis.yml | 5 + .../hawk/node_modules/hoek/LICENSE | 33 + .../hawk/node_modules/hoek/Makefile | 10 + .../hawk/node_modules/hoek/README.md | 436 + .../hawk/node_modules/hoek/images/hoek.png | Bin 0 -> 37939 bytes .../hawk/node_modules/hoek/index.js | 1 + .../hawk/node_modules/hoek/lib/escape.js | 132 + .../hawk/node_modules/hoek/lib/index.js | 585 + .../hawk/node_modules/hoek/package.json | 48 + .../hawk/node_modules/hoek/test/escaper.js | 86 + .../hawk/node_modules/hoek/test/index.js | 1078 + .../node_modules/hoek/test/modules/test1.js | 1 + .../node_modules/hoek/test/modules/test2.js | 1 + .../node_modules/hoek/test/modules/test3.js | 1 + .../hawk/node_modules/sntp/.npmignore | 18 + .../hawk/node_modules/sntp/.travis.yml | 5 + .../hawk/node_modules/sntp/LICENSE | 24 + .../hawk/node_modules/sntp/Makefile | 11 + .../hawk/node_modules/sntp/README.md | 68 + .../hawk/node_modules/sntp/examples/offset.js | 16 + .../hawk/node_modules/sntp/examples/time.js | 25 + .../hawk/node_modules/sntp/index.js | 1 + .../hawk/node_modules/sntp/lib/index.js | 409 + .../hawk/node_modules/sntp/package.json | 47 + .../hawk/node_modules/sntp/test/index.js | 359 + .../request/node_modules/hawk/package.json | 52 + .../request/node_modules/hawk/test/browser.js | 771 + .../request/node_modules/hawk/test/client.js | 206 + .../request/node_modules/hawk/test/crypto.js | 86 + .../request/node_modules/hawk/test/index.js | 316 + .../request/node_modules/hawk/test/message.js | 246 + .../request/node_modules/hawk/test/readme.js | 98 + .../request/node_modules/hawk/test/server.js | 686 + .../request/node_modules/hawk/test/uri.js | 456 + .../request/node_modules/hawk/test/utils.js | 120 + .../http-signature/.dir-locals.el | 6 + .../node_modules/http-signature/.npmignore | 7 + .../node_modules/http-signature/LICENSE | 18 + .../node_modules/http-signature/README.md | 75 + .../http-signature/http_signing.md | 296 + .../node_modules/http-signature/lib/index.js | 25 + .../node_modules/http-signature/lib/parser.js | 304 + .../node_modules/http-signature/lib/signer.js | 179 + .../node_modules/http-signature/lib/util.js | 249 + .../node_modules/http-signature/lib/verify.js | 42 + .../node_modules/asn1/.npmignore | 2 + .../http-signature/node_modules/asn1/LICENSE | 19 + .../node_modules/asn1/README.md | 50 + .../node_modules/asn1/lib/ber/errors.js | 13 + .../node_modules/asn1/lib/ber/index.js | 27 + .../node_modules/asn1/lib/ber/reader.js | 267 + .../node_modules/asn1/lib/ber/types.js | 36 + .../node_modules/asn1/lib/ber/writer.js | 317 + .../node_modules/asn1/lib/index.js | 20 + .../node_modules/asn1/package.json | 42 + .../node_modules/asn1/tst/ber/reader.test.js | 172 + .../node_modules/asn1/tst/ber/writer.test.js | 296 + .../node_modules/assert-plus/README.md | 126 + .../node_modules/assert-plus/assert.js | 196 + .../node_modules/assert-plus/package.json | 20 + .../node_modules/ctype/CHANGELOG | 71 + .../http-signature/node_modules/ctype/LICENSE | 24 + .../http-signature/node_modules/ctype/README | 82 + .../node_modules/ctype/README.old | 298 + .../http-signature/node_modules/ctype/ctf.js | 245 + .../http-signature/node_modules/ctype/ctio.js | 1485 + .../node_modules/ctype/ctype.js | 944 + .../ctype/man/man3ctype/ctio.3ctype | 241 + .../node_modules/ctype/package.json | 18 + .../node_modules/ctype/tools/jsl.conf | 129 + .../node_modules/ctype/tools/jsstyle | 839 + .../node_modules/ctype/tst/ctf/float.json | 13 + .../node_modules/ctype/tst/ctf/int.json | 13 + .../node_modules/ctype/tst/ctf/psinfo.json | 104 + .../node_modules/ctype/tst/ctf/struct.json | 19 + .../node_modules/ctype/tst/ctf/tst.fail.js | 39 + .../node_modules/ctype/tst/ctf/tst.float.js | 14 + .../node_modules/ctype/tst/ctf/tst.int.js | 14 + .../node_modules/ctype/tst/ctf/tst.psinfo.js | 17 + .../node_modules/ctype/tst/ctf/tst.struct.js | 18 + .../node_modules/ctype/tst/ctf/tst.typedef.js | 15 + .../node_modules/ctype/tst/ctf/typedef.json | 14 + .../ctype/tst/ctio/float/tst.rfloat.js | 767 + .../ctype/tst/ctio/float/tst.wfloat.js | 753 + .../node_modules/ctype/tst/ctio/int/tst.64.js | 638 + .../ctype/tst/ctio/int/tst.rint.js | 101 + .../ctype/tst/ctio/int/tst.wbounds.js | 53 + .../ctype/tst/ctio/int/tst.wint.js | 92 + .../ctype/tst/ctio/uint/tst.64.js | 451 + .../ctype/tst/ctio/uint/tst.roundtrip.js | 81 + .../ctype/tst/ctio/uint/tst.ruint.js | 95 + .../ctype/tst/ctio/uint/tst.wuint.js | 156 + .../ctype/tst/ctype/tst.basicr.js | 50 + .../ctype/tst/ctype/tst.basicw.js | 44 + .../node_modules/ctype/tst/ctype/tst.char.js | 42 + .../ctype/tst/ctype/tst.endian.js | 45 + .../ctype/tst/ctype/tst.oldwrite.js | 28 + .../ctype/tst/ctype/tst.readSize.js | 128 + .../ctype/tst/ctype/tst.structw.js | 28 + .../ctype/tst/ctype/tst.writeStruct.js | 31 + .../node_modules/http-signature/package.json | 35 + .../node_modules/json-stringify-safe/LICENSE | 27 + .../json-stringify-safe/README.md | 49 + .../json-stringify-safe/package.json | 32 + .../json-stringify-safe/stringify.js | 39 + .../node_modules/json-stringify-safe/test.js | 128 + .../request/node_modules/mime/LICENSE | 19 + .../request/node_modules/mime/README.md | 66 + .../request/node_modules/mime/mime.js | 114 + .../request/node_modules/mime/package.json | 35 + .../request/node_modules/mime/test.js | 84 + .../node_modules/mime/types/mime.types | 1588 + .../node_modules/mime/types/node.types | 77 + .../request/node_modules/node-uuid/.npmignore | 2 + .../request/node_modules/node-uuid/LICENSE.md | 3 + .../request/node_modules/node-uuid/README.md | 203 + .../node-uuid/benchmark/README.md | 53 + .../node-uuid/benchmark/bench.gnu | 174 + .../node_modules/node-uuid/benchmark/bench.sh | 34 + .../node-uuid/benchmark/benchmark-native.c | 34 + .../node-uuid/benchmark/benchmark.js | 84 + .../node_modules/node-uuid/package.json | 34 + .../node_modules/node-uuid/test/compare_v1.js | 63 + .../node_modules/node-uuid/test/test.html | 17 + .../node_modules/node-uuid/test/test.js | 228 + .../request/node_modules/node-uuid/uuid.js | 245 + .../request/node_modules/oauth-sign/LICENSE | 55 + .../request/node_modules/oauth-sign/README.md | 4 + .../request/node_modules/oauth-sign/index.js | 43 + .../node_modules/oauth-sign/package.json | 30 + .../request/node_modules/oauth-sign/test.js | 49 + .../request/node_modules/qs/.gitmodules | 6 + .../request/node_modules/qs/.npmignore | 7 + .../request/node_modules/qs/Readme.md | 58 + .../request/node_modules/qs/index.js | 387 + .../request/node_modules/qs/package.json | 37 + .../request/node_modules/tunnel-agent/LICENSE | 55 + .../node_modules/tunnel-agent/README.md | 4 + .../node_modules/tunnel-agent/index.js | 227 + .../node_modules/tunnel-agent/package.json | 27 + .../npm/node_modules/request/package.json | 47 + .../request/tests/googledoodle.jpg | Bin 0 -> 38510 bytes .../npm/node_modules/request/tests/run.js | 40 + .../npm/node_modules/request/tests/server.js | 90 + .../npm/node_modules/request/tests/squid.conf | 77 + .../node_modules/request/tests/ssl/ca/ca.cnf | 20 + .../node_modules/request/tests/ssl/ca/ca.crl | 0 .../node_modules/request/tests/ssl/ca/ca.crt | 17 + .../node_modules/request/tests/ssl/ca/ca.csr | 13 + .../node_modules/request/tests/ssl/ca/ca.key | 18 + .../node_modules/request/tests/ssl/ca/ca.srl | 1 + .../request/tests/ssl/ca/server.cnf | 19 + .../request/tests/ssl/ca/server.crt | 16 + .../request/tests/ssl/ca/server.csr | 11 + .../request/tests/ssl/ca/server.js | 28 + .../request/tests/ssl/ca/server.key | 9 + .../node_modules/request/tests/ssl/npm-ca.crt | 16 + .../node_modules/request/tests/ssl/test.crt | 15 + .../node_modules/request/tests/ssl/test.key | 15 + .../request/tests/test-agentOptions.js | 23 + .../request/tests/test-basic-auth.js | 143 + .../node_modules/request/tests/test-body.js | 122 + .../request/tests/test-defaults.js | 129 + .../request/tests/test-digest-auth.js | 69 + .../request/tests/test-emptyBody.js | 20 + .../node_modules/request/tests/test-errors.js | 37 + .../request/tests/test-follow-all-303.js | 30 + .../request/tests/test-follow-all.js | 36 + .../node_modules/request/tests/test-form.js | 79 + .../node_modules/request/tests/test-hawk.js | 33 + .../request/tests/test-headers.js | 52 + .../request/tests/test-http-signature.js | 106 + .../request/tests/test-httpModule.js | 94 + .../request/tests/test-https-strict.js | 97 + .../node_modules/request/tests/test-https.js | 87 + .../request/tests/test-localAddress.js | 15 + .../node_modules/request/tests/test-oauth.js | 117 + .../request/tests/test-onelineproxy.js | 46 + .../node_modules/request/tests/test-params.js | 93 + .../request/tests/test-piped-redirect.js | 42 + .../node_modules/request/tests/test-pipes.js | 216 + .../node_modules/request/tests/test-pool.js | 16 + .../tests/test-protocol-changing-redirect.js | 61 + .../node_modules/request/tests/test-proxy.js | 39 + .../npm/node_modules/request/tests/test-qs.js | 42 + .../request/tests/test-redirect.js | 155 + .../npm/node_modules/request/tests/test-s3.js | 13 + .../request/tests/test-timeout.js | 87 + .../node_modules/request/tests/test-toJSON.js | 14 + .../node_modules/request/tests/test-tunnel.js | 75 + .../node_modules/request/tests/unicycle.jpg | Bin 0 -> 19806 bytes .../npm/node_modules/retry/.npmignore | 1 + .../npm/node_modules/retry/License | 21 + .../npm/node_modules/retry/Makefile | 7 + .../npm/node_modules/retry/Readme.md | 167 + .../npm/node_modules/retry/equation.gif | Bin 0 -> 1209 bytes .../npm/node_modules/retry/example/dns.js | 31 + .../npm/node_modules/retry/index.js | 1 + .../npm/node_modules/retry/lib/retry.js | 50 + .../node_modules/retry/lib/retry_operation.js | 109 + .../npm/node_modules/retry/package.json | 29 + .../npm/node_modules/retry/test/common.js | 10 + .../test/integration/test-retry-operation.js | 80 + .../retry/test/integration/test-timeouts.js | 69 + .../npm/node_modules/retry/test/runner.js | 5 + .../npm/node_modules/rimraf/AUTHORS | 6 + .../npm/node_modules/rimraf/LICENSE | 23 + .../npm/node_modules/rimraf/README.md | 26 + .../npm/node_modules/rimraf/bin.js | 33 + .../npm/node_modules/rimraf/package.json | 65 + .../npm/node_modules/rimraf/rimraf.js | 184 + .../npm/node_modules/rimraf/test/run.sh | 10 + .../npm/node_modules/rimraf/test/setup.sh | 47 + .../node_modules/rimraf/test/test-async.js | 5 + .../npm/node_modules/rimraf/test/test-sync.js | 3 + .../npm/node_modules/semver/.npmignore | 1 + .../npm/node_modules/semver/LICENSE | 27 + .../npm/node_modules/semver/Makefile | 24 + .../npm/node_modules/semver/README.md | 123 + .../npm/node_modules/semver/bin/semver | 119 + .../npm/node_modules/semver/foot.js | 6 + .../npm/node_modules/semver/head.js | 2 + .../npm/node_modules/semver/package.json | 31 + .../npm/node_modules/semver/semver.browser.js | 919 + .../node_modules/semver/semver.browser.js.gz | Bin 0 -> 6347 bytes .../npm/node_modules/semver/semver.js | 923 + .../npm/node_modules/semver/semver.min.js | 1 + .../npm/node_modules/semver/semver.min.js.gz | Bin 0 -> 2982 bytes .../npm/node_modules/semver/test/amd.js | 15 + .../npm/node_modules/semver/test/index.js | 556 + .../npm/node_modules/semver/test/no-module.js | 19 + .../npm/node_modules/sha/.npmignore | 4 + .../node_modules/npm/node_modules/sha/LICENSE | 46 + .../npm/node_modules/sha/README.md | 49 + .../npm/node_modules/sha/index.js | 120 + .../sha/node_modules/readable-stream/LICENSE | 27 + .../node_modules/readable-stream/README.md | 768 + .../node_modules/readable-stream/duplex.js | 1 + .../readable-stream/examples/CAPSLOCKTYPER.JS | 32 + .../readable-stream/examples/typer-fsr.js | 15 + .../readable-stream/examples/typer.js | 17 + .../sha/node_modules/readable-stream/fs.js | 1705 + .../readable-stream/lib/_stream_duplex.js | 69 + .../lib/_stream_passthrough.js | 41 + .../readable-stream/lib/_stream_readable.js | 876 + .../readable-stream/lib/_stream_transform.js | 206 + .../readable-stream/lib/_stream_writable.js | 347 + .../node_modules/readable-stream/package.json | 35 + .../readable-stream/passthrough.js | 1 + .../node_modules/readable-stream/readable.js | 6 + .../readable-stream/test/common.js | 191 + .../readable-stream/test/fixtures/x1024.txt | 1 + .../test/simple/test-stream2-basic.js | 475 + .../test/simple/test-stream2-compatibility.js | 50 + .../test/simple/test-stream2-finish-pipe.js | 41 + .../simple/test-stream2-large-read-stall.js | 82 + .../test/simple/test-stream2-objects.js | 348 + .../test-stream2-pipe-error-handling.js | 105 + .../test/simple/test-stream2-push.js | 138 + .../simple/test-stream2-read-sync-stack.js | 54 + ...st-stream2-readable-empty-buffer-no-eof.js | 119 + .../simple/test-stream2-readable-from-list.js | 120 + .../test-stream2-readable-legacy-drain.js | 75 + .../test-stream2-readable-non-empty-end.js | 78 + .../test/simple/test-stream2-set-encoding.js | 312 + .../test/simple/test-stream2-transform.js | 435 + .../test/simple/test-stream2-unpipe-drain.js | 76 + .../test/simple/test-stream2-unpipe-leak.js | 74 + .../test/simple/test-stream2-writable.js | 328 + .../node_modules/readable-stream/transform.js | 1 + .../node_modules/readable-stream/writable.js | 1 + .../sha/node_modules/readable-stream/zlib.js | 452 + .../npm/node_modules/sha/package.json | 31 + .../npm/node_modules/slide/LICENSE | 23 + .../npm/node_modules/slide/README.md | 143 + .../npm/node_modules/slide/index.js | 1 + .../slide/lib/async-map-ordered.js | 65 + .../npm/node_modules/slide/lib/async-map.js | 56 + .../npm/node_modules/slide/lib/bind-actor.js | 16 + .../npm/node_modules/slide/lib/chain.js | 20 + .../npm/node_modules/slide/lib/slide.js | 3 + .../npm/node_modules/slide/package.json | 34 + .../npm/node_modules/tar/.npmignore | 5 + .../npm/node_modules/tar/.travis.yml | 3 + .../node_modules/npm/node_modules/tar/LICENCE | 25 + .../npm/node_modules/tar/README.md | 47 + .../node_modules/tar/examples/extracter.js | 11 + .../npm/node_modules/tar/examples/reader.js | 36 + .../npm/node_modules/tar/lib/buffer-entry.js | 30 + .../npm/node_modules/tar/lib/entry-writer.js | 169 + .../npm/node_modules/tar/lib/entry.js | 213 + .../tar/lib/extended-header-writer.js | 191 + .../node_modules/tar/lib/extended-header.js | 140 + .../npm/node_modules/tar/lib/extract.js | 78 + .../tar/lib/global-header-writer.js | 14 + .../npm/node_modules/tar/lib/header.js | 385 + .../npm/node_modules/tar/lib/pack.js | 231 + .../npm/node_modules/tar/lib/parse.js | 270 + .../npm/node_modules/tar/package.json | 35 + .../node_modules/npm/node_modules/tar/tar.js | 173 + .../tar/test/00-setup-fixtures.js | 53 + .../npm/node_modules/tar/test/extract.js | 358 + .../npm/node_modules/tar/test/fixtures.tgz | Bin 0 -> 19205 bytes .../npm/node_modules/tar/test/header.js | 183 + .../tar/test/pack-no-proprietary.js | 854 + .../npm/node_modules/tar/test/pack.js | 897 + .../npm/node_modules/tar/test/parse.js | 359 + .../npm/node_modules/tar/test/zz-cleanup.js | 20 + .../npm/node_modules/uid-number/LICENCE | 25 + .../npm/node_modules/uid-number/README.md | 17 + .../node_modules/uid-number/get-uid-gid.js | 24 + .../npm/node_modules/uid-number/package.json | 35 + .../npm/node_modules/uid-number/uid-number.js | 54 + .../npm/node_modules/which/LICENSE | 23 + .../npm/node_modules/which/README.md | 5 + .../npm/node_modules/which/bin/which | 14 + .../npm/node_modules/which/package.json | 34 + .../npm/node_modules/which/which.js | 104 + .../nodejs/node_modules/npm/npmrc | 1 + .../nodejs/node_modules/npm/package.json | 140 + .../node_modules/npm/scripts/clean-old.sh | 165 + .../node_modules/npm/scripts/doc-build.sh | 84 + .../node_modules/npm/scripts/index-build.js | 62 + .../node_modules/npm/scripts/install.sh | 308 + .../node_modules/npm/scripts/release.sh | 36 + .../node_modules/npm/scripts/relocate.sh | 26 + .../nodejs/node_modules/npm/test/common.js | 7 + .../test/disabled/bundlerecurs/package.json | 4 + .../npm/test/disabled/change-bin-1/bin/foo | 2 + .../test/disabled/change-bin-1/package.json | 3 + .../npm/test/disabled/change-bin-2/bin/bar | 2 + .../test/disabled/change-bin-2/package.json | 3 + .../npm/test/disabled/failer/package.json | 5 + .../npm/test/disabled/fast/package.json | 9 + .../test/disabled/package-bar/package.json | 7 + .../test/disabled/package-config/package.json | 4 + .../npm/test/disabled/package-config/test.js | 17 + .../test/disabled/package-foo/package.json | 4 + .../npm/test/disabled/slow/package.json | 9 + .../npm/test/disabled/startstop/package.json | 3 + .../test/packages/npm-test-array-bin/README | 1 + .../packages/npm-test-array-bin/bin/array-bin | 2 + .../packages/npm-test-array-bin/package.json | 4 + .../test/packages/npm-test-array-bin/test.js | 4 + .../npm/test/packages/npm-test-blerg/README | 1 + .../test/packages/npm-test-blerg/package.json | 5 + .../npm/test/packages/npm-test-blerg/test.js | 5 + .../npm/test/packages/npm-test-blerg3/README | 1 + .../packages/npm-test-blerg3/package.json | 5 + .../npm/test/packages/npm-test-blerg3/test.js | 5 + .../test/packages/npm-test-bundled-git/README | 1 + .../minimatch-expected.json | 29 + .../npm-test-bundled-git/package.json | 5 + .../packages/npm-test-bundled-git/test.js | 4 + .../npm/test/packages/npm-test-dir-bin/README | 1 + .../packages/npm-test-dir-bin/bin/dir-bin | 2 + .../packages/npm-test-dir-bin/package.json | 4 + .../test/packages/npm-test-dir-bin/test.js | 4 + .../test/packages/npm-test-env-reader/README | 1 + .../packages/npm-test-env-reader/package.json | 14 + .../test/packages/npm-test-env-reader/test.js | 9 + .../test/packages/npm-test-files/.npmignore | 7 + .../npm/test/packages/npm-test-files/include4 | 0 .../test/packages/npm-test-files/package.json | 10 + .../test/packages/npm-test-files/sub/include | 0 .../test/packages/npm-test-files/sub/include2 | 0 .../test/packages/npm-test-files/sub/include4 | 1 + .../npm/test/packages/npm-test-files/test.sh | 27 + .../packages/npm-test-ignore-nested-nm/README | 1 + .../lib/node_modules/foo | 1 + .../npm-test-ignore-nested-nm/package.json | 3 + .../npm-test-ignore-nested-nm/test.js | 2 + .../test/packages/npm-test-ignore/.npmignore | 7 + .../npm/test/packages/npm-test-ignore/README | 1 + .../test/packages/npm-test-ignore/include4 | 0 .../packages/npm-test-ignore/package.json | 3 + .../test/packages/npm-test-ignore/sub/include | 0 .../packages/npm-test-ignore/sub/include2 | 0 .../packages/npm-test-ignore/sub/include4 | 1 + .../npm/test/packages/npm-test-ignore/test.sh | 29 + .../packages/npm-test-missing-bindir/README | 1 + .../npm-test-missing-bindir/package.json | 4 + .../packages/npm-test-missing-bindir/test.js | 5 + .../packages/npm-test-optional-deps/README | 1 + .../npm-test-optional-deps/package.json | 12 + .../packages/npm-test-optional-deps/test.js | 9 + .../test/packages/npm-test-peer-deps/README | 1 + .../packages/npm-test-peer-deps/npm-ls.json | 17 + .../packages/npm-test-peer-deps/package.json | 11 + .../test/packages/npm-test-peer-deps/test.js | 36 + .../packages/npm-test-platform-all/README | 1 + .../npm-test-platform-all/package.json | 5 + .../test/packages/npm-test-platform/README | 1 + .../packages/npm-test-platform/package.json | 5 + .../npm/test/packages/npm-test-private/README | 1 + .../packages/npm-test-private/package.json | 4 + .../test/packages/npm-test-shrinkwrap/README | 1 + .../npm-test-shrinkwrap/npm-shrinkwrap.json | 48 + .../packages/npm-test-shrinkwrap/package.json | 13 + .../test/packages/npm-test-shrinkwrap/test.js | 35 + .../packages/npm-test-test-package/README | 1 + .../npm-test-test-package/package.json | 5 + .../npm/test/packages/npm-test-url-dep/README | 1 + .../packages/npm-test-url-dep/package.json | 7 + .../nodejs/node_modules/npm/test/run.js | 227 + .../node_modules/npm/test/tap/false_name.js | 28 + .../npm/test/tap/false_name/index.js | 1 + .../npm/test/tap/false_name/package.json | 8 + .../test/tap/fixtures/underscore-1-3-3.json | 1 + .../npm/test/tap/fixtures/underscore.json | 1 + .../npm/test/tap/ignore-shrinkwrap.js | 77 + .../tap/ignore-shrinkwrap/npm-shrinkwrap.json | 17 + .../test/tap/ignore-shrinkwrap/package.json | 8 + .../test/tap/noargs-install-config-save.js | 79 + .../tap/package-with-peer-dep/package.json | 7 + .../npm/test/tap/peer-deps-invalid.js | 76 + .../test/tap/peer-deps-invalid/package.json | 9 + .../tap/peer-deps-without-package-json.js | 58 + .../peer-deps-without-package-json/.gitkeep | 0 .../npm/test/tap/publish-config.js | 48 + .../node_modules/npm/test/update-test.sh | 59 + .../nodejs/node_perfctr_provider.man | 107 + src/arm/TemplateGenerator/nodejs/nodevars.bat | 24 + src/arm/TemplateGenerator/nodejs/npm | 13 + src/arm/TemplateGenerator/nodejs/npm.cmd | 6 + .../TemplateGenerator/typescript/License.htm | 451 + .../cs/diagnosticMessages.generated.json | 437 + .../de/diagnosticMessages.generated.json | 437 + .../en/diagnosticMessages.generated.json | 437 + .../es/diagnosticMessages.generated.json | 437 + .../fr/diagnosticMessages.generated.json | 437 + .../it/diagnosticMessages.generated.json | 437 + .../ja/diagnosticMessages.generated.json | 437 + .../ko/diagnosticMessages.generated.json | 437 + src/arm/TemplateGenerator/typescript/lib.d.ts | 14958 ++++ .../pl/diagnosticMessages.generated.json | 437 + .../pt-BR/diagnosticMessages.generated.json | 437 + .../ru/diagnosticMessages.generated.json | 437 + .../tr/diagnosticMessages.generated.json | 437 + src/arm/TemplateGenerator/typescript/tsc.exe | Bin 0 -> 167568 bytes src/arm/TemplateGenerator/typescript/tsc.js | 63139 ++++++++++++++++ .../TemplateGenerator/typescript/tschost.dll | Bin 0 -> 4256456 bytes .../typescript/typescript.js | 61726 +++++++++++++++ .../zh-CN/diagnosticMessages.generated.json | 437 + .../zh-TW/diagnosticMessages.generated.json | 437 + 1447 files changed, 312259 insertions(+) create mode 100644 src/arm/TemplateGenerator/Fragments/ChildCustomScriptExtensionFragment.js create mode 100644 src/arm/TemplateGenerator/Fragments/DataDiskFragment.js create mode 100644 src/arm/TemplateGenerator/Fragments/DomainNameFragment.js create mode 100644 src/arm/TemplateGenerator/Fragments/InputEndpointFragment.js create mode 100644 src/arm/TemplateGenerator/Fragments/ServiceCertificateFragment.js create mode 100644 src/arm/TemplateGenerator/Fragments/StorageAccountFragment.js create mode 100644 src/arm/TemplateGenerator/Fragments/VirtualMachineFragment.js create mode 100644 src/arm/TemplateGenerator/Fragments/VirtualNetworkFragment.js create mode 100644 src/arm/TemplateGenerator/Readme.txt create mode 100644 src/arm/TemplateGenerator/composeTemplate.cmd create mode 100644 src/arm/TemplateGenerator/data.ts create mode 100644 src/arm/TemplateGenerator/definitions/jquery.d.ts create mode 100644 src/arm/TemplateGenerator/fragments.js create mode 100644 src/arm/TemplateGenerator/generator.ts create mode 100644 src/arm/TemplateGenerator/libraries/Array.ts create mode 100644 src/arm/TemplateGenerator/libraries/DeploymentTemplate.ts create mode 100644 src/arm/TemplateGenerator/libraries/Error.ts create mode 100644 src/arm/TemplateGenerator/libraries/Fragment.ts create mode 100644 src/arm/TemplateGenerator/libraries/FragmentDefinition.ts create mode 100644 src/arm/TemplateGenerator/libraries/IFragment.ts create mode 100644 src/arm/TemplateGenerator/libraries/IPv4Address.ts create mode 100644 src/arm/TemplateGenerator/libraries/IPv4Subnet.ts create mode 100644 src/arm/TemplateGenerator/libraries/String.ts create mode 100644 src/arm/TemplateGenerator/libraries/TemplateFactory.ts create mode 100644 src/arm/TemplateGenerator/libraries/jquery-2.1.0.js create mode 100644 src/arm/TemplateGenerator/main.js create mode 100644 src/arm/TemplateGenerator/nodejs/node.exe create mode 100644 src/arm/TemplateGenerator/nodejs/node_etw_provider.man create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/.npmignore create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/.tern-project create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/AUTHORS create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/LICENSE create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/Makefile create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/bin/node-gyp-bin/node-gyp create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/bin/node-gyp-bin/node-gyp.cmd create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/bin/npm create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/bin/npm-cli.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/bin/npm.cmd create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/bin/read-package-json.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/cli.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/configure create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/api/npm-bin.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/api/npm-bugs.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/api/npm-commands.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/api/npm-config.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/api/npm-deprecate.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/api/npm-docs.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/api/npm-edit.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/api/npm-explore.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/api/npm-help-search.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/api/npm-init.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/api/npm-install.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/api/npm-link.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/api/npm-load.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/api/npm-ls.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/api/npm-outdated.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/api/npm-owner.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/api/npm-pack.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/api/npm-prefix.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/api/npm-prune.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/api/npm-publish.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/api/npm-rebuild.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/api/npm-restart.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/api/npm-root.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/api/npm-run-script.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/api/npm-search.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/api/npm-shrinkwrap.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/api/npm-start.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/api/npm-stop.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/api/npm-submodule.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/api/npm-tag.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/api/npm-test.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/api/npm-uninstall.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/api/npm-unpublish.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/api/npm-update.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/api/npm-version.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/api/npm-view.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/api/npm-whoami.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/api/npm.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/api/repo.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/cli/npm-adduser.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/cli/npm-bin.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/cli/npm-bugs.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/cli/npm-build.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/cli/npm-bundle.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/cli/npm-cache.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/cli/npm-completion.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/cli/npm-config.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/cli/npm-dedupe.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/cli/npm-deprecate.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/cli/npm-docs.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/cli/npm-edit.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/cli/npm-explore.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/cli/npm-help-search.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/cli/npm-help.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/cli/npm-init.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/cli/npm-install.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/cli/npm-link.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/cli/npm-ls.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/cli/npm-outdated.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/cli/npm-owner.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/cli/npm-pack.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/cli/npm-prefix.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/cli/npm-prune.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/cli/npm-publish.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/cli/npm-rebuild.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/cli/npm-restart.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/cli/npm-rm.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/cli/npm-root.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/cli/npm-run-script.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/cli/npm-search.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/cli/npm-shrinkwrap.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/cli/npm-star.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/cli/npm-stars.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/cli/npm-start.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/cli/npm-stop.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/cli/npm-submodule.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/cli/npm-tag.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/cli/npm-test.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/cli/npm-uninstall.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/cli/npm-unpublish.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/cli/npm-update.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/cli/npm-version.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/cli/npm-view.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/cli/npm-whoami.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/cli/npm.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/cli/repo.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/files/npm-folders.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/files/npmrc.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/files/package.json.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/misc/npm-coding-style.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/misc/npm-config.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/misc/npm-developers.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/misc/npm-disputes.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/misc/npm-faq.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/misc/npm-index.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/misc/npm-registry.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/misc/npm-scripts.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/misc/removing-npm.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/doc/misc/semver.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/README.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/api/npm-bin.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/api/npm-bugs.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/api/npm-commands.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/api/npm-config.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/api/npm-deprecate.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/api/npm-docs.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/api/npm-edit.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/api/npm-explore.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/api/npm-help-search.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/api/npm-init.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/api/npm-install.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/api/npm-link.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/api/npm-load.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/api/npm-ls.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/api/npm-outdated.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/api/npm-owner.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/api/npm-pack.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/api/npm-prefix.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/api/npm-prune.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/api/npm-publish.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/api/npm-rebuild.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/api/npm-restart.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/api/npm-root.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/api/npm-run-script.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/api/npm-search.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/api/npm-shrinkwrap.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/api/npm-start.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/api/npm-stop.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/api/npm-submodule.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/api/npm-tag.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/api/npm-test.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/api/npm-uninstall.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/api/npm-unpublish.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/api/npm-update.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/api/npm-version.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/api/npm-view.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/api/npm-whoami.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/api/npm.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/api/repo.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/cli/npm-adduser.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/cli/npm-bin.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/cli/npm-bugs.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/cli/npm-build.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/cli/npm-bundle.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/cli/npm-cache.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/cli/npm-completion.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/cli/npm-config.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/cli/npm-dedupe.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/cli/npm-deprecate.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/cli/npm-docs.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/cli/npm-edit.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/cli/npm-explore.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/cli/npm-help-search.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/cli/npm-help.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/cli/npm-init.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/cli/npm-install.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/cli/npm-link.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/cli/npm-ls.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/cli/npm-outdated.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/cli/npm-owner.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/cli/npm-pack.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/cli/npm-prefix.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/cli/npm-prune.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/cli/npm-publish.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/cli/npm-rebuild.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/cli/npm-restart.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/cli/npm-rm.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/cli/npm-root.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/cli/npm-run-script.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/cli/npm-search.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/cli/npm-shrinkwrap.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/cli/npm-star.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/cli/npm-stars.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/cli/npm-start.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/cli/npm-stop.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/cli/npm-submodule.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/cli/npm-tag.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/cli/npm-test.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/cli/npm-uninstall.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/cli/npm-unpublish.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/cli/npm-update.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/cli/npm-version.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/cli/npm-view.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/cli/npm-whoami.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/cli/npm.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/cli/repo.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/files/npm-folders.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/files/npm-global.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/files/npm-json.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/files/npmrc.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/files/package.json.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/index.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/misc/npm-coding-style.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/misc/npm-config.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/misc/npm-developers.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/misc/npm-disputes.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/misc/npm-faq.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/misc/npm-index.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/misc/npm-registry.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/misc/npm-scripts.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/misc/removing-npm.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/doc/misc/semver.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/docfoot-script.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/docfoot.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/dochead.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/favicon.ico create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/index.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/static/style.css create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/static/webfonts/23242D_3_0.eot create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/static/webfonts/23242D_3_0.ttf create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/html/static/webfonts/23242D_3_0.woff create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/adduser.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/bin.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/bugs.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/build.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/cache.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/completion.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/config.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/dedupe.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/deprecate.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/docs.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/edit.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/explore.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/faq.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/get.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/help-search.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/help.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/init.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/install.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/link.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/ls.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/npm.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/outdated.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/owner.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/pack.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/prefix.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/prune.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/publish.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/rebuild.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/repo.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/restart.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/root.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/run-script.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/search.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/set.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/shrinkwrap.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/star.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/stars.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/start.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/stop.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/submodule.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/substack.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/tag.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/test.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/unbuild.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/uninstall.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/unpublish.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/update.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/utils/completion.sh create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/utils/completion/file-completion.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/utils/completion/installed-deep.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/utils/completion/installed-shallow.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/utils/error-handler.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/utils/fetch.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/utils/find-prefix.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/utils/gently-rm.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/utils/is-git-url.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/utils/lifecycle.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/utils/link.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/utils/tar.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/version.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/view.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/visnup.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/whoami.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/lib/xmas.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man1/npm-README.1 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man1/npm-adduser.1 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man1/npm-bin.1 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man1/npm-bugs.1 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man1/npm-build.1 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man1/npm-bundle.1 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man1/npm-cache.1 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man1/npm-completion.1 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man1/npm-config.1 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man1/npm-dedupe.1 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man1/npm-deprecate.1 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man1/npm-docs.1 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man1/npm-edit.1 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man1/npm-explore.1 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man1/npm-help-search.1 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man1/npm-help.1 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man1/npm-init.1 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man1/npm-install.1 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man1/npm-link.1 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man1/npm-ls.1 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man1/npm-outdated.1 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man1/npm-owner.1 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man1/npm-pack.1 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man1/npm-prefix.1 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man1/npm-prune.1 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man1/npm-publish.1 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man1/npm-rebuild.1 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man1/npm-restart.1 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man1/npm-rm.1 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man1/npm-root.1 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man1/npm-run-script.1 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man1/npm-search.1 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man1/npm-shrinkwrap.1 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man1/npm-star.1 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man1/npm-stars.1 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man1/npm-start.1 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man1/npm-stop.1 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man1/npm-submodule.1 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man1/npm-tag.1 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man1/npm-test.1 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man1/npm-uninstall.1 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man1/npm-unpublish.1 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man1/npm-update.1 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man1/npm-version.1 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man1/npm-view.1 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man1/npm-whoami.1 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man1/npm.1 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man1/repo.1 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man3/npm-bin.3 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man3/npm-bugs.3 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man3/npm-commands.3 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man3/npm-config.3 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man3/npm-deprecate.3 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man3/npm-docs.3 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man3/npm-edit.3 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man3/npm-explore.3 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man3/npm-help-search.3 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man3/npm-init.3 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man3/npm-install.3 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man3/npm-link.3 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man3/npm-load.3 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man3/npm-ls.3 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man3/npm-outdated.3 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man3/npm-owner.3 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man3/npm-pack.3 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man3/npm-prefix.3 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man3/npm-prune.3 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man3/npm-publish.3 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man3/npm-rebuild.3 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man3/npm-restart.3 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man3/npm-root.3 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man3/npm-run-script.3 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man3/npm-search.3 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man3/npm-shrinkwrap.3 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man3/npm-start.3 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man3/npm-stop.3 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man3/npm-submodule.3 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man3/npm-tag.3 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man3/npm-test.3 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man3/npm-uninstall.3 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man3/npm-unpublish.3 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man3/npm-update.3 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man3/npm-version.3 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man3/npm-view.3 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man3/npm-whoami.3 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man3/npm.3 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man3/repo.3 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man5/npm-folders.5 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man5/npm-global.5 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man5/npm-json.5 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man5/npmrc.5 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man5/package.json.5 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man7/npm-coding-style.7 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man7/npm-config.7 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man7/npm-developers.7 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man7/npm-disputes.7 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man7/npm-faq.7 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man7/npm-index.7 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man7/npm-registry.7 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man7/npm-scripts.7 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man7/removing-npm.7 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/man/man7/semver.7 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/abbrev/LICENSE create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/abbrev/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/abbrev/lib/abbrev.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/abbrev/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/ansi/.npmignore create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/ansi/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/ansi/examples/beep/index.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/ansi/examples/clear/index.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/ansi/examples/cursorPosition.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/ansi/examples/imgcat/index.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/ansi/examples/imgcat/yoshi.png create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/ansi/examples/progress/index.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/ansi/examples/starwars.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/ansi/lib/ansi.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/ansi/lib/newlines.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/ansi/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/archy/README.markdown create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/archy/index.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/archy/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/block-stream/LICENCE create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/block-stream/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/block-stream/bench/block-stream-pause.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/block-stream/bench/block-stream.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/block-stream/bench/dropper-pause.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/block-stream/bench/dropper.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/block-stream/block-stream.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/block-stream/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/block-stream/test/basic.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/block-stream/test/nopad-thorough.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/block-stream/test/nopad.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/block-stream/test/pause-resume.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/block-stream/test/thorough.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/block-stream/test/two-stream.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/child-process-close/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/child-process-close/index.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/child-process-close/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/child-process-close/test/test-exec.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/child-process-close/test/test-fork.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/child-process-close/test/test-spawn-and-execfile.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/child-process-close/test/test.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/child-process-close/test/worker-fork.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/child-process-close/test/worker-spawn.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/chmodr/LICENSE create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/chmodr/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/chmodr/chmodr.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/chmodr/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/chmodr/test/basic.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/chmodr/test/sync.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/chownr/LICENCE create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/chownr/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/chownr/chownr.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/chownr/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/cmd-shim/.npmignore create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/cmd-shim/LICENSE create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/cmd-shim/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/cmd-shim/index.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/cmd-shim/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/cmd-shim/test/00-setup.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/cmd-shim/test/basic.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/cmd-shim/test/zz-cleanup.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/editor/README.markdown create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/editor/example/beep.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/editor/example/edit.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/editor/index.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/editor/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/fstream-npm/.npmignore create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/fstream-npm/LICENCE create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/fstream-npm/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/fstream-npm/example/bundle.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/fstream-npm/example/dir-tar.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/fstream-npm/example/dir.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/fstream-npm/example/example.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/fstream-npm/example/ig-tar.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/fstream-npm/example/tar.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/fstream-npm/fstream-npm.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/.npmignore create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/LICENSE create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/example/basic.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/ignore.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/test/.ignore create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/test/.npmignore create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/test/00-setup.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/test/basic.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/test/common.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/test/ignore-most.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/test/nested-ignores.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/test/unignore-child.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/test/zz-cleanup.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/fstream-npm/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/fstream/.npmignore create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/fstream/.travis.yml create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/fstream/LICENSE create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/fstream/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/fstream/examples/filter-pipe.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/fstream/examples/pipe.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/fstream/examples/reader.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/fstream/examples/symlink-write.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/fstream/fstream.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/fstream/lib/abstract.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/fstream/lib/collect.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/fstream/lib/dir-reader.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/fstream/lib/dir-writer.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/fstream/lib/file-reader.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/fstream/lib/file-writer.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/fstream/lib/get-type.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/fstream/lib/link-reader.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/fstream/lib/link-writer.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/fstream/lib/proxy-reader.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/fstream/lib/proxy-writer.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/fstream/lib/reader.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/fstream/lib/socket-reader.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/fstream/lib/writer.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/fstream/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/github-url-from-git/.npmignore create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/github-url-from-git/History.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/github-url-from-git/Makefile create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/github-url-from-git/Readme.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/github-url-from-git/index.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/github-url-from-git/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/github-url-from-git/test.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/glob/.npmignore create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/glob/.travis.yml create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/glob/LICENSE create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/glob/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/glob/examples/g.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/glob/examples/usr-local.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/glob/glob.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/glob/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/glob/test/00-setup.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/glob/test/bash-comparison.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/glob/test/bash-results.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/glob/test/cwd-test.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/glob/test/globstar-match.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/glob/test/mark.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/glob/test/nocase-nomagic.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/glob/test/pause-resume.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/glob/test/root-nomount.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/glob/test/root.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/glob/test/stat.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/glob/test/zz-cleanup.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/graceful-fs/.npmignore create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/graceful-fs/LICENSE create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/graceful-fs/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/graceful-fs/graceful-fs.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/graceful-fs/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/graceful-fs/polyfills.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/graceful-fs/test/open.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/inherits/LICENSE create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/inherits/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/inherits/inherits.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/inherits/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/ini/LICENSE create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/ini/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/ini/ini.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/ini/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/ini/test/bar.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/ini/test/fixtures/foo.ini create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/ini/test/foo.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/init-package-json/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/init-package-json/default-input.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/init-package-json/example.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/init-package-json/init-package-json.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/init-package-json/node_modules/promzard/.npmignore create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/init-package-json/node_modules/promzard/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/init-package-json/node_modules/promzard/example/index.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/init-package-json/node_modules/promzard/example/npm-init/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/init-package-json/node_modules/promzard/example/npm-init/init-input.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/init-package-json/node_modules/promzard/example/npm-init/init.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/init-package-json/node_modules/promzard/example/npm-init/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/init-package-json/node_modules/promzard/example/substack-input.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/init-package-json/node_modules/promzard/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/init-package-json/node_modules/promzard/promzard.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/init-package-json/node_modules/promzard/test/basic.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/init-package-json/node_modules/promzard/test/exports.input create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/init-package-json/node_modules/promzard/test/exports.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/init-package-json/node_modules/promzard/test/fn.input create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/init-package-json/node_modules/promzard/test/fn.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/init-package-json/node_modules/promzard/test/simple.input create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/init-package-json/node_modules/promzard/test/simple.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/init-package-json/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/init-package-json/test/basic.input create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/init-package-json/test/basic.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/lockfile/LICENSE create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/lockfile/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/lockfile/lockfile.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/lockfile/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/lockfile/test/basic.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/lockfile/test/fixtures/bad-child.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/lockfile/test/fixtures/child.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/lru-cache/.npmignore create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/lru-cache/AUTHORS create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/lru-cache/LICENSE create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/lru-cache/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/lru-cache/lib/lru-cache.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/lru-cache/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/lru-cache/s.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/lru-cache/test/basic.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/lru-cache/test/foreach.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/lru-cache/test/memory-leak.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/minimatch/LICENSE create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/minimatch/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/minimatch/minimatch.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/minimatch/node_modules/sigmund/LICENSE create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/minimatch/node_modules/sigmund/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/minimatch/node_modules/sigmund/bench.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/minimatch/node_modules/sigmund/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/minimatch/node_modules/sigmund/sigmund.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/minimatch/node_modules/sigmund/test/basic.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/minimatch/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/minimatch/test/basic.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/minimatch/test/brace-expand.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/minimatch/test/caching.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/minimatch/test/defaults.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/mkdirp/.npmignore create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/mkdirp/.travis.yml create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/mkdirp/LICENSE create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/mkdirp/README.markdown create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/mkdirp/examples/pow.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/mkdirp/index.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/mkdirp/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/mkdirp/test/chmod.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/mkdirp/test/clobber.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/mkdirp/test/mkdirp.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/mkdirp/test/perm.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/mkdirp/test/perm_sync.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/mkdirp/test/race.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/mkdirp/test/rel.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/mkdirp/test/return.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/mkdirp/test/return_sync.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/mkdirp/test/root.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/mkdirp/test/sync.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/mkdirp/test/umask.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/mkdirp/test/umask_sync.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/.jshintrc create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/.npmignore create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/LICENSE create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/addon.gypi create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/.npmignore create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/AUTHORS create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/DEPS create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/LICENSE create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/MANIFEST create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/OWNERS create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/PRESUBMIT.py create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/codereview.settings create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/data/win/large-pdb-shim.cc create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/gyp create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/gyp.bat create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/gyp_dummy.c create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/gyptest.py create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSNew.py create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSProject.py create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings.py create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings_test.py create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSToolFile.py create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSUserFile.py create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSUtil.py create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSVersion.py create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/SCons.py create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/common.py create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/common_test.py create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/easy_xml.py create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/easy_xml_test.py create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/__init__.py create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/android.py create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/dump_dependency_json.py create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/eclipse.py create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/gypd.py create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/gypsh.py create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs.py create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja.py create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja_test.py create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/scons.py create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode.py create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/mac_tool.py create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/msvs_emulation.py create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/ninja_syntax.py create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/sun_tool.py create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/win_tool.py create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xcodeproj_file.py create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xml_fix.py create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/pylintrc create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/samples/samples create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/samples/samples.bat create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/setup.py create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/tools/README create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/tools/Xcode/README create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/tools/Xcode/Specifications/gyp.pbfilespec create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/tools/Xcode/Specifications/gyp.xclangspec create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/tools/emacs/README create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/tools/emacs/gyp-tests.el create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/tools/emacs/gyp.el create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/tools/emacs/run-unit-tests.sh create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/tools/emacs/testdata/media.gyp create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/tools/emacs/testdata/media.gyp.fontified create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/tools/graphviz.py create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/tools/pretty_gyp.py create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/tools/pretty_sln.py create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/gyp/tools/pretty_vcproj.py create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/lib/build.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/lib/clean.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/lib/configure.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/lib/install.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/lib/list.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/lib/rebuild.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/lib/remove.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/node-gyp/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/nopt/.npmignore create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/nopt/LICENSE create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/nopt/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/nopt/bin/nopt.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/nopt/examples/my-program.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/nopt/lib/nopt.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/nopt/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npm-registry-client/.npmignore create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npm-registry-client/LICENSE create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npm-registry-client/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npm-registry-client/index.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npm-registry-client/lib/adduser.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npm-registry-client/lib/get.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npm-registry-client/lib/publish.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npm-registry-client/lib/request.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npm-registry-client/lib/star.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npm-registry-client/lib/stars.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npm-registry-client/lib/tag.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npm-registry-client/lib/unpublish.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npm-registry-client/lib/upload.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npm-registry-client/node_modules/couch-login/.npmignore create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npm-registry-client/node_modules/couch-login/LICENSE create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npm-registry-client/node_modules/couch-login/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npm-registry-client/node_modules/couch-login/couch-login.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npm-registry-client/node_modules/couch-login/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npm-registry-client/node_modules/couch-login/test/00-setup.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npm-registry-client/node_modules/couch-login/test/basic.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npm-registry-client/node_modules/couch-login/test/fixtures/_replicator.couch create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npm-registry-client/node_modules/couch-login/test/fixtures/couch.ini create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npm-registry-client/node_modules/couch-login/test/fixtures/registry.couch create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npm-registry-client/node_modules/couch-login/test/registry.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npm-registry-client/node_modules/couch-login/test/reset-then-signup.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npm-registry-client/node_modules/couch-login/test/zz-teardown.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npm-registry-client/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npm-registry-client/test/00-setup.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npm-registry-client/test/adduser-new.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npm-registry-client/test/adduser-update.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npm-registry-client/test/basic.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npm-registry-client/test/fixtures/server.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npm-registry-client/test/fixtures/underscore/1.3.3/cache.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npm-registry-client/test/fixtures/underscore/cache.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npm-registry-client/test/retries.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npm-registry-client/test/zz-cleanup.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npm-user-validate/.npmignore create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npm-user-validate/.travis.yml create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npm-user-validate/LICENSE create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npm-user-validate/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npm-user-validate/npm-user-validate.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npm-user-validate/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npm-user-validate/test/email.test.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npm-user-validate/test/pw.test.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npm-user-validate/test/username.test.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npmconf/.npmignore create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npmconf/LICENSE create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npmconf/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npmconf/config-defs.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npmconf/node_modules/config-chain/.npmignore create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npmconf/node_modules/config-chain/LICENCE create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npmconf/node_modules/config-chain/index.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npmconf/node_modules/config-chain/node_modules/proto-list/LICENSE create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npmconf/node_modules/config-chain/node_modules/proto-list/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npmconf/node_modules/config-chain/node_modules/proto-list/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npmconf/node_modules/config-chain/node_modules/proto-list/proto-list.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npmconf/node_modules/config-chain/node_modules/proto-list/test/basic.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npmconf/node_modules/config-chain/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npmconf/node_modules/config-chain/readme.markdown create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npmconf/node_modules/config-chain/test/broken.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npmconf/node_modules/config-chain/test/broken.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npmconf/node_modules/config-chain/test/chain-class.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npmconf/node_modules/config-chain/test/env.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npmconf/node_modules/config-chain/test/find-file.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npmconf/node_modules/config-chain/test/ignore-unfound-file.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npmconf/node_modules/config-chain/test/ini.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npmconf/node_modules/config-chain/test/save.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npmconf/npmconf.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npmconf/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npmconf/test/00-setup.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npmconf/test/basic.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npmconf/test/builtin.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npmconf/test/fixtures/builtin create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npmconf/test/fixtures/globalconfig create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npmconf/test/fixtures/userconfig create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npmconf/test/save.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npmlog/LICENSE create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npmlog/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npmlog/example.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npmlog/log.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npmlog/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/npmlog/test/basic.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/once/LICENSE create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/once/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/once/once.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/once/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/once/test/once.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/opener/LICENSE.txt create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/opener/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/opener/opener.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/opener/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/osenv/LICENSE create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/osenv/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/osenv/osenv.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/osenv/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/osenv/test/unix.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/osenv/test/windows.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read-installed/LICENSE create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read-installed/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read-installed/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read-installed/read-installed.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read-installed/test/basic.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read-package-json/LICENSE create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read-package-json/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/.npmignore create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/.travis.yml create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/AUTHORS create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/LICENSE create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/lib/extract_description.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/lib/fixer.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/lib/normalize.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/lib/typos.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/node_modules/github-url-from-git/.npmignore create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/node_modules/github-url-from-git/History.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/node_modules/github-url-from-git/Makefile create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/node_modules/github-url-from-git/Readme.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/node_modules/github-url-from-git/index.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/node_modules/github-url-from-git/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/node_modules/github-url-from-git/test.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/test/basic.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/test/consistency.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/test/fixtures/async.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/test/fixtures/bcrypt.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/test/fixtures/coffee-script.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/test/fixtures/http-server.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/test/fixtures/movefile.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/test/fixtures/node-module_exist.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/test/fixtures/npm.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/test/fixtures/read-package-json.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/test/fixtures/request.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/test/fixtures/underscore.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/test/github-urls.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/test/normalize.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/test/strict.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/test/typo.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read-package-json/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read-package-json/read-json.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read-package-json/test/basic.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read-package-json/test/bom.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read-package-json/test/fixtures/bom.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read-package-json/test/fixtures/nobom.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read-package-json/test/fixtures/not-json.css create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read-package-json/test/non-json.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read/.npmignore create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read/LICENCE create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read/example/example.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read/lib/read.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read/node_modules/mute-stream/LICENSE create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read/node_modules/mute-stream/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read/node_modules/mute-stream/mute.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read/node_modules/mute-stream/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read/node_modules/mute-stream/test/basic.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read/rs.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read/test/basic.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read/test/defaults.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/read/test/many.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/.npmignore create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/LICENSE create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/index.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/aws-sign/LICENSE create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/aws-sign/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/aws-sign/index.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/aws-sign/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/cookie-jar/LICENSE create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/cookie-jar/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/cookie-jar/index.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/cookie-jar/jar.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/cookie-jar/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/cookie-jar/tests/run.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/cookie-jar/tests/test-cookie.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/cookie-jar/tests/test-cookiejar.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/forever-agent/LICENSE create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/forever-agent/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/forever-agent/index.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/forever-agent/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/form-data/License create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/form-data/Readme.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/form-data/lib/form_data.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/async/LICENSE create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/async/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/async/component.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/async/lib/async.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/async/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/.npmignore create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/License create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/Makefile create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/Readme.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/lib/combined_stream.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/.npmignore create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/License create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/Makefile create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/Readme.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/lib/delayed_stream.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/common.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-delayed-http-upload.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-delayed-stream-auto-pause.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-delayed-stream-pause.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-delayed-stream.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-handle-source-errors.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-max-data-size.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-pipe-resumes.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-proxy-readable.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/run.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/test/common.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/test/fixture/file1.txt create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/test/fixture/file2.txt create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/test/integration/test-callback-streams.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/test/integration/test-data-size.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/test/integration/test-delayed-streams-and-buffers-and-strings.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/test/integration/test-delayed-streams.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/test/integration/test-empty-string.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/test/integration/test-is-stream-like.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/test/integration/test-max-data-size.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/test/integration/test-unpaused-streams.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/test/run.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/form-data/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/.npmignore create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/.travis.yml create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/LICENSE create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/Makefile create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/example/usage.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/images/hawk.png create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/images/logo.png create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/index.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/lib/browser.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/lib/client.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/lib/crypto.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/lib/index.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/lib/server.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/lib/utils.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/boom/.npmignore create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/boom/.travis.yml create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/boom/LICENSE create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/boom/Makefile create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/boom/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/boom/images/boom.png create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/boom/index.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/boom/lib/index.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/boom/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/boom/test/index.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/cryptiles/.npmignore create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/cryptiles/.travis.yml create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/cryptiles/LICENSE create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/cryptiles/Makefile create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/cryptiles/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/cryptiles/index.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/cryptiles/lib/index.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/cryptiles/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/cryptiles/test/index.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/hoek/.npmignore create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/hoek/.travis.yml create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/hoek/LICENSE create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/hoek/Makefile create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/hoek/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/hoek/images/hoek.png create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/hoek/index.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/hoek/lib/escape.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/hoek/lib/index.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/hoek/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/hoek/test/escaper.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/hoek/test/index.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/hoek/test/modules/test1.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/hoek/test/modules/test2.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/hoek/test/modules/test3.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/sntp/.npmignore create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/sntp/.travis.yml create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/sntp/LICENSE create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/sntp/Makefile create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/sntp/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/sntp/examples/offset.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/sntp/examples/time.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/sntp/index.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/sntp/lib/index.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/sntp/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/sntp/test/index.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/test/browser.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/test/client.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/test/crypto.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/test/index.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/test/message.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/test/readme.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/test/server.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/test/uri.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/hawk/test/utils.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/.dir-locals.el create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/.npmignore create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/LICENSE create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/http_signing.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/lib/index.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/lib/parser.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/lib/signer.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/lib/util.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/lib/verify.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/asn1/.npmignore create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/asn1/LICENSE create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/asn1/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/ber/errors.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/ber/index.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/ber/reader.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/ber/types.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/ber/writer.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/index.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/asn1/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/asn1/tst/ber/reader.test.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/asn1/tst/ber/writer.test.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/assert-plus/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/assert-plus/assert.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/assert-plus/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/CHANGELOG create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/LICENSE create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/README create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/README.old create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/ctf.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/ctio.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/ctype.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/man/man3ctype/ctio.3ctype create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tools/jsl.conf create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tools/jsstyle create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/float.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/int.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/psinfo.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/struct.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/tst.fail.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/tst.float.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/tst.int.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/tst.psinfo.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/tst.struct.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/tst.typedef.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/typedef.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctio/float/tst.rfloat.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctio/float/tst.wfloat.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctio/int/tst.64.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctio/int/tst.rint.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctio/int/tst.wbounds.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctio/int/tst.wint.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctio/uint/tst.64.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctio/uint/tst.roundtrip.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctio/uint/tst.ruint.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctio/uint/tst.wuint.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctype/tst.basicr.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctype/tst.basicw.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctype/tst.char.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctype/tst.endian.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctype/tst.oldwrite.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctype/tst.readSize.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctype/tst.structw.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctype/tst.writeStruct.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/http-signature/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/json-stringify-safe/LICENSE create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/json-stringify-safe/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/json-stringify-safe/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/json-stringify-safe/stringify.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/json-stringify-safe/test.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/mime/LICENSE create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/mime/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/mime/mime.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/mime/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/mime/test.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/mime/types/mime.types create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/mime/types/node.types create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/node-uuid/.npmignore create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/node-uuid/LICENSE.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/node-uuid/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/node-uuid/benchmark/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/node-uuid/benchmark/bench.gnu create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/node-uuid/benchmark/bench.sh create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/node-uuid/benchmark/benchmark-native.c create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/node-uuid/benchmark/benchmark.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/node-uuid/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/node-uuid/test/compare_v1.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/node-uuid/test/test.html create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/node-uuid/test/test.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/node-uuid/uuid.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/oauth-sign/LICENSE create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/oauth-sign/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/oauth-sign/index.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/oauth-sign/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/oauth-sign/test.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/qs/.gitmodules create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/qs/.npmignore create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/qs/Readme.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/qs/index.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/qs/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/tunnel-agent/LICENSE create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/tunnel-agent/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/tunnel-agent/index.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/node_modules/tunnel-agent/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/tests/googledoodle.jpg create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/tests/run.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/tests/server.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/tests/squid.conf create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/tests/ssl/ca/ca.cnf create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/tests/ssl/ca/ca.crl create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/tests/ssl/ca/ca.crt create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/tests/ssl/ca/ca.csr create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/tests/ssl/ca/ca.key create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/tests/ssl/ca/ca.srl create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/tests/ssl/ca/server.cnf create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/tests/ssl/ca/server.crt create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/tests/ssl/ca/server.csr create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/tests/ssl/ca/server.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/tests/ssl/ca/server.key create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/tests/ssl/npm-ca.crt create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/tests/ssl/test.crt create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/tests/ssl/test.key create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/tests/test-agentOptions.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/tests/test-basic-auth.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/tests/test-body.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/tests/test-defaults.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/tests/test-digest-auth.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/tests/test-emptyBody.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/tests/test-errors.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/tests/test-follow-all-303.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/tests/test-follow-all.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/tests/test-form.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/tests/test-hawk.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/tests/test-headers.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/tests/test-http-signature.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/tests/test-httpModule.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/tests/test-https-strict.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/tests/test-https.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/tests/test-localAddress.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/tests/test-oauth.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/tests/test-onelineproxy.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/tests/test-params.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/tests/test-piped-redirect.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/tests/test-pipes.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/tests/test-pool.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/tests/test-protocol-changing-redirect.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/tests/test-proxy.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/tests/test-qs.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/tests/test-redirect.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/tests/test-s3.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/tests/test-timeout.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/tests/test-toJSON.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/tests/test-tunnel.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/request/tests/unicycle.jpg create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/retry/.npmignore create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/retry/License create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/retry/Makefile create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/retry/Readme.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/retry/equation.gif create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/retry/example/dns.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/retry/index.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/retry/lib/retry.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/retry/lib/retry_operation.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/retry/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/retry/test/common.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/retry/test/integration/test-retry-operation.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/retry/test/integration/test-timeouts.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/retry/test/runner.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/rimraf/AUTHORS create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/rimraf/LICENSE create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/rimraf/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/rimraf/bin.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/rimraf/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/rimraf/rimraf.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/rimraf/test/run.sh create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/rimraf/test/setup.sh create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/rimraf/test/test-async.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/rimraf/test/test-sync.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/semver/.npmignore create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/semver/LICENSE create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/semver/Makefile create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/semver/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/semver/bin/semver create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/semver/foot.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/semver/head.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/semver/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/semver/semver.browser.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/semver/semver.browser.js.gz create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/semver/semver.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/semver/semver.min.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/semver/semver.min.js.gz create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/semver/test/amd.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/semver/test/index.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/semver/test/no-module.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/sha/.npmignore create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/sha/LICENSE create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/sha/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/sha/index.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/sha/node_modules/readable-stream/LICENSE create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/sha/node_modules/readable-stream/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/sha/node_modules/readable-stream/duplex.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/sha/node_modules/readable-stream/examples/CAPSLOCKTYPER.JS create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/sha/node_modules/readable-stream/examples/typer-fsr.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/sha/node_modules/readable-stream/examples/typer.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/sha/node_modules/readable-stream/fs.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/sha/node_modules/readable-stream/lib/_stream_duplex.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/sha/node_modules/readable-stream/lib/_stream_passthrough.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/sha/node_modules/readable-stream/lib/_stream_readable.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/sha/node_modules/readable-stream/lib/_stream_transform.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/sha/node_modules/readable-stream/lib/_stream_writable.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/sha/node_modules/readable-stream/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/sha/node_modules/readable-stream/passthrough.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/sha/node_modules/readable-stream/readable.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/sha/node_modules/readable-stream/test/common.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/sha/node_modules/readable-stream/test/fixtures/x1024.txt create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/sha/node_modules/readable-stream/test/simple/test-stream2-basic.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/sha/node_modules/readable-stream/test/simple/test-stream2-compatibility.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/sha/node_modules/readable-stream/test/simple/test-stream2-finish-pipe.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/sha/node_modules/readable-stream/test/simple/test-stream2-large-read-stall.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/sha/node_modules/readable-stream/test/simple/test-stream2-objects.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/sha/node_modules/readable-stream/test/simple/test-stream2-pipe-error-handling.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/sha/node_modules/readable-stream/test/simple/test-stream2-push.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/sha/node_modules/readable-stream/test/simple/test-stream2-read-sync-stack.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/sha/node_modules/readable-stream/test/simple/test-stream2-readable-empty-buffer-no-eof.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/sha/node_modules/readable-stream/test/simple/test-stream2-readable-from-list.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/sha/node_modules/readable-stream/test/simple/test-stream2-readable-legacy-drain.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/sha/node_modules/readable-stream/test/simple/test-stream2-readable-non-empty-end.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/sha/node_modules/readable-stream/test/simple/test-stream2-set-encoding.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/sha/node_modules/readable-stream/test/simple/test-stream2-transform.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/sha/node_modules/readable-stream/test/simple/test-stream2-unpipe-drain.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/sha/node_modules/readable-stream/test/simple/test-stream2-unpipe-leak.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/sha/node_modules/readable-stream/test/simple/test-stream2-writable.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/sha/node_modules/readable-stream/transform.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/sha/node_modules/readable-stream/writable.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/sha/node_modules/readable-stream/zlib.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/sha/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/slide/LICENSE create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/slide/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/slide/index.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/slide/lib/async-map-ordered.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/slide/lib/async-map.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/slide/lib/bind-actor.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/slide/lib/chain.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/slide/lib/slide.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/slide/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/tar/.npmignore create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/tar/.travis.yml create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/tar/LICENCE create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/tar/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/tar/examples/extracter.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/tar/examples/reader.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/tar/lib/buffer-entry.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/tar/lib/entry-writer.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/tar/lib/entry.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/tar/lib/extended-header-writer.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/tar/lib/extended-header.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/tar/lib/extract.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/tar/lib/global-header-writer.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/tar/lib/header.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/tar/lib/pack.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/tar/lib/parse.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/tar/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/tar/tar.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/tar/test/00-setup-fixtures.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/tar/test/extract.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/tar/test/fixtures.tgz create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/tar/test/header.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/tar/test/pack-no-proprietary.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/tar/test/pack.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/tar/test/parse.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/tar/test/zz-cleanup.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/uid-number/LICENCE create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/uid-number/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/uid-number/get-uid-gid.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/uid-number/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/uid-number/uid-number.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/which/LICENSE create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/which/README.md create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/which/bin/which create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/which/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/node_modules/which/which.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/npmrc create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/scripts/clean-old.sh create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/scripts/doc-build.sh create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/scripts/index-build.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/scripts/install.sh create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/scripts/release.sh create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/scripts/relocate.sh create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/common.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/disabled/bundlerecurs/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/disabled/change-bin-1/bin/foo create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/disabled/change-bin-1/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/disabled/change-bin-2/bin/bar create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/disabled/change-bin-2/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/disabled/failer/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/disabled/fast/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/disabled/package-bar/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/disabled/package-config/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/disabled/package-config/test.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/disabled/package-foo/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/disabled/slow/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/disabled/startstop/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-array-bin/README create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-array-bin/bin/array-bin create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-array-bin/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-array-bin/test.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-blerg/README create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-blerg/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-blerg/test.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-blerg3/README create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-blerg3/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-blerg3/test.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-bundled-git/README create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-bundled-git/minimatch-expected.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-bundled-git/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-bundled-git/test.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-dir-bin/README create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-dir-bin/bin/dir-bin create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-dir-bin/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-dir-bin/test.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-env-reader/README create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-env-reader/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-env-reader/test.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-files/.npmignore create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-files/include4 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-files/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-files/sub/include create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-files/sub/include2 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-files/sub/include4 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-files/test.sh create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-ignore-nested-nm/README create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-ignore-nested-nm/lib/node_modules/foo create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-ignore-nested-nm/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-ignore-nested-nm/test.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-ignore/.npmignore create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-ignore/README create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-ignore/include4 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-ignore/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-ignore/sub/include create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-ignore/sub/include2 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-ignore/sub/include4 create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-ignore/test.sh create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-missing-bindir/README create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-missing-bindir/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-missing-bindir/test.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-optional-deps/README create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-optional-deps/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-optional-deps/test.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-peer-deps/README create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-peer-deps/npm-ls.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-peer-deps/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-peer-deps/test.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-platform-all/README create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-platform-all/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-platform/README create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-platform/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-private/README create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-private/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-shrinkwrap/README create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-shrinkwrap/npm-shrinkwrap.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-shrinkwrap/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-shrinkwrap/test.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-test-package/README create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-test-package/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-url-dep/README create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/packages/npm-test-url-dep/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/run.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/tap/false_name.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/tap/false_name/index.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/tap/false_name/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/tap/fixtures/underscore-1-3-3.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/tap/fixtures/underscore.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/tap/ignore-shrinkwrap.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/tap/ignore-shrinkwrap/npm-shrinkwrap.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/tap/ignore-shrinkwrap/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/tap/noargs-install-config-save.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/tap/package-with-peer-dep/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/tap/peer-deps-invalid.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/tap/peer-deps-invalid/package.json create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/tap/peer-deps-without-package-json.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/tap/peer-deps-without-package-json/.gitkeep create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/tap/publish-config.js create mode 100644 src/arm/TemplateGenerator/nodejs/node_modules/npm/test/update-test.sh create mode 100644 src/arm/TemplateGenerator/nodejs/node_perfctr_provider.man create mode 100644 src/arm/TemplateGenerator/nodejs/nodevars.bat create mode 100644 src/arm/TemplateGenerator/nodejs/npm create mode 100644 src/arm/TemplateGenerator/nodejs/npm.cmd create mode 100644 src/arm/TemplateGenerator/typescript/License.htm create mode 100644 src/arm/TemplateGenerator/typescript/cs/diagnosticMessages.generated.json create mode 100644 src/arm/TemplateGenerator/typescript/de/diagnosticMessages.generated.json create mode 100644 src/arm/TemplateGenerator/typescript/en/diagnosticMessages.generated.json create mode 100644 src/arm/TemplateGenerator/typescript/es/diagnosticMessages.generated.json create mode 100644 src/arm/TemplateGenerator/typescript/fr/diagnosticMessages.generated.json create mode 100644 src/arm/TemplateGenerator/typescript/it/diagnosticMessages.generated.json create mode 100644 src/arm/TemplateGenerator/typescript/ja/diagnosticMessages.generated.json create mode 100644 src/arm/TemplateGenerator/typescript/ko/diagnosticMessages.generated.json create mode 100644 src/arm/TemplateGenerator/typescript/lib.d.ts create mode 100644 src/arm/TemplateGenerator/typescript/pl/diagnosticMessages.generated.json create mode 100644 src/arm/TemplateGenerator/typescript/pt-BR/diagnosticMessages.generated.json create mode 100644 src/arm/TemplateGenerator/typescript/ru/diagnosticMessages.generated.json create mode 100644 src/arm/TemplateGenerator/typescript/tr/diagnosticMessages.generated.json create mode 100644 src/arm/TemplateGenerator/typescript/tsc.exe create mode 100644 src/arm/TemplateGenerator/typescript/tsc.js create mode 100644 src/arm/TemplateGenerator/typescript/tschost.dll create mode 100644 src/arm/TemplateGenerator/typescript/typescript.js create mode 100644 src/arm/TemplateGenerator/typescript/zh-CN/diagnosticMessages.generated.json create mode 100644 src/arm/TemplateGenerator/typescript/zh-TW/diagnosticMessages.generated.json diff --git a/README.md b/README.md index dae8ace..e03d9b3 100644 --- a/README.md +++ b/README.md @@ -8,3 +8,5 @@ This guide is written in [Asciidoc](http://www.methods.co.nz/asciidoc/) and is b To build it, from the project's top level directory, run ./gradlew asciidoctor Then, open build/asciidoc/Microsoft-Azure-Deployment-guide.html in a web-browser. + +The project also contains code for use with the Azure Resource Manager under src/arm. diff --git a/src/arm/TemplateGenerator/Fragments/ChildCustomScriptExtensionFragment.js b/src/arm/TemplateGenerator/Fragments/ChildCustomScriptExtensionFragment.js new file mode 100644 index 0000000..d03e296 --- /dev/null +++ b/src/arm/TemplateGenerator/Fragments/ChildCustomScriptExtensionFragment.js @@ -0,0 +1,74 @@ +var fragment = { + "name": "ChildCustomScriptExtensionFragment", + "publisher": "Microsoft", + "version": "0.1.0-preview", + "content": { + "parameters": { + "resourceName": { + "paths": [], + "required": true + }, + "resourceLocation": { + "paths": [ + "location" + ], + "required": true + }, + "apiVersion": { + "paths": [ + "apiVersion" + ], + "required": true + }, + "virtualMachineName": { + "paths": [], + "required": true + }, + "fileUris": { + "paths": [ + "properties.parameters.public.fileUris" + ], + "required": true, + "action": "arraypush" + }, + "command": { + "paths": [ + "properties.parameters.public.commandToExecute" + ], + "required": true + } + }, + "resource": { + "type": "Microsoft.ClassicCompute/virtualMachines/extensions", + "properties": { + "extension": "CustomScriptExtension", + "publisher": "Microsoft.Compute", + "version": "1.*" + } + }, + "computeds": [ + { + "paths": [ + "name" + ], + "template": "{virtualMachineName}/{resourceName}", + "required": true + } + ], + "conditionals": { + "OS": { + "Linux": { + "path": "properties", + "resource": { + "extension": "CustomScriptForLinux", + "publisher": "Microsoft.OSTCExtensions", + "version": "1.*" + } + } + } + } + }, + "$schema": "https://gallery.azure.com/schemas/2014-06-01/gallerytemplate.json#" +} + +module.exports.fragment = fragment; \ No newline at end of file diff --git a/src/arm/TemplateGenerator/Fragments/DataDiskFragment.js b/src/arm/TemplateGenerator/Fragments/DataDiskFragment.js new file mode 100644 index 0000000..c5b010d --- /dev/null +++ b/src/arm/TemplateGenerator/Fragments/DataDiskFragment.js @@ -0,0 +1,56 @@ +var fragment = { + "name": "DataDiskFragment", + "publisher": "Microsoft", + "version": "0.1.0-preview", + "content": { + "parameters": { + "storageBlobEndpoint": { + "paths": [], + "required": true + }, + "domainName": { + "paths": [], + "required": true + }, + "virtualMachineName": { + "paths": [], + "required": true + }, + "diskSalt": { + "paths": [], + "required": true + }, + "lun": { + "paths": [ + "lun" + ], + "required": true + }, + "caching": { + "paths": [ + "caching" + ], + "required": true + }, + "diskSize": { + "paths": [ + "diskSize" + ], + "required": true + } + }, + "resource": {}, + "computeds": [ + { + "paths": [ + "vhdUri" + ], + "template": "[concat({storageBlobEndpoint}, 'vhds/{domainName}-{virtualMachineName}-data-{diskSalt}.vhd')]", + "required": true + } + ] + }, + "$schema": "https://gallery.azure.com/schemas/2014-06-01/gallerytemplate.json#" +} + +module.exports.fragment = fragment; \ No newline at end of file diff --git a/src/arm/TemplateGenerator/Fragments/DomainNameFragment.js b/src/arm/TemplateGenerator/Fragments/DomainNameFragment.js new file mode 100644 index 0000000..37f6b9d --- /dev/null +++ b/src/arm/TemplateGenerator/Fragments/DomainNameFragment.js @@ -0,0 +1,33 @@ +var fragment = { + "name": "DomainNameFragment", + "publisher": "Microsoft", + "version": "0.1.0-preview", + "content": { + "parameters": { + "resourceName": { + "paths": [ + "name" + ], + "required": true + }, + "resourceLocation": { + "paths": [ + "location" + ], + "required": true + }, + "apiVersion": { + "paths": [ + "apiVersion" + ], + "required": true + } + }, + "resource": { + "type": "Microsoft.ClassicCompute/domainNames" + } + }, + "$schema": "https://gallery.azure.com/schemas/2014-06-01/gallerytemplate.json#" +} + +module.exports.fragment = fragment; \ No newline at end of file diff --git a/src/arm/TemplateGenerator/Fragments/InputEndpointFragment.js b/src/arm/TemplateGenerator/Fragments/InputEndpointFragment.js new file mode 100644 index 0000000..c782cd5 --- /dev/null +++ b/src/arm/TemplateGenerator/Fragments/InputEndpointFragment.js @@ -0,0 +1,67 @@ +var fragment = { + "name": "InputEndpointFragment", + "publisher": "Microsoft", + "version": "0.1.0-preview", + "content": { + "parameters": { + "endpointName": { + "paths": [ + "endpointName" + ], + "required": true + }, + "enableDirectServerReturn": { + "paths": [ + "enableDirectServerReturn" + ], + "required": false + }, + "privatePort": { + "paths": [ + "privatePort" + ], + "required": true + }, + "publicPort": { + "paths": [ + "publicPort" + ], + "required": false + }, + "protocol": { + "paths": [ + "protocol" + ], + "required": true + }, + "loadBalancedEndpointSetName": { + "paths": [ + "loadBalancedEndpointSetName" + ], + "required": false + }, + "probePort": { + "paths": [ + "probe.port" + ], + "required": false + }, + "probeProtocol": { + "paths": [ + "probe.protocol" + ], + "required": false + }, + "probePath": { + "paths": [ + "probe.path" + ], + "required": false + } + }, + "resource": {} + }, + "$schema": "https://gallery.azure.com/schemas/2014-06-01/gallerytemplate.json#" +} + +module.exports.fragment = fragment; \ No newline at end of file diff --git a/src/arm/TemplateGenerator/Fragments/ServiceCertificateFragment.js b/src/arm/TemplateGenerator/Fragments/ServiceCertificateFragment.js new file mode 100644 index 0000000..1279d6b --- /dev/null +++ b/src/arm/TemplateGenerator/Fragments/ServiceCertificateFragment.js @@ -0,0 +1,59 @@ +var fragment = { + "name": "ServiceCertificateFragment", + "publisher": "Microsoft", + "version": "0.1.0-preview", + "content": { + "parameters": { + "domainName": { + "paths": [], + "required": true + }, + "resourceName": { + "paths": [], + "required": true + }, + "certificateData": { + "paths": [ + "properties.data" + ], + "required": true + }, + "certificatePassword": { + "paths": [ + "properties.password" + ], + "required": false + }, + "resourceLocation": { + "paths": [ + "location" + ], + "required": true + }, + "apiVersion": { + "paths": [ + "apiVersion" + ], + "required": true + } + }, + "resource": { + "type": "Microsoft.ClassicCompute/domainNames/serviceCertificates", + "properties": { + "certificateFormat": "pfx" + } + }, + "computeds": [ + { + "paths": [ + "name" + ], + "template": "{domainName}/{resourceName}", + "required": true + } + ] + }, + "$schema": "https://gallery.azure.com/schemas/2014-06-01/gallerytemplate.json#" +} + +module.exports.fragment = fragment; \ No newline at end of file diff --git a/src/arm/TemplateGenerator/Fragments/StorageAccountFragment.js b/src/arm/TemplateGenerator/Fragments/StorageAccountFragment.js new file mode 100644 index 0000000..88f6015 --- /dev/null +++ b/src/arm/TemplateGenerator/Fragments/StorageAccountFragment.js @@ -0,0 +1,39 @@ +var fragment = { + "name": "StorageAccountFragment", + "publisher": "Microsoft", + "version": "0.1.0-preview", + "content": { + "parameters": { + "resourceName": { + "paths": [ + "name" + ], + "required": true + }, + "resourceLocation": { + "paths": [ + "location" + ], + "required": true + }, + "apiVersion": { + "paths": [ + "apiVersion" + ], + "required": true + }, + "accountType": { + "paths": [ + "properties.accountType" + ], + "required": true + } + }, + "resource": { + "type": "Microsoft.ClassicStorage/storageAccounts" + } + }, + "$schema": "https://gallery.azure.com/schemas/2014-06-01/gallerytemplate.json#" +} + +module.exports.fragment = fragment; \ No newline at end of file diff --git a/src/arm/TemplateGenerator/Fragments/VirtualMachineFragment.js b/src/arm/TemplateGenerator/Fragments/VirtualMachineFragment.js new file mode 100644 index 0000000..279e831 --- /dev/null +++ b/src/arm/TemplateGenerator/Fragments/VirtualMachineFragment.js @@ -0,0 +1,304 @@ +var fragment = { + "name": "VirtualMachineFragment", + "publisher": "Microsoft", + "version": "0.1.3-preview", + "content": { + "parameters": { + "resourceName": { + "paths": [ + "name", + "properties.operatingSystemProfile.computerName" + ], + "required": true + }, + "resourceLocation": { + "paths": [ + "location" + ], + "required": true + }, + "apiVersion": { + "paths": [ + "apiVersion" + ], + "required": true + }, + "domainNameResourceId": { + "paths": [ + "properties.domainName.id" + ], + "required": true + }, + "domainName": { + "paths": [], + "required": true + }, + "virtualNetworkId": { + "paths": [ + "properties.networkProfile.virtualNetwork.id" + ], + "required": false + }, + "subnetNames": { + "paths": [ + "properties.networkProfile.virtualNetwork.subnetNames" + ], + "required": false, + "action": "arraypush" + }, + "staticIpAddress": { + "paths": [ + "properties.networkProfile.virtualNetwork.staticIpAddress" + ], + "required": false + }, + "availabilitySetName": { + "paths": [ + "properties.hardwareProfile.availabilitySet" + ], + "required": false + }, + "adminUser": { + "paths": [ + "properties.operatingSystemProfile.adminUserName" + ], + "required": true + }, + "adminPassword": { + "paths": [ + "properties.operatingSystemProfile.adminPassword" + ], + "required": false + }, + "hardwareSize": { + "paths": [ + "properties.hardwareProfile.size" + ], + "required": true + }, + "storageBlobEndpoint": { + "paths": [], + "required": true + }, + "mediaName": { + "paths": [ + "properties.storageProfile.operatingSystemDisk.sourceImageName" + ], + "required": false + }, + "remoteSourceImageLink": { + "paths": [ + "properties.storageProfile.operatingSystemDisk.remoteSourceImageLink" + ], + "required": false + }, + "operatingSystem": { + "paths": [ + "properties.storageProfile.operatingSystemDisk.operatingSystem" + ], + "required": false + }, + "timeZone": { + "paths": [ + "properties.operatingSystemProfile.timeZone" + ], + "required": false, + "condition": { + "name": "OS", + "value": "Windows" + } + }, + "automaticUpdates": { + "paths": [ + "properties.operatingSystemProfile.windowsOperatingSystemProfile.enableAutomaticWindowsUpdates" + ], + "required": false, + "condition": { + "name": "OS", + "value": "Windows" + } + }, + "domainToJoin": { + "paths": [ + "properties.operatingSystemProfile.windowsOperatingSystemProfile.domainJoinProfile.domainToJoin" + ], + "required": false, + "condition": { + "name": "OS", + "value": "Windows" + } + }, + "domainUser": { + "paths": [ + "properties.operatingSystemProfile.windowsOperatingSystemProfile.domainJoinProfile.domainJoinCredentials.username" + ], + "required": false, + "condition": { + "name": "OS", + "value": "Windows" + } + }, + "domainPassword": { + "paths": [ + "properties.operatingSystemProfile.windowsOperatingSystemProfile.domainJoinProfile.domainJoinCredentials.password" + ], + "required": false, + "condition": { + "name": "OS", + "value": "Windows" + } + }, + "domainJoinCredentialsName": { + "paths": [ + "properties.operatingSystemProfile.windowsOperatingSystemProfile.domainJoinProfile.domainJoinCredentials.domain" + ], + "required": false, + "condition": { + "name": "OS", + "value": "Windows" + } + }, + "unattendedSetupConfigurations": { + "paths": [ + "properties.operatingSystemProfile.windowsOperatingSystemProfile.unattendedSetupConfigurations" + ], + "required": false, + "action": "arraypush", + "condition": { + "name": "OS", + "value": "Windows" + } + }, + "serviceCertificates": { + "paths": [ + "properties.operatingSystemProfile.windowsOperatingSystemProfile.serviceCertificates" + ], + "required": false, + "action": "arraypush", + "condition": { + "name": "OS", + "value": "Windows" + } + }, + "linuxCertThumbprint": { + "paths": [ + "properties.operatingSystemProfile.linuxOperatingSystemProfile.sshProfile.publicKeys[0].certificateFingerprint" + ], + "required": false, + "condition": { + "name": "OS", + "value": "Linux" + } + }, + "disableSshPasswordAuthentication": { + "paths": [ + "properties.operatingSystemProfile.linuxOperatingSystemProfile.disableSshPasswordAuthentication" + ], + "require": false, + "condition": { + "name": "OS", + "value": "Linux" + } + }, + "diskSalt": { + "paths": [], + "required": true + }, + "extensions": { + "paths": [ + "properties.extensions" + ], + "required": false, + "action": "arraypush" + }, + "dataDisks": { + "paths": [ + "properties.storageProfile.dataDisks" + ], + "required": false, + "action": "arraypush" + }, + "endpoints": { + "paths": [ + "properties.networkProfile.inputEndpoints" + ], + "required": false, + "action": "arraypush" + } + }, + "resource": { + "type": "Microsoft.ClassicCompute/virtualMachines", + "properties": { + "storageProfile": { + "operatingSystemDisk": { + "caching": "ReadWrite" + } + }, + "hardwareProfile": { + "platformGuestAgent": "true" + } + } + }, + "conditionals": { + "OS": { + "Windows": { + "path": "properties.operatingSystemProfile.windowsOperatingSystemProfile", + "resource": { + "winRMListeners": [ + { + "protocol": "Https" + } + ] + } + }, + "Linux": { + "path": "properties.operatingSystemProfile.linuxOperatingSystemProfile", + "resource": { + "disableSshPasswordAuthentication": "true", + "sshProfile": { + "publicKeys": [ + {} + ] + } + } + }, + "LinuxPassword": { + "path": "properties.operatingSystemProfile.linuxOperatingSystemProfile", + "resource": { + "disableSshPasswordAuthentication": "false" + } + } + } + }, + "computeds": [ + { + "paths": [ + "properties.storageProfile.operatingSystemDisk.vhdUri" + ], + "template": "[concat({storageBlobEndpoint}, 'vhds/{domainName}-{resourceName}-os-{diskSalt}.vhd')]", + "required": true + }, + { + "paths": [ + "properties.storageProfile.operatingSystemDisk.diskName" + ], + "template": "{domainName}-{resourceName}-os-{diskSalt}", + "required": true + }, + { + "paths": [ + "properties.operatingSystemProfile.linuxOperatingSystemProfile.sshProfile.publicKeys[0].keyPath" + ], + "template": "/home/{adminUser}/.ssh/authorized_keys", + "required": false, + "condition": { + "name": "OS", + "value": "Linux" + } + } + ] + }, + "$schema": "https://gallery.azure.com/schemas/2014-06-01/gallerytemplate.json#" +} + +module.exports.fragment = fragment; \ No newline at end of file diff --git a/src/arm/TemplateGenerator/Fragments/VirtualNetworkFragment.js b/src/arm/TemplateGenerator/Fragments/VirtualNetworkFragment.js new file mode 100644 index 0000000..3ab7ec6 --- /dev/null +++ b/src/arm/TemplateGenerator/Fragments/VirtualNetworkFragment.js @@ -0,0 +1,54 @@ +var fragment = { + "name": "VirtualNetworkFragment", + "publisher": "Microsoft", + "version": "0.1.0-preview", + "content": { + "parameters": { + "resourceName": { + "paths": [ + "name" + ], + "required": true + }, + "resourceLocation": { + "paths": [ + "location" + ], + "required": true + }, + "apiVersion": { + "paths": [ + "apiVersion" + ], + "required": true + }, + "addressSpaces": { + "paths": [ + "properties.addressSpace.addressPrefixes" + ], + "required": true, + "action": "arraypush" + }, + "subnets": { + "paths": [ + "properties.subnets" + ], + "required": true, + "action": "arraypush" + }, + "dnsServers": { + "paths": [ + "properties.dhcpOptions.dnsServers" + ], + "required": false, + "action": "arraypush" + } + }, + "resource": { + "type": "Microsoft.ClassicNetwork/virtualNetworks" + } + }, + "$schema": "https://gallery.azure.com/schemas/2014-06-01/gallerytemplate.json#" +} + +module.exports.fragment = fragment; \ No newline at end of file diff --git a/src/arm/TemplateGenerator/Readme.txt b/src/arm/TemplateGenerator/Readme.txt new file mode 100644 index 0000000..6b0f733 --- /dev/null +++ b/src/arm/TemplateGenerator/Readme.txt @@ -0,0 +1,27 @@ +Template Generator Readme + +==================================================== +BASIC WORKFLOW +==================================================== +The tool has a few parts. Your main task is to take existing fragments and generate a template. You will do that like so: + +generator.ts is a TypeScript file that declares 1 function, 'generateTemplate'. This function takes in a data object and a dictionary of fragments. It should return a template string. A quick storage account template is included as an example. Modify this typescript file to include all of your logic to generate the template. + +data.ts is a TypeScript file that declares 1 variable, 'data'. This is the object that will be passed into the generator.ts function. When this transitions to the UI, data will be populated by the user using the UI. + +When both of these files are modified to your liking, simply execute composeTemplate.cmd. This will compile the typescript down and execute its functions. The finished template will be saved in template.json. + +==================================================== +ADDING FRAGMENTS +==================================================== +It is possible to add new fragments, on top of the standard VM fragments. Here is how: + +1. Add your new fragment file to the 'Fragments' folder. Note this needs to contain "name", "publisher", "version", "$schema", and "content". Use existing fragments as an example. +2. Modify fragment.js and add the following lines + At the top + var yourFragment = require('./Fragments/YourFragment').fragment + + Before the last line + fragments[yourFragment.publisher + "_" + yourFragment.name] = JSON.stringify(yourFragment.content); + +At this point, your new fragment will start appearing in your generateTemplate function. The key of the dictionary will be "{Publisher}_{Name}" \ No newline at end of file diff --git a/src/arm/TemplateGenerator/composeTemplate.cmd b/src/arm/TemplateGenerator/composeTemplate.cmd new file mode 100644 index 0000000..b696d81 --- /dev/null +++ b/src/arm/TemplateGenerator/composeTemplate.cmd @@ -0,0 +1,42 @@ +@echo off + +set ROOT=%~dp0 + +echo Cleaning up old files +del extensioncore.js +del extensioncore.d.ts +del generator.js +del data.js +copy template.json template.old.json + +echo Compiling ExtensionCore +%ROOT%\typescript\tsc.exe -d --out extensioncore.js -t ES5 libraries\IFragment.ts libraries\Fragment.ts libraries\DeploymentTemplate.ts libraries\FragmentDefinition.ts libraries\TemplateFactory.ts libraries\String.ts libraries\Array.ts libraries\IPv4Address.ts libraries\IPv4Subnet.ts libraries\Error.ts +if not exist "%ROOT%\extensioncore.d.ts" goto die +echo module.exports.ExtensionCore = ExtensionCore >> extensioncore.js + + +echo Compiling Generator.ts +%ROOT%\typescript\tsc.exe -t ES5 generator.ts +if not exist "%ROOT%\generator.js" goto die +copy generator.js temp.js +echo var ExtensionCore = require('./extensioncore').ExtensionCore > generator.js +type temp.js >> generator.js +del temp.js +echo module.exports.generateTemplate = generateTemplate >> generator.js + +echo Compiling Data.ts +%ROOT%\typescript\tsc.exe -t ES5 data.ts +if not exist "%ROOT%\data.js" goto die +echo module.exports.data = data >> data.js + +echo Generating Template +del template.json +%ROOT%\nodejs\node.exe main.js generator.js data.js >> template.json + +echo Template compiled and saved to template.json +goto end + +:die +echo Composition has failed + +:end \ No newline at end of file diff --git a/src/arm/TemplateGenerator/data.ts b/src/arm/TemplateGenerator/data.ts new file mode 100644 index 0000000..d96b4c9 --- /dev/null +++ b/src/arm/TemplateGenerator/data.ts @@ -0,0 +1,3 @@ +var data = { + name: "Foo" +}; \ No newline at end of file diff --git a/src/arm/TemplateGenerator/definitions/jquery.d.ts b/src/arm/TemplateGenerator/definitions/jquery.d.ts new file mode 100644 index 0000000..0fff579 --- /dev/null +++ b/src/arm/TemplateGenerator/definitions/jquery.d.ts @@ -0,0 +1,1703 @@ +/* ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ + +// Typing for the jQuery library + +/* + Interface for the AJAX setting that will configure the AJAX request +*/ +interface JQueryAjaxSettings { + accepts?: any; + async?: boolean; + beforeSend? (jqXHR: JQueryXHR, settings: JQueryAjaxSettings): boolean; + cache?: boolean; + complete? (jqXHR: JQueryXHR, textStatus: string): any; + contents?: { [key: string]: any; }; + // JQuery in the code compares contentType with a boolean value false + // to check, whether to add default "Content-Type" or not. + // Correct use: + // contentType: "text/plain" + // contentType: false + contentType?: any; + context?: any; + converters?: { [key: string]: any; }; + crossDomain?: boolean; + data?: any; + dataFilter? (data: any, ty: any): any; + dataType?: string; + error? (jqXHR: JQueryXHR, textStatus: string, errorThrow: string): any; + global?: boolean; + headers?: { [key: string]: any; }; + ifModified?: boolean; + isLocal?: boolean; + jsonp?: string; + jsonpCallback?: any; + mimeType?: string; + password?: string; + processData?: boolean; + scriptCharset?: string; + statusCode?: { [key: string]: any; }; + success? (data: any, textStatus: string, jqXHR: JQueryXHR): void; + timeout?: number; + traditional?: boolean; + type?: string; + url?: string; + username?: string; + xhr?: any; + xhrFields?: { [key: string]: any; }; +} + +interface JQueryPromiseXHRDoneCallback { + (data: T, textStatus: string, jqXHR: JQueryXHR): void; +} + +interface JQueryPromiseXHRFailCallback { + (jqXHR: JQueryXHR, textStatus: string, errorThrown: any): void; +} + +/* + Interface for the jqXHR object +*/ +interface JQueryXHR extends XMLHttpRequest { + always(...alwaysCallbacks: Array<{ (): void; }>): JQueryXHR; + done(...doneCallbacks: Array>): JQueryXHR; + fail(...failCallbacks: Array>): JQueryXHR; + progress(...progressCallbacks: Array<{ (): void; }>): JQueryXHR; + state(): string; + promise(target?: any): JQueryXHR; + then( + doneCallbacks: JQueryPromiseXHRDoneCallback, + failCallbacks?: JQueryPromiseXHRFailCallback, + progressCallbacks?: { (): void; }): JQueryPromise; + + then( + doneCallbacks: { (data: T, textStatus: string, jqXHR: JQueryXHR): UValue }, + failCallbacks?: JQueryPromiseXHRFailCallback, + progressCallbacks?: { (): void; }): JQueryPromiseV; + + then( + doneCallbacks: { (data: T, textStatus: string, jqXHR: JQueryXHR): UValue }, + failCallbacks?: { (data: T, textStatus: string, jqXHR: JQueryXHR): UReject }, + progressCallbacks?: { (): void; }): JQueryPromiseVR; + + then( + doneCallbacks: JQueryPromiseXHRDoneCallback, + failCallbacks?: { (data: T, textStatus: string, jqXHR: JQueryXHR): UReject }, + progressCallbacks?: { (): void; }): JQueryPromiseR; + + overrideMimeType(mimeType: string): void; + abort(statusText?: string): void; +} + +/* + Interface for the JQuery callback +*/ +interface JQueryCallback { + add(...callbacks: Array<{ (): void }>): JQueryCallback; + add(callbacks: Array<{ (): void }>): JQueryCallback; + disable(): JQueryCallback; + disabled(): boolean; + empty(): JQueryCallback; + fire(): JQueryCallback; + fired(): boolean; + fireWith(context: any): JQueryCallback; + has(callback: { (): void }): boolean; + lock(): JQueryCallback; + locked(): boolean; + remove(...callbacks: Array<{ (): void }>): JQueryCallback; + remove(callbacks: Array<{ (): void }>): JQueryCallback; +} + +interface JQueryCallback1 { + add(...callbacks: Array<{ (arg: T): void }>): JQueryCallback1; + add(callbacks: Array<{ (arg: T): void }>): JQueryCallback1; + disable(): JQueryCallback1; + disabled(): boolean; + empty(): JQueryCallback1; + fire(arg: T): JQueryCallback1; + fired(): boolean; + fireWith(context: any, args: any[]): JQueryCallback1; + has(callback: { (arg: T): void }): boolean; + lock(): JQueryCallback1; + locked(): boolean; + remove(...callbacks: Array<{ (arg: T): void }>): JQueryCallback1; + remove(callbacks: Array<{ (arg: T): void }>): JQueryCallback1; +} + +interface JQueryCallback2 { + add(...callbacks: Array<{ (arg1: T1, arg2: T2): void }>): JQueryCallback2; + add(callbacks: Array<{ (arg1: T1, arg2: T2): void }>): JQueryCallback2; + disable(): JQueryCallback2; + disabled(): boolean; + empty(): JQueryCallback2; + fire(arg1: T1, arg2: T2): JQueryCallback2; + fired(): boolean; + fireWith(context: any, args: any[]): JQueryCallback2; + has(callback: { (arg1: T1, arg2: T2): void }): boolean; + lock(): JQueryCallback2; + locked(): boolean; + remove(...callbacks: Array<{ (arg1: T1, arg2: T2): void }>): JQueryCallback2; + remove(callbacks: Array<{ (arg1: T1, arg2: T2): void }>): JQueryCallback2; +} + +interface JQueryCallback3 { + add(...callbacks: Array<{ (arg1: T1, arg2: T2, arg3: T3): void }>): JQueryCallback3; + add(callbacks: Array<{ (arg1: T1, arg2: T2, arg3: T3): void }>): JQueryCallback3; + disable(): JQueryCallback3; + disabled(): boolean; + empty(): JQueryCallback3; + fire(arg1: T1, arg2: T2, arg3: T3): JQueryCallback3; + fired(): boolean; + fireWith(context: any, args: any[]): JQueryCallback3; + has(callback: { (arg1: T1, arg2: T2, arg3: T3): void }): boolean; + lock(): JQueryCallback3; + locked(): boolean; + remove(...callbacks: Array<{ (arg1: T1, arg2: T2, arg3: T3): void }>): JQueryCallback3; + remove(callbacks: Array<{ (arg1: T1, arg2: T2, arg3: T3): void }>): JQueryCallback3; +} + +/* + Interface for the JQuery promise, part of callbacks +*/ +interface JQueryPromiseAny { + always(...alwaysCallbacks: { (...args: any[]): void; }[]): JQueryPromiseAny; + done(...doneCallbacks: { (...args: any[]): void; }[]): JQueryPromiseAny; + fail(...failCallbacks: { (...args: any[]): void; }[]): JQueryPromiseAny; + progress(...progressCallbacks: { (...args: any[]): void; }[]): JQueryPromiseAny; + state(): string; + promise(target?: any): JQueryPromiseAny; + then( + doneCallbacks: { (...args: any[]): any; }, + failCallbacks: { (...args: any[]): any; }, + progressCallbacks?: { (...args: any[]): any; }): JQueryPromiseAny; +} + +interface JQueryPromise { + always(...alwaysCallbacks: Array<{ (): void; }>): JQueryPromise; + done(...doneCallbacks: Array<{ (): void; }>): JQueryPromise; + fail(...failCallbacks: Array<{ (): void; }>): JQueryPromise; + progress(...progressCallbacks: Array<{ (): void; }>): JQueryPromise; + state(): string; + promise(target?: any): JQueryPromise; + then( + doneCallbacks: { (): UValue; }, + failCallbacks: { (): UReject; }, + progressCallbacks?: { (): void; }): JQueryPromiseVR; + + // U Pipe + then( + doneCallbacks: { (): JQueryPromiseV; }, + failCallbacks?: { (): void; }, + progressCallbacks?: { (): void; }): JQueryPromiseV; + + then( + doneCallbacks: { (): JQueryDeferred; }, + failCallbacks?: { (): void; }, + progressCallbacks?: { (): void; }): JQueryPromise; + + then( + doneCallbacks: { (): JQueryPromise; }, + failCallbacks?: { (): void; }, + progressCallbacks?: { (): void; }): JQueryPromise; + + // U Value + then( + doneCallbacks: { (): UValue; }, + failCallbacks?: { (): void; }, + progressCallbacks?: { (): void; }): JQueryPromiseV; + + then( + doneCallbacks: { (): void; }, + failCallbacks: { (): UReject; }, + progressCallbacks?: { (): void; }): JQueryPromiseR; + + then( + doneCallbacks: { (): void; }, + failCallbacks?: { (): void; }, + progressCallbacks?: { (): void; }): JQueryPromise; +} + +interface JQueryPromiseV { + always(...alwaysCallbacks: Array<{ (): void; }>): JQueryPromiseV; + done(...doneCallbacks: Array<{ (arg: TValue): void; }>): JQueryPromiseV; + fail(...failCallbacks: Array<{ (): void; }>): JQueryPromiseV; + progress(...progressCallbacks: Array<{ (): void; }>): JQueryPromiseV; + state(): string; + promise(target?: any): JQueryPromiseV; + then( + doneCallbacks: { (arg: TValue): UValue; }, + failCallbacks: { (): UReject; }, + progressCallbacks?: { (): void; }): JQueryPromiseVR; + + // U Pipe + then( + doneCallbacks: { (arg: TValue): JQueryDeferredV; }, + failCallbacks?: { (): void; }, + progressCallbacks?: { (): void; }): JQueryPromiseV; + + then( + doneCallbacks: { (arg: TValue): JQueryPromiseV; }, + failCallbacks?: { (): void; }, + progressCallbacks?: { (): void; }): JQueryPromiseV; + + // U Value + then( + doneCallbacks: { (arg: TValue): UValue; }, + failCallbacks?: { (): void; }, + progressCallbacks?: { (): void; }): JQueryPromiseV; + + then( + doneCallbacks: { (arg: TValue): void; }, + failCallbacks: { (): UReject; }, + progressCallbacks?: { (): void; }): JQueryPromiseR; + + then( + doneCallbacks: { (arg: TValue): void; }, + failCallbacks?: { (): void; }, + progressCallbacks?: { (): void; }): JQueryPromise; +} + +interface JQueryPromiseN { + always(...alwaysCallbacks: Array<{ (): void; }>): JQueryPromiseN; + done(...doneCallbacks: Array<{ (): void; }>): JQueryPromiseN; + fail(...failCallbacks: Array<{ (): void; }>): JQueryPromiseN; + progress(...progressCallbacks: Array<{ (arg: TNotify): void; }>): JQueryPromiseN; + state(): string; + promise(target?: any): JQueryPromiseN; + then( + doneCallbacks: { (): UValue; }, + failCallbacks: { (): UReject; }, + progressCallbacks?: { (arg: TNotify): void; }): JQueryPromiseVR; + + // U Pipe + then( + doneCallbacks: { (): JQueryDeferredN; }, + failCallbacks?: { (): void; }, + progressCallbacks?: { (): void; }): JQueryPromiseN; + + then( + doneCallbacks: { (): JQueryPromiseN; }, + failCallbacks?: { (): void; }, + progressCallbacks?: { (): void; }): JQueryPromiseN; + + // U Value + then( + doneCallbacks: { (): UValue; }, + failCallbacks?: { (): void; }, + progressCallbacks?: { (arg: TNotify): void; }): JQueryPromiseV; + + then( + doneCallbacks: { (): void; }, + failCallbacks: { (): UReject; }, + progressCallbacks?: { (arg: TNotify): void; }): JQueryPromiseR; + + then( + doneCallbacks: { (): void; }, + failCallbacks?: { (): void; }, + progressCallbacks?: { (arg: TNotify): void; }): JQueryPromise; +} + +interface JQueryPromiseNNNN { + always(...alwaysCallbacks: Array<{ (): void; }>): JQueryPromiseNNNN; + done(...doneCallbacks: Array<{ (): void; }>): JQueryPromiseNNNN; + fail(...failCallbacks: Array<{ (): void; }>): JQueryPromiseNNNN; + progress(...progressCallbacks: Array<{ (arg1: TNotify1, arg2: TNotify2, arg3: TNotify3, arg4: TNotify4): void; }>): JQueryPromiseNNNN; + state(): string; + promise(target?: any): JQueryPromiseNNNN; + then( + doneCallbacks: { (): UValue; }, + failCallbacks: { (): UReject; }, + progressCallbacks?: { (arg1: TNotify1, arg2: TNotify2, arg3: TNotify3, arg4: TNotify4): void; }): JQueryPromiseVR; + + then( + doneCallbacks: { (): UValue; }, + failCallbacks?: { (): void; }, + progressCallbacks?: { (arg1: TNotify1, arg2: TNotify2, arg3: TNotify3, arg4: TNotify4): void; }): JQueryPromiseV; + + then( + doneCallbacks: { (): void; }, + failCallbacks: { (): UReject; }, + progressCallbacks?: { (arg1: TNotify1, arg2: TNotify2, arg3: TNotify3, arg4: TNotify4): void; }): JQueryPromiseR; + + then( + doneCallbacks: { (): void; }, + failCallbacks?: { (): void; }, + progressCallbacks?: { (arg1: TNotify1, arg2: TNotify2, arg3: TNotify3, arg4: TNotify4): void; }): JQueryPromise; +} + +interface JQueryPromiseVV { + always(...alwaysCallbacks: Array<{ (): void; }>): JQueryPromiseVV; + done(...doneCallbacks: Array<{ (arg1: TValue1, arg2: TValue2): void; }>): JQueryPromiseVV; + fail(...failCallbacks: Array<{ (): void; }>): JQueryPromiseVV; + progress(...progressCallbacks: Array<{ (): void; }>): JQueryPromiseVV; + state(): string; + promise(target?: any): JQueryPromiseVV; + then( + doneCallbacks: { (arg1: TValue1, arg2: TValue2): UValue; }, + failCallbacks: { (): UReject; }, + progressCallbacks?: { (): void; }): JQueryPromiseVR; + + // U Pipe + then( + doneCallbacks: { (arg1: TValue1, arg2: TValue2): JQueryDeferredVV; }, + failCallbacks?: { (): void; }, + progressCallbacks?: { (): void; }): JQueryPromiseVV; + + then( + doneCallbacks: { (arg1: TValue1, arg2: TValue2): JQueryPromiseVV; }, + failCallbacks?: { (): void; }, + progressCallbacks?: { (): void; }): JQueryPromiseVV; + + // U Value + then( + doneCallbacks: { (arg1: TValue1, arg2: TValue2): UValue; }, + failCallbacks?: { (): void; }, + progressCallbacks?: { (): void; }): JQueryPromiseV; + + then( + doneCallbacks: { (arg1: TValue1, arg2: TValue2): void; }, + failCallbacks: { (): UReject; }, + progressCallbacks?: { (): void; }): JQueryPromiseR; + + then( + doneCallbacks: { (arg1: TValue1, arg2: TValue2): void; }, + failCallbacks?: { (): void; }, + progressCallbacks?: { (): void; }): JQueryPromise; +} + +interface JQueryPromiseVVV { + always(...alwaysCallbacks: Array<{ (): void; }>): JQueryPromiseVVV; + done(...doneCallbacks: Array<{ (arg1: TValue1, arg2: TValue2, arg3: TValue3): void; }>): JQueryPromiseVVV; + fail(...failCallbacks: Array<{ (): void; }>): JQueryPromiseVVV; + progress(...progressCallbacks: Array<{ (): void; }>): JQueryPromiseVVV; + state(): string; + promise(target?: any): JQueryPromiseVVV; + then( + doneCallbacks: { (arg1: TValue1, arg2: TValue2, arg3: TValue3): UValue; }, + failCallbacks: { (): UReject; }, + progressCallbacks?: { (): void; }): JQueryPromiseVR; + + // U Pipe + then( + doneCallbacks: { (arg1: TValue1, arg2: TValue2, arg3: TValue3): JQueryDeferredVVV; }, + failCallbacks?: { (): void; }, + progressCallbacks?: { (): void; }): JQueryPromiseVVV; + + then( + doneCallbacks: { (arg1: TValue1, arg2: TValue2, arg3: TValue3): JQueryPromiseVVV; }, + failCallbacks?: { (): void; }, + progressCallbacks?: { (): void; }): JQueryPromiseVVV; + + // U Value + then( + doneCallbacks: { (arg1: TValue1, arg2: TValue2, arg3: TValue3): UValue; }, + failCallbacks?: { (): void; }, + progressCallbacks?: { (): void; }): JQueryPromiseV; + + then( + doneCallbacks: { (arg1: TValue1, arg2: TValue2, arg3: TValue3): void; }, + failCallbacks: { (): UReject; }, + progressCallbacks?: { (): void; }): JQueryPromiseR; + + then( + doneCallbacks: { (arg1: TValue1, arg2: TValue2, arg3: TValue3): void; }, + failCallbacks?: { (): void; }, + progressCallbacks?: { (): void; }): JQueryPromise; +} + +interface JQueryPromiseVR { + always(...alwaysCallbacks: Array<{ (): void; }>): JQueryPromiseVR; + done(...doneCallbacks: Array<{ (arg: TValue): void; }>): JQueryPromiseVR; + fail(...failCallbacks: Array<{ (arg: TReject): void; }>): JQueryPromiseVR; + progress(...progressCallbacks: Array<{ (): void; }>): JQueryPromiseVR; + state(): string; + promise(target?: any): JQueryPromiseVR; + then( + doneCallbacks: { (arg: TValue): JQueryPromiseVR; }, + failCallbacks?: { (arg: TReject): UReject; }, + progressCallbacks?: { (): void; }): JQueryPromiseVR; + + + then( + doneCallbacks: { (arg: TValue): UValue; }, + failCallbacks?: { (arg: TReject): UReject; }, + progressCallbacks?: { (): void; }): JQueryPromiseVR; + + // U Pipe + then( + doneCallbacks: { (arg: TValue): JQueryDeferredVR; }, + failCallbacks?: { (arg: TReject): void; }, + progressCallbacks?: { (): void; }): JQueryPromiseVR; + + then( + doneCallbacks: { (arg: TValue): JQueryPromiseVR; }, + failCallbacks?: { (arg: TReject): void; }, + progressCallbacks?: { (): void; }): JQueryPromiseVR; + + // U Value + then( + doneCallbacks: { (arg: TValue): UValue; }, + failCallbacks?: { (arg: TReject): void; }, + progressCallbacks?: { (): void; }): JQueryPromiseV; + + then( + doneCallbacks: { (arg: TValue): void; }, + failCallbacks?: { (arg: TReject): UReject; }, + progressCallbacks?: { (): void; }): JQueryPromiseR; + + then( + doneCallbacks: { (arg: TValue): void; }, + failCallbacks?: { (arg: TReject): void; }, + progressCallbacks?: { (): void; }): JQueryPromise; +} + +interface JQueryPromiseVRN { + always(...alwaysCallbacks: Array<{ (): void; }>): JQueryPromiseVRN; + done(...doneCallbacks: Array<{ (arg: TValue): void; }>): JQueryPromiseVRN; + fail(...failCallbacks: Array<{ (arg: TReject): void; }>): JQueryPromiseVRN; + progress(...progressCallbacks: Array<{ (arg: TProgress): void; }>): JQueryPromiseVRN; + state(): string; + promise(target?: any): JQueryPromiseVRN; + then( + doneCallbacks: { (arg: TValue): UValue; }, + failCallbacks: { (arg: TReject): UReject; }, + progressCallbacks?: { (arg: TProgress): void; }): JQueryPromiseVR; + + // U Pipe + then( + doneCallbacks: { (arg: TValue): JQueryDeferredVRN; }, + failCallbacks?: { (arg: TReject): void; }, + progressCallbacks?: { (): void; }): JQueryPromiseVRN; + + then( + doneCallbacks: { (arg: TValue): JQueryPromiseVRN; }, + failCallbacks?: { (arg: TReject): void; }, + progressCallbacks?: { (): void; }): JQueryPromiseVRN; + + // U Value + then( + doneCallbacks: { (arg: TValue): UValue; }, + failCallbacks?: { (arg: TReject): void; }, + progressCallbacks?: { (arg: TProgress): void; }): JQueryPromiseV; + + then( + doneCallbacks: { (arg: TValue): void; }, + failCallbacks: { (arg: TReject): UReject; }, + progressCallbacks?: { (arg: TProgress): void; }): JQueryPromiseR; + + then( + doneCallbacks: { (arg: TValue): void; }, + failCallbacks?: { (arg: TReject): void; }, + progressCallbacks?: { (arg: TProgress): void; }): JQueryPromise; +} + +interface JQueryPromiseR { + always(...alwaysCallbacks: Array<{ (): void; }>): JQueryPromiseR; + done(...doneCallbacks: Array<{ (): void; }>): JQueryPromiseR; + fail(...failCallbacks: Array<{ (arg: TReject): void; }>): JQueryPromiseR; + progress(...progressCallbacks: Array<{ (): void; }>): JQueryPromiseR; + state(): string; + promise(target?: any): JQueryPromiseR; + then( + doneCallbacks: { (): UValue; }, + failCallbacks: { (arg: TReject): UReject; }, + progressCallbacks?: { (): void; }): JQueryPromiseVR; + + // U Pipe + then( + doneCallbacks: { (): JQueryDeferredR; }, + failCallbacks?: { (arg: TReject): void; }, + progressCallbacks?: { (): void; }): JQueryPromiseR; + + then( + doneCallbacks: { (): JQueryPromiseR; }, + failCallbacks?: { (arg: TReject): void; }, + progressCallbacks?: { (): void; }): JQueryPromiseR; + + then( + doneCallbacks: { (): void; }, + failCallbacks?: { (arg: TReject): UReject; }, + progressCallbacks?: { (): void; }): JQueryPromiseR; + + then( + doneCallbacks: { (): void; }, + failCallbacks: { (arg: TReject): void; }, + progressCallbacks?: { (): void; }): JQueryPromise; +} + +/* + Interface for the JQuery deferred, part of callbacks +*/ +interface JQueryDeferredAny { + always(...alwaysCallbacks: { (...args: any[]): void; }[]): JQueryDeferredAny; + done(...doneCallbacks: { (...args: any[]): void; }[]): JQueryDeferredAny; + fail(...failCallbacks: { (...args: any[]): void; }[]): JQueryDeferredAny; + progress(...progressCallbacks: { (): void; }[]): JQueryDeferredAny; + notify(...args: any[]): JQueryDeferredAny; + notifyWith(context: any, args: any[]): JQueryDeferredAny; + promise(target?: any): JQueryPromiseAny; + reject(...args: any[]): JQueryDeferredAny; + rejectWith(context: any, args: any[]): JQueryDeferredAny; + resolve(...args: any[]): JQueryDeferredAny; + resolveWith(context: any, args: any[]): JQueryDeferredAny; + state(): string; + then( + doneCallbacks: { (...args: any[]): any; }, + failCallbacks: { (...args: any[]): any; }, + progressCallbacks?: { (...args: any[]): any; }): JQueryDeferredAny; +} + +interface JQueryDeferred { + notify(): JQueryDeferred; + notifyWith(context: any): JQueryDeferred; + + always(...alwaysCallbacks: Array<{ (): void; }>): JQueryDeferred; + done(...doneCallbacks: Array<{ (): void; }>): JQueryDeferred; + fail(...failCallbacks: Array<{ (): void; }>): JQueryDeferred; + progress(...progressCallbacks: Array<{ (): void; }>): JQueryDeferred; + promise(target?: any): JQueryPromise; + reject(...args: Array): JQueryDeferred; + rejectWith(context: any): JQueryDeferred; + resolve(): JQueryDeferred; + resolveWith(context: any): JQueryDeferred; + state(): string; + then( + doneCallbacks: { (): UValue; }, + failCallbacks: { (): UReject; }, + progressCallbacks?: { (): void; }): JQueryPromiseVR; + + // U Pipe + then( + doneCallbacks: { (): JQueryDeferred; }, + failCallbacks?: { (): void; }, + progressCallbacks?: { (): void; }): JQueryPromise; + + then( + doneCallbacks: { (): JQueryPromise; }, + failCallbacks?: { (): void; }, + progressCallbacks?: { (): void; }): JQueryPromise; + + // U Value + then( + doneCallbacks: { (): UValue; }, + failCallbacks?: { (): void; }, + progressCallbacks?: { (): void; }): JQueryPromiseV; + + then( + doneCallbacks: { (): void; }, + failCallbacks: { (): UReject; }, + progressCallbacks?: { (): void; }): JQueryPromiseR; + + then( + doneCallbacks: { (): void; }, + failCallbacks?: { (): void; }, + progressCallbacks?: { (): void; }): JQueryPromise; +} + +interface JQueryDeferredV { + notify(): JQueryDeferredV; + notifyWith(context: any): JQueryDeferredV; + + always(...alwaysCallbacks: Array<{ (): void; }>): JQueryDeferredV; + done(...doneCallbacks: Array<{ (arg: TValue): void; }>): JQueryDeferredV; + fail(...failCallbacks: Array<{ (): void; }>): JQueryDeferredV; + progress(...progressCallbacks: Array<{ (): void; }>): JQueryDeferredV; + promise(target?: any): JQueryPromiseV; + reject(...args: Array): JQueryDeferredV; + rejectWith(context: any): JQueryDeferredV; + resolve(arg: TValue): JQueryDeferredV; + resolveWith(context: any, args: TValue[]): JQueryDeferredV; + state(): string; + then( + doneCallbacks: { (arg: TValue): UValue; }, + failCallbacks: { (): UReject; }, + progressCallbacks?: { (): void; }): JQueryPromiseVR; + + // U Pipe + then( + doneCallbacks: { (arg: TValue): JQueryDeferredV; }, + failCallbacks?: { (): void; }, + progressCallbacks?: { (): void; }): JQueryPromiseV; + + then( + doneCallbacks: { (arg: TValue): JQueryPromiseV; }, + failCallbacks?: { (): void; }, + progressCallbacks?: { (): void; }): JQueryPromiseV; + + // U Value + then( + doneCallbacks: { (arg: TValue): UValue; }, + failCallbacks?: { (): void; }, + progressCallbacks?: { (): void; }): JQueryPromiseV; + + then( + doneCallbacks: { (arg: TValue): void; }, + failCallbacks: { (): UReject; }, + progressCallbacks?: { (): void; }): JQueryPromiseR; + + then( + doneCallbacks: { (arg: TValue): void; }, + failCallbacks?: { (): void; }, + progressCallbacks?: { (): void; }): JQueryPromise; +} + +interface JQueryDeferredN { + notify(arg: TNotify): JQueryDeferredN; + notifyWith(context: any, arg: TNotify): JQueryDeferredN; + + always(...alwaysCallbacks: Array<{ (): void; }>): JQueryDeferredN; + done(...doneCallbacks: Array<{ (): void; }>): JQueryDeferredN; + fail(...failCallbacks: Array<{ (): void; }>): JQueryDeferredN; + progress(...progressCallbacks: Array<{ (arg: TNotify): void; }>): JQueryDeferredN; + promise(target?: any): JQueryPromiseN; + reject(...args: Array): JQueryDeferredN; + rejectWith(context: any): JQueryDeferredN; + resolve(): JQueryDeferredN; + resolveWith(context: any): JQueryDeferredN; + state(): string; + then( + doneCallbacks: { (): UValue; }, + failCallbacks: { (): UReject; }, + progressCallbacks?: { (arg: TNotify): void; }): JQueryPromiseVR; + + // U Pipe + then( + doneCallbacks: { (): JQueryDeferredN; }, + failCallbacks?: { (): void; }, + progressCallbacks?: { (): void; }): JQueryPromiseN; + + then( + doneCallbacks: { (): JQueryPromiseN; }, + failCallbacks?: { (): void; }, + progressCallbacks?: { (): void; }): JQueryPromiseN; + + // U Value + then( + doneCallbacks: { (): UValue; }, + failCallbacks?: { (): void; }, + progressCallbacks?: { (arg: TNotify): void; }): JQueryPromiseV; + + then( + doneCallbacks: { (): void; }, + failCallbacks: { (): UReject; }, + progressCallbacks?: { (arg: TNotify): void; }): JQueryPromiseR; + + then( + doneCallbacks: { (): void; }, + failCallbacks?: { (): void; }, + progressCallbacks?: { (arg: TNotify): void; }): JQueryPromise; +} + +interface JQueryDeferredNNNN { + notify(arg1: TNotify1, arg2: TNotify2, arg3: TNotify3, arg4: TNotify4): JQueryDeferredNNNN; + notifyWith(context: any, arg1: TNotify1, arg2: TNotify2, arg3: TNotify3, arg4: TNotify4): JQueryDeferredNNNN; + + always(...alwaysCallbacks: Array<{ (): void; }>): JQueryDeferredNNNN; + done(...doneCallbacks: Array<{ (): void; }>): JQueryDeferredNNNN; + fail(...failCallbacks: Array<{ (): void; }>): JQueryDeferredNNNN; + progress(...progressCallbacks: Array<{ (arg1: TNotify1, arg2: TNotify2, arg3: TNotify3, arg4: TNotify4): void; }>): JQueryDeferredNNNN; + promise(target?: any): JQueryPromiseNNNN; + reject(...args: Array): JQueryDeferredNNNN; + rejectWith(context: any): JQueryDeferredNNNN; + resolve(): JQueryDeferredNNNN; + resolveWith(context: any): JQueryDeferredNNNN; + state(): string; + then( + doneCallbacks: { (): UValue; }, + failCallbacks: { (): UReject; }, + progressCallbacks?: { (arg1: TNotify1, arg2: TNotify2, arg3: TNotify3, arg4: TNotify4): void; }): JQueryPromiseVR; + + then( + doneCallbacks: { (): UValue; }, + failCallbacks?: { (): void; }, + progressCallbacks?: { (arg1: TNotify1, arg2: TNotify2, arg3: TNotify3, arg4: TNotify4): void; }): JQueryPromiseV; + + then( + doneCallbacks: { (): void; }, + failCallbacks: { (): UReject; }, + progressCallbacks?: { (arg1: TNotify1, arg2: TNotify2, arg3: TNotify3, arg4: TNotify4): void; }): JQueryPromiseR; + + then( + doneCallbacks: { (): void; }, + failCallbacks?: { (): void; }, + progressCallbacks?: { (arg1: TNotify1, arg2: TNotify2, arg3: TNotify3, arg4: TNotify4): void; }): JQueryPromise; +} + +interface JQueryDeferredVV { + notify(): JQueryDeferredVV; + notifyWith(context: any): JQueryDeferredVV; + + always(...alwaysCallbacks: Array<{ (): void; }>): JQueryDeferredVV; + done(...doneCallbacks: Array<{ (arg1: TValue1, arg2: TValue2): void; }>): JQueryDeferredVV; + fail(...failCallbacks: Array<{ (): void; }>): JQueryDeferredVV; + progress(...progressCallbacks: Array<{ (): void; }>): JQueryDeferredVV; + promise(target?: any): JQueryPromiseVV; + reject(...args: Array): JQueryDeferredVV; + rejectWith(context: any): JQueryDeferredVV; + resolve(arg1: TValue1, arg2: TValue2): JQueryDeferredVV; + resolveWith(context: any, args: any[]): JQueryDeferredVV; + state(): string; + then( + doneCallbacks: { (arg1: TValue1, arg2: TValue2): UValue; }, + failCallbacks: { (): UReject; }, + progressCallbacks?: { (): void; }): JQueryPromiseVR; + + // U Pipe + then( + doneCallbacks: { (arg1: TValue1, arg2: TValue2): JQueryDeferredVV; }, + failCallbacks?: { (): void; }, + progressCallbacks?: { (): void; }): JQueryPromiseVV; + + then( + doneCallbacks: { (arg1: TValue1, arg2: TValue2): JQueryPromiseVV; }, + failCallbacks?: { (): void; }, + progressCallbacks?: { (): void; }): JQueryPromiseVV; + + // U Value + then( + doneCallbacks: { (arg1: TValue1, arg2: TValue2): UValue; }, + failCallbacks?: { (): void; }, + progressCallbacks?: { (): void; }): JQueryPromiseV; + + then( + doneCallbacks: { (arg1: TValue1, arg2: TValue2): void; }, + failCallbacks: { (): UReject; }, + progressCallbacks?: { (): void; }): JQueryPromiseR; + + then( + doneCallbacks: { (arg1: TValue1, arg2: TValue2): void; }, + failCallbacks?: { (): void; }, + progressCallbacks?: { (): void; }): JQueryPromise; +} + +interface JQueryDeferredVVV { + notify(): JQueryDeferredVVV; + notifyWith(context: any): JQueryDeferredVVV; + + always(...alwaysCallbacks: Array<{ (): void; }>): JQueryDeferredVVV; + done(...doneCallbacks: Array<{ (arg1: TValue1, arg2: TValue2, arg3: TValue3): void; }>): JQueryDeferredVVV; + fail(...failCallbacks: Array<{ (): void; }>): JQueryDeferredVVV; + progress(...progressCallbacks: Array<{ (): void; }>): JQueryDeferredVVV; + promise(target?: any): JQueryPromiseVVV; + reject(...args: Array): JQueryDeferredVVV; + rejectWith(context: any): JQueryDeferredVVV; + resolve(arg1: TValue1, arg2: TValue2, arg3: TValue3): JQueryDeferredVVV; + resolveWith(context: any, args: any[]): JQueryDeferredVVV; + state(): string; + then( + doneCallbacks: { (arg1: TValue1, arg2: TValue2, arg3: TValue3): UValue; }, + failCallbacks?: { (): UReject; }, + progressCallbacks?: { (): void; }): JQueryPromiseVR; + + // U Pipe + then( + doneCallbacks: { (arg1: TValue1, arg2: TValue2, arg3: TValue3): JQueryDeferredVVV; }, + failCallbacks?: { (): void; }, + progressCallbacks?: { (): void; }): JQueryPromiseVVV; + + then( + doneCallbacks: { (arg1: TValue1, arg2: TValue2, arg3: TValue3): JQueryPromiseVVV; }, + failCallbacks?: { (): void; }, + progressCallbacks?: { (): void; }): JQueryPromiseVVV; + + // U Value + then( + doneCallbacks: { (arg1: TValue1, arg2: TValue2, arg3: TValue3): UValue; }, + failCallbacks?: { (): void; }, + progressCallbacks?: { (): void; }): JQueryPromiseV; + + then( + doneCallbacks: { (arg1: TValue1, arg2: TValue2, arg3: TValue3): void; }, + failCallbacks?: { (): UReject; }, + progressCallbacks?: { (): void; }): JQueryPromiseR; + + then( + doneCallbacks: { (arg1: TValue1, arg2: TValue2, arg3: TValue3): void; }, + failCallbacks?: { (): void; }, + progressCallbacks?: { (): void; }): JQueryPromise; +} + +interface JQueryDeferredVR { + notify(): JQueryDeferredVR; + notifyWith(context: any): JQueryDeferredVR; + + always(...alwaysCallbacks: Array<{ (): void; }>): JQueryDeferredVR; + done(...doneCallbacks: Array<{ (arg: TValue): void; }>): JQueryDeferredVR; + fail(...failCallbacks: Array<{ (arg: TReject): void; }>): JQueryDeferredVR; + progress(...progressCallbacks: Array<{ (): void; }>): JQueryDeferredVR; + promise(target?: any): JQueryPromiseVR; + reject(arg: TReject): JQueryDeferredVR; + rejectWith(context: any, arg: TReject[]): JQueryDeferredVR; + resolve(arg: TValue): JQueryDeferredVR; + resolveWith(context: any, args: TValue[]): JQueryDeferredVR; + state(): string; + then( + doneCallbacks: { (arg: TValue): UValue; }, + failCallbacks: { (arg: TReject): UReject; }, + progressCallbacks?: { (): void; }): JQueryPromiseVR; + + // U Pipe + then( + doneCallbacks: { (arg: TValue): JQueryDeferredVR; }, + failCallbacks?: { (arg: TReject): void; }, + progressCallbacks?: { (): void; }): JQueryPromiseVR; + + then( + doneCallbacks: { (arg: TValue): JQueryPromiseVR; }, + failCallbacks?: { (arg: TReject): void; }, + progressCallbacks?: { (): void; }): JQueryPromiseVR; + + // U Value + then( + doneCallbacks: { (arg: TValue): UValue; }, + failCallbacks?: { (arg: TReject): void; }, + progressCallbacks?: { (): void; }): JQueryPromiseV; + + then( + doneCallbacks: { (arg: TValue): void; }, + failCallbacks: { (arg: TReject): UReject; }, + progressCallbacks?: { (): void; }): JQueryPromiseR; + + then( + doneCallbacks: { (arg: TValue): void; }, + failCallbacks?: { (arg: TReject): void; }, + progressCallbacks?: { (): void; }): JQueryPromise; +} + +interface JQueryDeferredVRN { + notify(arg: TNotify): JQueryDeferredVR; + notifyWith(context: any, arg: TNotify): JQueryDeferredVR; + + always(...alwaysCallbacks: Array<{ (): void; }>): JQueryDeferredVR; + done(...doneCallbacks: Array<{ (arg: TValue): void; }>): JQueryDeferredVR; + fail(...failCallbacks: Array<{ (arg: TReject): void; }>): JQueryDeferredVR; + progress(...progressCallbacks: Array<{ (arg: TNotify): void; }>): JQueryDeferredVR; + promise(target?: any): JQueryPromiseVRN; + reject(arg: TReject): JQueryDeferredVR; + rejectWith(context: any, args: TReject[]): JQueryDeferredVR; + resolve(arg: TValue): JQueryDeferredVR; + resolveWith(context: any, args: TValue[]): JQueryDeferredVR; + state(): string; + then( + doneCallbacks: { (arg: TValue): UValue; }, + failCallbacks: { (arg: TReject): UReject; }, + progressCallbacks?: { (arg: TNotify): void; }): JQueryPromiseVR; + + // U Pipe + then( + doneCallbacks: { (arg: TValue): JQueryDeferredVRN; }, + failCallbacks?: { (arg: TReject): void; }, + progressCallbacks?: { (): void; }): JQueryPromiseVRN; + + then( + doneCallbacks: { (arg: TValue): JQueryPromiseVRN; }, + failCallbacks?: { (arg: TReject): void; }, + progressCallbacks?: { (): void; }): JQueryPromiseVRN; + + // U Value + then( + doneCallbacks: { (arg: TValue): UValue; }, + failCallbacks?: { (arg: TReject): void; }, + progressCallbacks?: { (arg: TNotify): void; }): JQueryPromiseV; + + then( + doneCallbacks: { (arg: TValue): void; }, + failCallbacks: { (arg: TReject): UReject; }, + progressCallbacks?: { (arg: TNotify): void; }): JQueryPromiseR; + + then( + doneCallbacks: { (arg: TValue): void; }, + failCallbacks?: { (arg: TReject): void; }, + progressCallbacks?: { (arg: TNotify): void; }): JQueryPromise; +} + +interface JQueryDeferredR { + notify(): JQueryDeferredR; + notifyWith(context: any): JQueryDeferredR; + + always(...alwaysCallbacks: Array<{ (): void; }>): JQueryDeferredR; + done(...doneCallbacks: Array<{ (): void; }>): JQueryDeferredR; + fail(...failCallbacks: Array<{ (arg: TReject): void; }>): JQueryDeferredR; + progress(...progressCallbacks: Array<{ (): void; }>): JQueryDeferredR; + promise(target?: any): JQueryPromiseR; + reject(arg: TReject): JQueryDeferredR; + rejectWith(context: any, args: TReject[]): JQueryDeferredR; + resolve(): JQueryDeferredR; + resolveWith(context: any): JQueryDeferredR; + state(): string; + then( + doneCallbacks: { (): UValue; }, + failCallbacks: { (arg: TReject): UReject; }, + progressCallbacks?: { (): void; }): JQueryPromiseVR; + + // U Pipe + then( + doneCallbacks: { (): JQueryDeferredR; }, + failCallbacks?: { (arg: TReject): void; }, + progressCallbacks?: { (): void; }): JQueryPromiseR; + + then( + doneCallbacks: { (): JQueryPromiseR; }, + failCallbacks?: { (arg: TReject): void; }, + progressCallbacks?: { (): void; }): JQueryPromiseR; + + then( + doneCallbacks: { (): void; }, + failCallbacks: { (arg: TReject): UReject; }, + progressCallbacks?: { (): void; }): JQueryPromiseR; + + then( + doneCallbacks: { (): void; }, + failCallbacks?: { (arg: TReject): void; }, + progressCallbacks?: { (): void; }): JQueryPromise; +} + +/* + Interface of the JQuery extension of the W3C event object +*/ +interface BaseJQueryEventObject extends Event { + data: any; + delegateTarget: Element; + isDefaultPrevented(): boolean; + isImmediatePropagationStopped(): boolean; + isPropagationStopped(): boolean; + originalEvent: Event; + namespace: string; + preventDefault(): any; + relatedTarget: Element; + result: any; + stopImmediatePropagation(): void; + stopPropagation(): void; + pageX: number; + pageY: number; + which: number; + + // Other possible values + cancellable?: boolean; + // detail ?? + prevValue?: any; + view?: Window; +} + +interface JQueryInputEventObject extends BaseJQueryEventObject { + altKey: boolean; + ctrlKey: boolean; + metaKey: boolean; + shiftKey: boolean; +} + +interface JQueryMouseEventObject extends JQueryInputEventObject { + button: number; + clientX: number; + clientY: number; + offsetX: number; + offsetY: number; + pageX: number; + pageY: number; + screenX: number; + screenY: number; +} + +interface JQueryKeyEventObject extends JQueryInputEventObject { + char: any; + charCode: number; + key: any; + keyCode: number; +} + +interface JQueryEventObject extends BaseJQueryEventObject, JQueryInputEventObject, JQueryMouseEventObject, JQueryKeyEventObject { +} + +interface JQueryEventHandler { + (eventObject: JQueryEventObject, args?: any): any; +} + + +interface JQuerySupport { + ajax?: boolean; + boxModel?: boolean; + changeBubbles?: boolean; + checkClone?: boolean; + checkOn?: boolean; + cors?: boolean; + cssFloat?: boolean; + hrefNormalized?: boolean; + htmlSerialize?: boolean; + leadingWhitespace?: boolean; + noCloneChecked?: boolean; + noCloneEvent?: boolean; + opacity?: boolean; + optDisabled?: boolean; + optSelected?: boolean; + scriptEval? (): boolean; + style?: boolean; + submitBubbles?: boolean; + tbody?: boolean; +} + +// TODO jsgoupil fix signature +interface JQueryEventStatic { + fix(evt: any): any; +} + +interface JQueryParam { + (obj: any): string; + (obj: any, traditional: boolean): string; +} + +/** + * This is a private type. It exists for type checking. Do not explicitly declare an identifier with this type. + */ +interface _JQueryDeferred { + resolve: Function; + resolveWith: Function; + reject: Function; + rejectWith: Function; +} + +interface JQueryWhen { + (promise1: JQueryPromiseV, promise2: JQueryPromiseV): JQueryPromiseVV; + (promise1: JQueryPromiseV, promise2: JQueryPromiseV, promise3: JQueryPromiseV): JQueryPromiseVVV; + (...deferreds: JQueryPromise[]): JQueryPromise; + apply($: JQueryStatic, deferreds: JQueryPromise[]): JQueryPromise; +} + +/* + Static members of jQuery (those on $ and jQuery themselves) +*/ +interface JQueryStatic { + + /**** + AJAX + *****/ + ajax(settings: JQueryAjaxSettings): JQueryXHR; + ajax(url: string, settings?: JQueryAjaxSettings): JQueryXHR; + + ajaxPrefilter(dataTypes: string, handler: (opts: any, originalOpts: any, jqXHR: JQueryXHR) => any): any; + ajaxPrefilter(handler: (opts: any, originalOpts: any, jqXHR: JQueryXHR) => any): any; + + ajaxSettings: JQueryAjaxSettings; + + ajaxSetup(options: JQueryAjaxSettings): void; + + get(url: string, data?: any, success?: any, dataType?: any): JQueryXHR; + getJSON(url: string, data?: any, success?: any): JQueryXHR; + getScript(url: string, success?: any): JQueryXHR; + + param: JQueryParam; + + post(url: string, data?: any, success?: any, dataType?: any): JQueryXHR; + + /********* + CALLBACKS + **********/ + Callbacks(flags?: string): JQueryCallback; + Callbacks(flags?: string): JQueryCallback1; + Callbacks(flags?: string): JQueryCallback2; + Callbacks(flags?: string): JQueryCallback3; + + /**** + CORE + *****/ + holdReady(hold: boolean): any; + + (selector: string, context?: any): JQuery; + (element: Element): JQuery; + (object: {}): JQuery; + (elementArray: Element[]): JQuery; + (object: JQuery): JQuery; + (func: Function): JQuery; + (array: any[]): JQuery; + (): JQuery; + + noConflict(removeAll?: boolean): Object; + + when: JQueryWhen; + + /*** + CSS + ****/ + css(e: any, propertyName: string, value?: any): JQuery; + css(e: any, propertyName: any, value?: any): JQuery; + cssHooks: { [key: string]: any; }; + cssNumber: any; + + /**** + DATA + *****/ + data(element: Document, key?: string, value?: any): any; + data(element: Element, key: string, value: any): any; + data(element: Element, key: string): any; + data(element: Element): any; + + dequeue(element: Element, queueName?: string): any; + + hasData(element: Element): boolean; + + queue(element: Element, queueName?: string): any[]; + queue(element: Element, queueName: string, newQueueOrCallback: any): JQuery; + + removeData(element: Document, name?: string): JQuery; + removeData(element: Element, name?: string): JQuery; + + /******* + EFFECTS + ********/ + fx: { tick: () => void; interval: number; stop: () => void; speeds: { slow: number; fast: number; }; off: boolean; step: any; }; + + /****** + EVENTS + *******/ + proxy(fn: (...args: any[]) => any, context: any, ...args: any[]): any; + proxy(context: any, name: string, ...args: any[]): any; + Deferred: { + (fn?: (d: JQueryDeferred) => void): JQueryDeferred; + new (fn?: (d: JQueryDeferred) => void): JQueryDeferred; + + // Can't use a constraint against JQueryDeferred because the non-generic JQueryDeferred.resolve is not a base type of + // the generic JQueryDeferred.resolve methods. + (fn?: (d: TDeferred) => void): TDeferred; + new (fn?: (d: TDeferred) => void): TDeferred; + }; + Event(name: string, eventProperties?: any): JQueryEventObject; + Event(evt: JQueryEventObject, eventProperties?: any): JQueryEventObject; + + event: JQueryEventStatic; + + /********* + INTERNALS + **********/ + error(message: any): JQuery; + + /************* + MISCELLANEOUS + **************/ + expr: any; + fn: JQuery; + isReady: boolean; + + /********** + PROPERTIES + ***********/ + support: JQuerySupport; + + /********* + UTILITIES + **********/ + contains(container: Element, contained: Element): boolean; + + each(collection: any, callback: (indexInArray: any, valueOfElement: any) => any): any; + each(collection: JQuery, callback: (indexInArray: number, valueOfElement: HTMLElement) => any): JQuery; + each(collection: T[], callback: (indexInArray: number, valueOfElement: T) => void): T[]; + + extend(deep: boolean, target: any, ...objs: any[]): any; + extend(target: any, ...objs: any[]): any; + + globalEval(code: string): any; + + grep(array: T[], func: (elementOfArray: T, indexInArray: number) => boolean, invert?: boolean): T[]; + + inArray(value: T, array: T[], fromIndex?: number): number; + + isArray(obj: any): boolean; + isEmptyObject(obj: any): boolean; + isFunction(obj: any): boolean; + isNumeric(value: any): boolean; + isPlainObject(obj: any): boolean; + isWindow(obj: any): boolean; + isXMLDoc(node: Node): boolean; + + makeArray(obj: any): any[]; + + map(array: T[], callback: (elementOfArray: T, indexInArray: number) => U): U[]; + map(object: { [item: string]: T; }, callback: (elementOfArray: T, indexInArray: string) => U): U[]; + map(array: any, callback: (elementOfArray: any, indexInArray: any) => any): any; + + merge(first: T[], second: T[]): T[]; + + noop(): any; + + now(): number; + + parseJSON(json: string): Object; + + //FIXME: This should return an XMLDocument + parseXML(data: string): any; + + trim(str: string): string; + + type(obj: any): string; + + unique(arr: T[]): T[]; +} + +/* + The jQuery instance members +*/ +interface JQuery { + /**** + AJAX + *****/ + ajaxComplete(handler: any): JQuery; + ajaxError(handler: (event: any, jqXHR: any, settings: any, exception: any) => any): JQuery; + ajaxSend(handler: (event: any, jqXHR: any, settings: any, exception: any) => any): JQuery; + ajaxStart(handler: () => any): JQuery; + ajaxStop(handler: () => any): JQuery; + ajaxSuccess(handler: (event: any, jqXHR: any, settings: any, exception: any) => any): JQuery; + + load(url: string, data?: any, complete?: any): JQuery; + + serialize(): string; + serializeArray(): any[]; + + /********** + ATTRIBUTES + ***********/ + addClass(classNames: string): JQuery; + addClass(func: (index: any, currentClass: any) => string): JQuery; + + // http://api.jquery.com/addBack/ + addBack(selector?: string): JQuery; + + + attr(attributeName: string): string; + attr(attributeName: string, value: any): JQuery; + attr(map: { [key: string]: any; }): JQuery; + attr(attributeName: string, func: (index: any, attr: any) => any): JQuery; + + hasClass(className: string): boolean; + + html(): string; + html(htmlString: number): JQuery; + html(htmlString: string): JQuery; + html(htmlContent: (index: number, oldhtml: string) => string): JQuery; + + prop(propertyName: string): any; + prop(propertyName: string, value: any): JQuery; + prop(map: any): JQuery; + prop(propertyName: string, func: (index: any, oldPropertyValue: any) => any): JQuery; + + removeAttr(attributeName: any): JQuery; + + removeClass(className?: any): JQuery; + removeClass(func: (index: any, cls: any) => any): JQuery; + + removeProp(propertyName: any): JQuery; + + toggleClass(className: any, swtch?: boolean): JQuery; + toggleClass(swtch?: boolean): JQuery; + toggleClass(func: (index: any, cls: any, swtch: any) => any): JQuery; + + val(): any; + val(value: string[]): JQuery; + val(value: string): JQuery; + val(value: number): JQuery; + val(func: (index: any, value: any) => any): JQuery; + + /*** + CSS + ****/ + css(propertyName: string): string; + css(propertyNames: string[]): string; + css(properties: any): JQuery; + css(propertyName: string, value: any): JQuery; + css(propertyName: any, value: any): JQuery; + + height(): number; + height(value: number): JQuery; + height(value: string): JQuery; + height(func: (index: any, height: any) => any): JQuery; + + innerHeight(): number; + innerWidth(): number; + + offset(): { left: number; top: number; }; + offset(coordinates: any): JQuery; + offset(func: (index: any, coords: any) => any): JQuery; + + outerHeight(includeMargin?: boolean): number; + outerWidth(includeMargin?: boolean): number; + + position(): { top: number; left: number; }; + + scrollLeft(): number; + scrollLeft(value: number): JQuery; + + scrollTop(): number; + scrollTop(value: number): JQuery; + + width(): number; + width(value: number): JQuery; + width(value: string): JQuery; + width(func: (index: any, height: any) => any): JQuery; + + /**** + DATA + *****/ + clearQueue(queueName?: string): JQuery; + + data(key: string, value: any): JQuery; + data(obj: { [key: string]: any; }): JQuery; + data(key?: string): any; + + dequeue(queueName?: string): JQuery; + + removeData(nameOrList?: any): JQuery; + + /******** + DEFERRED + *********/ + promise(type?: any, target?: any): JQueryPromise; + + /******* + EFFECTS + ********/ + animate(properties: any, duration?: any, complete?: Function): JQuery; + animate(properties: any, duration?: any, easing?: string, complete?: Function): JQuery; + animate(properties: any, options: { duration?: any; easing?: string; complete?: Function; step?: Function; queue?: boolean; specialEasing?: any; }): JQuery; + + delay(duration: number, queueName?: string): JQuery; + + fadeIn(duration?: any, callback?: any): JQuery; + fadeIn(duration?: any, easing?: string, callback?: any): JQuery; + + fadeOut(duration?: any, callback?: any): JQuery; + fadeOut(duration?: any, easing?: string, callback?: any): JQuery; + + fadeTo(duration: any, opacity: number, callback?: any): JQuery; + fadeTo(duration: any, opacity: number, easing?: string, callback?: any): JQuery; + + fadeToggle(duration?: any, callback?: any): JQuery; + fadeToggle(duration?: any, easing?: string, callback?: any): JQuery; + + finish(): JQuery; + + hide(duration?: any, callback?: any): JQuery; + hide(duration?: any, easing?: string, callback?: any): JQuery; + + show(duration?: any, callback?: any): JQuery; + show(duration?: any, easing?: string, callback?: any): JQuery; + + slideDown(duration?: any, callback?: any): JQuery; + slideDown(duration?: any, easing?: string, callback?: any): JQuery; + + slideToggle(duration?: any, callback?: any): JQuery; + slideToggle(duration?: any, easing?: string, callback?: any): JQuery; + + slideUp(duration?: any, callback?: any): JQuery; + slideUp(duration?: any, easing?: string, callback?: any): JQuery; + + stop(clearQueue?: boolean, jumpToEnd?: boolean): JQuery; + stop(queue?: any, clearQueue?: boolean, jumpToEnd?: boolean): JQuery; + + toggle(duration?: any, callback?: any): JQuery; + toggle(duration?: any, easing?: string, callback?: any): JQuery; + toggle(showOrHide: boolean): JQuery; + + /****** + EVENTS + *******/ + bind(eventType: string, eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery; + bind(eventType: string, eventData: any, preventBubble: boolean): JQuery; + bind(eventType: string, preventBubble: boolean): JQuery; + bind(...events: any[]): JQuery; + + blur(eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery; + blur(handler: (eventObject: JQueryEventObject) => any): JQuery; + + change(eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery; + change(handler: (eventObject: JQueryEventObject) => any): JQuery; + + click(eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery; + click(handler: (eventObject: JQueryEventObject) => any): JQuery; + + dblclick(eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery; + dblclick(handler: (eventObject: JQueryEventObject) => any): JQuery; + + delegate(selector: any, eventType: string, handler: (eventObject: JQueryEventObject) => any): JQuery; + + focus(eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery; + focus(handler: (eventObject: JQueryEventObject) => any): JQuery; + + focusin(eventData: any, handler: (eventObject: JQueryEventObject) => any): JQuery; + focusin(handler: (eventObject: JQueryEventObject) => any): JQuery; + + focusout(eventData: any, handler: (eventObject: JQueryEventObject) => any): JQuery; + focusout(handler: (eventObject: JQueryEventObject) => any): JQuery; + + hover(handlerIn: (eventObject: JQueryEventObject) => any, handlerOut: (eventObject: JQueryEventObject) => any): JQuery; + hover(handlerInOut: (eventObject: JQueryEventObject) => any): JQuery; + + keydown(eventData?: any, handler?: (eventObject: JQueryKeyEventObject) => any): JQuery; + keydown(handler: (eventObject: JQueryKeyEventObject) => any): JQuery; + + keypress(eventData?: any, handler?: (eventObject: JQueryKeyEventObject) => any): JQuery; + keypress(handler: (eventObject: JQueryKeyEventObject) => any): JQuery; + + keyup(eventData?: any, handler?: (eventObject: JQueryKeyEventObject) => any): JQuery; + keyup(handler: (eventObject: JQueryKeyEventObject) => any): JQuery; + + load(eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery; + load(handler: (eventObject: JQueryEventObject) => any): JQuery; + + mousedown(): JQuery; + mousedown(eventData: any, handler: (eventObject: JQueryMouseEventObject) => any): JQuery; + mousedown(handler: (eventObject: JQueryMouseEventObject) => any): JQuery; + + mouseevent(eventData: any, handler: (eventObject: JQueryMouseEventObject) => any): JQuery; + mouseevent(handler: (eventObject: JQueryMouseEventObject) => any): JQuery; + + mouseenter(): JQuery; + mouseenter(eventData: any, handler: (eventObject: JQueryMouseEventObject) => any): JQuery; + mouseenter(handler: (eventObject: JQueryMouseEventObject) => any): JQuery; + + mouseleave(): JQuery; + mouseleave(eventData: any, handler: (eventObject: JQueryMouseEventObject) => any): JQuery; + mouseleave(handler: (eventObject: JQueryMouseEventObject) => any): JQuery; + + mousemove(): JQuery; + mousemove(eventData: any, handler: (eventObject: JQueryMouseEventObject) => any): JQuery; + mousemove(handler: (eventObject: JQueryMouseEventObject) => any): JQuery; + + mouseout(): JQuery; + mouseout(eventData: any, handler: (eventObject: JQueryMouseEventObject) => any): JQuery; + mouseout(handler: (eventObject: JQueryMouseEventObject) => any): JQuery; + + mouseover(): JQuery; + mouseover(eventData: any, handler: (eventObject: JQueryMouseEventObject) => any): JQuery; + mouseover(handler: (eventObject: JQueryMouseEventObject) => any): JQuery; + + mouseup(): JQuery; + mouseup(eventData: any, handler: (eventObject: JQueryMouseEventObject) => any): JQuery; + mouseup(handler: (eventObject: JQueryMouseEventObject) => any): JQuery; + + off(events?: string, selector?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery; + off(eventsMap: { [key: string]: any; }, selector?: any): JQuery; + + on(events: string, selector: any, data: any, handler: (eventObject: JQueryEventObject, args: any) => any): JQuery; + on(events: string, selector: any, handler: (eventObject: JQueryEventObject) => any): JQuery; + on(events: string, handler: (eventObject: JQueryEventObject, args: any) => any): JQuery; + on(eventsMap: { [key: string]: any; }, selector?: any, data?: any): JQuery; + + one(events: string, selector?: any, data?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery; + one(eventsMap: { [key: string]: any; }, selector?: any, data?: any): JQuery; + + ready(handler: any): JQuery; + + resize(eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery; + resize(handler: (eventObject: JQueryEventObject) => any): JQuery; + + scroll(eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery; + scroll(handler: (eventObject: JQueryEventObject) => any): JQuery; + + select(eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery; + select(handler: (eventObject: JQueryEventObject) => any): JQuery; + + submit(eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery; + submit(handler: (eventObject: JQueryEventObject) => any): JQuery; + + trigger(eventType: string, ...extraParameters: any[]): JQuery; + trigger(event: JQueryEventObject, ...extraParameters: any[]): JQuery; + + triggerHandler(eventType: string, ...extraParameters: any[]): Object; + // JSGOUPIL: triggerHandler uses trigger, not documented though + triggerHandler(evt: JQueryEventObject): Object; + + unbind(eventType?: string, handler?: (eventObject: JQueryEventObject) => any): JQuery; + unbind(eventType: string, fls: boolean): JQuery; + unbind(evt: any): JQuery; + + undelegate(): JQuery; + undelegate(selector: any, eventType: string, handler?: (eventObject: JQueryEventObject) => any): JQuery; + undelegate(selector: any, events: any): JQuery; + undelegate(namespace: string): JQuery; + + unload(eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery; + unload(handler: (eventObject: JQueryEventObject) => any): JQuery; + + /********* + INTERNALS + **********/ + + context: Element; + jquery: string; + + error(handler: (eventObject: JQueryEventObject) => any): JQuery; + error(eventData: any, handler: (eventObject: JQueryEventObject) => any): JQuery; + + pushStack(elements: any[]): JQuery; + pushStack(elements: any[], name: any, arguments: any): JQuery; + + /************ + MANIPULATION + *************/ + after(...content: any[]): JQuery; + after(func: (index: any) => any): JQuery; + + append(...content: any[]): JQuery; + append(func: (index: any, html: any) => any): JQuery; + + appendTo(target: any): JQuery; + + before(...content: any[]): JQuery; + before(func: (index: any) => any): JQuery; + + clone(withDataAndEvents?: boolean, deepWithDataAndEvents?: boolean): JQuery; + + detach(selector?: any): JQuery; + + empty(): JQuery; + + insertAfter(target: any): JQuery; + insertBefore(target: any): JQuery; + + prepend(...content: any[]): JQuery; + prepend(func: (index: any, html: any) => any): JQuery; + + prependTo(target: any): JQuery; + + remove(selector?: any): JQuery; + + replaceAll(target: any): JQuery; + + replaceWith(func: any): JQuery; + + text(): string; + text(textString: any): JQuery; + text(textString: (index: number, text: string) => string): JQuery; + + toArray(): any[]; + + unwrap(): JQuery; + + wrap(wrappingElement: any): JQuery; + wrap(func: (index: any) => any): JQuery; + + wrapAll(wrappingElement: any): JQuery; + + wrapInner(wrappingElement: any): JQuery; + wrapInner(func: (index: any) => any): JQuery; + + /************* + MISCELLANEOUS + **************/ + each(func: (index: any, elem: Element) => any): JQuery; + + get(index?: number): any; + + index(): number; + index(selector: string): number; + index(element: any): number; + + /********** + PROPERTIES + ***********/ + length: number; + selector: string; + [x: string]: any; + [x: number]: HTMLElement; + + /********** + TRAVERSING + ***********/ + add(selector: string, context?: any): JQuery; + add(...elements: any[]): JQuery; + add(html: string): JQuery; + add(obj: JQuery): JQuery; + + children(selector?: any): JQuery; + + closest(selector: string): JQuery; + closest(selector: string, context?: Element): JQuery; + closest(obj: JQuery): JQuery; + closest(element: any): JQuery; + closest(selectors: any, context?: Element): any[]; + + contents(): JQuery; + + end(): JQuery; + + eq(index: number): JQuery; + + filter(selector: string): JQuery; + filter(func: (index: any) => any): JQuery; + filter(element: any): JQuery; + filter(obj: JQuery): JQuery; + + find(selector: string): JQuery; + find(element: any): JQuery; + find(obj: JQuery): JQuery; + + first(): JQuery; + + has(selector: string): JQuery; + has(contained: Element): JQuery; + + is(selector: string): boolean; + is(func: (index: any) => any): boolean; + is(element: any): boolean; + is(obj: JQuery): boolean; + + last(): JQuery; + + map(callback: (index: any, domElement: Element) => any): JQuery; + + next(selector?: string): JQuery; + + nextAll(selector?: string): JQuery; + + nextUntil(selector?: string, filter?: string): JQuery; + nextUntil(element?: Element, filter?: string): JQuery; + + not(selector: string): JQuery; + not(func: (index: any) => any): JQuery; + not(element: any): JQuery; + not(obj: JQuery): JQuery; + + offsetParent(): JQuery; + + parent(selector?: string): JQuery; + + parents(selector?: string): JQuery; + + parentsUntil(selector?: string, filter?: string): JQuery; + parentsUntil(element?: Element, filter?: string): JQuery; + + prev(selector?: string): JQuery; + + prevAll(selector?: string): JQuery; + + prevUntil(selector?: string, filter?: string): JQuery; + prevUntil(element?: Element, filter?: string): JQuery; + + siblings(selector?: string): JQuery; + + slice(start: number, end?: number): JQuery; + + /********* + UTILITIES + **********/ + + queue(queueName?: string): any[]; + queue(queueName: string, newQueueOrCallback: any): JQuery; + queue(newQueueOrCallback: any): JQuery; +} + +interface EventTarget { + //nodeName: string; //bugfix, duplicate identifier. see: http://stackoverflow.com/questions/14824143/duplicate-identifier-nodename-in-jquery-d-ts +} + +declare var jQuery: JQueryStatic; +declare var $: JQueryStatic; diff --git a/src/arm/TemplateGenerator/fragments.js b/src/arm/TemplateGenerator/fragments.js new file mode 100644 index 0000000..9f0e675 --- /dev/null +++ b/src/arm/TemplateGenerator/fragments.js @@ -0,0 +1,20 @@ +var customScript = require('./Fragments/ChildCustomScriptExtensionFragment').fragment +var dataDisk = require('./Fragments/DataDiskFragment').fragment +var domainName = require('./Fragments/DomainNameFragment').fragment +var endpoint = require('./Fragments/InputEndpointFragment').fragment +var cert = require('./Fragments/ServiceCertificateFragment').fragment +var storage = require('./Fragments/StorageAccountFragment').fragment +var vm = require('./Fragments/VirtualMachineFragment').fragment +var network = require('./Fragments/VirtualNetworkFragment').fragment + +var fragments = {}; +fragments[customScript.publisher + "_" + customScript.name] = JSON.stringify(customScript.content); +fragments[dataDisk.publisher + "_" + dataDisk.name] = JSON.stringify(dataDisk.content); +fragments[domainName.publisher + "_" + domainName.name] = JSON.stringify(domainName.content); +fragments[endpoint.publisher + "_" + endpoint.name] = JSON.stringify(endpoint.content); +fragments[cert.publisher + "_" + cert.name] = JSON.stringify(cert.content); +fragments[storage.publisher + "_" + storage.name] = JSON.stringify(storage.content); +fragments[vm.publisher + "_" + vm.name] = JSON.stringify(vm.content); +fragments[network.publisher + "_" + network.name] = JSON.stringify(network.content); + +module.exports.fragments = fragments; \ No newline at end of file diff --git a/src/arm/TemplateGenerator/generator.ts b/src/arm/TemplateGenerator/generator.ts new file mode 100644 index 0000000..cff47ac --- /dev/null +++ b/src/arm/TemplateGenerator/generator.ts @@ -0,0 +1,28 @@ +/// +function generateTemplate(data: any, fragmentStrings: {[key: string]: string}): string { + var factory = new ExtensionCore.Csm.TemplateFactory(); + var vmFragment = new ExtensionCore.Csm.Fragment(fragmentStrings["Microsoft_VirtualMachineFragment"]); + vmFragment.parameters.diskSalt = ((new Date()).getTime()).toString(); + vmFragment.parameters.resourceName = "VMName"; + vmFragment.parameters.resourceLocation = "WestUS"; + vmFragment.parameters.apiVersion = "2014-06-01"; + + vmFragment.parameters.adminUser = "Username"; + vmFragment.parameters.adminPassword = "Password"; + vmFragment.setConditional("OS", "Linux"); + vmFragment.parameters.disableSshPasswordAuthentication = "false"; + + //vmFragment.parameters.hardwareSize = "Small"; + setSizeToSmall(vmFragment); + vmFragment.parameters.domainNameResourceId = "Resource Id"; + vmFragment.parameters.domainName = "domainnameurl"; + vmFragment.parameters.storageBlobEndpoint = "storage endpoint.com" + + vmFragment.parameters.mediaName = "a9ds8f7987298_pathto.vhd"; + factory.addFragment(vmFragment); + return factory.generateTemplate(); +} + +function setSizeToSmall(fragment: ExtensionCore.Csm.Fragment) { + fragment.parameters.hardwareSize = "Small" +} \ No newline at end of file diff --git a/src/arm/TemplateGenerator/libraries/Array.ts b/src/arm/TemplateGenerator/libraries/Array.ts new file mode 100644 index 0000000..31be34a --- /dev/null +++ b/src/arm/TemplateGenerator/libraries/Array.ts @@ -0,0 +1,48 @@ +interface Array { + toDictionary(getKey: (item: T) => string): { [key: string]: T; }; + first(predicate?: (value: T) => boolean): T; +} +module ExtensionCore.Polyfills { + function toDictionary(getKey: (item: T) => string) { + var dictionary: { [key: string]: T; } = {}; + + this.forEach((item: T) => { + var key = getKey(item); + + if (key) { + dictionary[key] = item; + } + }); + + return dictionary; + } + + if (!Array.prototype.toDictionary) { + Array.prototype.toDictionary = toDictionary; + } + + function first(predicate) { + var length = this.length, i, value; + + if (length === 0) { + return null; + } + + if (predicate === undefined) { + return this[0]; + } + + for (i = 0; i < length; i++) { + value = this[i]; + if (predicate(value) === true) { + return value; + } + } + + return null; + } + + if (!Array.prototype.first) { + Array.prototype.first = first; + } +} diff --git a/src/arm/TemplateGenerator/libraries/DeploymentTemplate.ts b/src/arm/TemplateGenerator/libraries/DeploymentTemplate.ts new file mode 100644 index 0000000..279c36b --- /dev/null +++ b/src/arm/TemplateGenerator/libraries/DeploymentTemplate.ts @@ -0,0 +1,38 @@ +/// + +module ExtensionCore.Csm { + "use strict"; + + export interface DeploymentTemplate { + $schema: string; + contentVersion: string; + tags?: StringMap; + parameters: StringMap; + variables?: StringMap; + resources: DeploymentResource[]; + outputs?: StringMap; + } + + export interface DeploymentResource extends StringMap { + apiVersion: string; + name: string; + type: string; + plan?: StringMap; + location: string; + tags?: StringMap; + dependsOn?: string[]; + properties?: StringMap; + resources?: DeploymentResource[]; + } + + export interface DeploymentOutput { + type: string; + value: string; + } + + export interface DeploymentParamter { + type: string; + allowedValues?: string[]; + defaultValue?: string; + } +} \ No newline at end of file diff --git a/src/arm/TemplateGenerator/libraries/Error.ts b/src/arm/TemplateGenerator/libraries/Error.ts new file mode 100644 index 0000000..7c5d285 --- /dev/null +++ b/src/arm/TemplateGenerator/libraries/Error.ts @@ -0,0 +1,28 @@ +class ErrorBase implements Error { + public name: string; + public message: string; + public stack: string; + + constructor(message?: string) { + Error.apply(this, arguments); + this.name = this["constructor"].prototype.name; + this.message = message; + } +} +(ErrorBase).prototype = Error.prototype; + +class InvalidOperationError extends ErrorBase { +} + +class ArgumentError extends ErrorBase { + constructor(argumentName: string, reason?: string) { + var reasonMessage: string = reason ? "Reason: {0}".format(reason) : ""; + super("Invalid argument: '{0}'. {1}".format(argumentName, reasonMessage)); + } +} + +class AbstractMethodError extends ErrorBase { + constructor(className: string, methodName: string) { + super("cannot call abstract method {1} of class {0}. Make sure it is implemented in a derived class.".format(className, methodName)); + } +} \ No newline at end of file diff --git a/src/arm/TemplateGenerator/libraries/Fragment.ts b/src/arm/TemplateGenerator/libraries/Fragment.ts new file mode 100644 index 0000000..19938d3 --- /dev/null +++ b/src/arm/TemplateGenerator/libraries/Fragment.ts @@ -0,0 +1,330 @@ +/// +/// +/// + +module ExtensionCore.Csm { + "use strict"; + + export class Fragment> { + public parameters: T; + public dependsOnIgnore: StringMap = {}; + private _fragment: FragmentDefinition; + private _parametersAdded: StringMap = {}; + private _computedCalculated: StringMap = {}; + private _conditionsAdded: StringMap = {}; + + constructor(fragmentDefinition: string) { + this._fragment = JSON.parse(fragmentDefinition); + + if (this._fragment.computeds) { + this._fragment.computeds.forEach((computed) => { + this._computedCalculated[computed.paths[0]] = undefined; + }); + } + + var keys: string[] = []; + for (var key in this._fragment.parameters) { + keys.push(key); + } + + this.parameters = {}; + + keys.forEach((param) => { + Object.defineProperty(this.parameters, param, { + get: () => { + return this._getParameterValue(param); + }, + set: (value: any) => { + this._addParameter(param, value); + } + }); + }); + } + + public getResource(): DeploymentResource { + // Go through all the parameters and make sure the required ones are set + for (var param in this._fragment.parameters) { + if (this._fragment.parameters[param].required && this._parametersAdded[param] === undefined) { + throw new Error("Required parameter {0} was missing".format(param)); + } + } + + // If there is a child resource, we need to set a dependsOn for the parent resource + if (this._fragment.resource.resources && this._fragment.resource.resources.length) { + this._fragment.resource.resources.forEach((child) => { + if (!child.dependsOn) { + child.dependsOn = []; + } + + var id = this.getDependsOnId(); + if (child.dependsOn.indexOf(id) === -1) { + child.dependsOn.push(id); + } + }); + } + + if (this._fragment.computeds) { + this._fragment.computeds.forEach((computed) => { + if (computed.required && this._computedCalculated[computed.paths[0]] === undefined) { + throw new Error("A required computed was not calculated"); + } + }); + } + + return this._fragment.resource; + } + + private _getParameterValue(name: string): any { + return this._parametersAdded[name]; + } + + private _addParameter(name: string, value: any) { + this._parametersAdded[name] = value; + + if (!this._fragment.parameters[name]) { + throw new Error("The parameter named {0} does not exist".format(name)); + } + + if (this._fragment.parameters[name].condition && this._conditionsAdded[this._fragment.parameters[name].condition.name] !== this._fragment.parameters[name].condition.value) { + throw new Error("Can't add parameter named {0} until the conditional named {1} is set to {2}".format(name, this._fragment.parameters[name].condition.name, this._fragment.parameters[name].condition.value)); + } + + this._fragment.parameters[name].paths.forEach((path) => { + var action = this._fragment.parameters[name].action ? this._fragment.parameters[name].action : FragmentParameterAction.replace; + var escape = this._fragment.parameters[name].escape; + this._setValueOnPath(path.split("."), this._fragment.resource, value, action, escape); + }); + + this._calculateComputeds(); + } + + public setConditional(name: string, condition: string) { + if (!this._fragment.conditionals) { + throw new Error("No conditionals for this fragment"); + } + + if (!this._fragment.conditionals[name]) { + throw new Error("No conditional named {0} for this fragment".format(name)); + } + + if (!this._fragment.conditionals[name][condition]) { + throw new Error("No conditionals value of {0} for condition {1}".format(condition, name)); + } + + var value = this._fragment.conditionals[name][condition]; + this._setValueOnPath(value.path.split("."), this._fragment.resource, value.resource, FragmentParameterAction.replace); + this._conditionsAdded[name] = condition; + } + + public getDependsOnId() { + var typeSplit = this._fragment.resource.type.split("/"); + var nameSplit = this._fragment.resource.name.split("/"); + + if (typeSplit.length !== nameSplit.length + 1) { + throw new Error("Fragment type and name are malformed: Type: '{0}', Name: '{1}'".format(this._fragment.resource.type, this._fragment.resource.name)); + } + + if (typeSplit.length < 2) { + throw new Error("Fragment type is malformed. '{0}'".format(this._fragment.resource.type)); + } + + var result = "{0}/{1}/{2}".format(typeSplit[0], typeSplit[1], nameSplit[0]); + + for (var i = 2; i < typeSplit.length; i++) { + result = result + "/{0}/{1}".format(typeSplit[i], nameSplit[i-1]); + } + + return result; + } + + public getResourceId(subscription?: string, resourceGroup?: string) { + var providerResource = this.getDependsOnId(); + + if (subscription && resourceGroup) { + return "/subscriptions/{0}/resourcegroups/{1}/providers/{2}".format(subscription, resourceGroup, providerResource); + } + + return "[concat(resourceGroup().id, '/providers/{0}')]".format(providerResource); + } + + public dependsOn(otherFragment: Fragment) { + this.addDependsOn(otherFragment.getDependsOnId()); + } + + public addRelatedTag(resourceId: string) { + this.addTag("hidden-related:{0}".format(resourceId), "Resource"); + } + + public addLinkTag(resourceId: string) { + this.addTag("hidden-link:{0}".format(resourceId), "Resource"); + } + + public addTag(key: string, value: string) { + if (!this._fragment.resource.tags) { + this._fragment.resource.tags = {}; + } + this._fragment.resource.tags[key] = value; + } + + public getReferenceTag(withBrackets: boolean, property?: string): string { + var providerId = this.getDependsOnId(); + var template = "reference('{0}')"; + + if (property) { + template = template + "." + property; + } + + if (withBrackets) { + template = "[" + template + "]"; + } + + return template.format(providerId); + } + + private _calculateComputeds() { + // Go through all the computed and apply them when required + if (this._fragment.computeds) { + this._fragment.computeds.forEach((computed) => { + // FIrst check to make sure the conditions are met + if (computed.required && computed.condition && this._conditionsAdded[computed.condition.name] !== computed.condition.value) { + throw new Error("A computed value is required, and requires that condition {0} be set to value {1}".format(computed.condition.name, computed.condition.value)); + } + + if (!computed.condition || this._conditionsAdded[computed.condition.name] === computed.condition.value) { + var requiredParams = computed.template.match(/{[^{|^}]+}/g).map((p) => { + return p.substring(1, p.length - 1); + }); + + var compute = true; + var formatObject: StringMap = {}; + // Determine if all the required params were added + requiredParams.forEach((param) => { + if (!this._parametersAdded[param]) { + compute = false; + } else { + var value = this.parameters[param]; + + if (typeof (value) !== "string") { + throw new Error("A computed required parameter {0}, which was not a string".format(param)); + } + + // Escape value if escape option was specified on parameter + var escape = this._fragment.parameters[param].escape; + value = this._escapeIfNecessary(value, escape); + + formatObject[param] = value; + } + }); + + if (compute) { + var templateValue = computed.template.format(formatObject); + computed.paths.forEach((path) => { + this._setValueOnPath(path.split("."), this._fragment.resource, templateValue, FragmentParameterAction.replace); + }); + + this._computedCalculated[computed.paths[0]] = templateValue; + } + } + }); + } + } + + public addDependsOn(id: string, ignoreValidation?: boolean) { + if (!this._fragment.resource.dependsOn) { + this._fragment.resource.dependsOn = []; + } + + if (this._fragment.resource.dependsOn.indexOf(id) === -1) { + if (ignoreValidation) { + this.dependsOnIgnore[id] = true; + } + + this._fragment.resource.dependsOn.push(id); + } + } + + private _setValueOnPath(path: string[], objToSet: any, value: any, action: string, escape?: string) { + for (var i = 0; i < path.length - 1; i++) { + var pathString = path[i]; + + if (pathString.match(/[0-9]+(?=\])/g)) { + var arrayIndices = pathString.match(/[0-9]+(?=\])/g); + var regex = ".*(?="; + arrayIndices.forEach((value) => { + regex += "\\[[0-9]\\]"; + }); + regex += ")"; + + var startingPath = pathString.match(regex)[0]; + objToSet = objToSet[startingPath]; + arrayIndices.forEach((arr) => { + if (Array.isArray(objToSet)) { + var index = parseInt(arr, 10); + if (index >= objToSet.length) { + throw new Error("Out of range. Tried to access index {0} on an array of length {1}".format(index, objToSet.length)); + } + objToSet = objToSet[parseInt(arr, 10)]; + } else { + throw new Error("Tried to index an array that is not an array."); + } + }); + } else { + if (!objToSet[pathString]) { + objToSet[pathString] = {}; + } + objToSet = objToSet[pathString]; + } + } + + // Escape value if escape option was specified on parameter + value = this._escapeIfNecessary(value, escape); + + if (path[path.length - 1].match(/[0-9]+(?=\])/g)) { + var arrayIndices = path[path.length - 1].match(/[0-9]+(?=\])/g); + var startingPath = path[path.length - 1].match(/.*(?=\[)/)[0]; + if (arrayIndices.length > 1) { + throw new Error("The final path can only contain 1 array index"); + } + var finalIndex = parseInt(arrayIndices[0], 10) + if (!Array.isArray(objToSet[startingPath])) { + throw new Error("Tried to index an array that is not an array"); + } + + if (finalIndex >= (objToSet[startingPath]).length) { + throw new Error("Out of range. Tried to access index {0} on an array of length {1}".format(finalIndex, (objToSet[startingPath]).length)); + } + + if (StringEx.equals(action, FragmentParameterAction.replace, StringComparison.IgnoreCase)) { + objToSet[startingPath][finalIndex] = value; + } else if (StringEx.equals(action, FragmentParameterAction.arrayPush, StringComparison.IgnoreCase)) { + if (!Array.isArray(objToSet[startingPath][finalIndex])) { + objToSet[startingPath][finalIndex] = []; + } + + (objToSet[startingPath][finalIndex]).push(value); + } + } else { + if (StringEx.equals(action, FragmentParameterAction.replace, StringComparison.IgnoreCase)) { + objToSet[path[path.length - 1]] = value; + } else if (StringEx.equals(action, FragmentParameterAction.arrayPush, StringComparison.IgnoreCase)) { + if (!Array.isArray(objToSet[path[path.length - 1]])) { + objToSet[path[path.length - 1]] = []; + } + + (objToSet[path[path.length - 1]]).push(value); + } + + } + } + + private _escapeIfNecessary(value: string, escape: string): string { + if (typeof value === "string" && StringEx.equals(escape, FragmentParameterEscape.powershell, StringComparison.IgnoreCase)) { + value = value.replace(/`/g, "``"); + value = value.replace(/"/g, "`\""); + value = value.replace(/'/g, "`'"); + } + + return value; + } + } +} \ No newline at end of file diff --git a/src/arm/TemplateGenerator/libraries/FragmentDefinition.ts b/src/arm/TemplateGenerator/libraries/FragmentDefinition.ts new file mode 100644 index 0000000..ebe7bcc --- /dev/null +++ b/src/arm/TemplateGenerator/libraries/FragmentDefinition.ts @@ -0,0 +1,73 @@ +/// +/// +/// + +module ExtensionCore.Csm { + "use strict"; + // TODO: investigate a better mechanism for array pushes that is more user friendly + export class FragmentParameterAction { + public static replace: string = "replace"; + public static arrayPush: string = "arraypush"; + } + + export class FragmentParameterEscape { + public static powershell: string = "powershell" + } + + export interface FragmentDefinition { + parameters: StringMap; + resource: DeploymentResource; + conditionals: StringMap>; + computeds: ComputedParameter[]; + } + + export interface ComputedParameter { + paths: string[]; + template: string; + required: boolean; + condition?: ParameterCondition; + } + + export interface FragmentParameter { + paths: string[]; + required: boolean; + condition?: ParameterCondition; + action?: string; + escape?: string; + } + + export interface ParameterCondition { + name: string; + value: string; + } + + export interface FragmentCondition { + path: string; + resource: any; + } + + export function getFragmentStrings(fragmentFileUris: StringMap): JQueryPromiseV> { + var result: StringMap = {}; + var deferred = $.Deferred>>(); + var promises: JQueryPromiseV[] = []; + + for (var fragment in fragmentFileUris) { + promises.push(_downloadFragment(fragmentFileUris, fragment, result)); + } + + $.when.apply(this, promises).done(() => { + deferred.resolve(result); + }).fail(() => { + deferred.reject(); + }); + + return deferred.promise(); + } + + function _downloadFragment(fileUris: StringMap, fragmentName: string, result: StringMap): JQueryPromiseV { + return $.ajax(fileUris[fragmentName]).then((fragmentObject) => { + var nameSplit = fragmentName.split("."); + result[nameSplit[0] + "_" + nameSplit[1]] = JSON.stringify(fragmentObject); + }); + } +} \ No newline at end of file diff --git a/src/arm/TemplateGenerator/libraries/IFragment.ts b/src/arm/TemplateGenerator/libraries/IFragment.ts new file mode 100644 index 0000000..5148d3a --- /dev/null +++ b/src/arm/TemplateGenerator/libraries/IFragment.ts @@ -0,0 +1,36 @@ + interface String { + format(...restArgs: any[]): string; + format(formatSpecifierMap: Object): string; + } + + function format() { + var name, args = arguments; + + if (args && args.length === 1 && args[0] && typeof args[0] === "object") { + args = args[0]; + return this.replace(/\{[a-zA-Z$_\d]*\}/g, function (match, num) { + name = match.substring(1, match.length - 1); + return args.hasOwnProperty(name) ? args[name] : match; + }); + } + + return this.replace(/\{(\d+)\}/g, function (match, num) { + return args[num] !== undefined ? args[num] : match; + }); + } + + String.prototype["format"] = format; + + interface StringMap { + [key: string]: T; + } + +module ExtensionCore.Csm { + "use strict"; + + export interface IFragment extends StringMap { + resourceName: string; + resourceLocation: string; + apiVersion: string; + } +} \ No newline at end of file diff --git a/src/arm/TemplateGenerator/libraries/IPv4Address.ts b/src/arm/TemplateGenerator/libraries/IPv4Address.ts new file mode 100644 index 0000000..8c04e3b --- /dev/null +++ b/src/arm/TemplateGenerator/libraries/IPv4Address.ts @@ -0,0 +1,93 @@ +module ExtensionCore.Network { + export class IPv4Address { + + /** + * The IPv4 Address. + * Should be a number array of length 4 + * ex: 192.168.1.0 => [192, 168, 1, 0] + */ + public address: number[]; + + /** + * The number representation of the actual byte value of the entire address + */ + public subnetBytes: number; + + /** + * Creates a new instance of the IPv4Address class + * This class is used to validate and work with IPv4 Addresses + * @param address, a string of the address to create the class with. + */ + constructor(address: string) { + if (!address) { + throw new ArgumentError("A non-null IP address is required"); + } + + this.address = address.split(".").map((token) => { + return parseInt(token, 10); + }); + + this._validateIpValue(); + + this._calculateByteValues(); + } + + /** + * Prints a friendly representation of the IP Address + * @returns string of the IPAddress segment of the Subnet (no prefix) + */ + public toString(): string { + return this.bytesToAddressString(this.subnetBytes); + } + + /** + * Checks that two IPs are equivalent. + * @param rhs, The IP to check against this one. + * @returns true if the IPs are identical + */ + public equals(rhs: IPv4Address): boolean { + return this.subnetBytes === rhs.subnetBytes; + } + + /** + * Checks that this IP is in a given range [startIp, endIp). + * @param start, the first IP in the range + * @param end, one after the last IP in the range + * @returns true if the the IP is in the range [startIp, endIp) + */ + public isIpInRange(start: IPv4Address, end: IPv4Address): boolean { + return (start.subnetBytes <= this.subnetBytes && this.subnetBytes < end.subnetBytes); + } + + public bytesToAddressString(bytes: number): string { + return "{0}.{1}.{2}.{3}".format( + ((bytes & 0xff000000) >>> 24), + ((bytes & 0xff0000) >>> 16), + ((bytes & 0xff00) >>> 8), + ((bytes & 0xff) >>> 0)); + } + + private _validateIpValue() { + if (this.address.length !== 4) { + throw new ArgumentError("Malformed IP Address: {0}".format(this.address.join("."))); + } + + this._validateOctet(0); + this._validateOctet(1); + this._validateOctet(2); + this._validateOctet(3); + } + + private _validateOctet(octet: number) { + // The first octet is a special case + // The first octet has to be at least 1 + if (isNaN(this.address[octet]) || this.address[octet] < (octet === 0 ? 1 : 0) || this.address[octet] > 255) { + throw new ArgumentError("Octet {0} with value {1} is invalid. It must be between {2} and {3}".format(octet+1, this.address[octet], octet === 0 ? 1 : 0, 255)); + } + } + + private _calculateByteValues() { + this.subnetBytes = ((this.address[0] << 24) >>> 0 | (this.address[1] << 16) >>> 0 | (this.address[2] << 8) >>> 0 | (this.address[3] << 0) >>> 0) >>> 0; + } + } +} \ No newline at end of file diff --git a/src/arm/TemplateGenerator/libraries/IPv4Subnet.ts b/src/arm/TemplateGenerator/libraries/IPv4Subnet.ts new file mode 100644 index 0000000..a7eaef8 --- /dev/null +++ b/src/arm/TemplateGenerator/libraries/IPv4Subnet.ts @@ -0,0 +1,344 @@ +/// + +module ExtensionCore.Network { + export class IPv4Subnet extends IPv4Address { + + /** + * The IPv4 Subnet Prefix. + * Should be a number between 1 and 32 + */ + public prefix: number; + + /** + * The number representaiton of the actual byte value of the subnet Net mask + */ + public subnetNetMaskBytes: number; + + /** + * The number representaiton of the actual byte value of the subnet mask + */ + public subnetMaskBytes: number; + + /** + * The number representaiton of the actual byte value of the subnet's broadcast address + */ + public subnetBroadcastAddressBytes: number; + + /** + * Creates a new instance of the IPv4Subnet class + * This class is used to validate and work with IPv4 Subnets + * @param subnetCidr, a string of the subnet to create the class with. Accepted values are IP, or IP/Prefix + */ + constructor(subnetCidr: string) { + if (!subnetCidr) { + throw new ArgumentError("A non-null subnet address is required"); + } + + var subnetTokens = subnetCidr.split("/"); + // Assume the user passed in a simple IP Address. Give them a prefix of 32 because we're nice + if (subnetTokens.length === 1) { + this.prefix = 32; + } else if (subnetTokens.length > 2) { // Too many slashes! + throw new ArgumentError("Malformed Subnet Address. Address was: {0}".format(subnetCidr)); + } else { + this.prefix = parseInt(subnetTokens[1], 10); + } + + super(subnetTokens[0]); + + this._validatePrefix(); + this._calculateSubnetByteValues(); + } + + /** + * Prints a friendly representation of the IP Subnet + * @returns string of the entire subnet, including the prefix + */ + public toString(): string { + return "{0}/{1}".format(super.toString(), this.prefix) + } + + /** + * Prints a friendly representation of the IP Address + * @returns string of the IPAddress segment of the Subnet (no prefix) + */ + public toAddressString(): string { + return super.toString(); + } + + /* + * Determines if another subnet is completely contained in this subnet + * @param subnet IPv4Subnet the other subnet to test + * @returns boolean. true if the other subnet is completely contained in this subnet. false otherwise. + */ + public isOtherSubnetContained(subnet: IPv4Subnet): boolean { + return (this.prefix <= subnet.prefix) && ((this.subnetNetMaskBytes & subnet.subnetBroadcastAddressBytes) >>> 0) === this.subnetMaskBytes; + } + + /** + * Determines if another subnet overlaps this one + * @param subnet IPv4Subnet the other subnet to test + * @returns boolean. true if the two subnets overlap with eachother. false otherwise + */ + public doesSubnetOverlap(subnet: IPv4Subnet): boolean { + return !this.isOtherSubnetContained(subnet) && !subnet.isOtherSubnetContained(this); + } + + /** + * Returns a string representation of the first IP in this range, exlucding the offset + * @param offset optional offset for the beginning of the range. This is a count of addresses not included in the range + * @returns string of the starting IP address in the range plus the offset + */ + public getFirstAddressInRange(offset?: number): string { + return this.bytesToAddressString(((this.subnetBytes & this.subnetNetMaskBytes) >>> 0) + (offset ? offset : 0)); + } + + /** + * Returns a string representation of the last IP in this range, exlucding the offset + * @param offset optional offset for the end of the range. This is a count of addresses not included in the range + * @returns string of the last IP address in the range less the offset + */ + public getLastAddressInRange(offset?: number): string { + return this.bytesToAddressString(this.subnetBroadcastAddressBytes - (offset ? offset : 0)); + } + + /** + * Checks that this IP is in a subnet. + * @param subnet, the subnet to check that this IP is in + * @returns true if this IP is in the subnet + */ + public doesContainIp(ip: IPv4Address): boolean { + var thisIp = new IPv4Subnet(ip.toString()); + return (this.isOtherSubnetContained(thisIp)); + } + + /** + * Returns a string representation of the IP Range for the subnet + * @param beginOffset optional offset for the beginning range. This is a count of addresses not included in the range + * @param endOffset optional offset for the end of the range. This is the count of address not included in the range + * @returns string in the format of [StartingAddress + beginOffset] - [EndingAddress - endOffset] + */ + public getSubnetRange(beginOffset?: number, endOffset?: number): string { + return "{0} - {1}".format(this.getFirstAddressInRange(beginOffset), this.getLastAddressInRange(endOffset)); + } + + /** + * Returns a number of usable ip addresses for this subnet + * @param beginOffset optional offset for the beginning range. This is a count of addresses not included in the range + * @param endOffset optional offset for the end of the range. This is the count of address not included in the range + * @returns number of usable address in the range, not including the offsets. + */ + public getUsableIpAddressCount(beginOffset?: number, endOffset?: number): number { + // We take the entire range not counting the broadcast address + // Then remove the begin offset and the end offset + beginOffset = beginOffset ? beginOffset : 0; + endOffset = endOffset ? endOffset : 0; + return this.subnetBroadcastAddressBytes - this.subnetBytes - beginOffset - endOffset + 1; + } + + /** + * Gets a child subnet that is contained in this subnet of the given size + * @param prefix The prefix to create the child subnet. Uses the parent address space prefix if none is provided + * @returns A child IPv4Subnet that is contained in the parent subnet + */ + public getChildSubnet(prefix?: number): IPv4Subnet + public getChildSubnet(prefix?: string): IPv4Subnet + public getChildSubnet(prefix?: any): IPv4Subnet { + var prefixToUse = this._getUsablePrefix(prefix, true); + + return new IPv4Subnet(this.getFirstAddressInRange() + "/" + prefixToUse); + } + + /** + * Gets the nth IP Address in this subnet + * @param offset The offset of how many ip addresses to give. 0 by default + * @returns A string of the ip address + */ + public getIpAddress(offset?: number): string { + var offsetToUse = offset ? offset : 0; + + if (this.getUsableIpAddressCount() < offsetToUse) { + throw new ArgumentError("offset", "The requested IP Address is not in this subnet"); + } + + return this.bytesToAddressString(this.subnetBytes + offsetToUse); + } + + /** + * Gets a new subnet that immediately follows the current subnet + * @param prefix The prefix to create the new subnet. Uses the this prefix if none is provided + * @returns The next IPv4Subnet that follows this subnet + */ + public getNextSubnet(prefix?: number): IPv4Subnet + public getNextSubnet(prefix?: string): IPv4Subnet + public getNextSubnet(prefix?: any): IPv4Subnet { + var prefixToUse = this._getUsablePrefix(prefix, false); + + // Find the next IP address after this range + var address: string; + if (prefixToUse < this.prefix) { + var tempSubnet = new IPv4Subnet(this.toAddressString() + "/" + prefixToUse); + address = tempSubnet.bytesToAddressString(tempSubnet.subnetBroadcastAddressBytes + 1); + } else { + address = this.bytesToAddressString(this.subnetBroadcastAddressBytes + 1); + } + + return new IPv4Subnet(address + "/" + prefixToUse); + } + + private _getUsablePrefix(prefix: any, checkLength: boolean): number { + var prefixToUse = this.prefix; + if (prefix) { + if (typeof prefix === "string") { + prefix = parseInt(prefix, 10); + } + + if (checkLength && prefix < this.prefix) { + throw new ArgumentError("prefix", "The supplied prefix was smaller than the parent. It must be greater than or equal to the parent"); + } + + prefixToUse = prefix; + } + + return prefixToUse; + } + + /** + * Given a list of existing Subnet ranges, finds a subnet with the desired prefix that does not overlap with any of them + * @param existingSubnets an array of strings in the format address/prefix. This is the existing space you wish not to overlap with + * @param desiredPrefix the size of the gap you wish to find. Valid prefixes are 1-32 + * @param privateOnly optional boolean. If true, it will limit the result to only Subnets in the private space + * @returns an IPv4Subnet class of the desired size, which does not overlap any of the existing subnets. Null if no gap was found + */ + public static findSubnetGap(existingSubnets: string[], desiredPrefix: number, privateOnly?: boolean): IPv4Subnet + /** + * Given a list of existing Subnet ranges, finds a subnet with the desired prefix that does not overlap with any of them + * @param existingSubnets an array of IPv4Subnets. This is the existing space you wish not to overlap with + * @param desiredPrefix the size of the gap you wish to find. Valid prefixes are 1-32 + * @param privateOnly optional boolean. If true, it will limit the result to only Subnets in the private space + * @returns an IPv4Subnet class of the desired size, which does not overlap any of the existing subnets. Null if no gap was found + */ + public static findSubnetGap(existingSubnets: IPv4Subnet[], desiredPrefix: number, privateOnly?: boolean): IPv4Subnet + public static findSubnetGap(existingSubnets: any[], desiredPrefix: number, privateOnly?: boolean): IPv4Subnet { + if (!existingSubnets) { + throw new ArgumentError("existingSubnets", "existingSubnets must not be null"); + } + + if (desiredPrefix < 1 || desiredPrefix > 32) { + throw new ArgumentError("desiredPrefix", "The subnet prefix must be between 1 and 32"); + } + + // If there are no other subnets to find a gap for, return the default space using the desired prefix + if (existingSubnets.length === 0) { + return new IPv4Subnet("10.0.0.0/" + desiredPrefix.toString()); + } + + var subnets: IPv4Subnet[]; + // IF they sent in a string array, convert them all to IPv4Subnets + if (typeof (existingSubnets[0]) === "string") { + subnets = (existingSubnets).map((address) => { + return new IPv4Subnet(address); + }); + } else { + subnets = existingSubnets; + } + + // Sort the subnets by their broadcast address + subnets.sort((left, right) => { + return left.subnetBroadcastAddressBytes < right.subnetBroadcastAddressBytes ? -1 : 1; + }); + + var eliminatedIndices: number[] = []; + for (var i = 0; i < subnets.length; i++) { + var isIndexEliminated = eliminatedIndices.first((val) => { + return val === i; + }); + + if (!isIndexEliminated) { + for (var j = 0; j < subnets.length; j++) { + if (i !== j && subnets[i].isOtherSubnetContained(subnets[j])) { + eliminatedIndices.push(j); + } + } + } + } + + var filteredSubnets = subnets.filter((s, index) => { + var eliminated = eliminatedIndices.first((val) => { + return val === index; + }); + + return eliminated === null; + }); + + // Special case 10.0.0.0/desiredPrefix. If it fits, use it + var testSubnet = new IPv4Subnet("10.0.0.0/" + desiredPrefix); + if (testSubnet.subnetBroadcastAddressBytes < filteredSubnets[0].subnetBytes) { + return testSubnet; + } + + var result: IPv4Subnet; + var privateA = new IPv4Subnet("10.0.0.0/8"); + var privateB = new IPv4Subnet("172.16.0.0/12"); + var privateC = new IPv4Subnet("192.168.0.0/16"); + for (var i = 0; i < filteredSubnets.length; i++) { + var leftSubnet = filteredSubnets[i].prefix > desiredPrefix ? new IPv4Subnet(filteredSubnets[i].toAddressString() + "/" + desiredPrefix.toString()) : filteredSubnets[i]; + var rightSubnet = i + 1 < filteredSubnets.length ? filteredSubnets[i + 1] : null; + + if ((rightSubnet === null) || (rightSubnet.subnetBytes - leftSubnet.subnetBroadcastAddressBytes >= Math.pow(2, 32 - desiredPrefix))) { + result = new IPv4Subnet(leftSubnet.bytesToAddressString(leftSubnet.subnetBroadcastAddressBytes + 1) + "/" + desiredPrefix); + + // If we only want private, we need to add another check, and cycle if it doesnt fit + if (privateOnly) { + if (privateA.isOtherSubnetContained(result) || privateB.isOtherSubnetContained(result) || privateC.isOtherSubnetContained(result)) { + return result; + } else { + // If we are at the last address, we should still try to find an existing item within the private space + if (rightSubnet === null) { + // If we are less than A, shift to A + if (result.subnetBroadcastAddressBytes < privateA.subnetBytes) { + if (desiredPrefix >= 8) { + return new IPv4Subnet("10.0.0.0/" + desiredPrefix); + } else { + return null; + } + } + // If we are between A and B, shift to B + if (result.subnetBytes > privateA.subnetBroadcastAddressBytes && result.subnetBroadcastAddressBytes < privateB.subnetBytes) { + if (desiredPrefix >= 12) { + return new IPv4Subnet("172.16.0.0/" + desiredPrefix); + } else { + return null; + } + } + + // If we are between B and C, shift to C + if (result.subnetBytes > privateB.subnetBroadcastAddressBytes && result.subnetBroadcastAddressBytes < privateC.subnetBytes) { + if (desiredPrefix >= 16) { + return new IPv4Subnet("192.168.0.0/" + desiredPrefix); + } else { + return null; + } + } + } + } + } else { + return result; + } + } + } + } + + private _validatePrefix() { + if (this.prefix < 1 || this.prefix > 32) { + throw new ArgumentError("Prefix", "The subnet prefix must be between 1 and 32") + } + } + + private _calculateSubnetByteValues() { + this.subnetNetMaskBytes = (0xffffffff << (32 - this.prefix)) >>> 0; + this.subnetMaskBytes = (this.subnetNetMaskBytes & this.subnetBytes) >>> 0; + this.subnetBroadcastAddressBytes = (((this.subnetNetMaskBytes ^ 0xffffffff) >>> 0) | this.subnetBytes) >>> 0; + } + } +} \ No newline at end of file diff --git a/src/arm/TemplateGenerator/libraries/String.ts b/src/arm/TemplateGenerator/libraries/String.ts new file mode 100644 index 0000000..0372a16 --- /dev/null +++ b/src/arm/TemplateGenerator/libraries/String.ts @@ -0,0 +1,77 @@ +/// + +enum StringComparison { + IgnoreCase +} + +// TODO: Move to String when TypeScript supports static extensions of built in types. +class StringEx { + public static equals(str1: string, str2: string, stringComparison?: StringComparison): boolean { + if (typeof str1 !== "string" || typeof str2 !== "string") { + return false; + } + + if (stringComparison === StringComparison.IgnoreCase) { + str1 = str1.toUpperCase(); + str2 = str2.toUpperCase(); + } + + return str1 === str2; + } + + public static isStringInArray(str: string, array: string[], stringComparison?: StringComparison): boolean { + if (typeof str !== "string" || !Array.isArray(array)) { + return false; + } + + return !!array.first((arrayStr: string) => { + return StringEx.equals(str, arrayStr, stringComparison); + }); + } + + public static startsWith(str: string, prefix: string, stringComparison?: StringComparison): boolean { + if (typeof str !== "string" || typeof prefix !== "string") { + return false; + } + + if (stringComparison === StringComparison.IgnoreCase) { + str = str.toUpperCase(); + prefix = prefix.toUpperCase(); + } + + return str.length >= prefix.length && str.indexOf(prefix) === 0; + } + + public static endsWith(str: string, suffix: string, stringComparison?: StringComparison): boolean { + if (typeof str !== "string" || typeof suffix !== "string") { + return false; + } + + if (stringComparison === StringComparison.IgnoreCase) { + str = str.toUpperCase(); + suffix = suffix.toUpperCase(); + } + + return str.length >= suffix.length && str.indexOf(suffix, str.length - suffix.length) !== -1; + } + + // A well-known format for defining Dictionary or StringMap in config. + // Use this function to parse it out. + // The format is: "key:value,key2:value2,key3:value3" + public static convertToStringMap(str: string): StringMap { + var result: StringMap = {}; + + str.split(",").forEach((map: string) => { + var split = map.split(":"); + + if (split.length !== 2) { + return; + } + + result[split[0]] = split[1]; + }); + + return result; + } +} + diff --git a/src/arm/TemplateGenerator/libraries/TemplateFactory.ts b/src/arm/TemplateGenerator/libraries/TemplateFactory.ts new file mode 100644 index 0000000..28621aa --- /dev/null +++ b/src/arm/TemplateGenerator/libraries/TemplateFactory.ts @@ -0,0 +1,72 @@ +/// +/// +/// + +module ExtensionCore.Csm { + "use strict"; + export class TemplateFactory { + private _template: DeploymentTemplate; + private _resources: Fragment[] = []; + + constructor() { + this._template = { + $schema: "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#", + contentVersion: "1.0.0.0", + parameters: {}, + resources: [] + }; + } + + public addFragment(fragment: Fragment) { + this._resources.push(fragment); + } + + public addResource(resource: DeploymentResource) { + this._template.resources.push(resource); + } + + public addParameter(name: string, param: DeploymentParamter) { + if (this._template.parameters[name]) { + throw new Error("Parameter {0} is already added".format(name)); + } + + this._template.parameters[name] = param; + } + + public addOutput(outputName: string, outputType: string, outputValue: string) { + if (!this._template.outputs) { + this._template.outputs = {}; + } + + this._template.outputs[outputName] = { + type: outputType, + value: outputValue + }; + } + + public generateTemplate() { + // Ensure that all the depends on resources are present + var resources: StringMap = {}; + this._resources.forEach((fragment) => { + resources[fragment.getDependsOnId()] = true; + this._template.resources.push(fragment.getResource()); + + for (var dependsOn in fragment.dependsOnIgnore) { + resources[dependsOn] = true; + } + }); + + this._template.resources.forEach((resource) => { + if (resource.dependsOn) { + resource.dependsOn.forEach((depends) => { + if (!resources[depends]) { + throw new Error("{0}/{1} depends on {2}, but it was not present in the template".format(resource.type, resource.name, depends)); + } + }); + } + }); + + return JSON.stringify(this._template); + } + } +} \ No newline at end of file diff --git a/src/arm/TemplateGenerator/libraries/jquery-2.1.0.js b/src/arm/TemplateGenerator/libraries/jquery-2.1.0.js new file mode 100644 index 0000000..1ce1415 --- /dev/null +++ b/src/arm/TemplateGenerator/libraries/jquery-2.1.0.js @@ -0,0 +1,9111 @@ +/*! + * jQuery JavaScript Library v2.1.0 + * http://jquery.com/ + * + * Includes Sizzle.js + * http://sizzlejs.com/ + * + * Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors + * Released under the MIT license + * http://jquery.org/license + * + * Date: 2014-01-23T21:10Z + */ + +(function( global, factory ) { + + if ( typeof module === "object" && typeof module.exports === "object" ) { + // For CommonJS and CommonJS-like environments where a proper window is present, + // execute the factory and get jQuery + // For environments that do not inherently posses a window with a document + // (such as Node.js), expose a jQuery-making factory as module.exports + // This accentuates the need for the creation of a real window + // e.g. var jQuery = require("jquery")(window); + // See ticket #14549 for more info + module.exports = global.document ? + factory( global, true ) : + function( w ) { + if ( !w.document ) { + throw new Error( "jQuery requires a window with a document" ); + } + return factory( w ); + }; + } else { + factory( global ); + } + +// Pass this if window is not defined yet +}(typeof window !== "undefined" ? window : this, function( window, noGlobal ) { + +// Can't do this because several apps including ASP.NET trace +// the stack via arguments.caller.callee and Firefox dies if +// you try to trace through "use strict" call chains. (#13335) +// Support: Firefox 18+ +// + +var arr = []; + +var slice = arr.slice; + +var concat = arr.concat; + +var push = arr.push; + +var indexOf = arr.indexOf; + +var class2type = {}; + +var toString = class2type.toString; + +var hasOwn = class2type.hasOwnProperty; + +var trim = "".trim; + +var support = {}; + + + +var + // Use the correct document accordingly with window argument (sandbox) + document = window.document, + + version = "2.1.0", + + // Define a local copy of jQuery + jQuery = function( selector, context ) { + // The jQuery object is actually just the init constructor 'enhanced' + // Need init if jQuery is called (just allow error to be thrown if not included) + return new jQuery.fn.init( selector, context ); + }, + + // Matches dashed string for camelizing + rmsPrefix = /^-ms-/, + rdashAlpha = /-([\da-z])/gi, + + // Used by jQuery.camelCase as callback to replace() + fcamelCase = function( all, letter ) { + return letter.toUpperCase(); + }; + +jQuery.fn = jQuery.prototype = { + // The current version of jQuery being used + jquery: version, + + constructor: jQuery, + + // Start with an empty selector + selector: "", + + // The default length of a jQuery object is 0 + length: 0, + + toArray: function() { + return slice.call( this ); + }, + + // Get the Nth element in the matched element set OR + // Get the whole matched element set as a clean array + get: function( num ) { + return num != null ? + + // Return a 'clean' array + ( num < 0 ? this[ num + this.length ] : this[ num ] ) : + + // Return just the object + slice.call( this ); + }, + + // Take an array of elements and push it onto the stack + // (returning the new matched element set) + pushStack: function( elems ) { + + // Build a new jQuery matched element set + var ret = jQuery.merge( this.constructor(), elems ); + + // Add the old object onto the stack (as a reference) + ret.prevObject = this; + ret.context = this.context; + + // Return the newly-formed element set + return ret; + }, + + // Execute a callback for every element in the matched set. + // (You can seed the arguments with an array of args, but this is + // only used internally.) + each: function( callback, args ) { + return jQuery.each( this, callback, args ); + }, + + map: function( callback ) { + return this.pushStack( jQuery.map(this, function( elem, i ) { + return callback.call( elem, i, elem ); + })); + }, + + slice: function() { + return this.pushStack( slice.apply( this, arguments ) ); + }, + + first: function() { + return this.eq( 0 ); + }, + + last: function() { + return this.eq( -1 ); + }, + + eq: function( i ) { + var len = this.length, + j = +i + ( i < 0 ? len : 0 ); + return this.pushStack( j >= 0 && j < len ? [ this[j] ] : [] ); + }, + + end: function() { + return this.prevObject || this.constructor(null); + }, + + // For internal use only. + // Behaves like an Array's method, not like a jQuery method. + push: push, + sort: arr.sort, + splice: arr.splice +}; + +jQuery.extend = jQuery.fn.extend = function() { + var options, name, src, copy, copyIsArray, clone, + target = arguments[0] || {}, + i = 1, + length = arguments.length, + deep = false; + + // Handle a deep copy situation + if ( typeof target === "boolean" ) { + deep = target; + + // skip the boolean and the target + target = arguments[ i ] || {}; + i++; + } + + // Handle case when target is a string or something (possible in deep copy) + if ( typeof target !== "object" && !jQuery.isFunction(target) ) { + target = {}; + } + + // extend jQuery itself if only one argument is passed + if ( i === length ) { + target = this; + i--; + } + + for ( ; i < length; i++ ) { + // Only deal with non-null/undefined values + if ( (options = arguments[ i ]) != null ) { + // Extend the base object + for ( name in options ) { + src = target[ name ]; + copy = options[ name ]; + + // Prevent never-ending loop + if ( target === copy ) { + continue; + } + + // Recurse if we're merging plain objects or arrays + if ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) { + if ( copyIsArray ) { + copyIsArray = false; + clone = src && jQuery.isArray(src) ? src : []; + + } else { + clone = src && jQuery.isPlainObject(src) ? src : {}; + } + + // Never move original objects, clone them + target[ name ] = jQuery.extend( deep, clone, copy ); + + // Don't bring in undefined values + } else if ( copy !== undefined ) { + target[ name ] = copy; + } + } + } + } + + // Return the modified object + return target; +}; + +jQuery.extend({ + // Unique for each copy of jQuery on the page + expando: "jQuery" + ( version + Math.random() ).replace( /\D/g, "" ), + + // Assume jQuery is ready without the ready module + isReady: true, + + error: function( msg ) { + throw new Error( msg ); + }, + + noop: function() {}, + + // See test/unit/core.js for details concerning isFunction. + // Since version 1.3, DOM methods and functions like alert + // aren't supported. They return false on IE (#2968). + isFunction: function( obj ) { + return jQuery.type(obj) === "function"; + }, + + isArray: Array.isArray, + + isWindow: function( obj ) { + return obj != null && obj === obj.window; + }, + + isNumeric: function( obj ) { + // parseFloat NaNs numeric-cast false positives (null|true|false|"") + // ...but misinterprets leading-number strings, particularly hex literals ("0x...") + // subtraction forces infinities to NaN + return obj - parseFloat( obj ) >= 0; + }, + + isPlainObject: function( obj ) { + // Not plain objects: + // - Any object or value whose internal [[Class]] property is not "[object Object]" + // - DOM nodes + // - window + if ( jQuery.type( obj ) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) { + return false; + } + + // Support: Firefox <20 + // The try/catch suppresses exceptions thrown when attempting to access + // the "constructor" property of certain host objects, ie. |window.location| + // https://bugzilla.mozilla.org/show_bug.cgi?id=814622 + try { + if ( obj.constructor && + !hasOwn.call( obj.constructor.prototype, "isPrototypeOf" ) ) { + return false; + } + } catch ( e ) { + return false; + } + + // If the function hasn't returned already, we're confident that + // |obj| is a plain object, created by {} or constructed with new Object + return true; + }, + + isEmptyObject: function( obj ) { + var name; + for ( name in obj ) { + return false; + } + return true; + }, + + type: function( obj ) { + if ( obj == null ) { + return obj + ""; + } + // Support: Android < 4.0, iOS < 6 (functionish RegExp) + return typeof obj === "object" || typeof obj === "function" ? + class2type[ toString.call(obj) ] || "object" : + typeof obj; + }, + + // Evaluates a script in a global context + globalEval: function( code ) { + var script, + indirect = eval; + + code = jQuery.trim( code ); + + if ( code ) { + // If the code includes a valid, prologue position + // strict mode pragma, execute code by injecting a + // script tag into the document. + if ( code.indexOf("use strict") === 1 ) { + script = document.createElement("script"); + script.text = code; + document.head.appendChild( script ).parentNode.removeChild( script ); + } else { + // Otherwise, avoid the DOM node creation, insertion + // and removal by using an indirect global eval + indirect( code ); + } + } + }, + + // Convert dashed to camelCase; used by the css and data modules + // Microsoft forgot to hump their vendor prefix (#9572) + camelCase: function( string ) { + return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase ); + }, + + nodeName: function( elem, name ) { + return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase(); + }, + + // args is for internal usage only + each: function( obj, callback, args ) { + var value, + i = 0, + length = obj.length, + isArray = isArraylike( obj ); + + if ( args ) { + if ( isArray ) { + for ( ; i < length; i++ ) { + value = callback.apply( obj[ i ], args ); + + if ( value === false ) { + break; + } + } + } else { + for ( i in obj ) { + value = callback.apply( obj[ i ], args ); + + if ( value === false ) { + break; + } + } + } + + // A special, fast, case for the most common use of each + } else { + if ( isArray ) { + for ( ; i < length; i++ ) { + value = callback.call( obj[ i ], i, obj[ i ] ); + + if ( value === false ) { + break; + } + } + } else { + for ( i in obj ) { + value = callback.call( obj[ i ], i, obj[ i ] ); + + if ( value === false ) { + break; + } + } + } + } + + return obj; + }, + + trim: function( text ) { + return text == null ? "" : trim.call( text ); + }, + + // results is for internal usage only + makeArray: function( arr, results ) { + var ret = results || []; + + if ( arr != null ) { + if ( isArraylike( Object(arr) ) ) { + jQuery.merge( ret, + typeof arr === "string" ? + [ arr ] : arr + ); + } else { + push.call( ret, arr ); + } + } + + return ret; + }, + + inArray: function( elem, arr, i ) { + return arr == null ? -1 : indexOf.call( arr, elem, i ); + }, + + merge: function( first, second ) { + var len = +second.length, + j = 0, + i = first.length; + + for ( ; j < len; j++ ) { + first[ i++ ] = second[ j ]; + } + + first.length = i; + + return first; + }, + + grep: function( elems, callback, invert ) { + var callbackInverse, + matches = [], + i = 0, + length = elems.length, + callbackExpect = !invert; + + // Go through the array, only saving the items + // that pass the validator function + for ( ; i < length; i++ ) { + callbackInverse = !callback( elems[ i ], i ); + if ( callbackInverse !== callbackExpect ) { + matches.push( elems[ i ] ); + } + } + + return matches; + }, + + // arg is for internal usage only + map: function( elems, callback, arg ) { + var value, + i = 0, + length = elems.length, + isArray = isArraylike( elems ), + ret = []; + + // Go through the array, translating each of the items to their new values + if ( isArray ) { + for ( ; i < length; i++ ) { + value = callback( elems[ i ], i, arg ); + + if ( value != null ) { + ret.push( value ); + } + } + + // Go through every key on the object, + } else { + for ( i in elems ) { + value = callback( elems[ i ], i, arg ); + + if ( value != null ) { + ret.push( value ); + } + } + } + + // Flatten any nested arrays + return concat.apply( [], ret ); + }, + + // A global GUID counter for objects + guid: 1, + + // Bind a function to a context, optionally partially applying any + // arguments. + proxy: function( fn, context ) { + var tmp, args, proxy; + + if ( typeof context === "string" ) { + tmp = fn[ context ]; + context = fn; + fn = tmp; + } + + // Quick check to determine if target is callable, in the spec + // this throws a TypeError, but we will just return undefined. + if ( !jQuery.isFunction( fn ) ) { + return undefined; + } + + // Simulated bind + args = slice.call( arguments, 2 ); + proxy = function() { + return fn.apply( context || this, args.concat( slice.call( arguments ) ) ); + }; + + // Set the guid of unique handler to the same of original handler, so it can be removed + proxy.guid = fn.guid = fn.guid || jQuery.guid++; + + return proxy; + }, + + now: Date.now, + + // jQuery.support is not used in Core but other projects attach their + // properties to it so it needs to exist. + support: support +}); + +// Populate the class2type map +jQuery.each("Boolean Number String Function Array Date RegExp Object Error".split(" "), function(i, name) { + class2type[ "[object " + name + "]" ] = name.toLowerCase(); +}); + +function isArraylike( obj ) { + var length = obj.length, + type = jQuery.type( obj ); + + if ( type === "function" || jQuery.isWindow( obj ) ) { + return false; + } + + if ( obj.nodeType === 1 && length ) { + return true; + } + + return type === "array" || length === 0 || + typeof length === "number" && length > 0 && ( length - 1 ) in obj; +} +var Sizzle = +/*! + * Sizzle CSS Selector Engine v1.10.16 + * http://sizzlejs.com/ + * + * Copyright 2013 jQuery Foundation, Inc. and other contributors + * Released under the MIT license + * http://jquery.org/license + * + * Date: 2014-01-13 + */ +(function( window ) { + +var i, + support, + Expr, + getText, + isXML, + compile, + outermostContext, + sortInput, + hasDuplicate, + + // Local document vars + setDocument, + document, + docElem, + documentIsHTML, + rbuggyQSA, + rbuggyMatches, + matches, + contains, + + // Instance-specific data + expando = "sizzle" + -(new Date()), + preferredDoc = window.document, + dirruns = 0, + done = 0, + classCache = createCache(), + tokenCache = createCache(), + compilerCache = createCache(), + sortOrder = function( a, b ) { + if ( a === b ) { + hasDuplicate = true; + } + return 0; + }, + + // General-purpose constants + strundefined = typeof undefined, + MAX_NEGATIVE = 1 << 31, + + // Instance methods + hasOwn = ({}).hasOwnProperty, + arr = [], + pop = arr.pop, + push_native = arr.push, + push = arr.push, + slice = arr.slice, + // Use a stripped-down indexOf if we can't use a native one + indexOf = arr.indexOf || function( elem ) { + var i = 0, + len = this.length; + for ( ; i < len; i++ ) { + if ( this[i] === elem ) { + return i; + } + } + return -1; + }, + + booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped", + + // Regular expressions + + // Whitespace characters http://www.w3.org/TR/css3-selectors/#whitespace + whitespace = "[\\x20\\t\\r\\n\\f]", + // http://www.w3.org/TR/css3-syntax/#characters + characterEncoding = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+", + + // Loosely modeled on CSS identifier characters + // An unquoted value should be a CSS identifier http://www.w3.org/TR/css3-selectors/#attribute-selectors + // Proper syntax: http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier + identifier = characterEncoding.replace( "w", "w#" ), + + // Acceptable operators http://www.w3.org/TR/selectors/#attribute-selectors + attributes = "\\[" + whitespace + "*(" + characterEncoding + ")" + whitespace + + "*(?:([*^$|!~]?=)" + whitespace + "*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|(" + identifier + ")|)|)" + whitespace + "*\\]", + + // Prefer arguments quoted, + // then not containing pseudos/brackets, + // then attribute selectors/non-parenthetical expressions, + // then anything else + // These preferences are here to reduce the number of selectors + // needing tokenize in the PSEUDO preFilter + pseudos = ":(" + characterEncoding + ")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|" + attributes.replace( 3, 8 ) + ")*)|.*)\\)|)", + + // Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter + rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ), + + rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ), + rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*" ), + + rattributeQuotes = new RegExp( "=" + whitespace + "*([^\\]'\"]*?)" + whitespace + "*\\]", "g" ), + + rpseudo = new RegExp( pseudos ), + ridentifier = new RegExp( "^" + identifier + "$" ), + + matchExpr = { + "ID": new RegExp( "^#(" + characterEncoding + ")" ), + "CLASS": new RegExp( "^\\.(" + characterEncoding + ")" ), + "TAG": new RegExp( "^(" + characterEncoding.replace( "w", "w*" ) + ")" ), + "ATTR": new RegExp( "^" + attributes ), + "PSEUDO": new RegExp( "^" + pseudos ), + "CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace + + "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace + + "*(\\d+)|))" + whitespace + "*\\)|)", "i" ), + "bool": new RegExp( "^(?:" + booleans + ")$", "i" ), + // For use in libraries implementing .is() + // We use this for POS matching in `select` + "needsContext": new RegExp( "^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + + whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" ) + }, + + rinputs = /^(?:input|select|textarea|button)$/i, + rheader = /^h\d$/i, + + rnative = /^[^{]+\{\s*\[native \w/, + + // Easily-parseable/retrievable ID or TAG or CLASS selectors + rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, + + rsibling = /[+~]/, + rescape = /'|\\/g, + + // CSS escapes http://www.w3.org/TR/CSS21/syndata.html#escaped-characters + runescape = new RegExp( "\\\\([\\da-f]{1,6}" + whitespace + "?|(" + whitespace + ")|.)", "ig" ), + funescape = function( _, escaped, escapedWhitespace ) { + var high = "0x" + escaped - 0x10000; + // NaN means non-codepoint + // Support: Firefox + // Workaround erroneous numeric interpretation of +"0x" + return high !== high || escapedWhitespace ? + escaped : + high < 0 ? + // BMP codepoint + String.fromCharCode( high + 0x10000 ) : + // Supplemental Plane codepoint (surrogate pair) + String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 ); + }; + +// Optimize for push.apply( _, NodeList ) +try { + push.apply( + (arr = slice.call( preferredDoc.childNodes )), + preferredDoc.childNodes + ); + // Support: Android<4.0 + // Detect silently failing push.apply + arr[ preferredDoc.childNodes.length ].nodeType; +} catch ( e ) { + push = { apply: arr.length ? + + // Leverage slice if possible + function( target, els ) { + push_native.apply( target, slice.call(els) ); + } : + + // Support: IE<9 + // Otherwise append directly + function( target, els ) { + var j = target.length, + i = 0; + // Can't trust NodeList.length + while ( (target[j++] = els[i++]) ) {} + target.length = j - 1; + } + }; +} + +function Sizzle( selector, context, results, seed ) { + var match, elem, m, nodeType, + // QSA vars + i, groups, old, nid, newContext, newSelector; + + if ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) { + setDocument( context ); + } + + context = context || document; + results = results || []; + + if ( !selector || typeof selector !== "string" ) { + return results; + } + + if ( (nodeType = context.nodeType) !== 1 && nodeType !== 9 ) { + return []; + } + + if ( documentIsHTML && !seed ) { + + // Shortcuts + if ( (match = rquickExpr.exec( selector )) ) { + // Speed-up: Sizzle("#ID") + if ( (m = match[1]) ) { + if ( nodeType === 9 ) { + elem = context.getElementById( m ); + // Check parentNode to catch when Blackberry 4.6 returns + // nodes that are no longer in the document (jQuery #6963) + if ( elem && elem.parentNode ) { + // Handle the case where IE, Opera, and Webkit return items + // by name instead of ID + if ( elem.id === m ) { + results.push( elem ); + return results; + } + } else { + return results; + } + } else { + // Context is not a document + if ( context.ownerDocument && (elem = context.ownerDocument.getElementById( m )) && + contains( context, elem ) && elem.id === m ) { + results.push( elem ); + return results; + } + } + + // Speed-up: Sizzle("TAG") + } else if ( match[2] ) { + push.apply( results, context.getElementsByTagName( selector ) ); + return results; + + // Speed-up: Sizzle(".CLASS") + } else if ( (m = match[3]) && support.getElementsByClassName && context.getElementsByClassName ) { + push.apply( results, context.getElementsByClassName( m ) ); + return results; + } + } + + // QSA path + if ( support.qsa && (!rbuggyQSA || !rbuggyQSA.test( selector )) ) { + nid = old = expando; + newContext = context; + newSelector = nodeType === 9 && selector; + + // qSA works strangely on Element-rooted queries + // We can work around this by specifying an extra ID on the root + // and working up from there (Thanks to Andrew Dupont for the technique) + // IE 8 doesn't work on object elements + if ( nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) { + groups = tokenize( selector ); + + if ( (old = context.getAttribute("id")) ) { + nid = old.replace( rescape, "\\$&" ); + } else { + context.setAttribute( "id", nid ); + } + nid = "[id='" + nid + "'] "; + + i = groups.length; + while ( i-- ) { + groups[i] = nid + toSelector( groups[i] ); + } + newContext = rsibling.test( selector ) && testContext( context.parentNode ) || context; + newSelector = groups.join(","); + } + + if ( newSelector ) { + try { + push.apply( results, + newContext.querySelectorAll( newSelector ) + ); + return results; + } catch(qsaError) { + } finally { + if ( !old ) { + context.removeAttribute("id"); + } + } + } + } + } + + // All others + return select( selector.replace( rtrim, "$1" ), context, results, seed ); +} + +/** + * Create key-value caches of limited size + * @returns {Function(string, Object)} Returns the Object data after storing it on itself with + * property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength) + * deleting the oldest entry + */ +function createCache() { + var keys = []; + + function cache( key, value ) { + // Use (key + " ") to avoid collision with native prototype properties (see Issue #157) + if ( keys.push( key + " " ) > Expr.cacheLength ) { + // Only keep the most recent entries + delete cache[ keys.shift() ]; + } + return (cache[ key + " " ] = value); + } + return cache; +} + +/** + * Mark a function for special use by Sizzle + * @param {Function} fn The function to mark + */ +function markFunction( fn ) { + fn[ expando ] = true; + return fn; +} + +/** + * Support testing using an element + * @param {Function} fn Passed the created div and expects a boolean result + */ +function assert( fn ) { + var div = document.createElement("div"); + + try { + return !!fn( div ); + } catch (e) { + return false; + } finally { + // Remove from its parent by default + if ( div.parentNode ) { + div.parentNode.removeChild( div ); + } + // release memory in IE + div = null; + } +} + +/** + * Adds the same handler for all of the specified attrs + * @param {String} attrs Pipe-separated list of attributes + * @param {Function} handler The method that will be applied + */ +function addHandle( attrs, handler ) { + var arr = attrs.split("|"), + i = attrs.length; + + while ( i-- ) { + Expr.attrHandle[ arr[i] ] = handler; + } +} + +/** + * Checks document order of two siblings + * @param {Element} a + * @param {Element} b + * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b + */ +function siblingCheck( a, b ) { + var cur = b && a, + diff = cur && a.nodeType === 1 && b.nodeType === 1 && + ( ~b.sourceIndex || MAX_NEGATIVE ) - + ( ~a.sourceIndex || MAX_NEGATIVE ); + + // Use IE sourceIndex if available on both nodes + if ( diff ) { + return diff; + } + + // Check if b follows a + if ( cur ) { + while ( (cur = cur.nextSibling) ) { + if ( cur === b ) { + return -1; + } + } + } + + return a ? 1 : -1; +} + +/** + * Returns a function to use in pseudos for input types + * @param {String} type + */ +function createInputPseudo( type ) { + return function( elem ) { + var name = elem.nodeName.toLowerCase(); + return name === "input" && elem.type === type; + }; +} + +/** + * Returns a function to use in pseudos for buttons + * @param {String} type + */ +function createButtonPseudo( type ) { + return function( elem ) { + var name = elem.nodeName.toLowerCase(); + return (name === "input" || name === "button") && elem.type === type; + }; +} + +/** + * Returns a function to use in pseudos for positionals + * @param {Function} fn + */ +function createPositionalPseudo( fn ) { + return markFunction(function( argument ) { + argument = +argument; + return markFunction(function( seed, matches ) { + var j, + matchIndexes = fn( [], seed.length, argument ), + i = matchIndexes.length; + + // Match elements found at the specified indexes + while ( i-- ) { + if ( seed[ (j = matchIndexes[i]) ] ) { + seed[j] = !(matches[j] = seed[j]); + } + } + }); + }); +} + +/** + * Checks a node for validity as a Sizzle context + * @param {Element|Object=} context + * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value + */ +function testContext( context ) { + return context && typeof context.getElementsByTagName !== strundefined && context; +} + +// Expose support vars for convenience +support = Sizzle.support = {}; + +/** + * Detects XML nodes + * @param {Element|Object} elem An element or a document + * @returns {Boolean} True iff elem is a non-HTML XML node + */ +isXML = Sizzle.isXML = function( elem ) { + // documentElement is verified for cases where it doesn't yet exist + // (such as loading iframes in IE - #4833) + var documentElement = elem && (elem.ownerDocument || elem).documentElement; + return documentElement ? documentElement.nodeName !== "HTML" : false; +}; + +/** + * Sets document-related variables once based on the current document + * @param {Element|Object} [doc] An element or document object to use to set the document + * @returns {Object} Returns the current document + */ +setDocument = Sizzle.setDocument = function( node ) { + var hasCompare, + doc = node ? node.ownerDocument || node : preferredDoc, + parent = doc.defaultView; + + // If no document and documentElement is available, return + if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) { + return document; + } + + // Set our document + document = doc; + docElem = doc.documentElement; + + // Support tests + documentIsHTML = !isXML( doc ); + + // Support: IE>8 + // If iframe document is assigned to "document" variable and if iframe has been reloaded, + // IE will throw "permission denied" error when accessing "document" variable, see jQuery #13936 + // IE6-8 do not support the defaultView property so parent will be undefined + if ( parent && parent !== parent.top ) { + // IE11 does not have attachEvent, so all must suffer + if ( parent.addEventListener ) { + parent.addEventListener( "unload", function() { + setDocument(); + }, false ); + } else if ( parent.attachEvent ) { + parent.attachEvent( "onunload", function() { + setDocument(); + }); + } + } + + /* Attributes + ---------------------------------------------------------------------- */ + + // Support: IE<8 + // Verify that getAttribute really returns attributes and not properties (excepting IE8 booleans) + support.attributes = assert(function( div ) { + div.className = "i"; + return !div.getAttribute("className"); + }); + + /* getElement(s)By* + ---------------------------------------------------------------------- */ + + // Check if getElementsByTagName("*") returns only elements + support.getElementsByTagName = assert(function( div ) { + div.appendChild( doc.createComment("") ); + return !div.getElementsByTagName("*").length; + }); + + // Check if getElementsByClassName can be trusted + support.getElementsByClassName = rnative.test( doc.getElementsByClassName ) && assert(function( div ) { + div.innerHTML = "
"; + + // Support: Safari<4 + // Catch class over-caching + div.firstChild.className = "i"; + // Support: Opera<10 + // Catch gEBCN failure to find non-leading classes + return div.getElementsByClassName("i").length === 2; + }); + + // Support: IE<10 + // Check if getElementById returns elements by name + // The broken getElementById methods don't pick up programatically-set names, + // so use a roundabout getElementsByName test + support.getById = assert(function( div ) { + docElem.appendChild( div ).id = expando; + return !doc.getElementsByName || !doc.getElementsByName( expando ).length; + }); + + // ID find and filter + if ( support.getById ) { + Expr.find["ID"] = function( id, context ) { + if ( typeof context.getElementById !== strundefined && documentIsHTML ) { + var m = context.getElementById( id ); + // Check parentNode to catch when Blackberry 4.6 returns + // nodes that are no longer in the document #6963 + return m && m.parentNode ? [m] : []; + } + }; + Expr.filter["ID"] = function( id ) { + var attrId = id.replace( runescape, funescape ); + return function( elem ) { + return elem.getAttribute("id") === attrId; + }; + }; + } else { + // Support: IE6/7 + // getElementById is not reliable as a find shortcut + delete Expr.find["ID"]; + + Expr.filter["ID"] = function( id ) { + var attrId = id.replace( runescape, funescape ); + return function( elem ) { + var node = typeof elem.getAttributeNode !== strundefined && elem.getAttributeNode("id"); + return node && node.value === attrId; + }; + }; + } + + // Tag + Expr.find["TAG"] = support.getElementsByTagName ? + function( tag, context ) { + if ( typeof context.getElementsByTagName !== strundefined ) { + return context.getElementsByTagName( tag ); + } + } : + function( tag, context ) { + var elem, + tmp = [], + i = 0, + results = context.getElementsByTagName( tag ); + + // Filter out possible comments + if ( tag === "*" ) { + while ( (elem = results[i++]) ) { + if ( elem.nodeType === 1 ) { + tmp.push( elem ); + } + } + + return tmp; + } + return results; + }; + + // Class + Expr.find["CLASS"] = support.getElementsByClassName && function( className, context ) { + if ( typeof context.getElementsByClassName !== strundefined && documentIsHTML ) { + return context.getElementsByClassName( className ); + } + }; + + /* QSA/matchesSelector + ---------------------------------------------------------------------- */ + + // QSA and matchesSelector support + + // matchesSelector(:active) reports false when true (IE9/Opera 11.5) + rbuggyMatches = []; + + // qSa(:focus) reports false when true (Chrome 21) + // We allow this because of a bug in IE8/9 that throws an error + // whenever `document.activeElement` is accessed on an iframe + // So, we allow :focus to pass through QSA all the time to avoid the IE error + // See http://bugs.jquery.com/ticket/13378 + rbuggyQSA = []; + + if ( (support.qsa = rnative.test( doc.querySelectorAll )) ) { + // Build QSA regex + // Regex strategy adopted from Diego Perini + assert(function( div ) { + // Select is set to empty string on purpose + // This is to test IE's treatment of not explicitly + // setting a boolean content attribute, + // since its presence should be enough + // http://bugs.jquery.com/ticket/12359 + div.innerHTML = ""; + + // Support: IE8, Opera 10-12 + // Nothing should be selected when empty strings follow ^= or $= or *= + if ( div.querySelectorAll("[t^='']").length ) { + rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" ); + } + + // Support: IE8 + // Boolean attributes and "value" are not treated correctly + if ( !div.querySelectorAll("[selected]").length ) { + rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" ); + } + + // Webkit/Opera - :checked should return selected option elements + // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked + // IE8 throws error here and will not see later tests + if ( !div.querySelectorAll(":checked").length ) { + rbuggyQSA.push(":checked"); + } + }); + + assert(function( div ) { + // Support: Windows 8 Native Apps + // The type and name attributes are restricted during .innerHTML assignment + var input = doc.createElement("input"); + input.setAttribute( "type", "hidden" ); + div.appendChild( input ).setAttribute( "name", "D" ); + + // Support: IE8 + // Enforce case-sensitivity of name attribute + if ( div.querySelectorAll("[name=d]").length ) { + rbuggyQSA.push( "name" + whitespace + "*[*^$|!~]?=" ); + } + + // FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled) + // IE8 throws error here and will not see later tests + if ( !div.querySelectorAll(":enabled").length ) { + rbuggyQSA.push( ":enabled", ":disabled" ); + } + + // Opera 10-11 does not throw on post-comma invalid pseudos + div.querySelectorAll("*,:x"); + rbuggyQSA.push(",.*:"); + }); + } + + if ( (support.matchesSelector = rnative.test( (matches = docElem.webkitMatchesSelector || + docElem.mozMatchesSelector || + docElem.oMatchesSelector || + docElem.msMatchesSelector) )) ) { + + assert(function( div ) { + // Check to see if it's possible to do matchesSelector + // on a disconnected node (IE 9) + support.disconnectedMatch = matches.call( div, "div" ); + + // This should fail with an exception + // Gecko does not error, returns false instead + matches.call( div, "[s!='']:x" ); + rbuggyMatches.push( "!=", pseudos ); + }); + } + + rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join("|") ); + rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join("|") ); + + /* Contains + ---------------------------------------------------------------------- */ + hasCompare = rnative.test( docElem.compareDocumentPosition ); + + // Element contains another + // Purposefully does not implement inclusive descendent + // As in, an element does not contain itself + contains = hasCompare || rnative.test( docElem.contains ) ? + function( a, b ) { + var adown = a.nodeType === 9 ? a.documentElement : a, + bup = b && b.parentNode; + return a === bup || !!( bup && bup.nodeType === 1 && ( + adown.contains ? + adown.contains( bup ) : + a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16 + )); + } : + function( a, b ) { + if ( b ) { + while ( (b = b.parentNode) ) { + if ( b === a ) { + return true; + } + } + } + return false; + }; + + /* Sorting + ---------------------------------------------------------------------- */ + + // Document order sorting + sortOrder = hasCompare ? + function( a, b ) { + + // Flag for duplicate removal + if ( a === b ) { + hasDuplicate = true; + return 0; + } + + // Sort on method existence if only one input has compareDocumentPosition + var compare = !a.compareDocumentPosition - !b.compareDocumentPosition; + if ( compare ) { + return compare; + } + + // Calculate position if both inputs belong to the same document + compare = ( a.ownerDocument || a ) === ( b.ownerDocument || b ) ? + a.compareDocumentPosition( b ) : + + // Otherwise we know they are disconnected + 1; + + // Disconnected nodes + if ( compare & 1 || + (!support.sortDetached && b.compareDocumentPosition( a ) === compare) ) { + + // Choose the first element that is related to our preferred document + if ( a === doc || a.ownerDocument === preferredDoc && contains(preferredDoc, a) ) { + return -1; + } + if ( b === doc || b.ownerDocument === preferredDoc && contains(preferredDoc, b) ) { + return 1; + } + + // Maintain original order + return sortInput ? + ( indexOf.call( sortInput, a ) - indexOf.call( sortInput, b ) ) : + 0; + } + + return compare & 4 ? -1 : 1; + } : + function( a, b ) { + // Exit early if the nodes are identical + if ( a === b ) { + hasDuplicate = true; + return 0; + } + + var cur, + i = 0, + aup = a.parentNode, + bup = b.parentNode, + ap = [ a ], + bp = [ b ]; + + // Parentless nodes are either documents or disconnected + if ( !aup || !bup ) { + return a === doc ? -1 : + b === doc ? 1 : + aup ? -1 : + bup ? 1 : + sortInput ? + ( indexOf.call( sortInput, a ) - indexOf.call( sortInput, b ) ) : + 0; + + // If the nodes are siblings, we can do a quick check + } else if ( aup === bup ) { + return siblingCheck( a, b ); + } + + // Otherwise we need full lists of their ancestors for comparison + cur = a; + while ( (cur = cur.parentNode) ) { + ap.unshift( cur ); + } + cur = b; + while ( (cur = cur.parentNode) ) { + bp.unshift( cur ); + } + + // Walk down the tree looking for a discrepancy + while ( ap[i] === bp[i] ) { + i++; + } + + return i ? + // Do a sibling check if the nodes have a common ancestor + siblingCheck( ap[i], bp[i] ) : + + // Otherwise nodes in our document sort first + ap[i] === preferredDoc ? -1 : + bp[i] === preferredDoc ? 1 : + 0; + }; + + return doc; +}; + +Sizzle.matches = function( expr, elements ) { + return Sizzle( expr, null, null, elements ); +}; + +Sizzle.matchesSelector = function( elem, expr ) { + // Set document vars if needed + if ( ( elem.ownerDocument || elem ) !== document ) { + setDocument( elem ); + } + + // Make sure that attribute selectors are quoted + expr = expr.replace( rattributeQuotes, "='$1']" ); + + if ( support.matchesSelector && documentIsHTML && + ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) && + ( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) { + + try { + var ret = matches.call( elem, expr ); + + // IE 9's matchesSelector returns false on disconnected nodes + if ( ret || support.disconnectedMatch || + // As well, disconnected nodes are said to be in a document + // fragment in IE 9 + elem.document && elem.document.nodeType !== 11 ) { + return ret; + } + } catch(e) {} + } + + return Sizzle( expr, document, null, [elem] ).length > 0; +}; + +Sizzle.contains = function( context, elem ) { + // Set document vars if needed + if ( ( context.ownerDocument || context ) !== document ) { + setDocument( context ); + } + return contains( context, elem ); +}; + +Sizzle.attr = function( elem, name ) { + // Set document vars if needed + if ( ( elem.ownerDocument || elem ) !== document ) { + setDocument( elem ); + } + + var fn = Expr.attrHandle[ name.toLowerCase() ], + // Don't get fooled by Object.prototype properties (jQuery #13807) + val = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ? + fn( elem, name, !documentIsHTML ) : + undefined; + + return val !== undefined ? + val : + support.attributes || !documentIsHTML ? + elem.getAttribute( name ) : + (val = elem.getAttributeNode(name)) && val.specified ? + val.value : + null; +}; + +Sizzle.error = function( msg ) { + throw new Error( "Syntax error, unrecognized expression: " + msg ); +}; + +/** + * Document sorting and removing duplicates + * @param {ArrayLike} results + */ +Sizzle.uniqueSort = function( results ) { + var elem, + duplicates = [], + j = 0, + i = 0; + + // Unless we *know* we can detect duplicates, assume their presence + hasDuplicate = !support.detectDuplicates; + sortInput = !support.sortStable && results.slice( 0 ); + results.sort( sortOrder ); + + if ( hasDuplicate ) { + while ( (elem = results[i++]) ) { + if ( elem === results[ i ] ) { + j = duplicates.push( i ); + } + } + while ( j-- ) { + results.splice( duplicates[ j ], 1 ); + } + } + + // Clear input after sorting to release objects + // See https://github.com/jquery/sizzle/pull/225 + sortInput = null; + + return results; +}; + +/** + * Utility function for retrieving the text value of an array of DOM nodes + * @param {Array|Element} elem + */ +getText = Sizzle.getText = function( elem ) { + var node, + ret = "", + i = 0, + nodeType = elem.nodeType; + + if ( !nodeType ) { + // If no nodeType, this is expected to be an array + while ( (node = elem[i++]) ) { + // Do not traverse comment nodes + ret += getText( node ); + } + } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) { + // Use textContent for elements + // innerText usage removed for consistency of new lines (jQuery #11153) + if ( typeof elem.textContent === "string" ) { + return elem.textContent; + } else { + // Traverse its children + for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { + ret += getText( elem ); + } + } + } else if ( nodeType === 3 || nodeType === 4 ) { + return elem.nodeValue; + } + // Do not include comment or processing instruction nodes + + return ret; +}; + +Expr = Sizzle.selectors = { + + // Can be adjusted by the user + cacheLength: 50, + + createPseudo: markFunction, + + match: matchExpr, + + attrHandle: {}, + + find: {}, + + relative: { + ">": { dir: "parentNode", first: true }, + " ": { dir: "parentNode" }, + "+": { dir: "previousSibling", first: true }, + "~": { dir: "previousSibling" } + }, + + preFilter: { + "ATTR": function( match ) { + match[1] = match[1].replace( runescape, funescape ); + + // Move the given value to match[3] whether quoted or unquoted + match[3] = ( match[4] || match[5] || "" ).replace( runescape, funescape ); + + if ( match[2] === "~=" ) { + match[3] = " " + match[3] + " "; + } + + return match.slice( 0, 4 ); + }, + + "CHILD": function( match ) { + /* matches from matchExpr["CHILD"] + 1 type (only|nth|...) + 2 what (child|of-type) + 3 argument (even|odd|\d*|\d*n([+-]\d+)?|...) + 4 xn-component of xn+y argument ([+-]?\d*n|) + 5 sign of xn-component + 6 x of xn-component + 7 sign of y-component + 8 y of y-component + */ + match[1] = match[1].toLowerCase(); + + if ( match[1].slice( 0, 3 ) === "nth" ) { + // nth-* requires argument + if ( !match[3] ) { + Sizzle.error( match[0] ); + } + + // numeric x and y parameters for Expr.filter.CHILD + // remember that false/true cast respectively to 0/1 + match[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === "even" || match[3] === "odd" ) ); + match[5] = +( ( match[7] + match[8] ) || match[3] === "odd" ); + + // other types prohibit arguments + } else if ( match[3] ) { + Sizzle.error( match[0] ); + } + + return match; + }, + + "PSEUDO": function( match ) { + var excess, + unquoted = !match[5] && match[2]; + + if ( matchExpr["CHILD"].test( match[0] ) ) { + return null; + } + + // Accept quoted arguments as-is + if ( match[3] && match[4] !== undefined ) { + match[2] = match[4]; + + // Strip excess characters from unquoted arguments + } else if ( unquoted && rpseudo.test( unquoted ) && + // Get excess from tokenize (recursively) + (excess = tokenize( unquoted, true )) && + // advance to the next closing parenthesis + (excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length) ) { + + // excess is a negative index + match[0] = match[0].slice( 0, excess ); + match[2] = unquoted.slice( 0, excess ); + } + + // Return only captures needed by the pseudo filter method (type and argument) + return match.slice( 0, 3 ); + } + }, + + filter: { + + "TAG": function( nodeNameSelector ) { + var nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase(); + return nodeNameSelector === "*" ? + function() { return true; } : + function( elem ) { + return elem.nodeName && elem.nodeName.toLowerCase() === nodeName; + }; + }, + + "CLASS": function( className ) { + var pattern = classCache[ className + " " ]; + + return pattern || + (pattern = new RegExp( "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" )) && + classCache( className, function( elem ) { + return pattern.test( typeof elem.className === "string" && elem.className || typeof elem.getAttribute !== strundefined && elem.getAttribute("class") || "" ); + }); + }, + + "ATTR": function( name, operator, check ) { + return function( elem ) { + var result = Sizzle.attr( elem, name ); + + if ( result == null ) { + return operator === "!="; + } + if ( !operator ) { + return true; + } + + result += ""; + + return operator === "=" ? result === check : + operator === "!=" ? result !== check : + operator === "^=" ? check && result.indexOf( check ) === 0 : + operator === "*=" ? check && result.indexOf( check ) > -1 : + operator === "$=" ? check && result.slice( -check.length ) === check : + operator === "~=" ? ( " " + result + " " ).indexOf( check ) > -1 : + operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" : + false; + }; + }, + + "CHILD": function( type, what, argument, first, last ) { + var simple = type.slice( 0, 3 ) !== "nth", + forward = type.slice( -4 ) !== "last", + ofType = what === "of-type"; + + return first === 1 && last === 0 ? + + // Shortcut for :nth-*(n) + function( elem ) { + return !!elem.parentNode; + } : + + function( elem, context, xml ) { + var cache, outerCache, node, diff, nodeIndex, start, + dir = simple !== forward ? "nextSibling" : "previousSibling", + parent = elem.parentNode, + name = ofType && elem.nodeName.toLowerCase(), + useCache = !xml && !ofType; + + if ( parent ) { + + // :(first|last|only)-(child|of-type) + if ( simple ) { + while ( dir ) { + node = elem; + while ( (node = node[ dir ]) ) { + if ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) { + return false; + } + } + // Reverse direction for :only-* (if we haven't yet done so) + start = dir = type === "only" && !start && "nextSibling"; + } + return true; + } + + start = [ forward ? parent.firstChild : parent.lastChild ]; + + // non-xml :nth-child(...) stores cache data on `parent` + if ( forward && useCache ) { + // Seek `elem` from a previously-cached index + outerCache = parent[ expando ] || (parent[ expando ] = {}); + cache = outerCache[ type ] || []; + nodeIndex = cache[0] === dirruns && cache[1]; + diff = cache[0] === dirruns && cache[2]; + node = nodeIndex && parent.childNodes[ nodeIndex ]; + + while ( (node = ++nodeIndex && node && node[ dir ] || + + // Fallback to seeking `elem` from the start + (diff = nodeIndex = 0) || start.pop()) ) { + + // When found, cache indexes on `parent` and break + if ( node.nodeType === 1 && ++diff && node === elem ) { + outerCache[ type ] = [ dirruns, nodeIndex, diff ]; + break; + } + } + + // Use previously-cached element index if available + } else if ( useCache && (cache = (elem[ expando ] || (elem[ expando ] = {}))[ type ]) && cache[0] === dirruns ) { + diff = cache[1]; + + // xml :nth-child(...) or :nth-last-child(...) or :nth(-last)?-of-type(...) + } else { + // Use the same loop as above to seek `elem` from the start + while ( (node = ++nodeIndex && node && node[ dir ] || + (diff = nodeIndex = 0) || start.pop()) ) { + + if ( ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) && ++diff ) { + // Cache the index of each encountered element + if ( useCache ) { + (node[ expando ] || (node[ expando ] = {}))[ type ] = [ dirruns, diff ]; + } + + if ( node === elem ) { + break; + } + } + } + } + + // Incorporate the offset, then check against cycle size + diff -= last; + return diff === first || ( diff % first === 0 && diff / first >= 0 ); + } + }; + }, + + "PSEUDO": function( pseudo, argument ) { + // pseudo-class names are case-insensitive + // http://www.w3.org/TR/selectors/#pseudo-classes + // Prioritize by case sensitivity in case custom pseudos are added with uppercase letters + // Remember that setFilters inherits from pseudos + var args, + fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] || + Sizzle.error( "unsupported pseudo: " + pseudo ); + + // The user may use createPseudo to indicate that + // arguments are needed to create the filter function + // just as Sizzle does + if ( fn[ expando ] ) { + return fn( argument ); + } + + // But maintain support for old signatures + if ( fn.length > 1 ) { + args = [ pseudo, pseudo, "", argument ]; + return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ? + markFunction(function( seed, matches ) { + var idx, + matched = fn( seed, argument ), + i = matched.length; + while ( i-- ) { + idx = indexOf.call( seed, matched[i] ); + seed[ idx ] = !( matches[ idx ] = matched[i] ); + } + }) : + function( elem ) { + return fn( elem, 0, args ); + }; + } + + return fn; + } + }, + + pseudos: { + // Potentially complex pseudos + "not": markFunction(function( selector ) { + // Trim the selector passed to compile + // to avoid treating leading and trailing + // spaces as combinators + var input = [], + results = [], + matcher = compile( selector.replace( rtrim, "$1" ) ); + + return matcher[ expando ] ? + markFunction(function( seed, matches, context, xml ) { + var elem, + unmatched = matcher( seed, null, xml, [] ), + i = seed.length; + + // Match elements unmatched by `matcher` + while ( i-- ) { + if ( (elem = unmatched[i]) ) { + seed[i] = !(matches[i] = elem); + } + } + }) : + function( elem, context, xml ) { + input[0] = elem; + matcher( input, null, xml, results ); + return !results.pop(); + }; + }), + + "has": markFunction(function( selector ) { + return function( elem ) { + return Sizzle( selector, elem ).length > 0; + }; + }), + + "contains": markFunction(function( text ) { + return function( elem ) { + return ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1; + }; + }), + + // "Whether an element is represented by a :lang() selector + // is based solely on the element's language value + // being equal to the identifier C, + // or beginning with the identifier C immediately followed by "-". + // The matching of C against the element's language value is performed case-insensitively. + // The identifier C does not have to be a valid language name." + // http://www.w3.org/TR/selectors/#lang-pseudo + "lang": markFunction( function( lang ) { + // lang value must be a valid identifier + if ( !ridentifier.test(lang || "") ) { + Sizzle.error( "unsupported lang: " + lang ); + } + lang = lang.replace( runescape, funescape ).toLowerCase(); + return function( elem ) { + var elemLang; + do { + if ( (elemLang = documentIsHTML ? + elem.lang : + elem.getAttribute("xml:lang") || elem.getAttribute("lang")) ) { + + elemLang = elemLang.toLowerCase(); + return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0; + } + } while ( (elem = elem.parentNode) && elem.nodeType === 1 ); + return false; + }; + }), + + // Miscellaneous + "target": function( elem ) { + var hash = window.location && window.location.hash; + return hash && hash.slice( 1 ) === elem.id; + }, + + "root": function( elem ) { + return elem === docElem; + }, + + "focus": function( elem ) { + return elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex); + }, + + // Boolean properties + "enabled": function( elem ) { + return elem.disabled === false; + }, + + "disabled": function( elem ) { + return elem.disabled === true; + }, + + "checked": function( elem ) { + // In CSS3, :checked should return both checked and selected elements + // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked + var nodeName = elem.nodeName.toLowerCase(); + return (nodeName === "input" && !!elem.checked) || (nodeName === "option" && !!elem.selected); + }, + + "selected": function( elem ) { + // Accessing this property makes selected-by-default + // options in Safari work properly + if ( elem.parentNode ) { + elem.parentNode.selectedIndex; + } + + return elem.selected === true; + }, + + // Contents + "empty": function( elem ) { + // http://www.w3.org/TR/selectors/#empty-pseudo + // :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5), + // but not by others (comment: 8; processing instruction: 7; etc.) + // nodeType < 6 works because attributes (2) do not appear as children + for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { + if ( elem.nodeType < 6 ) { + return false; + } + } + return true; + }, + + "parent": function( elem ) { + return !Expr.pseudos["empty"]( elem ); + }, + + // Element/input types + "header": function( elem ) { + return rheader.test( elem.nodeName ); + }, + + "input": function( elem ) { + return rinputs.test( elem.nodeName ); + }, + + "button": function( elem ) { + var name = elem.nodeName.toLowerCase(); + return name === "input" && elem.type === "button" || name === "button"; + }, + + "text": function( elem ) { + var attr; + return elem.nodeName.toLowerCase() === "input" && + elem.type === "text" && + + // Support: IE<8 + // New HTML5 attribute values (e.g., "search") appear with elem.type === "text" + ( (attr = elem.getAttribute("type")) == null || attr.toLowerCase() === "text" ); + }, + + // Position-in-collection + "first": createPositionalPseudo(function() { + return [ 0 ]; + }), + + "last": createPositionalPseudo(function( matchIndexes, length ) { + return [ length - 1 ]; + }), + + "eq": createPositionalPseudo(function( matchIndexes, length, argument ) { + return [ argument < 0 ? argument + length : argument ]; + }), + + "even": createPositionalPseudo(function( matchIndexes, length ) { + var i = 0; + for ( ; i < length; i += 2 ) { + matchIndexes.push( i ); + } + return matchIndexes; + }), + + "odd": createPositionalPseudo(function( matchIndexes, length ) { + var i = 1; + for ( ; i < length; i += 2 ) { + matchIndexes.push( i ); + } + return matchIndexes; + }), + + "lt": createPositionalPseudo(function( matchIndexes, length, argument ) { + var i = argument < 0 ? argument + length : argument; + for ( ; --i >= 0; ) { + matchIndexes.push( i ); + } + return matchIndexes; + }), + + "gt": createPositionalPseudo(function( matchIndexes, length, argument ) { + var i = argument < 0 ? argument + length : argument; + for ( ; ++i < length; ) { + matchIndexes.push( i ); + } + return matchIndexes; + }) + } +}; + +Expr.pseudos["nth"] = Expr.pseudos["eq"]; + +// Add button/input type pseudos +for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) { + Expr.pseudos[ i ] = createInputPseudo( i ); +} +for ( i in { submit: true, reset: true } ) { + Expr.pseudos[ i ] = createButtonPseudo( i ); +} + +// Easy API for creating new setFilters +function setFilters() {} +setFilters.prototype = Expr.filters = Expr.pseudos; +Expr.setFilters = new setFilters(); + +function tokenize( selector, parseOnly ) { + var matched, match, tokens, type, + soFar, groups, preFilters, + cached = tokenCache[ selector + " " ]; + + if ( cached ) { + return parseOnly ? 0 : cached.slice( 0 ); + } + + soFar = selector; + groups = []; + preFilters = Expr.preFilter; + + while ( soFar ) { + + // Comma and first run + if ( !matched || (match = rcomma.exec( soFar )) ) { + if ( match ) { + // Don't consume trailing commas as valid + soFar = soFar.slice( match[0].length ) || soFar; + } + groups.push( (tokens = []) ); + } + + matched = false; + + // Combinators + if ( (match = rcombinators.exec( soFar )) ) { + matched = match.shift(); + tokens.push({ + value: matched, + // Cast descendant combinators to space + type: match[0].replace( rtrim, " " ) + }); + soFar = soFar.slice( matched.length ); + } + + // Filters + for ( type in Expr.filter ) { + if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] || + (match = preFilters[ type ]( match ))) ) { + matched = match.shift(); + tokens.push({ + value: matched, + type: type, + matches: match + }); + soFar = soFar.slice( matched.length ); + } + } + + if ( !matched ) { + break; + } + } + + // Return the length of the invalid excess + // if we're just parsing + // Otherwise, throw an error or return tokens + return parseOnly ? + soFar.length : + soFar ? + Sizzle.error( selector ) : + // Cache the tokens + tokenCache( selector, groups ).slice( 0 ); +} + +function toSelector( tokens ) { + var i = 0, + len = tokens.length, + selector = ""; + for ( ; i < len; i++ ) { + selector += tokens[i].value; + } + return selector; +} + +function addCombinator( matcher, combinator, base ) { + var dir = combinator.dir, + checkNonElements = base && dir === "parentNode", + doneName = done++; + + return combinator.first ? + // Check against closest ancestor/preceding element + function( elem, context, xml ) { + while ( (elem = elem[ dir ]) ) { + if ( elem.nodeType === 1 || checkNonElements ) { + return matcher( elem, context, xml ); + } + } + } : + + // Check against all ancestor/preceding elements + function( elem, context, xml ) { + var oldCache, outerCache, + newCache = [ dirruns, doneName ]; + + // We can't set arbitrary data on XML nodes, so they don't benefit from dir caching + if ( xml ) { + while ( (elem = elem[ dir ]) ) { + if ( elem.nodeType === 1 || checkNonElements ) { + if ( matcher( elem, context, xml ) ) { + return true; + } + } + } + } else { + while ( (elem = elem[ dir ]) ) { + if ( elem.nodeType === 1 || checkNonElements ) { + outerCache = elem[ expando ] || (elem[ expando ] = {}); + if ( (oldCache = outerCache[ dir ]) && + oldCache[ 0 ] === dirruns && oldCache[ 1 ] === doneName ) { + + // Assign to newCache so results back-propagate to previous elements + return (newCache[ 2 ] = oldCache[ 2 ]); + } else { + // Reuse newcache so results back-propagate to previous elements + outerCache[ dir ] = newCache; + + // A match means we're done; a fail means we have to keep checking + if ( (newCache[ 2 ] = matcher( elem, context, xml )) ) { + return true; + } + } + } + } + } + }; +} + +function elementMatcher( matchers ) { + return matchers.length > 1 ? + function( elem, context, xml ) { + var i = matchers.length; + while ( i-- ) { + if ( !matchers[i]( elem, context, xml ) ) { + return false; + } + } + return true; + } : + matchers[0]; +} + +function condense( unmatched, map, filter, context, xml ) { + var elem, + newUnmatched = [], + i = 0, + len = unmatched.length, + mapped = map != null; + + for ( ; i < len; i++ ) { + if ( (elem = unmatched[i]) ) { + if ( !filter || filter( elem, context, xml ) ) { + newUnmatched.push( elem ); + if ( mapped ) { + map.push( i ); + } + } + } + } + + return newUnmatched; +} + +function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) { + if ( postFilter && !postFilter[ expando ] ) { + postFilter = setMatcher( postFilter ); + } + if ( postFinder && !postFinder[ expando ] ) { + postFinder = setMatcher( postFinder, postSelector ); + } + return markFunction(function( seed, results, context, xml ) { + var temp, i, elem, + preMap = [], + postMap = [], + preexisting = results.length, + + // Get initial elements from seed or context + elems = seed || multipleContexts( selector || "*", context.nodeType ? [ context ] : context, [] ), + + // Prefilter to get matcher input, preserving a map for seed-results synchronization + matcherIn = preFilter && ( seed || !selector ) ? + condense( elems, preMap, preFilter, context, xml ) : + elems, + + matcherOut = matcher ? + // If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results, + postFinder || ( seed ? preFilter : preexisting || postFilter ) ? + + // ...intermediate processing is necessary + [] : + + // ...otherwise use results directly + results : + matcherIn; + + // Find primary matches + if ( matcher ) { + matcher( matcherIn, matcherOut, context, xml ); + } + + // Apply postFilter + if ( postFilter ) { + temp = condense( matcherOut, postMap ); + postFilter( temp, [], context, xml ); + + // Un-match failing elements by moving them back to matcherIn + i = temp.length; + while ( i-- ) { + if ( (elem = temp[i]) ) { + matcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem); + } + } + } + + if ( seed ) { + if ( postFinder || preFilter ) { + if ( postFinder ) { + // Get the final matcherOut by condensing this intermediate into postFinder contexts + temp = []; + i = matcherOut.length; + while ( i-- ) { + if ( (elem = matcherOut[i]) ) { + // Restore matcherIn since elem is not yet a final match + temp.push( (matcherIn[i] = elem) ); + } + } + postFinder( null, (matcherOut = []), temp, xml ); + } + + // Move matched elements from seed to results to keep them synchronized + i = matcherOut.length; + while ( i-- ) { + if ( (elem = matcherOut[i]) && + (temp = postFinder ? indexOf.call( seed, elem ) : preMap[i]) > -1 ) { + + seed[temp] = !(results[temp] = elem); + } + } + } + + // Add elements to results, through postFinder if defined + } else { + matcherOut = condense( + matcherOut === results ? + matcherOut.splice( preexisting, matcherOut.length ) : + matcherOut + ); + if ( postFinder ) { + postFinder( null, results, matcherOut, xml ); + } else { + push.apply( results, matcherOut ); + } + } + }); +} + +function matcherFromTokens( tokens ) { + var checkContext, matcher, j, + len = tokens.length, + leadingRelative = Expr.relative[ tokens[0].type ], + implicitRelative = leadingRelative || Expr.relative[" "], + i = leadingRelative ? 1 : 0, + + // The foundational matcher ensures that elements are reachable from top-level context(s) + matchContext = addCombinator( function( elem ) { + return elem === checkContext; + }, implicitRelative, true ), + matchAnyContext = addCombinator( function( elem ) { + return indexOf.call( checkContext, elem ) > -1; + }, implicitRelative, true ), + matchers = [ function( elem, context, xml ) { + return ( !leadingRelative && ( xml || context !== outermostContext ) ) || ( + (checkContext = context).nodeType ? + matchContext( elem, context, xml ) : + matchAnyContext( elem, context, xml ) ); + } ]; + + for ( ; i < len; i++ ) { + if ( (matcher = Expr.relative[ tokens[i].type ]) ) { + matchers = [ addCombinator(elementMatcher( matchers ), matcher) ]; + } else { + matcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches ); + + // Return special upon seeing a positional matcher + if ( matcher[ expando ] ) { + // Find the next relative operator (if any) for proper handling + j = ++i; + for ( ; j < len; j++ ) { + if ( Expr.relative[ tokens[j].type ] ) { + break; + } + } + return setMatcher( + i > 1 && elementMatcher( matchers ), + i > 1 && toSelector( + // If the preceding token was a descendant combinator, insert an implicit any-element `*` + tokens.slice( 0, i - 1 ).concat({ value: tokens[ i - 2 ].type === " " ? "*" : "" }) + ).replace( rtrim, "$1" ), + matcher, + i < j && matcherFromTokens( tokens.slice( i, j ) ), + j < len && matcherFromTokens( (tokens = tokens.slice( j )) ), + j < len && toSelector( tokens ) + ); + } + matchers.push( matcher ); + } + } + + return elementMatcher( matchers ); +} + +function matcherFromGroupMatchers( elementMatchers, setMatchers ) { + var bySet = setMatchers.length > 0, + byElement = elementMatchers.length > 0, + superMatcher = function( seed, context, xml, results, outermost ) { + var elem, j, matcher, + matchedCount = 0, + i = "0", + unmatched = seed && [], + setMatched = [], + contextBackup = outermostContext, + // We must always have either seed elements or outermost context + elems = seed || byElement && Expr.find["TAG"]( "*", outermost ), + // Use integer dirruns iff this is the outermost matcher + dirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1), + len = elems.length; + + if ( outermost ) { + outermostContext = context !== document && context; + } + + // Add elements passing elementMatchers directly to results + // Keep `i` a string if there are no elements so `matchedCount` will be "00" below + // Support: IE<9, Safari + // Tolerate NodeList properties (IE: "length"; Safari: ) matching elements by id + for ( ; i !== len && (elem = elems[i]) != null; i++ ) { + if ( byElement && elem ) { + j = 0; + while ( (matcher = elementMatchers[j++]) ) { + if ( matcher( elem, context, xml ) ) { + results.push( elem ); + break; + } + } + if ( outermost ) { + dirruns = dirrunsUnique; + } + } + + // Track unmatched elements for set filters + if ( bySet ) { + // They will have gone through all possible matchers + if ( (elem = !matcher && elem) ) { + matchedCount--; + } + + // Lengthen the array for every element, matched or not + if ( seed ) { + unmatched.push( elem ); + } + } + } + + // Apply set filters to unmatched elements + matchedCount += i; + if ( bySet && i !== matchedCount ) { + j = 0; + while ( (matcher = setMatchers[j++]) ) { + matcher( unmatched, setMatched, context, xml ); + } + + if ( seed ) { + // Reintegrate element matches to eliminate the need for sorting + if ( matchedCount > 0 ) { + while ( i-- ) { + if ( !(unmatched[i] || setMatched[i]) ) { + setMatched[i] = pop.call( results ); + } + } + } + + // Discard index placeholder values to get only actual matches + setMatched = condense( setMatched ); + } + + // Add matches to results + push.apply( results, setMatched ); + + // Seedless set matches succeeding multiple successful matchers stipulate sorting + if ( outermost && !seed && setMatched.length > 0 && + ( matchedCount + setMatchers.length ) > 1 ) { + + Sizzle.uniqueSort( results ); + } + } + + // Override manipulation of globals by nested matchers + if ( outermost ) { + dirruns = dirrunsUnique; + outermostContext = contextBackup; + } + + return unmatched; + }; + + return bySet ? + markFunction( superMatcher ) : + superMatcher; +} + +compile = Sizzle.compile = function( selector, group /* Internal Use Only */ ) { + var i, + setMatchers = [], + elementMatchers = [], + cached = compilerCache[ selector + " " ]; + + if ( !cached ) { + // Generate a function of recursive functions that can be used to check each element + if ( !group ) { + group = tokenize( selector ); + } + i = group.length; + while ( i-- ) { + cached = matcherFromTokens( group[i] ); + if ( cached[ expando ] ) { + setMatchers.push( cached ); + } else { + elementMatchers.push( cached ); + } + } + + // Cache the compiled function + cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) ); + } + return cached; +}; + +function multipleContexts( selector, contexts, results ) { + var i = 0, + len = contexts.length; + for ( ; i < len; i++ ) { + Sizzle( selector, contexts[i], results ); + } + return results; +} + +function select( selector, context, results, seed ) { + var i, tokens, token, type, find, + match = tokenize( selector ); + + if ( !seed ) { + // Try to minimize operations if there is only one group + if ( match.length === 1 ) { + + // Take a shortcut and set the context if the root selector is an ID + tokens = match[0] = match[0].slice( 0 ); + if ( tokens.length > 2 && (token = tokens[0]).type === "ID" && + support.getById && context.nodeType === 9 && documentIsHTML && + Expr.relative[ tokens[1].type ] ) { + + context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0]; + if ( !context ) { + return results; + } + selector = selector.slice( tokens.shift().value.length ); + } + + // Fetch a seed set for right-to-left matching + i = matchExpr["needsContext"].test( selector ) ? 0 : tokens.length; + while ( i-- ) { + token = tokens[i]; + + // Abort if we hit a combinator + if ( Expr.relative[ (type = token.type) ] ) { + break; + } + if ( (find = Expr.find[ type ]) ) { + // Search, expanding context for leading sibling combinators + if ( (seed = find( + token.matches[0].replace( runescape, funescape ), + rsibling.test( tokens[0].type ) && testContext( context.parentNode ) || context + )) ) { + + // If seed is empty or no tokens remain, we can return early + tokens.splice( i, 1 ); + selector = seed.length && toSelector( tokens ); + if ( !selector ) { + push.apply( results, seed ); + return results; + } + + break; + } + } + } + } + } + + // Compile and execute a filtering function + // Provide `match` to avoid retokenization if we modified the selector above + compile( selector, match )( + seed, + context, + !documentIsHTML, + results, + rsibling.test( selector ) && testContext( context.parentNode ) || context + ); + return results; +} + +// One-time assignments + +// Sort stability +support.sortStable = expando.split("").sort( sortOrder ).join("") === expando; + +// Support: Chrome<14 +// Always assume duplicates if they aren't passed to the comparison function +support.detectDuplicates = !!hasDuplicate; + +// Initialize against the default document +setDocument(); + +// Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27) +// Detached nodes confoundingly follow *each other* +support.sortDetached = assert(function( div1 ) { + // Should return 1, but returns 4 (following) + return div1.compareDocumentPosition( document.createElement("div") ) & 1; +}); + +// Support: IE<8 +// Prevent attribute/property "interpolation" +// http://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx +if ( !assert(function( div ) { + div.innerHTML = ""; + return div.firstChild.getAttribute("href") === "#" ; +}) ) { + addHandle( "type|href|height|width", function( elem, name, isXML ) { + if ( !isXML ) { + return elem.getAttribute( name, name.toLowerCase() === "type" ? 1 : 2 ); + } + }); +} + +// Support: IE<9 +// Use defaultValue in place of getAttribute("value") +if ( !support.attributes || !assert(function( div ) { + div.innerHTML = ""; + div.firstChild.setAttribute( "value", "" ); + return div.firstChild.getAttribute( "value" ) === ""; +}) ) { + addHandle( "value", function( elem, name, isXML ) { + if ( !isXML && elem.nodeName.toLowerCase() === "input" ) { + return elem.defaultValue; + } + }); +} + +// Support: IE<9 +// Use getAttributeNode to fetch booleans when getAttribute lies +if ( !assert(function( div ) { + return div.getAttribute("disabled") == null; +}) ) { + addHandle( booleans, function( elem, name, isXML ) { + var val; + if ( !isXML ) { + return elem[ name ] === true ? name.toLowerCase() : + (val = elem.getAttributeNode( name )) && val.specified ? + val.value : + null; + } + }); +} + +return Sizzle; + +})( window ); + + + +jQuery.find = Sizzle; +jQuery.expr = Sizzle.selectors; +jQuery.expr[":"] = jQuery.expr.pseudos; +jQuery.unique = Sizzle.uniqueSort; +jQuery.text = Sizzle.getText; +jQuery.isXMLDoc = Sizzle.isXML; +jQuery.contains = Sizzle.contains; + + + +var rneedsContext = jQuery.expr.match.needsContext; + +var rsingleTag = (/^<(\w+)\s*\/?>(?:<\/\1>|)$/); + + + +var risSimple = /^.[^:#\[\.,]*$/; + +// Implement the identical functionality for filter and not +function winnow( elements, qualifier, not ) { + if ( jQuery.isFunction( qualifier ) ) { + return jQuery.grep( elements, function( elem, i ) { + /* jshint -W018 */ + return !!qualifier.call( elem, i, elem ) !== not; + }); + + } + + if ( qualifier.nodeType ) { + return jQuery.grep( elements, function( elem ) { + return ( elem === qualifier ) !== not; + }); + + } + + if ( typeof qualifier === "string" ) { + if ( risSimple.test( qualifier ) ) { + return jQuery.filter( qualifier, elements, not ); + } + + qualifier = jQuery.filter( qualifier, elements ); + } + + return jQuery.grep( elements, function( elem ) { + return ( indexOf.call( qualifier, elem ) >= 0 ) !== not; + }); +} + +jQuery.filter = function( expr, elems, not ) { + var elem = elems[ 0 ]; + + if ( not ) { + expr = ":not(" + expr + ")"; + } + + return elems.length === 1 && elem.nodeType === 1 ? + jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : [] : + jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) { + return elem.nodeType === 1; + })); +}; + +jQuery.fn.extend({ + find: function( selector ) { + var i, + len = this.length, + ret = [], + self = this; + + if ( typeof selector !== "string" ) { + return this.pushStack( jQuery( selector ).filter(function() { + for ( i = 0; i < len; i++ ) { + if ( jQuery.contains( self[ i ], this ) ) { + return true; + } + } + }) ); + } + + for ( i = 0; i < len; i++ ) { + jQuery.find( selector, self[ i ], ret ); + } + + // Needed because $( selector, context ) becomes $( context ).find( selector ) + ret = this.pushStack( len > 1 ? jQuery.unique( ret ) : ret ); + ret.selector = this.selector ? this.selector + " " + selector : selector; + return ret; + }, + filter: function( selector ) { + return this.pushStack( winnow(this, selector || [], false) ); + }, + not: function( selector ) { + return this.pushStack( winnow(this, selector || [], true) ); + }, + is: function( selector ) { + return !!winnow( + this, + + // If this is a positional/relative selector, check membership in the returned set + // so $("p:first").is("p:last") won't return true for a doc with two "p". + typeof selector === "string" && rneedsContext.test( selector ) ? + jQuery( selector ) : + selector || [], + false + ).length; + } +}); + + +// Initialize a jQuery object + + +// A central reference to the root jQuery(document) +var rootjQuery, + + // A simple way to check for HTML strings + // Prioritize #id over to avoid XSS via location.hash (#9521) + // Strict HTML recognition (#11290: must start with <) + rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/, + + init = jQuery.fn.init = function( selector, context ) { + var match, elem; + + // HANDLE: $(""), $(null), $(undefined), $(false) + if ( !selector ) { + return this; + } + + // Handle HTML strings + if ( typeof selector === "string" ) { + if ( selector[0] === "<" && selector[ selector.length - 1 ] === ">" && selector.length >= 3 ) { + // Assume that strings that start and end with <> are HTML and skip the regex check + match = [ null, selector, null ]; + + } else { + match = rquickExpr.exec( selector ); + } + + // Match html or make sure no context is specified for #id + if ( match && (match[1] || !context) ) { + + // HANDLE: $(html) -> $(array) + if ( match[1] ) { + context = context instanceof jQuery ? context[0] : context; + + // scripts is true for back-compat + // Intentionally let the error be thrown if parseHTML is not present + jQuery.merge( this, jQuery.parseHTML( + match[1], + context && context.nodeType ? context.ownerDocument || context : document, + true + ) ); + + // HANDLE: $(html, props) + if ( rsingleTag.test( match[1] ) && jQuery.isPlainObject( context ) ) { + for ( match in context ) { + // Properties of context are called as methods if possible + if ( jQuery.isFunction( this[ match ] ) ) { + this[ match ]( context[ match ] ); + + // ...and otherwise set as attributes + } else { + this.attr( match, context[ match ] ); + } + } + } + + return this; + + // HANDLE: $(#id) + } else { + elem = document.getElementById( match[2] ); + + // Check parentNode to catch when Blackberry 4.6 returns + // nodes that are no longer in the document #6963 + if ( elem && elem.parentNode ) { + // Inject the element directly into the jQuery object + this.length = 1; + this[0] = elem; + } + + this.context = document; + this.selector = selector; + return this; + } + + // HANDLE: $(expr, $(...)) + } else if ( !context || context.jquery ) { + return ( context || rootjQuery ).find( selector ); + + // HANDLE: $(expr, context) + // (which is just equivalent to: $(context).find(expr) + } else { + return this.constructor( context ).find( selector ); + } + + // HANDLE: $(DOMElement) + } else if ( selector.nodeType ) { + this.context = this[0] = selector; + this.length = 1; + return this; + + // HANDLE: $(function) + // Shortcut for document ready + } else if ( jQuery.isFunction( selector ) ) { + return typeof rootjQuery.ready !== "undefined" ? + rootjQuery.ready( selector ) : + // Execute immediately if ready is not present + selector( jQuery ); + } + + if ( selector.selector !== undefined ) { + this.selector = selector.selector; + this.context = selector.context; + } + + return jQuery.makeArray( selector, this ); + }; + +// Give the init function the jQuery prototype for later instantiation +init.prototype = jQuery.fn; + +// Initialize central reference +rootjQuery = jQuery( document ); + + +var rparentsprev = /^(?:parents|prev(?:Until|All))/, + // methods guaranteed to produce a unique set when starting from a unique set + guaranteedUnique = { + children: true, + contents: true, + next: true, + prev: true + }; + +jQuery.extend({ + dir: function( elem, dir, until ) { + var matched = [], + truncate = until !== undefined; + + while ( (elem = elem[ dir ]) && elem.nodeType !== 9 ) { + if ( elem.nodeType === 1 ) { + if ( truncate && jQuery( elem ).is( until ) ) { + break; + } + matched.push( elem ); + } + } + return matched; + }, + + sibling: function( n, elem ) { + var matched = []; + + for ( ; n; n = n.nextSibling ) { + if ( n.nodeType === 1 && n !== elem ) { + matched.push( n ); + } + } + + return matched; + } +}); + +jQuery.fn.extend({ + has: function( target ) { + var targets = jQuery( target, this ), + l = targets.length; + + return this.filter(function() { + var i = 0; + for ( ; i < l; i++ ) { + if ( jQuery.contains( this, targets[i] ) ) { + return true; + } + } + }); + }, + + closest: function( selectors, context ) { + var cur, + i = 0, + l = this.length, + matched = [], + pos = rneedsContext.test( selectors ) || typeof selectors !== "string" ? + jQuery( selectors, context || this.context ) : + 0; + + for ( ; i < l; i++ ) { + for ( cur = this[i]; cur && cur !== context; cur = cur.parentNode ) { + // Always skip document fragments + if ( cur.nodeType < 11 && (pos ? + pos.index(cur) > -1 : + + // Don't pass non-elements to Sizzle + cur.nodeType === 1 && + jQuery.find.matchesSelector(cur, selectors)) ) { + + matched.push( cur ); + break; + } + } + } + + return this.pushStack( matched.length > 1 ? jQuery.unique( matched ) : matched ); + }, + + // Determine the position of an element within + // the matched set of elements + index: function( elem ) { + + // No argument, return index in parent + if ( !elem ) { + return ( this[ 0 ] && this[ 0 ].parentNode ) ? this.first().prevAll().length : -1; + } + + // index in selector + if ( typeof elem === "string" ) { + return indexOf.call( jQuery( elem ), this[ 0 ] ); + } + + // Locate the position of the desired element + return indexOf.call( this, + + // If it receives a jQuery object, the first element is used + elem.jquery ? elem[ 0 ] : elem + ); + }, + + add: function( selector, context ) { + return this.pushStack( + jQuery.unique( + jQuery.merge( this.get(), jQuery( selector, context ) ) + ) + ); + }, + + addBack: function( selector ) { + return this.add( selector == null ? + this.prevObject : this.prevObject.filter(selector) + ); + } +}); + +function sibling( cur, dir ) { + while ( (cur = cur[dir]) && cur.nodeType !== 1 ) {} + return cur; +} + +jQuery.each({ + parent: function( elem ) { + var parent = elem.parentNode; + return parent && parent.nodeType !== 11 ? parent : null; + }, + parents: function( elem ) { + return jQuery.dir( elem, "parentNode" ); + }, + parentsUntil: function( elem, i, until ) { + return jQuery.dir( elem, "parentNode", until ); + }, + next: function( elem ) { + return sibling( elem, "nextSibling" ); + }, + prev: function( elem ) { + return sibling( elem, "previousSibling" ); + }, + nextAll: function( elem ) { + return jQuery.dir( elem, "nextSibling" ); + }, + prevAll: function( elem ) { + return jQuery.dir( elem, "previousSibling" ); + }, + nextUntil: function( elem, i, until ) { + return jQuery.dir( elem, "nextSibling", until ); + }, + prevUntil: function( elem, i, until ) { + return jQuery.dir( elem, "previousSibling", until ); + }, + siblings: function( elem ) { + return jQuery.sibling( ( elem.parentNode || {} ).firstChild, elem ); + }, + children: function( elem ) { + return jQuery.sibling( elem.firstChild ); + }, + contents: function( elem ) { + return elem.contentDocument || jQuery.merge( [], elem.childNodes ); + } +}, function( name, fn ) { + jQuery.fn[ name ] = function( until, selector ) { + var matched = jQuery.map( this, fn, until ); + + if ( name.slice( -5 ) !== "Until" ) { + selector = until; + } + + if ( selector && typeof selector === "string" ) { + matched = jQuery.filter( selector, matched ); + } + + if ( this.length > 1 ) { + // Remove duplicates + if ( !guaranteedUnique[ name ] ) { + jQuery.unique( matched ); + } + + // Reverse order for parents* and prev-derivatives + if ( rparentsprev.test( name ) ) { + matched.reverse(); + } + } + + return this.pushStack( matched ); + }; +}); +var rnotwhite = (/\S+/g); + + + +// String to Object options format cache +var optionsCache = {}; + +// Convert String-formatted options into Object-formatted ones and store in cache +function createOptions( options ) { + var object = optionsCache[ options ] = {}; + jQuery.each( options.match( rnotwhite ) || [], function( _, flag ) { + object[ flag ] = true; + }); + return object; +} + +/* + * Create a callback list using the following parameters: + * + * options: an optional list of space-separated options that will change how + * the callback list behaves or a more traditional option object + * + * By default a callback list will act like an event callback list and can be + * "fired" multiple times. + * + * Possible options: + * + * once: will ensure the callback list can only be fired once (like a Deferred) + * + * memory: will keep track of previous values and will call any callback added + * after the list has been fired right away with the latest "memorized" + * values (like a Deferred) + * + * unique: will ensure a callback can only be added once (no duplicate in the list) + * + * stopOnFalse: interrupt callings when a callback returns false + * + */ +jQuery.Callbacks = function( options ) { + + // Convert options from String-formatted to Object-formatted if needed + // (we check in cache first) + options = typeof options === "string" ? + ( optionsCache[ options ] || createOptions( options ) ) : + jQuery.extend( {}, options ); + + var // Last fire value (for non-forgettable lists) + memory, + // Flag to know if list was already fired + fired, + // Flag to know if list is currently firing + firing, + // First callback to fire (used internally by add and fireWith) + firingStart, + // End of the loop when firing + firingLength, + // Index of currently firing callback (modified by remove if needed) + firingIndex, + // Actual callback list + list = [], + // Stack of fire calls for repeatable lists + stack = !options.once && [], + // Fire callbacks + fire = function( data ) { + memory = options.memory && data; + fired = true; + firingIndex = firingStart || 0; + firingStart = 0; + firingLength = list.length; + firing = true; + for ( ; list && firingIndex < firingLength; firingIndex++ ) { + if ( list[ firingIndex ].apply( data[ 0 ], data[ 1 ] ) === false && options.stopOnFalse ) { + memory = false; // To prevent further calls using add + break; + } + } + firing = false; + if ( list ) { + if ( stack ) { + if ( stack.length ) { + fire( stack.shift() ); + } + } else if ( memory ) { + list = []; + } else { + self.disable(); + } + } + }, + // Actual Callbacks object + self = { + // Add a callback or a collection of callbacks to the list + add: function() { + if ( list ) { + // First, we save the current length + var start = list.length; + (function add( args ) { + jQuery.each( args, function( _, arg ) { + var type = jQuery.type( arg ); + if ( type === "function" ) { + if ( !options.unique || !self.has( arg ) ) { + list.push( arg ); + } + } else if ( arg && arg.length && type !== "string" ) { + // Inspect recursively + add( arg ); + } + }); + })( arguments ); + // Do we need to add the callbacks to the + // current firing batch? + if ( firing ) { + firingLength = list.length; + // With memory, if we're not firing then + // we should call right away + } else if ( memory ) { + firingStart = start; + fire( memory ); + } + } + return this; + }, + // Remove a callback from the list + remove: function() { + if ( list ) { + jQuery.each( arguments, function( _, arg ) { + var index; + while ( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) { + list.splice( index, 1 ); + // Handle firing indexes + if ( firing ) { + if ( index <= firingLength ) { + firingLength--; + } + if ( index <= firingIndex ) { + firingIndex--; + } + } + } + }); + } + return this; + }, + // Check if a given callback is in the list. + // If no argument is given, return whether or not list has callbacks attached. + has: function( fn ) { + return fn ? jQuery.inArray( fn, list ) > -1 : !!( list && list.length ); + }, + // Remove all callbacks from the list + empty: function() { + list = []; + firingLength = 0; + return this; + }, + // Have the list do nothing anymore + disable: function() { + list = stack = memory = undefined; + return this; + }, + // Is it disabled? + disabled: function() { + return !list; + }, + // Lock the list in its current state + lock: function() { + stack = undefined; + if ( !memory ) { + self.disable(); + } + return this; + }, + // Is it locked? + locked: function() { + return !stack; + }, + // Call all callbacks with the given context and arguments + fireWith: function( context, args ) { + if ( list && ( !fired || stack ) ) { + args = args || []; + args = [ context, args.slice ? args.slice() : args ]; + if ( firing ) { + stack.push( args ); + } else { + fire( args ); + } + } + return this; + }, + // Call all the callbacks with the given arguments + fire: function() { + self.fireWith( this, arguments ); + return this; + }, + // To know if the callbacks have already been called at least once + fired: function() { + return !!fired; + } + }; + + return self; +}; + + +jQuery.extend({ + + Deferred: function( func ) { + var tuples = [ + // action, add listener, listener list, final state + [ "resolve", "done", jQuery.Callbacks("once memory"), "resolved" ], + [ "reject", "fail", jQuery.Callbacks("once memory"), "rejected" ], + [ "notify", "progress", jQuery.Callbacks("memory") ] + ], + state = "pending", + promise = { + state: function() { + return state; + }, + always: function() { + deferred.done( arguments ).fail( arguments ); + return this; + }, + then: function( /* fnDone, fnFail, fnProgress */ ) { + var fns = arguments; + return jQuery.Deferred(function( newDefer ) { + jQuery.each( tuples, function( i, tuple ) { + var fn = jQuery.isFunction( fns[ i ] ) && fns[ i ]; + // deferred[ done | fail | progress ] for forwarding actions to newDefer + deferred[ tuple[1] ](function() { + var returned = fn && fn.apply( this, arguments ); + if ( returned && jQuery.isFunction( returned.promise ) ) { + returned.promise() + .done( newDefer.resolve ) + .fail( newDefer.reject ) + .progress( newDefer.notify ); + } else { + newDefer[ tuple[ 0 ] + "With" ]( this === promise ? newDefer.promise() : this, fn ? [ returned ] : arguments ); + } + }); + }); + fns = null; + }).promise(); + }, + // Get a promise for this deferred + // If obj is provided, the promise aspect is added to the object + promise: function( obj ) { + return obj != null ? jQuery.extend( obj, promise ) : promise; + } + }, + deferred = {}; + + // Keep pipe for back-compat + promise.pipe = promise.then; + + // Add list-specific methods + jQuery.each( tuples, function( i, tuple ) { + var list = tuple[ 2 ], + stateString = tuple[ 3 ]; + + // promise[ done | fail | progress ] = list.add + promise[ tuple[1] ] = list.add; + + // Handle state + if ( stateString ) { + list.add(function() { + // state = [ resolved | rejected ] + state = stateString; + + // [ reject_list | resolve_list ].disable; progress_list.lock + }, tuples[ i ^ 1 ][ 2 ].disable, tuples[ 2 ][ 2 ].lock ); + } + + // deferred[ resolve | reject | notify ] + deferred[ tuple[0] ] = function() { + deferred[ tuple[0] + "With" ]( this === deferred ? promise : this, arguments ); + return this; + }; + deferred[ tuple[0] + "With" ] = list.fireWith; + }); + + // Make the deferred a promise + promise.promise( deferred ); + + // Call given func if any + if ( func ) { + func.call( deferred, deferred ); + } + + // All done! + return deferred; + }, + + // Deferred helper + when: function( subordinate /* , ..., subordinateN */ ) { + var i = 0, + resolveValues = slice.call( arguments ), + length = resolveValues.length, + + // the count of uncompleted subordinates + remaining = length !== 1 || ( subordinate && jQuery.isFunction( subordinate.promise ) ) ? length : 0, + + // the master Deferred. If resolveValues consist of only a single Deferred, just use that. + deferred = remaining === 1 ? subordinate : jQuery.Deferred(), + + // Update function for both resolve and progress values + updateFunc = function( i, contexts, values ) { + return function( value ) { + contexts[ i ] = this; + values[ i ] = arguments.length > 1 ? slice.call( arguments ) : value; + if ( values === progressValues ) { + deferred.notifyWith( contexts, values ); + } else if ( !( --remaining ) ) { + deferred.resolveWith( contexts, values ); + } + }; + }, + + progressValues, progressContexts, resolveContexts; + + // add listeners to Deferred subordinates; treat others as resolved + if ( length > 1 ) { + progressValues = new Array( length ); + progressContexts = new Array( length ); + resolveContexts = new Array( length ); + for ( ; i < length; i++ ) { + if ( resolveValues[ i ] && jQuery.isFunction( resolveValues[ i ].promise ) ) { + resolveValues[ i ].promise() + .done( updateFunc( i, resolveContexts, resolveValues ) ) + .fail( deferred.reject ) + .progress( updateFunc( i, progressContexts, progressValues ) ); + } else { + --remaining; + } + } + } + + // if we're not waiting on anything, resolve the master + if ( !remaining ) { + deferred.resolveWith( resolveContexts, resolveValues ); + } + + return deferred.promise(); + } +}); + + +// The deferred used on DOM ready +var readyList; + +jQuery.fn.ready = function( fn ) { + // Add the callback + jQuery.ready.promise().done( fn ); + + return this; +}; + +jQuery.extend({ + // Is the DOM ready to be used? Set to true once it occurs. + isReady: false, + + // A counter to track how many items to wait for before + // the ready event fires. See #6781 + readyWait: 1, + + // Hold (or release) the ready event + holdReady: function( hold ) { + if ( hold ) { + jQuery.readyWait++; + } else { + jQuery.ready( true ); + } + }, + + // Handle when the DOM is ready + ready: function( wait ) { + + // Abort if there are pending holds or we're already ready + if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) { + return; + } + + // Remember that the DOM is ready + jQuery.isReady = true; + + // If a normal DOM Ready event fired, decrement, and wait if need be + if ( wait !== true && --jQuery.readyWait > 0 ) { + return; + } + + // If there are functions bound, to execute + readyList.resolveWith( document, [ jQuery ] ); + + // Trigger any bound ready events + if ( jQuery.fn.trigger ) { + jQuery( document ).trigger("ready").off("ready"); + } + } +}); + +/** + * The ready event handler and self cleanup method + */ +function completed() { + document.removeEventListener( "DOMContentLoaded", completed, false ); + window.removeEventListener( "load", completed, false ); + jQuery.ready(); +} + +jQuery.ready.promise = function( obj ) { + if ( !readyList ) { + + readyList = jQuery.Deferred(); + + // Catch cases where $(document).ready() is called after the browser event has already occurred. + // we once tried to use readyState "interactive" here, but it caused issues like the one + // discovered by ChrisS here: http://bugs.jquery.com/ticket/12282#comment:15 + if ( document.readyState === "complete" ) { + // Handle it asynchronously to allow scripts the opportunity to delay ready + setTimeout( jQuery.ready ); + + } else { + + // Use the handy event callback + document.addEventListener( "DOMContentLoaded", completed, false ); + + // A fallback to window.onload, that will always work + window.addEventListener( "load", completed, false ); + } + } + return readyList.promise( obj ); +}; + +// Kick off the DOM ready check even if the user does not +jQuery.ready.promise(); + + + + +// Multifunctional method to get and set values of a collection +// The value/s can optionally be executed if it's a function +var access = jQuery.access = function( elems, fn, key, value, chainable, emptyGet, raw ) { + var i = 0, + len = elems.length, + bulk = key == null; + + // Sets many values + if ( jQuery.type( key ) === "object" ) { + chainable = true; + for ( i in key ) { + jQuery.access( elems, fn, i, key[i], true, emptyGet, raw ); + } + + // Sets one value + } else if ( value !== undefined ) { + chainable = true; + + if ( !jQuery.isFunction( value ) ) { + raw = true; + } + + if ( bulk ) { + // Bulk operations run against the entire set + if ( raw ) { + fn.call( elems, value ); + fn = null; + + // ...except when executing function values + } else { + bulk = fn; + fn = function( elem, key, value ) { + return bulk.call( jQuery( elem ), value ); + }; + } + } + + if ( fn ) { + for ( ; i < len; i++ ) { + fn( elems[i], key, raw ? value : value.call( elems[i], i, fn( elems[i], key ) ) ); + } + } + } + + return chainable ? + elems : + + // Gets + bulk ? + fn.call( elems ) : + len ? fn( elems[0], key ) : emptyGet; +}; + + +/** + * Determines whether an object can have data + */ +jQuery.acceptData = function( owner ) { + // Accepts only: + // - Node + // - Node.ELEMENT_NODE + // - Node.DOCUMENT_NODE + // - Object + // - Any + /* jshint -W018 */ + return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType ); +}; + + +function Data() { + // Support: Android < 4, + // Old WebKit does not have Object.preventExtensions/freeze method, + // return new empty object instead with no [[set]] accessor + Object.defineProperty( this.cache = {}, 0, { + get: function() { + return {}; + } + }); + + this.expando = jQuery.expando + Math.random(); +} + +Data.uid = 1; +Data.accepts = jQuery.acceptData; + +Data.prototype = { + key: function( owner ) { + // We can accept data for non-element nodes in modern browsers, + // but we should not, see #8335. + // Always return the key for a frozen object. + if ( !Data.accepts( owner ) ) { + return 0; + } + + var descriptor = {}, + // Check if the owner object already has a cache key + unlock = owner[ this.expando ]; + + // If not, create one + if ( !unlock ) { + unlock = Data.uid++; + + // Secure it in a non-enumerable, non-writable property + try { + descriptor[ this.expando ] = { value: unlock }; + Object.defineProperties( owner, descriptor ); + + // Support: Android < 4 + // Fallback to a less secure definition + } catch ( e ) { + descriptor[ this.expando ] = unlock; + jQuery.extend( owner, descriptor ); + } + } + + // Ensure the cache object + if ( !this.cache[ unlock ] ) { + this.cache[ unlock ] = {}; + } + + return unlock; + }, + set: function( owner, data, value ) { + var prop, + // There may be an unlock assigned to this node, + // if there is no entry for this "owner", create one inline + // and set the unlock as though an owner entry had always existed + unlock = this.key( owner ), + cache = this.cache[ unlock ]; + + // Handle: [ owner, key, value ] args + if ( typeof data === "string" ) { + cache[ data ] = value; + + // Handle: [ owner, { properties } ] args + } else { + // Fresh assignments by object are shallow copied + if ( jQuery.isEmptyObject( cache ) ) { + jQuery.extend( this.cache[ unlock ], data ); + // Otherwise, copy the properties one-by-one to the cache object + } else { + for ( prop in data ) { + cache[ prop ] = data[ prop ]; + } + } + } + return cache; + }, + get: function( owner, key ) { + // Either a valid cache is found, or will be created. + // New caches will be created and the unlock returned, + // allowing direct access to the newly created + // empty data object. A valid owner object must be provided. + var cache = this.cache[ this.key( owner ) ]; + + return key === undefined ? + cache : cache[ key ]; + }, + access: function( owner, key, value ) { + var stored; + // In cases where either: + // + // 1. No key was specified + // 2. A string key was specified, but no value provided + // + // Take the "read" path and allow the get method to determine + // which value to return, respectively either: + // + // 1. The entire cache object + // 2. The data stored at the key + // + if ( key === undefined || + ((key && typeof key === "string") && value === undefined) ) { + + stored = this.get( owner, key ); + + return stored !== undefined ? + stored : this.get( owner, jQuery.camelCase(key) ); + } + + // [*]When the key is not a string, or both a key and value + // are specified, set or extend (existing objects) with either: + // + // 1. An object of properties + // 2. A key and value + // + this.set( owner, key, value ); + + // Since the "set" path can have two possible entry points + // return the expected data based on which path was taken[*] + return value !== undefined ? value : key; + }, + remove: function( owner, key ) { + var i, name, camel, + unlock = this.key( owner ), + cache = this.cache[ unlock ]; + + if ( key === undefined ) { + this.cache[ unlock ] = {}; + + } else { + // Support array or space separated string of keys + if ( jQuery.isArray( key ) ) { + // If "name" is an array of keys... + // When data is initially created, via ("key", "val") signature, + // keys will be converted to camelCase. + // Since there is no way to tell _how_ a key was added, remove + // both plain key and camelCase key. #12786 + // This will only penalize the array argument path. + name = key.concat( key.map( jQuery.camelCase ) ); + } else { + camel = jQuery.camelCase( key ); + // Try the string as a key before any manipulation + if ( key in cache ) { + name = [ key, camel ]; + } else { + // If a key with the spaces exists, use it. + // Otherwise, create an array by matching non-whitespace + name = camel; + name = name in cache ? + [ name ] : ( name.match( rnotwhite ) || [] ); + } + } + + i = name.length; + while ( i-- ) { + delete cache[ name[ i ] ]; + } + } + }, + hasData: function( owner ) { + return !jQuery.isEmptyObject( + this.cache[ owner[ this.expando ] ] || {} + ); + }, + discard: function( owner ) { + if ( owner[ this.expando ] ) { + delete this.cache[ owner[ this.expando ] ]; + } + } +}; +var data_priv = new Data(); + +var data_user = new Data(); + + + +/* + Implementation Summary + + 1. Enforce API surface and semantic compatibility with 1.9.x branch + 2. Improve the module's maintainability by reducing the storage + paths to a single mechanism. + 3. Use the same single mechanism to support "private" and "user" data. + 4. _Never_ expose "private" data to user code (TODO: Drop _data, _removeData) + 5. Avoid exposing implementation details on user objects (eg. expando properties) + 6. Provide a clear path for implementation upgrade to WeakMap in 2014 +*/ +var rbrace = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/, + rmultiDash = /([A-Z])/g; + +function dataAttr( elem, key, data ) { + var name; + + // If nothing was found internally, try to fetch any + // data from the HTML5 data-* attribute + if ( data === undefined && elem.nodeType === 1 ) { + name = "data-" + key.replace( rmultiDash, "-$1" ).toLowerCase(); + data = elem.getAttribute( name ); + + if ( typeof data === "string" ) { + try { + data = data === "true" ? true : + data === "false" ? false : + data === "null" ? null : + // Only convert to a number if it doesn't change the string + +data + "" === data ? +data : + rbrace.test( data ) ? jQuery.parseJSON( data ) : + data; + } catch( e ) {} + + // Make sure we set the data so it isn't changed later + data_user.set( elem, key, data ); + } else { + data = undefined; + } + } + return data; +} + +jQuery.extend({ + hasData: function( elem ) { + return data_user.hasData( elem ) || data_priv.hasData( elem ); + }, + + data: function( elem, name, data ) { + return data_user.access( elem, name, data ); + }, + + removeData: function( elem, name ) { + data_user.remove( elem, name ); + }, + + // TODO: Now that all calls to _data and _removeData have been replaced + // with direct calls to data_priv methods, these can be deprecated. + _data: function( elem, name, data ) { + return data_priv.access( elem, name, data ); + }, + + _removeData: function( elem, name ) { + data_priv.remove( elem, name ); + } +}); + +jQuery.fn.extend({ + data: function( key, value ) { + var i, name, data, + elem = this[ 0 ], + attrs = elem && elem.attributes; + + // Gets all values + if ( key === undefined ) { + if ( this.length ) { + data = data_user.get( elem ); + + if ( elem.nodeType === 1 && !data_priv.get( elem, "hasDataAttrs" ) ) { + i = attrs.length; + while ( i-- ) { + name = attrs[ i ].name; + + if ( name.indexOf( "data-" ) === 0 ) { + name = jQuery.camelCase( name.slice(5) ); + dataAttr( elem, name, data[ name ] ); + } + } + data_priv.set( elem, "hasDataAttrs", true ); + } + } + + return data; + } + + // Sets multiple values + if ( typeof key === "object" ) { + return this.each(function() { + data_user.set( this, key ); + }); + } + + return access( this, function( value ) { + var data, + camelKey = jQuery.camelCase( key ); + + // The calling jQuery object (element matches) is not empty + // (and therefore has an element appears at this[ 0 ]) and the + // `value` parameter was not undefined. An empty jQuery object + // will result in `undefined` for elem = this[ 0 ] which will + // throw an exception if an attempt to read a data cache is made. + if ( elem && value === undefined ) { + // Attempt to get data from the cache + // with the key as-is + data = data_user.get( elem, key ); + if ( data !== undefined ) { + return data; + } + + // Attempt to get data from the cache + // with the key camelized + data = data_user.get( elem, camelKey ); + if ( data !== undefined ) { + return data; + } + + // Attempt to "discover" the data in + // HTML5 custom data-* attrs + data = dataAttr( elem, camelKey, undefined ); + if ( data !== undefined ) { + return data; + } + + // We tried really hard, but the data doesn't exist. + return; + } + + // Set the data... + this.each(function() { + // First, attempt to store a copy or reference of any + // data that might've been store with a camelCased key. + var data = data_user.get( this, camelKey ); + + // For HTML5 data-* attribute interop, we have to + // store property names with dashes in a camelCase form. + // This might not apply to all properties...* + data_user.set( this, camelKey, value ); + + // *... In the case of properties that might _actually_ + // have dashes, we need to also store a copy of that + // unchanged property. + if ( key.indexOf("-") !== -1 && data !== undefined ) { + data_user.set( this, key, value ); + } + }); + }, null, value, arguments.length > 1, null, true ); + }, + + removeData: function( key ) { + return this.each(function() { + data_user.remove( this, key ); + }); + } +}); + + +jQuery.extend({ + queue: function( elem, type, data ) { + var queue; + + if ( elem ) { + type = ( type || "fx" ) + "queue"; + queue = data_priv.get( elem, type ); + + // Speed up dequeue by getting out quickly if this is just a lookup + if ( data ) { + if ( !queue || jQuery.isArray( data ) ) { + queue = data_priv.access( elem, type, jQuery.makeArray(data) ); + } else { + queue.push( data ); + } + } + return queue || []; + } + }, + + dequeue: function( elem, type ) { + type = type || "fx"; + + var queue = jQuery.queue( elem, type ), + startLength = queue.length, + fn = queue.shift(), + hooks = jQuery._queueHooks( elem, type ), + next = function() { + jQuery.dequeue( elem, type ); + }; + + // If the fx queue is dequeued, always remove the progress sentinel + if ( fn === "inprogress" ) { + fn = queue.shift(); + startLength--; + } + + if ( fn ) { + + // Add a progress sentinel to prevent the fx queue from being + // automatically dequeued + if ( type === "fx" ) { + queue.unshift( "inprogress" ); + } + + // clear up the last queue stop function + delete hooks.stop; + fn.call( elem, next, hooks ); + } + + if ( !startLength && hooks ) { + hooks.empty.fire(); + } + }, + + // not intended for public consumption - generates a queueHooks object, or returns the current one + _queueHooks: function( elem, type ) { + var key = type + "queueHooks"; + return data_priv.get( elem, key ) || data_priv.access( elem, key, { + empty: jQuery.Callbacks("once memory").add(function() { + data_priv.remove( elem, [ type + "queue", key ] ); + }) + }); + } +}); + +jQuery.fn.extend({ + queue: function( type, data ) { + var setter = 2; + + if ( typeof type !== "string" ) { + data = type; + type = "fx"; + setter--; + } + + if ( arguments.length < setter ) { + return jQuery.queue( this[0], type ); + } + + return data === undefined ? + this : + this.each(function() { + var queue = jQuery.queue( this, type, data ); + + // ensure a hooks for this queue + jQuery._queueHooks( this, type ); + + if ( type === "fx" && queue[0] !== "inprogress" ) { + jQuery.dequeue( this, type ); + } + }); + }, + dequeue: function( type ) { + return this.each(function() { + jQuery.dequeue( this, type ); + }); + }, + clearQueue: function( type ) { + return this.queue( type || "fx", [] ); + }, + // Get a promise resolved when queues of a certain type + // are emptied (fx is the type by default) + promise: function( type, obj ) { + var tmp, + count = 1, + defer = jQuery.Deferred(), + elements = this, + i = this.length, + resolve = function() { + if ( !( --count ) ) { + defer.resolveWith( elements, [ elements ] ); + } + }; + + if ( typeof type !== "string" ) { + obj = type; + type = undefined; + } + type = type || "fx"; + + while ( i-- ) { + tmp = data_priv.get( elements[ i ], type + "queueHooks" ); + if ( tmp && tmp.empty ) { + count++; + tmp.empty.add( resolve ); + } + } + resolve(); + return defer.promise( obj ); + } +}); +var pnum = (/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/).source; + +var cssExpand = [ "Top", "Right", "Bottom", "Left" ]; + +var isHidden = function( elem, el ) { + // isHidden might be called from jQuery#filter function; + // in that case, element will be second argument + elem = el || elem; + return jQuery.css( elem, "display" ) === "none" || !jQuery.contains( elem.ownerDocument, elem ); + }; + +var rcheckableType = (/^(?:checkbox|radio)$/i); + + + +(function() { + var fragment = document.createDocumentFragment(), + div = fragment.appendChild( document.createElement( "div" ) ); + + // #11217 - WebKit loses check when the name is after the checked attribute + div.innerHTML = ""; + + // Support: Safari 5.1, iOS 5.1, Android 4.x, Android 2.3 + // old WebKit doesn't clone checked state correctly in fragments + support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked; + + // Make sure textarea (and checkbox) defaultValue is properly cloned + // Support: IE9-IE11+ + div.innerHTML = ""; + support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue; +})(); +var strundefined = typeof undefined; + + + +support.focusinBubbles = "onfocusin" in window; + + +var + rkeyEvent = /^key/, + rmouseEvent = /^(?:mouse|contextmenu)|click/, + rfocusMorph = /^(?:focusinfocus|focusoutblur)$/, + rtypenamespace = /^([^.]*)(?:\.(.+)|)$/; + +function returnTrue() { + return true; +} + +function returnFalse() { + return false; +} + +function safeActiveElement() { + try { + return document.activeElement; + } catch ( err ) { } +} + +/* + * Helper functions for managing events -- not part of the public interface. + * Props to Dean Edwards' addEvent library for many of the ideas. + */ +jQuery.event = { + + global: {}, + + add: function( elem, types, handler, data, selector ) { + + var handleObjIn, eventHandle, tmp, + events, t, handleObj, + special, handlers, type, namespaces, origType, + elemData = data_priv.get( elem ); + + // Don't attach events to noData or text/comment nodes (but allow plain objects) + if ( !elemData ) { + return; + } + + // Caller can pass in an object of custom data in lieu of the handler + if ( handler.handler ) { + handleObjIn = handler; + handler = handleObjIn.handler; + selector = handleObjIn.selector; + } + + // Make sure that the handler has a unique ID, used to find/remove it later + if ( !handler.guid ) { + handler.guid = jQuery.guid++; + } + + // Init the element's event structure and main handler, if this is the first + if ( !(events = elemData.events) ) { + events = elemData.events = {}; + } + if ( !(eventHandle = elemData.handle) ) { + eventHandle = elemData.handle = function( e ) { + // Discard the second event of a jQuery.event.trigger() and + // when an event is called after a page has unloaded + return typeof jQuery !== strundefined && jQuery.event.triggered !== e.type ? + jQuery.event.dispatch.apply( elem, arguments ) : undefined; + }; + } + + // Handle multiple events separated by a space + types = ( types || "" ).match( rnotwhite ) || [ "" ]; + t = types.length; + while ( t-- ) { + tmp = rtypenamespace.exec( types[t] ) || []; + type = origType = tmp[1]; + namespaces = ( tmp[2] || "" ).split( "." ).sort(); + + // There *must* be a type, no attaching namespace-only handlers + if ( !type ) { + continue; + } + + // If event changes its type, use the special event handlers for the changed type + special = jQuery.event.special[ type ] || {}; + + // If selector defined, determine special event api type, otherwise given type + type = ( selector ? special.delegateType : special.bindType ) || type; + + // Update special based on newly reset type + special = jQuery.event.special[ type ] || {}; + + // handleObj is passed to all event handlers + handleObj = jQuery.extend({ + type: type, + origType: origType, + data: data, + handler: handler, + guid: handler.guid, + selector: selector, + needsContext: selector && jQuery.expr.match.needsContext.test( selector ), + namespace: namespaces.join(".") + }, handleObjIn ); + + // Init the event handler queue if we're the first + if ( !(handlers = events[ type ]) ) { + handlers = events[ type ] = []; + handlers.delegateCount = 0; + + // Only use addEventListener if the special events handler returns false + if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) { + if ( elem.addEventListener ) { + elem.addEventListener( type, eventHandle, false ); + } + } + } + + if ( special.add ) { + special.add.call( elem, handleObj ); + + if ( !handleObj.handler.guid ) { + handleObj.handler.guid = handler.guid; + } + } + + // Add to the element's handler list, delegates in front + if ( selector ) { + handlers.splice( handlers.delegateCount++, 0, handleObj ); + } else { + handlers.push( handleObj ); + } + + // Keep track of which events have ever been used, for event optimization + jQuery.event.global[ type ] = true; + } + + }, + + // Detach an event or set of events from an element + remove: function( elem, types, handler, selector, mappedTypes ) { + + var j, origCount, tmp, + events, t, handleObj, + special, handlers, type, namespaces, origType, + elemData = data_priv.hasData( elem ) && data_priv.get( elem ); + + if ( !elemData || !(events = elemData.events) ) { + return; + } + + // Once for each type.namespace in types; type may be omitted + types = ( types || "" ).match( rnotwhite ) || [ "" ]; + t = types.length; + while ( t-- ) { + tmp = rtypenamespace.exec( types[t] ) || []; + type = origType = tmp[1]; + namespaces = ( tmp[2] || "" ).split( "." ).sort(); + + // Unbind all events (on this namespace, if provided) for the element + if ( !type ) { + for ( type in events ) { + jQuery.event.remove( elem, type + types[ t ], handler, selector, true ); + } + continue; + } + + special = jQuery.event.special[ type ] || {}; + type = ( selector ? special.delegateType : special.bindType ) || type; + handlers = events[ type ] || []; + tmp = tmp[2] && new RegExp( "(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)" ); + + // Remove matching events + origCount = j = handlers.length; + while ( j-- ) { + handleObj = handlers[ j ]; + + if ( ( mappedTypes || origType === handleObj.origType ) && + ( !handler || handler.guid === handleObj.guid ) && + ( !tmp || tmp.test( handleObj.namespace ) ) && + ( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) { + handlers.splice( j, 1 ); + + if ( handleObj.selector ) { + handlers.delegateCount--; + } + if ( special.remove ) { + special.remove.call( elem, handleObj ); + } + } + } + + // Remove generic event handler if we removed something and no more handlers exist + // (avoids potential for endless recursion during removal of special event handlers) + if ( origCount && !handlers.length ) { + if ( !special.teardown || special.teardown.call( elem, namespaces, elemData.handle ) === false ) { + jQuery.removeEvent( elem, type, elemData.handle ); + } + + delete events[ type ]; + } + } + + // Remove the expando if it's no longer used + if ( jQuery.isEmptyObject( events ) ) { + delete elemData.handle; + data_priv.remove( elem, "events" ); + } + }, + + trigger: function( event, data, elem, onlyHandlers ) { + + var i, cur, tmp, bubbleType, ontype, handle, special, + eventPath = [ elem || document ], + type = hasOwn.call( event, "type" ) ? event.type : event, + namespaces = hasOwn.call( event, "namespace" ) ? event.namespace.split(".") : []; + + cur = tmp = elem = elem || document; + + // Don't do events on text and comment nodes + if ( elem.nodeType === 3 || elem.nodeType === 8 ) { + return; + } + + // focus/blur morphs to focusin/out; ensure we're not firing them right now + if ( rfocusMorph.test( type + jQuery.event.triggered ) ) { + return; + } + + if ( type.indexOf(".") >= 0 ) { + // Namespaced trigger; create a regexp to match event type in handle() + namespaces = type.split("."); + type = namespaces.shift(); + namespaces.sort(); + } + ontype = type.indexOf(":") < 0 && "on" + type; + + // Caller can pass in a jQuery.Event object, Object, or just an event type string + event = event[ jQuery.expando ] ? + event : + new jQuery.Event( type, typeof event === "object" && event ); + + // Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true) + event.isTrigger = onlyHandlers ? 2 : 3; + event.namespace = namespaces.join("."); + event.namespace_re = event.namespace ? + new RegExp( "(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)" ) : + null; + + // Clean up the event in case it is being reused + event.result = undefined; + if ( !event.target ) { + event.target = elem; + } + + // Clone any incoming data and prepend the event, creating the handler arg list + data = data == null ? + [ event ] : + jQuery.makeArray( data, [ event ] ); + + // Allow special events to draw outside the lines + special = jQuery.event.special[ type ] || {}; + if ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) { + return; + } + + // Determine event propagation path in advance, per W3C events spec (#9951) + // Bubble up to document, then to window; watch for a global ownerDocument var (#9724) + if ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) { + + bubbleType = special.delegateType || type; + if ( !rfocusMorph.test( bubbleType + type ) ) { + cur = cur.parentNode; + } + for ( ; cur; cur = cur.parentNode ) { + eventPath.push( cur ); + tmp = cur; + } + + // Only add window if we got to document (e.g., not plain obj or detached DOM) + if ( tmp === (elem.ownerDocument || document) ) { + eventPath.push( tmp.defaultView || tmp.parentWindow || window ); + } + } + + // Fire handlers on the event path + i = 0; + while ( (cur = eventPath[i++]) && !event.isPropagationStopped() ) { + + event.type = i > 1 ? + bubbleType : + special.bindType || type; + + // jQuery handler + handle = ( data_priv.get( cur, "events" ) || {} )[ event.type ] && data_priv.get( cur, "handle" ); + if ( handle ) { + handle.apply( cur, data ); + } + + // Native handler + handle = ontype && cur[ ontype ]; + if ( handle && handle.apply && jQuery.acceptData( cur ) ) { + event.result = handle.apply( cur, data ); + if ( event.result === false ) { + event.preventDefault(); + } + } + } + event.type = type; + + // If nobody prevented the default action, do it now + if ( !onlyHandlers && !event.isDefaultPrevented() ) { + + if ( (!special._default || special._default.apply( eventPath.pop(), data ) === false) && + jQuery.acceptData( elem ) ) { + + // Call a native DOM method on the target with the same name name as the event. + // Don't do default actions on window, that's where global variables be (#6170) + if ( ontype && jQuery.isFunction( elem[ type ] ) && !jQuery.isWindow( elem ) ) { + + // Don't re-trigger an onFOO event when we call its FOO() method + tmp = elem[ ontype ]; + + if ( tmp ) { + elem[ ontype ] = null; + } + + // Prevent re-triggering of the same event, since we already bubbled it above + jQuery.event.triggered = type; + elem[ type ](); + jQuery.event.triggered = undefined; + + if ( tmp ) { + elem[ ontype ] = tmp; + } + } + } + } + + return event.result; + }, + + dispatch: function( event ) { + + // Make a writable jQuery.Event from the native event object + event = jQuery.event.fix( event ); + + var i, j, ret, matched, handleObj, + handlerQueue = [], + args = slice.call( arguments ), + handlers = ( data_priv.get( this, "events" ) || {} )[ event.type ] || [], + special = jQuery.event.special[ event.type ] || {}; + + // Use the fix-ed jQuery.Event rather than the (read-only) native event + args[0] = event; + event.delegateTarget = this; + + // Call the preDispatch hook for the mapped type, and let it bail if desired + if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) { + return; + } + + // Determine handlers + handlerQueue = jQuery.event.handlers.call( this, event, handlers ); + + // Run delegates first; they may want to stop propagation beneath us + i = 0; + while ( (matched = handlerQueue[ i++ ]) && !event.isPropagationStopped() ) { + event.currentTarget = matched.elem; + + j = 0; + while ( (handleObj = matched.handlers[ j++ ]) && !event.isImmediatePropagationStopped() ) { + + // Triggered event must either 1) have no namespace, or + // 2) have namespace(s) a subset or equal to those in the bound event (both can have no namespace). + if ( !event.namespace_re || event.namespace_re.test( handleObj.namespace ) ) { + + event.handleObj = handleObj; + event.data = handleObj.data; + + ret = ( (jQuery.event.special[ handleObj.origType ] || {}).handle || handleObj.handler ) + .apply( matched.elem, args ); + + if ( ret !== undefined ) { + if ( (event.result = ret) === false ) { + event.preventDefault(); + event.stopPropagation(); + } + } + } + } + } + + // Call the postDispatch hook for the mapped type + if ( special.postDispatch ) { + special.postDispatch.call( this, event ); + } + + return event.result; + }, + + handlers: function( event, handlers ) { + var i, matches, sel, handleObj, + handlerQueue = [], + delegateCount = handlers.delegateCount, + cur = event.target; + + // Find delegate handlers + // Black-hole SVG instance trees (#13180) + // Avoid non-left-click bubbling in Firefox (#3861) + if ( delegateCount && cur.nodeType && (!event.button || event.type !== "click") ) { + + for ( ; cur !== this; cur = cur.parentNode || this ) { + + // Don't process clicks on disabled elements (#6911, #8165, #11382, #11764) + if ( cur.disabled !== true || event.type !== "click" ) { + matches = []; + for ( i = 0; i < delegateCount; i++ ) { + handleObj = handlers[ i ]; + + // Don't conflict with Object.prototype properties (#13203) + sel = handleObj.selector + " "; + + if ( matches[ sel ] === undefined ) { + matches[ sel ] = handleObj.needsContext ? + jQuery( sel, this ).index( cur ) >= 0 : + jQuery.find( sel, this, null, [ cur ] ).length; + } + if ( matches[ sel ] ) { + matches.push( handleObj ); + } + } + if ( matches.length ) { + handlerQueue.push({ elem: cur, handlers: matches }); + } + } + } + } + + // Add the remaining (directly-bound) handlers + if ( delegateCount < handlers.length ) { + handlerQueue.push({ elem: this, handlers: handlers.slice( delegateCount ) }); + } + + return handlerQueue; + }, + + // Includes some event props shared by KeyEvent and MouseEvent + props: "altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "), + + fixHooks: {}, + + keyHooks: { + props: "char charCode key keyCode".split(" "), + filter: function( event, original ) { + + // Add which for key events + if ( event.which == null ) { + event.which = original.charCode != null ? original.charCode : original.keyCode; + } + + return event; + } + }, + + mouseHooks: { + props: "button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "), + filter: function( event, original ) { + var eventDoc, doc, body, + button = original.button; + + // Calculate pageX/Y if missing and clientX/Y available + if ( event.pageX == null && original.clientX != null ) { + eventDoc = event.target.ownerDocument || document; + doc = eventDoc.documentElement; + body = eventDoc.body; + + event.pageX = original.clientX + ( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) - ( doc && doc.clientLeft || body && body.clientLeft || 0 ); + event.pageY = original.clientY + ( doc && doc.scrollTop || body && body.scrollTop || 0 ) - ( doc && doc.clientTop || body && body.clientTop || 0 ); + } + + // Add which for click: 1 === left; 2 === middle; 3 === right + // Note: button is not normalized, so don't use it + if ( !event.which && button !== undefined ) { + event.which = ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) ); + } + + return event; + } + }, + + fix: function( event ) { + if ( event[ jQuery.expando ] ) { + return event; + } + + // Create a writable copy of the event object and normalize some properties + var i, prop, copy, + type = event.type, + originalEvent = event, + fixHook = this.fixHooks[ type ]; + + if ( !fixHook ) { + this.fixHooks[ type ] = fixHook = + rmouseEvent.test( type ) ? this.mouseHooks : + rkeyEvent.test( type ) ? this.keyHooks : + {}; + } + copy = fixHook.props ? this.props.concat( fixHook.props ) : this.props; + + event = new jQuery.Event( originalEvent ); + + i = copy.length; + while ( i-- ) { + prop = copy[ i ]; + event[ prop ] = originalEvent[ prop ]; + } + + // Support: Cordova 2.5 (WebKit) (#13255) + // All events should have a target; Cordova deviceready doesn't + if ( !event.target ) { + event.target = document; + } + + // Support: Safari 6.0+, Chrome < 28 + // Target should not be a text node (#504, #13143) + if ( event.target.nodeType === 3 ) { + event.target = event.target.parentNode; + } + + return fixHook.filter ? fixHook.filter( event, originalEvent ) : event; + }, + + special: { + load: { + // Prevent triggered image.load events from bubbling to window.load + noBubble: true + }, + focus: { + // Fire native event if possible so blur/focus sequence is correct + trigger: function() { + if ( this !== safeActiveElement() && this.focus ) { + this.focus(); + return false; + } + }, + delegateType: "focusin" + }, + blur: { + trigger: function() { + if ( this === safeActiveElement() && this.blur ) { + this.blur(); + return false; + } + }, + delegateType: "focusout" + }, + click: { + // For checkbox, fire native event so checked state will be right + trigger: function() { + if ( this.type === "checkbox" && this.click && jQuery.nodeName( this, "input" ) ) { + this.click(); + return false; + } + }, + + // For cross-browser consistency, don't fire native .click() on links + _default: function( event ) { + return jQuery.nodeName( event.target, "a" ); + } + }, + + beforeunload: { + postDispatch: function( event ) { + + // Support: Firefox 20+ + // Firefox doesn't alert if the returnValue field is not set. + if ( event.result !== undefined ) { + event.originalEvent.returnValue = event.result; + } + } + } + }, + + simulate: function( type, elem, event, bubble ) { + // Piggyback on a donor event to simulate a different one. + // Fake originalEvent to avoid donor's stopPropagation, but if the + // simulated event prevents default then we do the same on the donor. + var e = jQuery.extend( + new jQuery.Event(), + event, + { + type: type, + isSimulated: true, + originalEvent: {} + } + ); + if ( bubble ) { + jQuery.event.trigger( e, null, elem ); + } else { + jQuery.event.dispatch.call( elem, e ); + } + if ( e.isDefaultPrevented() ) { + event.preventDefault(); + } + } +}; + +jQuery.removeEvent = function( elem, type, handle ) { + if ( elem.removeEventListener ) { + elem.removeEventListener( type, handle, false ); + } +}; + +jQuery.Event = function( src, props ) { + // Allow instantiation without the 'new' keyword + if ( !(this instanceof jQuery.Event) ) { + return new jQuery.Event( src, props ); + } + + // Event object + if ( src && src.type ) { + this.originalEvent = src; + this.type = src.type; + + // Events bubbling up the document may have been marked as prevented + // by a handler lower down the tree; reflect the correct value. + this.isDefaultPrevented = src.defaultPrevented || + // Support: Android < 4.0 + src.defaultPrevented === undefined && + src.getPreventDefault && src.getPreventDefault() ? + returnTrue : + returnFalse; + + // Event type + } else { + this.type = src; + } + + // Put explicitly provided properties onto the event object + if ( props ) { + jQuery.extend( this, props ); + } + + // Create a timestamp if incoming event doesn't have one + this.timeStamp = src && src.timeStamp || jQuery.now(); + + // Mark it as fixed + this[ jQuery.expando ] = true; +}; + +// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding +// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html +jQuery.Event.prototype = { + isDefaultPrevented: returnFalse, + isPropagationStopped: returnFalse, + isImmediatePropagationStopped: returnFalse, + + preventDefault: function() { + var e = this.originalEvent; + + this.isDefaultPrevented = returnTrue; + + if ( e && e.preventDefault ) { + e.preventDefault(); + } + }, + stopPropagation: function() { + var e = this.originalEvent; + + this.isPropagationStopped = returnTrue; + + if ( e && e.stopPropagation ) { + e.stopPropagation(); + } + }, + stopImmediatePropagation: function() { + this.isImmediatePropagationStopped = returnTrue; + this.stopPropagation(); + } +}; + +// Create mouseenter/leave events using mouseover/out and event-time checks +// Support: Chrome 15+ +jQuery.each({ + mouseenter: "mouseover", + mouseleave: "mouseout" +}, function( orig, fix ) { + jQuery.event.special[ orig ] = { + delegateType: fix, + bindType: fix, + + handle: function( event ) { + var ret, + target = this, + related = event.relatedTarget, + handleObj = event.handleObj; + + // For mousenter/leave call the handler if related is outside the target. + // NB: No relatedTarget if the mouse left/entered the browser window + if ( !related || (related !== target && !jQuery.contains( target, related )) ) { + event.type = handleObj.origType; + ret = handleObj.handler.apply( this, arguments ); + event.type = fix; + } + return ret; + } + }; +}); + +// Create "bubbling" focus and blur events +// Support: Firefox, Chrome, Safari +if ( !support.focusinBubbles ) { + jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) { + + // Attach a single capturing handler on the document while someone wants focusin/focusout + var handler = function( event ) { + jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ), true ); + }; + + jQuery.event.special[ fix ] = { + setup: function() { + var doc = this.ownerDocument || this, + attaches = data_priv.access( doc, fix ); + + if ( !attaches ) { + doc.addEventListener( orig, handler, true ); + } + data_priv.access( doc, fix, ( attaches || 0 ) + 1 ); + }, + teardown: function() { + var doc = this.ownerDocument || this, + attaches = data_priv.access( doc, fix ) - 1; + + if ( !attaches ) { + doc.removeEventListener( orig, handler, true ); + data_priv.remove( doc, fix ); + + } else { + data_priv.access( doc, fix, attaches ); + } + } + }; + }); +} + +jQuery.fn.extend({ + + on: function( types, selector, data, fn, /*INTERNAL*/ one ) { + var origFn, type; + + // Types can be a map of types/handlers + if ( typeof types === "object" ) { + // ( types-Object, selector, data ) + if ( typeof selector !== "string" ) { + // ( types-Object, data ) + data = data || selector; + selector = undefined; + } + for ( type in types ) { + this.on( type, selector, data, types[ type ], one ); + } + return this; + } + + if ( data == null && fn == null ) { + // ( types, fn ) + fn = selector; + data = selector = undefined; + } else if ( fn == null ) { + if ( typeof selector === "string" ) { + // ( types, selector, fn ) + fn = data; + data = undefined; + } else { + // ( types, data, fn ) + fn = data; + data = selector; + selector = undefined; + } + } + if ( fn === false ) { + fn = returnFalse; + } else if ( !fn ) { + return this; + } + + if ( one === 1 ) { + origFn = fn; + fn = function( event ) { + // Can use an empty set, since event contains the info + jQuery().off( event ); + return origFn.apply( this, arguments ); + }; + // Use same guid so caller can remove using origFn + fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ ); + } + return this.each( function() { + jQuery.event.add( this, types, fn, data, selector ); + }); + }, + one: function( types, selector, data, fn ) { + return this.on( types, selector, data, fn, 1 ); + }, + off: function( types, selector, fn ) { + var handleObj, type; + if ( types && types.preventDefault && types.handleObj ) { + // ( event ) dispatched jQuery.Event + handleObj = types.handleObj; + jQuery( types.delegateTarget ).off( + handleObj.namespace ? handleObj.origType + "." + handleObj.namespace : handleObj.origType, + handleObj.selector, + handleObj.handler + ); + return this; + } + if ( typeof types === "object" ) { + // ( types-object [, selector] ) + for ( type in types ) { + this.off( type, selector, types[ type ] ); + } + return this; + } + if ( selector === false || typeof selector === "function" ) { + // ( types [, fn] ) + fn = selector; + selector = undefined; + } + if ( fn === false ) { + fn = returnFalse; + } + return this.each(function() { + jQuery.event.remove( this, types, fn, selector ); + }); + }, + + trigger: function( type, data ) { + return this.each(function() { + jQuery.event.trigger( type, data, this ); + }); + }, + triggerHandler: function( type, data ) { + var elem = this[0]; + if ( elem ) { + return jQuery.event.trigger( type, data, elem, true ); + } + } +}); + + +var + rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi, + rtagName = /<([\w:]+)/, + rhtml = /<|&#?\w+;/, + rnoInnerhtml = /<(?:script|style|link)/i, + // checked="checked" or checked + rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i, + rscriptType = /^$|\/(?:java|ecma)script/i, + rscriptTypeMasked = /^true\/(.*)/, + rcleanScript = /^\s*\s*$/g, + + // We have to close these tags to support XHTML (#13200) + wrapMap = { + + // Support: IE 9 + option: [ 1, "" ], + + thead: [ 1, "", "
" ], + col: [ 2, "", "
" ], + tr: [ 2, "", "
" ], + td: [ 3, "", "
" ], + + _default: [ 0, "", "" ] + }; + +// Support: IE 9 +wrapMap.optgroup = wrapMap.option; + +wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead; +wrapMap.th = wrapMap.td; + +// Support: 1.x compatibility +// Manipulating tables requires a tbody +function manipulationTarget( elem, content ) { + return jQuery.nodeName( elem, "table" ) && + jQuery.nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ? + + elem.getElementsByTagName("tbody")[0] || + elem.appendChild( elem.ownerDocument.createElement("tbody") ) : + elem; +} + +// Replace/restore the type attribute of script elements for safe DOM manipulation +function disableScript( elem ) { + elem.type = (elem.getAttribute("type") !== null) + "/" + elem.type; + return elem; +} +function restoreScript( elem ) { + var match = rscriptTypeMasked.exec( elem.type ); + + if ( match ) { + elem.type = match[ 1 ]; + } else { + elem.removeAttribute("type"); + } + + return elem; +} + +// Mark scripts as having already been evaluated +function setGlobalEval( elems, refElements ) { + var i = 0, + l = elems.length; + + for ( ; i < l; i++ ) { + data_priv.set( + elems[ i ], "globalEval", !refElements || data_priv.get( refElements[ i ], "globalEval" ) + ); + } +} + +function cloneCopyEvent( src, dest ) { + var i, l, type, pdataOld, pdataCur, udataOld, udataCur, events; + + if ( dest.nodeType !== 1 ) { + return; + } + + // 1. Copy private data: events, handlers, etc. + if ( data_priv.hasData( src ) ) { + pdataOld = data_priv.access( src ); + pdataCur = data_priv.set( dest, pdataOld ); + events = pdataOld.events; + + if ( events ) { + delete pdataCur.handle; + pdataCur.events = {}; + + for ( type in events ) { + for ( i = 0, l = events[ type ].length; i < l; i++ ) { + jQuery.event.add( dest, type, events[ type ][ i ] ); + } + } + } + } + + // 2. Copy user data + if ( data_user.hasData( src ) ) { + udataOld = data_user.access( src ); + udataCur = jQuery.extend( {}, udataOld ); + + data_user.set( dest, udataCur ); + } +} + +function getAll( context, tag ) { + var ret = context.getElementsByTagName ? context.getElementsByTagName( tag || "*" ) : + context.querySelectorAll ? context.querySelectorAll( tag || "*" ) : + []; + + return tag === undefined || tag && jQuery.nodeName( context, tag ) ? + jQuery.merge( [ context ], ret ) : + ret; +} + +// Support: IE >= 9 +function fixInput( src, dest ) { + var nodeName = dest.nodeName.toLowerCase(); + + // Fails to persist the checked state of a cloned checkbox or radio button. + if ( nodeName === "input" && rcheckableType.test( src.type ) ) { + dest.checked = src.checked; + + // Fails to return the selected option to the default selected state when cloning options + } else if ( nodeName === "input" || nodeName === "textarea" ) { + dest.defaultValue = src.defaultValue; + } +} + +jQuery.extend({ + clone: function( elem, dataAndEvents, deepDataAndEvents ) { + var i, l, srcElements, destElements, + clone = elem.cloneNode( true ), + inPage = jQuery.contains( elem.ownerDocument, elem ); + + // Support: IE >= 9 + // Fix Cloning issues + if ( !support.noCloneChecked && ( elem.nodeType === 1 || elem.nodeType === 11 ) && + !jQuery.isXMLDoc( elem ) ) { + + // We eschew Sizzle here for performance reasons: http://jsperf.com/getall-vs-sizzle/2 + destElements = getAll( clone ); + srcElements = getAll( elem ); + + for ( i = 0, l = srcElements.length; i < l; i++ ) { + fixInput( srcElements[ i ], destElements[ i ] ); + } + } + + // Copy the events from the original to the clone + if ( dataAndEvents ) { + if ( deepDataAndEvents ) { + srcElements = srcElements || getAll( elem ); + destElements = destElements || getAll( clone ); + + for ( i = 0, l = srcElements.length; i < l; i++ ) { + cloneCopyEvent( srcElements[ i ], destElements[ i ] ); + } + } else { + cloneCopyEvent( elem, clone ); + } + } + + // Preserve script evaluation history + destElements = getAll( clone, "script" ); + if ( destElements.length > 0 ) { + setGlobalEval( destElements, !inPage && getAll( elem, "script" ) ); + } + + // Return the cloned set + return clone; + }, + + buildFragment: function( elems, context, scripts, selection ) { + var elem, tmp, tag, wrap, contains, j, + fragment = context.createDocumentFragment(), + nodes = [], + i = 0, + l = elems.length; + + for ( ; i < l; i++ ) { + elem = elems[ i ]; + + if ( elem || elem === 0 ) { + + // Add nodes directly + if ( jQuery.type( elem ) === "object" ) { + // Support: QtWebKit + // jQuery.merge because push.apply(_, arraylike) throws + jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem ); + + // Convert non-html into a text node + } else if ( !rhtml.test( elem ) ) { + nodes.push( context.createTextNode( elem ) ); + + // Convert html into DOM nodes + } else { + tmp = tmp || fragment.appendChild( context.createElement("div") ); + + // Deserialize a standard representation + tag = ( rtagName.exec( elem ) || [ "", "" ] )[ 1 ].toLowerCase(); + wrap = wrapMap[ tag ] || wrapMap._default; + tmp.innerHTML = wrap[ 1 ] + elem.replace( rxhtmlTag, "<$1>" ) + wrap[ 2 ]; + + // Descend through wrappers to the right content + j = wrap[ 0 ]; + while ( j-- ) { + tmp = tmp.lastChild; + } + + // Support: QtWebKit + // jQuery.merge because push.apply(_, arraylike) throws + jQuery.merge( nodes, tmp.childNodes ); + + // Remember the top-level container + tmp = fragment.firstChild; + + // Fixes #12346 + // Support: Webkit, IE + tmp.textContent = ""; + } + } + } + + // Remove wrapper from fragment + fragment.textContent = ""; + + i = 0; + while ( (elem = nodes[ i++ ]) ) { + + // #4087 - If origin and destination elements are the same, and this is + // that element, do not do anything + if ( selection && jQuery.inArray( elem, selection ) !== -1 ) { + continue; + } + + contains = jQuery.contains( elem.ownerDocument, elem ); + + // Append to fragment + tmp = getAll( fragment.appendChild( elem ), "script" ); + + // Preserve script evaluation history + if ( contains ) { + setGlobalEval( tmp ); + } + + // Capture executables + if ( scripts ) { + j = 0; + while ( (elem = tmp[ j++ ]) ) { + if ( rscriptType.test( elem.type || "" ) ) { + scripts.push( elem ); + } + } + } + } + + return fragment; + }, + + cleanData: function( elems ) { + var data, elem, events, type, key, j, + special = jQuery.event.special, + i = 0; + + for ( ; (elem = elems[ i ]) !== undefined; i++ ) { + if ( jQuery.acceptData( elem ) ) { + key = elem[ data_priv.expando ]; + + if ( key && (data = data_priv.cache[ key ]) ) { + events = Object.keys( data.events || {} ); + if ( events.length ) { + for ( j = 0; (type = events[j]) !== undefined; j++ ) { + if ( special[ type ] ) { + jQuery.event.remove( elem, type ); + + // This is a shortcut to avoid jQuery.event.remove's overhead + } else { + jQuery.removeEvent( elem, type, data.handle ); + } + } + } + if ( data_priv.cache[ key ] ) { + // Discard any remaining `private` data + delete data_priv.cache[ key ]; + } + } + } + // Discard any remaining `user` data + delete data_user.cache[ elem[ data_user.expando ] ]; + } + } +}); + +jQuery.fn.extend({ + text: function( value ) { + return access( this, function( value ) { + return value === undefined ? + jQuery.text( this ) : + this.empty().each(function() { + if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { + this.textContent = value; + } + }); + }, null, value, arguments.length ); + }, + + append: function() { + return this.domManip( arguments, function( elem ) { + if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { + var target = manipulationTarget( this, elem ); + target.appendChild( elem ); + } + }); + }, + + prepend: function() { + return this.domManip( arguments, function( elem ) { + if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { + var target = manipulationTarget( this, elem ); + target.insertBefore( elem, target.firstChild ); + } + }); + }, + + before: function() { + return this.domManip( arguments, function( elem ) { + if ( this.parentNode ) { + this.parentNode.insertBefore( elem, this ); + } + }); + }, + + after: function() { + return this.domManip( arguments, function( elem ) { + if ( this.parentNode ) { + this.parentNode.insertBefore( elem, this.nextSibling ); + } + }); + }, + + remove: function( selector, keepData /* Internal Use Only */ ) { + var elem, + elems = selector ? jQuery.filter( selector, this ) : this, + i = 0; + + for ( ; (elem = elems[i]) != null; i++ ) { + if ( !keepData && elem.nodeType === 1 ) { + jQuery.cleanData( getAll( elem ) ); + } + + if ( elem.parentNode ) { + if ( keepData && jQuery.contains( elem.ownerDocument, elem ) ) { + setGlobalEval( getAll( elem, "script" ) ); + } + elem.parentNode.removeChild( elem ); + } + } + + return this; + }, + + empty: function() { + var elem, + i = 0; + + for ( ; (elem = this[i]) != null; i++ ) { + if ( elem.nodeType === 1 ) { + + // Prevent memory leaks + jQuery.cleanData( getAll( elem, false ) ); + + // Remove any remaining nodes + elem.textContent = ""; + } + } + + return this; + }, + + clone: function( dataAndEvents, deepDataAndEvents ) { + dataAndEvents = dataAndEvents == null ? false : dataAndEvents; + deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents; + + return this.map(function() { + return jQuery.clone( this, dataAndEvents, deepDataAndEvents ); + }); + }, + + html: function( value ) { + return access( this, function( value ) { + var elem = this[ 0 ] || {}, + i = 0, + l = this.length; + + if ( value === undefined && elem.nodeType === 1 ) { + return elem.innerHTML; + } + + // See if we can take a shortcut and just use innerHTML + if ( typeof value === "string" && !rnoInnerhtml.test( value ) && + !wrapMap[ ( rtagName.exec( value ) || [ "", "" ] )[ 1 ].toLowerCase() ] ) { + + value = value.replace( rxhtmlTag, "<$1>" ); + + try { + for ( ; i < l; i++ ) { + elem = this[ i ] || {}; + + // Remove element nodes and prevent memory leaks + if ( elem.nodeType === 1 ) { + jQuery.cleanData( getAll( elem, false ) ); + elem.innerHTML = value; + } + } + + elem = 0; + + // If using innerHTML throws an exception, use the fallback method + } catch( e ) {} + } + + if ( elem ) { + this.empty().append( value ); + } + }, null, value, arguments.length ); + }, + + replaceWith: function() { + var arg = arguments[ 0 ]; + + // Make the changes, replacing each context element with the new content + this.domManip( arguments, function( elem ) { + arg = this.parentNode; + + jQuery.cleanData( getAll( this ) ); + + if ( arg ) { + arg.replaceChild( elem, this ); + } + }); + + // Force removal if there was no new content (e.g., from empty arguments) + return arg && (arg.length || arg.nodeType) ? this : this.remove(); + }, + + detach: function( selector ) { + return this.remove( selector, true ); + }, + + domManip: function( args, callback ) { + + // Flatten any nested arrays + args = concat.apply( [], args ); + + var fragment, first, scripts, hasScripts, node, doc, + i = 0, + l = this.length, + set = this, + iNoClone = l - 1, + value = args[ 0 ], + isFunction = jQuery.isFunction( value ); + + // We can't cloneNode fragments that contain checked, in WebKit + if ( isFunction || + ( l > 1 && typeof value === "string" && + !support.checkClone && rchecked.test( value ) ) ) { + return this.each(function( index ) { + var self = set.eq( index ); + if ( isFunction ) { + args[ 0 ] = value.call( this, index, self.html() ); + } + self.domManip( args, callback ); + }); + } + + if ( l ) { + fragment = jQuery.buildFragment( args, this[ 0 ].ownerDocument, false, this ); + first = fragment.firstChild; + + if ( fragment.childNodes.length === 1 ) { + fragment = first; + } + + if ( first ) { + scripts = jQuery.map( getAll( fragment, "script" ), disableScript ); + hasScripts = scripts.length; + + // Use the original fragment for the last item instead of the first because it can end up + // being emptied incorrectly in certain situations (#8070). + for ( ; i < l; i++ ) { + node = fragment; + + if ( i !== iNoClone ) { + node = jQuery.clone( node, true, true ); + + // Keep references to cloned scripts for later restoration + if ( hasScripts ) { + // Support: QtWebKit + // jQuery.merge because push.apply(_, arraylike) throws + jQuery.merge( scripts, getAll( node, "script" ) ); + } + } + + callback.call( this[ i ], node, i ); + } + + if ( hasScripts ) { + doc = scripts[ scripts.length - 1 ].ownerDocument; + + // Reenable scripts + jQuery.map( scripts, restoreScript ); + + // Evaluate executable scripts on first document insertion + for ( i = 0; i < hasScripts; i++ ) { + node = scripts[ i ]; + if ( rscriptType.test( node.type || "" ) && + !data_priv.access( node, "globalEval" ) && jQuery.contains( doc, node ) ) { + + if ( node.src ) { + // Optional AJAX dependency, but won't run scripts if not present + if ( jQuery._evalUrl ) { + jQuery._evalUrl( node.src ); + } + } else { + jQuery.globalEval( node.textContent.replace( rcleanScript, "" ) ); + } + } + } + } + } + } + + return this; + } +}); + +jQuery.each({ + appendTo: "append", + prependTo: "prepend", + insertBefore: "before", + insertAfter: "after", + replaceAll: "replaceWith" +}, function( name, original ) { + jQuery.fn[ name ] = function( selector ) { + var elems, + ret = [], + insert = jQuery( selector ), + last = insert.length - 1, + i = 0; + + for ( ; i <= last; i++ ) { + elems = i === last ? this : this.clone( true ); + jQuery( insert[ i ] )[ original ]( elems ); + + // Support: QtWebKit + // .get() because push.apply(_, arraylike) throws + push.apply( ret, elems.get() ); + } + + return this.pushStack( ret ); + }; +}); + + +var iframe, + elemdisplay = {}; + +/** + * Retrieve the actual display of a element + * @param {String} name nodeName of the element + * @param {Object} doc Document object + */ +// Called only from within defaultDisplay +function actualDisplay( name, doc ) { + var elem = jQuery( doc.createElement( name ) ).appendTo( doc.body ), + + // getDefaultComputedStyle might be reliably used only on attached element + display = window.getDefaultComputedStyle ? + + // Use of this method is a temporary fix (more like optmization) until something better comes along, + // since it was removed from specification and supported only in FF + window.getDefaultComputedStyle( elem[ 0 ] ).display : jQuery.css( elem[ 0 ], "display" ); + + // We don't have any data stored on the element, + // so use "detach" method as fast way to get rid of the element + elem.detach(); + + return display; +} + +/** + * Try to determine the default display value of an element + * @param {String} nodeName + */ +function defaultDisplay( nodeName ) { + var doc = document, + display = elemdisplay[ nodeName ]; + + if ( !display ) { + display = actualDisplay( nodeName, doc ); + + // If the simple way fails, read from inside an iframe + if ( display === "none" || !display ) { + + // Use the already-created iframe if possible + iframe = (iframe || jQuery( "