traceur-rb 0.0.2 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (228) hide show
  1. checksums.yaml +8 -8
  2. data/lib/traceur/configuration.rb +1 -1
  3. data/lib/traceur/version.rb +1 -1
  4. data/{vendor/node_modules → node_modules}/.bin/traceur +0 -0
  5. data/{vendor/node_modules → node_modules}/traceur/LICENSE +0 -0
  6. data/{vendor/node_modules → node_modules}/traceur/README.md +0 -0
  7. data/node_modules/traceur/bin/traceur-runtime.js +3420 -0
  8. data/node_modules/traceur/bin/traceur.js +30354 -0
  9. data/{vendor/node_modules → node_modules}/traceur/node_modules/.bin/semver +0 -0
  10. data/node_modules/traceur/node_modules/commander/History.md +256 -0
  11. data/node_modules/traceur/node_modules/commander/LICENSE +22 -0
  12. data/node_modules/traceur/node_modules/commander/Readme.md +342 -0
  13. data/node_modules/traceur/node_modules/commander/index.js +1103 -0
  14. data/node_modules/traceur/node_modules/commander/node_modules/graceful-readlink/.npmignore +3 -0
  15. data/node_modules/traceur/node_modules/commander/node_modules/graceful-readlink/.travis.yml +5 -0
  16. data/node_modules/traceur/node_modules/commander/node_modules/graceful-readlink/LICENSE +22 -0
  17. data/node_modules/traceur/node_modules/commander/node_modules/graceful-readlink/README.md +17 -0
  18. data/node_modules/traceur/node_modules/commander/node_modules/graceful-readlink/index.js +12 -0
  19. data/node_modules/traceur/node_modules/commander/node_modules/graceful-readlink/package.json +48 -0
  20. data/node_modules/traceur/node_modules/commander/package.json +75 -0
  21. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/LICENSE +0 -0
  22. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/README.md +0 -0
  23. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/common.js +0 -0
  24. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/glob.js +0 -0
  25. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/inflight/.eslintrc +0 -0
  26. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/inflight/LICENSE +0 -0
  27. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/inflight/README.md +0 -0
  28. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/inflight/inflight.js +0 -0
  29. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/inflight/node_modules/wrappy/LICENSE +0 -0
  30. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/inflight/node_modules/wrappy/README.md +0 -0
  31. data/node_modules/traceur/node_modules/glob/node_modules/inflight/node_modules/wrappy/package.json +52 -0
  32. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/inflight/node_modules/wrappy/test/basic.js +0 -0
  33. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/inflight/node_modules/wrappy/wrappy.js +0 -0
  34. data/node_modules/traceur/node_modules/glob/node_modules/inflight/package.json +61 -0
  35. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/inflight/test.js +0 -0
  36. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/inherits/LICENSE +0 -0
  37. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/inherits/README.md +0 -0
  38. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/inherits/inherits.js +0 -0
  39. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/inherits/inherits_browser.js +0 -0
  40. data/node_modules/traceur/node_modules/glob/node_modules/inherits/package.json +50 -0
  41. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/inherits/test.js +0 -0
  42. data/{vendor/node_modules/traceur/node_modules/glob/node_modules/once/node_modules/wrappy → node_modules/traceur/node_modules/glob/node_modules/minimatch}/LICENSE +0 -0
  43. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/README.md +0 -0
  44. data/node_modules/traceur/node_modules/glob/node_modules/minimatch/browser.js +1159 -0
  45. data/node_modules/traceur/node_modules/glob/node_modules/minimatch/minimatch.js +912 -0
  46. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/.npmignore +0 -0
  47. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/.travis.yml +0 -0
  48. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/README.md +0 -0
  49. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/example.js +0 -0
  50. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/index.js +0 -0
  51. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.npmignore +0 -0
  52. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.travis.yml +0 -0
  53. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/Makefile +0 -0
  54. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/README.md +0 -0
  55. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/example.js +0 -0
  56. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/index.js +0 -0
  57. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/package.json +0 -0
  58. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/test/balanced.js +0 -0
  59. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/.travis.yml +0 -0
  60. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/LICENSE +0 -0
  61. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/README.markdown +0 -0
  62. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/example/map.js +0 -0
  63. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/index.js +0 -0
  64. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/package.json +0 -0
  65. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/test/map.js +0 -0
  66. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/package.json +0 -0
  67. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/bash-comparison.js +0 -0
  68. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/bash-results.txt +0 -0
  69. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/cases.txt +0 -0
  70. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/dollar.js +0 -0
  71. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/empty-option.js +0 -0
  72. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/generate.sh +0 -0
  73. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/negative-increment.js +0 -0
  74. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/nested.js +0 -0
  75. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/order.js +0 -0
  76. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/pad.js +0 -0
  77. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/same-type.js +0 -0
  78. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/sequence.js +0 -0
  79. data/node_modules/traceur/node_modules/glob/node_modules/minimatch/package.json +63 -0
  80. data/node_modules/traceur/node_modules/glob/node_modules/once/LICENSE +15 -0
  81. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/once/README.md +0 -0
  82. data/node_modules/traceur/node_modules/glob/node_modules/once/node_modules/wrappy/LICENSE +15 -0
  83. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/once/node_modules/wrappy/README.md +0 -0
  84. data/node_modules/traceur/node_modules/glob/node_modules/once/node_modules/wrappy/package.json +52 -0
  85. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/once/node_modules/wrappy/test/basic.js +0 -0
  86. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/once/node_modules/wrappy/wrappy.js +0 -0
  87. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/once/once.js +0 -0
  88. data/node_modules/traceur/node_modules/glob/node_modules/once/package.json +60 -0
  89. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/once/test/once.js +0 -0
  90. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/package.json +0 -0
  91. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/sync.js +0 -0
  92. data/node_modules/traceur/node_modules/rsvp/CHANGELOG.md +255 -0
  93. data/{vendor/node_modules → node_modules}/traceur/node_modules/rsvp/LICENSE +0 -0
  94. data/node_modules/traceur/node_modules/rsvp/README.md +366 -0
  95. data/node_modules/traceur/node_modules/rsvp/dist/rsvp.js +1597 -0
  96. data/node_modules/traceur/node_modules/rsvp/dist/rsvp.min.js +9 -0
  97. data/node_modules/traceur/node_modules/rsvp/lib/rsvp.js +70 -0
  98. data/node_modules/traceur/node_modules/rsvp/lib/rsvp.umd.js +51 -0
  99. data/{vendor/node_modules → node_modules}/traceur/node_modules/rsvp/lib/rsvp/-internal.js +0 -0
  100. data/node_modules/traceur/node_modules/rsvp/lib/rsvp/all-settled.js +73 -0
  101. data/{vendor/node_modules → node_modules}/traceur/node_modules/rsvp/lib/rsvp/all.js +0 -0
  102. data/node_modules/traceur/node_modules/rsvp/lib/rsvp/asap.js +112 -0
  103. data/{vendor/node_modules → node_modules}/traceur/node_modules/rsvp/lib/rsvp/config.js +0 -0
  104. data/node_modules/traceur/node_modules/rsvp/lib/rsvp/defer.js +45 -0
  105. data/node_modules/traceur/node_modules/rsvp/lib/rsvp/enumerator.js +130 -0
  106. data/node_modules/traceur/node_modules/rsvp/lib/rsvp/events.js +205 -0
  107. data/{vendor/node_modules → node_modules}/traceur/node_modules/rsvp/lib/rsvp/filter.js +0 -0
  108. data/node_modules/traceur/node_modules/rsvp/lib/rsvp/hash-settled.js +126 -0
  109. data/node_modules/traceur/node_modules/rsvp/lib/rsvp/hash.js +94 -0
  110. data/node_modules/traceur/node_modules/rsvp/lib/rsvp/instrument.js +41 -0
  111. data/{vendor/node_modules → node_modules}/traceur/node_modules/rsvp/lib/rsvp/map.js +0 -0
  112. data/node_modules/traceur/node_modules/rsvp/lib/rsvp/node.js +281 -0
  113. data/node_modules/traceur/node_modules/rsvp/lib/rsvp/platform.js +14 -0
  114. data/node_modules/traceur/node_modules/rsvp/lib/rsvp/promise-hash.js +52 -0
  115. data/node_modules/traceur/node_modules/rsvp/lib/rsvp/promise.js +496 -0
  116. data/{vendor/node_modules → node_modules}/traceur/node_modules/rsvp/lib/rsvp/promise/all.js +0 -0
  117. data/node_modules/traceur/node_modules/rsvp/lib/rsvp/promise/race.js +105 -0
  118. data/node_modules/traceur/node_modules/rsvp/lib/rsvp/promise/reject.js +47 -0
  119. data/node_modules/traceur/node_modules/rsvp/lib/rsvp/promise/resolve.js +49 -0
  120. data/{vendor/node_modules → node_modules}/traceur/node_modules/rsvp/lib/rsvp/race.js +0 -0
  121. data/node_modules/traceur/node_modules/rsvp/lib/rsvp/reject.js +16 -0
  122. data/node_modules/traceur/node_modules/rsvp/lib/rsvp/resolve.js +17 -0
  123. data/{vendor/node_modules → node_modules}/traceur/node_modules/rsvp/lib/rsvp/rethrow.js +0 -0
  124. data/{vendor/node_modules → node_modules}/traceur/node_modules/rsvp/lib/rsvp/utils.js +0 -0
  125. data/node_modules/traceur/node_modules/rsvp/package.json +106 -0
  126. data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/.npmignore +0 -0
  127. data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/LICENSE +0 -0
  128. data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/Makefile +0 -0
  129. data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/README.md +0 -0
  130. data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/bin/semver +0 -0
  131. data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/foot.js +0 -0
  132. data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/head.js +0 -0
  133. data/node_modules/traceur/node_modules/semver/package.json +50 -0
  134. data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/semver.browser.js +0 -0
  135. data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/semver.browser.js.gz +0 -0
  136. data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/semver.js +0 -0
  137. data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/semver.min.js +0 -0
  138. data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/semver.min.js.gz +0 -0
  139. data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/test/amd.js +0 -0
  140. data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/test/gtr.js +0 -0
  141. data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/test/index.js +0 -0
  142. data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/test/ltr.js +0 -0
  143. data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/test/no-module.js +0 -0
  144. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/.npmignore +0 -0
  145. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/LICENSE.md +0 -0
  146. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/README.md +0 -0
  147. data/node_modules/traceur/node_modules/source-map-support/amd-test/browser-source-map-support.js +89 -0
  148. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/amd-test/index.html +0 -0
  149. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/amd-test/require.js +0 -0
  150. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/amd-test/script.coffee +0 -0
  151. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/amd-test/script.js +0 -0
  152. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/amd-test/script.map +0 -0
  153. data/node_modules/traceur/node_modules/source-map-support/browser-source-map-support.js +89 -0
  154. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/browser-test/index.html +0 -0
  155. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/browser-test/script.coffee +0 -0
  156. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/browser-test/script.js +0 -0
  157. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/browser-test/script.map +0 -0
  158. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/build.js +0 -0
  159. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/header-test/index.html +0 -0
  160. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/header-test/script.coffee +0 -0
  161. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/header-test/script.js +0 -0
  162. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/header-test/script.map +0 -0
  163. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/header-test/server.js +0 -0
  164. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/.npmignore +0 -0
  165. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/.travis.yml +0 -0
  166. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/CHANGELOG.md +0 -0
  167. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/LICENSE +0 -0
  168. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/Makefile.dryice.js +0 -0
  169. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/README.md +0 -0
  170. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/build/assert-shim.js +0 -0
  171. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/build/mini-require.js +0 -0
  172. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/build/prefix-source-map.jsm +0 -0
  173. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/build/prefix-utils.jsm +0 -0
  174. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/build/suffix-browser.js +0 -0
  175. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/build/suffix-source-map.jsm +0 -0
  176. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/build/suffix-utils.jsm +0 -0
  177. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/build/test-prefix.js +0 -0
  178. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/build/test-suffix.js +0 -0
  179. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map.js +0 -0
  180. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/array-set.js +0 -0
  181. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/base64-vlq.js +0 -0
  182. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/base64.js +0 -0
  183. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/binary-search.js +0 -0
  184. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/source-map-consumer.js +0 -0
  185. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/source-map-generator.js +0 -0
  186. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/source-node.js +0 -0
  187. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/util.js +0 -0
  188. data/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/node_modules/amdefine/LICENSE +58 -0
  189. data/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/node_modules/amdefine/README.md +171 -0
  190. data/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/node_modules/amdefine/amdefine.js +301 -0
  191. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/node_modules/amdefine/intercept.js +0 -0
  192. data/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/node_modules/amdefine/package.json +47 -0
  193. data/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/package.json +142 -0
  194. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/test/run-tests.js +0 -0
  195. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-api.js +0 -0
  196. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-array-set.js +0 -0
  197. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-base64-vlq.js +0 -0
  198. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-base64.js +0 -0
  199. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-binary-search.js +0 -0
  200. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-dog-fooding.js +0 -0
  201. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-source-map-consumer.js +0 -0
  202. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-source-map-generator.js +0 -0
  203. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-source-node.js +0 -0
  204. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/util.js +0 -0
  205. data/node_modules/traceur/node_modules/source-map-support/package.json +52 -0
  206. data/node_modules/traceur/node_modules/source-map-support/source-map-support.js +386 -0
  207. data/node_modules/traceur/node_modules/source-map-support/test.js +384 -0
  208. data/node_modules/traceur/package.json +286 -0
  209. data/node_modules/traceur/src/node/NodeCompiler.js +81 -0
  210. data/{vendor/node_modules → node_modules}/traceur/src/node/System.js +0 -0
  211. data/{vendor/node_modules → node_modules}/traceur/src/node/api.js +0 -0
  212. data/node_modules/traceur/src/node/command.js +203 -0
  213. data/{vendor/node_modules → node_modules}/traceur/src/node/compileAllJsFilesInDir.js +0 -0
  214. data/{vendor/node_modules → node_modules}/traceur/src/node/deferred.js +0 -0
  215. data/{vendor/node_modules → node_modules}/traceur/src/node/file-util.js +0 -0
  216. data/{vendor/node_modules → node_modules}/traceur/src/node/getopt.js +0 -0
  217. data/node_modules/traceur/src/node/interpreter.js +37 -0
  218. data/{vendor/node_modules → node_modules}/traceur/src/node/nodeLoader.js +0 -0
  219. data/node_modules/traceur/src/node/recursiveModuleCompile.js +171 -0
  220. data/{vendor/node_modules → node_modules}/traceur/src/node/require.js +0 -0
  221. data/{vendor/node_modules → node_modules}/traceur/src/node/to-amd-compiler.js +0 -0
  222. data/{vendor/node_modules → node_modules}/traceur/src/node/to-closure-compiler.js +0 -0
  223. data/{vendor/node_modules → node_modules}/traceur/src/node/to-commonjs-compiler.js +0 -0
  224. data/{vendor/node_modules → node_modules}/traceur/src/node/traceur.js +0 -0
  225. data/{vendor/node_modules → node_modules}/traceur/traceur +0 -0
  226. data/package.json +15 -0
  227. data/spec/traceur/configuration_spec.rb +3 -3
  228. metadata +225 -161
@@ -0,0 +1,89 @@
1
+ /*
2
+ * Support for source maps in V8 stack traces
3
+ * https://github.com/evanw/node-source-map-support
4
+ */
5
+ (this.define||function(K,O){this.sourceMapSupport=O()})("browser-source-map-support",function(K){(function h(r,m,e){function p(g,d){if(!m[g]){if(!r[g]){var k="function"==typeof require&&require;if(!d&&k)return k(g,!0);if(v)return v(g,!0);throw Error("Cannot find module '"+g+"'");}k=m[g]={exports:{}};r[g][0].call(k.exports,function(d){var c=r[g][1][d];return p(c?c:d)},k,k.exports,h,r,m,e)}return m[g].exports}for(var v="function"==typeof require&&require,A=0;A<e.length;A++)p(e[A]);return p})({1:[function(h,
6
+ r,m){K=h("./source-map-support")},{"./source-map-support":18}],2:[function(h,r,m){},{}],3:[function(h,r,m){function e(f,n,x){if(!(this instanceof e))return new e(f,n,x);var a=typeof f;if("base64"===n&&"string"===a)for(f=f.trim?f.trim():f.replace(/^\s+|\s+$/g,"");0!==f.length%4;)f+="=";var b;if("number"===a)b=w(f);else if("string"===a)b=e.byteLength(f,n);else if("object"===a)b=w(f.length);else throw Error("First argument needs to be a number, array or string.");var c;e._useTypedArrays?c=e._augment(new Uint8Array(b)):
7
+ (c=this,c.length=b,c._isBuffer=!0);if(e._useTypedArrays&&"number"===typeof f.byteLength)c._set(f);else{var d=f;if(y(d)||e.isBuffer(d)||d&&"object"===typeof d&&"number"===typeof d.length)for(n=0;n<b;n++)e.isBuffer(f)?c[n]=f.readUInt8(n):c[n]=f[n];else if("string"===a)c.write(f,0,n);else if("number"===a&&!e._useTypedArrays&&!x)for(n=0;n<b;n++)c[n]=0}return c}function p(f,n,x){var a="";for(x=Math.min(f.length,x);n<x;n++)a+=String.fromCharCode(f[n]);return a}function v(f,n,x,a){a||(q("boolean"===typeof x,
8
+ "missing or invalid endian"),q(void 0!==n&&null!==n,"missing offset"),q(n+1<f.length,"Trying to read beyond buffer length"));a=f.length;if(!(n>=a))return x?(x=f[n],n+1<a&&(x|=f[n+1]<<8)):(x=f[n]<<8,n+1<a&&(x|=f[n+1])),x}function A(f,n,a,c){c||(q("boolean"===typeof a,"missing or invalid endian"),q(void 0!==n&&null!==n,"missing offset"),q(n+3<f.length,"Trying to read beyond buffer length"));c=f.length;if(!(n>=c)){var b;a?(n+2<c&&(b=f[n+2]<<16),n+1<c&&(b|=f[n+1]<<8),b|=f[n],n+3<c&&(b+=f[n+3]<<24>>>0)):
9
+ (n+1<c&&(b=f[n+1]<<16),n+2<c&&(b|=f[n+2]<<8),n+3<c&&(b|=f[n+3]),b+=f[n]<<24>>>0);return b}}function g(f,n,a,b){b||(q("boolean"===typeof a,"missing or invalid endian"),q(void 0!==n&&null!==n,"missing offset"),q(n+1<f.length,"Trying to read beyond buffer length"));if(!(n>=f.length))return f=v(f,n,a,!0),f&32768?-1*(65535-f+1):f}function d(f,n,a,b){b||(q("boolean"===typeof a,"missing or invalid endian"),q(void 0!==n&&null!==n,"missing offset"),q(n+3<f.length,"Trying to read beyond buffer length"));if(!(n>=
10
+ f.length))return f=A(f,n,a,!0),f&2147483648?-1*(4294967295-f+1):f}function k(f,n,a,b){b||(q("boolean"===typeof a,"missing or invalid endian"),q(n+3<f.length,"Trying to read beyond buffer length"));return I.read(f,n,a,23,4)}function l(f,n,a,b){b||(q("boolean"===typeof a,"missing or invalid endian"),q(n+7<f.length,"Trying to read beyond buffer length"));return I.read(f,n,a,52,8)}function c(f,n,a,b,c){c||(q(void 0!==n&&null!==n,"missing value"),q("boolean"===typeof b,"missing or invalid endian"),q(void 0!==
11
+ a&&null!==a,"missing offset"),q(a+1<f.length,"trying to write beyond buffer length"),L(n,65535));var d=f.length;if(!(a>=d))for(c=0,d=Math.min(d-a,2);c<d;c++)f[a+c]=(n&255<<8*(b?c:1-c))>>>8*(b?c:1-c)}function a(f,n,a,b,c){c||(q(void 0!==n&&null!==n,"missing value"),q("boolean"===typeof b,"missing or invalid endian"),q(void 0!==a&&null!==a,"missing offset"),q(a+3<f.length,"trying to write beyond buffer length"),L(n,4294967295));var d=f.length;if(!(a>=d))for(c=0,d=Math.min(d-a,4);c<d;c++)f[a+c]=n>>>
12
+ 8*(b?c:3-c)&255}function b(f,n,a,b,d){d||(q(void 0!==n&&null!==n,"missing value"),q("boolean"===typeof b,"missing or invalid endian"),q(void 0!==a&&null!==a,"missing offset"),q(a+1<f.length,"Trying to write beyond buffer length"),M(n,32767,-32768));a>=f.length||(0<=n?c(f,n,a,b,d):c(f,65535+n+1,a,b,d))}function z(f,n,b,c,d){d||(q(void 0!==n&&null!==n,"missing value"),q("boolean"===typeof c,"missing or invalid endian"),q(void 0!==b&&null!==b,"missing offset"),q(b+3<f.length,"Trying to write beyond buffer length"),
13
+ M(n,2147483647,-2147483648));b>=f.length||(0<=n?a(f,n,b,c,d):a(f,4294967295+n+1,b,c,d))}function D(f,n,a,b,c){c||(q(void 0!==n&&null!==n,"missing value"),q("boolean"===typeof b,"missing or invalid endian"),q(void 0!==a&&null!==a,"missing offset"),q(a+3<f.length,"Trying to write beyond buffer length"),N(n,3.4028234663852886E38,-3.4028234663852886E38));a>=f.length||I.write(f,n,a,b,23,4)}function B(f,n,a,b,c){c||(q(void 0!==n&&null!==n,"missing value"),q("boolean"===typeof b,"missing or invalid endian"),
14
+ q(void 0!==a&&null!==a,"missing offset"),q(a+7<f.length,"Trying to write beyond buffer length"),N(n,1.7976931348623157E308,-1.7976931348623157E308));a>=f.length||I.write(f,n,a,b,52,8)}function E(f,a,b){if("number"!==typeof f)return b;f=~~f;if(f>=a)return a;if(0<=f)return f;f+=a;return 0<=f?f:0}function w(f){f=~~Math.ceil(+f);return 0>f?0:f}function y(f){return(Array.isArray||function(f){return"[object Array]"===Object.prototype.toString.call(f)})(f)}function H(f){return 16>f?"0"+f.toString(16):f.toString(16)}
15
+ function t(f){for(var a=[],b=0;b<f.length;b++){var c=f.charCodeAt(b);if(127>=c)a.push(f.charCodeAt(b));else{var d=b;55296<=c&&57343>=c&&b++;c=encodeURIComponent(f.slice(d,b+1)).substr(1).split("%");for(d=0;d<c.length;d++)a.push(parseInt(c[d],16))}}return a}function F(f){for(var a=[],b=0;b<f.length;b++)a.push(f.charCodeAt(b)&255);return a}function C(f,a,b,c){for(var d=0;d<c&&!(d+b>=a.length||d>=f.length);d++)a[d+b]=f[d];return d}function G(f){try{return decodeURIComponent(f)}catch(a){return String.fromCharCode(65533)}}
16
+ function L(f,a){q("number"===typeof f,"cannot write a non-number as a number");q(0<=f,"specified a negative value for writing an unsigned value");q(f<=a,"value is larger than maximum value for type");q(Math.floor(f)===f,"value has a fractional component")}function M(f,a,b){q("number"===typeof f,"cannot write a non-number as a number");q(f<=a,"value larger than maximum allowed value");q(f>=b,"value smaller than minimum allowed value");q(Math.floor(f)===f,"value has a fractional component")}function N(f,
17
+ a,b){q("number"===typeof f,"cannot write a non-number as a number");q(f<=a,"value larger than maximum allowed value");q(f>=b,"value smaller than minimum allowed value")}function q(f,a){if(!f)throw Error(a||"Failed assertion");}var J=h("base64-js"),I=h("ieee754");m.Buffer=e;m.SlowBuffer=e;m.INSPECT_MAX_BYTES=50;e.poolSize=8192;e._useTypedArrays=function(){try{var f=new ArrayBuffer(0),a=new Uint8Array(f);a.foo=function(){return 42};return 42===a.foo()&&"function"===typeof a.subarray}catch(b){return!1}}();
18
+ e.isEncoding=function(f){switch(String(f).toLowerCase()){case "hex":case "utf8":case "utf-8":case "ascii":case "binary":case "base64":case "raw":case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":return!0;default:return!1}};e.isBuffer=function(f){return!(null===f||void 0===f||!f._isBuffer)};e.byteLength=function(f,a){var b;f+="";switch(a||"utf8"){case "hex":b=f.length/2;break;case "utf8":case "utf-8":b=t(f).length;break;case "ascii":case "binary":case "raw":b=f.length;break;case "base64":b=J.toByteArray(f).length;
19
+ break;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":b=2*f.length;break;default:throw Error("Unknown encoding");}return b};e.concat=function(f,a){q(y(f),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array.");if(0===f.length)return new e(0);if(1===f.length)return f[0];var b;if("number"!==typeof a)for(b=a=0;b<f.length;b++)a+=f[b].length;var c=new e(a),d=0;for(b=0;b<f.length;b++){var k=f[b];k.copy(c,d);d+=k.length}return c};e.prototype.write=function(f,a,b,c){if(isFinite(a))isFinite(b)||
20
+ (c=b,b=void 0);else{var d=c;c=a;a=b;b=d}a=Number(a)||0;d=this.length-a;b?(b=Number(b),b>d&&(b=d)):b=d;c=String(c||"utf8").toLowerCase();switch(c){case "hex":a=Number(a)||0;c=this.length-a;b?(b=Number(b),b>c&&(b=c)):b=c;c=f.length;q(0===c%2,"Invalid hex string");b>c/2&&(b=c/2);for(c=0;c<b;c++)d=parseInt(f.substr(2*c,2),16),q(!isNaN(d),"Invalid hex string"),this[a+c]=d;e._charsWritten=2*c;f=c;break;case "utf8":case "utf-8":f=e._charsWritten=C(t(f),this,a,b);break;case "ascii":f=e._charsWritten=C(F(f),
21
+ this,a,b);break;case "binary":f=e._charsWritten=C(F(f),this,a,b);break;case "base64":f=e._charsWritten=C(J.toByteArray(f),this,a,b);break;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":for(var k,d=[],l=0;l<f.length;l++)k=f.charCodeAt(l),c=k>>8,k%=256,d.push(k),d.push(c);f=e._charsWritten=C(d,this,a,b);break;default:throw Error("Unknown encoding");}return f};e.prototype.toString=function(f,a,b){f=String(f||"utf8").toLowerCase();a=Number(a)||0;b=void 0!==b?Number(b):b=this.length;if(b===a)return"";
22
+ switch(f){case "hex":f=a;a=this.length;if(!f||0>f)f=0;if(!b||0>b||b>a)b=a;for(a="";f<b;f++)a+=H(this[f]);b=a;break;case "utf8":case "utf-8":var c=a;a=f="";for(b=Math.min(this.length,b);c<b;c++)127>=this[c]?(f+=G(a)+String.fromCharCode(this[c]),a=""):a+="%"+this[c].toString(16);b=f+G(a);break;case "ascii":b=p(this,a,b);break;case "binary":b=p(this,a,b);break;case "base64":f=a;b=0===f&&b===this.length?J.fromByteArray(this):J.fromByteArray(this.slice(f,b));break;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":b=
23
+ this.slice(a,b);f="";for(a=0;a<b.length;a+=2)f+=String.fromCharCode(b[a]+256*b[a+1]);b=f;break;default:throw Error("Unknown encoding");}return b};e.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};e.prototype.copy=function(a,b,c,d){c||(c=0);d||0===d||(d=this.length);b||(b=0);if(d!==c&&0!==a.length&&0!==this.length)if(q(d>=c,"sourceEnd < sourceStart"),q(0<=b&&b<a.length,"targetStart out of bounds"),q(0<=c&&c<this.length,"sourceStart out of bounds"),
24
+ q(0<=d&&d<=this.length,"sourceEnd out of bounds"),d>this.length&&(d=this.length),a.length-b<d-c&&(d=a.length-b+c),d-=c,100>d||!e._useTypedArrays)for(var k=0;k<d;k++)a[k+b]=this[k+c];else a._set(this.subarray(c,c+d),b)};e.prototype.slice=function(a,b){var c=this.length;a=E(a,c,0);b=E(b,c,c);if(e._useTypedArrays)return e._augment(this.subarray(a,b));for(var c=b-a,d=new e(c,void 0,!0),k=0;k<c;k++)d[k]=this[k+a];return d};e.prototype.get=function(a){console.log(".get() is deprecated. Access using array indexes instead.");
25
+ return this.readUInt8(a)};e.prototype.set=function(a,b){console.log(".set() is deprecated. Access using array indexes instead.");return this.writeUInt8(a,b)};e.prototype.readUInt8=function(a,b){b||(q(void 0!==a&&null!==a,"missing offset"),q(a<this.length,"Trying to read beyond buffer length"));if(!(a>=this.length))return this[a]};e.prototype.readUInt16LE=function(a,b){return v(this,a,!0,b)};e.prototype.readUInt16BE=function(a,b){return v(this,a,!1,b)};e.prototype.readUInt32LE=function(a,b){return A(this,
26
+ a,!0,b)};e.prototype.readUInt32BE=function(a,b){return A(this,a,!1,b)};e.prototype.readInt8=function(a,b){b||(q(void 0!==a&&null!==a,"missing offset"),q(a<this.length,"Trying to read beyond buffer length"));if(!(a>=this.length))return this[a]&128?-1*(255-this[a]+1):this[a]};e.prototype.readInt16LE=function(a,b){return g(this,a,!0,b)};e.prototype.readInt16BE=function(a,b){return g(this,a,!1,b)};e.prototype.readInt32LE=function(a,b){return d(this,a,!0,b)};e.prototype.readInt32BE=function(a,b){return d(this,
27
+ a,!1,b)};e.prototype.readFloatLE=function(a,b){return k(this,a,!0,b)};e.prototype.readFloatBE=function(a,b){return k(this,a,!1,b)};e.prototype.readDoubleLE=function(a,b){return l(this,a,!0,b)};e.prototype.readDoubleBE=function(a,b){return l(this,a,!1,b)};e.prototype.writeUInt8=function(a,b,c){c||(q(void 0!==a&&null!==a,"missing value"),q(void 0!==b&&null!==b,"missing offset"),q(b<this.length,"trying to write beyond buffer length"),L(a,255));b>=this.length||(this[b]=a)};e.prototype.writeUInt16LE=function(a,
28
+ b,d){c(this,a,b,!0,d)};e.prototype.writeUInt16BE=function(a,b,d){c(this,a,b,!1,d)};e.prototype.writeUInt32LE=function(b,c,d){a(this,b,c,!0,d)};e.prototype.writeUInt32BE=function(b,c,d){a(this,b,c,!1,d)};e.prototype.writeInt8=function(a,b,c){c||(q(void 0!==a&&null!==a,"missing value"),q(void 0!==b&&null!==b,"missing offset"),q(b<this.length,"Trying to write beyond buffer length"),M(a,127,-128));b>=this.length||(0<=a?this.writeUInt8(a,b,c):this.writeUInt8(255+a+1,b,c))};e.prototype.writeInt16LE=function(a,
29
+ c,d){b(this,a,c,!0,d)};e.prototype.writeInt16BE=function(a,c,d){b(this,a,c,!1,d)};e.prototype.writeInt32LE=function(a,b,c){z(this,a,b,!0,c)};e.prototype.writeInt32BE=function(a,b,c){z(this,a,b,!1,c)};e.prototype.writeFloatLE=function(a,b,c){D(this,a,b,!0,c)};e.prototype.writeFloatBE=function(a,b,c){D(this,a,b,!1,c)};e.prototype.writeDoubleLE=function(a,b,c){B(this,a,b,!0,c)};e.prototype.writeDoubleBE=function(a,b,c){B(this,a,b,!1,c)};e.prototype.fill=function(a,b,c){a||(a=0);b||(b=0);c||(c=this.length);
30
+ "string"===typeof a&&(a=a.charCodeAt(0));q("number"===typeof a&&!isNaN(a),"value is not a number");q(c>=b,"end < start");if(c!==b&&0!==this.length)for(q(0<=b&&b<this.length,"start out of bounds"),q(0<=c&&c<=this.length,"end out of bounds");b<c;b++)this[b]=a};e.prototype.inspect=function(){for(var a=[],b=this.length,c=0;c<b;c++)if(a[c]=H(this[c]),c===m.INSPECT_MAX_BYTES){a[c+1]="...";break}return"<Buffer "+a.join(" ")+">"};e.prototype.toArrayBuffer=function(){if("undefined"!==typeof Uint8Array){if(e._useTypedArrays)return(new e(this)).buffer;
31
+ for(var a=new Uint8Array(this.length),b=0,c=a.length;b<c;b+=1)a[b]=this[b];return a.buffer}throw Error("Buffer.toArrayBuffer not supported in this browser");};var u=e.prototype;e._augment=function(a){a._isBuffer=!0;a._get=a.get;a._set=a.set;a.get=u.get;a.set=u.set;a.write=u.write;a.toString=u.toString;a.toLocaleString=u.toString;a.toJSON=u.toJSON;a.copy=u.copy;a.slice=u.slice;a.readUInt8=u.readUInt8;a.readUInt16LE=u.readUInt16LE;a.readUInt16BE=u.readUInt16BE;a.readUInt32LE=u.readUInt32LE;a.readUInt32BE=
32
+ u.readUInt32BE;a.readInt8=u.readInt8;a.readInt16LE=u.readInt16LE;a.readInt16BE=u.readInt16BE;a.readInt32LE=u.readInt32LE;a.readInt32BE=u.readInt32BE;a.readFloatLE=u.readFloatLE;a.readFloatBE=u.readFloatBE;a.readDoubleLE=u.readDoubleLE;a.readDoubleBE=u.readDoubleBE;a.writeUInt8=u.writeUInt8;a.writeUInt16LE=u.writeUInt16LE;a.writeUInt16BE=u.writeUInt16BE;a.writeUInt32LE=u.writeUInt32LE;a.writeUInt32BE=u.writeUInt32BE;a.writeInt8=u.writeInt8;a.writeInt16LE=u.writeInt16LE;a.writeInt16BE=u.writeInt16BE;
33
+ a.writeInt32LE=u.writeInt32LE;a.writeInt32BE=u.writeInt32BE;a.writeFloatLE=u.writeFloatLE;a.writeFloatBE=u.writeFloatBE;a.writeDoubleLE=u.writeDoubleLE;a.writeDoubleBE=u.writeDoubleBE;a.fill=u.fill;a.inspect=u.inspect;a.toArrayBuffer=u.toArrayBuffer;return a}},{"base64-js":4,ieee754:5}],4:[function(h,r,m){(function(e){function p(e){e=e.charCodeAt(0);if(43===e)return 62;if(47===e)return 63;if(48>e)return-1;if(58>e)return e-48+52;if(91>e)return e-65;if(123>e)return e-97+26}var v="undefined"!==typeof Uint8Array?
34
+ Uint8Array:Array;e.toByteArray=function(e){function g(c){a[b++]=c}var d,k,l,c,a;if(0<e.length%4)throw Error("Invalid string. Length must be a multiple of 4");d=e.length;c="="===e.charAt(d-2)?2:"="===e.charAt(d-1)?1:0;a=new v(3*e.length/4-c);k=0<c?e.length-4:e.length;var b=0;for(d=0;d<k;d+=4)l=p(e.charAt(d))<<18|p(e.charAt(d+1))<<12|p(e.charAt(d+2))<<6|p(e.charAt(d+3)),g((l&16711680)>>16),g((l&65280)>>8),g(l&255);2===c?(l=p(e.charAt(d))<<2|p(e.charAt(d+1))>>4,g(l&255)):1===c&&(l=p(e.charAt(d))<<10|
35
+ p(e.charAt(d+1))<<4|p(e.charAt(d+2))>>2,g(l>>8&255),g(l&255));return a};e.fromByteArray=function(e){var g,d=e.length%3,k="",l,c;g=0;for(c=e.length-d;g<c;g+=3)l=(e[g]<<16)+(e[g+1]<<8)+e[g+2],l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(l>>18&63)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(l>>12&63)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(l>>6&63)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(l&
36
+ 63),k+=l;switch(d){case 1:l=e[e.length-1];k+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(l>>2);k+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(l<<4&63);k+="==";break;case 2:l=(e[e.length-2]<<8)+e[e.length-1],k+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(l>>10),k+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(l>>4&63),k+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(l<<
37
+ 2&63),k+="="}return k}})("undefined"===typeof m?this.base64js={}:m)},{}],5:[function(h,r,m){m.read=function(e,p,v,h,g){var d;d=8*g-h-1;var k=(1<<d)-1,l=k>>1,c=-7;g=v?g-1:0;var a=v?-1:1,b=e[p+g];g+=a;v=b&(1<<-c)-1;b>>=-c;for(c+=d;0<c;v=256*v+e[p+g],g+=a,c-=8);d=v&(1<<-c)-1;v>>=-c;for(c+=h;0<c;d=256*d+e[p+g],g+=a,c-=8);if(0===v)v=1-l;else{if(v===k)return d?NaN:Infinity*(b?-1:1);d+=Math.pow(2,h);v-=l}return(b?-1:1)*d*Math.pow(2,v-h)};m.write=function(e,p,v,h,g,d){var k,l=8*d-g-1,c=(1<<l)-1,a=c>>1,b=
38
+ 23===g?Math.pow(2,-24)-Math.pow(2,-77):0;d=h?0:d-1;var z=h?1:-1,D=0>p||0===p&&0>1/p?1:0;p=Math.abs(p);isNaN(p)||Infinity===p?(p=isNaN(p)?1:0,h=c):(h=Math.floor(Math.log(p)/Math.LN2),1>p*(k=Math.pow(2,-h))&&(h--,k*=2),p=1<=h+a?p+b/k:p+b*Math.pow(2,1-a),2<=p*k&&(h++,k/=2),h+a>=c?(p=0,h=c):1<=h+a?(p=(p*k-1)*Math.pow(2,g),h+=a):(p=p*Math.pow(2,a-1)*Math.pow(2,g),h=0));for(;8<=g;e[v+d]=p&255,d+=z,p/=256,g-=8);h=h<<g|p;for(l+=g;0<l;e[v+d]=h&255,d+=z,h/=256,l-=8);e[v+d-z]|=128*D}},{}],6:[function(h,r,m){function e(){}
39
+ h=r.exports={};h.nextTick=function(){if("undefined"!==typeof window&&window.setImmediate)return function(e){return window.setImmediate(e)};if("undefined"!==typeof window&&window.postMessage&&window.addEventListener){var e=[];window.addEventListener("message",function(h){var m=h.source;m!==window&&null!==m||"process-tick"!==h.data||(h.stopPropagation(),0<e.length&&e.shift()())},!0);return function(h){e.push(h);window.postMessage("process-tick","*")}}return function(e){setTimeout(e,0)}}();h.title="browser";
40
+ h.browser=!0;h.env={};h.argv=[];h.on=e;h.once=e;h.off=e;h.emit=e;h.binding=function(e){throw Error("process.binding is not supported");};h.cwd=function(){return"/"};h.chdir=function(e){throw Error("process.chdir is not supported");}},{}],7:[function(h,r,m){(function(e){function h(d,k){for(var e=0,c=d.length-1;0<=c;c--){var a=d[c];"."===a?d.splice(c,1):".."===a?(d.splice(c,1),e++):e&&(d.splice(c,1),e--)}if(k)for(;e--;e)d.unshift("..");return d}function v(d,k){if(d.filter)return d.filter(k);for(var e=
41
+ [],c=0;c<d.length;c++)k(d[c],c,d)&&e.push(d[c]);return e}var r=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;m.resolve=function(){for(var d="",k=!1,l=arguments.length-1;-1<=l&&!k;l--){var c=0<=l?arguments[l]:e.cwd();if("string"!==typeof c)throw new TypeError("Arguments to path.resolve must be strings");c&&(d=c+"/"+d,k="/"===c.charAt(0))}d=h(v(d.split("/"),function(a){return!!a}),!k).join("/");return(k?"/":"")+d||"."};m.normalize=function(d){var e=m.isAbsolute(d),l="/"===g(d,-1);
42
+ (d=h(v(d.split("/"),function(c){return!!c}),!e).join("/"))||e||(d=".");d&&l&&(d+="/");return(e?"/":"")+d};m.isAbsolute=function(d){return"/"===d.charAt(0)};m.join=function(){var d=Array.prototype.slice.call(arguments,0);return m.normalize(v(d,function(d,e){if("string"!==typeof d)throw new TypeError("Arguments to path.join must be strings");return d}).join("/"))};m.relative=function(d,e){function l(a){for(var b=0;b<a.length&&""===a[b];b++);for(var c=a.length-1;0<=c&&""===a[c];c--);return b>c?[]:a.slice(b,
43
+ c-b+1)}d=m.resolve(d).substr(1);e=m.resolve(e).substr(1);for(var c=l(d.split("/")),a=l(e.split("/")),b=Math.min(c.length,a.length),g=b,h=0;h<b;h++)if(c[h]!==a[h]){g=h;break}b=[];for(h=g;h<c.length;h++)b.push("..");b=b.concat(a.slice(g));return b.join("/")};m.sep="/";m.delimiter=":";m.dirname=function(d){var e=r.exec(d).slice(1);d=e[0];e=e[1];if(!d&&!e)return".";e&&(e=e.substr(0,e.length-1));return d+e};m.basename=function(d,e){var l=r.exec(d).slice(1)[2];e&&l.substr(-1*e.length)===e&&(l=l.substr(0,
44
+ l.length-e.length));return l};m.extname=function(d){return r.exec(d).slice(1)[3]};var g="b"==="ab".substr(-1)?function(d,e,l){return d.substr(e,l)}:function(d,e,l){0>e&&(e=d.length+e);return d.substr(e,l)}}).call(this,h("node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"))},{"node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":6}],8:[function(h,r,m){m.SourceMapGenerator=h("./source-map/source-map-generator").SourceMapGenerator;
45
+ m.SourceMapConsumer=h("./source-map/source-map-consumer").SourceMapConsumer;m.SourceNode=h("./source-map/source-node").SourceNode},{"./source-map/source-map-consumer":13,"./source-map/source-map-generator":14,"./source-map/source-node":15}],9:[function(h,r,m){if("function"!==typeof e)var e=h("amdefine")(r,h);e(function(e,h,m){function g(){this._array=[];this._set={}}var d=e("./util");g.fromArray=function(d,e){for(var c=new g,a=0,b=d.length;a<b;a++)c.add(d[a],e);return c};g.prototype.add=function(e,
46
+ l){var c=this.has(e),a=this._array.length;c&&!l||this._array.push(e);c||(this._set[d.toSetString(e)]=a)};g.prototype.has=function(e){return Object.prototype.hasOwnProperty.call(this._set,d.toSetString(e))};g.prototype.indexOf=function(e){if(this.has(e))return this._set[d.toSetString(e)];throw Error('"'+e+'" is not in the set.');};g.prototype.at=function(d){if(0<=d&&d<this._array.length)return this._array[d];throw Error("No element indexed by "+d);};g.prototype.toArray=function(){return this._array.slice()};
47
+ h.ArraySet=g})},{"./util":16,amdefine:17}],10:[function(h,r,m){if("function"!==typeof e)var e=h("amdefine")(r,h);e(function(e,h,m){var g=e("./base64");h.encode=function(d){var e="",l=0>d?(-d<<1)+1:(d<<1)+0;do d=l&31,l>>>=5,0<l&&(d|=32),e+=g.encode(d);while(0<l);return e};h.decode=function(d){var e=0,l=d.length,c=0,a=0,b,h;do{if(e>=l)throw Error("Expected more digits in base 64 VLQ value.");h=g.decode(d.charAt(e++));b=!!(h&32);h&=31;c+=h<<a;a+=5}while(b);l=c>>1;return{value:1===(c&1)?-l:l,rest:d.slice(e)}}})},
48
+ {"./base64":11,amdefine:17}],11:[function(h,r,m){if("function"!==typeof e)var e=h("amdefine")(r,h);e(function(e,h,m){var g={},d={};"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("").forEach(function(e,l){g[e]=l;d[l]=e});h.encode=function(e){if(e in d)return d[e];throw new TypeError("Must be between 0 and 63: "+e);};h.decode=function(d){if(d in g)return g[d];throw new TypeError("Not a valid base 64 digit: "+d);}})},{amdefine:17}],12:[function(h,r,m){if("function"!==typeof e)var e=
49
+ h("amdefine")(r,h);e(function(e,h,m){function g(d,e,l,c,a){var b=Math.floor((e-d)/2)+d,h=a(l,c[b],!0);return 0===h?c[b]:0<h?1<e-b?g(b,e,l,c,a):c[b]:1<b-d?g(d,b,l,c,a):0>d?null:c[d]}h.search=function(d,e,l){return 0<e.length?g(-1,e.length,d,e,l):null}})},{amdefine:17}],13:[function(h,r,m){if("function"!==typeof e)var e=h("amdefine")(r,h);e(function(e,h,m){function g(a){var b=a;"string"===typeof a&&(b=JSON.parse(a.replace(/^\)\]\}'/,"")));a=d.getArg(b,"version");var c=d.getArg(b,"sources"),e=d.getArg(b,
50
+ "names",[]),g=d.getArg(b,"sourceRoot",null),h=d.getArg(b,"sourcesContent",null),k=d.getArg(b,"mappings"),b=d.getArg(b,"file",null);if(a!=this._version)throw Error("Unsupported version: "+a);this._names=l.fromArray(e,!0);this._sources=l.fromArray(c,!0);this.sourceRoot=g;this.sourcesContent=h;this._mappings=k;this.file=b}var d=e("./util"),k=e("./binary-search"),l=e("./array-set").ArraySet,c=e("./base64-vlq");g.fromSourceMap=function(a){var b=Object.create(g.prototype);b._names=l.fromArray(a._names.toArray(),
51
+ !0);b._sources=l.fromArray(a._sources.toArray(),!0);b.sourceRoot=a._sourceRoot;b.sourcesContent=a._generateSourcesContent(b._sources.toArray(),b.sourceRoot);b.file=a._file;b.__generatedMappings=a._mappings.slice().sort(d.compareByGeneratedPositions);b.__originalMappings=a._mappings.slice().sort(d.compareByOriginalPositions);return b};g.prototype._version=3;Object.defineProperty(g.prototype,"sources",{get:function(){return this._sources.toArray().map(function(a){return this.sourceRoot?d.join(this.sourceRoot,
52
+ a):a},this)}});g.prototype.__generatedMappings=null;Object.defineProperty(g.prototype,"_generatedMappings",{get:function(){this.__generatedMappings||(this.__generatedMappings=[],this.__originalMappings=[],this._parseMappings(this._mappings,this.sourceRoot));return this.__generatedMappings}});g.prototype.__originalMappings=null;Object.defineProperty(g.prototype,"_originalMappings",{get:function(){this.__originalMappings||(this.__generatedMappings=[],this.__originalMappings=[],this._parseMappings(this._mappings,
53
+ this.sourceRoot));return this.__originalMappings}});g.prototype._parseMappings=function(a,b){for(var e=1,g=0,l=0,h=0,k=0,y=0,m=/^[,;]/,t=a,p;0<t.length;)if(";"===t.charAt(0))e++,t=t.slice(1),g=0;else if(","===t.charAt(0))t=t.slice(1);else{p={};p.generatedLine=e;t=c.decode(t);p.generatedColumn=g+t.value;g=p.generatedColumn;t=t.rest;if(0<t.length&&!m.test(t.charAt(0))){t=c.decode(t);p.source=this._sources.at(k+t.value);k+=t.value;t=t.rest;if(0===t.length||m.test(t.charAt(0)))throw Error("Found a source, but no line and column");
54
+ t=c.decode(t);p.originalLine=l+t.value;l=p.originalLine;p.originalLine+=1;t=t.rest;if(0===t.length||m.test(t.charAt(0)))throw Error("Found a source and line, but no column");t=c.decode(t);p.originalColumn=h+t.value;h=p.originalColumn;t=t.rest;0<t.length&&!m.test(t.charAt(0))&&(t=c.decode(t),p.name=this._names.at(y+t.value),y+=t.value,t=t.rest)}this.__generatedMappings.push(p);"number"===typeof p.originalLine&&this.__originalMappings.push(p)}this.__generatedMappings.sort(d.compareByGeneratedPositions);
55
+ this.__originalMappings.sort(d.compareByOriginalPositions)};g.prototype._findMapping=function(a,b,c,d,e){if(0>=a[c])throw new TypeError("Line must be greater than or equal to 1, got "+a[c]);if(0>a[d])throw new TypeError("Column must be greater than or equal to 0, got "+a[d]);return k.search(a,b,e)};g.prototype.originalPositionFor=function(a){a={generatedLine:d.getArg(a,"line"),generatedColumn:d.getArg(a,"column")};if(a=this._findMapping(a,this._generatedMappings,"generatedLine","generatedColumn",
56
+ d.compareByGeneratedPositions)){var b=d.getArg(a,"source",null);b&&this.sourceRoot&&(b=d.join(this.sourceRoot,b));return{source:b,line:d.getArg(a,"originalLine",null),column:d.getArg(a,"originalColumn",null),name:d.getArg(a,"name",null)}}return{source:null,line:null,column:null,name:null}};g.prototype.sourceContentFor=function(a){if(!this.sourcesContent)return null;this.sourceRoot&&(a=d.relative(this.sourceRoot,a));if(this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];var b;
57
+ if(this.sourceRoot&&(b=d.urlParse(this.sourceRoot))){var c=a.replace(/^file:\/\//,"");if("file"==b.scheme&&this._sources.has(c))return this.sourcesContent[this._sources.indexOf(c)];if((!b.path||"/"==b.path)&&this._sources.has("/"+a))return this.sourcesContent[this._sources.indexOf("/"+a)]}throw Error('"'+a+'" is not in the SourceMap.');};g.prototype.generatedPositionFor=function(a){a={source:d.getArg(a,"source"),originalLine:d.getArg(a,"line"),originalColumn:d.getArg(a,"column")};this.sourceRoot&&
58
+ (a.source=d.relative(this.sourceRoot,a.source));return(a=this._findMapping(a,this._originalMappings,"originalLine","originalColumn",d.compareByOriginalPositions))?{line:d.getArg(a,"generatedLine",null),column:d.getArg(a,"generatedColumn",null)}:{line:null,column:null}};g.GENERATED_ORDER=1;g.ORIGINAL_ORDER=2;g.prototype.eachMapping=function(a,b,c){b=b||null;switch(c||g.GENERATED_ORDER){case g.GENERATED_ORDER:c=this._generatedMappings;break;case g.ORIGINAL_ORDER:c=this._originalMappings;break;default:throw Error("Unknown order of iteration.");
59
+ }var e=this.sourceRoot;c.map(function(a){var b=a.source;b&&e&&(b=d.join(e,b));return{source:b,generatedLine:a.generatedLine,generatedColumn:a.generatedColumn,originalLine:a.originalLine,originalColumn:a.originalColumn,name:a.name}}).forEach(a,b)};h.SourceMapConsumer=g})},{"./array-set":9,"./base64-vlq":10,"./binary-search":12,"./util":16,amdefine:17}],14:[function(h,r,m){if("function"!==typeof e)var e=h("amdefine")(r,h);e(function(e,h,m){function g(c){this._file=k.getArg(c,"file");this._sourceRoot=
60
+ k.getArg(c,"sourceRoot",null);this._sources=new l;this._names=new l;this._mappings=[];this._sourcesContents=null}var d=e("./base64-vlq"),k=e("./util"),l=e("./array-set").ArraySet;g.prototype._version=3;g.fromSourceMap=function(c){var a=c.sourceRoot,b=new g({file:c.file,sourceRoot:a});c.eachMapping(function(c){var d={generated:{line:c.generatedLine,column:c.generatedColumn}};c.source&&(d.source=c.source,a&&(d.source=k.relative(a,d.source)),d.original={line:c.originalLine,column:c.originalColumn},c.name&&
61
+ (d.name=c.name));b.addMapping(d)});c.sources.forEach(function(a){var d=c.sourceContentFor(a);d&&b.setSourceContent(a,d)});return b};g.prototype.addMapping=function(c){var a=k.getArg(c,"generated"),b=k.getArg(c,"original",null),d=k.getArg(c,"source",null);c=k.getArg(c,"name",null);this._validateMapping(a,b,d,c);d&&!this._sources.has(d)&&this._sources.add(d);c&&!this._names.has(c)&&this._names.add(c);this._mappings.push({generatedLine:a.line,generatedColumn:a.column,originalLine:null!=b&&b.line,originalColumn:null!=
62
+ b&&b.column,source:d,name:c})};g.prototype.setSourceContent=function(c,a){var b=c;this._sourceRoot&&(b=k.relative(this._sourceRoot,b));null!==a?(this._sourcesContents||(this._sourcesContents={}),this._sourcesContents[k.toSetString(b)]=a):(delete this._sourcesContents[k.toSetString(b)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))};g.prototype.applySourceMap=function(c,a){a||(a=c.file);var b=this._sourceRoot;b&&(a=k.relative(b,a));var d=new l,e=new l;this._mappings.forEach(function(g){if(g.source===
63
+ a&&g.originalLine){var l=c.originalPositionFor({line:g.originalLine,column:g.originalColumn});null!==l.source&&(g.source=b?k.relative(b,l.source):l.source,g.originalLine=l.line,g.originalColumn=l.column,null!==l.name&&null!==g.name&&(g.name=l.name))}(l=g.source)&&!d.has(l)&&d.add(l);(g=g.name)&&!e.has(g)&&e.add(g)},this);this._sources=d;this._names=e;c.sources.forEach(function(a){var d=c.sourceContentFor(a);d&&(b&&(a=k.relative(b,a)),this.setSourceContent(a,d))},this)};g.prototype._validateMapping=
64
+ function(c,a,b,d){if(!(c&&"line"in c&&"column"in c&&0<c.line&&0<=c.column&&!a&&!b&&!d||c&&"line"in c&&"column"in c&&a&&"line"in a&&"column"in a&&0<c.line&&0<=c.column&&0<a.line&&0<=a.column&&b))throw Error("Invalid mapping: "+JSON.stringify({generated:c,source:b,original:a,name:d}));};g.prototype._serializeMappings=function(){var c=0,a=1,b=0,e=0,g=0,l=0,h="",w;this._mappings.sort(k.compareByGeneratedPositions);for(var y=0,p=this._mappings.length;y<p;y++){w=this._mappings[y];if(w.generatedLine!==a)for(c=
65
+ 0;w.generatedLine!==a;)h+=";",a++;else if(0<y){if(!k.compareByGeneratedPositions(w,this._mappings[y-1]))continue;h+=","}h+=d.encode(w.generatedColumn-c);c=w.generatedColumn;w.source&&(h+=d.encode(this._sources.indexOf(w.source)-l),l=this._sources.indexOf(w.source),h+=d.encode(w.originalLine-1-e),e=w.originalLine-1,h+=d.encode(w.originalColumn-b),b=w.originalColumn,w.name&&(h+=d.encode(this._names.indexOf(w.name)-g),g=this._names.indexOf(w.name)))}return h};g.prototype._generateSourcesContent=function(c,
66
+ a){return c.map(function(b){if(!this._sourcesContents)return null;a&&(b=k.relative(a,b));b=k.toSetString(b);return Object.prototype.hasOwnProperty.call(this._sourcesContents,b)?this._sourcesContents[b]:null},this)};g.prototype.toJSON=function(){var c={version:this._version,file:this._file,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};this._sourceRoot&&(c.sourceRoot=this._sourceRoot);this._sourcesContents&&(c.sourcesContent=this._generateSourcesContent(c.sources,
67
+ c.sourceRoot));return c};g.prototype.toString=function(){return JSON.stringify(this)};h.SourceMapGenerator=g})},{"./array-set":9,"./base64-vlq":10,"./util":16,amdefine:17}],15:[function(h,r,m){if("function"!==typeof e)var e=h("amdefine")(r,h);e(function(e,h,m){function g(d,c,a,b,e){this.children=[];this.sourceContents={};this.line=void 0===d?null:d;this.column=void 0===c?null:c;this.source=void 0===a?null:a;this.name=void 0===e?null:e;null!=b&&this.add(b)}var d=e("./source-map-generator").SourceMapGenerator,
68
+ k=e("./util");g.fromStringWithSourceMap=function(d,c){function a(a,c){null===a||void 0===a.source?b.add(c):b.add(new g(a.originalLine,a.originalColumn,a.source,c,a.name))}var b=new g,e=d.split("\n"),h=1,k=0,p=null;c.eachMapping(function(c){if(null===p){for(;h<c.generatedLine;)b.add(e.shift()+"\n"),h++;if(k<c.generatedColumn){var d=e[0];b.add(d.substr(0,c.generatedColumn));e[0]=d.substr(c.generatedColumn);k=c.generatedColumn}}else{if(h<c.generatedLine){var g="";do g+=e.shift()+"\n",h++,k=0;while(h<
69
+ c.generatedLine);k<c.generatedColumn&&(d=e[0],g+=d.substr(0,c.generatedColumn),e[0]=d.substr(c.generatedColumn),k=c.generatedColumn)}else d=e[0],g=d.substr(0,c.generatedColumn-k),e[0]=d.substr(c.generatedColumn-k),k=c.generatedColumn;a(p,g)}p=c},this);a(p,e.join("\n"));c.sources.forEach(function(a){var d=c.sourceContentFor(a);d&&b.setSourceContent(a,d)});return b};g.prototype.add=function(d){if(Array.isArray(d))d.forEach(function(c){this.add(c)},this);else if(d instanceof g||"string"===typeof d)d&&
70
+ this.children.push(d);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+d);return this};g.prototype.prepend=function(d){if(Array.isArray(d))for(var c=d.length-1;0<=c;c--)this.prepend(d[c]);else if(d instanceof g||"string"===typeof d)this.children.unshift(d);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+d);return this};g.prototype.walk=function(d){for(var c,a=0,b=this.children.length;a<b;a++)c=
71
+ this.children[a],c instanceof g?c.walk(d):""!==c&&d(c,{source:this.source,line:this.line,column:this.column,name:this.name})};g.prototype.join=function(d){var c,a,b=this.children.length;if(0<b){c=[];for(a=0;a<b-1;a++)c.push(this.children[a]),c.push(d);c.push(this.children[a]);this.children=c}return this};g.prototype.replaceRight=function(d,c){var a=this.children[this.children.length-1];a instanceof g?a.replaceRight(d,c):"string"===typeof a?this.children[this.children.length-1]=a.replace(d,c):this.children.push("".replace(d,
72
+ c));return this};g.prototype.setSourceContent=function(d,c){this.sourceContents[k.toSetString(d)]=c};g.prototype.walkSourceContents=function(d){for(var c=0,a=this.children.length;c<a;c++)this.children[c]instanceof g&&this.children[c].walkSourceContents(d);for(var b=Object.keys(this.sourceContents),c=0,a=b.length;c<a;c++)d(k.fromSetString(b[c]),this.sourceContents[b[c]])};g.prototype.toString=function(){var d="";this.walk(function(c){d+=c});return d};g.prototype.toStringWithSourceMap=function(e){var c=
73
+ "",a=1,b=0,g=new d(e),h=!1,k=null,p=null,w=null,m=null;this.walk(function(d,e){c+=d;null!==e.source&&null!==e.line&&null!==e.column?(k===e.source&&p===e.line&&w===e.column&&m===e.name||g.addMapping({source:e.source,original:{line:e.line,column:e.column},generated:{line:a,column:b},name:e.name}),k=e.source,p=e.line,w=e.column,m=e.name,h=!0):h&&(g.addMapping({generated:{line:a,column:b}}),k=null,h=!1);d.split("").forEach(function(c){"\n"===c?(a++,b=0):b++})});this.walkSourceContents(function(a,b){g.setSourceContent(a,
74
+ b)});return{code:c,map:g}};h.SourceNode=g})},{"./source-map-generator":14,"./util":16,amdefine:17}],16:[function(h,r,m){if("function"!==typeof e)var e=h("amdefine")(r,h);e(function(e,h,m){function g(a){return(a=a.match(l))?{scheme:a[1],auth:a[3],host:a[4],port:a[6],path:a[7]}:null}function d(a){var b=a.scheme+"://";a.auth&&(b+=a.auth+"@");a.host&&(b+=a.host);a.port&&(b+=":"+a.port);a.path&&(b+=a.path);return b}function k(a,b){var c=a||"",d=b||"";return(c>d)-(c<d)}h.getArg=function(a,b,c){if(b in a)return a[b];
75
+ if(3===arguments.length)return c;throw Error('"'+b+'" is a required argument.');};var l=/([\w+\-.]+):\/\/((\w+:\w+)@)?([\w.]+)?(:(\d+))?(\S+)?/,c=/^data:.+\,.+/;h.urlParse=g;h.urlGenerate=d;h.join=function(a,b){var e;return b.match(l)||b.match(c)?b:"/"===b.charAt(0)&&(e=g(a))?(e.path=b,d(e)):a.replace(/\/$/,"")+"/"+b};h.toSetString=function(a){return"$"+a};h.fromSetString=function(a){return a.substr(1)};h.relative=function(a,b){a=a.replace(/\/$/,"");var c=g(a);return"/"==b.charAt(0)&&c&&"/"==c.path?
76
+ b.slice(1):0===b.indexOf(a+"/")?b.substr(a.length+1):b};h.compareByOriginalPositions=function(a,b,c){var d;return(d=k(a.source,b.source))||(d=a.originalLine-b.originalLine)||(d=a.originalColumn-b.originalColumn)||c||(d=k(a.name,b.name))?d:(d=a.generatedLine-b.generatedLine)?d:a.generatedColumn-b.generatedColumn};h.compareByGeneratedPositions=function(a,b,c){var d;return(d=a.generatedLine-b.generatedLine)||(d=a.generatedColumn-b.generatedColumn)||c||(d=k(a.source,b.source))||(d=a.originalLine-b.originalLine)?
77
+ d:(d=a.originalColumn-b.originalColumn)?d:k(a.name,b.name)}})},{amdefine:17}],17:[function(h,r,m){(function(e,p){r.exports=function(m,r){function g(a,b){var c;if(a&&"."===a.charAt(0)&&b){c=b.split("/");c=c.slice(0,c.length-1);var d=c=c.concat(a.split("/")),e,g;for(e=0;d[e];e+=1)if(g=d[e],"."===g)d.splice(e,1),--e;else if(".."===g)if(1!==e||".."!==d[2]&&".."!==d[0])0<e&&(d.splice(e-1,2),e-=2);else break;a=c.join("/")}return a}function d(a){return function(b){return g(b,a)}}function k(a){function c(d){b[a]=
78
+ d}c.fromText=function(a,b){throw Error("amdefine does not implement load.fromText");};return c}function l(a,c,d){var e,g,h;if(a)g=b[a]={},h={id:a,uri:p,exports:g},e=B(r,g,h,a);else{if(z)throw Error("amdefine with no module ID cannot be called more than once per file.");z=!0;g=m.exports;h=m;e=B(r,g,h,m.id)}c&&(c=c.map(function(a){return e(a)}));c="function"===typeof d?d.apply(h.exports,c):d;void 0!==c&&(h.exports=c,a&&(b[a]=h.exports))}function c(b,c,d){Array.isArray(b)?(d=c,c=b,b=void 0):"string"!==
79
+ typeof b&&(d=b,b=c=void 0);c&&!Array.isArray(c)&&(d=c,c=void 0);c||(c=["require","exports","module"]);b?a[b]=[b,c,d]:l(b,c,d)}var a={},b={},z=!1,D=h("path"),B,E;B=function(a,b,c,d){function h(g,k){if("string"===typeof g)return E(a,b,c,g,d);g=g.map(function(e){return E(a,b,c,e,d)});e.nextTick(function(){k.apply(null,g)})}h.toUrl=function(a){return 0===a.indexOf(".")?g(a,D.dirname(c.filename)):a};return h};r=r||function(){return m.require.apply(m,arguments)};E=function(c,e,h,m,p){var r=m.indexOf("!"),
80
+ G=m;if(-1===r){m=g(m,p);if("require"===m)return B(c,e,h,p);if("exports"===m)return e;if("module"===m)return h;if(b.hasOwnProperty(m))return b[m];if(a[m])return l.apply(null,a[m]),b[m];if(c)return c(G);throw Error("No module with ID: "+m);}G=m.substring(0,r);m=m.substring(r+1,m.length);r=E(c,e,h,G,p);m=r.normalize?r.normalize(m,d(p)):g(m,p);b[m]||r.load(m,B(c,e,h,p),k(m),{});return b[m]};c.require=function(c){if(b[c])return b[c];if(a[c])return l.apply(null,a[c]),b[c]};c.amd={};return c}}).call(this,
81
+ h("node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"),"/node_modules/source-map/node_modules/amdefine/amdefine.js")},{"node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":6,path:7}],18:[function(h,r,m){(function(e,p){function r(){return"undefined"!==typeof window&&"function"===typeof XMLHttpRequest}function A(a){if(a in F)return F[a];try{if(r()){var b=new XMLHttpRequest;b.open("GET",a,!1);b.send(null);var c=4===b.readyState?
82
+ b.responseText:null}else c=y.readFileSync(a,"utf8")}catch(d){c=null}return F[a]=c}function g(a,b){if(!a)return b;var c=w.dirname(a),d=/^\w+:\/\/[^\/]*/.exec(c),d=d?d[0]:"";return d+w.resolve(c.slice(d.length),b)}function d(a){var b;a:{if(r()&&(b=new XMLHttpRequest,b.open("GET",a,!1),b.send(null),b=b.getResponseHeader("SourceMap")||b.getResponseHeader("X-SourceMap")))break a;b=A(a);b=(b=/\/\/[#@]\s*sourceMappingURL=(.*)\s*$/m.exec(b))?b[1]:null}if(!b)return null;"data:application/json;base64,"==b.slice(0,
83
+ 29).toLowerCase()?(a=(new p(b.slice(29),"base64")).toString(),b=null):(b=g(a,b),a=A(b,"utf8"));return a?{url:b,map:a}:null}function k(a){var b=C[a.source];if(!b){var c=d(a.source);c?(b=C[a.source]={url:c.url,map:new E(c.map)},b.map.sourcesContent&&b.map.sources.forEach(function(a,c){var d=b.map.sourcesContent[c];if(d){var e=g(b.url,a);F[e]=d}})):b=C[a.source]={url:null,map:null}}return b&&b.map&&(c=b.map.originalPositionFor(a),null!==c.source)?(c.source=g(b.url,c.source),c):a}function l(a){var b=
84
+ /^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(a);return b?(a=k({source:b[2],line:b[3],column:b[4]-1}),"eval at "+b[1]+" ("+a.source+":"+a.line+":"+(a.column+1)+")"):(b=/^eval at ([^(]+) \((.+)\)$/.exec(a))?"eval at "+b[1]+" ("+l(b[2])+")":a}function c(){var a,b="";this.isNative()?b="native":(a=this.getScriptNameOrSourceURL(),!a&&this.isEval()&&(b=this.getEvalOrigin(),b+=", "),b=a?b+a:b+"<anonymous>",a=this.getLineNumber(),null!=a&&(b+=":"+a,(a=this.getColumnNumber())&&(b+=":"+a)));a="";var c=this.getFunctionName(),
85
+ d=!0,e=this.isConstructor();if(this.isToplevel()||e)e?a+="new "+(c||"<anonymous>"):c?a+=c:(a+=b,d=!1);else{var e=this.getTypeName(),g=this.getMethodName();c?(e&&0!=c.indexOf(e)&&(a+=e+"."),a+=c,g&&c.indexOf("."+g)!=c.length-g.length-1&&(a+=" [as "+g+"]")):a+=e+"."+(g||"<anonymous>")}d&&(a+=" ("+b+")");return a}function a(a){var b={};Object.getOwnPropertyNames(Object.getPrototypeOf(a)).forEach(function(c){b[c]=/^(?:is|get)/.test(c)?function(){return a[c].call(a)}:a[c]});b.toString=c;return b}function b(b){var c=
86
+ b.getFileName()||b.getScriptNameOrSourceURL();if(c){var d=k({source:c,line:b.getLineNumber(),column:b.getColumnNumber()-1});b=a(b);b.getFileName=function(){return d.source};b.getLineNumber=function(){return d.line};b.getColumnNumber=function(){return d.column+1};b.getScriptNameOrSourceURL=function(){return d.source};return b}var e=b.isEval()&&b.getEvalOrigin();e&&(e=l(e),b=a(b),b.getEvalOrigin=function(){return e});return b}function z(a,c){t&&(F={},C={});return a+c.map(function(a){return"\n at "+
87
+ b(a)}).join("")}function D(a){var b=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(a.stack);if(b){a=b[1];var c=+b[2],b=+b[3],d=F[a];!d&&y.existsSync(a)&&(d=y.readFileSync(a,"utf8"));if(d&&(d=d.split(/(?:\r\n|\r|\n)/)[c-1]))return"\n"+a+":"+c+"\n"+d+"\n"+Array(b).join(" ")+"^"}return null}function B(a){if(a&&a.stack){var b=D(a);null!==b&&console.log(b);console.log(a.stack)}else console.log("Uncaught exception:",a);e.exit(1)}var E=h("source-map").SourceMapConsumer,w=h("path"),y=h("fs"),H=!1,t=!1,F={},C=
88
+ {};m.wrapCallSite=b;m.getErrorSource=D;m.mapSourcePosition=k;m.retrieveSourceMap=d;m.install=function(a){if(!H){H=!0;Error.prepareStackTrace=z;a=a||{};var b="handleUncaughtExceptions"in a?a.handleUncaughtExceptions:!0;t="emptyCacheBetweenOperations"in a?a.emptyCacheBetweenOperations:!1;a.retrieveFile&&(A=a.retrieveFile);a.retrieveSourceMap&&(d=a.retrieveSourceMap);if(b&&!r())e.on("uncaughtException",B)}}}).call(this,h("node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"),
89
+ h("buffer").Buffer)},{"node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":6,buffer:3,fs:2,path:7,"source-map":8}]},{},[1]);return K});
@@ -0,0 +1,89 @@
1
+ /*
2
+ * Support for source maps in V8 stack traces
3
+ * https://github.com/evanw/node-source-map-support
4
+ */
5
+ (this.define||function(K,O){this.sourceMapSupport=O()})("browser-source-map-support",function(K){(function h(r,m,e){function p(g,d){if(!m[g]){if(!r[g]){var k="function"==typeof require&&require;if(!d&&k)return k(g,!0);if(v)return v(g,!0);throw Error("Cannot find module '"+g+"'");}k=m[g]={exports:{}};r[g][0].call(k.exports,function(d){var c=r[g][1][d];return p(c?c:d)},k,k.exports,h,r,m,e)}return m[g].exports}for(var v="function"==typeof require&&require,A=0;A<e.length;A++)p(e[A]);return p})({1:[function(h,
6
+ r,m){K=h("./source-map-support")},{"./source-map-support":18}],2:[function(h,r,m){},{}],3:[function(h,r,m){function e(f,n,x){if(!(this instanceof e))return new e(f,n,x);var a=typeof f;if("base64"===n&&"string"===a)for(f=f.trim?f.trim():f.replace(/^\s+|\s+$/g,"");0!==f.length%4;)f+="=";var b;if("number"===a)b=w(f);else if("string"===a)b=e.byteLength(f,n);else if("object"===a)b=w(f.length);else throw Error("First argument needs to be a number, array or string.");var c;e._useTypedArrays?c=e._augment(new Uint8Array(b)):
7
+ (c=this,c.length=b,c._isBuffer=!0);if(e._useTypedArrays&&"number"===typeof f.byteLength)c._set(f);else{var d=f;if(y(d)||e.isBuffer(d)||d&&"object"===typeof d&&"number"===typeof d.length)for(n=0;n<b;n++)e.isBuffer(f)?c[n]=f.readUInt8(n):c[n]=f[n];else if("string"===a)c.write(f,0,n);else if("number"===a&&!e._useTypedArrays&&!x)for(n=0;n<b;n++)c[n]=0}return c}function p(f,n,x){var a="";for(x=Math.min(f.length,x);n<x;n++)a+=String.fromCharCode(f[n]);return a}function v(f,n,x,a){a||(q("boolean"===typeof x,
8
+ "missing or invalid endian"),q(void 0!==n&&null!==n,"missing offset"),q(n+1<f.length,"Trying to read beyond buffer length"));a=f.length;if(!(n>=a))return x?(x=f[n],n+1<a&&(x|=f[n+1]<<8)):(x=f[n]<<8,n+1<a&&(x|=f[n+1])),x}function A(f,n,a,c){c||(q("boolean"===typeof a,"missing or invalid endian"),q(void 0!==n&&null!==n,"missing offset"),q(n+3<f.length,"Trying to read beyond buffer length"));c=f.length;if(!(n>=c)){var b;a?(n+2<c&&(b=f[n+2]<<16),n+1<c&&(b|=f[n+1]<<8),b|=f[n],n+3<c&&(b+=f[n+3]<<24>>>0)):
9
+ (n+1<c&&(b=f[n+1]<<16),n+2<c&&(b|=f[n+2]<<8),n+3<c&&(b|=f[n+3]),b+=f[n]<<24>>>0);return b}}function g(f,n,a,b){b||(q("boolean"===typeof a,"missing or invalid endian"),q(void 0!==n&&null!==n,"missing offset"),q(n+1<f.length,"Trying to read beyond buffer length"));if(!(n>=f.length))return f=v(f,n,a,!0),f&32768?-1*(65535-f+1):f}function d(f,n,a,b){b||(q("boolean"===typeof a,"missing or invalid endian"),q(void 0!==n&&null!==n,"missing offset"),q(n+3<f.length,"Trying to read beyond buffer length"));if(!(n>=
10
+ f.length))return f=A(f,n,a,!0),f&2147483648?-1*(4294967295-f+1):f}function k(f,n,a,b){b||(q("boolean"===typeof a,"missing or invalid endian"),q(n+3<f.length,"Trying to read beyond buffer length"));return I.read(f,n,a,23,4)}function l(f,n,a,b){b||(q("boolean"===typeof a,"missing or invalid endian"),q(n+7<f.length,"Trying to read beyond buffer length"));return I.read(f,n,a,52,8)}function c(f,n,a,b,c){c||(q(void 0!==n&&null!==n,"missing value"),q("boolean"===typeof b,"missing or invalid endian"),q(void 0!==
11
+ a&&null!==a,"missing offset"),q(a+1<f.length,"trying to write beyond buffer length"),L(n,65535));var d=f.length;if(!(a>=d))for(c=0,d=Math.min(d-a,2);c<d;c++)f[a+c]=(n&255<<8*(b?c:1-c))>>>8*(b?c:1-c)}function a(f,n,a,b,c){c||(q(void 0!==n&&null!==n,"missing value"),q("boolean"===typeof b,"missing or invalid endian"),q(void 0!==a&&null!==a,"missing offset"),q(a+3<f.length,"trying to write beyond buffer length"),L(n,4294967295));var d=f.length;if(!(a>=d))for(c=0,d=Math.min(d-a,4);c<d;c++)f[a+c]=n>>>
12
+ 8*(b?c:3-c)&255}function b(f,n,a,b,d){d||(q(void 0!==n&&null!==n,"missing value"),q("boolean"===typeof b,"missing or invalid endian"),q(void 0!==a&&null!==a,"missing offset"),q(a+1<f.length,"Trying to write beyond buffer length"),M(n,32767,-32768));a>=f.length||(0<=n?c(f,n,a,b,d):c(f,65535+n+1,a,b,d))}function z(f,n,b,c,d){d||(q(void 0!==n&&null!==n,"missing value"),q("boolean"===typeof c,"missing or invalid endian"),q(void 0!==b&&null!==b,"missing offset"),q(b+3<f.length,"Trying to write beyond buffer length"),
13
+ M(n,2147483647,-2147483648));b>=f.length||(0<=n?a(f,n,b,c,d):a(f,4294967295+n+1,b,c,d))}function D(f,n,a,b,c){c||(q(void 0!==n&&null!==n,"missing value"),q("boolean"===typeof b,"missing or invalid endian"),q(void 0!==a&&null!==a,"missing offset"),q(a+3<f.length,"Trying to write beyond buffer length"),N(n,3.4028234663852886E38,-3.4028234663852886E38));a>=f.length||I.write(f,n,a,b,23,4)}function B(f,n,a,b,c){c||(q(void 0!==n&&null!==n,"missing value"),q("boolean"===typeof b,"missing or invalid endian"),
14
+ q(void 0!==a&&null!==a,"missing offset"),q(a+7<f.length,"Trying to write beyond buffer length"),N(n,1.7976931348623157E308,-1.7976931348623157E308));a>=f.length||I.write(f,n,a,b,52,8)}function E(f,a,b){if("number"!==typeof f)return b;f=~~f;if(f>=a)return a;if(0<=f)return f;f+=a;return 0<=f?f:0}function w(f){f=~~Math.ceil(+f);return 0>f?0:f}function y(f){return(Array.isArray||function(f){return"[object Array]"===Object.prototype.toString.call(f)})(f)}function H(f){return 16>f?"0"+f.toString(16):f.toString(16)}
15
+ function t(f){for(var a=[],b=0;b<f.length;b++){var c=f.charCodeAt(b);if(127>=c)a.push(f.charCodeAt(b));else{var d=b;55296<=c&&57343>=c&&b++;c=encodeURIComponent(f.slice(d,b+1)).substr(1).split("%");for(d=0;d<c.length;d++)a.push(parseInt(c[d],16))}}return a}function F(f){for(var a=[],b=0;b<f.length;b++)a.push(f.charCodeAt(b)&255);return a}function C(f,a,b,c){for(var d=0;d<c&&!(d+b>=a.length||d>=f.length);d++)a[d+b]=f[d];return d}function G(f){try{return decodeURIComponent(f)}catch(a){return String.fromCharCode(65533)}}
16
+ function L(f,a){q("number"===typeof f,"cannot write a non-number as a number");q(0<=f,"specified a negative value for writing an unsigned value");q(f<=a,"value is larger than maximum value for type");q(Math.floor(f)===f,"value has a fractional component")}function M(f,a,b){q("number"===typeof f,"cannot write a non-number as a number");q(f<=a,"value larger than maximum allowed value");q(f>=b,"value smaller than minimum allowed value");q(Math.floor(f)===f,"value has a fractional component")}function N(f,
17
+ a,b){q("number"===typeof f,"cannot write a non-number as a number");q(f<=a,"value larger than maximum allowed value");q(f>=b,"value smaller than minimum allowed value")}function q(f,a){if(!f)throw Error(a||"Failed assertion");}var J=h("base64-js"),I=h("ieee754");m.Buffer=e;m.SlowBuffer=e;m.INSPECT_MAX_BYTES=50;e.poolSize=8192;e._useTypedArrays=function(){try{var f=new ArrayBuffer(0),a=new Uint8Array(f);a.foo=function(){return 42};return 42===a.foo()&&"function"===typeof a.subarray}catch(b){return!1}}();
18
+ e.isEncoding=function(f){switch(String(f).toLowerCase()){case "hex":case "utf8":case "utf-8":case "ascii":case "binary":case "base64":case "raw":case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":return!0;default:return!1}};e.isBuffer=function(f){return!(null===f||void 0===f||!f._isBuffer)};e.byteLength=function(f,a){var b;f+="";switch(a||"utf8"){case "hex":b=f.length/2;break;case "utf8":case "utf-8":b=t(f).length;break;case "ascii":case "binary":case "raw":b=f.length;break;case "base64":b=J.toByteArray(f).length;
19
+ break;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":b=2*f.length;break;default:throw Error("Unknown encoding");}return b};e.concat=function(f,a){q(y(f),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array.");if(0===f.length)return new e(0);if(1===f.length)return f[0];var b;if("number"!==typeof a)for(b=a=0;b<f.length;b++)a+=f[b].length;var c=new e(a),d=0;for(b=0;b<f.length;b++){var k=f[b];k.copy(c,d);d+=k.length}return c};e.prototype.write=function(f,a,b,c){if(isFinite(a))isFinite(b)||
20
+ (c=b,b=void 0);else{var d=c;c=a;a=b;b=d}a=Number(a)||0;d=this.length-a;b?(b=Number(b),b>d&&(b=d)):b=d;c=String(c||"utf8").toLowerCase();switch(c){case "hex":a=Number(a)||0;c=this.length-a;b?(b=Number(b),b>c&&(b=c)):b=c;c=f.length;q(0===c%2,"Invalid hex string");b>c/2&&(b=c/2);for(c=0;c<b;c++)d=parseInt(f.substr(2*c,2),16),q(!isNaN(d),"Invalid hex string"),this[a+c]=d;e._charsWritten=2*c;f=c;break;case "utf8":case "utf-8":f=e._charsWritten=C(t(f),this,a,b);break;case "ascii":f=e._charsWritten=C(F(f),
21
+ this,a,b);break;case "binary":f=e._charsWritten=C(F(f),this,a,b);break;case "base64":f=e._charsWritten=C(J.toByteArray(f),this,a,b);break;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":for(var k,d=[],l=0;l<f.length;l++)k=f.charCodeAt(l),c=k>>8,k%=256,d.push(k),d.push(c);f=e._charsWritten=C(d,this,a,b);break;default:throw Error("Unknown encoding");}return f};e.prototype.toString=function(f,a,b){f=String(f||"utf8").toLowerCase();a=Number(a)||0;b=void 0!==b?Number(b):b=this.length;if(b===a)return"";
22
+ switch(f){case "hex":f=a;a=this.length;if(!f||0>f)f=0;if(!b||0>b||b>a)b=a;for(a="";f<b;f++)a+=H(this[f]);b=a;break;case "utf8":case "utf-8":var c=a;a=f="";for(b=Math.min(this.length,b);c<b;c++)127>=this[c]?(f+=G(a)+String.fromCharCode(this[c]),a=""):a+="%"+this[c].toString(16);b=f+G(a);break;case "ascii":b=p(this,a,b);break;case "binary":b=p(this,a,b);break;case "base64":f=a;b=0===f&&b===this.length?J.fromByteArray(this):J.fromByteArray(this.slice(f,b));break;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":b=
23
+ this.slice(a,b);f="";for(a=0;a<b.length;a+=2)f+=String.fromCharCode(b[a]+256*b[a+1]);b=f;break;default:throw Error("Unknown encoding");}return b};e.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};e.prototype.copy=function(a,b,c,d){c||(c=0);d||0===d||(d=this.length);b||(b=0);if(d!==c&&0!==a.length&&0!==this.length)if(q(d>=c,"sourceEnd < sourceStart"),q(0<=b&&b<a.length,"targetStart out of bounds"),q(0<=c&&c<this.length,"sourceStart out of bounds"),
24
+ q(0<=d&&d<=this.length,"sourceEnd out of bounds"),d>this.length&&(d=this.length),a.length-b<d-c&&(d=a.length-b+c),d-=c,100>d||!e._useTypedArrays)for(var k=0;k<d;k++)a[k+b]=this[k+c];else a._set(this.subarray(c,c+d),b)};e.prototype.slice=function(a,b){var c=this.length;a=E(a,c,0);b=E(b,c,c);if(e._useTypedArrays)return e._augment(this.subarray(a,b));for(var c=b-a,d=new e(c,void 0,!0),k=0;k<c;k++)d[k]=this[k+a];return d};e.prototype.get=function(a){console.log(".get() is deprecated. Access using array indexes instead.");
25
+ return this.readUInt8(a)};e.prototype.set=function(a,b){console.log(".set() is deprecated. Access using array indexes instead.");return this.writeUInt8(a,b)};e.prototype.readUInt8=function(a,b){b||(q(void 0!==a&&null!==a,"missing offset"),q(a<this.length,"Trying to read beyond buffer length"));if(!(a>=this.length))return this[a]};e.prototype.readUInt16LE=function(a,b){return v(this,a,!0,b)};e.prototype.readUInt16BE=function(a,b){return v(this,a,!1,b)};e.prototype.readUInt32LE=function(a,b){return A(this,
26
+ a,!0,b)};e.prototype.readUInt32BE=function(a,b){return A(this,a,!1,b)};e.prototype.readInt8=function(a,b){b||(q(void 0!==a&&null!==a,"missing offset"),q(a<this.length,"Trying to read beyond buffer length"));if(!(a>=this.length))return this[a]&128?-1*(255-this[a]+1):this[a]};e.prototype.readInt16LE=function(a,b){return g(this,a,!0,b)};e.prototype.readInt16BE=function(a,b){return g(this,a,!1,b)};e.prototype.readInt32LE=function(a,b){return d(this,a,!0,b)};e.prototype.readInt32BE=function(a,b){return d(this,
27
+ a,!1,b)};e.prototype.readFloatLE=function(a,b){return k(this,a,!0,b)};e.prototype.readFloatBE=function(a,b){return k(this,a,!1,b)};e.prototype.readDoubleLE=function(a,b){return l(this,a,!0,b)};e.prototype.readDoubleBE=function(a,b){return l(this,a,!1,b)};e.prototype.writeUInt8=function(a,b,c){c||(q(void 0!==a&&null!==a,"missing value"),q(void 0!==b&&null!==b,"missing offset"),q(b<this.length,"trying to write beyond buffer length"),L(a,255));b>=this.length||(this[b]=a)};e.prototype.writeUInt16LE=function(a,
28
+ b,d){c(this,a,b,!0,d)};e.prototype.writeUInt16BE=function(a,b,d){c(this,a,b,!1,d)};e.prototype.writeUInt32LE=function(b,c,d){a(this,b,c,!0,d)};e.prototype.writeUInt32BE=function(b,c,d){a(this,b,c,!1,d)};e.prototype.writeInt8=function(a,b,c){c||(q(void 0!==a&&null!==a,"missing value"),q(void 0!==b&&null!==b,"missing offset"),q(b<this.length,"Trying to write beyond buffer length"),M(a,127,-128));b>=this.length||(0<=a?this.writeUInt8(a,b,c):this.writeUInt8(255+a+1,b,c))};e.prototype.writeInt16LE=function(a,
29
+ c,d){b(this,a,c,!0,d)};e.prototype.writeInt16BE=function(a,c,d){b(this,a,c,!1,d)};e.prototype.writeInt32LE=function(a,b,c){z(this,a,b,!0,c)};e.prototype.writeInt32BE=function(a,b,c){z(this,a,b,!1,c)};e.prototype.writeFloatLE=function(a,b,c){D(this,a,b,!0,c)};e.prototype.writeFloatBE=function(a,b,c){D(this,a,b,!1,c)};e.prototype.writeDoubleLE=function(a,b,c){B(this,a,b,!0,c)};e.prototype.writeDoubleBE=function(a,b,c){B(this,a,b,!1,c)};e.prototype.fill=function(a,b,c){a||(a=0);b||(b=0);c||(c=this.length);
30
+ "string"===typeof a&&(a=a.charCodeAt(0));q("number"===typeof a&&!isNaN(a),"value is not a number");q(c>=b,"end < start");if(c!==b&&0!==this.length)for(q(0<=b&&b<this.length,"start out of bounds"),q(0<=c&&c<=this.length,"end out of bounds");b<c;b++)this[b]=a};e.prototype.inspect=function(){for(var a=[],b=this.length,c=0;c<b;c++)if(a[c]=H(this[c]),c===m.INSPECT_MAX_BYTES){a[c+1]="...";break}return"<Buffer "+a.join(" ")+">"};e.prototype.toArrayBuffer=function(){if("undefined"!==typeof Uint8Array){if(e._useTypedArrays)return(new e(this)).buffer;
31
+ for(var a=new Uint8Array(this.length),b=0,c=a.length;b<c;b+=1)a[b]=this[b];return a.buffer}throw Error("Buffer.toArrayBuffer not supported in this browser");};var u=e.prototype;e._augment=function(a){a._isBuffer=!0;a._get=a.get;a._set=a.set;a.get=u.get;a.set=u.set;a.write=u.write;a.toString=u.toString;a.toLocaleString=u.toString;a.toJSON=u.toJSON;a.copy=u.copy;a.slice=u.slice;a.readUInt8=u.readUInt8;a.readUInt16LE=u.readUInt16LE;a.readUInt16BE=u.readUInt16BE;a.readUInt32LE=u.readUInt32LE;a.readUInt32BE=
32
+ u.readUInt32BE;a.readInt8=u.readInt8;a.readInt16LE=u.readInt16LE;a.readInt16BE=u.readInt16BE;a.readInt32LE=u.readInt32LE;a.readInt32BE=u.readInt32BE;a.readFloatLE=u.readFloatLE;a.readFloatBE=u.readFloatBE;a.readDoubleLE=u.readDoubleLE;a.readDoubleBE=u.readDoubleBE;a.writeUInt8=u.writeUInt8;a.writeUInt16LE=u.writeUInt16LE;a.writeUInt16BE=u.writeUInt16BE;a.writeUInt32LE=u.writeUInt32LE;a.writeUInt32BE=u.writeUInt32BE;a.writeInt8=u.writeInt8;a.writeInt16LE=u.writeInt16LE;a.writeInt16BE=u.writeInt16BE;
33
+ a.writeInt32LE=u.writeInt32LE;a.writeInt32BE=u.writeInt32BE;a.writeFloatLE=u.writeFloatLE;a.writeFloatBE=u.writeFloatBE;a.writeDoubleLE=u.writeDoubleLE;a.writeDoubleBE=u.writeDoubleBE;a.fill=u.fill;a.inspect=u.inspect;a.toArrayBuffer=u.toArrayBuffer;return a}},{"base64-js":4,ieee754:5}],4:[function(h,r,m){(function(e){function p(e){e=e.charCodeAt(0);if(43===e)return 62;if(47===e)return 63;if(48>e)return-1;if(58>e)return e-48+52;if(91>e)return e-65;if(123>e)return e-97+26}var v="undefined"!==typeof Uint8Array?
34
+ Uint8Array:Array;e.toByteArray=function(e){function g(c){a[b++]=c}var d,k,l,c,a;if(0<e.length%4)throw Error("Invalid string. Length must be a multiple of 4");d=e.length;c="="===e.charAt(d-2)?2:"="===e.charAt(d-1)?1:0;a=new v(3*e.length/4-c);k=0<c?e.length-4:e.length;var b=0;for(d=0;d<k;d+=4)l=p(e.charAt(d))<<18|p(e.charAt(d+1))<<12|p(e.charAt(d+2))<<6|p(e.charAt(d+3)),g((l&16711680)>>16),g((l&65280)>>8),g(l&255);2===c?(l=p(e.charAt(d))<<2|p(e.charAt(d+1))>>4,g(l&255)):1===c&&(l=p(e.charAt(d))<<10|
35
+ p(e.charAt(d+1))<<4|p(e.charAt(d+2))>>2,g(l>>8&255),g(l&255));return a};e.fromByteArray=function(e){var g,d=e.length%3,k="",l,c;g=0;for(c=e.length-d;g<c;g+=3)l=(e[g]<<16)+(e[g+1]<<8)+e[g+2],l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(l>>18&63)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(l>>12&63)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(l>>6&63)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(l&
36
+ 63),k+=l;switch(d){case 1:l=e[e.length-1];k+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(l>>2);k+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(l<<4&63);k+="==";break;case 2:l=(e[e.length-2]<<8)+e[e.length-1],k+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(l>>10),k+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(l>>4&63),k+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(l<<
37
+ 2&63),k+="="}return k}})("undefined"===typeof m?this.base64js={}:m)},{}],5:[function(h,r,m){m.read=function(e,p,v,h,g){var d;d=8*g-h-1;var k=(1<<d)-1,l=k>>1,c=-7;g=v?g-1:0;var a=v?-1:1,b=e[p+g];g+=a;v=b&(1<<-c)-1;b>>=-c;for(c+=d;0<c;v=256*v+e[p+g],g+=a,c-=8);d=v&(1<<-c)-1;v>>=-c;for(c+=h;0<c;d=256*d+e[p+g],g+=a,c-=8);if(0===v)v=1-l;else{if(v===k)return d?NaN:Infinity*(b?-1:1);d+=Math.pow(2,h);v-=l}return(b?-1:1)*d*Math.pow(2,v-h)};m.write=function(e,p,v,h,g,d){var k,l=8*d-g-1,c=(1<<l)-1,a=c>>1,b=
38
+ 23===g?Math.pow(2,-24)-Math.pow(2,-77):0;d=h?0:d-1;var z=h?1:-1,D=0>p||0===p&&0>1/p?1:0;p=Math.abs(p);isNaN(p)||Infinity===p?(p=isNaN(p)?1:0,h=c):(h=Math.floor(Math.log(p)/Math.LN2),1>p*(k=Math.pow(2,-h))&&(h--,k*=2),p=1<=h+a?p+b/k:p+b*Math.pow(2,1-a),2<=p*k&&(h++,k/=2),h+a>=c?(p=0,h=c):1<=h+a?(p=(p*k-1)*Math.pow(2,g),h+=a):(p=p*Math.pow(2,a-1)*Math.pow(2,g),h=0));for(;8<=g;e[v+d]=p&255,d+=z,p/=256,g-=8);h=h<<g|p;for(l+=g;0<l;e[v+d]=h&255,d+=z,h/=256,l-=8);e[v+d-z]|=128*D}},{}],6:[function(h,r,m){function e(){}
39
+ h=r.exports={};h.nextTick=function(){if("undefined"!==typeof window&&window.setImmediate)return function(e){return window.setImmediate(e)};if("undefined"!==typeof window&&window.postMessage&&window.addEventListener){var e=[];window.addEventListener("message",function(h){var m=h.source;m!==window&&null!==m||"process-tick"!==h.data||(h.stopPropagation(),0<e.length&&e.shift()())},!0);return function(h){e.push(h);window.postMessage("process-tick","*")}}return function(e){setTimeout(e,0)}}();h.title="browser";
40
+ h.browser=!0;h.env={};h.argv=[];h.on=e;h.once=e;h.off=e;h.emit=e;h.binding=function(e){throw Error("process.binding is not supported");};h.cwd=function(){return"/"};h.chdir=function(e){throw Error("process.chdir is not supported");}},{}],7:[function(h,r,m){(function(e){function h(d,k){for(var e=0,c=d.length-1;0<=c;c--){var a=d[c];"."===a?d.splice(c,1):".."===a?(d.splice(c,1),e++):e&&(d.splice(c,1),e--)}if(k)for(;e--;e)d.unshift("..");return d}function v(d,k){if(d.filter)return d.filter(k);for(var e=
41
+ [],c=0;c<d.length;c++)k(d[c],c,d)&&e.push(d[c]);return e}var r=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;m.resolve=function(){for(var d="",k=!1,l=arguments.length-1;-1<=l&&!k;l--){var c=0<=l?arguments[l]:e.cwd();if("string"!==typeof c)throw new TypeError("Arguments to path.resolve must be strings");c&&(d=c+"/"+d,k="/"===c.charAt(0))}d=h(v(d.split("/"),function(a){return!!a}),!k).join("/");return(k?"/":"")+d||"."};m.normalize=function(d){var e=m.isAbsolute(d),l="/"===g(d,-1);
42
+ (d=h(v(d.split("/"),function(c){return!!c}),!e).join("/"))||e||(d=".");d&&l&&(d+="/");return(e?"/":"")+d};m.isAbsolute=function(d){return"/"===d.charAt(0)};m.join=function(){var d=Array.prototype.slice.call(arguments,0);return m.normalize(v(d,function(d,e){if("string"!==typeof d)throw new TypeError("Arguments to path.join must be strings");return d}).join("/"))};m.relative=function(d,e){function l(a){for(var b=0;b<a.length&&""===a[b];b++);for(var c=a.length-1;0<=c&&""===a[c];c--);return b>c?[]:a.slice(b,
43
+ c-b+1)}d=m.resolve(d).substr(1);e=m.resolve(e).substr(1);for(var c=l(d.split("/")),a=l(e.split("/")),b=Math.min(c.length,a.length),g=b,h=0;h<b;h++)if(c[h]!==a[h]){g=h;break}b=[];for(h=g;h<c.length;h++)b.push("..");b=b.concat(a.slice(g));return b.join("/")};m.sep="/";m.delimiter=":";m.dirname=function(d){var e=r.exec(d).slice(1);d=e[0];e=e[1];if(!d&&!e)return".";e&&(e=e.substr(0,e.length-1));return d+e};m.basename=function(d,e){var l=r.exec(d).slice(1)[2];e&&l.substr(-1*e.length)===e&&(l=l.substr(0,
44
+ l.length-e.length));return l};m.extname=function(d){return r.exec(d).slice(1)[3]};var g="b"==="ab".substr(-1)?function(d,e,l){return d.substr(e,l)}:function(d,e,l){0>e&&(e=d.length+e);return d.substr(e,l)}}).call(this,h("node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"))},{"node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":6}],8:[function(h,r,m){m.SourceMapGenerator=h("./source-map/source-map-generator").SourceMapGenerator;
45
+ m.SourceMapConsumer=h("./source-map/source-map-consumer").SourceMapConsumer;m.SourceNode=h("./source-map/source-node").SourceNode},{"./source-map/source-map-consumer":13,"./source-map/source-map-generator":14,"./source-map/source-node":15}],9:[function(h,r,m){if("function"!==typeof e)var e=h("amdefine")(r,h);e(function(e,h,m){function g(){this._array=[];this._set={}}var d=e("./util");g.fromArray=function(d,e){for(var c=new g,a=0,b=d.length;a<b;a++)c.add(d[a],e);return c};g.prototype.add=function(e,
46
+ l){var c=this.has(e),a=this._array.length;c&&!l||this._array.push(e);c||(this._set[d.toSetString(e)]=a)};g.prototype.has=function(e){return Object.prototype.hasOwnProperty.call(this._set,d.toSetString(e))};g.prototype.indexOf=function(e){if(this.has(e))return this._set[d.toSetString(e)];throw Error('"'+e+'" is not in the set.');};g.prototype.at=function(d){if(0<=d&&d<this._array.length)return this._array[d];throw Error("No element indexed by "+d);};g.prototype.toArray=function(){return this._array.slice()};
47
+ h.ArraySet=g})},{"./util":16,amdefine:17}],10:[function(h,r,m){if("function"!==typeof e)var e=h("amdefine")(r,h);e(function(e,h,m){var g=e("./base64");h.encode=function(d){var e="",l=0>d?(-d<<1)+1:(d<<1)+0;do d=l&31,l>>>=5,0<l&&(d|=32),e+=g.encode(d);while(0<l);return e};h.decode=function(d){var e=0,l=d.length,c=0,a=0,b,h;do{if(e>=l)throw Error("Expected more digits in base 64 VLQ value.");h=g.decode(d.charAt(e++));b=!!(h&32);h&=31;c+=h<<a;a+=5}while(b);l=c>>1;return{value:1===(c&1)?-l:l,rest:d.slice(e)}}})},
48
+ {"./base64":11,amdefine:17}],11:[function(h,r,m){if("function"!==typeof e)var e=h("amdefine")(r,h);e(function(e,h,m){var g={},d={};"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("").forEach(function(e,l){g[e]=l;d[l]=e});h.encode=function(e){if(e in d)return d[e];throw new TypeError("Must be between 0 and 63: "+e);};h.decode=function(d){if(d in g)return g[d];throw new TypeError("Not a valid base 64 digit: "+d);}})},{amdefine:17}],12:[function(h,r,m){if("function"!==typeof e)var e=
49
+ h("amdefine")(r,h);e(function(e,h,m){function g(d,e,l,c,a){var b=Math.floor((e-d)/2)+d,h=a(l,c[b],!0);return 0===h?c[b]:0<h?1<e-b?g(b,e,l,c,a):c[b]:1<b-d?g(d,b,l,c,a):0>d?null:c[d]}h.search=function(d,e,l){return 0<e.length?g(-1,e.length,d,e,l):null}})},{amdefine:17}],13:[function(h,r,m){if("function"!==typeof e)var e=h("amdefine")(r,h);e(function(e,h,m){function g(a){var b=a;"string"===typeof a&&(b=JSON.parse(a.replace(/^\)\]\}'/,"")));a=d.getArg(b,"version");var c=d.getArg(b,"sources"),e=d.getArg(b,
50
+ "names",[]),g=d.getArg(b,"sourceRoot",null),h=d.getArg(b,"sourcesContent",null),k=d.getArg(b,"mappings"),b=d.getArg(b,"file",null);if(a!=this._version)throw Error("Unsupported version: "+a);this._names=l.fromArray(e,!0);this._sources=l.fromArray(c,!0);this.sourceRoot=g;this.sourcesContent=h;this._mappings=k;this.file=b}var d=e("./util"),k=e("./binary-search"),l=e("./array-set").ArraySet,c=e("./base64-vlq");g.fromSourceMap=function(a){var b=Object.create(g.prototype);b._names=l.fromArray(a._names.toArray(),
51
+ !0);b._sources=l.fromArray(a._sources.toArray(),!0);b.sourceRoot=a._sourceRoot;b.sourcesContent=a._generateSourcesContent(b._sources.toArray(),b.sourceRoot);b.file=a._file;b.__generatedMappings=a._mappings.slice().sort(d.compareByGeneratedPositions);b.__originalMappings=a._mappings.slice().sort(d.compareByOriginalPositions);return b};g.prototype._version=3;Object.defineProperty(g.prototype,"sources",{get:function(){return this._sources.toArray().map(function(a){return this.sourceRoot?d.join(this.sourceRoot,
52
+ a):a},this)}});g.prototype.__generatedMappings=null;Object.defineProperty(g.prototype,"_generatedMappings",{get:function(){this.__generatedMappings||(this.__generatedMappings=[],this.__originalMappings=[],this._parseMappings(this._mappings,this.sourceRoot));return this.__generatedMappings}});g.prototype.__originalMappings=null;Object.defineProperty(g.prototype,"_originalMappings",{get:function(){this.__originalMappings||(this.__generatedMappings=[],this.__originalMappings=[],this._parseMappings(this._mappings,
53
+ this.sourceRoot));return this.__originalMappings}});g.prototype._parseMappings=function(a,b){for(var e=1,g=0,l=0,h=0,k=0,y=0,m=/^[,;]/,t=a,p;0<t.length;)if(";"===t.charAt(0))e++,t=t.slice(1),g=0;else if(","===t.charAt(0))t=t.slice(1);else{p={};p.generatedLine=e;t=c.decode(t);p.generatedColumn=g+t.value;g=p.generatedColumn;t=t.rest;if(0<t.length&&!m.test(t.charAt(0))){t=c.decode(t);p.source=this._sources.at(k+t.value);k+=t.value;t=t.rest;if(0===t.length||m.test(t.charAt(0)))throw Error("Found a source, but no line and column");
54
+ t=c.decode(t);p.originalLine=l+t.value;l=p.originalLine;p.originalLine+=1;t=t.rest;if(0===t.length||m.test(t.charAt(0)))throw Error("Found a source and line, but no column");t=c.decode(t);p.originalColumn=h+t.value;h=p.originalColumn;t=t.rest;0<t.length&&!m.test(t.charAt(0))&&(t=c.decode(t),p.name=this._names.at(y+t.value),y+=t.value,t=t.rest)}this.__generatedMappings.push(p);"number"===typeof p.originalLine&&this.__originalMappings.push(p)}this.__generatedMappings.sort(d.compareByGeneratedPositions);
55
+ this.__originalMappings.sort(d.compareByOriginalPositions)};g.prototype._findMapping=function(a,b,c,d,e){if(0>=a[c])throw new TypeError("Line must be greater than or equal to 1, got "+a[c]);if(0>a[d])throw new TypeError("Column must be greater than or equal to 0, got "+a[d]);return k.search(a,b,e)};g.prototype.originalPositionFor=function(a){a={generatedLine:d.getArg(a,"line"),generatedColumn:d.getArg(a,"column")};if(a=this._findMapping(a,this._generatedMappings,"generatedLine","generatedColumn",
56
+ d.compareByGeneratedPositions)){var b=d.getArg(a,"source",null);b&&this.sourceRoot&&(b=d.join(this.sourceRoot,b));return{source:b,line:d.getArg(a,"originalLine",null),column:d.getArg(a,"originalColumn",null),name:d.getArg(a,"name",null)}}return{source:null,line:null,column:null,name:null}};g.prototype.sourceContentFor=function(a){if(!this.sourcesContent)return null;this.sourceRoot&&(a=d.relative(this.sourceRoot,a));if(this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];var b;
57
+ if(this.sourceRoot&&(b=d.urlParse(this.sourceRoot))){var c=a.replace(/^file:\/\//,"");if("file"==b.scheme&&this._sources.has(c))return this.sourcesContent[this._sources.indexOf(c)];if((!b.path||"/"==b.path)&&this._sources.has("/"+a))return this.sourcesContent[this._sources.indexOf("/"+a)]}throw Error('"'+a+'" is not in the SourceMap.');};g.prototype.generatedPositionFor=function(a){a={source:d.getArg(a,"source"),originalLine:d.getArg(a,"line"),originalColumn:d.getArg(a,"column")};this.sourceRoot&&
58
+ (a.source=d.relative(this.sourceRoot,a.source));return(a=this._findMapping(a,this._originalMappings,"originalLine","originalColumn",d.compareByOriginalPositions))?{line:d.getArg(a,"generatedLine",null),column:d.getArg(a,"generatedColumn",null)}:{line:null,column:null}};g.GENERATED_ORDER=1;g.ORIGINAL_ORDER=2;g.prototype.eachMapping=function(a,b,c){b=b||null;switch(c||g.GENERATED_ORDER){case g.GENERATED_ORDER:c=this._generatedMappings;break;case g.ORIGINAL_ORDER:c=this._originalMappings;break;default:throw Error("Unknown order of iteration.");
59
+ }var e=this.sourceRoot;c.map(function(a){var b=a.source;b&&e&&(b=d.join(e,b));return{source:b,generatedLine:a.generatedLine,generatedColumn:a.generatedColumn,originalLine:a.originalLine,originalColumn:a.originalColumn,name:a.name}}).forEach(a,b)};h.SourceMapConsumer=g})},{"./array-set":9,"./base64-vlq":10,"./binary-search":12,"./util":16,amdefine:17}],14:[function(h,r,m){if("function"!==typeof e)var e=h("amdefine")(r,h);e(function(e,h,m){function g(c){this._file=k.getArg(c,"file");this._sourceRoot=
60
+ k.getArg(c,"sourceRoot",null);this._sources=new l;this._names=new l;this._mappings=[];this._sourcesContents=null}var d=e("./base64-vlq"),k=e("./util"),l=e("./array-set").ArraySet;g.prototype._version=3;g.fromSourceMap=function(c){var a=c.sourceRoot,b=new g({file:c.file,sourceRoot:a});c.eachMapping(function(c){var d={generated:{line:c.generatedLine,column:c.generatedColumn}};c.source&&(d.source=c.source,a&&(d.source=k.relative(a,d.source)),d.original={line:c.originalLine,column:c.originalColumn},c.name&&
61
+ (d.name=c.name));b.addMapping(d)});c.sources.forEach(function(a){var d=c.sourceContentFor(a);d&&b.setSourceContent(a,d)});return b};g.prototype.addMapping=function(c){var a=k.getArg(c,"generated"),b=k.getArg(c,"original",null),d=k.getArg(c,"source",null);c=k.getArg(c,"name",null);this._validateMapping(a,b,d,c);d&&!this._sources.has(d)&&this._sources.add(d);c&&!this._names.has(c)&&this._names.add(c);this._mappings.push({generatedLine:a.line,generatedColumn:a.column,originalLine:null!=b&&b.line,originalColumn:null!=
62
+ b&&b.column,source:d,name:c})};g.prototype.setSourceContent=function(c,a){var b=c;this._sourceRoot&&(b=k.relative(this._sourceRoot,b));null!==a?(this._sourcesContents||(this._sourcesContents={}),this._sourcesContents[k.toSetString(b)]=a):(delete this._sourcesContents[k.toSetString(b)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))};g.prototype.applySourceMap=function(c,a){a||(a=c.file);var b=this._sourceRoot;b&&(a=k.relative(b,a));var d=new l,e=new l;this._mappings.forEach(function(g){if(g.source===
63
+ a&&g.originalLine){var l=c.originalPositionFor({line:g.originalLine,column:g.originalColumn});null!==l.source&&(g.source=b?k.relative(b,l.source):l.source,g.originalLine=l.line,g.originalColumn=l.column,null!==l.name&&null!==g.name&&(g.name=l.name))}(l=g.source)&&!d.has(l)&&d.add(l);(g=g.name)&&!e.has(g)&&e.add(g)},this);this._sources=d;this._names=e;c.sources.forEach(function(a){var d=c.sourceContentFor(a);d&&(b&&(a=k.relative(b,a)),this.setSourceContent(a,d))},this)};g.prototype._validateMapping=
64
+ function(c,a,b,d){if(!(c&&"line"in c&&"column"in c&&0<c.line&&0<=c.column&&!a&&!b&&!d||c&&"line"in c&&"column"in c&&a&&"line"in a&&"column"in a&&0<c.line&&0<=c.column&&0<a.line&&0<=a.column&&b))throw Error("Invalid mapping: "+JSON.stringify({generated:c,source:b,original:a,name:d}));};g.prototype._serializeMappings=function(){var c=0,a=1,b=0,e=0,g=0,l=0,h="",w;this._mappings.sort(k.compareByGeneratedPositions);for(var y=0,p=this._mappings.length;y<p;y++){w=this._mappings[y];if(w.generatedLine!==a)for(c=
65
+ 0;w.generatedLine!==a;)h+=";",a++;else if(0<y){if(!k.compareByGeneratedPositions(w,this._mappings[y-1]))continue;h+=","}h+=d.encode(w.generatedColumn-c);c=w.generatedColumn;w.source&&(h+=d.encode(this._sources.indexOf(w.source)-l),l=this._sources.indexOf(w.source),h+=d.encode(w.originalLine-1-e),e=w.originalLine-1,h+=d.encode(w.originalColumn-b),b=w.originalColumn,w.name&&(h+=d.encode(this._names.indexOf(w.name)-g),g=this._names.indexOf(w.name)))}return h};g.prototype._generateSourcesContent=function(c,
66
+ a){return c.map(function(b){if(!this._sourcesContents)return null;a&&(b=k.relative(a,b));b=k.toSetString(b);return Object.prototype.hasOwnProperty.call(this._sourcesContents,b)?this._sourcesContents[b]:null},this)};g.prototype.toJSON=function(){var c={version:this._version,file:this._file,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};this._sourceRoot&&(c.sourceRoot=this._sourceRoot);this._sourcesContents&&(c.sourcesContent=this._generateSourcesContent(c.sources,
67
+ c.sourceRoot));return c};g.prototype.toString=function(){return JSON.stringify(this)};h.SourceMapGenerator=g})},{"./array-set":9,"./base64-vlq":10,"./util":16,amdefine:17}],15:[function(h,r,m){if("function"!==typeof e)var e=h("amdefine")(r,h);e(function(e,h,m){function g(d,c,a,b,e){this.children=[];this.sourceContents={};this.line=void 0===d?null:d;this.column=void 0===c?null:c;this.source=void 0===a?null:a;this.name=void 0===e?null:e;null!=b&&this.add(b)}var d=e("./source-map-generator").SourceMapGenerator,
68
+ k=e("./util");g.fromStringWithSourceMap=function(d,c){function a(a,c){null===a||void 0===a.source?b.add(c):b.add(new g(a.originalLine,a.originalColumn,a.source,c,a.name))}var b=new g,e=d.split("\n"),h=1,k=0,p=null;c.eachMapping(function(c){if(null===p){for(;h<c.generatedLine;)b.add(e.shift()+"\n"),h++;if(k<c.generatedColumn){var d=e[0];b.add(d.substr(0,c.generatedColumn));e[0]=d.substr(c.generatedColumn);k=c.generatedColumn}}else{if(h<c.generatedLine){var g="";do g+=e.shift()+"\n",h++,k=0;while(h<
69
+ c.generatedLine);k<c.generatedColumn&&(d=e[0],g+=d.substr(0,c.generatedColumn),e[0]=d.substr(c.generatedColumn),k=c.generatedColumn)}else d=e[0],g=d.substr(0,c.generatedColumn-k),e[0]=d.substr(c.generatedColumn-k),k=c.generatedColumn;a(p,g)}p=c},this);a(p,e.join("\n"));c.sources.forEach(function(a){var d=c.sourceContentFor(a);d&&b.setSourceContent(a,d)});return b};g.prototype.add=function(d){if(Array.isArray(d))d.forEach(function(c){this.add(c)},this);else if(d instanceof g||"string"===typeof d)d&&
70
+ this.children.push(d);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+d);return this};g.prototype.prepend=function(d){if(Array.isArray(d))for(var c=d.length-1;0<=c;c--)this.prepend(d[c]);else if(d instanceof g||"string"===typeof d)this.children.unshift(d);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+d);return this};g.prototype.walk=function(d){for(var c,a=0,b=this.children.length;a<b;a++)c=
71
+ this.children[a],c instanceof g?c.walk(d):""!==c&&d(c,{source:this.source,line:this.line,column:this.column,name:this.name})};g.prototype.join=function(d){var c,a,b=this.children.length;if(0<b){c=[];for(a=0;a<b-1;a++)c.push(this.children[a]),c.push(d);c.push(this.children[a]);this.children=c}return this};g.prototype.replaceRight=function(d,c){var a=this.children[this.children.length-1];a instanceof g?a.replaceRight(d,c):"string"===typeof a?this.children[this.children.length-1]=a.replace(d,c):this.children.push("".replace(d,
72
+ c));return this};g.prototype.setSourceContent=function(d,c){this.sourceContents[k.toSetString(d)]=c};g.prototype.walkSourceContents=function(d){for(var c=0,a=this.children.length;c<a;c++)this.children[c]instanceof g&&this.children[c].walkSourceContents(d);for(var b=Object.keys(this.sourceContents),c=0,a=b.length;c<a;c++)d(k.fromSetString(b[c]),this.sourceContents[b[c]])};g.prototype.toString=function(){var d="";this.walk(function(c){d+=c});return d};g.prototype.toStringWithSourceMap=function(e){var c=
73
+ "",a=1,b=0,g=new d(e),h=!1,k=null,p=null,w=null,m=null;this.walk(function(d,e){c+=d;null!==e.source&&null!==e.line&&null!==e.column?(k===e.source&&p===e.line&&w===e.column&&m===e.name||g.addMapping({source:e.source,original:{line:e.line,column:e.column},generated:{line:a,column:b},name:e.name}),k=e.source,p=e.line,w=e.column,m=e.name,h=!0):h&&(g.addMapping({generated:{line:a,column:b}}),k=null,h=!1);d.split("").forEach(function(c){"\n"===c?(a++,b=0):b++})});this.walkSourceContents(function(a,b){g.setSourceContent(a,
74
+ b)});return{code:c,map:g}};h.SourceNode=g})},{"./source-map-generator":14,"./util":16,amdefine:17}],16:[function(h,r,m){if("function"!==typeof e)var e=h("amdefine")(r,h);e(function(e,h,m){function g(a){return(a=a.match(l))?{scheme:a[1],auth:a[3],host:a[4],port:a[6],path:a[7]}:null}function d(a){var b=a.scheme+"://";a.auth&&(b+=a.auth+"@");a.host&&(b+=a.host);a.port&&(b+=":"+a.port);a.path&&(b+=a.path);return b}function k(a,b){var c=a||"",d=b||"";return(c>d)-(c<d)}h.getArg=function(a,b,c){if(b in a)return a[b];
75
+ if(3===arguments.length)return c;throw Error('"'+b+'" is a required argument.');};var l=/([\w+\-.]+):\/\/((\w+:\w+)@)?([\w.]+)?(:(\d+))?(\S+)?/,c=/^data:.+\,.+/;h.urlParse=g;h.urlGenerate=d;h.join=function(a,b){var e;return b.match(l)||b.match(c)?b:"/"===b.charAt(0)&&(e=g(a))?(e.path=b,d(e)):a.replace(/\/$/,"")+"/"+b};h.toSetString=function(a){return"$"+a};h.fromSetString=function(a){return a.substr(1)};h.relative=function(a,b){a=a.replace(/\/$/,"");var c=g(a);return"/"==b.charAt(0)&&c&&"/"==c.path?
76
+ b.slice(1):0===b.indexOf(a+"/")?b.substr(a.length+1):b};h.compareByOriginalPositions=function(a,b,c){var d;return(d=k(a.source,b.source))||(d=a.originalLine-b.originalLine)||(d=a.originalColumn-b.originalColumn)||c||(d=k(a.name,b.name))?d:(d=a.generatedLine-b.generatedLine)?d:a.generatedColumn-b.generatedColumn};h.compareByGeneratedPositions=function(a,b,c){var d;return(d=a.generatedLine-b.generatedLine)||(d=a.generatedColumn-b.generatedColumn)||c||(d=k(a.source,b.source))||(d=a.originalLine-b.originalLine)?
77
+ d:(d=a.originalColumn-b.originalColumn)?d:k(a.name,b.name)}})},{amdefine:17}],17:[function(h,r,m){(function(e,p){r.exports=function(m,r){function g(a,b){var c;if(a&&"."===a.charAt(0)&&b){c=b.split("/");c=c.slice(0,c.length-1);var d=c=c.concat(a.split("/")),e,g;for(e=0;d[e];e+=1)if(g=d[e],"."===g)d.splice(e,1),--e;else if(".."===g)if(1!==e||".."!==d[2]&&".."!==d[0])0<e&&(d.splice(e-1,2),e-=2);else break;a=c.join("/")}return a}function d(a){return function(b){return g(b,a)}}function k(a){function c(d){b[a]=
78
+ d}c.fromText=function(a,b){throw Error("amdefine does not implement load.fromText");};return c}function l(a,c,d){var e,g,h;if(a)g=b[a]={},h={id:a,uri:p,exports:g},e=B(r,g,h,a);else{if(z)throw Error("amdefine with no module ID cannot be called more than once per file.");z=!0;g=m.exports;h=m;e=B(r,g,h,m.id)}c&&(c=c.map(function(a){return e(a)}));c="function"===typeof d?d.apply(h.exports,c):d;void 0!==c&&(h.exports=c,a&&(b[a]=h.exports))}function c(b,c,d){Array.isArray(b)?(d=c,c=b,b=void 0):"string"!==
79
+ typeof b&&(d=b,b=c=void 0);c&&!Array.isArray(c)&&(d=c,c=void 0);c||(c=["require","exports","module"]);b?a[b]=[b,c,d]:l(b,c,d)}var a={},b={},z=!1,D=h("path"),B,E;B=function(a,b,c,d){function h(g,k){if("string"===typeof g)return E(a,b,c,g,d);g=g.map(function(e){return E(a,b,c,e,d)});e.nextTick(function(){k.apply(null,g)})}h.toUrl=function(a){return 0===a.indexOf(".")?g(a,D.dirname(c.filename)):a};return h};r=r||function(){return m.require.apply(m,arguments)};E=function(c,e,h,m,p){var r=m.indexOf("!"),
80
+ G=m;if(-1===r){m=g(m,p);if("require"===m)return B(c,e,h,p);if("exports"===m)return e;if("module"===m)return h;if(b.hasOwnProperty(m))return b[m];if(a[m])return l.apply(null,a[m]),b[m];if(c)return c(G);throw Error("No module with ID: "+m);}G=m.substring(0,r);m=m.substring(r+1,m.length);r=E(c,e,h,G,p);m=r.normalize?r.normalize(m,d(p)):g(m,p);b[m]||r.load(m,B(c,e,h,p),k(m),{});return b[m]};c.require=function(c){if(b[c])return b[c];if(a[c])return l.apply(null,a[c]),b[c]};c.amd={};return c}}).call(this,
81
+ h("node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"),"/node_modules/source-map/node_modules/amdefine/amdefine.js")},{"node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":6,path:7}],18:[function(h,r,m){(function(e,p){function r(){return"undefined"!==typeof window&&"function"===typeof XMLHttpRequest}function A(a){if(a in F)return F[a];try{if(r()){var b=new XMLHttpRequest;b.open("GET",a,!1);b.send(null);var c=4===b.readyState?
82
+ b.responseText:null}else c=y.readFileSync(a,"utf8")}catch(d){c=null}return F[a]=c}function g(a,b){if(!a)return b;var c=w.dirname(a),d=/^\w+:\/\/[^\/]*/.exec(c),d=d?d[0]:"";return d+w.resolve(c.slice(d.length),b)}function d(a){var b;a:{if(r()&&(b=new XMLHttpRequest,b.open("GET",a,!1),b.send(null),b=b.getResponseHeader("SourceMap")||b.getResponseHeader("X-SourceMap")))break a;b=A(a);b=(b=/\/\/[#@]\s*sourceMappingURL=(.*)\s*$/m.exec(b))?b[1]:null}if(!b)return null;"data:application/json;base64,"==b.slice(0,
83
+ 29).toLowerCase()?(a=(new p(b.slice(29),"base64")).toString(),b=null):(b=g(a,b),a=A(b,"utf8"));return a?{url:b,map:a}:null}function k(a){var b=C[a.source];if(!b){var c=d(a.source);c?(b=C[a.source]={url:c.url,map:new E(c.map)},b.map.sourcesContent&&b.map.sources.forEach(function(a,c){var d=b.map.sourcesContent[c];if(d){var e=g(b.url,a);F[e]=d}})):b=C[a.source]={url:null,map:null}}return b&&b.map&&(c=b.map.originalPositionFor(a),null!==c.source)?(c.source=g(b.url,c.source),c):a}function l(a){var b=
84
+ /^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(a);return b?(a=k({source:b[2],line:b[3],column:b[4]-1}),"eval at "+b[1]+" ("+a.source+":"+a.line+":"+(a.column+1)+")"):(b=/^eval at ([^(]+) \((.+)\)$/.exec(a))?"eval at "+b[1]+" ("+l(b[2])+")":a}function c(){var a,b="";this.isNative()?b="native":(a=this.getScriptNameOrSourceURL(),!a&&this.isEval()&&(b=this.getEvalOrigin(),b+=", "),b=a?b+a:b+"<anonymous>",a=this.getLineNumber(),null!=a&&(b+=":"+a,(a=this.getColumnNumber())&&(b+=":"+a)));a="";var c=this.getFunctionName(),
85
+ d=!0,e=this.isConstructor();if(this.isToplevel()||e)e?a+="new "+(c||"<anonymous>"):c?a+=c:(a+=b,d=!1);else{var e=this.getTypeName(),g=this.getMethodName();c?(e&&0!=c.indexOf(e)&&(a+=e+"."),a+=c,g&&c.indexOf("."+g)!=c.length-g.length-1&&(a+=" [as "+g+"]")):a+=e+"."+(g||"<anonymous>")}d&&(a+=" ("+b+")");return a}function a(a){var b={};Object.getOwnPropertyNames(Object.getPrototypeOf(a)).forEach(function(c){b[c]=/^(?:is|get)/.test(c)?function(){return a[c].call(a)}:a[c]});b.toString=c;return b}function b(b){var c=
86
+ b.getFileName()||b.getScriptNameOrSourceURL();if(c){var d=k({source:c,line:b.getLineNumber(),column:b.getColumnNumber()-1});b=a(b);b.getFileName=function(){return d.source};b.getLineNumber=function(){return d.line};b.getColumnNumber=function(){return d.column+1};b.getScriptNameOrSourceURL=function(){return d.source};return b}var e=b.isEval()&&b.getEvalOrigin();e&&(e=l(e),b=a(b),b.getEvalOrigin=function(){return e});return b}function z(a,c){t&&(F={},C={});return a+c.map(function(a){return"\n at "+
87
+ b(a)}).join("")}function D(a){var b=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(a.stack);if(b){a=b[1];var c=+b[2],b=+b[3],d=F[a];!d&&y.existsSync(a)&&(d=y.readFileSync(a,"utf8"));if(d&&(d=d.split(/(?:\r\n|\r|\n)/)[c-1]))return"\n"+a+":"+c+"\n"+d+"\n"+Array(b).join(" ")+"^"}return null}function B(a){if(a&&a.stack){var b=D(a);null!==b&&console.log(b);console.log(a.stack)}else console.log("Uncaught exception:",a);e.exit(1)}var E=h("source-map").SourceMapConsumer,w=h("path"),y=h("fs"),H=!1,t=!1,F={},C=
88
+ {};m.wrapCallSite=b;m.getErrorSource=D;m.mapSourcePosition=k;m.retrieveSourceMap=d;m.install=function(a){if(!H){H=!0;Error.prepareStackTrace=z;a=a||{};var b="handleUncaughtExceptions"in a?a.handleUncaughtExceptions:!0;t="emptyCacheBetweenOperations"in a?a.emptyCacheBetweenOperations:!1;a.retrieveFile&&(A=a.retrieveFile);a.retrieveSourceMap&&(d=a.retrieveSourceMap);if(b&&!r())e.on("uncaughtException",B)}}}).call(this,h("node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"),
89
+ h("buffer").Buffer)},{"node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":6,buffer:3,fs:2,path:7,"source-map":8}]},{},[1]);return K});
@@ -0,0 +1,58 @@
1
+ amdefine is released under two licenses: new BSD, and MIT. You may pick the
2
+ license that best suits your development needs. The text of both licenses are
3
+ provided below.
4
+
5
+
6
+ The "New" BSD License:
7
+ ----------------------
8
+
9
+ Copyright (c) 2011-2015, The Dojo Foundation
10
+ All rights reserved.
11
+
12
+ Redistribution and use in source and binary forms, with or without
13
+ modification, are permitted provided that the following conditions are met:
14
+
15
+ * Redistributions of source code must retain the above copyright notice, this
16
+ list of conditions and the following disclaimer.
17
+ * Redistributions in binary form must reproduce the above copyright notice,
18
+ this list of conditions and the following disclaimer in the documentation
19
+ and/or other materials provided with the distribution.
20
+ * Neither the name of the Dojo Foundation nor the names of its contributors
21
+ may be used to endorse or promote products derived from this software
22
+ without specific prior written permission.
23
+
24
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
25
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
26
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
27
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
28
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
29
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
30
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
31
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
32
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
33
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34
+
35
+
36
+
37
+ MIT License
38
+ -----------
39
+
40
+ Copyright (c) 2011-2015, The Dojo Foundation
41
+
42
+ Permission is hereby granted, free of charge, to any person obtaining a copy
43
+ of this software and associated documentation files (the "Software"), to deal
44
+ in the Software without restriction, including without limitation the rights
45
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
46
+ copies of the Software, and to permit persons to whom the Software is
47
+ furnished to do so, subject to the following conditions:
48
+
49
+ The above copyright notice and this permission notice shall be included in
50
+ all copies or substantial portions of the Software.
51
+
52
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
53
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
54
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
55
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
56
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
57
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
58
+ THE SOFTWARE.
@@ -0,0 +1,171 @@
1
+ # amdefine
2
+
3
+ A module that can be used to implement AMD's define() in Node. This allows you
4
+ to code to the AMD API and have the module work in node programs without
5
+ requiring those other programs to use AMD.
6
+
7
+ ## Usage
8
+
9
+ **1)** Update your package.json to indicate amdefine as a dependency:
10
+
11
+ ```javascript
12
+ "dependencies": {
13
+ "amdefine": ">=0.1.0"
14
+ }
15
+ ```
16
+
17
+ Then run `npm install` to get amdefine into your project.
18
+
19
+ **2)** At the top of each module that uses define(), place this code:
20
+
21
+ ```javascript
22
+ if (typeof define !== 'function') { var define = require('amdefine')(module) }
23
+ ```
24
+
25
+ **Only use these snippets** when loading amdefine. If you preserve the basic structure,
26
+ with the braces, it will be stripped out when using the [RequireJS optimizer](#optimizer).
27
+
28
+ You can add spaces, line breaks and even require amdefine with a local path, but
29
+ keep the rest of the structure to get the stripping behavior.
30
+
31
+ As you may know, because `if` statements in JavaScript don't have their own scope, the var
32
+ declaration in the above snippet is made whether the `if` expression is truthy or not. If
33
+ RequireJS is loaded then the declaration is superfluous because `define` is already already
34
+ declared in the same scope in RequireJS. Fortunately JavaScript handles multiple `var`
35
+ declarations of the same variable in the same scope gracefully.
36
+
37
+ If you want to deliver amdefine.js with your code rather than specifying it as a dependency
38
+ with npm, then just download the latest release and refer to it using a relative path:
39
+
40
+ [Latest Version](https://github.com/jrburke/amdefine/raw/latest/amdefine.js)
41
+
42
+ ### amdefine/intercept
43
+
44
+ Consider this very experimental.
45
+
46
+ Instead of pasting the piece of text for the amdefine setup of a `define`
47
+ variable in each module you create or consume, you can use `amdefine/intercept`
48
+ instead. It will automatically insert the above snippet in each .js file loaded
49
+ by Node.
50
+
51
+ **Warning**: you should only use this if you are creating an application that
52
+ is consuming AMD style defined()'d modules that are distributed via npm and want
53
+ to run that code in Node.
54
+
55
+ For library code where you are not sure if it will be used by others in Node or
56
+ in the browser, then explicitly depending on amdefine and placing the code
57
+ snippet above is suggested path, instead of using `amdefine/intercept`. The
58
+ intercept module affects all .js files loaded in the Node app, and it is
59
+ inconsiderate to modify global state like that unless you are also controlling
60
+ the top level app.
61
+
62
+ #### Why distribute AMD-style modules via npm?
63
+
64
+ npm has a lot of weaknesses for front-end use (installed layout is not great,
65
+ should have better support for the `baseUrl + moduleID + '.js' style of loading,
66
+ single file JS installs), but some people want a JS package manager and are
67
+ willing to live with those constraints. If that is you, but still want to author
68
+ in AMD style modules to get dynamic require([]), better direct source usage and
69
+ powerful loader plugin support in the browser, then this tool can help.
70
+
71
+ #### amdefine/intercept usage
72
+
73
+ Just require it in your top level app module (for example index.js, server.js):
74
+
75
+ ```javascript
76
+ require('amdefine/intercept');
77
+ ```
78
+
79
+ The module does not return a value, so no need to assign the result to a local
80
+ variable.
81
+
82
+ Then just require() code as you normally would with Node's require(). Any .js
83
+ loaded after the intercept require will have the amdefine check injected in
84
+ the .js source as it is loaded. It does not modify the source on disk, just
85
+ prepends some content to the text of the module as it is loaded by Node.
86
+
87
+ #### How amdefine/intercept works
88
+
89
+ It overrides the `Module._extensions['.js']` in Node to automatically prepend
90
+ the amdefine snippet above. So, it will affect any .js file loaded by your
91
+ app.
92
+
93
+ ## define() usage
94
+
95
+ It is best if you use the anonymous forms of define() in your module:
96
+
97
+ ```javascript
98
+ define(function (require) {
99
+ var dependency = require('dependency');
100
+ });
101
+ ```
102
+
103
+ or
104
+
105
+ ```javascript
106
+ define(['dependency'], function (dependency) {
107
+
108
+ });
109
+ ```
110
+
111
+ ## RequireJS optimizer integration. <a name="optimizer"></name>
112
+
113
+ Version 1.0.3 of the [RequireJS optimizer](http://requirejs.org/docs/optimization.html)
114
+ will have support for stripping the `if (typeof define !== 'function')` check
115
+ mentioned above, so you can include this snippet for code that runs in the
116
+ browser, but avoid taking the cost of the if() statement once the code is
117
+ optimized for deployment.
118
+
119
+ ## Node 0.4 Support
120
+
121
+ If you want to support Node 0.4, then add `require` as the second parameter to amdefine:
122
+
123
+ ```javascript
124
+ //Only if you want Node 0.4. If using 0.5 or later, use the above snippet.
125
+ if (typeof define !== 'function') { var define = require('amdefine')(module, require) }
126
+ ```
127
+
128
+ ## Limitations
129
+
130
+ ### Synchronous vs Asynchronous
131
+
132
+ amdefine creates a define() function that is callable by your code. It will
133
+ execute and trace dependencies and call the factory function *synchronously*,
134
+ to keep the behavior in line with Node's synchronous dependency tracing.
135
+
136
+ The exception: calling AMD's callback-style require() from inside a factory
137
+ function. The require callback is called on process.nextTick():
138
+
139
+ ```javascript
140
+ define(function (require) {
141
+ require(['a'], function(a) {
142
+ //'a' is loaded synchronously, but
143
+ //this callback is called on process.nextTick().
144
+ });
145
+ });
146
+ ```
147
+
148
+ ### Loader Plugins
149
+
150
+ Loader plugins are supported as long as they call their load() callbacks
151
+ synchronously. So ones that do network requests will not work. However plugins
152
+ like [text](http://requirejs.org/docs/api.html#text) can load text files locally.
153
+
154
+ The plugin API's `load.fromText()` is **not supported** in amdefine, so this means
155
+ transpiler plugins like the [CoffeeScript loader plugin](https://github.com/jrburke/require-cs)
156
+ will not work. This may be fixable, but it is a bit complex, and I do not have
157
+ enough node-fu to figure it out yet. See the source for amdefine.js if you want
158
+ to get an idea of the issues involved.
159
+
160
+ ## Tests
161
+
162
+ To run the tests, cd to **tests** and run:
163
+
164
+ ```
165
+ node all.js
166
+ node all-intercept.js
167
+ ```
168
+
169
+ ## License
170
+
171
+ New BSD and MIT. Check the LICENSE file for all the details.