sprockets-browserify 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (790) hide show
  1. checksums.yaml +15 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +70 -0
  4. data/Rakefile +38 -0
  5. data/lib/sprockets/browserify/engine.rb +15 -0
  6. data/lib/sprockets/browserify.rb +37 -0
  7. data/lib/sprockets-browserify.rb +2 -0
  8. data/lib/tasks/sprockets-browserify_tasks.rake +4 -0
  9. data/node_modules/JSONStream/LICENSE.APACHE2 +15 -0
  10. data/node_modules/JSONStream/LICENSE.MIT +24 -0
  11. data/node_modules/JSONStream/examples/all_docs.js +13 -0
  12. data/node_modules/JSONStream/index.js +189 -0
  13. data/node_modules/JSONStream/node_modules/jsonparse/LICENSE +24 -0
  14. data/node_modules/JSONStream/node_modules/jsonparse/README.markdown +11 -0
  15. data/node_modules/JSONStream/node_modules/jsonparse/bench.js +26 -0
  16. data/node_modules/JSONStream/node_modules/jsonparse/examples/twitterfeed.js +30 -0
  17. data/node_modules/JSONStream/node_modules/jsonparse/jsonparse.js +379 -0
  18. data/node_modules/JSONStream/node_modules/jsonparse/package.json +34 -0
  19. data/node_modules/JSONStream/node_modules/jsonparse/samplejson/basic.json +167 -0
  20. data/node_modules/JSONStream/node_modules/jsonparse/samplejson/basic2.json +180 -0
  21. data/node_modules/JSONStream/node_modules/jsonparse/test/primitives.js +54 -0
  22. data/node_modules/JSONStream/node_modules/jsonparse/test/utf8.js +38 -0
  23. data/node_modules/JSONStream/package.json +38 -0
  24. data/node_modules/JSONStream/readme.markdown +145 -0
  25. data/node_modules/JSONStream/test/bool.js +41 -0
  26. data/node_modules/JSONStream/test/destroy_missing.js +22 -0
  27. data/node_modules/JSONStream/test/empty.js +44 -0
  28. data/node_modules/JSONStream/test/fixtures/all_npm.json +4030 -0
  29. data/node_modules/JSONStream/test/fn.js +39 -0
  30. data/node_modules/JSONStream/test/memory.js +69 -0
  31. data/node_modules/JSONStream/test/multiple_objects.js +42 -0
  32. data/node_modules/JSONStream/test/multiple_objects_error.js +35 -0
  33. data/node_modules/JSONStream/test/parsejson.js +28 -0
  34. data/node_modules/JSONStream/test/stringify.js +41 -0
  35. data/node_modules/JSONStream/test/stringify_object.js +47 -0
  36. data/node_modules/JSONStream/test/test.js +35 -0
  37. data/node_modules/JSONStream/test/test2.js +29 -0
  38. data/node_modules/JSONStream/test/two-ways.js +41 -0
  39. data/node_modules/browserify/LICENSE +63 -0
  40. data/node_modules/browserify/README.markdown +172 -0
  41. data/node_modules/browserify/bin/cmd.js +161 -0
  42. data/node_modules/browserify/builtins/__browserify_process.js +55 -0
  43. data/node_modules/browserify/builtins/assert.js +314 -0
  44. data/node_modules/browserify/builtins/child_process.js +2 -0
  45. data/node_modules/browserify/builtins/events.js +178 -0
  46. data/node_modules/browserify/builtins/fs.js +1 -0
  47. data/node_modules/browserify/builtins/https.js +1 -0
  48. data/node_modules/browserify/builtins/net.js +1 -0
  49. data/node_modules/browserify/builtins/path.js +175 -0
  50. data/node_modules/browserify/builtins/querystring.js +250 -0
  51. data/node_modules/browserify/builtins/stream.js +119 -0
  52. data/node_modules/browserify/builtins/string_decoder.js +161 -0
  53. data/node_modules/browserify/builtins/sys.js +1 -0
  54. data/node_modules/browserify/builtins/timers.js +39 -0
  55. data/node_modules/browserify/builtins/tls.js +1 -0
  56. data/node_modules/browserify/builtins/tty.js +2 -0
  57. data/node_modules/browserify/builtins/url.js +604 -0
  58. data/node_modules/browserify/builtins/util.js +351 -0
  59. data/node_modules/browserify/doc/methods.markdown +182 -0
  60. data/node_modules/browserify/doc/recipes.markdown +62 -0
  61. data/node_modules/browserify/example/debug/browserify.js +219 -0
  62. data/node_modules/browserify/example/debug/build.sh +3 -0
  63. data/node_modules/browserify/example/debug/index.html +7 -0
  64. data/node_modules/browserify/example/debug/js/entry.js +2 -0
  65. data/node_modules/browserify/example/debug/js/thrower.js +3 -0
  66. data/node_modules/browserify/example/debug/server.js +9 -0
  67. data/node_modules/browserify/example/simple-build/browserify.js +368 -0
  68. data/node_modules/browserify/example/simple-build/build.sh +3 -0
  69. data/node_modules/browserify/example/simple-build/index.html +9 -0
  70. data/node_modules/browserify/example/simple-build/js/bar.js +3 -0
  71. data/node_modules/browserify/example/simple-build/js/entry.js +5 -0
  72. data/node_modules/browserify/example/simple-build/js/foo.js +5 -0
  73. data/node_modules/browserify/example/simple-build/server.js +9 -0
  74. data/node_modules/browserify/example/test/b.js +5 -0
  75. data/node_modules/browserify/example/test/bar.js +3 -0
  76. data/node_modules/browserify/example/test/foo.js +3 -0
  77. data/node_modules/browserify/example/test/m.js +3 -0
  78. data/node_modules/browserify/example/test/n.js +3 -0
  79. data/node_modules/browserify/example/using-http/bundle.js +813 -0
  80. data/node_modules/browserify/example/using-http/entry.js +25 -0
  81. data/node_modules/browserify/example/using-http/index.html +9 -0
  82. data/node_modules/browserify/example/using-http/server.js +28 -0
  83. data/node_modules/browserify/index.js +202 -0
  84. data/node_modules/browserify/lib/watch.js +75 -0
  85. data/node_modules/browserify/lib/wrap.js +583 -0
  86. data/node_modules/browserify/lib/wrappers.js +10 -0
  87. data/node_modules/browserify/node_modules/buffer-browserify/README.md +11 -0
  88. data/node_modules/browserify/node_modules/buffer-browserify/buffer_ieee754.js +84 -0
  89. data/node_modules/browserify/node_modules/buffer-browserify/index.js +1317 -0
  90. data/node_modules/browserify/node_modules/buffer-browserify/node_modules/base64-js/README.md +14 -0
  91. data/node_modules/browserify/node_modules/buffer-browserify/node_modules/base64-js/lib/b64.js +84 -0
  92. data/node_modules/browserify/node_modules/buffer-browserify/node_modules/base64-js/package.json +26 -0
  93. data/node_modules/browserify/node_modules/buffer-browserify/node_modules/base64-js/test/runner.js +50 -0
  94. data/node_modules/browserify/node_modules/buffer-browserify/package.json +42 -0
  95. data/node_modules/browserify/node_modules/buffer-browserify/test/buffer.js +218 -0
  96. data/node_modules/browserify/node_modules/coffee-script/CNAME +1 -0
  97. data/node_modules/browserify/node_modules/coffee-script/CONTRIBUTING.md +9 -0
  98. data/node_modules/browserify/node_modules/coffee-script/LICENSE +22 -0
  99. data/node_modules/browserify/node_modules/coffee-script/README +51 -0
  100. data/node_modules/browserify/node_modules/coffee-script/Rakefile +79 -0
  101. data/node_modules/browserify/node_modules/coffee-script/bin/cake +7 -0
  102. data/node_modules/browserify/node_modules/coffee-script/bin/coffee +7 -0
  103. data/node_modules/browserify/node_modules/coffee-script/extras/jsl.conf +44 -0
  104. data/node_modules/browserify/node_modules/coffee-script/lib/coffee-script/browser.js +101 -0
  105. data/node_modules/browserify/node_modules/coffee-script/lib/coffee-script/cake.js +113 -0
  106. data/node_modules/browserify/node_modules/coffee-script/lib/coffee-script/coffee-script.js +218 -0
  107. data/node_modules/browserify/node_modules/coffee-script/lib/coffee-script/command.js +506 -0
  108. data/node_modules/browserify/node_modules/coffee-script/lib/coffee-script/grammar.js +623 -0
  109. data/node_modules/browserify/node_modules/coffee-script/lib/coffee-script/helpers.js +150 -0
  110. data/node_modules/browserify/node_modules/coffee-script/lib/coffee-script/index.js +11 -0
  111. data/node_modules/browserify/node_modules/coffee-script/lib/coffee-script/lexer.js +905 -0
  112. data/node_modules/browserify/node_modules/coffee-script/lib/coffee-script/nodes.js +3088 -0
  113. data/node_modules/browserify/node_modules/coffee-script/lib/coffee-script/optparse.js +138 -0
  114. data/node_modules/browserify/node_modules/coffee-script/lib/coffee-script/parser.js +608 -0
  115. data/node_modules/browserify/node_modules/coffee-script/lib/coffee-script/repl.js +104 -0
  116. data/node_modules/browserify/node_modules/coffee-script/lib/coffee-script/rewriter.js +478 -0
  117. data/node_modules/browserify/node_modules/coffee-script/lib/coffee-script/scope.js +147 -0
  118. data/node_modules/browserify/node_modules/coffee-script/lib/coffee-script/sourcemap.js +237 -0
  119. data/node_modules/browserify/node_modules/coffee-script/package.json +48 -0
  120. data/node_modules/browserify/node_modules/commondir/README.markdown +45 -0
  121. data/node_modules/browserify/node_modules/commondir/example/base.js +3 -0
  122. data/node_modules/browserify/node_modules/commondir/example/dir.js +3 -0
  123. data/node_modules/browserify/node_modules/commondir/index.js +29 -0
  124. data/node_modules/browserify/node_modules/commondir/package.json +43 -0
  125. data/node_modules/browserify/node_modules/commondir/test/dirs.js +66 -0
  126. data/node_modules/browserify/node_modules/console-browserify/LICENCE +19 -0
  127. data/node_modules/browserify/node_modules/console-browserify/README.md +32 -0
  128. data/node_modules/browserify/node_modules/console-browserify/index.js +85 -0
  129. data/node_modules/browserify/node_modules/console-browserify/package.json +76 -0
  130. data/node_modules/browserify/node_modules/console-browserify/test/index.js +67 -0
  131. data/node_modules/browserify/node_modules/console-browserify/test/static/index.html +12 -0
  132. data/node_modules/browserify/node_modules/console-browserify/test/static/test-adapter.js +53 -0
  133. data/node_modules/browserify/node_modules/crypto-browserify/example/bundle.js +637 -0
  134. data/node_modules/browserify/node_modules/crypto-browserify/example/index.html +12 -0
  135. data/node_modules/browserify/node_modules/crypto-browserify/example/test.js +4 -0
  136. data/node_modules/browserify/node_modules/crypto-browserify/index.js +74 -0
  137. data/node_modules/browserify/node_modules/crypto-browserify/md5.js +384 -0
  138. data/node_modules/browserify/node_modules/crypto-browserify/package.json +30 -0
  139. data/node_modules/browserify/node_modules/crypto-browserify/readme.markdown +20 -0
  140. data/node_modules/browserify/node_modules/crypto-browserify/rng.js +37 -0
  141. data/node_modules/browserify/node_modules/crypto-browserify/sha.js +210 -0
  142. data/node_modules/browserify/node_modules/crypto-browserify/test/simple.js +35 -0
  143. data/node_modules/browserify/node_modules/deputy/README.markdown +55 -0
  144. data/node_modules/browserify/node_modules/deputy/example/cache.js +5 -0
  145. data/node_modules/browserify/node_modules/deputy/index.js +46 -0
  146. data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/LICENSE +21 -0
  147. data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/examples/pow.js +6 -0
  148. data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/index.js +82 -0
  149. data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/package.json +30 -0
  150. data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/readme.markdown +63 -0
  151. data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/chmod.js +38 -0
  152. data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/clobber.js +37 -0
  153. data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/mkdirp.js +28 -0
  154. data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/perm.js +32 -0
  155. data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/perm_sync.js +39 -0
  156. data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/race.js +41 -0
  157. data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/rel.js +32 -0
  158. data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/return.js +25 -0
  159. data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/return_sync.js +24 -0
  160. data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/root.js +18 -0
  161. data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/sync.js +32 -0
  162. data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/umask.js +28 -0
  163. data/node_modules/browserify/node_modules/deputy/node_modules/mkdirp/test/umask_sync.js +32 -0
  164. data/node_modules/browserify/node_modules/deputy/package.json +43 -0
  165. data/node_modules/browserify/node_modules/deputy/test/cache.js +58 -0
  166. data/node_modules/browserify/node_modules/detective/README.markdown +66 -0
  167. data/node_modules/browserify/node_modules/detective/example/strings.js +6 -0
  168. data/node_modules/browserify/node_modules/detective/example/strings_src.js +3 -0
  169. data/node_modules/browserify/node_modules/detective/index.js +60 -0
  170. data/node_modules/browserify/node_modules/detective/node_modules/esprima/LICENSE.BSD +19 -0
  171. data/node_modules/browserify/node_modules/detective/node_modules/esprima/README.md +74 -0
  172. data/node_modules/browserify/node_modules/detective/node_modules/esprima/assets/codemirror/codemirror.css +112 -0
  173. data/node_modules/browserify/node_modules/detective/node_modules/esprima/assets/codemirror/codemirror.js +2972 -0
  174. data/node_modules/browserify/node_modules/detective/node_modules/esprima/assets/codemirror/javascript.js +360 -0
  175. data/node_modules/browserify/node_modules/detective/node_modules/esprima/assets/json2.js +487 -0
  176. data/node_modules/browserify/node_modules/detective/node_modules/esprima/assets/style.css +164 -0
  177. data/node_modules/browserify/node_modules/detective/node_modules/esprima/assets/yui/treeview-min.js +12 -0
  178. data/node_modules/browserify/node_modules/detective/node_modules/esprima/assets/yui/treeview-sprite.gif +0 -0
  179. data/node_modules/browserify/node_modules/detective/node_modules/esprima/assets/yui/treeview.css +7 -0
  180. data/node_modules/browserify/node_modules/detective/node_modules/esprima/assets/yui/yahoo-dom-event.js +14 -0
  181. data/node_modules/browserify/node_modules/detective/node_modules/esprima/bin/esparse.js +42 -0
  182. data/node_modules/browserify/node_modules/detective/node_modules/esprima/changes +92 -0
  183. data/node_modules/browserify/node_modules/detective/node_modules/esprima/cm +696 -0
  184. data/node_modules/browserify/node_modules/detective/node_modules/esprima/demo/checkenv.js +42 -0
  185. data/node_modules/browserify/node_modules/detective/node_modules/esprima/demo/collector.html +82 -0
  186. data/node_modules/browserify/node_modules/detective/node_modules/esprima/demo/collector.js +170 -0
  187. data/node_modules/browserify/node_modules/detective/node_modules/esprima/demo/functiontrace.html +106 -0
  188. data/node_modules/browserify/node_modules/detective/node_modules/esprima/demo/functiontrace.js +123 -0
  189. data/node_modules/browserify/node_modules/detective/node_modules/esprima/demo/parse.css +82 -0
  190. data/node_modules/browserify/node_modules/detective/node_modules/esprima/demo/parse.html +352 -0
  191. data/node_modules/browserify/node_modules/detective/node_modules/esprima/demo/precedence.html +225 -0
  192. data/node_modules/browserify/node_modules/detective/node_modules/esprima/demo/rewrite.html +120 -0
  193. data/node_modules/browserify/node_modules/detective/node_modules/esprima/demo/rewrite.js +71 -0
  194. data/node_modules/browserify/node_modules/detective/node_modules/esprima/esprima.js +3577 -0
  195. data/node_modules/browserify/node_modules/detective/node_modules/esprima/index.html +103 -0
  196. data/node_modules/browserify/node_modules/detective/node_modules/esprima/package.json +39 -0
  197. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/Tokenizer.js +646 -0
  198. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/XMLHttpRequest.js +509 -0
  199. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/ZeParser.js +2185 -0
  200. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/backbone-0.5.3.js +1158 -0
  201. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/benchmark.js +3261 -0
  202. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/escodegen.js +906 -0
  203. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/esmorph.js +240 -0
  204. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/ext-core-3.0.0.js +6579 -0
  205. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/ext-core-3.1.0.js +10255 -0
  206. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/jquery-1.6.4.js +9046 -0
  207. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/jquery-1.7.1.js +9266 -0
  208. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/jquery.mobile-1.0.js +6951 -0
  209. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/jsdefs.js +731 -0
  210. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/jslex.js +588 -0
  211. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/jsparse.js +1921 -0
  212. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/mootools-1.3.2.js +5952 -0
  213. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/mootools-1.4.1.js +6297 -0
  214. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/parse-js.js +1342 -0
  215. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/platform.js +878 -0
  216. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/prototype-1.6.1.js +4874 -0
  217. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/prototype-1.7.0.0.js +6082 -0
  218. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/3rdparty/underscore-1.2.3.js +981 -0
  219. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/benchmarks.html +58 -0
  220. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/benchmarks.js +328 -0
  221. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/compare.html +140 -0
  222. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/compare.js +270 -0
  223. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/compat.html +40 -0
  224. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/compat.js +239 -0
  225. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/coverage.footer.html +3 -0
  226. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/coverage.header.html +37 -0
  227. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/coverage.html +3617 -0
  228. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/index.html +36 -0
  229. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/reflect.js +403 -0
  230. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/run.js +66 -0
  231. data/node_modules/browserify/node_modules/detective/node_modules/esprima/test/test.js +16659 -0
  232. data/node_modules/browserify/node_modules/detective/node_modules/esprima/tools/generate-unicode-regex.py +164 -0
  233. data/node_modules/browserify/node_modules/detective/node_modules/esprima/tools/update-coverage.sh +28 -0
  234. data/node_modules/browserify/node_modules/detective/package.json +43 -0
  235. data/node_modules/browserify/node_modules/detective/test/both.js +11 -0
  236. data/node_modules/browserify/node_modules/detective/test/chained.js +9 -0
  237. data/node_modules/browserify/node_modules/detective/test/files/both.js +4 -0
  238. data/node_modules/browserify/node_modules/detective/test/files/chained.js +5 -0
  239. data/node_modules/browserify/node_modules/detective/test/files/nested.js +22 -0
  240. data/node_modules/browserify/node_modules/detective/test/files/skip.js +7 -0
  241. data/node_modules/browserify/node_modules/detective/test/files/strings.js +13 -0
  242. data/node_modules/browserify/node_modules/detective/test/files/word.js +13 -0
  243. data/node_modules/browserify/node_modules/detective/test/nested.js +9 -0
  244. data/node_modules/browserify/node_modules/detective/test/skip.js +9 -0
  245. data/node_modules/browserify/node_modules/detective/test/strings.js +9 -0
  246. data/node_modules/browserify/node_modules/detective/test/word.js +12 -0
  247. data/node_modules/browserify/node_modules/http-browserify/example/get/index.html +9 -0
  248. data/node_modules/browserify/node_modules/http-browserify/example/get/main.js +14 -0
  249. data/node_modules/browserify/node_modules/http-browserify/example/get/server.js +12 -0
  250. data/node_modules/browserify/node_modules/http-browserify/example/headers/index.html +9 -0
  251. data/node_modules/browserify/node_modules/http-browserify/example/headers/main.js +18 -0
  252. data/node_modules/browserify/node_modules/http-browserify/example/headers/server.js +15 -0
  253. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/data.json +139 -0
  254. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/index.html +9 -0
  255. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/main.js +13 -0
  256. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/LICENSE.APACHE2 +15 -0
  257. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/LICENSE.MIT +24 -0
  258. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/examples/all_docs.js +13 -0
  259. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/index.js +189 -0
  260. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/LICENSE +24 -0
  261. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/README.markdown +11 -0
  262. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/bench.js +26 -0
  263. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/examples/twitterfeed.js +30 -0
  264. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/jsonparse.js +379 -0
  265. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/package.json +36 -0
  266. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/samplejson/basic.json +167 -0
  267. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/samplejson/basic2.json +180 -0
  268. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/test/primitives.js +54 -0
  269. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/test/utf8.js +38 -0
  270. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/package.json +40 -0
  271. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/readme.markdown +145 -0
  272. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/bool.js +41 -0
  273. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/destroy_missing.js +22 -0
  274. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/empty.js +44 -0
  275. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/fixtures/all_npm.json +4030 -0
  276. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/fn.js +39 -0
  277. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/memory.js +69 -0
  278. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/multiple_objects.js +42 -0
  279. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/multiple_objects_error.js +35 -0
  280. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/parsejson.js +28 -0
  281. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/stringify.js +41 -0
  282. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/stringify_object.js +47 -0
  283. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/test.js +35 -0
  284. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/test2.js +29 -0
  285. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/two-ways.js +41 -0
  286. data/node_modules/browserify/node_modules/http-browserify/example/json-stream/server.js +10 -0
  287. data/node_modules/browserify/node_modules/http-browserify/example/post/index.html +9 -0
  288. data/node_modules/browserify/node_modules/http-browserify/example/post/main.js +16 -0
  289. data/node_modules/browserify/node_modules/http-browserify/example/post/server.js +19 -0
  290. data/node_modules/browserify/node_modules/http-browserify/example/streaming/index.html +9 -0
  291. data/node_modules/browserify/node_modules/http-browserify/example/streaming/main.js +16 -0
  292. data/node_modules/browserify/node_modules/http-browserify/example/streaming/server.js +21 -0
  293. data/node_modules/browserify/node_modules/http-browserify/index.js +60 -0
  294. data/node_modules/browserify/node_modules/http-browserify/lib/request.js +128 -0
  295. data/node_modules/browserify/node_modules/http-browserify/lib/response.js +119 -0
  296. data/node_modules/browserify/node_modules/http-browserify/node_modules/concat-stream/index.js +48 -0
  297. data/node_modules/browserify/node_modules/http-browserify/node_modules/concat-stream/package.json +29 -0
  298. data/node_modules/browserify/node_modules/http-browserify/node_modules/concat-stream/readme.md +31 -0
  299. data/node_modules/browserify/node_modules/http-browserify/node_modules/concat-stream/test.js +34 -0
  300. data/node_modules/browserify/node_modules/http-browserify/package.json +42 -0
  301. data/node_modules/browserify/node_modules/http-browserify/readme.markdown +128 -0
  302. data/node_modules/browserify/node_modules/nub/README.markdown +23 -0
  303. data/node_modules/browserify/node_modules/nub/index.js +64 -0
  304. data/node_modules/browserify/node_modules/nub/package.json +42 -0
  305. data/node_modules/browserify/node_modules/nub/test/by.js +51 -0
  306. data/node_modules/browserify/node_modules/nub/test/nub.js +46 -0
  307. data/node_modules/browserify/node_modules/optimist/LICENSE +21 -0
  308. data/node_modules/browserify/node_modules/optimist/README.markdown +487 -0
  309. data/node_modules/browserify/node_modules/optimist/example/bool.js +10 -0
  310. data/node_modules/browserify/node_modules/optimist/example/boolean_double.js +7 -0
  311. data/node_modules/browserify/node_modules/optimist/example/boolean_single.js +7 -0
  312. data/node_modules/browserify/node_modules/optimist/example/default_hash.js +8 -0
  313. data/node_modules/browserify/node_modules/optimist/example/default_singles.js +7 -0
  314. data/node_modules/browserify/node_modules/optimist/example/divide.js +8 -0
  315. data/node_modules/browserify/node_modules/optimist/example/line_count.js +20 -0
  316. data/node_modules/browserify/node_modules/optimist/example/line_count_options.js +29 -0
  317. data/node_modules/browserify/node_modules/optimist/example/line_count_wrap.js +29 -0
  318. data/node_modules/browserify/node_modules/optimist/example/nonopt.js +4 -0
  319. data/node_modules/browserify/node_modules/optimist/example/reflect.js +2 -0
  320. data/node_modules/browserify/node_modules/optimist/example/short.js +3 -0
  321. data/node_modules/browserify/node_modules/optimist/example/string.js +11 -0
  322. data/node_modules/browserify/node_modules/optimist/example/usage-options.js +19 -0
  323. data/node_modules/browserify/node_modules/optimist/example/xup.js +10 -0
  324. data/node_modules/browserify/node_modules/optimist/index.js +475 -0
  325. data/node_modules/browserify/node_modules/optimist/node_modules/wordwrap/README.markdown +70 -0
  326. data/node_modules/browserify/node_modules/optimist/node_modules/wordwrap/example/center.js +10 -0
  327. data/node_modules/browserify/node_modules/optimist/node_modules/wordwrap/example/meat.js +3 -0
  328. data/node_modules/browserify/node_modules/optimist/node_modules/wordwrap/index.js +76 -0
  329. data/node_modules/browserify/node_modules/optimist/node_modules/wordwrap/package.json +41 -0
  330. data/node_modules/browserify/node_modules/optimist/node_modules/wordwrap/test/break.js +30 -0
  331. data/node_modules/browserify/node_modules/optimist/node_modules/wordwrap/test/idleness.txt +63 -0
  332. data/node_modules/browserify/node_modules/optimist/node_modules/wordwrap/test/wrap.js +31 -0
  333. data/node_modules/browserify/node_modules/optimist/package.json +47 -0
  334. data/node_modules/browserify/node_modules/optimist/test/_/argv.js +2 -0
  335. data/node_modules/browserify/node_modules/optimist/test/_/bin.js +3 -0
  336. data/node_modules/browserify/node_modules/optimist/test/_.js +71 -0
  337. data/node_modules/browserify/node_modules/optimist/test/parse.js +433 -0
  338. data/node_modules/browserify/node_modules/optimist/test/usage.js +292 -0
  339. data/node_modules/browserify/node_modules/optimist/x.js +1 -0
  340. data/node_modules/browserify/node_modules/resolve/LICENSE +18 -0
  341. data/node_modules/browserify/node_modules/resolve/README.markdown +47 -0
  342. data/node_modules/browserify/node_modules/resolve/index.js +109 -0
  343. data/node_modules/browserify/node_modules/resolve/package.json +41 -0
  344. data/node_modules/browserify/node_modules/resolve/test/core.js +12 -0
  345. data/node_modules/browserify/node_modules/resolve/test/filter.js +15 -0
  346. data/node_modules/browserify/node_modules/resolve/test/mock.js +68 -0
  347. data/node_modules/browserify/node_modules/resolve/test/resolver/bar/node_modules/foo/index.js +1 -0
  348. data/node_modules/browserify/node_modules/resolve/test/resolver/baz/doom.js +0 -0
  349. data/node_modules/browserify/node_modules/resolve/test/resolver/baz/package.json +3 -0
  350. data/node_modules/browserify/node_modules/resolve/test/resolver/baz/quux.js +1 -0
  351. data/node_modules/browserify/node_modules/resolve/test/resolver/biz/node_modules/grux/index.js +1 -0
  352. data/node_modules/browserify/node_modules/resolve/test/resolver/biz/node_modules/tiv/index.js +1 -0
  353. data/node_modules/browserify/node_modules/resolve/test/resolver/cup.coffee +1 -0
  354. data/node_modules/browserify/node_modules/resolve/test/resolver/foo.js +1 -0
  355. data/node_modules/browserify/node_modules/resolve/test/resolver/mug.coffee +0 -0
  356. data/node_modules/browserify/node_modules/resolve/test/resolver/mug.js +0 -0
  357. data/node_modules/browserify/node_modules/resolve/test/resolver/other_path/lib/other-lib.js +0 -0
  358. data/node_modules/browserify/node_modules/resolve/test/resolver/other_path/root.js +0 -0
  359. data/node_modules/browserify/node_modules/resolve/test/resolver.js +157 -0
  360. data/node_modules/browserify/node_modules/syntax-error/LICENSE +18 -0
  361. data/node_modules/browserify/node_modules/syntax-error/example/check.js +12 -0
  362. data/node_modules/browserify/node_modules/syntax-error/example/src.js +9 -0
  363. data/node_modules/browserify/node_modules/syntax-error/index.js +54 -0
  364. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/LICENSE.BSD +19 -0
  365. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/README.md +74 -0
  366. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/assets/codemirror/codemirror.css +112 -0
  367. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/assets/codemirror/codemirror.js +2972 -0
  368. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/assets/codemirror/javascript.js +360 -0
  369. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/assets/json2.js +487 -0
  370. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/assets/style.css +164 -0
  371. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/assets/yui/treeview-min.js +12 -0
  372. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/assets/yui/treeview-sprite.gif +0 -0
  373. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/assets/yui/treeview.css +7 -0
  374. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/assets/yui/yahoo-dom-event.js +14 -0
  375. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/bin/esparse.js +42 -0
  376. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/changes +92 -0
  377. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/cm +696 -0
  378. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/demo/checkenv.js +42 -0
  379. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/demo/collector.html +82 -0
  380. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/demo/collector.js +170 -0
  381. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/demo/functiontrace.html +106 -0
  382. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/demo/functiontrace.js +123 -0
  383. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/demo/parse.css +82 -0
  384. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/demo/parse.html +352 -0
  385. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/demo/precedence.html +225 -0
  386. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/demo/rewrite.html +120 -0
  387. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/demo/rewrite.js +71 -0
  388. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/esprima.js +3577 -0
  389. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/index.html +103 -0
  390. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/package.json +39 -0
  391. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/Tokenizer.js +646 -0
  392. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/XMLHttpRequest.js +509 -0
  393. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/ZeParser.js +2185 -0
  394. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/backbone-0.5.3.js +1158 -0
  395. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/benchmark.js +3261 -0
  396. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/escodegen.js +906 -0
  397. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/esmorph.js +240 -0
  398. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/ext-core-3.0.0.js +6579 -0
  399. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/ext-core-3.1.0.js +10255 -0
  400. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/jquery-1.6.4.js +9046 -0
  401. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/jquery-1.7.1.js +9266 -0
  402. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/jquery.mobile-1.0.js +6951 -0
  403. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/jsdefs.js +731 -0
  404. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/jslex.js +588 -0
  405. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/jsparse.js +1921 -0
  406. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/mootools-1.3.2.js +5952 -0
  407. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/mootools-1.4.1.js +6297 -0
  408. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/parse-js.js +1342 -0
  409. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/platform.js +878 -0
  410. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/prototype-1.6.1.js +4874 -0
  411. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/prototype-1.7.0.0.js +6082 -0
  412. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/underscore-1.2.3.js +981 -0
  413. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/benchmarks.html +58 -0
  414. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/benchmarks.js +328 -0
  415. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/compare.html +140 -0
  416. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/compare.js +270 -0
  417. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/compat.html +40 -0
  418. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/compat.js +239 -0
  419. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/coverage.footer.html +3 -0
  420. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/coverage.header.html +37 -0
  421. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/coverage.html +3617 -0
  422. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/index.html +36 -0
  423. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/reflect.js +403 -0
  424. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/run.js +66 -0
  425. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/test.js +16659 -0
  426. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/tools/generate-unicode-regex.py +164 -0
  427. data/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/tools/update-coverage.sh +28 -0
  428. data/node_modules/browserify/node_modules/syntax-error/package.json +46 -0
  429. data/node_modules/browserify/node_modules/syntax-error/readme.markdown +87 -0
  430. data/node_modules/browserify/node_modules/syntax-error/test/check.js +17 -0
  431. data/node_modules/browserify/node_modules/syntax-error/test/sources/check.js +9 -0
  432. data/node_modules/browserify/node_modules/vm-browserify/README.markdown +103 -0
  433. data/node_modules/browserify/node_modules/vm-browserify/example/run/bundle.js +473 -0
  434. data/node_modules/browserify/node_modules/vm-browserify/example/run/entry.js +6 -0
  435. data/node_modules/browserify/node_modules/vm-browserify/example/run/index.html +9 -0
  436. data/node_modules/browserify/node_modules/vm-browserify/example/run/server.js +6 -0
  437. data/node_modules/browserify/node_modules/vm-browserify/index.js +85 -0
  438. data/node_modules/browserify/node_modules/vm-browserify/package.json +39 -0
  439. data/node_modules/browserify/node_modules/vm-browserify/testling/run.js +22 -0
  440. data/node_modules/browserify/node_modules/vm-browserify/testling/test.sh +11 -0
  441. data/node_modules/browserify/package.json +71 -0
  442. data/node_modules/browserify/test/alias.js +58 -0
  443. data/node_modules/browserify/test/backbone.js +21 -0
  444. data/node_modules/browserify/test/bin.js +39 -0
  445. data/node_modules/browserify/test/buffer.js +99 -0
  446. data/node_modules/browserify/test/bundle.js +32 -0
  447. data/node_modules/browserify/test/cache.js +28 -0
  448. data/node_modules/browserify/test/coffee/bar.js +1 -0
  449. data/node_modules/browserify/test/coffee/baz.coffee +1 -0
  450. data/node_modules/browserify/test/coffee/entry.coffee +1 -0
  451. data/node_modules/browserify/test/coffee/foo.coffee +1 -0
  452. data/node_modules/browserify/test/coffee/index.coffee +5 -0
  453. data/node_modules/browserify/test/coffee/nested/nested.coffee +2 -0
  454. data/node_modules/browserify/test/coffee.js +39 -0
  455. data/node_modules/browserify/test/comment/main.js +2 -0
  456. data/node_modules/browserify/test/comment.js +17 -0
  457. data/node_modules/browserify/test/crypto.js +37 -0
  458. data/node_modules/browserify/test/dnode.js +27 -0
  459. data/node_modules/browserify/test/dollar/dollar/index.js +7 -0
  460. data/node_modules/browserify/test/dollar.js +19 -0
  461. data/node_modules/browserify/test/entry/main.js +1 -0
  462. data/node_modules/browserify/test/entry/one.js +1 -0
  463. data/node_modules/browserify/test/entry/two.js +1 -0
  464. data/node_modules/browserify/test/entry.js +36 -0
  465. data/node_modules/browserify/test/error_code/src.js +2 -0
  466. data/node_modules/browserify/test/error_code.js +24 -0
  467. data/node_modules/browserify/test/export/entry.js +1 -0
  468. data/node_modules/browserify/test/export.js +52 -0
  469. data/node_modules/browserify/test/field/miss.js +1 -0
  470. data/node_modules/browserify/test/field/node_modules/z-miss/browser.js +1 -0
  471. data/node_modules/browserify/test/field/node_modules/z-miss/main.js +1 -0
  472. data/node_modules/browserify/test/field/node_modules/z-miss/package.json +4 -0
  473. data/node_modules/browserify/test/field/node_modules/z-object/browser.js +1 -0
  474. data/node_modules/browserify/test/field/node_modules/z-object/main.js +1 -0
  475. data/node_modules/browserify/test/field/node_modules/z-object/package.json +6 -0
  476. data/node_modules/browserify/test/field/node_modules/z-string/browser.js +1 -0
  477. data/node_modules/browserify/test/field/node_modules/z-string/main.js +1 -0
  478. data/node_modules/browserify/test/field/node_modules/z-string/package.json +4 -0
  479. data/node_modules/browserify/test/field/node_modules/z-sub/browser/a.js +1 -0
  480. data/node_modules/browserify/test/field/node_modules/z-sub/browser/b.js +1 -0
  481. data/node_modules/browserify/test/field/node_modules/z-sub/main.js +1 -0
  482. data/node_modules/browserify/test/field/node_modules/z-sub/package.json +4 -0
  483. data/node_modules/browserify/test/field/object.js +1 -0
  484. data/node_modules/browserify/test/field/string.js +1 -0
  485. data/node_modules/browserify/test/field/sub.js +1 -0
  486. data/node_modules/browserify/test/field.js +64 -0
  487. data/node_modules/browserify/test/global/main.js +2 -0
  488. data/node_modules/browserify/test/global.js +19 -0
  489. data/node_modules/browserify/test/jade.js +35 -0
  490. data/node_modules/browserify/test/json/beep.json +4 -0
  491. data/node_modules/browserify/test/json/main.js +1 -0
  492. data/node_modules/browserify/test/json.js +17 -0
  493. data/node_modules/browserify/test/maxlisteners.js +8 -0
  494. data/node_modules/browserify/test/module.js +22 -0
  495. data/node_modules/browserify/test/multi_entry/a.js +2 -0
  496. data/node_modules/browserify/test/multi_entry/b.js +2 -0
  497. data/node_modules/browserify/test/multi_entry/c.js +3 -0
  498. data/node_modules/browserify/test/multi_entry.js +20 -0
  499. data/node_modules/browserify/test/multi_ignore.js +23 -0
  500. data/node_modules/browserify/test/node_modules/beep/index.js +1 -0
  501. data/node_modules/browserify/test/require_cache.js +18 -0
  502. data/node_modules/browserify/test/retarget.js +27 -0
  503. data/node_modules/browserify/test/seq.js +47 -0
  504. data/node_modules/browserify/test/subdep/index.js +1 -0
  505. data/node_modules/browserify/test/subdep/node_modules/qq/b.js +1 -0
  506. data/node_modules/browserify/test/subdep/node_modules/qq/ignore_me.js +1 -0
  507. data/node_modules/browserify/test/subdep/node_modules/qq/node_modules/a/index.js +1 -0
  508. data/node_modules/browserify/test/subdep/node_modules/qq/node_modules/a/package.json +5 -0
  509. data/node_modules/browserify/test/subdep/node_modules/qq/node_modules/c/index.js +1 -0
  510. data/node_modules/browserify/test/subdep/node_modules/qq/node_modules/c/package.json +5 -0
  511. data/node_modules/browserify/test/subdep/node_modules/qq/node_modules/f/index.js +1 -0
  512. data/node_modules/browserify/test/subdep/node_modules/qq/node_modules/z/index.js +1 -0
  513. data/node_modules/browserify/test/subdep/node_modules/qq/package.json +3 -0
  514. data/node_modules/browserify/test/subdep/package.json +6 -0
  515. data/node_modules/browserify/test/subdep.js +26 -0
  516. data/node_modules/browserify/test/util.js +48 -0
  517. data/node_modules/browserify/test/watch/a.js +1 -0
  518. data/node_modules/browserify/test/watch.js +91 -0
  519. data/node_modules/browserify/test/wrap/a.js +2 -0
  520. data/node_modules/browserify/test/wrap/c.js +1 -0
  521. data/node_modules/browserify/test/wrap/node_modules/b/main.js +1 -0
  522. data/node_modules/browserify/test/wrap/node_modules/b/package.json +3 -0
  523. data/node_modules/browserify/test/wrap/node_modules/skipmetoo/index.js +1 -0
  524. data/node_modules/browserify/test/wrap/skipme.js +1 -0
  525. data/node_modules/browserify/test/wrap/x.js +0 -0
  526. data/node_modules/browserify/test/wrap.js +43 -0
  527. data/node_modules/browserify/testling/README.markdown +29 -0
  528. data/node_modules/browserify/testling/test.sh +37 -0
  529. data/node_modules/browserify/testling/tick.js +9 -0
  530. data/node_modules/browserify/testling/timers.js +50 -0
  531. data/node_modules/browserify/testling/util.js +24 -0
  532. data/node_modules/browserify/v2.markdown +41 -0
  533. data/node_modules/browserify/wrappers/alias.js +1 -0
  534. data/node_modules/browserify/wrappers/body.js +2 -0
  535. data/node_modules/browserify/wrappers/body_debug.js +2 -0
  536. data/node_modules/browserify/wrappers/entry.js +3 -0
  537. data/node_modules/browserify/wrappers/entry_debug.js +3 -0
  538. data/node_modules/browserify/wrappers/package.js +3 -0
  539. data/node_modules/browserify/wrappers/prelude.js +196 -0
  540. data/node_modules/module-deps/LICENSE +18 -0
  541. data/node_modules/module-deps/cmd.js +8 -0
  542. data/node_modules/module-deps/example/deps.js +8 -0
  543. data/node_modules/module-deps/example/files/bar.js +3 -0
  544. data/node_modules/module-deps/example/files/foo.js +5 -0
  545. data/node_modules/module-deps/example/files/main.js +2 -0
  546. data/node_modules/module-deps/example/files/xyz.js +2 -0
  547. data/node_modules/module-deps/index.js +142 -0
  548. data/node_modules/module-deps/node_modules/browser-resolve/README.md +14 -0
  549. data/node_modules/module-deps/node_modules/browser-resolve/builtin/assert.js +314 -0
  550. data/node_modules/module-deps/node_modules/browser-resolve/builtin/child_process.js +2 -0
  551. data/node_modules/module-deps/node_modules/browser-resolve/builtin/events.js +183 -0
  552. data/node_modules/module-deps/node_modules/browser-resolve/builtin/fs.js +1 -0
  553. data/node_modules/module-deps/node_modules/browser-resolve/builtin/https.js +13 -0
  554. data/node_modules/module-deps/node_modules/browser-resolve/builtin/net.js +1 -0
  555. data/node_modules/module-deps/node_modules/browser-resolve/builtin/path.js +175 -0
  556. data/node_modules/module-deps/node_modules/browser-resolve/builtin/process.js +55 -0
  557. data/node_modules/module-deps/node_modules/browser-resolve/builtin/querystring.js +250 -0
  558. data/node_modules/module-deps/node_modules/browser-resolve/builtin/stream.js +119 -0
  559. data/node_modules/module-deps/node_modules/browser-resolve/builtin/string_decoder.js +161 -0
  560. data/node_modules/module-deps/node_modules/browser-resolve/builtin/sys.js +1 -0
  561. data/node_modules/module-deps/node_modules/browser-resolve/builtin/timers.js +39 -0
  562. data/node_modules/module-deps/node_modules/browser-resolve/builtin/tls.js +1 -0
  563. data/node_modules/module-deps/node_modules/browser-resolve/builtin/tty.js +2 -0
  564. data/node_modules/module-deps/node_modules/browser-resolve/builtin/url.js +604 -0
  565. data/node_modules/module-deps/node_modules/browser-resolve/builtin/util.js +351 -0
  566. data/node_modules/module-deps/node_modules/browser-resolve/index.js +144 -0
  567. data/node_modules/module-deps/node_modules/browser-resolve/node_modules/buffer-browserify/README.md +11 -0
  568. data/node_modules/module-deps/node_modules/browser-resolve/node_modules/buffer-browserify/buffer_ieee754.js +84 -0
  569. data/node_modules/module-deps/node_modules/browser-resolve/node_modules/buffer-browserify/index.js +1282 -0
  570. data/node_modules/module-deps/node_modules/browser-resolve/node_modules/buffer-browserify/node_modules/base64-js/README.md +14 -0
  571. data/node_modules/module-deps/node_modules/browser-resolve/node_modules/buffer-browserify/node_modules/base64-js/lib/b64.js +84 -0
  572. data/node_modules/module-deps/node_modules/browser-resolve/node_modules/buffer-browserify/node_modules/base64-js/package.json +26 -0
  573. data/node_modules/module-deps/node_modules/browser-resolve/node_modules/buffer-browserify/node_modules/base64-js/test/runner.js +50 -0
  574. data/node_modules/module-deps/node_modules/browser-resolve/node_modules/buffer-browserify/package.json +42 -0
  575. data/node_modules/module-deps/node_modules/browser-resolve/node_modules/buffer-browserify/test/buffer.js +121 -0
  576. data/node_modules/module-deps/node_modules/browser-resolve/node_modules/console-browserify/LICENCE +19 -0
  577. data/node_modules/module-deps/node_modules/browser-resolve/node_modules/console-browserify/README.md +32 -0
  578. data/node_modules/module-deps/node_modules/browser-resolve/node_modules/console-browserify/index.js +85 -0
  579. data/node_modules/module-deps/node_modules/browser-resolve/node_modules/console-browserify/package.json +76 -0
  580. data/node_modules/module-deps/node_modules/browser-resolve/node_modules/console-browserify/test/index.js +67 -0
  581. data/node_modules/module-deps/node_modules/browser-resolve/node_modules/console-browserify/test/static/index.html +12 -0
  582. data/node_modules/module-deps/node_modules/browser-resolve/node_modules/console-browserify/test/static/test-adapter.js +53 -0
  583. data/node_modules/module-deps/node_modules/browser-resolve/node_modules/crypto-browserify/example/bundle.js +637 -0
  584. data/node_modules/module-deps/node_modules/browser-resolve/node_modules/crypto-browserify/example/index.html +12 -0
  585. data/node_modules/module-deps/node_modules/browser-resolve/node_modules/crypto-browserify/example/test.js +4 -0
  586. data/node_modules/module-deps/node_modules/browser-resolve/node_modules/crypto-browserify/index.js +74 -0
  587. data/node_modules/module-deps/node_modules/browser-resolve/node_modules/crypto-browserify/md5.js +384 -0
  588. data/node_modules/module-deps/node_modules/browser-resolve/node_modules/crypto-browserify/package.json +30 -0
  589. data/node_modules/module-deps/node_modules/browser-resolve/node_modules/crypto-browserify/readme.markdown +20 -0
  590. data/node_modules/module-deps/node_modules/browser-resolve/node_modules/crypto-browserify/rng.js +37 -0
  591. data/node_modules/module-deps/node_modules/browser-resolve/node_modules/crypto-browserify/sha.js +210 -0
  592. data/node_modules/module-deps/node_modules/browser-resolve/node_modules/crypto-browserify/test/simple.js +35 -0
  593. data/node_modules/module-deps/node_modules/browser-resolve/node_modules/http-browserify/README.markdown +128 -0
  594. data/node_modules/module-deps/node_modules/browser-resolve/node_modules/http-browserify/example/get/index.html +9 -0
  595. data/node_modules/module-deps/node_modules/browser-resolve/node_modules/http-browserify/example/get/main.js +14 -0
  596. data/node_modules/module-deps/node_modules/browser-resolve/node_modules/http-browserify/example/get/server.js +12 -0
  597. data/node_modules/module-deps/node_modules/browser-resolve/node_modules/http-browserify/example/headers/index.html +9 -0
  598. data/node_modules/module-deps/node_modules/browser-resolve/node_modules/http-browserify/example/headers/main.js +18 -0
  599. data/node_modules/module-deps/node_modules/browser-resolve/node_modules/http-browserify/example/headers/server.js +15 -0
  600. data/node_modules/module-deps/node_modules/browser-resolve/node_modules/http-browserify/example/post/index.html +9 -0
  601. data/node_modules/module-deps/node_modules/browser-resolve/node_modules/http-browserify/example/post/main.js +16 -0
  602. data/node_modules/module-deps/node_modules/browser-resolve/node_modules/http-browserify/example/post/server.js +19 -0
  603. data/node_modules/module-deps/node_modules/browser-resolve/node_modules/http-browserify/example/streaming/index.html +9 -0
  604. data/node_modules/module-deps/node_modules/browser-resolve/node_modules/http-browserify/example/streaming/main.js +16 -0
  605. data/node_modules/module-deps/node_modules/browser-resolve/node_modules/http-browserify/example/streaming/server.js +21 -0
  606. data/node_modules/module-deps/node_modules/browser-resolve/node_modules/http-browserify/index.js +59 -0
  607. data/node_modules/module-deps/node_modules/browser-resolve/node_modules/http-browserify/lib/request.js +122 -0
  608. data/node_modules/module-deps/node_modules/browser-resolve/node_modules/http-browserify/lib/response.js +119 -0
  609. data/node_modules/module-deps/node_modules/browser-resolve/node_modules/http-browserify/node_modules/concat-stream/index.js +48 -0
  610. data/node_modules/module-deps/node_modules/browser-resolve/node_modules/http-browserify/node_modules/concat-stream/package.json +29 -0
  611. data/node_modules/module-deps/node_modules/browser-resolve/node_modules/http-browserify/node_modules/concat-stream/readme.md +31 -0
  612. data/node_modules/module-deps/node_modules/browser-resolve/node_modules/http-browserify/node_modules/concat-stream/test.js +34 -0
  613. data/node_modules/module-deps/node_modules/browser-resolve/node_modules/http-browserify/package.json +42 -0
  614. data/node_modules/module-deps/node_modules/browser-resolve/node_modules/vm-browserify/README.markdown +103 -0
  615. data/node_modules/module-deps/node_modules/browser-resolve/node_modules/vm-browserify/example/run/bundle.js +473 -0
  616. data/node_modules/module-deps/node_modules/browser-resolve/node_modules/vm-browserify/example/run/entry.js +6 -0
  617. data/node_modules/module-deps/node_modules/browser-resolve/node_modules/vm-browserify/example/run/index.html +9 -0
  618. data/node_modules/module-deps/node_modules/browser-resolve/node_modules/vm-browserify/example/run/server.js +6 -0
  619. data/node_modules/module-deps/node_modules/browser-resolve/node_modules/vm-browserify/index.js +85 -0
  620. data/node_modules/module-deps/node_modules/browser-resolve/node_modules/vm-browserify/package.json +39 -0
  621. data/node_modules/module-deps/node_modules/browser-resolve/node_modules/vm-browserify/testling/run.js +22 -0
  622. data/node_modules/module-deps/node_modules/browser-resolve/node_modules/vm-browserify/testling/test.sh +11 -0
  623. data/node_modules/module-deps/node_modules/browser-resolve/node_modules/zlib-browserify/index.js +43 -0
  624. data/node_modules/module-deps/node_modules/browser-resolve/node_modules/zlib-browserify/package.json +33 -0
  625. data/node_modules/module-deps/node_modules/browser-resolve/node_modules/zlib-browserify/readme.md +1 -0
  626. data/node_modules/module-deps/node_modules/browser-resolve/node_modules/zlib-browserify/test/zlib.test.js +65 -0
  627. data/node_modules/module-deps/node_modules/browser-resolve/node_modules/zlib-browserify/zlib.js +55 -0
  628. data/node_modules/module-deps/node_modules/browser-resolve/package.json +38 -0
  629. data/node_modules/module-deps/node_modules/browser-resolve/test/core.js +20 -0
  630. data/node_modules/module-deps/node_modules/browser-resolve/test/fixtures/foo.js +1 -0
  631. data/node_modules/module-deps/node_modules/browser-resolve/test/local.js +15 -0
  632. data/node_modules/module-deps/node_modules/browser-resolve/test/mocha.opts +1 -0
  633. data/node_modules/module-deps/node_modules/browser-resolve/test/modules.js +99 -0
  634. data/node_modules/module-deps/node_modules/detective/LICENSE +18 -0
  635. data/node_modules/module-deps/node_modules/detective/example/strings.js +6 -0
  636. data/node_modules/module-deps/node_modules/detective/example/strings_src.js +3 -0
  637. data/node_modules/module-deps/node_modules/detective/index.js +62 -0
  638. data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/LICENSE.BSD +19 -0
  639. data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/LICENSE.source-map +27 -0
  640. data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/README.md +99 -0
  641. data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/bin/escodegen.js +43 -0
  642. data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/bin/esgenerate.js +43 -0
  643. data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/escodegen.js +2245 -0
  644. data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/LICENSE +28 -0
  645. data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/Makefile.dryice.js +165 -0
  646. data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/README.md +268 -0
  647. data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/build/assert-shim.js +56 -0
  648. data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/build/mini-require.js +152 -0
  649. data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/build/prefix-source-map.jsm +20 -0
  650. data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/build/prefix-utils.jsm +18 -0
  651. data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/build/suffix-browser.js +8 -0
  652. data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/build/suffix-source-map.jsm +6 -0
  653. data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/build/suffix-utils.jsm +20 -0
  654. data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/build/test-prefix.js +8 -0
  655. data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/build/test-suffix.js +3 -0
  656. data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/lib/source-map/array-set.js +107 -0
  657. data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/lib/source-map/base64-vlq.js +144 -0
  658. data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/lib/source-map/base64.js +42 -0
  659. data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/lib/source-map/binary-search.js +81 -0
  660. data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/lib/source-map/source-map-consumer.js +379 -0
  661. data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/lib/source-map/source-map-generator.js +202 -0
  662. data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/lib/source-map/source-node.js +199 -0
  663. data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/lib/source-map/util.js +40 -0
  664. data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/lib/source-map.js +8 -0
  665. data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/node_modules/amdefine/LICENSE +58 -0
  666. data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/node_modules/amdefine/README.md +119 -0
  667. data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/node_modules/amdefine/amdefine.js +299 -0
  668. data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/node_modules/amdefine/package.json +29 -0
  669. data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/package.json +38 -0
  670. data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/test/run-tests.js +72 -0
  671. data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/test/source-map/test-api.js +26 -0
  672. data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/test/source-map/test-array-set.js +71 -0
  673. data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/test/source-map/test-base64-vlq.js +24 -0
  674. data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/test/source-map/test-base64.js +35 -0
  675. data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/test/source-map/test-binary-search.js +54 -0
  676. data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/test/source-map/test-dog-fooding.js +72 -0
  677. data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/test/source-map/test-source-map-consumer.js +142 -0
  678. data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/test/source-map/test-source-map-generator.js +187 -0
  679. data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/test/source-map/test-source-node.js +163 -0
  680. data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/test/source-map/util.js +78 -0
  681. data/node_modules/module-deps/node_modules/detective/node_modules/escodegen/package.json +48 -0
  682. data/node_modules/module-deps/node_modules/detective/node_modules/esprima/ChangeLog +18 -0
  683. data/node_modules/module-deps/node_modules/detective/node_modules/esprima/LICENSE.BSD +19 -0
  684. data/node_modules/module-deps/node_modules/detective/node_modules/esprima/README.md +73 -0
  685. data/node_modules/module-deps/node_modules/detective/node_modules/esprima/bin/esparse.js +117 -0
  686. data/node_modules/module-deps/node_modules/detective/node_modules/esprima/bin/esvalidate.js +177 -0
  687. data/node_modules/module-deps/node_modules/detective/node_modules/esprima/component.json +14 -0
  688. data/node_modules/module-deps/node_modules/detective/node_modules/esprima/doc/index.html +473 -0
  689. data/node_modules/module-deps/node_modules/detective/node_modules/esprima/esprima.js +3895 -0
  690. data/node_modules/module-deps/node_modules/detective/node_modules/esprima/examples/detectnestedternary.js +106 -0
  691. data/node_modules/module-deps/node_modules/detective/node_modules/esprima/examples/findbooleantrap.js +173 -0
  692. data/node_modules/module-deps/node_modules/detective/node_modules/esprima/examples/tokendist.js +33 -0
  693. data/node_modules/module-deps/node_modules/detective/node_modules/esprima/index.html +102 -0
  694. data/node_modules/module-deps/node_modules/detective/node_modules/esprima/package.json +40 -0
  695. data/node_modules/module-deps/node_modules/detective/node_modules/esprima/test/benchmarks.html +58 -0
  696. data/node_modules/module-deps/node_modules/detective/node_modules/esprima/test/benchmarks.js +334 -0
  697. data/node_modules/module-deps/node_modules/detective/node_modules/esprima/test/compare.html +69 -0
  698. data/node_modules/module-deps/node_modules/detective/node_modules/esprima/test/compare.js +328 -0
  699. data/node_modules/module-deps/node_modules/detective/node_modules/esprima/test/compat.html +40 -0
  700. data/node_modules/module-deps/node_modules/detective/node_modules/esprima/test/compat.js +239 -0
  701. data/node_modules/module-deps/node_modules/detective/node_modules/esprima/test/coverage.footer.html +3 -0
  702. data/node_modules/module-deps/node_modules/detective/node_modules/esprima/test/coverage.header.html +37 -0
  703. data/node_modules/module-deps/node_modules/detective/node_modules/esprima/test/coverage.html +4676 -0
  704. data/node_modules/module-deps/node_modules/detective/node_modules/esprima/test/index.html +37 -0
  705. data/node_modules/module-deps/node_modules/detective/node_modules/esprima/test/module.html +36 -0
  706. data/node_modules/module-deps/node_modules/detective/node_modules/esprima/test/module.js +129 -0
  707. data/node_modules/module-deps/node_modules/detective/node_modules/esprima/test/reflect.js +422 -0
  708. data/node_modules/module-deps/node_modules/detective/node_modules/esprima/test/run.js +66 -0
  709. data/node_modules/module-deps/node_modules/detective/node_modules/esprima/test/runner.js +387 -0
  710. data/node_modules/module-deps/node_modules/detective/node_modules/esprima/test/test.js +19764 -0
  711. data/node_modules/module-deps/node_modules/detective/package.json +36 -0
  712. data/node_modules/module-deps/node_modules/detective/readme.markdown +70 -0
  713. data/node_modules/module-deps/node_modules/detective/test/both.js +11 -0
  714. data/node_modules/module-deps/node_modules/detective/test/chained.js +9 -0
  715. data/node_modules/module-deps/node_modules/detective/test/files/both.js +4 -0
  716. data/node_modules/module-deps/node_modules/detective/test/files/chained.js +5 -0
  717. data/node_modules/module-deps/node_modules/detective/test/files/nested.js +22 -0
  718. data/node_modules/module-deps/node_modules/detective/test/files/shebang.js +5 -0
  719. data/node_modules/module-deps/node_modules/detective/test/files/strings.js +13 -0
  720. data/node_modules/module-deps/node_modules/detective/test/files/word.js +13 -0
  721. data/node_modules/module-deps/node_modules/detective/test/nested.js +9 -0
  722. data/node_modules/module-deps/node_modules/detective/test/shebang.js +9 -0
  723. data/node_modules/module-deps/node_modules/detective/test/strings.js +9 -0
  724. data/node_modules/module-deps/node_modules/detective/test/word.js +12 -0
  725. data/node_modules/module-deps/node_modules/resolve/LICENSE +18 -0
  726. data/node_modules/module-deps/node_modules/resolve/example/async.js +5 -0
  727. data/node_modules/module-deps/node_modules/resolve/example/sync.js +3 -0
  728. data/node_modules/module-deps/node_modules/resolve/index.js +5 -0
  729. data/node_modules/module-deps/node_modules/resolve/lib/async.js +131 -0
  730. data/node_modules/module-deps/node_modules/resolve/lib/core.js +4 -0
  731. data/node_modules/module-deps/node_modules/resolve/lib/core.json +38 -0
  732. data/node_modules/module-deps/node_modules/resolve/lib/sync.js +98 -0
  733. data/node_modules/module-deps/node_modules/resolve/package.json +32 -0
  734. data/node_modules/module-deps/node_modules/resolve/readme.markdown +134 -0
  735. data/node_modules/module-deps/node_modules/resolve/test/core.js +12 -0
  736. data/node_modules/module-deps/node_modules/resolve/test/filter.js +17 -0
  737. data/node_modules/module-deps/node_modules/resolve/test/filter_sync.js +15 -0
  738. data/node_modules/module-deps/node_modules/resolve/test/mock.js +68 -0
  739. data/node_modules/module-deps/node_modules/resolve/test/mock_sync.js +68 -0
  740. data/node_modules/module-deps/node_modules/resolve/test/resolver/bar/node_modules/foo/index.js +1 -0
  741. data/node_modules/module-deps/node_modules/resolve/test/resolver/baz/doom.js +0 -0
  742. data/node_modules/module-deps/node_modules/resolve/test/resolver/baz/package.json +3 -0
  743. data/node_modules/module-deps/node_modules/resolve/test/resolver/baz/quux.js +1 -0
  744. data/node_modules/module-deps/node_modules/resolve/test/resolver/biz/node_modules/grux/index.js +1 -0
  745. data/node_modules/module-deps/node_modules/resolve/test/resolver/biz/node_modules/tiv/index.js +1 -0
  746. data/node_modules/module-deps/node_modules/resolve/test/resolver/cup.coffee +1 -0
  747. data/node_modules/module-deps/node_modules/resolve/test/resolver/foo.js +1 -0
  748. data/node_modules/module-deps/node_modules/resolve/test/resolver/mug.coffee +0 -0
  749. data/node_modules/module-deps/node_modules/resolve/test/resolver/mug.js +0 -0
  750. data/node_modules/module-deps/node_modules/resolve/test/resolver/other_path/lib/other-lib.js +0 -0
  751. data/node_modules/module-deps/node_modules/resolve/test/resolver/other_path/root.js +0 -0
  752. data/node_modules/module-deps/node_modules/resolve/test/resolver.js +144 -0
  753. data/node_modules/module-deps/node_modules/resolve/test/resolver_sync.js +157 -0
  754. data/node_modules/module-deps/package.json +47 -0
  755. data/node_modules/module-deps/readme.markdown +128 -0
  756. data/node_modules/module-deps/test/bundle.js +21 -0
  757. data/node_modules/module-deps/test/deps.js +42 -0
  758. data/node_modules/module-deps/test/files/bar.js +3 -0
  759. data/node_modules/module-deps/test/files/foo.js +5 -0
  760. data/node_modules/module-deps/test/files/main.js +2 -0
  761. data/node_modules/module-deps/test/files/tr_module/f.js +1 -0
  762. data/node_modules/module-deps/test/files/tr_module/main.js +7 -0
  763. data/node_modules/module-deps/test/files/tr_module/node_modules/g/index.js +1 -0
  764. data/node_modules/module-deps/test/files/tr_module/node_modules/g/node_modules/insert-ggg/index.js +7 -0
  765. data/node_modules/module-deps/test/files/tr_module/node_modules/g/package.json +6 -0
  766. data/node_modules/module-deps/test/files/tr_module/node_modules/insert-aaa/index.js +7 -0
  767. data/node_modules/module-deps/test/files/tr_module/node_modules/insert-bbb/index.js +7 -0
  768. data/node_modules/module-deps/test/files/tr_module/node_modules/m/index.js +3 -0
  769. data/node_modules/module-deps/test/files/tr_sh/f.js +1 -0
  770. data/node_modules/module-deps/test/files/tr_sh/main.js +7 -0
  771. data/node_modules/module-deps/test/files/tr_sh/node_modules/g/index.js +1 -0
  772. data/node_modules/module-deps/test/files/tr_sh/node_modules/g/package.json +6 -0
  773. data/node_modules/module-deps/test/files/tr_sh/node_modules/g/tr_g.js +6 -0
  774. data/node_modules/module-deps/test/files/tr_sh/node_modules/m/index.js +3 -0
  775. data/node_modules/module-deps/test/files/tr_sh/tr_a.js +6 -0
  776. data/node_modules/module-deps/test/files/tr_sh/tr_b.js +6 -0
  777. data/node_modules/module-deps/test/files/xyz.js +2 -0
  778. data/node_modules/module-deps/test/tr_fn.js +29 -0
  779. data/node_modules/module-deps/test/tr_module.js +21 -0
  780. data/node_modules/module-deps/test/tr_sh.js +21 -0
  781. data/node_modules/through/LICENSE.APACHE2 +15 -0
  782. data/node_modules/through/LICENSE.MIT +24 -0
  783. data/node_modules/through/index.js +103 -0
  784. data/node_modules/through/package.json +35 -0
  785. data/node_modules/through/readme.markdown +43 -0
  786. data/node_modules/through/test/buffering.js +71 -0
  787. data/node_modules/through/test/end.js +27 -0
  788. data/node_modules/through/test/index.js +113 -0
  789. data/package.json +11 -0
  790. metadata +846 -0
@@ -0,0 +1,1342 @@
1
+ /***********************************************************************
2
+
3
+ A JavaScript tokenizer / parser / beautifier / compressor.
4
+
5
+ This version is suitable for Node.js. With minimal changes (the
6
+ exports stuff) it should work on any JS platform.
7
+
8
+ This file contains the tokenizer/parser. It is a port to JavaScript
9
+ of parse-js [1], a JavaScript parser library written in Common Lisp
10
+ by Marijn Haverbeke. Thank you Marijn!
11
+
12
+ [1] http://marijn.haverbeke.nl/parse-js/
13
+
14
+ Exported functions:
15
+
16
+ - tokenizer(code) -- returns a function. Call the returned
17
+ function to fetch the next token.
18
+
19
+ - parse(code) -- returns an AST of the given JavaScript code.
20
+
21
+ -------------------------------- (C) ---------------------------------
22
+
23
+ Author: Mihai Bazon
24
+ <mihai.bazon@gmail.com>
25
+ http://mihai.bazon.net/blog
26
+
27
+ Distributed under the BSD license:
28
+
29
+ Copyright 2010 (c) Mihai Bazon <mihai.bazon@gmail.com>
30
+ Based on parse-js (http://marijn.haverbeke.nl/parse-js/).
31
+
32
+ Redistribution and use in source and binary forms, with or without
33
+ modification, are permitted provided that the following conditions
34
+ are met:
35
+
36
+ * Redistributions of source code must retain the above
37
+ copyright notice, this list of conditions and the following
38
+ disclaimer.
39
+
40
+ * Redistributions in binary form must reproduce the above
41
+ copyright notice, this list of conditions and the following
42
+ disclaimer in the documentation and/or other materials
43
+ provided with the distribution.
44
+
45
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER “AS IS” AND ANY
46
+ EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
47
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
48
+ PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE
49
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
50
+ OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
51
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
52
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
53
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
54
+ TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
55
+ THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
56
+ SUCH DAMAGE.
57
+
58
+ ***********************************************************************/
59
+
60
+ /* -----[ Tokenizer (constants) ]----- */
61
+
62
+ var KEYWORDS = array_to_hash([
63
+ "break",
64
+ "case",
65
+ "catch",
66
+ "const",
67
+ "continue",
68
+ "debugger",
69
+ "default",
70
+ "delete",
71
+ "do",
72
+ "else",
73
+ "finally",
74
+ "for",
75
+ "function",
76
+ "if",
77
+ "in",
78
+ "instanceof",
79
+ "new",
80
+ "return",
81
+ "switch",
82
+ "throw",
83
+ "try",
84
+ "typeof",
85
+ "var",
86
+ "void",
87
+ "while",
88
+ "with"
89
+ ]);
90
+
91
+ var RESERVED_WORDS = array_to_hash([
92
+ "abstract",
93
+ "boolean",
94
+ "byte",
95
+ "char",
96
+ "class",
97
+ "double",
98
+ "enum",
99
+ "export",
100
+ "extends",
101
+ "final",
102
+ "float",
103
+ "goto",
104
+ "implements",
105
+ "import",
106
+ "int",
107
+ "interface",
108
+ "long",
109
+ "native",
110
+ "package",
111
+ "private",
112
+ "protected",
113
+ "public",
114
+ "short",
115
+ "static",
116
+ "super",
117
+ "synchronized",
118
+ "throws",
119
+ "transient",
120
+ "volatile"
121
+ ]);
122
+
123
+ var KEYWORDS_BEFORE_EXPRESSION = array_to_hash([
124
+ "return",
125
+ "new",
126
+ "delete",
127
+ "throw",
128
+ "else",
129
+ "case"
130
+ ]);
131
+
132
+ var KEYWORDS_ATOM = array_to_hash([
133
+ "false",
134
+ "null",
135
+ "true",
136
+ "undefined"
137
+ ]);
138
+
139
+ var OPERATOR_CHARS = array_to_hash(characters("+-*&%=<>!?|~^"));
140
+
141
+ var RE_HEX_NUMBER = /^0x[0-9a-f]+$/i;
142
+ var RE_OCT_NUMBER = /^0[0-7]+$/;
143
+ var RE_DEC_NUMBER = /^\d*\.?\d*(?:e[+-]?\d*(?:\d\.?|\.?\d)\d*)?$/i;
144
+
145
+ var OPERATORS = array_to_hash([
146
+ "in",
147
+ "instanceof",
148
+ "typeof",
149
+ "new",
150
+ "void",
151
+ "delete",
152
+ "++",
153
+ "--",
154
+ "+",
155
+ "-",
156
+ "!",
157
+ "~",
158
+ "&",
159
+ "|",
160
+ "^",
161
+ "*",
162
+ "/",
163
+ "%",
164
+ ">>",
165
+ "<<",
166
+ ">>>",
167
+ "<",
168
+ ">",
169
+ "<=",
170
+ ">=",
171
+ "==",
172
+ "===",
173
+ "!=",
174
+ "!==",
175
+ "?",
176
+ "=",
177
+ "+=",
178
+ "-=",
179
+ "/=",
180
+ "*=",
181
+ "%=",
182
+ ">>=",
183
+ "<<=",
184
+ ">>>=",
185
+ "|=",
186
+ "^=",
187
+ "&=",
188
+ "&&",
189
+ "||"
190
+ ]);
191
+
192
+ var WHITESPACE_CHARS = array_to_hash(characters(" \u00a0\n\r\t\f\u000b\u200b\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000"));
193
+
194
+ var PUNC_BEFORE_EXPRESSION = array_to_hash(characters("[{}(,.;:"));
195
+
196
+ var PUNC_CHARS = array_to_hash(characters("[]{}(),;:"));
197
+
198
+ var REGEXP_MODIFIERS = array_to_hash(characters("gmsiy"));
199
+
200
+ /* -----[ Tokenizer ]----- */
201
+
202
+ // regexps adapted from http://xregexp.com/plugins/#unicode
203
+ var UNICODE = {
204
+ letter: new RegExp("[\\u0041-\\u005A\\u0061-\\u007A\\u00AA\\u00B5\\u00BA\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u0523\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0621-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971\\u0972\\u097B-\\u097F\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C33\\u0C35-\\u0C39\\u0C3D\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D28\\u0D2A-\\u0D39\\u0D3D\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC\\u0EDD\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8B\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10D0-\\u10FA\\u10FC\\u1100-\\u1159\\u115F-\\u11A2\\u11A8-\\u11F9\\u1200-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u1676\\u1681-\\u169A\\u16A0-\\u16EA\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u1900-\\u191C\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19A9\\u19C1-\\u19C7\\u1A00-\\u1A16\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u2094\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2C6F\\u2C71-\\u2C7D\\u2C80-\\u2CE4\\u2D00-\\u2D25\\u2D30-\\u2D65\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31B7\\u31F0-\\u31FF\\u3400\\u4DB5\\u4E00\\u9FC3\\uA000-\\uA48C\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA65F\\uA662-\\uA66E\\uA67F-\\uA697\\uA717-\\uA71F\\uA722-\\uA788\\uA78B\\uA78C\\uA7FB-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA90A-\\uA925\\uA930-\\uA946\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAC00\\uD7A3\\uF900-\\uFA2D\\uFA30-\\uFA6A\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]"),
205
+ non_spacing_mark: new RegExp("[\\u0300-\\u036F\\u0483-\\u0487\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u0610-\\u061A\\u064B-\\u065E\\u0670\\u06D6-\\u06DC\\u06DF-\\u06E4\\u06E7\\u06E8\\u06EA-\\u06ED\\u0711\\u0730-\\u074A\\u07A6-\\u07B0\\u07EB-\\u07F3\\u0816-\\u0819\\u081B-\\u0823\\u0825-\\u0827\\u0829-\\u082D\\u0900-\\u0902\\u093C\\u0941-\\u0948\\u094D\\u0951-\\u0955\\u0962\\u0963\\u0981\\u09BC\\u09C1-\\u09C4\\u09CD\\u09E2\\u09E3\\u0A01\\u0A02\\u0A3C\\u0A41\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A70\\u0A71\\u0A75\\u0A81\\u0A82\\u0ABC\\u0AC1-\\u0AC5\\u0AC7\\u0AC8\\u0ACD\\u0AE2\\u0AE3\\u0B01\\u0B3C\\u0B3F\\u0B41-\\u0B44\\u0B4D\\u0B56\\u0B62\\u0B63\\u0B82\\u0BC0\\u0BCD\\u0C3E-\\u0C40\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C62\\u0C63\\u0CBC\\u0CBF\\u0CC6\\u0CCC\\u0CCD\\u0CE2\\u0CE3\\u0D41-\\u0D44\\u0D4D\\u0D62\\u0D63\\u0DCA\\u0DD2-\\u0DD4\\u0DD6\\u0E31\\u0E34-\\u0E3A\\u0E47-\\u0E4E\\u0EB1\\u0EB4-\\u0EB9\\u0EBB\\u0EBC\\u0EC8-\\u0ECD\\u0F18\\u0F19\\u0F35\\u0F37\\u0F39\\u0F71-\\u0F7E\\u0F80-\\u0F84\\u0F86\\u0F87\\u0F90-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u102D-\\u1030\\u1032-\\u1037\\u1039\\u103A\\u103D\\u103E\\u1058\\u1059\\u105E-\\u1060\\u1071-\\u1074\\u1082\\u1085\\u1086\\u108D\\u109D\\u135F\\u1712-\\u1714\\u1732-\\u1734\\u1752\\u1753\\u1772\\u1773\\u17B7-\\u17BD\\u17C6\\u17C9-\\u17D3\\u17DD\\u180B-\\u180D\\u18A9\\u1920-\\u1922\\u1927\\u1928\\u1932\\u1939-\\u193B\\u1A17\\u1A18\\u1A56\\u1A58-\\u1A5E\\u1A60\\u1A62\\u1A65-\\u1A6C\\u1A73-\\u1A7C\\u1A7F\\u1B00-\\u1B03\\u1B34\\u1B36-\\u1B3A\\u1B3C\\u1B42\\u1B6B-\\u1B73\\u1B80\\u1B81\\u1BA2-\\u1BA5\\u1BA8\\u1BA9\\u1C2C-\\u1C33\\u1C36\\u1C37\\u1CD0-\\u1CD2\\u1CD4-\\u1CE0\\u1CE2-\\u1CE8\\u1CED\\u1DC0-\\u1DE6\\u1DFD-\\u1DFF\\u20D0-\\u20DC\\u20E1\\u20E5-\\u20F0\\u2CEF-\\u2CF1\\u2DE0-\\u2DFF\\u302A-\\u302F\\u3099\\u309A\\uA66F\\uA67C\\uA67D\\uA6F0\\uA6F1\\uA802\\uA806\\uA80B\\uA825\\uA826\\uA8C4\\uA8E0-\\uA8F1\\uA926-\\uA92D\\uA947-\\uA951\\uA980-\\uA982\\uA9B3\\uA9B6-\\uA9B9\\uA9BC\\uAA29-\\uAA2E\\uAA31\\uAA32\\uAA35\\uAA36\\uAA43\\uAA4C\\uAAB0\\uAAB2-\\uAAB4\\uAAB7\\uAAB8\\uAABE\\uAABF\\uAAC1\\uABE5\\uABE8\\uABED\\uFB1E\\uFE00-\\uFE0F\\uFE20-\\uFE26]"),
206
+ space_combining_mark: new RegExp("[\\u0903\\u093E-\\u0940\\u0949-\\u094C\\u094E\\u0982\\u0983\\u09BE-\\u09C0\\u09C7\\u09C8\\u09CB\\u09CC\\u09D7\\u0A03\\u0A3E-\\u0A40\\u0A83\\u0ABE-\\u0AC0\\u0AC9\\u0ACB\\u0ACC\\u0B02\\u0B03\\u0B3E\\u0B40\\u0B47\\u0B48\\u0B4B\\u0B4C\\u0B57\\u0BBE\\u0BBF\\u0BC1\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCC\\u0BD7\\u0C01-\\u0C03\\u0C41-\\u0C44\\u0C82\\u0C83\\u0CBE\\u0CC0-\\u0CC4\\u0CC7\\u0CC8\\u0CCA\\u0CCB\\u0CD5\\u0CD6\\u0D02\\u0D03\\u0D3E-\\u0D40\\u0D46-\\u0D48\\u0D4A-\\u0D4C\\u0D57\\u0D82\\u0D83\\u0DCF-\\u0DD1\\u0DD8-\\u0DDF\\u0DF2\\u0DF3\\u0F3E\\u0F3F\\u0F7F\\u102B\\u102C\\u1031\\u1038\\u103B\\u103C\\u1056\\u1057\\u1062-\\u1064\\u1067-\\u106D\\u1083\\u1084\\u1087-\\u108C\\u108F\\u109A-\\u109C\\u17B6\\u17BE-\\u17C5\\u17C7\\u17C8\\u1923-\\u1926\\u1929-\\u192B\\u1930\\u1931\\u1933-\\u1938\\u19B0-\\u19C0\\u19C8\\u19C9\\u1A19-\\u1A1B\\u1A55\\u1A57\\u1A61\\u1A63\\u1A64\\u1A6D-\\u1A72\\u1B04\\u1B35\\u1B3B\\u1B3D-\\u1B41\\u1B43\\u1B44\\u1B82\\u1BA1\\u1BA6\\u1BA7\\u1BAA\\u1C24-\\u1C2B\\u1C34\\u1C35\\u1CE1\\u1CF2\\uA823\\uA824\\uA827\\uA880\\uA881\\uA8B4-\\uA8C3\\uA952\\uA953\\uA983\\uA9B4\\uA9B5\\uA9BA\\uA9BB\\uA9BD-\\uA9C0\\uAA2F\\uAA30\\uAA33\\uAA34\\uAA4D\\uAA7B\\uABE3\\uABE4\\uABE6\\uABE7\\uABE9\\uABEA\\uABEC]"),
207
+ connector_punctuation: new RegExp("[\\u005F\\u203F\\u2040\\u2054\\uFE33\\uFE34\\uFE4D-\\uFE4F\\uFF3F]")
208
+ };
209
+
210
+ function is_letter(ch) {
211
+ return UNICODE.letter.test(ch);
212
+ };
213
+
214
+ function is_digit(ch) {
215
+ ch = ch.charCodeAt(0);
216
+ return ch >= 48 && ch <= 57; //XXX: find out if "UnicodeDigit" means something else than 0..9
217
+ };
218
+
219
+ function is_alphanumeric_char(ch) {
220
+ return is_digit(ch) || is_letter(ch);
221
+ };
222
+
223
+ function is_unicode_combining_mark(ch) {
224
+ return UNICODE.non_spacing_mark.test(ch) || UNICODE.space_combining_mark.test(ch);
225
+ };
226
+
227
+ function is_unicode_connector_punctuation(ch) {
228
+ return UNICODE.connector_punctuation.test(ch);
229
+ };
230
+
231
+ function is_identifier_start(ch) {
232
+ return ch == "$" || ch == "_" || is_letter(ch);
233
+ };
234
+
235
+ function is_identifier_char(ch) {
236
+ return is_identifier_start(ch)
237
+ || is_unicode_combining_mark(ch)
238
+ || is_digit(ch)
239
+ || is_unicode_connector_punctuation(ch)
240
+ || ch == "\u200c" // zero-width non-joiner <ZWNJ>
241
+ || ch == "\u200d" // zero-width joiner <ZWJ> (in my ECMA-262 PDF, this is also 200c)
242
+ ;
243
+ };
244
+
245
+ function parse_js_number(num) {
246
+ if (RE_HEX_NUMBER.test(num)) {
247
+ return parseInt(num.substr(2), 16);
248
+ } else if (RE_OCT_NUMBER.test(num)) {
249
+ return parseInt(num.substr(1), 8);
250
+ } else if (RE_DEC_NUMBER.test(num)) {
251
+ return parseFloat(num);
252
+ }
253
+ };
254
+
255
+ function JS_Parse_Error(message, line, col, pos) {
256
+ this.message = message;
257
+ this.line = line + 1;
258
+ this.col = col + 1;
259
+ this.pos = pos + 1;
260
+ this.stack = new Error().stack;
261
+ };
262
+
263
+ JS_Parse_Error.prototype.toString = function() {
264
+ return this.message + " (line: " + this.line + ", col: " + this.col + ", pos: " + this.pos + ")" + "\n\n" + this.stack;
265
+ };
266
+
267
+ function js_error(message, line, col, pos) {
268
+ throw new JS_Parse_Error(message, line, col, pos);
269
+ };
270
+
271
+ function is_token(token, type, val) {
272
+ return token.type == type && (val == null || token.value == val);
273
+ };
274
+
275
+ var EX_EOF = {};
276
+
277
+ function tokenizer($TEXT) {
278
+
279
+ var S = {
280
+ text : $TEXT.replace(/\r\n?|[\n\u2028\u2029]/g, "\n").replace(/^\uFEFF/, ''),
281
+ pos : 0,
282
+ tokpos : 0,
283
+ line : 0,
284
+ tokline : 0,
285
+ col : 0,
286
+ tokcol : 0,
287
+ newline_before : false,
288
+ regex_allowed : false,
289
+ comments_before : []
290
+ };
291
+
292
+ function peek() { return S.text.charAt(S.pos); };
293
+
294
+ function next(signal_eof, in_string) {
295
+ var ch = S.text.charAt(S.pos++);
296
+ if (signal_eof && !ch)
297
+ throw EX_EOF;
298
+ if (ch == "\n") {
299
+ S.newline_before = S.newline_before || !in_string;
300
+ ++S.line;
301
+ S.col = 0;
302
+ } else {
303
+ ++S.col;
304
+ }
305
+ return ch;
306
+ };
307
+
308
+ function eof() {
309
+ return !S.peek();
310
+ };
311
+
312
+ function find(what, signal_eof) {
313
+ var pos = S.text.indexOf(what, S.pos);
314
+ if (signal_eof && pos == -1) throw EX_EOF;
315
+ return pos;
316
+ };
317
+
318
+ function start_token() {
319
+ S.tokline = S.line;
320
+ S.tokcol = S.col;
321
+ S.tokpos = S.pos;
322
+ };
323
+
324
+ function token(type, value, is_comment) {
325
+ S.regex_allowed = ((type == "operator" && !HOP(UNARY_POSTFIX, value)) ||
326
+ (type == "keyword" && HOP(KEYWORDS_BEFORE_EXPRESSION, value)) ||
327
+ (type == "punc" && HOP(PUNC_BEFORE_EXPRESSION, value)));
328
+ var ret = {
329
+ type : type,
330
+ value : value,
331
+ line : S.tokline,
332
+ col : S.tokcol,
333
+ pos : S.tokpos,
334
+ endpos : S.pos,
335
+ nlb : S.newline_before
336
+ };
337
+ if (!is_comment) {
338
+ ret.comments_before = S.comments_before;
339
+ S.comments_before = [];
340
+ }
341
+ S.newline_before = false;
342
+ return ret;
343
+ };
344
+
345
+ function skip_whitespace() {
346
+ while (HOP(WHITESPACE_CHARS, peek()))
347
+ next();
348
+ };
349
+
350
+ function read_while(pred) {
351
+ var ret = "", ch = peek(), i = 0;
352
+ while (ch && pred(ch, i++)) {
353
+ ret += next();
354
+ ch = peek();
355
+ }
356
+ return ret;
357
+ };
358
+
359
+ function parse_error(err) {
360
+ js_error(err, S.tokline, S.tokcol, S.tokpos);
361
+ };
362
+
363
+ function read_num(prefix) {
364
+ var has_e = false, after_e = false, has_x = false, has_dot = prefix == ".";
365
+ var num = read_while(function(ch, i){
366
+ if (ch == "x" || ch == "X") {
367
+ if (has_x) return false;
368
+ return has_x = true;
369
+ }
370
+ if (!has_x && (ch == "E" || ch == "e")) {
371
+ if (has_e) return false;
372
+ return has_e = after_e = true;
373
+ }
374
+ if (ch == "-") {
375
+ if (after_e || (i == 0 && !prefix)) return true;
376
+ return false;
377
+ }
378
+ if (ch == "+") return after_e;
379
+ after_e = false;
380
+ if (ch == ".") {
381
+ if (!has_dot && !has_x)
382
+ return has_dot = true;
383
+ return false;
384
+ }
385
+ return is_alphanumeric_char(ch);
386
+ });
387
+ if (prefix)
388
+ num = prefix + num;
389
+ var valid = parse_js_number(num);
390
+ if (!isNaN(valid)) {
391
+ return token("num", valid);
392
+ } else {
393
+ parse_error("Invalid syntax: " + num);
394
+ }
395
+ };
396
+
397
+ function read_escaped_char(in_string) {
398
+ var ch = next(true, in_string);
399
+ switch (ch) {
400
+ case "n" : return "\n";
401
+ case "r" : return "\r";
402
+ case "t" : return "\t";
403
+ case "b" : return "\b";
404
+ case "v" : return "\u000b";
405
+ case "f" : return "\f";
406
+ case "0" : return "\0";
407
+ case "x" : return String.fromCharCode(hex_bytes(2));
408
+ case "u" : return String.fromCharCode(hex_bytes(4));
409
+ case "\n": return "";
410
+ default : return ch;
411
+ }
412
+ };
413
+
414
+ function hex_bytes(n) {
415
+ var num = 0;
416
+ for (; n > 0; --n) {
417
+ var digit = parseInt(next(true), 16);
418
+ if (isNaN(digit))
419
+ parse_error("Invalid hex-character pattern in string");
420
+ num = (num << 4) | digit;
421
+ }
422
+ return num;
423
+ };
424
+
425
+ function read_string() {
426
+ return with_eof_error("Unterminated string constant", function(){
427
+ var quote = next(), ret = "";
428
+ for (;;) {
429
+ var ch = next(true);
430
+ if (ch == "\\") {
431
+ // read OctalEscapeSequence (XXX: deprecated if "strict mode")
432
+ // https://github.com/mishoo/UglifyJS/issues/178
433
+ var octal_len = 0, first = null;
434
+ ch = read_while(function(ch){
435
+ if (ch >= "0" && ch <= "7") {
436
+ if (!first) {
437
+ first = ch;
438
+ return ++octal_len;
439
+ }
440
+ else if (first <= "3" && octal_len <= 2) return ++octal_len;
441
+ else if (first >= "4" && octal_len <= 1) return ++octal_len;
442
+ }
443
+ return false;
444
+ });
445
+ if (octal_len > 0) ch = String.fromCharCode(parseInt(ch, 8));
446
+ else ch = read_escaped_char(true);
447
+ }
448
+ else if (ch == quote) break;
449
+ ret += ch;
450
+ }
451
+ return token("string", ret);
452
+ });
453
+ };
454
+
455
+ function read_line_comment() {
456
+ next();
457
+ var i = find("\n"), ret;
458
+ if (i == -1) {
459
+ ret = S.text.substr(S.pos);
460
+ S.pos = S.text.length;
461
+ } else {
462
+ ret = S.text.substring(S.pos, i);
463
+ S.pos = i;
464
+ }
465
+ return token("comment1", ret, true);
466
+ };
467
+
468
+ function read_multiline_comment() {
469
+ next();
470
+ return with_eof_error("Unterminated multiline comment", function(){
471
+ var i = find("*/", true),
472
+ text = S.text.substring(S.pos, i);
473
+ S.pos = i + 2;
474
+ S.line += text.split("\n").length - 1;
475
+ S.newline_before = text.indexOf("\n") >= 0;
476
+
477
+ // https://github.com/mishoo/UglifyJS/issues/#issue/100
478
+ if (/^@cc_on/i.test(text)) {
479
+ warn("WARNING: at line " + S.line);
480
+ warn("*** Found \"conditional comment\": " + text);
481
+ warn("*** UglifyJS DISCARDS ALL COMMENTS. This means your code might no longer work properly in Internet Explorer.");
482
+ }
483
+
484
+ return token("comment2", text, true);
485
+ });
486
+ };
487
+
488
+ function read_name() {
489
+ var backslash = false, name = "", ch;
490
+ while ((ch = peek()) != null) {
491
+ if (!backslash) {
492
+ if (ch == "\\") backslash = true, next();
493
+ else if (is_identifier_char(ch)) name += next();
494
+ else break;
495
+ }
496
+ else {
497
+ if (ch != "u") parse_error("Expecting UnicodeEscapeSequence -- uXXXX");
498
+ ch = read_escaped_char();
499
+ if (!is_identifier_char(ch)) parse_error("Unicode char: " + ch.charCodeAt(0) + " is not valid in identifier");
500
+ name += ch;
501
+ backslash = false;
502
+ }
503
+ }
504
+ return name;
505
+ };
506
+
507
+ function read_regexp(regexp) {
508
+ return with_eof_error("Unterminated regular expression", function(){
509
+ var prev_backslash = false, ch, in_class = false;
510
+ while ((ch = next(true))) if (prev_backslash) {
511
+ regexp += "\\" + ch;
512
+ prev_backslash = false;
513
+ } else if (ch == "[") {
514
+ in_class = true;
515
+ regexp += ch;
516
+ } else if (ch == "]" && in_class) {
517
+ in_class = false;
518
+ regexp += ch;
519
+ } else if (ch == "/" && !in_class) {
520
+ break;
521
+ } else if (ch == "\\") {
522
+ prev_backslash = true;
523
+ } else {
524
+ regexp += ch;
525
+ }
526
+ var mods = read_name();
527
+ return token("regexp", [ regexp, mods ]);
528
+ });
529
+ };
530
+
531
+ function read_operator(prefix) {
532
+ function grow(op) {
533
+ if (!peek()) return op;
534
+ var bigger = op + peek();
535
+ if (HOP(OPERATORS, bigger)) {
536
+ next();
537
+ return grow(bigger);
538
+ } else {
539
+ return op;
540
+ }
541
+ };
542
+ return token("operator", grow(prefix || next()));
543
+ };
544
+
545
+ function handle_slash() {
546
+ next();
547
+ var regex_allowed = S.regex_allowed;
548
+ switch (peek()) {
549
+ case "/":
550
+ S.comments_before.push(read_line_comment());
551
+ S.regex_allowed = regex_allowed;
552
+ return next_token();
553
+ case "*":
554
+ S.comments_before.push(read_multiline_comment());
555
+ S.regex_allowed = regex_allowed;
556
+ return next_token();
557
+ }
558
+ return S.regex_allowed ? read_regexp("") : read_operator("/");
559
+ };
560
+
561
+ function handle_dot() {
562
+ next();
563
+ return is_digit(peek())
564
+ ? read_num(".")
565
+ : token("punc", ".");
566
+ };
567
+
568
+ function read_word() {
569
+ var word = read_name();
570
+ return !HOP(KEYWORDS, word)
571
+ ? token("name", word)
572
+ : HOP(OPERATORS, word)
573
+ ? token("operator", word)
574
+ : HOP(KEYWORDS_ATOM, word)
575
+ ? token("atom", word)
576
+ : token("keyword", word);
577
+ };
578
+
579
+ function with_eof_error(eof_error, cont) {
580
+ try {
581
+ return cont();
582
+ } catch(ex) {
583
+ if (ex === EX_EOF) parse_error(eof_error);
584
+ else throw ex;
585
+ }
586
+ };
587
+
588
+ function next_token(force_regexp) {
589
+ if (force_regexp != null)
590
+ return read_regexp(force_regexp);
591
+ skip_whitespace();
592
+ start_token();
593
+ var ch = peek();
594
+ if (!ch) return token("eof");
595
+ if (is_digit(ch)) return read_num();
596
+ if (ch == '"' || ch == "'") return read_string();
597
+ if (HOP(PUNC_CHARS, ch)) return token("punc", next());
598
+ if (ch == ".") return handle_dot();
599
+ if (ch == "/") return handle_slash();
600
+ if (HOP(OPERATOR_CHARS, ch)) return read_operator();
601
+ if (ch == "\\" || is_identifier_start(ch)) return read_word();
602
+ parse_error("Unexpected character '" + ch + "'");
603
+ };
604
+
605
+ next_token.context = function(nc) {
606
+ if (nc) S = nc;
607
+ return S;
608
+ };
609
+
610
+ return next_token;
611
+
612
+ };
613
+
614
+ /* -----[ Parser (constants) ]----- */
615
+
616
+ var UNARY_PREFIX = array_to_hash([
617
+ "typeof",
618
+ "void",
619
+ "delete",
620
+ "--",
621
+ "++",
622
+ "!",
623
+ "~",
624
+ "-",
625
+ "+"
626
+ ]);
627
+
628
+ var UNARY_POSTFIX = array_to_hash([ "--", "++" ]);
629
+
630
+ var ASSIGNMENT = (function(a, ret, i){
631
+ while (i < a.length) {
632
+ ret[a[i]] = a[i].substr(0, a[i].length - 1);
633
+ i++;
634
+ }
635
+ return ret;
636
+ })(
637
+ ["+=", "-=", "/=", "*=", "%=", ">>=", "<<=", ">>>=", "|=", "^=", "&="],
638
+ { "=": true },
639
+ 0
640
+ );
641
+
642
+ var PRECEDENCE = (function(a, ret){
643
+ for (var i = 0, n = 1; i < a.length; ++i, ++n) {
644
+ var b = a[i];
645
+ for (var j = 0; j < b.length; ++j) {
646
+ ret[b[j]] = n;
647
+ }
648
+ }
649
+ return ret;
650
+ })(
651
+ [
652
+ ["||"],
653
+ ["&&"],
654
+ ["|"],
655
+ ["^"],
656
+ ["&"],
657
+ ["==", "===", "!=", "!=="],
658
+ ["<", ">", "<=", ">=", "in", "instanceof"],
659
+ [">>", "<<", ">>>"],
660
+ ["+", "-"],
661
+ ["*", "/", "%"]
662
+ ],
663
+ {}
664
+ );
665
+
666
+ var STATEMENTS_WITH_LABELS = array_to_hash([ "for", "do", "while", "switch" ]);
667
+
668
+ var ATOMIC_START_TOKEN = array_to_hash([ "atom", "num", "string", "regexp", "name" ]);
669
+
670
+ /* -----[ Parser ]----- */
671
+
672
+ function NodeWithToken(str, start, end) {
673
+ this.name = str;
674
+ this.start = start;
675
+ this.end = end;
676
+ };
677
+
678
+ NodeWithToken.prototype.toString = function() { return this.name; };
679
+
680
+ function parse($TEXT, exigent_mode, embed_tokens) {
681
+
682
+ var S = {
683
+ input : typeof $TEXT == "string" ? tokenizer($TEXT, true) : $TEXT,
684
+ token : null,
685
+ prev : null,
686
+ peeked : null,
687
+ in_function : 0,
688
+ in_loop : 0,
689
+ labels : []
690
+ };
691
+
692
+ S.token = next();
693
+
694
+ function is(type, value) {
695
+ return is_token(S.token, type, value);
696
+ };
697
+
698
+ function peek() { return S.peeked || (S.peeked = S.input()); };
699
+
700
+ function next() {
701
+ S.prev = S.token;
702
+ if (S.peeked) {
703
+ S.token = S.peeked;
704
+ S.peeked = null;
705
+ } else {
706
+ S.token = S.input();
707
+ }
708
+ return S.token;
709
+ };
710
+
711
+ function prev() {
712
+ return S.prev;
713
+ };
714
+
715
+ function croak(msg, line, col, pos) {
716
+ var ctx = S.input.context();
717
+ js_error(msg,
718
+ line != null ? line : ctx.tokline,
719
+ col != null ? col : ctx.tokcol,
720
+ pos != null ? pos : ctx.tokpos);
721
+ };
722
+
723
+ function token_error(token, msg) {
724
+ croak(msg, token.line, token.col);
725
+ };
726
+
727
+ function unexpected(token) {
728
+ if (token == null)
729
+ token = S.token;
730
+ token_error(token, "Unexpected token: " + token.type + " (" + token.value + ")");
731
+ };
732
+
733
+ function expect_token(type, val) {
734
+ if (is(type, val)) {
735
+ return next();
736
+ }
737
+ token_error(S.token, "Unexpected token " + S.token.type + ", expected " + type);
738
+ };
739
+
740
+ function expect(punc) { return expect_token("punc", punc); };
741
+
742
+ function can_insert_semicolon() {
743
+ return !exigent_mode && (
744
+ S.token.nlb || is("eof") || is("punc", "}")
745
+ );
746
+ };
747
+
748
+ function semicolon() {
749
+ if (is("punc", ";")) next();
750
+ else if (!can_insert_semicolon()) unexpected();
751
+ };
752
+
753
+ function as() {
754
+ return slice(arguments);
755
+ };
756
+
757
+ function parenthesised() {
758
+ expect("(");
759
+ var ex = expression();
760
+ expect(")");
761
+ return ex;
762
+ };
763
+
764
+ function add_tokens(str, start, end) {
765
+ return str instanceof NodeWithToken ? str : new NodeWithToken(str, start, end);
766
+ };
767
+
768
+ function maybe_embed_tokens(parser) {
769
+ if (embed_tokens) return function() {
770
+ var start = S.token;
771
+ var ast = parser.apply(this, arguments);
772
+ ast[0] = add_tokens(ast[0], start, prev());
773
+ return ast;
774
+ };
775
+ else return parser;
776
+ };
777
+
778
+ var statement = maybe_embed_tokens(function() {
779
+ if (is("operator", "/") || is("operator", "/=")) {
780
+ S.peeked = null;
781
+ S.token = S.input(S.token.value.substr(1)); // force regexp
782
+ }
783
+ switch (S.token.type) {
784
+ case "num":
785
+ case "string":
786
+ case "regexp":
787
+ case "operator":
788
+ case "atom":
789
+ return simple_statement();
790
+
791
+ case "name":
792
+ return is_token(peek(), "punc", ":")
793
+ ? labeled_statement(prog1(S.token.value, next, next))
794
+ : simple_statement();
795
+
796
+ case "punc":
797
+ switch (S.token.value) {
798
+ case "{":
799
+ return as("block", block_());
800
+ case "[":
801
+ case "(":
802
+ return simple_statement();
803
+ case ";":
804
+ next();
805
+ return as("block");
806
+ default:
807
+ unexpected();
808
+ }
809
+
810
+ case "keyword":
811
+ switch (prog1(S.token.value, next)) {
812
+ case "break":
813
+ return break_cont("break");
814
+
815
+ case "continue":
816
+ return break_cont("continue");
817
+
818
+ case "debugger":
819
+ semicolon();
820
+ return as("debugger");
821
+
822
+ case "do":
823
+ return (function(body){
824
+ expect_token("keyword", "while");
825
+ return as("do", prog1(parenthesised, semicolon), body);
826
+ })(in_loop(statement));
827
+
828
+ case "for":
829
+ return for_();
830
+
831
+ case "function":
832
+ return function_(true);
833
+
834
+ case "if":
835
+ return if_();
836
+
837
+ case "return":
838
+ if (S.in_function == 0)
839
+ croak("'return' outside of function");
840
+ return as("return",
841
+ is("punc", ";")
842
+ ? (next(), null)
843
+ : can_insert_semicolon()
844
+ ? null
845
+ : prog1(expression, semicolon));
846
+
847
+ case "switch":
848
+ return as("switch", parenthesised(), switch_block_());
849
+
850
+ case "throw":
851
+ if (S.token.nlb)
852
+ croak("Illegal newline after 'throw'");
853
+ return as("throw", prog1(expression, semicolon));
854
+
855
+ case "try":
856
+ return try_();
857
+
858
+ case "var":
859
+ return prog1(var_, semicolon);
860
+
861
+ case "const":
862
+ return prog1(const_, semicolon);
863
+
864
+ case "while":
865
+ return as("while", parenthesised(), in_loop(statement));
866
+
867
+ case "with":
868
+ return as("with", parenthesised(), statement());
869
+
870
+ default:
871
+ unexpected();
872
+ }
873
+ }
874
+ });
875
+
876
+ function labeled_statement(label) {
877
+ S.labels.push(label);
878
+ var start = S.token, stat = statement();
879
+ if (exigent_mode && !HOP(STATEMENTS_WITH_LABELS, stat[0]))
880
+ unexpected(start);
881
+ S.labels.pop();
882
+ return as("label", label, stat);
883
+ };
884
+
885
+ function simple_statement() {
886
+ return as("stat", prog1(expression, semicolon));
887
+ };
888
+
889
+ function break_cont(type) {
890
+ var name;
891
+ if (!can_insert_semicolon()) {
892
+ name = is("name") ? S.token.value : null;
893
+ }
894
+ if (name != null) {
895
+ next();
896
+ if (!member(name, S.labels))
897
+ croak("Label " + name + " without matching loop or statement");
898
+ }
899
+ else if (S.in_loop == 0)
900
+ croak(type + " not inside a loop or switch");
901
+ semicolon();
902
+ return as(type, name);
903
+ };
904
+
905
+ function for_() {
906
+ expect("(");
907
+ var init = null;
908
+ if (!is("punc", ";")) {
909
+ init = is("keyword", "var")
910
+ ? (next(), var_(true))
911
+ : expression(true, true);
912
+ if (is("operator", "in")) {
913
+ if (init[0] == "var" && init[1].length > 1)
914
+ croak("Only one variable declaration allowed in for..in loop");
915
+ return for_in(init);
916
+ }
917
+ }
918
+ return regular_for(init);
919
+ };
920
+
921
+ function regular_for(init) {
922
+ expect(";");
923
+ var test = is("punc", ";") ? null : expression();
924
+ expect(";");
925
+ var step = is("punc", ")") ? null : expression();
926
+ expect(")");
927
+ return as("for", init, test, step, in_loop(statement));
928
+ };
929
+
930
+ function for_in(init) {
931
+ var lhs = init[0] == "var" ? as("name", init[1][0]) : init;
932
+ next();
933
+ var obj = expression();
934
+ expect(")");
935
+ return as("for-in", init, lhs, obj, in_loop(statement));
936
+ };
937
+
938
+ var function_ = function(in_statement) {
939
+ var name = is("name") ? prog1(S.token.value, next) : null;
940
+ if (in_statement && !name)
941
+ unexpected();
942
+ expect("(");
943
+ return as(in_statement ? "defun" : "function",
944
+ name,
945
+ // arguments
946
+ (function(first, a){
947
+ while (!is("punc", ")")) {
948
+ if (first) first = false; else expect(",");
949
+ if (!is("name")) unexpected();
950
+ a.push(S.token.value);
951
+ next();
952
+ }
953
+ next();
954
+ return a;
955
+ })(true, []),
956
+ // body
957
+ (function(){
958
+ ++S.in_function;
959
+ var loop = S.in_loop;
960
+ S.in_loop = 0;
961
+ var a = block_();
962
+ --S.in_function;
963
+ S.in_loop = loop;
964
+ return a;
965
+ })());
966
+ };
967
+
968
+ function if_() {
969
+ var cond = parenthesised(), body = statement(), belse;
970
+ if (is("keyword", "else")) {
971
+ next();
972
+ belse = statement();
973
+ }
974
+ return as("if", cond, body, belse);
975
+ };
976
+
977
+ function block_() {
978
+ expect("{");
979
+ var a = [];
980
+ while (!is("punc", "}")) {
981
+ if (is("eof")) unexpected();
982
+ a.push(statement());
983
+ }
984
+ next();
985
+ return a;
986
+ };
987
+
988
+ var switch_block_ = curry(in_loop, function(){
989
+ expect("{");
990
+ var a = [], cur = null;
991
+ while (!is("punc", "}")) {
992
+ if (is("eof")) unexpected();
993
+ if (is("keyword", "case")) {
994
+ next();
995
+ cur = [];
996
+ a.push([ expression(), cur ]);
997
+ expect(":");
998
+ }
999
+ else if (is("keyword", "default")) {
1000
+ next();
1001
+ expect(":");
1002
+ cur = [];
1003
+ a.push([ null, cur ]);
1004
+ }
1005
+ else {
1006
+ if (!cur) unexpected();
1007
+ cur.push(statement());
1008
+ }
1009
+ }
1010
+ next();
1011
+ return a;
1012
+ });
1013
+
1014
+ function try_() {
1015
+ var body = block_(), bcatch, bfinally;
1016
+ if (is("keyword", "catch")) {
1017
+ next();
1018
+ expect("(");
1019
+ if (!is("name"))
1020
+ croak("Name expected");
1021
+ var name = S.token.value;
1022
+ next();
1023
+ expect(")");
1024
+ bcatch = [ name, block_() ];
1025
+ }
1026
+ if (is("keyword", "finally")) {
1027
+ next();
1028
+ bfinally = block_();
1029
+ }
1030
+ if (!bcatch && !bfinally)
1031
+ croak("Missing catch/finally blocks");
1032
+ return as("try", body, bcatch, bfinally);
1033
+ };
1034
+
1035
+ function vardefs(no_in) {
1036
+ var a = [];
1037
+ for (;;) {
1038
+ if (!is("name"))
1039
+ unexpected();
1040
+ var name = S.token.value;
1041
+ next();
1042
+ if (is("operator", "=")) {
1043
+ next();
1044
+ a.push([ name, expression(false, no_in) ]);
1045
+ } else {
1046
+ a.push([ name ]);
1047
+ }
1048
+ if (!is("punc", ","))
1049
+ break;
1050
+ next();
1051
+ }
1052
+ return a;
1053
+ };
1054
+
1055
+ function var_(no_in) {
1056
+ return as("var", vardefs(no_in));
1057
+ };
1058
+
1059
+ function const_() {
1060
+ return as("const", vardefs());
1061
+ };
1062
+
1063
+ function new_() {
1064
+ var newexp = expr_atom(false), args;
1065
+ if (is("punc", "(")) {
1066
+ next();
1067
+ args = expr_list(")");
1068
+ } else {
1069
+ args = [];
1070
+ }
1071
+ return subscripts(as("new", newexp, args), true);
1072
+ };
1073
+
1074
+ var expr_atom = maybe_embed_tokens(function(allow_calls) {
1075
+ if (is("operator", "new")) {
1076
+ next();
1077
+ return new_();
1078
+ }
1079
+ if (is("punc")) {
1080
+ switch (S.token.value) {
1081
+ case "(":
1082
+ next();
1083
+ return subscripts(prog1(expression, curry(expect, ")")), allow_calls);
1084
+ case "[":
1085
+ next();
1086
+ return subscripts(array_(), allow_calls);
1087
+ case "{":
1088
+ next();
1089
+ return subscripts(object_(), allow_calls);
1090
+ }
1091
+ unexpected();
1092
+ }
1093
+ if (is("keyword", "function")) {
1094
+ next();
1095
+ return subscripts(function_(false), allow_calls);
1096
+ }
1097
+ if (HOP(ATOMIC_START_TOKEN, S.token.type)) {
1098
+ var atom = S.token.type == "regexp"
1099
+ ? as("regexp", S.token.value[0], S.token.value[1])
1100
+ : as(S.token.type, S.token.value);
1101
+ return subscripts(prog1(atom, next), allow_calls);
1102
+ }
1103
+ unexpected();
1104
+ });
1105
+
1106
+ function expr_list(closing, allow_trailing_comma, allow_empty) {
1107
+ var first = true, a = [];
1108
+ while (!is("punc", closing)) {
1109
+ if (first) first = false; else expect(",");
1110
+ if (allow_trailing_comma && is("punc", closing)) break;
1111
+ if (is("punc", ",") && allow_empty) {
1112
+ a.push([ "atom", "undefined" ]);
1113
+ } else {
1114
+ a.push(expression(false));
1115
+ }
1116
+ }
1117
+ next();
1118
+ return a;
1119
+ };
1120
+
1121
+ function array_() {
1122
+ return as("array", expr_list("]", !exigent_mode, true));
1123
+ };
1124
+
1125
+ function object_() {
1126
+ var first = true, a = [];
1127
+ while (!is("punc", "}")) {
1128
+ if (first) first = false; else expect(",");
1129
+ if (!exigent_mode && is("punc", "}"))
1130
+ // allow trailing comma
1131
+ break;
1132
+ var type = S.token.type;
1133
+ var name = as_property_name();
1134
+ if (type == "name" && (name == "get" || name == "set") && !is("punc", ":")) {
1135
+ a.push([ as_name(), function_(false), name ]);
1136
+ } else {
1137
+ expect(":");
1138
+ a.push([ name, expression(false) ]);
1139
+ }
1140
+ }
1141
+ next();
1142
+ return as("object", a);
1143
+ };
1144
+
1145
+ function as_property_name() {
1146
+ switch (S.token.type) {
1147
+ case "num":
1148
+ case "string":
1149
+ return prog1(S.token.value, next);
1150
+ }
1151
+ return as_name();
1152
+ };
1153
+
1154
+ function as_name() {
1155
+ switch (S.token.type) {
1156
+ case "name":
1157
+ case "operator":
1158
+ case "keyword":
1159
+ case "atom":
1160
+ return prog1(S.token.value, next);
1161
+ default:
1162
+ unexpected();
1163
+ }
1164
+ };
1165
+
1166
+ function subscripts(expr, allow_calls) {
1167
+ if (is("punc", ".")) {
1168
+ next();
1169
+ return subscripts(as("dot", expr, as_name()), allow_calls);
1170
+ }
1171
+ if (is("punc", "[")) {
1172
+ next();
1173
+ return subscripts(as("sub", expr, prog1(expression, curry(expect, "]"))), allow_calls);
1174
+ }
1175
+ if (allow_calls && is("punc", "(")) {
1176
+ next();
1177
+ return subscripts(as("call", expr, expr_list(")")), true);
1178
+ }
1179
+ return expr;
1180
+ };
1181
+
1182
+ function maybe_unary(allow_calls) {
1183
+ if (is("operator") && HOP(UNARY_PREFIX, S.token.value)) {
1184
+ return make_unary("unary-prefix",
1185
+ prog1(S.token.value, next),
1186
+ maybe_unary(allow_calls));
1187
+ }
1188
+ var val = expr_atom(allow_calls);
1189
+ while (is("operator") && HOP(UNARY_POSTFIX, S.token.value) && !S.token.nlb) {
1190
+ val = make_unary("unary-postfix", S.token.value, val);
1191
+ next();
1192
+ }
1193
+ return val;
1194
+ };
1195
+
1196
+ function make_unary(tag, op, expr) {
1197
+ if ((op == "++" || op == "--") && !is_assignable(expr))
1198
+ croak("Invalid use of " + op + " operator");
1199
+ return as(tag, op, expr);
1200
+ };
1201
+
1202
+ function expr_op(left, min_prec, no_in) {
1203
+ var op = is("operator") ? S.token.value : null;
1204
+ if (op && op == "in" && no_in) op = null;
1205
+ var prec = op != null ? PRECEDENCE[op] : null;
1206
+ if (prec != null && prec > min_prec) {
1207
+ next();
1208
+ var right = expr_op(maybe_unary(true), prec, no_in);
1209
+ return expr_op(as("binary", op, left, right), min_prec, no_in);
1210
+ }
1211
+ return left;
1212
+ };
1213
+
1214
+ function expr_ops(no_in) {
1215
+ return expr_op(maybe_unary(true), 0, no_in);
1216
+ };
1217
+
1218
+ function maybe_conditional(no_in) {
1219
+ var expr = expr_ops(no_in);
1220
+ if (is("operator", "?")) {
1221
+ next();
1222
+ var yes = expression(false);
1223
+ expect(":");
1224
+ return as("conditional", expr, yes, expression(false, no_in));
1225
+ }
1226
+ return expr;
1227
+ };
1228
+
1229
+ function is_assignable(expr) {
1230
+ if (!exigent_mode) return true;
1231
+ switch (expr[0]+"") {
1232
+ case "dot":
1233
+ case "sub":
1234
+ case "new":
1235
+ case "call":
1236
+ return true;
1237
+ case "name":
1238
+ return expr[1] != "this";
1239
+ }
1240
+ };
1241
+
1242
+ function maybe_assign(no_in) {
1243
+ var left = maybe_conditional(no_in), val = S.token.value;
1244
+ if (is("operator") && HOP(ASSIGNMENT, val)) {
1245
+ if (is_assignable(left)) {
1246
+ next();
1247
+ return as("assign", ASSIGNMENT[val], left, maybe_assign(no_in));
1248
+ }
1249
+ croak("Invalid assignment");
1250
+ }
1251
+ return left;
1252
+ };
1253
+
1254
+ var expression = maybe_embed_tokens(function(commas, no_in) {
1255
+ if (arguments.length == 0)
1256
+ commas = true;
1257
+ var expr = maybe_assign(no_in);
1258
+ if (commas && is("punc", ",")) {
1259
+ next();
1260
+ return as("seq", expr, expression(true, no_in));
1261
+ }
1262
+ return expr;
1263
+ });
1264
+
1265
+ function in_loop(cont) {
1266
+ try {
1267
+ ++S.in_loop;
1268
+ return cont();
1269
+ } finally {
1270
+ --S.in_loop;
1271
+ }
1272
+ };
1273
+
1274
+ return as("toplevel", (function(a){
1275
+ while (!is("eof"))
1276
+ a.push(statement());
1277
+ return a;
1278
+ })([]));
1279
+
1280
+ };
1281
+
1282
+ /* -----[ Utilities ]----- */
1283
+
1284
+ function curry(f) {
1285
+ var args = slice(arguments, 1);
1286
+ return function() { return f.apply(this, args.concat(slice(arguments))); };
1287
+ };
1288
+
1289
+ function prog1(ret) {
1290
+ if (ret instanceof Function)
1291
+ ret = ret();
1292
+ for (var i = 1, n = arguments.length; --n > 0; ++i)
1293
+ arguments[i]();
1294
+ return ret;
1295
+ };
1296
+
1297
+ function array_to_hash(a) {
1298
+ var ret = {};
1299
+ for (var i = 0; i < a.length; ++i)
1300
+ ret[a[i]] = true;
1301
+ return ret;
1302
+ };
1303
+
1304
+ function slice(a, start) {
1305
+ return Array.prototype.slice.call(a, start || 0);
1306
+ };
1307
+
1308
+ function characters(str) {
1309
+ return str.split("");
1310
+ };
1311
+
1312
+ function member(name, array) {
1313
+ for (var i = array.length; --i >= 0;)
1314
+ if (array[i] == name)
1315
+ return true;
1316
+ return false;
1317
+ };
1318
+
1319
+ function HOP(obj, prop) {
1320
+ return Object.prototype.hasOwnProperty.call(obj, prop);
1321
+ };
1322
+
1323
+ var warn = function() {};
1324
+
1325
+ /* -----[ Exports ]----- */
1326
+
1327
+ exports.tokenizer = tokenizer;
1328
+ exports.parse = parse;
1329
+ exports.slice = slice;
1330
+ exports.curry = curry;
1331
+ exports.member = member;
1332
+ exports.array_to_hash = array_to_hash;
1333
+ exports.PRECEDENCE = PRECEDENCE;
1334
+ exports.KEYWORDS_ATOM = KEYWORDS_ATOM;
1335
+ exports.RESERVED_WORDS = RESERVED_WORDS;
1336
+ exports.KEYWORDS = KEYWORDS;
1337
+ exports.ATOMIC_START_TOKEN = ATOMIC_START_TOKEN;
1338
+ exports.OPERATORS = OPERATORS;
1339
+ exports.is_alphanumeric_char = is_alphanumeric_char;
1340
+ exports.set_logger = function(logger) {
1341
+ warn = logger;
1342
+ };