test_server 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (420) hide show
  1. data/.bowerrc +4 -0
  2. data/.gitignore +19 -0
  3. data/.rdebugrc +7 -0
  4. data/.rspec +3 -0
  5. data/.simplecov +8 -0
  6. data/.travis.yml +8 -0
  7. data/.yardopts +5 -0
  8. data/Gemfile +55 -0
  9. data/LICENSE.md +22 -0
  10. data/README.md +29 -0
  11. data/Rakefile +107 -0
  12. data/app/assets/javascripts/application.js +65 -0
  13. data/app/assets/stylesheets/application.scss +150 -0
  14. data/app/controllers/application_controller.rb +71 -0
  15. data/app/controllers/assets_controller.rb +72 -0
  16. data/app/controllers/javascript_controller.rb +31 -0
  17. data/app/controllers/streaming_controller.rb +52 -0
  18. data/app/controllers/string_controller.rb +51 -0
  19. data/app/views/application.haml +19 -0
  20. data/app/views/xhr/show.haml +38 -0
  21. data/bin/test_server +10 -0
  22. data/bower.json +8 -0
  23. data/config.ru +51 -0
  24. data/files/config.yaml +1 -0
  25. data/files/example-config.erb +12 -0
  26. data/lib/test_server/access_logger.rb +13 -0
  27. data/lib/test_server/actions/create_directory.rb +33 -0
  28. data/lib/test_server/actions/create_file.rb +55 -0
  29. data/lib/test_server/actions/create_output.rb +36 -0
  30. data/lib/test_server/actions/handle_error.rb +39 -0
  31. data/lib/test_server/actions/initialize_application.rb +56 -0
  32. data/lib/test_server/actions/reload_configuration.rb +21 -0
  33. data/lib/test_server/actions/send_signal.rb +32 -0
  34. data/lib/test_server/cli/helper.rb +12 -0
  35. data/lib/test_server/cli/main.rb +105 -0
  36. data/lib/test_server/cli/reload.rb +40 -0
  37. data/lib/test_server/config.rb +107 -0
  38. data/lib/test_server/data.rb +23 -0
  39. data/lib/test_server/encoder.rb +39 -0
  40. data/lib/test_server/encoders/base64.rb +14 -0
  41. data/lib/test_server/encoders/base64_strict.rb +14 -0
  42. data/lib/test_server/encoders/gzip.rb +14 -0
  43. data/lib/test_server/encoders/null.rb +14 -0
  44. data/lib/test_server/erb_generator.rb +35 -0
  45. data/lib/test_server/error_handler.rb +109 -0
  46. data/lib/test_server/error_messages.rb +67 -0
  47. data/lib/test_server/exceptions.rb +39 -0
  48. data/lib/test_server/locales/en.yml +72 -0
  49. data/lib/test_server/main.rb +31 -0
  50. data/lib/test_server/null_access_logger.rb +6 -0
  51. data/lib/test_server/process_environment.rb +23 -0
  52. data/lib/test_server/server.rb +19 -0
  53. data/lib/test_server/server_commands/puma.rb +37 -0
  54. data/lib/test_server/server_commands/rackup.rb +44 -0
  55. data/lib/test_server/template_file.rb +19 -0
  56. data/lib/test_server/template_repository.rb +22 -0
  57. data/lib/test_server/ui_logger.rb +37 -0
  58. data/lib/test_server/version.rb +4 -0
  59. data/lib/test_server/web_helper.rb +66 -0
  60. data/lib/test_server.rb +78 -0
  61. data/share/archlinux/Makefile +7 -0
  62. data/share/archlinux/PKGBUILD.sh.erb +110 -0
  63. data/share/archlinux/config.yaml.erb +10 -0
  64. data/share/archlinux/defaults.sh.erb +3 -0
  65. data/share/archlinux/startup.sh.erb +9 -0
  66. data/share/archlinux/test_server.install +65 -0
  67. data/share/archlinux/tmpfiles.conf.erb +2 -0
  68. data/share/systemd/test_server.service +9 -0
  69. data/share/systemd/test_server.service.erb +11 -0
  70. data/share/systemd/test_server.socket +10 -0
  71. data/spec/encoder_spec.rb +50 -0
  72. data/spec/encoders/base64_spec.rb +18 -0
  73. data/spec/encoders/base64_strict_spec.rb +18 -0
  74. data/spec/encoders/gzip_spec.rb +18 -0
  75. data/spec/encoders/null_spec.rb +18 -0
  76. data/spec/error_handler_spec.rb +155 -0
  77. data/spec/features/fetch_data_via_javascript_spec.rb +19 -0
  78. data/spec/features/fetch_test_data_plain_spec.rb +109 -0
  79. data/spec/features/fetch_test_data_via_streaming_spec.rb +53 -0
  80. data/spec/features/helper_spec.rb +125 -0
  81. data/spec/process_environment_spec.rb +44 -0
  82. data/spec/spec_helper.rb +20 -0
  83. data/spec/support/capybara.rb +16 -0
  84. data/spec/support/debugging.rb +3 -0
  85. data/spec/support/encoding.rb +1 -0
  86. data/spec/support/environment.rb +33 -0
  87. data/spec/support/example.rb +16 -0
  88. data/spec/support/filesystem.rb +19 -0
  89. data/spec/support/html.rb +20 -0
  90. data/spec/support/matcher.rb +17 -0
  91. data/spec/support/pretty_print.xsl +46 -0
  92. data/spec/support/reporting.rb +8 -0
  93. data/spec/support/rspec.rb +5 -0
  94. data/spec/support/string.rb +2 -0
  95. data/spec/support/timeout.rb +18 -0
  96. data/test_server.gemspec +40 -0
  97. data/vendor/assets/components/bootstrap-sass/.bower.json +25 -0
  98. data/vendor/assets/components/bootstrap-sass/CNAME +1 -0
  99. data/vendor/assets/components/bootstrap-sass/CONTRIBUTING.md +61 -0
  100. data/vendor/assets/components/bootstrap-sass/DOCS-LICENSE +319 -0
  101. data/vendor/assets/components/bootstrap-sass/Gemfile +5 -0
  102. data/vendor/assets/components/bootstrap-sass/Gruntfile.js +244 -0
  103. data/vendor/assets/components/bootstrap-sass/LICENSE +176 -0
  104. data/vendor/assets/components/bootstrap-sass/LICENSE-MIT +21 -0
  105. data/vendor/assets/components/bootstrap-sass/README.md +277 -0
  106. data/vendor/assets/components/bootstrap-sass/Rakefile +44 -0
  107. data/vendor/assets/components/bootstrap-sass/_config.yml +25 -0
  108. data/vendor/assets/components/bootstrap-sass/_includes/ads.html +1 -0
  109. data/vendor/assets/components/bootstrap-sass/_includes/footer.html +34 -0
  110. data/vendor/assets/components/bootstrap-sass/_includes/header.html +42 -0
  111. data/vendor/assets/components/bootstrap-sass/_includes/nav-about.html +12 -0
  112. data/vendor/assets/components/bootstrap-sass/_includes/nav-components.html +137 -0
  113. data/vendor/assets/components/bootstrap-sass/_includes/nav-css.html +99 -0
  114. data/vendor/assets/components/bootstrap-sass/_includes/nav-customize.html +40 -0
  115. data/vendor/assets/components/bootstrap-sass/_includes/nav-getting-started.html +44 -0
  116. data/vendor/assets/components/bootstrap-sass/_includes/nav-javascript.html +88 -0
  117. data/vendor/assets/components/bootstrap-sass/_includes/nav-main.html +37 -0
  118. data/vendor/assets/components/bootstrap-sass/_includes/old-bs-docs.html +8 -0
  119. data/vendor/assets/components/bootstrap-sass/_includes/social-buttons.html +16 -0
  120. data/vendor/assets/components/bootstrap-sass/_layouts/default.html +79 -0
  121. data/vendor/assets/components/bootstrap-sass/_layouts/home.html +47 -0
  122. data/vendor/assets/components/bootstrap-sass/about.html +93 -0
  123. data/vendor/assets/components/bootstrap-sass/bower.json +11 -0
  124. data/vendor/assets/components/bootstrap-sass/browserstack.json +37 -0
  125. data/vendor/assets/components/bootstrap-sass/components.html +3689 -0
  126. data/vendor/assets/components/bootstrap-sass/composer.json +28 -0
  127. data/vendor/assets/components/bootstrap-sass/css.html +2674 -0
  128. data/vendor/assets/components/bootstrap-sass/customize.html +1715 -0
  129. data/vendor/assets/components/bootstrap-sass/dist/css/bootstrap-theme.css +427 -0
  130. data/vendor/assets/components/bootstrap-sass/dist/css/bootstrap-theme.min.css +1 -0
  131. data/vendor/assets/components/bootstrap-sass/dist/css/bootstrap.css +6350 -0
  132. data/vendor/assets/components/bootstrap-sass/dist/css/bootstrap.min.css +1 -0
  133. data/vendor/assets/components/bootstrap-sass/dist/fonts/glyphicons-halflings-regular.eot +0 -0
  134. data/vendor/assets/components/bootstrap-sass/dist/fonts/glyphicons-halflings-regular.svg +229 -0
  135. data/vendor/assets/components/bootstrap-sass/dist/fonts/glyphicons-halflings-regular.ttf +0 -0
  136. data/vendor/assets/components/bootstrap-sass/dist/fonts/glyphicons-halflings-regular.woff +0 -0
  137. data/vendor/assets/components/bootstrap-sass/dist/js/bootstrap.js +2002 -0
  138. data/vendor/assets/components/bootstrap-sass/dist/js/bootstrap.min.js +9 -0
  139. data/vendor/assets/components/bootstrap-sass/docs-assets/css/docs.css +1195 -0
  140. data/vendor/assets/components/bootstrap-sass/docs-assets/css/pygments-manni.css +66 -0
  141. data/vendor/assets/components/bootstrap-sass/docs-assets/ico/apple-touch-icon-144-precomposed.png +0 -0
  142. data/vendor/assets/components/bootstrap-sass/docs-assets/ico/favicon.png +0 -0
  143. data/vendor/assets/components/bootstrap-sass/docs-assets/js/application.js +103 -0
  144. data/vendor/assets/components/bootstrap-sass/docs-assets/js/customizer.js +332 -0
  145. data/vendor/assets/components/bootstrap-sass/docs-assets/js/filesaver.js +169 -0
  146. data/vendor/assets/components/bootstrap-sass/docs-assets/js/holder.js +404 -0
  147. data/vendor/assets/components/bootstrap-sass/docs-assets/js/ie8-responsive-file-warning.js +12 -0
  148. data/vendor/assets/components/bootstrap-sass/docs-assets/js/jszip.js +1467 -0
  149. data/vendor/assets/components/bootstrap-sass/docs-assets/js/less.js +9 -0
  150. data/vendor/assets/components/bootstrap-sass/docs-assets/js/raw-files.js +3 -0
  151. data/vendor/assets/components/bootstrap-sass/docs-assets/js/uglify.js +14 -0
  152. data/vendor/assets/components/bootstrap-sass/examples/carousel/carousel.css +148 -0
  153. data/vendor/assets/components/bootstrap-sass/examples/carousel/index.html +206 -0
  154. data/vendor/assets/components/bootstrap-sass/examples/grid/grid.css +28 -0
  155. data/vendor/assets/components/bootstrap-sass/examples/grid/index.html +148 -0
  156. data/vendor/assets/components/bootstrap-sass/examples/jumbotron/index.html +99 -0
  157. data/vendor/assets/components/bootstrap-sass/examples/jumbotron/jumbotron.css +5 -0
  158. data/vendor/assets/components/bootstrap-sass/examples/jumbotron-narrow/index.html +82 -0
  159. data/vendor/assets/components/bootstrap-sass/examples/jumbotron-narrow/jumbotron-narrow.css +79 -0
  160. data/vendor/assets/components/bootstrap-sass/examples/justified-nav/index.html +83 -0
  161. data/vendor/assets/components/bootstrap-sass/examples/justified-nav/justified-nav.css +88 -0
  162. data/vendor/assets/components/bootstrap-sass/examples/navbar/index.html +88 -0
  163. data/vendor/assets/components/bootstrap-sass/examples/navbar/navbar.css +8 -0
  164. data/vendor/assets/components/bootstrap-sass/examples/navbar-fixed-top/index.html +91 -0
  165. data/vendor/assets/components/bootstrap-sass/examples/navbar-fixed-top/navbar-fixed-top.css +4 -0
  166. data/vendor/assets/components/bootstrap-sass/examples/navbar-static-top/index.html +92 -0
  167. data/vendor/assets/components/bootstrap-sass/examples/navbar-static-top/navbar-static-top.css +7 -0
  168. data/vendor/assets/components/bootstrap-sass/examples/non-responsive/index.html +101 -0
  169. data/vendor/assets/components/bootstrap-sass/examples/non-responsive/non-responsive.css +116 -0
  170. data/vendor/assets/components/bootstrap-sass/examples/offcanvas/index.html +130 -0
  171. data/vendor/assets/components/bootstrap-sass/examples/offcanvas/offcanvas.css +50 -0
  172. data/vendor/assets/components/bootstrap-sass/examples/offcanvas/offcanvas.js +5 -0
  173. data/vendor/assets/components/bootstrap-sass/examples/screenshots/carousel.jpg +0 -0
  174. data/vendor/assets/components/bootstrap-sass/examples/screenshots/grid.jpg +0 -0
  175. data/vendor/assets/components/bootstrap-sass/examples/screenshots/jumbotron-narrow.jpg +0 -0
  176. data/vendor/assets/components/bootstrap-sass/examples/screenshots/jumbotron.jpg +0 -0
  177. data/vendor/assets/components/bootstrap-sass/examples/screenshots/justified-nav.jpg +0 -0
  178. data/vendor/assets/components/bootstrap-sass/examples/screenshots/navbar-fixed.jpg +0 -0
  179. data/vendor/assets/components/bootstrap-sass/examples/screenshots/navbar-static.jpg +0 -0
  180. data/vendor/assets/components/bootstrap-sass/examples/screenshots/navbar.jpg +0 -0
  181. data/vendor/assets/components/bootstrap-sass/examples/screenshots/non-responsive.jpg +0 -0
  182. data/vendor/assets/components/bootstrap-sass/examples/screenshots/offcanvas.jpg +0 -0
  183. data/vendor/assets/components/bootstrap-sass/examples/screenshots/sign-in.jpg +0 -0
  184. data/vendor/assets/components/bootstrap-sass/examples/screenshots/starter-template.jpg +0 -0
  185. data/vendor/assets/components/bootstrap-sass/examples/screenshots/sticky-footer-navbar.jpg +0 -0
  186. data/vendor/assets/components/bootstrap-sass/examples/screenshots/sticky-footer.jpg +0 -0
  187. data/vendor/assets/components/bootstrap-sass/examples/screenshots/theme.jpg +0 -0
  188. data/vendor/assets/components/bootstrap-sass/examples/signin/index.html +50 -0
  189. data/vendor/assets/components/bootstrap-sass/examples/signin/signin.css +40 -0
  190. data/vendor/assets/components/bootstrap-sass/examples/starter-template/index.html +68 -0
  191. data/vendor/assets/components/bootstrap-sass/examples/starter-template/starter-template.css +7 -0
  192. data/vendor/assets/components/bootstrap-sass/examples/sticky-footer/index.html +55 -0
  193. data/vendor/assets/components/bootstrap-sass/examples/sticky-footer/sticky-footer.css +38 -0
  194. data/vendor/assets/components/bootstrap-sass/examples/sticky-footer-navbar/index.html +91 -0
  195. data/vendor/assets/components/bootstrap-sass/examples/sticky-footer-navbar/sticky-footer-navbar.css +45 -0
  196. data/vendor/assets/components/bootstrap-sass/examples/theme/index.html +384 -0
  197. data/vendor/assets/components/bootstrap-sass/examples/theme/theme.css +14 -0
  198. data/vendor/assets/components/bootstrap-sass/fonts/glyphicons-halflings-regular.eot +0 -0
  199. data/vendor/assets/components/bootstrap-sass/fonts/glyphicons-halflings-regular.svg +229 -0
  200. data/vendor/assets/components/bootstrap-sass/fonts/glyphicons-halflings-regular.ttf +0 -0
  201. data/vendor/assets/components/bootstrap-sass/fonts/glyphicons-halflings-regular.woff +0 -0
  202. data/vendor/assets/components/bootstrap-sass/getting-started.html +1021 -0
  203. data/vendor/assets/components/bootstrap-sass/index.html +16 -0
  204. data/vendor/assets/components/bootstrap-sass/javascript.html +1983 -0
  205. data/vendor/assets/components/bootstrap-sass/js/affix.js +126 -0
  206. data/vendor/assets/components/bootstrap-sass/js/alert.js +98 -0
  207. data/vendor/assets/components/bootstrap-sass/js/button.js +109 -0
  208. data/vendor/assets/components/bootstrap-sass/js/carousel.js +217 -0
  209. data/vendor/assets/components/bootstrap-sass/js/collapse.js +179 -0
  210. data/vendor/assets/components/bootstrap-sass/js/dropdown.js +154 -0
  211. data/vendor/assets/components/bootstrap-sass/js/modal.js +246 -0
  212. data/vendor/assets/components/bootstrap-sass/js/popover.js +117 -0
  213. data/vendor/assets/components/bootstrap-sass/js/scrollspy.js +158 -0
  214. data/vendor/assets/components/bootstrap-sass/js/tab.js +135 -0
  215. data/vendor/assets/components/bootstrap-sass/js/tests/index.html +52 -0
  216. data/vendor/assets/components/bootstrap-sass/js/tests/unit/affix.js +25 -0
  217. data/vendor/assets/components/bootstrap-sass/js/tests/unit/alert.js +62 -0
  218. data/vendor/assets/components/bootstrap-sass/js/tests/unit/button.js +116 -0
  219. data/vendor/assets/components/bootstrap-sass/js/tests/unit/carousel.js +87 -0
  220. data/vendor/assets/components/bootstrap-sass/js/tests/unit/collapse.js +164 -0
  221. data/vendor/assets/components/bootstrap-sass/js/tests/unit/dropdown.js +219 -0
  222. data/vendor/assets/components/bootstrap-sass/js/tests/unit/modal.js +196 -0
  223. data/vendor/assets/components/bootstrap-sass/js/tests/unit/phantom.js +69 -0
  224. data/vendor/assets/components/bootstrap-sass/js/tests/unit/popover.js +133 -0
  225. data/vendor/assets/components/bootstrap-sass/js/tests/unit/scrollspy.js +37 -0
  226. data/vendor/assets/components/bootstrap-sass/js/tests/unit/tab.js +86 -0
  227. data/vendor/assets/components/bootstrap-sass/js/tests/unit/tooltip.js +437 -0
  228. data/vendor/assets/components/bootstrap-sass/js/tests/unit/transition.js +13 -0
  229. data/vendor/assets/components/bootstrap-sass/js/tests/vendor/jquery.js +6 -0
  230. data/vendor/assets/components/bootstrap-sass/js/tests/vendor/qunit.css +232 -0
  231. data/vendor/assets/components/bootstrap-sass/js/tests/vendor/qunit.js +1510 -0
  232. data/vendor/assets/components/bootstrap-sass/js/tooltip.js +386 -0
  233. data/vendor/assets/components/bootstrap-sass/js/transition.js +56 -0
  234. data/vendor/assets/components/bootstrap-sass/lib/_alerts.scss +67 -0
  235. data/vendor/assets/components/bootstrap-sass/lib/_badges.scss +51 -0
  236. data/vendor/assets/components/bootstrap-sass/lib/_breadcrumbs.scss +23 -0
  237. data/vendor/assets/components/bootstrap-sass/lib/_button-groups.scss +253 -0
  238. data/vendor/assets/components/bootstrap-sass/lib/_buttons.scss +158 -0
  239. data/vendor/assets/components/bootstrap-sass/lib/_carousel.scss +231 -0
  240. data/vendor/assets/components/bootstrap-sass/lib/_close.scss +35 -0
  241. data/vendor/assets/components/bootstrap-sass/lib/_code.scss +53 -0
  242. data/vendor/assets/components/bootstrap-sass/lib/_component-animations.scss +29 -0
  243. data/vendor/assets/components/bootstrap-sass/lib/_dropdowns.scss +193 -0
  244. data/vendor/assets/components/bootstrap-sass/lib/_forms.scss +363 -0
  245. data/vendor/assets/components/bootstrap-sass/lib/_glyphicons.scss +237 -0
  246. data/vendor/assets/components/bootstrap-sass/lib/_grid.scss +93 -0
  247. data/vendor/assets/components/bootstrap-sass/lib/_input-groups.scss +136 -0
  248. data/vendor/assets/components/bootstrap-sass/lib/_jumbotron.scss +40 -0
  249. data/vendor/assets/components/bootstrap-sass/lib/_labels.scss +58 -0
  250. data/vendor/assets/components/bootstrap-sass/lib/_list-group.scss +88 -0
  251. data/vendor/assets/components/bootstrap-sass/lib/_media.scss +56 -0
  252. data/vendor/assets/components/bootstrap-sass/lib/_mixins.scss +861 -0
  253. data/vendor/assets/components/bootstrap-sass/lib/_modals.scss +132 -0
  254. data/vendor/assets/components/bootstrap-sass/lib/_navbar.scss +628 -0
  255. data/vendor/assets/components/bootstrap-sass/lib/_navs.scss +262 -0
  256. data/vendor/assets/components/bootstrap-sass/lib/_normalize.scss +406 -0
  257. data/vendor/assets/components/bootstrap-sass/lib/_pager.scss +55 -0
  258. data/vendor/assets/components/bootstrap-sass/lib/_pagination.scss +85 -0
  259. data/vendor/assets/components/bootstrap-sass/lib/_panels.scss +172 -0
  260. data/vendor/assets/components/bootstrap-sass/lib/_popovers.scss +133 -0
  261. data/vendor/assets/components/bootstrap-sass/lib/_print.scss +105 -0
  262. data/vendor/assets/components/bootstrap-sass/lib/_progress-bars.scss +92 -0
  263. data/vendor/assets/components/bootstrap-sass/lib/_responsive-utilities.scss +198 -0
  264. data/vendor/assets/components/bootstrap-sass/lib/_scaffolding.scss +119 -0
  265. data/vendor/assets/components/bootstrap-sass/lib/_tables.scss +244 -0
  266. data/vendor/assets/components/bootstrap-sass/lib/_theme.scss +247 -0
  267. data/vendor/assets/components/bootstrap-sass/lib/_thumbnails.scss +32 -0
  268. data/vendor/assets/components/bootstrap-sass/lib/_tooltip.scss +95 -0
  269. data/vendor/assets/components/bootstrap-sass/lib/_type.scss +279 -0
  270. data/vendor/assets/components/bootstrap-sass/lib/_utilities.scss +56 -0
  271. data/vendor/assets/components/bootstrap-sass/lib/_variables.scss +637 -0
  272. data/vendor/assets/components/bootstrap-sass/lib/_wells.scss +29 -0
  273. data/vendor/assets/components/bootstrap-sass/lib/bootstrap.scss +49 -0
  274. data/vendor/assets/components/bootstrap-sass/package.json +40 -0
  275. data/vendor/assets/components/jquery/.bower.json +37 -0
  276. data/vendor/assets/components/jquery/MIT-LICENSE.txt +21 -0
  277. data/vendor/assets/components/jquery/bower.json +27 -0
  278. data/vendor/assets/components/jquery/dist/jquery.js +9174 -0
  279. data/vendor/assets/components/jquery/dist/jquery.min.js +5 -0
  280. data/vendor/assets/components/jquery/dist/jquery.min.map +1 -0
  281. data/vendor/assets/components/jquery/src/ajax/jsonp.js +89 -0
  282. data/vendor/assets/components/jquery/src/ajax/load.js +75 -0
  283. data/vendor/assets/components/jquery/src/ajax/parseJSON.js +13 -0
  284. data/vendor/assets/components/jquery/src/ajax/parseXML.js +28 -0
  285. data/vendor/assets/components/jquery/src/ajax/script.js +64 -0
  286. data/vendor/assets/components/jquery/src/ajax/var/nonce.js +5 -0
  287. data/vendor/assets/components/jquery/src/ajax/var/rquery.js +3 -0
  288. data/vendor/assets/components/jquery/src/ajax/xhr.js +135 -0
  289. data/vendor/assets/components/jquery/src/ajax.js +806 -0
  290. data/vendor/assets/components/jquery/src/attributes/attr.js +143 -0
  291. data/vendor/assets/components/jquery/src/attributes/classes.js +158 -0
  292. data/vendor/assets/components/jquery/src/attributes/prop.js +96 -0
  293. data/vendor/assets/components/jquery/src/attributes/support.js +35 -0
  294. data/vendor/assets/components/jquery/src/attributes/val.js +163 -0
  295. data/vendor/assets/components/jquery/src/attributes.js +11 -0
  296. data/vendor/assets/components/jquery/src/callbacks.js +205 -0
  297. data/vendor/assets/components/jquery/src/core/access.js +60 -0
  298. data/vendor/assets/components/jquery/src/core/init.js +123 -0
  299. data/vendor/assets/components/jquery/src/core/parseHTML.js +39 -0
  300. data/vendor/assets/components/jquery/src/core/ready.js +97 -0
  301. data/vendor/assets/components/jquery/src/core/var/rsingleTag.js +4 -0
  302. data/vendor/assets/components/jquery/src/core.js +498 -0
  303. data/vendor/assets/components/jquery/src/css/addGetHookIf.js +24 -0
  304. data/vendor/assets/components/jquery/src/css/curCSS.js +57 -0
  305. data/vendor/assets/components/jquery/src/css/defaultDisplay.js +70 -0
  306. data/vendor/assets/components/jquery/src/css/hiddenVisibleSelectors.js +15 -0
  307. data/vendor/assets/components/jquery/src/css/support.js +91 -0
  308. data/vendor/assets/components/jquery/src/css/swap.js +28 -0
  309. data/vendor/assets/components/jquery/src/css/var/cssExpand.js +3 -0
  310. data/vendor/assets/components/jquery/src/css/var/getStyles.js +5 -0
  311. data/vendor/assets/components/jquery/src/css/var/isHidden.js +13 -0
  312. data/vendor/assets/components/jquery/src/css/var/rmargin.js +3 -0
  313. data/vendor/assets/components/jquery/src/css/var/rnumnonpx.js +5 -0
  314. data/vendor/assets/components/jquery/src/css.js +451 -0
  315. data/vendor/assets/components/jquery/src/data/Data.js +181 -0
  316. data/vendor/assets/components/jquery/src/data/accepts.js +20 -0
  317. data/vendor/assets/components/jquery/src/data/var/data_priv.js +5 -0
  318. data/vendor/assets/components/jquery/src/data/var/data_user.js +5 -0
  319. data/vendor/assets/components/jquery/src/data.js +175 -0
  320. data/vendor/assets/components/jquery/src/deferred.js +149 -0
  321. data/vendor/assets/components/jquery/src/deprecated.js +13 -0
  322. data/vendor/assets/components/jquery/src/dimensions.js +50 -0
  323. data/vendor/assets/components/jquery/src/effects/Tween.js +114 -0
  324. data/vendor/assets/components/jquery/src/effects/animatedSelector.js +13 -0
  325. data/vendor/assets/components/jquery/src/effects.js +647 -0
  326. data/vendor/assets/components/jquery/src/event/alias.js +39 -0
  327. data/vendor/assets/components/jquery/src/event/support.js +9 -0
  328. data/vendor/assets/components/jquery/src/event.js +868 -0
  329. data/vendor/assets/components/jquery/src/exports/amd.js +24 -0
  330. data/vendor/assets/components/jquery/src/exports/global.js +32 -0
  331. data/vendor/assets/components/jquery/src/intro.js +44 -0
  332. data/vendor/assets/components/jquery/src/jquery.js +36 -0
  333. data/vendor/assets/components/jquery/src/manipulation/_evalUrl.js +18 -0
  334. data/vendor/assets/components/jquery/src/manipulation/support.js +31 -0
  335. data/vendor/assets/components/jquery/src/manipulation/var/rcheckableType.js +3 -0
  336. data/vendor/assets/components/jquery/src/manipulation.js +582 -0
  337. data/vendor/assets/components/jquery/src/offset.js +204 -0
  338. data/vendor/assets/components/jquery/src/outro.js +1 -0
  339. data/vendor/assets/components/jquery/src/queue/delay.js +22 -0
  340. data/vendor/assets/components/jquery/src/queue.js +142 -0
  341. data/vendor/assets/components/jquery/src/selector-native.js +172 -0
  342. data/vendor/assets/components/jquery/src/selector-sizzle.js +14 -0
  343. data/vendor/assets/components/jquery/src/selector.js +1 -0
  344. data/vendor/assets/components/jquery/src/serialize.js +111 -0
  345. data/vendor/assets/components/jquery/src/sizzle/dist/sizzle.js +2034 -0
  346. data/vendor/assets/components/jquery/src/sizzle/dist/sizzle.min.js +3 -0
  347. data/vendor/assets/components/jquery/src/sizzle/dist/sizzle.min.map +1 -0
  348. data/vendor/assets/components/jquery/src/traversing/findFilter.js +100 -0
  349. data/vendor/assets/components/jquery/src/traversing/var/rneedsContext.js +6 -0
  350. data/vendor/assets/components/jquery/src/traversing.js +200 -0
  351. data/vendor/assets/components/jquery/src/var/arr.js +3 -0
  352. data/vendor/assets/components/jquery/src/var/class2type.js +4 -0
  353. data/vendor/assets/components/jquery/src/var/concat.js +5 -0
  354. data/vendor/assets/components/jquery/src/var/hasOwn.js +5 -0
  355. data/vendor/assets/components/jquery/src/var/indexOf.js +5 -0
  356. data/vendor/assets/components/jquery/src/var/pnum.js +3 -0
  357. data/vendor/assets/components/jquery/src/var/push.js +5 -0
  358. data/vendor/assets/components/jquery/src/var/rnotwhite.js +3 -0
  359. data/vendor/assets/components/jquery/src/var/slice.js +5 -0
  360. data/vendor/assets/components/jquery/src/var/strundefined.js +3 -0
  361. data/vendor/assets/components/jquery/src/var/support.js +4 -0
  362. data/vendor/assets/components/jquery/src/var/toString.js +5 -0
  363. data/vendor/assets/components/jquery/src/wrap.js +78 -0
  364. data/vendor/assets/components/open-sans/.bower.json +36 -0
  365. data/vendor/assets/components/open-sans/bower.json +27 -0
  366. data/vendor/assets/components/open-sans/css/open-sans.css +91 -0
  367. data/vendor/assets/components/open-sans/css/open-sans.min.css +1 -0
  368. data/vendor/assets/components/open-sans/fonts/bold/opensans-bold-webfont.eot +0 -0
  369. data/vendor/assets/components/open-sans/fonts/bold/opensans-bold-webfont.svg +958 -0
  370. data/vendor/assets/components/open-sans/fonts/bold/opensans-bold-webfont.ttf +0 -0
  371. data/vendor/assets/components/open-sans/fonts/bold/opensans-bold-webfont.woff +0 -0
  372. data/vendor/assets/components/open-sans/fonts/bold-italic/opensans-bold-italic-webfont.eot +0 -0
  373. data/vendor/assets/components/open-sans/fonts/bold-italic/opensans-bold-italic-webfont.svg +958 -0
  374. data/vendor/assets/components/open-sans/fonts/bold-italic/opensans-bold-italic-webfont.ttf +0 -0
  375. data/vendor/assets/components/open-sans/fonts/bold-italic/opensans-bold-italic-webfont.woff +0 -0
  376. data/vendor/assets/components/open-sans/fonts/extrabold/opensans-extrabold-webfont.eot +0 -0
  377. data/vendor/assets/components/open-sans/fonts/extrabold/opensans-extrabold-webfont.svg +958 -0
  378. data/vendor/assets/components/open-sans/fonts/extrabold/opensans-extrabold-webfont.ttf +0 -0
  379. data/vendor/assets/components/open-sans/fonts/extrabold/opensans-extrabold-webfont.woff +0 -0
  380. data/vendor/assets/components/open-sans/fonts/extrabold-italic/opensans-extrabold-italic-webfont.eot +0 -0
  381. data/vendor/assets/components/open-sans/fonts/extrabold-italic/opensans-extrabold-italic-webfont.svg +958 -0
  382. data/vendor/assets/components/open-sans/fonts/extrabold-italic/opensans-extrabold-italic-webfont.ttf +0 -0
  383. data/vendor/assets/components/open-sans/fonts/extrabold-italic/opensans-extrabold-italic-webfont.woff +0 -0
  384. data/vendor/assets/components/open-sans/fonts/italic/opensans-italic-webfont.eot +0 -0
  385. data/vendor/assets/components/open-sans/fonts/italic/opensans-italic-webfont.svg +958 -0
  386. data/vendor/assets/components/open-sans/fonts/italic/opensans-italic-webfont.ttf +0 -0
  387. data/vendor/assets/components/open-sans/fonts/italic/opensans-italic-webfont.woff +0 -0
  388. data/vendor/assets/components/open-sans/fonts/light/opensans-light-webfont.eot +0 -0
  389. data/vendor/assets/components/open-sans/fonts/light/opensans-light-webfont.svg +958 -0
  390. data/vendor/assets/components/open-sans/fonts/light/opensans-light-webfont.ttf +0 -0
  391. data/vendor/assets/components/open-sans/fonts/light/opensans-light-webfont.woff +0 -0
  392. data/vendor/assets/components/open-sans/fonts/light-italic/opensans-light-italic-webfont.eot +0 -0
  393. data/vendor/assets/components/open-sans/fonts/light-italic/opensans-light-italic-webfont.svg +958 -0
  394. data/vendor/assets/components/open-sans/fonts/light-italic/opensans-light-italic-webfont.ttf +0 -0
  395. data/vendor/assets/components/open-sans/fonts/light-italic/opensans-light-italic-webfont.woff +0 -0
  396. data/vendor/assets/components/open-sans/fonts/regular/opensans-regular-webfont.eot +0 -0
  397. data/vendor/assets/components/open-sans/fonts/regular/opensans-regular-webfont.svg +958 -0
  398. data/vendor/assets/components/open-sans/fonts/regular/opensans-regular-webfont.ttf +0 -0
  399. data/vendor/assets/components/open-sans/fonts/regular/opensans-regular-webfont.woff +0 -0
  400. data/vendor/assets/components/open-sans/fonts/semibold/opensans-semibold-webfont.eot +0 -0
  401. data/vendor/assets/components/open-sans/fonts/semibold/opensans-semibold-webfont.svg +958 -0
  402. data/vendor/assets/components/open-sans/fonts/semibold/opensans-semibold-webfont.ttf +0 -0
  403. data/vendor/assets/components/open-sans/fonts/semibold/opensans-semibold-webfont.woff +0 -0
  404. data/vendor/assets/components/open-sans/fonts/semibold-italic/opensans-semibold-italic-webfont.eot +0 -0
  405. data/vendor/assets/components/open-sans/fonts/semibold-italic/opensans-semibold-italic-webfont.svg +958 -0
  406. data/vendor/assets/components/open-sans/fonts/semibold-italic/opensans-semibold-italic-webfont.ttf +0 -0
  407. data/vendor/assets/components/open-sans/fonts/semibold-italic/opensans-semibold-italic-webfont.woff +0 -0
  408. data/vendor/assets/components/open-sans/scss/_base.scss +19 -0
  409. data/vendor/assets/components/open-sans/scss/_bold-italic.scss +8 -0
  410. data/vendor/assets/components/open-sans/scss/_bold.scss +4 -0
  411. data/vendor/assets/components/open-sans/scss/_extrabold-italic.scss +8 -0
  412. data/vendor/assets/components/open-sans/scss/_extrabold.scss +4 -0
  413. data/vendor/assets/components/open-sans/scss/_italic.scss +8 -0
  414. data/vendor/assets/components/open-sans/scss/_light-italic.scss +8 -0
  415. data/vendor/assets/components/open-sans/scss/_light.scss +4 -0
  416. data/vendor/assets/components/open-sans/scss/_regular.scss +4 -0
  417. data/vendor/assets/components/open-sans/scss/_semibold-italic.scss +8 -0
  418. data/vendor/assets/components/open-sans/scss/_semibold.scss +4 -0
  419. data/vendor/assets/components/open-sans/scss/open-sans.scss +15 -0
  420. metadata +795 -0
@@ -0,0 +1,647 @@
1
+ define([
2
+ "./core",
3
+ "./var/pnum",
4
+ "./css/var/cssExpand",
5
+ "./css/var/isHidden",
6
+ "./css/defaultDisplay",
7
+ "./data/var/data_priv",
8
+
9
+ "./core/init",
10
+ "./effects/Tween",
11
+ "./queue",
12
+ "./css",
13
+ "./deferred",
14
+ "./traversing"
15
+ ], function( jQuery, pnum, cssExpand, isHidden, defaultDisplay, data_priv ) {
16
+
17
+ var
18
+ fxNow, timerId,
19
+ rfxtypes = /^(?:toggle|show|hide)$/,
20
+ rfxnum = new RegExp( "^(?:([+-])=|)(" + pnum + ")([a-z%]*)$", "i" ),
21
+ rrun = /queueHooks$/,
22
+ animationPrefilters = [ defaultPrefilter ],
23
+ tweeners = {
24
+ "*": [ function( prop, value ) {
25
+ var tween = this.createTween( prop, value ),
26
+ target = tween.cur(),
27
+ parts = rfxnum.exec( value ),
28
+ unit = parts && parts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ),
29
+
30
+ // Starting value computation is required for potential unit mismatches
31
+ start = ( jQuery.cssNumber[ prop ] || unit !== "px" && +target ) &&
32
+ rfxnum.exec( jQuery.css( tween.elem, prop ) ),
33
+ scale = 1,
34
+ maxIterations = 20;
35
+
36
+ if ( start && start[ 3 ] !== unit ) {
37
+ // Trust units reported by jQuery.css
38
+ unit = unit || start[ 3 ];
39
+
40
+ // Make sure we update the tween properties later on
41
+ parts = parts || [];
42
+
43
+ // Iteratively approximate from a nonzero starting point
44
+ start = +target || 1;
45
+
46
+ do {
47
+ // If previous iteration zeroed out, double until we get *something*
48
+ // Use a string for doubling factor so we don't accidentally see scale as unchanged below
49
+ scale = scale || ".5";
50
+
51
+ // Adjust and apply
52
+ start = start / scale;
53
+ jQuery.style( tween.elem, prop, start + unit );
54
+
55
+ // Update scale, tolerating zero or NaN from tween.cur()
56
+ // And breaking the loop if scale is unchanged or perfect, or if we've just had enough
57
+ } while ( scale !== (scale = tween.cur() / target) && scale !== 1 && --maxIterations );
58
+ }
59
+
60
+ // Update tween properties
61
+ if ( parts ) {
62
+ start = tween.start = +start || +target || 0;
63
+ tween.unit = unit;
64
+ // If a +=/-= token was provided, we're doing a relative animation
65
+ tween.end = parts[ 1 ] ?
66
+ start + ( parts[ 1 ] + 1 ) * parts[ 2 ] :
67
+ +parts[ 2 ];
68
+ }
69
+
70
+ return tween;
71
+ } ]
72
+ };
73
+
74
+ // Animations created synchronously will run synchronously
75
+ function createFxNow() {
76
+ setTimeout(function() {
77
+ fxNow = undefined;
78
+ });
79
+ return ( fxNow = jQuery.now() );
80
+ }
81
+
82
+ // Generate parameters to create a standard animation
83
+ function genFx( type, includeWidth ) {
84
+ var which,
85
+ i = 0,
86
+ attrs = { height: type };
87
+
88
+ // if we include width, step value is 1 to do all cssExpand values,
89
+ // if we don't include width, step value is 2 to skip over Left and Right
90
+ includeWidth = includeWidth ? 1 : 0;
91
+ for ( ; i < 4 ; i += 2 - includeWidth ) {
92
+ which = cssExpand[ i ];
93
+ attrs[ "margin" + which ] = attrs[ "padding" + which ] = type;
94
+ }
95
+
96
+ if ( includeWidth ) {
97
+ attrs.opacity = attrs.width = type;
98
+ }
99
+
100
+ return attrs;
101
+ }
102
+
103
+ function createTween( value, prop, animation ) {
104
+ var tween,
105
+ collection = ( tweeners[ prop ] || [] ).concat( tweeners[ "*" ] ),
106
+ index = 0,
107
+ length = collection.length;
108
+ for ( ; index < length; index++ ) {
109
+ if ( (tween = collection[ index ].call( animation, prop, value )) ) {
110
+
111
+ // we're done with this property
112
+ return tween;
113
+ }
114
+ }
115
+ }
116
+
117
+ function defaultPrefilter( elem, props, opts ) {
118
+ /* jshint validthis: true */
119
+ var prop, value, toggle, tween, hooks, oldfire, display,
120
+ anim = this,
121
+ orig = {},
122
+ style = elem.style,
123
+ hidden = elem.nodeType && isHidden( elem ),
124
+ dataShow = data_priv.get( elem, "fxshow" );
125
+
126
+ // handle queue: false promises
127
+ if ( !opts.queue ) {
128
+ hooks = jQuery._queueHooks( elem, "fx" );
129
+ if ( hooks.unqueued == null ) {
130
+ hooks.unqueued = 0;
131
+ oldfire = hooks.empty.fire;
132
+ hooks.empty.fire = function() {
133
+ if ( !hooks.unqueued ) {
134
+ oldfire();
135
+ }
136
+ };
137
+ }
138
+ hooks.unqueued++;
139
+
140
+ anim.always(function() {
141
+ // doing this makes sure that the complete handler will be called
142
+ // before this completes
143
+ anim.always(function() {
144
+ hooks.unqueued--;
145
+ if ( !jQuery.queue( elem, "fx" ).length ) {
146
+ hooks.empty.fire();
147
+ }
148
+ });
149
+ });
150
+ }
151
+
152
+ // height/width overflow pass
153
+ if ( elem.nodeType === 1 && ( "height" in props || "width" in props ) ) {
154
+ // Make sure that nothing sneaks out
155
+ // Record all 3 overflow attributes because IE9-10 do not
156
+ // change the overflow attribute when overflowX and
157
+ // overflowY are set to the same value
158
+ opts.overflow = [ style.overflow, style.overflowX, style.overflowY ];
159
+
160
+ // Set display property to inline-block for height/width
161
+ // animations on inline elements that are having width/height animated
162
+ display = jQuery.css( elem, "display" );
163
+ // Test default display if display is currently "none"
164
+ if ( (display === "none" ? defaultDisplay( elem.nodeName ) : display) === "inline" &&
165
+ jQuery.css( elem, "float" ) === "none" ) {
166
+
167
+ style.display = "inline-block";
168
+ }
169
+ }
170
+
171
+ if ( opts.overflow ) {
172
+ style.overflow = "hidden";
173
+ anim.always(function() {
174
+ style.overflow = opts.overflow[ 0 ];
175
+ style.overflowX = opts.overflow[ 1 ];
176
+ style.overflowY = opts.overflow[ 2 ];
177
+ });
178
+ }
179
+
180
+ // show/hide pass
181
+ for ( prop in props ) {
182
+ value = props[ prop ];
183
+ if ( rfxtypes.exec( value ) ) {
184
+ delete props[ prop ];
185
+ toggle = toggle || value === "toggle";
186
+ if ( value === ( hidden ? "hide" : "show" ) ) {
187
+
188
+ // If there is dataShow left over from a stopped hide or show and we are going to proceed with show, we should pretend to be hidden
189
+ if ( value === "show" && dataShow && dataShow[ prop ] !== undefined ) {
190
+ hidden = true;
191
+ } else {
192
+ continue;
193
+ }
194
+ }
195
+ orig[ prop ] = dataShow && dataShow[ prop ] || jQuery.style( elem, prop );
196
+
197
+ // Any non-fx value stops us from restoring the original display value
198
+ } else {
199
+ display = undefined;
200
+ }
201
+ }
202
+
203
+ if ( !jQuery.isEmptyObject( orig ) ) {
204
+ if ( dataShow ) {
205
+ if ( "hidden" in dataShow ) {
206
+ hidden = dataShow.hidden;
207
+ }
208
+ } else {
209
+ dataShow = data_priv.access( elem, "fxshow", {} );
210
+ }
211
+
212
+ // store state if its toggle - enables .stop().toggle() to "reverse"
213
+ if ( toggle ) {
214
+ dataShow.hidden = !hidden;
215
+ }
216
+ if ( hidden ) {
217
+ jQuery( elem ).show();
218
+ } else {
219
+ anim.done(function() {
220
+ jQuery( elem ).hide();
221
+ });
222
+ }
223
+ anim.done(function() {
224
+ var prop;
225
+
226
+ data_priv.remove( elem, "fxshow" );
227
+ for ( prop in orig ) {
228
+ jQuery.style( elem, prop, orig[ prop ] );
229
+ }
230
+ });
231
+ for ( prop in orig ) {
232
+ tween = createTween( hidden ? dataShow[ prop ] : 0, prop, anim );
233
+
234
+ if ( !( prop in dataShow ) ) {
235
+ dataShow[ prop ] = tween.start;
236
+ if ( hidden ) {
237
+ tween.end = tween.start;
238
+ tween.start = prop === "width" || prop === "height" ? 1 : 0;
239
+ }
240
+ }
241
+ }
242
+
243
+ // If this is a noop like .hide().hide(), restore an overwritten display value
244
+ } else if ( (display === "none" ? defaultDisplay( elem.nodeName ) : display) === "inline" ) {
245
+ style.display = display;
246
+ }
247
+ }
248
+
249
+ function propFilter( props, specialEasing ) {
250
+ var index, name, easing, value, hooks;
251
+
252
+ // camelCase, specialEasing and expand cssHook pass
253
+ for ( index in props ) {
254
+ name = jQuery.camelCase( index );
255
+ easing = specialEasing[ name ];
256
+ value = props[ index ];
257
+ if ( jQuery.isArray( value ) ) {
258
+ easing = value[ 1 ];
259
+ value = props[ index ] = value[ 0 ];
260
+ }
261
+
262
+ if ( index !== name ) {
263
+ props[ name ] = value;
264
+ delete props[ index ];
265
+ }
266
+
267
+ hooks = jQuery.cssHooks[ name ];
268
+ if ( hooks && "expand" in hooks ) {
269
+ value = hooks.expand( value );
270
+ delete props[ name ];
271
+
272
+ // not quite $.extend, this wont overwrite keys already present.
273
+ // also - reusing 'index' from above because we have the correct "name"
274
+ for ( index in value ) {
275
+ if ( !( index in props ) ) {
276
+ props[ index ] = value[ index ];
277
+ specialEasing[ index ] = easing;
278
+ }
279
+ }
280
+ } else {
281
+ specialEasing[ name ] = easing;
282
+ }
283
+ }
284
+ }
285
+
286
+ function Animation( elem, properties, options ) {
287
+ var result,
288
+ stopped,
289
+ index = 0,
290
+ length = animationPrefilters.length,
291
+ deferred = jQuery.Deferred().always( function() {
292
+ // don't match elem in the :animated selector
293
+ delete tick.elem;
294
+ }),
295
+ tick = function() {
296
+ if ( stopped ) {
297
+ return false;
298
+ }
299
+ var currentTime = fxNow || createFxNow(),
300
+ remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ),
301
+ // archaic crash bug won't allow us to use 1 - ( 0.5 || 0 ) (#12497)
302
+ temp = remaining / animation.duration || 0,
303
+ percent = 1 - temp,
304
+ index = 0,
305
+ length = animation.tweens.length;
306
+
307
+ for ( ; index < length ; index++ ) {
308
+ animation.tweens[ index ].run( percent );
309
+ }
310
+
311
+ deferred.notifyWith( elem, [ animation, percent, remaining ]);
312
+
313
+ if ( percent < 1 && length ) {
314
+ return remaining;
315
+ } else {
316
+ deferred.resolveWith( elem, [ animation ] );
317
+ return false;
318
+ }
319
+ },
320
+ animation = deferred.promise({
321
+ elem: elem,
322
+ props: jQuery.extend( {}, properties ),
323
+ opts: jQuery.extend( true, { specialEasing: {} }, options ),
324
+ originalProperties: properties,
325
+ originalOptions: options,
326
+ startTime: fxNow || createFxNow(),
327
+ duration: options.duration,
328
+ tweens: [],
329
+ createTween: function( prop, end ) {
330
+ var tween = jQuery.Tween( elem, animation.opts, prop, end,
331
+ animation.opts.specialEasing[ prop ] || animation.opts.easing );
332
+ animation.tweens.push( tween );
333
+ return tween;
334
+ },
335
+ stop: function( gotoEnd ) {
336
+ var index = 0,
337
+ // if we are going to the end, we want to run all the tweens
338
+ // otherwise we skip this part
339
+ length = gotoEnd ? animation.tweens.length : 0;
340
+ if ( stopped ) {
341
+ return this;
342
+ }
343
+ stopped = true;
344
+ for ( ; index < length ; index++ ) {
345
+ animation.tweens[ index ].run( 1 );
346
+ }
347
+
348
+ // resolve when we played the last frame
349
+ // otherwise, reject
350
+ if ( gotoEnd ) {
351
+ deferred.resolveWith( elem, [ animation, gotoEnd ] );
352
+ } else {
353
+ deferred.rejectWith( elem, [ animation, gotoEnd ] );
354
+ }
355
+ return this;
356
+ }
357
+ }),
358
+ props = animation.props;
359
+
360
+ propFilter( props, animation.opts.specialEasing );
361
+
362
+ for ( ; index < length ; index++ ) {
363
+ result = animationPrefilters[ index ].call( animation, elem, props, animation.opts );
364
+ if ( result ) {
365
+ return result;
366
+ }
367
+ }
368
+
369
+ jQuery.map( props, createTween, animation );
370
+
371
+ if ( jQuery.isFunction( animation.opts.start ) ) {
372
+ animation.opts.start.call( elem, animation );
373
+ }
374
+
375
+ jQuery.fx.timer(
376
+ jQuery.extend( tick, {
377
+ elem: elem,
378
+ anim: animation,
379
+ queue: animation.opts.queue
380
+ })
381
+ );
382
+
383
+ // attach callbacks from options
384
+ return animation.progress( animation.opts.progress )
385
+ .done( animation.opts.done, animation.opts.complete )
386
+ .fail( animation.opts.fail )
387
+ .always( animation.opts.always );
388
+ }
389
+
390
+ jQuery.Animation = jQuery.extend( Animation, {
391
+
392
+ tweener: function( props, callback ) {
393
+ if ( jQuery.isFunction( props ) ) {
394
+ callback = props;
395
+ props = [ "*" ];
396
+ } else {
397
+ props = props.split(" ");
398
+ }
399
+
400
+ var prop,
401
+ index = 0,
402
+ length = props.length;
403
+
404
+ for ( ; index < length ; index++ ) {
405
+ prop = props[ index ];
406
+ tweeners[ prop ] = tweeners[ prop ] || [];
407
+ tweeners[ prop ].unshift( callback );
408
+ }
409
+ },
410
+
411
+ prefilter: function( callback, prepend ) {
412
+ if ( prepend ) {
413
+ animationPrefilters.unshift( callback );
414
+ } else {
415
+ animationPrefilters.push( callback );
416
+ }
417
+ }
418
+ });
419
+
420
+ jQuery.speed = function( speed, easing, fn ) {
421
+ var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : {
422
+ complete: fn || !fn && easing ||
423
+ jQuery.isFunction( speed ) && speed,
424
+ duration: speed,
425
+ easing: fn && easing || easing && !jQuery.isFunction( easing ) && easing
426
+ };
427
+
428
+ opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration :
429
+ opt.duration in jQuery.fx.speeds ? jQuery.fx.speeds[ opt.duration ] : jQuery.fx.speeds._default;
430
+
431
+ // normalize opt.queue - true/undefined/null -> "fx"
432
+ if ( opt.queue == null || opt.queue === true ) {
433
+ opt.queue = "fx";
434
+ }
435
+
436
+ // Queueing
437
+ opt.old = opt.complete;
438
+
439
+ opt.complete = function() {
440
+ if ( jQuery.isFunction( opt.old ) ) {
441
+ opt.old.call( this );
442
+ }
443
+
444
+ if ( opt.queue ) {
445
+ jQuery.dequeue( this, opt.queue );
446
+ }
447
+ };
448
+
449
+ return opt;
450
+ };
451
+
452
+ jQuery.fn.extend({
453
+ fadeTo: function( speed, to, easing, callback ) {
454
+
455
+ // show any hidden elements after setting opacity to 0
456
+ return this.filter( isHidden ).css( "opacity", 0 ).show()
457
+
458
+ // animate to the value specified
459
+ .end().animate({ opacity: to }, speed, easing, callback );
460
+ },
461
+ animate: function( prop, speed, easing, callback ) {
462
+ var empty = jQuery.isEmptyObject( prop ),
463
+ optall = jQuery.speed( speed, easing, callback ),
464
+ doAnimation = function() {
465
+ // Operate on a copy of prop so per-property easing won't be lost
466
+ var anim = Animation( this, jQuery.extend( {}, prop ), optall );
467
+
468
+ // Empty animations, or finishing resolves immediately
469
+ if ( empty || data_priv.get( this, "finish" ) ) {
470
+ anim.stop( true );
471
+ }
472
+ };
473
+ doAnimation.finish = doAnimation;
474
+
475
+ return empty || optall.queue === false ?
476
+ this.each( doAnimation ) :
477
+ this.queue( optall.queue, doAnimation );
478
+ },
479
+ stop: function( type, clearQueue, gotoEnd ) {
480
+ var stopQueue = function( hooks ) {
481
+ var stop = hooks.stop;
482
+ delete hooks.stop;
483
+ stop( gotoEnd );
484
+ };
485
+
486
+ if ( typeof type !== "string" ) {
487
+ gotoEnd = clearQueue;
488
+ clearQueue = type;
489
+ type = undefined;
490
+ }
491
+ if ( clearQueue && type !== false ) {
492
+ this.queue( type || "fx", [] );
493
+ }
494
+
495
+ return this.each(function() {
496
+ var dequeue = true,
497
+ index = type != null && type + "queueHooks",
498
+ timers = jQuery.timers,
499
+ data = data_priv.get( this );
500
+
501
+ if ( index ) {
502
+ if ( data[ index ] && data[ index ].stop ) {
503
+ stopQueue( data[ index ] );
504
+ }
505
+ } else {
506
+ for ( index in data ) {
507
+ if ( data[ index ] && data[ index ].stop && rrun.test( index ) ) {
508
+ stopQueue( data[ index ] );
509
+ }
510
+ }
511
+ }
512
+
513
+ for ( index = timers.length; index--; ) {
514
+ if ( timers[ index ].elem === this && (type == null || timers[ index ].queue === type) ) {
515
+ timers[ index ].anim.stop( gotoEnd );
516
+ dequeue = false;
517
+ timers.splice( index, 1 );
518
+ }
519
+ }
520
+
521
+ // start the next in the queue if the last step wasn't forced
522
+ // timers currently will call their complete callbacks, which will dequeue
523
+ // but only if they were gotoEnd
524
+ if ( dequeue || !gotoEnd ) {
525
+ jQuery.dequeue( this, type );
526
+ }
527
+ });
528
+ },
529
+ finish: function( type ) {
530
+ if ( type !== false ) {
531
+ type = type || "fx";
532
+ }
533
+ return this.each(function() {
534
+ var index,
535
+ data = data_priv.get( this ),
536
+ queue = data[ type + "queue" ],
537
+ hooks = data[ type + "queueHooks" ],
538
+ timers = jQuery.timers,
539
+ length = queue ? queue.length : 0;
540
+
541
+ // enable finishing flag on private data
542
+ data.finish = true;
543
+
544
+ // empty the queue first
545
+ jQuery.queue( this, type, [] );
546
+
547
+ if ( hooks && hooks.stop ) {
548
+ hooks.stop.call( this, true );
549
+ }
550
+
551
+ // look for any active animations, and finish them
552
+ for ( index = timers.length; index--; ) {
553
+ if ( timers[ index ].elem === this && timers[ index ].queue === type ) {
554
+ timers[ index ].anim.stop( true );
555
+ timers.splice( index, 1 );
556
+ }
557
+ }
558
+
559
+ // look for any animations in the old queue and finish them
560
+ for ( index = 0; index < length; index++ ) {
561
+ if ( queue[ index ] && queue[ index ].finish ) {
562
+ queue[ index ].finish.call( this );
563
+ }
564
+ }
565
+
566
+ // turn off finishing flag
567
+ delete data.finish;
568
+ });
569
+ }
570
+ });
571
+
572
+ jQuery.each([ "toggle", "show", "hide" ], function( i, name ) {
573
+ var cssFn = jQuery.fn[ name ];
574
+ jQuery.fn[ name ] = function( speed, easing, callback ) {
575
+ return speed == null || typeof speed === "boolean" ?
576
+ cssFn.apply( this, arguments ) :
577
+ this.animate( genFx( name, true ), speed, easing, callback );
578
+ };
579
+ });
580
+
581
+ // Generate shortcuts for custom animations
582
+ jQuery.each({
583
+ slideDown: genFx("show"),
584
+ slideUp: genFx("hide"),
585
+ slideToggle: genFx("toggle"),
586
+ fadeIn: { opacity: "show" },
587
+ fadeOut: { opacity: "hide" },
588
+ fadeToggle: { opacity: "toggle" }
589
+ }, function( name, props ) {
590
+ jQuery.fn[ name ] = function( speed, easing, callback ) {
591
+ return this.animate( props, speed, easing, callback );
592
+ };
593
+ });
594
+
595
+ jQuery.timers = [];
596
+ jQuery.fx.tick = function() {
597
+ var timer,
598
+ i = 0,
599
+ timers = jQuery.timers;
600
+
601
+ fxNow = jQuery.now();
602
+
603
+ for ( ; i < timers.length; i++ ) {
604
+ timer = timers[ i ];
605
+ // Checks the timer has not already been removed
606
+ if ( !timer() && timers[ i ] === timer ) {
607
+ timers.splice( i--, 1 );
608
+ }
609
+ }
610
+
611
+ if ( !timers.length ) {
612
+ jQuery.fx.stop();
613
+ }
614
+ fxNow = undefined;
615
+ };
616
+
617
+ jQuery.fx.timer = function( timer ) {
618
+ jQuery.timers.push( timer );
619
+ if ( timer() ) {
620
+ jQuery.fx.start();
621
+ } else {
622
+ jQuery.timers.pop();
623
+ }
624
+ };
625
+
626
+ jQuery.fx.interval = 13;
627
+
628
+ jQuery.fx.start = function() {
629
+ if ( !timerId ) {
630
+ timerId = setInterval( jQuery.fx.tick, jQuery.fx.interval );
631
+ }
632
+ };
633
+
634
+ jQuery.fx.stop = function() {
635
+ clearInterval( timerId );
636
+ timerId = null;
637
+ };
638
+
639
+ jQuery.fx.speeds = {
640
+ slow: 600,
641
+ fast: 200,
642
+ // Default speed
643
+ _default: 400
644
+ };
645
+
646
+ return jQuery;
647
+ });
@@ -0,0 +1,39 @@
1
+ define([
2
+ "../core",
3
+ "../event"
4
+ ], function( jQuery ) {
5
+
6
+ jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblclick " +
7
+ "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
8
+ "change select submit keydown keypress keyup error contextmenu").split(" "), function( i, name ) {
9
+
10
+ // Handle event binding
11
+ jQuery.fn[ name ] = function( data, fn ) {
12
+ return arguments.length > 0 ?
13
+ this.on( name, null, data, fn ) :
14
+ this.trigger( name );
15
+ };
16
+ });
17
+
18
+ jQuery.fn.extend({
19
+ hover: function( fnOver, fnOut ) {
20
+ return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
21
+ },
22
+
23
+ bind: function( types, data, fn ) {
24
+ return this.on( types, null, data, fn );
25
+ },
26
+ unbind: function( types, fn ) {
27
+ return this.off( types, null, fn );
28
+ },
29
+
30
+ delegate: function( selector, types, data, fn ) {
31
+ return this.on( types, selector, data, fn );
32
+ },
33
+ undelegate: function( selector, types, fn ) {
34
+ // ( namespace ) or ( selector, types [, fn] )
35
+ return arguments.length === 1 ? this.off( selector, "**" ) : this.off( types, selector || "**", fn );
36
+ }
37
+ });
38
+
39
+ });
@@ -0,0 +1,9 @@
1
+ define([
2
+ "../var/support"
3
+ ], function( support ) {
4
+
5
+ support.focusinBubbles = "onfocusin" in window;
6
+
7
+ return support;
8
+
9
+ });