statixite 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (462) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +145 -0
  4. data/Rakefile +26 -0
  5. data/app/assets/images/statixite/STATIXITE-logo.png +0 -0
  6. data/app/assets/images/statixite/favicon.ico +0 -0
  7. data/app/assets/images/statixite/jekyll.png +0 -0
  8. data/app/assets/images/statixite/md-editor.png +0 -0
  9. data/app/assets/images/statixite/ring-alt.gif +0 -0
  10. data/app/assets/javascripts/controllers/statixite/deployments_create.js +13 -0
  11. data/app/assets/javascripts/controllers/statixite/deployments_index.js +13 -0
  12. data/app/assets/javascripts/controllers/statixite/sites_create.js +27 -0
  13. data/app/assets/javascripts/controllers/statixite/sites_new.js +27 -0
  14. data/app/assets/javascripts/controllers/statixite/templates_edit.js +208 -0
  15. data/app/assets/javascripts/statixite/application.js +8 -0
  16. data/app/assets/javascripts/statixite/array-helpers.js +13 -0
  17. data/app/assets/javascripts/statixite/editor.js +244 -0
  18. data/app/assets/javascripts/statixite/loader.js +14 -0
  19. data/app/assets/javascripts/statixite/notify-defaults.js +5 -0
  20. data/app/assets/stylesheets/statixite/application.less +271 -0
  21. data/app/assets/stylesheets/statixite/bootstrap-glyphicons.less +305 -0
  22. data/app/assets/stylesheets/statixite/bootstrap.less +58 -0
  23. data/app/assets/stylesheets/statixite/bootstrap_and_overrides.less +2 -0
  24. data/app/assets/stylesheets/statixite/landing-page.less +156 -0
  25. data/app/controllers/statixite/application_controller.rb +22 -0
  26. data/app/controllers/statixite/deployments_controller.rb +61 -0
  27. data/app/controllers/statixite/media_controller.rb +61 -0
  28. data/app/controllers/statixite/posts_controller.rb +68 -0
  29. data/app/controllers/statixite/sites_controller.rb +141 -0
  30. data/app/controllers/statixite/templates_controller.rb +233 -0
  31. data/app/helpers/statixite/application_helper.rb +63 -0
  32. data/app/models/statixite/deployment.rb +5 -0
  33. data/app/models/statixite/media.rb +7 -0
  34. data/app/models/statixite/post.rb +76 -0
  35. data/app/models/statixite/site.rb +76 -0
  36. data/app/services/statixite/deployment_service.rb +73 -0
  37. data/app/services/statixite/git_service.rb +102 -0
  38. data/app/services/statixite/site_deactivation_service.rb +52 -0
  39. data/app/services/statixite/site_operation_service.rb +251 -0
  40. data/app/uploaders/statixite/file_uploader.rb +14 -0
  41. data/app/validators/statixite/jekyll_template_validator.rb +16 -0
  42. data/app/validators/statixite/liquid_validator.rb +11 -0
  43. data/app/views/layouts/statixite/_dash_nav.html.haml +20 -0
  44. data/app/views/layouts/statixite/_flash.html.haml +13 -0
  45. data/app/views/layouts/statixite/_head.html.haml +12 -0
  46. data/app/views/layouts/statixite/_header.html.haml +30 -0
  47. data/app/views/layouts/statixite/_site_sub_items.html.haml +38 -0
  48. data/app/views/layouts/statixite/dashboard.html.haml +27 -0
  49. data/app/views/statixite/deployments/_modal.html.haml +18 -0
  50. data/app/views/statixite/deployments/index.html.haml +39 -0
  51. data/app/views/statixite/kaminari/_first_page.html.haml +2 -0
  52. data/app/views/statixite/kaminari/_gap.html.haml +2 -0
  53. data/app/views/statixite/kaminari/_last_page.html.haml +2 -0
  54. data/app/views/statixite/kaminari/_next_page.html.haml +2 -0
  55. data/app/views/statixite/kaminari/_page.html.haml +6 -0
  56. data/app/views/statixite/kaminari/_paginator.html.haml +11 -0
  57. data/app/views/statixite/kaminari/_prev_page.html.haml +2 -0
  58. data/app/views/statixite/media/_index.html.haml +13 -0
  59. data/app/views/statixite/media/_paginate.html.haml +1 -0
  60. data/app/views/statixite/media/index.html.haml +39 -0
  61. data/app/views/statixite/media/index.js.haml +2 -0
  62. data/app/views/statixite/posts/_form.html.haml +65 -0
  63. data/app/views/statixite/posts/_image_modal.html.haml +21 -0
  64. data/app/views/statixite/posts/_modals.html.haml +111 -0
  65. data/app/views/statixite/posts/_posts.html.haml +15 -0
  66. data/app/views/statixite/posts/edit.html.haml +6 -0
  67. data/app/views/statixite/posts/index.html.haml +4 -0
  68. data/app/views/statixite/posts/index.js.haml +1 -0
  69. data/app/views/statixite/posts/new.html.haml +5 -0
  70. data/app/views/statixite/sites/_sites.html.haml +27 -0
  71. data/app/views/statixite/sites/_templates.html.haml +26 -0
  72. data/app/views/statixite/sites/build_and_preview.html.haml +24 -0
  73. data/app/views/statixite/sites/index.html.haml +4 -0
  74. data/app/views/statixite/sites/index.js.haml +1 -0
  75. data/app/views/statixite/sites/new.html.haml +45 -0
  76. data/app/views/statixite/sites/settings.html.haml +77 -0
  77. data/app/views/statixite/templates/edit.html.haml +93 -0
  78. data/app/views/statixite/templates/upload_files.js.haml +2 -0
  79. data/config/routes.rb +24 -0
  80. data/db/migrate/20150525171543_create_statixite_sites.rb +15 -0
  81. data/db/migrate/20150530041055_create_statixite_posts.rb +14 -0
  82. data/db/migrate/20150610024047_create_statixite_deployments.rb +11 -0
  83. data/db/migrate/20151013131224_create_statixite_media.rb +10 -0
  84. data/lib/assets/templates.yaml +734 -0
  85. data/lib/generators/statixite/statixite_generator.rb +49 -0
  86. data/lib/statixite.rb +14 -0
  87. data/lib/statixite/cloud_sync.rb +104 -0
  88. data/lib/statixite/engine.rb +49 -0
  89. data/lib/statixite/version.rb +3 -0
  90. data/lib/tasks/statixite_tasks.rake +4 -0
  91. data/vendor/assets/bower_components/bootstrap/CHANGELOG.md +5 -0
  92. data/vendor/assets/bower_components/bootstrap/Gruntfile.js +533 -0
  93. data/vendor/assets/bower_components/bootstrap/LICENSE +21 -0
  94. data/vendor/assets/bower_components/bootstrap/README.md +139 -0
  95. data/vendor/assets/bower_components/bootstrap/bower.json +34 -0
  96. data/vendor/assets/bower_components/bootstrap/dist/css/bootstrap-theme.css +587 -0
  97. data/vendor/assets/bower_components/bootstrap/dist/css/bootstrap-theme.css.map +1 -0
  98. data/vendor/assets/bower_components/bootstrap/dist/css/bootstrap-theme.min.css +6 -0
  99. data/vendor/assets/bower_components/bootstrap/dist/css/bootstrap-theme.min.css.map +1 -0
  100. data/vendor/assets/bower_components/bootstrap/dist/css/bootstrap.css +6760 -0
  101. data/vendor/assets/bower_components/bootstrap/dist/css/bootstrap.css.map +1 -0
  102. data/vendor/assets/bower_components/bootstrap/dist/css/bootstrap.min.css +6 -0
  103. data/vendor/assets/bower_components/bootstrap/dist/css/bootstrap.min.css.map +1 -0
  104. data/vendor/assets/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.eot +0 -0
  105. data/vendor/assets/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.svg +288 -0
  106. data/vendor/assets/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf +0 -0
  107. data/vendor/assets/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.woff +0 -0
  108. data/vendor/assets/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2 +0 -0
  109. data/vendor/assets/bower_components/bootstrap/dist/js/bootstrap.js +2363 -0
  110. data/vendor/assets/bower_components/bootstrap/dist/js/bootstrap.min.js +7 -0
  111. data/vendor/assets/bower_components/bootstrap/dist/js/npm.js +13 -0
  112. data/vendor/assets/bower_components/bootstrap/fonts/glyphicons-halflings-regular.eot +0 -0
  113. data/vendor/assets/bower_components/bootstrap/fonts/glyphicons-halflings-regular.svg +288 -0
  114. data/vendor/assets/bower_components/bootstrap/fonts/glyphicons-halflings-regular.ttf +0 -0
  115. data/vendor/assets/bower_components/bootstrap/fonts/glyphicons-halflings-regular.woff +0 -0
  116. data/vendor/assets/bower_components/bootstrap/fonts/glyphicons-halflings-regular.woff2 +0 -0
  117. data/vendor/assets/bower_components/bootstrap/grunt/bs-commonjs-generator.js +30 -0
  118. data/vendor/assets/bower_components/bootstrap/grunt/bs-glyphicons-data-generator.js +42 -0
  119. data/vendor/assets/bower_components/bootstrap/grunt/bs-lessdoc-parser.js +237 -0
  120. data/vendor/assets/bower_components/bootstrap/grunt/bs-raw-files-generator.js +44 -0
  121. data/vendor/assets/bower_components/bootstrap/grunt/configBridge.json +46 -0
  122. data/vendor/assets/bower_components/bootstrap/grunt/sauce_browsers.yml +82 -0
  123. data/vendor/assets/bower_components/bootstrap/js/affix.js +162 -0
  124. data/vendor/assets/bower_components/bootstrap/js/alert.js +94 -0
  125. data/vendor/assets/bower_components/bootstrap/js/button.js +120 -0
  126. data/vendor/assets/bower_components/bootstrap/js/carousel.js +237 -0
  127. data/vendor/assets/bower_components/bootstrap/js/collapse.js +211 -0
  128. data/vendor/assets/bower_components/bootstrap/js/dropdown.js +165 -0
  129. data/vendor/assets/bower_components/bootstrap/js/modal.js +337 -0
  130. data/vendor/assets/bower_components/bootstrap/js/popover.js +108 -0
  131. data/vendor/assets/bower_components/bootstrap/js/scrollspy.js +172 -0
  132. data/vendor/assets/bower_components/bootstrap/js/tab.js +155 -0
  133. data/vendor/assets/bower_components/bootstrap/js/tooltip.js +514 -0
  134. data/vendor/assets/bower_components/bootstrap/js/transition.js +59 -0
  135. data/vendor/assets/bower_components/bootstrap/less/alerts.less +73 -0
  136. data/vendor/assets/bower_components/bootstrap/less/badges.less +66 -0
  137. data/vendor/assets/bower_components/bootstrap/less/bootstrap.less +56 -0
  138. data/vendor/assets/bower_components/bootstrap/less/breadcrumbs.less +26 -0
  139. data/vendor/assets/bower_components/bootstrap/less/button-groups.less +244 -0
  140. data/vendor/assets/bower_components/bootstrap/less/buttons.less +166 -0
  141. data/vendor/assets/bower_components/bootstrap/less/carousel.less +270 -0
  142. data/vendor/assets/bower_components/bootstrap/less/close.less +34 -0
  143. data/vendor/assets/bower_components/bootstrap/less/code.less +69 -0
  144. data/vendor/assets/bower_components/bootstrap/less/component-animations.less +33 -0
  145. data/vendor/assets/bower_components/bootstrap/less/dropdowns.less +216 -0
  146. data/vendor/assets/bower_components/bootstrap/less/forms.less +613 -0
  147. data/vendor/assets/bower_components/bootstrap/less/glyphicons.less +305 -0
  148. data/vendor/assets/bower_components/bootstrap/less/grid.less +84 -0
  149. data/vendor/assets/bower_components/bootstrap/less/input-groups.less +171 -0
  150. data/vendor/assets/bower_components/bootstrap/less/jumbotron.less +54 -0
  151. data/vendor/assets/bower_components/bootstrap/less/labels.less +64 -0
  152. data/vendor/assets/bower_components/bootstrap/less/list-group.less +130 -0
  153. data/vendor/assets/bower_components/bootstrap/less/media.less +66 -0
  154. data/vendor/assets/bower_components/bootstrap/less/mixins.less +40 -0
  155. data/vendor/assets/bower_components/bootstrap/less/mixins/alerts.less +14 -0
  156. data/vendor/assets/bower_components/bootstrap/less/mixins/background-variant.less +9 -0
  157. data/vendor/assets/bower_components/bootstrap/less/mixins/border-radius.less +18 -0
  158. data/vendor/assets/bower_components/bootstrap/less/mixins/buttons.less +65 -0
  159. data/vendor/assets/bower_components/bootstrap/less/mixins/center-block.less +7 -0
  160. data/vendor/assets/bower_components/bootstrap/less/mixins/clearfix.less +22 -0
  161. data/vendor/assets/bower_components/bootstrap/less/mixins/forms.less +85 -0
  162. data/vendor/assets/bower_components/bootstrap/less/mixins/gradients.less +59 -0
  163. data/vendor/assets/bower_components/bootstrap/less/mixins/grid-framework.less +91 -0
  164. data/vendor/assets/bower_components/bootstrap/less/mixins/grid.less +122 -0
  165. data/vendor/assets/bower_components/bootstrap/less/mixins/hide-text.less +21 -0
  166. data/vendor/assets/bower_components/bootstrap/less/mixins/image.less +33 -0
  167. data/vendor/assets/bower_components/bootstrap/less/mixins/labels.less +12 -0
  168. data/vendor/assets/bower_components/bootstrap/less/mixins/list-group.less +30 -0
  169. data/vendor/assets/bower_components/bootstrap/less/mixins/nav-divider.less +10 -0
  170. data/vendor/assets/bower_components/bootstrap/less/mixins/nav-vertical-align.less +9 -0
  171. data/vendor/assets/bower_components/bootstrap/less/mixins/opacity.less +8 -0
  172. data/vendor/assets/bower_components/bootstrap/less/mixins/pagination.less +24 -0
  173. data/vendor/assets/bower_components/bootstrap/less/mixins/panels.less +24 -0
  174. data/vendor/assets/bower_components/bootstrap/less/mixins/progress-bar.less +10 -0
  175. data/vendor/assets/bower_components/bootstrap/less/mixins/reset-filter.less +8 -0
  176. data/vendor/assets/bower_components/bootstrap/less/mixins/reset-text.less +18 -0
  177. data/vendor/assets/bower_components/bootstrap/less/mixins/resize.less +6 -0
  178. data/vendor/assets/bower_components/bootstrap/less/mixins/responsive-visibility.less +15 -0
  179. data/vendor/assets/bower_components/bootstrap/less/mixins/size.less +10 -0
  180. data/vendor/assets/bower_components/bootstrap/less/mixins/tab-focus.less +9 -0
  181. data/vendor/assets/bower_components/bootstrap/less/mixins/table-row.less +28 -0
  182. data/vendor/assets/bower_components/bootstrap/less/mixins/text-emphasis.less +9 -0
  183. data/vendor/assets/bower_components/bootstrap/less/mixins/text-overflow.less +8 -0
  184. data/vendor/assets/bower_components/bootstrap/less/mixins/vendor-prefixes.less +227 -0
  185. data/vendor/assets/bower_components/bootstrap/less/modals.less +150 -0
  186. data/vendor/assets/bower_components/bootstrap/less/navbar.less +660 -0
  187. data/vendor/assets/bower_components/bootstrap/less/navs.less +242 -0
  188. data/vendor/assets/bower_components/bootstrap/less/normalize.less +424 -0
  189. data/vendor/assets/bower_components/bootstrap/less/pager.less +54 -0
  190. data/vendor/assets/bower_components/bootstrap/less/pagination.less +89 -0
  191. data/vendor/assets/bower_components/bootstrap/less/panels.less +271 -0
  192. data/vendor/assets/bower_components/bootstrap/less/popovers.less +131 -0
  193. data/vendor/assets/bower_components/bootstrap/less/print.less +101 -0
  194. data/vendor/assets/bower_components/bootstrap/less/progress-bars.less +87 -0
  195. data/vendor/assets/bower_components/bootstrap/less/responsive-embed.less +35 -0
  196. data/vendor/assets/bower_components/bootstrap/less/responsive-utilities.less +194 -0
  197. data/vendor/assets/bower_components/bootstrap/less/scaffolding.less +161 -0
  198. data/vendor/assets/bower_components/bootstrap/less/tables.less +234 -0
  199. data/vendor/assets/bower_components/bootstrap/less/theme.less +291 -0
  200. data/vendor/assets/bower_components/bootstrap/less/thumbnails.less +36 -0
  201. data/vendor/assets/bower_components/bootstrap/less/tooltip.less +101 -0
  202. data/vendor/assets/bower_components/bootstrap/less/type.less +302 -0
  203. data/vendor/assets/bower_components/bootstrap/less/utilities.less +55 -0
  204. data/vendor/assets/bower_components/bootstrap/less/variables.less +869 -0
  205. data/vendor/assets/bower_components/bootstrap/less/wells.less +29 -0
  206. data/vendor/assets/bower_components/bootstrap/nuget/MyGet.ps1 +8 -0
  207. data/vendor/assets/bower_components/bootstrap/nuget/bootstrap.less.nuspec +28 -0
  208. data/vendor/assets/bower_components/bootstrap/nuget/bootstrap.nuspec +28 -0
  209. data/vendor/assets/bower_components/bootstrap/package.js +32 -0
  210. data/vendor/assets/bower_components/bootstrap/package.json +87 -0
  211. data/vendor/assets/bower_components/jquery/AUTHORS.txt +275 -0
  212. data/vendor/assets/bower_components/jquery/LICENSE.txt +36 -0
  213. data/vendor/assets/bower_components/jquery/README.md +5 -0
  214. data/vendor/assets/bower_components/jquery/bower.json +14 -0
  215. data/vendor/assets/bower_components/jquery/dist/jquery.js +9831 -0
  216. data/vendor/assets/bower_components/jquery/dist/jquery.min.js +4 -0
  217. data/vendor/assets/bower_components/jquery/dist/jquery.min.map +1 -0
  218. data/vendor/assets/bower_components/jquery/src/ajax.js +845 -0
  219. data/vendor/assets/bower_components/jquery/src/ajax/jsonp.js +100 -0
  220. data/vendor/assets/bower_components/jquery/src/ajax/load.js +83 -0
  221. data/vendor/assets/bower_components/jquery/src/ajax/parseJSON.js +13 -0
  222. data/vendor/assets/bower_components/jquery/src/ajax/parseXML.js +27 -0
  223. data/vendor/assets/bower_components/jquery/src/ajax/script.js +68 -0
  224. data/vendor/assets/bower_components/jquery/src/ajax/var/location.js +3 -0
  225. data/vendor/assets/bower_components/jquery/src/ajax/var/nonce.js +5 -0
  226. data/vendor/assets/bower_components/jquery/src/ajax/var/rquery.js +3 -0
  227. data/vendor/assets/bower_components/jquery/src/ajax/xhr.js +167 -0
  228. data/vendor/assets/bower_components/jquery/src/attributes.js +11 -0
  229. data/vendor/assets/bower_components/jquery/src/attributes/attr.js +142 -0
  230. data/vendor/assets/bower_components/jquery/src/attributes/classes.js +177 -0
  231. data/vendor/assets/bower_components/jquery/src/attributes/prop.js +109 -0
  232. data/vendor/assets/bower_components/jquery/src/attributes/support.js +36 -0
  233. data/vendor/assets/bower_components/jquery/src/attributes/val.js +170 -0
  234. data/vendor/assets/bower_components/jquery/src/callbacks.js +232 -0
  235. data/vendor/assets/bower_components/jquery/src/core.js +489 -0
  236. data/vendor/assets/bower_components/jquery/src/core/access.js +65 -0
  237. data/vendor/assets/bower_components/jquery/src/core/init.js +134 -0
  238. data/vendor/assets/bower_components/jquery/src/core/parseHTML.js +49 -0
  239. data/vendor/assets/bower_components/jquery/src/core/ready.js +103 -0
  240. data/vendor/assets/bower_components/jquery/src/core/support.js +18 -0
  241. data/vendor/assets/bower_components/jquery/src/core/var/rsingleTag.js +5 -0
  242. data/vendor/assets/bower_components/jquery/src/css.js +515 -0
  243. data/vendor/assets/bower_components/jquery/src/css/addGetHookIf.js +24 -0
  244. data/vendor/assets/bower_components/jquery/src/css/adjustCSS.js +65 -0
  245. data/vendor/assets/bower_components/jquery/src/css/curCSS.js +57 -0
  246. data/vendor/assets/bower_components/jquery/src/css/defaultDisplay.js +72 -0
  247. data/vendor/assets/bower_components/jquery/src/css/hiddenVisibleSelectors.js +18 -0
  248. data/vendor/assets/bower_components/jquery/src/css/showHide.js +48 -0
  249. data/vendor/assets/bower_components/jquery/src/css/support.js +121 -0
  250. data/vendor/assets/bower_components/jquery/src/css/var/cssExpand.js +3 -0
  251. data/vendor/assets/bower_components/jquery/src/css/var/getStyles.js +15 -0
  252. data/vendor/assets/bower_components/jquery/src/css/var/isHidden.js +16 -0
  253. data/vendor/assets/bower_components/jquery/src/css/var/rmargin.js +3 -0
  254. data/vendor/assets/bower_components/jquery/src/css/var/rnumnonpx.js +5 -0
  255. data/vendor/assets/bower_components/jquery/src/css/var/swap.js +24 -0
  256. data/vendor/assets/bower_components/jquery/src/data.js +187 -0
  257. data/vendor/assets/bower_components/jquery/src/data/Data.js +200 -0
  258. data/vendor/assets/bower_components/jquery/src/data/accepts.js +20 -0
  259. data/vendor/assets/bower_components/jquery/src/data/support.js +23 -0
  260. data/vendor/assets/bower_components/jquery/src/data/var/acceptData.js +18 -0
  261. data/vendor/assets/bower_components/jquery/src/data/var/dataPriv.js +5 -0
  262. data/vendor/assets/bower_components/jquery/src/data/var/dataUser.js +5 -0
  263. data/vendor/assets/bower_components/jquery/src/deferred.js +158 -0
  264. data/vendor/assets/bower_components/jquery/src/deprecated.js +32 -0
  265. data/vendor/assets/bower_components/jquery/src/dimensions.js +54 -0
  266. data/vendor/assets/bower_components/jquery/src/effects.js +629 -0
  267. data/vendor/assets/bower_components/jquery/src/effects/Tween.js +121 -0
  268. data/vendor/assets/bower_components/jquery/src/effects/animatedSelector.js +13 -0
  269. data/vendor/assets/bower_components/jquery/src/effects/support.js +58 -0
  270. data/vendor/assets/bower_components/jquery/src/event.js +710 -0
  271. data/vendor/assets/bower_components/jquery/src/event/ajax.js +20 -0
  272. data/vendor/assets/bower_components/jquery/src/event/alias.js +27 -0
  273. data/vendor/assets/bower_components/jquery/src/event/focusin.js +53 -0
  274. data/vendor/assets/bower_components/jquery/src/event/support.js +9 -0
  275. data/vendor/assets/bower_components/jquery/src/event/trigger.js +199 -0
  276. data/vendor/assets/bower_components/jquery/src/exports/amd.js +24 -0
  277. data/vendor/assets/bower_components/jquery/src/exports/global.js +26 -0
  278. data/vendor/assets/bower_components/jquery/src/intro.js +44 -0
  279. data/vendor/assets/bower_components/jquery/src/jquery.js +37 -0
  280. data/vendor/assets/bower_components/jquery/src/manipulation.js +481 -0
  281. data/vendor/assets/bower_components/jquery/src/manipulation/_evalUrl.js +20 -0
  282. data/vendor/assets/bower_components/jquery/src/manipulation/buildFragment.js +102 -0
  283. data/vendor/assets/bower_components/jquery/src/manipulation/createSafeFragment.js +20 -0
  284. data/vendor/assets/bower_components/jquery/src/manipulation/getAll.js +21 -0
  285. data/vendor/assets/bower_components/jquery/src/manipulation/setGlobalEval.js +20 -0
  286. data/vendor/assets/bower_components/jquery/src/manipulation/support.js +33 -0
  287. data/vendor/assets/bower_components/jquery/src/manipulation/var/nodeNames.js +5 -0
  288. data/vendor/assets/bower_components/jquery/src/manipulation/var/rcheckableType.js +3 -0
  289. data/vendor/assets/bower_components/jquery/src/manipulation/var/rleadingWhitespace.js +3 -0
  290. data/vendor/assets/bower_components/jquery/src/manipulation/var/rscriptType.js +3 -0
  291. data/vendor/assets/bower_components/jquery/src/manipulation/var/rtagName.js +3 -0
  292. data/vendor/assets/bower_components/jquery/src/manipulation/wrapMap.js +27 -0
  293. data/vendor/assets/bower_components/jquery/src/offset.js +221 -0
  294. data/vendor/assets/bower_components/jquery/src/outro.js +2 -0
  295. data/vendor/assets/bower_components/jquery/src/queue.js +143 -0
  296. data/vendor/assets/bower_components/jquery/src/queue/delay.js +22 -0
  297. data/vendor/assets/bower_components/jquery/src/selector-native.js +211 -0
  298. data/vendor/assets/bower_components/jquery/src/selector-sizzle.js +14 -0
  299. data/vendor/assets/bower_components/jquery/src/selector.js +1 -0
  300. data/vendor/assets/bower_components/jquery/src/serialize.js +125 -0
  301. data/vendor/assets/bower_components/jquery/src/support.js +63 -0
  302. data/vendor/assets/bower_components/jquery/src/traversing.js +175 -0
  303. data/vendor/assets/bower_components/jquery/src/traversing/findFilter.js +100 -0
  304. data/vendor/assets/bower_components/jquery/src/traversing/var/dir.js +20 -0
  305. data/vendor/assets/bower_components/jquery/src/traversing/var/rneedsContext.js +6 -0
  306. data/vendor/assets/bower_components/jquery/src/traversing/var/siblings.js +15 -0
  307. data/vendor/assets/bower_components/jquery/src/var/arr.js +3 -0
  308. data/vendor/assets/bower_components/jquery/src/var/class2type.js +5 -0
  309. data/vendor/assets/bower_components/jquery/src/var/concat.js +5 -0
  310. data/vendor/assets/bower_components/jquery/src/var/deletedIds.js +3 -0
  311. data/vendor/assets/bower_components/jquery/src/var/document.js +3 -0
  312. data/vendor/assets/bower_components/jquery/src/var/documentElement.js +5 -0
  313. data/vendor/assets/bower_components/jquery/src/var/hasOwn.js +5 -0
  314. data/vendor/assets/bower_components/jquery/src/var/indexOf.js +5 -0
  315. data/vendor/assets/bower_components/jquery/src/var/pnum.js +3 -0
  316. data/vendor/assets/bower_components/jquery/src/var/push.js +5 -0
  317. data/vendor/assets/bower_components/jquery/src/var/rcssNum.js +7 -0
  318. data/vendor/assets/bower_components/jquery/src/var/rnotwhite.js +3 -0
  319. data/vendor/assets/bower_components/jquery/src/var/slice.js +5 -0
  320. data/vendor/assets/bower_components/jquery/src/var/support.js +5 -0
  321. data/vendor/assets/bower_components/jquery/src/var/toString.js +5 -0
  322. data/vendor/assets/bower_components/jquery/src/wrap.js +79 -0
  323. data/vendor/assets/bower_components/jsoneditor/CONTRIBUTING.md +15 -0
  324. data/vendor/assets/bower_components/jsoneditor/HISTORY.md +457 -0
  325. data/vendor/assets/bower_components/jsoneditor/LICENSE +176 -0
  326. data/vendor/assets/bower_components/jsoneditor/NOTICE +17 -0
  327. data/vendor/assets/bower_components/jsoneditor/README.md +155 -0
  328. data/vendor/assets/bower_components/jsoneditor/bower.json +32 -0
  329. data/vendor/assets/bower_components/jsoneditor/dist/img/jsoneditor-icons.svg +893 -0
  330. data/vendor/assets/bower_components/jsoneditor/dist/jsoneditor-minimalist.js +9418 -0
  331. data/vendor/assets/bower_components/jsoneditor/dist/jsoneditor-minimalist.map +1 -0
  332. data/vendor/assets/bower_components/jsoneditor/dist/jsoneditor-minimalist.min.js +35 -0
  333. data/vendor/assets/bower_components/jsoneditor/dist/jsoneditor.css.less +879 -0
  334. data/vendor/assets/bower_components/jsoneditor/dist/jsoneditor.js +35095 -0
  335. data/vendor/assets/bower_components/jsoneditor/dist/jsoneditor.map +1 -0
  336. data/vendor/assets/bower_components/jsoneditor/dist/jsoneditor.min.css +1 -0
  337. data/vendor/assets/bower_components/jsoneditor/dist/jsoneditor.min.js +48 -0
  338. data/vendor/assets/bower_components/jsoneditor/dist/which files do I need.md +41 -0
  339. data/vendor/assets/bower_components/jsoneditor/docs/api.md +286 -0
  340. data/vendor/assets/bower_components/jsoneditor/docs/shortcut_keys.md +38 -0
  341. data/vendor/assets/bower_components/jsoneditor/docs/usage.md +117 -0
  342. data/vendor/assets/bower_components/jsoneditor/examples/01_basic_usage.html +49 -0
  343. data/vendor/assets/bower_components/jsoneditor/examples/02_viewer.html +44 -0
  344. data/vendor/assets/bower_components/jsoneditor/examples/03_switch_mode.html +66 -0
  345. data/vendor/assets/bower_components/jsoneditor/examples/04_load_and_save.html +62 -0
  346. data/vendor/assets/bower_components/jsoneditor/examples/05_custom_fields_editable.html +63 -0
  347. data/vendor/assets/bower_components/jsoneditor/examples/06_custom_styling.html +51 -0
  348. data/vendor/assets/bower_components/jsoneditor/examples/07_json_schema_validation.html +71 -0
  349. data/vendor/assets/bower_components/jsoneditor/examples/css/darktheme.css +76 -0
  350. data/vendor/assets/bower_components/jsoneditor/examples/requirejs_demo/requirejs_demo.html +21 -0
  351. data/vendor/assets/bower_components/jsoneditor/examples/requirejs_demo/scripts/main.js +25 -0
  352. data/vendor/assets/bower_components/jsoneditor/examples/requirejs_demo/scripts/require.js +36 -0
  353. data/vendor/assets/bower_components/jsoneditor/index.js +1 -0
  354. data/vendor/assets/bower_components/jsoneditor/package.json +41 -0
  355. data/vendor/assets/bower_components/jsoneditor/src/css/contextmenu.css +233 -0
  356. data/vendor/assets/bower_components/jsoneditor/src/css/img/description.txt +14 -0
  357. data/vendor/assets/bower_components/jsoneditor/src/css/img/jsoneditor-icons.svg +893 -0
  358. data/vendor/assets/bower_components/jsoneditor/src/css/jsoneditor.css +433 -0
  359. data/vendor/assets/bower_components/jsoneditor/src/css/menu.css +110 -0
  360. data/vendor/assets/bower_components/jsoneditor/src/css/searchbox.css +75 -0
  361. data/vendor/assets/bower_components/jsoneditor/src/docs/which files do I need.md +41 -0
  362. data/vendor/assets/bower_components/jsoneditor/src/js/ContextMenu.js +455 -0
  363. data/vendor/assets/bower_components/jsoneditor/src/js/Highlighter.js +84 -0
  364. data/vendor/assets/bower_components/jsoneditor/src/js/History.js +252 -0
  365. data/vendor/assets/bower_components/jsoneditor/src/js/JSONEditor.js +371 -0
  366. data/vendor/assets/bower_components/jsoneditor/src/js/Node.js +3400 -0
  367. data/vendor/assets/bower_components/jsoneditor/src/js/SearchBox.js +295 -0
  368. data/vendor/assets/bower_components/jsoneditor/src/js/ace/index.js +9 -0
  369. data/vendor/assets/bower_components/jsoneditor/src/js/ace/theme-jsoneditor.js +144 -0
  370. data/vendor/assets/bower_components/jsoneditor/src/js/appendNodeFactory.js +226 -0
  371. data/vendor/assets/bower_components/jsoneditor/src/js/assets/jsonlint/README.md +15 -0
  372. data/vendor/assets/bower_components/jsoneditor/src/js/assets/jsonlint/jsonlint.js +418 -0
  373. data/vendor/assets/bower_components/jsoneditor/src/js/header.js +29 -0
  374. data/vendor/assets/bower_components/jsoneditor/src/js/modeswitcher.js +105 -0
  375. data/vendor/assets/bower_components/jsoneditor/src/js/textmode.js +474 -0
  376. data/vendor/assets/bower_components/jsoneditor/src/js/treemode.js +1150 -0
  377. data/vendor/assets/bower_components/jsoneditor/src/js/util.js +765 -0
  378. data/vendor/assets/bower_components/notifyjs/CHANGES.md +7 -0
  379. data/vendor/assets/bower_components/notifyjs/README.md +31 -0
  380. data/vendor/assets/bower_components/notifyjs/bower.json +14 -0
  381. data/vendor/assets/bower_components/notifyjs/dist/notify.js +586 -0
  382. data/vendor/assets/bower_components/notifyjs/dist/styles/metro/notify-metro.css +40 -0
  383. data/vendor/assets/bower_components/notifyjs/dist/styles/metro/notify-metro.js +39 -0
  384. data/vendor/assets/bower_components/notifyjs/examples/classes.html +49 -0
  385. data/vendor/assets/bower_components/notifyjs/examples/images/Mail.png +0 -0
  386. data/vendor/assets/bower_components/notifyjs/examples/inlines.html +111 -0
  387. data/vendor/assets/bower_components/notifyjs/examples/metro.html +37 -0
  388. data/vendor/assets/bower_components/notifyjs/examples/multi-text.html +55 -0
  389. data/vendor/assets/bower_components/notifyjs/examples/position.html +42 -0
  390. data/vendor/assets/bower_components/notifyjs/notify.jquery.json +28 -0
  391. data/vendor/assets/bower_components/notifyjs/package.json +18 -0
  392. data/vendor/assets/bower_components/vue/LICENSE +21 -0
  393. data/vendor/assets/bower_components/vue/bower.json +19 -0
  394. data/vendor/assets/bower_components/vue/dist/vue.js +10198 -0
  395. data/vendor/assets/bower_components/vue/dist/vue.min.js +8 -0
  396. data/vendor/assets/bower_components/vue/src/api/child.js +49 -0
  397. data/vendor/assets/bower_components/vue/src/api/data.js +159 -0
  398. data/vendor/assets/bower_components/vue/src/api/dom.js +226 -0
  399. data/vendor/assets/bower_components/vue/src/api/events.js +174 -0
  400. data/vendor/assets/bower_components/vue/src/api/global.js +129 -0
  401. data/vendor/assets/bower_components/vue/src/api/lifecycle.js +68 -0
  402. data/vendor/assets/bower_components/vue/src/batcher.js +98 -0
  403. data/vendor/assets/bower_components/vue/src/cache.js +112 -0
  404. data/vendor/assets/bower_components/vue/src/compiler/compile-props.js +183 -0
  405. data/vendor/assets/bower_components/vue/src/compiler/compile.js +630 -0
  406. data/vendor/assets/bower_components/vue/src/compiler/index.js +4 -0
  407. data/vendor/assets/bower_components/vue/src/compiler/transclude.js +144 -0
  408. data/vendor/assets/bower_components/vue/src/config.js +124 -0
  409. data/vendor/assets/bower_components/vue/src/directive.js +254 -0
  410. data/vendor/assets/bower_components/vue/src/directives/attr.js +59 -0
  411. data/vendor/assets/bower_components/vue/src/directives/class.js +70 -0
  412. data/vendor/assets/bower_components/vue/src/directives/cloak.js +10 -0
  413. data/vendor/assets/bower_components/vue/src/directives/component.js +344 -0
  414. data/vendor/assets/bower_components/vue/src/directives/el.js +12 -0
  415. data/vendor/assets/bower_components/vue/src/directives/html.js +40 -0
  416. data/vendor/assets/bower_components/vue/src/directives/if.js +125 -0
  417. data/vendor/assets/bower_components/vue/src/directives/index.js +24 -0
  418. data/vendor/assets/bower_components/vue/src/directives/model/checkbox.js +42 -0
  419. data/vendor/assets/bower_components/vue/src/directives/model/index.js +82 -0
  420. data/vendor/assets/bower_components/vue/src/directives/model/radio.js +33 -0
  421. data/vendor/assets/bower_components/vue/src/directives/model/select.js +236 -0
  422. data/vendor/assets/bower_components/vue/src/directives/model/text.js +132 -0
  423. data/vendor/assets/bower_components/vue/src/directives/on.js +59 -0
  424. data/vendor/assets/bower_components/vue/src/directives/prop.js +62 -0
  425. data/vendor/assets/bower_components/vue/src/directives/ref.js +22 -0
  426. data/vendor/assets/bower_components/vue/src/directives/repeat.js +770 -0
  427. data/vendor/assets/bower_components/vue/src/directives/show.js +8 -0
  428. data/vendor/assets/bower_components/vue/src/directives/style.js +110 -0
  429. data/vendor/assets/bower_components/vue/src/directives/text.js +14 -0
  430. data/vendor/assets/bower_components/vue/src/directives/transition.js +26 -0
  431. data/vendor/assets/bower_components/vue/src/element-directives/content.js +111 -0
  432. data/vendor/assets/bower_components/vue/src/element-directives/index.js +2 -0
  433. data/vendor/assets/bower_components/vue/src/element-directives/partial.js +73 -0
  434. data/vendor/assets/bower_components/vue/src/filters/array-filters.js +97 -0
  435. data/vendor/assets/bower_components/vue/src/filters/index.js +146 -0
  436. data/vendor/assets/bower_components/vue/src/instance/compile.js +200 -0
  437. data/vendor/assets/bower_components/vue/src/instance/events.js +139 -0
  438. data/vendor/assets/bower_components/vue/src/instance/init.js +89 -0
  439. data/vendor/assets/bower_components/vue/src/instance/misc.js +93 -0
  440. data/vendor/assets/bower_components/vue/src/instance/scope.js +282 -0
  441. data/vendor/assets/bower_components/vue/src/observer/array.js +98 -0
  442. data/vendor/assets/bower_components/vue/src/observer/dep.js +61 -0
  443. data/vendor/assets/bower_components/vue/src/observer/index.js +234 -0
  444. data/vendor/assets/bower_components/vue/src/observer/object.js +82 -0
  445. data/vendor/assets/bower_components/vue/src/parsers/directive.js +180 -0
  446. data/vendor/assets/bower_components/vue/src/parsers/expression.js +264 -0
  447. data/vendor/assets/bower_components/vue/src/parsers/path.js +348 -0
  448. data/vendor/assets/bower_components/vue/src/parsers/template.js +288 -0
  449. data/vendor/assets/bower_components/vue/src/parsers/text.js +178 -0
  450. data/vendor/assets/bower_components/vue/src/transition/index.js +128 -0
  451. data/vendor/assets/bower_components/vue/src/transition/queue.js +35 -0
  452. data/vendor/assets/bower_components/vue/src/transition/transition.js +357 -0
  453. data/vendor/assets/bower_components/vue/src/util/component.js +124 -0
  454. data/vendor/assets/bower_components/vue/src/util/debug.js +64 -0
  455. data/vendor/assets/bower_components/vue/src/util/dom.js +272 -0
  456. data/vendor/assets/bower_components/vue/src/util/env.js +85 -0
  457. data/vendor/assets/bower_components/vue/src/util/index.js +9 -0
  458. data/vendor/assets/bower_components/vue/src/util/lang.js +310 -0
  459. data/vendor/assets/bower_components/vue/src/util/options.js +357 -0
  460. data/vendor/assets/bower_components/vue/src/vue.js +89 -0
  461. data/vendor/assets/bower_components/vue/src/watcher.js +312 -0
  462. metadata +870 -0
@@ -0,0 +1,8 @@
1
+ /*!
2
+ * Vue.js v0.12.16
3
+ * (c) 2015 Evan You
4
+ * Released under the MIT License.
5
+ */
6
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Vue=e():t.Vue=e()}(this,function(){return function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return t[i].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){function i(t){this._init(t)}var r=n(1),s=r.extend;s(i,n(9)),i.options={replace:!0,directives:n(25),elementDirectives:n(47),filters:n(50),transitions:{},components:{},partials:{}};var o=i.prototype;Object.defineProperty(o,"$data",{get:function(){return this._data},set:function(t){t!==this._data&&this._setData(t)}}),s(o,n(52)),s(o,n(53)),s(o,n(54)),s(o,n(58)),s(o,n(60)),s(o,n(61)),s(o,n(62)),s(o,n(63)),s(o,n(64)),s(o,n(65)),t.exports=r.Vue=i},function(t,e,n){var i=n(2),r=i.extend;r(e,i),r(e,n(3)),r(e,n(4)),r(e,n(6)),r(e,n(7)),r(e,n(8))},function(t,e){function n(t,e){return e?e.toUpperCase():""}e.isReserved=function(t){var e=(t+"").charCodeAt(0);return 36===e||95===e},e.toString=function(t){return null==t?"":t.toString()},e.toNumber=function(t){if("string"!=typeof t)return t;var e=Number(t);return isNaN(e)?t:e},e.toBoolean=function(t){return"true"===t?!0:"false"===t?!1:t},e.stripQuotes=function(t){var e=t.charCodeAt(0),n=t.charCodeAt(t.length-1);return e!==n||34!==e&&39!==e?!1:t.slice(1,-1)},e.camelize=function(t){return t.replace(/-(\w)/g,n)},e.hyphenate=function(t){return t.replace(/([a-z\d])([A-Z])/g,"$1-$2").toLowerCase()};var i=/(?:^|[-_\/])(\w)/g;e.classify=function(t){return t.replace(i,n)},e.bind=function(t,e){return function(n){var i=arguments.length;return i?i>1?t.apply(e,arguments):t.call(e,n):t.call(e)}},e.toArray=function(t,e){e=e||0;for(var n=t.length-e,i=new Array(n);n--;)i[n]=t[n+e];return i},e.extend=function(t,e){for(var n in e)t[n]=e[n];return t},e.isObject=function(t){return null!==t&&"object"==typeof t};var r=Object.prototype.toString,s="[object Object]";e.isPlainObject=function(t){return r.call(t)===s},e.isArray=Array.isArray,e.define=function(t,e,n,i){Object.defineProperty(t,e,{value:n,enumerable:!!i,writable:!0,configurable:!0})},e.debounce=function(t,e){var n,i,r,s,o,a=function(){var h=Date.now()-s;e>h&&h>=0?n=setTimeout(a,e-h):(n=null,o=t.apply(r,i),n||(r=i=null))};return function(){return r=this,i=arguments,s=Date.now(),n||(n=setTimeout(a,e)),o}},e.indexOf=function(t,e){for(var n=t.length;n--;)if(t[n]===e)return n;return-1},e.cancellable=function(t){var e=function(){return e.cancelled?void 0:t.apply(this,arguments)};return e.cancel=function(){e.cancelled=!0},e},e.looseEqual=function(t,n){return t==n||(e.isObject(t)&&e.isObject(n)?JSON.stringify(t)===JSON.stringify(n):!1)}},function(t,e){e.hasProto="__proto__"in{};var n=e.inBrowser="undefined"!=typeof window&&"[object Object]"!==Object.prototype.toString.call(window);if(e.isIE9=n&&navigator.userAgent.toLowerCase().indexOf("msie 9.0")>0,e.isAndroid=n&&navigator.userAgent.toLowerCase().indexOf("android")>0,n&&!e.isIE9){var i=void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend,r=void 0===window.onanimationend&&void 0!==window.onwebkitanimationend;e.transitionProp=i?"WebkitTransition":"transition",e.transitionEndEvent=i?"webkitTransitionEnd":"transitionend",e.animationProp=r?"WebkitAnimation":"animation",e.animationEndEvent=r?"webkitAnimationEnd":"animationend"}e.nextTick=function(){function t(){i=!1;var t=n.slice(0);n=[];for(var e=0;e<t.length;e++)t[e]()}var e,n=[],i=!1;if("undefined"!=typeof MutationObserver){var r=1,s=new MutationObserver(t),o=document.createTextNode(r);s.observe(o,{characterData:!0}),e=function(){r=(r+1)%2,o.data=r}}else e=setTimeout;return function(r,s){var o=s?function(){r.call(s)}:r;n.push(o),i||(i=!0,e(t,0))}}()},function(t,e,n){function i(t,e){e&&3===e.nodeType&&!e.data.trim()&&t.removeChild(e)}var r=(n(1),n(5));e.query=function(t){if("string"==typeof t){t=document.querySelector(t)}return t},e.inDoc=function(t){var e=document.documentElement,n=t&&t.parentNode;return e===t||e===n||!(!n||1!==n.nodeType||!e.contains(n))},e.attr=function(t,e){e=r.prefix+e;var n=t.getAttribute(e);return null!==n&&t.removeAttribute(e),n},e.before=function(t,e){e.parentNode.insertBefore(t,e)},e.after=function(t,n){n.nextSibling?e.before(t,n.nextSibling):n.parentNode.appendChild(t)},e.remove=function(t){t.parentNode.removeChild(t)},e.prepend=function(t,n){n.firstChild?e.before(t,n.firstChild):n.appendChild(t)},e.replace=function(t,e){var n=t.parentNode;n&&n.replaceChild(e,t)},e.on=function(t,e,n){t.addEventListener(e,n)},e.off=function(t,e,n){t.removeEventListener(e,n)},e.addClass=function(t,e){if(t.classList)t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}},e.removeClass=function(t,e){if(t.classList)t.classList.remove(e);else{for(var n=" "+(t.getAttribute("class")||"")+" ",i=" "+e+" ";n.indexOf(i)>=0;)n=n.replace(i," ");t.setAttribute("class",n.trim())}},e.extractContent=function(t,n){var i,r;if(e.isTemplate(t)&&t.content instanceof DocumentFragment&&(t=t.content),t.hasChildNodes())for(e.trimNode(t),r=n?document.createDocumentFragment():document.createElement("div");i=t.firstChild;)r.appendChild(i);return r},e.trimNode=function(t){i(t,t.firstChild),i(t,t.lastChild)},e.isTemplate=function(t){return t.tagName&&"template"===t.tagName.toLowerCase()},e.createAnchor=function(t,e){return r.debug?document.createComment(t):document.createTextNode(e?" ":"")}},function(t,e){t.exports={prefix:"v-",debug:!1,strict:!1,silent:!1,proto:!0,interpolate:!0,async:!0,warnExpressionErrors:!0,_delimitersChanged:!0,_assetTypes:["component","directive","elementDirective","filter","transition","partial"],_propBindingModes:{ONE_WAY:0,TWO_WAY:1,ONE_TIME:2},_maxUpdateCount:100};var n=["{{","}}"];Object.defineProperty(t.exports,"delimiters",{get:function(){return n},set:function(t){n=t,this._delimitersChanged=!0}})},function(t,e,n){function i(t,e){var n,r,s;for(n in e)r=t[n],s=e[n],t.hasOwnProperty(n)?h.isObject(r)&&h.isObject(s)&&i(r,s):t.$add(n,s);return t}function r(t,e){var n=Object.create(t);return e?l(n,a(e)):n}function s(t){if(t.components)for(var e,n=t.components=a(t.components),i=Object.keys(n),r=0,s=i.length;s>r;r++){var o=i[r];h.commonTagRE.test(o)||(e=n[o],h.isPlainObject(e)&&(e.id=e.id||o,n[o]=e._Ctor||(e._Ctor=h.Vue.extend(e))))}}function o(t){var e=t.props;h.isPlainObject(e)?t.props=Object.keys(e).map(function(t){var n=e[t];return h.isPlainObject(n)||(n={type:n}),n.name=t,n}):h.isArray(e)&&(t.props=e.map(function(t){return"string"==typeof t?{name:t}:t}))}function a(t){if(h.isArray(t)){for(var e,n={},i=t.length;i--;){e=t[i];var r=e.id||e.options&&e.options.id;r&&(n[r]=e)}return n}return t}var h=n(1),c=n(5),l=h.extend,u=c.optionMergeStrategies=Object.create(null);u.data=function(t,e,n){return n?t||e?function(){var r="function"==typeof e?e.call(n):e,s="function"==typeof t?t.call(n):void 0;return r?i(r,s):s}:void 0:e?"function"!=typeof e?t:t?function(){return i(e.call(this),t.call(this))}:e:t},u.el=function(t,e,n){if(n||!e||"function"==typeof e){var i=e||t;return n&&"function"==typeof i?i.call(n):i}},u.created=u.ready=u.attached=u.detached=u.beforeCompile=u.compiled=u.beforeDestroy=u.destroyed=u.props=function(t,e){return e?t?t.concat(e):h.isArray(e)?e:[e]:t},u.paramAttributes=function(){},c._assetTypes.forEach(function(t){u[t+"s"]=r}),u.watch=u.events=function(t,e){if(!e)return t;if(!t)return e;var n={};l(n,t);for(var i in e){var r=n[i],s=e[i];r&&!h.isArray(r)&&(r=[r]),n[i]=r?r.concat(s):[s]}return n},u.methods=u.computed=function(t,e){if(!e)return t;if(!t)return e;var n=Object.create(t);return l(n,e),n};var f=function(t,e){return void 0===e?t:e};e.mergeOptions=function p(t,e,n){function i(i){var r=u[i]||f;a[i]=r(t[i],e[i],n,i)}s(e),o(e);var r,a={};if(e.mixins)for(var h=0,c=e.mixins.length;c>h;h++)t=p(t,e.mixins[h],n);for(r in t)i(r);for(r in e)t.hasOwnProperty(r)||i(r);return a},e.resolveAsset=function(t,e,n){for(var i=h.camelize(n),r=i.charAt(0).toUpperCase()+i.slice(1),s=t[e],o=s[n]||s[i]||s[r];!o&&t._parent&&(!c.strict||t._repeat);)t=(t._context||t._parent).$options,s=t[e],o=s[n]||s[i]||s[r];return o}},function(t,e,n){var i=n(1);e.commonTagRE=/^(div|p|span|img|a|br|ul|ol|li|h1|h2|h3|h4|h5|code|pre)$/,e.checkComponent=function(t,n){var r=t.tagName.toLowerCase();if("component"===r){var s=t.getAttribute("is");return t.removeAttribute("is"),s}return!e.commonTagRE.test(r)&&i.resolveAsset(n,"components",r)?r:(r=i.attr(t,"component"))?r:void 0},e.initProp=function(t,n,r){if(e.assertProp(n,r)){var s=n.path;s in t?i.define(t,s,r,!0):t[s]=r,t._data[s]=r}},e.assertProp=function(t,e){if(null===t.raw&&!t.required)return!0;var n,r=t.options,s=r.type,o=!0;if(s&&(s===String?(n="string",o=typeof e===n):s===Number?(n="number",o="number"==typeof e):s===Boolean?(n="boolean",o="boolean"==typeof e):s===Function?(n="function",o="function"==typeof e):s===Object?(n="object",o=i.isPlainObject(e)):s===Array?(n="array",o=i.isArray(e)):o=e instanceof s),!o)return!1;var a=r.validator;return a&&!a.call(null,e)?!1:!0}},function(t,e,n){},function(t,e,n){function i(t){return new Function("return function "+r.classify(t)+" (options) { this._init(options) }")()}var r=n(1),s=n(5);e.util=r,e.config=s,e.nextTick=r.nextTick,e.compiler=n(10),e.parsers={path:n(20),text:n(13),template:n(22),directive:n(15),expression:n(19)},e.cid=0;var o=1;e.extend=function(t){t=t||{};var e=this,n=i(t.name||e.options.name||"VueComponent");return n.prototype=Object.create(e.prototype),n.prototype.constructor=n,n.cid=o++,n.options=r.mergeOptions(e.options,t),n["super"]=e,n.extend=e.extend,s._assetTypes.forEach(function(t){n[t]=e[t]}),n},e.use=function(t){var e=r.toArray(arguments,1);return e.unshift(this),"function"==typeof t.install?t.install.apply(t,e):t.apply(null,e),this},e.mixin=function(t){var e=r.Vue;e.options=r.mergeOptions(e.options,t)},s._assetTypes.forEach(function(t){e[t]=function(e,n){return n?("component"===t&&r.isPlainObject(n)&&(n.name=e,n=r.Vue.extend(n)),void(this.options[t+"s"][e]=n)):this.options[t+"s"][e]}})},function(t,e,n){var i=n(1);i.extend(e,n(11)),i.extend(e,n(24))},function(t,e,n){function i(t,e){var n=e._directives.length;return t(),e._directives.slice(n)}function r(t,e,n,i){return function(r){s(t,e,r),n&&i&&s(n,i)}}function s(t,e,n){for(var i=e.length;i--;)e[i]._teardown(),n||t._directives.$remove(e[i])}function o(t,e){var n=t.nodeType;return 1===n&&"SCRIPT"!==t.tagName?a(t,e):3===n&&k.interpolate&&t.data.trim()?h(t,e):null}function a(t,e){"TEXTAREA"===t.tagName&&x.parse(t.value)&&t.setAttribute("value",t.value);var n,i=t.hasAttributes();return i&&(n=v(t,e)),n||(n=p(t,e)),n||(n=d(t,e)),!n&&i&&(n=_(t.attributes,e)),n}function h(t,e){var n=x.parse(t.data);if(!n)return null;for(var i,r,s=document.createDocumentFragment(),o=0,a=n.length;a>o;o++)r=n[o],i=r.tag?c(r,e):document.createTextNode(r.value),s.appendChild(i);return l(n,s,e)}function c(t,e){function n(n){t.type=n,t.def=E(e,"directives",n),t.descriptor=A.parse(t.value)[0]}var i;return t.oneTime?i=document.createTextNode(t.value):t.html?(i=document.createComment("v-html"),n("html")):(i=document.createTextNode(" "),n("text")),i}function l(t,e){return function(n,i){for(var r,s,o,a=e.cloneNode(!0),h=$.toArray(a.childNodes),c=0,l=t.length;l>c;c++)r=t[c],s=r.value,r.tag&&(o=h[c],r.oneTime?(s=n.$eval(s),r.html?$.replace(o,O.parse(s,!0)):o.data=s):n._bindDir(r.type,o,r.descriptor,r.def));$.replace(i,a)}}function u(t,e){for(var n,i,r,s=[],a=0,h=t.length;h>a;a++)r=t[a],n=o(r,e),i=n&&n.terminal||"SCRIPT"===r.tagName||!r.hasChildNodes()?null:u(r.childNodes,e),s.push(n,i);return s.length?f(s):null}function f(t){return function(e,n,i){for(var r,s,o,a=0,h=0,c=t.length;c>a;h++){r=n[h],s=t[a++],o=t[a++];var l=$.toArray(r.childNodes);s&&s(e,r,i),o&&o(e,l,i)}}}function p(t,e){var n=t.tagName.toLowerCase();if(!$.commonTagRE.test(n)){var i=E(e,"elementDirectives",n);return i?g(t,n,"",e,i):void 0}}function d(t,e,n){var i=$.checkComponent(t,e,n);if(i){var r=function(t,e,n){t._bindDir("component",e,{expression:i},T,n)};return r.terminal=!0,r}}function v(t,e){if(null!==$.attr(t,"pre"))return m;for(var n,i,r=0,s=P.length;s>r;r++)if(i=P[r],null!==(n=$.attr(t,i)))return g(t,i,n,e)}function m(){}function g(t,e,n,i,r){var s=A.parse(n)[0];r=r||i.directives[e];var o=function(t,n,i){t._bindDir(e,n,s,r,i)};return o.terminal=!0,o}function _(t,e){for(var n,i,r,s,o,a,h=t.length,c=[];h--;)n=t[h],i=n.name,r=n.value,0===i.indexOf(k.prefix)?(o=i.slice(k.prefix.length),a=E(e,"directives",o),a&&c.push({name:o,descriptors:A.parse(r),def:a})):k.interpolate&&(s=y(i,r,e),s&&c.push(s));return c.length?(c.sort(C),b(c)):void 0}function b(t){return function(e,n,i){for(var r,s,o,a=t.length;a--;)if(r=t[a],r._link)r._link(e,n);else for(o=r.descriptors.length,s=0;o>s;s++)e._bindDir(r.name,n,r.descriptors[s],r.def,i)}}function y(t,e,n){var i=x.parse(e),r="class"===t;if(i){for(var s=r?"class":"attr",o=n.directives[s],a=i.length,h=!0;a--;){var c=i[a];c.tag&&!c.oneTime&&(h=!1)}var l;return l=h?function(n,i){i.setAttribute(t,n.$interpolate(e))}:function(n,a){var h=x.tokensToExp(i,n),c=r?A.parse(h)[0]:A.parse(t+":"+h)[0];r&&(c._rawClass=e),n._bindDir(s,a,c,o)},{def:o,_link:l}}}function C(t,e){return t=t.def.priority||0,e=e.def.priority||0,t>e?1:-1}var $=n(1),w=n(12),k=n(5),x=n(13),A=n(15),O=n(22),E=$.resolveAsset,T=n(23),P=["repeat","if"];e.compile=function(t,e,n){var s=n||!e._asComponent?o(t,e):null,a=s&&s.terminal||"SCRIPT"===t.tagName||!t.hasChildNodes()?null:u(t.childNodes,e);return function(t,e,n){var o=$.toArray(e.childNodes),h=i(function(){s&&s(t,e,n),a&&a(t,o,n)},t);return r(t,h)}},e.compileAndLinkProps=function(t,e,n){var s=w(e,n),o=i(function(){s(t,null)},t);return r(t,o)},e.compileRoot=function(t,e){var n,s,o=e._containerAttrs,a=e._replacerAttrs;return 11!==t.nodeType&&(e._asComponent?(o&&(n=_(o,e)),a&&(s=_(a,e))):s=_(t.attributes,e)),function(t,e){var o,a=t._context;a&&n&&(o=i(function(){n(a,e)},a));var h=i(function(){s&&s(t,e)},t);return r(t,h,a,o)}},m.terminal=!0},function(t,e,n){function i(t){return function(e,n){e._props={};for(var i,o,c,l,u=t.length;u--;)if(i=t[u],o=i.path,e._props[o]=i,c=i.options,null===i.raw)s.initProp(e,i,r(c));else if(i.dynamic)e._context&&(i.mode===h.ONE_TIME?(l=e._context.$get(i.parentPath),s.initProp(e,i,l)):e._bindDir("prop",n,i,a));else{var f=i.raw;l=c.type===Boolean&&""===f?!0:f.trim()?s.toBoolean(s.toNumber(f)):f,s.initProp(e,i,l)}}}function r(t){if(!t.hasOwnProperty("default"))return t.type===Boolean?!1:void 0;var e=t["default"];return s.isObject(e),"function"==typeof e&&t.type!==Function?e():e}var s=n(1),o=n(13),a=n(16),h=n(5)._propBindingModes,c=n(20).identRE,l=/^data-/,u=/^[A-Za-z_$][\w$]*(\.[A-Za-z_$][\w$]*|\[[^\[\]]+\])*$/,f=/^(true|false)$|^\d.*/;t.exports=function(t,e){for(var n,r,a,p,d,v,m,g,_=[],b=e.length;b--;)if(n=e[b],r=n.name,d=s.camelize(r.replace(l,"")),c.test(d)){if(a=s.hyphenate(r),p=t.getAttribute(a),null===p&&(a="data-"+a,p=t.getAttribute(a)),v={name:r,raw:p,path:d,options:n,mode:h.ONE_WAY},null!==p){t.removeAttribute(a);var y=o.parse(p);y&&(v.dynamic=!0,v.parentPath=o.tokensToExp(y),g=1===y.length,m=f.test(v.parentPath),m||g&&y[0].oneTime?v.mode=h.ONE_TIME:!m&&g&&y[0].twoWay&&u.test(v.parentPath)&&(v.mode=h.TWO_WAY))}else n&&n.required;_.push(v)}return i(_)}},function(t,e,n){function i(t){return t.replace(v,"\\$&")}function r(){p._delimitersChanged=!1;var t=p.delimiters[0],e=p.delimiters[1];l=t.charAt(0),u=e.charAt(e.length-1);var n=i(l),r=i(u),s=i(t),o=i(e);h=new RegExp(n+"?"+s+"(.+?)"+o+r+"?","g"),c=new RegExp("^"+n+s+".*"+o+r+"$"),a=new f(1e3)}function s(t,e,n){return t.tag?e&&t.oneTime?'"'+e.$eval(t.value)+'"':o(t.value,n):'"'+t.value+'"'}function o(t,e){if(m.test(t)){var n=d.parse(t)[0];return n.filters?"this._applyFilters("+n.expression+",null,"+JSON.stringify(n.filters)+",false)":"("+t+")"}return e?t:"("+t+")"}var a,h,c,l,u,f=n(14),p=n(5),d=n(15),v=/[-.*+?^${}()|[\]\/\\]/g;e.parse=function(t){p._delimitersChanged&&r();var e=a.get(t);if(e)return e;if(t=t.replace(/\n/g,""),!h.test(t))return null;for(var n,i,s,o,l,u,f=[],d=h.lastIndex=0;n=h.exec(t);)i=n.index,i>d&&f.push({value:t.slice(d,i)}),o=n[1].charCodeAt(0),l=42===o,u=64===o,s=l||u?n[1].slice(1):n[1],f.push({tag:!0,value:s.trim(),html:c.test(n[0]),oneTime:l,twoWay:u}),d=i+n[0].length;return d<t.length&&f.push({value:t.slice(d)}),a.put(t,f),f},e.tokensToExp=function(t,e){return t.length>1?t.map(function(t){return s(t,e)}).join("+"):s(t[0],e,!0)};var m=/[^|]\|[^|]/},function(t,e){function n(t){this.size=0,this.limit=t,this.head=this.tail=void 0,this._keymap=Object.create(null)}var i=n.prototype;i.put=function(t,e){var n={key:t,value:e};return this._keymap[t]=n,this.tail?(this.tail.newer=n,n.older=this.tail):this.head=n,this.tail=n,this.size===this.limit?this.shift():void this.size++},i.shift=function(){var t=this.head;return t&&(this.head=this.head.newer,this.head.older=void 0,t.newer=t.older=void 0,this._keymap[t.key]=void 0),t},i.get=function(t,e){var n=this._keymap[t];if(void 0!==n)return n===this.tail?e?n:n.value:(n.newer&&(n===this.head&&(this.head=n.newer),n.newer.older=n.older),n.older&&(n.older.newer=n.newer),n.newer=void 0,n.older=this.tail,this.tail&&(this.tail.newer=n),this.tail=n,e?n:n.value)},t.exports=n},function(t,e,n){function i(){_.raw=o.slice(v,h).trim(),void 0===_.expression?_.expression=o.slice(m,h).trim():b!==v&&r(),(0===h||_.expression)&&g.push(_)}function r(){var t,e=o.slice(b,h).trim();if(e){t={};var n=e.match(x);t.name=n[0],n.length>1&&(t.args=n.slice(1).map(s))}t&&(_.filters=_.filters||[]).push(t),b=h+1}function s(t){var e=A.test(t)?t:C.stripQuotes(t),n=e===!1;return{value:n?t:e,dynamic:n}}var o,a,h,c,l,u,f,p,d,v,m,g,_,b,y,C=n(1),$=n(14),w=new $(1e3),k=/^[^\{\?]+$|^'[^']*'$|^"[^"]*"$/,x=/[^\s'"]+|'[^']*'|"[^"]*"/g,A=/^in$|^-?\d+/;e.parse=function(t){var e=w.get(t);if(e)return e;for(o=t,l=u=!1,f=p=d=v=m=0,b=0,g=[],_={},y=null,h=0,c=o.length;c>h;h++)if(a=o.charCodeAt(h),l)39===a&&(l=!l);else if(u)34===a&&(u=!u);else if(44!==a||d||f||p)if(58!==a||_.expression||_.arg)if(124===a&&124!==o.charCodeAt(h+1)&&124!==o.charCodeAt(h-1))void 0===_.expression?(b=h+1,_.expression=o.slice(m,h).trim()):r();else switch(a){case 34:u=!0;break;case 39:l=!0;break;case 40:d++;break;case 41:d--;break;case 91:p++;break;case 93:p--;break;case 123:f++;break;case 125:f--}else y=o.slice(v,h).trim(),k.test(y)&&(m=h+1,_.arg=C.stripQuotes(y)||y);else i(),_={},v=m=b=h+1;return(0===h||v!==h)&&i(),w.put(t,g),g}},function(t,e,n){var i=n(1),r=n(17),s=n(5)._propBindingModes;t.exports={bind:function(){var t=this.vm,e=t._context,n=this._descriptor,o=n.path,a=n.parentPath;this.parentWatcher=new r(e,a,function(e){i.assertProp(n,e)&&(t[o]=e)},{sync:!0});var h=this.parentWatcher.value;if("$data"===o?t._data=h:i.initProp(t,n,h),n.mode===s.TWO_WAY){var c=this;t.$once("hook:created",function(){c.childWatcher=new r(t,o,function(t){e.$set(a,t)},{sync:!0})})}},unbind:function(){this.parentWatcher.teardown(),this.childWatcher&&this.childWatcher.teardown()}}},function(t,e,n){function i(t,e,n,i){i&&s.extend(this,i);var r="function"==typeof e;if(this.vm=t,t._watchers.push(this),this.expression=r?e.toString():e,this.cb=n,this.id=++l,this.active=!0,this.dirty=this.lazy,this.deps=Object.create(null),this.newDeps=null,this.prevError=null,r)this.getter=e,this.setter=void 0;else{var o=h.parse(e,this.twoWay);this.getter=o.get,this.setter=o.set}this.value=this.lazy?void 0:this.get(),this.queued=this.shallow=!1}function r(t){var e,n,i;for(e in t)if(n=t[e],s.isArray(n))for(i=n.length;i--;)r(n[i]);else s.isObject(n)&&r(n)}var s=n(1),o=n(5),a=n(18),h=n(19),c=n(21),l=0;i.prototype.addDep=function(t){var e=t.id;this.newDeps[e]||(this.newDeps[e]=t,this.deps[e]||(this.deps[e]=t,t.addSub(this)))},i.prototype.get=function(){this.beforeGet();var t,e=this.vm;try{t=this.getter.call(e,e)}catch(n){}return this.deep&&r(t),this.preProcess&&(t=this.preProcess(t)),this.filters&&(t=e._applyFilters(t,null,this.filters,!1)),this.afterGet(),t},i.prototype.set=function(t){var e=this.vm;this.filters&&(t=e._applyFilters(t,this.value,this.filters,!0));try{this.setter.call(e,e,t)}catch(n){}},i.prototype.beforeGet=function(){a.target=this,this.newDeps=Object.create(null)},i.prototype.afterGet=function(){a.target=null;for(var t=Object.keys(this.deps),e=t.length;e--;){var n=t[e];this.newDeps[n]||this.deps[n].removeSub(this)}this.deps=this.newDeps},i.prototype.update=function(t){this.lazy?this.dirty=!0:this.sync||!o.async?this.run():(this.shallow=this.queued?t?this.shallow:!1:!!t,this.queued=!0,c.push(this))},i.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||(s.isArray(t)||this.deep)&&!this.shallow){var e=this.value;this.value=t;this.prevError;this.cb.call(this.vm,t,e)}this.queued=this.shallow=!1}},i.prototype.evaluate=function(){var t=a.target;this.value=this.get(),this.dirty=!1,a.target=t},i.prototype.depend=function(){for(var t=Object.keys(this.deps),e=t.length;e--;)this.deps[t[e]].depend()},i.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||this.vm._watchers.$remove(this);for(var t=Object.keys(this.deps),e=t.length;e--;)this.deps[t[e]].removeSub(this);this.active=!1,this.vm=this.cb=this.value=null}},t.exports=i},function(t,e,n){function i(){this.id=s++,this.subs=[]}var r=n(1),s=0;i.target=null,i.prototype.addSub=function(t){this.subs.push(t)},i.prototype.removeSub=function(t){this.subs.$remove(t)},i.prototype.depend=function(){i.target.addDep(this)},i.prototype.notify=function(){for(var t=r.toArray(this.subs),e=0,n=t.length;n>e;e++)t[e].update()},t.exports=i},function(t,e,n){function i(t,e){var n=x.length;return x[n]=e?t.replace(b,"\\n"):t,'"'+n+'"'}function r(t){var e=t.charAt(0),n=t.slice(1);return v.test(n)?t:(n=n.indexOf('"')>-1?n.replace(C,s):n,e+"scope."+n)}function s(t,e){return x[e]}function o(t,e){g.test(t),x.length=0;var n=t.replace(y,i).replace(_,"");n=(" "+n).replace(w,r).replace(C,s);var o=h(n);return o?{get:o,body:n,set:e?c(n):null}:void 0}function a(t){var e,n;return t.indexOf("[")<0?(n=t.split("."),n.raw=t,e=u.compileGetter(n)):(n=u.parse(t),e=n.get),{get:e,set:function(t,e){u.set(t,n,e)}}}function h(t){try{return new Function("scope","return "+t+";")}catch(e){}}function c(t){try{return new Function("scope","value",t+"=value;")}catch(e){}}function l(t){t.set||(t.set=c(t.body))}var u=(n(1),n(20)),f=n(14),p=new f(1e3),d="Math,Date,this,true,false,null,undefined,Infinity,NaN,isNaN,isFinite,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,parseInt,parseFloat",v=new RegExp("^("+d.replace(/,/g,"\\b|")+"\\b)"),m="break,case,class,catch,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,in,instanceof,let,return,super,switch,throw,try,var,while,with,yield,enum,await,implements,package,proctected,static,interface,private,public",g=new RegExp("^("+m.replace(/,/g,"\\b|")+"\\b)"),_=/\s/g,b=/\n/g,y=/[\{,]\s*[\w\$_]+\s*:|('[^']*'|"[^"]*")|new |typeof |void /g,C=/"(\d+)"/g,$=/^[A-Za-z_$][\w$]*(\.[A-Za-z_$][\w$]*|\['.*?'\]|\[".*?"\]|\[\d+\]|\[[A-Za-z_$][\w$]*\])*$/,w=/[^\w$\.]([A-Za-z_$][\w$]*(\.[A-Za-z_$][\w$]*|\['.*?'\]|\[".*?"\])*)/g,k=/^(true|false)$/,x=[];e.parse=function(t,n){t=t.trim();var i=p.get(t);if(i)return n&&l(i),i;var r=e.isSimplePath(t)?a(t):o(t,n);return p.put(t,r),r},e.isSimplePath=function(t){return $.test(t)&&!k.test(t)&&"Math."!==t.slice(0,5)}},function(t,e,n){function i(t){if(void 0===t)return"eof";var e=t.charCodeAt(0);switch(e){case 91:case 93:case 46:case 34:case 39:case 48:return t;case 95:case 36:return"ident";case 32:case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"ws"}return e>=97&&122>=e||e>=65&&90>=e?"ident":e>=49&&57>=e?"number":"else"}function r(t){function e(){var e=t[d+1];return v===y&&"'"===e||v===C&&'"'===e?(d++,r=e,m[u](),!0):void 0}var n,r,s,o,a,h,c,l=[],d=-1,v=p,m=[];for(m[f]=function(){void 0!==s&&(l.push(s),s=void 0)},m[u]=function(){void 0===s?s=r:s+=r};null!=v;)if(d++,n=t[d],"\\"!==n||!e()){if(o=i(n),c=A[v],a=c[o]||c["else"]||x,a===x)return;if(v=a[0],h=m[a[1]],h&&(r=a[2],r=void 0===r?n:"*"===r?r+n:r,h()),v===k)return l.raw=t,l}}function s(t){return l.test(t)?"."+t:+t===t>>>0?"["+t+"]":"*"===t.charAt(0)?"[o"+s(t.slice(1))+"]":'["'+t.replace(/"/g,'\\"')+'"]'}function o(t){}var a=n(1),h=n(14),c=new h(1e3),l=e.identRE=/^[$_a-zA-Z]+[\w$]*$/,u=0,f=1,p=0,d=1,v=2,m=3,g=4,_=5,b=6,y=7,C=8,$=9,w=10,k=11,x=12,A=[];A[p]={ws:[p],ident:[m,u],"[":[g],eof:[k]},A[d]={ws:[d],".":[v],"[":[g],eof:[k]},A[v]={ws:[v],ident:[m,u]},A[m]={ident:[m,u],0:[m,u],number:[m,u],ws:[d,f],".":[v,f],"[":[g,f],eof:[k,f]},A[g]={ws:[g],0:[_,u],number:[b,u],"'":[y,u,""],'"':[C,u,""],ident:[$,u,"*"]},A[_]={ws:[w,f],"]":[d,f]},A[b]={0:[b,u],number:[b,u],ws:[w],"]":[d,f]},A[y]={"'":[w],eof:x,"else":[y,u]},A[C]={'"':[w],eof:x,"else":[C,u]},A[$]={ident:[$,u],0:[$,u],number:[$,u],ws:[w],"]":[d,f]},A[w]={ws:[w],"]":[d,f]},e.compileGetter=function(t){var e="return o"+t.map(s).join("");return new Function("o",e)},e.parse=function(t){var n=c.get(t);return n||(n=r(t),n&&(n.get=e.compileGetter(n),c.put(t,n))),n},e.get=function(t,n){return n=e.parse(n),n?n.get(t):void 0},e.set=function(t,n,i){var r=t;if("string"==typeof n&&(n=e.parse(n)),!n||!a.isObject(t))return!1;for(var s,h,c=0,l=n.length;l>c;c++)s=t,h=n[c],"*"===h.charAt(0)&&(h=r[h.slice(1)]),l-1>c?(t=t[h],a.isObject(t)||(o(n),t={},s.$add(h,t))):a.isArray(t)?t.$set(h,i):h in t?t[h]=i:(o(n),t.$add(h,i));return!0}},function(t,e,n){function i(){a=[],h=[],c={},l={},u=f=!1}function r(){s(a),f=!0,s(h),i()}function s(t){for(var e=0;e<t.length;e++){var n=t[e],i=n.id;c[i]=null,n.run()}}var o=n(1),a=(n(5),[]),h=[],c={},l={},u=!1,f=!1;e.push=function(t){var e=t.id;if(null==c[e]){if(f&&!t.user)return void t.run();var n=t.user?h:a;c[e]=n.length,n.push(t),u||(u=!0,o.nextTick(r))}}},function(t,e,n){function i(t){return o.isTemplate(t)&&t.content instanceof DocumentFragment}function r(t){var e=h.get(t);if(e)return e;var n=document.createDocumentFragment(),i=t.match(u),r=f.test(t);if(i||r){var s=i&&i[1],o=l[s]||l._default,a=o[0],c=o[1],p=o[2],d=document.createElement("div");for(d.innerHTML=c+t.trim()+p;a--;)d=d.lastChild;for(var v;v=d.firstChild;)n.appendChild(v)}else n.appendChild(document.createTextNode(t));return h.put(t,n),n}function s(t){if(i(t))return o.trimNode(t.content),t.content;if("SCRIPT"===t.tagName)return r(t.textContent);for(var n,s=e.clone(t),a=document.createDocumentFragment();n=s.firstChild;)a.appendChild(n);return o.trimNode(a),a}var o=n(1),a=n(14),h=new a(1e3),c=new a(1e3),l={_default:[0,"",""],legend:[1,"<fieldset>","</fieldset>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]};l.td=l.th=[3,"<table><tbody><tr>","</tr></tbody></table>"],l.option=l.optgroup=[1,'<select multiple="multiple">',"</select>"],l.thead=l.tbody=l.colgroup=l.caption=l.tfoot=[1,"<table>","</table>"],l.g=l.defs=l.symbol=l.use=l.image=l.text=l.circle=l.ellipse=l.line=l.path=l.polygon=l.polyline=l.rect=[1,'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ev="http://www.w3.org/2001/xml-events"version="1.1">',"</svg>"];var u=/<([\w:]+)/,f=/&\w+;|&#\d+;|&#x[\dA-F]+;/,p=function(){if(o.inBrowser){var t=document.createElement("div");return t.innerHTML="<template>1</template>",!t.cloneNode(!0).firstChild.innerHTML}return!1}(),d=function(){if(o.inBrowser){var t=document.createElement("textarea");return t.placeholder="t","t"===t.cloneNode(!0).value}return!1}();e.clone=function(t){if(!t.querySelectorAll)return t.cloneNode();var n,r,s,o=t.cloneNode(!0);if(p){var a=o;if(i(t)&&(t=t.content,a=o.content),r=t.querySelectorAll("template"),r.length)for(s=a.querySelectorAll("template"),n=s.length;n--;)s[n].parentNode.replaceChild(e.clone(r[n]),s[n])}if(d)if("TEXTAREA"===t.tagName)o.value=t.value;else if(r=t.querySelectorAll("textarea"),r.length)for(s=o.querySelectorAll("textarea"),n=s.length;n--;)s[n].value=r[n].value;return o},e.parse=function(t,n,i){var a,h;return t instanceof DocumentFragment?(o.trimNode(t),n?e.clone(t):t):("string"==typeof t?i||"#"!==t.charAt(0)?h=r(t):(h=c.get(t),h||(a=document.getElementById(t.slice(1)),a&&(h=s(a),c.put(t,h)))):t.nodeType&&(h=s(t)),h&&n?e.clone(h):h)}},function(t,e,n){var i=n(1),r=n(5),s=n(22);t.exports={isLiteral:!0,bind:function(){this.el.__vue__||(this.anchor=i.createAnchor("v-component"),i.replace(this.el,this.anchor),this.keepAlive=null!=this._checkParam("keep-alive"),this.waitForEvent=this._checkParam("wait-for"),this.refID=this._checkParam(r.prefix+"ref"),this.keepAlive&&(this.cache={}),null!==this._checkParam("inline-template")&&(this.template=i.extractContent(this.el,!0)),this.pendingComponentCb=this.Component=null,this.pendingRemovals=0,this.pendingRemovalCb=null,this._isDynamicLiteral?this.transMode=this._checkParam("transition-mode"):this.resolveComponent(this.expression,i.bind(this.initStatic,this)))},initStatic:function(){var t,e=this.anchor,n=this.waitForEvent;n&&(t={created:function(){this.$once(n,function(){this.$before(e)})}});var i=this.build(t);this.setCurrent(i),this.waitForEvent||i.$before(e)},update:function(t){this.setComponent(t)},setComponent:function(t,e){this.invalidatePending(),t?this.resolveComponent(t,i.bind(function(){this.unbuild(!0);var t,n=this,i=this.waitForEvent;i&&(t={created:function(){this.$once(i,function(){n.waitingFor=null,n.transition(this,e)})}});var r=this.getCached(),s=this.build(t);!i||r?this.transition(s,e):this.waitingFor=s},this)):(this.unbuild(!0),this.remove(this.childVM,e),this.unsetCurrent())},resolveComponent:function(t,e){var n=this;this.pendingComponentCb=i.cancellable(function(t){n.Component=t,e()}),this.vm._resolveComponent(t,this.pendingComponentCb)},invalidatePending:function(){this.pendingComponentCb&&(this.pendingComponentCb.cancel(),this.pendingComponentCb=null)},build:function(t){var e=this.getCached();if(e)return e;if(this.Component){var n={el:s.clone(this.el),template:this.template,_linkerCachable:!this.template,_asComponent:!0,_isRouterView:this._isRouterView,_context:this.vm};t&&i.extend(n,t);var r=this._host||this.vm,o=r.$addChild(n,this.Component);return this.keepAlive&&(this.cache[this.Component.cid]=o),o}},getCached:function(){return this.keepAlive&&this.cache[this.Component.cid]},unbuild:function(t){this.waitingFor&&(this.waitingFor.$destroy(),this.waitingFor=null);var e=this.childVM;e&&!this.keepAlive&&e.$destroy(!1,t)},remove:function(t,e){var n=this.keepAlive;if(t){this.pendingRemovals++,this.pendingRemovalCb=e;var i=this;t.$remove(function(){i.pendingRemovals--,n||t._cleanup(),!i.pendingRemovals&&i.pendingRemovalCb&&(i.pendingRemovalCb(),i.pendingRemovalCb=null)})}else e&&e()},transition:function(t,e){var n=this,i=this.childVM;switch(this.setCurrent(t),n.transMode){case"in-out":t.$before(n.anchor,function(){n.remove(i,e)});break;case"out-in":n.remove(i,function(){t.$before(n.anchor,e)});break;default:n.remove(i),t.$before(n.anchor,e)}},setCurrent:function(t){this.unsetCurrent(),this.childVM=t;var e=t._refID||this.refID;e&&(this.vm.$[e]=t)},unsetCurrent:function(){var t=this.childVM;this.childVM=null;var e=t&&t._refID||this.refID;e&&(this.vm.$[e]=null)},unbind:function(){if(this.invalidatePending(),this.unbuild(),this.unsetCurrent(),this.cache){for(var t in this.cache)this.cache[t].$destroy();this.cache=null}}}},function(t,e,n){function i(t,e){var n=e.template,i=h.parse(n,!0);if(i){var c=i.firstChild,l=c.tagName&&c.tagName.toLowerCase();return e.replace?(t===document.body,i.childNodes.length>1||1!==c.nodeType||"component"===l||o.resolveAsset(e,"components",l)||c.hasAttribute(a.prefix+"component")||o.resolveAsset(e,"elementDirectives",l)||c.hasAttribute(a.prefix+"repeat")?i:(e._replacerAttrs=r(c),s(t,c),c)):(t.appendChild(i),t)}}function r(t){return 1===t.nodeType&&t.hasAttributes()?o.toArray(t.attributes):void 0}function s(t,e){for(var n,i,r=t.attributes,s=r.length;s--;)n=r[s].name,i=r[s].value,e.hasAttribute(n)?"class"===n&&(i=e.getAttribute(n)+" "+i,e.setAttribute(n,i)):e.setAttribute(n,i);
7
+ }var o=n(1),a=n(5),h=n(22);e.transclude=function(t,e){return e&&(e._containerAttrs=r(t)),o.isTemplate(t)&&(t=h.parse(t)),e&&(e._asComponent&&!e.template&&(e.template="<content></content>"),e.template&&(e._content=o.extractContent(t),t=i(t,e))),t instanceof DocumentFragment&&(o.prepend(o.createAnchor("v-start",!0),t),t.appendChild(o.createAnchor("v-end",!0))),t}},function(t,e,n){e.text=n(26),e.html=n(27),e.attr=n(28),e.show=n(29),e["class"]=n(31),e.el=n(32),e.ref=n(33),e.cloak=n(34),e.style=n(35),e.transition=n(36),e.on=n(39),e.model=n(40),e.repeat=n(45),e["if"]=n(46),e._component=n(23),e._prop=n(16)},function(t,e,n){var i=n(1);t.exports={bind:function(){this.attr=3===this.el.nodeType?"data":"textContent"},update:function(t){this.el[this.attr]=i.toString(t)}}},function(t,e,n){var i=n(1),r=n(22);t.exports={bind:function(){8===this.el.nodeType&&(this.nodes=[],this.anchor=i.createAnchor("v-html"),i.replace(this.el,this.anchor))},update:function(t){t=i.toString(t),this.nodes?this.swap(t):this.el.innerHTML=t},swap:function(t){for(var e=this.nodes.length;e--;)i.remove(this.nodes[e]);var n=r.parse(t,!0,!0);this.nodes=i.toArray(n.childNodes),i.before(n,this.anchor)}}},function(t,e){var n="http://www.w3.org/1999/xlink",i=/^xlink:/,r={value:1,checked:1,selected:1};t.exports={priority:850,update:function(t){this.arg?this.setAttr(this.arg,t):"object"==typeof t&&this.objectHandler(t)},objectHandler:function(t){var e,n,i=this.cache||(this.cache={});for(e in i)e in t||(this.setAttr(e,null),delete i[e]);for(e in t)n=t[e],n!==i[e]&&(i[e]=n,this.setAttr(e,n))},setAttr:function(t,e){r[t]&&t in this.el?(this.valueRemoved||(this.el.removeAttribute(t),this.valueRemoved=!0),this.el[t]=e):null!=e&&e!==!1?i.test(t)?this.el.setAttributeNS(n,t,e):this.el.setAttribute(t,e):this.el.removeAttribute(t)}}},function(t,e,n){var i=n(30);t.exports=function(t){var e=this.el;i.apply(e,t?1:-1,function(){e.style.display=t?"":"none"},this.vm)}},function(t,e,n){var i=n(1);e.append=function(t,e,n,i){r(t,1,function(){e.appendChild(t)},n,i)},e.before=function(t,e,n,s){r(t,1,function(){i.before(t,e)},n,s)},e.remove=function(t,e,n){r(t,-1,function(){i.remove(t)},e,n)},e.removeThenAppend=function(t,e,n,i){r(t,-1,function(){e.appendChild(t)},n,i)},e.blockAppend=function(t,n,r){for(var s=i.toArray(t.childNodes),o=0,a=s.length;a>o;o++)e.before(s[o],n,r)},e.blockRemove=function(t,n,i){for(var r,s=t.nextSibling;s!==n;)r=s.nextSibling,e.remove(s,i),s=r};var r=e.apply=function(t,e,n,r,s){var o=t.__v_trans;if(!o||!o.hooks&&!i.transitionEndEvent||!r._isCompiled||r.$parent&&!r.$parent._isCompiled)return n(),void(s&&s());var a=e>0?"enter":"leave";o[a](n,s)}},function(t,e,n){function i(t){for(var e={},n=t.trim().split(/\s+/),i=n.length;i--;)e[n[i]]=!0;return e}var r=n(1),s=r.addClass,o=r.removeClass;t.exports={bind:function(){var t=this._descriptor._rawClass;t&&(this.prevKeys=t.trim().split(/\s+/))},update:function(t){this.arg?t?s(this.el,this.arg):o(this.el,this.arg):t&&"string"==typeof t?this.handleObject(i(t)):r.isPlainObject(t)?this.handleObject(t):this.cleanup()},handleObject:function(t){this.cleanup(t);for(var e=this.prevKeys=Object.keys(t),n=0,i=e.length;i>n;n++){var r=e[n];t[r]?s(this.el,r):o(this.el,r)}},cleanup:function(t){if(this.prevKeys)for(var e=this.prevKeys.length;e--;){var n=this.prevKeys[e];t&&t.hasOwnProperty(n)||o(this.el,n)}}}},function(t,e){t.exports={isLiteral:!0,bind:function(){this.vm.$$[this.expression]=this.el},unbind:function(){delete this.vm.$$[this.expression]}}},function(t,e,n){n(1);t.exports={isLiteral:!0,bind:function(){var t=this.el.__vue__;t&&(t._refID=this.expression)}}},function(t,e,n){var i=n(5);t.exports={bind:function(){var t=this.el;this.vm.$once("hook:compiled",function(){t.removeAttribute(i.prefix+"cloak")})}}},function(t,e,n){function i(t){if(u[t])return u[t];var e=r(t);return u[t]=u[e]=e,e}function r(t){t=t.replace(c,"$1-$2").toLowerCase();var e=s.camelize(t),n=e.charAt(0).toUpperCase()+e.slice(1);if(l||(l=document.createElement("div")),e in l.style)return t;for(var i,r=o.length;r--;)if(i=a[r]+n,i in l.style)return o[r]+t}var s=n(1),o=["-webkit-","-moz-","-ms-"],a=["Webkit","Moz","ms"],h=/!important;?$/,c=/([a-z])([A-Z])/g,l=null,u={};t.exports={deep:!0,update:function(t){this.arg?this.setProp(this.arg,t):"object"==typeof t?this.objectHandler(t):this.el.style.cssText=t},objectHandler:function(t){var e,n,i=this.cache||(this.cache={});for(e in i)e in t||(this.setProp(e,null),delete i[e]);for(e in t)n=t[e],n!==i[e]&&(i[e]=n,this.setProp(e,n))},setProp:function(t,e){if(t=i(t))if(null!=e&&(e+=""),e){var n=h.test(e)?"important":"";n&&(e=e.replace(h,"").trim()),this.el.style.setProperty(t,e,n)}else this.el.style.removeProperty(t)}}},function(t,e,n){var i=n(1),r=n(37);t.exports={priority:1e3,isLiteral:!0,bind:function(){this._isDynamicLiteral||this.update(this.expression)},update:function(t,e){var n=this.el,s=this.el.__vue__||this.vm,o=i.resolveAsset(s.$options,"transitions",t);t=t||"v",n.__v_trans=new r(n,t,o,s),e&&i.removeClass(n,e+"-transition"),i.addClass(n,t+"-transition")}}},function(t,e,n){function i(t,e,n,i){this.id=v++,this.el=t,this.enterClass=e+"-enter",this.leaveClass=e+"-leave",this.hooks=n,this.vm=i,this.pendingCssEvent=this.pendingCssCb=this.cancel=this.pendingJsCb=this.op=this.cb=null,this.justEntered=!1,this.entered=this.left=!1,this.typeCache={};var r=this;["enterNextTick","enterDone","leaveNextTick","leaveDone"].forEach(function(t){r[t]=s.bind(r[t],r)})}function r(t){return"none"===t.style.display||"hidden"===t.style.visibility||t.hidden}var s=n(1),o=n(38),a=s.addClass,h=s.removeClass,c=s.transitionEndEvent,l=s.animationEndEvent,u=s.transitionProp+"Duration",f=s.animationProp+"Duration",p=1,d=2,v=0,m=i.prototype;m.enter=function(t,e){this.cancelPending(),this.callHook("beforeEnter"),this.cb=e,a(this.el,this.enterClass),t(),this.entered=!1,this.callHookWithCb("enter"),this.entered||(this.cancel=this.hooks&&this.hooks.enterCancelled,o.push(this.enterNextTick))},m.enterNextTick=function(){this.justEntered=!0,s.nextTick(function(){this.justEntered=!1},this);var t=this.enterDone,e=this.getCssTransitionType(this.enterClass);this.pendingJsCb?e===p&&h(this.el,this.enterClass):e===p?(h(this.el,this.enterClass),this.setupCssCb(c,t)):e===d?this.setupCssCb(l,t):t()},m.enterDone=function(){this.entered=!0,this.cancel=this.pendingJsCb=null,h(this.el,this.enterClass),this.callHook("afterEnter"),this.cb&&this.cb()},m.leave=function(t,e){this.cancelPending(),this.callHook("beforeLeave"),this.op=t,this.cb=e,a(this.el,this.leaveClass),this.left=!1,this.callHookWithCb("leave"),this.left||(this.cancel=this.hooks&&this.hooks.leaveCancelled,this.op&&!this.pendingJsCb&&(this.justEntered?this.leaveDone():o.push(this.leaveNextTick)))},m.leaveNextTick=function(){var t=this.getCssTransitionType(this.leaveClass);if(t){var e=t===p?c:l;this.setupCssCb(e,this.leaveDone)}else this.leaveDone()},m.leaveDone=function(){this.left=!0,this.cancel=this.pendingJsCb=null,this.op(),h(this.el,this.leaveClass),this.callHook("afterLeave"),this.cb&&this.cb(),this.op=null},m.cancelPending=function(){this.op=this.cb=null;var t=!1;this.pendingCssCb&&(t=!0,s.off(this.el,this.pendingCssEvent,this.pendingCssCb),this.pendingCssEvent=this.pendingCssCb=null),this.pendingJsCb&&(t=!0,this.pendingJsCb.cancel(),this.pendingJsCb=null),t&&(h(this.el,this.enterClass),h(this.el,this.leaveClass)),this.cancel&&(this.cancel.call(this.vm,this.el),this.cancel=null)},m.callHook=function(t){this.hooks&&this.hooks[t]&&this.hooks[t].call(this.vm,this.el)},m.callHookWithCb=function(t){var e=this.hooks&&this.hooks[t];e&&(e.length>1&&(this.pendingJsCb=s.cancellable(this[t+"Done"])),e.call(this.vm,this.el,this.pendingJsCb))},m.getCssTransitionType=function(t){if(!(!c||document.hidden||this.hooks&&this.hooks.css===!1||r(this.el))){var e=this.typeCache[t];if(e)return e;var n=this.el.style,i=window.getComputedStyle(this.el),s=n[u]||i[u];if(s&&"0s"!==s)e=p;else{var o=n[f]||i[f];o&&"0s"!==o&&(e=d)}return e&&(this.typeCache[t]=e),e}},m.setupCssCb=function(t,e){this.pendingCssEvent=t;var n=this,i=this.el,r=this.pendingCssCb=function(o){o.target===i&&(s.off(i,t,r),n.pendingCssEvent=n.pendingCssCb=null,!n.pendingJsCb&&e&&e())};s.on(i,t,r)},t.exports=i},function(t,e,n){function i(){for(var t=document.documentElement.offsetHeight,e=0;e<s.length;e++)s[e]();return s=[],o=!1,t}var r=n(1),s=[],o=!1;e.push=function(t){s.push(t),o||(o=!0,r.nextTick(i))}},function(t,e,n){var i=n(1);t.exports={acceptStatement:!0,priority:700,bind:function(){if("IFRAME"===this.el.tagName&&"load"!==this.arg){var t=this;this.iframeBind=function(){i.on(t.el.contentWindow,t.arg,t.handler)},this.on("load",this.iframeBind)}},update:function(t){if("function"==typeof t){this.reset();var e=this.vm;this.handler=function(n){n.targetVM=e,e.$event=n;var i=t(n);return e.$event=null,i},this.iframeBind?this.iframeBind():i.on(this.el,this.arg,this.handler)}},reset:function(){var t=this.iframeBind?this.el.contentWindow:this.el;this.handler&&i.off(t,this.arg,this.handler)},unbind:function(){this.reset()}}},function(t,e,n){var i=n(1),r={text:n(41),radio:n(42),select:n(43),checkbox:n(44)};t.exports={priority:800,twoWay:!0,handlers:r,bind:function(){this.checkFilters(),this.hasRead&&!this.hasWrite;var t,e=this.el,n=e.tagName;if("INPUT"===n)t=r[e.type]||r.text;else if("SELECT"===n)t=r.select;else{if("TEXTAREA"!==n)return;t=r.text}e.__v_model=this,t.bind.call(this),this.update=t.update,this._unbind=t.unbind},checkFilters:function(){var t=this.filters;if(t)for(var e=t.length;e--;){var n=i.resolveAsset(this.vm.$options,"filters",t[e].name);("function"==typeof n||n.read)&&(this.hasRead=!0),n.write&&(this.hasWrite=!0)}},unbind:function(){this.el.__v_model=null,this._unbind&&this._unbind()}}},function(t,e,n){var i=n(1);t.exports={bind:function(){var t=this,e=this.el,n="range"===e.type,r=null!=this._checkParam("lazy"),s=null!=this._checkParam("number"),o=parseInt(this._checkParam("debounce"),10),a=!1;i.isAndroid||n||(this.on("compositionstart",function(){a=!0}),this.on("compositionend",function(){a=!1,r||t.listener()})),this.focused=!1,n||(this.on("focus",function(){t.focused=!0}),this.on("blur",function(){t.focused=!1,t.listener()})),this.listener=function(){if(!a){var r=s||n?i.toNumber(e.value):e.value;t.set(r),i.nextTick(function(){t._bound&&!t.focused&&t.update(t._watcher.value)})}},o&&(this.listener=i.debounce(this.listener,o)),this.hasjQuery="function"==typeof jQuery,this.hasjQuery?(jQuery(e).on("change",this.listener),r||jQuery(e).on("input",this.listener)):(this.on("change",this.listener),r||this.on("input",this.listener)),!r&&i.isIE9&&(this.on("cut",function(){i.nextTick(t.listener)}),this.on("keyup",function(e){(46===e.keyCode||8===e.keyCode)&&t.listener()})),(e.hasAttribute("value")||"TEXTAREA"===e.tagName&&e.value.trim())&&(this._initValue=s?i.toNumber(e.value):e.value)},update:function(t){this.el.value=i.toString(t)},unbind:function(){var t=this.el;this.hasjQuery&&(jQuery(t).off("change",this.listener),jQuery(t).off("input",this.listener))}}},function(t,e,n){var i=n(1);t.exports={bind:function(){var t=this,e=this.el,n=null!=this._checkParam("number"),r=this._checkParam("exp");this.getValue=function(){var s=e.value;return n?s=i.toNumber(s):null!==r&&(s=t.vm.$eval(r)),s},this.on("change",function(){t.set(t.getValue())}),e.checked&&(this._initValue=this.getValue())},update:function(t){this.el.checked=i.looseEqual(t,this.getValue())}}},function(t,e,n){function i(t){function e(t){if(h.isArray(t)){for(var e=i.options.length;e--;){var o=i.options[e];if(o!==s){var a=o.parentNode;a===i?a.removeChild(o):(i.removeChild(a),e=i.options.length)}}r(i,t),n.forceUpdate()}}var n=this,i=n.el,s=n.defaultOption=n.el.options[0],o=l.parse(t)[0];this.optionWatcher=new c(this.vm,o.expression,e,{deep:!0,filters:o.filters}),e(this.optionWatcher.value)}function r(t,e){for(var n,i,s=0,o=e.length;o>s;s++)n=e[s],n.options?(i=document.createElement("optgroup"),i.label=n.label,r(i,n.options)):(i=document.createElement("option"),"string"==typeof n||"number"==typeof n?i.text=i.value=n:(null==n.value||h.isObject(n.value)||(i.value=n.value),i._value=n.value,i.text=n.text||"",n.disabled&&(i.disabled=!0))),t.appendChild(i)}function s(){for(var t,e=this.el.options,n=0,i=e.length;i>n;n++)e[n].hasAttribute("selected")&&(this.multiple?(t||(t=[])).push(e[n].value):t=e[n].value);"undefined"!=typeof t&&(this._initValue=this.number?h.toNumber(t):t)}function o(t,e){for(var n,i,r=e?[]:null,s=0,o=t.options.length;o>s;s++)if(n=t.options[s],n.selected){if(i=n.hasOwnProperty("_value")?n._value:n.value,!e)return i;r.push(i)}return r}function a(t,e){for(var n=t.length;n--;)if(h.looseEqual(t[n],e))return n;return-1}var h=n(1),c=n(17),l=n(15);t.exports={bind:function(){var t=this,e=this.el;this.forceUpdate=function(){t._watcher&&t.update(t._watcher.get())};var n=this._checkParam("options");n&&i.call(this,n),this.number=null!=this._checkParam("number"),this.multiple=e.hasAttribute("multiple"),this.on("change",function(){var n=o(e,t.multiple);n=t.number?h.isArray(n)?n.map(h.toNumber):h.toNumber(n):n,t.set(n)}),s.call(this),this.vm.$on("hook:attached",this.forceUpdate)},update:function(t){var e=this.el;if(e.selectedIndex=-1,null==t)return void(this.defaultOption&&(this.defaultOption.selected=!0));for(var n,i,r=this.multiple&&h.isArray(t),s=e.options,o=s.length;o--;)n=s[o],i=n.hasOwnProperty("_value")?n._value:n.value,n.selected=r?a(t,i)>-1:h.looseEqual(t,i)},unbind:function(){this.vm.$off("hook:attached",this.forceUpdate),this.optionWatcher&&this.optionWatcher.teardown()}}},function(t,e,n){var i=n(1);t.exports={bind:function(){function t(){var t=n.checked;return t&&null!==r&&(t=e.vm.$eval(r)),t||null===s||(t=e.vm.$eval(s)),t}var e=this,n=this.el,r=this._checkParam("true-exp"),s=this._checkParam("false-exp");this._matchValue=function(t){return null!==r?i.looseEqual(t,e.vm.$eval(r)):!!t},this.on("change",function(){e.set(t())}),n.checked&&(this._initValue=t())},update:function(t){this.el.checked=this._matchValue(t)}}},function(t,e,n){function i(t,e,n){var i=t.$el.previousSibling;if(i){for(;(!i.__vue__||i.__vue__.$options._repeatId!==n)&&i!==e;)i=i.previousSibling;return i.__vue__}}function r(t){for(var e=-1,n=new Array(t);++e<t;)n[e]=e;return n}function s(t){for(var e={},n=0,i=t.length;i>n;n++)e[t[n].$key]=t[n];return e}function o(t){var e=typeof t;return null==t||"string"===e||"number"===e||"boolean"===e}var a=n(1),h=n(5),c=a.isObject,l=a.isPlainObject,u=n(13),f=n(19),p=n(22),d=n(10),v=0,m=0,g=1,_=2,b=3;t.exports={bind:function(){var t=this.expression.match(/(.*) in (.*)/);t&&(this.arg=t[1],this._watcherExp=t[2]),this.id="__v_repeat_"+ ++v,this.start=a.createAnchor("v-repeat-start"),this.end=a.createAnchor("v-repeat-end"),a.replace(this.el,this.end),a.before(this.start,this.end),this.template=a.isTemplate(this.el)?p.parse(this.el,!0):this.el,this.idKey=this._checkParam("track-by");var e=+this._checkParam("stagger");this.enterStagger=+this._checkParam("enter-stagger")||e,this.leaveStagger=+this._checkParam("leave-stagger")||e,this.refID=this._checkParam(h.prefix+"ref"),this.elID=this._checkParam(h.prefix+"el"),this.checkIf(),this.checkComponent(),this.cache=Object.create(null)},checkIf:function(){null!==a.attr(this.el,"if")},checkComponent:function(){this.componentState=m;var t=this.vm.$options,e=a.checkComponent(this.el,t);if(e){this.Component=null,this.asComponent=!0,null!==this._checkParam("inline-template")&&(this.inlineTemplate=a.extractContent(this.el,!0));var n=u.parse(e);if(n){var i=u.tokensToExp(n);this.componentGetter=f.parse(i).get}else this.componentId=e,this.pendingData=null}else{this.Component=a.Vue,this.inline=!0,this.template=d.transclude(this.template);var r=a.extend({},t);r._asComponent=!1,this._linkFn=d.compile(this.template,r)}},resolveComponent:function(){this.componentState=g,this.vm._resolveComponent(this.componentId,a.bind(function(t){this.componentState!==b&&(this.Component=t,this.componentState=_,this.realUpdate(this.pendingData),this.pendingData=null)},this))},resolveDynamicComponent:function(t,e){var n,i=Object.create(this.vm);for(n in t)a.define(i,n,t[n]);for(n in e)a.define(i,n,e[n]);var r=this.componentGetter.call(i,i),s=a.resolveAsset(this.vm.$options,"components",r);return s.options?s:a.Vue},update:function(t){if(this.componentId){var e=this.componentState;e===m?(this.pendingData=t,this.resolveComponent()):e===g?this.pendingData=t:e===_&&this.realUpdate(t)}else this.realUpdate(t)},realUpdate:function(t){this.vms=this.diff(t,this.vms),this.refID&&(this.vm.$[this.refID]=this.converted?s(this.vms):this.vms),this.elID&&(this.vm.$$[this.elID]=this.vms.map(function(t){return t.$el}))},diff:function(t,e){var n,r,s,o,h,l,u=this.idKey,f=this.converted,p=this.start,d=this.end,v=a.inDoc(p),m=this.arg,g=!e,_=new Array(t.length);for(o=0,h=t.length;h>o;o++)n=t[o],r=f?n.$value:n,l=!c(r),s=!g&&this.getVm(r,o,f?n.$key:null),s?(s._reused=!0,s.$index=o,(u||f||l)&&(m?s[m]=r:a.isPlainObject(r)?s.$data=r:s.$value=r)):(s=this.build(n,o,!0),s._reused=!1),_[o]=s,g&&s.$before(d);if(g)return _;var b=0,y=e.length-_.length;for(o=0,h=e.length;h>o;o++)s=e[o],s._reused||(this.uncacheVm(s),s.$destroy(!1,!0),this.remove(s,b++,y,v));var C,$,w,k=0;for(o=0,h=_.length;h>o;o++)s=_[o],C=_[o-1],$=C?C._staggerCb?C._staggerAnchor:C._fragmentEnd||C.$el:p,s._reused&&!s._staggerCb?(w=i(s,p,this.id),w!==C&&this.move(s,$)):this.insert(s,k++,$,v),s._reused=!1;return _},build:function(t,e,n){var i={$index:e};this.converted&&(i.$key=t.$key);var r=this.converted?t.$value:t,s=this.arg;s?(t={},t[s]=r):l(r)?t=r:(t={},i.$value=r);var h=this.Component||this.resolveDynamicComponent(t,i),c=this._host||this.vm,u=c.$addChild({el:p.clone(this.template),data:t,inherit:this.inline,template:this.inlineTemplate,_meta:i,_repeat:this.inline,_asComponent:this.asComponent,_linkerCachable:!this.inlineTemplate&&h!==a.Vue,_linkFn:this._linkFn,_repeatId:this.id,_context:this.vm},h);n&&this.cacheVm(r,u,e,this.converted?i.$key:null);var f=this;return"object"===this.rawType&&o(r)&&u.$watch(s||"$value",function(t){f.filters,f._withLock(function(){f.converted?f.rawValue[u.$key]=t:f.rawValue.$set(u.$index,t)})}),u},unbind:function(){if(this.componentState=b,this.refID&&(this.vm.$[this.refID]=null),this.vms)for(var t,e=this.vms.length;e--;)t=this.vms[e],this.uncacheVm(t),t.$destroy()},cacheVm:function(t,e,n,i){var r,s=this.idKey,o=this.cache,h=!c(t);i||s||h?(r=s?"$index"===s?n:t[s]:i||n,o[r]||(o[r]=e)):(r=this.id,t.hasOwnProperty(r)?null===t[r]&&(t[r]=e):a.define(t,r,e)),e._raw=t},getVm:function(t,e,n){var i=this.idKey,r=!c(t);if(n||i||r){var s=i?"$index"===i?e:t[i]:n||e;return this.cache[s]}return t[this.id]},uncacheVm:function(t){var e=t._raw,n=this.idKey,i=t.$index,r=t.hasOwnProperty("$key")&&t.$key,s=!c(e);if(n||r||s){var o=n?"$index"===n?i:e[n]:r||i;this.cache[o]=null}else e[this.id]=null,t._raw=null},insert:function(t,e,n,i){t._staggerCb&&(t._staggerCb.cancel(),t._staggerCb=null);var r=this.getStagger(t,e,null,"enter");if(i&&r){var s=t._staggerAnchor;s||(s=t._staggerAnchor=a.createAnchor("stagger-anchor"),s.__vue__=t),a.after(s,n);var o=t._staggerCb=a.cancellable(function(){t._staggerCb=null,t.$before(s),a.remove(s)});setTimeout(o,r)}else t.$after(n)},move:function(t,e){t.$after(e,null,!1)},remove:function(t,e,n,i){function r(){t.$remove(function(){t._cleanup()})}if(t._staggerCb)return t._staggerCb.cancel(),void(t._staggerCb=null);var s=this.getStagger(t,e,n,"leave");if(i&&s){var o=t._staggerCb=a.cancellable(function(){t._staggerCb=null,r()});setTimeout(o,s)}else r()},getStagger:function(t,e,n,i){i+="Stagger";var r=t.$el.__v_trans,s=r&&r.hooks,o=s&&(s[i]||s.stagger);return o?o.call(t,e,n):e*this[i]},_preProcess:function(t){this.rawValue=t;var e=this.rawType=typeof t;if(l(t)){for(var n,i=Object.keys(t),s=i.length,o=new Array(s);s--;)n=i[s],o[s]={$key:n,$value:t[n]};return this.converted=!0,o}return this.converted=!1,"number"===e?t=r(t):"string"===e&&(t=a.toArray(t)),t||[]}}},function(t,e,n){function i(t){t._isAttached||t._callHook("attached")}function r(t){t._isAttached&&t._callHook("detached")}var s=n(1),o=n(10),a=n(22),h=n(30),c=n(14),l=new c(1e3);t.exports={bind:function(){var t=this.el;if(t.__vue__)this.invalid=!0;else{this.start=s.createAnchor("v-if-start"),this.end=s.createAnchor("v-if-end"),s.replace(t,this.end),s.before(this.start,this.end),s.isTemplate(t)?this.template=a.parse(t,!0):(this.template=document.createDocumentFragment(),this.template.appendChild(a.clone(t)));var e=(this.vm.constructor.cid||"")+t.outerHTML;this.linker=l.get(e),this.linker||(this.linker=o.compile(this.template,this.vm.$options,!0),l.put(e,this.linker))}},update:function(t){this.invalid||(t?this.unlink||this.link(a.clone(this.template),this.linker):this.teardown())},link:function(t,e){var n=this.vm;if(this.unlink=e(n,t,this._host),h.blockAppend(t,this.end,n),s.inDoc(n.$el)){var r=this.getContainedComponents();r&&r.forEach(i)}},teardown:function(){if(this.unlink){var t;s.inDoc(this.vm.$el)&&(t=this.getContainedComponents()),h.blockRemove(this.start,this.end,this.vm),t&&t.forEach(r),this.unlink(),this.unlink=null}},getContainedComponents:function(){function t(t){for(var e,r=n;e!==i;){if(e=r.nextSibling,r===t.$el||r.contains&&r.contains(t.$el))return!0;r=e}return!1}var e=this._host||this.vm,n=this.start.nextSibling,i=this.end;return e.$children.length&&e.$children.filter(t)},unbind:function(){this.unlink&&this.unlink()}}},function(t,e,n){e.content=n(48),e.partial=n(49)},function(t,e,n){function i(t,e,n){for(var i=document.createDocumentFragment(),r=0,o=t.length;o>r;r++){var a=t[r];n&&!a.__v_selected?i.appendChild(s(a)):n||a.parentNode!==e||(a.__v_selected=!0,i.appendChild(s(a)))}return i}var r=n(1),s=n(22).clone;t.exports={bind:function(){for(var t=this.vm,e=t;e.$options._repeat;)e=e.$parent;var n,r=e.$options._content;if(!r)return void this.fallback();var s=e._context,o=this._checkParam("select");if(o){var a=r.querySelectorAll(o);a.length?(n=i(a,r),n.hasChildNodes()?this.compile(n,s,t):this.fallback()):this.fallback()}else{var h=this,c=function(){h.compile(i(r.childNodes,r,!0),s,t)};e._isCompiled?c():e.$once("hook:compiled",c)}},fallback:function(){this.compile(r.extractContent(this.el,!0),this.vm)},compile:function(t,e,n){t&&e&&(this.unlink=e.$compile(t,n)),t?r.replace(this.el,t):r.remove(this.el)},unbind:function(){this.unlink&&this.unlink()}}},function(t,e,n){var i=n(1),r=n(22),s=n(13),o=n(10),a=n(14),h=new a(1e3),c=n(46);t.exports={link:c.link,teardown:c.teardown,getContainedComponents:c.getContainedComponents,bind:function(){var t=this.el;this.start=i.createAnchor("v-partial-start"),this.end=i.createAnchor("v-partial-end"),i.replace(t,this.end),i.before(this.start,this.end);var e=t.getAttribute("name"),n=s.parse(e);n?this.setupDynamic(n):this.insert(e)},setupDynamic:function(t){var e=this,n=s.tokensToExp(t);this.unwatch=this.vm.$watch(n,function(t){e.teardown(),e.insert(t)},{immediate:!0,user:!1})},insert:function(t){var e=i.resolveAsset(this.vm.$options,"partials",t);if(e){var n=r.parse(e,!0),s=(this.vm.constructor.cid||"")+e,o=this.compile(n,s);this.link(n,o)}},compile:function(t,e){var n=h.get(e);if(n)return n;var i=o.compile(t,this.vm.$options,!0);return h.put(e,i),i},unbind:function(){this.unlink&&this.unlink(),this.unwatch&&this.unwatch()}}},function(t,e,n){var i=n(1);e.json={read:function(t,e){return"string"==typeof t?t:JSON.stringify(t,null,Number(e)||2)},write:function(t){try{return JSON.parse(t)}catch(e){return t}}},e.capitalize=function(t){return t||0===t?(t=t.toString(),t.charAt(0).toUpperCase()+t.slice(1)):""},e.uppercase=function(t){return t||0===t?t.toString().toUpperCase():""},e.lowercase=function(t){return t||0===t?t.toString().toLowerCase():""};var r=/(\d{3})(?=\d)/g;e.currency=function(t,e){if(t=parseFloat(t),!isFinite(t)||!t&&0!==t)return"";e=null!=e?e:"$";var n=Math.abs(t).toFixed(2),i=n.slice(0,-3),s=i.length%3,o=s>0?i.slice(0,s)+(i.length>3?",":""):"",a=n.slice(-3),h=0>t?"-":"";return e+h+o+i.slice(s).replace(r,"$1,")+a},e.pluralize=function(t){var e=i.toArray(arguments,1);return e.length>1?e[t%10-1]||e[e.length-1]:e[0]+(1===t?"":"s")};var s={esc:27,tab:9,enter:13,space:32,"delete":46,up:38,left:37,right:39,down:40};e.key=function(t,e){if(t){var n=s[e];return n||(n=parseInt(e,10)),function(e){return e.keyCode===n?t.call(this,e):void 0}}},e.key.keyCodes=s,e.debounce=function(t,e){return t?(e||(e=300),i.debounce(t,e)):void 0},i.extend(e,n(51))},function(t,e,n){function i(t,e){var n;if(r.isPlainObject(t)){var s=Object.keys(t);for(n=s.length;n--;)if(i(t[s[n]],e))return!0}else if(r.isArray(t)){for(n=t.length;n--;)if(i(t[n],e))return!0}else if(null!=t)return t.toString().toLowerCase().indexOf(e)>-1}var r=n(1),s=n(20);e.filterBy=function(t,e,n){if(null==e)return t;if("function"==typeof e)return t.filter(e);e=(""+e).toLowerCase();var o="in"===n?3:2,a=r.toArray(arguments,o).reduce(function(t,e){return t.concat(e)},[]);return t.filter(function(t){return a.length?a.some(function(n){return i(s.get(t,n),e)}):i(t,e)})},e.orderBy=function(t,e,n){if(!e)return t;var i=1;return arguments.length>2&&(i="-1"===n?-1:n?-1:1),t.slice().sort(function(t,n){return"$key"!==e&&"$value"!==e&&(t&&"$value"in t&&(t=t.$value),n&&"$value"in n&&(n=n.$value)),t=r.isObject(t)?s.get(t,e):t,n=r.isObject(n)?s.get(n,e):n,t===n?0:t>n?i:-i})}},function(t,e,n){var i=n(1).mergeOptions;e._init=function(t){t=t||{},this.$el=null,this.$parent=t._parent,this.$root=t._root||this,this.$children=[],this.$={},this.$$={},this._watchers=[],this._directives=[],this._childCtors={},this._isVue=!0,this._events={},this._eventsCount={},this._eventCancelled=!1,this._isFragment=!1,this._fragmentStart=this._fragmentEnd=null,this._isCompiled=this._isDestroyed=this._isReady=this._isAttached=this._isBeingDestroyed=!1,this._unlinkFn=null,this._context=t._context||t._parent,this.$parent&&this.$parent.$children.push(this),this._reused=!1,this._staggerOp=null,t=this.$options=i(this.constructor.options,t,this),this._data={},this._initScope(),this._initEvents(),this._callHook("created"),t.el&&this.$mount(t.el)}},function(t,e,n){function i(t,e,n){if(n){var i,s,o,a;for(s in n)if(i=n[s],c.isArray(i))for(o=0,a=i.length;a>o;o++)r(t,e,s,i[o]);else r(t,e,s,i)}}function r(t,e,n,i,s){var o=typeof i;if("function"===o)t[e](n,i,s);else if("string"===o){var a=t.$options.methods,h=a&&a[i];h&&t[e](n,h,s)}else i&&"object"===o&&r(t,e,n,i.handler,i)}function s(){this._isAttached||(this._isAttached=!0,this.$children.forEach(o))}function o(t){!t._isAttached&&l(t.$el)&&t._callHook("attached")}function a(){this._isAttached&&(this._isAttached=!1,this.$children.forEach(h))}function h(t){t._isAttached&&!l(t.$el)&&t._callHook("detached")}var c=n(1),l=c.inDoc;e._initEvents=function(){var t=this.$options;i(this,"$on",t.events),i(this,"$watch",t.watch)},e._initDOMHooks=function(){this.$on("hook:attached",s),this.$on("hook:detached",a)},e._callHook=function(t){var e=this.$options[t];if(e)for(var n=0,i=e.length;i>n;n++)e[n].call(this);this.$emit("hook:"+t)}},function(t,e,n){function i(){}function r(t,e){var n=new c(e,t,null,{lazy:!0});return function(){return n.dirty&&n.evaluate(),h.target&&n.depend(),n.value}}var s=n(1),o=n(10),a=n(55),h=n(18),c=n(17);e._initScope=function(){this._initProps(),this._initMeta(),this._initMethods(),this._initData(),this._initComputed()},e._initProps=function(){var t=this.$options,e=t.el,n=t.props;e=t.el=s.query(e),this._propsUnlinkFn=e&&1===e.nodeType&&n?o.compileAndLinkProps(this,e,n):null},e._initData=function(){var t=this._data,e=this.$options.data,n=e&&e();if(n){this._data=n;for(var i in t)null===this._props[i].raw&&n.hasOwnProperty(i)||n.$set(i,t[i])}var r,o,h=this._data,c=Object.keys(h);for(r=c.length;r--;)o=c[r],s.isReserved(o)||this._proxy(o);a.create(h,this)},e._setData=function(t){t=t||{};var e=this._data;this._data=t;var n,i,r,o=this.$options.props;if(o)for(r=o.length;r--;)i=o[r].name,"$data"===i||t.hasOwnProperty(i)||t.$set(i,e[i]);for(n=Object.keys(e),r=n.length;r--;)i=n[r],s.isReserved(i)||i in t||this._unproxy(i);for(n=Object.keys(t),r=n.length;r--;)i=n[r],this.hasOwnProperty(i)||s.isReserved(i)||this._proxy(i);e.__ob__.removeVm(this),a.create(t,this),this._digest()},e._proxy=function(t){var e=this;Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return e._data[t]},set:function(n){e._data[t]=n}})},e._unproxy=function(t){delete this[t]},e._digest=function(){for(var t=this._watchers.length;t--;)this._watchers[t].update(!0);var e=this.$children;for(t=e.length;t--;){var n=e[t];n.$options.inherit&&n._digest()}},e._initComputed=function(){var t=this.$options.computed;if(t)for(var e in t){var n=t[e],o={enumerable:!0,configurable:!0};"function"==typeof n?(o.get=r(n,this),o.set=i):(o.get=n.get?n.cache!==!1?r(n.get,this):s.bind(n.get,this):i,o.set=n.set?s.bind(n.set,this):i),Object.defineProperty(this,e,o)}},e._initMethods=function(){var t=this.$options.methods;if(t)for(var e in t)this[e]=s.bind(t[e],this)},e._initMeta=function(){var t=this.$options._meta;if(t)for(var e in t)this._defineMeta(e,t[e])},e._defineMeta=function(t,e){var n=new h;Object.defineProperty(this,t,{get:function(){return h.target&&n.depend(),e},set:function(t){t!==e&&(e=t,n.notify())}})}},function(t,e,n){function i(t){if(this.value=t,this.dep=new h,o.define(t,"__ob__",this),o.isArray(t)){var e=a.proto&&o.hasProto?r:s;e(t,c,l),this.observeArray(t)}else this.walk(t)}function r(t,e){t.__proto__=e}function s(t,e,n){for(var i,r=n.length;r--;)i=n[r],o.define(t,i,e[i])}var o=n(1),a=n(5),h=n(18),c=n(56),l=Object.getOwnPropertyNames(c);n(57),i.create=function(t,e){var n;return t&&t.hasOwnProperty("__ob__")&&t.__ob__ instanceof i?n=t.__ob__:!o.isArray(t)&&!o.isPlainObject(t)||Object.isFrozen(t)||t._isVue||(n=new i(t)),n&&e&&n.addVm(e),n},i.prototype.walk=function(t){for(var e=Object.keys(t),n=e.length;n--;)this.convert(e[n],t[e[n]])},i.prototype.observe=function(t){return i.create(t)},i.prototype.observeArray=function(t){for(var e=t.length;e--;){var n=this.observe(t[e]);n&&(n.parents||(n.parents=[])).push(this)}},i.prototype.unobserveArray=function(t){for(var e=t.length;e--;){var n=t[e]&&t[e].__ob__;n&&n.parents.$remove(this)}},i.prototype.notify=function(){this.dep.notify();var t=this.parents;if(t)for(var e=t.length;e--;)t[e].notify()},i.prototype.convert=function(t,e){var n=this,i=n.observe(e),r=new h;Object.defineProperty(n.value,t,{enumerable:!0,configurable:!0,get:function(){return h.target&&(r.depend(),i&&i.dep.depend()),e},set:function(t){t!==e&&(e=t,i=n.observe(t),r.notify())}})},i.prototype.addVm=function(t){(this.vms||(this.vms=[])).push(t)},i.prototype.removeVm=function(t){this.vms.$remove(t)},t.exports=i},function(t,e,n){var i=n(1),r=Array.prototype,s=Object.create(r);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(t){var e=r[t];i.define(s,t,function(){for(var n=arguments.length,i=new Array(n);n--;)i[n]=arguments[n];var r,s,o=e.apply(this,i),a=this.__ob__;switch(t){case"push":r=i;break;case"unshift":r=i;break;case"splice":r=i.slice(2),s=o;break;case"pop":case"shift":s=[o]}return r&&a.observeArray(r),s&&a.unobserveArray(s),a.notify(),o})}),i.define(r,"$set",function(t,e){return t>=this.length&&(this.length=t+1),this.splice(t,1,e)[0]}),i.define(r,"$remove",function(t){return this.length?("number"!=typeof t&&(t=i.indexOf(this,t)),t>-1?this.splice(t,1):void 0):void 0}),t.exports=s},function(t,e,n){var i=n(1),r=Object.prototype;i.define(r,"$add",function(t,e){if(!this.hasOwnProperty(t)){var n=this.__ob__;if(!n||i.isReserved(t))return void(this[t]=e);if(n.convert(t,e),n.notify(),n.vms)for(var r=n.vms.length;r--;){var s=n.vms[r];s._proxy(t),s._digest()}}}),i.define(r,"$set",function(t,e){this.$add(t,e),this[t]=e}),i.define(r,"$delete",function(t){if(this.hasOwnProperty(t)){delete this[t];var e=this.__ob__;if(e&&!i.isReserved(t)&&(e.notify(),e.vms))for(var n=e.vms.length;n--;){var r=e.vms[n];r._unproxy(t),r._digest()}}})},function(t,e,n){var i=n(1),r=n(59),s=n(10);e._compile=function(t){var e=this.$options,n=this._host;if(e._linkFn)this._initElement(t),this._unlinkFn=e._linkFn(this,t,n);else{
8
+ var r=t;t=s.transclude(t,e),this._initElement(t);var o,a=s.compileRoot(t,e),h=this.constructor;e._linkerCachable&&(o=h.linker,o||(o=h.linker=s.compile(t,e)));var c=a(this,t),l=o?o(this,t):s.compile(t,e)(this,t,n);this._unlinkFn=function(){c(),l(!0)},e.replace&&i.replace(r,t)}return t},e._initElement=function(t){t instanceof DocumentFragment?(this._isFragment=!0,this.$el=this._fragmentStart=t.firstChild,this._fragmentEnd=t.lastChild,3===this._fragmentStart.nodeType&&(this._fragmentStart.data=this._fragmentEnd.data=""),this._blockFragment=t):this.$el=t,this.$el.__vue__=this,this._callHook("beforeCompile")},e._bindDir=function(t,e,n,i,s){this._directives.push(new r(t,e,this,n,i,s))},e._destroy=function(t,e){if(!this._isBeingDestroyed){this._callHook("beforeDestroy"),this._isBeingDestroyed=!0;var n,i=this.$parent;for(i&&!i._isBeingDestroyed&&i.$children.$remove(this),n=this.$children.length;n--;)this.$children[n].$destroy();for(this._propsUnlinkFn&&this._propsUnlinkFn(),this._unlinkFn&&this._unlinkFn(),n=this._watchers.length;n--;)this._watchers[n].teardown();this.$el&&(this.$el.__vue__=null);var r=this;t&&this.$el?this.$remove(function(){r._cleanup()}):e||this._cleanup()}},e._cleanup=function(){this._data.__ob__&&this._data.__ob__.removeVm(this),this.$el=this.$parent=this.$root=this.$children=this._watchers=this._directives=null,this._isDestroyed=!0,this._callHook("destroyed"),this.$off()}},function(t,e,n){function i(){}function r(t,e,n,i,r,s){this.name=t,this.el=e,this.vm=n,this.raw=i.raw,this.expression=i.expression,this.arg=i.arg,this.filters=i.filters,this._descriptor=i,this._host=s,this._locked=!1,this._bound=!1,this._listeners=null,this._bind(r)}var s=n(1),o=n(5),a=n(17),h=n(13),c=n(19);r.prototype._bind=function(t){if(("cloak"!==this.name||this.vm._isCompiled)&&this.el&&this.el.removeAttribute&&this.el.removeAttribute(o.prefix+this.name),"function"==typeof t?this.update=t:s.extend(this,t),this._watcherExp=this.expression,this._checkDynamicLiteral(),this.bind&&this.bind(),this._watcherExp&&(this.update||this.twoWay)&&(!this.isLiteral||this._isDynamicLiteral)&&!this._checkStatement()){var e=this;this.update?this._update=function(t,n){e._locked||e.update(t,n)}:this._update=i;var n=this._preProcess?s.bind(this._preProcess,this):null,r=this._watcher=new a(this.vm,this._watcherExp,this._update,{filters:this.filters,twoWay:this.twoWay,deep:this.deep,preProcess:n});null!=this._initValue?r.set(this._initValue):this.update&&this.update(r.value)}this._bound=!0},r.prototype._checkDynamicLiteral=function(){var t=this.expression;if(t&&this.isLiteral){var e=h.parse(t);if(e){var n=h.tokensToExp(e);this.expression=this.vm.$get(n),this._watcherExp=n,this._isDynamicLiteral=!0}}},r.prototype._checkStatement=function(){var t=this.expression;if(t&&this.acceptStatement&&!c.isSimplePath(t)){var e=c.parse(t).get,n=this.vm,i=function(){e.call(n,n)};return this.filters&&(i=n._applyFilters(i,null,this.filters)),this.update(i),!0}},r.prototype._checkParam=function(t){var e=this.el.getAttribute(t);return null!==e&&(this.el.removeAttribute(t),e=this.vm.$interpolate(e)),e},r.prototype.set=function(t){this.twoWay&&this._withLock(function(){this._watcher.set(t)})},r.prototype._withLock=function(t){var e=this;e._locked=!0,t.call(e),s.nextTick(function(){e._locked=!1})},r.prototype.on=function(t,e){s.on(this.el,t,e),(this._listeners||(this._listeners=[])).push([t,e])},r.prototype._teardown=function(){if(this._bound){this._bound=!1,this.unbind&&this.unbind(),this._watcher&&this._watcher.teardown();var t=this._listeners;if(t)for(var e=0;e<t.length;e++)s.off(this.el,t[e][0],t[e][1]);this.vm=this.el=this._watcher=this._listeners=null}},t.exports=r},function(t,e,n){var i=n(1);e._applyFilters=function(t,e,n,r){var s,o,a,h,c,l,u,f,p;for(l=0,u=n.length;u>l;l++)if(s=n[l],o=i.resolveAsset(this.$options,"filters",s.name),o&&(o=r?o.write:o.read||o,"function"==typeof o)){if(a=r?[t,e]:[t],c=r?2:1,s.args)for(f=0,p=s.args.length;p>f;f++)h=s.args[f],a[f+c]=h.dynamic?this.$get(h.value):h.value;t=o.apply(this,a)}return t},e._resolveComponent=function(t,e){var n=i.resolveAsset(this.$options,"components",t);if(n)if(n.options)e(n);else if(n.resolved)e(n.resolved);else if(n.requested)n.pendingCallbacks.push(e);else{n.requested=!0;var r=n.pendingCallbacks=[e];n(function(t){i.isPlainObject(t)&&(t=i.Vue.extend(t)),n.resolved=t;for(var e=0,s=r.length;s>e;e++)r[e](t)},function(t){})}}},function(t,e,n){var i=n(17),r=n(20),s=n(13),o=n(15),a=n(19),h=/[^|]\|[^|]/;e.$get=function(t){var e=a.parse(t);if(e)try{return e.get.call(this,this)}catch(n){}},e.$set=function(t,e){var n=a.parse(t,!0);n&&n.set&&n.set.call(this,this,e)},e.$add=function(t,e){this._data.$add(t,e)},e.$delete=function(t){this._data.$delete(t)},e.$watch=function(t,e,n){var r,s=this;"string"==typeof t&&(r=o.parse(t)[0],t=r.expression);var a=new i(s,t,e,{deep:n&&n.deep,user:!n||n.user!==!1,filters:r&&r.filters});return n&&n.immediate&&e.call(s,a.value),function(){a.teardown()}},e.$eval=function(t){if(h.test(t)){var e=o.parse(t)[0],n=this.$get(e.expression);return e.filters?this._applyFilters(n,null,e.filters):n}return this.$get(t)},e.$interpolate=function(t){var e=s.parse(t),n=this;return e?1===e.length?n.$eval(e[0].value)+"":e.map(function(t){return t.tag?n.$eval(t.value):t.value}).join(""):t},e.$log=function(t){var e=t?r.get(this._data,t):this._data;e&&(e=JSON.parse(JSON.stringify(e))),console.log(e)}},function(t,e,n){function i(t,e,n,i,o,a){e=s(e);var h=!c.inDoc(e),l=i===!1||h?o:a,u=!h&&!t._isAttached&&!c.inDoc(t.$el);return t._isFragment?r(t,e,l,n):l(t.$el,e,t,n),u&&t._callHook("attached"),t}function r(t,e,n,i){for(var r,s=t._fragmentStart,o=t._fragmentEnd;r!==o;)r=s.nextSibling,n(s,e,t),s=r;n(o,e,t,i)}function s(t){return"string"==typeof t?document.querySelector(t):t}function o(t,e,n,i){e.appendChild(t),i&&i()}function a(t,e,n,i){c.before(t,e),i&&i()}function h(t,e,n){c.remove(t),n&&n()}var c=n(1),l=n(30);e.$nextTick=function(t){c.nextTick(t,this)},e.$appendTo=function(t,e,n){return i(this,t,e,n,o,l.append)},e.$prependTo=function(t,e,n){return t=s(t),t.hasChildNodes()?this.$before(t.firstChild,e,n):this.$appendTo(t,e,n),this},e.$before=function(t,e,n){return i(this,t,e,n,a,l.before)},e.$after=function(t,e,n){return t=s(t),t.nextSibling?this.$before(t.nextSibling,e,n):this.$appendTo(t.parentNode,e,n),this},e.$remove=function(t,e){if(!this.$el.parentNode)return t&&t();var n=this._isAttached&&c.inDoc(this.$el);n||(e=!1);var i,s=this,a=function(){n&&s._callHook("detached"),t&&t()};return this._isFragment&&!this._blockFragment.hasChildNodes()?(i=e===!1?o:l.removeThenAppend,r(this,this._blockFragment,i,a)):(i=e===!1?h:l.remove)(this.$el,this,a),this}},function(t,e,n){function i(t,e,n){var i=t.$parent;if(i&&n&&!s.test(e))for(;i;)i._eventsCount[e]=(i._eventsCount[e]||0)+n,i=i.$parent}var r=n(1);e.$on=function(t,e){return(this._events[t]||(this._events[t]=[])).push(e),i(this,t,1),this},e.$once=function(t,e){function n(){i.$off(t,n),e.apply(this,arguments)}var i=this;return n.fn=e,this.$on(t,n),this},e.$off=function(t,e){var n;if(!arguments.length){if(this.$parent)for(t in this._events)n=this._events[t],n&&i(this,t,-n.length);return this._events={},this}if(n=this._events[t],!n)return this;if(1===arguments.length)return i(this,t,-n.length),this._events[t]=null,this;for(var r,s=n.length;s--;)if(r=n[s],r===e||r.fn===e){i(this,t,-1),n.splice(s,1);break}return this},e.$emit=function(t){this._eventCancelled=!1;var e=this._events[t];if(e){for(var n=arguments.length-1,i=new Array(n);n--;)i[n]=arguments[n+1];n=0,e=e.length>1?r.toArray(e):e;for(var s=e.length;s>n;n++)e[n].apply(this,i)===!1&&(this._eventCancelled=!0)}return this},e.$broadcast=function(t){if(this._eventsCount[t]){for(var e=this.$children,n=0,i=e.length;i>n;n++){var r=e[n];r.$emit.apply(r,arguments),r._eventCancelled||r.$broadcast.apply(r,arguments)}return this}},e.$dispatch=function(){for(var t=this.$parent;t;)t.$emit.apply(t,arguments),t=t._eventCancelled?null:t.$parent;return this};var s=/^hook:/},function(t,e,n){var i=n(1);e.$addChild=function(t,e){e=e||i.Vue,t=t||{};var n,r=this,s=t._context||r,o=void 0!==t.inherit?t.inherit:e.options.inherit;if(o){var a=s._childCtors;if(n=a[e.cid],!n){var h=e.options.name,c=h?i.classify(h):"VueComponent";n=new Function("return function "+c+" (options) {this.constructor = "+c+";this._init(options) }")(),n.options=e.options,n.linker=e.linker,n.prototype=s,a[e.cid]=n}}else n=e;t._parent=r,t._root=r.$root;var l=new n(t);return l}},function(t,e,n){function i(){this._isAttached=!0,this._isReady=!0,this._callHook("ready")}var r=n(1),s=n(10);e.$mount=function(t){return this._isCompiled?void 0:(t=r.query(t),t||(t=document.createElement("div")),this._compile(t),this._isCompiled=!0,this._callHook("compiled"),this._initDOMHooks(),r.inDoc(this.$el)?(this._callHook("attached"),i.call(this)):this.$once("hook:attached",i),this)},e.$destroy=function(t,e){this._destroy(t,e)},e.$compile=function(t,e){return s.compile(t,this.$options,!0)(this,t,e)}}])});
@@ -0,0 +1,49 @@
1
+ var _ = require('../util')
2
+
3
+ /**
4
+ * Create a child instance that prototypally inherits
5
+ * data on parent. To achieve that we create an intermediate
6
+ * constructor with its prototype pointing to parent.
7
+ *
8
+ * @param {Object} opts
9
+ * @param {Function} [BaseCtor]
10
+ * @return {Vue}
11
+ * @public
12
+ */
13
+
14
+ exports.$addChild = function (opts, BaseCtor) {
15
+ BaseCtor = BaseCtor || _.Vue
16
+ opts = opts || {}
17
+ var ChildVue
18
+ var parent = this
19
+ // transclusion context
20
+ var context = opts._context || parent
21
+ var inherit = opts.inherit !== undefined
22
+ ? opts.inherit
23
+ : BaseCtor.options.inherit
24
+ if (inherit) {
25
+ var ctors = context._childCtors
26
+ ChildVue = ctors[BaseCtor.cid]
27
+ if (!ChildVue) {
28
+ var optionName = BaseCtor.options.name
29
+ var className = optionName
30
+ ? _.classify(optionName)
31
+ : 'VueComponent'
32
+ ChildVue = new Function(
33
+ 'return function ' + className + ' (options) {' +
34
+ 'this.constructor = ' + className + ';' +
35
+ 'this._init(options) }'
36
+ )()
37
+ ChildVue.options = BaseCtor.options
38
+ ChildVue.linker = BaseCtor.linker
39
+ ChildVue.prototype = context
40
+ ctors[BaseCtor.cid] = ChildVue
41
+ }
42
+ } else {
43
+ ChildVue = BaseCtor
44
+ }
45
+ opts._parent = parent
46
+ opts._root = parent.$root
47
+ var child = new ChildVue(opts)
48
+ return child
49
+ }
@@ -0,0 +1,159 @@
1
+ var Watcher = require('../watcher')
2
+ var Path = require('../parsers/path')
3
+ var textParser = require('../parsers/text')
4
+ var dirParser = require('../parsers/directive')
5
+ var expParser = require('../parsers/expression')
6
+ var filterRE = /[^|]\|[^|]/
7
+
8
+ /**
9
+ * Get the value from an expression on this vm.
10
+ *
11
+ * @param {String} exp
12
+ * @return {*}
13
+ */
14
+
15
+ exports.$get = function (exp) {
16
+ var res = expParser.parse(exp)
17
+ if (res) {
18
+ try {
19
+ return res.get.call(this, this)
20
+ } catch (e) {}
21
+ }
22
+ }
23
+
24
+ /**
25
+ * Set the value from an expression on this vm.
26
+ * The expression must be a valid left-hand
27
+ * expression in an assignment.
28
+ *
29
+ * @param {String} exp
30
+ * @param {*} val
31
+ */
32
+
33
+ exports.$set = function (exp, val) {
34
+ var res = expParser.parse(exp, true)
35
+ if (res && res.set) {
36
+ res.set.call(this, this, val)
37
+ }
38
+ }
39
+
40
+ /**
41
+ * Add a property on the VM
42
+ *
43
+ * @param {String} key
44
+ * @param {*} val
45
+ */
46
+
47
+ exports.$add = function (key, val) {
48
+ this._data.$add(key, val)
49
+ }
50
+
51
+ /**
52
+ * Delete a property on the VM
53
+ *
54
+ * @param {String} key
55
+ */
56
+
57
+ exports.$delete = function (key) {
58
+ this._data.$delete(key)
59
+ }
60
+
61
+ /**
62
+ * Watch an expression, trigger callback when its
63
+ * value changes.
64
+ *
65
+ * @param {String|Function} expOrFn
66
+ * @param {Function} cb
67
+ * @param {Object} [options]
68
+ * - {Boolean} deep
69
+ * - {Boolean} immediate
70
+ * - {Boolean} user
71
+ * @return {Function} - unwatchFn
72
+ */
73
+
74
+ exports.$watch = function (expOrFn, cb, options) {
75
+ var vm = this
76
+ var parsed
77
+ if (typeof expOrFn === 'string') {
78
+ parsed = dirParser.parse(expOrFn)[0]
79
+ expOrFn = parsed.expression
80
+ }
81
+ var watcher = new Watcher(vm, expOrFn, cb, {
82
+ deep: options && options.deep,
83
+ user: !options || options.user !== false,
84
+ filters: parsed && parsed.filters
85
+ })
86
+ if (options && options.immediate) {
87
+ cb.call(vm, watcher.value)
88
+ }
89
+ return function unwatchFn () {
90
+ watcher.teardown()
91
+ }
92
+ }
93
+
94
+ /**
95
+ * Evaluate a text directive, including filters.
96
+ *
97
+ * @param {String} text
98
+ * @return {String}
99
+ */
100
+
101
+ exports.$eval = function (text) {
102
+ // check for filters.
103
+ if (filterRE.test(text)) {
104
+ var dir = dirParser.parse(text)[0]
105
+ // the filter regex check might give false positive
106
+ // for pipes inside strings, so it's possible that
107
+ // we don't get any filters here
108
+ var val = this.$get(dir.expression)
109
+ return dir.filters
110
+ ? this._applyFilters(val, null, dir.filters)
111
+ : val
112
+ } else {
113
+ // no filter
114
+ return this.$get(text)
115
+ }
116
+ }
117
+
118
+ /**
119
+ * Interpolate a piece of template text.
120
+ *
121
+ * @param {String} text
122
+ * @return {String}
123
+ */
124
+
125
+ exports.$interpolate = function (text) {
126
+ var tokens = textParser.parse(text)
127
+ var vm = this
128
+ if (tokens) {
129
+ if (tokens.length === 1) {
130
+ return vm.$eval(tokens[0].value) + ''
131
+ } else {
132
+ return tokens.map(function (token) {
133
+ return token.tag
134
+ ? vm.$eval(token.value)
135
+ : token.value
136
+ }).join('')
137
+ }
138
+ } else {
139
+ return text
140
+ }
141
+ }
142
+
143
+ /**
144
+ * Log instance data as a plain JS object
145
+ * so that it is easier to inspect in console.
146
+ * This method assumes console is available.
147
+ *
148
+ * @param {String} [path]
149
+ */
150
+
151
+ exports.$log = function (path) {
152
+ var data = path
153
+ ? Path.get(this._data, path)
154
+ : this._data
155
+ if (data) {
156
+ data = JSON.parse(JSON.stringify(data))
157
+ }
158
+ console.log(data)
159
+ }
@@ -0,0 +1,226 @@
1
+ var _ = require('../util')
2
+ var transition = require('../transition')
3
+
4
+ /**
5
+ * Convenience on-instance nextTick. The callback is
6
+ * auto-bound to the instance, and this avoids component
7
+ * modules having to rely on the global Vue.
8
+ *
9
+ * @param {Function} fn
10
+ */
11
+
12
+ exports.$nextTick = function (fn) {
13
+ _.nextTick(fn, this)
14
+ }
15
+
16
+ /**
17
+ * Append instance to target
18
+ *
19
+ * @param {Node} target
20
+ * @param {Function} [cb]
21
+ * @param {Boolean} [withTransition] - defaults to true
22
+ */
23
+
24
+ exports.$appendTo = function (target, cb, withTransition) {
25
+ return insert(
26
+ this, target, cb, withTransition,
27
+ append, transition.append
28
+ )
29
+ }
30
+
31
+ /**
32
+ * Prepend instance to target
33
+ *
34
+ * @param {Node} target
35
+ * @param {Function} [cb]
36
+ * @param {Boolean} [withTransition] - defaults to true
37
+ */
38
+
39
+ exports.$prependTo = function (target, cb, withTransition) {
40
+ target = query(target)
41
+ if (target.hasChildNodes()) {
42
+ this.$before(target.firstChild, cb, withTransition)
43
+ } else {
44
+ this.$appendTo(target, cb, withTransition)
45
+ }
46
+ return this
47
+ }
48
+
49
+ /**
50
+ * Insert instance before target
51
+ *
52
+ * @param {Node} target
53
+ * @param {Function} [cb]
54
+ * @param {Boolean} [withTransition] - defaults to true
55
+ */
56
+
57
+ exports.$before = function (target, cb, withTransition) {
58
+ return insert(
59
+ this, target, cb, withTransition,
60
+ before, transition.before
61
+ )
62
+ }
63
+
64
+ /**
65
+ * Insert instance after target
66
+ *
67
+ * @param {Node} target
68
+ * @param {Function} [cb]
69
+ * @param {Boolean} [withTransition] - defaults to true
70
+ */
71
+
72
+ exports.$after = function (target, cb, withTransition) {
73
+ target = query(target)
74
+ if (target.nextSibling) {
75
+ this.$before(target.nextSibling, cb, withTransition)
76
+ } else {
77
+ this.$appendTo(target.parentNode, cb, withTransition)
78
+ }
79
+ return this
80
+ }
81
+
82
+ /**
83
+ * Remove instance from DOM
84
+ *
85
+ * @param {Function} [cb]
86
+ * @param {Boolean} [withTransition] - defaults to true
87
+ */
88
+
89
+ exports.$remove = function (cb, withTransition) {
90
+ if (!this.$el.parentNode) {
91
+ return cb && cb()
92
+ }
93
+ var inDoc = this._isAttached && _.inDoc(this.$el)
94
+ // if we are not in document, no need to check
95
+ // for transitions
96
+ if (!inDoc) withTransition = false
97
+ var op
98
+ var self = this
99
+ var realCb = function () {
100
+ if (inDoc) self._callHook('detached')
101
+ if (cb) cb()
102
+ }
103
+ if (
104
+ this._isFragment &&
105
+ !this._blockFragment.hasChildNodes()
106
+ ) {
107
+ op = withTransition === false
108
+ ? append
109
+ : transition.removeThenAppend
110
+ blockOp(this, this._blockFragment, op, realCb)
111
+ } else {
112
+ op = withTransition === false
113
+ ? remove
114
+ : transition.remove
115
+ op(this.$el, this, realCb)
116
+ }
117
+ return this
118
+ }
119
+
120
+ /**
121
+ * Shared DOM insertion function.
122
+ *
123
+ * @param {Vue} vm
124
+ * @param {Element} target
125
+ * @param {Function} [cb]
126
+ * @param {Boolean} [withTransition]
127
+ * @param {Function} op1 - op for non-transition insert
128
+ * @param {Function} op2 - op for transition insert
129
+ * @return vm
130
+ */
131
+
132
+ function insert (vm, target, cb, withTransition, op1, op2) {
133
+ target = query(target)
134
+ var targetIsDetached = !_.inDoc(target)
135
+ var op = withTransition === false || targetIsDetached
136
+ ? op1
137
+ : op2
138
+ var shouldCallHook =
139
+ !targetIsDetached &&
140
+ !vm._isAttached &&
141
+ !_.inDoc(vm.$el)
142
+ if (vm._isFragment) {
143
+ blockOp(vm, target, op, cb)
144
+ } else {
145
+ op(vm.$el, target, vm, cb)
146
+ }
147
+ if (shouldCallHook) {
148
+ vm._callHook('attached')
149
+ }
150
+ return vm
151
+ }
152
+
153
+ /**
154
+ * Execute a transition operation on a fragment instance,
155
+ * iterating through all its block nodes.
156
+ *
157
+ * @param {Vue} vm
158
+ * @param {Node} target
159
+ * @param {Function} op
160
+ * @param {Function} cb
161
+ */
162
+
163
+ function blockOp (vm, target, op, cb) {
164
+ var current = vm._fragmentStart
165
+ var end = vm._fragmentEnd
166
+ var next
167
+ while (next !== end) {
168
+ next = current.nextSibling
169
+ op(current, target, vm)
170
+ current = next
171
+ }
172
+ op(end, target, vm, cb)
173
+ }
174
+
175
+ /**
176
+ * Check for selectors
177
+ *
178
+ * @param {String|Element} el
179
+ */
180
+
181
+ function query (el) {
182
+ return typeof el === 'string'
183
+ ? document.querySelector(el)
184
+ : el
185
+ }
186
+
187
+ /**
188
+ * Append operation that takes a callback.
189
+ *
190
+ * @param {Node} el
191
+ * @param {Node} target
192
+ * @param {Vue} vm - unused
193
+ * @param {Function} [cb]
194
+ */
195
+
196
+ function append (el, target, vm, cb) {
197
+ target.appendChild(el)
198
+ if (cb) cb()
199
+ }
200
+
201
+ /**
202
+ * InsertBefore operation that takes a callback.
203
+ *
204
+ * @param {Node} el
205
+ * @param {Node} target
206
+ * @param {Vue} vm - unused
207
+ * @param {Function} [cb]
208
+ */
209
+
210
+ function before (el, target, vm, cb) {
211
+ _.before(el, target)
212
+ if (cb) cb()
213
+ }
214
+
215
+ /**
216
+ * Remove operation that takes a callback.
217
+ *
218
+ * @param {Node} el
219
+ * @param {Vue} vm - unused
220
+ * @param {Function} [cb]
221
+ */
222
+
223
+ function remove (el, vm, cb) {
224
+ _.remove(el)
225
+ if (cb) cb()
226
+ }
@@ -0,0 +1,174 @@
1
+ var _ = require('../util')
2
+
3
+ /**
4
+ * Listen on the given `event` with `fn`.
5
+ *
6
+ * @param {String} event
7
+ * @param {Function} fn
8
+ */
9
+
10
+ exports.$on = function (event, fn) {
11
+ (this._events[event] || (this._events[event] = []))
12
+ .push(fn)
13
+ modifyListenerCount(this, event, 1)
14
+ return this
15
+ }
16
+
17
+ /**
18
+ * Adds an `event` listener that will be invoked a single
19
+ * time then automatically removed.
20
+ *
21
+ * @param {String} event
22
+ * @param {Function} fn
23
+ */
24
+
25
+ exports.$once = function (event, fn) {
26
+ var self = this
27
+ function on () {
28
+ self.$off(event, on)
29
+ fn.apply(this, arguments)
30
+ }
31
+ on.fn = fn
32
+ this.$on(event, on)
33
+ return this
34
+ }
35
+
36
+ /**
37
+ * Remove the given callback for `event` or all
38
+ * registered callbacks.
39
+ *
40
+ * @param {String} event
41
+ * @param {Function} fn
42
+ */
43
+
44
+ exports.$off = function (event, fn) {
45
+ var cbs
46
+ // all
47
+ if (!arguments.length) {
48
+ if (this.$parent) {
49
+ for (event in this._events) {
50
+ cbs = this._events[event]
51
+ if (cbs) {
52
+ modifyListenerCount(this, event, -cbs.length)
53
+ }
54
+ }
55
+ }
56
+ this._events = {}
57
+ return this
58
+ }
59
+ // specific event
60
+ cbs = this._events[event]
61
+ if (!cbs) {
62
+ return this
63
+ }
64
+ if (arguments.length === 1) {
65
+ modifyListenerCount(this, event, -cbs.length)
66
+ this._events[event] = null
67
+ return this
68
+ }
69
+ // specific handler
70
+ var cb
71
+ var i = cbs.length
72
+ while (i--) {
73
+ cb = cbs[i]
74
+ if (cb === fn || cb.fn === fn) {
75
+ modifyListenerCount(this, event, -1)
76
+ cbs.splice(i, 1)
77
+ break
78
+ }
79
+ }
80
+ return this
81
+ }
82
+
83
+ /**
84
+ * Trigger an event on self.
85
+ *
86
+ * @param {String} event
87
+ */
88
+
89
+ exports.$emit = function (event) {
90
+ this._eventCancelled = false
91
+ var cbs = this._events[event]
92
+ if (cbs) {
93
+ // avoid leaking arguments:
94
+ // http://jsperf.com/closure-with-arguments
95
+ var i = arguments.length - 1
96
+ var args = new Array(i)
97
+ while (i--) {
98
+ args[i] = arguments[i + 1]
99
+ }
100
+ i = 0
101
+ cbs = cbs.length > 1
102
+ ? _.toArray(cbs)
103
+ : cbs
104
+ for (var l = cbs.length; i < l; i++) {
105
+ if (cbs[i].apply(this, args) === false) {
106
+ this._eventCancelled = true
107
+ }
108
+ }
109
+ }
110
+ return this
111
+ }
112
+
113
+ /**
114
+ * Recursively broadcast an event to all children instances.
115
+ *
116
+ * @param {String} event
117
+ * @param {...*} additional arguments
118
+ */
119
+
120
+ exports.$broadcast = function (event) {
121
+ // if no child has registered for this event,
122
+ // then there's no need to broadcast.
123
+ if (!this._eventsCount[event]) return
124
+ var children = this.$children
125
+ for (var i = 0, l = children.length; i < l; i++) {
126
+ var child = children[i]
127
+ child.$emit.apply(child, arguments)
128
+ if (!child._eventCancelled) {
129
+ child.$broadcast.apply(child, arguments)
130
+ }
131
+ }
132
+ return this
133
+ }
134
+
135
+ /**
136
+ * Recursively propagate an event up the parent chain.
137
+ *
138
+ * @param {String} event
139
+ * @param {...*} additional arguments
140
+ */
141
+
142
+ exports.$dispatch = function () {
143
+ var parent = this.$parent
144
+ while (parent) {
145
+ parent.$emit.apply(parent, arguments)
146
+ parent = parent._eventCancelled
147
+ ? null
148
+ : parent.$parent
149
+ }
150
+ return this
151
+ }
152
+
153
+ /**
154
+ * Modify the listener counts on all parents.
155
+ * This bookkeeping allows $broadcast to return early when
156
+ * no child has listened to a certain event.
157
+ *
158
+ * @param {Vue} vm
159
+ * @param {String} event
160
+ * @param {Number} count
161
+ */
162
+
163
+ var hookRE = /^hook:/
164
+ function modifyListenerCount (vm, event, count) {
165
+ var parent = vm.$parent
166
+ // hooks do not get broadcasted so no need
167
+ // to do bookkeeping for them
168
+ if (!parent || !count || hookRE.test(event)) return
169
+ while (parent) {
170
+ parent._eventsCount[event] =
171
+ (parent._eventsCount[event] || 0) + count
172
+ parent = parent.$parent
173
+ }
174
+ }