ruby-wisp-source 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1684) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +28 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE +22 -0
  5. data/README.md +12 -0
  6. data/Rakefile +39 -0
  7. data/VERSION +1 -0
  8. data/lib/wisp/source.rb +7 -0
  9. data/ruby-wisp-source.gemspec +13 -0
  10. data/vendor/History.md +159 -0
  11. data/vendor/LICENSE +24 -0
  12. data/vendor/Makefile +64 -0
  13. data/vendor/Readme.md +615 -0
  14. data/vendor/analyzer.js +385 -0
  15. data/vendor/ast.js +214 -0
  16. data/vendor/backend/javascript/writer.js +212 -0
  17. data/vendor/bin/wisp.js +2 -0
  18. data/vendor/compiler.js +1026 -0
  19. data/vendor/design.md +114 -0
  20. data/vendor/embed.js +2 -0
  21. data/vendor/engine/browser.js +59 -0
  22. data/vendor/engine/node.js +13 -0
  23. data/vendor/interactivate/Makefile +38 -0
  24. data/vendor/interactivate/Readme.md +28 -0
  25. data/vendor/interactivate/build/cache.manifest +12 -0
  26. data/vendor/interactivate/build/codemirror-compressed.js +4 -0
  27. data/vendor/interactivate/build/codemirror.css +248 -0
  28. data/vendor/interactivate/build/main.js +5401 -0
  29. data/vendor/interactivate/build/solarized.css +203 -0
  30. data/vendor/interactivate/index.html +429 -0
  31. data/vendor/interactivate/node_modules/codemirror-activine/License.md +18 -0
  32. data/vendor/interactivate/node_modules/codemirror-activine/Readme.md +22 -0
  33. data/vendor/interactivate/node_modules/codemirror-activine/core.js +33 -0
  34. data/vendor/interactivate/node_modules/codemirror-activine/package.json +36 -0
  35. data/vendor/interactivate/node_modules/codemirror-hashare/License.md +18 -0
  36. data/vendor/interactivate/node_modules/codemirror-hashare/Readme.md +23 -0
  37. data/vendor/interactivate/node_modules/codemirror-hashare/core.js +31 -0
  38. data/vendor/interactivate/node_modules/codemirror-hashare/package.json +37 -0
  39. data/vendor/interactivate/node_modules/codemirror-persist/License.md +18 -0
  40. data/vendor/interactivate/node_modules/codemirror-persist/Readme.md +22 -0
  41. data/vendor/interactivate/node_modules/codemirror-persist/core.js +25 -0
  42. data/vendor/interactivate/node_modules/codemirror-persist/package.json +34 -0
  43. data/vendor/interactivate/node_modules/interactivate/History.md +47 -0
  44. data/vendor/interactivate/node_modules/interactivate/License.md +18 -0
  45. data/vendor/interactivate/node_modules/interactivate/Readme.md +11 -0
  46. data/vendor/interactivate/node_modules/interactivate/demo/Readme.md +24 -0
  47. data/vendor/interactivate/node_modules/interactivate/demo/build/cache.manifest +12 -0
  48. data/vendor/interactivate/node_modules/interactivate/demo/build/codemirror-compressed.js +4 -0
  49. data/vendor/interactivate/node_modules/interactivate/demo/build/codemirror.css +248 -0
  50. data/vendor/interactivate/node_modules/interactivate/demo/build/main.js +267 -0
  51. data/vendor/interactivate/node_modules/interactivate/demo/build/solarized.css +207 -0
  52. data/vendor/interactivate/node_modules/interactivate/demo/index.html +115 -0
  53. data/vendor/interactivate/node_modules/interactivate/demo/main.js +39 -0
  54. data/vendor/interactivate/node_modules/interactivate/demo/node_modules/codemirror-activine/License.md +18 -0
  55. data/vendor/interactivate/node_modules/interactivate/demo/node_modules/codemirror-activine/Readme.md +22 -0
  56. data/vendor/interactivate/node_modules/interactivate/demo/node_modules/codemirror-activine/core.js +33 -0
  57. data/vendor/interactivate/node_modules/interactivate/demo/node_modules/codemirror-activine/package.json +36 -0
  58. data/vendor/interactivate/node_modules/interactivate/demo/node_modules/codemirror-hashare/License.md +18 -0
  59. data/vendor/interactivate/node_modules/interactivate/demo/node_modules/codemirror-hashare/Readme.md +23 -0
  60. data/vendor/interactivate/node_modules/interactivate/demo/node_modules/codemirror-hashare/core.js +31 -0
  61. data/vendor/interactivate/node_modules/interactivate/demo/node_modules/codemirror-hashare/package.json +37 -0
  62. data/vendor/interactivate/node_modules/interactivate/demo/node_modules/codemirror-persist/License.md +18 -0
  63. data/vendor/interactivate/node_modules/interactivate/demo/node_modules/codemirror-persist/Readme.md +22 -0
  64. data/vendor/interactivate/node_modules/interactivate/demo/node_modules/codemirror-persist/core.js +25 -0
  65. data/vendor/interactivate/node_modules/interactivate/demo/node_modules/codemirror-persist/package.json +34 -0
  66. data/vendor/interactivate/node_modules/interactivate/demo/package.json +21 -0
  67. data/vendor/interactivate/node_modules/interactivate/host/window.js +19 -0
  68. data/vendor/interactivate/node_modules/interactivate/interactivate.js +187 -0
  69. data/vendor/interactivate/node_modules/interactivate/node_modules/diffpatcher/History.md +10 -0
  70. data/vendor/interactivate/node_modules/interactivate/node_modules/diffpatcher/License.md +18 -0
  71. data/vendor/interactivate/node_modules/interactivate/node_modules/diffpatcher/Readme.md +68 -0
  72. data/vendor/interactivate/node_modules/interactivate/node_modules/diffpatcher/diff.js +45 -0
  73. data/vendor/interactivate/node_modules/interactivate/node_modules/diffpatcher/index.js +5 -0
  74. data/vendor/interactivate/node_modules/interactivate/node_modules/diffpatcher/package.json +53 -0
  75. data/vendor/interactivate/node_modules/interactivate/node_modules/diffpatcher/patch.js +21 -0
  76. data/vendor/interactivate/node_modules/interactivate/node_modules/diffpatcher/rebase.js +33 -0
  77. data/vendor/interactivate/node_modules/interactivate/node_modules/diffpatcher/test/diff.js +62 -0
  78. data/vendor/interactivate/node_modules/interactivate/node_modules/diffpatcher/test/index.js +16 -0
  79. data/vendor/interactivate/node_modules/interactivate/node_modules/diffpatcher/test/patch.js +54 -0
  80. data/vendor/interactivate/node_modules/interactivate/node_modules/dom-reduce/History.md +15 -0
  81. data/vendor/interactivate/node_modules/interactivate/node_modules/dom-reduce/License.md +18 -0
  82. data/vendor/interactivate/node_modules/interactivate/node_modules/dom-reduce/Readme.md +54 -0
  83. data/vendor/interactivate/node_modules/interactivate/node_modules/dom-reduce/event.js +39 -0
  84. data/vendor/interactivate/node_modules/interactivate/node_modules/dom-reduce/index.js +3 -0
  85. data/vendor/interactivate/node_modules/interactivate/node_modules/dom-reduce/node_modules/reducible/History.md +20 -0
  86. data/vendor/interactivate/node_modules/interactivate/node_modules/dom-reduce/node_modules/reducible/License.md +18 -0
  87. data/vendor/interactivate/node_modules/interactivate/node_modules/dom-reduce/node_modules/reducible/Readme.md +45 -0
  88. data/vendor/interactivate/node_modules/interactivate/node_modules/dom-reduce/node_modules/reducible/end.js +3 -0
  89. data/vendor/interactivate/node_modules/interactivate/node_modules/dom-reduce/node_modules/reducible/index.js +8 -0
  90. data/vendor/interactivate/node_modules/interactivate/node_modules/dom-reduce/node_modules/reducible/is-error.js +9 -0
  91. data/vendor/interactivate/node_modules/interactivate/node_modules/dom-reduce/node_modules/reducible/is-reduced.js +9 -0
  92. data/vendor/interactivate/node_modules/interactivate/node_modules/dom-reduce/node_modules/reducible/package.json +57 -0
  93. data/vendor/interactivate/node_modules/interactivate/node_modules/dom-reduce/node_modules/reducible/reduce.js +59 -0
  94. data/vendor/interactivate/node_modules/interactivate/node_modules/dom-reduce/node_modules/reducible/reduced.js +15 -0
  95. data/vendor/interactivate/node_modules/interactivate/node_modules/dom-reduce/node_modules/reducible/reducible.js +87 -0
  96. data/vendor/interactivate/node_modules/interactivate/node_modules/dom-reduce/node_modules/reducible/test/index.js +6 -0
  97. data/vendor/interactivate/node_modules/interactivate/node_modules/dom-reduce/node_modules/reducible/test/reduce.js +116 -0
  98. data/vendor/interactivate/node_modules/interactivate/node_modules/dom-reduce/node_modules/reducible/test/reducible.js +106 -0
  99. data/vendor/interactivate/node_modules/interactivate/node_modules/dom-reduce/package.json +56 -0
  100. data/vendor/interactivate/node_modules/interactivate/node_modules/dom-reduce/test/index.js +91 -0
  101. data/vendor/interactivate/node_modules/interactivate/node_modules/method/History.md +60 -0
  102. data/vendor/interactivate/node_modules/interactivate/node_modules/method/License.md +18 -0
  103. data/vendor/interactivate/node_modules/interactivate/node_modules/method/Readme.md +125 -0
  104. data/vendor/interactivate/node_modules/interactivate/node_modules/method/core.js +227 -0
  105. data/vendor/interactivate/node_modules/interactivate/node_modules/method/package.json +93 -0
  106. data/vendor/interactivate/node_modules/interactivate/node_modules/method/test/browser.js +18 -0
  107. data/vendor/interactivate/node_modules/interactivate/node_modules/method/test/common-index.js +3 -0
  108. data/vendor/interactivate/node_modules/interactivate/node_modules/method/test/common.js +270 -0
  109. data/vendor/interactivate/node_modules/interactivate/node_modules/method/test/index.js +3 -0
  110. data/vendor/interactivate/node_modules/interactivate/node_modules/method/test/phantom-index.js +3 -0
  111. data/vendor/interactivate/node_modules/interactivate/node_modules/method/test/tap-index.js +3 -0
  112. data/vendor/interactivate/node_modules/interactivate/node_modules/method/test/testling-index.js +3 -0
  113. data/vendor/interactivate/node_modules/interactivate/node_modules/reducers/History.md +139 -0
  114. data/vendor/interactivate/node_modules/interactivate/node_modules/reducers/License.md +19 -0
  115. data/vendor/interactivate/node_modules/interactivate/node_modules/reducers/Readme.md +253 -0
  116. data/vendor/interactivate/node_modules/interactivate/node_modules/reducers/capture.js +34 -0
  117. data/vendor/interactivate/node_modules/interactivate/node_modules/reducers/concat.js +37 -0
  118. data/vendor/interactivate/node_modules/interactivate/node_modules/reducers/debug/print.js +45 -0
  119. data/vendor/interactivate/node_modules/interactivate/node_modules/reducers/delay.js +29 -0
  120. data/vendor/interactivate/node_modules/interactivate/node_modules/reducers/drop-while.js +39 -0
  121. data/vendor/interactivate/node_modules/interactivate/node_modules/reducers/drop.js +40 -0
  122. data/vendor/interactivate/node_modules/interactivate/node_modules/reducers/expand.js +25 -0
  123. data/vendor/interactivate/node_modules/interactivate/node_modules/reducers/filter.js +21 -0
  124. data/vendor/interactivate/node_modules/interactivate/node_modules/reducers/fold.js +55 -0
  125. data/vendor/interactivate/node_modules/interactivate/node_modules/reducers/hub.js +102 -0
  126. data/vendor/interactivate/node_modules/interactivate/node_modules/reducers/index.js +33 -0
  127. data/vendor/interactivate/node_modules/interactivate/node_modules/reducers/into.js +16 -0
  128. data/vendor/interactivate/node_modules/interactivate/node_modules/reducers/map.js +19 -0
  129. data/vendor/interactivate/node_modules/interactivate/node_modules/reducers/merge.js +50 -0
  130. data/vendor/interactivate/node_modules/interactivate/node_modules/reducers/node_modules/reducible/History.md +20 -0
  131. data/vendor/interactivate/node_modules/interactivate/node_modules/reducers/node_modules/reducible/License.md +18 -0
  132. data/vendor/interactivate/node_modules/interactivate/node_modules/reducers/node_modules/reducible/Readme.md +45 -0
  133. data/vendor/interactivate/node_modules/interactivate/node_modules/reducers/node_modules/reducible/end.js +3 -0
  134. data/vendor/interactivate/node_modules/interactivate/node_modules/reducers/node_modules/reducible/index.js +8 -0
  135. data/vendor/interactivate/node_modules/interactivate/node_modules/reducers/node_modules/reducible/is-error.js +9 -0
  136. data/vendor/interactivate/node_modules/interactivate/node_modules/reducers/node_modules/reducible/is-reduced.js +9 -0
  137. data/vendor/interactivate/node_modules/interactivate/node_modules/reducers/node_modules/reducible/package.json +57 -0
  138. data/vendor/interactivate/node_modules/interactivate/node_modules/reducers/node_modules/reducible/reduce.js +59 -0
  139. data/vendor/interactivate/node_modules/interactivate/node_modules/reducers/node_modules/reducible/reduced.js +15 -0
  140. data/vendor/interactivate/node_modules/interactivate/node_modules/reducers/node_modules/reducible/reducible.js +87 -0
  141. data/vendor/interactivate/node_modules/interactivate/node_modules/reducers/node_modules/reducible/test/index.js +6 -0
  142. data/vendor/interactivate/node_modules/interactivate/node_modules/reducers/node_modules/reducible/test/reduce.js +116 -0
  143. data/vendor/interactivate/node_modules/interactivate/node_modules/reducers/node_modules/reducible/test/reducible.js +106 -0
  144. data/vendor/interactivate/node_modules/interactivate/node_modules/reducers/package.json +60 -0
  145. data/vendor/interactivate/node_modules/interactivate/node_modules/reducers/reducer.js +51 -0
  146. data/vendor/interactivate/node_modules/interactivate/node_modules/reducers/reductions.js +31 -0
  147. data/vendor/interactivate/node_modules/interactivate/node_modules/reducers/take-while.js +23 -0
  148. data/vendor/interactivate/node_modules/interactivate/node_modules/reducers/take.js +40 -0
  149. data/vendor/interactivate/node_modules/interactivate/node_modules/reducers/test/benchmark.js +32 -0
  150. data/vendor/interactivate/node_modules/interactivate/node_modules/reducers/test/capture.js +108 -0
  151. data/vendor/interactivate/node_modules/interactivate/node_modules/reducers/test/concat.js +104 -0
  152. data/vendor/interactivate/node_modules/interactivate/node_modules/reducers/test/delay.js +29 -0
  153. data/vendor/interactivate/node_modules/interactivate/node_modules/reducers/test/drop-while.js +118 -0
  154. data/vendor/interactivate/node_modules/interactivate/node_modules/reducers/test/drop.js +89 -0
  155. data/vendor/interactivate/node_modules/interactivate/node_modules/reducers/test/errors.js +222 -0
  156. data/vendor/interactivate/node_modules/interactivate/node_modules/reducers/test/filter.js +72 -0
  157. data/vendor/interactivate/node_modules/interactivate/node_modules/reducers/test/fold.js +111 -0
  158. data/vendor/interactivate/node_modules/interactivate/node_modules/reducers/test/hub.js +222 -0
  159. data/vendor/interactivate/node_modules/interactivate/node_modules/reducers/test/index.js +23 -0
  160. data/vendor/interactivate/node_modules/interactivate/node_modules/reducers/test/into.js +22 -0
  161. data/vendor/interactivate/node_modules/interactivate/node_modules/reducers/test/map.js +67 -0
  162. data/vendor/interactivate/node_modules/interactivate/node_modules/reducers/test/merge.js +75 -0
  163. data/vendor/interactivate/node_modules/interactivate/node_modules/reducers/test/reductions.js +105 -0
  164. data/vendor/interactivate/node_modules/interactivate/node_modules/reducers/test/take-while.js +134 -0
  165. data/vendor/interactivate/node_modules/interactivate/node_modules/reducers/test/take.js +82 -0
  166. data/vendor/interactivate/node_modules/interactivate/node_modules/reducers/test/util/event.js +25 -0
  167. data/vendor/interactivate/node_modules/interactivate/node_modules/reducers/test/util/lazy.js +9 -0
  168. data/vendor/interactivate/node_modules/interactivate/node_modules/reducers/test/util/test.js +34 -0
  169. data/vendor/interactivate/node_modules/interactivate/output.js +60 -0
  170. data/vendor/interactivate/node_modules/interactivate/package.json +30 -0
  171. data/vendor/interactivate/node_modules/interactivate/render.js +23 -0
  172. data/vendor/interactivate/node_modules/interactivate/view.js +79 -0
  173. data/vendor/interactivate/package.json +22 -0
  174. data/vendor/interactivate/src/host.wisp +84 -0
  175. data/vendor/interactivate/src/main.wisp +38 -0
  176. data/vendor/node_modules/browserify/LICENSE +63 -0
  177. data/vendor/node_modules/browserify/_empty.js +0 -0
  178. data/vendor/node_modules/browserify/bin/advanced.txt +36 -0
  179. data/vendor/node_modules/browserify/bin/cmd.js +150 -0
  180. data/vendor/node_modules/browserify/bin/usage.txt +32 -0
  181. data/vendor/node_modules/browserify/example/api/browser/bar.js +1 -0
  182. data/vendor/node_modules/browserify/example/api/browser/foo.js +5 -0
  183. data/vendor/node_modules/browserify/example/api/browser/main.js +2 -0
  184. data/vendor/node_modules/browserify/example/api/build.js +4 -0
  185. data/vendor/node_modules/browserify/example/multiple_bundles/beep.js +2 -0
  186. data/vendor/node_modules/browserify/example/multiple_bundles/boop.js +2 -0
  187. data/vendor/node_modules/browserify/example/multiple_bundles/build.sh +4 -0
  188. data/vendor/node_modules/browserify/example/multiple_bundles/robot.js +1 -0
  189. data/vendor/node_modules/browserify/example/multiple_bundles/static/beep.html +2 -0
  190. data/vendor/node_modules/browserify/example/multiple_bundles/static/beep.js +6 -0
  191. data/vendor/node_modules/browserify/example/multiple_bundles/static/boop.html +2 -0
  192. data/vendor/node_modules/browserify/example/multiple_bundles/static/boop.js +6 -0
  193. data/vendor/node_modules/browserify/example/multiple_bundles/static/common.js +3 -0
  194. data/vendor/node_modules/browserify/example/source_maps/build.js +10 -0
  195. data/vendor/node_modules/browserify/example/source_maps/build.sh +4 -0
  196. data/vendor/node_modules/browserify/example/source_maps/index.html +11 -0
  197. data/vendor/node_modules/browserify/example/source_maps/js/foo.js +7 -0
  198. data/vendor/node_modules/browserify/example/source_maps/js/main.js +4 -0
  199. data/vendor/node_modules/browserify/example/source_maps/js/wunder/bar.js +8 -0
  200. data/vendor/node_modules/browserify/index.js +352 -0
  201. data/vendor/node_modules/browserify/node_modules/JSONStream/LICENSE.APACHE2 +15 -0
  202. data/vendor/node_modules/browserify/node_modules/JSONStream/LICENSE.MIT +24 -0
  203. data/vendor/node_modules/browserify/node_modules/JSONStream/examples/all_docs.js +13 -0
  204. data/vendor/node_modules/browserify/node_modules/JSONStream/index.js +191 -0
  205. data/vendor/node_modules/browserify/node_modules/JSONStream/node_modules/jsonparse/LICENSE +24 -0
  206. data/vendor/node_modules/browserify/node_modules/JSONStream/node_modules/jsonparse/README.markdown +11 -0
  207. data/vendor/node_modules/browserify/node_modules/JSONStream/node_modules/jsonparse/bench.js +26 -0
  208. data/vendor/node_modules/browserify/node_modules/JSONStream/node_modules/jsonparse/examples/twitterfeed.js +30 -0
  209. data/vendor/node_modules/browserify/node_modules/JSONStream/node_modules/jsonparse/jsonparse.js +401 -0
  210. data/vendor/node_modules/browserify/node_modules/JSONStream/node_modules/jsonparse/package.json +40 -0
  211. data/vendor/node_modules/browserify/node_modules/JSONStream/node_modules/jsonparse/samplejson/basic.json +167 -0
  212. data/vendor/node_modules/browserify/node_modules/JSONStream/node_modules/jsonparse/samplejson/basic2.json +180 -0
  213. data/vendor/node_modules/browserify/node_modules/JSONStream/node_modules/jsonparse/test/boundary.js +110 -0
  214. data/vendor/node_modules/browserify/node_modules/JSONStream/node_modules/jsonparse/test/primitives.js +54 -0
  215. data/vendor/node_modules/browserify/node_modules/JSONStream/node_modules/jsonparse/test/utf8.js +38 -0
  216. data/vendor/node_modules/browserify/node_modules/JSONStream/package.json +43 -0
  217. data/vendor/node_modules/browserify/node_modules/JSONStream/readme.markdown +145 -0
  218. data/vendor/node_modules/browserify/node_modules/JSONStream/test/bool.js +41 -0
  219. data/vendor/node_modules/browserify/node_modules/JSONStream/test/destroy_missing.js +22 -0
  220. data/vendor/node_modules/browserify/node_modules/JSONStream/test/empty.js +44 -0
  221. data/vendor/node_modules/browserify/node_modules/JSONStream/test/fixtures/all_npm.json +4030 -0
  222. data/vendor/node_modules/browserify/node_modules/JSONStream/test/fn.js +39 -0
  223. data/vendor/node_modules/browserify/node_modules/JSONStream/test/multiple_objects.js +42 -0
  224. data/vendor/node_modules/browserify/node_modules/JSONStream/test/multiple_objects_error.js +35 -0
  225. data/vendor/node_modules/browserify/node_modules/JSONStream/test/parsejson.js +28 -0
  226. data/vendor/node_modules/browserify/node_modules/JSONStream/test/stringify.js +41 -0
  227. data/vendor/node_modules/browserify/node_modules/JSONStream/test/stringify_object.js +47 -0
  228. data/vendor/node_modules/browserify/node_modules/JSONStream/test/test.js +35 -0
  229. data/vendor/node_modules/browserify/node_modules/JSONStream/test/test2.js +29 -0
  230. data/vendor/node_modules/browserify/node_modules/JSONStream/test/two-ways.js +41 -0
  231. data/vendor/node_modules/browserify/node_modules/browser-pack/LICENSE +18 -0
  232. data/vendor/node_modules/browserify/node_modules/browser-pack/cmd.js +4 -0
  233. data/vendor/node_modules/browserify/node_modules/browser-pack/example/input.json +13 -0
  234. data/vendor/node_modules/browserify/node_modules/browser-pack/example/output.js +1 -0
  235. data/vendor/node_modules/browserify/node_modules/browser-pack/example/sourcemap/input.json +15 -0
  236. data/vendor/node_modules/browserify/node_modules/browser-pack/example/sourcemap/output.js +6 -0
  237. data/vendor/node_modules/browserify/node_modules/browser-pack/index.js +79 -0
  238. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/LICENSE +23 -0
  239. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/README.md +111 -0
  240. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/example/two-files-short.js +26 -0
  241. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/example/two-files.js +47 -0
  242. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/index.js +97 -0
  243. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/convert-source-map/LICENSE +23 -0
  244. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/convert-source-map/README.md +85 -0
  245. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/convert-source-map/example/comment-to-json.js +15 -0
  246. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/convert-source-map/index.js +89 -0
  247. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/convert-source-map/package.json +40 -0
  248. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/convert-source-map/test/comment-regex.js +25 -0
  249. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/convert-source-map/test/convert-source-map.js +129 -0
  250. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/LICENSE +23 -0
  251. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/README.md +88 -0
  252. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/example/foo-bar.js +8 -0
  253. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/index.js +127 -0
  254. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/CHANGELOG.md +58 -0
  255. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/LICENSE +28 -0
  256. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/Makefile.dryice.js +166 -0
  257. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/README.md +347 -0
  258. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/build/assert-shim.js +56 -0
  259. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/build/mini-require.js +152 -0
  260. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/build/prefix-source-map.jsm +20 -0
  261. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/build/prefix-utils.jsm +18 -0
  262. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/build/suffix-browser.js +8 -0
  263. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/build/suffix-source-map.jsm +6 -0
  264. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/build/suffix-utils.jsm +21 -0
  265. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/build/test-prefix.js +8 -0
  266. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/build/test-suffix.js +3 -0
  267. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/lib/source-map/array-set.js +96 -0
  268. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/lib/source-map/base64-vlq.js +144 -0
  269. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/lib/source-map/base64.js +42 -0
  270. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/lib/source-map/binary-search.js +81 -0
  271. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/lib/source-map/source-map-consumer.js +426 -0
  272. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/lib/source-map/source-map-generator.js +381 -0
  273. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/lib/source-map/source-node.js +353 -0
  274. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/lib/source-map/util.js +91 -0
  275. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/lib/source-map.js +8 -0
  276. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/node_modules/amdefine/LICENSE +58 -0
  277. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/node_modules/amdefine/README.md +119 -0
  278. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/node_modules/amdefine/amdefine.js +299 -0
  279. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/node_modules/amdefine/package.json +40 -0
  280. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/package.json +81 -0
  281. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/test/run-tests.js +73 -0
  282. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/test/source-map/test-api.js +26 -0
  283. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/test/source-map/test-array-set.js +71 -0
  284. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/test/source-map/test-base64-vlq.js +24 -0
  285. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/test/source-map/test-base64.js +35 -0
  286. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/test/source-map/test-binary-search.js +54 -0
  287. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/test/source-map/test-dog-fooding.js +72 -0
  288. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/test/source-map/test-source-map-consumer.js +291 -0
  289. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/test/source-map/test-source-map-generator.js +391 -0
  290. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/test/source-map/test-source-node.js +282 -0
  291. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/node_modules/source-map/test/source-map/util.js +152 -0
  292. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/package.json +49 -0
  293. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/test/inline-source-map.js +247 -0
  294. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/inline-source-map/test/source-content.js +129 -0
  295. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/parse-base64vlq-mappings/LICENSE +23 -0
  296. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/parse-base64vlq-mappings/MOZILLA_LICENSE +28 -0
  297. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/parse-base64vlq-mappings/README.md +35 -0
  298. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/parse-base64vlq-mappings/base64-vlq.js +108 -0
  299. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/parse-base64vlq-mappings/base64.js +35 -0
  300. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/parse-base64vlq-mappings/example/one-to-one-mappings.js +5 -0
  301. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/parse-base64vlq-mappings/index.js +82 -0
  302. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/parse-base64vlq-mappings/package.json +46 -0
  303. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/node_modules/parse-base64vlq-mappings/test/parse-base64vlq-mappings.js +72 -0
  304. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/package.json +52 -0
  305. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/combine-source-map/test/combine-source-map.js +143 -0
  306. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/README.html +1012 -0
  307. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/README.org +593 -0
  308. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/bin/uglifyjs +334 -0
  309. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/docstyle.css +75 -0
  310. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/lib/consolidator.js +1220 -0
  311. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/lib/parse-js.js +1369 -0
  312. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/lib/process.js +2117 -0
  313. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/lib/squeeze-more.js +78 -0
  314. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/package.json +35 -0
  315. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/beautify.js +28 -0
  316. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/testconsolidator.js +1391 -0
  317. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/testparser.js +409 -0
  318. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/1e21.js +1 -0
  319. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/array1.js +1 -0
  320. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/array2.js +1 -0
  321. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/array3.js +1 -0
  322. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/array4.js +1 -0
  323. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/assignment.js +1 -0
  324. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/concatstring.js +1 -0
  325. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/const.js +1 -0
  326. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/div-with-regexp.js +1 -0
  327. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/empty-blocks.js +1 -0
  328. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/forstatement.js +1 -0
  329. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/if-not.js +1 -0
  330. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/if.js +1 -0
  331. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/ifreturn.js +1 -0
  332. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/ifreturn2.js +1 -0
  333. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/infinite.js +1 -0
  334. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/issue10.js +1 -0
  335. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/issue11.js +1 -0
  336. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/issue13.js +1 -0
  337. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/issue14.js +1 -0
  338. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/issue16.js +1 -0
  339. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/issue17.js +1 -0
  340. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/issue20.js +1 -0
  341. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/issue21.js +1 -0
  342. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/issue25.js +1 -0
  343. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/issue27.js +1 -0
  344. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/issue278.js +1 -0
  345. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/issue28.js +1 -0
  346. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/issue29.js +1 -0
  347. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/issue30.js +1 -0
  348. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/issue34.js +1 -0
  349. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/issue349.js +1 -0
  350. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/issue353.js +1 -0
  351. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/issue372.js +1 -0
  352. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/issue4.js +1 -0
  353. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/issue48.js +1 -0
  354. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/issue50.js +1 -0
  355. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/issue53.js +1 -0
  356. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/issue54.1.js +1 -0
  357. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/issue68.js +1 -0
  358. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/issue69.js +1 -0
  359. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/issue9.js +1 -0
  360. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/issues222_324.js +1 -0
  361. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/mangle.js +1 -0
  362. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/null_string.js +1 -0
  363. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/strict-equals.js +1 -0
  364. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/var.js +1 -0
  365. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/whitespace.js +1 -0
  366. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/expected/with.js +1 -0
  367. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/1e21.js +1 -0
  368. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/array1.js +3 -0
  369. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/array2.js +4 -0
  370. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/array3.js +4 -0
  371. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/array4.js +6 -0
  372. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/assignment.js +20 -0
  373. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/concatstring.js +3 -0
  374. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/const.js +5 -0
  375. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/div-with-regexp.js +1 -0
  376. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/empty-blocks.js +4 -0
  377. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/forstatement.js +10 -0
  378. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/if-not.js +1 -0
  379. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/if.js +6 -0
  380. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/ifreturn.js +9 -0
  381. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/ifreturn2.js +16 -0
  382. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/infinite.js +1 -0
  383. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/issue10.js +1 -0
  384. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/issue11.js +3 -0
  385. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/issue13.js +1 -0
  386. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/issue14.js +1 -0
  387. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/issue16.js +1 -0
  388. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/issue17.js +4 -0
  389. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/issue20.js +1 -0
  390. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/issue21.js +6 -0
  391. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/issue25.js +7 -0
  392. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/issue27.js +1 -0
  393. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/issue278.js +1 -0
  394. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/issue28.js +3 -0
  395. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/issue29.js +1 -0
  396. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/issue30.js +3 -0
  397. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/issue34.js +3 -0
  398. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/issue349.js +25 -0
  399. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/issue353.js +4 -0
  400. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/issue372.js +32 -0
  401. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/issue4.js +3 -0
  402. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/issue48.js +1 -0
  403. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/issue50.js +9 -0
  404. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/issue53.js +1 -0
  405. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/issue54.1.js +3 -0
  406. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/issue68.js +5 -0
  407. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/issue69.js +1 -0
  408. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/issue9.js +4 -0
  409. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/issues222_324.js +82 -0
  410. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/mangle.js +5 -0
  411. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/null_string.js +1 -0
  412. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/strict-equals.js +3 -0
  413. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/var.js +3 -0
  414. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/whitespace.js +21 -0
  415. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/compress/test/with.js +2 -0
  416. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/test/unit/scripts.js +57 -0
  417. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/tmp/hoist.js +33 -0
  418. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/tmp/instrument.js +97 -0
  419. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/tmp/test.js +30 -0
  420. data/vendor/node_modules/browserify/node_modules/browser-pack/node_modules/uglify-js/uglify-js.js +18 -0
  421. data/vendor/node_modules/browserify/node_modules/browser-pack/package.json +70 -0
  422. data/vendor/node_modules/browserify/node_modules/browser-pack/prelude.js +42 -0
  423. data/vendor/node_modules/browserify/node_modules/browser-pack/readme.markdown +81 -0
  424. data/vendor/node_modules/browserify/node_modules/browser-pack/test/comment.js +33 -0
  425. data/vendor/node_modules/browserify/node_modules/browser-pack/test/only_execute_entries.js +26 -0
  426. data/vendor/node_modules/browserify/node_modules/browser-pack/test/order.js +38 -0
  427. data/vendor/node_modules/browserify/node_modules/browser-pack/test/pack.js +28 -0
  428. data/vendor/node_modules/browserify/node_modules/browser-pack/test/raw.js +32 -0
  429. data/vendor/node_modules/browserify/node_modules/browser-pack/test/source-maps-existing.js +56 -0
  430. data/vendor/node_modules/browserify/node_modules/browser-pack/test/source-maps.js +113 -0
  431. data/vendor/node_modules/browserify/node_modules/browser-pack/test/this.js +24 -0
  432. data/vendor/node_modules/browserify/node_modules/browser-resolve/README.md +115 -0
  433. data/vendor/node_modules/browserify/node_modules/browser-resolve/builtin/assert.js +314 -0
  434. data/vendor/node_modules/browserify/node_modules/browser-resolve/builtin/child_process.js +2 -0
  435. data/vendor/node_modules/browserify/node_modules/browser-resolve/builtin/dgram.js +0 -0
  436. data/vendor/node_modules/browserify/node_modules/browser-resolve/builtin/events.js +183 -0
  437. data/vendor/node_modules/browserify/node_modules/browser-resolve/builtin/fs.js +1 -0
  438. data/vendor/node_modules/browserify/node_modules/browser-resolve/builtin/https.js +13 -0
  439. data/vendor/node_modules/browserify/node_modules/browser-resolve/builtin/net.js +1 -0
  440. data/vendor/node_modules/browserify/node_modules/browser-resolve/builtin/path.js +175 -0
  441. data/vendor/node_modules/browserify/node_modules/browser-resolve/builtin/process.js +55 -0
  442. data/vendor/node_modules/browserify/node_modules/browser-resolve/builtin/querystring.js +250 -0
  443. data/vendor/node_modules/browserify/node_modules/browser-resolve/builtin/stream.js +119 -0
  444. data/vendor/node_modules/browserify/node_modules/browser-resolve/builtin/string_decoder.js +161 -0
  445. data/vendor/node_modules/browserify/node_modules/browser-resolve/builtin/sys.js +1 -0
  446. data/vendor/node_modules/browserify/node_modules/browser-resolve/builtin/timers.js +39 -0
  447. data/vendor/node_modules/browserify/node_modules/browser-resolve/builtin/tls.js +1 -0
  448. data/vendor/node_modules/browserify/node_modules/browser-resolve/builtin/tty.js +2 -0
  449. data/vendor/node_modules/browserify/node_modules/browser-resolve/builtin/url.js +604 -0
  450. data/vendor/node_modules/browserify/node_modules/browser-resolve/builtin/util.js +351 -0
  451. data/vendor/node_modules/browserify/node_modules/browser-resolve/empty.js +0 -0
  452. data/vendor/node_modules/browserify/node_modules/browser-resolve/example/builtin.js +4 -0
  453. data/vendor/node_modules/browserify/node_modules/browser-resolve/example/custom/custom.js +1 -0
  454. data/vendor/node_modules/browserify/node_modules/browser-resolve/example/custom/main.js +1 -0
  455. data/vendor/node_modules/browserify/node_modules/browser-resolve/example/custom/package.json +7 -0
  456. data/vendor/node_modules/browserify/node_modules/browser-resolve/example/custom.js +5 -0
  457. data/vendor/node_modules/browserify/node_modules/browser-resolve/example/resolve.js +4 -0
  458. data/vendor/node_modules/browserify/node_modules/browser-resolve/example/skip/main.js +9 -0
  459. data/vendor/node_modules/browserify/node_modules/browser-resolve/example/skip/package.json +7 -0
  460. data/vendor/node_modules/browserify/node_modules/browser-resolve/example/skip.js +5 -0
  461. data/vendor/node_modules/browserify/node_modules/browser-resolve/index.js +170 -0
  462. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/buffer-browserify/README.md +11 -0
  463. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/buffer-browserify/buffer_ieee754.js +84 -0
  464. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/buffer-browserify/index.js +1317 -0
  465. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/buffer-browserify/node_modules/base64-js/README.md +14 -0
  466. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/buffer-browserify/node_modules/base64-js/lib/b64.js +84 -0
  467. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/buffer-browserify/node_modules/base64-js/package.json +33 -0
  468. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/buffer-browserify/node_modules/base64-js/test/runner.js +50 -0
  469. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/buffer-browserify/package.json +49 -0
  470. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/buffer-browserify/test/buffer.js +218 -0
  471. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/console-browserify/LICENCE +19 -0
  472. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/console-browserify/README.md +32 -0
  473. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/console-browserify/index.js +85 -0
  474. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/console-browserify/package.json +80 -0
  475. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/console-browserify/test/index.js +67 -0
  476. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/console-browserify/test/static/index.html +12 -0
  477. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/console-browserify/test/static/test-adapter.js +53 -0
  478. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/crypto-browserify/example/bundle.js +637 -0
  479. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/crypto-browserify/example/index.html +12 -0
  480. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/crypto-browserify/example/test.js +4 -0
  481. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/crypto-browserify/index.js +74 -0
  482. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/crypto-browserify/md5.js +384 -0
  483. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/crypto-browserify/package.json +37 -0
  484. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/crypto-browserify/readme.markdown +20 -0
  485. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/crypto-browserify/rng.js +37 -0
  486. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/crypto-browserify/sha.js +210 -0
  487. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/crypto-browserify/test/simple.js +35 -0
  488. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/example/get/index.html +9 -0
  489. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/example/get/main.js +14 -0
  490. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/example/get/server.js +12 -0
  491. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/example/headers/index.html +9 -0
  492. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/example/headers/main.js +18 -0
  493. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/example/headers/server.js +15 -0
  494. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/example/json-stream/data.json +139 -0
  495. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/example/json-stream/index.html +9 -0
  496. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/example/json-stream/main.js +13 -0
  497. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/LICENSE.APACHE2 +15 -0
  498. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/LICENSE.MIT +24 -0
  499. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/examples/all_docs.js +13 -0
  500. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/index.js +189 -0
  501. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/LICENSE +24 -0
  502. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/README.markdown +11 -0
  503. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/bench.js +26 -0
  504. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/examples/twitterfeed.js +30 -0
  505. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/jsonparse.js +379 -0
  506. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/package.json +36 -0
  507. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/samplejson/basic.json +167 -0
  508. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/samplejson/basic2.json +180 -0
  509. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/test/primitives.js +54 -0
  510. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/node_modules/jsonparse/test/utf8.js +38 -0
  511. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/package.json +40 -0
  512. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/readme.markdown +145 -0
  513. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/bool.js +41 -0
  514. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/destroy_missing.js +22 -0
  515. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/empty.js +44 -0
  516. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/fixtures/all_npm.json +4030 -0
  517. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/fn.js +39 -0
  518. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/memory.js +69 -0
  519. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/multiple_objects.js +42 -0
  520. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/multiple_objects_error.js +35 -0
  521. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/parsejson.js +28 -0
  522. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/stringify.js +41 -0
  523. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/stringify_object.js +47 -0
  524. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/test.js +35 -0
  525. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/test2.js +29 -0
  526. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/example/json-stream/node_modules/JSONStream/test/two-ways.js +41 -0
  527. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/example/json-stream/server.js +10 -0
  528. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/example/post/index.html +9 -0
  529. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/example/post/main.js +16 -0
  530. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/example/post/server.js +19 -0
  531. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/example/streaming/index.html +9 -0
  532. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/example/streaming/main.js +16 -0
  533. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/example/streaming/server.js +21 -0
  534. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/index.js +60 -0
  535. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/lib/request.js +131 -0
  536. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/lib/response.js +119 -0
  537. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/node_modules/concat-stream/index.js +48 -0
  538. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/node_modules/concat-stream/package.json +33 -0
  539. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/node_modules/concat-stream/readme.md +31 -0
  540. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/node_modules/concat-stream/test.js +34 -0
  541. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/package.json +49 -0
  542. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/http-browserify/readme.markdown +128 -0
  543. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/LICENSE +18 -0
  544. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/example/async.js +5 -0
  545. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/example/sync.js +3 -0
  546. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/index.js +5 -0
  547. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js +131 -0
  548. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/core.js +4 -0
  549. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/core.json +38 -0
  550. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/sync.js +99 -0
  551. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/package.json +39 -0
  552. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/readme.markdown +134 -0
  553. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/test/core.js +12 -0
  554. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/test/filter.js +17 -0
  555. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/test/filter_sync.js +15 -0
  556. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/test/mock.js +68 -0
  557. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/test/mock_sync.js +68 -0
  558. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/test/resolver/bar/node_modules/foo/index.js +1 -0
  559. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/test/resolver/baz/doom.js +0 -0
  560. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/test/resolver/baz/package.json +3 -0
  561. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/test/resolver/baz/quux.js +1 -0
  562. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/test/resolver/biz/node_modules/grux/index.js +1 -0
  563. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/test/resolver/biz/node_modules/tiv/index.js +1 -0
  564. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/test/resolver/cup.coffee +1 -0
  565. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/test/resolver/foo.js +1 -0
  566. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/test/resolver/mug.coffee +0 -0
  567. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/test/resolver/mug.js +0 -0
  568. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/test/resolver/other_path/lib/other-lib.js +0 -0
  569. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/test/resolver/other_path/root.js +0 -0
  570. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/test/resolver.js +144 -0
  571. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/test/resolver_sync.js +157 -0
  572. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/vm-browserify/README.markdown +103 -0
  573. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/vm-browserify/example/run/bundle.js +473 -0
  574. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/vm-browserify/example/run/entry.js +6 -0
  575. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/vm-browserify/example/run/index.html +9 -0
  576. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/vm-browserify/example/run/server.js +6 -0
  577. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/vm-browserify/index.js +85 -0
  578. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/vm-browserify/package.json +46 -0
  579. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/vm-browserify/testling/run.js +22 -0
  580. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/vm-browserify/testling/test.sh +11 -0
  581. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/zlib-browserify/index.js +43 -0
  582. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/zlib-browserify/package.json +40 -0
  583. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/zlib-browserify/readme.md +1 -0
  584. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/zlib-browserify/test/zlib.test.js +65 -0
  585. data/vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/zlib-browserify/zlib.js +55 -0
  586. data/vendor/node_modules/browserify/node_modules/browser-resolve/package.json +45 -0
  587. data/vendor/node_modules/browserify/node_modules/browser-resolve/test/core.js +28 -0
  588. data/vendor/node_modules/browserify/node_modules/browser-resolve/test/false.js +24 -0
  589. data/vendor/node_modules/browserify/node_modules/browser-resolve/test/fixtures/foo.js +1 -0
  590. data/vendor/node_modules/browserify/node_modules/browser-resolve/test/local.js +15 -0
  591. data/vendor/node_modules/browserify/node_modules/browser-resolve/test/mocha.opts +1 -0
  592. data/vendor/node_modules/browserify/node_modules/browser-resolve/test/modules.js +99 -0
  593. data/vendor/node_modules/browserify/node_modules/concat-stream/index.js +50 -0
  594. data/vendor/node_modules/browserify/node_modules/concat-stream/package.json +33 -0
  595. data/vendor/node_modules/browserify/node_modules/concat-stream/readme.md +31 -0
  596. data/vendor/node_modules/browserify/node_modules/concat-stream/test.js +34 -0
  597. data/vendor/node_modules/browserify/node_modules/duplexer/LICENCE +19 -0
  598. data/vendor/node_modules/browserify/node_modules/duplexer/Makefile +4 -0
  599. data/vendor/node_modules/browserify/node_modules/duplexer/README.md +36 -0
  600. data/vendor/node_modules/browserify/node_modules/duplexer/index.js +77 -0
  601. data/vendor/node_modules/browserify/node_modules/duplexer/package.json +46 -0
  602. data/vendor/node_modules/browserify/node_modules/duplexer/test.js +27 -0
  603. data/vendor/node_modules/browserify/node_modules/inherits/README.md +51 -0
  604. data/vendor/node_modules/browserify/node_modules/inherits/inherits.js +29 -0
  605. data/vendor/node_modules/browserify/node_modules/inherits/package.json +29 -0
  606. data/vendor/node_modules/browserify/node_modules/insert-module-globals/LICENSE +18 -0
  607. data/vendor/node_modules/browserify/node_modules/insert-module-globals/bench/results.txt +18 -0
  608. data/vendor/node_modules/browserify/node_modules/insert-module-globals/bench/run.sh +2 -0
  609. data/vendor/node_modules/browserify/node_modules/insert-module-globals/bin/cmd.js +13 -0
  610. data/vendor/node_modules/browserify/node_modules/insert-module-globals/buffer.js +3863 -0
  611. data/vendor/node_modules/browserify/node_modules/insert-module-globals/bundle.sh +4 -0
  612. data/vendor/node_modules/browserify/node_modules/insert-module-globals/example/files/foo/index.js +6 -0
  613. data/vendor/node_modules/browserify/node_modules/insert-module-globals/example/files/main.js +6 -0
  614. data/vendor/node_modules/browserify/node_modules/insert-module-globals/example/insert.js +10 -0
  615. data/vendor/node_modules/browserify/node_modules/insert-module-globals/index.js +102 -0
  616. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/commondir/README.markdown +45 -0
  617. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/commondir/example/base.js +3 -0
  618. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/commondir/example/dir.js +3 -0
  619. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/commondir/index.js +29 -0
  620. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/commondir/package.json +50 -0
  621. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/commondir/test/dirs.js +66 -0
  622. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/LICENSE +18 -0
  623. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/bench/jquery.js +4 -0
  624. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/bench/results.txt +15 -0
  625. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/bench/run.js +7 -0
  626. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/example/detect.js +6 -0
  627. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/example/src.js +27 -0
  628. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/index.js +166 -0
  629. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/node_modules/astw/LICENSE +18 -0
  630. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/node_modules/astw/example/types.js +8 -0
  631. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/node_modules/astw/index.js +42 -0
  632. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/node_modules/astw/node_modules/esprima/ChangeLog +18 -0
  633. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/node_modules/astw/node_modules/esprima/LICENSE.BSD +19 -0
  634. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/node_modules/astw/node_modules/esprima/README.md +73 -0
  635. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/node_modules/astw/node_modules/esprima/bin/esparse.js +117 -0
  636. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/node_modules/astw/node_modules/esprima/bin/esvalidate.js +177 -0
  637. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/node_modules/astw/node_modules/esprima/component.json +14 -0
  638. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/node_modules/astw/node_modules/esprima/doc/index.html +473 -0
  639. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/node_modules/astw/node_modules/esprima/esprima.js +3895 -0
  640. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/node_modules/astw/node_modules/esprima/examples/detectnestedternary.js +106 -0
  641. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/node_modules/astw/node_modules/esprima/examples/findbooleantrap.js +173 -0
  642. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/node_modules/astw/node_modules/esprima/examples/tokendist.js +33 -0
  643. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/node_modules/astw/node_modules/esprima/index.html +102 -0
  644. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/node_modules/astw/node_modules/esprima/package.json +47 -0
  645. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/node_modules/astw/node_modules/esprima/test/benchmarks.html +58 -0
  646. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/node_modules/astw/node_modules/esprima/test/benchmarks.js +334 -0
  647. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/node_modules/astw/node_modules/esprima/test/compare.html +69 -0
  648. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/node_modules/astw/node_modules/esprima/test/compare.js +328 -0
  649. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/node_modules/astw/node_modules/esprima/test/compat.html +40 -0
  650. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/node_modules/astw/node_modules/esprima/test/compat.js +239 -0
  651. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/node_modules/astw/node_modules/esprima/test/coverage.footer.html +3 -0
  652. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/node_modules/astw/node_modules/esprima/test/coverage.header.html +37 -0
  653. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/node_modules/astw/node_modules/esprima/test/coverage.html +4676 -0
  654. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/node_modules/astw/node_modules/esprima/test/index.html +37 -0
  655. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/node_modules/astw/node_modules/esprima/test/module.html +36 -0
  656. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/node_modules/astw/node_modules/esprima/test/module.js +129 -0
  657. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/node_modules/astw/node_modules/esprima/test/reflect.js +422 -0
  658. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/node_modules/astw/node_modules/esprima/test/run.js +66 -0
  659. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/node_modules/astw/node_modules/esprima/test/runner.js +387 -0
  660. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/node_modules/astw/node_modules/esprima/test/test.js +19764 -0
  661. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/node_modules/astw/package.json +57 -0
  662. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/node_modules/astw/readme.markdown +52 -0
  663. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/node_modules/astw/test/parent.js +25 -0
  664. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/package.json +68 -0
  665. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/readme.markdown +99 -0
  666. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/test/argument.js +17 -0
  667. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/test/assign_implicit.js +13 -0
  668. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/test/detect.js +17 -0
  669. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/test/files/argument.js +6 -0
  670. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/test/files/assign_implicit.js +2 -0
  671. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/test/files/detect.js +32 -0
  672. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/test/files/named_arg.js +6 -0
  673. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/test/files/obj.js +1 -0
  674. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/test/files/return_hash.js +5 -0
  675. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/test/files/right_hand.js +2 -0
  676. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/test/named_arg.js +17 -0
  677. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/test/obj.js +16 -0
  678. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/test/package.json +5 -0
  679. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/test/return_hash.js +13 -0
  680. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/test/right_hand.js +16 -0
  681. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/lexical-scope/test/shebang.js +19 -0
  682. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/2132fedf7e11adbdb654aea08615ffea7b84cbf0.patch +25 -0
  683. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/README.md +15 -0
  684. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js +52 -0
  685. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/index.js +2 -0
  686. data/vendor/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/package.json +33 -0
  687. data/vendor/node_modules/browserify/node_modules/insert-module-globals/package.json +59 -0
  688. data/vendor/node_modules/browserify/node_modules/insert-module-globals/readme.markdown +86 -0
  689. data/vendor/node_modules/browserify/node_modules/insert-module-globals/test/always/main.js +6 -0
  690. data/vendor/node_modules/browserify/node_modules/insert-module-globals/test/always.js +23 -0
  691. data/vendor/node_modules/browserify/node_modules/insert-module-globals/test/global/filename.js +2 -0
  692. data/vendor/node_modules/browserify/node_modules/insert-module-globals/test/global/main.js +2 -0
  693. data/vendor/node_modules/browserify/node_modules/insert-module-globals/test/global.js +49 -0
  694. data/vendor/node_modules/browserify/node_modules/insert-module-globals/test/insert/buffer.js +1 -0
  695. data/vendor/node_modules/browserify/node_modules/insert-module-globals/test/insert/foo/buf.js +4 -0
  696. data/vendor/node_modules/browserify/node_modules/insert-module-globals/test/insert/foo/index.js +4 -0
  697. data/vendor/node_modules/browserify/node_modules/insert-module-globals/test/insert/main.js +4 -0
  698. data/vendor/node_modules/browserify/node_modules/insert-module-globals/test/insert.js +35 -0
  699. data/vendor/node_modules/browserify/node_modules/module-deps/LICENSE +18 -0
  700. data/vendor/node_modules/browserify/node_modules/module-deps/cmd.js +8 -0
  701. data/vendor/node_modules/browserify/node_modules/module-deps/example/deps.js +8 -0
  702. data/vendor/node_modules/browserify/node_modules/module-deps/example/files/bar.js +3 -0
  703. data/vendor/node_modules/browserify/node_modules/module-deps/example/files/foo.js +5 -0
  704. data/vendor/node_modules/browserify/node_modules/module-deps/example/files/main.js +2 -0
  705. data/vendor/node_modules/browserify/node_modules/module-deps/example/files/xyz.js +2 -0
  706. data/vendor/node_modules/browserify/node_modules/module-deps/index.js +177 -0
  707. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/LICENSE +18 -0
  708. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/example/strings.js +6 -0
  709. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/example/strings_src.js +3 -0
  710. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/index.js +66 -0
  711. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/LICENSE.BSD +19 -0
  712. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/LICENSE.source-map +27 -0
  713. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/README.md +99 -0
  714. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/bin/escodegen.js +43 -0
  715. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/bin/esgenerate.js +43 -0
  716. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/escodegen.js +2245 -0
  717. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/CHANGELOG.md +58 -0
  718. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/LICENSE +28 -0
  719. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/Makefile.dryice.js +166 -0
  720. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/README.md +347 -0
  721. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/build/assert-shim.js +56 -0
  722. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/build/mini-require.js +152 -0
  723. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/build/prefix-source-map.jsm +20 -0
  724. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/build/prefix-utils.jsm +18 -0
  725. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/build/suffix-browser.js +8 -0
  726. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/build/suffix-source-map.jsm +6 -0
  727. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/build/suffix-utils.jsm +21 -0
  728. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/build/test-prefix.js +8 -0
  729. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/build/test-suffix.js +3 -0
  730. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/lib/source-map/array-set.js +96 -0
  731. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/lib/source-map/base64-vlq.js +144 -0
  732. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/lib/source-map/base64.js +42 -0
  733. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/lib/source-map/binary-search.js +81 -0
  734. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/lib/source-map/source-map-consumer.js +426 -0
  735. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/lib/source-map/source-map-generator.js +381 -0
  736. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/lib/source-map/source-node.js +353 -0
  737. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/lib/source-map/util.js +91 -0
  738. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/lib/source-map.js +8 -0
  739. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/node_modules/amdefine/LICENSE +58 -0
  740. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/node_modules/amdefine/README.md +119 -0
  741. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/node_modules/amdefine/amdefine.js +299 -0
  742. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/node_modules/amdefine/package.json +40 -0
  743. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/package.json +81 -0
  744. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/test/run-tests.js +73 -0
  745. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/test/source-map/test-api.js +26 -0
  746. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/test/source-map/test-array-set.js +71 -0
  747. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/test/source-map/test-base64-vlq.js +24 -0
  748. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/test/source-map/test-base64.js +35 -0
  749. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/test/source-map/test-binary-search.js +54 -0
  750. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/test/source-map/test-dog-fooding.js +72 -0
  751. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/test/source-map/test-source-map-consumer.js +291 -0
  752. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/test/source-map/test-source-map-generator.js +391 -0
  753. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/test/source-map/test-source-node.js +282 -0
  754. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/node_modules/source-map/test/source-map/util.js +152 -0
  755. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/escodegen/package.json +55 -0
  756. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/esprima/ChangeLog +18 -0
  757. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/esprima/LICENSE.BSD +19 -0
  758. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/esprima/README.md +73 -0
  759. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/esprima/bin/esparse.js +117 -0
  760. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/esprima/bin/esvalidate.js +177 -0
  761. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/esprima/component.json +14 -0
  762. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/esprima/doc/index.html +473 -0
  763. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/esprima/esprima.js +3895 -0
  764. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/esprima/examples/detectnestedternary.js +106 -0
  765. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/esprima/examples/findbooleantrap.js +173 -0
  766. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/esprima/examples/tokendist.js +33 -0
  767. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/esprima/index.html +102 -0
  768. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/esprima/package.json +47 -0
  769. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/esprima/test/benchmarks.html +58 -0
  770. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/esprima/test/benchmarks.js +334 -0
  771. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/esprima/test/compare.html +69 -0
  772. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/esprima/test/compare.js +328 -0
  773. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/esprima/test/compat.html +40 -0
  774. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/esprima/test/compat.js +239 -0
  775. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/esprima/test/coverage.footer.html +3 -0
  776. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/esprima/test/coverage.header.html +37 -0
  777. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/esprima/test/coverage.html +4676 -0
  778. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/esprima/test/index.html +37 -0
  779. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/esprima/test/module.html +36 -0
  780. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/esprima/test/module.js +129 -0
  781. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/esprima/test/reflect.js +422 -0
  782. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/esprima/test/run.js +66 -0
  783. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/esprima/test/runner.js +387 -0
  784. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/node_modules/esprima/test/test.js +19764 -0
  785. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/package.json +43 -0
  786. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/readme.markdown +73 -0
  787. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/test/both.js +26 -0
  788. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/test/chained.js +9 -0
  789. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/test/files/both.js +4 -0
  790. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/test/files/chained.js +5 -0
  791. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/test/files/nested.js +22 -0
  792. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/test/files/shebang.js +5 -0
  793. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/test/files/sparse-array.js +3 -0
  794. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/test/files/strings.js +13 -0
  795. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/test/files/word.js +13 -0
  796. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/test/nested.js +9 -0
  797. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/test/return.js +9 -0
  798. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/test/shebang.js +9 -0
  799. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/test/sparse-array.js +14 -0
  800. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/test/strings.js +9 -0
  801. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/detective/test/word.js +12 -0
  802. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/resolve/LICENSE +18 -0
  803. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/resolve/example/async.js +5 -0
  804. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/resolve/example/sync.js +3 -0
  805. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/resolve/index.js +5 -0
  806. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/resolve/lib/async.js +131 -0
  807. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/resolve/lib/core.js +4 -0
  808. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/resolve/lib/core.json +38 -0
  809. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/resolve/lib/sync.js +99 -0
  810. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/resolve/package.json +39 -0
  811. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/resolve/readme.markdown +134 -0
  812. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/resolve/test/core.js +12 -0
  813. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/resolve/test/filter.js +17 -0
  814. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/resolve/test/filter_sync.js +15 -0
  815. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/resolve/test/mock.js +68 -0
  816. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/resolve/test/mock_sync.js +68 -0
  817. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/resolve/test/resolver/bar/node_modules/foo/index.js +1 -0
  818. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/resolve/test/resolver/baz/doom.js +0 -0
  819. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/resolve/test/resolver/baz/package.json +3 -0
  820. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/resolve/test/resolver/baz/quux.js +1 -0
  821. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/resolve/test/resolver/biz/node_modules/grux/index.js +1 -0
  822. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/resolve/test/resolver/biz/node_modules/tiv/index.js +1 -0
  823. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/resolve/test/resolver/cup.coffee +1 -0
  824. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/resolve/test/resolver/foo.js +1 -0
  825. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/resolve/test/resolver/mug.coffee +0 -0
  826. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/resolve/test/resolver/mug.js +0 -0
  827. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/resolve/test/resolver/other_path/lib/other-lib.js +0 -0
  828. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/resolve/test/resolver/other_path/root.js +0 -0
  829. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/resolve/test/resolver.js +144 -0
  830. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/resolve/test/resolver_sync.js +157 -0
  831. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/through/LICENSE.APACHE2 +15 -0
  832. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/through/LICENSE.MIT +24 -0
  833. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/through/index.js +108 -0
  834. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/through/package.json +50 -0
  835. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/through/readme.markdown +63 -0
  836. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/through/test/auto-destroy.js +30 -0
  837. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/through/test/buffering.js +71 -0
  838. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/through/test/end.js +45 -0
  839. data/vendor/node_modules/browserify/node_modules/module-deps/node_modules/through/test/index.js +114 -0
  840. data/vendor/node_modules/browserify/node_modules/module-deps/package.json +55 -0
  841. data/vendor/node_modules/browserify/node_modules/module-deps/readme.markdown +135 -0
  842. data/vendor/node_modules/browserify/node_modules/module-deps/test/bundle.js +21 -0
  843. data/vendor/node_modules/browserify/node_modules/module-deps/test/deps.js +42 -0
  844. data/vendor/node_modules/browserify/node_modules/module-deps/test/files/bar.js +3 -0
  845. data/vendor/node_modules/browserify/node_modules/module-deps/test/files/filterable.js +10 -0
  846. data/vendor/node_modules/browserify/node_modules/module-deps/test/files/foo.js +5 -0
  847. data/vendor/node_modules/browserify/node_modules/module-deps/test/files/main.js +2 -0
  848. data/vendor/node_modules/browserify/node_modules/module-deps/test/files/tr_module/f.js +1 -0
  849. data/vendor/node_modules/browserify/node_modules/module-deps/test/files/tr_module/main.js +7 -0
  850. data/vendor/node_modules/browserify/node_modules/module-deps/test/files/tr_module/node_modules/g/index.js +1 -0
  851. data/vendor/node_modules/browserify/node_modules/module-deps/test/files/tr_module/node_modules/g/node_modules/insert-ggg/index.js +7 -0
  852. data/vendor/node_modules/browserify/node_modules/module-deps/test/files/tr_module/node_modules/g/package.json +6 -0
  853. data/vendor/node_modules/browserify/node_modules/module-deps/test/files/tr_module/node_modules/insert-aaa/index.js +7 -0
  854. data/vendor/node_modules/browserify/node_modules/module-deps/test/files/tr_module/node_modules/insert-bbb/index.js +7 -0
  855. data/vendor/node_modules/browserify/node_modules/module-deps/test/files/tr_module/node_modules/m/index.js +3 -0
  856. data/vendor/node_modules/browserify/node_modules/module-deps/test/files/tr_sh/f.js +1 -0
  857. data/vendor/node_modules/browserify/node_modules/module-deps/test/files/tr_sh/main.js +7 -0
  858. data/vendor/node_modules/browserify/node_modules/module-deps/test/files/tr_sh/node_modules/g/index.js +1 -0
  859. data/vendor/node_modules/browserify/node_modules/module-deps/test/files/tr_sh/node_modules/g/package.json +6 -0
  860. data/vendor/node_modules/browserify/node_modules/module-deps/test/files/tr_sh/node_modules/g/tr_g.js +6 -0
  861. data/vendor/node_modules/browserify/node_modules/module-deps/test/files/tr_sh/node_modules/m/index.js +3 -0
  862. data/vendor/node_modules/browserify/node_modules/module-deps/test/files/tr_sh/tr_a.js +6 -0
  863. data/vendor/node_modules/browserify/node_modules/module-deps/test/files/tr_sh/tr_b.js +6 -0
  864. data/vendor/node_modules/browserify/node_modules/module-deps/test/files/xyz.js +2 -0
  865. data/vendor/node_modules/browserify/node_modules/module-deps/test/filter.js +37 -0
  866. data/vendor/node_modules/browserify/node_modules/module-deps/test/noparse.js +37 -0
  867. data/vendor/node_modules/browserify/node_modules/module-deps/test/tr_fn.js +29 -0
  868. data/vendor/node_modules/browserify/node_modules/module-deps/test/tr_module.js +21 -0
  869. data/vendor/node_modules/browserify/node_modules/module-deps/test/tr_sh.js +21 -0
  870. data/vendor/node_modules/browserify/node_modules/optimist/LICENSE +21 -0
  871. data/vendor/node_modules/browserify/node_modules/optimist/example/bool.js +10 -0
  872. data/vendor/node_modules/browserify/node_modules/optimist/example/boolean_double.js +7 -0
  873. data/vendor/node_modules/browserify/node_modules/optimist/example/boolean_single.js +7 -0
  874. data/vendor/node_modules/browserify/node_modules/optimist/example/default_hash.js +8 -0
  875. data/vendor/node_modules/browserify/node_modules/optimist/example/default_singles.js +7 -0
  876. data/vendor/node_modules/browserify/node_modules/optimist/example/divide.js +8 -0
  877. data/vendor/node_modules/browserify/node_modules/optimist/example/line_count.js +20 -0
  878. data/vendor/node_modules/browserify/node_modules/optimist/example/line_count_options.js +29 -0
  879. data/vendor/node_modules/browserify/node_modules/optimist/example/line_count_wrap.js +29 -0
  880. data/vendor/node_modules/browserify/node_modules/optimist/example/nonopt.js +4 -0
  881. data/vendor/node_modules/browserify/node_modules/optimist/example/reflect.js +2 -0
  882. data/vendor/node_modules/browserify/node_modules/optimist/example/short.js +3 -0
  883. data/vendor/node_modules/browserify/node_modules/optimist/example/string.js +11 -0
  884. data/vendor/node_modules/browserify/node_modules/optimist/example/usage-options.js +19 -0
  885. data/vendor/node_modules/browserify/node_modules/optimist/example/xup.js +10 -0
  886. data/vendor/node_modules/browserify/node_modules/optimist/index.js +478 -0
  887. data/vendor/node_modules/browserify/node_modules/optimist/node_modules/wordwrap/README.markdown +70 -0
  888. data/vendor/node_modules/browserify/node_modules/optimist/node_modules/wordwrap/example/center.js +10 -0
  889. data/vendor/node_modules/browserify/node_modules/optimist/node_modules/wordwrap/example/meat.js +3 -0
  890. data/vendor/node_modules/browserify/node_modules/optimist/node_modules/wordwrap/index.js +76 -0
  891. data/vendor/node_modules/browserify/node_modules/optimist/node_modules/wordwrap/package.json +44 -0
  892. data/vendor/node_modules/browserify/node_modules/optimist/node_modules/wordwrap/test/break.js +30 -0
  893. data/vendor/node_modules/browserify/node_modules/optimist/node_modules/wordwrap/test/idleness.txt +63 -0
  894. data/vendor/node_modules/browserify/node_modules/optimist/node_modules/wordwrap/test/wrap.js +31 -0
  895. data/vendor/node_modules/browserify/node_modules/optimist/package.json +45 -0
  896. data/vendor/node_modules/browserify/node_modules/optimist/readme.markdown +487 -0
  897. data/vendor/node_modules/browserify/node_modules/optimist/test/_/argv.js +2 -0
  898. data/vendor/node_modules/browserify/node_modules/optimist/test/_/bin.js +3 -0
  899. data/vendor/node_modules/browserify/node_modules/optimist/test/_.js +71 -0
  900. data/vendor/node_modules/browserify/node_modules/optimist/test/parse.js +446 -0
  901. data/vendor/node_modules/browserify/node_modules/optimist/test/usage.js +292 -0
  902. data/vendor/node_modules/browserify/node_modules/shell-quote/README.markdown +72 -0
  903. data/vendor/node_modules/browserify/node_modules/shell-quote/example/parse.js +3 -0
  904. data/vendor/node_modules/browserify/node_modules/shell-quote/example/quote.js +3 -0
  905. data/vendor/node_modules/browserify/node_modules/shell-quote/index.js +33 -0
  906. data/vendor/node_modules/browserify/node_modules/shell-quote/package.json +46 -0
  907. data/vendor/node_modules/browserify/node_modules/shell-quote/test/parse.js +14 -0
  908. data/vendor/node_modules/browserify/node_modules/shell-quote/test/quote.js +15 -0
  909. data/vendor/node_modules/browserify/node_modules/syntax-error/LICENSE +18 -0
  910. data/vendor/node_modules/browserify/node_modules/syntax-error/example/check.js +12 -0
  911. data/vendor/node_modules/browserify/node_modules/syntax-error/example/src.js +9 -0
  912. data/vendor/node_modules/browserify/node_modules/syntax-error/index.js +54 -0
  913. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/LICENSE.BSD +19 -0
  914. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/README.md +74 -0
  915. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/assets/codemirror/codemirror.css +112 -0
  916. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/assets/codemirror/codemirror.js +2972 -0
  917. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/assets/codemirror/javascript.js +360 -0
  918. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/assets/json2.js +487 -0
  919. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/assets/style.css +164 -0
  920. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/assets/yui/treeview-min.js +12 -0
  921. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/assets/yui/treeview-sprite.gif +0 -0
  922. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/assets/yui/treeview.css +7 -0
  923. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/assets/yui/yahoo-dom-event.js +14 -0
  924. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/bin/esparse.js +42 -0
  925. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/changes +92 -0
  926. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/cm +696 -0
  927. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/demo/checkenv.js +42 -0
  928. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/demo/collector.html +82 -0
  929. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/demo/collector.js +170 -0
  930. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/demo/functiontrace.html +106 -0
  931. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/demo/functiontrace.js +123 -0
  932. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/demo/parse.css +82 -0
  933. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/demo/parse.html +352 -0
  934. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/demo/precedence.html +225 -0
  935. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/demo/rewrite.html +120 -0
  936. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/demo/rewrite.js +71 -0
  937. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/esprima.js +3577 -0
  938. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/index.html +103 -0
  939. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/package.json +42 -0
  940. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/Tokenizer.js +646 -0
  941. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/XMLHttpRequest.js +509 -0
  942. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/ZeParser.js +2185 -0
  943. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/backbone-0.5.3.js +1158 -0
  944. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/benchmark.js +3261 -0
  945. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/escodegen.js +906 -0
  946. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/esmorph.js +240 -0
  947. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/ext-core-3.0.0.js +6579 -0
  948. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/ext-core-3.1.0.js +10255 -0
  949. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/jquery-1.6.4.js +9046 -0
  950. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/jquery-1.7.1.js +9266 -0
  951. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/jquery.mobile-1.0.js +6951 -0
  952. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/jsdefs.js +731 -0
  953. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/jslex.js +588 -0
  954. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/jsparse.js +1921 -0
  955. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/mootools-1.3.2.js +5952 -0
  956. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/mootools-1.4.1.js +6297 -0
  957. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/parse-js.js +1342 -0
  958. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/platform.js +878 -0
  959. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/prototype-1.6.1.js +4874 -0
  960. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/prototype-1.7.0.0.js +6082 -0
  961. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/underscore-1.2.3.js +981 -0
  962. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/benchmarks.html +58 -0
  963. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/benchmarks.js +328 -0
  964. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/compare.html +140 -0
  965. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/compare.js +270 -0
  966. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/compat.html +40 -0
  967. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/compat.js +239 -0
  968. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/coverage.footer.html +3 -0
  969. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/coverage.header.html +37 -0
  970. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/coverage.html +3617 -0
  971. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/index.html +36 -0
  972. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/reflect.js +403 -0
  973. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/run.js +66 -0
  974. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/test.js +16659 -0
  975. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/tools/generate-unicode-regex.py +164 -0
  976. data/vendor/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/tools/update-coverage.sh +28 -0
  977. data/vendor/node_modules/browserify/node_modules/syntax-error/package.json +53 -0
  978. data/vendor/node_modules/browserify/node_modules/syntax-error/readme.markdown +87 -0
  979. data/vendor/node_modules/browserify/node_modules/syntax-error/test/check.js +17 -0
  980. data/vendor/node_modules/browserify/node_modules/syntax-error/test/sources/check.js +9 -0
  981. data/vendor/node_modules/browserify/node_modules/through/LICENSE.APACHE2 +15 -0
  982. data/vendor/node_modules/browserify/node_modules/through/LICENSE.MIT +24 -0
  983. data/vendor/node_modules/browserify/node_modules/through/index.js +103 -0
  984. data/vendor/node_modules/browserify/node_modules/through/package.json +50 -0
  985. data/vendor/node_modules/browserify/node_modules/through/readme.markdown +43 -0
  986. data/vendor/node_modules/browserify/node_modules/through/test/buffering.js +71 -0
  987. data/vendor/node_modules/browserify/node_modules/through/test/end.js +26 -0
  988. data/vendor/node_modules/browserify/node_modules/through/test/index.js +114 -0
  989. data/vendor/node_modules/browserify/node_modules/umd/README.md +46 -0
  990. data/vendor/node_modules/browserify/node_modules/umd/index.js +63 -0
  991. data/vendor/node_modules/browserify/node_modules/umd/node_modules/rfile/README.md +81 -0
  992. data/vendor/node_modules/browserify/node_modules/umd/node_modules/rfile/index.js +39 -0
  993. data/vendor/node_modules/browserify/node_modules/umd/node_modules/rfile/node_modules/callsite/History.md +10 -0
  994. data/vendor/node_modules/browserify/node_modules/umd/node_modules/rfile/node_modules/callsite/Makefile +6 -0
  995. data/vendor/node_modules/browserify/node_modules/umd/node_modules/rfile/node_modules/callsite/Readme.md +44 -0
  996. data/vendor/node_modules/browserify/node_modules/umd/node_modules/rfile/node_modules/callsite/index.js +10 -0
  997. data/vendor/node_modules/browserify/node_modules/umd/node_modules/rfile/node_modules/callsite/package.json +31 -0
  998. data/vendor/node_modules/browserify/node_modules/umd/node_modules/rfile/node_modules/resolve/LICENSE +18 -0
  999. data/vendor/node_modules/browserify/node_modules/umd/node_modules/rfile/node_modules/resolve/example/async.js +5 -0
  1000. data/vendor/node_modules/browserify/node_modules/umd/node_modules/rfile/node_modules/resolve/example/sync.js +3 -0
  1001. data/vendor/node_modules/browserify/node_modules/umd/node_modules/rfile/node_modules/resolve/index.js +5 -0
  1002. data/vendor/node_modules/browserify/node_modules/umd/node_modules/rfile/node_modules/resolve/lib/async.js +131 -0
  1003. data/vendor/node_modules/browserify/node_modules/umd/node_modules/rfile/node_modules/resolve/lib/core.js +4 -0
  1004. data/vendor/node_modules/browserify/node_modules/umd/node_modules/rfile/node_modules/resolve/lib/core.json +38 -0
  1005. data/vendor/node_modules/browserify/node_modules/umd/node_modules/rfile/node_modules/resolve/lib/sync.js +99 -0
  1006. data/vendor/node_modules/browserify/node_modules/umd/node_modules/rfile/node_modules/resolve/package.json +39 -0
  1007. data/vendor/node_modules/browserify/node_modules/umd/node_modules/rfile/node_modules/resolve/readme.markdown +134 -0
  1008. data/vendor/node_modules/browserify/node_modules/umd/node_modules/rfile/node_modules/resolve/test/core.js +12 -0
  1009. data/vendor/node_modules/browserify/node_modules/umd/node_modules/rfile/node_modules/resolve/test/filter.js +17 -0
  1010. data/vendor/node_modules/browserify/node_modules/umd/node_modules/rfile/node_modules/resolve/test/filter_sync.js +15 -0
  1011. data/vendor/node_modules/browserify/node_modules/umd/node_modules/rfile/node_modules/resolve/test/mock.js +68 -0
  1012. data/vendor/node_modules/browserify/node_modules/umd/node_modules/rfile/node_modules/resolve/test/mock_sync.js +68 -0
  1013. data/vendor/node_modules/browserify/node_modules/umd/node_modules/rfile/node_modules/resolve/test/resolver/bar/node_modules/foo/index.js +1 -0
  1014. data/vendor/node_modules/browserify/node_modules/umd/node_modules/rfile/node_modules/resolve/test/resolver/baz/doom.js +0 -0
  1015. data/vendor/node_modules/browserify/node_modules/umd/node_modules/rfile/node_modules/resolve/test/resolver/baz/package.json +3 -0
  1016. data/vendor/node_modules/browserify/node_modules/umd/node_modules/rfile/node_modules/resolve/test/resolver/baz/quux.js +1 -0
  1017. data/vendor/node_modules/browserify/node_modules/umd/node_modules/rfile/node_modules/resolve/test/resolver/biz/node_modules/grux/index.js +1 -0
  1018. data/vendor/node_modules/browserify/node_modules/umd/node_modules/rfile/node_modules/resolve/test/resolver/biz/node_modules/tiv/index.js +1 -0
  1019. data/vendor/node_modules/browserify/node_modules/umd/node_modules/rfile/node_modules/resolve/test/resolver/cup.coffee +1 -0
  1020. data/vendor/node_modules/browserify/node_modules/umd/node_modules/rfile/node_modules/resolve/test/resolver/foo.js +1 -0
  1021. data/vendor/node_modules/browserify/node_modules/umd/node_modules/rfile/node_modules/resolve/test/resolver/mug.coffee +0 -0
  1022. data/vendor/node_modules/browserify/node_modules/umd/node_modules/rfile/node_modules/resolve/test/resolver/mug.js +0 -0
  1023. data/vendor/node_modules/browserify/node_modules/umd/node_modules/rfile/node_modules/resolve/test/resolver/other_path/lib/other-lib.js +0 -0
  1024. data/vendor/node_modules/browserify/node_modules/umd/node_modules/rfile/node_modules/resolve/test/resolver/other_path/root.js +0 -0
  1025. data/vendor/node_modules/browserify/node_modules/umd/node_modules/rfile/node_modules/resolve/test/resolver.js +144 -0
  1026. data/vendor/node_modules/browserify/node_modules/umd/node_modules/rfile/node_modules/resolve/test/resolver_sync.js +157 -0
  1027. data/vendor/node_modules/browserify/node_modules/umd/node_modules/rfile/package.json +43 -0
  1028. data/vendor/node_modules/browserify/node_modules/umd/node_modules/rfile/test/index.js +43 -0
  1029. data/vendor/node_modules/browserify/node_modules/umd/node_modules/ruglify/README.md +26 -0
  1030. data/vendor/node_modules/browserify/node_modules/umd/node_modules/ruglify/index.js +9 -0
  1031. data/vendor/node_modules/browserify/node_modules/umd/node_modules/ruglify/package.json +46 -0
  1032. data/vendor/node_modules/browserify/node_modules/umd/node_modules/ruglify/test/fixture/jquery.js +9597 -0
  1033. data/vendor/node_modules/browserify/node_modules/umd/node_modules/ruglify/test/fixture/jquery.min.js +3 -0
  1034. data/vendor/node_modules/browserify/node_modules/umd/node_modules/ruglify/test/index.js +8 -0
  1035. data/vendor/node_modules/browserify/node_modules/umd/node_modules/through/LICENSE.APACHE2 +15 -0
  1036. data/vendor/node_modules/browserify/node_modules/umd/node_modules/through/LICENSE.MIT +24 -0
  1037. data/vendor/node_modules/browserify/node_modules/umd/node_modules/through/index.js +108 -0
  1038. data/vendor/node_modules/browserify/node_modules/umd/node_modules/through/package.json +50 -0
  1039. data/vendor/node_modules/browserify/node_modules/umd/node_modules/through/readme.markdown +63 -0
  1040. data/vendor/node_modules/browserify/node_modules/umd/node_modules/through/test/auto-destroy.js +30 -0
  1041. data/vendor/node_modules/browserify/node_modules/umd/node_modules/through/test/buffering.js +71 -0
  1042. data/vendor/node_modules/browserify/node_modules/umd/node_modules/through/test/end.js +45 -0
  1043. data/vendor/node_modules/browserify/node_modules/umd/node_modules/through/test/index.js +114 -0
  1044. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/README.md +544 -0
  1045. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/bin/uglifyjs +370 -0
  1046. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/lib/ast.js +964 -0
  1047. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/lib/compress.js +1968 -0
  1048. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/lib/mozilla-ast.js +265 -0
  1049. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/lib/output.js +1220 -0
  1050. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/lib/parse.js +1407 -0
  1051. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/lib/scope.js +580 -0
  1052. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/lib/sourcemap.js +81 -0
  1053. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/lib/transform.js +218 -0
  1054. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/lib/utils.js +288 -0
  1055. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/CHANGELOG.md +58 -0
  1056. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/LICENSE +28 -0
  1057. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/Makefile.dryice.js +166 -0
  1058. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/README.md +347 -0
  1059. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/build/assert-shim.js +56 -0
  1060. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/build/mini-require.js +152 -0
  1061. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/build/prefix-source-map.jsm +20 -0
  1062. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/build/prefix-utils.jsm +18 -0
  1063. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/build/suffix-browser.js +8 -0
  1064. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/build/suffix-source-map.jsm +6 -0
  1065. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/build/suffix-utils.jsm +21 -0
  1066. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/build/test-prefix.js +8 -0
  1067. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/build/test-suffix.js +3 -0
  1068. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/lib/source-map/array-set.js +96 -0
  1069. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/lib/source-map/base64-vlq.js +144 -0
  1070. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/lib/source-map/base64.js +42 -0
  1071. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/lib/source-map/binary-search.js +81 -0
  1072. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/lib/source-map/source-map-consumer.js +426 -0
  1073. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/lib/source-map/source-map-generator.js +381 -0
  1074. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/lib/source-map/source-node.js +353 -0
  1075. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/lib/source-map/util.js +91 -0
  1076. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/lib/source-map.js +8 -0
  1077. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/node_modules/amdefine/LICENSE +58 -0
  1078. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/node_modules/amdefine/README.md +119 -0
  1079. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/node_modules/amdefine/amdefine.js +299 -0
  1080. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/node_modules/amdefine/package.json +40 -0
  1081. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/package.json +81 -0
  1082. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/test/run-tests.js +73 -0
  1083. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/test/source-map/test-api.js +26 -0
  1084. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/test/source-map/test-array-set.js +71 -0
  1085. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/test/source-map/test-base64-vlq.js +24 -0
  1086. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/test/source-map/test-base64.js +35 -0
  1087. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/test/source-map/test-binary-search.js +54 -0
  1088. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/test/source-map/test-dog-fooding.js +72 -0
  1089. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/test/source-map/test-source-map-consumer.js +291 -0
  1090. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/test/source-map/test-source-map-generator.js +391 -0
  1091. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/test/source-map/test-source-node.js +282 -0
  1092. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/node_modules/source-map/test/source-map/util.js +152 -0
  1093. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/package.json +48 -0
  1094. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/test/compress/arrays.js +12 -0
  1095. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/test/compress/blocks.js +49 -0
  1096. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/test/compress/conditionals.js +143 -0
  1097. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/test/compress/dead-code.js +89 -0
  1098. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/test/compress/debugger.js +24 -0
  1099. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/test/compress/drop-unused.js +97 -0
  1100. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/test/compress/issue-105.js +17 -0
  1101. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/test/compress/issue-12.js +11 -0
  1102. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/test/compress/issue-22.js +17 -0
  1103. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/test/compress/issue-44.js +31 -0
  1104. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/test/compress/issue-59.js +30 -0
  1105. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/test/compress/labels.js +163 -0
  1106. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/test/compress/loops.js +123 -0
  1107. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/test/compress/properties.js +25 -0
  1108. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/test/compress/sequences.js +161 -0
  1109. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/test/compress/switch.js +210 -0
  1110. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/test/run-tests.js +170 -0
  1111. data/vendor/node_modules/browserify/node_modules/umd/node_modules/uglify-js/tools/node.js +164 -0
  1112. data/vendor/node_modules/browserify/node_modules/umd/package.json +39 -0
  1113. data/vendor/node_modules/browserify/node_modules/umd/template.js +33 -0
  1114. data/vendor/node_modules/browserify/package.json +65 -0
  1115. data/vendor/node_modules/browserify/readme.markdown +426 -0
  1116. data/vendor/node_modules/browserify/test/backbone.js +22 -0
  1117. data/vendor/node_modules/browserify/test/bin.js +31 -0
  1118. data/vendor/node_modules/browserify/test/bin_entry.js +31 -0
  1119. data/vendor/node_modules/browserify/test/buffer.js +118 -0
  1120. data/vendor/node_modules/browserify/test/bundle_sourcemap.js +30 -0
  1121. data/vendor/node_modules/browserify/test/catch/main.js +1 -0
  1122. data/vendor/node_modules/browserify/test/catch.js +22 -0
  1123. data/vendor/node_modules/browserify/test/circular/a.js +3 -0
  1124. data/vendor/node_modules/browserify/test/circular/b.js +1 -0
  1125. data/vendor/node_modules/browserify/test/circular/main.js +1 -0
  1126. data/vendor/node_modules/browserify/test/circular.js +34 -0
  1127. data/vendor/node_modules/browserify/test/coffee_bin/main.coffee +2 -0
  1128. data/vendor/node_modules/browserify/test/coffee_bin/x.coffee +1 -0
  1129. data/vendor/node_modules/browserify/test/coffee_bin.js +36 -0
  1130. data/vendor/node_modules/browserify/test/comment/main.js +2 -0
  1131. data/vendor/node_modules/browserify/test/comment.js +16 -0
  1132. data/vendor/node_modules/browserify/test/crypto.js +37 -0
  1133. data/vendor/node_modules/browserify/test/dnode.js +27 -0
  1134. data/vendor/node_modules/browserify/test/dollar/dollar/index.js +7 -0
  1135. data/vendor/node_modules/browserify/test/dollar.js +18 -0
  1136. data/vendor/node_modules/browserify/test/entry/main.js +1 -0
  1137. data/vendor/node_modules/browserify/test/entry/one.js +1 -0
  1138. data/vendor/node_modules/browserify/test/entry/two.js +1 -0
  1139. data/vendor/node_modules/browserify/test/entry.js +19 -0
  1140. data/vendor/node_modules/browserify/test/entry_exec/fail.js +1 -0
  1141. data/vendor/node_modules/browserify/test/entry_exec/main.js +1 -0
  1142. data/vendor/node_modules/browserify/test/entry_exec.js +15 -0
  1143. data/vendor/node_modules/browserify/test/error_code/src.js +2 -0
  1144. data/vendor/node_modules/browserify/test/error_code.js +22 -0
  1145. data/vendor/node_modules/browserify/test/export/entry.js +1 -0
  1146. data/vendor/node_modules/browserify/test/export.js +35 -0
  1147. data/vendor/node_modules/browserify/test/fake/fake_fs.js +1 -0
  1148. data/vendor/node_modules/browserify/test/fake/main.js +2 -0
  1149. data/vendor/node_modules/browserify/test/fake.js +15 -0
  1150. data/vendor/node_modules/browserify/test/field/miss.js +1 -0
  1151. data/vendor/node_modules/browserify/test/field/node_modules/z-miss/browser.js +1 -0
  1152. data/vendor/node_modules/browserify/test/field/node_modules/z-miss/main.js +1 -0
  1153. data/vendor/node_modules/browserify/test/field/node_modules/z-miss/package.json +4 -0
  1154. data/vendor/node_modules/browserify/test/field/node_modules/z-object/browser.js +1 -0
  1155. data/vendor/node_modules/browserify/test/field/node_modules/z-object/main.js +1 -0
  1156. data/vendor/node_modules/browserify/test/field/node_modules/z-object/package.json +4 -0
  1157. data/vendor/node_modules/browserify/test/field/node_modules/z-string/browser.js +1 -0
  1158. data/vendor/node_modules/browserify/test/field/node_modules/z-string/main.js +1 -0
  1159. data/vendor/node_modules/browserify/test/field/node_modules/z-string/package.json +4 -0
  1160. data/vendor/node_modules/browserify/test/field/node_modules/z-sub/browser/a.js +1 -0
  1161. data/vendor/node_modules/browserify/test/field/node_modules/z-sub/browser/b.js +1 -0
  1162. data/vendor/node_modules/browserify/test/field/node_modules/z-sub/main.js +1 -0
  1163. data/vendor/node_modules/browserify/test/field/node_modules/z-sub/package.json +4 -0
  1164. data/vendor/node_modules/browserify/test/field/object.js +1 -0
  1165. data/vendor/node_modules/browserify/test/field/string.js +1 -0
  1166. data/vendor/node_modules/browserify/test/field/sub.js +1 -0
  1167. data/vendor/node_modules/browserify/test/field.js +64 -0
  1168. data/vendor/node_modules/browserify/test/file_event.js +33 -0
  1169. data/vendor/node_modules/browserify/test/global/buffer.js +2 -0
  1170. data/vendor/node_modules/browserify/test/global/filename.js +2 -0
  1171. data/vendor/node_modules/browserify/test/global/main.js +2 -0
  1172. data/vendor/node_modules/browserify/test/global/tick.js +3 -0
  1173. data/vendor/node_modules/browserify/test/global.js +54 -0
  1174. data/vendor/node_modules/browserify/test/ignore/main.js +1 -0
  1175. data/vendor/node_modules/browserify/test/ignore/skip.js +1 -0
  1176. data/vendor/node_modules/browserify/test/ignore.js +16 -0
  1177. data/vendor/node_modules/browserify/test/json/beep.json +4 -0
  1178. data/vendor/node_modules/browserify/test/json/main.js +1 -0
  1179. data/vendor/node_modules/browserify/test/json.js +18 -0
  1180. data/vendor/node_modules/browserify/test/maxlisteners/main.js +3 -0
  1181. data/vendor/node_modules/browserify/test/maxlisteners.js +13 -0
  1182. data/vendor/node_modules/browserify/test/multi_bundle/a.js +2 -0
  1183. data/vendor/node_modules/browserify/test/multi_bundle/b.js +5 -0
  1184. data/vendor/node_modules/browserify/test/multi_bundle.js +44 -0
  1185. data/vendor/node_modules/browserify/test/multi_entry/a.js +2 -0
  1186. data/vendor/node_modules/browserify/test/multi_entry/b.js +2 -0
  1187. data/vendor/node_modules/browserify/test/multi_entry/c.js +2 -0
  1188. data/vendor/node_modules/browserify/test/multi_entry.js +25 -0
  1189. data/vendor/node_modules/browserify/test/node_modules/beep/index.js +1 -0
  1190. data/vendor/node_modules/browserify/test/process/main.js +3 -0
  1191. data/vendor/node_modules/browserify/test/process/one.js +1 -0
  1192. data/vendor/node_modules/browserify/test/process/two.js +1 -0
  1193. data/vendor/node_modules/browserify/test/process.js +20 -0
  1194. data/vendor/node_modules/browserify/test/require_cache.js +19 -0
  1195. data/vendor/node_modules/browserify/test/retarget.js +23 -0
  1196. data/vendor/node_modules/browserify/test/reverse_multi_bundle/app.js +22 -0
  1197. data/vendor/node_modules/browserify/test/reverse_multi_bundle/lazy.js +4 -0
  1198. data/vendor/node_modules/browserify/test/reverse_multi_bundle/shared.js +4 -0
  1199. data/vendor/node_modules/browserify/test/reverse_multi_bundle.js +43 -0
  1200. data/vendor/node_modules/browserify/test/shebang/foo.js +2 -0
  1201. data/vendor/node_modules/browserify/test/shebang/main.js +4 -0
  1202. data/vendor/node_modules/browserify/test/shebang.js +11 -0
  1203. data/vendor/node_modules/browserify/test/standalone/main.js +3 -0
  1204. data/vendor/node_modules/browserify/test/standalone/one.js +1 -0
  1205. data/vendor/node_modules/browserify/test/standalone/two.js +1 -0
  1206. data/vendor/node_modules/browserify/test/standalone.js +73 -0
  1207. data/vendor/node_modules/browserify/test/subdep/index.js +1 -0
  1208. data/vendor/node_modules/browserify/test/subdep/node_modules/qq/b.js +1 -0
  1209. data/vendor/node_modules/browserify/test/subdep/node_modules/qq/ignore_me.js +1 -0
  1210. data/vendor/node_modules/browserify/test/subdep/node_modules/qq/node_modules/a/index.js +1 -0
  1211. data/vendor/node_modules/browserify/test/subdep/node_modules/qq/node_modules/a/package.json +5 -0
  1212. data/vendor/node_modules/browserify/test/subdep/node_modules/qq/node_modules/c/index.js +1 -0
  1213. data/vendor/node_modules/browserify/test/subdep/node_modules/qq/node_modules/c/package.json +5 -0
  1214. data/vendor/node_modules/browserify/test/subdep/node_modules/qq/node_modules/f/index.js +1 -0
  1215. data/vendor/node_modules/browserify/test/subdep/node_modules/qq/node_modules/z/index.js +1 -0
  1216. data/vendor/node_modules/browserify/test/subdep/node_modules/qq/package.json +3 -0
  1217. data/vendor/node_modules/browserify/test/subdep/package.json +6 -0
  1218. data/vendor/node_modules/browserify/test/subdep.js +16 -0
  1219. data/vendor/node_modules/browserify/test/tr/f.js +1 -0
  1220. data/vendor/node_modules/browserify/test/tr/main.js +7 -0
  1221. data/vendor/node_modules/browserify/test/tr/node_modules/g/index.js +1 -0
  1222. data/vendor/node_modules/browserify/test/tr/node_modules/g/node_modules/insert-ggg/index.js +7 -0
  1223. data/vendor/node_modules/browserify/test/tr/node_modules/g/package.json +6 -0
  1224. data/vendor/node_modules/browserify/test/tr/node_modules/insert-aaa/index.js +7 -0
  1225. data/vendor/node_modules/browserify/test/tr/node_modules/insert-bbb/index.js +7 -0
  1226. data/vendor/node_modules/browserify/test/tr/node_modules/m/index.js +3 -0
  1227. data/vendor/node_modules/browserify/test/tr.js +21 -0
  1228. data/vendor/node_modules/browserify/test/util.js +62 -0
  1229. data/vendor/node_modules/wisp/History.md +152 -0
  1230. data/vendor/node_modules/wisp/LICENSE +24 -0
  1231. data/vendor/node_modules/wisp/Makefile +80 -0
  1232. data/vendor/node_modules/wisp/Readme.md +615 -0
  1233. data/vendor/node_modules/wisp/analyzer.js +385 -0
  1234. data/vendor/node_modules/wisp/ast.js +214 -0
  1235. data/vendor/node_modules/wisp/backend/javascript/writer.js +212 -0
  1236. data/vendor/node_modules/wisp/bin/wisp.js +2 -0
  1237. data/vendor/node_modules/wisp/compiler.js +1028 -0
  1238. data/vendor/node_modules/wisp/design.md +114 -0
  1239. data/vendor/node_modules/wisp/engine/browser.js +65 -0
  1240. data/vendor/node_modules/wisp/engine/node.js +20 -0
  1241. data/vendor/node_modules/wisp/index.html +405 -0
  1242. data/vendor/node_modules/wisp/interactivate/Makefile +38 -0
  1243. data/vendor/node_modules/wisp/interactivate/Readme.md +24 -0
  1244. data/vendor/node_modules/wisp/interactivate/build/cache.manifest +12 -0
  1245. data/vendor/node_modules/wisp/interactivate/build/codemirror-compressed.js +4 -0
  1246. data/vendor/node_modules/wisp/interactivate/build/codemirror.css +248 -0
  1247. data/vendor/node_modules/wisp/interactivate/build/main.js +5430 -0
  1248. data/vendor/node_modules/wisp/interactivate/build/solarized.css +207 -0
  1249. data/vendor/node_modules/wisp/interactivate/host.wisp +83 -0
  1250. data/vendor/node_modules/wisp/interactivate/index.html +392 -0
  1251. data/vendor/node_modules/wisp/interactivate/main.wisp +37 -0
  1252. data/vendor/node_modules/wisp/interactivate/node_modules/codemirror-activine/License.md +18 -0
  1253. data/vendor/node_modules/wisp/interactivate/node_modules/codemirror-activine/Readme.md +22 -0
  1254. data/vendor/node_modules/wisp/interactivate/node_modules/codemirror-activine/core.js +33 -0
  1255. data/vendor/node_modules/wisp/interactivate/node_modules/codemirror-activine/package.json +36 -0
  1256. data/vendor/node_modules/wisp/interactivate/node_modules/codemirror-hashare/License.md +18 -0
  1257. data/vendor/node_modules/wisp/interactivate/node_modules/codemirror-hashare/Readme.md +23 -0
  1258. data/vendor/node_modules/wisp/interactivate/node_modules/codemirror-hashare/core.js +31 -0
  1259. data/vendor/node_modules/wisp/interactivate/node_modules/codemirror-hashare/package.json +37 -0
  1260. data/vendor/node_modules/wisp/interactivate/node_modules/codemirror-persist/License.md +18 -0
  1261. data/vendor/node_modules/wisp/interactivate/node_modules/codemirror-persist/Readme.md +22 -0
  1262. data/vendor/node_modules/wisp/interactivate/node_modules/codemirror-persist/core.js +25 -0
  1263. data/vendor/node_modules/wisp/interactivate/node_modules/codemirror-persist/package.json +34 -0
  1264. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/History.md +47 -0
  1265. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/License.md +18 -0
  1266. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/Readme.md +11 -0
  1267. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/demo/Readme.md +24 -0
  1268. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/demo/build/cache.manifest +12 -0
  1269. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/demo/build/codemirror-compressed.js +4 -0
  1270. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/demo/build/codemirror.css +248 -0
  1271. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/demo/build/main.js +267 -0
  1272. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/demo/build/solarized.css +207 -0
  1273. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/demo/index.html +115 -0
  1274. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/demo/main.js +39 -0
  1275. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/demo/node_modules/codemirror-activine/License.md +18 -0
  1276. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/demo/node_modules/codemirror-activine/Readme.md +22 -0
  1277. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/demo/node_modules/codemirror-activine/core.js +33 -0
  1278. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/demo/node_modules/codemirror-activine/package.json +36 -0
  1279. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/demo/node_modules/codemirror-hashare/License.md +18 -0
  1280. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/demo/node_modules/codemirror-hashare/Readme.md +23 -0
  1281. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/demo/node_modules/codemirror-hashare/core.js +31 -0
  1282. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/demo/node_modules/codemirror-hashare/package.json +37 -0
  1283. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/demo/node_modules/codemirror-persist/License.md +18 -0
  1284. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/demo/node_modules/codemirror-persist/Readme.md +22 -0
  1285. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/demo/node_modules/codemirror-persist/core.js +25 -0
  1286. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/demo/node_modules/codemirror-persist/package.json +34 -0
  1287. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/demo/package.json +21 -0
  1288. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/host/window.js +19 -0
  1289. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/interactivate.js +187 -0
  1290. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/diffpatcher/History.md +10 -0
  1291. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/diffpatcher/License.md +18 -0
  1292. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/diffpatcher/Readme.md +68 -0
  1293. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/diffpatcher/diff.js +45 -0
  1294. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/diffpatcher/index.js +5 -0
  1295. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/diffpatcher/package.json +53 -0
  1296. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/diffpatcher/patch.js +21 -0
  1297. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/diffpatcher/rebase.js +33 -0
  1298. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/diffpatcher/test/diff.js +62 -0
  1299. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/diffpatcher/test/index.js +16 -0
  1300. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/diffpatcher/test/patch.js +54 -0
  1301. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/dom-reduce/History.md +15 -0
  1302. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/dom-reduce/License.md +18 -0
  1303. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/dom-reduce/Readme.md +54 -0
  1304. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/dom-reduce/event.js +39 -0
  1305. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/dom-reduce/index.js +3 -0
  1306. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/dom-reduce/node_modules/reducible/History.md +20 -0
  1307. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/dom-reduce/node_modules/reducible/License.md +18 -0
  1308. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/dom-reduce/node_modules/reducible/Readme.md +45 -0
  1309. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/dom-reduce/node_modules/reducible/end.js +3 -0
  1310. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/dom-reduce/node_modules/reducible/index.js +8 -0
  1311. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/dom-reduce/node_modules/reducible/is-error.js +9 -0
  1312. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/dom-reduce/node_modules/reducible/is-reduced.js +9 -0
  1313. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/dom-reduce/node_modules/reducible/package.json +57 -0
  1314. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/dom-reduce/node_modules/reducible/reduce.js +59 -0
  1315. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/dom-reduce/node_modules/reducible/reduced.js +15 -0
  1316. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/dom-reduce/node_modules/reducible/reducible.js +87 -0
  1317. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/dom-reduce/node_modules/reducible/test/index.js +6 -0
  1318. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/dom-reduce/node_modules/reducible/test/reduce.js +116 -0
  1319. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/dom-reduce/node_modules/reducible/test/reducible.js +106 -0
  1320. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/dom-reduce/package.json +56 -0
  1321. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/dom-reduce/test/index.js +91 -0
  1322. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/method/History.md +60 -0
  1323. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/method/License.md +18 -0
  1324. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/method/Readme.md +125 -0
  1325. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/method/core.js +227 -0
  1326. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/method/package.json +93 -0
  1327. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/method/test/browser.js +18 -0
  1328. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/method/test/common-index.js +3 -0
  1329. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/method/test/common.js +270 -0
  1330. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/method/test/index.js +3 -0
  1331. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/method/test/phantom-index.js +3 -0
  1332. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/method/test/tap-index.js +3 -0
  1333. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/method/test/testling-index.js +3 -0
  1334. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/reducers/History.md +139 -0
  1335. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/reducers/License.md +19 -0
  1336. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/reducers/Readme.md +253 -0
  1337. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/reducers/capture.js +34 -0
  1338. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/reducers/concat.js +37 -0
  1339. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/reducers/debug/print.js +45 -0
  1340. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/reducers/delay.js +29 -0
  1341. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/reducers/drop-while.js +39 -0
  1342. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/reducers/drop.js +40 -0
  1343. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/reducers/expand.js +25 -0
  1344. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/reducers/filter.js +21 -0
  1345. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/reducers/fold.js +55 -0
  1346. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/reducers/hub.js +102 -0
  1347. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/reducers/index.js +33 -0
  1348. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/reducers/into.js +16 -0
  1349. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/reducers/map.js +19 -0
  1350. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/reducers/merge.js +50 -0
  1351. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/reducers/node_modules/reducible/History.md +20 -0
  1352. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/reducers/node_modules/reducible/License.md +18 -0
  1353. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/reducers/node_modules/reducible/Readme.md +45 -0
  1354. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/reducers/node_modules/reducible/end.js +3 -0
  1355. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/reducers/node_modules/reducible/index.js +8 -0
  1356. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/reducers/node_modules/reducible/is-error.js +9 -0
  1357. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/reducers/node_modules/reducible/is-reduced.js +9 -0
  1358. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/reducers/node_modules/reducible/package.json +57 -0
  1359. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/reducers/node_modules/reducible/reduce.js +59 -0
  1360. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/reducers/node_modules/reducible/reduced.js +15 -0
  1361. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/reducers/node_modules/reducible/reducible.js +87 -0
  1362. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/reducers/node_modules/reducible/test/index.js +6 -0
  1363. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/reducers/node_modules/reducible/test/reduce.js +116 -0
  1364. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/reducers/node_modules/reducible/test/reducible.js +106 -0
  1365. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/reducers/package.json +60 -0
  1366. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/reducers/reducer.js +51 -0
  1367. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/reducers/reductions.js +31 -0
  1368. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/reducers/take-while.js +23 -0
  1369. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/reducers/take.js +40 -0
  1370. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/reducers/test/benchmark.js +32 -0
  1371. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/reducers/test/capture.js +108 -0
  1372. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/reducers/test/concat.js +104 -0
  1373. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/reducers/test/delay.js +29 -0
  1374. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/reducers/test/drop-while.js +118 -0
  1375. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/reducers/test/drop.js +89 -0
  1376. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/reducers/test/errors.js +222 -0
  1377. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/reducers/test/filter.js +72 -0
  1378. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/reducers/test/fold.js +111 -0
  1379. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/reducers/test/hub.js +222 -0
  1380. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/reducers/test/index.js +23 -0
  1381. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/reducers/test/into.js +22 -0
  1382. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/reducers/test/map.js +67 -0
  1383. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/reducers/test/merge.js +75 -0
  1384. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/reducers/test/reductions.js +105 -0
  1385. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/reducers/test/take-while.js +134 -0
  1386. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/reducers/test/take.js +82 -0
  1387. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/reducers/test/util/event.js +25 -0
  1388. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/reducers/test/util/lazy.js +9 -0
  1389. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/node_modules/reducers/test/util/test.js +34 -0
  1390. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/output.js +60 -0
  1391. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/package.json +30 -0
  1392. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/render.js +23 -0
  1393. data/vendor/node_modules/wisp/interactivate/node_modules/interactivate/view.js +79 -0
  1394. data/vendor/node_modules/wisp/interactivate/package.json +22 -0
  1395. data/vendor/node_modules/wisp/package.json +61 -0
  1396. data/vendor/node_modules/wisp/reader.js +785 -0
  1397. data/vendor/node_modules/wisp/repl.js +121 -0
  1398. data/vendor/node_modules/wisp/runtime.js +609 -0
  1399. data/vendor/node_modules/wisp/sequence.js +553 -0
  1400. data/vendor/node_modules/wisp/src/ast.wisp +160 -0
  1401. data/vendor/node_modules/wisp/src/backend/javascript/writer.wisp +161 -0
  1402. data/vendor/node_modules/wisp/src/backend/js/generator.wisp +939 -0
  1403. data/vendor/node_modules/wisp/src/compiler.wisp +1185 -0
  1404. data/vendor/node_modules/wisp/src/drafts.wisp +50 -0
  1405. data/vendor/node_modules/wisp/src/drft.wisp +329 -0
  1406. data/vendor/node_modules/wisp/src/engine/browser.wisp +73 -0
  1407. data/vendor/node_modules/wisp/src/engine/node.wisp +23 -0
  1408. data/vendor/node_modules/wisp/src/extra.wisp +36 -0
  1409. data/vendor/node_modules/wisp/src/reader.wisp +615 -0
  1410. data/vendor/node_modules/wisp/src/repl.wisp +79 -0
  1411. data/vendor/node_modules/wisp/src/runtime.wisp +511 -0
  1412. data/vendor/node_modules/wisp/src/sequence.wisp +416 -0
  1413. data/vendor/node_modules/wisp/src/string.wisp +110 -0
  1414. data/vendor/node_modules/wisp/src/type.wisp +51 -0
  1415. data/vendor/node_modules/wisp/src/wisp.wisp +57 -0
  1416. data/vendor/node_modules/wisp/string.js +96 -0
  1417. data/vendor/node_modules/wisp/support/ambiance.css +119 -0
  1418. data/vendor/node_modules/wisp/support/app.js +3669 -0
  1419. data/vendor/node_modules/wisp/support/codemirror-compressed.js +1 -0
  1420. data/vendor/node_modules/wisp/support/codemirror.css +173 -0
  1421. data/vendor/node_modules/wisp/support/embed.js +71 -0
  1422. data/vendor/node_modules/wisp/support/embed.wisp +74 -0
  1423. data/vendor/node_modules/wisp/support/require.js +35 -0
  1424. data/vendor/node_modules/wisp/test/ast.wisp +58 -0
  1425. data/vendor/node_modules/wisp/test/compiler.wisp +549 -0
  1426. data/vendor/node_modules/wisp/test/reader.wisp +228 -0
  1427. data/vendor/node_modules/wisp/test/runtime.wisp +180 -0
  1428. data/vendor/node_modules/wisp/test/sequence.wisp +338 -0
  1429. data/vendor/node_modules/wisp/test/string.wisp +44 -0
  1430. data/vendor/node_modules/wisp/test/test.wisp +8 -0
  1431. data/vendor/node_modules/wisp/wisp.js +60 -0
  1432. data/vendor/package.json +39 -0
  1433. data/vendor/reader.js +784 -0
  1434. data/vendor/repl.js +116 -0
  1435. data/vendor/runtime.js +613 -0
  1436. data/vendor/sequence.js +555 -0
  1437. data/vendor/src/ast.wisp +162 -0
  1438. data/vendor/src/backend/escodegen/writer.wisp +939 -0
  1439. data/vendor/src/backend/javascript/writer.wisp +164 -0
  1440. data/vendor/src/compiler.wisp +1191 -0
  1441. data/vendor/src/drafts/drafts.wisp +50 -0
  1442. data/vendor/src/drafts/drft.wisp +329 -0
  1443. data/vendor/src/drafts/extra.wisp +36 -0
  1444. data/vendor/src/engine/browser.wisp +67 -0
  1445. data/vendor/src/engine/node.wisp +16 -0
  1446. data/vendor/src/functional-reader.wisp +96 -0
  1447. data/vendor/src/reader.wisp +619 -0
  1448. data/vendor/src/repl.wisp +80 -0
  1449. data/vendor/src/runtime.wisp +512 -0
  1450. data/vendor/src/sequence.wisp +417 -0
  1451. data/vendor/src/string.wisp +111 -0
  1452. data/vendor/src/type.wisp +54 -0
  1453. data/vendor/src/wisp.wisp +58 -0
  1454. data/vendor/string.js +97 -0
  1455. data/vendor/test/ast.wisp +60 -0
  1456. data/vendor/test/compiler.wisp +552 -0
  1457. data/vendor/test/reader.wisp +228 -0
  1458. data/vendor/test/runtime.wisp +180 -0
  1459. data/vendor/test/sequence.wisp +337 -0
  1460. data/vendor/test/string.wisp +45 -0
  1461. data/vendor/test/test.wisp +9 -0
  1462. data/vendor/try/Makefile +27 -0
  1463. data/vendor/try/Readme.md +25 -0
  1464. data/vendor/try/build/codemirror-compressed.js +4 -0
  1465. data/vendor/try/build/codemirror.css +248 -0
  1466. data/vendor/try/build/main.js +3742 -0
  1467. data/vendor/try/build/require.js +35 -0
  1468. data/vendor/try/build/solarized.css +203 -0
  1469. data/vendor/try/index.html +399 -0
  1470. data/vendor/try/node_modules/codemirror-activine/License.md +18 -0
  1471. data/vendor/try/node_modules/codemirror-activine/Readme.md +22 -0
  1472. data/vendor/try/node_modules/codemirror-activine/core.js +33 -0
  1473. data/vendor/try/node_modules/codemirror-activine/package.json +36 -0
  1474. data/vendor/try/node_modules/codemirror-persist/License.md +18 -0
  1475. data/vendor/try/node_modules/codemirror-persist/Readme.md +22 -0
  1476. data/vendor/try/node_modules/codemirror-persist/core.js +25 -0
  1477. data/vendor/try/node_modules/codemirror-persist/package.json +34 -0
  1478. data/vendor/try/node_modules/~wisp/History.md +152 -0
  1479. data/vendor/try/node_modules/~wisp/LICENSE +24 -0
  1480. data/vendor/try/node_modules/~wisp/Makefile +80 -0
  1481. data/vendor/try/node_modules/~wisp/Readme.md +615 -0
  1482. data/vendor/try/node_modules/~wisp/analyzer.js +385 -0
  1483. data/vendor/try/node_modules/~wisp/ast.js +214 -0
  1484. data/vendor/try/node_modules/~wisp/backend/javascript/writer.js +212 -0
  1485. data/vendor/try/node_modules/~wisp/bin/wisp.js +2 -0
  1486. data/vendor/try/node_modules/~wisp/compiler.js +1028 -0
  1487. data/vendor/try/node_modules/~wisp/design.md +114 -0
  1488. data/vendor/try/node_modules/~wisp/engine/browser.js +65 -0
  1489. data/vendor/try/node_modules/~wisp/engine/node.js +20 -0
  1490. data/vendor/try/node_modules/~wisp/index.html +405 -0
  1491. data/vendor/try/node_modules/~wisp/interactivate/Makefile +38 -0
  1492. data/vendor/try/node_modules/~wisp/interactivate/Readme.md +24 -0
  1493. data/vendor/try/node_modules/~wisp/interactivate/build/cache.manifest +12 -0
  1494. data/vendor/try/node_modules/~wisp/interactivate/build/codemirror-compressed.js +4 -0
  1495. data/vendor/try/node_modules/~wisp/interactivate/build/codemirror.css +248 -0
  1496. data/vendor/try/node_modules/~wisp/interactivate/build/main.js +5430 -0
  1497. data/vendor/try/node_modules/~wisp/interactivate/build/solarized.css +207 -0
  1498. data/vendor/try/node_modules/~wisp/interactivate/host.wisp +83 -0
  1499. data/vendor/try/node_modules/~wisp/interactivate/index.html +392 -0
  1500. data/vendor/try/node_modules/~wisp/interactivate/main.wisp +37 -0
  1501. data/vendor/try/node_modules/~wisp/interactivate/node_modules/codemirror-activine/License.md +18 -0
  1502. data/vendor/try/node_modules/~wisp/interactivate/node_modules/codemirror-activine/Readme.md +22 -0
  1503. data/vendor/try/node_modules/~wisp/interactivate/node_modules/codemirror-activine/core.js +33 -0
  1504. data/vendor/try/node_modules/~wisp/interactivate/node_modules/codemirror-activine/package.json +36 -0
  1505. data/vendor/try/node_modules/~wisp/interactivate/node_modules/codemirror-hashare/License.md +18 -0
  1506. data/vendor/try/node_modules/~wisp/interactivate/node_modules/codemirror-hashare/Readme.md +23 -0
  1507. data/vendor/try/node_modules/~wisp/interactivate/node_modules/codemirror-hashare/core.js +31 -0
  1508. data/vendor/try/node_modules/~wisp/interactivate/node_modules/codemirror-hashare/package.json +37 -0
  1509. data/vendor/try/node_modules/~wisp/interactivate/node_modules/codemirror-persist/License.md +18 -0
  1510. data/vendor/try/node_modules/~wisp/interactivate/node_modules/codemirror-persist/Readme.md +22 -0
  1511. data/vendor/try/node_modules/~wisp/interactivate/node_modules/codemirror-persist/core.js +25 -0
  1512. data/vendor/try/node_modules/~wisp/interactivate/node_modules/codemirror-persist/package.json +34 -0
  1513. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/History.md +47 -0
  1514. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/License.md +18 -0
  1515. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/Readme.md +11 -0
  1516. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/demo/Readme.md +24 -0
  1517. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/demo/build/cache.manifest +12 -0
  1518. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/demo/build/codemirror-compressed.js +4 -0
  1519. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/demo/build/codemirror.css +248 -0
  1520. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/demo/build/main.js +267 -0
  1521. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/demo/build/solarized.css +207 -0
  1522. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/demo/index.html +115 -0
  1523. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/demo/main.js +39 -0
  1524. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/demo/node_modules/codemirror-activine/License.md +18 -0
  1525. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/demo/node_modules/codemirror-activine/Readme.md +22 -0
  1526. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/demo/node_modules/codemirror-activine/core.js +33 -0
  1527. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/demo/node_modules/codemirror-activine/package.json +36 -0
  1528. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/demo/node_modules/codemirror-hashare/License.md +18 -0
  1529. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/demo/node_modules/codemirror-hashare/Readme.md +23 -0
  1530. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/demo/node_modules/codemirror-hashare/core.js +31 -0
  1531. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/demo/node_modules/codemirror-hashare/package.json +37 -0
  1532. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/demo/node_modules/codemirror-persist/License.md +18 -0
  1533. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/demo/node_modules/codemirror-persist/Readme.md +22 -0
  1534. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/demo/node_modules/codemirror-persist/core.js +25 -0
  1535. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/demo/node_modules/codemirror-persist/package.json +34 -0
  1536. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/demo/package.json +21 -0
  1537. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/host/window.js +19 -0
  1538. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/interactivate.js +187 -0
  1539. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/diffpatcher/History.md +10 -0
  1540. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/diffpatcher/License.md +18 -0
  1541. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/diffpatcher/Readme.md +68 -0
  1542. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/diffpatcher/diff.js +45 -0
  1543. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/diffpatcher/index.js +5 -0
  1544. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/diffpatcher/package.json +53 -0
  1545. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/diffpatcher/patch.js +21 -0
  1546. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/diffpatcher/rebase.js +33 -0
  1547. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/diffpatcher/test/diff.js +62 -0
  1548. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/diffpatcher/test/index.js +16 -0
  1549. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/diffpatcher/test/patch.js +54 -0
  1550. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/dom-reduce/History.md +15 -0
  1551. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/dom-reduce/License.md +18 -0
  1552. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/dom-reduce/Readme.md +54 -0
  1553. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/dom-reduce/event.js +39 -0
  1554. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/dom-reduce/index.js +3 -0
  1555. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/dom-reduce/node_modules/reducible/History.md +20 -0
  1556. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/dom-reduce/node_modules/reducible/License.md +18 -0
  1557. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/dom-reduce/node_modules/reducible/Readme.md +45 -0
  1558. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/dom-reduce/node_modules/reducible/end.js +3 -0
  1559. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/dom-reduce/node_modules/reducible/index.js +8 -0
  1560. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/dom-reduce/node_modules/reducible/is-error.js +9 -0
  1561. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/dom-reduce/node_modules/reducible/is-reduced.js +9 -0
  1562. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/dom-reduce/node_modules/reducible/package.json +57 -0
  1563. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/dom-reduce/node_modules/reducible/reduce.js +59 -0
  1564. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/dom-reduce/node_modules/reducible/reduced.js +15 -0
  1565. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/dom-reduce/node_modules/reducible/reducible.js +87 -0
  1566. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/dom-reduce/node_modules/reducible/test/index.js +6 -0
  1567. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/dom-reduce/node_modules/reducible/test/reduce.js +116 -0
  1568. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/dom-reduce/node_modules/reducible/test/reducible.js +106 -0
  1569. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/dom-reduce/package.json +56 -0
  1570. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/dom-reduce/test/index.js +91 -0
  1571. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/method/History.md +60 -0
  1572. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/method/License.md +18 -0
  1573. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/method/Readme.md +125 -0
  1574. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/method/core.js +227 -0
  1575. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/method/package.json +93 -0
  1576. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/method/test/browser.js +18 -0
  1577. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/method/test/common-index.js +3 -0
  1578. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/method/test/common.js +270 -0
  1579. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/method/test/index.js +3 -0
  1580. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/method/test/phantom-index.js +3 -0
  1581. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/method/test/tap-index.js +3 -0
  1582. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/method/test/testling-index.js +3 -0
  1583. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/reducers/History.md +139 -0
  1584. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/reducers/License.md +19 -0
  1585. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/reducers/Readme.md +253 -0
  1586. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/reducers/capture.js +34 -0
  1587. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/reducers/concat.js +37 -0
  1588. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/reducers/debug/print.js +45 -0
  1589. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/reducers/delay.js +29 -0
  1590. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/reducers/drop-while.js +39 -0
  1591. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/reducers/drop.js +40 -0
  1592. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/reducers/expand.js +25 -0
  1593. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/reducers/filter.js +21 -0
  1594. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/reducers/fold.js +55 -0
  1595. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/reducers/hub.js +102 -0
  1596. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/reducers/index.js +33 -0
  1597. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/reducers/into.js +16 -0
  1598. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/reducers/map.js +19 -0
  1599. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/reducers/merge.js +50 -0
  1600. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/reducers/node_modules/reducible/History.md +20 -0
  1601. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/reducers/node_modules/reducible/License.md +18 -0
  1602. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/reducers/node_modules/reducible/Readme.md +45 -0
  1603. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/reducers/node_modules/reducible/end.js +3 -0
  1604. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/reducers/node_modules/reducible/index.js +8 -0
  1605. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/reducers/node_modules/reducible/is-error.js +9 -0
  1606. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/reducers/node_modules/reducible/is-reduced.js +9 -0
  1607. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/reducers/node_modules/reducible/package.json +57 -0
  1608. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/reducers/node_modules/reducible/reduce.js +59 -0
  1609. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/reducers/node_modules/reducible/reduced.js +15 -0
  1610. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/reducers/node_modules/reducible/reducible.js +87 -0
  1611. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/reducers/node_modules/reducible/test/index.js +6 -0
  1612. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/reducers/node_modules/reducible/test/reduce.js +116 -0
  1613. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/reducers/node_modules/reducible/test/reducible.js +106 -0
  1614. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/reducers/package.json +60 -0
  1615. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/reducers/reducer.js +51 -0
  1616. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/reducers/reductions.js +31 -0
  1617. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/reducers/take-while.js +23 -0
  1618. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/reducers/take.js +40 -0
  1619. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/reducers/test/benchmark.js +32 -0
  1620. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/reducers/test/capture.js +108 -0
  1621. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/reducers/test/concat.js +104 -0
  1622. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/reducers/test/delay.js +29 -0
  1623. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/reducers/test/drop-while.js +118 -0
  1624. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/reducers/test/drop.js +89 -0
  1625. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/reducers/test/errors.js +222 -0
  1626. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/reducers/test/filter.js +72 -0
  1627. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/reducers/test/fold.js +111 -0
  1628. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/reducers/test/hub.js +222 -0
  1629. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/reducers/test/index.js +23 -0
  1630. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/reducers/test/into.js +22 -0
  1631. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/reducers/test/map.js +67 -0
  1632. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/reducers/test/merge.js +75 -0
  1633. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/reducers/test/reductions.js +105 -0
  1634. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/reducers/test/take-while.js +134 -0
  1635. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/reducers/test/take.js +82 -0
  1636. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/reducers/test/util/event.js +25 -0
  1637. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/reducers/test/util/lazy.js +9 -0
  1638. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/node_modules/reducers/test/util/test.js +34 -0
  1639. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/output.js +60 -0
  1640. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/package.json +30 -0
  1641. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/render.js +23 -0
  1642. data/vendor/try/node_modules/~wisp/interactivate/node_modules/interactivate/view.js +79 -0
  1643. data/vendor/try/node_modules/~wisp/interactivate/package.json +22 -0
  1644. data/vendor/try/node_modules/~wisp/package.json +57 -0
  1645. data/vendor/try/node_modules/~wisp/reader.js +785 -0
  1646. data/vendor/try/node_modules/~wisp/repl.js +121 -0
  1647. data/vendor/try/node_modules/~wisp/runtime.js +609 -0
  1648. data/vendor/try/node_modules/~wisp/sequence.js +553 -0
  1649. data/vendor/try/node_modules/~wisp/src/ast.wisp +160 -0
  1650. data/vendor/try/node_modules/~wisp/src/backend/javascript/writer.wisp +161 -0
  1651. data/vendor/try/node_modules/~wisp/src/backend/js/generator.wisp +939 -0
  1652. data/vendor/try/node_modules/~wisp/src/compiler.wisp +1185 -0
  1653. data/vendor/try/node_modules/~wisp/src/drafts.wisp +50 -0
  1654. data/vendor/try/node_modules/~wisp/src/drft.wisp +329 -0
  1655. data/vendor/try/node_modules/~wisp/src/engine/browser.wisp +73 -0
  1656. data/vendor/try/node_modules/~wisp/src/engine/node.wisp +23 -0
  1657. data/vendor/try/node_modules/~wisp/src/extra.wisp +36 -0
  1658. data/vendor/try/node_modules/~wisp/src/reader.wisp +615 -0
  1659. data/vendor/try/node_modules/~wisp/src/repl.wisp +79 -0
  1660. data/vendor/try/node_modules/~wisp/src/runtime.wisp +511 -0
  1661. data/vendor/try/node_modules/~wisp/src/sequence.wisp +416 -0
  1662. data/vendor/try/node_modules/~wisp/src/string.wisp +110 -0
  1663. data/vendor/try/node_modules/~wisp/src/type.wisp +51 -0
  1664. data/vendor/try/node_modules/~wisp/src/wisp.wisp +57 -0
  1665. data/vendor/try/node_modules/~wisp/string.js +96 -0
  1666. data/vendor/try/node_modules/~wisp/support/ambiance.css +119 -0
  1667. data/vendor/try/node_modules/~wisp/support/app.js +3669 -0
  1668. data/vendor/try/node_modules/~wisp/support/codemirror-compressed.js +1 -0
  1669. data/vendor/try/node_modules/~wisp/support/codemirror.css +173 -0
  1670. data/vendor/try/node_modules/~wisp/support/embed.js +71 -0
  1671. data/vendor/try/node_modules/~wisp/support/embed.wisp +74 -0
  1672. data/vendor/try/node_modules/~wisp/support/require.js +35 -0
  1673. data/vendor/try/node_modules/~wisp/test/ast.wisp +58 -0
  1674. data/vendor/try/node_modules/~wisp/test/compiler.wisp +549 -0
  1675. data/vendor/try/node_modules/~wisp/test/reader.wisp +228 -0
  1676. data/vendor/try/node_modules/~wisp/test/runtime.wisp +180 -0
  1677. data/vendor/try/node_modules/~wisp/test/sequence.wisp +338 -0
  1678. data/vendor/try/node_modules/~wisp/test/string.wisp +44 -0
  1679. data/vendor/try/node_modules/~wisp/test/test.wisp +8 -0
  1680. data/vendor/try/node_modules/~wisp/wisp.js +60 -0
  1681. data/vendor/try/package.json +19 -0
  1682. data/vendor/try/src/main.wisp +89 -0
  1683. data/vendor/wisp.js +55 -0
  1684. metadata +1727 -0
@@ -0,0 +1,3577 @@
1
+ /*
2
+ Copyright (C) 2012 Ariya Hidayat <ariya.hidayat@gmail.com>
3
+ Copyright (C) 2012 Mathias Bynens <mathias@qiwi.be>
4
+ Copyright (C) 2012 Joost-Wim Boekesteijn <joost-wim@boekesteijn.nl>
5
+ Copyright (C) 2012 Kris Kowal <kris.kowal@cixar.com>
6
+ Copyright (C) 2012 Yusuke Suzuki <utatane.tea@gmail.com>
7
+ Copyright (C) 2012 Arpad Borsos <arpad.borsos@googlemail.com>
8
+ Copyright (C) 2011 Ariya Hidayat <ariya.hidayat@gmail.com>
9
+
10
+ Redistribution and use in source and binary forms, with or without
11
+ modification, are permitted provided that the following conditions are met:
12
+
13
+ * Redistributions of source code must retain the above copyright
14
+ notice, this list of conditions and the following disclaimer.
15
+ * Redistributions in binary form must reproduce the above copyright
16
+ notice, this list of conditions and the following disclaimer in the
17
+ documentation and/or other materials provided with the distribution.
18
+
19
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22
+ ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
23
+ DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
24
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
25
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
26
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
28
+ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
+ */
30
+
31
+ /*jslint bitwise:true plusplus:true */
32
+ /*global esprima:true, exports:true,
33
+ throwError: true, createLiteral: true, generateStatement: true,
34
+ parseAssignmentExpression: true, parseBlock: true, parseExpression: true,
35
+ parseFunctionDeclaration: true, parseFunctionExpression: true,
36
+ parseFunctionSourceElements: true, parseVariableIdentifier: true,
37
+ parseLeftHandSideExpression: true,
38
+ parseStatement: true, parseSourceElement: true */
39
+
40
+ (function (exports) {
41
+ 'use strict';
42
+
43
+ var Token,
44
+ TokenName,
45
+ Syntax,
46
+ PropertyKind,
47
+ Messages,
48
+ Regex,
49
+ source,
50
+ allowIn,
51
+ lastParenthesized,
52
+ strict,
53
+ index,
54
+ lineNumber,
55
+ lineStart,
56
+ length,
57
+ buffer,
58
+ extra,
59
+ labelSet,
60
+ inIteration,
61
+ inSwitch,
62
+ inFunctionBody;
63
+
64
+ Token = {
65
+ BooleanLiteral: 1,
66
+ EOF: 2,
67
+ Identifier: 3,
68
+ Keyword: 4,
69
+ NullLiteral: 5,
70
+ NumericLiteral: 6,
71
+ Punctuator: 7,
72
+ StringLiteral: 8
73
+ };
74
+
75
+ TokenName = {};
76
+ TokenName[Token.BooleanLiteral] = 'Boolean';
77
+ TokenName[Token.EOF] = '<end>';
78
+ TokenName[Token.Identifier] = 'Identifier';
79
+ TokenName[Token.Keyword] = 'Keyword';
80
+ TokenName[Token.NullLiteral] = 'Null';
81
+ TokenName[Token.NumericLiteral] = 'Numeric';
82
+ TokenName[Token.Punctuator] = 'Punctuator';
83
+ TokenName[Token.StringLiteral] = 'String';
84
+
85
+ Syntax = {
86
+ AssignmentExpression: 'AssignmentExpression',
87
+ ArrayExpression: 'ArrayExpression',
88
+ BlockStatement: 'BlockStatement',
89
+ BinaryExpression: 'BinaryExpression',
90
+ BreakStatement: 'BreakStatement',
91
+ CallExpression: 'CallExpression',
92
+ CatchClause: 'CatchClause',
93
+ ConditionalExpression: 'ConditionalExpression',
94
+ ContinueStatement: 'ContinueStatement',
95
+ DoWhileStatement: 'DoWhileStatement',
96
+ DebuggerStatement: 'DebuggerStatement',
97
+ EmptyStatement: 'EmptyStatement',
98
+ ExpressionStatement: 'ExpressionStatement',
99
+ ForStatement: 'ForStatement',
100
+ ForInStatement: 'ForInStatement',
101
+ FunctionDeclaration: 'FunctionDeclaration',
102
+ FunctionExpression: 'FunctionExpression',
103
+ Identifier: 'Identifier',
104
+ IfStatement: 'IfStatement',
105
+ Literal: 'Literal',
106
+ LabeledStatement: 'LabeledStatement',
107
+ LogicalExpression: 'LogicalExpression',
108
+ MemberExpression: 'MemberExpression',
109
+ NewExpression: 'NewExpression',
110
+ ObjectExpression: 'ObjectExpression',
111
+ Program: 'Program',
112
+ Property: 'Property',
113
+ ReturnStatement: 'ReturnStatement',
114
+ SequenceExpression: 'SequenceExpression',
115
+ SwitchStatement: 'SwitchStatement',
116
+ SwitchCase: 'SwitchCase',
117
+ ThisExpression: 'ThisExpression',
118
+ ThrowStatement: 'ThrowStatement',
119
+ TryStatement: 'TryStatement',
120
+ UnaryExpression: 'UnaryExpression',
121
+ UpdateExpression: 'UpdateExpression',
122
+ VariableDeclaration: 'VariableDeclaration',
123
+ VariableDeclarator: 'VariableDeclarator',
124
+ WhileStatement: 'WhileStatement',
125
+ WithStatement: 'WithStatement'
126
+ };
127
+
128
+ PropertyKind = {
129
+ Data: 1,
130
+ Get: 2,
131
+ Set: 4
132
+ };
133
+
134
+ // Error messages should be identical to V8.
135
+ Messages = {
136
+ UnexpectedToken: 'Unexpected token %0',
137
+ UnexpectedNumber: 'Unexpected number',
138
+ UnexpectedString: 'Unexpected string',
139
+ UnexpectedIdentifier: 'Unexpected identifier',
140
+ UnexpectedReserved: 'Unexpected reserved word',
141
+ UnexpectedEOS: 'Unexpected end of input',
142
+ NewlineAfterThrow: 'Illegal newline after throw',
143
+ InvalidRegExp: 'Invalid regular expression',
144
+ UnterminatedRegExp: 'Invalid regular expression: missing /',
145
+ InvalidLHSInAssignment: 'Invalid left-hand side in assignment',
146
+ InvalidLHSInForIn: 'Invalid left-hand side in for-in',
147
+ NoCatchOrFinally: 'Missing catch or finally after try',
148
+ UnknownLabel: 'Undefined label \'%0\'',
149
+ Redeclaration: '%0 \'%1\' has already been declared',
150
+ IllegalContinue: 'Illegal continue statement',
151
+ IllegalBreak: 'Illegal break statement',
152
+ IllegalReturn: 'Illegal return statement',
153
+ StrictModeWith: 'Strict mode code may not include a with statement',
154
+ StrictCatchVariable: 'Catch variable may not be eval or arguments in strict mode',
155
+ StrictVarName: 'Variable name may not be eval or arguments in strict mode',
156
+ StrictParamName: 'Parameter name eval or arguments is not allowed in strict mode',
157
+ StrictParamDupe: 'Strict mode function may not have duplicate parameter names',
158
+ StrictFunctionName: 'Function name may not be eval or arguments in strict mode',
159
+ StrictOctalLiteral: 'Octal literals are not allowed in strict mode.',
160
+ StrictDelete: 'Delete of an unqualified identifier in strict mode.',
161
+ StrictDuplicateProperty: 'Duplicate data property in object literal not allowed in strict mode',
162
+ AccessorDataProperty: 'Object literal may not have data and accessor property with the same name',
163
+ AccessorGetSet: 'Object literal may not have multiple get/set accessors with the same name',
164
+ StrictLHSAssignment: 'Assignment to eval or arguments is not allowed in strict mode',
165
+ StrictLHSPostfix: 'Postfix increment/decrement may not have eval or arguments operand in strict mode',
166
+ StrictLHSPrefix: 'Prefix increment/decrement may not have eval or arguments operand in strict mode',
167
+ StrictReservedWord: 'Use of future reserved word in strict mode'
168
+ };
169
+
170
+ // See also tools/generate-unicode-regex.py.
171
+ Regex = {
172
+ NonAsciiIdentifierStart: new RegExp('[\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05d0-\u05ea\u05f0-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u08a0\u08a2-\u08ac\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0977\u0979-\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\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\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-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\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-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f0\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1877\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191c\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19c1-\u19c7\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1ce9-\u1cec\u1cee-\u1cf1\u1cf5\u1cf6\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-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2e2f\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fcc\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua697\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua78e\ua790-\ua793\ua7a0-\ua7aa\ua7f8-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa80-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uabc0-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\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]'),
173
+ NonAsciiIdentifierPart: new RegExp('[\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0300-\u0374\u0376\u0377\u037a-\u037d\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u0483-\u0487\u048a-\u0527\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u05d0-\u05ea\u05f0-\u05f2\u0610-\u061a\u0620-\u0669\u066e-\u06d3\u06d5-\u06dc\u06df-\u06e8\u06ea-\u06fc\u06ff\u0710-\u074a\u074d-\u07b1\u07c0-\u07f5\u07fa\u0800-\u082d\u0840-\u085b\u08a0\u08a2-\u08ac\u08e4-\u08fe\u0900-\u0963\u0966-\u096f\u0971-\u0977\u0979-\u097f\u0981-\u0983\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bc-\u09c4\u09c7\u09c8\u09cb-\u09ce\u09d7\u09dc\u09dd\u09df-\u09e3\u09e6-\u09f1\u0a01-\u0a03\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a59-\u0a5c\u0a5e\u0a66-\u0a75\u0a81-\u0a83\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abc-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ad0\u0ae0-\u0ae3\u0ae6-\u0aef\u0b01-\u0b03\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3c-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b56\u0b57\u0b5c\u0b5d\u0b5f-\u0b63\u0b66-\u0b6f\u0b71\u0b82\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd0\u0bd7\u0be6-\u0bef\u0c01-\u0c03\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c33\u0c35-\u0c39\u0c3d-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c58\u0c59\u0c60-\u0c63\u0c66-\u0c6f\u0c82\u0c83\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbc-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0cde\u0ce0-\u0ce3\u0ce6-\u0cef\u0cf1\u0cf2\u0d02\u0d03\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d-\u0d44\u0d46-\u0d48\u0d4a-\u0d4e\u0d57\u0d60-\u0d63\u0d66-\u0d6f\u0d7a-\u0d7f\u0d82\u0d83\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0df2\u0df3\u0e01-\u0e3a\u0e40-\u0e4e\u0e50-\u0e59\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb9\u0ebb-\u0ebd\u0ec0-\u0ec4\u0ec6\u0ec8-\u0ecd\u0ed0-\u0ed9\u0edc-\u0edf\u0f00\u0f18\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f3e-\u0f47\u0f49-\u0f6c\u0f71-\u0f84\u0f86-\u0f97\u0f99-\u0fbc\u0fc6\u1000-\u1049\u1050-\u109d\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\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\u135d-\u135f\u1380-\u138f\u13a0-\u13f4\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f0\u1700-\u170c\u170e-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176c\u176e-\u1770\u1772\u1773\u1780-\u17d3\u17d7\u17dc\u17dd\u17e0-\u17e9\u180b-\u180d\u1810-\u1819\u1820-\u1877\u1880-\u18aa\u18b0-\u18f5\u1900-\u191c\u1920-\u192b\u1930-\u193b\u1946-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u19d0-\u19d9\u1a00-\u1a1b\u1a20-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1aa7\u1b00-\u1b4b\u1b50-\u1b59\u1b6b-\u1b73\u1b80-\u1bf3\u1c00-\u1c37\u1c40-\u1c49\u1c4d-\u1c7d\u1cd0-\u1cd2\u1cd4-\u1cf6\u1d00-\u1de6\u1dfc-\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\u200c\u200d\u203f\u2040\u2054\u2071\u207f\u2090-\u209c\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d7f-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2de0-\u2dff\u2e2f\u3005-\u3007\u3021-\u302f\u3031-\u3035\u3038-\u303c\u3041-\u3096\u3099\u309a\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fcc\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua62b\ua640-\ua66f\ua674-\ua67d\ua67f-\ua697\ua69f-\ua6f1\ua717-\ua71f\ua722-\ua788\ua78b-\ua78e\ua790-\ua793\ua7a0-\ua7aa\ua7f8-\ua827\ua840-\ua873\ua880-\ua8c4\ua8d0-\ua8d9\ua8e0-\ua8f7\ua8fb\ua900-\ua92d\ua930-\ua953\ua960-\ua97c\ua980-\ua9c0\ua9cf-\ua9d9\uaa00-\uaa36\uaa40-\uaa4d\uaa50-\uaa59\uaa60-\uaa76\uaa7a\uaa7b\uaa80-\uaac2\uaadb-\uaadd\uaae0-\uaaef\uaaf2-\uaaf6\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uabc0-\uabea\uabec\uabed\uabf0-\uabf9\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe00-\ufe0f\ufe20-\ufe26\ufe33\ufe34\ufe4d-\ufe4f\ufe70-\ufe74\ufe76-\ufefc\uff10-\uff19\uff21-\uff3a\uff3f\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc]')
174
+ };
175
+
176
+ // Ensure the condition is true, otherwise throw an error.
177
+ // This is only to have a better contract semantic, i.e. another safety net
178
+ // to catch a logic error. The condition shall be fulfilled in normal case.
179
+ // Do NOT use this to enforce a certain condition on any user input.
180
+
181
+ function assert(condition, message) {
182
+ if (!condition) {
183
+ throw new Error('ASSERT: ' + message);
184
+ }
185
+ }
186
+
187
+ function sliceSource(from, to) {
188
+ return source.slice(from, to);
189
+ }
190
+
191
+ if (typeof 'esprima'[0] === 'undefined') {
192
+ sliceSource = function sliceArraySource(from, to) {
193
+ return source.slice(from, to).join('');
194
+ };
195
+ }
196
+
197
+ function isDecimalDigit(ch) {
198
+ return '0123456789'.indexOf(ch) >= 0;
199
+ }
200
+
201
+ function isHexDigit(ch) {
202
+ return '0123456789abcdefABCDEF'.indexOf(ch) >= 0;
203
+ }
204
+
205
+ function isOctalDigit(ch) {
206
+ return '01234567'.indexOf(ch) >= 0;
207
+ }
208
+
209
+
210
+ // 7.2 White Space
211
+
212
+ function isWhiteSpace(ch) {
213
+ return (ch === ' ') || (ch === '\u0009') || (ch === '\u000B') ||
214
+ (ch === '\u000C') || (ch === '\u00A0') ||
215
+ (ch.charCodeAt(0) >= 0x1680 &&
216
+ '\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\uFEFF'.indexOf(ch) >= 0);
217
+ }
218
+
219
+ // 7.3 Line Terminators
220
+
221
+ function isLineTerminator(ch) {
222
+ return (ch === '\n' || ch === '\r' || ch === '\u2028' || ch === '\u2029');
223
+ }
224
+
225
+ // 7.6 Identifier Names and Identifiers
226
+
227
+ function isIdentifierStart(ch) {
228
+ return (ch === '$') || (ch === '_') || (ch === '\\') ||
229
+ (ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z') ||
230
+ ((ch.charCodeAt(0) >= 0x80) && Regex.NonAsciiIdentifierStart.test(ch));
231
+ }
232
+
233
+ function isIdentifierPart(ch) {
234
+ return (ch === '$') || (ch === '_') || (ch === '\\') ||
235
+ (ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z') ||
236
+ ((ch >= '0') && (ch <= '9')) ||
237
+ ((ch.charCodeAt(0) >= 0x80) && Regex.NonAsciiIdentifierPart.test(ch));
238
+ }
239
+
240
+ // 7.6.1.2 Future Reserved Words
241
+
242
+ function isFutureReservedWord(id) {
243
+ switch (id) {
244
+
245
+ // Future reserved words.
246
+ case 'class':
247
+ case 'enum':
248
+ case 'export':
249
+ case 'extends':
250
+ case 'import':
251
+ case 'super':
252
+ return true;
253
+ }
254
+
255
+ return false;
256
+ }
257
+
258
+ function isStrictModeReservedWord(id) {
259
+ switch (id) {
260
+
261
+ // Strict Mode reserved words.
262
+ case 'implements':
263
+ case 'interface':
264
+ case 'package':
265
+ case 'private':
266
+ case 'protected':
267
+ case 'public':
268
+ case 'static':
269
+ case 'yield':
270
+ case 'let':
271
+ return true;
272
+ }
273
+
274
+ return false;
275
+ }
276
+
277
+ function isRestrictedWord(id) {
278
+ return id === 'eval' || id === 'arguments';
279
+ }
280
+
281
+ // 7.6.1.1 Keywords
282
+
283
+ function isKeyword(id) {
284
+ var keyword = false;
285
+ switch (id.length) {
286
+ case 2:
287
+ keyword = (id === 'if') || (id === 'in') || (id === 'do');
288
+ break;
289
+ case 3:
290
+ keyword = (id === 'var') || (id === 'for') || (id === 'new') || (id === 'try');
291
+ break;
292
+ case 4:
293
+ keyword = (id === 'this') || (id === 'else') || (id === 'case') || (id === 'void') || (id === 'with');
294
+ break;
295
+ case 5:
296
+ keyword = (id === 'while') || (id === 'break') || (id === 'catch') || (id === 'throw');
297
+ break;
298
+ case 6:
299
+ keyword = (id === 'return') || (id === 'typeof') || (id === 'delete') || (id === 'switch');
300
+ break;
301
+ case 7:
302
+ keyword = (id === 'default') || (id === 'finally');
303
+ break;
304
+ case 8:
305
+ keyword = (id === 'function') || (id === 'continue') || (id === 'debugger');
306
+ break;
307
+ case 10:
308
+ keyword = (id === 'instanceof');
309
+ break;
310
+ }
311
+
312
+ if (keyword) {
313
+ return true;
314
+ }
315
+
316
+ switch (id) {
317
+ // Future reserved words.
318
+ // 'const' is specialized as Keyword in V8.
319
+ case 'const':
320
+ return true;
321
+
322
+ // For compatiblity to SpiderMonkey and ES.next
323
+ case 'yield':
324
+ case 'let':
325
+ return true;
326
+ }
327
+
328
+ if (strict && isStrictModeReservedWord(id)) {
329
+ return true;
330
+ }
331
+
332
+ return isFutureReservedWord(id);
333
+ }
334
+
335
+ // Return the next character and move forward.
336
+
337
+ function nextChar() {
338
+ return source[index++];
339
+ }
340
+
341
+ // 7.4 Comments
342
+
343
+ function skipComment() {
344
+ var ch, blockComment, lineComment;
345
+
346
+ blockComment = false;
347
+ lineComment = false;
348
+
349
+ while (index < length) {
350
+ ch = source[index];
351
+
352
+ if (lineComment) {
353
+ ch = nextChar();
354
+ if (isLineTerminator(ch)) {
355
+ lineComment = false;
356
+ if (ch === '\r' && source[index] === '\n') {
357
+ ++index;
358
+ }
359
+ ++lineNumber;
360
+ lineStart = index;
361
+ }
362
+ } else if (blockComment) {
363
+ if (isLineTerminator(ch)) {
364
+ if (ch === '\r' && source[index + 1] === '\n') {
365
+ ++index;
366
+ }
367
+ ++lineNumber;
368
+ ++index;
369
+ lineStart = index;
370
+ if (index >= length) {
371
+ throwError({}, Messages.UnexpectedToken, 'ILLEGAL');
372
+ }
373
+ } else {
374
+ ch = nextChar();
375
+ if (index >= length) {
376
+ throwError({}, Messages.UnexpectedToken, 'ILLEGAL');
377
+ }
378
+ if (ch === '*') {
379
+ ch = source[index];
380
+ if (ch === '/') {
381
+ ++index;
382
+ blockComment = false;
383
+ }
384
+ }
385
+ }
386
+ } else if (ch === '/') {
387
+ ch = source[index + 1];
388
+ if (ch === '/') {
389
+ index += 2;
390
+ lineComment = true;
391
+ } else if (ch === '*') {
392
+ index += 2;
393
+ blockComment = true;
394
+ if (index >= length) {
395
+ throwError({}, Messages.UnexpectedToken, 'ILLEGAL');
396
+ }
397
+ } else {
398
+ break;
399
+ }
400
+ } else if (isWhiteSpace(ch)) {
401
+ ++index;
402
+ } else if (isLineTerminator(ch)) {
403
+ ++index;
404
+ if (ch === '\r' && source[index] === '\n') {
405
+ ++index;
406
+ }
407
+ ++lineNumber;
408
+ lineStart = index;
409
+ } else {
410
+ break;
411
+ }
412
+ }
413
+ }
414
+
415
+ function scanHexEscape(prefix) {
416
+ var i, len, ch, code = 0;
417
+
418
+ len = (prefix === 'u') ? 4 : 2;
419
+ for (i = 0; i < len; ++i) {
420
+ if (index < length && isHexDigit(source[index])) {
421
+ ch = nextChar();
422
+ code = code * 16 + '0123456789abcdef'.indexOf(ch.toLowerCase());
423
+ } else {
424
+ return '';
425
+ }
426
+ }
427
+ return String.fromCharCode(code);
428
+ }
429
+
430
+ function scanIdentifier() {
431
+ var ch, start, id, restore;
432
+
433
+ ch = source[index];
434
+ if (!isIdentifierStart(ch)) {
435
+ return;
436
+ }
437
+
438
+ start = index;
439
+ if (ch === '\\') {
440
+ ++index;
441
+ if (source[index] !== 'u') {
442
+ return;
443
+ }
444
+ ++index;
445
+ restore = index;
446
+ ch = scanHexEscape('u');
447
+ if (ch) {
448
+ if (ch === '\\' || !isIdentifierStart(ch)) {
449
+ return;
450
+ }
451
+ id = ch;
452
+ } else {
453
+ index = restore;
454
+ id = 'u';
455
+ }
456
+ } else {
457
+ id = nextChar();
458
+ }
459
+
460
+ while (index < length) {
461
+ ch = source[index];
462
+ if (!isIdentifierPart(ch)) {
463
+ break;
464
+ }
465
+ if (ch === '\\') {
466
+ ++index;
467
+ if (source[index] !== 'u') {
468
+ return;
469
+ }
470
+ ++index;
471
+ restore = index;
472
+ ch = scanHexEscape('u');
473
+ if (ch) {
474
+ if (ch === '\\' || !isIdentifierPart(ch)) {
475
+ return;
476
+ }
477
+ id += ch;
478
+ } else {
479
+ index = restore;
480
+ id += 'u';
481
+ }
482
+ } else {
483
+ id += nextChar();
484
+ }
485
+ }
486
+
487
+ // There is no keyword or literal with only one character.
488
+ // Thus, it must be an identifier.
489
+ if (id.length === 1) {
490
+ return {
491
+ type: Token.Identifier,
492
+ value: id,
493
+ lineNumber: lineNumber,
494
+ lineStart: lineStart,
495
+ range: [start, index]
496
+ };
497
+ }
498
+
499
+ if (isKeyword(id)) {
500
+ return {
501
+ type: Token.Keyword,
502
+ value: id,
503
+ lineNumber: lineNumber,
504
+ lineStart: lineStart,
505
+ range: [start, index]
506
+ };
507
+ }
508
+
509
+ // 7.8.1 Null Literals
510
+
511
+ if (id === 'null') {
512
+ return {
513
+ type: Token.NullLiteral,
514
+ value: id,
515
+ lineNumber: lineNumber,
516
+ lineStart: lineStart,
517
+ range: [start, index]
518
+ };
519
+ }
520
+
521
+ // 7.8.2 Boolean Literals
522
+
523
+ if (id === 'true' || id === 'false') {
524
+ return {
525
+ type: Token.BooleanLiteral,
526
+ value: id,
527
+ lineNumber: lineNumber,
528
+ lineStart: lineStart,
529
+ range: [start, index]
530
+ };
531
+ }
532
+
533
+ return {
534
+ type: Token.Identifier,
535
+ value: id,
536
+ lineNumber: lineNumber,
537
+ lineStart: lineStart,
538
+ range: [start, index]
539
+ };
540
+ }
541
+
542
+ // 7.7 Punctuators
543
+
544
+ function scanPunctuator() {
545
+ var start = index,
546
+ ch1 = source[index],
547
+ ch2,
548
+ ch3,
549
+ ch4;
550
+
551
+ // Check for most common single-character punctuators.
552
+
553
+ if (ch1 === ';' || ch1 === '{' || ch1 === '}') {
554
+ ++index;
555
+ return {
556
+ type: Token.Punctuator,
557
+ value: ch1,
558
+ lineNumber: lineNumber,
559
+ lineStart: lineStart,
560
+ range: [start, index]
561
+ };
562
+ }
563
+
564
+ if (ch1 === ',' || ch1 === '(' || ch1 === ')') {
565
+ ++index;
566
+ return {
567
+ type: Token.Punctuator,
568
+ value: ch1,
569
+ lineNumber: lineNumber,
570
+ lineStart: lineStart,
571
+ range: [start, index]
572
+ };
573
+ }
574
+
575
+ // Dot (.) can also start a floating-point number, hence the need
576
+ // to check the next character.
577
+
578
+ ch2 = source[index + 1];
579
+ if (ch1 === '.' && !isDecimalDigit(ch2)) {
580
+ return {
581
+ type: Token.Punctuator,
582
+ value: nextChar(),
583
+ lineNumber: lineNumber,
584
+ lineStart: lineStart,
585
+ range: [start, index]
586
+ };
587
+ }
588
+
589
+ // Peek more characters.
590
+
591
+ ch3 = source[index + 2];
592
+ ch4 = source[index + 3];
593
+
594
+ // 4-character punctuator: >>>=
595
+
596
+ if (ch1 === '>' && ch2 === '>' && ch3 === '>') {
597
+ if (ch4 === '=') {
598
+ index += 4;
599
+ return {
600
+ type: Token.Punctuator,
601
+ value: '>>>=',
602
+ lineNumber: lineNumber,
603
+ lineStart: lineStart,
604
+ range: [start, index]
605
+ };
606
+ }
607
+ }
608
+
609
+ // 3-character punctuators: === !== >>> <<= >>=
610
+
611
+ if (ch1 === '=' && ch2 === '=' && ch3 === '=') {
612
+ index += 3;
613
+ return {
614
+ type: Token.Punctuator,
615
+ value: '===',
616
+ lineNumber: lineNumber,
617
+ lineStart: lineStart,
618
+ range: [start, index]
619
+ };
620
+ }
621
+
622
+ if (ch1 === '!' && ch2 === '=' && ch3 === '=') {
623
+ index += 3;
624
+ return {
625
+ type: Token.Punctuator,
626
+ value: '!==',
627
+ lineNumber: lineNumber,
628
+ lineStart: lineStart,
629
+ range: [start, index]
630
+ };
631
+ }
632
+
633
+ if (ch1 === '>' && ch2 === '>' && ch3 === '>') {
634
+ index += 3;
635
+ return {
636
+ type: Token.Punctuator,
637
+ value: '>>>',
638
+ lineNumber: lineNumber,
639
+ lineStart: lineStart,
640
+ range: [start, index]
641
+ };
642
+ }
643
+
644
+ if (ch1 === '<' && ch2 === '<' && ch3 === '=') {
645
+ index += 3;
646
+ return {
647
+ type: Token.Punctuator,
648
+ value: '<<=',
649
+ lineNumber: lineNumber,
650
+ lineStart: lineStart,
651
+ range: [start, index]
652
+ };
653
+ }
654
+
655
+ if (ch1 === '>' && ch2 === '>' && ch3 === '=') {
656
+ index += 3;
657
+ return {
658
+ type: Token.Punctuator,
659
+ value: '>>=',
660
+ lineNumber: lineNumber,
661
+ lineStart: lineStart,
662
+ range: [start, index]
663
+ };
664
+ }
665
+
666
+ // 2-character punctuators: <= >= == != ++ -- << >> && ||
667
+ // += -= *= %= &= |= ^= /=
668
+
669
+ if (ch2 === '=') {
670
+ if ('<>=!+-*%&|^/'.indexOf(ch1) >= 0) {
671
+ index += 2;
672
+ return {
673
+ type: Token.Punctuator,
674
+ value: ch1 + ch2,
675
+ lineNumber: lineNumber,
676
+ lineStart: lineStart,
677
+ range: [start, index]
678
+ };
679
+ }
680
+ }
681
+
682
+ if (ch1 === ch2 && ('+-<>&|'.indexOf(ch1) >= 0)) {
683
+ if ('+-<>&|'.indexOf(ch2) >= 0) {
684
+ index += 2;
685
+ return {
686
+ type: Token.Punctuator,
687
+ value: ch1 + ch2,
688
+ lineNumber: lineNumber,
689
+ lineStart: lineStart,
690
+ range: [start, index]
691
+ };
692
+ }
693
+ }
694
+
695
+ // The remaining 1-character punctuators.
696
+
697
+ if ('[]<>+-*%&|^!~?:=/'.indexOf(ch1) >= 0) {
698
+ return {
699
+ type: Token.Punctuator,
700
+ value: nextChar(),
701
+ lineNumber: lineNumber,
702
+ lineStart: lineStart,
703
+ range: [start, index]
704
+ };
705
+ }
706
+ }
707
+
708
+ // 7.8.3 Numeric Literals
709
+
710
+ function scanNumericLiteral() {
711
+ var number, start, ch;
712
+
713
+ ch = source[index];
714
+ assert(isDecimalDigit(ch) || (ch === '.'),
715
+ 'Numeric literal must start with a decimal digit or a decimal point');
716
+
717
+ start = index;
718
+ number = '';
719
+ if (ch !== '.') {
720
+ number = nextChar();
721
+ ch = source[index];
722
+
723
+ // Hex number starts with '0x'.
724
+ // Octal number starts with '0'.
725
+ if (number === '0') {
726
+ if (ch === 'x' || ch === 'X') {
727
+ number += nextChar();
728
+ while (index < length) {
729
+ ch = source[index];
730
+ if (!isHexDigit(ch)) {
731
+ break;
732
+ }
733
+ number += nextChar();
734
+ }
735
+
736
+ if (number.length <= 2) {
737
+ // only 0x
738
+ throwError({}, Messages.UnexpectedToken, 'ILLEGAL');
739
+ }
740
+
741
+ if (index < length) {
742
+ ch = source[index];
743
+ if (isIdentifierStart(ch)) {
744
+ throwError({}, Messages.UnexpectedToken, 'ILLEGAL');
745
+ }
746
+ }
747
+ return {
748
+ type: Token.NumericLiteral,
749
+ value: parseInt(number, 16),
750
+ lineNumber: lineNumber,
751
+ lineStart: lineStart,
752
+ range: [start, index]
753
+ };
754
+ } else if (isOctalDigit(ch)) {
755
+ number += nextChar();
756
+ while (index < length) {
757
+ ch = source[index];
758
+ if (!isOctalDigit(ch)) {
759
+ break;
760
+ }
761
+ number += nextChar();
762
+ }
763
+
764
+ if (index < length) {
765
+ ch = source[index];
766
+ if (isIdentifierStart(ch) || isDecimalDigit(ch)) {
767
+ throwError({}, Messages.UnexpectedToken, 'ILLEGAL');
768
+ }
769
+ }
770
+ return {
771
+ type: Token.NumericLiteral,
772
+ value: parseInt(number, 8),
773
+ octal: true,
774
+ lineNumber: lineNumber,
775
+ lineStart: lineStart,
776
+ range: [start, index]
777
+ };
778
+ }
779
+
780
+ // decimal number starts with '0' such as '09' is illegal.
781
+ if (isDecimalDigit(ch)) {
782
+ throwError({}, Messages.UnexpectedToken, 'ILLEGAL');
783
+ }
784
+ }
785
+
786
+ while (index < length) {
787
+ ch = source[index];
788
+ if (!isDecimalDigit(ch)) {
789
+ break;
790
+ }
791
+ number += nextChar();
792
+ }
793
+ }
794
+
795
+ if (ch === '.') {
796
+ number += nextChar();
797
+ while (index < length) {
798
+ ch = source[index];
799
+ if (!isDecimalDigit(ch)) {
800
+ break;
801
+ }
802
+ number += nextChar();
803
+ }
804
+ }
805
+
806
+ if (ch === 'e' || ch === 'E') {
807
+ number += nextChar();
808
+
809
+ ch = source[index];
810
+ if (ch === '+' || ch === '-') {
811
+ number += nextChar();
812
+ }
813
+
814
+ ch = source[index];
815
+ if (isDecimalDigit(ch)) {
816
+ number += nextChar();
817
+ while (index < length) {
818
+ ch = source[index];
819
+ if (!isDecimalDigit(ch)) {
820
+ break;
821
+ }
822
+ number += nextChar();
823
+ }
824
+ } else {
825
+ ch = 'character ' + ch;
826
+ if (index >= length) {
827
+ ch = '<end>';
828
+ }
829
+ throwError({}, Messages.UnexpectedToken, 'ILLEGAL');
830
+ }
831
+ }
832
+
833
+ if (index < length) {
834
+ ch = source[index];
835
+ if (isIdentifierStart(ch)) {
836
+ throwError({}, Messages.UnexpectedToken, 'ILLEGAL');
837
+ }
838
+ }
839
+
840
+ return {
841
+ type: Token.NumericLiteral,
842
+ value: parseFloat(number),
843
+ lineNumber: lineNumber,
844
+ lineStart: lineStart,
845
+ range: [start, index]
846
+ };
847
+ }
848
+
849
+ // 7.8.4 String Literals
850
+
851
+ function scanStringLiteral() {
852
+ var str = '', quote, start, ch, code, unescaped, restore, octal = false;
853
+
854
+ quote = source[index];
855
+ assert((quote === '\'' || quote === '"'),
856
+ 'String literal must starts with a quote');
857
+
858
+ start = index;
859
+ ++index;
860
+
861
+ while (index < length) {
862
+ ch = nextChar();
863
+
864
+ if (ch === quote) {
865
+ quote = '';
866
+ break;
867
+ } else if (ch === '\\') {
868
+ ch = nextChar();
869
+ if (!isLineTerminator(ch)) {
870
+ switch (ch) {
871
+ case 'n':
872
+ str += '\n';
873
+ break;
874
+ case 'r':
875
+ str += '\r';
876
+ break;
877
+ case 't':
878
+ str += '\t';
879
+ break;
880
+ case 'u':
881
+ case 'x':
882
+ restore = index;
883
+ unescaped = scanHexEscape(ch);
884
+ if (unescaped) {
885
+ str += unescaped;
886
+ } else {
887
+ index = restore;
888
+ str += ch;
889
+ }
890
+ break;
891
+ case 'b':
892
+ str += '\b';
893
+ break;
894
+ case 'f':
895
+ str += '\f';
896
+ break;
897
+ case 'v':
898
+ str += '\v';
899
+ break;
900
+
901
+ default:
902
+ if (isOctalDigit(ch)) {
903
+ code = '01234567'.indexOf(ch);
904
+
905
+ // \0 is not octal escape sequence
906
+ if (code !== 0) {
907
+ octal = true;
908
+ }
909
+
910
+ if (index < length && isOctalDigit(source[index])) {
911
+ octal = true;
912
+ code = code * 8 + '01234567'.indexOf(nextChar());
913
+
914
+ // 3 digits are only allowed when string starts
915
+ // with 0, 1, 2, 3
916
+ if ('0123'.indexOf(ch) >= 0 &&
917
+ index < length &&
918
+ isOctalDigit(source[index])) {
919
+ code = code * 8 + '01234567'.indexOf(nextChar());
920
+ }
921
+ }
922
+ str += String.fromCharCode(code);
923
+ } else {
924
+ str += ch;
925
+ }
926
+ break;
927
+ }
928
+ } else {
929
+ ++lineNumber;
930
+ if (ch === '\r' && source[index] === '\n') {
931
+ ++index;
932
+ }
933
+ }
934
+ } else if (isLineTerminator(ch)) {
935
+ break;
936
+ } else {
937
+ str += ch;
938
+ }
939
+ }
940
+
941
+ if (quote !== '') {
942
+ throwError({}, Messages.UnexpectedToken, 'ILLEGAL');
943
+ }
944
+
945
+ return {
946
+ type: Token.StringLiteral,
947
+ value: str,
948
+ octal: octal,
949
+ lineNumber: lineNumber,
950
+ lineStart: lineStart,
951
+ range: [start, index]
952
+ };
953
+ }
954
+
955
+ function scanRegExp() {
956
+ var str = '', ch, start, pattern, flags, value, classMarker = false, restore;
957
+
958
+ buffer = null;
959
+ skipComment();
960
+
961
+ start = index;
962
+ ch = source[index];
963
+ assert(ch === '/', 'Regular expression literal must start with a slash');
964
+ str = nextChar();
965
+
966
+ while (index < length) {
967
+ ch = nextChar();
968
+ str += ch;
969
+ if (classMarker) {
970
+ if (ch === ']') {
971
+ classMarker = false;
972
+ }
973
+ } else {
974
+ if (ch === '\\') {
975
+ str += nextChar();
976
+ }
977
+ if (ch === '/') {
978
+ break;
979
+ }
980
+ if (ch === '[') {
981
+ classMarker = true;
982
+ }
983
+ if (isLineTerminator(ch)) {
984
+ throwError({}, Messages.UnterminatedRegExp);
985
+ }
986
+ }
987
+ }
988
+
989
+ if (str.length === 1) {
990
+ throwError({}, Messages.UnterminatedRegExp);
991
+ }
992
+
993
+ // Exclude leading and trailing slash.
994
+ pattern = str.substr(1, str.length - 2);
995
+
996
+ flags = '';
997
+ while (index < length) {
998
+ ch = source[index];
999
+ if (!isIdentifierPart(ch)) {
1000
+ break;
1001
+ }
1002
+
1003
+ ++index;
1004
+ if (ch === '\\' && index < length) {
1005
+ ch = source[index];
1006
+ if (ch === 'u') {
1007
+ ++index;
1008
+ restore = index;
1009
+ ch = scanHexEscape('u');
1010
+ if (ch) {
1011
+ flags += ch;
1012
+ str += '\\u';
1013
+ for (; restore < index; ++restore) {
1014
+ str += source[restore];
1015
+ }
1016
+ } else {
1017
+ index = restore;
1018
+ flags += 'u';
1019
+ str += '\\u';
1020
+ }
1021
+ } else {
1022
+ str += '\\';
1023
+ }
1024
+ } else {
1025
+ flags += ch;
1026
+ str += ch;
1027
+ }
1028
+ }
1029
+
1030
+ try {
1031
+ value = new RegExp(pattern, flags);
1032
+ } catch (e) {
1033
+ throwError({}, Messages.InvalidRegExp);
1034
+ }
1035
+
1036
+ return {
1037
+ literal: str,
1038
+ value: value,
1039
+ range: [start, index]
1040
+ };
1041
+ }
1042
+
1043
+ function isIdentifierName(token) {
1044
+ return token.type === Token.Identifier ||
1045
+ token.type === Token.Keyword ||
1046
+ token.type === Token.BooleanLiteral ||
1047
+ token.type === Token.NullLiteral;
1048
+ }
1049
+
1050
+ function advance() {
1051
+ var ch, token;
1052
+
1053
+ skipComment();
1054
+
1055
+ if (index >= length) {
1056
+ return {
1057
+ type: Token.EOF,
1058
+ lineNumber: lineNumber,
1059
+ lineStart: lineStart,
1060
+ range: [index, index]
1061
+ };
1062
+ }
1063
+
1064
+ token = scanPunctuator();
1065
+ if (typeof token !== 'undefined') {
1066
+ return token;
1067
+ }
1068
+
1069
+ ch = source[index];
1070
+
1071
+ if (ch === '\'' || ch === '"') {
1072
+ return scanStringLiteral();
1073
+ }
1074
+
1075
+ if (ch === '.' || isDecimalDigit(ch)) {
1076
+ return scanNumericLiteral();
1077
+ }
1078
+
1079
+ token = scanIdentifier();
1080
+ if (typeof token !== 'undefined') {
1081
+ return token;
1082
+ }
1083
+
1084
+ throwError({}, Messages.UnexpectedToken, 'ILLEGAL');
1085
+ }
1086
+
1087
+ function lex() {
1088
+ var token;
1089
+
1090
+ if (buffer) {
1091
+ index = buffer.range[1];
1092
+ lineNumber = buffer.lineNumber;
1093
+ lineStart = buffer.lineStart;
1094
+ token = buffer;
1095
+ buffer = null;
1096
+ return token;
1097
+ }
1098
+
1099
+ buffer = null;
1100
+ return advance();
1101
+ }
1102
+
1103
+ function lookahead() {
1104
+ var pos, line, start;
1105
+
1106
+ if (buffer !== null) {
1107
+ return buffer;
1108
+ }
1109
+
1110
+ pos = index;
1111
+ line = lineNumber;
1112
+ start = lineStart;
1113
+ buffer = advance();
1114
+ index = pos;
1115
+ lineNumber = line;
1116
+ lineStart = start;
1117
+
1118
+ return buffer;
1119
+ }
1120
+
1121
+ // Return true if there is a line terminator before the next token.
1122
+
1123
+ function peekLineTerminator() {
1124
+ var pos, line, start, found;
1125
+
1126
+ pos = index;
1127
+ line = lineNumber;
1128
+ start = lineStart;
1129
+ skipComment();
1130
+ found = lineNumber !== line;
1131
+ index = pos;
1132
+ lineNumber = line;
1133
+ lineStart = start;
1134
+
1135
+ return found;
1136
+ }
1137
+
1138
+ // Throw an exception
1139
+
1140
+ function throwError(token, messageFormat) {
1141
+ var error,
1142
+ args = Array.prototype.slice.call(arguments, 2),
1143
+ msg = messageFormat.replace(
1144
+ /%(\d)/g,
1145
+ function (whole, index) {
1146
+ return args[index] || '';
1147
+ }
1148
+ );
1149
+
1150
+ if (typeof token.lineNumber === 'number') {
1151
+ error = new Error('Line ' + token.lineNumber + ': ' + msg);
1152
+ error.index = token.range[0];
1153
+ error.lineNumber = token.lineNumber;
1154
+ error.column = token.range[0] - lineStart + 1;
1155
+ } else {
1156
+ error = new Error('Line ' + lineNumber + ': ' + msg);
1157
+ error.index = index;
1158
+ error.lineNumber = lineNumber;
1159
+ error.column = index - lineStart + 1;
1160
+ }
1161
+
1162
+ throw error;
1163
+ }
1164
+
1165
+ function throwErrorTolerant() {
1166
+ var error;
1167
+ try {
1168
+ throwError.apply(null, arguments);
1169
+ } catch (e) {
1170
+ if (extra.errors) {
1171
+ extra.errors.push(e);
1172
+ } else {
1173
+ throw e;
1174
+ }
1175
+ }
1176
+ }
1177
+
1178
+
1179
+ // Throw an exception because of the token.
1180
+
1181
+ function throwUnexpected(token) {
1182
+ var s;
1183
+
1184
+ if (token.type === Token.EOF) {
1185
+ throwError(token, Messages.UnexpectedEOS);
1186
+ }
1187
+
1188
+ if (token.type === Token.NumericLiteral) {
1189
+ throwError(token, Messages.UnexpectedNumber);
1190
+ }
1191
+
1192
+ if (token.type === Token.StringLiteral) {
1193
+ throwError(token, Messages.UnexpectedString);
1194
+ }
1195
+
1196
+ if (token.type === Token.Identifier) {
1197
+ throwError(token, Messages.UnexpectedIdentifier);
1198
+ }
1199
+
1200
+ if (token.type === Token.Keyword) {
1201
+ if (isFutureReservedWord(token.value)) {
1202
+ throwError(token, Messages.UnexpectedReserved);
1203
+ } else if (strict && isStrictModeReservedWord(token.value)) {
1204
+ throwError(token, Messages.StrictReservedWord);
1205
+ }
1206
+ throwError(token, Messages.UnexpectedToken, token.value);
1207
+ }
1208
+
1209
+ // BooleanLiteral, NullLiteral, or Punctuator.
1210
+ throwError(token, Messages.UnexpectedToken, token.value);
1211
+ }
1212
+
1213
+ // Expect the next token to match the specified punctuator.
1214
+ // If not, an exception will be thrown.
1215
+
1216
+ function expect(value) {
1217
+ var token = lex();
1218
+ if (token.type !== Token.Punctuator || token.value !== value) {
1219
+ throwUnexpected(token);
1220
+ }
1221
+ }
1222
+
1223
+ // Expect the next token to match the specified keyword.
1224
+ // If not, an exception will be thrown.
1225
+
1226
+ function expectKeyword(keyword) {
1227
+ var token = lex();
1228
+ if (token.type !== Token.Keyword || token.value !== keyword) {
1229
+ throwUnexpected(token);
1230
+ }
1231
+ }
1232
+
1233
+ // Return true if the next token matches the specified punctuator.
1234
+
1235
+ function match(value) {
1236
+ var token = lookahead();
1237
+ return token.type === Token.Punctuator && token.value === value;
1238
+ }
1239
+
1240
+ // Return true if the next token matches the specified keyword
1241
+
1242
+ function matchKeyword(keyword) {
1243
+ var token = lookahead();
1244
+ return token.type === Token.Keyword && token.value === keyword;
1245
+ }
1246
+
1247
+ // Return true if the next token is an assignment operator
1248
+
1249
+ function matchAssign() {
1250
+ var token = lookahead(),
1251
+ op = token.value;
1252
+
1253
+ if (token.type !== Token.Punctuator) {
1254
+ return false;
1255
+ }
1256
+ return op === '=' ||
1257
+ op === '*=' ||
1258
+ op === '/=' ||
1259
+ op === '%=' ||
1260
+ op === '+=' ||
1261
+ op === '-=' ||
1262
+ op === '<<=' ||
1263
+ op === '>>=' ||
1264
+ op === '>>>=' ||
1265
+ op === '&=' ||
1266
+ op === '^=' ||
1267
+ op === '|=';
1268
+ }
1269
+
1270
+ function consumeSemicolon() {
1271
+ var token, line;
1272
+
1273
+ // Catch the very common case first.
1274
+ if (source[index] === ';') {
1275
+ lex();
1276
+ return;
1277
+ }
1278
+
1279
+ line = lineNumber;
1280
+ skipComment();
1281
+ if (lineNumber !== line) {
1282
+ return;
1283
+ }
1284
+
1285
+ if (match(';')) {
1286
+ lex();
1287
+ return;
1288
+ }
1289
+
1290
+ token = lookahead();
1291
+ if (token.type !== Token.EOF && !match('}')) {
1292
+ throwUnexpected(token);
1293
+ }
1294
+ return;
1295
+ }
1296
+
1297
+ // Return true if provided expression is LeftHandSideExpression
1298
+
1299
+ function isLeftHandSide(expr) {
1300
+ switch (expr.type) {
1301
+ case 'AssignmentExpression':
1302
+ case 'BinaryExpression':
1303
+ case 'ConditionalExpression':
1304
+ case 'LogicalExpression':
1305
+ case 'SequenceExpression':
1306
+ case 'UnaryExpression':
1307
+ case 'UpdateExpression':
1308
+ return false;
1309
+ }
1310
+ return true;
1311
+ }
1312
+
1313
+ // 11.1.4 Array Initialiser
1314
+
1315
+ function parseArrayInitialiser() {
1316
+ var elements = [],
1317
+ undef;
1318
+
1319
+ expect('[');
1320
+
1321
+ while (!match(']')) {
1322
+ if (match(',')) {
1323
+ lex();
1324
+ elements.push(undef);
1325
+ } else {
1326
+ elements.push(parseAssignmentExpression());
1327
+
1328
+ if (!match(']')) {
1329
+ expect(',');
1330
+ }
1331
+ }
1332
+ }
1333
+
1334
+ expect(']');
1335
+
1336
+ return {
1337
+ type: Syntax.ArrayExpression,
1338
+ elements: elements
1339
+ };
1340
+ }
1341
+
1342
+ // 11.1.5 Object Initialiser
1343
+
1344
+ function parsePropertyFunction(param, first) {
1345
+ var previousStrict, body;
1346
+
1347
+ previousStrict = strict;
1348
+ body = parseFunctionSourceElements();
1349
+ if (first && strict && isRestrictedWord(param[0].name)) {
1350
+ throwError(first, Messages.StrictParamName);
1351
+ }
1352
+ strict = previousStrict;
1353
+
1354
+ return {
1355
+ type: Syntax.FunctionExpression,
1356
+ id: null,
1357
+ params: param,
1358
+ body: body
1359
+ };
1360
+ }
1361
+
1362
+ function parseObjectPropertyKey() {
1363
+ var token = lex(),
1364
+ key;
1365
+
1366
+ switch (token.type) {
1367
+
1368
+ case Token.StringLiteral:
1369
+ case Token.NumericLiteral:
1370
+ if (strict && token.octal) {
1371
+ throwError(token, Messages.StrictOctalLiteral);
1372
+ }
1373
+ key = createLiteral(token);
1374
+ break;
1375
+
1376
+ case Token.Identifier:
1377
+ case Token.Keyword:
1378
+ case Token.BooleanLiteral:
1379
+ case Token.NullLiteral:
1380
+ key = {
1381
+ type: Syntax.Identifier,
1382
+ name: token.value
1383
+ };
1384
+ break;
1385
+
1386
+ default:
1387
+ // Unreachable, since parseObjectProperty() will not call this
1388
+ // function with any other type of token.
1389
+ }
1390
+
1391
+ return key;
1392
+ }
1393
+
1394
+ function parseObjectProperty() {
1395
+ var token, property, key, id, param;
1396
+
1397
+ token = lookahead();
1398
+
1399
+ switch (token.type) {
1400
+
1401
+ case Token.Identifier:
1402
+ id = parseObjectPropertyKey();
1403
+
1404
+ // Property Assignment: Getter and Setter.
1405
+
1406
+ if (token.value === 'get' && !match(':')) {
1407
+ key = parseObjectPropertyKey();
1408
+ expect('(');
1409
+ expect(')');
1410
+ property = {
1411
+ type: Syntax.Property,
1412
+ key: key,
1413
+ value: parsePropertyFunction([]),
1414
+ kind: 'get'
1415
+ };
1416
+ } else if (token.value === 'set' && !match(':')) {
1417
+ key = parseObjectPropertyKey();
1418
+ expect('(');
1419
+ token = lookahead();
1420
+ if (token.type !== Token.Identifier) {
1421
+ throwUnexpected(lex());
1422
+ }
1423
+ param = [ parseVariableIdentifier() ];
1424
+ expect(')');
1425
+ property = {
1426
+ type: Syntax.Property,
1427
+ key: key,
1428
+ value: parsePropertyFunction(param, token),
1429
+ kind: 'set'
1430
+ };
1431
+ } else {
1432
+ expect(':');
1433
+ property = {
1434
+ type: Syntax.Property,
1435
+ key: id,
1436
+ value: parseAssignmentExpression(),
1437
+ kind: 'init'
1438
+ };
1439
+ }
1440
+ break;
1441
+
1442
+ case Token.Keyword:
1443
+ case Token.BooleanLiteral:
1444
+ case Token.NullLiteral:
1445
+ case Token.StringLiteral:
1446
+ case Token.NumericLiteral:
1447
+ key = parseObjectPropertyKey();
1448
+ expect(':');
1449
+ property = {
1450
+ type: Syntax.Property,
1451
+ key: key,
1452
+ value: parseAssignmentExpression(),
1453
+ kind: 'init'
1454
+ };
1455
+ break;
1456
+
1457
+ default:
1458
+ throwUnexpected(token);
1459
+ }
1460
+
1461
+ return property;
1462
+ }
1463
+
1464
+ function parseObjectInitialiser() {
1465
+ var token, properties = [], property, name, kind, map = {}, toString = String;
1466
+
1467
+ expect('{');
1468
+
1469
+ while (!match('}')) {
1470
+ property = parseObjectProperty();
1471
+
1472
+ if (property.key.type === Syntax.Identifier) {
1473
+ name = property.key.name;
1474
+ } else {
1475
+ name = toString(property.key.value);
1476
+ }
1477
+ kind = (property.kind === 'init') ? PropertyKind.Data : (property.kind === 'get') ? PropertyKind.Get : PropertyKind.Set;
1478
+ if (Object.prototype.hasOwnProperty.call(map, name)) {
1479
+ if (map[name] === PropertyKind.Data) {
1480
+ if (strict && kind === PropertyKind.Data) {
1481
+ throwError({}, Messages.StrictDuplicateProperty);
1482
+ } else if (kind !== PropertyKind.Data) {
1483
+ throwError({}, Messages.AccessorDataProperty);
1484
+ }
1485
+ } else {
1486
+ if (kind === PropertyKind.Data) {
1487
+ throwError({}, Messages.AccessorDataProperty);
1488
+ } else if (map[name] & kind) {
1489
+ throwError({}, Messages.AccessorGetSet);
1490
+ }
1491
+ }
1492
+ map[name] |= kind;
1493
+ } else {
1494
+ map[name] = kind;
1495
+ }
1496
+
1497
+ properties.push(property);
1498
+
1499
+ if (!match('}')) {
1500
+ expect(',');
1501
+ }
1502
+ }
1503
+
1504
+ expect('}');
1505
+
1506
+ return {
1507
+ type: Syntax.ObjectExpression,
1508
+ properties: properties
1509
+ };
1510
+ }
1511
+
1512
+ // 11.1 Primary Expressions
1513
+
1514
+ function parsePrimaryExpression() {
1515
+ var expr,
1516
+ token = lookahead(),
1517
+ type = token.type;
1518
+
1519
+ if (type === Token.Identifier) {
1520
+ return {
1521
+ type: Syntax.Identifier,
1522
+ name: lex().value
1523
+ };
1524
+ }
1525
+
1526
+ if (type === Token.StringLiteral || type === Token.NumericLiteral) {
1527
+ if (strict && token.octal) {
1528
+ throwError(token, Messages.StrictOctalLiteral);
1529
+ }
1530
+ return createLiteral(lex());
1531
+ }
1532
+
1533
+ if (type === Token.Keyword) {
1534
+ if (matchKeyword('this')) {
1535
+ lex();
1536
+ return {
1537
+ type: Syntax.ThisExpression
1538
+ };
1539
+ }
1540
+
1541
+ if (matchKeyword('function')) {
1542
+ return parseFunctionExpression();
1543
+ }
1544
+ }
1545
+
1546
+ if (type === Token.BooleanLiteral) {
1547
+ lex();
1548
+ token.value = (token.value === 'true');
1549
+ return createLiteral(token);
1550
+ }
1551
+
1552
+ if (type === Token.NullLiteral) {
1553
+ lex();
1554
+ token.value = null;
1555
+ return createLiteral(token);
1556
+ }
1557
+
1558
+ if (match('[')) {
1559
+ return parseArrayInitialiser();
1560
+ }
1561
+
1562
+ if (match('{')) {
1563
+ return parseObjectInitialiser();
1564
+ }
1565
+
1566
+ if (match('(')) {
1567
+ lex();
1568
+ lastParenthesized = expr = parseExpression();
1569
+ expect(')');
1570
+ return expr;
1571
+ }
1572
+
1573
+ if (match('/') || match('/=')) {
1574
+ return createLiteral(scanRegExp());
1575
+ }
1576
+
1577
+ return throwUnexpected(lex());
1578
+ }
1579
+
1580
+ // 11.2 Left-Hand-Side Expressions
1581
+
1582
+ function parseArguments() {
1583
+ var args = [];
1584
+
1585
+ expect('(');
1586
+
1587
+ if (!match(')')) {
1588
+ while (index < length) {
1589
+ args.push(parseAssignmentExpression());
1590
+ if (match(')')) {
1591
+ break;
1592
+ }
1593
+ expect(',');
1594
+ }
1595
+ }
1596
+
1597
+ expect(')');
1598
+
1599
+ return args;
1600
+ }
1601
+
1602
+ function parseNonComputedProperty() {
1603
+ var token = lex();
1604
+
1605
+ if (!isIdentifierName(token)) {
1606
+ throwUnexpected(token);
1607
+ }
1608
+
1609
+ return {
1610
+ type: Syntax.Identifier,
1611
+ name: token.value
1612
+ };
1613
+ }
1614
+
1615
+ function parseNonComputedMember(object) {
1616
+ return {
1617
+ type: Syntax.MemberExpression,
1618
+ computed: false,
1619
+ object: object,
1620
+ property: parseNonComputedProperty()
1621
+ };
1622
+ }
1623
+
1624
+ function parseComputedMember(object) {
1625
+ var property, expr;
1626
+
1627
+ expect('[');
1628
+ property = parseExpression();
1629
+ expr = {
1630
+ type: Syntax.MemberExpression,
1631
+ computed: true,
1632
+ object: object,
1633
+ property: property
1634
+ };
1635
+ expect(']');
1636
+ return expr;
1637
+ }
1638
+
1639
+ function parseCallMember(object) {
1640
+ return {
1641
+ type: Syntax.CallExpression,
1642
+ callee: object,
1643
+ 'arguments': parseArguments()
1644
+ };
1645
+ }
1646
+
1647
+ function parseNewExpression() {
1648
+ var expr;
1649
+
1650
+ expectKeyword('new');
1651
+
1652
+ expr = {
1653
+ type: Syntax.NewExpression,
1654
+ callee: parseLeftHandSideExpression(),
1655
+ 'arguments': []
1656
+ };
1657
+
1658
+ if (match('(')) {
1659
+ expr['arguments'] = parseArguments();
1660
+ }
1661
+
1662
+ return expr;
1663
+ }
1664
+
1665
+ function parseLeftHandSideExpressionAllowCall() {
1666
+ var useNew, expr;
1667
+
1668
+ useNew = matchKeyword('new');
1669
+ expr = useNew ? parseNewExpression() : parsePrimaryExpression();
1670
+
1671
+ while (index < length) {
1672
+ if (match('.')) {
1673
+ lex();
1674
+ expr = parseNonComputedMember(expr);
1675
+ } else if (match('[')) {
1676
+ expr = parseComputedMember(expr);
1677
+ } else if (match('(')) {
1678
+ expr = parseCallMember(expr);
1679
+ } else {
1680
+ break;
1681
+ }
1682
+ }
1683
+
1684
+ return expr;
1685
+ }
1686
+
1687
+ function parseLeftHandSideExpression() {
1688
+ var useNew, expr;
1689
+
1690
+ useNew = matchKeyword('new');
1691
+ expr = useNew ? parseNewExpression() : parsePrimaryExpression();
1692
+
1693
+ while (index < length) {
1694
+ if (match('.')) {
1695
+ lex();
1696
+ expr = parseNonComputedMember(expr);
1697
+ } else if (match('[')) {
1698
+ expr = parseComputedMember(expr);
1699
+ } else {
1700
+ break;
1701
+ }
1702
+ }
1703
+
1704
+ return expr;
1705
+ }
1706
+
1707
+ // 11.3 Postfix Expressions
1708
+
1709
+ function parsePostfixExpression() {
1710
+ var expr = parseLeftHandSideExpressionAllowCall();
1711
+
1712
+ if ((match('++') || match('--')) && !peekLineTerminator()) {
1713
+ // 11.3.1, 11.3.2
1714
+ if (strict && expr.type === Syntax.Identifier && isRestrictedWord(expr.name)) {
1715
+ throwError({}, Messages.StrictLHSPostfix);
1716
+ }
1717
+ expr = {
1718
+ type: Syntax.UpdateExpression,
1719
+ operator: lex().value,
1720
+ argument: expr,
1721
+ prefix: false
1722
+ };
1723
+ }
1724
+
1725
+ return expr;
1726
+ }
1727
+
1728
+ // 11.4 Unary Operators
1729
+
1730
+ function parseUnaryExpression() {
1731
+ var token, expr;
1732
+
1733
+ if (match('++') || match('--')) {
1734
+ token = lex();
1735
+ expr = parseUnaryExpression();
1736
+ // 11.4.4, 11.4.5
1737
+ if (strict && expr.type === Syntax.Identifier && isRestrictedWord(expr.name)) {
1738
+ throwError({}, Messages.StrictLHSPrefix);
1739
+ }
1740
+ expr = {
1741
+ type: Syntax.UpdateExpression,
1742
+ operator: token.value,
1743
+ argument: expr,
1744
+ prefix: true
1745
+ };
1746
+ return expr;
1747
+ }
1748
+
1749
+ if (match('+') || match('-') || match('~') || match('!')) {
1750
+ expr = {
1751
+ type: Syntax.UnaryExpression,
1752
+ operator: lex().value,
1753
+ argument: parseUnaryExpression()
1754
+ };
1755
+ return expr;
1756
+ }
1757
+
1758
+ if (matchKeyword('delete') || matchKeyword('void') || matchKeyword('typeof')) {
1759
+ expr = {
1760
+ type: Syntax.UnaryExpression,
1761
+ operator: lex().value,
1762
+ argument: parseUnaryExpression()
1763
+ };
1764
+ if (strict && expr.operator === 'delete' && expr.argument.type === Syntax.Identifier) {
1765
+ throwError({}, Messages.StrictDelete);
1766
+ }
1767
+ return expr;
1768
+ }
1769
+
1770
+ return parsePostfixExpression();
1771
+ }
1772
+
1773
+ // 11.5 Multiplicative Operators
1774
+
1775
+ function parseMultiplicativeExpression() {
1776
+ var expr = parseUnaryExpression();
1777
+
1778
+ while (match('*') || match('/') || match('%')) {
1779
+ expr = {
1780
+ type: Syntax.BinaryExpression,
1781
+ operator: lex().value,
1782
+ left: expr,
1783
+ right: parseUnaryExpression()
1784
+ };
1785
+ }
1786
+
1787
+ return expr;
1788
+ }
1789
+
1790
+ // 11.6 Additive Operators
1791
+
1792
+ function parseAdditiveExpression() {
1793
+ var expr = parseMultiplicativeExpression();
1794
+
1795
+ while (match('+') || match('-')) {
1796
+ expr = {
1797
+ type: Syntax.BinaryExpression,
1798
+ operator: lex().value,
1799
+ left: expr,
1800
+ right: parseMultiplicativeExpression()
1801
+ };
1802
+ }
1803
+
1804
+ return expr;
1805
+ }
1806
+
1807
+ // 11.7 Bitwise Shift Operators
1808
+
1809
+ function parseShiftExpression() {
1810
+ var expr = parseAdditiveExpression();
1811
+
1812
+ while (match('<<') || match('>>') || match('>>>')) {
1813
+ expr = {
1814
+ type: Syntax.BinaryExpression,
1815
+ operator: lex().value,
1816
+ left: expr,
1817
+ right: parseAdditiveExpression()
1818
+ };
1819
+ }
1820
+
1821
+ return expr;
1822
+ }
1823
+ // 11.8 Relational Operators
1824
+
1825
+ function parseRelationalExpression() {
1826
+ var expr, previousAllowIn;
1827
+
1828
+ previousAllowIn = allowIn;
1829
+ allowIn = true;
1830
+ expr = parseShiftExpression();
1831
+ allowIn = previousAllowIn;
1832
+
1833
+ if (match('<') || match('>') || match('<=') || match('>=')) {
1834
+ expr = {
1835
+ type: Syntax.BinaryExpression,
1836
+ operator: lex().value,
1837
+ left: expr,
1838
+ right: parseRelationalExpression()
1839
+ };
1840
+ } else if (allowIn && matchKeyword('in')) {
1841
+ lex();
1842
+ expr = {
1843
+ type: Syntax.BinaryExpression,
1844
+ operator: 'in',
1845
+ left: expr,
1846
+ right: parseRelationalExpression()
1847
+ };
1848
+ } else if (matchKeyword('instanceof')) {
1849
+ lex();
1850
+ expr = {
1851
+ type: Syntax.BinaryExpression,
1852
+ operator: 'instanceof',
1853
+ left: expr,
1854
+ right: parseRelationalExpression()
1855
+ };
1856
+ }
1857
+
1858
+ return expr;
1859
+ }
1860
+
1861
+ // 11.9 Equality Operators
1862
+
1863
+ function parseEqualityExpression() {
1864
+ var expr = parseRelationalExpression();
1865
+
1866
+ while (match('==') || match('!=') || match('===') || match('!==')) {
1867
+ expr = {
1868
+ type: Syntax.BinaryExpression,
1869
+ operator: lex().value,
1870
+ left: expr,
1871
+ right: parseRelationalExpression()
1872
+ };
1873
+ }
1874
+
1875
+ return expr;
1876
+ }
1877
+
1878
+ // 11.10 Binary Bitwise Operators
1879
+
1880
+ function parseBitwiseANDExpression() {
1881
+ var expr = parseEqualityExpression();
1882
+
1883
+ while (match('&')) {
1884
+ lex();
1885
+ expr = {
1886
+ type: Syntax.BinaryExpression,
1887
+ operator: '&',
1888
+ left: expr,
1889
+ right: parseEqualityExpression()
1890
+ };
1891
+ }
1892
+
1893
+ return expr;
1894
+ }
1895
+
1896
+ function parseBitwiseORExpression() {
1897
+ var expr = parseBitwiseANDExpression();
1898
+
1899
+ while (match('|')) {
1900
+ lex();
1901
+ expr = {
1902
+ type: Syntax.BinaryExpression,
1903
+ operator: '|',
1904
+ left: expr,
1905
+ right: parseBitwiseANDExpression()
1906
+ };
1907
+ }
1908
+
1909
+ return expr;
1910
+ }
1911
+
1912
+ function parseBitwiseXORExpression() {
1913
+ var expr = parseBitwiseORExpression();
1914
+
1915
+ while (match('^')) {
1916
+ lex();
1917
+ expr = {
1918
+ type: Syntax.BinaryExpression,
1919
+ operator: '^',
1920
+ left: expr,
1921
+ right: parseBitwiseORExpression()
1922
+ };
1923
+ }
1924
+
1925
+ return expr;
1926
+ }
1927
+
1928
+ // 11.11 Binary Logical Operators
1929
+
1930
+ function parseLogicalANDExpression() {
1931
+ var expr = parseBitwiseXORExpression();
1932
+
1933
+ while (match('&&')) {
1934
+ lex();
1935
+ expr = {
1936
+ type: Syntax.LogicalExpression,
1937
+ operator: '&&',
1938
+ left: expr,
1939
+ right: parseBitwiseXORExpression()
1940
+ };
1941
+ }
1942
+
1943
+ return expr;
1944
+ }
1945
+
1946
+ function parseLogicalORExpression() {
1947
+ var expr = parseLogicalANDExpression();
1948
+
1949
+ while (match('||')) {
1950
+ lex();
1951
+ expr = {
1952
+ type: Syntax.LogicalExpression,
1953
+ operator: '||',
1954
+ left: expr,
1955
+ right: parseLogicalANDExpression()
1956
+ };
1957
+ }
1958
+
1959
+ return expr;
1960
+ }
1961
+
1962
+ // 11.12 Conditional Operator
1963
+
1964
+ function parseConditionalExpression() {
1965
+ var expr, previousAllowIn, consequent;
1966
+
1967
+ expr = parseLogicalORExpression();
1968
+
1969
+ if (match('?')) {
1970
+ lex();
1971
+ previousAllowIn = allowIn;
1972
+ allowIn = true;
1973
+ consequent = parseAssignmentExpression();
1974
+ allowIn = previousAllowIn;
1975
+ expect(':');
1976
+
1977
+ expr = {
1978
+ type: Syntax.ConditionalExpression,
1979
+ test: expr,
1980
+ consequent: consequent,
1981
+ alternate: parseAssignmentExpression()
1982
+ };
1983
+ }
1984
+
1985
+ return expr;
1986
+ }
1987
+
1988
+ // 11.13 Assignment Operators
1989
+
1990
+ function parseAssignmentExpression() {
1991
+ var expr;
1992
+
1993
+ expr = parseConditionalExpression();
1994
+
1995
+ if (matchAssign()) {
1996
+ // LeftHandSideExpression
1997
+ if (lastParenthesized !== expr && !isLeftHandSide(expr)) {
1998
+ throwError({}, Messages.InvalidLHSInAssignment);
1999
+ }
2000
+
2001
+ // 11.13.1
2002
+ if (strict && expr.type === Syntax.Identifier && isRestrictedWord(expr.name)) {
2003
+ throwError({}, Messages.StrictLHSAssignment);
2004
+ }
2005
+
2006
+ expr = {
2007
+ type: Syntax.AssignmentExpression,
2008
+ operator: lex().value,
2009
+ left: expr,
2010
+ right: parseAssignmentExpression()
2011
+ };
2012
+ }
2013
+
2014
+ return expr;
2015
+ }
2016
+
2017
+ // 11.14 Comma Operator
2018
+
2019
+ function parseExpression() {
2020
+ var expr = parseAssignmentExpression();
2021
+
2022
+ if (match(',')) {
2023
+ expr = {
2024
+ type: Syntax.SequenceExpression,
2025
+ expressions: [ expr ]
2026
+ };
2027
+
2028
+ while (index < length) {
2029
+ if (!match(',')) {
2030
+ break;
2031
+ }
2032
+ lex();
2033
+ expr.expressions.push(parseAssignmentExpression());
2034
+ }
2035
+
2036
+ }
2037
+ return expr;
2038
+ }
2039
+
2040
+ // 12.1 Block
2041
+
2042
+ function parseStatementList() {
2043
+ var list = [],
2044
+ statement;
2045
+
2046
+ while (index < length) {
2047
+ if (match('}')) {
2048
+ break;
2049
+ }
2050
+ statement = parseSourceElement();
2051
+ if (typeof statement === 'undefined') {
2052
+ break;
2053
+ }
2054
+ list.push(statement);
2055
+ }
2056
+
2057
+ return list;
2058
+ }
2059
+
2060
+ function parseBlock() {
2061
+ var block;
2062
+
2063
+ expect('{');
2064
+
2065
+ block = parseStatementList();
2066
+
2067
+ expect('}');
2068
+
2069
+ return {
2070
+ type: Syntax.BlockStatement,
2071
+ body: block
2072
+ };
2073
+ }
2074
+
2075
+ // 12.2 Variable Statement
2076
+
2077
+ function parseVariableIdentifier() {
2078
+ var token = lex();
2079
+
2080
+ if (token.type !== Token.Identifier) {
2081
+ throwUnexpected(token);
2082
+ }
2083
+
2084
+ return {
2085
+ type: Syntax.Identifier,
2086
+ name: token.value
2087
+ };
2088
+ }
2089
+
2090
+ function parseVariableDeclaration(kind) {
2091
+ var id = parseVariableIdentifier(),
2092
+ init = null;
2093
+
2094
+ // 12.2.1
2095
+ if (strict && isRestrictedWord(id.name)) {
2096
+ throwError({}, Messages.StrictVarName);
2097
+ }
2098
+
2099
+ if (kind === 'const') {
2100
+ expect('=');
2101
+ init = parseAssignmentExpression();
2102
+ } else if (match('=')) {
2103
+ lex();
2104
+ init = parseAssignmentExpression();
2105
+ }
2106
+
2107
+ return {
2108
+ type: Syntax.VariableDeclarator,
2109
+ id: id,
2110
+ init: init
2111
+ };
2112
+ }
2113
+
2114
+ function parseVariableDeclarationList(kind) {
2115
+ var list = [];
2116
+
2117
+ while (index < length) {
2118
+ list.push(parseVariableDeclaration(kind));
2119
+ if (!match(',')) {
2120
+ break;
2121
+ }
2122
+ lex();
2123
+ }
2124
+
2125
+ return list;
2126
+ }
2127
+
2128
+ function parseVariableStatement() {
2129
+ var declarations;
2130
+
2131
+ expectKeyword('var');
2132
+
2133
+ declarations = parseVariableDeclarationList();
2134
+
2135
+ consumeSemicolon();
2136
+
2137
+ return {
2138
+ type: Syntax.VariableDeclaration,
2139
+ declarations: declarations,
2140
+ kind: 'var'
2141
+ };
2142
+ }
2143
+
2144
+ // kind may be `const` or `let`
2145
+ // Both are experimental and not in the specification yet.
2146
+ // see http://wiki.ecmascript.org/doku.php?id=harmony:const
2147
+ // and http://wiki.ecmascript.org/doku.php?id=harmony:let
2148
+ function parseConstLetDeclaration(kind) {
2149
+ var declarations;
2150
+
2151
+ expectKeyword(kind);
2152
+
2153
+ declarations = parseVariableDeclarationList(kind);
2154
+
2155
+ consumeSemicolon();
2156
+
2157
+ return {
2158
+ type: Syntax.VariableDeclaration,
2159
+ declarations: declarations,
2160
+ kind: kind
2161
+ };
2162
+ }
2163
+
2164
+ // 12.3 Empty Statement
2165
+
2166
+ function parseEmptyStatement() {
2167
+ expect(';');
2168
+
2169
+ return {
2170
+ type: Syntax.EmptyStatement
2171
+ };
2172
+ }
2173
+
2174
+ // 12.4 Expression Statement
2175
+
2176
+ function parseExpressionStatement() {
2177
+ var expr = parseExpression();
2178
+
2179
+ consumeSemicolon();
2180
+
2181
+ return {
2182
+ type: Syntax.ExpressionStatement,
2183
+ expression: expr
2184
+ };
2185
+ }
2186
+
2187
+ // 12.5 If statement
2188
+
2189
+ function parseIfStatement() {
2190
+ var test, consequent, alternate;
2191
+
2192
+ expectKeyword('if');
2193
+
2194
+ expect('(');
2195
+
2196
+ test = parseExpression();
2197
+
2198
+ expect(')');
2199
+
2200
+ consequent = parseStatement();
2201
+
2202
+ if (matchKeyword('else')) {
2203
+ lex();
2204
+ alternate = parseStatement();
2205
+ } else {
2206
+ alternate = null;
2207
+ }
2208
+
2209
+ return {
2210
+ type: Syntax.IfStatement,
2211
+ test: test,
2212
+ consequent: consequent,
2213
+ alternate: alternate
2214
+ };
2215
+ }
2216
+
2217
+ // 12.6 Iteration Statements
2218
+
2219
+ function parseDoWhileStatement() {
2220
+ var body, test, oldInIteration;
2221
+
2222
+ expectKeyword('do');
2223
+
2224
+ oldInIteration = inIteration;
2225
+ inIteration = true;
2226
+
2227
+ body = parseStatement();
2228
+
2229
+ inIteration = oldInIteration;
2230
+
2231
+ expectKeyword('while');
2232
+
2233
+ expect('(');
2234
+
2235
+ test = parseExpression();
2236
+
2237
+ expect(')');
2238
+
2239
+ if (match(';')) {
2240
+ lex();
2241
+ }
2242
+
2243
+ return {
2244
+ type: Syntax.DoWhileStatement,
2245
+ body: body,
2246
+ test: test
2247
+ };
2248
+ }
2249
+
2250
+ function parseWhileStatement() {
2251
+ var test, body, oldInIteration;
2252
+
2253
+ expectKeyword('while');
2254
+
2255
+ expect('(');
2256
+
2257
+ test = parseExpression();
2258
+
2259
+ expect(')');
2260
+
2261
+ oldInIteration = inIteration;
2262
+ inIteration = true;
2263
+
2264
+ body = parseStatement();
2265
+
2266
+ inIteration = oldInIteration;
2267
+
2268
+ return {
2269
+ type: Syntax.WhileStatement,
2270
+ test: test,
2271
+ body: body
2272
+ };
2273
+ }
2274
+
2275
+ function parseForVariableDeclaration() {
2276
+ var token = lex();
2277
+
2278
+ return {
2279
+ type: Syntax.VariableDeclaration,
2280
+ declarations: parseVariableDeclarationList(),
2281
+ kind: token.value
2282
+ };
2283
+ }
2284
+
2285
+ function parseForStatement() {
2286
+ var init, test, update, left, right, body, oldInIteration;
2287
+
2288
+ init = test = update = null;
2289
+
2290
+ expectKeyword('for');
2291
+
2292
+ expect('(');
2293
+
2294
+ if (match(';')) {
2295
+ lex();
2296
+ } else {
2297
+ if (matchKeyword('var') || matchKeyword('let')) {
2298
+ allowIn = false;
2299
+ init = parseForVariableDeclaration();
2300
+ allowIn = true;
2301
+
2302
+ if (init.declarations.length === 1 && matchKeyword('in')) {
2303
+ lex();
2304
+ left = init;
2305
+ right = parseExpression();
2306
+ init = null;
2307
+ }
2308
+ } else {
2309
+ allowIn = false;
2310
+ init = parseExpression();
2311
+ allowIn = true;
2312
+
2313
+ if (matchKeyword('in')) {
2314
+ // LeftHandSideExpression
2315
+ if (matchKeyword('in') && (lastParenthesized !== init && !isLeftHandSide(init))) {
2316
+ throwError({}, Messages.InvalidLHSInForIn);
2317
+ }
2318
+ lex();
2319
+ left = init;
2320
+ right = parseExpression();
2321
+ init = null;
2322
+ }
2323
+ }
2324
+
2325
+ if (typeof left === 'undefined') {
2326
+ expect(';');
2327
+ }
2328
+ }
2329
+
2330
+ if (typeof left === 'undefined') {
2331
+
2332
+ if (!match(';')) {
2333
+ test = parseExpression();
2334
+ }
2335
+ expect(';');
2336
+
2337
+ if (!match(')')) {
2338
+ update = parseExpression();
2339
+ }
2340
+ }
2341
+
2342
+ expect(')');
2343
+
2344
+ oldInIteration = inIteration;
2345
+ inIteration = true;
2346
+
2347
+ body = parseStatement();
2348
+
2349
+ inIteration = oldInIteration;
2350
+
2351
+ if (typeof left === 'undefined') {
2352
+ return {
2353
+ type: Syntax.ForStatement,
2354
+ init: init,
2355
+ test: test,
2356
+ update: update,
2357
+ body: body
2358
+ };
2359
+ }
2360
+
2361
+ return {
2362
+ type: Syntax.ForInStatement,
2363
+ left: left,
2364
+ right: right,
2365
+ body: body,
2366
+ each: false
2367
+ };
2368
+ }
2369
+
2370
+ // 12.7 The continue statement
2371
+
2372
+ function parseContinueStatement() {
2373
+ var token, label = null;
2374
+
2375
+ expectKeyword('continue');
2376
+
2377
+ // Optimize the most common form: 'continue;'.
2378
+ if (source[index] === ';') {
2379
+ lex();
2380
+
2381
+ if (!inIteration) {
2382
+ throwError({}, Messages.IllegalContinue);
2383
+ }
2384
+
2385
+ return {
2386
+ type: Syntax.ContinueStatement,
2387
+ label: null
2388
+ };
2389
+ }
2390
+
2391
+ if (peekLineTerminator()) {
2392
+ if (!inIteration) {
2393
+ throwError({}, Messages.IllegalContinue);
2394
+ }
2395
+
2396
+ return {
2397
+ type: Syntax.ContinueStatement,
2398
+ label: null
2399
+ };
2400
+ }
2401
+
2402
+ token = lookahead();
2403
+ if (token.type === Token.Identifier) {
2404
+ label = parseVariableIdentifier();
2405
+
2406
+ if (!Object.prototype.hasOwnProperty.call(labelSet, label.name)) {
2407
+ throwError({}, Messages.UnknownLabel, label.name);
2408
+ }
2409
+ }
2410
+
2411
+ consumeSemicolon();
2412
+
2413
+ if (label === null && !inIteration) {
2414
+ throwError({}, Messages.IllegalContinue);
2415
+ }
2416
+
2417
+ return {
2418
+ type: Syntax.ContinueStatement,
2419
+ label: label
2420
+ };
2421
+ }
2422
+
2423
+ // 12.8 The break statement
2424
+
2425
+ function parseBreakStatement() {
2426
+ var token, label = null;
2427
+
2428
+ expectKeyword('break');
2429
+
2430
+ // Optimize the most common form: 'break;'.
2431
+ if (source[index] === ';') {
2432
+ lex();
2433
+
2434
+ if (!(inIteration || inSwitch)) {
2435
+ throwError({}, Messages.IllegalBreak);
2436
+ }
2437
+
2438
+ return {
2439
+ type: Syntax.BreakStatement,
2440
+ label: null
2441
+ };
2442
+ }
2443
+
2444
+ if (peekLineTerminator()) {
2445
+ if (!(inIteration || inSwitch)) {
2446
+ throwError({}, Messages.IllegalBreak);
2447
+ }
2448
+
2449
+ return {
2450
+ type: Syntax.BreakStatement,
2451
+ label: null
2452
+ };
2453
+ }
2454
+
2455
+ token = lookahead();
2456
+ if (token.type === Token.Identifier) {
2457
+ label = parseVariableIdentifier();
2458
+
2459
+ if (!Object.prototype.hasOwnProperty.call(labelSet, label.name)) {
2460
+ throwError({}, Messages.UnknownLabel, label.name);
2461
+ }
2462
+ }
2463
+
2464
+ consumeSemicolon();
2465
+
2466
+ if (label === null && !(inIteration || inSwitch)) {
2467
+ throwError({}, Messages.IllegalBreak);
2468
+ }
2469
+
2470
+ return {
2471
+ type: Syntax.BreakStatement,
2472
+ label: label
2473
+ };
2474
+ }
2475
+
2476
+ // 12.9 The return statement
2477
+
2478
+ function parseReturnStatement() {
2479
+ var token, argument = null;
2480
+
2481
+ expectKeyword('return');
2482
+
2483
+ if (!inFunctionBody) {
2484
+ throwErrorTolerant({}, Messages.IllegalReturn);
2485
+ }
2486
+
2487
+ // 'return' followed by a space and an identifier is very common.
2488
+ if (source[index] === ' ') {
2489
+ if (isIdentifierStart(source[index + 1])) {
2490
+ argument = parseExpression();
2491
+ consumeSemicolon();
2492
+ return {
2493
+ type: Syntax.ReturnStatement,
2494
+ argument: argument
2495
+ };
2496
+ }
2497
+ }
2498
+
2499
+ if (peekLineTerminator()) {
2500
+ return {
2501
+ type: Syntax.ReturnStatement,
2502
+ argument: null
2503
+ };
2504
+ }
2505
+
2506
+ if (!match(';')) {
2507
+ token = lookahead();
2508
+ if (!match('}') && token.type !== Token.EOF) {
2509
+ argument = parseExpression();
2510
+ }
2511
+ }
2512
+
2513
+ consumeSemicolon();
2514
+
2515
+ return {
2516
+ type: Syntax.ReturnStatement,
2517
+ argument: argument
2518
+ };
2519
+ }
2520
+
2521
+ // 12.10 The with statement
2522
+
2523
+ function parseWithStatement() {
2524
+ var object, body;
2525
+
2526
+ if (strict) {
2527
+ throwErrorTolerant({}, Messages.StrictModeWith);
2528
+ }
2529
+
2530
+ expectKeyword('with');
2531
+
2532
+ expect('(');
2533
+
2534
+ object = parseExpression();
2535
+
2536
+ expect(')');
2537
+
2538
+ body = parseStatement();
2539
+
2540
+ return {
2541
+ type: Syntax.WithStatement,
2542
+ object: object,
2543
+ body: body
2544
+ };
2545
+ }
2546
+
2547
+ // 12.10 The swith statement
2548
+
2549
+ function parseSwitchCase(test) {
2550
+ var consequent = [],
2551
+ statement;
2552
+
2553
+ while (index < length) {
2554
+ if (match('}') || matchKeyword('default') || matchKeyword('case')) {
2555
+ break;
2556
+ }
2557
+ statement = parseStatement();
2558
+ if (typeof statement === 'undefined') {
2559
+ break;
2560
+ }
2561
+ consequent.push(statement);
2562
+ }
2563
+
2564
+ return {
2565
+ type: Syntax.SwitchCase,
2566
+ test: test,
2567
+ consequent: consequent
2568
+ };
2569
+ }
2570
+
2571
+ function parseSwitchStatement() {
2572
+ var discriminant, cases, test, oldInSwitch;
2573
+
2574
+ expectKeyword('switch');
2575
+
2576
+ expect('(');
2577
+
2578
+ discriminant = parseExpression();
2579
+
2580
+ expect(')');
2581
+
2582
+ expect('{');
2583
+
2584
+ if (match('}')) {
2585
+ lex();
2586
+ return {
2587
+ type: Syntax.SwitchStatement,
2588
+ discriminant: discriminant
2589
+ };
2590
+ }
2591
+
2592
+ cases = [];
2593
+
2594
+ oldInSwitch = inSwitch;
2595
+ inSwitch = true;
2596
+
2597
+ while (index < length) {
2598
+ if (match('}')) {
2599
+ break;
2600
+ }
2601
+
2602
+ if (matchKeyword('default')) {
2603
+ lex();
2604
+ test = null;
2605
+ } else {
2606
+ expectKeyword('case');
2607
+ test = parseExpression();
2608
+ }
2609
+ expect(':');
2610
+
2611
+ cases.push(parseSwitchCase(test));
2612
+ }
2613
+
2614
+ inSwitch = oldInSwitch;
2615
+
2616
+ expect('}');
2617
+
2618
+ return {
2619
+ type: Syntax.SwitchStatement,
2620
+ discriminant: discriminant,
2621
+ cases: cases
2622
+ };
2623
+ }
2624
+
2625
+ // 12.13 The throw statement
2626
+
2627
+ function parseThrowStatement() {
2628
+ var argument;
2629
+
2630
+ expectKeyword('throw');
2631
+
2632
+ if (peekLineTerminator()) {
2633
+ throwError({}, Messages.NewlineAfterThrow);
2634
+ }
2635
+
2636
+ argument = parseExpression();
2637
+
2638
+ consumeSemicolon();
2639
+
2640
+ return {
2641
+ type: Syntax.ThrowStatement,
2642
+ argument: argument
2643
+ };
2644
+ }
2645
+
2646
+ // 12.14 The try statement
2647
+
2648
+ function parseCatchClause() {
2649
+ var param;
2650
+
2651
+ expectKeyword('catch');
2652
+
2653
+ expect('(');
2654
+ if (!match(')')) {
2655
+ param = parseExpression();
2656
+ // 12.14.1
2657
+ if (strict && param.type === Syntax.Identifier && isRestrictedWord(param.name)) {
2658
+ throwError({}, Messages.StrictCatchVariable);
2659
+ }
2660
+ }
2661
+ expect(')');
2662
+
2663
+ return {
2664
+ type: Syntax.CatchClause,
2665
+ param: param,
2666
+ guard: null,
2667
+ body: parseBlock()
2668
+ };
2669
+ }
2670
+
2671
+ function parseTryStatement() {
2672
+ var block, handlers = [], finalizer = null;
2673
+
2674
+ expectKeyword('try');
2675
+
2676
+ block = parseBlock();
2677
+
2678
+ if (matchKeyword('catch')) {
2679
+ handlers.push(parseCatchClause());
2680
+ }
2681
+
2682
+ if (matchKeyword('finally')) {
2683
+ lex();
2684
+ finalizer = parseBlock();
2685
+ }
2686
+
2687
+ if (handlers.length === 0 && !finalizer) {
2688
+ throwError({}, Messages.NoCatchOrFinally);
2689
+ }
2690
+
2691
+ return {
2692
+ type: Syntax.TryStatement,
2693
+ block: block,
2694
+ handlers: handlers,
2695
+ finalizer: finalizer
2696
+ };
2697
+ }
2698
+
2699
+ // 12.15 The debugger statement
2700
+
2701
+ function parseDebuggerStatement() {
2702
+ expectKeyword('debugger');
2703
+
2704
+ consumeSemicolon();
2705
+
2706
+ return {
2707
+ type: Syntax.DebuggerStatement
2708
+ };
2709
+ }
2710
+
2711
+ // 12 Statements
2712
+
2713
+ function parseStatement() {
2714
+ var token = lookahead(),
2715
+ expr,
2716
+ labeledBody;
2717
+
2718
+ if (token.type === Token.EOF) {
2719
+ throwUnexpected(token);
2720
+ }
2721
+
2722
+ if (token.type === Token.Punctuator) {
2723
+ switch (token.value) {
2724
+ case ';':
2725
+ return parseEmptyStatement();
2726
+ case '{':
2727
+ return parseBlock();
2728
+ case '(':
2729
+ return parseExpressionStatement();
2730
+ default:
2731
+ break;
2732
+ }
2733
+ }
2734
+
2735
+ if (token.type === Token.Keyword) {
2736
+ switch (token.value) {
2737
+ case 'break':
2738
+ return parseBreakStatement();
2739
+ case 'continue':
2740
+ return parseContinueStatement();
2741
+ case 'debugger':
2742
+ return parseDebuggerStatement();
2743
+ case 'do':
2744
+ return parseDoWhileStatement();
2745
+ case 'for':
2746
+ return parseForStatement();
2747
+ case 'function':
2748
+ return parseFunctionDeclaration();
2749
+ case 'if':
2750
+ return parseIfStatement();
2751
+ case 'return':
2752
+ return parseReturnStatement();
2753
+ case 'switch':
2754
+ return parseSwitchStatement();
2755
+ case 'throw':
2756
+ return parseThrowStatement();
2757
+ case 'try':
2758
+ return parseTryStatement();
2759
+ case 'var':
2760
+ return parseVariableStatement();
2761
+ case 'while':
2762
+ return parseWhileStatement();
2763
+ case 'with':
2764
+ return parseWithStatement();
2765
+ default:
2766
+ break;
2767
+ }
2768
+ }
2769
+
2770
+ expr = parseExpression();
2771
+
2772
+ // 12.12 Labelled Statements
2773
+ if ((expr.type === Syntax.Identifier) && match(':')) {
2774
+ lex();
2775
+
2776
+ if (Object.prototype.hasOwnProperty.call(labelSet, expr.name)) {
2777
+ throwError({}, Messages.Redeclaration, 'Label', expr.name);
2778
+ }
2779
+
2780
+ labelSet[expr.name] = true;
2781
+ labeledBody = parseStatement();
2782
+ delete labelSet[expr.name];
2783
+
2784
+ return {
2785
+ type: Syntax.LabeledStatement,
2786
+ label: expr,
2787
+ body: labeledBody
2788
+ };
2789
+ }
2790
+
2791
+ consumeSemicolon();
2792
+
2793
+ return {
2794
+ type: Syntax.ExpressionStatement,
2795
+ expression: expr
2796
+ };
2797
+ }
2798
+
2799
+ // 13 Function Definition
2800
+
2801
+ function parseFunctionSourceElements() {
2802
+ var sourceElement, sourceElements = [], token, directive, firstRestricted, oldLabelSet, oldInIteration, oldInSwitch, oldInFunctionBody;
2803
+
2804
+ expect('{');
2805
+
2806
+ while (index < length) {
2807
+ token = lookahead();
2808
+ if (token.type !== Token.StringLiteral) {
2809
+ break;
2810
+ }
2811
+
2812
+ sourceElement = parseSourceElement();
2813
+ sourceElements.push(sourceElement);
2814
+ if (sourceElement.expression.type !== Syntax.Literal) {
2815
+ // this is not directive
2816
+ break;
2817
+ }
2818
+ directive = sliceSource(token.range[0] + 1, token.range[1] - 1);
2819
+ if (directive === 'use strict') {
2820
+ strict = true;
2821
+ if (firstRestricted) {
2822
+ throwError(firstRestricted, Messages.StrictOctalLiteral);
2823
+ }
2824
+ } else {
2825
+ if (!firstRestricted && token.octal) {
2826
+ firstRestricted = token;
2827
+ }
2828
+ }
2829
+ }
2830
+
2831
+ oldLabelSet = labelSet;
2832
+ oldInIteration = inIteration;
2833
+ oldInSwitch = inSwitch;
2834
+ oldInFunctionBody = inFunctionBody;
2835
+
2836
+ labelSet = {};
2837
+ inIteration = false;
2838
+ inSwitch = false;
2839
+ inFunctionBody = true;
2840
+
2841
+ while (index < length) {
2842
+ if (match('}')) {
2843
+ break;
2844
+ }
2845
+ sourceElement = parseSourceElement();
2846
+ if (typeof sourceElement === 'undefined') {
2847
+ break;
2848
+ }
2849
+ sourceElements.push(sourceElement);
2850
+ }
2851
+
2852
+ expect('}');
2853
+
2854
+ labelSet = oldLabelSet;
2855
+ inIteration = oldInIteration;
2856
+ inSwitch = oldInSwitch;
2857
+ inFunctionBody = oldInFunctionBody;
2858
+
2859
+ return {
2860
+ type: Syntax.BlockStatement,
2861
+ body: sourceElements
2862
+ };
2863
+ }
2864
+
2865
+ function parseFunctionDeclaration() {
2866
+ var id, param, params = [], body, token, firstRestricted, message, previousStrict, paramSet;
2867
+
2868
+ expectKeyword('function');
2869
+ token = lookahead();
2870
+ id = parseVariableIdentifier();
2871
+ if (strict) {
2872
+ if (isRestrictedWord(token.value)) {
2873
+ throwError(token, Messages.StrictFunctionName);
2874
+ }
2875
+ } else {
2876
+ if (isRestrictedWord(token.value)) {
2877
+ firstRestricted = token;
2878
+ message = Messages.StrictFunctionName;
2879
+ } else if (isStrictModeReservedWord(token.value)) {
2880
+ firstRestricted = token;
2881
+ message = Messages.StrictReservedWord;
2882
+ }
2883
+ }
2884
+
2885
+ expect('(');
2886
+
2887
+ if (!match(')')) {
2888
+ paramSet = {};
2889
+ while (index < length) {
2890
+ token = lookahead();
2891
+ param = parseVariableIdentifier();
2892
+ if (strict) {
2893
+ if (isRestrictedWord(token.value)) {
2894
+ throwError(token, Messages.StrictParamName);
2895
+ }
2896
+ if (Object.prototype.hasOwnProperty.call(paramSet, token.value)) {
2897
+ throwError(token, Messages.StrictParamDupe);
2898
+ }
2899
+ } else if (!firstRestricted) {
2900
+ if (isRestrictedWord(token.value)) {
2901
+ firstRestricted = token;
2902
+ message = Messages.StrictParamName;
2903
+ } else if (isStrictModeReservedWord(token.value)) {
2904
+ firstRestricted = token;
2905
+ message = Messages.StrictReservedWord;
2906
+ } else if (Object.prototype.hasOwnProperty.call(paramSet, token.value)) {
2907
+ firstRestricted = token;
2908
+ message = Messages.StrictParamDupe;
2909
+ }
2910
+ }
2911
+ params.push(param);
2912
+ paramSet[param.name] = true;
2913
+ if (match(')')) {
2914
+ break;
2915
+ }
2916
+ expect(',');
2917
+ }
2918
+ }
2919
+
2920
+ expect(')');
2921
+
2922
+ previousStrict = strict;
2923
+ body = parseFunctionSourceElements();
2924
+ if (strict && firstRestricted) {
2925
+ throwError(firstRestricted, message);
2926
+ }
2927
+ strict = previousStrict;
2928
+
2929
+ return {
2930
+ type: Syntax.FunctionDeclaration,
2931
+ id: id,
2932
+ params: params,
2933
+ body: body
2934
+ };
2935
+ }
2936
+
2937
+ function parseFunctionExpression() {
2938
+ var token, id = null, firstRestricted, message, param, params = [], body, previousStrict, paramSet;
2939
+
2940
+ expectKeyword('function');
2941
+
2942
+ if (!match('(')) {
2943
+ token = lookahead();
2944
+ id = parseVariableIdentifier();
2945
+ if (strict) {
2946
+ if (isRestrictedWord(token.value)) {
2947
+ throwError(token, Messages.StrictFunctionName);
2948
+ }
2949
+ } else {
2950
+ if (isRestrictedWord(token.value)) {
2951
+ firstRestricted = token;
2952
+ message = Messages.StrictFunctionName;
2953
+ } else if (isStrictModeReservedWord(token.value)) {
2954
+ firstRestricted = token;
2955
+ message = Messages.StrictReservedWord;
2956
+ }
2957
+ }
2958
+ }
2959
+
2960
+ expect('(');
2961
+
2962
+ if (!match(')')) {
2963
+ paramSet = {};
2964
+ while (index < length) {
2965
+ token = lookahead();
2966
+ param = parseVariableIdentifier();
2967
+ if (strict) {
2968
+ if (isRestrictedWord(token.value)) {
2969
+ throwError(token, Messages.StrictParamName);
2970
+ }
2971
+ if (Object.prototype.hasOwnProperty.call(paramSet, token.value)) {
2972
+ throwError(token, Messages.StrictParamDupe);
2973
+ }
2974
+ } else if (!firstRestricted) {
2975
+ if (isRestrictedWord(token.value)) {
2976
+ firstRestricted = token;
2977
+ message = Messages.StrictParamName;
2978
+ } else if (isStrictModeReservedWord(token.value)) {
2979
+ firstRestricted = token;
2980
+ message = Messages.StrictReservedWord;
2981
+ } else if (Object.prototype.hasOwnProperty.call(paramSet, token.value)) {
2982
+ firstRestricted = token;
2983
+ message = Messages.StrictParamDupe;
2984
+ }
2985
+ }
2986
+ params.push(param);
2987
+ paramSet[param.name] = true;
2988
+ if (match(')')) {
2989
+ break;
2990
+ }
2991
+ expect(',');
2992
+ }
2993
+ }
2994
+
2995
+ expect(')');
2996
+
2997
+ previousStrict = strict;
2998
+ body = parseFunctionSourceElements();
2999
+ if (strict && firstRestricted) {
3000
+ throwError(firstRestricted, message);
3001
+ }
3002
+ strict = previousStrict;
3003
+
3004
+ return {
3005
+ type: Syntax.FunctionExpression,
3006
+ id: id,
3007
+ params: params,
3008
+ body: body
3009
+ };
3010
+ }
3011
+
3012
+ // 14 Program
3013
+
3014
+ function parseSourceElement() {
3015
+ var token = lookahead();
3016
+
3017
+ if (token.type === Token.Keyword) {
3018
+ switch (token.value) {
3019
+ case 'const':
3020
+ case 'let':
3021
+ return parseConstLetDeclaration(token.value);
3022
+ case 'function':
3023
+ return parseFunctionDeclaration();
3024
+ default:
3025
+ return parseStatement();
3026
+ }
3027
+ }
3028
+
3029
+ if (token.type !== Token.EOF) {
3030
+ return parseStatement();
3031
+ }
3032
+ }
3033
+
3034
+ function parseSourceElements() {
3035
+ var sourceElement, sourceElements = [], token, directive, firstRestricted;
3036
+
3037
+ while (index < length) {
3038
+ token = lookahead();
3039
+ if (token.type !== Token.StringLiteral) {
3040
+ break;
3041
+ }
3042
+
3043
+ sourceElement = parseSourceElement();
3044
+ sourceElements.push(sourceElement);
3045
+ if (sourceElement.expression.type !== Syntax.Literal) {
3046
+ // this is not directive
3047
+ break;
3048
+ }
3049
+ directive = sliceSource(token.range[0] + 1, token.range[1] - 1);
3050
+ if (directive === 'use strict') {
3051
+ strict = true;
3052
+ if (firstRestricted) {
3053
+ throwError(firstRestricted, Messages.StrictOctalLiteral);
3054
+ }
3055
+ } else {
3056
+ if (!firstRestricted && token.octal) {
3057
+ firstRestricted = token;
3058
+ }
3059
+ }
3060
+ }
3061
+
3062
+ while (index < length) {
3063
+ sourceElement = parseSourceElement();
3064
+ if (typeof sourceElement === 'undefined') {
3065
+ break;
3066
+ }
3067
+ sourceElements.push(sourceElement);
3068
+ }
3069
+ return sourceElements;
3070
+ }
3071
+
3072
+ function parseProgram() {
3073
+ var program;
3074
+ strict = false;
3075
+ program = {
3076
+ type: Syntax.Program,
3077
+ body: parseSourceElements()
3078
+ };
3079
+ return program;
3080
+ }
3081
+
3082
+ // The following functions are needed only when the option to preserve
3083
+ // the comments is active.
3084
+
3085
+ function addComment(start, end, type, value) {
3086
+ assert(typeof start === 'number', 'Comment must have valid position');
3087
+
3088
+ // Because the way the actual token is scanned, often the comments
3089
+ // (if any) are skipped twice during the lexical analysis.
3090
+ // Thus, we need to skip adding a comment if the comment array already
3091
+ // handled it.
3092
+ if (extra.comments.length > 0) {
3093
+ if (extra.comments[extra.comments.length - 1].range[1] > start) {
3094
+ return;
3095
+ }
3096
+ }
3097
+
3098
+ extra.comments.push({
3099
+ range: [start, end],
3100
+ type: type,
3101
+ value: value
3102
+ });
3103
+ }
3104
+
3105
+ function scanComment() {
3106
+ var comment, ch, start, blockComment, lineComment;
3107
+
3108
+ comment = '';
3109
+ blockComment = false;
3110
+ lineComment = false;
3111
+
3112
+ while (index < length) {
3113
+ ch = source[index];
3114
+
3115
+ if (lineComment) {
3116
+ ch = nextChar();
3117
+ if (index >= length) {
3118
+ lineComment = false;
3119
+ comment += ch;
3120
+ addComment(start, index - 1, 'Line', comment);
3121
+ } else if (isLineTerminator(ch)) {
3122
+ lineComment = false;
3123
+ addComment(start, index - 1, 'Line', comment);
3124
+ if (ch === '\r' && source[index] === '\n') {
3125
+ ++index;
3126
+ }
3127
+ ++lineNumber;
3128
+ lineStart = index;
3129
+ comment = '';
3130
+ } else {
3131
+ comment += ch;
3132
+ }
3133
+ } else if (blockComment) {
3134
+ if (isLineTerminator(ch)) {
3135
+ if (ch === '\r' && source[index + 1] === '\n') {
3136
+ ++index;
3137
+ comment += '\r\n';
3138
+ } else {
3139
+ comment += ch;
3140
+ }
3141
+ ++lineNumber;
3142
+ ++index;
3143
+ lineStart = index;
3144
+ if (index >= length) {
3145
+ throwError({}, Messages.UnexpectedToken, 'ILLEGAL');
3146
+ }
3147
+ } else {
3148
+ ch = nextChar();
3149
+ if (index >= length) {
3150
+ throwError({}, Messages.UnexpectedToken, 'ILLEGAL');
3151
+ }
3152
+ comment += ch;
3153
+ if (ch === '*') {
3154
+ ch = source[index];
3155
+ if (ch === '/') {
3156
+ comment = comment.substr(0, comment.length - 1);
3157
+ blockComment = false;
3158
+ ++index;
3159
+ addComment(start, index - 1, 'Block', comment);
3160
+ comment = '';
3161
+ }
3162
+ }
3163
+ }
3164
+ } else if (ch === '/') {
3165
+ ch = source[index + 1];
3166
+ if (ch === '/') {
3167
+ start = index;
3168
+ index += 2;
3169
+ lineComment = true;
3170
+ } else if (ch === '*') {
3171
+ start = index;
3172
+ index += 2;
3173
+ blockComment = true;
3174
+ if (index >= length) {
3175
+ throwError({}, Messages.UnexpectedToken, 'ILLEGAL');
3176
+ }
3177
+ } else {
3178
+ break;
3179
+ }
3180
+ } else if (isWhiteSpace(ch)) {
3181
+ ++index;
3182
+ } else if (isLineTerminator(ch)) {
3183
+ ++index;
3184
+ if (ch === '\r' && source[index] === '\n') {
3185
+ ++index;
3186
+ }
3187
+ ++lineNumber;
3188
+ lineStart = index;
3189
+ } else {
3190
+ break;
3191
+ }
3192
+ }
3193
+ }
3194
+
3195
+ function collectToken() {
3196
+ var token = extra.advance(),
3197
+ range,
3198
+ value;
3199
+
3200
+ if (token.type !== Token.EOF) {
3201
+ range = [token.range[0], token.range[1] - 1];
3202
+ value = sliceSource(token.range[0], token.range[1]);
3203
+ extra.tokens.push({
3204
+ type: TokenName[token.type],
3205
+ value: value,
3206
+ range: range
3207
+ });
3208
+ }
3209
+
3210
+ return token;
3211
+ }
3212
+
3213
+ function collectRegex() {
3214
+ var pos, regex, token;
3215
+
3216
+ skipComment();
3217
+
3218
+ pos = index;
3219
+ regex = extra.scanRegExp();
3220
+
3221
+ // Pop the previous token, which is likely '/' or '/='
3222
+ if (extra.tokens.length > 0) {
3223
+ token = extra.tokens[extra.tokens.length - 1];
3224
+ if (token.range[0] === pos && token.type === 'Punctuator') {
3225
+ if (token.value === '/' || token.value === '/=') {
3226
+ extra.tokens.pop();
3227
+ }
3228
+ }
3229
+ }
3230
+
3231
+ extra.tokens.push({
3232
+ type: 'RegularExpression',
3233
+ value: regex.literal,
3234
+ range: [pos, index - 1]
3235
+ });
3236
+
3237
+ return regex;
3238
+ }
3239
+
3240
+ function createLiteral(token) {
3241
+ return {
3242
+ type: Syntax.Literal,
3243
+ value: token.value
3244
+ };
3245
+ }
3246
+
3247
+ function createRawLiteral(token) {
3248
+ return {
3249
+ type: Syntax.Literal,
3250
+ value: token.value,
3251
+ raw: sliceSource(token.range[0], token.range[1])
3252
+ };
3253
+ }
3254
+
3255
+ function wrapTrackingFunction(range, loc) {
3256
+
3257
+ return function (parseFunction) {
3258
+
3259
+ function isBinary(node) {
3260
+ return node.type === Syntax.LogicalExpression ||
3261
+ node.type === Syntax.BinaryExpression;
3262
+ }
3263
+
3264
+ function visit(node) {
3265
+ if (isBinary(node.left)) {
3266
+ visit(node.left);
3267
+ }
3268
+ if (isBinary(node.right)) {
3269
+ visit(node.right);
3270
+ }
3271
+
3272
+ if (range && typeof node.range === 'undefined') {
3273
+ node.range = [node.left.range[0], node.right.range[1]];
3274
+ }
3275
+ if (loc && typeof node.loc === 'undefined') {
3276
+ node.loc = {
3277
+ start: node.left.loc.start,
3278
+ end: node.right.loc.end
3279
+ };
3280
+ }
3281
+ }
3282
+
3283
+ return function () {
3284
+ var node, rangeInfo, locInfo;
3285
+
3286
+ skipComment();
3287
+ rangeInfo = [index, 0];
3288
+ locInfo = {
3289
+ start: {
3290
+ line: lineNumber,
3291
+ column: index - lineStart
3292
+ }
3293
+ };
3294
+
3295
+ node = parseFunction.apply(null, arguments);
3296
+ if (typeof node !== 'undefined') {
3297
+
3298
+ if (range) {
3299
+ rangeInfo[1] = index - 1;
3300
+ node.range = rangeInfo;
3301
+ }
3302
+
3303
+ if (loc) {
3304
+ locInfo.end = {
3305
+ line: lineNumber,
3306
+ column: index - lineStart
3307
+ };
3308
+ node.loc = locInfo;
3309
+ }
3310
+
3311
+ if (isBinary(node)) {
3312
+ visit(node);
3313
+ }
3314
+
3315
+ if (node.type === Syntax.MemberExpression) {
3316
+ if (typeof node.object.range !== 'undefined') {
3317
+ node.range[0] = node.object.range[0];
3318
+ }
3319
+ if (typeof node.object.loc !== 'undefined') {
3320
+ node.loc.start = node.object.loc.start;
3321
+ }
3322
+ }
3323
+ return node;
3324
+ }
3325
+ };
3326
+
3327
+ };
3328
+ }
3329
+
3330
+ function patch() {
3331
+
3332
+ var wrapTracking;
3333
+
3334
+ if (extra.comments) {
3335
+ extra.skipComment = skipComment;
3336
+ skipComment = scanComment;
3337
+ }
3338
+
3339
+ if (extra.raw) {
3340
+ extra.createLiteral = createLiteral;
3341
+ createLiteral = createRawLiteral;
3342
+ }
3343
+
3344
+ if (extra.range || extra.loc) {
3345
+
3346
+ wrapTracking = wrapTrackingFunction(extra.range, extra.loc);
3347
+
3348
+ extra.parseAdditiveExpression = parseAdditiveExpression;
3349
+ extra.parseAssignmentExpression = parseAssignmentExpression;
3350
+ extra.parseBitwiseANDExpression = parseBitwiseANDExpression;
3351
+ extra.parseBitwiseORExpression = parseBitwiseORExpression;
3352
+ extra.parseBitwiseXORExpression = parseBitwiseXORExpression;
3353
+ extra.parseBlock = parseBlock;
3354
+ extra.parseFunctionSourceElements = parseFunctionSourceElements;
3355
+ extra.parseCallMember = parseCallMember;
3356
+ extra.parseCatchClause = parseCatchClause;
3357
+ extra.parseComputedMember = parseComputedMember;
3358
+ extra.parseConditionalExpression = parseConditionalExpression;
3359
+ extra.parseConstLetDeclaration = parseConstLetDeclaration;
3360
+ extra.parseEqualityExpression = parseEqualityExpression;
3361
+ extra.parseExpression = parseExpression;
3362
+ extra.parseForVariableDeclaration = parseForVariableDeclaration;
3363
+ extra.parseFunctionDeclaration = parseFunctionDeclaration;
3364
+ extra.parseFunctionExpression = parseFunctionExpression;
3365
+ extra.parseLogicalANDExpression = parseLogicalANDExpression;
3366
+ extra.parseLogicalORExpression = parseLogicalORExpression;
3367
+ extra.parseMultiplicativeExpression = parseMultiplicativeExpression;
3368
+ extra.parseNewExpression = parseNewExpression;
3369
+ extra.parseNonComputedMember = parseNonComputedMember;
3370
+ extra.parseNonComputedProperty = parseNonComputedProperty;
3371
+ extra.parseObjectProperty = parseObjectProperty;
3372
+ extra.parseObjectPropertyKey = parseObjectPropertyKey;
3373
+ extra.parsePostfixExpression = parsePostfixExpression;
3374
+ extra.parsePrimaryExpression = parsePrimaryExpression;
3375
+ extra.parseProgram = parseProgram;
3376
+ extra.parsePropertyFunction = parsePropertyFunction;
3377
+ extra.parseRelationalExpression = parseRelationalExpression;
3378
+ extra.parseStatement = parseStatement;
3379
+ extra.parseShiftExpression = parseShiftExpression;
3380
+ extra.parseSwitchCase = parseSwitchCase;
3381
+ extra.parseUnaryExpression = parseUnaryExpression;
3382
+ extra.parseVariableDeclaration = parseVariableDeclaration;
3383
+ extra.parseVariableIdentifier = parseVariableIdentifier;
3384
+
3385
+ parseAdditiveExpression = wrapTracking(extra.parseAdditiveExpression);
3386
+ parseAssignmentExpression = wrapTracking(extra.parseAssignmentExpression);
3387
+ parseBitwiseANDExpression = wrapTracking(extra.parseBitwiseANDExpression);
3388
+ parseBitwiseORExpression = wrapTracking(extra.parseBitwiseORExpression);
3389
+ parseBitwiseXORExpression = wrapTracking(extra.parseBitwiseXORExpression);
3390
+ parseBlock = wrapTracking(extra.parseBlock);
3391
+ parseFunctionSourceElements = wrapTracking(extra.parseFunctionSourceElements);
3392
+ parseCallMember = wrapTracking(extra.parseCallMember);
3393
+ parseCatchClause = wrapTracking(extra.parseCatchClause);
3394
+ parseComputedMember = wrapTracking(extra.parseComputedMember);
3395
+ parseConditionalExpression = wrapTracking(extra.parseConditionalExpression);
3396
+ parseConstLetDeclaration = wrapTracking(extra.parseConstLetDeclaration);
3397
+ parseEqualityExpression = wrapTracking(extra.parseEqualityExpression);
3398
+ parseExpression = wrapTracking(extra.parseExpression);
3399
+ parseForVariableDeclaration = wrapTracking(extra.parseForVariableDeclaration);
3400
+ parseFunctionDeclaration = wrapTracking(extra.parseFunctionDeclaration);
3401
+ parseFunctionExpression = wrapTracking(extra.parseFunctionExpression);
3402
+ parseLogicalANDExpression = wrapTracking(extra.parseLogicalANDExpression);
3403
+ parseLogicalORExpression = wrapTracking(extra.parseLogicalORExpression);
3404
+ parseMultiplicativeExpression = wrapTracking(extra.parseMultiplicativeExpression);
3405
+ parseNewExpression = wrapTracking(extra.parseNewExpression);
3406
+ parseNonComputedMember = wrapTracking(extra.parseNonComputedMember);
3407
+ parseNonComputedProperty = wrapTracking(extra.parseNonComputedProperty);
3408
+ parseObjectProperty = wrapTracking(extra.parseObjectProperty);
3409
+ parseObjectPropertyKey = wrapTracking(extra.parseObjectPropertyKey);
3410
+ parsePostfixExpression = wrapTracking(extra.parsePostfixExpression);
3411
+ parsePrimaryExpression = wrapTracking(extra.parsePrimaryExpression);
3412
+ parseProgram = wrapTracking(extra.parseProgram);
3413
+ parsePropertyFunction = wrapTracking(extra.parsePropertyFunction);
3414
+ parseRelationalExpression = wrapTracking(extra.parseRelationalExpression);
3415
+ parseStatement = wrapTracking(extra.parseStatement);
3416
+ parseShiftExpression = wrapTracking(extra.parseShiftExpression);
3417
+ parseSwitchCase = wrapTracking(extra.parseSwitchCase);
3418
+ parseUnaryExpression = wrapTracking(extra.parseUnaryExpression);
3419
+ parseVariableDeclaration = wrapTracking(extra.parseVariableDeclaration);
3420
+ parseVariableIdentifier = wrapTracking(extra.parseVariableIdentifier);
3421
+ }
3422
+
3423
+ if (typeof extra.tokens !== 'undefined') {
3424
+ extra.advance = advance;
3425
+ extra.scanRegExp = scanRegExp;
3426
+
3427
+ advance = collectToken;
3428
+ scanRegExp = collectRegex;
3429
+ }
3430
+ }
3431
+
3432
+ function unpatch() {
3433
+ if (typeof extra.skipComment === 'function') {
3434
+ skipComment = extra.skipComment;
3435
+ }
3436
+
3437
+ if (extra.raw) {
3438
+ createLiteral = extra.createLiteral;
3439
+ }
3440
+
3441
+ if (extra.range || extra.loc) {
3442
+ parseAdditiveExpression = extra.parseAdditiveExpression;
3443
+ parseAssignmentExpression = extra.parseAssignmentExpression;
3444
+ parseBitwiseANDExpression = extra.parseBitwiseANDExpression;
3445
+ parseBitwiseORExpression = extra.parseBitwiseORExpression;
3446
+ parseBitwiseXORExpression = extra.parseBitwiseXORExpression;
3447
+ parseBlock = extra.parseBlock;
3448
+ parseFunctionSourceElements = extra.parseFunctionSourceElements;
3449
+ parseCallMember = extra.parseCallMember;
3450
+ parseCatchClause = extra.parseCatchClause;
3451
+ parseComputedMember = extra.parseComputedMember;
3452
+ parseConditionalExpression = extra.parseConditionalExpression;
3453
+ parseConstLetDeclaration = extra.parseConstLetDeclaration;
3454
+ parseEqualityExpression = extra.parseEqualityExpression;
3455
+ parseExpression = extra.parseExpression;
3456
+ parseForVariableDeclaration = extra.parseForVariableDeclaration;
3457
+ parseFunctionDeclaration = extra.parseFunctionDeclaration;
3458
+ parseFunctionExpression = extra.parseFunctionExpression;
3459
+ parseLogicalANDExpression = extra.parseLogicalANDExpression;
3460
+ parseLogicalORExpression = extra.parseLogicalORExpression;
3461
+ parseMultiplicativeExpression = extra.parseMultiplicativeExpression;
3462
+ parseNewExpression = extra.parseNewExpression;
3463
+ parseNonComputedMember = extra.parseNonComputedMember;
3464
+ parseNonComputedProperty = extra.parseNonComputedProperty;
3465
+ parseObjectProperty = extra.parseObjectProperty;
3466
+ parseObjectPropertyKey = extra.parseObjectPropertyKey;
3467
+ parsePrimaryExpression = extra.parsePrimaryExpression;
3468
+ parsePostfixExpression = extra.parsePostfixExpression;
3469
+ parseProgram = extra.parseProgram;
3470
+ parsePropertyFunction = extra.parsePropertyFunction;
3471
+ parseRelationalExpression = extra.parseRelationalExpression;
3472
+ parseStatement = extra.parseStatement;
3473
+ parseShiftExpression = extra.parseShiftExpression;
3474
+ parseSwitchCase = extra.parseSwitchCase;
3475
+ parseUnaryExpression = extra.parseUnaryExpression;
3476
+ parseVariableDeclaration = extra.parseVariableDeclaration;
3477
+ parseVariableIdentifier = extra.parseVariableIdentifier;
3478
+ }
3479
+
3480
+ if (typeof extra.scanRegExp === 'function') {
3481
+ advance = extra.advance;
3482
+ scanRegExp = extra.scanRegExp;
3483
+ }
3484
+ }
3485
+
3486
+ function stringToArray(str) {
3487
+ var length = str.length,
3488
+ result = [],
3489
+ i;
3490
+ for (i = 0; i < length; ++i) {
3491
+ result[i] = str.charAt(i);
3492
+ }
3493
+ return result;
3494
+ }
3495
+
3496
+ function parse(code, options) {
3497
+ var program, toString;
3498
+
3499
+ toString = String;
3500
+ if (typeof code !== 'string' && !(code instanceof String)) {
3501
+ code = toString(code);
3502
+ }
3503
+
3504
+ source = code;
3505
+ index = 0;
3506
+ lineNumber = (source.length > 0) ? 1 : 0;
3507
+ lineStart = 0;
3508
+ length = source.length;
3509
+ buffer = null;
3510
+ allowIn = true;
3511
+ labelSet = {};
3512
+ inSwitch = false;
3513
+ inIteration = false;
3514
+ lastParenthesized = null;
3515
+ inFunctionBody = false;
3516
+
3517
+ extra = {};
3518
+ if (typeof options !== 'undefined') {
3519
+ extra.range = (typeof options.range === 'boolean') && options.range;
3520
+ extra.loc = (typeof options.loc === 'boolean') && options.loc;
3521
+ extra.raw = (typeof options.raw === 'boolean') && options.raw;
3522
+ if (typeof options.tokens === 'boolean' && options.tokens) {
3523
+ extra.tokens = [];
3524
+ }
3525
+ if (typeof options.comment === 'boolean' && options.comment) {
3526
+ extra.comments = [];
3527
+ }
3528
+ if (typeof options.tolerant === 'boolean' && options.tolerant) {
3529
+ extra.errors = [];
3530
+ }
3531
+ }
3532
+
3533
+ if (length > 0) {
3534
+ if (typeof source[0] === 'undefined') {
3535
+ // Try first to convert to a string. This is good as fast path
3536
+ // for old IE which understands string indexing for string
3537
+ // literals only and not for string object.
3538
+ if (code instanceof String) {
3539
+ source = code.valueOf();
3540
+ }
3541
+
3542
+ // Force accessing the characters via an array.
3543
+ if (typeof source[0] === 'undefined') {
3544
+ source = stringToArray(code);
3545
+ }
3546
+ }
3547
+ }
3548
+
3549
+ patch();
3550
+ try {
3551
+ program = parseProgram();
3552
+ if (typeof extra.comments !== 'undefined') {
3553
+ program.comments = extra.comments;
3554
+ }
3555
+ if (typeof extra.tokens !== 'undefined') {
3556
+ program.tokens = extra.tokens;
3557
+ }
3558
+ if (typeof extra.errors !== 'undefined') {
3559
+ program.errors = extra.errors;
3560
+ }
3561
+ } catch (e) {
3562
+ throw e;
3563
+ } finally {
3564
+ unpatch();
3565
+ extra = {};
3566
+ }
3567
+
3568
+ return program;
3569
+ }
3570
+
3571
+ // Sync with package.json.
3572
+ exports.version = '0.9.9';
3573
+
3574
+ exports.parse = parse;
3575
+
3576
+ }(typeof exports === 'undefined' ? (esprima = {}) : exports));
3577
+ /* vim: set sw=4 ts=4 et tw=80 : */