pdf-creator-node 1.4.0 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1238) hide show
  1. package/package.json +2 -2
  2. package/.DS_Store +0 -0
  3. package/example/index.js +0 -42
  4. package/example/node_modules/ajv/.tonic_example.js +0 -20
  5. package/example/node_modules/ajv/LICENSE +0 -22
  6. package/example/node_modules/ajv/README.md +0 -1344
  7. package/example/node_modules/ajv/dist/ajv.bundle.js +0 -7165
  8. package/example/node_modules/ajv/dist/ajv.min.js +0 -3
  9. package/example/node_modules/ajv/dist/ajv.min.js.map +0 -1
  10. package/example/node_modules/ajv/lib/.DS_Store +0 -0
  11. package/example/node_modules/ajv/lib/ajv.d.ts +0 -389
  12. package/example/node_modules/ajv/lib/ajv.js +0 -497
  13. package/example/node_modules/ajv/lib/cache.js +0 -26
  14. package/example/node_modules/ajv/lib/compile/async.js +0 -90
  15. package/example/node_modules/ajv/lib/compile/equal.js +0 -5
  16. package/example/node_modules/ajv/lib/compile/error_classes.js +0 -34
  17. package/example/node_modules/ajv/lib/compile/formats.js +0 -149
  18. package/example/node_modules/ajv/lib/compile/index.js +0 -387
  19. package/example/node_modules/ajv/lib/compile/resolve.js +0 -270
  20. package/example/node_modules/ajv/lib/compile/rules.js +0 -66
  21. package/example/node_modules/ajv/lib/compile/schema_obj.js +0 -9
  22. package/example/node_modules/ajv/lib/compile/ucs2length.js +0 -20
  23. package/example/node_modules/ajv/lib/compile/util.js +0 -274
  24. package/example/node_modules/ajv/lib/data.js +0 -49
  25. package/example/node_modules/ajv/lib/dot/_limit.jst +0 -104
  26. package/example/node_modules/ajv/lib/dot/_limitItems.jst +0 -10
  27. package/example/node_modules/ajv/lib/dot/_limitLength.jst +0 -10
  28. package/example/node_modules/ajv/lib/dot/_limitProperties.jst +0 -10
  29. package/example/node_modules/ajv/lib/dot/allOf.jst +0 -34
  30. package/example/node_modules/ajv/lib/dot/anyOf.jst +0 -48
  31. package/example/node_modules/ajv/lib/dot/coerce.def +0 -61
  32. package/example/node_modules/ajv/lib/dot/comment.jst +0 -9
  33. package/example/node_modules/ajv/lib/dot/const.jst +0 -11
  34. package/example/node_modules/ajv/lib/dot/contains.jst +0 -57
  35. package/example/node_modules/ajv/lib/dot/custom.jst +0 -191
  36. package/example/node_modules/ajv/lib/dot/defaults.def +0 -47
  37. package/example/node_modules/ajv/lib/dot/definitions.def +0 -199
  38. package/example/node_modules/ajv/lib/dot/dependencies.jst +0 -80
  39. package/example/node_modules/ajv/lib/dot/enum.jst +0 -30
  40. package/example/node_modules/ajv/lib/dot/errors.def +0 -194
  41. package/example/node_modules/ajv/lib/dot/format.jst +0 -106
  42. package/example/node_modules/ajv/lib/dot/if.jst +0 -75
  43. package/example/node_modules/ajv/lib/dot/items.jst +0 -100
  44. package/example/node_modules/ajv/lib/dot/missing.def +0 -39
  45. package/example/node_modules/ajv/lib/dot/multipleOf.jst +0 -20
  46. package/example/node_modules/ajv/lib/dot/not.jst +0 -43
  47. package/example/node_modules/ajv/lib/dot/oneOf.jst +0 -54
  48. package/example/node_modules/ajv/lib/dot/pattern.jst +0 -14
  49. package/example/node_modules/ajv/lib/dot/properties.jst +0 -244
  50. package/example/node_modules/ajv/lib/dot/propertyNames.jst +0 -54
  51. package/example/node_modules/ajv/lib/dot/ref.jst +0 -85
  52. package/example/node_modules/ajv/lib/dot/required.jst +0 -108
  53. package/example/node_modules/ajv/lib/dot/uniqueItems.jst +0 -62
  54. package/example/node_modules/ajv/lib/dot/validate.jst +0 -282
  55. package/example/node_modules/ajv/lib/dotjs/README.md +0 -3
  56. package/example/node_modules/ajv/lib/dotjs/_limit.js +0 -157
  57. package/example/node_modules/ajv/lib/dotjs/_limitItems.js +0 -77
  58. package/example/node_modules/ajv/lib/dotjs/_limitLength.js +0 -82
  59. package/example/node_modules/ajv/lib/dotjs/_limitProperties.js +0 -77
  60. package/example/node_modules/ajv/lib/dotjs/allOf.js +0 -43
  61. package/example/node_modules/ajv/lib/dotjs/anyOf.js +0 -74
  62. package/example/node_modules/ajv/lib/dotjs/comment.js +0 -14
  63. package/example/node_modules/ajv/lib/dotjs/const.js +0 -56
  64. package/example/node_modules/ajv/lib/dotjs/contains.js +0 -82
  65. package/example/node_modules/ajv/lib/dotjs/custom.js +0 -228
  66. package/example/node_modules/ajv/lib/dotjs/dependencies.js +0 -168
  67. package/example/node_modules/ajv/lib/dotjs/enum.js +0 -66
  68. package/example/node_modules/ajv/lib/dotjs/format.js +0 -150
  69. package/example/node_modules/ajv/lib/dotjs/if.js +0 -104
  70. package/example/node_modules/ajv/lib/dotjs/index.js +0 -33
  71. package/example/node_modules/ajv/lib/dotjs/items.js +0 -141
  72. package/example/node_modules/ajv/lib/dotjs/multipleOf.js +0 -77
  73. package/example/node_modules/ajv/lib/dotjs/not.js +0 -84
  74. package/example/node_modules/ajv/lib/dotjs/oneOf.js +0 -73
  75. package/example/node_modules/ajv/lib/dotjs/pattern.js +0 -75
  76. package/example/node_modules/ajv/lib/dotjs/properties.js +0 -330
  77. package/example/node_modules/ajv/lib/dotjs/propertyNames.js +0 -82
  78. package/example/node_modules/ajv/lib/dotjs/ref.js +0 -124
  79. package/example/node_modules/ajv/lib/dotjs/required.js +0 -270
  80. package/example/node_modules/ajv/lib/dotjs/uniqueItems.js +0 -86
  81. package/example/node_modules/ajv/lib/dotjs/validate.js +0 -494
  82. package/example/node_modules/ajv/lib/keyword.js +0 -178
  83. package/example/node_modules/ajv/lib/refs/data.json +0 -17
  84. package/example/node_modules/ajv/lib/refs/json-schema-draft-04.json +0 -149
  85. package/example/node_modules/ajv/lib/refs/json-schema-draft-06.json +0 -154
  86. package/example/node_modules/ajv/lib/refs/json-schema-draft-07.json +0 -168
  87. package/example/node_modules/ajv/lib/refs/json-schema-secure.json +0 -94
  88. package/example/node_modules/ajv/package.json +0 -129
  89. package/example/node_modules/ajv/scripts/.eslintrc.yml +0 -3
  90. package/example/node_modules/ajv/scripts/bundle.js +0 -61
  91. package/example/node_modules/ajv/scripts/compile-dots.js +0 -73
  92. package/example/node_modules/ajv/scripts/info +0 -10
  93. package/example/node_modules/ajv/scripts/prepare-tests +0 -12
  94. package/example/node_modules/ajv/scripts/publish-built-version +0 -32
  95. package/example/node_modules/ajv/scripts/travis-gh-pages +0 -23
  96. package/example/node_modules/asn1/LICENSE +0 -19
  97. package/example/node_modules/asn1/README.md +0 -50
  98. package/example/node_modules/asn1/lib/ber/errors.js +0 -13
  99. package/example/node_modules/asn1/lib/ber/index.js +0 -27
  100. package/example/node_modules/asn1/lib/ber/reader.js +0 -262
  101. package/example/node_modules/asn1/lib/ber/types.js +0 -36
  102. package/example/node_modules/asn1/lib/ber/writer.js +0 -317
  103. package/example/node_modules/asn1/lib/index.js +0 -20
  104. package/example/node_modules/asn1/package.json +0 -79
  105. package/example/node_modules/assert-plus/AUTHORS +0 -6
  106. package/example/node_modules/assert-plus/CHANGES.md +0 -14
  107. package/example/node_modules/assert-plus/README.md +0 -162
  108. package/example/node_modules/assert-plus/assert.js +0 -211
  109. package/example/node_modules/assert-plus/package.json +0 -91
  110. package/example/node_modules/asynckit/LICENSE +0 -21
  111. package/example/node_modules/asynckit/README.md +0 -233
  112. package/example/node_modules/asynckit/bench.js +0 -76
  113. package/example/node_modules/asynckit/index.js +0 -6
  114. package/example/node_modules/asynckit/lib/abort.js +0 -29
  115. package/example/node_modules/asynckit/lib/async.js +0 -34
  116. package/example/node_modules/asynckit/lib/defer.js +0 -26
  117. package/example/node_modules/asynckit/lib/iterate.js +0 -75
  118. package/example/node_modules/asynckit/lib/readable_asynckit.js +0 -91
  119. package/example/node_modules/asynckit/lib/readable_parallel.js +0 -25
  120. package/example/node_modules/asynckit/lib/readable_serial.js +0 -25
  121. package/example/node_modules/asynckit/lib/readable_serial_ordered.js +0 -29
  122. package/example/node_modules/asynckit/lib/state.js +0 -37
  123. package/example/node_modules/asynckit/lib/streamify.js +0 -141
  124. package/example/node_modules/asynckit/lib/terminator.js +0 -29
  125. package/example/node_modules/asynckit/package.json +0 -95
  126. package/example/node_modules/asynckit/parallel.js +0 -43
  127. package/example/node_modules/asynckit/serial.js +0 -17
  128. package/example/node_modules/asynckit/serialOrdered.js +0 -75
  129. package/example/node_modules/asynckit/stream.js +0 -21
  130. package/example/node_modules/aws-sign2/LICENSE +0 -55
  131. package/example/node_modules/aws-sign2/README.md +0 -4
  132. package/example/node_modules/aws-sign2/index.js +0 -212
  133. package/example/node_modules/aws-sign2/package.json +0 -54
  134. package/example/node_modules/aws4/.travis.yml +0 -5
  135. package/example/node_modules/aws4/LICENSE +0 -19
  136. package/example/node_modules/aws4/README.md +0 -523
  137. package/example/node_modules/aws4/aws4.js +0 -332
  138. package/example/node_modules/aws4/lru.js +0 -96
  139. package/example/node_modules/aws4/package.json +0 -108
  140. package/example/node_modules/bcrypt-pbkdf/CONTRIBUTING.md +0 -13
  141. package/example/node_modules/bcrypt-pbkdf/LICENSE +0 -66
  142. package/example/node_modules/bcrypt-pbkdf/README.md +0 -45
  143. package/example/node_modules/bcrypt-pbkdf/index.js +0 -556
  144. package/example/node_modules/bcrypt-pbkdf/package.json +0 -48
  145. package/example/node_modules/buffer-from/LICENSE +0 -21
  146. package/example/node_modules/buffer-from/index.js +0 -69
  147. package/example/node_modules/buffer-from/package.json +0 -56
  148. package/example/node_modules/buffer-from/readme.md +0 -69
  149. package/example/node_modules/caseless/LICENSE +0 -28
  150. package/example/node_modules/caseless/README.md +0 -45
  151. package/example/node_modules/caseless/index.js +0 -67
  152. package/example/node_modules/caseless/package.json +0 -60
  153. package/example/node_modules/caseless/test.js +0 -67
  154. package/example/node_modules/combined-stream/License +0 -19
  155. package/example/node_modules/combined-stream/Readme.md +0 -138
  156. package/example/node_modules/combined-stream/lib/combined_stream.js +0 -208
  157. package/example/node_modules/combined-stream/package.json +0 -62
  158. package/example/node_modules/combined-stream/yarn.lock +0 -17
  159. package/example/node_modules/commander/CHANGELOG.md +0 -408
  160. package/example/node_modules/commander/LICENSE +0 -22
  161. package/example/node_modules/commander/Readme.md +0 -428
  162. package/example/node_modules/commander/index.js +0 -1224
  163. package/example/node_modules/commander/package.json +0 -74
  164. package/example/node_modules/commander/typings/index.d.ts +0 -310
  165. package/example/node_modules/concat-stream/LICENSE +0 -24
  166. package/example/node_modules/concat-stream/index.js +0 -144
  167. package/example/node_modules/concat-stream/package.json +0 -88
  168. package/example/node_modules/concat-stream/readme.md +0 -102
  169. package/example/node_modules/core-util-is/LICENSE +0 -19
  170. package/example/node_modules/core-util-is/README.md +0 -3
  171. package/example/node_modules/core-util-is/float.patch +0 -604
  172. package/example/node_modules/core-util-is/lib/util.js +0 -107
  173. package/example/node_modules/core-util-is/package.json +0 -67
  174. package/example/node_modules/core-util-is/test.js +0 -68
  175. package/example/node_modules/dashdash/CHANGES.md +0 -364
  176. package/example/node_modules/dashdash/LICENSE.txt +0 -24
  177. package/example/node_modules/dashdash/README.md +0 -574
  178. package/example/node_modules/dashdash/etc/dashdash.bash_completion.in +0 -389
  179. package/example/node_modules/dashdash/lib/dashdash.js +0 -1055
  180. package/example/node_modules/dashdash/package.json +0 -71
  181. package/example/node_modules/debug/.coveralls.yml +0 -1
  182. package/example/node_modules/debug/.eslintrc +0 -11
  183. package/example/node_modules/debug/.travis.yml +0 -14
  184. package/example/node_modules/debug/CHANGELOG.md +0 -362
  185. package/example/node_modules/debug/LICENSE +0 -19
  186. package/example/node_modules/debug/Makefile +0 -50
  187. package/example/node_modules/debug/README.md +0 -312
  188. package/example/node_modules/debug/component.json +0 -19
  189. package/example/node_modules/debug/karma.conf.js +0 -70
  190. package/example/node_modules/debug/node.js +0 -1
  191. package/example/node_modules/debug/package.json +0 -92
  192. package/example/node_modules/debug/src/browser.js +0 -185
  193. package/example/node_modules/debug/src/debug.js +0 -202
  194. package/example/node_modules/debug/src/index.js +0 -10
  195. package/example/node_modules/debug/src/inspector-log.js +0 -15
  196. package/example/node_modules/debug/src/node.js +0 -248
  197. package/example/node_modules/delayed-stream/License +0 -19
  198. package/example/node_modules/delayed-stream/Makefile +0 -7
  199. package/example/node_modules/delayed-stream/Readme.md +0 -141
  200. package/example/node_modules/delayed-stream/lib/delayed_stream.js +0 -107
  201. package/example/node_modules/delayed-stream/package.json +0 -66
  202. package/example/node_modules/ecc-jsbn/LICENSE +0 -21
  203. package/example/node_modules/ecc-jsbn/README.md +0 -8
  204. package/example/node_modules/ecc-jsbn/index.js +0 -58
  205. package/example/node_modules/ecc-jsbn/lib/LICENSE-jsbn +0 -40
  206. package/example/node_modules/ecc-jsbn/lib/ec.js +0 -561
  207. package/example/node_modules/ecc-jsbn/lib/sec.js +0 -170
  208. package/example/node_modules/ecc-jsbn/package.json +0 -69
  209. package/example/node_modules/ecc-jsbn/test.js +0 -14
  210. package/example/node_modules/es6-promise/CHANGELOG.md +0 -155
  211. package/example/node_modules/es6-promise/LICENSE +0 -19
  212. package/example/node_modules/es6-promise/README.md +0 -97
  213. package/example/node_modules/es6-promise/auto.js +0 -4
  214. package/example/node_modules/es6-promise/dist/es6-promise.auto.js +0 -1176
  215. package/example/node_modules/es6-promise/dist/es6-promise.auto.map +0 -1
  216. package/example/node_modules/es6-promise/dist/es6-promise.auto.min.js +0 -1
  217. package/example/node_modules/es6-promise/dist/es6-promise.auto.min.map +0 -1
  218. package/example/node_modules/es6-promise/dist/es6-promise.js +0 -1174
  219. package/example/node_modules/es6-promise/dist/es6-promise.map +0 -1
  220. package/example/node_modules/es6-promise/dist/es6-promise.min.js +0 -1
  221. package/example/node_modules/es6-promise/dist/es6-promise.min.map +0 -1
  222. package/example/node_modules/es6-promise/es6-promise.d.ts +0 -85
  223. package/example/node_modules/es6-promise/lib/es6-promise/-internal.js +0 -243
  224. package/example/node_modules/es6-promise/lib/es6-promise/asap.js +0 -119
  225. package/example/node_modules/es6-promise/lib/es6-promise/enumerator.js +0 -124
  226. package/example/node_modules/es6-promise/lib/es6-promise/polyfill.js +0 -35
  227. package/example/node_modules/es6-promise/lib/es6-promise/promise/all.js +0 -52
  228. package/example/node_modules/es6-promise/lib/es6-promise/promise/race.js +0 -84
  229. package/example/node_modules/es6-promise/lib/es6-promise/promise/reject.js +0 -46
  230. package/example/node_modules/es6-promise/lib/es6-promise/promise/resolve.js +0 -48
  231. package/example/node_modules/es6-promise/lib/es6-promise/promise.js +0 -431
  232. package/example/node_modules/es6-promise/lib/es6-promise/then.js +0 -32
  233. package/example/node_modules/es6-promise/lib/es6-promise/utils.js +0 -21
  234. package/example/node_modules/es6-promise/lib/es6-promise.auto.js +0 -3
  235. package/example/node_modules/es6-promise/lib/es6-promise.js +0 -7
  236. package/example/node_modules/es6-promise/package.json +0 -110
  237. package/example/node_modules/extend/.editorconfig +0 -20
  238. package/example/node_modules/extend/.eslintrc +0 -17
  239. package/example/node_modules/extend/.jscs.json +0 -175
  240. package/example/node_modules/extend/.travis.yml +0 -230
  241. package/example/node_modules/extend/CHANGELOG.md +0 -83
  242. package/example/node_modules/extend/LICENSE +0 -23
  243. package/example/node_modules/extend/README.md +0 -81
  244. package/example/node_modules/extend/component.json +0 -32
  245. package/example/node_modules/extend/index.js +0 -117
  246. package/example/node_modules/extend/package.json +0 -79
  247. package/example/node_modules/extract-zip/.travis.yml +0 -9
  248. package/example/node_modules/extract-zip/CONTRIBUTING.md +0 -1
  249. package/example/node_modules/extract-zip/LICENSE +0 -23
  250. package/example/node_modules/extract-zip/cli.js +0 -20
  251. package/example/node_modules/extract-zip/index.js +0 -205
  252. package/example/node_modules/extract-zip/package.json +0 -73
  253. package/example/node_modules/extract-zip/readme.md +0 -49
  254. package/example/node_modules/extsprintf/.gitmodules +0 -0
  255. package/example/node_modules/extsprintf/LICENSE +0 -19
  256. package/example/node_modules/extsprintf/Makefile +0 -24
  257. package/example/node_modules/extsprintf/Makefile.targ +0 -285
  258. package/example/node_modules/extsprintf/README.md +0 -46
  259. package/example/node_modules/extsprintf/jsl.node.conf +0 -137
  260. package/example/node_modules/extsprintf/lib/extsprintf.js +0 -183
  261. package/example/node_modules/extsprintf/package.json +0 -48
  262. package/example/node_modules/fast-deep-equal/LICENSE +0 -21
  263. package/example/node_modules/fast-deep-equal/README.md +0 -58
  264. package/example/node_modules/fast-deep-equal/index.d.ts +0 -4
  265. package/example/node_modules/fast-deep-equal/index.js +0 -55
  266. package/example/node_modules/fast-deep-equal/package.json +0 -90
  267. package/example/node_modules/fast-json-stable-stringify/.eslintrc.yml +0 -26
  268. package/example/node_modules/fast-json-stable-stringify/.travis.yml +0 -8
  269. package/example/node_modules/fast-json-stable-stringify/LICENSE +0 -18
  270. package/example/node_modules/fast-json-stable-stringify/README.md +0 -119
  271. package/example/node_modules/fast-json-stable-stringify/benchmark/index.js +0 -31
  272. package/example/node_modules/fast-json-stable-stringify/benchmark/test.json +0 -137
  273. package/example/node_modules/fast-json-stable-stringify/example/key_cmp.js +0 -7
  274. package/example/node_modules/fast-json-stable-stringify/example/nested.js +0 -3
  275. package/example/node_modules/fast-json-stable-stringify/example/str.js +0 -3
  276. package/example/node_modules/fast-json-stable-stringify/example/value_cmp.js +0 -7
  277. package/example/node_modules/fast-json-stable-stringify/index.js +0 -59
  278. package/example/node_modules/fast-json-stable-stringify/package.json +0 -82
  279. package/example/node_modules/fast-json-stable-stringify/test/cmp.js +0 -13
  280. package/example/node_modules/fast-json-stable-stringify/test/nested.js +0 -44
  281. package/example/node_modules/fast-json-stable-stringify/test/str.js +0 -46
  282. package/example/node_modules/fast-json-stable-stringify/test/to-json.js +0 -22
  283. package/example/node_modules/fd-slicer/.travis.yml +0 -7
  284. package/example/node_modules/fd-slicer/CHANGELOG.md +0 -49
  285. package/example/node_modules/fd-slicer/LICENSE +0 -21
  286. package/example/node_modules/fd-slicer/README.md +0 -189
  287. package/example/node_modules/fd-slicer/index.js +0 -277
  288. package/example/node_modules/fd-slicer/package.json +0 -69
  289. package/example/node_modules/fd-slicer/test/test.js +0 -350
  290. package/example/node_modules/forever-agent/LICENSE +0 -55
  291. package/example/node_modules/forever-agent/README.md +0 -4
  292. package/example/node_modules/forever-agent/index.js +0 -138
  293. package/example/node_modules/forever-agent/package.json +0 -54
  294. package/example/node_modules/form-data/License +0 -19
  295. package/example/node_modules/form-data/README.md +0 -234
  296. package/example/node_modules/form-data/README.md.bak +0 -234
  297. package/example/node_modules/form-data/lib/browser.js +0 -2
  298. package/example/node_modules/form-data/lib/form_data.js +0 -457
  299. package/example/node_modules/form-data/lib/populate.js +0 -10
  300. package/example/node_modules/form-data/package.json +0 -102
  301. package/example/node_modules/form-data/yarn.lock +0 -2662
  302. package/example/node_modules/fs-extra/CHANGELOG.md +0 -656
  303. package/example/node_modules/fs-extra/LICENSE +0 -15
  304. package/example/node_modules/fs-extra/README.md +0 -603
  305. package/example/node_modules/fs-extra/lib/copy/copy.js +0 -50
  306. package/example/node_modules/fs-extra/lib/copy/index.js +0 -3
  307. package/example/node_modules/fs-extra/lib/copy/ncp.js +0 -232
  308. package/example/node_modules/fs-extra/lib/copy-sync/copy-file-sync.js +0 -42
  309. package/example/node_modules/fs-extra/lib/copy-sync/copy-sync.js +0 -56
  310. package/example/node_modules/fs-extra/lib/copy-sync/index.js +0 -3
  311. package/example/node_modules/fs-extra/lib/empty/index.js +0 -47
  312. package/example/node_modules/fs-extra/lib/ensure/file.js +0 -43
  313. package/example/node_modules/fs-extra/lib/ensure/index.js +0 -21
  314. package/example/node_modules/fs-extra/lib/ensure/link.js +0 -58
  315. package/example/node_modules/fs-extra/lib/ensure/symlink-paths.js +0 -96
  316. package/example/node_modules/fs-extra/lib/ensure/symlink-type.js +0 -27
  317. package/example/node_modules/fs-extra/lib/ensure/symlink.js +0 -62
  318. package/example/node_modules/fs-extra/lib/index.js +0 -38
  319. package/example/node_modules/fs-extra/lib/json/index.js +0 -9
  320. package/example/node_modules/fs-extra/lib/json/jsonfile.js +0 -14
  321. package/example/node_modules/fs-extra/lib/json/output-json-sync.js +0 -16
  322. package/example/node_modules/fs-extra/lib/json/output-json.js +0 -24
  323. package/example/node_modules/fs-extra/lib/mkdirs/index.js +0 -9
  324. package/example/node_modules/fs-extra/lib/mkdirs/mkdirs-sync.js +0 -57
  325. package/example/node_modules/fs-extra/lib/mkdirs/mkdirs.js +0 -61
  326. package/example/node_modules/fs-extra/lib/mkdirs/win32.js +0 -24
  327. package/example/node_modules/fs-extra/lib/move/index.js +0 -161
  328. package/example/node_modules/fs-extra/lib/output/index.js +0 -35
  329. package/example/node_modules/fs-extra/lib/remove/index.js +0 -15
  330. package/example/node_modules/fs-extra/lib/remove/rimraf.js +0 -301
  331. package/example/node_modules/fs-extra/lib/util/assign.js +0 -14
  332. package/example/node_modules/fs-extra/lib/util/utimes.js +0 -70
  333. package/example/node_modules/fs-extra/lib/walk/index.js +0 -5
  334. package/example/node_modules/fs-extra/lib/walk-sync/index.js +0 -20
  335. package/example/node_modules/fs-extra/package.json +0 -96
  336. package/example/node_modules/getpass/.travis.yml +0 -9
  337. package/example/node_modules/getpass/LICENSE +0 -18
  338. package/example/node_modules/getpass/README.md +0 -32
  339. package/example/node_modules/getpass/lib/index.js +0 -123
  340. package/example/node_modules/getpass/package.json +0 -54
  341. package/example/node_modules/graceful-fs/LICENSE +0 -15
  342. package/example/node_modules/graceful-fs/README.md +0 -133
  343. package/example/node_modules/graceful-fs/clone.js +0 -19
  344. package/example/node_modules/graceful-fs/graceful-fs.js +0 -279
  345. package/example/node_modules/graceful-fs/legacy-streams.js +0 -118
  346. package/example/node_modules/graceful-fs/package.json +0 -85
  347. package/example/node_modules/graceful-fs/polyfills.js +0 -336
  348. package/example/node_modules/handlebars/LICENSE +0 -19
  349. package/example/node_modules/handlebars/README.markdown +0 -168
  350. package/example/node_modules/handlebars/bin/handlebars +0 -128
  351. package/example/node_modules/handlebars/dist/amd/handlebars/base.js +0 -96
  352. package/example/node_modules/handlebars/dist/amd/handlebars/compiler/ast.js +0 -31
  353. package/example/node_modules/handlebars/dist/amd/handlebars/compiler/base.js +0 -36
  354. package/example/node_modules/handlebars/dist/amd/handlebars/compiler/code-gen.js +0 -163
  355. package/example/node_modules/handlebars/dist/amd/handlebars/compiler/compiler.js +0 -569
  356. package/example/node_modules/handlebars/dist/amd/handlebars/compiler/helpers.js +0 -228
  357. package/example/node_modules/handlebars/dist/amd/handlebars/compiler/javascript-compiler.js +0 -1123
  358. package/example/node_modules/handlebars/dist/amd/handlebars/compiler/parser.js +0 -737
  359. package/example/node_modules/handlebars/dist/amd/handlebars/compiler/printer.js +0 -186
  360. package/example/node_modules/handlebars/dist/amd/handlebars/compiler/visitor.js +0 -138
  361. package/example/node_modules/handlebars/dist/amd/handlebars/compiler/whitespace-control.js +0 -219
  362. package/example/node_modules/handlebars/dist/amd/handlebars/decorators/inline.js +0 -25
  363. package/example/node_modules/handlebars/dist/amd/handlebars/decorators.js +0 -16
  364. package/example/node_modules/handlebars/dist/amd/handlebars/exception.js +0 -53
  365. package/example/node_modules/handlebars/dist/amd/handlebars/helpers/block-helper-missing.js +0 -35
  366. package/example/node_modules/handlebars/dist/amd/handlebars/helpers/each.js +0 -89
  367. package/example/node_modules/handlebars/dist/amd/handlebars/helpers/helper-missing.js +0 -22
  368. package/example/node_modules/handlebars/dist/amd/handlebars/helpers/if.js +0 -25
  369. package/example/node_modules/handlebars/dist/amd/handlebars/helpers/log.js +0 -24
  370. package/example/node_modules/handlebars/dist/amd/handlebars/helpers/lookup.js +0 -16
  371. package/example/node_modules/handlebars/dist/amd/handlebars/helpers/with.js +0 -29
  372. package/example/node_modules/handlebars/dist/amd/handlebars/helpers.js +0 -34
  373. package/example/node_modules/handlebars/dist/amd/handlebars/logger.js +0 -44
  374. package/example/node_modules/handlebars/dist/amd/handlebars/no-conflict.js +0 -18
  375. package/example/node_modules/handlebars/dist/amd/handlebars/runtime.js +0 -297
  376. package/example/node_modules/handlebars/dist/amd/handlebars/safe-string.js +0 -15
  377. package/example/node_modules/handlebars/dist/amd/handlebars/utils.js +0 -126
  378. package/example/node_modules/handlebars/dist/amd/handlebars.js +0 -51
  379. package/example/node_modules/handlebars/dist/amd/handlebars.runtime.js +0 -44
  380. package/example/node_modules/handlebars/dist/amd/precompiler.js +0 -313
  381. package/example/node_modules/handlebars/dist/cjs/handlebars/base.js +0 -104
  382. package/example/node_modules/handlebars/dist/cjs/handlebars/compiler/ast.js +0 -31
  383. package/example/node_modules/handlebars/dist/cjs/handlebars/compiler/base.js +0 -48
  384. package/example/node_modules/handlebars/dist/cjs/handlebars/compiler/code-gen.js +0 -166
  385. package/example/node_modules/handlebars/dist/cjs/handlebars/compiler/compiler.js +0 -573
  386. package/example/node_modules/handlebars/dist/cjs/handlebars/compiler/helpers.js +0 -228
  387. package/example/node_modules/handlebars/dist/cjs/handlebars/compiler/javascript-compiler.js +0 -1131
  388. package/example/node_modules/handlebars/dist/cjs/handlebars/compiler/parser.js +0 -737
  389. package/example/node_modules/handlebars/dist/cjs/handlebars/compiler/printer.js +0 -186
  390. package/example/node_modules/handlebars/dist/cjs/handlebars/compiler/visitor.js +0 -140
  391. package/example/node_modules/handlebars/dist/cjs/handlebars/compiler/whitespace-control.js +0 -221
  392. package/example/node_modules/handlebars/dist/cjs/handlebars/decorators/inline.js +0 -29
  393. package/example/node_modules/handlebars/dist/cjs/handlebars/decorators.js +0 -16
  394. package/example/node_modules/handlebars/dist/cjs/handlebars/exception.js +0 -54
  395. package/example/node_modules/handlebars/dist/cjs/handlebars/helpers/block-helper-missing.js +0 -39
  396. package/example/node_modules/handlebars/dist/cjs/handlebars/helpers/each.js +0 -94
  397. package/example/node_modules/handlebars/dist/cjs/handlebars/helpers/helper-missing.js +0 -25
  398. package/example/node_modules/handlebars/dist/cjs/handlebars/helpers/if.js +0 -29
  399. package/example/node_modules/handlebars/dist/cjs/handlebars/helpers/log.js +0 -26
  400. package/example/node_modules/handlebars/dist/cjs/handlebars/helpers/lookup.js +0 -18
  401. package/example/node_modules/handlebars/dist/cjs/handlebars/helpers/with.js +0 -33
  402. package/example/node_modules/handlebars/dist/cjs/handlebars/helpers.js +0 -46
  403. package/example/node_modules/handlebars/dist/cjs/handlebars/logger.js +0 -47
  404. package/example/node_modules/handlebars/dist/cjs/handlebars/no-conflict.js +0 -20
  405. package/example/node_modules/handlebars/dist/cjs/handlebars/runtime.js +0 -307
  406. package/example/node_modules/handlebars/dist/cjs/handlebars/safe-string.js +0 -15
  407. package/example/node_modules/handlebars/dist/cjs/handlebars/utils.js +0 -124
  408. package/example/node_modules/handlebars/dist/cjs/handlebars.js +0 -65
  409. package/example/node_modules/handlebars/dist/cjs/handlebars.runtime.js +0 -66
  410. package/example/node_modules/handlebars/dist/cjs/precompiler.js +0 -327
  411. package/example/node_modules/handlebars/dist/handlebars.amd.js +0 -4357
  412. package/example/node_modules/handlebars/dist/handlebars.amd.min.js +0 -29
  413. package/example/node_modules/handlebars/dist/handlebars.js +0 -4845
  414. package/example/node_modules/handlebars/dist/handlebars.min.js +0 -29
  415. package/example/node_modules/handlebars/dist/handlebars.runtime.amd.js +0 -1052
  416. package/example/node_modules/handlebars/dist/handlebars.runtime.amd.min.js +0 -27
  417. package/example/node_modules/handlebars/dist/handlebars.runtime.js +0 -1474
  418. package/example/node_modules/handlebars/dist/handlebars.runtime.min.js +0 -27
  419. package/example/node_modules/handlebars/lib/handlebars/base.js +0 -78
  420. package/example/node_modules/handlebars/lib/handlebars/compiler/ast.js +0 -28
  421. package/example/node_modules/handlebars/lib/handlebars/compiler/base.js +0 -24
  422. package/example/node_modules/handlebars/lib/handlebars/compiler/code-gen.js +0 -168
  423. package/example/node_modules/handlebars/lib/handlebars/compiler/compiler.js +0 -559
  424. package/example/node_modules/handlebars/lib/handlebars/compiler/helpers.js +0 -210
  425. package/example/node_modules/handlebars/lib/handlebars/compiler/javascript-compiler.js +0 -1140
  426. package/example/node_modules/handlebars/lib/handlebars/compiler/parser.js +0 -622
  427. package/example/node_modules/handlebars/lib/handlebars/compiler/printer.js +0 -171
  428. package/example/node_modules/handlebars/lib/handlebars/compiler/visitor.js +0 -129
  429. package/example/node_modules/handlebars/lib/handlebars/compiler/whitespace-control.js +0 -216
  430. package/example/node_modules/handlebars/lib/handlebars/decorators/inline.js +0 -22
  431. package/example/node_modules/handlebars/lib/handlebars/decorators.js +0 -6
  432. package/example/node_modules/handlebars/lib/handlebars/exception.js +0 -49
  433. package/example/node_modules/handlebars/lib/handlebars/helpers/block-helper-missing.js +0 -32
  434. package/example/node_modules/handlebars/lib/handlebars/helpers/each.js +0 -79
  435. package/example/node_modules/handlebars/lib/handlebars/helpers/helper-missing.js +0 -13
  436. package/example/node_modules/handlebars/lib/handlebars/helpers/if.js +0 -20
  437. package/example/node_modules/handlebars/lib/handlebars/helpers/log.js +0 -19
  438. package/example/node_modules/handlebars/lib/handlebars/helpers/lookup.js +0 -11
  439. package/example/node_modules/handlebars/lib/handlebars/helpers/with.js +0 -24
  440. package/example/node_modules/handlebars/lib/handlebars/helpers.js +0 -17
  441. package/example/node_modules/handlebars/lib/handlebars/logger.js +0 -35
  442. package/example/node_modules/handlebars/lib/handlebars/no-conflict.js +0 -13
  443. package/example/node_modules/handlebars/lib/handlebars/runtime.js +0 -281
  444. package/example/node_modules/handlebars/lib/handlebars/safe-string.js +0 -10
  445. package/example/node_modules/handlebars/lib/handlebars/utils.js +0 -108
  446. package/example/node_modules/handlebars/lib/handlebars.js +0 -41
  447. package/example/node_modules/handlebars/lib/handlebars.runtime.js +0 -37
  448. package/example/node_modules/handlebars/lib/index.js +0 -25
  449. package/example/node_modules/handlebars/lib/precompiler.js +0 -298
  450. package/example/node_modules/handlebars/package.json +0 -126
  451. package/example/node_modules/handlebars/print-script +0 -95
  452. package/example/node_modules/handlebars/release-notes.md +0 -638
  453. package/example/node_modules/handlebars/runtime.js +0 -3
  454. package/example/node_modules/handlebars/types/index.d.ts +0 -357
  455. package/example/node_modules/har-schema/LICENSE +0 -13
  456. package/example/node_modules/har-schema/README.md +0 -49
  457. package/example/node_modules/har-schema/lib/afterRequest.json +0 -30
  458. package/example/node_modules/har-schema/lib/beforeRequest.json +0 -30
  459. package/example/node_modules/har-schema/lib/browser.json +0 -20
  460. package/example/node_modules/har-schema/lib/cache.json +0 -21
  461. package/example/node_modules/har-schema/lib/content.json +0 -29
  462. package/example/node_modules/har-schema/lib/cookie.json +0 -36
  463. package/example/node_modules/har-schema/lib/creator.json +0 -20
  464. package/example/node_modules/har-schema/lib/entry.json +0 -53
  465. package/example/node_modules/har-schema/lib/har.json +0 -13
  466. package/example/node_modules/har-schema/lib/header.json +0 -20
  467. package/example/node_modules/har-schema/lib/index.js +0 -22
  468. package/example/node_modules/har-schema/lib/log.json +0 -36
  469. package/example/node_modules/har-schema/lib/page.json +0 -32
  470. package/example/node_modules/har-schema/lib/pageTimings.json +0 -18
  471. package/example/node_modules/har-schema/lib/postData.json +0 -43
  472. package/example/node_modules/har-schema/lib/query.json +0 -20
  473. package/example/node_modules/har-schema/lib/request.json +0 -57
  474. package/example/node_modules/har-schema/lib/response.json +0 -54
  475. package/example/node_modules/har-schema/lib/timings.json +0 -42
  476. package/example/node_modules/har-schema/package.json +0 -90
  477. package/example/node_modules/har-validator/LICENSE +0 -9
  478. package/example/node_modules/har-validator/README.md +0 -37
  479. package/example/node_modules/har-validator/lib/async.js +0 -105
  480. package/example/node_modules/har-validator/lib/error.js +0 -17
  481. package/example/node_modules/har-validator/lib/promise.js +0 -102
  482. package/example/node_modules/har-validator/package.json +0 -80
  483. package/example/node_modules/hasha/index.js +0 -70
  484. package/example/node_modules/hasha/license +0 -21
  485. package/example/node_modules/hasha/package.json +0 -88
  486. package/example/node_modules/hasha/readme.md +0 -120
  487. package/example/node_modules/html-pdf/LICENSE +0 -21
  488. package/example/node_modules/html-pdf/README.md +0 -170
  489. package/example/node_modules/html-pdf/bin/index.js +0 -32
  490. package/example/node_modules/html-pdf/circle.yml +0 -3
  491. package/example/node_modules/html-pdf/examples/businesscard/businesscard.html +0 -97
  492. package/example/node_modules/html-pdf/examples/businesscard/businesscard.png +0 -0
  493. package/example/node_modules/html-pdf/examples/businesscard/image.png +0 -0
  494. package/example/node_modules/html-pdf/examples/serve-http/index.js +0 -19
  495. package/example/node_modules/html-pdf/lib/index.js +0 -26
  496. package/example/node_modules/html-pdf/lib/pdf.js +0 -148
  497. package/example/node_modules/html-pdf/lib/scripts/pdf_a4_portrait.js +0 -225
  498. package/example/node_modules/html-pdf/package.json +0 -76
  499. package/example/node_modules/http-signature/.dir-locals.el +0 -6
  500. package/example/node_modules/http-signature/CHANGES.md +0 -46
  501. package/example/node_modules/http-signature/LICENSE +0 -18
  502. package/example/node_modules/http-signature/README.md +0 -79
  503. package/example/node_modules/http-signature/http_signing.md +0 -363
  504. package/example/node_modules/http-signature/lib/index.js +0 -29
  505. package/example/node_modules/http-signature/lib/parser.js +0 -315
  506. package/example/node_modules/http-signature/lib/signer.js +0 -401
  507. package/example/node_modules/http-signature/lib/utils.js +0 -112
  508. package/example/node_modules/http-signature/lib/verify.js +0 -88
  509. package/example/node_modules/http-signature/package.json +0 -81
  510. package/example/node_modules/inherits/LICENSE +0 -16
  511. package/example/node_modules/inherits/README.md +0 -42
  512. package/example/node_modules/inherits/inherits.js +0 -9
  513. package/example/node_modules/inherits/inherits_browser.js +0 -27
  514. package/example/node_modules/inherits/package.json +0 -66
  515. package/example/node_modules/is-stream/index.js +0 -21
  516. package/example/node_modules/is-stream/license +0 -21
  517. package/example/node_modules/is-stream/package.json +0 -74
  518. package/example/node_modules/is-stream/readme.md +0 -42
  519. package/example/node_modules/is-typedarray/LICENSE.md +0 -18
  520. package/example/node_modules/is-typedarray/README.md +0 -16
  521. package/example/node_modules/is-typedarray/index.js +0 -41
  522. package/example/node_modules/is-typedarray/package.json +0 -63
  523. package/example/node_modules/is-typedarray/test.js +0 -34
  524. package/example/node_modules/isarray/.travis.yml +0 -4
  525. package/example/node_modules/isarray/Makefile +0 -6
  526. package/example/node_modules/isarray/README.md +0 -60
  527. package/example/node_modules/isarray/component.json +0 -19
  528. package/example/node_modules/isarray/index.js +0 -5
  529. package/example/node_modules/isarray/package.json +0 -77
  530. package/example/node_modules/isarray/test.js +0 -20
  531. package/example/node_modules/isexe/LICENSE +0 -15
  532. package/example/node_modules/isexe/README.md +0 -51
  533. package/example/node_modules/isexe/index.js +0 -57
  534. package/example/node_modules/isexe/mode.js +0 -41
  535. package/example/node_modules/isexe/package.json +0 -64
  536. package/example/node_modules/isexe/test/basic.js +0 -221
  537. package/example/node_modules/isexe/windows.js +0 -42
  538. package/example/node_modules/isstream/.jshintrc +0 -59
  539. package/example/node_modules/isstream/.travis.yml +0 -12
  540. package/example/node_modules/isstream/LICENSE.md +0 -11
  541. package/example/node_modules/isstream/README.md +0 -66
  542. package/example/node_modules/isstream/isstream.js +0 -27
  543. package/example/node_modules/isstream/package.json +0 -65
  544. package/example/node_modules/isstream/test.js +0 -168
  545. package/example/node_modules/jsbn/LICENSE +0 -40
  546. package/example/node_modules/jsbn/README.md +0 -175
  547. package/example/node_modules/jsbn/example.html +0 -12
  548. package/example/node_modules/jsbn/example.js +0 -3
  549. package/example/node_modules/jsbn/index.js +0 -1357
  550. package/example/node_modules/jsbn/package.json +0 -57
  551. package/example/node_modules/json-schema/README.md +0 -5
  552. package/example/node_modules/json-schema/draft-00/hyper-schema +0 -68
  553. package/example/node_modules/json-schema/draft-00/json-ref +0 -26
  554. package/example/node_modules/json-schema/draft-00/links +0 -33
  555. package/example/node_modules/json-schema/draft-00/schema +0 -155
  556. package/example/node_modules/json-schema/draft-01/hyper-schema +0 -68
  557. package/example/node_modules/json-schema/draft-01/json-ref +0 -26
  558. package/example/node_modules/json-schema/draft-01/links +0 -33
  559. package/example/node_modules/json-schema/draft-01/schema +0 -155
  560. package/example/node_modules/json-schema/draft-02/hyper-schema +0 -68
  561. package/example/node_modules/json-schema/draft-02/json-ref +0 -26
  562. package/example/node_modules/json-schema/draft-02/links +0 -35
  563. package/example/node_modules/json-schema/draft-02/schema +0 -166
  564. package/example/node_modules/json-schema/draft-03/examples/address +0 -20
  565. package/example/node_modules/json-schema/draft-03/examples/calendar +0 -53
  566. package/example/node_modules/json-schema/draft-03/examples/card +0 -105
  567. package/example/node_modules/json-schema/draft-03/examples/geo +0 -8
  568. package/example/node_modules/json-schema/draft-03/examples/interfaces +0 -23
  569. package/example/node_modules/json-schema/draft-03/hyper-schema +0 -60
  570. package/example/node_modules/json-schema/draft-03/json-ref +0 -26
  571. package/example/node_modules/json-schema/draft-03/links +0 -35
  572. package/example/node_modules/json-schema/draft-03/schema +0 -174
  573. package/example/node_modules/json-schema/draft-04/hyper-schema +0 -60
  574. package/example/node_modules/json-schema/draft-04/links +0 -41
  575. package/example/node_modules/json-schema/draft-04/schema +0 -189
  576. package/example/node_modules/json-schema/draft-zyp-json-schema-03.xml +0 -1120
  577. package/example/node_modules/json-schema/draft-zyp-json-schema-04.xml +0 -1072
  578. package/example/node_modules/json-schema/lib/links.js +0 -66
  579. package/example/node_modules/json-schema/lib/validate.js +0 -273
  580. package/example/node_modules/json-schema/package.json +0 -75
  581. package/example/node_modules/json-schema/test/tests.js +0 -95
  582. package/example/node_modules/json-schema-traverse/.eslintrc.yml +0 -27
  583. package/example/node_modules/json-schema-traverse/.travis.yml +0 -8
  584. package/example/node_modules/json-schema-traverse/LICENSE +0 -21
  585. package/example/node_modules/json-schema-traverse/README.md +0 -83
  586. package/example/node_modules/json-schema-traverse/index.js +0 -89
  587. package/example/node_modules/json-schema-traverse/package.json +0 -74
  588. package/example/node_modules/json-schema-traverse/spec/.eslintrc.yml +0 -6
  589. package/example/node_modules/json-schema-traverse/spec/fixtures/schema.js +0 -125
  590. package/example/node_modules/json-schema-traverse/spec/index.spec.js +0 -171
  591. package/example/node_modules/json-stringify-safe/CHANGELOG.md +0 -14
  592. package/example/node_modules/json-stringify-safe/LICENSE +0 -15
  593. package/example/node_modules/json-stringify-safe/Makefile +0 -35
  594. package/example/node_modules/json-stringify-safe/README.md +0 -52
  595. package/example/node_modules/json-stringify-safe/package.json +0 -70
  596. package/example/node_modules/json-stringify-safe/stringify.js +0 -27
  597. package/example/node_modules/json-stringify-safe/test/mocha.opts +0 -2
  598. package/example/node_modules/json-stringify-safe/test/stringify_test.js +0 -246
  599. package/example/node_modules/jsonfile/CHANGELOG.md +0 -126
  600. package/example/node_modules/jsonfile/LICENSE +0 -15
  601. package/example/node_modules/jsonfile/README.md +0 -162
  602. package/example/node_modules/jsonfile/appveyor.yml +0 -28
  603. package/example/node_modules/jsonfile/index.js +0 -133
  604. package/example/node_modules/jsonfile/package.json +0 -73
  605. package/example/node_modules/jsprim/CHANGES.md +0 -49
  606. package/example/node_modules/jsprim/CONTRIBUTING.md +0 -19
  607. package/example/node_modules/jsprim/LICENSE +0 -19
  608. package/example/node_modules/jsprim/README.md +0 -287
  609. package/example/node_modules/jsprim/lib/jsprim.js +0 -735
  610. package/example/node_modules/jsprim/package.json +0 -53
  611. package/example/node_modules/kew/.travis.yml +0 -5
  612. package/example/node_modules/kew/LICENSE.TXT +0 -194
  613. package/example/node_modules/kew/README.md +0 -320
  614. package/example/node_modules/kew/kew.js +0 -860
  615. package/example/node_modules/kew/package.json +0 -63
  616. package/example/node_modules/kew/test/chain.js +0 -434
  617. package/example/node_modules/kew/test/closure_test.js +0 -135
  618. package/example/node_modules/kew/test/context.js +0 -89
  619. package/example/node_modules/kew/test/defer.js +0 -120
  620. package/example/node_modules/kew/test/externs_node.js +0 -9
  621. package/example/node_modules/kew/test/later.js +0 -45
  622. package/example/node_modules/kew/test/scopes.js +0 -59
  623. package/example/node_modules/kew/test/spread.js +0 -59
  624. package/example/node_modules/kew/test/static.js +0 -393
  625. package/example/node_modules/klaw/CHANGELOG.md +0 -42
  626. package/example/node_modules/klaw/LICENSE +0 -15
  627. package/example/node_modules/klaw/README.md +0 -270
  628. package/example/node_modules/klaw/package.json +0 -74
  629. package/example/node_modules/klaw/src/assign.js +0 -16
  630. package/example/node_modules/klaw/src/index.js +0 -57
  631. package/example/node_modules/mime-db/HISTORY.md +0 -417
  632. package/example/node_modules/mime-db/LICENSE +0 -22
  633. package/example/node_modules/mime-db/README.md +0 -94
  634. package/example/node_modules/mime-db/db.json +0 -7834
  635. package/example/node_modules/mime-db/index.js +0 -11
  636. package/example/node_modules/mime-db/package.json +0 -105
  637. package/example/node_modules/mime-types/HISTORY.md +0 -308
  638. package/example/node_modules/mime-types/LICENSE +0 -23
  639. package/example/node_modules/mime-types/README.md +0 -113
  640. package/example/node_modules/mime-types/index.js +0 -188
  641. package/example/node_modules/mime-types/package.json +0 -91
  642. package/example/node_modules/minimist/.travis.yml +0 -4
  643. package/example/node_modules/minimist/LICENSE +0 -18
  644. package/example/node_modules/minimist/example/parse.js +0 -2
  645. package/example/node_modules/minimist/index.js +0 -187
  646. package/example/node_modules/minimist/package.json +0 -74
  647. package/example/node_modules/minimist/readme.markdown +0 -73
  648. package/example/node_modules/minimist/test/bool.js +0 -119
  649. package/example/node_modules/minimist/test/dash.js +0 -24
  650. package/example/node_modules/minimist/test/default_bool.js +0 -20
  651. package/example/node_modules/minimist/test/dotted.js +0 -22
  652. package/example/node_modules/minimist/test/long.js +0 -31
  653. package/example/node_modules/minimist/test/num.js +0 -36
  654. package/example/node_modules/minimist/test/parse.js +0 -197
  655. package/example/node_modules/minimist/test/parse_modified.js +0 -9
  656. package/example/node_modules/minimist/test/short.js +0 -67
  657. package/example/node_modules/minimist/test/whitespace.js +0 -8
  658. package/example/node_modules/mkdirp/.travis.yml +0 -8
  659. package/example/node_modules/mkdirp/LICENSE +0 -21
  660. package/example/node_modules/mkdirp/bin/cmd.js +0 -33
  661. package/example/node_modules/mkdirp/bin/usage.txt +0 -12
  662. package/example/node_modules/mkdirp/examples/pow.js +0 -6
  663. package/example/node_modules/mkdirp/index.js +0 -98
  664. package/example/node_modules/mkdirp/node_modules/minimist/.travis.yml +0 -4
  665. package/example/node_modules/mkdirp/node_modules/minimist/LICENSE +0 -18
  666. package/example/node_modules/mkdirp/node_modules/minimist/example/parse.js +0 -2
  667. package/example/node_modules/mkdirp/node_modules/minimist/index.js +0 -187
  668. package/example/node_modules/mkdirp/node_modules/minimist/package.json +0 -75
  669. package/example/node_modules/mkdirp/node_modules/minimist/readme.markdown +0 -73
  670. package/example/node_modules/mkdirp/node_modules/minimist/test/dash.js +0 -24
  671. package/example/node_modules/mkdirp/node_modules/minimist/test/default_bool.js +0 -20
  672. package/example/node_modules/mkdirp/node_modules/minimist/test/dotted.js +0 -16
  673. package/example/node_modules/mkdirp/node_modules/minimist/test/long.js +0 -31
  674. package/example/node_modules/mkdirp/node_modules/minimist/test/parse.js +0 -318
  675. package/example/node_modules/mkdirp/node_modules/minimist/test/parse_modified.js +0 -9
  676. package/example/node_modules/mkdirp/node_modules/minimist/test/short.js +0 -67
  677. package/example/node_modules/mkdirp/node_modules/minimist/test/whitespace.js +0 -8
  678. package/example/node_modules/mkdirp/package.json +0 -66
  679. package/example/node_modules/mkdirp/readme.markdown +0 -100
  680. package/example/node_modules/mkdirp/test/chmod.js +0 -41
  681. package/example/node_modules/mkdirp/test/clobber.js +0 -38
  682. package/example/node_modules/mkdirp/test/mkdirp.js +0 -28
  683. package/example/node_modules/mkdirp/test/opts_fs.js +0 -29
  684. package/example/node_modules/mkdirp/test/opts_fs_sync.js +0 -27
  685. package/example/node_modules/mkdirp/test/perm.js +0 -32
  686. package/example/node_modules/mkdirp/test/perm_sync.js +0 -36
  687. package/example/node_modules/mkdirp/test/race.js +0 -37
  688. package/example/node_modules/mkdirp/test/rel.js +0 -32
  689. package/example/node_modules/mkdirp/test/return.js +0 -25
  690. package/example/node_modules/mkdirp/test/return_sync.js +0 -24
  691. package/example/node_modules/mkdirp/test/root.js +0 -19
  692. package/example/node_modules/mkdirp/test/sync.js +0 -32
  693. package/example/node_modules/mkdirp/test/umask.js +0 -28
  694. package/example/node_modules/mkdirp/test/umask_sync.js +0 -32
  695. package/example/node_modules/ms/index.js +0 -152
  696. package/example/node_modules/ms/license.md +0 -21
  697. package/example/node_modules/ms/package.json +0 -73
  698. package/example/node_modules/ms/readme.md +0 -51
  699. package/example/node_modules/neo-async/LICENSE +0 -22
  700. package/example/node_modules/neo-async/README.md +0 -268
  701. package/example/node_modules/neo-async/all.js +0 -3
  702. package/example/node_modules/neo-async/allLimit.js +0 -3
  703. package/example/node_modules/neo-async/allSeries.js +0 -3
  704. package/example/node_modules/neo-async/angelFall.js +0 -3
  705. package/example/node_modules/neo-async/any.js +0 -3
  706. package/example/node_modules/neo-async/anyLimit.js +0 -3
  707. package/example/node_modules/neo-async/anySeries.js +0 -3
  708. package/example/node_modules/neo-async/apply.js +0 -3
  709. package/example/node_modules/neo-async/applyEach.js +0 -3
  710. package/example/node_modules/neo-async/applyEachSeries.js +0 -3
  711. package/example/node_modules/neo-async/async.js +0 -9182
  712. package/example/node_modules/neo-async/async.min.js +0 -80
  713. package/example/node_modules/neo-async/asyncify.js +0 -3
  714. package/example/node_modules/neo-async/auto.js +0 -3
  715. package/example/node_modules/neo-async/autoInject.js +0 -3
  716. package/example/node_modules/neo-async/cargo.js +0 -3
  717. package/example/node_modules/neo-async/compose.js +0 -3
  718. package/example/node_modules/neo-async/concat.js +0 -3
  719. package/example/node_modules/neo-async/concatLimit.js +0 -3
  720. package/example/node_modules/neo-async/concatSeries.js +0 -3
  721. package/example/node_modules/neo-async/constant.js +0 -3
  722. package/example/node_modules/neo-async/createLogger.js +0 -3
  723. package/example/node_modules/neo-async/detect.js +0 -3
  724. package/example/node_modules/neo-async/detectLimit.js +0 -3
  725. package/example/node_modules/neo-async/detectSeries.js +0 -3
  726. package/example/node_modules/neo-async/dir.js +0 -3
  727. package/example/node_modules/neo-async/doDuring.js +0 -3
  728. package/example/node_modules/neo-async/doUntil.js +0 -3
  729. package/example/node_modules/neo-async/doWhilst.js +0 -3
  730. package/example/node_modules/neo-async/during.js +0 -3
  731. package/example/node_modules/neo-async/each.js +0 -3
  732. package/example/node_modules/neo-async/eachLimit.js +0 -3
  733. package/example/node_modules/neo-async/eachOf.js +0 -3
  734. package/example/node_modules/neo-async/eachOfLimit.js +0 -3
  735. package/example/node_modules/neo-async/eachOfSeries.js +0 -3
  736. package/example/node_modules/neo-async/eachSeries.js +0 -3
  737. package/example/node_modules/neo-async/ensureAsync.js +0 -3
  738. package/example/node_modules/neo-async/every.js +0 -3
  739. package/example/node_modules/neo-async/everyLimit.js +0 -3
  740. package/example/node_modules/neo-async/everySeries.js +0 -3
  741. package/example/node_modules/neo-async/fast.js +0 -3
  742. package/example/node_modules/neo-async/filter.js +0 -3
  743. package/example/node_modules/neo-async/filterLimit.js +0 -3
  744. package/example/node_modules/neo-async/filterSeries.js +0 -3
  745. package/example/node_modules/neo-async/find.js +0 -3
  746. package/example/node_modules/neo-async/findLimit.js +0 -3
  747. package/example/node_modules/neo-async/findSeries.js +0 -3
  748. package/example/node_modules/neo-async/foldl.js +0 -3
  749. package/example/node_modules/neo-async/foldr.js +0 -3
  750. package/example/node_modules/neo-async/forEach.js +0 -3
  751. package/example/node_modules/neo-async/forEachLimit.js +0 -3
  752. package/example/node_modules/neo-async/forEachOf.js +0 -3
  753. package/example/node_modules/neo-async/forEachOfLimit.js +0 -3
  754. package/example/node_modules/neo-async/forEachOfSeries.js +0 -3
  755. package/example/node_modules/neo-async/forEachSeries.js +0 -3
  756. package/example/node_modules/neo-async/forever.js +0 -3
  757. package/example/node_modules/neo-async/groupBy.js +0 -3
  758. package/example/node_modules/neo-async/groupByLimit.js +0 -3
  759. package/example/node_modules/neo-async/groupBySeries.js +0 -3
  760. package/example/node_modules/neo-async/inject.js +0 -3
  761. package/example/node_modules/neo-async/iterator.js +0 -3
  762. package/example/node_modules/neo-async/log.js +0 -3
  763. package/example/node_modules/neo-async/map.js +0 -3
  764. package/example/node_modules/neo-async/mapLimit.js +0 -3
  765. package/example/node_modules/neo-async/mapSeries.js +0 -3
  766. package/example/node_modules/neo-async/mapValues.js +0 -3
  767. package/example/node_modules/neo-async/mapValuesLimit.js +0 -3
  768. package/example/node_modules/neo-async/mapValuesSeries.js +0 -3
  769. package/example/node_modules/neo-async/memoize.js +0 -3
  770. package/example/node_modules/neo-async/nextTick.js +0 -3
  771. package/example/node_modules/neo-async/omit.js +0 -3
  772. package/example/node_modules/neo-async/omitLimit.js +0 -3
  773. package/example/node_modules/neo-async/omitSeries.js +0 -3
  774. package/example/node_modules/neo-async/package.json +0 -89
  775. package/example/node_modules/neo-async/parallel.js +0 -3
  776. package/example/node_modules/neo-async/parallelLimit.js +0 -3
  777. package/example/node_modules/neo-async/pick.js +0 -3
  778. package/example/node_modules/neo-async/pickLimit.js +0 -3
  779. package/example/node_modules/neo-async/pickSeries.js +0 -3
  780. package/example/node_modules/neo-async/priorityQueue.js +0 -3
  781. package/example/node_modules/neo-async/queue.js +0 -3
  782. package/example/node_modules/neo-async/race.js +0 -3
  783. package/example/node_modules/neo-async/reduce.js +0 -3
  784. package/example/node_modules/neo-async/reduceRight.js +0 -3
  785. package/example/node_modules/neo-async/reflect.js +0 -3
  786. package/example/node_modules/neo-async/reflectAll.js +0 -3
  787. package/example/node_modules/neo-async/reject.js +0 -3
  788. package/example/node_modules/neo-async/rejectLimit.js +0 -3
  789. package/example/node_modules/neo-async/rejectSeries.js +0 -3
  790. package/example/node_modules/neo-async/retry.js +0 -3
  791. package/example/node_modules/neo-async/retryable.js +0 -3
  792. package/example/node_modules/neo-async/safe.js +0 -3
  793. package/example/node_modules/neo-async/select.js +0 -3
  794. package/example/node_modules/neo-async/selectLimit.js +0 -3
  795. package/example/node_modules/neo-async/selectSeries.js +0 -3
  796. package/example/node_modules/neo-async/seq.js +0 -3
  797. package/example/node_modules/neo-async/series.js +0 -3
  798. package/example/node_modules/neo-async/setImmediate.js +0 -3
  799. package/example/node_modules/neo-async/some.js +0 -3
  800. package/example/node_modules/neo-async/someLimit.js +0 -3
  801. package/example/node_modules/neo-async/someSeries.js +0 -3
  802. package/example/node_modules/neo-async/sortBy.js +0 -3
  803. package/example/node_modules/neo-async/sortByLimit.js +0 -3
  804. package/example/node_modules/neo-async/sortBySeries.js +0 -3
  805. package/example/node_modules/neo-async/timeout.js +0 -3
  806. package/example/node_modules/neo-async/times.js +0 -3
  807. package/example/node_modules/neo-async/timesLimit.js +0 -3
  808. package/example/node_modules/neo-async/timesSeries.js +0 -3
  809. package/example/node_modules/neo-async/transform.js +0 -3
  810. package/example/node_modules/neo-async/transformLimit.js +0 -3
  811. package/example/node_modules/neo-async/transformSeries.js +0 -3
  812. package/example/node_modules/neo-async/tryEach.js +0 -3
  813. package/example/node_modules/neo-async/unmemoize.js +0 -3
  814. package/example/node_modules/neo-async/until.js +0 -3
  815. package/example/node_modules/neo-async/waterfall.js +0 -3
  816. package/example/node_modules/neo-async/whilst.js +0 -3
  817. package/example/node_modules/neo-async/wrapSync.js +0 -3
  818. package/example/node_modules/oauth-sign/LICENSE +0 -55
  819. package/example/node_modules/oauth-sign/README.md +0 -11
  820. package/example/node_modules/oauth-sign/index.js +0 -146
  821. package/example/node_modules/oauth-sign/package.json +0 -60
  822. package/example/node_modules/optimist/.travis.yml +0 -4
  823. package/example/node_modules/optimist/LICENSE +0 -21
  824. package/example/node_modules/optimist/example/bool.js +0 -10
  825. package/example/node_modules/optimist/example/boolean_double.js +0 -7
  826. package/example/node_modules/optimist/example/boolean_single.js +0 -7
  827. package/example/node_modules/optimist/example/default_hash.js +0 -8
  828. package/example/node_modules/optimist/example/default_singles.js +0 -7
  829. package/example/node_modules/optimist/example/divide.js +0 -8
  830. package/example/node_modules/optimist/example/line_count.js +0 -20
  831. package/example/node_modules/optimist/example/line_count_options.js +0 -29
  832. package/example/node_modules/optimist/example/line_count_wrap.js +0 -29
  833. package/example/node_modules/optimist/example/nonopt.js +0 -4
  834. package/example/node_modules/optimist/example/reflect.js +0 -2
  835. package/example/node_modules/optimist/example/short.js +0 -3
  836. package/example/node_modules/optimist/example/string.js +0 -11
  837. package/example/node_modules/optimist/example/usage-options.js +0 -19
  838. package/example/node_modules/optimist/example/xup.js +0 -10
  839. package/example/node_modules/optimist/index.js +0 -343
  840. package/example/node_modules/optimist/package.json +0 -71
  841. package/example/node_modules/optimist/readme.markdown +0 -513
  842. package/example/node_modules/optimist/test/_/argv.js +0 -2
  843. package/example/node_modules/optimist/test/_/bin.js +0 -3
  844. package/example/node_modules/optimist/test/_.js +0 -71
  845. package/example/node_modules/optimist/test/dash.js +0 -31
  846. package/example/node_modules/optimist/test/parse.js +0 -446
  847. package/example/node_modules/optimist/test/parse_modified.js +0 -14
  848. package/example/node_modules/optimist/test/short.js +0 -16
  849. package/example/node_modules/optimist/test/usage.js +0 -292
  850. package/example/node_modules/optimist/test/whitespace.js +0 -8
  851. package/example/node_modules/pdf-creator-node/index.js +0 -34
  852. package/example/node_modules/pdf-creator-node/package.json +0 -58
  853. package/example/node_modules/pdf-creator-node/readme +0 -50
  854. package/example/node_modules/pend/LICENSE +0 -23
  855. package/example/node_modules/pend/README.md +0 -41
  856. package/example/node_modules/pend/index.js +0 -55
  857. package/example/node_modules/pend/package.json +0 -51
  858. package/example/node_modules/pend/test.js +0 -137
  859. package/example/node_modules/performance-now/.tm_properties +0 -7
  860. package/example/node_modules/performance-now/.travis.yml +0 -6
  861. package/example/node_modules/performance-now/README.md +0 -30
  862. package/example/node_modules/performance-now/lib/performance-now.js +0 -36
  863. package/example/node_modules/performance-now/lib/performance-now.js.map +0 -10
  864. package/example/node_modules/performance-now/license.txt +0 -7
  865. package/example/node_modules/performance-now/package.json +0 -69
  866. package/example/node_modules/performance-now/src/index.d.ts +0 -8
  867. package/example/node_modules/performance-now/src/performance-now.coffee +0 -17
  868. package/example/node_modules/performance-now/test/mocha.opts +0 -3
  869. package/example/node_modules/performance-now/test/performance-now.coffee +0 -43
  870. package/example/node_modules/performance-now/test/scripts/delayed-call.coffee +0 -11
  871. package/example/node_modules/performance-now/test/scripts/delayed-require.coffee +0 -12
  872. package/example/node_modules/performance-now/test/scripts/difference.coffee +0 -6
  873. package/example/node_modules/performance-now/test/scripts/initial-value.coffee +0 -10
  874. package/example/node_modules/performance-now/test/scripts.coffee +0 -27
  875. package/example/node_modules/phantomjs-prebuilt/.eslintignore +0 -2
  876. package/example/node_modules/phantomjs-prebuilt/.eslintrc +0 -22
  877. package/example/node_modules/phantomjs-prebuilt/.jshintrc +0 -4
  878. package/example/node_modules/phantomjs-prebuilt/.travis.yml +0 -7
  879. package/example/node_modules/phantomjs-prebuilt/LICENSE.txt +0 -194
  880. package/example/node_modules/phantomjs-prebuilt/README.md +0 -308
  881. package/example/node_modules/phantomjs-prebuilt/bin/phantomjs +0 -42
  882. package/example/node_modules/phantomjs-prebuilt/install.js +0 -438
  883. package/example/node_modules/phantomjs-prebuilt/lib/phantomjs.js +0 -124
  884. package/example/node_modules/phantomjs-prebuilt/lib/util.js +0 -161
  885. package/example/node_modules/phantomjs-prebuilt/package.json +0 -89
  886. package/example/node_modules/phantomjs-prebuilt/test/exit.js +0 -1
  887. package/example/node_modules/phantomjs-prebuilt/test/loadspeed.js +0 -25
  888. package/example/node_modules/phantomjs-prebuilt/test/tests.js +0 -136
  889. package/example/node_modules/pinkie/index.js +0 -292
  890. package/example/node_modules/pinkie/license +0 -21
  891. package/example/node_modules/pinkie/package.json +0 -72
  892. package/example/node_modules/pinkie/readme.md +0 -83
  893. package/example/node_modules/pinkie-promise/index.js +0 -3
  894. package/example/node_modules/pinkie-promise/license +0 -21
  895. package/example/node_modules/pinkie-promise/package.json +0 -71
  896. package/example/node_modules/pinkie-promise/readme.md +0 -28
  897. package/example/node_modules/process-nextick-args/index.js +0 -45
  898. package/example/node_modules/process-nextick-args/license.md +0 -19
  899. package/example/node_modules/process-nextick-args/package.json +0 -54
  900. package/example/node_modules/process-nextick-args/readme.md +0 -18
  901. package/example/node_modules/progress/History.md +0 -77
  902. package/example/node_modules/progress/LICENSE +0 -22
  903. package/example/node_modules/progress/Makefile +0 -8
  904. package/example/node_modules/progress/Readme.md +0 -103
  905. package/example/node_modules/progress/index.js +0 -1
  906. package/example/node_modules/progress/lib/node-progress.js +0 -180
  907. package/example/node_modules/progress/package.json +0 -65
  908. package/example/node_modules/psl/.eslintignore +0 -1
  909. package/example/node_modules/psl/.eslintrc +0 -11
  910. package/example/node_modules/psl/.travis.yml +0 -5
  911. package/example/node_modules/psl/LICENSE +0 -9
  912. package/example/node_modules/psl/README.md +0 -213
  913. package/example/node_modules/psl/data/rules.json +0 -1
  914. package/example/node_modules/psl/dist/psl.js +0 -812
  915. package/example/node_modules/psl/dist/psl.min.js +0 -1
  916. package/example/node_modules/psl/index.js +0 -269
  917. package/example/node_modules/psl/karma.conf.js +0 -38
  918. package/example/node_modules/psl/package.json +0 -77
  919. package/example/node_modules/punycode/LICENSE-MIT.txt +0 -20
  920. package/example/node_modules/punycode/README.md +0 -122
  921. package/example/node_modules/punycode/package.json +0 -89
  922. package/example/node_modules/punycode/punycode.es6.js +0 -441
  923. package/example/node_modules/punycode/punycode.js +0 -440
  924. package/example/node_modules/qs/.editorconfig +0 -30
  925. package/example/node_modules/qs/.eslintignore +0 -1
  926. package/example/node_modules/qs/.eslintrc +0 -19
  927. package/example/node_modules/qs/CHANGELOG.md +0 -226
  928. package/example/node_modules/qs/LICENSE +0 -28
  929. package/example/node_modules/qs/README.md +0 -475
  930. package/example/node_modules/qs/dist/qs.js +0 -638
  931. package/example/node_modules/qs/lib/formats.js +0 -18
  932. package/example/node_modules/qs/lib/index.js +0 -11
  933. package/example/node_modules/qs/lib/parse.js +0 -174
  934. package/example/node_modules/qs/lib/stringify.js +0 -210
  935. package/example/node_modules/qs/lib/utils.js +0 -213
  936. package/example/node_modules/qs/package.json +0 -84
  937. package/example/node_modules/qs/test/.eslintrc +0 -15
  938. package/example/node_modules/qs/test/index.js +0 -7
  939. package/example/node_modules/qs/test/parse.js +0 -574
  940. package/example/node_modules/qs/test/stringify.js +0 -597
  941. package/example/node_modules/qs/test/utils.js +0 -34
  942. package/example/node_modules/readable-stream/.travis.yml +0 -55
  943. package/example/node_modules/readable-stream/CONTRIBUTING.md +0 -38
  944. package/example/node_modules/readable-stream/GOVERNANCE.md +0 -136
  945. package/example/node_modules/readable-stream/LICENSE +0 -47
  946. package/example/node_modules/readable-stream/README.md +0 -58
  947. package/example/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +0 -60
  948. package/example/node_modules/readable-stream/duplex-browser.js +0 -1
  949. package/example/node_modules/readable-stream/duplex.js +0 -1
  950. package/example/node_modules/readable-stream/lib/_stream_duplex.js +0 -131
  951. package/example/node_modules/readable-stream/lib/_stream_passthrough.js +0 -47
  952. package/example/node_modules/readable-stream/lib/_stream_readable.js +0 -1019
  953. package/example/node_modules/readable-stream/lib/_stream_transform.js +0 -214
  954. package/example/node_modules/readable-stream/lib/_stream_writable.js +0 -687
  955. package/example/node_modules/readable-stream/lib/internal/streams/BufferList.js +0 -79
  956. package/example/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -74
  957. package/example/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -1
  958. package/example/node_modules/readable-stream/lib/internal/streams/stream.js +0 -1
  959. package/example/node_modules/readable-stream/package.json +0 -85
  960. package/example/node_modules/readable-stream/passthrough.js +0 -1
  961. package/example/node_modules/readable-stream/readable-browser.js +0 -7
  962. package/example/node_modules/readable-stream/readable.js +0 -19
  963. package/example/node_modules/readable-stream/transform.js +0 -1
  964. package/example/node_modules/readable-stream/writable-browser.js +0 -1
  965. package/example/node_modules/readable-stream/writable.js +0 -8
  966. package/example/node_modules/request/CHANGELOG.md +0 -709
  967. package/example/node_modules/request/LICENSE +0 -55
  968. package/example/node_modules/request/README.md +0 -1097
  969. package/example/node_modules/request/index.js +0 -155
  970. package/example/node_modules/request/lib/auth.js +0 -167
  971. package/example/node_modules/request/lib/cookies.js +0 -38
  972. package/example/node_modules/request/lib/getProxyFromURI.js +0 -79
  973. package/example/node_modules/request/lib/har.js +0 -205
  974. package/example/node_modules/request/lib/hawk.js +0 -89
  975. package/example/node_modules/request/lib/helpers.js +0 -66
  976. package/example/node_modules/request/lib/multipart.js +0 -112
  977. package/example/node_modules/request/lib/oauth.js +0 -148
  978. package/example/node_modules/request/lib/querystring.js +0 -50
  979. package/example/node_modules/request/lib/redirect.js +0 -154
  980. package/example/node_modules/request/lib/tunnel.js +0 -175
  981. package/example/node_modules/request/package.json +0 -119
  982. package/example/node_modules/request/request.js +0 -1551
  983. package/example/node_modules/request-progress/.editorconfig +0 -15
  984. package/example/node_modules/request-progress/.jshintrc +0 -63
  985. package/example/node_modules/request-progress/.travis.yml +0 -6
  986. package/example/node_modules/request-progress/LICENSE +0 -19
  987. package/example/node_modules/request-progress/README.md +0 -75
  988. package/example/node_modules/request-progress/foo.js +0 -16
  989. package/example/node_modules/request-progress/index.js +0 -125
  990. package/example/node_modules/request-progress/package.json +0 -75
  991. package/example/node_modules/request-progress/test/test.js +0 -354
  992. package/example/node_modules/safe-buffer/LICENSE +0 -21
  993. package/example/node_modules/safe-buffer/README.md +0 -584
  994. package/example/node_modules/safe-buffer/index.d.ts +0 -187
  995. package/example/node_modules/safe-buffer/index.js +0 -62
  996. package/example/node_modules/safe-buffer/package.json +0 -69
  997. package/example/node_modules/safer-buffer/LICENSE +0 -21
  998. package/example/node_modules/safer-buffer/Porting-Buffer.md +0 -268
  999. package/example/node_modules/safer-buffer/Readme.md +0 -156
  1000. package/example/node_modules/safer-buffer/dangerous.js +0 -58
  1001. package/example/node_modules/safer-buffer/package.json +0 -66
  1002. package/example/node_modules/safer-buffer/safer.js +0 -77
  1003. package/example/node_modules/safer-buffer/tests.js +0 -406
  1004. package/example/node_modules/source-map/CHANGELOG.md +0 -301
  1005. package/example/node_modules/source-map/LICENSE +0 -28
  1006. package/example/node_modules/source-map/README.md +0 -742
  1007. package/example/node_modules/source-map/dist/source-map.debug.js +0 -3234
  1008. package/example/node_modules/source-map/dist/source-map.js +0 -3233
  1009. package/example/node_modules/source-map/dist/source-map.min.js +0 -2
  1010. package/example/node_modules/source-map/dist/source-map.min.js.map +0 -1
  1011. package/example/node_modules/source-map/lib/array-set.js +0 -121
  1012. package/example/node_modules/source-map/lib/base64-vlq.js +0 -140
  1013. package/example/node_modules/source-map/lib/base64.js +0 -67
  1014. package/example/node_modules/source-map/lib/binary-search.js +0 -111
  1015. package/example/node_modules/source-map/lib/mapping-list.js +0 -79
  1016. package/example/node_modules/source-map/lib/quick-sort.js +0 -114
  1017. package/example/node_modules/source-map/lib/source-map-consumer.js +0 -1145
  1018. package/example/node_modules/source-map/lib/source-map-generator.js +0 -425
  1019. package/example/node_modules/source-map/lib/source-node.js +0 -413
  1020. package/example/node_modules/source-map/lib/util.js +0 -488
  1021. package/example/node_modules/source-map/package.json +0 -216
  1022. package/example/node_modules/source-map/source-map.d.ts +0 -98
  1023. package/example/node_modules/source-map/source-map.js +0 -8
  1024. package/example/node_modules/sshpk/.travis.yml +0 -11
  1025. package/example/node_modules/sshpk/LICENSE +0 -18
  1026. package/example/node_modules/sshpk/README.md +0 -804
  1027. package/example/node_modules/sshpk/bin/sshpk-conv +0 -243
  1028. package/example/node_modules/sshpk/bin/sshpk-sign +0 -191
  1029. package/example/node_modules/sshpk/bin/sshpk-verify +0 -167
  1030. package/example/node_modules/sshpk/lib/algs.js +0 -168
  1031. package/example/node_modules/sshpk/lib/certificate.js +0 -410
  1032. package/example/node_modules/sshpk/lib/dhe.js +0 -397
  1033. package/example/node_modules/sshpk/lib/ed-compat.js +0 -92
  1034. package/example/node_modules/sshpk/lib/errors.js +0 -84
  1035. package/example/node_modules/sshpk/lib/fingerprint.js +0 -220
  1036. package/example/node_modules/sshpk/lib/formats/auto.js +0 -124
  1037. package/example/node_modules/sshpk/lib/formats/dnssec.js +0 -287
  1038. package/example/node_modules/sshpk/lib/formats/openssh-cert.js +0 -352
  1039. package/example/node_modules/sshpk/lib/formats/pem.js +0 -290
  1040. package/example/node_modules/sshpk/lib/formats/pkcs1.js +0 -373
  1041. package/example/node_modules/sshpk/lib/formats/pkcs8.js +0 -631
  1042. package/example/node_modules/sshpk/lib/formats/putty.js +0 -99
  1043. package/example/node_modules/sshpk/lib/formats/rfc4253.js +0 -166
  1044. package/example/node_modules/sshpk/lib/formats/ssh-private.js +0 -262
  1045. package/example/node_modules/sshpk/lib/formats/ssh.js +0 -115
  1046. package/example/node_modules/sshpk/lib/formats/x509-pem.js +0 -88
  1047. package/example/node_modules/sshpk/lib/formats/x509.js +0 -752
  1048. package/example/node_modules/sshpk/lib/identity.js +0 -373
  1049. package/example/node_modules/sshpk/lib/index.js +0 -40
  1050. package/example/node_modules/sshpk/lib/key.js +0 -294
  1051. package/example/node_modules/sshpk/lib/private-key.js +0 -246
  1052. package/example/node_modules/sshpk/lib/signature.js +0 -314
  1053. package/example/node_modules/sshpk/lib/ssh-buffer.js +0 -149
  1054. package/example/node_modules/sshpk/lib/utils.js +0 -404
  1055. package/example/node_modules/sshpk/man/man1/sshpk-conv.1 +0 -135
  1056. package/example/node_modules/sshpk/man/man1/sshpk-sign.1 +0 -81
  1057. package/example/node_modules/sshpk/man/man1/sshpk-verify.1 +0 -68
  1058. package/example/node_modules/sshpk/package.json +0 -100
  1059. package/example/node_modules/string_decoder/.travis.yml +0 -50
  1060. package/example/node_modules/string_decoder/LICENSE +0 -48
  1061. package/example/node_modules/string_decoder/README.md +0 -47
  1062. package/example/node_modules/string_decoder/lib/string_decoder.js +0 -296
  1063. package/example/node_modules/string_decoder/package.json +0 -63
  1064. package/example/node_modules/throttleit/History.md +0 -19
  1065. package/example/node_modules/throttleit/Makefile +0 -18
  1066. package/example/node_modules/throttleit/Readme.md +0 -32
  1067. package/example/node_modules/throttleit/component.json +0 -13
  1068. package/example/node_modules/throttleit/example.js +0 -14
  1069. package/example/node_modules/throttleit/index.js +0 -32
  1070. package/example/node_modules/throttleit/package.json +0 -55
  1071. package/example/node_modules/throttleit/test.js +0 -73
  1072. package/example/node_modules/tough-cookie/LICENSE +0 -12
  1073. package/example/node_modules/tough-cookie/README.md +0 -507
  1074. package/example/node_modules/tough-cookie/lib/cookie.js +0 -1431
  1075. package/example/node_modules/tough-cookie/lib/memstore.js +0 -176
  1076. package/example/node_modules/tough-cookie/lib/pathMatch.js +0 -61
  1077. package/example/node_modules/tough-cookie/lib/permuteDomain.js +0 -56
  1078. package/example/node_modules/tough-cookie/lib/pubsuffix-psl.js +0 -38
  1079. package/example/node_modules/tough-cookie/lib/store.js +0 -71
  1080. package/example/node_modules/tough-cookie/package.json +0 -98
  1081. package/example/node_modules/tunnel-agent/LICENSE +0 -55
  1082. package/example/node_modules/tunnel-agent/README.md +0 -4
  1083. package/example/node_modules/tunnel-agent/index.js +0 -244
  1084. package/example/node_modules/tunnel-agent/package.json +0 -59
  1085. package/example/node_modules/tweetnacl/AUTHORS.md +0 -28
  1086. package/example/node_modules/tweetnacl/CHANGELOG.md +0 -221
  1087. package/example/node_modules/tweetnacl/LICENSE +0 -24
  1088. package/example/node_modules/tweetnacl/PULL_REQUEST_TEMPLATE.md +0 -20
  1089. package/example/node_modules/tweetnacl/README.md +0 -459
  1090. package/example/node_modules/tweetnacl/nacl-fast.js +0 -2388
  1091. package/example/node_modules/tweetnacl/nacl-fast.min.js +0 -2
  1092. package/example/node_modules/tweetnacl/nacl.d.ts +0 -98
  1093. package/example/node_modules/tweetnacl/nacl.js +0 -1175
  1094. package/example/node_modules/tweetnacl/nacl.min.js +0 -1
  1095. package/example/node_modules/tweetnacl/package.json +0 -90
  1096. package/example/node_modules/typedarray/.travis.yml +0 -4
  1097. package/example/node_modules/typedarray/LICENSE +0 -35
  1098. package/example/node_modules/typedarray/example/tarray.js +0 -4
  1099. package/example/node_modules/typedarray/index.js +0 -630
  1100. package/example/node_modules/typedarray/package.json +0 -87
  1101. package/example/node_modules/typedarray/readme.markdown +0 -61
  1102. package/example/node_modules/typedarray/test/server/undef_globals.js +0 -19
  1103. package/example/node_modules/typedarray/test/tarray.js +0 -10
  1104. package/example/node_modules/uglify-js/LICENSE +0 -29
  1105. package/example/node_modules/uglify-js/README.md +0 -1138
  1106. package/example/node_modules/uglify-js/bin/uglifyjs +0 -419
  1107. package/example/node_modules/uglify-js/lib/ast.js +0 -988
  1108. package/example/node_modules/uglify-js/lib/compress.js +0 -6927
  1109. package/example/node_modules/uglify-js/lib/minify.js +0 -245
  1110. package/example/node_modules/uglify-js/lib/mozilla-ast.js +0 -629
  1111. package/example/node_modules/uglify-js/lib/output.js +0 -1510
  1112. package/example/node_modules/uglify-js/lib/parse.js +0 -1645
  1113. package/example/node_modules/uglify-js/lib/propmangle.js +0 -234
  1114. package/example/node_modules/uglify-js/lib/scope.js +0 -594
  1115. package/example/node_modules/uglify-js/lib/sourcemap.js +0 -104
  1116. package/example/node_modules/uglify-js/lib/transform.js +0 -185
  1117. package/example/node_modules/uglify-js/lib/utils.js +0 -277
  1118. package/example/node_modules/uglify-js/package.json +0 -107
  1119. package/example/node_modules/uglify-js/tools/domprops.json +0 -6841
  1120. package/example/node_modules/uglify-js/tools/exit.js +0 -15
  1121. package/example/node_modules/uglify-js/tools/exports.js +0 -6
  1122. package/example/node_modules/uglify-js/tools/node.js +0 -78
  1123. package/example/node_modules/uglify-js/tools/props.html +0 -540
  1124. package/example/node_modules/uri-js/README.md +0 -199
  1125. package/example/node_modules/uri-js/bower.json +0 -47
  1126. package/example/node_modules/uri-js/dist/es5/uri.all.d.ts +0 -59
  1127. package/example/node_modules/uri-js/dist/es5/uri.all.js +0 -1389
  1128. package/example/node_modules/uri-js/dist/es5/uri.all.js.map +0 -1
  1129. package/example/node_modules/uri-js/dist/es5/uri.all.min.d.ts +0 -59
  1130. package/example/node_modules/uri-js/dist/es5/uri.all.min.js +0 -3
  1131. package/example/node_modules/uri-js/dist/es5/uri.all.min.js.map +0 -1
  1132. package/example/node_modules/uri-js/dist/esnext/index.d.ts +0 -1
  1133. package/example/node_modules/uri-js/dist/esnext/index.js +0 -13
  1134. package/example/node_modules/uri-js/dist/esnext/index.js.map +0 -1
  1135. package/example/node_modules/uri-js/dist/esnext/regexps-iri.d.ts +0 -3
  1136. package/example/node_modules/uri-js/dist/esnext/regexps-iri.js +0 -3
  1137. package/example/node_modules/uri-js/dist/esnext/regexps-iri.js.map +0 -1
  1138. package/example/node_modules/uri-js/dist/esnext/regexps-uri.d.ts +0 -4
  1139. package/example/node_modules/uri-js/dist/esnext/regexps-uri.js +0 -42
  1140. package/example/node_modules/uri-js/dist/esnext/regexps-uri.js.map +0 -1
  1141. package/example/node_modules/uri-js/dist/esnext/schemes/http.d.ts +0 -3
  1142. package/example/node_modules/uri-js/dist/esnext/schemes/http.js +0 -27
  1143. package/example/node_modules/uri-js/dist/esnext/schemes/http.js.map +0 -1
  1144. package/example/node_modules/uri-js/dist/esnext/schemes/https.d.ts +0 -3
  1145. package/example/node_modules/uri-js/dist/esnext/schemes/https.js +0 -9
  1146. package/example/node_modules/uri-js/dist/esnext/schemes/https.js.map +0 -1
  1147. package/example/node_modules/uri-js/dist/esnext/schemes/mailto.d.ts +0 -12
  1148. package/example/node_modules/uri-js/dist/esnext/schemes/mailto.js +0 -148
  1149. package/example/node_modules/uri-js/dist/esnext/schemes/mailto.js.map +0 -1
  1150. package/example/node_modules/uri-js/dist/esnext/schemes/urn-uuid.d.ts +0 -7
  1151. package/example/node_modules/uri-js/dist/esnext/schemes/urn-uuid.js +0 -23
  1152. package/example/node_modules/uri-js/dist/esnext/schemes/urn-uuid.js.map +0 -1
  1153. package/example/node_modules/uri-js/dist/esnext/schemes/urn.d.ts +0 -10
  1154. package/example/node_modules/uri-js/dist/esnext/schemes/urn.js +0 -49
  1155. package/example/node_modules/uri-js/dist/esnext/schemes/urn.js.map +0 -1
  1156. package/example/node_modules/uri-js/dist/esnext/uri.d.ts +0 -59
  1157. package/example/node_modules/uri-js/dist/esnext/uri.js +0 -480
  1158. package/example/node_modules/uri-js/dist/esnext/uri.js.map +0 -1
  1159. package/example/node_modules/uri-js/dist/esnext/util.d.ts +0 -6
  1160. package/example/node_modules/uri-js/dist/esnext/util.js +0 -36
  1161. package/example/node_modules/uri-js/dist/esnext/util.js.map +0 -1
  1162. package/example/node_modules/uri-js/package.json +0 -97
  1163. package/example/node_modules/uri-js/rollup.config.js +0 -32
  1164. package/example/node_modules/uri-js/src/index.ts +0 -18
  1165. package/example/node_modules/uri-js/src/punycode.d.ts +0 -24
  1166. package/example/node_modules/uri-js/src/regexps-iri.ts +0 -4
  1167. package/example/node_modules/uri-js/src/regexps-uri.ts +0 -89
  1168. package/example/node_modules/uri-js/src/schemes/http.ts +0 -36
  1169. package/example/node_modules/uri-js/src/schemes/https.ts +0 -11
  1170. package/example/node_modules/uri-js/src/schemes/mailto.ts +0 -182
  1171. package/example/node_modules/uri-js/src/schemes/urn-uuid.ts +0 -36
  1172. package/example/node_modules/uri-js/src/schemes/urn.ts +0 -69
  1173. package/example/node_modules/uri-js/src/uri.ts +0 -556
  1174. package/example/node_modules/uri-js/src/util.ts +0 -40
  1175. package/example/node_modules/uri-js/tests/qunit.css +0 -118
  1176. package/example/node_modules/uri-js/tests/qunit.js +0 -1042
  1177. package/example/node_modules/uri-js/tests/test-es5-min.html +0 -17
  1178. package/example/node_modules/uri-js/tests/test-es5.html +0 -17
  1179. package/example/node_modules/uri-js/tests/tests.js +0 -774
  1180. package/example/node_modules/uri-js/tsconfig.json +0 -20
  1181. package/example/node_modules/uri-js/yarn.lock +0 -1902
  1182. package/example/node_modules/util-deprecate/History.md +0 -16
  1183. package/example/node_modules/util-deprecate/LICENSE +0 -24
  1184. package/example/node_modules/util-deprecate/README.md +0 -53
  1185. package/example/node_modules/util-deprecate/browser.js +0 -67
  1186. package/example/node_modules/util-deprecate/node.js +0 -6
  1187. package/example/node_modules/util-deprecate/package.json +0 -60
  1188. package/example/node_modules/uuid/.eslintrc.json +0 -47
  1189. package/example/node_modules/uuid/AUTHORS +0 -5
  1190. package/example/node_modules/uuid/CHANGELOG.md +0 -110
  1191. package/example/node_modules/uuid/LICENSE.md +0 -21
  1192. package/example/node_modules/uuid/README.md +0 -293
  1193. package/example/node_modules/uuid/README_js.md +0 -280
  1194. package/example/node_modules/uuid/bin/uuid +0 -65
  1195. package/example/node_modules/uuid/index.js +0 -8
  1196. package/example/node_modules/uuid/lib/bytesToUuid.js +0 -24
  1197. package/example/node_modules/uuid/lib/md5-browser.js +0 -216
  1198. package/example/node_modules/uuid/lib/md5.js +0 -25
  1199. package/example/node_modules/uuid/lib/rng-browser.js +0 -34
  1200. package/example/node_modules/uuid/lib/rng.js +0 -8
  1201. package/example/node_modules/uuid/lib/sha1-browser.js +0 -89
  1202. package/example/node_modules/uuid/lib/sha1.js +0 -25
  1203. package/example/node_modules/uuid/lib/v35.js +0 -57
  1204. package/example/node_modules/uuid/package.json +0 -99
  1205. package/example/node_modules/uuid/v1.js +0 -109
  1206. package/example/node_modules/uuid/v3.js +0 -4
  1207. package/example/node_modules/uuid/v4.js +0 -29
  1208. package/example/node_modules/uuid/v5.js +0 -3
  1209. package/example/node_modules/verror/CHANGES.md +0 -28
  1210. package/example/node_modules/verror/CONTRIBUTING.md +0 -19
  1211. package/example/node_modules/verror/LICENSE +0 -19
  1212. package/example/node_modules/verror/README.md +0 -528
  1213. package/example/node_modules/verror/lib/verror.js +0 -451
  1214. package/example/node_modules/verror/package.json +0 -55
  1215. package/example/node_modules/which/CHANGELOG.md +0 -152
  1216. package/example/node_modules/which/LICENSE +0 -15
  1217. package/example/node_modules/which/README.md +0 -51
  1218. package/example/node_modules/which/bin/which +0 -52
  1219. package/example/node_modules/which/package.json +0 -69
  1220. package/example/node_modules/which/which.js +0 -135
  1221. package/example/node_modules/wordwrap/LICENSE +0 -18
  1222. package/example/node_modules/wordwrap/README.markdown +0 -70
  1223. package/example/node_modules/wordwrap/example/center.js +0 -10
  1224. package/example/node_modules/wordwrap/example/meat.js +0 -3
  1225. package/example/node_modules/wordwrap/index.js +0 -76
  1226. package/example/node_modules/wordwrap/package.json +0 -69
  1227. package/example/node_modules/wordwrap/test/break.js +0 -30
  1228. package/example/node_modules/wordwrap/test/idleness.txt +0 -63
  1229. package/example/node_modules/wordwrap/test/wrap.js +0 -31
  1230. package/example/node_modules/yauzl/.travis.yml +0 -8
  1231. package/example/node_modules/yauzl/LICENSE +0 -21
  1232. package/example/node_modules/yauzl/README.md +0 -467
  1233. package/example/node_modules/yauzl/index.js +0 -626
  1234. package/example/node_modules/yauzl/package.json +0 -68
  1235. package/example/output.pdf +0 -0
  1236. package/example/package-lock.json +0 -738
  1237. package/example/package.json +0 -14
  1238. package/example/template.html +0 -19
@@ -1,4845 +0,0 @@
1
- /**!
2
-
3
- @license
4
- handlebars v4.1.2
5
-
6
- Copyright (C) 2011-2017 by Yehuda Katz
7
-
8
- Permission is hereby granted, free of charge, to any person obtaining a copy
9
- of this software and associated documentation files (the "Software"), to deal
10
- in the Software without restriction, including without limitation the rights
11
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
- copies of the Software, and to permit persons to whom the Software is
13
- furnished to do so, subject to the following conditions:
14
-
15
- The above copyright notice and this permission notice shall be included in
16
- all copies or substantial portions of the Software.
17
-
18
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24
- THE SOFTWARE.
25
-
26
- */
27
- (function webpackUniversalModuleDefinition(root, factory) {
28
- if(typeof exports === 'object' && typeof module === 'object')
29
- module.exports = factory();
30
- else if(typeof define === 'function' && define.amd)
31
- define([], factory);
32
- else if(typeof exports === 'object')
33
- exports["Handlebars"] = factory();
34
- else
35
- root["Handlebars"] = factory();
36
- })(this, function() {
37
- return /******/ (function(modules) { // webpackBootstrap
38
- /******/ // The module cache
39
- /******/ var installedModules = {};
40
-
41
- /******/ // The require function
42
- /******/ function __webpack_require__(moduleId) {
43
-
44
- /******/ // Check if module is in cache
45
- /******/ if(installedModules[moduleId])
46
- /******/ return installedModules[moduleId].exports;
47
-
48
- /******/ // Create a new module (and put it into the cache)
49
- /******/ var module = installedModules[moduleId] = {
50
- /******/ exports: {},
51
- /******/ id: moduleId,
52
- /******/ loaded: false
53
- /******/ };
54
-
55
- /******/ // Execute the module function
56
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
57
-
58
- /******/ // Flag the module as loaded
59
- /******/ module.loaded = true;
60
-
61
- /******/ // Return the exports of the module
62
- /******/ return module.exports;
63
- /******/ }
64
-
65
-
66
- /******/ // expose the modules object (__webpack_modules__)
67
- /******/ __webpack_require__.m = modules;
68
-
69
- /******/ // expose the module cache
70
- /******/ __webpack_require__.c = installedModules;
71
-
72
- /******/ // __webpack_public_path__
73
- /******/ __webpack_require__.p = "";
74
-
75
- /******/ // Load entry module and return exports
76
- /******/ return __webpack_require__(0);
77
- /******/ })
78
- /************************************************************************/
79
- /******/ ([
80
- /* 0 */
81
- /***/ (function(module, exports, __webpack_require__) {
82
-
83
- 'use strict';
84
-
85
- var _interopRequireDefault = __webpack_require__(1)['default'];
86
-
87
- exports.__esModule = true;
88
-
89
- var _handlebarsRuntime = __webpack_require__(2);
90
-
91
- var _handlebarsRuntime2 = _interopRequireDefault(_handlebarsRuntime);
92
-
93
- // Compiler imports
94
-
95
- var _handlebarsCompilerAst = __webpack_require__(35);
96
-
97
- var _handlebarsCompilerAst2 = _interopRequireDefault(_handlebarsCompilerAst);
98
-
99
- var _handlebarsCompilerBase = __webpack_require__(36);
100
-
101
- var _handlebarsCompilerCompiler = __webpack_require__(41);
102
-
103
- var _handlebarsCompilerJavascriptCompiler = __webpack_require__(42);
104
-
105
- var _handlebarsCompilerJavascriptCompiler2 = _interopRequireDefault(_handlebarsCompilerJavascriptCompiler);
106
-
107
- var _handlebarsCompilerVisitor = __webpack_require__(39);
108
-
109
- var _handlebarsCompilerVisitor2 = _interopRequireDefault(_handlebarsCompilerVisitor);
110
-
111
- var _handlebarsNoConflict = __webpack_require__(34);
112
-
113
- var _handlebarsNoConflict2 = _interopRequireDefault(_handlebarsNoConflict);
114
-
115
- var _create = _handlebarsRuntime2['default'].create;
116
- function create() {
117
- var hb = _create();
118
-
119
- hb.compile = function (input, options) {
120
- return _handlebarsCompilerCompiler.compile(input, options, hb);
121
- };
122
- hb.precompile = function (input, options) {
123
- return _handlebarsCompilerCompiler.precompile(input, options, hb);
124
- };
125
-
126
- hb.AST = _handlebarsCompilerAst2['default'];
127
- hb.Compiler = _handlebarsCompilerCompiler.Compiler;
128
- hb.JavaScriptCompiler = _handlebarsCompilerJavascriptCompiler2['default'];
129
- hb.Parser = _handlebarsCompilerBase.parser;
130
- hb.parse = _handlebarsCompilerBase.parse;
131
-
132
- return hb;
133
- }
134
-
135
- var inst = create();
136
- inst.create = create;
137
-
138
- _handlebarsNoConflict2['default'](inst);
139
-
140
- inst.Visitor = _handlebarsCompilerVisitor2['default'];
141
-
142
- inst['default'] = inst;
143
-
144
- exports['default'] = inst;
145
- module.exports = exports['default'];
146
-
147
- /***/ }),
148
- /* 1 */
149
- /***/ (function(module, exports) {
150
-
151
- "use strict";
152
-
153
- exports["default"] = function (obj) {
154
- return obj && obj.__esModule ? obj : {
155
- "default": obj
156
- };
157
- };
158
-
159
- exports.__esModule = true;
160
-
161
- /***/ }),
162
- /* 2 */
163
- /***/ (function(module, exports, __webpack_require__) {
164
-
165
- 'use strict';
166
-
167
- var _interopRequireWildcard = __webpack_require__(3)['default'];
168
-
169
- var _interopRequireDefault = __webpack_require__(1)['default'];
170
-
171
- exports.__esModule = true;
172
-
173
- var _handlebarsBase = __webpack_require__(4);
174
-
175
- var base = _interopRequireWildcard(_handlebarsBase);
176
-
177
- // Each of these augment the Handlebars object. No need to setup here.
178
- // (This is done to easily share code between commonjs and browse envs)
179
-
180
- var _handlebarsSafeString = __webpack_require__(21);
181
-
182
- var _handlebarsSafeString2 = _interopRequireDefault(_handlebarsSafeString);
183
-
184
- var _handlebarsException = __webpack_require__(6);
185
-
186
- var _handlebarsException2 = _interopRequireDefault(_handlebarsException);
187
-
188
- var _handlebarsUtils = __webpack_require__(5);
189
-
190
- var Utils = _interopRequireWildcard(_handlebarsUtils);
191
-
192
- var _handlebarsRuntime = __webpack_require__(22);
193
-
194
- var runtime = _interopRequireWildcard(_handlebarsRuntime);
195
-
196
- var _handlebarsNoConflict = __webpack_require__(34);
197
-
198
- var _handlebarsNoConflict2 = _interopRequireDefault(_handlebarsNoConflict);
199
-
200
- // For compatibility and usage outside of module systems, make the Handlebars object a namespace
201
- function create() {
202
- var hb = new base.HandlebarsEnvironment();
203
-
204
- Utils.extend(hb, base);
205
- hb.SafeString = _handlebarsSafeString2['default'];
206
- hb.Exception = _handlebarsException2['default'];
207
- hb.Utils = Utils;
208
- hb.escapeExpression = Utils.escapeExpression;
209
-
210
- hb.VM = runtime;
211
- hb.template = function (spec) {
212
- return runtime.template(spec, hb);
213
- };
214
-
215
- return hb;
216
- }
217
-
218
- var inst = create();
219
- inst.create = create;
220
-
221
- _handlebarsNoConflict2['default'](inst);
222
-
223
- inst['default'] = inst;
224
-
225
- exports['default'] = inst;
226
- module.exports = exports['default'];
227
-
228
- /***/ }),
229
- /* 3 */
230
- /***/ (function(module, exports) {
231
-
232
- "use strict";
233
-
234
- exports["default"] = function (obj) {
235
- if (obj && obj.__esModule) {
236
- return obj;
237
- } else {
238
- var newObj = {};
239
-
240
- if (obj != null) {
241
- for (var key in obj) {
242
- if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];
243
- }
244
- }
245
-
246
- newObj["default"] = obj;
247
- return newObj;
248
- }
249
- };
250
-
251
- exports.__esModule = true;
252
-
253
- /***/ }),
254
- /* 4 */
255
- /***/ (function(module, exports, __webpack_require__) {
256
-
257
- 'use strict';
258
-
259
- var _interopRequireDefault = __webpack_require__(1)['default'];
260
-
261
- exports.__esModule = true;
262
- exports.HandlebarsEnvironment = HandlebarsEnvironment;
263
-
264
- var _utils = __webpack_require__(5);
265
-
266
- var _exception = __webpack_require__(6);
267
-
268
- var _exception2 = _interopRequireDefault(_exception);
269
-
270
- var _helpers = __webpack_require__(10);
271
-
272
- var _decorators = __webpack_require__(18);
273
-
274
- var _logger = __webpack_require__(20);
275
-
276
- var _logger2 = _interopRequireDefault(_logger);
277
-
278
- var VERSION = '4.1.2';
279
- exports.VERSION = VERSION;
280
- var COMPILER_REVISION = 7;
281
-
282
- exports.COMPILER_REVISION = COMPILER_REVISION;
283
- var REVISION_CHANGES = {
284
- 1: '<= 1.0.rc.2', // 1.0.rc.2 is actually rev2 but doesn't report it
285
- 2: '== 1.0.0-rc.3',
286
- 3: '== 1.0.0-rc.4',
287
- 4: '== 1.x.x',
288
- 5: '== 2.0.0-alpha.x',
289
- 6: '>= 2.0.0-beta.1',
290
- 7: '>= 4.0.0'
291
- };
292
-
293
- exports.REVISION_CHANGES = REVISION_CHANGES;
294
- var objectType = '[object Object]';
295
-
296
- function HandlebarsEnvironment(helpers, partials, decorators) {
297
- this.helpers = helpers || {};
298
- this.partials = partials || {};
299
- this.decorators = decorators || {};
300
-
301
- _helpers.registerDefaultHelpers(this);
302
- _decorators.registerDefaultDecorators(this);
303
- }
304
-
305
- HandlebarsEnvironment.prototype = {
306
- constructor: HandlebarsEnvironment,
307
-
308
- logger: _logger2['default'],
309
- log: _logger2['default'].log,
310
-
311
- registerHelper: function registerHelper(name, fn) {
312
- if (_utils.toString.call(name) === objectType) {
313
- if (fn) {
314
- throw new _exception2['default']('Arg not supported with multiple helpers');
315
- }
316
- _utils.extend(this.helpers, name);
317
- } else {
318
- this.helpers[name] = fn;
319
- }
320
- },
321
- unregisterHelper: function unregisterHelper(name) {
322
- delete this.helpers[name];
323
- },
324
-
325
- registerPartial: function registerPartial(name, partial) {
326
- if (_utils.toString.call(name) === objectType) {
327
- _utils.extend(this.partials, name);
328
- } else {
329
- if (typeof partial === 'undefined') {
330
- throw new _exception2['default']('Attempting to register a partial called "' + name + '" as undefined');
331
- }
332
- this.partials[name] = partial;
333
- }
334
- },
335
- unregisterPartial: function unregisterPartial(name) {
336
- delete this.partials[name];
337
- },
338
-
339
- registerDecorator: function registerDecorator(name, fn) {
340
- if (_utils.toString.call(name) === objectType) {
341
- if (fn) {
342
- throw new _exception2['default']('Arg not supported with multiple decorators');
343
- }
344
- _utils.extend(this.decorators, name);
345
- } else {
346
- this.decorators[name] = fn;
347
- }
348
- },
349
- unregisterDecorator: function unregisterDecorator(name) {
350
- delete this.decorators[name];
351
- }
352
- };
353
-
354
- var log = _logger2['default'].log;
355
-
356
- exports.log = log;
357
- exports.createFrame = _utils.createFrame;
358
- exports.logger = _logger2['default'];
359
-
360
- /***/ }),
361
- /* 5 */
362
- /***/ (function(module, exports) {
363
-
364
- 'use strict';
365
-
366
- exports.__esModule = true;
367
- exports.extend = extend;
368
- exports.indexOf = indexOf;
369
- exports.escapeExpression = escapeExpression;
370
- exports.isEmpty = isEmpty;
371
- exports.createFrame = createFrame;
372
- exports.blockParams = blockParams;
373
- exports.appendContextPath = appendContextPath;
374
- var escape = {
375
- '&': '&amp;',
376
- '<': '&lt;',
377
- '>': '&gt;',
378
- '"': '&quot;',
379
- "'": '&#x27;',
380
- '`': '&#x60;',
381
- '=': '&#x3D;'
382
- };
383
-
384
- var badChars = /[&<>"'`=]/g,
385
- possible = /[&<>"'`=]/;
386
-
387
- function escapeChar(chr) {
388
- return escape[chr];
389
- }
390
-
391
- function extend(obj /* , ...source */) {
392
- for (var i = 1; i < arguments.length; i++) {
393
- for (var key in arguments[i]) {
394
- if (Object.prototype.hasOwnProperty.call(arguments[i], key)) {
395
- obj[key] = arguments[i][key];
396
- }
397
- }
398
- }
399
-
400
- return obj;
401
- }
402
-
403
- var toString = Object.prototype.toString;
404
-
405
- exports.toString = toString;
406
- // Sourced from lodash
407
- // https://github.com/bestiejs/lodash/blob/master/LICENSE.txt
408
- /* eslint-disable func-style */
409
- var isFunction = function isFunction(value) {
410
- return typeof value === 'function';
411
- };
412
- // fallback for older versions of Chrome and Safari
413
- /* istanbul ignore next */
414
- if (isFunction(/x/)) {
415
- exports.isFunction = isFunction = function (value) {
416
- return typeof value === 'function' && toString.call(value) === '[object Function]';
417
- };
418
- }
419
- exports.isFunction = isFunction;
420
-
421
- /* eslint-enable func-style */
422
-
423
- /* istanbul ignore next */
424
- var isArray = Array.isArray || function (value) {
425
- return value && typeof value === 'object' ? toString.call(value) === '[object Array]' : false;
426
- };
427
-
428
- exports.isArray = isArray;
429
- // Older IE versions do not directly support indexOf so we must implement our own, sadly.
430
-
431
- function indexOf(array, value) {
432
- for (var i = 0, len = array.length; i < len; i++) {
433
- if (array[i] === value) {
434
- return i;
435
- }
436
- }
437
- return -1;
438
- }
439
-
440
- function escapeExpression(string) {
441
- if (typeof string !== 'string') {
442
- // don't escape SafeStrings, since they're already safe
443
- if (string && string.toHTML) {
444
- return string.toHTML();
445
- } else if (string == null) {
446
- return '';
447
- } else if (!string) {
448
- return string + '';
449
- }
450
-
451
- // Force a string conversion as this will be done by the append regardless and
452
- // the regex test will do this transparently behind the scenes, causing issues if
453
- // an object's to string has escaped characters in it.
454
- string = '' + string;
455
- }
456
-
457
- if (!possible.test(string)) {
458
- return string;
459
- }
460
- return string.replace(badChars, escapeChar);
461
- }
462
-
463
- function isEmpty(value) {
464
- if (!value && value !== 0) {
465
- return true;
466
- } else if (isArray(value) && value.length === 0) {
467
- return true;
468
- } else {
469
- return false;
470
- }
471
- }
472
-
473
- function createFrame(object) {
474
- var frame = extend({}, object);
475
- frame._parent = object;
476
- return frame;
477
- }
478
-
479
- function blockParams(params, ids) {
480
- params.path = ids;
481
- return params;
482
- }
483
-
484
- function appendContextPath(contextPath, id) {
485
- return (contextPath ? contextPath + '.' : '') + id;
486
- }
487
-
488
- /***/ }),
489
- /* 6 */
490
- /***/ (function(module, exports, __webpack_require__) {
491
-
492
- 'use strict';
493
-
494
- var _Object$defineProperty = __webpack_require__(7)['default'];
495
-
496
- exports.__esModule = true;
497
-
498
- var errorProps = ['description', 'fileName', 'lineNumber', 'message', 'name', 'number', 'stack'];
499
-
500
- function Exception(message, node) {
501
- var loc = node && node.loc,
502
- line = undefined,
503
- column = undefined;
504
- if (loc) {
505
- line = loc.start.line;
506
- column = loc.start.column;
507
-
508
- message += ' - ' + line + ':' + column;
509
- }
510
-
511
- var tmp = Error.prototype.constructor.call(this, message);
512
-
513
- // Unfortunately errors are not enumerable in Chrome (at least), so `for prop in tmp` doesn't work.
514
- for (var idx = 0; idx < errorProps.length; idx++) {
515
- this[errorProps[idx]] = tmp[errorProps[idx]];
516
- }
517
-
518
- /* istanbul ignore else */
519
- if (Error.captureStackTrace) {
520
- Error.captureStackTrace(this, Exception);
521
- }
522
-
523
- try {
524
- if (loc) {
525
- this.lineNumber = line;
526
-
527
- // Work around issue under safari where we can't directly set the column value
528
- /* istanbul ignore next */
529
- if (_Object$defineProperty) {
530
- Object.defineProperty(this, 'column', {
531
- value: column,
532
- enumerable: true
533
- });
534
- } else {
535
- this.column = column;
536
- }
537
- }
538
- } catch (nop) {
539
- /* Ignore if the browser is very particular */
540
- }
541
- }
542
-
543
- Exception.prototype = new Error();
544
-
545
- exports['default'] = Exception;
546
- module.exports = exports['default'];
547
-
548
- /***/ }),
549
- /* 7 */
550
- /***/ (function(module, exports, __webpack_require__) {
551
-
552
- module.exports = { "default": __webpack_require__(8), __esModule: true };
553
-
554
- /***/ }),
555
- /* 8 */
556
- /***/ (function(module, exports, __webpack_require__) {
557
-
558
- var $ = __webpack_require__(9);
559
- module.exports = function defineProperty(it, key, desc){
560
- return $.setDesc(it, key, desc);
561
- };
562
-
563
- /***/ }),
564
- /* 9 */
565
- /***/ (function(module, exports) {
566
-
567
- var $Object = Object;
568
- module.exports = {
569
- create: $Object.create,
570
- getProto: $Object.getPrototypeOf,
571
- isEnum: {}.propertyIsEnumerable,
572
- getDesc: $Object.getOwnPropertyDescriptor,
573
- setDesc: $Object.defineProperty,
574
- setDescs: $Object.defineProperties,
575
- getKeys: $Object.keys,
576
- getNames: $Object.getOwnPropertyNames,
577
- getSymbols: $Object.getOwnPropertySymbols,
578
- each: [].forEach
579
- };
580
-
581
- /***/ }),
582
- /* 10 */
583
- /***/ (function(module, exports, __webpack_require__) {
584
-
585
- 'use strict';
586
-
587
- var _interopRequireDefault = __webpack_require__(1)['default'];
588
-
589
- exports.__esModule = true;
590
- exports.registerDefaultHelpers = registerDefaultHelpers;
591
-
592
- var _helpersBlockHelperMissing = __webpack_require__(11);
593
-
594
- var _helpersBlockHelperMissing2 = _interopRequireDefault(_helpersBlockHelperMissing);
595
-
596
- var _helpersEach = __webpack_require__(12);
597
-
598
- var _helpersEach2 = _interopRequireDefault(_helpersEach);
599
-
600
- var _helpersHelperMissing = __webpack_require__(13);
601
-
602
- var _helpersHelperMissing2 = _interopRequireDefault(_helpersHelperMissing);
603
-
604
- var _helpersIf = __webpack_require__(14);
605
-
606
- var _helpersIf2 = _interopRequireDefault(_helpersIf);
607
-
608
- var _helpersLog = __webpack_require__(15);
609
-
610
- var _helpersLog2 = _interopRequireDefault(_helpersLog);
611
-
612
- var _helpersLookup = __webpack_require__(16);
613
-
614
- var _helpersLookup2 = _interopRequireDefault(_helpersLookup);
615
-
616
- var _helpersWith = __webpack_require__(17);
617
-
618
- var _helpersWith2 = _interopRequireDefault(_helpersWith);
619
-
620
- function registerDefaultHelpers(instance) {
621
- _helpersBlockHelperMissing2['default'](instance);
622
- _helpersEach2['default'](instance);
623
- _helpersHelperMissing2['default'](instance);
624
- _helpersIf2['default'](instance);
625
- _helpersLog2['default'](instance);
626
- _helpersLookup2['default'](instance);
627
- _helpersWith2['default'](instance);
628
- }
629
-
630
- /***/ }),
631
- /* 11 */
632
- /***/ (function(module, exports, __webpack_require__) {
633
-
634
- 'use strict';
635
-
636
- exports.__esModule = true;
637
-
638
- var _utils = __webpack_require__(5);
639
-
640
- exports['default'] = function (instance) {
641
- instance.registerHelper('blockHelperMissing', function (context, options) {
642
- var inverse = options.inverse,
643
- fn = options.fn;
644
-
645
- if (context === true) {
646
- return fn(this);
647
- } else if (context === false || context == null) {
648
- return inverse(this);
649
- } else if (_utils.isArray(context)) {
650
- if (context.length > 0) {
651
- if (options.ids) {
652
- options.ids = [options.name];
653
- }
654
-
655
- return instance.helpers.each(context, options);
656
- } else {
657
- return inverse(this);
658
- }
659
- } else {
660
- if (options.data && options.ids) {
661
- var data = _utils.createFrame(options.data);
662
- data.contextPath = _utils.appendContextPath(options.data.contextPath, options.name);
663
- options = { data: data };
664
- }
665
-
666
- return fn(context, options);
667
- }
668
- });
669
- };
670
-
671
- module.exports = exports['default'];
672
-
673
- /***/ }),
674
- /* 12 */
675
- /***/ (function(module, exports, __webpack_require__) {
676
-
677
- 'use strict';
678
-
679
- var _interopRequireDefault = __webpack_require__(1)['default'];
680
-
681
- exports.__esModule = true;
682
-
683
- var _utils = __webpack_require__(5);
684
-
685
- var _exception = __webpack_require__(6);
686
-
687
- var _exception2 = _interopRequireDefault(_exception);
688
-
689
- exports['default'] = function (instance) {
690
- instance.registerHelper('each', function (context, options) {
691
- if (!options) {
692
- throw new _exception2['default']('Must pass iterator to #each');
693
- }
694
-
695
- var fn = options.fn,
696
- inverse = options.inverse,
697
- i = 0,
698
- ret = '',
699
- data = undefined,
700
- contextPath = undefined;
701
-
702
- if (options.data && options.ids) {
703
- contextPath = _utils.appendContextPath(options.data.contextPath, options.ids[0]) + '.';
704
- }
705
-
706
- if (_utils.isFunction(context)) {
707
- context = context.call(this);
708
- }
709
-
710
- if (options.data) {
711
- data = _utils.createFrame(options.data);
712
- }
713
-
714
- function execIteration(field, index, last) {
715
- if (data) {
716
- data.key = field;
717
- data.index = index;
718
- data.first = index === 0;
719
- data.last = !!last;
720
-
721
- if (contextPath) {
722
- data.contextPath = contextPath + field;
723
- }
724
- }
725
-
726
- ret = ret + fn(context[field], {
727
- data: data,
728
- blockParams: _utils.blockParams([context[field], field], [contextPath + field, null])
729
- });
730
- }
731
-
732
- if (context && typeof context === 'object') {
733
- if (_utils.isArray(context)) {
734
- for (var j = context.length; i < j; i++) {
735
- if (i in context) {
736
- execIteration(i, i, i === context.length - 1);
737
- }
738
- }
739
- } else {
740
- var priorKey = undefined;
741
-
742
- for (var key in context) {
743
- if (context.hasOwnProperty(key)) {
744
- // We're running the iterations one step out of sync so we can detect
745
- // the last iteration without have to scan the object twice and create
746
- // an itermediate keys array.
747
- if (priorKey !== undefined) {
748
- execIteration(priorKey, i - 1);
749
- }
750
- priorKey = key;
751
- i++;
752
- }
753
- }
754
- if (priorKey !== undefined) {
755
- execIteration(priorKey, i - 1, true);
756
- }
757
- }
758
- }
759
-
760
- if (i === 0) {
761
- ret = inverse(this);
762
- }
763
-
764
- return ret;
765
- });
766
- };
767
-
768
- module.exports = exports['default'];
769
-
770
- /***/ }),
771
- /* 13 */
772
- /***/ (function(module, exports, __webpack_require__) {
773
-
774
- 'use strict';
775
-
776
- var _interopRequireDefault = __webpack_require__(1)['default'];
777
-
778
- exports.__esModule = true;
779
-
780
- var _exception = __webpack_require__(6);
781
-
782
- var _exception2 = _interopRequireDefault(_exception);
783
-
784
- exports['default'] = function (instance) {
785
- instance.registerHelper('helperMissing', function () /* [args, ]options */{
786
- if (arguments.length === 1) {
787
- // A missing field in a {{foo}} construct.
788
- return undefined;
789
- } else {
790
- // Someone is actually trying to call something, blow up.
791
- throw new _exception2['default']('Missing helper: "' + arguments[arguments.length - 1].name + '"');
792
- }
793
- });
794
- };
795
-
796
- module.exports = exports['default'];
797
-
798
- /***/ }),
799
- /* 14 */
800
- /***/ (function(module, exports, __webpack_require__) {
801
-
802
- 'use strict';
803
-
804
- exports.__esModule = true;
805
-
806
- var _utils = __webpack_require__(5);
807
-
808
- exports['default'] = function (instance) {
809
- instance.registerHelper('if', function (conditional, options) {
810
- if (_utils.isFunction(conditional)) {
811
- conditional = conditional.call(this);
812
- }
813
-
814
- // Default behavior is to render the positive path if the value is truthy and not empty.
815
- // The `includeZero` option may be set to treat the condtional as purely not empty based on the
816
- // behavior of isEmpty. Effectively this determines if 0 is handled by the positive path or negative.
817
- if (!options.hash.includeZero && !conditional || _utils.isEmpty(conditional)) {
818
- return options.inverse(this);
819
- } else {
820
- return options.fn(this);
821
- }
822
- });
823
-
824
- instance.registerHelper('unless', function (conditional, options) {
825
- return instance.helpers['if'].call(this, conditional, { fn: options.inverse, inverse: options.fn, hash: options.hash });
826
- });
827
- };
828
-
829
- module.exports = exports['default'];
830
-
831
- /***/ }),
832
- /* 15 */
833
- /***/ (function(module, exports) {
834
-
835
- 'use strict';
836
-
837
- exports.__esModule = true;
838
-
839
- exports['default'] = function (instance) {
840
- instance.registerHelper('log', function () /* message, options */{
841
- var args = [undefined],
842
- options = arguments[arguments.length - 1];
843
- for (var i = 0; i < arguments.length - 1; i++) {
844
- args.push(arguments[i]);
845
- }
846
-
847
- var level = 1;
848
- if (options.hash.level != null) {
849
- level = options.hash.level;
850
- } else if (options.data && options.data.level != null) {
851
- level = options.data.level;
852
- }
853
- args[0] = level;
854
-
855
- instance.log.apply(instance, args);
856
- });
857
- };
858
-
859
- module.exports = exports['default'];
860
-
861
- /***/ }),
862
- /* 16 */
863
- /***/ (function(module, exports) {
864
-
865
- 'use strict';
866
-
867
- exports.__esModule = true;
868
-
869
- exports['default'] = function (instance) {
870
- instance.registerHelper('lookup', function (obj, field) {
871
- if (!obj) {
872
- return obj;
873
- }
874
- if (field === 'constructor' && !obj.propertyIsEnumerable(field)) {
875
- return undefined;
876
- }
877
- return obj[field];
878
- });
879
- };
880
-
881
- module.exports = exports['default'];
882
-
883
- /***/ }),
884
- /* 17 */
885
- /***/ (function(module, exports, __webpack_require__) {
886
-
887
- 'use strict';
888
-
889
- exports.__esModule = true;
890
-
891
- var _utils = __webpack_require__(5);
892
-
893
- exports['default'] = function (instance) {
894
- instance.registerHelper('with', function (context, options) {
895
- if (_utils.isFunction(context)) {
896
- context = context.call(this);
897
- }
898
-
899
- var fn = options.fn;
900
-
901
- if (!_utils.isEmpty(context)) {
902
- var data = options.data;
903
- if (options.data && options.ids) {
904
- data = _utils.createFrame(options.data);
905
- data.contextPath = _utils.appendContextPath(options.data.contextPath, options.ids[0]);
906
- }
907
-
908
- return fn(context, {
909
- data: data,
910
- blockParams: _utils.blockParams([context], [data && data.contextPath])
911
- });
912
- } else {
913
- return options.inverse(this);
914
- }
915
- });
916
- };
917
-
918
- module.exports = exports['default'];
919
-
920
- /***/ }),
921
- /* 18 */
922
- /***/ (function(module, exports, __webpack_require__) {
923
-
924
- 'use strict';
925
-
926
- var _interopRequireDefault = __webpack_require__(1)['default'];
927
-
928
- exports.__esModule = true;
929
- exports.registerDefaultDecorators = registerDefaultDecorators;
930
-
931
- var _decoratorsInline = __webpack_require__(19);
932
-
933
- var _decoratorsInline2 = _interopRequireDefault(_decoratorsInline);
934
-
935
- function registerDefaultDecorators(instance) {
936
- _decoratorsInline2['default'](instance);
937
- }
938
-
939
- /***/ }),
940
- /* 19 */
941
- /***/ (function(module, exports, __webpack_require__) {
942
-
943
- 'use strict';
944
-
945
- exports.__esModule = true;
946
-
947
- var _utils = __webpack_require__(5);
948
-
949
- exports['default'] = function (instance) {
950
- instance.registerDecorator('inline', function (fn, props, container, options) {
951
- var ret = fn;
952
- if (!props.partials) {
953
- props.partials = {};
954
- ret = function (context, options) {
955
- // Create a new partials stack frame prior to exec.
956
- var original = container.partials;
957
- container.partials = _utils.extend({}, original, props.partials);
958
- var ret = fn(context, options);
959
- container.partials = original;
960
- return ret;
961
- };
962
- }
963
-
964
- props.partials[options.args[0]] = options.fn;
965
-
966
- return ret;
967
- });
968
- };
969
-
970
- module.exports = exports['default'];
971
-
972
- /***/ }),
973
- /* 20 */
974
- /***/ (function(module, exports, __webpack_require__) {
975
-
976
- 'use strict';
977
-
978
- exports.__esModule = true;
979
-
980
- var _utils = __webpack_require__(5);
981
-
982
- var logger = {
983
- methodMap: ['debug', 'info', 'warn', 'error'],
984
- level: 'info',
985
-
986
- // Maps a given level value to the `methodMap` indexes above.
987
- lookupLevel: function lookupLevel(level) {
988
- if (typeof level === 'string') {
989
- var levelMap = _utils.indexOf(logger.methodMap, level.toLowerCase());
990
- if (levelMap >= 0) {
991
- level = levelMap;
992
- } else {
993
- level = parseInt(level, 10);
994
- }
995
- }
996
-
997
- return level;
998
- },
999
-
1000
- // Can be overridden in the host environment
1001
- log: function log(level) {
1002
- level = logger.lookupLevel(level);
1003
-
1004
- if (typeof console !== 'undefined' && logger.lookupLevel(logger.level) <= level) {
1005
- var method = logger.methodMap[level];
1006
- if (!console[method]) {
1007
- // eslint-disable-line no-console
1008
- method = 'log';
1009
- }
1010
-
1011
- for (var _len = arguments.length, message = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
1012
- message[_key - 1] = arguments[_key];
1013
- }
1014
-
1015
- console[method].apply(console, message); // eslint-disable-line no-console
1016
- }
1017
- }
1018
- };
1019
-
1020
- exports['default'] = logger;
1021
- module.exports = exports['default'];
1022
-
1023
- /***/ }),
1024
- /* 21 */
1025
- /***/ (function(module, exports) {
1026
-
1027
- // Build out our basic SafeString type
1028
- 'use strict';
1029
-
1030
- exports.__esModule = true;
1031
- function SafeString(string) {
1032
- this.string = string;
1033
- }
1034
-
1035
- SafeString.prototype.toString = SafeString.prototype.toHTML = function () {
1036
- return '' + this.string;
1037
- };
1038
-
1039
- exports['default'] = SafeString;
1040
- module.exports = exports['default'];
1041
-
1042
- /***/ }),
1043
- /* 22 */
1044
- /***/ (function(module, exports, __webpack_require__) {
1045
-
1046
- 'use strict';
1047
-
1048
- var _Object$seal = __webpack_require__(23)['default'];
1049
-
1050
- var _interopRequireWildcard = __webpack_require__(3)['default'];
1051
-
1052
- var _interopRequireDefault = __webpack_require__(1)['default'];
1053
-
1054
- exports.__esModule = true;
1055
- exports.checkRevision = checkRevision;
1056
- exports.template = template;
1057
- exports.wrapProgram = wrapProgram;
1058
- exports.resolvePartial = resolvePartial;
1059
- exports.invokePartial = invokePartial;
1060
- exports.noop = noop;
1061
-
1062
- var _utils = __webpack_require__(5);
1063
-
1064
- var Utils = _interopRequireWildcard(_utils);
1065
-
1066
- var _exception = __webpack_require__(6);
1067
-
1068
- var _exception2 = _interopRequireDefault(_exception);
1069
-
1070
- var _base = __webpack_require__(4);
1071
-
1072
- function checkRevision(compilerInfo) {
1073
- var compilerRevision = compilerInfo && compilerInfo[0] || 1,
1074
- currentRevision = _base.COMPILER_REVISION;
1075
-
1076
- if (compilerRevision !== currentRevision) {
1077
- if (compilerRevision < currentRevision) {
1078
- var runtimeVersions = _base.REVISION_CHANGES[currentRevision],
1079
- compilerVersions = _base.REVISION_CHANGES[compilerRevision];
1080
- throw new _exception2['default']('Template was precompiled with an older version of Handlebars than the current runtime. ' + 'Please update your precompiler to a newer version (' + runtimeVersions + ') or downgrade your runtime to an older version (' + compilerVersions + ').');
1081
- } else {
1082
- // Use the embedded version info since the runtime doesn't know about this revision yet
1083
- throw new _exception2['default']('Template was precompiled with a newer version of Handlebars than the current runtime. ' + 'Please update your runtime to a newer version (' + compilerInfo[1] + ').');
1084
- }
1085
- }
1086
- }
1087
-
1088
- function template(templateSpec, env) {
1089
- /* istanbul ignore next */
1090
- if (!env) {
1091
- throw new _exception2['default']('No environment passed to template');
1092
- }
1093
- if (!templateSpec || !templateSpec.main) {
1094
- throw new _exception2['default']('Unknown template object: ' + typeof templateSpec);
1095
- }
1096
-
1097
- templateSpec.main.decorator = templateSpec.main_d;
1098
-
1099
- // Note: Using env.VM references rather than local var references throughout this section to allow
1100
- // for external users to override these as psuedo-supported APIs.
1101
- env.VM.checkRevision(templateSpec.compiler);
1102
-
1103
- function invokePartialWrapper(partial, context, options) {
1104
- if (options.hash) {
1105
- context = Utils.extend({}, context, options.hash);
1106
- if (options.ids) {
1107
- options.ids[0] = true;
1108
- }
1109
- }
1110
-
1111
- partial = env.VM.resolvePartial.call(this, partial, context, options);
1112
- var result = env.VM.invokePartial.call(this, partial, context, options);
1113
-
1114
- if (result == null && env.compile) {
1115
- options.partials[options.name] = env.compile(partial, templateSpec.compilerOptions, env);
1116
- result = options.partials[options.name](context, options);
1117
- }
1118
- if (result != null) {
1119
- if (options.indent) {
1120
- var lines = result.split('\n');
1121
- for (var i = 0, l = lines.length; i < l; i++) {
1122
- if (!lines[i] && i + 1 === l) {
1123
- break;
1124
- }
1125
-
1126
- lines[i] = options.indent + lines[i];
1127
- }
1128
- result = lines.join('\n');
1129
- }
1130
- return result;
1131
- } else {
1132
- throw new _exception2['default']('The partial ' + options.name + ' could not be compiled when running in runtime-only mode');
1133
- }
1134
- }
1135
-
1136
- // Just add water
1137
- var container = {
1138
- strict: function strict(obj, name) {
1139
- if (!(name in obj)) {
1140
- throw new _exception2['default']('"' + name + '" not defined in ' + obj);
1141
- }
1142
- return obj[name];
1143
- },
1144
- lookup: function lookup(depths, name) {
1145
- var len = depths.length;
1146
- for (var i = 0; i < len; i++) {
1147
- if (depths[i] && depths[i][name] != null) {
1148
- return depths[i][name];
1149
- }
1150
- }
1151
- },
1152
- lambda: function lambda(current, context) {
1153
- return typeof current === 'function' ? current.call(context) : current;
1154
- },
1155
-
1156
- escapeExpression: Utils.escapeExpression,
1157
- invokePartial: invokePartialWrapper,
1158
-
1159
- fn: function fn(i) {
1160
- var ret = templateSpec[i];
1161
- ret.decorator = templateSpec[i + '_d'];
1162
- return ret;
1163
- },
1164
-
1165
- programs: [],
1166
- program: function program(i, data, declaredBlockParams, blockParams, depths) {
1167
- var programWrapper = this.programs[i],
1168
- fn = this.fn(i);
1169
- if (data || depths || blockParams || declaredBlockParams) {
1170
- programWrapper = wrapProgram(this, i, fn, data, declaredBlockParams, blockParams, depths);
1171
- } else if (!programWrapper) {
1172
- programWrapper = this.programs[i] = wrapProgram(this, i, fn);
1173
- }
1174
- return programWrapper;
1175
- },
1176
-
1177
- data: function data(value, depth) {
1178
- while (value && depth--) {
1179
- value = value._parent;
1180
- }
1181
- return value;
1182
- },
1183
- merge: function merge(param, common) {
1184
- var obj = param || common;
1185
-
1186
- if (param && common && param !== common) {
1187
- obj = Utils.extend({}, common, param);
1188
- }
1189
-
1190
- return obj;
1191
- },
1192
- // An empty object to use as replacement for null-contexts
1193
- nullContext: _Object$seal({}),
1194
-
1195
- noop: env.VM.noop,
1196
- compilerInfo: templateSpec.compiler
1197
- };
1198
-
1199
- function ret(context) {
1200
- var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];
1201
-
1202
- var data = options.data;
1203
-
1204
- ret._setup(options);
1205
- if (!options.partial && templateSpec.useData) {
1206
- data = initData(context, data);
1207
- }
1208
- var depths = undefined,
1209
- blockParams = templateSpec.useBlockParams ? [] : undefined;
1210
- if (templateSpec.useDepths) {
1211
- if (options.depths) {
1212
- depths = context != options.depths[0] ? [context].concat(options.depths) : options.depths;
1213
- } else {
1214
- depths = [context];
1215
- }
1216
- }
1217
-
1218
- function main(context /*, options*/) {
1219
- return '' + templateSpec.main(container, context, container.helpers, container.partials, data, blockParams, depths);
1220
- }
1221
- main = executeDecorators(templateSpec.main, main, container, options.depths || [], data, blockParams);
1222
- return main(context, options);
1223
- }
1224
- ret.isTop = true;
1225
-
1226
- ret._setup = function (options) {
1227
- if (!options.partial) {
1228
- container.helpers = container.merge(options.helpers, env.helpers);
1229
-
1230
- if (templateSpec.usePartial) {
1231
- container.partials = container.merge(options.partials, env.partials);
1232
- }
1233
- if (templateSpec.usePartial || templateSpec.useDecorators) {
1234
- container.decorators = container.merge(options.decorators, env.decorators);
1235
- }
1236
- } else {
1237
- container.helpers = options.helpers;
1238
- container.partials = options.partials;
1239
- container.decorators = options.decorators;
1240
- }
1241
- };
1242
-
1243
- ret._child = function (i, data, blockParams, depths) {
1244
- if (templateSpec.useBlockParams && !blockParams) {
1245
- throw new _exception2['default']('must pass block params');
1246
- }
1247
- if (templateSpec.useDepths && !depths) {
1248
- throw new _exception2['default']('must pass parent depths');
1249
- }
1250
-
1251
- return wrapProgram(container, i, templateSpec[i], data, 0, blockParams, depths);
1252
- };
1253
- return ret;
1254
- }
1255
-
1256
- function wrapProgram(container, i, fn, data, declaredBlockParams, blockParams, depths) {
1257
- function prog(context) {
1258
- var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];
1259
-
1260
- var currentDepths = depths;
1261
- if (depths && context != depths[0] && !(context === container.nullContext && depths[0] === null)) {
1262
- currentDepths = [context].concat(depths);
1263
- }
1264
-
1265
- return fn(container, context, container.helpers, container.partials, options.data || data, blockParams && [options.blockParams].concat(blockParams), currentDepths);
1266
- }
1267
-
1268
- prog = executeDecorators(fn, prog, container, depths, data, blockParams);
1269
-
1270
- prog.program = i;
1271
- prog.depth = depths ? depths.length : 0;
1272
- prog.blockParams = declaredBlockParams || 0;
1273
- return prog;
1274
- }
1275
-
1276
- function resolvePartial(partial, context, options) {
1277
- if (!partial) {
1278
- if (options.name === '@partial-block') {
1279
- partial = options.data['partial-block'];
1280
- } else {
1281
- partial = options.partials[options.name];
1282
- }
1283
- } else if (!partial.call && !options.name) {
1284
- // This is a dynamic partial that returned a string
1285
- options.name = partial;
1286
- partial = options.partials[partial];
1287
- }
1288
- return partial;
1289
- }
1290
-
1291
- function invokePartial(partial, context, options) {
1292
- // Use the current closure context to save the partial-block if this partial
1293
- var currentPartialBlock = options.data && options.data['partial-block'];
1294
- options.partial = true;
1295
- if (options.ids) {
1296
- options.data.contextPath = options.ids[0] || options.data.contextPath;
1297
- }
1298
-
1299
- var partialBlock = undefined;
1300
- if (options.fn && options.fn !== noop) {
1301
- (function () {
1302
- options.data = _base.createFrame(options.data);
1303
- // Wrapper function to get access to currentPartialBlock from the closure
1304
- var fn = options.fn;
1305
- partialBlock = options.data['partial-block'] = function partialBlockWrapper(context) {
1306
- var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];
1307
-
1308
- // Restore the partial-block from the closure for the execution of the block
1309
- // i.e. the part inside the block of the partial call.
1310
- options.data = _base.createFrame(options.data);
1311
- options.data['partial-block'] = currentPartialBlock;
1312
- return fn(context, options);
1313
- };
1314
- if (fn.partials) {
1315
- options.partials = Utils.extend({}, options.partials, fn.partials);
1316
- }
1317
- })();
1318
- }
1319
-
1320
- if (partial === undefined && partialBlock) {
1321
- partial = partialBlock;
1322
- }
1323
-
1324
- if (partial === undefined) {
1325
- throw new _exception2['default']('The partial ' + options.name + ' could not be found');
1326
- } else if (partial instanceof Function) {
1327
- return partial(context, options);
1328
- }
1329
- }
1330
-
1331
- function noop() {
1332
- return '';
1333
- }
1334
-
1335
- function initData(context, data) {
1336
- if (!data || !('root' in data)) {
1337
- data = data ? _base.createFrame(data) : {};
1338
- data.root = context;
1339
- }
1340
- return data;
1341
- }
1342
-
1343
- function executeDecorators(fn, prog, container, depths, data, blockParams) {
1344
- if (fn.decorator) {
1345
- var props = {};
1346
- prog = fn.decorator(prog, props, container, depths && depths[0], data, blockParams, depths);
1347
- Utils.extend(prog, props);
1348
- }
1349
- return prog;
1350
- }
1351
-
1352
- /***/ }),
1353
- /* 23 */
1354
- /***/ (function(module, exports, __webpack_require__) {
1355
-
1356
- module.exports = { "default": __webpack_require__(24), __esModule: true };
1357
-
1358
- /***/ }),
1359
- /* 24 */
1360
- /***/ (function(module, exports, __webpack_require__) {
1361
-
1362
- __webpack_require__(25);
1363
- module.exports = __webpack_require__(30).Object.seal;
1364
-
1365
- /***/ }),
1366
- /* 25 */
1367
- /***/ (function(module, exports, __webpack_require__) {
1368
-
1369
- // 19.1.2.17 Object.seal(O)
1370
- var isObject = __webpack_require__(26);
1371
-
1372
- __webpack_require__(27)('seal', function($seal){
1373
- return function seal(it){
1374
- return $seal && isObject(it) ? $seal(it) : it;
1375
- };
1376
- });
1377
-
1378
- /***/ }),
1379
- /* 26 */
1380
- /***/ (function(module, exports) {
1381
-
1382
- module.exports = function(it){
1383
- return typeof it === 'object' ? it !== null : typeof it === 'function';
1384
- };
1385
-
1386
- /***/ }),
1387
- /* 27 */
1388
- /***/ (function(module, exports, __webpack_require__) {
1389
-
1390
- // most Object methods by ES6 should accept primitives
1391
- var $export = __webpack_require__(28)
1392
- , core = __webpack_require__(30)
1393
- , fails = __webpack_require__(33);
1394
- module.exports = function(KEY, exec){
1395
- var fn = (core.Object || {})[KEY] || Object[KEY]
1396
- , exp = {};
1397
- exp[KEY] = exec(fn);
1398
- $export($export.S + $export.F * fails(function(){ fn(1); }), 'Object', exp);
1399
- };
1400
-
1401
- /***/ }),
1402
- /* 28 */
1403
- /***/ (function(module, exports, __webpack_require__) {
1404
-
1405
- var global = __webpack_require__(29)
1406
- , core = __webpack_require__(30)
1407
- , ctx = __webpack_require__(31)
1408
- , PROTOTYPE = 'prototype';
1409
-
1410
- var $export = function(type, name, source){
1411
- var IS_FORCED = type & $export.F
1412
- , IS_GLOBAL = type & $export.G
1413
- , IS_STATIC = type & $export.S
1414
- , IS_PROTO = type & $export.P
1415
- , IS_BIND = type & $export.B
1416
- , IS_WRAP = type & $export.W
1417
- , exports = IS_GLOBAL ? core : core[name] || (core[name] = {})
1418
- , target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE]
1419
- , key, own, out;
1420
- if(IS_GLOBAL)source = name;
1421
- for(key in source){
1422
- // contains in native
1423
- own = !IS_FORCED && target && key in target;
1424
- if(own && key in exports)continue;
1425
- // export native or passed
1426
- out = own ? target[key] : source[key];
1427
- // prevent global pollution for namespaces
1428
- exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]
1429
- // bind timers to global for call from export context
1430
- : IS_BIND && own ? ctx(out, global)
1431
- // wrap global constructors for prevent change them in library
1432
- : IS_WRAP && target[key] == out ? (function(C){
1433
- var F = function(param){
1434
- return this instanceof C ? new C(param) : C(param);
1435
- };
1436
- F[PROTOTYPE] = C[PROTOTYPE];
1437
- return F;
1438
- // make static versions for prototype methods
1439
- })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
1440
- if(IS_PROTO)(exports[PROTOTYPE] || (exports[PROTOTYPE] = {}))[key] = out;
1441
- }
1442
- };
1443
- // type bitmap
1444
- $export.F = 1; // forced
1445
- $export.G = 2; // global
1446
- $export.S = 4; // static
1447
- $export.P = 8; // proto
1448
- $export.B = 16; // bind
1449
- $export.W = 32; // wrap
1450
- module.exports = $export;
1451
-
1452
- /***/ }),
1453
- /* 29 */
1454
- /***/ (function(module, exports) {
1455
-
1456
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
1457
- var global = module.exports = typeof window != 'undefined' && window.Math == Math
1458
- ? window : typeof self != 'undefined' && self.Math == Math ? self : Function('return this')();
1459
- if(typeof __g == 'number')__g = global; // eslint-disable-line no-undef
1460
-
1461
- /***/ }),
1462
- /* 30 */
1463
- /***/ (function(module, exports) {
1464
-
1465
- var core = module.exports = {version: '1.2.6'};
1466
- if(typeof __e == 'number')__e = core; // eslint-disable-line no-undef
1467
-
1468
- /***/ }),
1469
- /* 31 */
1470
- /***/ (function(module, exports, __webpack_require__) {
1471
-
1472
- // optional / simple context binding
1473
- var aFunction = __webpack_require__(32);
1474
- module.exports = function(fn, that, length){
1475
- aFunction(fn);
1476
- if(that === undefined)return fn;
1477
- switch(length){
1478
- case 1: return function(a){
1479
- return fn.call(that, a);
1480
- };
1481
- case 2: return function(a, b){
1482
- return fn.call(that, a, b);
1483
- };
1484
- case 3: return function(a, b, c){
1485
- return fn.call(that, a, b, c);
1486
- };
1487
- }
1488
- return function(/* ...args */){
1489
- return fn.apply(that, arguments);
1490
- };
1491
- };
1492
-
1493
- /***/ }),
1494
- /* 32 */
1495
- /***/ (function(module, exports) {
1496
-
1497
- module.exports = function(it){
1498
- if(typeof it != 'function')throw TypeError(it + ' is not a function!');
1499
- return it;
1500
- };
1501
-
1502
- /***/ }),
1503
- /* 33 */
1504
- /***/ (function(module, exports) {
1505
-
1506
- module.exports = function(exec){
1507
- try {
1508
- return !!exec();
1509
- } catch(e){
1510
- return true;
1511
- }
1512
- };
1513
-
1514
- /***/ }),
1515
- /* 34 */
1516
- /***/ (function(module, exports) {
1517
-
1518
- /* WEBPACK VAR INJECTION */(function(global) {/* global window */
1519
- 'use strict';
1520
-
1521
- exports.__esModule = true;
1522
-
1523
- exports['default'] = function (Handlebars) {
1524
- /* istanbul ignore next */
1525
- var root = typeof global !== 'undefined' ? global : window,
1526
- $Handlebars = root.Handlebars;
1527
- /* istanbul ignore next */
1528
- Handlebars.noConflict = function () {
1529
- if (root.Handlebars === Handlebars) {
1530
- root.Handlebars = $Handlebars;
1531
- }
1532
- return Handlebars;
1533
- };
1534
- };
1535
-
1536
- module.exports = exports['default'];
1537
- /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
1538
-
1539
- /***/ }),
1540
- /* 35 */
1541
- /***/ (function(module, exports) {
1542
-
1543
- 'use strict';
1544
-
1545
- exports.__esModule = true;
1546
- var AST = {
1547
- // Public API used to evaluate derived attributes regarding AST nodes
1548
- helpers: {
1549
- // a mustache is definitely a helper if:
1550
- // * it is an eligible helper, and
1551
- // * it has at least one parameter or hash segment
1552
- helperExpression: function helperExpression(node) {
1553
- return node.type === 'SubExpression' || (node.type === 'MustacheStatement' || node.type === 'BlockStatement') && !!(node.params && node.params.length || node.hash);
1554
- },
1555
-
1556
- scopedId: function scopedId(path) {
1557
- return (/^\.|this\b/.test(path.original)
1558
- );
1559
- },
1560
-
1561
- // an ID is simple if it only has one part, and that part is not
1562
- // `..` or `this`.
1563
- simpleId: function simpleId(path) {
1564
- return path.parts.length === 1 && !AST.helpers.scopedId(path) && !path.depth;
1565
- }
1566
- }
1567
- };
1568
-
1569
- // Must be exported as an object rather than the root of the module as the jison lexer
1570
- // must modify the object to operate properly.
1571
- exports['default'] = AST;
1572
- module.exports = exports['default'];
1573
-
1574
- /***/ }),
1575
- /* 36 */
1576
- /***/ (function(module, exports, __webpack_require__) {
1577
-
1578
- 'use strict';
1579
-
1580
- var _interopRequireDefault = __webpack_require__(1)['default'];
1581
-
1582
- var _interopRequireWildcard = __webpack_require__(3)['default'];
1583
-
1584
- exports.__esModule = true;
1585
- exports.parse = parse;
1586
-
1587
- var _parser = __webpack_require__(37);
1588
-
1589
- var _parser2 = _interopRequireDefault(_parser);
1590
-
1591
- var _whitespaceControl = __webpack_require__(38);
1592
-
1593
- var _whitespaceControl2 = _interopRequireDefault(_whitespaceControl);
1594
-
1595
- var _helpers = __webpack_require__(40);
1596
-
1597
- var Helpers = _interopRequireWildcard(_helpers);
1598
-
1599
- var _utils = __webpack_require__(5);
1600
-
1601
- exports.parser = _parser2['default'];
1602
-
1603
- var yy = {};
1604
- _utils.extend(yy, Helpers);
1605
-
1606
- function parse(input, options) {
1607
- // Just return if an already-compiled AST was passed in.
1608
- if (input.type === 'Program') {
1609
- return input;
1610
- }
1611
-
1612
- _parser2['default'].yy = yy;
1613
-
1614
- // Altering the shared object here, but this is ok as parser is a sync operation
1615
- yy.locInfo = function (locInfo) {
1616
- return new yy.SourceLocation(options && options.srcName, locInfo);
1617
- };
1618
-
1619
- var strip = new _whitespaceControl2['default'](options);
1620
- return strip.accept(_parser2['default'].parse(input));
1621
- }
1622
-
1623
- /***/ }),
1624
- /* 37 */
1625
- /***/ (function(module, exports) {
1626
-
1627
- // File ignored in coverage tests via setting in .istanbul.yml
1628
- /* Jison generated parser */
1629
- "use strict";
1630
-
1631
- exports.__esModule = true;
1632
- var handlebars = (function () {
1633
- var parser = { trace: function trace() {},
1634
- yy: {},
1635
- symbols_: { "error": 2, "root": 3, "program": 4, "EOF": 5, "program_repetition0": 6, "statement": 7, "mustache": 8, "block": 9, "rawBlock": 10, "partial": 11, "partialBlock": 12, "content": 13, "COMMENT": 14, "CONTENT": 15, "openRawBlock": 16, "rawBlock_repetition_plus0": 17, "END_RAW_BLOCK": 18, "OPEN_RAW_BLOCK": 19, "helperName": 20, "openRawBlock_repetition0": 21, "openRawBlock_option0": 22, "CLOSE_RAW_BLOCK": 23, "openBlock": 24, "block_option0": 25, "closeBlock": 26, "openInverse": 27, "block_option1": 28, "OPEN_BLOCK": 29, "openBlock_repetition0": 30, "openBlock_option0": 31, "openBlock_option1": 32, "CLOSE": 33, "OPEN_INVERSE": 34, "openInverse_repetition0": 35, "openInverse_option0": 36, "openInverse_option1": 37, "openInverseChain": 38, "OPEN_INVERSE_CHAIN": 39, "openInverseChain_repetition0": 40, "openInverseChain_option0": 41, "openInverseChain_option1": 42, "inverseAndProgram": 43, "INVERSE": 44, "inverseChain": 45, "inverseChain_option0": 46, "OPEN_ENDBLOCK": 47, "OPEN": 48, "mustache_repetition0": 49, "mustache_option0": 50, "OPEN_UNESCAPED": 51, "mustache_repetition1": 52, "mustache_option1": 53, "CLOSE_UNESCAPED": 54, "OPEN_PARTIAL": 55, "partialName": 56, "partial_repetition0": 57, "partial_option0": 58, "openPartialBlock": 59, "OPEN_PARTIAL_BLOCK": 60, "openPartialBlock_repetition0": 61, "openPartialBlock_option0": 62, "param": 63, "sexpr": 64, "OPEN_SEXPR": 65, "sexpr_repetition0": 66, "sexpr_option0": 67, "CLOSE_SEXPR": 68, "hash": 69, "hash_repetition_plus0": 70, "hashSegment": 71, "ID": 72, "EQUALS": 73, "blockParams": 74, "OPEN_BLOCK_PARAMS": 75, "blockParams_repetition_plus0": 76, "CLOSE_BLOCK_PARAMS": 77, "path": 78, "dataName": 79, "STRING": 80, "NUMBER": 81, "BOOLEAN": 82, "UNDEFINED": 83, "NULL": 84, "DATA": 85, "pathSegments": 86, "SEP": 87, "$accept": 0, "$end": 1 },
1636
- terminals_: { 2: "error", 5: "EOF", 14: "COMMENT", 15: "CONTENT", 18: "END_RAW_BLOCK", 19: "OPEN_RAW_BLOCK", 23: "CLOSE_RAW_BLOCK", 29: "OPEN_BLOCK", 33: "CLOSE", 34: "OPEN_INVERSE", 39: "OPEN_INVERSE_CHAIN", 44: "INVERSE", 47: "OPEN_ENDBLOCK", 48: "OPEN", 51: "OPEN_UNESCAPED", 54: "CLOSE_UNESCAPED", 55: "OPEN_PARTIAL", 60: "OPEN_PARTIAL_BLOCK", 65: "OPEN_SEXPR", 68: "CLOSE_SEXPR", 72: "ID", 73: "EQUALS", 75: "OPEN_BLOCK_PARAMS", 77: "CLOSE_BLOCK_PARAMS", 80: "STRING", 81: "NUMBER", 82: "BOOLEAN", 83: "UNDEFINED", 84: "NULL", 85: "DATA", 87: "SEP" },
1637
- productions_: [0, [3, 2], [4, 1], [7, 1], [7, 1], [7, 1], [7, 1], [7, 1], [7, 1], [7, 1], [13, 1], [10, 3], [16, 5], [9, 4], [9, 4], [24, 6], [27, 6], [38, 6], [43, 2], [45, 3], [45, 1], [26, 3], [8, 5], [8, 5], [11, 5], [12, 3], [59, 5], [63, 1], [63, 1], [64, 5], [69, 1], [71, 3], [74, 3], [20, 1], [20, 1], [20, 1], [20, 1], [20, 1], [20, 1], [20, 1], [56, 1], [56, 1], [79, 2], [78, 1], [86, 3], [86, 1], [6, 0], [6, 2], [17, 1], [17, 2], [21, 0], [21, 2], [22, 0], [22, 1], [25, 0], [25, 1], [28, 0], [28, 1], [30, 0], [30, 2], [31, 0], [31, 1], [32, 0], [32, 1], [35, 0], [35, 2], [36, 0], [36, 1], [37, 0], [37, 1], [40, 0], [40, 2], [41, 0], [41, 1], [42, 0], [42, 1], [46, 0], [46, 1], [49, 0], [49, 2], [50, 0], [50, 1], [52, 0], [52, 2], [53, 0], [53, 1], [57, 0], [57, 2], [58, 0], [58, 1], [61, 0], [61, 2], [62, 0], [62, 1], [66, 0], [66, 2], [67, 0], [67, 1], [70, 1], [70, 2], [76, 1], [76, 2]],
1638
- performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) {
1639
-
1640
- var $0 = $$.length - 1;
1641
- switch (yystate) {
1642
- case 1:
1643
- return $$[$0 - 1];
1644
- break;
1645
- case 2:
1646
- this.$ = yy.prepareProgram($$[$0]);
1647
- break;
1648
- case 3:
1649
- this.$ = $$[$0];
1650
- break;
1651
- case 4:
1652
- this.$ = $$[$0];
1653
- break;
1654
- case 5:
1655
- this.$ = $$[$0];
1656
- break;
1657
- case 6:
1658
- this.$ = $$[$0];
1659
- break;
1660
- case 7:
1661
- this.$ = $$[$0];
1662
- break;
1663
- case 8:
1664
- this.$ = $$[$0];
1665
- break;
1666
- case 9:
1667
- this.$ = {
1668
- type: 'CommentStatement',
1669
- value: yy.stripComment($$[$0]),
1670
- strip: yy.stripFlags($$[$0], $$[$0]),
1671
- loc: yy.locInfo(this._$)
1672
- };
1673
-
1674
- break;
1675
- case 10:
1676
- this.$ = {
1677
- type: 'ContentStatement',
1678
- original: $$[$0],
1679
- value: $$[$0],
1680
- loc: yy.locInfo(this._$)
1681
- };
1682
-
1683
- break;
1684
- case 11:
1685
- this.$ = yy.prepareRawBlock($$[$0 - 2], $$[$0 - 1], $$[$0], this._$);
1686
- break;
1687
- case 12:
1688
- this.$ = { path: $$[$0 - 3], params: $$[$0 - 2], hash: $$[$0 - 1] };
1689
- break;
1690
- case 13:
1691
- this.$ = yy.prepareBlock($$[$0 - 3], $$[$0 - 2], $$[$0 - 1], $$[$0], false, this._$);
1692
- break;
1693
- case 14:
1694
- this.$ = yy.prepareBlock($$[$0 - 3], $$[$0 - 2], $$[$0 - 1], $$[$0], true, this._$);
1695
- break;
1696
- case 15:
1697
- this.$ = { open: $$[$0 - 5], path: $$[$0 - 4], params: $$[$0 - 3], hash: $$[$0 - 2], blockParams: $$[$0 - 1], strip: yy.stripFlags($$[$0 - 5], $$[$0]) };
1698
- break;
1699
- case 16:
1700
- this.$ = { path: $$[$0 - 4], params: $$[$0 - 3], hash: $$[$0 - 2], blockParams: $$[$0 - 1], strip: yy.stripFlags($$[$0 - 5], $$[$0]) };
1701
- break;
1702
- case 17:
1703
- this.$ = { path: $$[$0 - 4], params: $$[$0 - 3], hash: $$[$0 - 2], blockParams: $$[$0 - 1], strip: yy.stripFlags($$[$0 - 5], $$[$0]) };
1704
- break;
1705
- case 18:
1706
- this.$ = { strip: yy.stripFlags($$[$0 - 1], $$[$0 - 1]), program: $$[$0] };
1707
- break;
1708
- case 19:
1709
- var inverse = yy.prepareBlock($$[$0 - 2], $$[$0 - 1], $$[$0], $$[$0], false, this._$),
1710
- program = yy.prepareProgram([inverse], $$[$0 - 1].loc);
1711
- program.chained = true;
1712
-
1713
- this.$ = { strip: $$[$0 - 2].strip, program: program, chain: true };
1714
-
1715
- break;
1716
- case 20:
1717
- this.$ = $$[$0];
1718
- break;
1719
- case 21:
1720
- this.$ = { path: $$[$0 - 1], strip: yy.stripFlags($$[$0 - 2], $$[$0]) };
1721
- break;
1722
- case 22:
1723
- this.$ = yy.prepareMustache($$[$0 - 3], $$[$0 - 2], $$[$0 - 1], $$[$0 - 4], yy.stripFlags($$[$0 - 4], $$[$0]), this._$);
1724
- break;
1725
- case 23:
1726
- this.$ = yy.prepareMustache($$[$0 - 3], $$[$0 - 2], $$[$0 - 1], $$[$0 - 4], yy.stripFlags($$[$0 - 4], $$[$0]), this._$);
1727
- break;
1728
- case 24:
1729
- this.$ = {
1730
- type: 'PartialStatement',
1731
- name: $$[$0 - 3],
1732
- params: $$[$0 - 2],
1733
- hash: $$[$0 - 1],
1734
- indent: '',
1735
- strip: yy.stripFlags($$[$0 - 4], $$[$0]),
1736
- loc: yy.locInfo(this._$)
1737
- };
1738
-
1739
- break;
1740
- case 25:
1741
- this.$ = yy.preparePartialBlock($$[$0 - 2], $$[$0 - 1], $$[$0], this._$);
1742
- break;
1743
- case 26:
1744
- this.$ = { path: $$[$0 - 3], params: $$[$0 - 2], hash: $$[$0 - 1], strip: yy.stripFlags($$[$0 - 4], $$[$0]) };
1745
- break;
1746
- case 27:
1747
- this.$ = $$[$0];
1748
- break;
1749
- case 28:
1750
- this.$ = $$[$0];
1751
- break;
1752
- case 29:
1753
- this.$ = {
1754
- type: 'SubExpression',
1755
- path: $$[$0 - 3],
1756
- params: $$[$0 - 2],
1757
- hash: $$[$0 - 1],
1758
- loc: yy.locInfo(this._$)
1759
- };
1760
-
1761
- break;
1762
- case 30:
1763
- this.$ = { type: 'Hash', pairs: $$[$0], loc: yy.locInfo(this._$) };
1764
- break;
1765
- case 31:
1766
- this.$ = { type: 'HashPair', key: yy.id($$[$0 - 2]), value: $$[$0], loc: yy.locInfo(this._$) };
1767
- break;
1768
- case 32:
1769
- this.$ = yy.id($$[$0 - 1]);
1770
- break;
1771
- case 33:
1772
- this.$ = $$[$0];
1773
- break;
1774
- case 34:
1775
- this.$ = $$[$0];
1776
- break;
1777
- case 35:
1778
- this.$ = { type: 'StringLiteral', value: $$[$0], original: $$[$0], loc: yy.locInfo(this._$) };
1779
- break;
1780
- case 36:
1781
- this.$ = { type: 'NumberLiteral', value: Number($$[$0]), original: Number($$[$0]), loc: yy.locInfo(this._$) };
1782
- break;
1783
- case 37:
1784
- this.$ = { type: 'BooleanLiteral', value: $$[$0] === 'true', original: $$[$0] === 'true', loc: yy.locInfo(this._$) };
1785
- break;
1786
- case 38:
1787
- this.$ = { type: 'UndefinedLiteral', original: undefined, value: undefined, loc: yy.locInfo(this._$) };
1788
- break;
1789
- case 39:
1790
- this.$ = { type: 'NullLiteral', original: null, value: null, loc: yy.locInfo(this._$) };
1791
- break;
1792
- case 40:
1793
- this.$ = $$[$0];
1794
- break;
1795
- case 41:
1796
- this.$ = $$[$0];
1797
- break;
1798
- case 42:
1799
- this.$ = yy.preparePath(true, $$[$0], this._$);
1800
- break;
1801
- case 43:
1802
- this.$ = yy.preparePath(false, $$[$0], this._$);
1803
- break;
1804
- case 44:
1805
- $$[$0 - 2].push({ part: yy.id($$[$0]), original: $$[$0], separator: $$[$0 - 1] });this.$ = $$[$0 - 2];
1806
- break;
1807
- case 45:
1808
- this.$ = [{ part: yy.id($$[$0]), original: $$[$0] }];
1809
- break;
1810
- case 46:
1811
- this.$ = [];
1812
- break;
1813
- case 47:
1814
- $$[$0 - 1].push($$[$0]);
1815
- break;
1816
- case 48:
1817
- this.$ = [$$[$0]];
1818
- break;
1819
- case 49:
1820
- $$[$0 - 1].push($$[$0]);
1821
- break;
1822
- case 50:
1823
- this.$ = [];
1824
- break;
1825
- case 51:
1826
- $$[$0 - 1].push($$[$0]);
1827
- break;
1828
- case 58:
1829
- this.$ = [];
1830
- break;
1831
- case 59:
1832
- $$[$0 - 1].push($$[$0]);
1833
- break;
1834
- case 64:
1835
- this.$ = [];
1836
- break;
1837
- case 65:
1838
- $$[$0 - 1].push($$[$0]);
1839
- break;
1840
- case 70:
1841
- this.$ = [];
1842
- break;
1843
- case 71:
1844
- $$[$0 - 1].push($$[$0]);
1845
- break;
1846
- case 78:
1847
- this.$ = [];
1848
- break;
1849
- case 79:
1850
- $$[$0 - 1].push($$[$0]);
1851
- break;
1852
- case 82:
1853
- this.$ = [];
1854
- break;
1855
- case 83:
1856
- $$[$0 - 1].push($$[$0]);
1857
- break;
1858
- case 86:
1859
- this.$ = [];
1860
- break;
1861
- case 87:
1862
- $$[$0 - 1].push($$[$0]);
1863
- break;
1864
- case 90:
1865
- this.$ = [];
1866
- break;
1867
- case 91:
1868
- $$[$0 - 1].push($$[$0]);
1869
- break;
1870
- case 94:
1871
- this.$ = [];
1872
- break;
1873
- case 95:
1874
- $$[$0 - 1].push($$[$0]);
1875
- break;
1876
- case 98:
1877
- this.$ = [$$[$0]];
1878
- break;
1879
- case 99:
1880
- $$[$0 - 1].push($$[$0]);
1881
- break;
1882
- case 100:
1883
- this.$ = [$$[$0]];
1884
- break;
1885
- case 101:
1886
- $$[$0 - 1].push($$[$0]);
1887
- break;
1888
- }
1889
- },
1890
- table: [{ 3: 1, 4: 2, 5: [2, 46], 6: 3, 14: [2, 46], 15: [2, 46], 19: [2, 46], 29: [2, 46], 34: [2, 46], 48: [2, 46], 51: [2, 46], 55: [2, 46], 60: [2, 46] }, { 1: [3] }, { 5: [1, 4] }, { 5: [2, 2], 7: 5, 8: 6, 9: 7, 10: 8, 11: 9, 12: 10, 13: 11, 14: [1, 12], 15: [1, 20], 16: 17, 19: [1, 23], 24: 15, 27: 16, 29: [1, 21], 34: [1, 22], 39: [2, 2], 44: [2, 2], 47: [2, 2], 48: [1, 13], 51: [1, 14], 55: [1, 18], 59: 19, 60: [1, 24] }, { 1: [2, 1] }, { 5: [2, 47], 14: [2, 47], 15: [2, 47], 19: [2, 47], 29: [2, 47], 34: [2, 47], 39: [2, 47], 44: [2, 47], 47: [2, 47], 48: [2, 47], 51: [2, 47], 55: [2, 47], 60: [2, 47] }, { 5: [2, 3], 14: [2, 3], 15: [2, 3], 19: [2, 3], 29: [2, 3], 34: [2, 3], 39: [2, 3], 44: [2, 3], 47: [2, 3], 48: [2, 3], 51: [2, 3], 55: [2, 3], 60: [2, 3] }, { 5: [2, 4], 14: [2, 4], 15: [2, 4], 19: [2, 4], 29: [2, 4], 34: [2, 4], 39: [2, 4], 44: [2, 4], 47: [2, 4], 48: [2, 4], 51: [2, 4], 55: [2, 4], 60: [2, 4] }, { 5: [2, 5], 14: [2, 5], 15: [2, 5], 19: [2, 5], 29: [2, 5], 34: [2, 5], 39: [2, 5], 44: [2, 5], 47: [2, 5], 48: [2, 5], 51: [2, 5], 55: [2, 5], 60: [2, 5] }, { 5: [2, 6], 14: [2, 6], 15: [2, 6], 19: [2, 6], 29: [2, 6], 34: [2, 6], 39: [2, 6], 44: [2, 6], 47: [2, 6], 48: [2, 6], 51: [2, 6], 55: [2, 6], 60: [2, 6] }, { 5: [2, 7], 14: [2, 7], 15: [2, 7], 19: [2, 7], 29: [2, 7], 34: [2, 7], 39: [2, 7], 44: [2, 7], 47: [2, 7], 48: [2, 7], 51: [2, 7], 55: [2, 7], 60: [2, 7] }, { 5: [2, 8], 14: [2, 8], 15: [2, 8], 19: [2, 8], 29: [2, 8], 34: [2, 8], 39: [2, 8], 44: [2, 8], 47: [2, 8], 48: [2, 8], 51: [2, 8], 55: [2, 8], 60: [2, 8] }, { 5: [2, 9], 14: [2, 9], 15: [2, 9], 19: [2, 9], 29: [2, 9], 34: [2, 9], 39: [2, 9], 44: [2, 9], 47: [2, 9], 48: [2, 9], 51: [2, 9], 55: [2, 9], 60: [2, 9] }, { 20: 25, 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 20: 36, 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 4: 37, 6: 3, 14: [2, 46], 15: [2, 46], 19: [2, 46], 29: [2, 46], 34: [2, 46], 39: [2, 46], 44: [2, 46], 47: [2, 46], 48: [2, 46], 51: [2, 46], 55: [2, 46], 60: [2, 46] }, { 4: 38, 6: 3, 14: [2, 46], 15: [2, 46], 19: [2, 46], 29: [2, 46], 34: [2, 46], 44: [2, 46], 47: [2, 46], 48: [2, 46], 51: [2, 46], 55: [2, 46], 60: [2, 46] }, { 13: 40, 15: [1, 20], 17: 39 }, { 20: 42, 56: 41, 64: 43, 65: [1, 44], 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 4: 45, 6: 3, 14: [2, 46], 15: [2, 46], 19: [2, 46], 29: [2, 46], 34: [2, 46], 47: [2, 46], 48: [2, 46], 51: [2, 46], 55: [2, 46], 60: [2, 46] }, { 5: [2, 10], 14: [2, 10], 15: [2, 10], 18: [2, 10], 19: [2, 10], 29: [2, 10], 34: [2, 10], 39: [2, 10], 44: [2, 10], 47: [2, 10], 48: [2, 10], 51: [2, 10], 55: [2, 10], 60: [2, 10] }, { 20: 46, 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 20: 47, 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 20: 48, 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 20: 42, 56: 49, 64: 43, 65: [1, 44], 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 33: [2, 78], 49: 50, 65: [2, 78], 72: [2, 78], 80: [2, 78], 81: [2, 78], 82: [2, 78], 83: [2, 78], 84: [2, 78], 85: [2, 78] }, { 23: [2, 33], 33: [2, 33], 54: [2, 33], 65: [2, 33], 68: [2, 33], 72: [2, 33], 75: [2, 33], 80: [2, 33], 81: [2, 33], 82: [2, 33], 83: [2, 33], 84: [2, 33], 85: [2, 33] }, { 23: [2, 34], 33: [2, 34], 54: [2, 34], 65: [2, 34], 68: [2, 34], 72: [2, 34], 75: [2, 34], 80: [2, 34], 81: [2, 34], 82: [2, 34], 83: [2, 34], 84: [2, 34], 85: [2, 34] }, { 23: [2, 35], 33: [2, 35], 54: [2, 35], 65: [2, 35], 68: [2, 35], 72: [2, 35], 75: [2, 35], 80: [2, 35], 81: [2, 35], 82: [2, 35], 83: [2, 35], 84: [2, 35], 85: [2, 35] }, { 23: [2, 36], 33: [2, 36], 54: [2, 36], 65: [2, 36], 68: [2, 36], 72: [2, 36], 75: [2, 36], 80: [2, 36], 81: [2, 36], 82: [2, 36], 83: [2, 36], 84: [2, 36], 85: [2, 36] }, { 23: [2, 37], 33: [2, 37], 54: [2, 37], 65: [2, 37], 68: [2, 37], 72: [2, 37], 75: [2, 37], 80: [2, 37], 81: [2, 37], 82: [2, 37], 83: [2, 37], 84: [2, 37], 85: [2, 37] }, { 23: [2, 38], 33: [2, 38], 54: [2, 38], 65: [2, 38], 68: [2, 38], 72: [2, 38], 75: [2, 38], 80: [2, 38], 81: [2, 38], 82: [2, 38], 83: [2, 38], 84: [2, 38], 85: [2, 38] }, { 23: [2, 39], 33: [2, 39], 54: [2, 39], 65: [2, 39], 68: [2, 39], 72: [2, 39], 75: [2, 39], 80: [2, 39], 81: [2, 39], 82: [2, 39], 83: [2, 39], 84: [2, 39], 85: [2, 39] }, { 23: [2, 43], 33: [2, 43], 54: [2, 43], 65: [2, 43], 68: [2, 43], 72: [2, 43], 75: [2, 43], 80: [2, 43], 81: [2, 43], 82: [2, 43], 83: [2, 43], 84: [2, 43], 85: [2, 43], 87: [1, 51] }, { 72: [1, 35], 86: 52 }, { 23: [2, 45], 33: [2, 45], 54: [2, 45], 65: [2, 45], 68: [2, 45], 72: [2, 45], 75: [2, 45], 80: [2, 45], 81: [2, 45], 82: [2, 45], 83: [2, 45], 84: [2, 45], 85: [2, 45], 87: [2, 45] }, { 52: 53, 54: [2, 82], 65: [2, 82], 72: [2, 82], 80: [2, 82], 81: [2, 82], 82: [2, 82], 83: [2, 82], 84: [2, 82], 85: [2, 82] }, { 25: 54, 38: 56, 39: [1, 58], 43: 57, 44: [1, 59], 45: 55, 47: [2, 54] }, { 28: 60, 43: 61, 44: [1, 59], 47: [2, 56] }, { 13: 63, 15: [1, 20], 18: [1, 62] }, { 15: [2, 48], 18: [2, 48] }, { 33: [2, 86], 57: 64, 65: [2, 86], 72: [2, 86], 80: [2, 86], 81: [2, 86], 82: [2, 86], 83: [2, 86], 84: [2, 86], 85: [2, 86] }, { 33: [2, 40], 65: [2, 40], 72: [2, 40], 80: [2, 40], 81: [2, 40], 82: [2, 40], 83: [2, 40], 84: [2, 40], 85: [2, 40] }, { 33: [2, 41], 65: [2, 41], 72: [2, 41], 80: [2, 41], 81: [2, 41], 82: [2, 41], 83: [2, 41], 84: [2, 41], 85: [2, 41] }, { 20: 65, 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 26: 66, 47: [1, 67] }, { 30: 68, 33: [2, 58], 65: [2, 58], 72: [2, 58], 75: [2, 58], 80: [2, 58], 81: [2, 58], 82: [2, 58], 83: [2, 58], 84: [2, 58], 85: [2, 58] }, { 33: [2, 64], 35: 69, 65: [2, 64], 72: [2, 64], 75: [2, 64], 80: [2, 64], 81: [2, 64], 82: [2, 64], 83: [2, 64], 84: [2, 64], 85: [2, 64] }, { 21: 70, 23: [2, 50], 65: [2, 50], 72: [2, 50], 80: [2, 50], 81: [2, 50], 82: [2, 50], 83: [2, 50], 84: [2, 50], 85: [2, 50] }, { 33: [2, 90], 61: 71, 65: [2, 90], 72: [2, 90], 80: [2, 90], 81: [2, 90], 82: [2, 90], 83: [2, 90], 84: [2, 90], 85: [2, 90] }, { 20: 75, 33: [2, 80], 50: 72, 63: 73, 64: 76, 65: [1, 44], 69: 74, 70: 77, 71: 78, 72: [1, 79], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 72: [1, 80] }, { 23: [2, 42], 33: [2, 42], 54: [2, 42], 65: [2, 42], 68: [2, 42], 72: [2, 42], 75: [2, 42], 80: [2, 42], 81: [2, 42], 82: [2, 42], 83: [2, 42], 84: [2, 42], 85: [2, 42], 87: [1, 51] }, { 20: 75, 53: 81, 54: [2, 84], 63: 82, 64: 76, 65: [1, 44], 69: 83, 70: 77, 71: 78, 72: [1, 79], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 26: 84, 47: [1, 67] }, { 47: [2, 55] }, { 4: 85, 6: 3, 14: [2, 46], 15: [2, 46], 19: [2, 46], 29: [2, 46], 34: [2, 46], 39: [2, 46], 44: [2, 46], 47: [2, 46], 48: [2, 46], 51: [2, 46], 55: [2, 46], 60: [2, 46] }, { 47: [2, 20] }, { 20: 86, 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 4: 87, 6: 3, 14: [2, 46], 15: [2, 46], 19: [2, 46], 29: [2, 46], 34: [2, 46], 47: [2, 46], 48: [2, 46], 51: [2, 46], 55: [2, 46], 60: [2, 46] }, { 26: 88, 47: [1, 67] }, { 47: [2, 57] }, { 5: [2, 11], 14: [2, 11], 15: [2, 11], 19: [2, 11], 29: [2, 11], 34: [2, 11], 39: [2, 11], 44: [2, 11], 47: [2, 11], 48: [2, 11], 51: [2, 11], 55: [2, 11], 60: [2, 11] }, { 15: [2, 49], 18: [2, 49] }, { 20: 75, 33: [2, 88], 58: 89, 63: 90, 64: 76, 65: [1, 44], 69: 91, 70: 77, 71: 78, 72: [1, 79], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 65: [2, 94], 66: 92, 68: [2, 94], 72: [2, 94], 80: [2, 94], 81: [2, 94], 82: [2, 94], 83: [2, 94], 84: [2, 94], 85: [2, 94] }, { 5: [2, 25], 14: [2, 25], 15: [2, 25], 19: [2, 25], 29: [2, 25], 34: [2, 25], 39: [2, 25], 44: [2, 25], 47: [2, 25], 48: [2, 25], 51: [2, 25], 55: [2, 25], 60: [2, 25] }, { 20: 93, 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 20: 75, 31: 94, 33: [2, 60], 63: 95, 64: 76, 65: [1, 44], 69: 96, 70: 77, 71: 78, 72: [1, 79], 75: [2, 60], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 20: 75, 33: [2, 66], 36: 97, 63: 98, 64: 76, 65: [1, 44], 69: 99, 70: 77, 71: 78, 72: [1, 79], 75: [2, 66], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 20: 75, 22: 100, 23: [2, 52], 63: 101, 64: 76, 65: [1, 44], 69: 102, 70: 77, 71: 78, 72: [1, 79], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 20: 75, 33: [2, 92], 62: 103, 63: 104, 64: 76, 65: [1, 44], 69: 105, 70: 77, 71: 78, 72: [1, 79], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 33: [1, 106] }, { 33: [2, 79], 65: [2, 79], 72: [2, 79], 80: [2, 79], 81: [2, 79], 82: [2, 79], 83: [2, 79], 84: [2, 79], 85: [2, 79] }, { 33: [2, 81] }, { 23: [2, 27], 33: [2, 27], 54: [2, 27], 65: [2, 27], 68: [2, 27], 72: [2, 27], 75: [2, 27], 80: [2, 27], 81: [2, 27], 82: [2, 27], 83: [2, 27], 84: [2, 27], 85: [2, 27] }, { 23: [2, 28], 33: [2, 28], 54: [2, 28], 65: [2, 28], 68: [2, 28], 72: [2, 28], 75: [2, 28], 80: [2, 28], 81: [2, 28], 82: [2, 28], 83: [2, 28], 84: [2, 28], 85: [2, 28] }, { 23: [2, 30], 33: [2, 30], 54: [2, 30], 68: [2, 30], 71: 107, 72: [1, 108], 75: [2, 30] }, { 23: [2, 98], 33: [2, 98], 54: [2, 98], 68: [2, 98], 72: [2, 98], 75: [2, 98] }, { 23: [2, 45], 33: [2, 45], 54: [2, 45], 65: [2, 45], 68: [2, 45], 72: [2, 45], 73: [1, 109], 75: [2, 45], 80: [2, 45], 81: [2, 45], 82: [2, 45], 83: [2, 45], 84: [2, 45], 85: [2, 45], 87: [2, 45] }, { 23: [2, 44], 33: [2, 44], 54: [2, 44], 65: [2, 44], 68: [2, 44], 72: [2, 44], 75: [2, 44], 80: [2, 44], 81: [2, 44], 82: [2, 44], 83: [2, 44], 84: [2, 44], 85: [2, 44], 87: [2, 44] }, { 54: [1, 110] }, { 54: [2, 83], 65: [2, 83], 72: [2, 83], 80: [2, 83], 81: [2, 83], 82: [2, 83], 83: [2, 83], 84: [2, 83], 85: [2, 83] }, { 54: [2, 85] }, { 5: [2, 13], 14: [2, 13], 15: [2, 13], 19: [2, 13], 29: [2, 13], 34: [2, 13], 39: [2, 13], 44: [2, 13], 47: [2, 13], 48: [2, 13], 51: [2, 13], 55: [2, 13], 60: [2, 13] }, { 38: 56, 39: [1, 58], 43: 57, 44: [1, 59], 45: 112, 46: 111, 47: [2, 76] }, { 33: [2, 70], 40: 113, 65: [2, 70], 72: [2, 70], 75: [2, 70], 80: [2, 70], 81: [2, 70], 82: [2, 70], 83: [2, 70], 84: [2, 70], 85: [2, 70] }, { 47: [2, 18] }, { 5: [2, 14], 14: [2, 14], 15: [2, 14], 19: [2, 14], 29: [2, 14], 34: [2, 14], 39: [2, 14], 44: [2, 14], 47: [2, 14], 48: [2, 14], 51: [2, 14], 55: [2, 14], 60: [2, 14] }, { 33: [1, 114] }, { 33: [2, 87], 65: [2, 87], 72: [2, 87], 80: [2, 87], 81: [2, 87], 82: [2, 87], 83: [2, 87], 84: [2, 87], 85: [2, 87] }, { 33: [2, 89] }, { 20: 75, 63: 116, 64: 76, 65: [1, 44], 67: 115, 68: [2, 96], 69: 117, 70: 77, 71: 78, 72: [1, 79], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 33: [1, 118] }, { 32: 119, 33: [2, 62], 74: 120, 75: [1, 121] }, { 33: [2, 59], 65: [2, 59], 72: [2, 59], 75: [2, 59], 80: [2, 59], 81: [2, 59], 82: [2, 59], 83: [2, 59], 84: [2, 59], 85: [2, 59] }, { 33: [2, 61], 75: [2, 61] }, { 33: [2, 68], 37: 122, 74: 123, 75: [1, 121] }, { 33: [2, 65], 65: [2, 65], 72: [2, 65], 75: [2, 65], 80: [2, 65], 81: [2, 65], 82: [2, 65], 83: [2, 65], 84: [2, 65], 85: [2, 65] }, { 33: [2, 67], 75: [2, 67] }, { 23: [1, 124] }, { 23: [2, 51], 65: [2, 51], 72: [2, 51], 80: [2, 51], 81: [2, 51], 82: [2, 51], 83: [2, 51], 84: [2, 51], 85: [2, 51] }, { 23: [2, 53] }, { 33: [1, 125] }, { 33: [2, 91], 65: [2, 91], 72: [2, 91], 80: [2, 91], 81: [2, 91], 82: [2, 91], 83: [2, 91], 84: [2, 91], 85: [2, 91] }, { 33: [2, 93] }, { 5: [2, 22], 14: [2, 22], 15: [2, 22], 19: [2, 22], 29: [2, 22], 34: [2, 22], 39: [2, 22], 44: [2, 22], 47: [2, 22], 48: [2, 22], 51: [2, 22], 55: [2, 22], 60: [2, 22] }, { 23: [2, 99], 33: [2, 99], 54: [2, 99], 68: [2, 99], 72: [2, 99], 75: [2, 99] }, { 73: [1, 109] }, { 20: 75, 63: 126, 64: 76, 65: [1, 44], 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 5: [2, 23], 14: [2, 23], 15: [2, 23], 19: [2, 23], 29: [2, 23], 34: [2, 23], 39: [2, 23], 44: [2, 23], 47: [2, 23], 48: [2, 23], 51: [2, 23], 55: [2, 23], 60: [2, 23] }, { 47: [2, 19] }, { 47: [2, 77] }, { 20: 75, 33: [2, 72], 41: 127, 63: 128, 64: 76, 65: [1, 44], 69: 129, 70: 77, 71: 78, 72: [1, 79], 75: [2, 72], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 5: [2, 24], 14: [2, 24], 15: [2, 24], 19: [2, 24], 29: [2, 24], 34: [2, 24], 39: [2, 24], 44: [2, 24], 47: [2, 24], 48: [2, 24], 51: [2, 24], 55: [2, 24], 60: [2, 24] }, { 68: [1, 130] }, { 65: [2, 95], 68: [2, 95], 72: [2, 95], 80: [2, 95], 81: [2, 95], 82: [2, 95], 83: [2, 95], 84: [2, 95], 85: [2, 95] }, { 68: [2, 97] }, { 5: [2, 21], 14: [2, 21], 15: [2, 21], 19: [2, 21], 29: [2, 21], 34: [2, 21], 39: [2, 21], 44: [2, 21], 47: [2, 21], 48: [2, 21], 51: [2, 21], 55: [2, 21], 60: [2, 21] }, { 33: [1, 131] }, { 33: [2, 63] }, { 72: [1, 133], 76: 132 }, { 33: [1, 134] }, { 33: [2, 69] }, { 15: [2, 12] }, { 14: [2, 26], 15: [2, 26], 19: [2, 26], 29: [2, 26], 34: [2, 26], 47: [2, 26], 48: [2, 26], 51: [2, 26], 55: [2, 26], 60: [2, 26] }, { 23: [2, 31], 33: [2, 31], 54: [2, 31], 68: [2, 31], 72: [2, 31], 75: [2, 31] }, { 33: [2, 74], 42: 135, 74: 136, 75: [1, 121] }, { 33: [2, 71], 65: [2, 71], 72: [2, 71], 75: [2, 71], 80: [2, 71], 81: [2, 71], 82: [2, 71], 83: [2, 71], 84: [2, 71], 85: [2, 71] }, { 33: [2, 73], 75: [2, 73] }, { 23: [2, 29], 33: [2, 29], 54: [2, 29], 65: [2, 29], 68: [2, 29], 72: [2, 29], 75: [2, 29], 80: [2, 29], 81: [2, 29], 82: [2, 29], 83: [2, 29], 84: [2, 29], 85: [2, 29] }, { 14: [2, 15], 15: [2, 15], 19: [2, 15], 29: [2, 15], 34: [2, 15], 39: [2, 15], 44: [2, 15], 47: [2, 15], 48: [2, 15], 51: [2, 15], 55: [2, 15], 60: [2, 15] }, { 72: [1, 138], 77: [1, 137] }, { 72: [2, 100], 77: [2, 100] }, { 14: [2, 16], 15: [2, 16], 19: [2, 16], 29: [2, 16], 34: [2, 16], 44: [2, 16], 47: [2, 16], 48: [2, 16], 51: [2, 16], 55: [2, 16], 60: [2, 16] }, { 33: [1, 139] }, { 33: [2, 75] }, { 33: [2, 32] }, { 72: [2, 101], 77: [2, 101] }, { 14: [2, 17], 15: [2, 17], 19: [2, 17], 29: [2, 17], 34: [2, 17], 39: [2, 17], 44: [2, 17], 47: [2, 17], 48: [2, 17], 51: [2, 17], 55: [2, 17], 60: [2, 17] }],
1891
- defaultActions: { 4: [2, 1], 55: [2, 55], 57: [2, 20], 61: [2, 57], 74: [2, 81], 83: [2, 85], 87: [2, 18], 91: [2, 89], 102: [2, 53], 105: [2, 93], 111: [2, 19], 112: [2, 77], 117: [2, 97], 120: [2, 63], 123: [2, 69], 124: [2, 12], 136: [2, 75], 137: [2, 32] },
1892
- parseError: function parseError(str, hash) {
1893
- throw new Error(str);
1894
- },
1895
- parse: function parse(input) {
1896
- var self = this,
1897
- stack = [0],
1898
- vstack = [null],
1899
- lstack = [],
1900
- table = this.table,
1901
- yytext = "",
1902
- yylineno = 0,
1903
- yyleng = 0,
1904
- recovering = 0,
1905
- TERROR = 2,
1906
- EOF = 1;
1907
- this.lexer.setInput(input);
1908
- this.lexer.yy = this.yy;
1909
- this.yy.lexer = this.lexer;
1910
- this.yy.parser = this;
1911
- if (typeof this.lexer.yylloc == "undefined") this.lexer.yylloc = {};
1912
- var yyloc = this.lexer.yylloc;
1913
- lstack.push(yyloc);
1914
- var ranges = this.lexer.options && this.lexer.options.ranges;
1915
- if (typeof this.yy.parseError === "function") this.parseError = this.yy.parseError;
1916
- function popStack(n) {
1917
- stack.length = stack.length - 2 * n;
1918
- vstack.length = vstack.length - n;
1919
- lstack.length = lstack.length - n;
1920
- }
1921
- function lex() {
1922
- var token;
1923
- token = self.lexer.lex() || 1;
1924
- if (typeof token !== "number") {
1925
- token = self.symbols_[token] || token;
1926
- }
1927
- return token;
1928
- }
1929
- var symbol,
1930
- preErrorSymbol,
1931
- state,
1932
- action,
1933
- a,
1934
- r,
1935
- yyval = {},
1936
- p,
1937
- len,
1938
- newState,
1939
- expected;
1940
- while (true) {
1941
- state = stack[stack.length - 1];
1942
- if (this.defaultActions[state]) {
1943
- action = this.defaultActions[state];
1944
- } else {
1945
- if (symbol === null || typeof symbol == "undefined") {
1946
- symbol = lex();
1947
- }
1948
- action = table[state] && table[state][symbol];
1949
- }
1950
- if (typeof action === "undefined" || !action.length || !action[0]) {
1951
- var errStr = "";
1952
- if (!recovering) {
1953
- expected = [];
1954
- for (p in table[state]) if (this.terminals_[p] && p > 2) {
1955
- expected.push("'" + this.terminals_[p] + "'");
1956
- }
1957
- if (this.lexer.showPosition) {
1958
- errStr = "Parse error on line " + (yylineno + 1) + ":\n" + this.lexer.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + (this.terminals_[symbol] || symbol) + "'";
1959
- } else {
1960
- errStr = "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == 1 ? "end of input" : "'" + (this.terminals_[symbol] || symbol) + "'");
1961
- }
1962
- this.parseError(errStr, { text: this.lexer.match, token: this.terminals_[symbol] || symbol, line: this.lexer.yylineno, loc: yyloc, expected: expected });
1963
- }
1964
- }
1965
- if (action[0] instanceof Array && action.length > 1) {
1966
- throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
1967
- }
1968
- switch (action[0]) {
1969
- case 1:
1970
- stack.push(symbol);
1971
- vstack.push(this.lexer.yytext);
1972
- lstack.push(this.lexer.yylloc);
1973
- stack.push(action[1]);
1974
- symbol = null;
1975
- if (!preErrorSymbol) {
1976
- yyleng = this.lexer.yyleng;
1977
- yytext = this.lexer.yytext;
1978
- yylineno = this.lexer.yylineno;
1979
- yyloc = this.lexer.yylloc;
1980
- if (recovering > 0) recovering--;
1981
- } else {
1982
- symbol = preErrorSymbol;
1983
- preErrorSymbol = null;
1984
- }
1985
- break;
1986
- case 2:
1987
- len = this.productions_[action[1]][1];
1988
- yyval.$ = vstack[vstack.length - len];
1989
- yyval._$ = { first_line: lstack[lstack.length - (len || 1)].first_line, last_line: lstack[lstack.length - 1].last_line, first_column: lstack[lstack.length - (len || 1)].first_column, last_column: lstack[lstack.length - 1].last_column };
1990
- if (ranges) {
1991
- yyval._$.range = [lstack[lstack.length - (len || 1)].range[0], lstack[lstack.length - 1].range[1]];
1992
- }
1993
- r = this.performAction.call(yyval, yytext, yyleng, yylineno, this.yy, action[1], vstack, lstack);
1994
- if (typeof r !== "undefined") {
1995
- return r;
1996
- }
1997
- if (len) {
1998
- stack = stack.slice(0, -1 * len * 2);
1999
- vstack = vstack.slice(0, -1 * len);
2000
- lstack = lstack.slice(0, -1 * len);
2001
- }
2002
- stack.push(this.productions_[action[1]][0]);
2003
- vstack.push(yyval.$);
2004
- lstack.push(yyval._$);
2005
- newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
2006
- stack.push(newState);
2007
- break;
2008
- case 3:
2009
- return true;
2010
- }
2011
- }
2012
- return true;
2013
- }
2014
- };
2015
- /* Jison generated lexer */
2016
- var lexer = (function () {
2017
- var lexer = { EOF: 1,
2018
- parseError: function parseError(str, hash) {
2019
- if (this.yy.parser) {
2020
- this.yy.parser.parseError(str, hash);
2021
- } else {
2022
- throw new Error(str);
2023
- }
2024
- },
2025
- setInput: function setInput(input) {
2026
- this._input = input;
2027
- this._more = this._less = this.done = false;
2028
- this.yylineno = this.yyleng = 0;
2029
- this.yytext = this.matched = this.match = '';
2030
- this.conditionStack = ['INITIAL'];
2031
- this.yylloc = { first_line: 1, first_column: 0, last_line: 1, last_column: 0 };
2032
- if (this.options.ranges) this.yylloc.range = [0, 0];
2033
- this.offset = 0;
2034
- return this;
2035
- },
2036
- input: function input() {
2037
- var ch = this._input[0];
2038
- this.yytext += ch;
2039
- this.yyleng++;
2040
- this.offset++;
2041
- this.match += ch;
2042
- this.matched += ch;
2043
- var lines = ch.match(/(?:\r\n?|\n).*/g);
2044
- if (lines) {
2045
- this.yylineno++;
2046
- this.yylloc.last_line++;
2047
- } else {
2048
- this.yylloc.last_column++;
2049
- }
2050
- if (this.options.ranges) this.yylloc.range[1]++;
2051
-
2052
- this._input = this._input.slice(1);
2053
- return ch;
2054
- },
2055
- unput: function unput(ch) {
2056
- var len = ch.length;
2057
- var lines = ch.split(/(?:\r\n?|\n)/g);
2058
-
2059
- this._input = ch + this._input;
2060
- this.yytext = this.yytext.substr(0, this.yytext.length - len - 1);
2061
- //this.yyleng -= len;
2062
- this.offset -= len;
2063
- var oldLines = this.match.split(/(?:\r\n?|\n)/g);
2064
- this.match = this.match.substr(0, this.match.length - 1);
2065
- this.matched = this.matched.substr(0, this.matched.length - 1);
2066
-
2067
- if (lines.length - 1) this.yylineno -= lines.length - 1;
2068
- var r = this.yylloc.range;
2069
-
2070
- this.yylloc = { first_line: this.yylloc.first_line,
2071
- last_line: this.yylineno + 1,
2072
- first_column: this.yylloc.first_column,
2073
- last_column: lines ? (lines.length === oldLines.length ? this.yylloc.first_column : 0) + oldLines[oldLines.length - lines.length].length - lines[0].length : this.yylloc.first_column - len
2074
- };
2075
-
2076
- if (this.options.ranges) {
2077
- this.yylloc.range = [r[0], r[0] + this.yyleng - len];
2078
- }
2079
- return this;
2080
- },
2081
- more: function more() {
2082
- this._more = true;
2083
- return this;
2084
- },
2085
- less: function less(n) {
2086
- this.unput(this.match.slice(n));
2087
- },
2088
- pastInput: function pastInput() {
2089
- var past = this.matched.substr(0, this.matched.length - this.match.length);
2090
- return (past.length > 20 ? '...' : '') + past.substr(-20).replace(/\n/g, "");
2091
- },
2092
- upcomingInput: function upcomingInput() {
2093
- var next = this.match;
2094
- if (next.length < 20) {
2095
- next += this._input.substr(0, 20 - next.length);
2096
- }
2097
- return (next.substr(0, 20) + (next.length > 20 ? '...' : '')).replace(/\n/g, "");
2098
- },
2099
- showPosition: function showPosition() {
2100
- var pre = this.pastInput();
2101
- var c = new Array(pre.length + 1).join("-");
2102
- return pre + this.upcomingInput() + "\n" + c + "^";
2103
- },
2104
- next: function next() {
2105
- if (this.done) {
2106
- return this.EOF;
2107
- }
2108
- if (!this._input) this.done = true;
2109
-
2110
- var token, match, tempMatch, index, col, lines;
2111
- if (!this._more) {
2112
- this.yytext = '';
2113
- this.match = '';
2114
- }
2115
- var rules = this._currentRules();
2116
- for (var i = 0; i < rules.length; i++) {
2117
- tempMatch = this._input.match(this.rules[rules[i]]);
2118
- if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
2119
- match = tempMatch;
2120
- index = i;
2121
- if (!this.options.flex) break;
2122
- }
2123
- }
2124
- if (match) {
2125
- lines = match[0].match(/(?:\r\n?|\n).*/g);
2126
- if (lines) this.yylineno += lines.length;
2127
- this.yylloc = { first_line: this.yylloc.last_line,
2128
- last_line: this.yylineno + 1,
2129
- first_column: this.yylloc.last_column,
2130
- last_column: lines ? lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + match[0].length };
2131
- this.yytext += match[0];
2132
- this.match += match[0];
2133
- this.matches = match;
2134
- this.yyleng = this.yytext.length;
2135
- if (this.options.ranges) {
2136
- this.yylloc.range = [this.offset, this.offset += this.yyleng];
2137
- }
2138
- this._more = false;
2139
- this._input = this._input.slice(match[0].length);
2140
- this.matched += match[0];
2141
- token = this.performAction.call(this, this.yy, this, rules[index], this.conditionStack[this.conditionStack.length - 1]);
2142
- if (this.done && this._input) this.done = false;
2143
- if (token) return token;else return;
2144
- }
2145
- if (this._input === "") {
2146
- return this.EOF;
2147
- } else {
2148
- return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\n' + this.showPosition(), { text: "", token: null, line: this.yylineno });
2149
- }
2150
- },
2151
- lex: function lex() {
2152
- var r = this.next();
2153
- if (typeof r !== 'undefined') {
2154
- return r;
2155
- } else {
2156
- return this.lex();
2157
- }
2158
- },
2159
- begin: function begin(condition) {
2160
- this.conditionStack.push(condition);
2161
- },
2162
- popState: function popState() {
2163
- return this.conditionStack.pop();
2164
- },
2165
- _currentRules: function _currentRules() {
2166
- return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
2167
- },
2168
- topState: function topState() {
2169
- return this.conditionStack[this.conditionStack.length - 2];
2170
- },
2171
- pushState: function begin(condition) {
2172
- this.begin(condition);
2173
- } };
2174
- lexer.options = {};
2175
- lexer.performAction = function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) {
2176
-
2177
- function strip(start, end) {
2178
- return yy_.yytext = yy_.yytext.substring(start, yy_.yyleng - end + start);
2179
- }
2180
-
2181
- var YYSTATE = YY_START;
2182
- switch ($avoiding_name_collisions) {
2183
- case 0:
2184
- if (yy_.yytext.slice(-2) === "\\\\") {
2185
- strip(0, 1);
2186
- this.begin("mu");
2187
- } else if (yy_.yytext.slice(-1) === "\\") {
2188
- strip(0, 1);
2189
- this.begin("emu");
2190
- } else {
2191
- this.begin("mu");
2192
- }
2193
- if (yy_.yytext) return 15;
2194
-
2195
- break;
2196
- case 1:
2197
- return 15;
2198
- break;
2199
- case 2:
2200
- this.popState();
2201
- return 15;
2202
-
2203
- break;
2204
- case 3:
2205
- this.begin('raw');return 15;
2206
- break;
2207
- case 4:
2208
- this.popState();
2209
- // Should be using `this.topState()` below, but it currently
2210
- // returns the second top instead of the first top. Opened an
2211
- // issue about it at https://github.com/zaach/jison/issues/291
2212
- if (this.conditionStack[this.conditionStack.length - 1] === 'raw') {
2213
- return 15;
2214
- } else {
2215
- strip(5, 9);
2216
- return 'END_RAW_BLOCK';
2217
- }
2218
-
2219
- break;
2220
- case 5:
2221
- return 15;
2222
- break;
2223
- case 6:
2224
- this.popState();
2225
- return 14;
2226
-
2227
- break;
2228
- case 7:
2229
- return 65;
2230
- break;
2231
- case 8:
2232
- return 68;
2233
- break;
2234
- case 9:
2235
- return 19;
2236
- break;
2237
- case 10:
2238
- this.popState();
2239
- this.begin('raw');
2240
- return 23;
2241
-
2242
- break;
2243
- case 11:
2244
- return 55;
2245
- break;
2246
- case 12:
2247
- return 60;
2248
- break;
2249
- case 13:
2250
- return 29;
2251
- break;
2252
- case 14:
2253
- return 47;
2254
- break;
2255
- case 15:
2256
- this.popState();return 44;
2257
- break;
2258
- case 16:
2259
- this.popState();return 44;
2260
- break;
2261
- case 17:
2262
- return 34;
2263
- break;
2264
- case 18:
2265
- return 39;
2266
- break;
2267
- case 19:
2268
- return 51;
2269
- break;
2270
- case 20:
2271
- return 48;
2272
- break;
2273
- case 21:
2274
- this.unput(yy_.yytext);
2275
- this.popState();
2276
- this.begin('com');
2277
-
2278
- break;
2279
- case 22:
2280
- this.popState();
2281
- return 14;
2282
-
2283
- break;
2284
- case 23:
2285
- return 48;
2286
- break;
2287
- case 24:
2288
- return 73;
2289
- break;
2290
- case 25:
2291
- return 72;
2292
- break;
2293
- case 26:
2294
- return 72;
2295
- break;
2296
- case 27:
2297
- return 87;
2298
- break;
2299
- case 28:
2300
- // ignore whitespace
2301
- break;
2302
- case 29:
2303
- this.popState();return 54;
2304
- break;
2305
- case 30:
2306
- this.popState();return 33;
2307
- break;
2308
- case 31:
2309
- yy_.yytext = strip(1, 2).replace(/\\"/g, '"');return 80;
2310
- break;
2311
- case 32:
2312
- yy_.yytext = strip(1, 2).replace(/\\'/g, "'");return 80;
2313
- break;
2314
- case 33:
2315
- return 85;
2316
- break;
2317
- case 34:
2318
- return 82;
2319
- break;
2320
- case 35:
2321
- return 82;
2322
- break;
2323
- case 36:
2324
- return 83;
2325
- break;
2326
- case 37:
2327
- return 84;
2328
- break;
2329
- case 38:
2330
- return 81;
2331
- break;
2332
- case 39:
2333
- return 75;
2334
- break;
2335
- case 40:
2336
- return 77;
2337
- break;
2338
- case 41:
2339
- return 72;
2340
- break;
2341
- case 42:
2342
- yy_.yytext = yy_.yytext.replace(/\\([\\\]])/g, '$1');return 72;
2343
- break;
2344
- case 43:
2345
- return 'INVALID';
2346
- break;
2347
- case 44:
2348
- return 5;
2349
- break;
2350
- }
2351
- };
2352
- lexer.rules = [/^(?:[^\x00]*?(?=(\{\{)))/, /^(?:[^\x00]+)/, /^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/, /^(?:\{\{\{\{(?=[^\/]))/, /^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/, /^(?:[^\x00]*?(?=(\{\{\{\{)))/, /^(?:[\s\S]*?--(~)?\}\})/, /^(?:\()/, /^(?:\))/, /^(?:\{\{\{\{)/, /^(?:\}\}\}\})/, /^(?:\{\{(~)?>)/, /^(?:\{\{(~)?#>)/, /^(?:\{\{(~)?#\*?)/, /^(?:\{\{(~)?\/)/, /^(?:\{\{(~)?\^\s*(~)?\}\})/, /^(?:\{\{(~)?\s*else\s*(~)?\}\})/, /^(?:\{\{(~)?\^)/, /^(?:\{\{(~)?\s*else\b)/, /^(?:\{\{(~)?\{)/, /^(?:\{\{(~)?&)/, /^(?:\{\{(~)?!--)/, /^(?:\{\{(~)?![\s\S]*?\}\})/, /^(?:\{\{(~)?\*?)/, /^(?:=)/, /^(?:\.\.)/, /^(?:\.(?=([=~}\s\/.)|])))/, /^(?:[\/.])/, /^(?:\s+)/, /^(?:\}(~)?\}\})/, /^(?:(~)?\}\})/, /^(?:"(\\["]|[^"])*")/, /^(?:'(\\[']|[^'])*')/, /^(?:@)/, /^(?:true(?=([~}\s)])))/, /^(?:false(?=([~}\s)])))/, /^(?:undefined(?=([~}\s)])))/, /^(?:null(?=([~}\s)])))/, /^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/, /^(?:as\s+\|)/, /^(?:\|)/, /^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/, /^(?:\[(\\\]|[^\]])*\])/, /^(?:.)/, /^(?:$)/];
2353
- lexer.conditions = { "mu": { "rules": [7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44], "inclusive": false }, "emu": { "rules": [2], "inclusive": false }, "com": { "rules": [6], "inclusive": false }, "raw": { "rules": [3, 4, 5], "inclusive": false }, "INITIAL": { "rules": [0, 1, 44], "inclusive": true } };
2354
- return lexer;
2355
- })();
2356
- parser.lexer = lexer;
2357
- function Parser() {
2358
- this.yy = {};
2359
- }Parser.prototype = parser;parser.Parser = Parser;
2360
- return new Parser();
2361
- })();exports["default"] = handlebars;
2362
- module.exports = exports["default"];
2363
-
2364
- /***/ }),
2365
- /* 38 */
2366
- /***/ (function(module, exports, __webpack_require__) {
2367
-
2368
- 'use strict';
2369
-
2370
- var _interopRequireDefault = __webpack_require__(1)['default'];
2371
-
2372
- exports.__esModule = true;
2373
-
2374
- var _visitor = __webpack_require__(39);
2375
-
2376
- var _visitor2 = _interopRequireDefault(_visitor);
2377
-
2378
- function WhitespaceControl() {
2379
- var options = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0];
2380
-
2381
- this.options = options;
2382
- }
2383
- WhitespaceControl.prototype = new _visitor2['default']();
2384
-
2385
- WhitespaceControl.prototype.Program = function (program) {
2386
- var doStandalone = !this.options.ignoreStandalone;
2387
-
2388
- var isRoot = !this.isRootSeen;
2389
- this.isRootSeen = true;
2390
-
2391
- var body = program.body;
2392
- for (var i = 0, l = body.length; i < l; i++) {
2393
- var current = body[i],
2394
- strip = this.accept(current);
2395
-
2396
- if (!strip) {
2397
- continue;
2398
- }
2399
-
2400
- var _isPrevWhitespace = isPrevWhitespace(body, i, isRoot),
2401
- _isNextWhitespace = isNextWhitespace(body, i, isRoot),
2402
- openStandalone = strip.openStandalone && _isPrevWhitespace,
2403
- closeStandalone = strip.closeStandalone && _isNextWhitespace,
2404
- inlineStandalone = strip.inlineStandalone && _isPrevWhitespace && _isNextWhitespace;
2405
-
2406
- if (strip.close) {
2407
- omitRight(body, i, true);
2408
- }
2409
- if (strip.open) {
2410
- omitLeft(body, i, true);
2411
- }
2412
-
2413
- if (doStandalone && inlineStandalone) {
2414
- omitRight(body, i);
2415
-
2416
- if (omitLeft(body, i)) {
2417
- // If we are on a standalone node, save the indent info for partials
2418
- if (current.type === 'PartialStatement') {
2419
- // Pull out the whitespace from the final line
2420
- current.indent = /([ \t]+$)/.exec(body[i - 1].original)[1];
2421
- }
2422
- }
2423
- }
2424
- if (doStandalone && openStandalone) {
2425
- omitRight((current.program || current.inverse).body);
2426
-
2427
- // Strip out the previous content node if it's whitespace only
2428
- omitLeft(body, i);
2429
- }
2430
- if (doStandalone && closeStandalone) {
2431
- // Always strip the next node
2432
- omitRight(body, i);
2433
-
2434
- omitLeft((current.inverse || current.program).body);
2435
- }
2436
- }
2437
-
2438
- return program;
2439
- };
2440
-
2441
- WhitespaceControl.prototype.BlockStatement = WhitespaceControl.prototype.DecoratorBlock = WhitespaceControl.prototype.PartialBlockStatement = function (block) {
2442
- this.accept(block.program);
2443
- this.accept(block.inverse);
2444
-
2445
- // Find the inverse program that is involed with whitespace stripping.
2446
- var program = block.program || block.inverse,
2447
- inverse = block.program && block.inverse,
2448
- firstInverse = inverse,
2449
- lastInverse = inverse;
2450
-
2451
- if (inverse && inverse.chained) {
2452
- firstInverse = inverse.body[0].program;
2453
-
2454
- // Walk the inverse chain to find the last inverse that is actually in the chain.
2455
- while (lastInverse.chained) {
2456
- lastInverse = lastInverse.body[lastInverse.body.length - 1].program;
2457
- }
2458
- }
2459
-
2460
- var strip = {
2461
- open: block.openStrip.open,
2462
- close: block.closeStrip.close,
2463
-
2464
- // Determine the standalone candiacy. Basically flag our content as being possibly standalone
2465
- // so our parent can determine if we actually are standalone
2466
- openStandalone: isNextWhitespace(program.body),
2467
- closeStandalone: isPrevWhitespace((firstInverse || program).body)
2468
- };
2469
-
2470
- if (block.openStrip.close) {
2471
- omitRight(program.body, null, true);
2472
- }
2473
-
2474
- if (inverse) {
2475
- var inverseStrip = block.inverseStrip;
2476
-
2477
- if (inverseStrip.open) {
2478
- omitLeft(program.body, null, true);
2479
- }
2480
-
2481
- if (inverseStrip.close) {
2482
- omitRight(firstInverse.body, null, true);
2483
- }
2484
- if (block.closeStrip.open) {
2485
- omitLeft(lastInverse.body, null, true);
2486
- }
2487
-
2488
- // Find standalone else statments
2489
- if (!this.options.ignoreStandalone && isPrevWhitespace(program.body) && isNextWhitespace(firstInverse.body)) {
2490
- omitLeft(program.body);
2491
- omitRight(firstInverse.body);
2492
- }
2493
- } else if (block.closeStrip.open) {
2494
- omitLeft(program.body, null, true);
2495
- }
2496
-
2497
- return strip;
2498
- };
2499
-
2500
- WhitespaceControl.prototype.Decorator = WhitespaceControl.prototype.MustacheStatement = function (mustache) {
2501
- return mustache.strip;
2502
- };
2503
-
2504
- WhitespaceControl.prototype.PartialStatement = WhitespaceControl.prototype.CommentStatement = function (node) {
2505
- /* istanbul ignore next */
2506
- var strip = node.strip || {};
2507
- return {
2508
- inlineStandalone: true,
2509
- open: strip.open,
2510
- close: strip.close
2511
- };
2512
- };
2513
-
2514
- function isPrevWhitespace(body, i, isRoot) {
2515
- if (i === undefined) {
2516
- i = body.length;
2517
- }
2518
-
2519
- // Nodes that end with newlines are considered whitespace (but are special
2520
- // cased for strip operations)
2521
- var prev = body[i - 1],
2522
- sibling = body[i - 2];
2523
- if (!prev) {
2524
- return isRoot;
2525
- }
2526
-
2527
- if (prev.type === 'ContentStatement') {
2528
- return (sibling || !isRoot ? /\r?\n\s*?$/ : /(^|\r?\n)\s*?$/).test(prev.original);
2529
- }
2530
- }
2531
- function isNextWhitespace(body, i, isRoot) {
2532
- if (i === undefined) {
2533
- i = -1;
2534
- }
2535
-
2536
- var next = body[i + 1],
2537
- sibling = body[i + 2];
2538
- if (!next) {
2539
- return isRoot;
2540
- }
2541
-
2542
- if (next.type === 'ContentStatement') {
2543
- return (sibling || !isRoot ? /^\s*?\r?\n/ : /^\s*?(\r?\n|$)/).test(next.original);
2544
- }
2545
- }
2546
-
2547
- // Marks the node to the right of the position as omitted.
2548
- // I.e. {{foo}}' ' will mark the ' ' node as omitted.
2549
- //
2550
- // If i is undefined, then the first child will be marked as such.
2551
- //
2552
- // If mulitple is truthy then all whitespace will be stripped out until non-whitespace
2553
- // content is met.
2554
- function omitRight(body, i, multiple) {
2555
- var current = body[i == null ? 0 : i + 1];
2556
- if (!current || current.type !== 'ContentStatement' || !multiple && current.rightStripped) {
2557
- return;
2558
- }
2559
-
2560
- var original = current.value;
2561
- current.value = current.value.replace(multiple ? /^\s+/ : /^[ \t]*\r?\n?/, '');
2562
- current.rightStripped = current.value !== original;
2563
- }
2564
-
2565
- // Marks the node to the left of the position as omitted.
2566
- // I.e. ' '{{foo}} will mark the ' ' node as omitted.
2567
- //
2568
- // If i is undefined then the last child will be marked as such.
2569
- //
2570
- // If mulitple is truthy then all whitespace will be stripped out until non-whitespace
2571
- // content is met.
2572
- function omitLeft(body, i, multiple) {
2573
- var current = body[i == null ? body.length - 1 : i - 1];
2574
- if (!current || current.type !== 'ContentStatement' || !multiple && current.leftStripped) {
2575
- return;
2576
- }
2577
-
2578
- // We omit the last node if it's whitespace only and not preceeded by a non-content node.
2579
- var original = current.value;
2580
- current.value = current.value.replace(multiple ? /\s+$/ : /[ \t]+$/, '');
2581
- current.leftStripped = current.value !== original;
2582
- return current.leftStripped;
2583
- }
2584
-
2585
- exports['default'] = WhitespaceControl;
2586
- module.exports = exports['default'];
2587
-
2588
- /***/ }),
2589
- /* 39 */
2590
- /***/ (function(module, exports, __webpack_require__) {
2591
-
2592
- 'use strict';
2593
-
2594
- var _interopRequireDefault = __webpack_require__(1)['default'];
2595
-
2596
- exports.__esModule = true;
2597
-
2598
- var _exception = __webpack_require__(6);
2599
-
2600
- var _exception2 = _interopRequireDefault(_exception);
2601
-
2602
- function Visitor() {
2603
- this.parents = [];
2604
- }
2605
-
2606
- Visitor.prototype = {
2607
- constructor: Visitor,
2608
- mutating: false,
2609
-
2610
- // Visits a given value. If mutating, will replace the value if necessary.
2611
- acceptKey: function acceptKey(node, name) {
2612
- var value = this.accept(node[name]);
2613
- if (this.mutating) {
2614
- // Hacky sanity check: This may have a few false positives for type for the helper
2615
- // methods but will generally do the right thing without a lot of overhead.
2616
- if (value && !Visitor.prototype[value.type]) {
2617
- throw new _exception2['default']('Unexpected node type "' + value.type + '" found when accepting ' + name + ' on ' + node.type);
2618
- }
2619
- node[name] = value;
2620
- }
2621
- },
2622
-
2623
- // Performs an accept operation with added sanity check to ensure
2624
- // required keys are not removed.
2625
- acceptRequired: function acceptRequired(node, name) {
2626
- this.acceptKey(node, name);
2627
-
2628
- if (!node[name]) {
2629
- throw new _exception2['default'](node.type + ' requires ' + name);
2630
- }
2631
- },
2632
-
2633
- // Traverses a given array. If mutating, empty respnses will be removed
2634
- // for child elements.
2635
- acceptArray: function acceptArray(array) {
2636
- for (var i = 0, l = array.length; i < l; i++) {
2637
- this.acceptKey(array, i);
2638
-
2639
- if (!array[i]) {
2640
- array.splice(i, 1);
2641
- i--;
2642
- l--;
2643
- }
2644
- }
2645
- },
2646
-
2647
- accept: function accept(object) {
2648
- if (!object) {
2649
- return;
2650
- }
2651
-
2652
- /* istanbul ignore next: Sanity code */
2653
- if (!this[object.type]) {
2654
- throw new _exception2['default']('Unknown type: ' + object.type, object);
2655
- }
2656
-
2657
- if (this.current) {
2658
- this.parents.unshift(this.current);
2659
- }
2660
- this.current = object;
2661
-
2662
- var ret = this[object.type](object);
2663
-
2664
- this.current = this.parents.shift();
2665
-
2666
- if (!this.mutating || ret) {
2667
- return ret;
2668
- } else if (ret !== false) {
2669
- return object;
2670
- }
2671
- },
2672
-
2673
- Program: function Program(program) {
2674
- this.acceptArray(program.body);
2675
- },
2676
-
2677
- MustacheStatement: visitSubExpression,
2678
- Decorator: visitSubExpression,
2679
-
2680
- BlockStatement: visitBlock,
2681
- DecoratorBlock: visitBlock,
2682
-
2683
- PartialStatement: visitPartial,
2684
- PartialBlockStatement: function PartialBlockStatement(partial) {
2685
- visitPartial.call(this, partial);
2686
-
2687
- this.acceptKey(partial, 'program');
2688
- },
2689
-
2690
- ContentStatement: function ContentStatement() /* content */{},
2691
- CommentStatement: function CommentStatement() /* comment */{},
2692
-
2693
- SubExpression: visitSubExpression,
2694
-
2695
- PathExpression: function PathExpression() /* path */{},
2696
-
2697
- StringLiteral: function StringLiteral() /* string */{},
2698
- NumberLiteral: function NumberLiteral() /* number */{},
2699
- BooleanLiteral: function BooleanLiteral() /* bool */{},
2700
- UndefinedLiteral: function UndefinedLiteral() /* literal */{},
2701
- NullLiteral: function NullLiteral() /* literal */{},
2702
-
2703
- Hash: function Hash(hash) {
2704
- this.acceptArray(hash.pairs);
2705
- },
2706
- HashPair: function HashPair(pair) {
2707
- this.acceptRequired(pair, 'value');
2708
- }
2709
- };
2710
-
2711
- function visitSubExpression(mustache) {
2712
- this.acceptRequired(mustache, 'path');
2713
- this.acceptArray(mustache.params);
2714
- this.acceptKey(mustache, 'hash');
2715
- }
2716
- function visitBlock(block) {
2717
- visitSubExpression.call(this, block);
2718
-
2719
- this.acceptKey(block, 'program');
2720
- this.acceptKey(block, 'inverse');
2721
- }
2722
- function visitPartial(partial) {
2723
- this.acceptRequired(partial, 'name');
2724
- this.acceptArray(partial.params);
2725
- this.acceptKey(partial, 'hash');
2726
- }
2727
-
2728
- exports['default'] = Visitor;
2729
- module.exports = exports['default'];
2730
-
2731
- /***/ }),
2732
- /* 40 */
2733
- /***/ (function(module, exports, __webpack_require__) {
2734
-
2735
- 'use strict';
2736
-
2737
- var _interopRequireDefault = __webpack_require__(1)['default'];
2738
-
2739
- exports.__esModule = true;
2740
- exports.SourceLocation = SourceLocation;
2741
- exports.id = id;
2742
- exports.stripFlags = stripFlags;
2743
- exports.stripComment = stripComment;
2744
- exports.preparePath = preparePath;
2745
- exports.prepareMustache = prepareMustache;
2746
- exports.prepareRawBlock = prepareRawBlock;
2747
- exports.prepareBlock = prepareBlock;
2748
- exports.prepareProgram = prepareProgram;
2749
- exports.preparePartialBlock = preparePartialBlock;
2750
-
2751
- var _exception = __webpack_require__(6);
2752
-
2753
- var _exception2 = _interopRequireDefault(_exception);
2754
-
2755
- function validateClose(open, close) {
2756
- close = close.path ? close.path.original : close;
2757
-
2758
- if (open.path.original !== close) {
2759
- var errorNode = { loc: open.path.loc };
2760
-
2761
- throw new _exception2['default'](open.path.original + " doesn't match " + close, errorNode);
2762
- }
2763
- }
2764
-
2765
- function SourceLocation(source, locInfo) {
2766
- this.source = source;
2767
- this.start = {
2768
- line: locInfo.first_line,
2769
- column: locInfo.first_column
2770
- };
2771
- this.end = {
2772
- line: locInfo.last_line,
2773
- column: locInfo.last_column
2774
- };
2775
- }
2776
-
2777
- function id(token) {
2778
- if (/^\[.*\]$/.test(token)) {
2779
- return token.substring(1, token.length - 1);
2780
- } else {
2781
- return token;
2782
- }
2783
- }
2784
-
2785
- function stripFlags(open, close) {
2786
- return {
2787
- open: open.charAt(2) === '~',
2788
- close: close.charAt(close.length - 3) === '~'
2789
- };
2790
- }
2791
-
2792
- function stripComment(comment) {
2793
- return comment.replace(/^\{\{~?!-?-?/, '').replace(/-?-?~?\}\}$/, '');
2794
- }
2795
-
2796
- function preparePath(data, parts, loc) {
2797
- loc = this.locInfo(loc);
2798
-
2799
- var original = data ? '@' : '',
2800
- dig = [],
2801
- depth = 0;
2802
-
2803
- for (var i = 0, l = parts.length; i < l; i++) {
2804
- var part = parts[i].part,
2805
-
2806
- // If we have [] syntax then we do not treat path references as operators,
2807
- // i.e. foo.[this] resolves to approximately context.foo['this']
2808
- isLiteral = parts[i].original !== part;
2809
- original += (parts[i].separator || '') + part;
2810
-
2811
- if (!isLiteral && (part === '..' || part === '.' || part === 'this')) {
2812
- if (dig.length > 0) {
2813
- throw new _exception2['default']('Invalid path: ' + original, { loc: loc });
2814
- } else if (part === '..') {
2815
- depth++;
2816
- }
2817
- } else {
2818
- dig.push(part);
2819
- }
2820
- }
2821
-
2822
- return {
2823
- type: 'PathExpression',
2824
- data: data,
2825
- depth: depth,
2826
- parts: dig,
2827
- original: original,
2828
- loc: loc
2829
- };
2830
- }
2831
-
2832
- function prepareMustache(path, params, hash, open, strip, locInfo) {
2833
- // Must use charAt to support IE pre-10
2834
- var escapeFlag = open.charAt(3) || open.charAt(2),
2835
- escaped = escapeFlag !== '{' && escapeFlag !== '&';
2836
-
2837
- var decorator = /\*/.test(open);
2838
- return {
2839
- type: decorator ? 'Decorator' : 'MustacheStatement',
2840
- path: path,
2841
- params: params,
2842
- hash: hash,
2843
- escaped: escaped,
2844
- strip: strip,
2845
- loc: this.locInfo(locInfo)
2846
- };
2847
- }
2848
-
2849
- function prepareRawBlock(openRawBlock, contents, close, locInfo) {
2850
- validateClose(openRawBlock, close);
2851
-
2852
- locInfo = this.locInfo(locInfo);
2853
- var program = {
2854
- type: 'Program',
2855
- body: contents,
2856
- strip: {},
2857
- loc: locInfo
2858
- };
2859
-
2860
- return {
2861
- type: 'BlockStatement',
2862
- path: openRawBlock.path,
2863
- params: openRawBlock.params,
2864
- hash: openRawBlock.hash,
2865
- program: program,
2866
- openStrip: {},
2867
- inverseStrip: {},
2868
- closeStrip: {},
2869
- loc: locInfo
2870
- };
2871
- }
2872
-
2873
- function prepareBlock(openBlock, program, inverseAndProgram, close, inverted, locInfo) {
2874
- if (close && close.path) {
2875
- validateClose(openBlock, close);
2876
- }
2877
-
2878
- var decorator = /\*/.test(openBlock.open);
2879
-
2880
- program.blockParams = openBlock.blockParams;
2881
-
2882
- var inverse = undefined,
2883
- inverseStrip = undefined;
2884
-
2885
- if (inverseAndProgram) {
2886
- if (decorator) {
2887
- throw new _exception2['default']('Unexpected inverse block on decorator', inverseAndProgram);
2888
- }
2889
-
2890
- if (inverseAndProgram.chain) {
2891
- inverseAndProgram.program.body[0].closeStrip = close.strip;
2892
- }
2893
-
2894
- inverseStrip = inverseAndProgram.strip;
2895
- inverse = inverseAndProgram.program;
2896
- }
2897
-
2898
- if (inverted) {
2899
- inverted = inverse;
2900
- inverse = program;
2901
- program = inverted;
2902
- }
2903
-
2904
- return {
2905
- type: decorator ? 'DecoratorBlock' : 'BlockStatement',
2906
- path: openBlock.path,
2907
- params: openBlock.params,
2908
- hash: openBlock.hash,
2909
- program: program,
2910
- inverse: inverse,
2911
- openStrip: openBlock.strip,
2912
- inverseStrip: inverseStrip,
2913
- closeStrip: close && close.strip,
2914
- loc: this.locInfo(locInfo)
2915
- };
2916
- }
2917
-
2918
- function prepareProgram(statements, loc) {
2919
- if (!loc && statements.length) {
2920
- var firstLoc = statements[0].loc,
2921
- lastLoc = statements[statements.length - 1].loc;
2922
-
2923
- /* istanbul ignore else */
2924
- if (firstLoc && lastLoc) {
2925
- loc = {
2926
- source: firstLoc.source,
2927
- start: {
2928
- line: firstLoc.start.line,
2929
- column: firstLoc.start.column
2930
- },
2931
- end: {
2932
- line: lastLoc.end.line,
2933
- column: lastLoc.end.column
2934
- }
2935
- };
2936
- }
2937
- }
2938
-
2939
- return {
2940
- type: 'Program',
2941
- body: statements,
2942
- strip: {},
2943
- loc: loc
2944
- };
2945
- }
2946
-
2947
- function preparePartialBlock(open, program, close, locInfo) {
2948
- validateClose(open, close);
2949
-
2950
- return {
2951
- type: 'PartialBlockStatement',
2952
- name: open.path,
2953
- params: open.params,
2954
- hash: open.hash,
2955
- program: program,
2956
- openStrip: open.strip,
2957
- closeStrip: close && close.strip,
2958
- loc: this.locInfo(locInfo)
2959
- };
2960
- }
2961
-
2962
- /***/ }),
2963
- /* 41 */
2964
- /***/ (function(module, exports, __webpack_require__) {
2965
-
2966
- /* eslint-disable new-cap */
2967
-
2968
- 'use strict';
2969
-
2970
- var _interopRequireDefault = __webpack_require__(1)['default'];
2971
-
2972
- exports.__esModule = true;
2973
- exports.Compiler = Compiler;
2974
- exports.precompile = precompile;
2975
- exports.compile = compile;
2976
-
2977
- var _exception = __webpack_require__(6);
2978
-
2979
- var _exception2 = _interopRequireDefault(_exception);
2980
-
2981
- var _utils = __webpack_require__(5);
2982
-
2983
- var _ast = __webpack_require__(35);
2984
-
2985
- var _ast2 = _interopRequireDefault(_ast);
2986
-
2987
- var slice = [].slice;
2988
-
2989
- function Compiler() {}
2990
-
2991
- // the foundHelper register will disambiguate helper lookup from finding a
2992
- // function in a context. This is necessary for mustache compatibility, which
2993
- // requires that context functions in blocks are evaluated by blockHelperMissing,
2994
- // and then proceed as if the resulting value was provided to blockHelperMissing.
2995
-
2996
- Compiler.prototype = {
2997
- compiler: Compiler,
2998
-
2999
- equals: function equals(other) {
3000
- var len = this.opcodes.length;
3001
- if (other.opcodes.length !== len) {
3002
- return false;
3003
- }
3004
-
3005
- for (var i = 0; i < len; i++) {
3006
- var opcode = this.opcodes[i],
3007
- otherOpcode = other.opcodes[i];
3008
- if (opcode.opcode !== otherOpcode.opcode || !argEquals(opcode.args, otherOpcode.args)) {
3009
- return false;
3010
- }
3011
- }
3012
-
3013
- // We know that length is the same between the two arrays because they are directly tied
3014
- // to the opcode behavior above.
3015
- len = this.children.length;
3016
- for (var i = 0; i < len; i++) {
3017
- if (!this.children[i].equals(other.children[i])) {
3018
- return false;
3019
- }
3020
- }
3021
-
3022
- return true;
3023
- },
3024
-
3025
- guid: 0,
3026
-
3027
- compile: function compile(program, options) {
3028
- this.sourceNode = [];
3029
- this.opcodes = [];
3030
- this.children = [];
3031
- this.options = options;
3032
- this.stringParams = options.stringParams;
3033
- this.trackIds = options.trackIds;
3034
-
3035
- options.blockParams = options.blockParams || [];
3036
-
3037
- // These changes will propagate to the other compiler components
3038
- var knownHelpers = options.knownHelpers;
3039
- options.knownHelpers = {
3040
- 'helperMissing': true,
3041
- 'blockHelperMissing': true,
3042
- 'each': true,
3043
- 'if': true,
3044
- 'unless': true,
3045
- 'with': true,
3046
- 'log': true,
3047
- 'lookup': true
3048
- };
3049
- if (knownHelpers) {
3050
- // the next line should use "Object.keys", but the code has been like this a long time and changing it, might
3051
- // cause backwards-compatibility issues... It's an old library...
3052
- // eslint-disable-next-line guard-for-in
3053
- for (var _name in knownHelpers) {
3054
- this.options.knownHelpers[_name] = knownHelpers[_name];
3055
- }
3056
- }
3057
-
3058
- return this.accept(program);
3059
- },
3060
-
3061
- compileProgram: function compileProgram(program) {
3062
- var childCompiler = new this.compiler(),
3063
- // eslint-disable-line new-cap
3064
- result = childCompiler.compile(program, this.options),
3065
- guid = this.guid++;
3066
-
3067
- this.usePartial = this.usePartial || result.usePartial;
3068
-
3069
- this.children[guid] = result;
3070
- this.useDepths = this.useDepths || result.useDepths;
3071
-
3072
- return guid;
3073
- },
3074
-
3075
- accept: function accept(node) {
3076
- /* istanbul ignore next: Sanity code */
3077
- if (!this[node.type]) {
3078
- throw new _exception2['default']('Unknown type: ' + node.type, node);
3079
- }
3080
-
3081
- this.sourceNode.unshift(node);
3082
- var ret = this[node.type](node);
3083
- this.sourceNode.shift();
3084
- return ret;
3085
- },
3086
-
3087
- Program: function Program(program) {
3088
- this.options.blockParams.unshift(program.blockParams);
3089
-
3090
- var body = program.body,
3091
- bodyLength = body.length;
3092
- for (var i = 0; i < bodyLength; i++) {
3093
- this.accept(body[i]);
3094
- }
3095
-
3096
- this.options.blockParams.shift();
3097
-
3098
- this.isSimple = bodyLength === 1;
3099
- this.blockParams = program.blockParams ? program.blockParams.length : 0;
3100
-
3101
- return this;
3102
- },
3103
-
3104
- BlockStatement: function BlockStatement(block) {
3105
- transformLiteralToPath(block);
3106
-
3107
- var program = block.program,
3108
- inverse = block.inverse;
3109
-
3110
- program = program && this.compileProgram(program);
3111
- inverse = inverse && this.compileProgram(inverse);
3112
-
3113
- var type = this.classifySexpr(block);
3114
-
3115
- if (type === 'helper') {
3116
- this.helperSexpr(block, program, inverse);
3117
- } else if (type === 'simple') {
3118
- this.simpleSexpr(block);
3119
-
3120
- // now that the simple mustache is resolved, we need to
3121
- // evaluate it by executing `blockHelperMissing`
3122
- this.opcode('pushProgram', program);
3123
- this.opcode('pushProgram', inverse);
3124
- this.opcode('emptyHash');
3125
- this.opcode('blockValue', block.path.original);
3126
- } else {
3127
- this.ambiguousSexpr(block, program, inverse);
3128
-
3129
- // now that the simple mustache is resolved, we need to
3130
- // evaluate it by executing `blockHelperMissing`
3131
- this.opcode('pushProgram', program);
3132
- this.opcode('pushProgram', inverse);
3133
- this.opcode('emptyHash');
3134
- this.opcode('ambiguousBlockValue');
3135
- }
3136
-
3137
- this.opcode('append');
3138
- },
3139
-
3140
- DecoratorBlock: function DecoratorBlock(decorator) {
3141
- var program = decorator.program && this.compileProgram(decorator.program);
3142
- var params = this.setupFullMustacheParams(decorator, program, undefined),
3143
- path = decorator.path;
3144
-
3145
- this.useDecorators = true;
3146
- this.opcode('registerDecorator', params.length, path.original);
3147
- },
3148
-
3149
- PartialStatement: function PartialStatement(partial) {
3150
- this.usePartial = true;
3151
-
3152
- var program = partial.program;
3153
- if (program) {
3154
- program = this.compileProgram(partial.program);
3155
- }
3156
-
3157
- var params = partial.params;
3158
- if (params.length > 1) {
3159
- throw new _exception2['default']('Unsupported number of partial arguments: ' + params.length, partial);
3160
- } else if (!params.length) {
3161
- if (this.options.explicitPartialContext) {
3162
- this.opcode('pushLiteral', 'undefined');
3163
- } else {
3164
- params.push({ type: 'PathExpression', parts: [], depth: 0 });
3165
- }
3166
- }
3167
-
3168
- var partialName = partial.name.original,
3169
- isDynamic = partial.name.type === 'SubExpression';
3170
- if (isDynamic) {
3171
- this.accept(partial.name);
3172
- }
3173
-
3174
- this.setupFullMustacheParams(partial, program, undefined, true);
3175
-
3176
- var indent = partial.indent || '';
3177
- if (this.options.preventIndent && indent) {
3178
- this.opcode('appendContent', indent);
3179
- indent = '';
3180
- }
3181
-
3182
- this.opcode('invokePartial', isDynamic, partialName, indent);
3183
- this.opcode('append');
3184
- },
3185
- PartialBlockStatement: function PartialBlockStatement(partialBlock) {
3186
- this.PartialStatement(partialBlock);
3187
- },
3188
-
3189
- MustacheStatement: function MustacheStatement(mustache) {
3190
- this.SubExpression(mustache);
3191
-
3192
- if (mustache.escaped && !this.options.noEscape) {
3193
- this.opcode('appendEscaped');
3194
- } else {
3195
- this.opcode('append');
3196
- }
3197
- },
3198
- Decorator: function Decorator(decorator) {
3199
- this.DecoratorBlock(decorator);
3200
- },
3201
-
3202
- ContentStatement: function ContentStatement(content) {
3203
- if (content.value) {
3204
- this.opcode('appendContent', content.value);
3205
- }
3206
- },
3207
-
3208
- CommentStatement: function CommentStatement() {},
3209
-
3210
- SubExpression: function SubExpression(sexpr) {
3211
- transformLiteralToPath(sexpr);
3212
- var type = this.classifySexpr(sexpr);
3213
-
3214
- if (type === 'simple') {
3215
- this.simpleSexpr(sexpr);
3216
- } else if (type === 'helper') {
3217
- this.helperSexpr(sexpr);
3218
- } else {
3219
- this.ambiguousSexpr(sexpr);
3220
- }
3221
- },
3222
- ambiguousSexpr: function ambiguousSexpr(sexpr, program, inverse) {
3223
- var path = sexpr.path,
3224
- name = path.parts[0],
3225
- isBlock = program != null || inverse != null;
3226
-
3227
- this.opcode('getContext', path.depth);
3228
-
3229
- this.opcode('pushProgram', program);
3230
- this.opcode('pushProgram', inverse);
3231
-
3232
- path.strict = true;
3233
- this.accept(path);
3234
-
3235
- this.opcode('invokeAmbiguous', name, isBlock);
3236
- },
3237
-
3238
- simpleSexpr: function simpleSexpr(sexpr) {
3239
- var path = sexpr.path;
3240
- path.strict = true;
3241
- this.accept(path);
3242
- this.opcode('resolvePossibleLambda');
3243
- },
3244
-
3245
- helperSexpr: function helperSexpr(sexpr, program, inverse) {
3246
- var params = this.setupFullMustacheParams(sexpr, program, inverse),
3247
- path = sexpr.path,
3248
- name = path.parts[0];
3249
-
3250
- if (this.options.knownHelpers[name]) {
3251
- this.opcode('invokeKnownHelper', params.length, name);
3252
- } else if (this.options.knownHelpersOnly) {
3253
- throw new _exception2['default']('You specified knownHelpersOnly, but used the unknown helper ' + name, sexpr);
3254
- } else {
3255
- path.strict = true;
3256
- path.falsy = true;
3257
-
3258
- this.accept(path);
3259
- this.opcode('invokeHelper', params.length, path.original, _ast2['default'].helpers.simpleId(path));
3260
- }
3261
- },
3262
-
3263
- PathExpression: function PathExpression(path) {
3264
- this.addDepth(path.depth);
3265
- this.opcode('getContext', path.depth);
3266
-
3267
- var name = path.parts[0],
3268
- scoped = _ast2['default'].helpers.scopedId(path),
3269
- blockParamId = !path.depth && !scoped && this.blockParamIndex(name);
3270
-
3271
- if (blockParamId) {
3272
- this.opcode('lookupBlockParam', blockParamId, path.parts);
3273
- } else if (!name) {
3274
- // Context reference, i.e. `{{foo .}}` or `{{foo ..}}`
3275
- this.opcode('pushContext');
3276
- } else if (path.data) {
3277
- this.options.data = true;
3278
- this.opcode('lookupData', path.depth, path.parts, path.strict);
3279
- } else {
3280
- this.opcode('lookupOnContext', path.parts, path.falsy, path.strict, scoped);
3281
- }
3282
- },
3283
-
3284
- StringLiteral: function StringLiteral(string) {
3285
- this.opcode('pushString', string.value);
3286
- },
3287
-
3288
- NumberLiteral: function NumberLiteral(number) {
3289
- this.opcode('pushLiteral', number.value);
3290
- },
3291
-
3292
- BooleanLiteral: function BooleanLiteral(bool) {
3293
- this.opcode('pushLiteral', bool.value);
3294
- },
3295
-
3296
- UndefinedLiteral: function UndefinedLiteral() {
3297
- this.opcode('pushLiteral', 'undefined');
3298
- },
3299
-
3300
- NullLiteral: function NullLiteral() {
3301
- this.opcode('pushLiteral', 'null');
3302
- },
3303
-
3304
- Hash: function Hash(hash) {
3305
- var pairs = hash.pairs,
3306
- i = 0,
3307
- l = pairs.length;
3308
-
3309
- this.opcode('pushHash');
3310
-
3311
- for (; i < l; i++) {
3312
- this.pushParam(pairs[i].value);
3313
- }
3314
- while (i--) {
3315
- this.opcode('assignToHash', pairs[i].key);
3316
- }
3317
- this.opcode('popHash');
3318
- },
3319
-
3320
- // HELPERS
3321
- opcode: function opcode(name) {
3322
- this.opcodes.push({ opcode: name, args: slice.call(arguments, 1), loc: this.sourceNode[0].loc });
3323
- },
3324
-
3325
- addDepth: function addDepth(depth) {
3326
- if (!depth) {
3327
- return;
3328
- }
3329
-
3330
- this.useDepths = true;
3331
- },
3332
-
3333
- classifySexpr: function classifySexpr(sexpr) {
3334
- var isSimple = _ast2['default'].helpers.simpleId(sexpr.path);
3335
-
3336
- var isBlockParam = isSimple && !!this.blockParamIndex(sexpr.path.parts[0]);
3337
-
3338
- // a mustache is an eligible helper if:
3339
- // * its id is simple (a single part, not `this` or `..`)
3340
- var isHelper = !isBlockParam && _ast2['default'].helpers.helperExpression(sexpr);
3341
-
3342
- // if a mustache is an eligible helper but not a definite
3343
- // helper, it is ambiguous, and will be resolved in a later
3344
- // pass or at runtime.
3345
- var isEligible = !isBlockParam && (isHelper || isSimple);
3346
-
3347
- // if ambiguous, we can possibly resolve the ambiguity now
3348
- // An eligible helper is one that does not have a complex path, i.e. `this.foo`, `../foo` etc.
3349
- if (isEligible && !isHelper) {
3350
- var _name2 = sexpr.path.parts[0],
3351
- options = this.options;
3352
-
3353
- if (options.knownHelpers[_name2]) {
3354
- isHelper = true;
3355
- } else if (options.knownHelpersOnly) {
3356
- isEligible = false;
3357
- }
3358
- }
3359
-
3360
- if (isHelper) {
3361
- return 'helper';
3362
- } else if (isEligible) {
3363
- return 'ambiguous';
3364
- } else {
3365
- return 'simple';
3366
- }
3367
- },
3368
-
3369
- pushParams: function pushParams(params) {
3370
- for (var i = 0, l = params.length; i < l; i++) {
3371
- this.pushParam(params[i]);
3372
- }
3373
- },
3374
-
3375
- pushParam: function pushParam(val) {
3376
- var value = val.value != null ? val.value : val.original || '';
3377
-
3378
- if (this.stringParams) {
3379
- if (value.replace) {
3380
- value = value.replace(/^(\.?\.\/)*/g, '').replace(/\//g, '.');
3381
- }
3382
-
3383
- if (val.depth) {
3384
- this.addDepth(val.depth);
3385
- }
3386
- this.opcode('getContext', val.depth || 0);
3387
- this.opcode('pushStringParam', value, val.type);
3388
-
3389
- if (val.type === 'SubExpression') {
3390
- // SubExpressions get evaluated and passed in
3391
- // in string params mode.
3392
- this.accept(val);
3393
- }
3394
- } else {
3395
- if (this.trackIds) {
3396
- var blockParamIndex = undefined;
3397
- if (val.parts && !_ast2['default'].helpers.scopedId(val) && !val.depth) {
3398
- blockParamIndex = this.blockParamIndex(val.parts[0]);
3399
- }
3400
- if (blockParamIndex) {
3401
- var blockParamChild = val.parts.slice(1).join('.');
3402
- this.opcode('pushId', 'BlockParam', blockParamIndex, blockParamChild);
3403
- } else {
3404
- value = val.original || value;
3405
- if (value.replace) {
3406
- value = value.replace(/^this(?:\.|$)/, '').replace(/^\.\//, '').replace(/^\.$/, '');
3407
- }
3408
-
3409
- this.opcode('pushId', val.type, value);
3410
- }
3411
- }
3412
- this.accept(val);
3413
- }
3414
- },
3415
-
3416
- setupFullMustacheParams: function setupFullMustacheParams(sexpr, program, inverse, omitEmpty) {
3417
- var params = sexpr.params;
3418
- this.pushParams(params);
3419
-
3420
- this.opcode('pushProgram', program);
3421
- this.opcode('pushProgram', inverse);
3422
-
3423
- if (sexpr.hash) {
3424
- this.accept(sexpr.hash);
3425
- } else {
3426
- this.opcode('emptyHash', omitEmpty);
3427
- }
3428
-
3429
- return params;
3430
- },
3431
-
3432
- blockParamIndex: function blockParamIndex(name) {
3433
- for (var depth = 0, len = this.options.blockParams.length; depth < len; depth++) {
3434
- var blockParams = this.options.blockParams[depth],
3435
- param = blockParams && _utils.indexOf(blockParams, name);
3436
- if (blockParams && param >= 0) {
3437
- return [depth, param];
3438
- }
3439
- }
3440
- }
3441
- };
3442
-
3443
- function precompile(input, options, env) {
3444
- if (input == null || typeof input !== 'string' && input.type !== 'Program') {
3445
- throw new _exception2['default']('You must pass a string or Handlebars AST to Handlebars.precompile. You passed ' + input);
3446
- }
3447
-
3448
- options = options || {};
3449
- if (!('data' in options)) {
3450
- options.data = true;
3451
- }
3452
- if (options.compat) {
3453
- options.useDepths = true;
3454
- }
3455
-
3456
- var ast = env.parse(input, options),
3457
- environment = new env.Compiler().compile(ast, options);
3458
- return new env.JavaScriptCompiler().compile(environment, options);
3459
- }
3460
-
3461
- function compile(input, options, env) {
3462
- if (options === undefined) options = {};
3463
-
3464
- if (input == null || typeof input !== 'string' && input.type !== 'Program') {
3465
- throw new _exception2['default']('You must pass a string or Handlebars AST to Handlebars.compile. You passed ' + input);
3466
- }
3467
-
3468
- options = _utils.extend({}, options);
3469
- if (!('data' in options)) {
3470
- options.data = true;
3471
- }
3472
- if (options.compat) {
3473
- options.useDepths = true;
3474
- }
3475
-
3476
- var compiled = undefined;
3477
-
3478
- function compileInput() {
3479
- var ast = env.parse(input, options),
3480
- environment = new env.Compiler().compile(ast, options),
3481
- templateSpec = new env.JavaScriptCompiler().compile(environment, options, undefined, true);
3482
- return env.template(templateSpec);
3483
- }
3484
-
3485
- // Template is only compiled on first use and cached after that point.
3486
- function ret(context, execOptions) {
3487
- if (!compiled) {
3488
- compiled = compileInput();
3489
- }
3490
- return compiled.call(this, context, execOptions);
3491
- }
3492
- ret._setup = function (setupOptions) {
3493
- if (!compiled) {
3494
- compiled = compileInput();
3495
- }
3496
- return compiled._setup(setupOptions);
3497
- };
3498
- ret._child = function (i, data, blockParams, depths) {
3499
- if (!compiled) {
3500
- compiled = compileInput();
3501
- }
3502
- return compiled._child(i, data, blockParams, depths);
3503
- };
3504
- return ret;
3505
- }
3506
-
3507
- function argEquals(a, b) {
3508
- if (a === b) {
3509
- return true;
3510
- }
3511
-
3512
- if (_utils.isArray(a) && _utils.isArray(b) && a.length === b.length) {
3513
- for (var i = 0; i < a.length; i++) {
3514
- if (!argEquals(a[i], b[i])) {
3515
- return false;
3516
- }
3517
- }
3518
- return true;
3519
- }
3520
- }
3521
-
3522
- function transformLiteralToPath(sexpr) {
3523
- if (!sexpr.path.parts) {
3524
- var literal = sexpr.path;
3525
- // Casting to string here to make false and 0 literal values play nicely with the rest
3526
- // of the system.
3527
- sexpr.path = {
3528
- type: 'PathExpression',
3529
- data: false,
3530
- depth: 0,
3531
- parts: [literal.original + ''],
3532
- original: literal.original + '',
3533
- loc: literal.loc
3534
- };
3535
- }
3536
- }
3537
-
3538
- /***/ }),
3539
- /* 42 */
3540
- /***/ (function(module, exports, __webpack_require__) {
3541
-
3542
- 'use strict';
3543
-
3544
- var _interopRequireDefault = __webpack_require__(1)['default'];
3545
-
3546
- exports.__esModule = true;
3547
-
3548
- var _base = __webpack_require__(4);
3549
-
3550
- var _exception = __webpack_require__(6);
3551
-
3552
- var _exception2 = _interopRequireDefault(_exception);
3553
-
3554
- var _utils = __webpack_require__(5);
3555
-
3556
- var _codeGen = __webpack_require__(43);
3557
-
3558
- var _codeGen2 = _interopRequireDefault(_codeGen);
3559
-
3560
- function Literal(value) {
3561
- this.value = value;
3562
- }
3563
-
3564
- function JavaScriptCompiler() {}
3565
-
3566
- JavaScriptCompiler.prototype = {
3567
- // PUBLIC API: You can override these methods in a subclass to provide
3568
- // alternative compiled forms for name lookup and buffering semantics
3569
- nameLookup: function nameLookup(parent, name /* , type*/) {
3570
- if (name === 'constructor') {
3571
- return ['(', parent, '.propertyIsEnumerable(\'constructor\') ? ', parent, '.constructor : undefined', ')'];
3572
- }
3573
- if (JavaScriptCompiler.isValidJavaScriptVariableName(name)) {
3574
- return [parent, '.', name];
3575
- } else {
3576
- return [parent, '[', JSON.stringify(name), ']'];
3577
- }
3578
- },
3579
- depthedLookup: function depthedLookup(name) {
3580
- return [this.aliasable('container.lookup'), '(depths, "', name, '")'];
3581
- },
3582
-
3583
- compilerInfo: function compilerInfo() {
3584
- var revision = _base.COMPILER_REVISION,
3585
- versions = _base.REVISION_CHANGES[revision];
3586
- return [revision, versions];
3587
- },
3588
-
3589
- appendToBuffer: function appendToBuffer(source, location, explicit) {
3590
- // Force a source as this simplifies the merge logic.
3591
- if (!_utils.isArray(source)) {
3592
- source = [source];
3593
- }
3594
- source = this.source.wrap(source, location);
3595
-
3596
- if (this.environment.isSimple) {
3597
- return ['return ', source, ';'];
3598
- } else if (explicit) {
3599
- // This is a case where the buffer operation occurs as a child of another
3600
- // construct, generally braces. We have to explicitly output these buffer
3601
- // operations to ensure that the emitted code goes in the correct location.
3602
- return ['buffer += ', source, ';'];
3603
- } else {
3604
- source.appendToBuffer = true;
3605
- return source;
3606
- }
3607
- },
3608
-
3609
- initializeBuffer: function initializeBuffer() {
3610
- return this.quotedString('');
3611
- },
3612
- // END PUBLIC API
3613
-
3614
- compile: function compile(environment, options, context, asObject) {
3615
- this.environment = environment;
3616
- this.options = options;
3617
- this.stringParams = this.options.stringParams;
3618
- this.trackIds = this.options.trackIds;
3619
- this.precompile = !asObject;
3620
-
3621
- this.name = this.environment.name;
3622
- this.isChild = !!context;
3623
- this.context = context || {
3624
- decorators: [],
3625
- programs: [],
3626
- environments: []
3627
- };
3628
-
3629
- this.preamble();
3630
-
3631
- this.stackSlot = 0;
3632
- this.stackVars = [];
3633
- this.aliases = {};
3634
- this.registers = { list: [] };
3635
- this.hashes = [];
3636
- this.compileStack = [];
3637
- this.inlineStack = [];
3638
- this.blockParams = [];
3639
-
3640
- this.compileChildren(environment, options);
3641
-
3642
- this.useDepths = this.useDepths || environment.useDepths || environment.useDecorators || this.options.compat;
3643
- this.useBlockParams = this.useBlockParams || environment.useBlockParams;
3644
-
3645
- var opcodes = environment.opcodes,
3646
- opcode = undefined,
3647
- firstLoc = undefined,
3648
- i = undefined,
3649
- l = undefined;
3650
-
3651
- for (i = 0, l = opcodes.length; i < l; i++) {
3652
- opcode = opcodes[i];
3653
-
3654
- this.source.currentLocation = opcode.loc;
3655
- firstLoc = firstLoc || opcode.loc;
3656
- this[opcode.opcode].apply(this, opcode.args);
3657
- }
3658
-
3659
- // Flush any trailing content that might be pending.
3660
- this.source.currentLocation = firstLoc;
3661
- this.pushSource('');
3662
-
3663
- /* istanbul ignore next */
3664
- if (this.stackSlot || this.inlineStack.length || this.compileStack.length) {
3665
- throw new _exception2['default']('Compile completed with content left on stack');
3666
- }
3667
-
3668
- if (!this.decorators.isEmpty()) {
3669
- this.useDecorators = true;
3670
-
3671
- this.decorators.prepend('var decorators = container.decorators;\n');
3672
- this.decorators.push('return fn;');
3673
-
3674
- if (asObject) {
3675
- this.decorators = Function.apply(this, ['fn', 'props', 'container', 'depth0', 'data', 'blockParams', 'depths', this.decorators.merge()]);
3676
- } else {
3677
- this.decorators.prepend('function(fn, props, container, depth0, data, blockParams, depths) {\n');
3678
- this.decorators.push('}\n');
3679
- this.decorators = this.decorators.merge();
3680
- }
3681
- } else {
3682
- this.decorators = undefined;
3683
- }
3684
-
3685
- var fn = this.createFunctionContext(asObject);
3686
- if (!this.isChild) {
3687
- var ret = {
3688
- compiler: this.compilerInfo(),
3689
- main: fn
3690
- };
3691
-
3692
- if (this.decorators) {
3693
- ret.main_d = this.decorators; // eslint-disable-line camelcase
3694
- ret.useDecorators = true;
3695
- }
3696
-
3697
- var _context = this.context;
3698
- var programs = _context.programs;
3699
- var decorators = _context.decorators;
3700
-
3701
- for (i = 0, l = programs.length; i < l; i++) {
3702
- if (programs[i]) {
3703
- ret[i] = programs[i];
3704
- if (decorators[i]) {
3705
- ret[i + '_d'] = decorators[i];
3706
- ret.useDecorators = true;
3707
- }
3708
- }
3709
- }
3710
-
3711
- if (this.environment.usePartial) {
3712
- ret.usePartial = true;
3713
- }
3714
- if (this.options.data) {
3715
- ret.useData = true;
3716
- }
3717
- if (this.useDepths) {
3718
- ret.useDepths = true;
3719
- }
3720
- if (this.useBlockParams) {
3721
- ret.useBlockParams = true;
3722
- }
3723
- if (this.options.compat) {
3724
- ret.compat = true;
3725
- }
3726
-
3727
- if (!asObject) {
3728
- ret.compiler = JSON.stringify(ret.compiler);
3729
-
3730
- this.source.currentLocation = { start: { line: 1, column: 0 } };
3731
- ret = this.objectLiteral(ret);
3732
-
3733
- if (options.srcName) {
3734
- ret = ret.toStringWithSourceMap({ file: options.destName });
3735
- ret.map = ret.map && ret.map.toString();
3736
- } else {
3737
- ret = ret.toString();
3738
- }
3739
- } else {
3740
- ret.compilerOptions = this.options;
3741
- }
3742
-
3743
- return ret;
3744
- } else {
3745
- return fn;
3746
- }
3747
- },
3748
-
3749
- preamble: function preamble() {
3750
- // track the last context pushed into place to allow skipping the
3751
- // getContext opcode when it would be a noop
3752
- this.lastContext = 0;
3753
- this.source = new _codeGen2['default'](this.options.srcName);
3754
- this.decorators = new _codeGen2['default'](this.options.srcName);
3755
- },
3756
-
3757
- createFunctionContext: function createFunctionContext(asObject) {
3758
- var varDeclarations = '';
3759
-
3760
- var locals = this.stackVars.concat(this.registers.list);
3761
- if (locals.length > 0) {
3762
- varDeclarations += ', ' + locals.join(', ');
3763
- }
3764
-
3765
- // Generate minimizer alias mappings
3766
- //
3767
- // When using true SourceNodes, this will update all references to the given alias
3768
- // as the source nodes are reused in situ. For the non-source node compilation mode,
3769
- // aliases will not be used, but this case is already being run on the client and
3770
- // we aren't concern about minimizing the template size.
3771
- var aliasCount = 0;
3772
- for (var alias in this.aliases) {
3773
- // eslint-disable-line guard-for-in
3774
- var node = this.aliases[alias];
3775
-
3776
- if (this.aliases.hasOwnProperty(alias) && node.children && node.referenceCount > 1) {
3777
- varDeclarations += ', alias' + ++aliasCount + '=' + alias;
3778
- node.children[0] = 'alias' + aliasCount;
3779
- }
3780
- }
3781
-
3782
- var params = ['container', 'depth0', 'helpers', 'partials', 'data'];
3783
-
3784
- if (this.useBlockParams || this.useDepths) {
3785
- params.push('blockParams');
3786
- }
3787
- if (this.useDepths) {
3788
- params.push('depths');
3789
- }
3790
-
3791
- // Perform a second pass over the output to merge content when possible
3792
- var source = this.mergeSource(varDeclarations);
3793
-
3794
- if (asObject) {
3795
- params.push(source);
3796
-
3797
- return Function.apply(this, params);
3798
- } else {
3799
- return this.source.wrap(['function(', params.join(','), ') {\n ', source, '}']);
3800
- }
3801
- },
3802
- mergeSource: function mergeSource(varDeclarations) {
3803
- var isSimple = this.environment.isSimple,
3804
- appendOnly = !this.forceBuffer,
3805
- appendFirst = undefined,
3806
- sourceSeen = undefined,
3807
- bufferStart = undefined,
3808
- bufferEnd = undefined;
3809
- this.source.each(function (line) {
3810
- if (line.appendToBuffer) {
3811
- if (bufferStart) {
3812
- line.prepend(' + ');
3813
- } else {
3814
- bufferStart = line;
3815
- }
3816
- bufferEnd = line;
3817
- } else {
3818
- if (bufferStart) {
3819
- if (!sourceSeen) {
3820
- appendFirst = true;
3821
- } else {
3822
- bufferStart.prepend('buffer += ');
3823
- }
3824
- bufferEnd.add(';');
3825
- bufferStart = bufferEnd = undefined;
3826
- }
3827
-
3828
- sourceSeen = true;
3829
- if (!isSimple) {
3830
- appendOnly = false;
3831
- }
3832
- }
3833
- });
3834
-
3835
- if (appendOnly) {
3836
- if (bufferStart) {
3837
- bufferStart.prepend('return ');
3838
- bufferEnd.add(';');
3839
- } else if (!sourceSeen) {
3840
- this.source.push('return "";');
3841
- }
3842
- } else {
3843
- varDeclarations += ', buffer = ' + (appendFirst ? '' : this.initializeBuffer());
3844
-
3845
- if (bufferStart) {
3846
- bufferStart.prepend('return buffer + ');
3847
- bufferEnd.add(';');
3848
- } else {
3849
- this.source.push('return buffer;');
3850
- }
3851
- }
3852
-
3853
- if (varDeclarations) {
3854
- this.source.prepend('var ' + varDeclarations.substring(2) + (appendFirst ? '' : ';\n'));
3855
- }
3856
-
3857
- return this.source.merge();
3858
- },
3859
-
3860
- // [blockValue]
3861
- //
3862
- // On stack, before: hash, inverse, program, value
3863
- // On stack, after: return value of blockHelperMissing
3864
- //
3865
- // The purpose of this opcode is to take a block of the form
3866
- // `{{#this.foo}}...{{/this.foo}}`, resolve the value of `foo`, and
3867
- // replace it on the stack with the result of properly
3868
- // invoking blockHelperMissing.
3869
- blockValue: function blockValue(name) {
3870
- var blockHelperMissing = this.aliasable('helpers.blockHelperMissing'),
3871
- params = [this.contextName(0)];
3872
- this.setupHelperArgs(name, 0, params);
3873
-
3874
- var blockName = this.popStack();
3875
- params.splice(1, 0, blockName);
3876
-
3877
- this.push(this.source.functionCall(blockHelperMissing, 'call', params));
3878
- },
3879
-
3880
- // [ambiguousBlockValue]
3881
- //
3882
- // On stack, before: hash, inverse, program, value
3883
- // Compiler value, before: lastHelper=value of last found helper, if any
3884
- // On stack, after, if no lastHelper: same as [blockValue]
3885
- // On stack, after, if lastHelper: value
3886
- ambiguousBlockValue: function ambiguousBlockValue() {
3887
- // We're being a bit cheeky and reusing the options value from the prior exec
3888
- var blockHelperMissing = this.aliasable('helpers.blockHelperMissing'),
3889
- params = [this.contextName(0)];
3890
- this.setupHelperArgs('', 0, params, true);
3891
-
3892
- this.flushInline();
3893
-
3894
- var current = this.topStack();
3895
- params.splice(1, 0, current);
3896
-
3897
- this.pushSource(['if (!', this.lastHelper, ') { ', current, ' = ', this.source.functionCall(blockHelperMissing, 'call', params), '}']);
3898
- },
3899
-
3900
- // [appendContent]
3901
- //
3902
- // On stack, before: ...
3903
- // On stack, after: ...
3904
- //
3905
- // Appends the string value of `content` to the current buffer
3906
- appendContent: function appendContent(content) {
3907
- if (this.pendingContent) {
3908
- content = this.pendingContent + content;
3909
- } else {
3910
- this.pendingLocation = this.source.currentLocation;
3911
- }
3912
-
3913
- this.pendingContent = content;
3914
- },
3915
-
3916
- // [append]
3917
- //
3918
- // On stack, before: value, ...
3919
- // On stack, after: ...
3920
- //
3921
- // Coerces `value` to a String and appends it to the current buffer.
3922
- //
3923
- // If `value` is truthy, or 0, it is coerced into a string and appended
3924
- // Otherwise, the empty string is appended
3925
- append: function append() {
3926
- if (this.isInline()) {
3927
- this.replaceStack(function (current) {
3928
- return [' != null ? ', current, ' : ""'];
3929
- });
3930
-
3931
- this.pushSource(this.appendToBuffer(this.popStack()));
3932
- } else {
3933
- var local = this.popStack();
3934
- this.pushSource(['if (', local, ' != null) { ', this.appendToBuffer(local, undefined, true), ' }']);
3935
- if (this.environment.isSimple) {
3936
- this.pushSource(['else { ', this.appendToBuffer("''", undefined, true), ' }']);
3937
- }
3938
- }
3939
- },
3940
-
3941
- // [appendEscaped]
3942
- //
3943
- // On stack, before: value, ...
3944
- // On stack, after: ...
3945
- //
3946
- // Escape `value` and append it to the buffer
3947
- appendEscaped: function appendEscaped() {
3948
- this.pushSource(this.appendToBuffer([this.aliasable('container.escapeExpression'), '(', this.popStack(), ')']));
3949
- },
3950
-
3951
- // [getContext]
3952
- //
3953
- // On stack, before: ...
3954
- // On stack, after: ...
3955
- // Compiler value, after: lastContext=depth
3956
- //
3957
- // Set the value of the `lastContext` compiler value to the depth
3958
- getContext: function getContext(depth) {
3959
- this.lastContext = depth;
3960
- },
3961
-
3962
- // [pushContext]
3963
- //
3964
- // On stack, before: ...
3965
- // On stack, after: currentContext, ...
3966
- //
3967
- // Pushes the value of the current context onto the stack.
3968
- pushContext: function pushContext() {
3969
- this.pushStackLiteral(this.contextName(this.lastContext));
3970
- },
3971
-
3972
- // [lookupOnContext]
3973
- //
3974
- // On stack, before: ...
3975
- // On stack, after: currentContext[name], ...
3976
- //
3977
- // Looks up the value of `name` on the current context and pushes
3978
- // it onto the stack.
3979
- lookupOnContext: function lookupOnContext(parts, falsy, strict, scoped) {
3980
- var i = 0;
3981
-
3982
- if (!scoped && this.options.compat && !this.lastContext) {
3983
- // The depthed query is expected to handle the undefined logic for the root level that
3984
- // is implemented below, so we evaluate that directly in compat mode
3985
- this.push(this.depthedLookup(parts[i++]));
3986
- } else {
3987
- this.pushContext();
3988
- }
3989
-
3990
- this.resolvePath('context', parts, i, falsy, strict);
3991
- },
3992
-
3993
- // [lookupBlockParam]
3994
- //
3995
- // On stack, before: ...
3996
- // On stack, after: blockParam[name], ...
3997
- //
3998
- // Looks up the value of `parts` on the given block param and pushes
3999
- // it onto the stack.
4000
- lookupBlockParam: function lookupBlockParam(blockParamId, parts) {
4001
- this.useBlockParams = true;
4002
-
4003
- this.push(['blockParams[', blockParamId[0], '][', blockParamId[1], ']']);
4004
- this.resolvePath('context', parts, 1);
4005
- },
4006
-
4007
- // [lookupData]
4008
- //
4009
- // On stack, before: ...
4010
- // On stack, after: data, ...
4011
- //
4012
- // Push the data lookup operator
4013
- lookupData: function lookupData(depth, parts, strict) {
4014
- if (!depth) {
4015
- this.pushStackLiteral('data');
4016
- } else {
4017
- this.pushStackLiteral('container.data(data, ' + depth + ')');
4018
- }
4019
-
4020
- this.resolvePath('data', parts, 0, true, strict);
4021
- },
4022
-
4023
- resolvePath: function resolvePath(type, parts, i, falsy, strict) {
4024
- // istanbul ignore next
4025
-
4026
- var _this = this;
4027
-
4028
- if (this.options.strict || this.options.assumeObjects) {
4029
- this.push(strictLookup(this.options.strict && strict, this, parts, type));
4030
- return;
4031
- }
4032
-
4033
- var len = parts.length;
4034
- for (; i < len; i++) {
4035
- /* eslint-disable no-loop-func */
4036
- this.replaceStack(function (current) {
4037
- var lookup = _this.nameLookup(current, parts[i], type);
4038
- // We want to ensure that zero and false are handled properly if the context (falsy flag)
4039
- // needs to have the special handling for these values.
4040
- if (!falsy) {
4041
- return [' != null ? ', lookup, ' : ', current];
4042
- } else {
4043
- // Otherwise we can use generic falsy handling
4044
- return [' && ', lookup];
4045
- }
4046
- });
4047
- /* eslint-enable no-loop-func */
4048
- }
4049
- },
4050
-
4051
- // [resolvePossibleLambda]
4052
- //
4053
- // On stack, before: value, ...
4054
- // On stack, after: resolved value, ...
4055
- //
4056
- // If the `value` is a lambda, replace it on the stack by
4057
- // the return value of the lambda
4058
- resolvePossibleLambda: function resolvePossibleLambda() {
4059
- this.push([this.aliasable('container.lambda'), '(', this.popStack(), ', ', this.contextName(0), ')']);
4060
- },
4061
-
4062
- // [pushStringParam]
4063
- //
4064
- // On stack, before: ...
4065
- // On stack, after: string, currentContext, ...
4066
- //
4067
- // This opcode is designed for use in string mode, which
4068
- // provides the string value of a parameter along with its
4069
- // depth rather than resolving it immediately.
4070
- pushStringParam: function pushStringParam(string, type) {
4071
- this.pushContext();
4072
- this.pushString(type);
4073
-
4074
- // If it's a subexpression, the string result
4075
- // will be pushed after this opcode.
4076
- if (type !== 'SubExpression') {
4077
- if (typeof string === 'string') {
4078
- this.pushString(string);
4079
- } else {
4080
- this.pushStackLiteral(string);
4081
- }
4082
- }
4083
- },
4084
-
4085
- emptyHash: function emptyHash(omitEmpty) {
4086
- if (this.trackIds) {
4087
- this.push('{}'); // hashIds
4088
- }
4089
- if (this.stringParams) {
4090
- this.push('{}'); // hashContexts
4091
- this.push('{}'); // hashTypes
4092
- }
4093
- this.pushStackLiteral(omitEmpty ? 'undefined' : '{}');
4094
- },
4095
- pushHash: function pushHash() {
4096
- if (this.hash) {
4097
- this.hashes.push(this.hash);
4098
- }
4099
- this.hash = { values: [], types: [], contexts: [], ids: [] };
4100
- },
4101
- popHash: function popHash() {
4102
- var hash = this.hash;
4103
- this.hash = this.hashes.pop();
4104
-
4105
- if (this.trackIds) {
4106
- this.push(this.objectLiteral(hash.ids));
4107
- }
4108
- if (this.stringParams) {
4109
- this.push(this.objectLiteral(hash.contexts));
4110
- this.push(this.objectLiteral(hash.types));
4111
- }
4112
-
4113
- this.push(this.objectLiteral(hash.values));
4114
- },
4115
-
4116
- // [pushString]
4117
- //
4118
- // On stack, before: ...
4119
- // On stack, after: quotedString(string), ...
4120
- //
4121
- // Push a quoted version of `string` onto the stack
4122
- pushString: function pushString(string) {
4123
- this.pushStackLiteral(this.quotedString(string));
4124
- },
4125
-
4126
- // [pushLiteral]
4127
- //
4128
- // On stack, before: ...
4129
- // On stack, after: value, ...
4130
- //
4131
- // Pushes a value onto the stack. This operation prevents
4132
- // the compiler from creating a temporary variable to hold
4133
- // it.
4134
- pushLiteral: function pushLiteral(value) {
4135
- this.pushStackLiteral(value);
4136
- },
4137
-
4138
- // [pushProgram]
4139
- //
4140
- // On stack, before: ...
4141
- // On stack, after: program(guid), ...
4142
- //
4143
- // Push a program expression onto the stack. This takes
4144
- // a compile-time guid and converts it into a runtime-accessible
4145
- // expression.
4146
- pushProgram: function pushProgram(guid) {
4147
- if (guid != null) {
4148
- this.pushStackLiteral(this.programExpression(guid));
4149
- } else {
4150
- this.pushStackLiteral(null);
4151
- }
4152
- },
4153
-
4154
- // [registerDecorator]
4155
- //
4156
- // On stack, before: hash, program, params..., ...
4157
- // On stack, after: ...
4158
- //
4159
- // Pops off the decorator's parameters, invokes the decorator,
4160
- // and inserts the decorator into the decorators list.
4161
- registerDecorator: function registerDecorator(paramSize, name) {
4162
- var foundDecorator = this.nameLookup('decorators', name, 'decorator'),
4163
- options = this.setupHelperArgs(name, paramSize);
4164
-
4165
- this.decorators.push(['fn = ', this.decorators.functionCall(foundDecorator, '', ['fn', 'props', 'container', options]), ' || fn;']);
4166
- },
4167
-
4168
- // [invokeHelper]
4169
- //
4170
- // On stack, before: hash, inverse, program, params..., ...
4171
- // On stack, after: result of helper invocation
4172
- //
4173
- // Pops off the helper's parameters, invokes the helper,
4174
- // and pushes the helper's return value onto the stack.
4175
- //
4176
- // If the helper is not found, `helperMissing` is called.
4177
- invokeHelper: function invokeHelper(paramSize, name, isSimple) {
4178
- var nonHelper = this.popStack(),
4179
- helper = this.setupHelper(paramSize, name),
4180
- simple = isSimple ? [helper.name, ' || '] : '';
4181
-
4182
- var lookup = ['('].concat(simple, nonHelper);
4183
- if (!this.options.strict) {
4184
- lookup.push(' || ', this.aliasable('helpers.helperMissing'));
4185
- }
4186
- lookup.push(')');
4187
-
4188
- this.push(this.source.functionCall(lookup, 'call', helper.callParams));
4189
- },
4190
-
4191
- // [invokeKnownHelper]
4192
- //
4193
- // On stack, before: hash, inverse, program, params..., ...
4194
- // On stack, after: result of helper invocation
4195
- //
4196
- // This operation is used when the helper is known to exist,
4197
- // so a `helperMissing` fallback is not required.
4198
- invokeKnownHelper: function invokeKnownHelper(paramSize, name) {
4199
- var helper = this.setupHelper(paramSize, name);
4200
- this.push(this.source.functionCall(helper.name, 'call', helper.callParams));
4201
- },
4202
-
4203
- // [invokeAmbiguous]
4204
- //
4205
- // On stack, before: hash, inverse, program, params..., ...
4206
- // On stack, after: result of disambiguation
4207
- //
4208
- // This operation is used when an expression like `{{foo}}`
4209
- // is provided, but we don't know at compile-time whether it
4210
- // is a helper or a path.
4211
- //
4212
- // This operation emits more code than the other options,
4213
- // and can be avoided by passing the `knownHelpers` and
4214
- // `knownHelpersOnly` flags at compile-time.
4215
- invokeAmbiguous: function invokeAmbiguous(name, helperCall) {
4216
- this.useRegister('helper');
4217
-
4218
- var nonHelper = this.popStack();
4219
-
4220
- this.emptyHash();
4221
- var helper = this.setupHelper(0, name, helperCall);
4222
-
4223
- var helperName = this.lastHelper = this.nameLookup('helpers', name, 'helper');
4224
-
4225
- var lookup = ['(', '(helper = ', helperName, ' || ', nonHelper, ')'];
4226
- if (!this.options.strict) {
4227
- lookup[0] = '(helper = ';
4228
- lookup.push(' != null ? helper : ', this.aliasable('helpers.helperMissing'));
4229
- }
4230
-
4231
- this.push(['(', lookup, helper.paramsInit ? ['),(', helper.paramsInit] : [], '),', '(typeof helper === ', this.aliasable('"function"'), ' ? ', this.source.functionCall('helper', 'call', helper.callParams), ' : helper))']);
4232
- },
4233
-
4234
- // [invokePartial]
4235
- //
4236
- // On stack, before: context, ...
4237
- // On stack after: result of partial invocation
4238
- //
4239
- // This operation pops off a context, invokes a partial with that context,
4240
- // and pushes the result of the invocation back.
4241
- invokePartial: function invokePartial(isDynamic, name, indent) {
4242
- var params = [],
4243
- options = this.setupParams(name, 1, params);
4244
-
4245
- if (isDynamic) {
4246
- name = this.popStack();
4247
- delete options.name;
4248
- }
4249
-
4250
- if (indent) {
4251
- options.indent = JSON.stringify(indent);
4252
- }
4253
- options.helpers = 'helpers';
4254
- options.partials = 'partials';
4255
- options.decorators = 'container.decorators';
4256
-
4257
- if (!isDynamic) {
4258
- params.unshift(this.nameLookup('partials', name, 'partial'));
4259
- } else {
4260
- params.unshift(name);
4261
- }
4262
-
4263
- if (this.options.compat) {
4264
- options.depths = 'depths';
4265
- }
4266
- options = this.objectLiteral(options);
4267
- params.push(options);
4268
-
4269
- this.push(this.source.functionCall('container.invokePartial', '', params));
4270
- },
4271
-
4272
- // [assignToHash]
4273
- //
4274
- // On stack, before: value, ..., hash, ...
4275
- // On stack, after: ..., hash, ...
4276
- //
4277
- // Pops a value off the stack and assigns it to the current hash
4278
- assignToHash: function assignToHash(key) {
4279
- var value = this.popStack(),
4280
- context = undefined,
4281
- type = undefined,
4282
- id = undefined;
4283
-
4284
- if (this.trackIds) {
4285
- id = this.popStack();
4286
- }
4287
- if (this.stringParams) {
4288
- type = this.popStack();
4289
- context = this.popStack();
4290
- }
4291
-
4292
- var hash = this.hash;
4293
- if (context) {
4294
- hash.contexts[key] = context;
4295
- }
4296
- if (type) {
4297
- hash.types[key] = type;
4298
- }
4299
- if (id) {
4300
- hash.ids[key] = id;
4301
- }
4302
- hash.values[key] = value;
4303
- },
4304
-
4305
- pushId: function pushId(type, name, child) {
4306
- if (type === 'BlockParam') {
4307
- this.pushStackLiteral('blockParams[' + name[0] + '].path[' + name[1] + ']' + (child ? ' + ' + JSON.stringify('.' + child) : ''));
4308
- } else if (type === 'PathExpression') {
4309
- this.pushString(name);
4310
- } else if (type === 'SubExpression') {
4311
- this.pushStackLiteral('true');
4312
- } else {
4313
- this.pushStackLiteral('null');
4314
- }
4315
- },
4316
-
4317
- // HELPERS
4318
-
4319
- compiler: JavaScriptCompiler,
4320
-
4321
- compileChildren: function compileChildren(environment, options) {
4322
- var children = environment.children,
4323
- child = undefined,
4324
- compiler = undefined;
4325
-
4326
- for (var i = 0, l = children.length; i < l; i++) {
4327
- child = children[i];
4328
- compiler = new this.compiler(); // eslint-disable-line new-cap
4329
-
4330
- var existing = this.matchExistingProgram(child);
4331
-
4332
- if (existing == null) {
4333
- this.context.programs.push(''); // Placeholder to prevent name conflicts for nested children
4334
- var index = this.context.programs.length;
4335
- child.index = index;
4336
- child.name = 'program' + index;
4337
- this.context.programs[index] = compiler.compile(child, options, this.context, !this.precompile);
4338
- this.context.decorators[index] = compiler.decorators;
4339
- this.context.environments[index] = child;
4340
-
4341
- this.useDepths = this.useDepths || compiler.useDepths;
4342
- this.useBlockParams = this.useBlockParams || compiler.useBlockParams;
4343
- child.useDepths = this.useDepths;
4344
- child.useBlockParams = this.useBlockParams;
4345
- } else {
4346
- child.index = existing.index;
4347
- child.name = 'program' + existing.index;
4348
-
4349
- this.useDepths = this.useDepths || existing.useDepths;
4350
- this.useBlockParams = this.useBlockParams || existing.useBlockParams;
4351
- }
4352
- }
4353
- },
4354
- matchExistingProgram: function matchExistingProgram(child) {
4355
- for (var i = 0, len = this.context.environments.length; i < len; i++) {
4356
- var environment = this.context.environments[i];
4357
- if (environment && environment.equals(child)) {
4358
- return environment;
4359
- }
4360
- }
4361
- },
4362
-
4363
- programExpression: function programExpression(guid) {
4364
- var child = this.environment.children[guid],
4365
- programParams = [child.index, 'data', child.blockParams];
4366
-
4367
- if (this.useBlockParams || this.useDepths) {
4368
- programParams.push('blockParams');
4369
- }
4370
- if (this.useDepths) {
4371
- programParams.push('depths');
4372
- }
4373
-
4374
- return 'container.program(' + programParams.join(', ') + ')';
4375
- },
4376
-
4377
- useRegister: function useRegister(name) {
4378
- if (!this.registers[name]) {
4379
- this.registers[name] = true;
4380
- this.registers.list.push(name);
4381
- }
4382
- },
4383
-
4384
- push: function push(expr) {
4385
- if (!(expr instanceof Literal)) {
4386
- expr = this.source.wrap(expr);
4387
- }
4388
-
4389
- this.inlineStack.push(expr);
4390
- return expr;
4391
- },
4392
-
4393
- pushStackLiteral: function pushStackLiteral(item) {
4394
- this.push(new Literal(item));
4395
- },
4396
-
4397
- pushSource: function pushSource(source) {
4398
- if (this.pendingContent) {
4399
- this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent), this.pendingLocation));
4400
- this.pendingContent = undefined;
4401
- }
4402
-
4403
- if (source) {
4404
- this.source.push(source);
4405
- }
4406
- },
4407
-
4408
- replaceStack: function replaceStack(callback) {
4409
- var prefix = ['('],
4410
- stack = undefined,
4411
- createdStack = undefined,
4412
- usedLiteral = undefined;
4413
-
4414
- /* istanbul ignore next */
4415
- if (!this.isInline()) {
4416
- throw new _exception2['default']('replaceStack on non-inline');
4417
- }
4418
-
4419
- // We want to merge the inline statement into the replacement statement via ','
4420
- var top = this.popStack(true);
4421
-
4422
- if (top instanceof Literal) {
4423
- // Literals do not need to be inlined
4424
- stack = [top.value];
4425
- prefix = ['(', stack];
4426
- usedLiteral = true;
4427
- } else {
4428
- // Get or create the current stack name for use by the inline
4429
- createdStack = true;
4430
- var _name = this.incrStack();
4431
-
4432
- prefix = ['((', this.push(_name), ' = ', top, ')'];
4433
- stack = this.topStack();
4434
- }
4435
-
4436
- var item = callback.call(this, stack);
4437
-
4438
- if (!usedLiteral) {
4439
- this.popStack();
4440
- }
4441
- if (createdStack) {
4442
- this.stackSlot--;
4443
- }
4444
- this.push(prefix.concat(item, ')'));
4445
- },
4446
-
4447
- incrStack: function incrStack() {
4448
- this.stackSlot++;
4449
- if (this.stackSlot > this.stackVars.length) {
4450
- this.stackVars.push('stack' + this.stackSlot);
4451
- }
4452
- return this.topStackName();
4453
- },
4454
- topStackName: function topStackName() {
4455
- return 'stack' + this.stackSlot;
4456
- },
4457
- flushInline: function flushInline() {
4458
- var inlineStack = this.inlineStack;
4459
- this.inlineStack = [];
4460
- for (var i = 0, len = inlineStack.length; i < len; i++) {
4461
- var entry = inlineStack[i];
4462
- /* istanbul ignore if */
4463
- if (entry instanceof Literal) {
4464
- this.compileStack.push(entry);
4465
- } else {
4466
- var stack = this.incrStack();
4467
- this.pushSource([stack, ' = ', entry, ';']);
4468
- this.compileStack.push(stack);
4469
- }
4470
- }
4471
- },
4472
- isInline: function isInline() {
4473
- return this.inlineStack.length;
4474
- },
4475
-
4476
- popStack: function popStack(wrapped) {
4477
- var inline = this.isInline(),
4478
- item = (inline ? this.inlineStack : this.compileStack).pop();
4479
-
4480
- if (!wrapped && item instanceof Literal) {
4481
- return item.value;
4482
- } else {
4483
- if (!inline) {
4484
- /* istanbul ignore next */
4485
- if (!this.stackSlot) {
4486
- throw new _exception2['default']('Invalid stack pop');
4487
- }
4488
- this.stackSlot--;
4489
- }
4490
- return item;
4491
- }
4492
- },
4493
-
4494
- topStack: function topStack() {
4495
- var stack = this.isInline() ? this.inlineStack : this.compileStack,
4496
- item = stack[stack.length - 1];
4497
-
4498
- /* istanbul ignore if */
4499
- if (item instanceof Literal) {
4500
- return item.value;
4501
- } else {
4502
- return item;
4503
- }
4504
- },
4505
-
4506
- contextName: function contextName(context) {
4507
- if (this.useDepths && context) {
4508
- return 'depths[' + context + ']';
4509
- } else {
4510
- return 'depth' + context;
4511
- }
4512
- },
4513
-
4514
- quotedString: function quotedString(str) {
4515
- return this.source.quotedString(str);
4516
- },
4517
-
4518
- objectLiteral: function objectLiteral(obj) {
4519
- return this.source.objectLiteral(obj);
4520
- },
4521
-
4522
- aliasable: function aliasable(name) {
4523
- var ret = this.aliases[name];
4524
- if (ret) {
4525
- ret.referenceCount++;
4526
- return ret;
4527
- }
4528
-
4529
- ret = this.aliases[name] = this.source.wrap(name);
4530
- ret.aliasable = true;
4531
- ret.referenceCount = 1;
4532
-
4533
- return ret;
4534
- },
4535
-
4536
- setupHelper: function setupHelper(paramSize, name, blockHelper) {
4537
- var params = [],
4538
- paramsInit = this.setupHelperArgs(name, paramSize, params, blockHelper);
4539
- var foundHelper = this.nameLookup('helpers', name, 'helper'),
4540
- callContext = this.aliasable(this.contextName(0) + ' != null ? ' + this.contextName(0) + ' : (container.nullContext || {})');
4541
-
4542
- return {
4543
- params: params,
4544
- paramsInit: paramsInit,
4545
- name: foundHelper,
4546
- callParams: [callContext].concat(params)
4547
- };
4548
- },
4549
-
4550
- setupParams: function setupParams(helper, paramSize, params) {
4551
- var options = {},
4552
- contexts = [],
4553
- types = [],
4554
- ids = [],
4555
- objectArgs = !params,
4556
- param = undefined;
4557
-
4558
- if (objectArgs) {
4559
- params = [];
4560
- }
4561
-
4562
- options.name = this.quotedString(helper);
4563
- options.hash = this.popStack();
4564
-
4565
- if (this.trackIds) {
4566
- options.hashIds = this.popStack();
4567
- }
4568
- if (this.stringParams) {
4569
- options.hashTypes = this.popStack();
4570
- options.hashContexts = this.popStack();
4571
- }
4572
-
4573
- var inverse = this.popStack(),
4574
- program = this.popStack();
4575
-
4576
- // Avoid setting fn and inverse if neither are set. This allows
4577
- // helpers to do a check for `if (options.fn)`
4578
- if (program || inverse) {
4579
- options.fn = program || 'container.noop';
4580
- options.inverse = inverse || 'container.noop';
4581
- }
4582
-
4583
- // The parameters go on to the stack in order (making sure that they are evaluated in order)
4584
- // so we need to pop them off the stack in reverse order
4585
- var i = paramSize;
4586
- while (i--) {
4587
- param = this.popStack();
4588
- params[i] = param;
4589
-
4590
- if (this.trackIds) {
4591
- ids[i] = this.popStack();
4592
- }
4593
- if (this.stringParams) {
4594
- types[i] = this.popStack();
4595
- contexts[i] = this.popStack();
4596
- }
4597
- }
4598
-
4599
- if (objectArgs) {
4600
- options.args = this.source.generateArray(params);
4601
- }
4602
-
4603
- if (this.trackIds) {
4604
- options.ids = this.source.generateArray(ids);
4605
- }
4606
- if (this.stringParams) {
4607
- options.types = this.source.generateArray(types);
4608
- options.contexts = this.source.generateArray(contexts);
4609
- }
4610
-
4611
- if (this.options.data) {
4612
- options.data = 'data';
4613
- }
4614
- if (this.useBlockParams) {
4615
- options.blockParams = 'blockParams';
4616
- }
4617
- return options;
4618
- },
4619
-
4620
- setupHelperArgs: function setupHelperArgs(helper, paramSize, params, useRegister) {
4621
- var options = this.setupParams(helper, paramSize, params);
4622
- options = this.objectLiteral(options);
4623
- if (useRegister) {
4624
- this.useRegister('options');
4625
- params.push('options');
4626
- return ['options=', options];
4627
- } else if (params) {
4628
- params.push(options);
4629
- return '';
4630
- } else {
4631
- return options;
4632
- }
4633
- }
4634
- };
4635
-
4636
- (function () {
4637
- var reservedWords = ('break else new var' + ' case finally return void' + ' catch for switch while' + ' continue function this with' + ' default if throw' + ' delete in try' + ' do instanceof typeof' + ' abstract enum int short' + ' boolean export interface static' + ' byte extends long super' + ' char final native synchronized' + ' class float package throws' + ' const goto private transient' + ' debugger implements protected volatile' + ' double import public let yield await' + ' null true false').split(' ');
4638
-
4639
- var compilerWords = JavaScriptCompiler.RESERVED_WORDS = {};
4640
-
4641
- for (var i = 0, l = reservedWords.length; i < l; i++) {
4642
- compilerWords[reservedWords[i]] = true;
4643
- }
4644
- })();
4645
-
4646
- JavaScriptCompiler.isValidJavaScriptVariableName = function (name) {
4647
- return !JavaScriptCompiler.RESERVED_WORDS[name] && /^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(name);
4648
- };
4649
-
4650
- function strictLookup(requireTerminal, compiler, parts, type) {
4651
- var stack = compiler.popStack(),
4652
- i = 0,
4653
- len = parts.length;
4654
- if (requireTerminal) {
4655
- len--;
4656
- }
4657
-
4658
- for (; i < len; i++) {
4659
- stack = compiler.nameLookup(stack, parts[i], type);
4660
- }
4661
-
4662
- if (requireTerminal) {
4663
- return [compiler.aliasable('container.strict'), '(', stack, ', ', compiler.quotedString(parts[i]), ')'];
4664
- } else {
4665
- return stack;
4666
- }
4667
- }
4668
-
4669
- exports['default'] = JavaScriptCompiler;
4670
- module.exports = exports['default'];
4671
-
4672
- /***/ }),
4673
- /* 43 */
4674
- /***/ (function(module, exports, __webpack_require__) {
4675
-
4676
- /* global define */
4677
- 'use strict';
4678
-
4679
- exports.__esModule = true;
4680
-
4681
- var _utils = __webpack_require__(5);
4682
-
4683
- var SourceNode = undefined;
4684
-
4685
- try {
4686
- /* istanbul ignore next */
4687
- if (false) {
4688
- // We don't support this in AMD environments. For these environments, we asusme that
4689
- // they are running on the browser and thus have no need for the source-map library.
4690
- var SourceMap = require('source-map');
4691
- SourceNode = SourceMap.SourceNode;
4692
- }
4693
- } catch (err) {}
4694
- /* NOP */
4695
-
4696
- /* istanbul ignore if: tested but not covered in istanbul due to dist build */
4697
- if (!SourceNode) {
4698
- SourceNode = function (line, column, srcFile, chunks) {
4699
- this.src = '';
4700
- if (chunks) {
4701
- this.add(chunks);
4702
- }
4703
- };
4704
- /* istanbul ignore next */
4705
- SourceNode.prototype = {
4706
- add: function add(chunks) {
4707
- if (_utils.isArray(chunks)) {
4708
- chunks = chunks.join('');
4709
- }
4710
- this.src += chunks;
4711
- },
4712
- prepend: function prepend(chunks) {
4713
- if (_utils.isArray(chunks)) {
4714
- chunks = chunks.join('');
4715
- }
4716
- this.src = chunks + this.src;
4717
- },
4718
- toStringWithSourceMap: function toStringWithSourceMap() {
4719
- return { code: this.toString() };
4720
- },
4721
- toString: function toString() {
4722
- return this.src;
4723
- }
4724
- };
4725
- }
4726
-
4727
- function castChunk(chunk, codeGen, loc) {
4728
- if (_utils.isArray(chunk)) {
4729
- var ret = [];
4730
-
4731
- for (var i = 0, len = chunk.length; i < len; i++) {
4732
- ret.push(codeGen.wrap(chunk[i], loc));
4733
- }
4734
- return ret;
4735
- } else if (typeof chunk === 'boolean' || typeof chunk === 'number') {
4736
- // Handle primitives that the SourceNode will throw up on
4737
- return chunk + '';
4738
- }
4739
- return chunk;
4740
- }
4741
-
4742
- function CodeGen(srcFile) {
4743
- this.srcFile = srcFile;
4744
- this.source = [];
4745
- }
4746
-
4747
- CodeGen.prototype = {
4748
- isEmpty: function isEmpty() {
4749
- return !this.source.length;
4750
- },
4751
- prepend: function prepend(source, loc) {
4752
- this.source.unshift(this.wrap(source, loc));
4753
- },
4754
- push: function push(source, loc) {
4755
- this.source.push(this.wrap(source, loc));
4756
- },
4757
-
4758
- merge: function merge() {
4759
- var source = this.empty();
4760
- this.each(function (line) {
4761
- source.add([' ', line, '\n']);
4762
- });
4763
- return source;
4764
- },
4765
-
4766
- each: function each(iter) {
4767
- for (var i = 0, len = this.source.length; i < len; i++) {
4768
- iter(this.source[i]);
4769
- }
4770
- },
4771
-
4772
- empty: function empty() {
4773
- var loc = this.currentLocation || { start: {} };
4774
- return new SourceNode(loc.start.line, loc.start.column, this.srcFile);
4775
- },
4776
- wrap: function wrap(chunk) {
4777
- var loc = arguments.length <= 1 || arguments[1] === undefined ? this.currentLocation || { start: {} } : arguments[1];
4778
-
4779
- if (chunk instanceof SourceNode) {
4780
- return chunk;
4781
- }
4782
-
4783
- chunk = castChunk(chunk, this, loc);
4784
-
4785
- return new SourceNode(loc.start.line, loc.start.column, this.srcFile, chunk);
4786
- },
4787
-
4788
- functionCall: function functionCall(fn, type, params) {
4789
- params = this.generateList(params);
4790
- return this.wrap([fn, type ? '.' + type + '(' : '(', params, ')']);
4791
- },
4792
-
4793
- quotedString: function quotedString(str) {
4794
- return '"' + (str + '').replace(/\\/g, '\\\\').replace(/"/g, '\\"').replace(/\n/g, '\\n').replace(/\r/g, '\\r').replace(/\u2028/g, '\\u2028') // Per Ecma-262 7.3 + 7.8.4
4795
- .replace(/\u2029/g, '\\u2029') + '"';
4796
- },
4797
-
4798
- objectLiteral: function objectLiteral(obj) {
4799
- var pairs = [];
4800
-
4801
- for (var key in obj) {
4802
- if (obj.hasOwnProperty(key)) {
4803
- var value = castChunk(obj[key], this);
4804
- if (value !== 'undefined') {
4805
- pairs.push([this.quotedString(key), ':', value]);
4806
- }
4807
- }
4808
- }
4809
-
4810
- var ret = this.generateList(pairs);
4811
- ret.prepend('{');
4812
- ret.add('}');
4813
- return ret;
4814
- },
4815
-
4816
- generateList: function generateList(entries) {
4817
- var ret = this.empty();
4818
-
4819
- for (var i = 0, len = entries.length; i < len; i++) {
4820
- if (i) {
4821
- ret.add(',');
4822
- }
4823
-
4824
- ret.add(castChunk(entries[i], this));
4825
- }
4826
-
4827
- return ret;
4828
- },
4829
-
4830
- generateArray: function generateArray(entries) {
4831
- var ret = this.generateList(entries);
4832
- ret.prepend('[');
4833
- ret.add(']');
4834
-
4835
- return ret;
4836
- }
4837
- };
4838
-
4839
- exports['default'] = CodeGen;
4840
- module.exports = exports['default'];
4841
-
4842
- /***/ })
4843
- /******/ ])
4844
- });
4845
- ;